summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ABOUT-NLS1068
-rw-r--r--src/AUTHORS4
-rwxr-xr-xsrc/Android.mk15
-rw-r--r--src/CONTRIBUTING48
-rw-r--r--src/COPYING674
-rw-r--r--src/COPYING-GPLV2339
-rw-r--r--src/COPYING-LGPLV3165
-rw-r--r--src/ChangeLog3203
-rw-r--r--src/GPG-KEY33
-rw-r--r--src/INSTALL370
-rw-r--r--src/Makefile894
-rw-r--r--src/Makefile.am169
-rw-r--r--src/Makefile.in894
-rw-r--r--src/NEWS1359
-rw-r--r--src/NOTES73
-rw-r--r--src/README19
-rw-r--r--src/THANKS6
-rw-r--r--src/TODO195
-rw-r--r--src/aclocal.m41268
-rw-r--r--src/addr2line.c (renamed from src/src/addr2line.c)0
-rw-r--r--src/ar.c (renamed from src/src/ar.c)0
-rw-r--r--src/arlib-argp.c (renamed from src/src/arlib-argp.c)0
-rw-r--r--src/arlib.c (renamed from src/src/arlib.c)0
-rw-r--r--src/arlib.h (renamed from src/src/arlib.h)0
-rw-r--r--src/arlib2.c (renamed from src/src/arlib2.c)0
-rw-r--r--src/backends/ChangeLog790
-rw-r--r--src/backends/Makefile914
-rw-r--r--src/backends/Makefile.am148
-rw-r--r--src/backends/Makefile.in914
-rw-r--r--src/backends/aarch64_cfi.c82
-rw-r--r--src/backends/aarch64_corenote.c163
-rw-r--r--src/backends/aarch64_init.c69
-rw-r--r--src/backends/aarch64_initreg.c92
-rw-r--r--src/backends/aarch64_regs.c102
-rw-r--r--src/backends/aarch64_reloc.def157
-rw-r--r--src/backends/aarch64_retval.c376
-rw-r--r--src/backends/aarch64_symbol.c87
-rw-r--r--src/backends/alpha_auxv.c49
-rw-r--r--src/backends/alpha_corenote.c70
-rw-r--r--src/backends/alpha_init.c70
-rw-r--r--src/backends/alpha_regs.c164
-rw-r--r--src/backends/alpha_reloc.def63
-rw-r--r--src/backends/alpha_retval.c150
-rw-r--r--src/backends/alpha_symbol.c156
-rw-r--r--src/backends/arm_attrs.c245
-rw-r--r--src/backends/arm_auxv.c49
-rw-r--r--src/backends/arm_cfi.c90
-rw-r--r--src/backends/arm_corenote.c94
-rw-r--r--src/backends/arm_init.c76
-rw-r--r--src/backends/arm_initreg.c92
-rw-r--r--src/backends/arm_regs.c120
-rw-r--r--src/backends/arm_reloc.def157
-rw-r--r--src/backends/arm_retval.c127
-rw-r--r--src/backends/arm_symbol.c131
-rw-r--r--src/backends/common-reloc.c146
-rw-r--r--src/backends/i386_auxv.c52
-rw-r--r--src/backends/i386_cfi.c68
-rw-r--r--src/backends/i386_corenote.c138
-rw-r--r--src/backends/i386_init.c71
-rw-r--r--src/backends/i386_initreg.c79
-rw-r--r--src/backends/i386_regs.c152
-rw-r--r--src/backends/i386_reloc.def70
-rw-r--r--src/backends/i386_retval.c141
-rw-r--r--src/backends/i386_symbol.c75
-rw-r--r--src/backends/i386_syscall.c50
-rw-r--r--src/backends/ia64_init.c67
-rw-r--r--src/backends/ia64_regs.c273
-rw-r--r--src/backends/ia64_reloc.def113
-rw-r--r--src/backends/ia64_retval.c363
-rw-r--r--src/backends/ia64_symbol.c157
-rw-r--r--src/backends/libebl_CPU.h76
-rw-r--r--src/backends/linux-core-note.c299
-rw-r--r--src/backends/ppc64_corenote.c2
-rw-r--r--src/backends/ppc64_init.c109
-rw-r--r--src/backends/ppc64_reloc.def161
-rw-r--r--src/backends/ppc64_resolve_sym.c63
-rw-r--r--src/backends/ppc64_retval.c195
-rw-r--r--src/backends/ppc64_symbol.c130
-rw-r--r--src/backends/ppc_attrs.c89
-rw-r--r--src/backends/ppc_auxv.c55
-rw-r--r--src/backends/ppc_cfi.c77
-rw-r--r--src/backends/ppc_corenote.c134
-rw-r--r--src/backends/ppc_init.c74
-rw-r--r--src/backends/ppc_initreg.c114
-rw-r--r--src/backends/ppc_regs.c200
-rw-r--r--src/backends/ppc_reloc.def137
-rw-r--r--src/backends/ppc_retval.c191
-rw-r--r--src/backends/ppc_symbol.c165
-rw-r--r--src/backends/ppc_syscall.c53
-rw-r--r--src/backends/s390_cfi.c65
-rw-r--r--src/backends/s390_corenote.c189
-rw-r--r--src/backends/s390_init.c80
-rw-r--r--src/backends/s390_initreg.c95
-rw-r--r--src/backends/s390_regs.c146
-rw-r--r--src/backends/s390_reloc.def91
-rw-r--r--src/backends/s390_retval.c144
-rw-r--r--src/backends/s390_symbol.c56
-rw-r--r--src/backends/s390_unwind.c139
-rw-r--r--src/backends/s390x_corenote.c2
-rw-r--r--src/backends/sh_corenote.c88
-rw-r--r--src/backends/sh_init.c64
-rw-r--r--src/backends/sh_regs.c191
-rw-r--r--src/backends/sh_reloc.def67
-rw-r--r--src/backends/sh_retval.c131
-rw-r--r--src/backends/sh_symbol.c94
-rw-r--r--src/backends/sparc64_corenote.c2
-rw-r--r--src/backends/sparc_auxv.c46
-rw-r--r--src/backends/sparc_corenote.c112
-rw-r--r--src/backends/sparc_init.c76
-rw-r--r--src/backends/sparc_regs.c111
-rw-r--r--src/backends/sparc_reloc.def121
-rw-r--r--src/backends/sparc_retval.c159
-rw-r--r--src/backends/sparc_symbol.c148
-rw-r--r--src/backends/tilegx_corenote.c64
-rw-r--r--src/backends/tilegx_init.c60
-rw-r--r--src/backends/tilegx_regs.c129
-rw-r--r--src/backends/tilegx_reloc.def120
-rw-r--r--src/backends/tilegx_retval.c154
-rw-r--r--src/backends/tilegx_symbol.c57
-rw-r--r--src/backends/x86_64_cfi.c63
-rw-r--r--src/backends/x86_64_corenote.c112
-rw-r--r--src/backends/x86_64_init.c68
-rw-r--r--src/backends/x86_64_initreg.c73
-rw-r--r--src/backends/x86_64_regs.c185
-rw-r--r--src/backends/x86_64_reloc.def63
-rw-r--r--src/backends/x86_64_retval.c194
-rw-r--r--src/backends/x86_64_symbol.c60
-rw-r--r--src/backends/x86_64_syscall.c50
-rw-r--r--src/backends/x86_corenote.c51
-rw-r--r--src/config.h110
-rw-r--r--src/config.h.in105
-rwxr-xr-xsrc/config.status1403
-rw-r--r--src/config/ChangeLog195
-rw-r--r--src/config/Makefile445
-rw-r--r--src/config/Makefile.am51
-rw-r--r--src/config/Makefile.in445
-rwxr-xr-xsrc/config/ar-lib270
-rwxr-xr-xsrc/config/compile347
-rwxr-xr-xsrc/config/config.guess1420
-rwxr-xr-xsrc/config/config.sub1798
-rwxr-xr-xsrc/config/depcomp791
-rw-r--r--src/config/elfutils.spec.in815
-rw-r--r--src/config/eu.am61
-rwxr-xr-xsrc/config/install-sh527
-rw-r--r--src/config/known-dwarf.awk72
-rwxr-xr-xsrc/config/missing215
-rwxr-xr-xsrc/config/test-driver139
-rw-r--r--src/config/version.h.in38
-rwxr-xr-xsrc/config/ylwrap247
-rwxr-xr-xsrc/configure8226
-rw-r--r--src/configure.ac329
-rw-r--r--src/debugpred.h (renamed from src/src/debugpred.h)0
-rw-r--r--src/elf32-i386.script (renamed from src/src/elf32-i386.script)0
-rw-r--r--src/elfcmp.c (renamed from src/src/elfcmp.c)0
-rw-r--r--src/elflint.c (renamed from src/src/elflint.c)0
-rw-r--r--src/elfutils.spec815
-rw-r--r--src/findtextrel.c (renamed from src/src/findtextrel.c)0
-rw-r--r--src/i386_ld.c (renamed from src/src/i386_ld.c)0
-rw-r--r--src/ld.c (renamed from src/src/ld.c)0
-rw-r--r--src/ld.h (renamed from src/src/ld.h)0
-rw-r--r--src/ldgeneric.c (renamed from src/src/ldgeneric.c)0
-rw-r--r--src/ldlex.c (renamed from src/src/ldlex.c)0
-rw-r--r--src/ldlex.l (renamed from src/src/ldlex.l)0
-rw-r--r--src/ldscript.c (renamed from src/src/ldscript.c)0
-rw-r--r--src/ldscript.h (renamed from src/src/ldscript.h)0
-rw-r--r--src/ldscript.y (renamed from src/src/ldscript.y)0
-rw-r--r--src/lib/ChangeLog156
-rw-r--r--src/lib/Makefile598
-rw-r--r--src/lib/Makefile.am46
-rw-r--r--src/lib/Makefile.in598
-rw-r--r--src/lib/color.c230
-rw-r--r--src/lib/crc32.c98
-rw-r--r--src/lib/crc32_file.c91
-rw-r--r--src/lib/dynamicsizehash.c332
-rw-r--r--src/lib/dynamicsizehash.h127
-rw-r--r--src/lib/eu-config.h189
-rw-r--r--src/lib/fixedsizehash.h267
-rw-r--r--src/lib/list.h100
-rw-r--r--src/lib/md5.c454
-rw-r--r--src/lib/md5.h110
-rw-r--r--src/lib/next_prime.c66
-rw-r--r--src/lib/sha1.c391
-rw-r--r--src/lib/sha1.h93
-rw-r--r--src/lib/system.h185
-rw-r--r--src/lib/xmalloc.c84
-rw-r--r--src/lib/xstrdup.c43
-rw-r--r--src/lib/xstrndup.c47
-rw-r--r--src/libasm/ChangeLog141
-rw-r--r--src/libasm/Makefile772
-rw-r--r--src/libasm/Makefile.am87
-rw-r--r--src/libasm/Makefile.in772
-rw-r--r--src/libasm/asm_abort.c61
-rw-r--r--src/libasm/asm_addint16.c32
-rw-r--r--src/libasm/asm_addint32.c32
-rw-r--r--src/libasm/asm_addint64.c32
-rw-r--r--src/libasm/asm_addint8.c123
-rw-r--r--src/libasm/asm_addsleb128.c99
-rw-r--r--src/libasm/asm_addstrz.c128
-rw-r--r--src/libasm/asm_adduint16.c32
-rw-r--r--src/libasm/asm_adduint32.c32
-rw-r--r--src/libasm/asm_adduint64.c32
-rw-r--r--src/libasm/asm_adduint8.c56
-rw-r--r--src/libasm/asm_adduleb128.c95
-rw-r--r--src/libasm/asm_align.c179
-rw-r--r--src/libasm/asm_begin.c184
-rw-r--r--src/libasm/asm_end.c613
-rw-r--r--src/libasm/asm_error.c96
-rw-r--r--src/libasm/asm_fill.c77
-rw-r--r--src/libasm/asm_getelf.c44
-rw-r--r--src/libasm/asm_newabssym.c136
-rw-r--r--src/libasm/asm_newcomsym.c117
-rw-r--r--src/libasm/asm_newscn.c215
-rw-r--r--src/libasm/asm_newscn_ingrp.c81
-rw-r--r--src/libasm/asm_newscngrp.c105
-rw-r--r--src/libasm/asm_newsubscn.c99
-rw-r--r--src/libasm/asm_newsym.c138
-rw-r--r--src/libasm/asm_scngrp_newsignature.c48
-rw-r--r--src/libasm/disasm_begin.c64
-rw-r--r--src/libasm/disasm_cb.c179
-rw-r--r--src/libasm/disasm_end.c45
-rw-r--r--src/libasm/disasm_str.c72
-rw-r--r--src/libasm/libasm.h202
-rw-r--r--src/libasm/libasm.map38
-rw-r--r--src/libasm/libasmP.h307
-rw-r--r--src/libasm/symbolhash.c54
-rw-r--r--src/libasm/symbolhash.h40
-rw-r--r--src/libcpu/ChangeLog393
-rw-r--r--src/libcpu/Makefile672
-rw-r--r--src/libcpu/Makefile.am88
-rw-r--r--src/libcpu/Makefile.in672
-rw-r--r--src/libcpu/defs/i386970
-rw-r--r--src/libcpu/i386_data.h1418
-rw-r--r--src/libcpu/i386_dis.h1657
-rw-r--r--src/libcpu/i386_disasm.c1149
-rw-r--r--src/libcpu/i386_gendis.c72
-rw-r--r--src/libcpu/i386_lex.c2015
-rw-r--r--src/libcpu/i386_lex.l129
-rw-r--r--src/libcpu/i386_parse.c3358
-rw-r--r--src/libcpu/i386_parse.h114
-rw-r--r--src/libcpu/i386_parse.y1687
-rw-r--r--src/libcpu/memory-access.h182
-rw-r--r--src/libcpu/x86_64_dis.h1632
-rw-r--r--src/libcpu/x86_64_disasm.c34
-rwxr-xr-xsrc/libdw/Android.mk206
-rw-r--r--src/libdw/ChangeLog2312
-rw-r--r--src/libdw/Makefile986
-rw-r--r--src/libdw/Makefile.am142
-rw-r--r--src/libdw/Makefile.in986
-rw-r--r--src/libdw/cfi.c504
-rw-r--r--src/libdw/cfi.h235
-rw-r--r--src/libdw/cie.c196
-rw-r--r--src/libdw/dwarf.h798
-rw-r--r--src/libdw/dwarf_abbrev_hash.c45
-rw-r--r--src/libdw/dwarf_abbrev_hash.h39
-rw-r--r--src/libdw/dwarf_abbrevhaschildren.c44
-rw-r--r--src/libdw/dwarf_addrdie.c54
-rw-r--r--src/libdw/dwarf_aggregate_size.c244
-rw-r--r--src/libdw/dwarf_arrayorder.c50
-rw-r--r--src/libdw/dwarf_attr.c55
-rw-r--r--src/libdw/dwarf_attr_integrate.c60
-rw-r--r--src/libdw/dwarf_begin.c101
-rw-r--r--src/libdw/dwarf_begin_elf.c395
-rw-r--r--src/libdw/dwarf_bitoffset.c50
-rw-r--r--src/libdw/dwarf_bitsize.c50
-rw-r--r--src/libdw/dwarf_bytesize.c50
-rw-r--r--src/libdw/dwarf_cfi_addrframe.c57
-rw-r--r--src/libdw/dwarf_cfi_end.c49
-rw-r--r--src/libdw/dwarf_child.c176
-rw-r--r--src/libdw/dwarf_cu_die.c68
-rw-r--r--src/libdw/dwarf_cu_getdwarf.c47
-rw-r--r--src/libdw/dwarf_cuoffset.c45
-rw-r--r--src/libdw/dwarf_decl_column.c44
-rw-r--r--src/libdw/dwarf_decl_file.c89
-rw-r--r--src/libdw/dwarf_decl_line.c70
-rw-r--r--src/libdw/dwarf_diecu.c55
-rw-r--r--src/libdw/dwarf_diename.c48
-rw-r--r--src/libdw/dwarf_dieoffset.c46
-rw-r--r--src/libdw/dwarf_end.c129
-rw-r--r--src/libdw/dwarf_entry_breakpoints.c157
-rw-r--r--src/libdw/dwarf_entrypc.c50
-rw-r--r--src/libdw/dwarf_error.c122
-rw-r--r--src/libdw/dwarf_filesrc.c51
-rw-r--r--src/libdw/dwarf_formaddr.c59
-rw-r--r--src/libdw/dwarf_formblock.c95
-rw-r--r--src/libdw/dwarf_formflag.c61
-rw-r--r--src/libdw/dwarf_formref.c113
-rw-r--r--src/libdw/dwarf_formref_die.c121
-rw-r--r--src/libdw/dwarf_formsdata.c98
-rw-r--r--src/libdw/dwarf_formstring.c76
-rw-r--r--src/libdw/dwarf_formudata.c233
-rw-r--r--src/libdw/dwarf_frame_cfa.c80
-rw-r--r--src/libdw/dwarf_frame_info.c53
-rw-r--r--src/libdw/dwarf_frame_register.c123
-rw-r--r--src/libdw/dwarf_func_inline.c101
-rw-r--r--src/libdw/dwarf_getabbrev.c165
-rw-r--r--src/libdw/dwarf_getabbrevattr.c80
-rw-r--r--src/libdw/dwarf_getabbrevcode.c44
-rw-r--r--src/libdw/dwarf_getabbrevtag.c44
-rw-r--r--src/libdw/dwarf_getalt.c42
-rw-r--r--src/libdw/dwarf_getarange_addr.c62
-rw-r--r--src/libdw/dwarf_getarangeinfo.c53
-rw-r--r--src/libdw/dwarf_getaranges.c265
-rw-r--r--src/libdw/dwarf_getattrcnt.c48
-rw-r--r--src/libdw/dwarf_getattrs.c120
-rw-r--r--src/libdw/dwarf_getcfi.c73
-rw-r--r--src/libdw/dwarf_getcfi_elf.c320
-rw-r--r--src/libdw/dwarf_getelf.c48
-rw-r--r--src/libdw/dwarf_getfuncs.c118
-rw-r--r--src/libdw/dwarf_getlocation.c853
-rw-r--r--src/libdw/dwarf_getlocation_attr.c122
-rw-r--r--src/libdw/dwarf_getlocation_die.c78
-rw-r--r--src/libdw/dwarf_getlocation_implicit_pointer.c79
-rw-r--r--src/libdw/dwarf_getmacros.c548
-rw-r--r--src/libdw/dwarf_getpubnames.c245
-rw-r--r--src/libdw/dwarf_getscopes.c201
-rw-r--r--src/libdw/dwarf_getscopes_die.c74
-rw-r--r--src/libdw/dwarf_getscopevar.c154
-rw-r--r--src/libdw/dwarf_getsrc_die.c78
-rw-r--r--src/libdw/dwarf_getsrc_file.c178
-rw-r--r--src/libdw/dwarf_getsrcdirs.c48
-rw-r--r--src/libdw/dwarf_getsrcfiles.c76
-rw-r--r--src/libdw/dwarf_getsrclines.c881
-rw-r--r--src/libdw/dwarf_getstring.c66
-rw-r--r--src/libdw/dwarf_hasattr.c85
-rw-r--r--src/libdw/dwarf_hasattr_integrate.c59
-rw-r--r--src/libdw/dwarf_haschildren.c52
-rw-r--r--src/libdw/dwarf_hasform.c47
-rw-r--r--src/libdw/dwarf_haspc.c54
-rw-r--r--src/libdw/dwarf_highpc.c68
-rw-r--r--src/libdw/dwarf_lineaddr.c46
-rw-r--r--src/libdw/dwarf_linebeginstatement.c46
-rw-r--r--src/libdw/dwarf_lineblock.c46
-rw-r--r--src/libdw/dwarf_linecol.c46
-rw-r--r--src/libdw/dwarf_linediscriminator.c45
-rw-r--r--src/libdw/dwarf_lineendsequence.c46
-rw-r--r--src/libdw/dwarf_lineepiloguebegin.c46
-rw-r--r--src/libdw/dwarf_lineisa.c45
-rw-r--r--src/libdw/dwarf_lineno.c46
-rw-r--r--src/libdw/dwarf_lineop_index.c45
-rw-r--r--src/libdw/dwarf_lineprologueend.c46
-rw-r--r--src/libdw/dwarf_linesrc.c56
-rw-r--r--src/libdw/dwarf_lowpc.c49
-rw-r--r--src/libdw/dwarf_macro_getparamcnt.c43
-rw-r--r--src/libdw/dwarf_macro_getsrcfiles.c88
-rw-r--r--src/libdw/dwarf_macro_opcode.c46
-rw-r--r--src/libdw/dwarf_macro_param.c46
-rw-r--r--src/libdw/dwarf_macro_param1.c48
-rw-r--r--src/libdw/dwarf_macro_param2.c55
-rw-r--r--src/libdw/dwarf_next_cfi.c246
-rw-r--r--src/libdw/dwarf_nextcu.c199
-rw-r--r--src/libdw/dwarf_offabbrev.c51
-rw-r--r--src/libdw/dwarf_offdie.c90
-rw-r--r--src/libdw/dwarf_onearange.c50
-rw-r--r--src/libdw/dwarf_onesrcline.c50
-rw-r--r--src/libdw/dwarf_peel_type.c74
-rw-r--r--src/libdw/dwarf_ranges.c190
-rw-r--r--src/libdw/dwarf_setalt.c40
-rw-r--r--src/libdw/dwarf_siblingof.c136
-rw-r--r--src/libdw/dwarf_sig8_hash.c41
-rw-r--r--src/libdw/dwarf_sig8_hash.h38
-rw-r--r--src/libdw/dwarf_srclang.c51
-rw-r--r--src/libdw/dwarf_tag.c95
-rw-r--r--src/libdw/dwarf_whatattr.c43
-rw-r--r--src/libdw/dwarf_whatform.c43
-rw-r--r--src/libdw/encoded-value.h197
-rw-r--r--src/libdw/fde.c297
-rw-r--r--src/libdw/frame-cache.c66
-rw-r--r--src/libdw/known-dwarf.h629
-rw-r--r--src/libdw/libdw.h1026
-rw-r--r--src/libdw/libdw.map324
-rw-r--r--src/libdw/libdwP.h802
-rw-r--r--src/libdw/libdw_alloc.c78
-rw-r--r--src/libdw/libdw_findcu.c172
-rw-r--r--src/libdw/libdw_form.c132
-rw-r--r--src/libdw/libdw_visit_scopes.c147
-rw-r--r--src/libdw/memory-access.h272
-rwxr-xr-xsrc/libdwelf/Android.mk95
-rw-r--r--src/libdwelf/ChangeLog28
-rw-r--r--src/libdwelf/Makefile658
-rw-r--r--src/libdwelf/Makefile.am55
-rw-r--r--src/libdwelf/Makefile.in658
-rw-r--r--src/libdwelf/dwelf_dwarf_gnu_debugaltlink.c62
-rw-r--r--src/libdwelf/dwelf_elf_gnu_build_id.c147
-rw-r--r--src/libdwelf/dwelf_elf_gnu_debuglink.c99
-rw-r--r--src/libdwelf/libdwelf.h72
-rw-r--r--src/libdwelf/libdwelfP.h42
-rwxr-xr-xsrc/libdwfl/Android.mk167
-rw-r--r--src/libdwfl/ChangeLog2345
-rw-r--r--src/libdwfl/Makefile801
-rw-r--r--src/libdwfl/Makefile.am94
-rw-r--r--src/libdwfl/Makefile.in801
-rw-r--r--src/libdwfl/argp-std.c364
-rw-r--r--src/libdwfl/bzip2.c4
-rw-r--r--src/libdwfl/core-file.c589
-rw-r--r--src/libdwfl/cu.c312
-rw-r--r--src/libdwfl/derelocate.c401
-rw-r--r--src/libdwfl/dwfl_addrdie.c36
-rw-r--r--src/libdwfl/dwfl_addrdwarf.c37
-rw-r--r--src/libdwfl/dwfl_addrmodule.c38
-rw-r--r--src/libdwfl/dwfl_begin.c51
-rw-r--r--src/libdwfl/dwfl_build_id_find_debuginfo.c128
-rw-r--r--src/libdwfl/dwfl_build_id_find_elf.c174
-rw-r--r--src/libdwfl/dwfl_cumodule.c36
-rw-r--r--src/libdwfl/dwfl_dwarf_line.c43
-rw-r--r--src/libdwfl/dwfl_end.c54
-rw-r--r--src/libdwfl/dwfl_error.c159
-rw-r--r--src/libdwfl/dwfl_frame.c474
-rw-r--r--src/libdwfl/dwfl_frame_pc.c64
-rw-r--r--src/libdwfl/dwfl_frame_regs.c57
-rw-r--r--src/libdwfl/dwfl_getdwarf.c59
-rw-r--r--src/libdwfl/dwfl_getmodules.c92
-rw-r--r--src/libdwfl/dwfl_getsrc.c36
-rw-r--r--src/libdwfl/dwfl_getsrclines.c48
-rw-r--r--src/libdwfl/dwfl_line_comp_dir.c43
-rw-r--r--src/libdwfl/dwfl_linecu.c41
-rw-r--r--src/libdwfl/dwfl_lineinfo.c55
-rw-r--r--src/libdwfl/dwfl_linemodule.c38
-rw-r--r--src/libdwfl/dwfl_module.c222
-rw-r--r--src/libdwfl/dwfl_module_addrdie.c45
-rw-r--r--src/libdwfl/dwfl_module_addrname.c38
-rw-r--r--src/libdwfl/dwfl_module_addrsym.c289
-rw-r--r--src/libdwfl/dwfl_module_build_id.c117
-rw-r--r--src/libdwfl/dwfl_module_dwarf_cfi.c71
-rw-r--r--src/libdwfl/dwfl_module_eh_cfi.c57
-rw-r--r--src/libdwfl/dwfl_module_getdwarf.c1358
-rw-r--r--src/libdwfl/dwfl_module_getelf.c67
-rw-r--r--src/libdwfl/dwfl_module_getsrc.c81
-rw-r--r--src/libdwfl/dwfl_module_getsrc_file.c167
-rw-r--r--src/libdwfl/dwfl_module_getsym.c216
-rw-r--r--src/libdwfl/dwfl_module_info.c61
-rw-r--r--src/libdwfl/dwfl_module_nextcu.c44
-rw-r--r--src/libdwfl/dwfl_module_register_names.c79
-rw-r--r--src/libdwfl/dwfl_module_report_build_id.c80
-rw-r--r--src/libdwfl/dwfl_module_return_value_location.c64
-rw-r--r--src/libdwfl/dwfl_nextcu.c82
-rw-r--r--src/libdwfl/dwfl_onesrcline.c56
-rw-r--r--src/libdwfl/dwfl_report_elf.c338
-rw-r--r--src/libdwfl/dwfl_segment_report_module.c922
-rw-r--r--src/libdwfl/dwfl_validate_address.c61
-rw-r--r--src/libdwfl/dwfl_version.c36
-rw-r--r--src/libdwfl/elf-from-memory.c370
-rw-r--r--src/libdwfl/find-debuginfo.c351
-rw-r--r--src/libdwfl/frame_unwind.c725
-rw-r--r--src/libdwfl/gzip.c295
-rw-r--r--src/libdwfl/image-header.c101
-rw-r--r--src/libdwfl/libdwfl.h812
-rw-r--r--src/libdwfl/libdwflP.h760
-rw-r--r--src/libdwfl/libdwfl_crc32.c35
-rw-r--r--src/libdwfl/libdwfl_crc32_file.c36
-rw-r--r--src/libdwfl/lines.c52
-rw-r--r--src/libdwfl/link_map.c1021
-rw-r--r--src/libdwfl/linux-core-attach.c427
-rw-r--r--src/libdwfl/linux-kernel-modules.c929
-rw-r--r--src/libdwfl/linux-pid-attach.c475
-rw-r--r--src/libdwfl/linux-proc-maps.c422
-rw-r--r--src/libdwfl/lzma.c4
-rw-r--r--src/libdwfl/offline.c311
-rw-r--r--src/libdwfl/open.c182
-rw-r--r--src/libdwfl/relocate.c683
-rw-r--r--src/libdwfl/segment.c332
-rwxr-xr-xsrc/libebl/Android.mk135
-rw-r--r--src/libebl/ChangeLog988
-rw-r--r--src/libebl/Makefile763
-rw-r--r--src/libebl/Makefile.am64
-rw-r--r--src/libebl/Makefile.in763
-rw-r--r--src/libebl/ebl-hooks.h195
-rw-r--r--src/libebl/ebl_check_special_section.c44
-rw-r--r--src/libebl/ebl_check_special_symbol.c49
-rw-r--r--src/libebl/ebl_syscall_abi.c45
-rw-r--r--src/libebl/eblabicfi.c42
-rw-r--r--src/libebl/eblauxvinfo.c103
-rw-r--r--src/libebl/eblbackendname.c43
-rw-r--r--src/libebl/eblbsspltp.c42
-rw-r--r--src/libebl/eblcheckobjattr.c60
-rw-r--r--src/libebl/eblcheckreloctargettype.c46
-rw-r--r--src/libebl/eblclosebackend.c54
-rw-r--r--src/libebl/eblcopyrelocp.c43
-rw-r--r--src/libebl/eblcorenote.c86
-rw-r--r--src/libebl/eblcorenotetypename.c109
-rw-r--r--src/libebl/ebldebugscnp.c44
-rw-r--r--src/libebl/ebldwarftoregno.c41
-rw-r--r--src/libebl/ebldynamictagcheck.c56
-rw-r--r--src/libebl/ebldynamictagname.c113
-rw-r--r--src/libebl/eblelfclass.c42
-rw-r--r--src/libebl/eblelfdata.c42
-rw-r--r--src/libebl/eblelfmachine.c42
-rw-r--r--src/libebl/eblgotpcreloccheck.c44
-rw-r--r--src/libebl/eblgstrtab.c365
-rw-r--r--src/libebl/eblinitreg.c58
-rw-r--r--src/libebl/eblmachineflagcheck.c43
-rw-r--r--src/libebl/eblmachineflagname.c91
-rw-r--r--src/libebl/eblmachinesectionflagcheck.c42
-rw-r--r--src/libebl/eblnonerelocp.c43
-rw-r--r--src/libebl/eblnormalizepc.c40
-rw-r--r--src/libebl/eblobjecttypename.c63
-rw-r--r--src/libebl/eblobjnote.c220
-rw-r--r--src/libebl/eblobjnotetypename.c80
-rw-r--r--src/libebl/eblopenbackend.c763
-rw-r--r--src/libebl/eblosabiname.c84
-rw-r--r--src/libebl/eblreginfo.c50
-rw-r--r--src/libebl/eblrelativerelocp.c43
-rw-r--r--src/libebl/eblrelocsimpletype.c42
-rw-r--r--src/libebl/eblreloctypecheck.c43
-rw-r--r--src/libebl/eblreloctypename.c53
-rw-r--r--src/libebl/eblrelocvaliduse.c43
-rw-r--r--src/libebl/eblresolvesym.c43
-rw-r--r--src/libebl/eblretval.c44
-rw-r--r--src/libebl/eblsectionname.c96
-rw-r--r--src/libebl/eblsectionstripp.c67
-rw-r--r--src/libebl/eblsectiontypename.c127
-rw-r--r--src/libebl/eblsegmenttypename.c90
-rw-r--r--src/libebl/eblshflagscombine.c44
-rw-r--r--src/libebl/eblstother.c43
-rw-r--r--src/libebl/eblstrtab.c358
-rw-r--r--src/libebl/eblsymbolbindingname.c78
-rw-r--r--src/libebl/eblsymboltypename.c84
-rw-r--r--src/libebl/eblsysvhashentrysize.c42
-rw-r--r--src/libebl/eblunwind.c43
-rw-r--r--src/libebl/eblwstrtab.c359
-rw-r--r--src/libebl/libebl.h466
-rw-r--r--src/libebl/libeblP.h97
-rwxr-xr-xsrc/libelf/Android.mk188
-rw-r--r--src/libelf/ChangeLog1036
-rw-r--r--src/libelf/Makefile951
-rw-r--r--src/libelf/Makefile.am124
-rw-r--r--src/libelf/Makefile.in951
-rw-r--r--src/libelf/abstract.h312
-rw-r--r--src/libelf/common.h163
-rw-r--r--src/libelf/dl-hash.h82
-rw-r--r--src/libelf/elf-knowledge.h104
-rw-r--r--src/libelf/elf.h3363
-rw-r--r--src/libelf/elf32_checksum.c169
-rw-r--r--src/libelf/elf32_fsize.c71
-rw-r--r--src/libelf/elf32_getehdr.c99
-rw-r--r--src/libelf/elf32_getphdr.c257
-rw-r--r--src/libelf/elf32_getshdr.c287
-rw-r--r--src/libelf/elf32_newehdr.c92
-rw-r--r--src/libelf/elf32_newphdr.c182
-rw-r--r--src/libelf/elf32_offscn.c101
-rw-r--r--src/libelf/elf32_updatefile.c808
-rw-r--r--src/libelf/elf32_updatenull.c417
-rw-r--r--src/libelf/elf32_xlatetof.c123
-rw-r--r--src/libelf/elf32_xlatetom.c128
-rw-r--r--src/libelf/elf64_checksum.c31
-rw-r--r--src/libelf/elf64_fsize.c31
-rw-r--r--src/libelf/elf64_getehdr.c31
-rw-r--r--src/libelf/elf64_getphdr.c31
-rw-r--r--src/libelf/elf64_getshdr.c31
-rw-r--r--src/libelf/elf64_newehdr.c31
-rw-r--r--src/libelf/elf64_newphdr.c31
-rw-r--r--src/libelf/elf64_offscn.c31
-rw-r--r--src/libelf/elf64_updatefile.c30
-rw-r--r--src/libelf/elf64_updatenull.c30
-rw-r--r--src/libelf/elf64_xlatetof.c31
-rw-r--r--src/libelf/elf64_xlatetom.c31
-rw-r--r--src/libelf/elf_begin.c1135
-rw-r--r--src/libelf/elf_clone.c81
-rw-r--r--src/libelf/elf_cntl.c83
-rw-r--r--src/libelf/elf_end.c232
-rw-r--r--src/libelf/elf_error.c309
-rw-r--r--src/libelf/elf_fill.c47
-rw-r--r--src/libelf/elf_flagdata.c71
-rw-r--r--src/libelf/elf_flagehdr.c68
-rw-r--r--src/libelf/elf_flagelf.c70
-rw-r--r--src/libelf/elf_flagphdr.c68
-rw-r--r--src/libelf/elf_flagscn.c68
-rw-r--r--src/libelf/elf_flagshdr.c68
-rw-r--r--src/libelf/elf_getarhdr.c74
-rw-r--r--src/libelf/elf_getaroff.c54
-rw-r--r--src/libelf/elf_getarsym.c309
-rw-r--r--src/libelf/elf_getbase.c45
-rw-r--r--src/libelf/elf_getdata.c487
-rw-r--r--src/libelf/elf_getdata_rawchunk.c177
-rw-r--r--src/libelf/elf_getident.c63
-rw-r--r--src/libelf/elf_getphdrnum.c136
-rw-r--r--src/libelf/elf_getscn.c89
-rw-r--r--src/libelf/elf_getshdrnum.c90
-rw-r--r--src/libelf/elf_getshdrstrndx.c229
-rw-r--r--src/libelf/elf_gnu_hash.c47
-rw-r--r--src/libelf/elf_hash.c45
-rw-r--r--src/libelf/elf_kind.c45
-rw-r--r--src/libelf/elf_memory.c52
-rw-r--r--src/libelf/elf_ndxscn.c48
-rw-r--r--src/libelf/elf_newdata.c109
-rw-r--r--src/libelf/elf_newscn.c163
-rw-r--r--src/libelf/elf_next.c73
-rw-r--r--src/libelf/elf_nextscn.c89
-rw-r--r--src/libelf/elf_rand.c65
-rw-r--r--src/libelf/elf_rawdata.c78
-rw-r--r--src/libelf/elf_rawfile.c69
-rw-r--r--src/libelf/elf_readall.c152
-rw-r--r--src/libelf/elf_scnshndx.c50
-rw-r--r--src/libelf/elf_strptr.c161
-rw-r--r--src/libelf/elf_update.c199
-rw-r--r--src/libelf/elf_version.c70
-rw-r--r--src/libelf/exttypes.h102
-rw-r--r--src/libelf/gelf.h332
-rw-r--r--src/libelf/gelf_checksum.c49
-rw-r--r--src/libelf/gelf_fsize.c111
-rw-r--r--src/libelf/gelf_getauxv.c110
-rw-r--r--src/libelf/gelf_getclass.c45
-rw-r--r--src/libelf/gelf_getdyn.c111
-rw-r--r--src/libelf/gelf_getehdr.c111
-rw-r--r--src/libelf/gelf_getlib.c80
-rw-r--r--src/libelf/gelf_getmove.c82
-rw-r--r--src/libelf/gelf_getnote.c104
-rw-r--r--src/libelf/gelf_getphdr.c142
-rw-r--r--src/libelf/gelf_getrel.c102
-rw-r--r--src/libelf/gelf_getrela.c103
-rw-r--r--src/libelf/gelf_getshdr.c105
-rw-r--r--src/libelf/gelf_getsym.c117
-rw-r--r--src/libelf/gelf_getsyminfo.c80
-rw-r--r--src/libelf/gelf_getsymshndx.c140
-rw-r--r--src/libelf/gelf_getverdaux.c82
-rw-r--r--src/libelf/gelf_getverdef.c81
-rw-r--r--src/libelf/gelf_getvernaux.c84
-rw-r--r--src/libelf/gelf_getverneed.c84
-rw-r--r--src/libelf/gelf_getversym.c89
-rw-r--r--src/libelf/gelf_newehdr.c48
-rw-r--r--src/libelf/gelf_newphdr.c48
-rw-r--r--src/libelf/gelf_offscn.c57
-rw-r--r--src/libelf/gelf_update_auxv.c114
-rw-r--r--src/libelf/gelf_update_dyn.c110
-rw-r--r--src/libelf/gelf_update_ehdr.c118
-rw-r--r--src/libelf/gelf_update_lib.c78
-rw-r--r--src/libelf/gelf_update_move.c80
-rw-r--r--src/libelf/gelf_update_phdr.c143
-rw-r--r--src/libelf/gelf_update_rel.c108
-rw-r--r--src/libelf/gelf_update_rela.c111
-rw-r--r--src/libelf/gelf_update_shdr.c111
-rw-r--r--src/libelf/gelf_update_sym.c119
-rw-r--r--src/libelf/gelf_update_syminfo.c86
-rw-r--r--src/libelf/gelf_update_symshndx.c149
-rw-r--r--src/libelf/gelf_update_verdaux.c81
-rw-r--r--src/libelf/gelf_update_verdef.c81
-rw-r--r--src/libelf/gelf_update_vernaux.c81
-rw-r--r--src/libelf/gelf_update_verneed.c81
-rw-r--r--src/libelf/gelf_update_versym.c80
-rw-r--r--src/libelf/gelf_xlate.c214
-rw-r--r--src/libelf/gelf_xlate.h56
-rw-r--r--src/libelf/gelf_xlatetof.c53
-rw-r--r--src/libelf/gelf_xlatetom.c53
-rw-r--r--src/libelf/gnuhash_xlate.h74
-rw-r--r--src/libelf/libelf.h396
-rw-r--r--src/libelf/libelf.map140
-rw-r--r--src/libelf/libelfP.h594
-rw-r--r--src/libelf/libelf_crc32.c35
-rw-r--r--src/libelf/libelf_next_prime.c33
-rw-r--r--src/libelf/nlist.c243
-rw-r--r--src/libelf/nlist.h56
-rw-r--r--src/libelf/note_xlate.h64
-rw-r--r--src/libelf/version_xlate.h220
-rw-r--r--src/libld_elf_i386.map (renamed from src/src/libld_elf_i386.map)0
-rw-r--r--src/m4/ChangeLog78
-rw-r--r--src/m4/Makefile425
-rw-r--r--src/m4/Makefile.am21
-rw-r--r--src/m4/Makefile.in425
-rw-r--r--src/m4/biarch.m447
-rw-r--r--src/m4/codeset.m423
-rw-r--r--src/m4/gettext.m4401
-rw-r--r--src/m4/iconv.m4268
-rw-r--r--src/m4/lcmessage.m432
-rw-r--r--src/m4/nls.m431
-rw-r--r--src/m4/po.m4452
-rw-r--r--src/m4/progtest.m492
-rw-r--r--src/m4/zip.m418
-rw-r--r--src/make-debug-archive.in (renamed from src/src/make-debug-archive.in)0
-rw-r--r--src/nm.c (renamed from src/src/nm.c)0
-rw-r--r--src/none_ld.c (renamed from src/src/none_ld.c)0
-rw-r--r--src/objdump.c (renamed from src/src/objdump.c)0
-rw-r--r--src/po/ChangeLog113
-rw-r--r--src/po/LINGUAS5
-rw-r--r--src/po/Makefile579
-rw-r--r--src/po/Makefile.in453
-rw-r--r--src/po/Makefile.in.in453
-rw-r--r--src/po/Makevars42
-rw-r--r--src/po/POTFILES37
-rw-r--r--src/po/POTFILES.in46
-rw-r--r--src/po/Rules-quot47
-rw-r--r--src/po/boldquot.sed10
-rw-r--r--src/po/de.gmobin21348 -> 0 bytes
-rw-r--r--src/po/de.po6325
-rw-r--r--src/po/elfutils.pot6241
-rw-r--r--src/po/en@boldquot.gmobin141242 -> 0 bytes
-rw-r--r--src/po/en@boldquot.header25
-rw-r--r--src/po/en@boldquot.po6700
-rw-r--r--src/po/en@quot.gmobin139510 -> 0 bytes
-rw-r--r--src/po/en@quot.header22
-rw-r--r--src/po/en@quot.po6662
-rw-r--r--src/po/es.gmobin138873 -> 0 bytes
-rw-r--r--src/po/es.po6938
-rw-r--r--src/po/insert-header.sin23
-rw-r--r--src/po/ja.gmobin85302 -> 0 bytes
-rw-r--r--src/po/ja.po6589
-rw-r--r--src/po/pl.gmobin143489 -> 0 bytes
-rw-r--r--src/po/pl.po6853
-rw-r--r--src/po/quot.sed6
-rw-r--r--src/po/remove-potcdate.sin19
-rw-r--r--src/po/stamp-po1
-rw-r--r--src/po/uk.gmobin188793 -> 0 bytes
-rw-r--r--src/po/uk.po6915
-rw-r--r--src/ranlib.c (renamed from src/src/ranlib.c)0
-rw-r--r--src/readelf.c (renamed from src/src/readelf.c)0
-rw-r--r--src/sectionhash.c (renamed from src/src/sectionhash.c)0
-rw-r--r--src/sectionhash.h (renamed from src/src/sectionhash.h)0
-rw-r--r--src/size.c (renamed from src/src/size.c)0
-rw-r--r--src/src/ChangeLog3202
-rw-r--r--src/src/Makefile1041
-rw-r--r--src/src/Makefile.am168
-rw-r--r--src/src/Makefile.in1041
-rw-r--r--src/stack.c (renamed from src/src/stack.c)0
-rw-r--r--src/stamp-h11
-rw-r--r--src/strings.c (renamed from src/src/strings.c)0
-rw-r--r--src/strip.c (renamed from src/src/strip.c)0
-rw-r--r--src/symbolhash.c (renamed from src/src/symbolhash.c)0
-rw-r--r--src/symbolhash.h (renamed from src/src/symbolhash.h)0
-rw-r--r--src/tests/ChangeLog2114
-rw-r--r--src/tests/Makefile2932
-rw-r--r--src/tests/Makefile.am429
-rw-r--r--src/tests/Makefile.in2932
-rw-r--r--src/tests/addrcfi.c226
-rw-r--r--src/tests/addrscopes.c195
-rw-r--r--src/tests/aggregate_size.c83
-rw-r--r--src/tests/alldts.c267
-rw-r--r--src/tests/allfcts.c109
-rw-r--r--src/tests/allregs.c203
-rw-r--r--src/tests/arextract.c159
-rw-r--r--src/tests/arls.c107
-rw-r--r--src/tests/arsymtest.c136
-rw-r--r--src/tests/asm-tst1.c256
-rw-r--r--src/tests/asm-tst2.c278
-rw-r--r--src/tests/asm-tst3.c339
-rw-r--r--src/tests/asm-tst4.c104
-rw-r--r--src/tests/asm-tst5.c116
-rw-r--r--src/tests/asm-tst6.c150
-rw-r--r--src/tests/asm-tst7.c181
-rw-r--r--src/tests/asm-tst8.c189
-rw-r--r--src/tests/asm-tst9.c335
-rw-r--r--src/tests/backtrace-child.c240
-rw-r--r--src/tests/backtrace-data.c328
-rw-r--r--src/tests/backtrace-dwarf.c165
-rw-r--r--src/tests/backtrace-subr.sh152
-rw-r--r--src/tests/backtrace.aarch64.core.bz2bin7865 -> 0 bytes
-rwxr-xr-xsrc/tests/backtrace.aarch64.exec.bz2bin370058 -> 0 bytes
-rw-r--r--src/tests/backtrace.c479
-rw-r--r--src/tests/backtrace.i386.core.bz2bin8777 -> 0 bytes
-rw-r--r--src/tests/backtrace.i386.exec.bz2bin383356 -> 0 bytes
-rw-r--r--src/tests/backtrace.ppc.core.bz2bin46357 -> 0 bytes
-rw-r--r--src/tests/backtrace.ppc.exec.bz2bin352898 -> 0 bytes
-rw-r--r--src/tests/backtrace.s390.core.bz2bin7375 -> 0 bytes
-rw-r--r--src/tests/backtrace.s390.exec.bz2bin352692 -> 0 bytes
-rw-r--r--src/tests/backtrace.s390x.core.bz2bin7740 -> 0 bytes
-rw-r--r--src/tests/backtrace.s390x.exec.bz2bin347228 -> 0 bytes
-rw-r--r--src/tests/backtrace.x86_64.core.bz2bin11115 -> 0 bytes
-rw-r--r--src/tests/backtrace.x86_64.exec.bz2bin401581 -> 0 bytes
-rw-r--r--src/tests/buildid.c81
-rw-r--r--src/tests/cleanup-13.c316
-rwxr-xr-xsrc/tests/coverage.sh40
-rw-r--r--src/tests/debugaltlink.c83
-rw-r--r--src/tests/debuglink.c64
-rw-r--r--src/tests/deleted-lib.c27
-rw-r--r--src/tests/deleted.c50
-rw-r--r--src/tests/dwarf-getmacros.c144
-rw-r--r--src/tests/dwarf-getstring.c77
-rw-r--r--src/tests/dwfl-addr-sect.c80
-rw-r--r--src/tests/dwfl-bug-addr-overflow.c73
-rw-r--r--src/tests/dwfl-bug-fd-leak.c102
-rw-r--r--src/tests/dwfl-bug-getmodules.c66
-rw-r--r--src/tests/dwfl-bug-report.c48
-rw-r--r--src/tests/dwfl-report-elf-align.c72
-rw-r--r--src/tests/dwfllines.c164
-rw-r--r--src/tests/dwflmodtest.c287
-rw-r--r--src/tests/dwflsyms.c226
-rw-r--r--src/tests/early-offscn.c52
-rw-r--r--src/tests/ecp.c95
-rw-r--r--src/tests/find-prologues.c108
-rw-r--r--src/tests/funcretval.c106
-rw-r--r--src/tests/funcretval_test.c828
-rwxr-xr-xsrc/tests/funcretval_test_aarch64.bz2bin15644 -> 0 bytes
-rw-r--r--src/tests/funcscopes.c194
-rw-r--r--src/tests/get-aranges.c142
-rw-r--r--src/tests/get-files.c107
-rw-r--r--src/tests/get-lines.c137
-rw-r--r--src/tests/get-pubnames.c98
-rw-r--r--src/tests/hash.c45
-rw-r--r--src/tests/hello_aarch64.ko.bz2bin12768 -> 0 bytes
-rw-r--r--src/tests/hello_i386.ko.bz2bin47401 -> 0 bytes
-rw-r--r--src/tests/hello_ppc64.ko.bz2bin68189 -> 0 bytes
-rw-r--r--src/tests/hello_s390.ko.bz2bin109190 -> 0 bytes
-rw-r--r--src/tests/hello_x86_64.ko.bz2bin35106 -> 0 bytes
-rwxr-xr-xsrc/tests/libtestfile_multi_shared.so.bz2bin2547 -> 0 bytes
-rw-r--r--src/tests/line2addr.c148
-rw-r--r--src/tests/linkmap-cut-lib.so.bz2bin2151 -> 0 bytes
-rw-r--r--src/tests/linkmap-cut.bz2bin2633 -> 0 bytes
-rw-r--r--src/tests/linkmap-cut.core.bz2bin21343 -> 0 bytes
-rw-r--r--src/tests/low_high_pc.c109
-rw-r--r--src/tests/md5-sha1-test.c101
-rw-r--r--src/tests/msg_tst.c104
-rw-r--r--src/tests/newfile.c170
-rw-r--r--src/tests/newscn.c66
-rw-r--r--src/tests/rdwrmmap.c45
-rw-r--r--src/tests/rerequest_tag.c46
-rwxr-xr-xsrc/tests/run-addr2line-i-lex-test.sh71
-rwxr-xr-xsrc/tests/run-addr2line-i-test.sh147
-rwxr-xr-xsrc/tests/run-addr2line-test.sh74
-rwxr-xr-xsrc/tests/run-addrcfi.sh2650
-rwxr-xr-xsrc/tests/run-addrname-test.sh360
-rwxr-xr-xsrc/tests/run-addrscopes.sh43
-rwxr-xr-xsrc/tests/run-aggregate-size.sh105
-rwxr-xr-xsrc/tests/run-alldts.sh98
-rwxr-xr-xsrc/tests/run-allfcts-multi.sh56
-rwxr-xr-xsrc/tests/run-allfcts.sh94
-rwxr-xr-xsrc/tests/run-allregs.sh2799
-rwxr-xr-xsrc/tests/run-arextract.sh40
-rwxr-xr-xsrc/tests/run-arsymtest.sh47
-rwxr-xr-xsrc/tests/run-backtrace-core-aarch64.sh23
-rwxr-xr-xsrc/tests/run-backtrace-core-i386.sh20
-rwxr-xr-xsrc/tests/run-backtrace-core-ppc.sh20
-rwxr-xr-xsrc/tests/run-backtrace-core-s390.sh20
-rwxr-xr-xsrc/tests/run-backtrace-core-s390x.sh20
-rwxr-xr-xsrc/tests/run-backtrace-core-x86_64.sh20
-rwxr-xr-xsrc/tests/run-backtrace-data.sh28
-rwxr-xr-xsrc/tests/run-backtrace-demangle.sh46
-rwxr-xr-xsrc/tests/run-backtrace-dwarf.sh30
-rwxr-xr-xsrc/tests/run-backtrace-native-biarch.sh24
-rwxr-xr-xsrc/tests/run-backtrace-native-core-biarch.sh24
-rwxr-xr-xsrc/tests/run-backtrace-native-core.sh20
-rwxr-xr-xsrc/tests/run-backtrace-native.sh20
-rwxr-xr-xsrc/tests/run-bug1-test.sh34
-rwxr-xr-xsrc/tests/run-buildid.sh38
-rwxr-xr-xsrc/tests/run-debugaltlink.sh34
-rwxr-xr-xsrc/tests/run-debuglink.sh29
-rwxr-xr-xsrc/tests/run-deleted.sh48
-rwxr-xr-xsrc/tests/run-disasm-x86-64.sh28
-rwxr-xr-xsrc/tests/run-disasm-x86.sh28
-rwxr-xr-xsrc/tests/run-dwarf-getmacros.sh710
-rwxr-xr-xsrc/tests/run-dwarf-getstring.sh125
-rwxr-xr-xsrc/tests/run-dwfl-addr-sect.sh32
-rwxr-xr-xsrc/tests/run-dwfl-bug-offline-rel.sh28
-rwxr-xr-xsrc/tests/run-dwfl-report-elf-align.sh44
-rwxr-xr-xsrc/tests/run-dwfllines.sh88
-rwxr-xr-xsrc/tests/run-dwflsyms.sh826
-rwxr-xr-xsrc/tests/run-early-offscn.sh24
-rwxr-xr-xsrc/tests/run-ecp-test.sh28
-rwxr-xr-xsrc/tests/run-ecp-test2.sh26
-rwxr-xr-xsrc/tests/run-elf_cntl_gelf_getshdr.sh30
-rwxr-xr-xsrc/tests/run-elflint-self.sh21
-rwxr-xr-xsrc/tests/run-elflint-test.sh43
-rwxr-xr-xsrc/tests/run-find-prologues.sh85
-rwxr-xr-xsrc/tests/run-funcretval.sh153
-rwxr-xr-xsrc/tests/run-funcscopes.sh29
-rwxr-xr-xsrc/tests/run-get-aranges.sh68
-rwxr-xr-xsrc/tests/run-get-files.sh67
-rwxr-xr-xsrc/tests/run-get-lines.sh91
-rwxr-xr-xsrc/tests/run-get-pubnames.sh50
-rwxr-xr-xsrc/tests/run-line2addr.sh49
-rwxr-xr-xsrc/tests/run-linkmap-cut.sh32
-rwxr-xr-xsrc/tests/run-low_high_pc.sh34
-rwxr-xr-xsrc/tests/run-macro-test.sh52
-rwxr-xr-xsrc/tests/run-native-test.sh88
-rwxr-xr-xsrc/tests/run-nm-self.sh36
-rwxr-xr-xsrc/tests/run-prelink-addr-test.sh252
-rwxr-xr-xsrc/tests/run-ranlib-test.sh38
-rwxr-xr-xsrc/tests/run-ranlib-test2.sh37
-rwxr-xr-xsrc/tests/run-ranlib-test3.sh22
-rwxr-xr-xsrc/tests/run-ranlib-test4.sh23
-rwxr-xr-xsrc/tests/run-readelf-A.sh65
-rwxr-xr-xsrc/tests/run-readelf-aranges.sh161
-rwxr-xr-xsrc/tests/run-readelf-d.sh70
-rwxr-xr-xsrc/tests/run-readelf-dwz-multi.sh332
-rwxr-xr-xsrc/tests/run-readelf-gdb_index.sh130
-rwxr-xr-xsrc/tests/run-readelf-line.sh259
-rwxr-xr-xsrc/tests/run-readelf-loc.sh109
-rwxr-xr-xsrc/tests/run-readelf-macro.sh345
-rwxr-xr-xsrc/tests/run-readelf-mixed-corenote.sh493
-rwxr-xr-xsrc/tests/run-readelf-s.sh378
-rwxr-xr-xsrc/tests/run-readelf-self.sh21
-rwxr-xr-xsrc/tests/run-readelf-test1.sh45
-rwxr-xr-xsrc/tests/run-readelf-test2.sh28
-rwxr-xr-xsrc/tests/run-readelf-test3.sh31
-rwxr-xr-xsrc/tests/run-readelf-test4.sh33
-rwxr-xr-xsrc/tests/run-readelf-twofiles.sh24
-rwxr-xr-xsrc/tests/run-readelf-vmcoreinfo.sh114
-rwxr-xr-xsrc/tests/run-readelf-zdebug.sh539
-rwxr-xr-xsrc/tests/run-rerequest_tag.sh25
-rwxr-xr-xsrc/tests/run-show-abbrev.sh352
-rwxr-xr-xsrc/tests/run-show-die-info.sh985
-rwxr-xr-xsrc/tests/run-stack-d-test.sh112
-rwxr-xr-xsrc/tests/run-stack-i-test.sh70
-rwxr-xr-xsrc/tests/run-strings-test.sh470
-rwxr-xr-xsrc/tests/run-strip-groups.sh55
-rwxr-xr-xsrc/tests/run-strip-reloc.sh110
-rwxr-xr-xsrc/tests/run-strip-test.sh56
-rwxr-xr-xsrc/tests/run-strip-test2.sh22
-rwxr-xr-xsrc/tests/run-strip-test3.sh22
-rwxr-xr-xsrc/tests/run-strip-test4.sh5
-rwxr-xr-xsrc/tests/run-strip-test5.sh5
-rwxr-xr-xsrc/tests/run-strip-test6.sh5
-rwxr-xr-xsrc/tests/run-strip-test7.sh5
-rwxr-xr-xsrc/tests/run-strip-test8.sh5
-rwxr-xr-xsrc/tests/run-test-archive64.sh43
-rwxr-xr-xsrc/tests/run-test-flag-nobits.sh22
-rwxr-xr-xsrc/tests/run-typeiter.sh54
-rwxr-xr-xsrc/tests/run-unstrip-M.sh51
-rwxr-xr-xsrc/tests/run-unstrip-n.sh76
-rwxr-xr-xsrc/tests/run-unstrip-test.sh43
-rwxr-xr-xsrc/tests/run-unstrip-test2.sh5
-rwxr-xr-xsrc/tests/run-varlocs.sh128
-rw-r--r--src/tests/saridx.c257
-rw-r--r--src/tests/scnnames.c91
-rw-r--r--src/tests/sectiondump.c182
-rw-r--r--src/tests/show-abbrev.c131
-rw-r--r--src/tests/show-die-info.c358
-rw-r--r--src/tests/showptable.c139
-rwxr-xr-xsrc/tests/test-core-lib.so.bz2bin2028 -> 0 bytes
-rw-r--r--src/tests/test-core.core.bz2bin14165 -> 0 bytes
-rwxr-xr-xsrc/tests/test-core.exec.bz2bin2565 -> 0 bytes
-rw-r--r--src/tests/test-elf_cntl_gelf_getshdr.c103
-rw-r--r--src/tests/test-flag-nobits.c35
-rw-r--r--src/tests/test-nlist.c83
-rw-r--r--src/tests/test-offset-loop.alt.bz2bin685 -> 0 bytes
-rwxr-xr-xsrc/tests/test-offset-loop.bz2bin3062 -> 0 bytes
-rw-r--r--src/tests/test-subr.sh154
-rwxr-xr-xsrc/tests/test-wrapper.sh65
-rw-r--r--src/tests/testarchive64.a.bz2bin834 -> 0 bytes
-rw-r--r--src/tests/testcore-rtlib-ppc.bz2bin200184 -> 0 bytes
-rw-r--r--src/tests/testcore-rtlib.bz2bin25566 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-backtrace-demangle.bz2bin3016 -> 0 bytes
-rw-r--r--src/tests/testfile-backtrace-demangle.cc47
-rw-r--r--src/tests/testfile-backtrace-demangle.core.bz2bin39510 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-debug.bz2bin5441 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-dwfl-report-elf-align-shlib.so.bz2bin1546 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-dwzstr.bz2bin2768 -> 0 bytes
-rw-r--r--src/tests/testfile-dwzstr.multi.bz2bin518 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-inlines.bz2bin2815 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-lex-inlines.bz2bin2599 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-macinfo.bz2bin6689 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-macros-0xff.bz2bin2844 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-macros.bz2bin7882 -> 0 bytes
-rw-r--r--src/tests/testfile-sizes1.o.bz2bin1012 -> 0 bytes
-rw-r--r--src/tests/testfile-sizes2.o.bz2bin1283 -> 0 bytes
-rw-r--r--src/tests/testfile-sizes3.o.bz2bin1147 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile-zdebug.bz2bin6647 -> 0 bytes
-rw-r--r--src/tests/testfile.bz2bin8115 -> 0 bytes
-rw-r--r--src/tests/testfile10.bz2bin2635 -> 0 bytes
-rw-r--r--src/tests/testfile11.bz2bin30561 -> 0 bytes
-rw-r--r--src/tests/testfile12.bz2bin9948 -> 0 bytes
-rw-r--r--src/tests/testfile13.bz2bin1593 -> 0 bytes
-rw-r--r--src/tests/testfile14.bz2bin2903 -> 0 bytes
-rw-r--r--src/tests/testfile15.bz2bin3132 -> 0 bytes
-rw-r--r--src/tests/testfile15.debug.bz2bin28499 -> 0 bytes
-rw-r--r--src/tests/testfile16.bz2bin8413 -> 0 bytes
-rw-r--r--src/tests/testfile16.debug.bz2bin24257 -> 0 bytes
-rw-r--r--src/tests/testfile17.bz2bin1660 -> 0 bytes
-rw-r--r--src/tests/testfile17.debug.bz2bin9134 -> 0 bytes
-rw-r--r--src/tests/testfile18.bz2bin1721 -> 0 bytes
-rw-r--r--src/tests/testfile19.bz2bin458 -> 0 bytes
-rw-r--r--src/tests/testfile19.index.bz2bin501 -> 0 bytes
-rw-r--r--src/tests/testfile2.bz2bin6400 -> 0 bytes
-rw-r--r--src/tests/testfile20.bz2bin502 -> 0 bytes
-rw-r--r--src/tests/testfile20.index.bz2bin523 -> 0 bytes
-rw-r--r--src/tests/testfile21.bz2bin127 -> 0 bytes
-rw-r--r--src/tests/testfile21.index.bz2bin100 -> 0 bytes
-rw-r--r--src/tests/testfile22.bz2bin2555 -> 0 bytes
-rw-r--r--src/tests/testfile23.bz2bin956 -> 0 bytes
-rw-r--r--src/tests/testfile24.bz2bin2644 -> 0 bytes
-rw-r--r--src/tests/testfile25.bz2bin2575 -> 0 bytes
-rw-r--r--src/tests/testfile26.bz2bin2331 -> 0 bytes
-rw-r--r--src/tests/testfile27.bz2bin2371 -> 0 bytes
-rw-r--r--src/tests/testfile28.bz2bin171 -> 0 bytes
-rw-r--r--src/tests/testfile28.rdwr.bz2bin172 -> 0 bytes
-rw-r--r--src/tests/testfile29.bz2bin164 -> 0 bytes
-rw-r--r--src/tests/testfile29.rdwr.bz2bin164 -> 0 bytes
-rw-r--r--src/tests/testfile3.bz2bin8051 -> 0 bytes
-rw-r--r--src/tests/testfile30.bz2bin753 -> 0 bytes
-rw-r--r--src/tests/testfile31.bz2bin769 -> 0 bytes
-rw-r--r--src/tests/testfile32.bz2bin5778 -> 0 bytes
-rw-r--r--src/tests/testfile33.bz2bin35075 -> 0 bytes
-rw-r--r--src/tests/testfile34.bz2bin315 -> 0 bytes
-rw-r--r--src/tests/testfile35.bz2bin1643 -> 0 bytes
-rw-r--r--src/tests/testfile35.debug.bz2bin9106 -> 0 bytes
-rw-r--r--src/tests/testfile36.bz2bin714 -> 0 bytes
-rw-r--r--src/tests/testfile36.debug.bz2bin24909 -> 0 bytes
-rw-r--r--src/tests/testfile37.bz2bin3140 -> 0 bytes
-rw-r--r--src/tests/testfile37.debug.bz2bin28522 -> 0 bytes
-rw-r--r--src/tests/testfile38.bz2bin457 -> 0 bytes
-rw-r--r--src/tests/testfile39.bz2bin2992 -> 0 bytes
-rw-r--r--src/tests/testfile4.bz2bin41405 -> 0 bytes
-rw-r--r--src/tests/testfile40.bz2bin2302 -> 0 bytes
-rw-r--r--src/tests/testfile40.debug.bz2bin1398 -> 0 bytes
-rw-r--r--src/tests/testfile41.bz2bin295 -> 0 bytes
-rw-r--r--src/tests/testfile42.bz2bin16201 -> 0 bytes
-rw-r--r--src/tests/testfile42_noshdrs.bz2bin6746 -> 0 bytes
-rw-r--r--src/tests/testfile43.bz2bin739 -> 0 bytes
-rw-r--r--src/tests/testfile44.S.bz2bin18296 -> 0 bytes
-rw-r--r--src/tests/testfile44.expect.bz2bin60096 -> 0 bytes
-rw-r--r--src/tests/testfile45.S.bz2bin24742 -> 0 bytes
-rw-r--r--src/tests/testfile45.expect.bz2bin82002 -> 0 bytes
-rw-r--r--src/tests/testfile46.bz2bin322 -> 0 bytes
-rw-r--r--src/tests/testfile47.bz2bin793 -> 0 bytes
-rw-r--r--src/tests/testfile48.bz2bin408 -> 0 bytes
-rw-r--r--src/tests/testfile48.debug.bz2bin758 -> 0 bytes
-rw-r--r--src/tests/testfile49.bz2bin337 -> 0 bytes
-rw-r--r--src/tests/testfile5.bz2bin5646 -> 0 bytes
-rw-r--r--src/tests/testfile50.bz2bin229 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile51.bz2bin4294 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile52-32.noshdrs.so.bz2bin944 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile52-32.prelink.so.bz2bin1839 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile52-32.so.bz2bin1445 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile52-32.so.debug.bz2bin1681 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile52-64.noshdrs.so.bz2bin1044 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile52-64.prelink.so.bz2bin1978 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile52-64.so.bz2bin1558 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile52-64.so.debug.bz2bin1693 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile53-32.bz2bin1628 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile53-32.debug.bz2bin1959 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile53-32.prelink.bz2bin2192 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile53-64.bz2bin1683 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile53-64.debug.bz2bin1927 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile53-64.prelink.bz2bin2180 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile54-32.noshdrs.so.bz2bin416 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile54-32.prelink.so.bz2bin1035 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile54-32.so.bz2bin745 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile54-32.so.debug.bz2bin1009 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile54-64.noshdrs.so.bz2bin458 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile54-64.prelink.so.bz2bin1127 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile54-64.so.bz2bin799 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile54-64.so.debug.bz2bin1052 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile55-32.bz2bin1661 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile55-32.debug.bz2bin1894 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile55-32.prelink.bz2bin2163 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile55-64.bz2bin1725 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile55-64.debug.bz2bin1869 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile55-64.prelink.bz2bin2259 -> 0 bytes
-rw-r--r--src/tests/testfile56.bz2bin2768 -> 0 bytes
-rw-r--r--src/tests/testfile57.bz2bin593 -> 0 bytes
-rw-r--r--src/tests/testfile58.bz2bin1680 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile59.bz2bin3097 -> 0 bytes
-rw-r--r--src/tests/testfile6.bz2bin30577 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile60.bz2bin2974 -> 0 bytes
-rw-r--r--src/tests/testfile61.bz2bin7906 -> 0 bytes
-rw-r--r--src/tests/testfile62.bz2bin3506 -> 0 bytes
-rw-r--r--src/tests/testfile63.bz2bin457 -> 0 bytes
-rw-r--r--src/tests/testfile64.bz2bin395 -> 0 bytes
-rw-r--r--src/tests/testfile65.bz2bin4674 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile66.bz2bin741 -> 0 bytes
-rw-r--r--src/tests/testfile66.core.bz2bin56448 -> 0 bytes
-rw-r--r--src/tests/testfile67.bz2bin424 -> 0 bytes
-rw-r--r--src/tests/testfile68.bz2bin399 -> 0 bytes
-rw-r--r--src/tests/testfile69.core.bz2bin4416 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile69.so.bz2bin2099 -> 0 bytes
-rw-r--r--src/tests/testfile7.bz2bin3107 -> 0 bytes
-rw-r--r--src/tests/testfile70.core.bz2bin2739 -> 0 bytes
-rw-r--r--src/tests/testfile70.exec.bz2bin2567 -> 0 bytes
-rw-r--r--src/tests/testfile71.bz2bin18164 -> 0 bytes
-rw-r--r--src/tests/testfile8.bz2bin31982 -> 0 bytes
-rw-r--r--src/tests/testfile9.bz2bin8367 -> 0 bytes
-rw-r--r--src/tests/testfile_aarch64_core.bz2bin61748 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile_class_func.bz2bin2962 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile_const_type.bz2bin3353 -> 0 bytes
-rw-r--r--src/tests/testfile_const_type.c14
-rwxr-xr-xsrc/tests/testfile_entry_value.bz2bin3309 -> 0 bytes
-rw-r--r--src/tests/testfile_entry_value.c19
-rw-r--r--src/tests/testfile_i686_core.bz2bin15980 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile_implicit_pointer.bz2bin2952 -> 0 bytes
-rw-r--r--src/tests/testfile_implicit_pointer.c12
-rwxr-xr-xsrc/tests/testfile_implicit_value.bz2bin2973 -> 0 bytes
-rw-r--r--src/tests/testfile_implicit_value.c12
-rwxr-xr-xsrc/tests/testfile_low_high_pc.bz2bin2812 -> 0 bytes
-rw-r--r--src/tests/testfile_multi.dwz.bz2bin512 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile_multi_main.bz2bin3086 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile_nested_funcs.bz2bin3045 -> 0 bytes
-rwxr-xr-xsrc/tests/testfile_parameter_ref.bz2bin3329 -> 0 bytes
-rw-r--r--src/tests/testfile_parameter_ref.c20
-rwxr-xr-xsrc/tests/testfileaarch64.bz2bin3441 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilearm.bz2bin3545 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebasmin.bz2bin1082 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebaxmin.bz2bin2987 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdbg.bz2bin2185 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdbg.debug.bz2bin2187 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdbg_pl.bz2bin2589 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdbg_plr.bz2bin2241 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdbgppc64.bz2bin2366 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdbgppc64.debug.bz2bin2295 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdbgppc64_pl.bz2bin2775 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdbgppc64_plr.bz2bin2399 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdyn.bz2bin2164 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazdynppc64.bz2bin2327 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazmdb.bz2bin3313 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazmdbppc64.bz2bin3528 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazmin.bz2bin3323 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazmin_pl.bz2bin3749 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazmin_plr.bz2bin3337 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazminppc64.bz2bin3464 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazminppc64_pl.bz2bin3900 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebazminppc64_plr.bz2bin3535 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebaztab.bz2bin3418 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilebaztabppc64.bz2bin3697 -> 0 bytes
-rwxr-xr-xsrc/tests/testfiledwarfinlines.bz2bin4225 -> 0 bytes
-rw-r--r--src/tests/testfiledwarfinlines.core.bz2bin39713 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilefoobarbaz.bz2bin3974 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilegdbindex5.bz2bin3481 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilegdbindex7.bz2bin3497 -> 0 bytes
-rwxr-xr-xsrc/tests/testfileloc.bz2bin3148 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilemacro.bz2bin5601 -> 0 bytes
-rwxr-xr-xsrc/tests/testfilenolines.bz2bin2855 -> 0 bytes
-rwxr-xr-xsrc/tests/testfileppc32.bz2bin3344 -> 0 bytes
-rw-r--r--src/tests/testfileppc32attrs.o.bz2bin228 -> 0 bytes
-rwxr-xr-xsrc/tests/testfileppc64.bz2bin3351 -> 0 bytes
-rwxr-xr-xsrc/tests/testfiles390.bz2bin3132 -> 0 bytes
-rwxr-xr-xsrc/tests/testfiles390x.bz2bin3026 -> 0 bytes
-rwxr-xr-xsrc/tests/testlib_dynseg.so.bz2bin2275 -> 0 bytes
-rw-r--r--src/tests/typeiter.c90
-rw-r--r--src/tests/typeiter2.c89
-rw-r--r--src/tests/update1.c127
-rw-r--r--src/tests/update2.c150
-rw-r--r--src/tests/update3.c205
-rw-r--r--src/tests/update4.c357
-rw-r--r--src/tests/varlocs.c826
-rw-r--r--src/tests/vdsosyms.c109
-rw-r--r--src/unaligned.h (renamed from src/src/unaligned.h)0
-rw-r--r--src/unstrip.c (renamed from src/src/unstrip.c)0
-rw-r--r--src/version.h38
-rw-r--r--src/versionhash.c (renamed from src/src/versionhash.c)0
-rw-r--r--src/versionhash.h (renamed from src/src/versionhash.h)0
-rw-r--r--src/xelf.h (renamed from src/src/xelf.h)0
1126 files changed, 3108 insertions, 243016 deletions
diff --git a/src/ABOUT-NLS b/src/ABOUT-NLS
deleted file mode 100644
index 83bc72ec..00000000
--- a/src/ABOUT-NLS
+++ /dev/null
@@ -1,1068 +0,0 @@
-1 Notes on the Free Translation Project
-***************************************
-
-Free software is going international! The Free Translation Project is
-a way to get maintainers of free software, translators, and users all
-together, so that free software will gradually become able to speak many
-languages. A few packages already provide translations for their
-messages.
-
- If you found this `ABOUT-NLS' file inside a distribution, you may
-assume that the distributed package does use GNU `gettext' internally,
-itself available at your nearest GNU archive site. But you do _not_
-need to install GNU `gettext' prior to configuring, installing or using
-this package with messages translated.
-
- Installers will find here some useful hints. These notes also
-explain how users should proceed for getting the programs to use the
-available translations. They tell how people wanting to contribute and
-work on translations can contact the appropriate team.
-
- When reporting bugs in the `intl/' directory or bugs which may be
-related to internationalization, you should tell about the version of
-`gettext' which is used. The information can be found in the
-`intl/VERSION' file, in internationalized packages.
-
-1.1 Quick configuration advice
-==============================
-
-If you want to exploit the full power of internationalization, you
-should configure it using
-
- ./configure --with-included-gettext
-
-to force usage of internationalizing routines provided within this
-package, despite the existence of internationalizing capabilities in the
-operating system where this package is being installed. So far, only
-the `gettext' implementation in the GNU C library version 2 provides as
-many features (such as locale alias, message inheritance, automatic
-charset conversion or plural form handling) as the implementation here.
-It is also not possible to offer this additional functionality on top
-of a `catgets' implementation. Future versions of GNU `gettext' will
-very likely convey even more functionality. So it might be a good idea
-to change to GNU `gettext' as soon as possible.
-
- So you need _not_ provide this option if you are using GNU libc 2 or
-you have installed a recent copy of the GNU gettext package with the
-included `libintl'.
-
-1.2 INSTALL Matters
-===================
-
-Some packages are "localizable" when properly installed; the programs
-they contain can be made to speak your own native language. Most such
-packages use GNU `gettext'. Other packages have their own ways to
-internationalization, predating GNU `gettext'.
-
- By default, this package will be installed to allow translation of
-messages. It will automatically detect whether the system already
-provides the GNU `gettext' functions. If not, the included GNU
-`gettext' library will be used. This library is wholly contained
-within this package, usually in the `intl/' subdirectory, so prior
-installation of the GNU `gettext' package is _not_ required.
-Installers may use special options at configuration time for changing
-the default behaviour. The commands:
-
- ./configure --with-included-gettext
- ./configure --disable-nls
-
-will, respectively, bypass any pre-existing `gettext' to use the
-internationalizing routines provided within this package, or else,
-_totally_ disable translation of messages.
-
- When you already have GNU `gettext' installed on your system and run
-configure without an option for your new package, `configure' will
-probably detect the previously built and installed `libintl.a' file and
-will decide to use this. This might not be desirable. You should use
-the more recent version of the GNU `gettext' library. I.e. if the file
-`intl/VERSION' shows that the library which comes with this package is
-more recent, you should use
-
- ./configure --with-included-gettext
-
-to prevent auto-detection.
-
- The configuration process will not test for the `catgets' function
-and therefore it will not be used. The reason is that even an
-emulation of `gettext' on top of `catgets' could not provide all the
-extensions of the GNU `gettext' library.
-
- Internationalized packages usually have many `po/LL.po' files, where
-LL gives an ISO 639 two-letter code identifying the language. Unless
-translations have been forbidden at `configure' time by using the
-`--disable-nls' switch, all available translations are installed
-together with the package. However, the environment variable `LINGUAS'
-may be set, prior to configuration, to limit the installed set.
-`LINGUAS' should then contain a space separated list of two-letter
-codes, stating which languages are allowed.
-
-1.3 Using This Package
-======================
-
-As a user, if your language has been installed for this package, you
-only have to set the `LANG' environment variable to the appropriate
-`LL_CC' combination. If you happen to have the `LC_ALL' or some other
-`LC_xxx' environment variables set, you should unset them before
-setting `LANG', otherwise the setting of `LANG' will not have the
-desired effect. Here `LL' is an ISO 639 two-letter language code, and
-`CC' is an ISO 3166 two-letter country code. For example, let's
-suppose that you speak German and live in Germany. At the shell
-prompt, merely execute `setenv LANG de_DE' (in `csh'),
-`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
-This can be done from your `.login' or `.profile' file, once and for
-all.
-
- You might think that the country code specification is redundant.
-But in fact, some languages have dialects in different countries. For
-example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
-country code serves to distinguish the dialects.
-
- The locale naming convention of `LL_CC', with `LL' denoting the
-language and `CC' denoting the country, is the one use on systems based
-on GNU libc. On other systems, some variations of this scheme are
-used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
-locales supported by your system for your language by running the
-command `locale -a | grep '^LL''.
-
- Not all programs have translations for all languages. By default, an
-English message is shown in place of a nonexistent translation. If you
-understand other languages, you can set up a priority list of languages.
-This is done through a different environment variable, called
-`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
-for the purpose of message handling, but you still need to have `LANG'
-set to the primary language; this is required by other parts of the
-system libraries. For example, some Swedish users who would rather
-read translations in German than English for when Swedish is not
-available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
-
- Special advice for Norwegian users: The language code for Norwegian
-bokma*l changed from `no' to `nb' recently (in 2003). During the
-transition period, while some message catalogs for this language are
-installed under `nb' and some older ones under `no', it's recommended
-for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
-older translations are used.
-
- In the `LANGUAGE' environment variable, but not in the `LANG'
-environment variable, `LL_CC' combinations can be abbreviated as `LL'
-to denote the language's main dialect. For example, `de' is equivalent
-to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
-(Portuguese as spoken in Portugal) in this context.
-
-1.4 Translating Teams
-=====================
-
-For the Free Translation Project to be a success, we need interested
-people who like their own language and write it well, and who are also
-able to synergize with other translators speaking the same language.
-Each translation team has its own mailing list. The up-to-date list of
-teams can be found at the Free Translation Project's homepage,
-`http://translationproject.org/', in the "Teams" area.
-
- If you'd like to volunteer to _work_ at translating messages, you
-should become a member of the translating team for your own language.
-The subscribing address is _not_ the same as the list itself, it has
-`-request' appended. For example, speakers of Swedish can send a
-message to `sv-request@li.org', having this message body:
-
- subscribe
-
- Keep in mind that team members are expected to participate
-_actively_ in translations, or at solving translational difficulties,
-rather than merely lurking around. If your team does not exist yet and
-you want to start one, or if you are unsure about what to do or how to
-get started, please write to `coordinator@translationproject.org' to
-reach the coordinator for all translator teams.
-
- The English team is special. It works at improving and uniformizing
-the terminology in use. Proven linguistic skills are praised more than
-programming skills, here.
-
-1.5 Available Packages
-======================
-
-Languages are not equally supported in all packages. The following
-matrix shows the current state of internationalization, as of November
-2007. The matrix shows, in regard of each package, for which languages
-PO files have been submitted to translation coordination, with a
-translation percentage of at least 50%.
-
- Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo
- +----------------------------------------------------+
- Compendium | [] [] [] [] |
- a2ps | [] [] [] [] [] |
- aegis | () |
- ant-phone | () |
- anubis | [] |
- ap-utils | |
- aspell | [] [] [] [] [] |
- bash | [] |
- bfd | |
- bibshelf | [] |
- binutils | |
- bison | [] [] |
- bison-runtime | [] |
- bluez-pin | [] [] [] [] [] |
- cflow | [] |
- clisp | [] [] [] |
- console-tools | [] [] |
- coreutils | [] [] [] [] |
- cpio | |
- cpplib | [] [] [] |
- cryptonit | [] |
- dialog | |
- diffutils | [] [] [] [] [] [] |
- doodle | [] |
- e2fsprogs | [] [] |
- enscript | [] [] [] [] |
- fetchmail | [] [] () [] [] |
- findutils | [] |
- findutils_stable | [] [] [] |
- flex | [] [] [] |
- fslint | |
- gas | |
- gawk | [] [] [] |
- gcal | [] |
- gcc | [] |
- gettext-examples | [] [] [] [] [] |
- gettext-runtime | [] [] [] [] [] |
- gettext-tools | [] [] |
- gip | [] |
- gliv | [] [] |
- glunarclock | [] |
- gmult | [] [] |
- gnubiff | () |
- gnucash | [] [] () () [] |
- gnuedu | |
- gnulib | [] |
- gnunet | |
- gnunet-gtk | |
- gnutls | [] |
- gpe-aerial | [] [] |
- gpe-beam | [] [] |
- gpe-calendar | |
- gpe-clock | [] [] |
- gpe-conf | [] [] |
- gpe-contacts | |
- gpe-edit | [] |
- gpe-filemanager | |
- gpe-go | [] |
- gpe-login | [] [] |
- gpe-ownerinfo | [] [] |
- gpe-package | |
- gpe-sketchbook | [] [] |
- gpe-su | [] [] |
- gpe-taskmanager | [] [] |
- gpe-timesheet | [] |
- gpe-today | [] [] |
- gpe-todo | |
- gphoto2 | [] [] [] [] |
- gprof | [] [] |
- gpsdrive | |
- gramadoir | [] [] |
- grep | [] [] |
- gretl | () |
- gsasl | |
- gss | |
- gst-plugins-bad | [] [] |
- gst-plugins-base | [] [] |
- gst-plugins-good | [] [] [] |
- gst-plugins-ugly | [] [] |
- gstreamer | [] [] [] [] [] [] [] |
- gtick | () |
- gtkam | [] [] [] [] |
- gtkorphan | [] [] |
- gtkspell | [] [] [] [] |
- gutenprint | [] |
- hello | [] [] [] [] [] |
- herrie | [] |
- hylafax | |
- idutils | [] [] |
- indent | [] [] [] [] |
- iso_15924 | |
- iso_3166 | [] [] [] [] [] [] [] [] [] [] [] |
- iso_3166_2 | |
- iso_4217 | [] [] [] |
- iso_639 | [] [] [] [] |
- jpilot | [] |
- jtag | |
- jwhois | |
- kbd | [] [] [] [] |
- keytouch | [] [] |
- keytouch-editor | [] |
- keytouch-keyboa... | [] |
- latrine | () |
- ld | [] |
- leafpad | [] [] [] [] [] |
- libc | [] [] [] [] |
- libexif | [] |
- libextractor | [] |
- libgpewidget | [] [] [] |
- libgpg-error | [] |
- libgphoto2 | [] [] |
- libgphoto2_port | [] [] |
- libgsasl | |
- libiconv | [] [] |
- libidn | [] [] [] |
- lifelines | [] () |
- lilypond | [] |
- lingoteach | |
- lprng | |
- lynx | [] [] [] [] |
- m4 | [] [] [] [] |
- mailfromd | |
- mailutils | [] |
- make | [] [] |
- man-db | [] [] [] |
- minicom | [] [] [] |
- nano | [] [] [] |
- opcodes | [] |
- parted | [] [] |
- pilot-qof | |
- popt | [] [] [] |
- psmisc | [] |
- pwdutils | |
- qof | |
- radius | [] |
- recode | [] [] [] [] [] [] |
- rpm | [] |
- screem | |
- scrollkeeper | [] [] [] [] [] [] [] [] |
- sed | [] [] [] |
- shared-mime-info | [] [] [] [] () [] [] [] |
- sharutils | [] [] [] [] [] [] |
- shishi | |
- skencil | [] () |
- solfege | |
- soundtracker | [] [] |
- sp | [] |
- system-tools-ba... | [] [] [] [] [] [] [] [] [] |
- tar | [] [] |
- texinfo | [] [] [] |
- tin | () () |
- tuxpaint | [] [] [] [] [] [] |
- unicode-han-tra... | |
- unicode-transla... | |
- util-linux | [] [] [] [] |
- util-linux-ng | [] [] [] [] |
- vorbis-tools | [] |
- wastesedge | () |
- wdiff | [] [] [] [] |
- wget | [] [] [] |
- xchat | [] [] [] [] [] [] [] |
- xkeyboard-config | [] |
- xpad | [] [] [] |
- +----------------------------------------------------+
- af am ar az be bg bs ca cs cy da de el en en_GB eo
- 6 0 2 1 8 26 2 40 48 2 56 88 15 1 15 18
-
- es et eu fa fi fr ga gl gu he hi hr hu id is it
- +--------------------------------------------------+
- Compendium | [] [] [] [] [] |
- a2ps | [] [] [] () |
- aegis | |
- ant-phone | [] |
- anubis | [] |
- ap-utils | [] [] |
- aspell | [] [] [] |
- bash | [] |
- bfd | [] [] |
- bibshelf | [] [] [] |
- binutils | [] [] [] |
- bison | [] [] [] [] [] [] |
- bison-runtime | [] [] [] [] [] |
- bluez-pin | [] [] [] [] [] |
- cflow | [] |
- clisp | [] [] |
- console-tools | |
- coreutils | [] [] [] [] [] [] |
- cpio | [] [] [] |
- cpplib | [] [] |
- cryptonit | [] |
- dialog | [] [] [] |
- diffutils | [] [] [] [] [] [] [] [] [] |
- doodle | [] [] |
- e2fsprogs | [] [] [] |
- enscript | [] [] [] |
- fetchmail | [] |
- findutils | [] [] [] |
- findutils_stable | [] [] [] [] |
- flex | [] [] [] |
- fslint | |
- gas | [] [] |
- gawk | [] [] [] [] () |
- gcal | [] [] |
- gcc | [] |
- gettext-examples | [] [] [] [] [] [] [] |
- gettext-runtime | [] [] [] [] [] [] |
- gettext-tools | [] [] [] [] |
- gip | [] [] [] [] |
- gliv | () |
- glunarclock | [] [] [] |
- gmult | [] [] [] |
- gnubiff | () () |
- gnucash | () () () |
- gnuedu | [] |
- gnulib | [] [] [] |
- gnunet | |
- gnunet-gtk | |
- gnutls | |
- gpe-aerial | [] [] |
- gpe-beam | [] [] |
- gpe-calendar | |
- gpe-clock | [] [] [] [] |
- gpe-conf | [] |
- gpe-contacts | [] [] |
- gpe-edit | [] [] [] [] |
- gpe-filemanager | [] |
- gpe-go | [] [] [] |
- gpe-login | [] [] [] |
- gpe-ownerinfo | [] [] [] [] [] |
- gpe-package | [] |
- gpe-sketchbook | [] [] |
- gpe-su | [] [] [] [] |
- gpe-taskmanager | [] [] [] |
- gpe-timesheet | [] [] [] [] |
- gpe-today | [] [] [] [] |
- gpe-todo | [] |
- gphoto2 | [] [] [] [] [] |
- gprof | [] [] [] [] [] |
- gpsdrive | [] |
- gramadoir | [] [] |
- grep | [] [] [] |
- gretl | [] [] [] () |
- gsasl | [] [] |
- gss | [] [] |
- gst-plugins-bad | [] [] [] [] |
- gst-plugins-base | [] [] [] [] |
- gst-plugins-good | [] [] [] [] [] |
- gst-plugins-ugly | [] [] [] [] |
- gstreamer | [] [] [] |
- gtick | [] [] [] |
- gtkam | [] [] [] [] |
- gtkorphan | [] [] |
- gtkspell | [] [] [] [] [] [] [] |
- gutenprint | [] |
- hello | [] [] [] [] [] [] [] [] [] [] [] [] [] |
- herrie | [] |
- hylafax | |
- idutils | [] [] [] [] [] |
- indent | [] [] [] [] [] [] [] [] [] [] |
- iso_15924 | [] |
- iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] |
- iso_3166_2 | [] |
- iso_4217 | [] [] [] [] [] [] |
- iso_639 | [] [] [] [] [] [] |
- jpilot | [] [] |
- jtag | [] |
- jwhois | [] [] [] [] [] |
- kbd | [] [] |
- keytouch | [] [] [] |
- keytouch-editor | [] |
- keytouch-keyboa... | [] [] |
- latrine | [] [] |
- ld | [] [] [] [] |
- leafpad | [] [] [] [] [] [] |
- libc | [] [] [] [] [] |
- libexif | [] |
- libextractor | [] |
- libgpewidget | [] [] [] [] [] |
- libgpg-error | [] |
- libgphoto2 | [] [] [] |
- libgphoto2_port | [] [] |
- libgsasl | [] [] |
- libiconv | [] [] [] |
- libidn | [] [] |
- lifelines | () |
- lilypond | [] [] [] |
- lingoteach | [] [] [] |
- lprng | |
- lynx | [] [] [] |
- m4 | [] [] [] [] |
- mailfromd | |
- mailutils | [] [] |
- make | [] [] [] [] [] [] [] [] |
- man-db | [] |
- minicom | [] [] [] [] |
- nano | [] [] [] [] [] [] [] |
- opcodes | [] [] [] [] |
- parted | [] [] [] |
- pilot-qof | |
- popt | [] [] [] [] |
- psmisc | [] [] |
- pwdutils | |
- qof | [] |
- radius | [] [] |
- recode | [] [] [] [] [] [] [] [] |
- rpm | [] [] |
- screem | |
- scrollkeeper | [] [] [] |
- sed | [] [] [] [] [] |
- shared-mime-info | [] [] [] [] [] [] |
- sharutils | [] [] [] [] [] [] [] [] |
- shishi | [] |
- skencil | [] [] |
- solfege | [] |
- soundtracker | [] [] [] |
- sp | [] |
- system-tools-ba... | [] [] [] [] [] [] [] [] [] |
- tar | [] [] [] [] [] |
- texinfo | [] [] [] |
- tin | [] () |
- tuxpaint | [] [] |
- unicode-han-tra... | |
- unicode-transla... | [] [] |
- util-linux | [] [] [] [] [] [] [] |
- util-linux-ng | [] [] [] [] [] [] [] |
- vorbis-tools | |
- wastesedge | () |
- wdiff | [] [] [] [] [] [] [] [] |
- wget | [] [] [] [] [] [] [] [] |
- xchat | [] [] [] [] [] [] [] |
- xkeyboard-config | [] [] [] [] |
- xpad | [] [] [] |
- +--------------------------------------------------+
- es et eu fa fi fr ga gl gu he hi hr hu id is it
- 85 22 14 2 48 101 61 12 2 8 2 6 53 29 1 52
-
- ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn
- +--------------------------------------------------+
- Compendium | [] |
- a2ps | () [] [] |
- aegis | () |
- ant-phone | [] |
- anubis | [] [] [] |
- ap-utils | [] |
- aspell | [] [] |
- bash | [] |
- bfd | |
- bibshelf | [] |
- binutils | |
- bison | [] [] [] |
- bison-runtime | [] [] [] |
- bluez-pin | [] [] [] |
- cflow | |
- clisp | [] |
- console-tools | |
- coreutils | [] |
- cpio | [] |
- cpplib | [] |
- cryptonit | [] |
- dialog | [] [] |
- diffutils | [] [] [] |
- doodle | |
- e2fsprogs | [] |
- enscript | [] |
- fetchmail | [] [] |
- findutils | [] |
- findutils_stable | [] |
- flex | [] [] |
- fslint | |
- gas | |
- gawk | [] [] |
- gcal | |
- gcc | |
- gettext-examples | [] [] [] |
- gettext-runtime | [] [] [] |
- gettext-tools | [] [] |
- gip | [] [] |
- gliv | [] |
- glunarclock | [] [] |
- gmult | [] [] [] |
- gnubiff | |
- gnucash | () () () |
- gnuedu | |
- gnulib | [] [] |
- gnunet | |
- gnunet-gtk | |
- gnutls | [] |
- gpe-aerial | [] |
- gpe-beam | [] |
- gpe-calendar | [] |
- gpe-clock | [] [] [] |
- gpe-conf | [] [] [] |
- gpe-contacts | [] |
- gpe-edit | [] [] [] |
- gpe-filemanager | [] [] |
- gpe-go | [] [] [] |
- gpe-login | [] [] [] |
- gpe-ownerinfo | [] [] |
- gpe-package | [] [] |
- gpe-sketchbook | [] [] |
- gpe-su | [] [] [] |
- gpe-taskmanager | [] [] [] [] |
- gpe-timesheet | [] |
- gpe-today | [] [] |
- gpe-todo | [] |
- gphoto2 | [] [] |
- gprof | [] |
- gpsdrive | [] |
- gramadoir | () |
- grep | [] [] |
- gretl | |
- gsasl | [] |
- gss | |
- gst-plugins-bad | [] |
- gst-plugins-base | [] |
- gst-plugins-good | [] |
- gst-plugins-ugly | [] |
- gstreamer | [] |
- gtick | [] |
- gtkam | [] [] |
- gtkorphan | [] |
- gtkspell | [] [] |
- gutenprint | [] |
- hello | [] [] [] [] [] [] [] |
- herrie | [] |
- hylafax | |
- idutils | [] |
- indent | [] [] |
- iso_15924 | [] |
- iso_3166 | [] [] [] [] [] [] [] [] |
- iso_3166_2 | [] |
- iso_4217 | [] [] [] |
- iso_639 | [] [] [] [] |
- jpilot | () () |
- jtag | |
- jwhois | [] |
- kbd | [] |
- keytouch | [] |
- keytouch-editor | [] |
- keytouch-keyboa... | |
- latrine | [] |
- ld | |
- leafpad | [] [] |
- libc | [] [] [] |
- libexif | |
- libextractor | |
- libgpewidget | [] |
- libgpg-error | |
- libgphoto2 | [] |
- libgphoto2_port | [] |
- libgsasl | [] |
- libiconv | [] |
- libidn | [] [] |
- lifelines | [] |
- lilypond | [] |
- lingoteach | [] |
- lprng | |
- lynx | [] [] |
- m4 | [] [] |
- mailfromd | |
- mailutils | |
- make | [] [] [] |
- man-db | |
- minicom | [] |
- nano | [] [] [] |
- opcodes | [] |
- parted | [] [] |
- pilot-qof | |
- popt | [] [] [] |
- psmisc | [] [] [] |
- pwdutils | |
- qof | |
- radius | |
- recode | [] |
- rpm | [] [] |
- screem | [] |
- scrollkeeper | [] [] [] [] |
- sed | [] [] |
- shared-mime-info | [] [] [] [] [] [] [] |
- sharutils | [] [] |
- shishi | |
- skencil | |
- solfege | () () |
- soundtracker | |
- sp | () |
- system-tools-ba... | [] [] [] [] |
- tar | [] [] [] |
- texinfo | [] [] |
- tin | |
- tuxpaint | () [] [] |
- unicode-han-tra... | |
- unicode-transla... | |
- util-linux | [] [] |
- util-linux-ng | [] [] |
- vorbis-tools | |
- wastesedge | [] |
- wdiff | [] [] |
- wget | [] [] |
- xchat | [] [] [] [] |
- xkeyboard-config | [] [] [] |
- xpad | [] [] [] |
- +--------------------------------------------------+
- ja ka ko ku ky lg lt lv mk mn ms mt nb ne nl nn
- 51 2 25 3 2 0 6 0 2 2 20 0 11 1 103 6
-
- or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
- +--------------------------------------------------+
- Compendium | [] [] [] [] [] |
- a2ps | () [] [] [] [] [] [] |
- aegis | () () |
- ant-phone | [] [] |
- anubis | [] [] [] |
- ap-utils | () |
- aspell | [] [] [] |
- bash | [] [] |
- bfd | |
- bibshelf | [] |
- binutils | [] [] |
- bison | [] [] [] [] [] |
- bison-runtime | [] [] [] [] [] |
- bluez-pin | [] [] [] [] [] [] [] [] [] |
- cflow | [] |
- clisp | [] |
- console-tools | [] |
- coreutils | [] [] [] [] |
- cpio | [] [] [] |
- cpplib | [] |
- cryptonit | [] [] |
- dialog | [] |
- diffutils | [] [] [] [] [] [] |
- doodle | [] [] |
- e2fsprogs | [] [] |
- enscript | [] [] [] [] [] |
- fetchmail | [] [] [] |
- findutils | [] [] [] |
- findutils_stable | [] [] [] [] [] [] |
- flex | [] [] [] [] [] |
- fslint | [] |
- gas | |
- gawk | [] [] [] [] |
- gcal | [] |
- gcc | [] [] |
- gettext-examples | [] [] [] [] [] [] [] [] |
- gettext-runtime | [] [] [] [] [] [] [] [] |
- gettext-tools | [] [] [] [] [] [] [] |
- gip | [] [] [] [] |
- gliv | [] [] [] [] [] [] |
- glunarclock | [] [] [] [] [] [] |
- gmult | [] [] [] [] |
- gnubiff | () [] |
- gnucash | () [] |
- gnuedu | |
- gnulib | [] [] [] |
- gnunet | |
- gnunet-gtk | [] |
- gnutls | [] [] |
- gpe-aerial | [] [] [] [] [] [] [] |
- gpe-beam | [] [] [] [] [] [] [] |
- gpe-calendar | [] [] [] [] |
- gpe-clock | [] [] [] [] [] [] [] [] |
- gpe-conf | [] [] [] [] [] [] [] |
- gpe-contacts | [] [] [] [] [] |
- gpe-edit | [] [] [] [] [] [] [] [] [] |
- gpe-filemanager | [] [] |
- gpe-go | [] [] [] [] [] [] [] [] |
- gpe-login | [] [] [] [] [] [] [] [] |
- gpe-ownerinfo | [] [] [] [] [] [] [] [] |
- gpe-package | [] [] |
- gpe-sketchbook | [] [] [] [] [] [] [] [] |
- gpe-su | [] [] [] [] [] [] [] [] |
- gpe-taskmanager | [] [] [] [] [] [] [] [] |
- gpe-timesheet | [] [] [] [] [] [] [] [] |
- gpe-today | [] [] [] [] [] [] [] [] |
- gpe-todo | [] [] [] [] |
- gphoto2 | [] [] [] [] [] [] |
- gprof | [] [] [] |
- gpsdrive | [] [] |
- gramadoir | [] [] |
- grep | [] [] [] [] |
- gretl | [] [] [] |
- gsasl | [] [] [] |
- gss | [] [] [] [] |
- gst-plugins-bad | [] [] [] |
- gst-plugins-base | [] [] |
- gst-plugins-good | [] [] |
- gst-plugins-ugly | [] [] [] |
- gstreamer | [] [] [] [] |
- gtick | [] |
- gtkam | [] [] [] [] [] |
- gtkorphan | [] |
- gtkspell | [] [] [] [] [] [] [] [] |
- gutenprint | [] |
- hello | [] [] [] [] [] [] [] [] |
- herrie | [] [] [] |
- hylafax | |
- idutils | [] [] [] [] [] |
- indent | [] [] [] [] [] [] [] |
- iso_15924 | |
- iso_3166 | [] [] [] [] [] [] [] [] [] [] [] [] [] |
- iso_3166_2 | |
- iso_4217 | [] [] [] [] [] [] [] |
- iso_639 | [] [] [] [] [] [] [] |
- jpilot | |
- jtag | [] |
- jwhois | [] [] [] [] |
- kbd | [] [] [] |
- keytouch | [] |
- keytouch-editor | [] |
- keytouch-keyboa... | [] |
- latrine | |
- ld | [] |
- leafpad | [] [] [] [] [] [] |
- libc | [] [] [] [] |
- libexif | [] [] |
- libextractor | [] [] |
- libgpewidget | [] [] [] [] [] [] [] [] |
- libgpg-error | [] [] [] |
- libgphoto2 | [] |
- libgphoto2_port | [] [] [] |
- libgsasl | [] [] [] [] |
- libiconv | [] [] [] |
- libidn | [] [] () |
- lifelines | [] [] |
- lilypond | |
- lingoteach | [] |
- lprng | [] |
- lynx | [] [] [] |
- m4 | [] [] [] [] [] |
- mailfromd | [] |
- mailutils | [] [] [] |
- make | [] [] [] [] |
- man-db | [] [] [] [] |
- minicom | [] [] [] [] [] |
- nano | [] [] [] [] |
- opcodes | [] [] |
- parted | [] |
- pilot-qof | |
- popt | [] [] [] [] |
- psmisc | [] [] |
- pwdutils | [] [] |
- qof | [] [] |
- radius | [] [] |
- recode | [] [] [] [] [] [] [] |
- rpm | [] [] [] [] |
- screem | |
- scrollkeeper | [] [] [] [] [] [] [] |
- sed | [] [] [] [] [] [] [] [] [] |
- shared-mime-info | [] [] [] [] [] [] |
- sharutils | [] [] [] [] |
- shishi | [] |
- skencil | [] [] [] |
- solfege | [] |
- soundtracker | [] [] |
- sp | |
- system-tools-ba... | [] [] [] [] [] [] [] [] [] |
- tar | [] [] [] [] |
- texinfo | [] [] [] [] |
- tin | () |
- tuxpaint | [] [] [] [] [] [] |
- unicode-han-tra... | |
- unicode-transla... | |
- util-linux | [] [] [] [] |
- util-linux-ng | [] [] [] [] |
- vorbis-tools | [] |
- wastesedge | |
- wdiff | [] [] [] [] [] [] [] |
- wget | [] [] [] [] |
- xchat | [] [] [] [] [] [] [] |
- xkeyboard-config | [] [] [] |
- xpad | [] [] [] |
- +--------------------------------------------------+
- or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
- 0 5 77 31 53 4 58 72 3 45 46 9 45 122 3
-
- tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu
- +---------------------------------------------------+
- Compendium | [] [] [] [] | 19
- a2ps | [] [] [] | 19
- aegis | [] | 1
- ant-phone | [] [] | 6
- anubis | [] [] [] | 11
- ap-utils | () [] | 4
- aspell | [] [] [] | 16
- bash | [] | 6
- bfd | | 2
- bibshelf | [] | 7
- binutils | [] [] [] [] | 9
- bison | [] [] [] [] | 20
- bison-runtime | [] [] [] [] | 18
- bluez-pin | [] [] [] [] [] [] | 28
- cflow | [] [] | 5
- clisp | | 9
- console-tools | [] [] | 5
- coreutils | [] [] [] | 18
- cpio | [] [] [] [] | 11
- cpplib | [] [] [] [] [] | 12
- cryptonit | [] | 6
- dialog | [] [] [] | 9
- diffutils | [] [] [] [] [] | 29
- doodle | [] | 6
- e2fsprogs | [] [] | 10
- enscript | [] [] [] | 16
- fetchmail | [] [] | 12
- findutils | [] [] [] | 11
- findutils_stable | [] [] [] [] | 18
- flex | [] [] | 15
- fslint | [] | 2
- gas | [] | 3
- gawk | [] [] [] | 16
- gcal | [] | 5
- gcc | [] [] [] | 7
- gettext-examples | [] [] [] [] [] [] | 29
- gettext-runtime | [] [] [] [] [] [] | 28
- gettext-tools | [] [] [] [] [] | 20
- gip | [] [] | 13
- gliv | [] [] | 11
- glunarclock | [] [] [] | 15
- gmult | [] [] [] [] | 16
- gnubiff | [] | 2
- gnucash | () [] | 5
- gnuedu | [] | 2
- gnulib | [] | 10
- gnunet | | 0
- gnunet-gtk | [] [] | 3
- gnutls | | 4
- gpe-aerial | [] [] | 14
- gpe-beam | [] [] | 14
- gpe-calendar | [] [] | 7
- gpe-clock | [] [] [] [] | 21
- gpe-conf | [] [] [] | 16
- gpe-contacts | [] [] | 10
- gpe-edit | [] [] [] [] [] | 22
- gpe-filemanager | [] [] | 7
- gpe-go | [] [] [] [] | 19
- gpe-login | [] [] [] [] [] | 21
- gpe-ownerinfo | [] [] [] [] | 21
- gpe-package | [] | 6
- gpe-sketchbook | [] [] | 16
- gpe-su | [] [] [] [] | 21
- gpe-taskmanager | [] [] [] [] | 21
- gpe-timesheet | [] [] [] [] | 18
- gpe-today | [] [] [] [] [] | 21
- gpe-todo | [] [] | 8
- gphoto2 | [] [] [] [] | 21
- gprof | [] [] | 13
- gpsdrive | [] | 5
- gramadoir | [] | 7
- grep | [] | 12
- gretl | | 6
- gsasl | [] [] [] | 9
- gss | [] | 7
- gst-plugins-bad | [] [] [] | 13
- gst-plugins-base | [] [] | 11
- gst-plugins-good | [] [] [] [] [] | 16
- gst-plugins-ugly | [] [] [] | 13
- gstreamer | [] [] [] | 18
- gtick | [] [] | 7
- gtkam | [] | 16
- gtkorphan | [] | 7
- gtkspell | [] [] [] [] [] [] | 27
- gutenprint | | 4
- hello | [] [] [] [] [] | 38
- herrie | [] [] | 8
- hylafax | | 0
- idutils | [] [] | 15
- indent | [] [] [] [] [] | 28
- iso_15924 | [] [] | 4
- iso_3166 | [] [] [] [] [] [] [] [] [] | 54
- iso_3166_2 | [] [] | 4
- iso_4217 | [] [] [] [] [] | 24
- iso_639 | [] [] [] [] [] | 26
- jpilot | [] [] [] [] | 7
- jtag | [] | 3
- jwhois | [] [] [] | 13
- kbd | [] [] [] | 13
- keytouch | [] | 8
- keytouch-editor | [] | 5
- keytouch-keyboa... | [] | 5
- latrine | [] [] | 5
- ld | [] [] [] [] | 10
- leafpad | [] [] [] [] [] | 24
- libc | [] [] [] | 19
- libexif | [] | 5
- libextractor | [] | 5
- libgpewidget | [] [] [] | 20
- libgpg-error | [] | 6
- libgphoto2 | [] [] | 9
- libgphoto2_port | [] [] [] | 11
- libgsasl | [] | 8
- libiconv | [] [] | 11
- libidn | [] [] | 11
- lifelines | | 4
- lilypond | [] | 6
- lingoteach | [] | 6
- lprng | [] | 2
- lynx | [] [] [] | 15
- m4 | [] [] [] | 18
- mailfromd | [] [] | 3
- mailutils | [] [] | 8
- make | [] [] [] | 20
- man-db | [] | 9
- minicom | [] | 14
- nano | [] [] [] | 20
- opcodes | [] [] | 10
- parted | [] [] [] | 11
- pilot-qof | [] | 1
- popt | [] [] [] [] | 18
- psmisc | [] [] | 10
- pwdutils | [] | 3
- qof | [] | 4
- radius | [] [] | 7
- recode | [] [] [] | 25
- rpm | [] [] [] [] | 13
- screem | [] | 2
- scrollkeeper | [] [] [] [] | 26
- sed | [] [] [] [] | 23
- shared-mime-info | [] [] [] | 29
- sharutils | [] [] [] | 23
- shishi | [] | 3
- skencil | [] | 7
- solfege | [] | 3
- soundtracker | [] [] | 9
- sp | [] | 3
- system-tools-ba... | [] [] [] [] [] [] [] | 38
- tar | [] [] [] | 17
- texinfo | [] [] [] | 15
- tin | | 1
- tuxpaint | [] [] [] | 19
- unicode-han-tra... | | 0
- unicode-transla... | | 2
- util-linux | [] [] [] | 20
- util-linux-ng | [] [] [] | 20
- vorbis-tools | [] [] | 4
- wastesedge | | 1
- wdiff | [] [] | 23
- wget | [] [] [] | 20
- xchat | [] [] [] [] | 29
- xkeyboard-config | [] [] [] | 14
- xpad | [] [] [] | 15
- +---------------------------------------------------+
- 76 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu
- 163 domains 0 3 1 74 51 0 143 21 1 57 7 45 0 2036
-
- Some counters in the preceding matrix are higher than the number of
-visible blocks let us expect. This is because a few extra PO files are
-used for implementing regional variants of languages, or language
-dialects.
-
- For a PO file in the matrix above to be effective, the package to
-which it applies should also have been internationalized and
-distributed as such by its maintainer. There might be an observable
-lag between the mere existence a PO file and its wide availability in a
-distribution.
-
- If November 2007 seems to be old, you may fetch a more recent copy
-of this `ABOUT-NLS' file on most GNU archive sites. The most
-up-to-date matrix with full percentage details can be found at
-`http://translationproject.org/extra/matrix.html'.
-
-1.6 Using `gettext' in new packages
-===================================
-
-If you are writing a freely available program and want to
-internationalize it you are welcome to use GNU `gettext' in your
-package. Of course you have to respect the GNU Library General Public
-License which covers the use of the GNU `gettext' library. This means
-in particular that even non-free programs can use `libintl' as a shared
-library, whereas only free software can use `libintl' as a static
-library or use modified versions of `libintl'.
-
- Once the sources are changed appropriately and the setup can handle
-the use of `gettext' the only thing missing are the translations. The
-Free Translation Project is also available for packages which are not
-developed inside the GNU project. Therefore the information given above
-applies also for every other Free Software Project. Contact
-`coordinator@translationproject.org' to make the `.pot' files available
-to the translation teams.
-
diff --git a/src/AUTHORS b/src/AUTHORS
deleted file mode 100644
index ef3c5430..00000000
--- a/src/AUTHORS
+++ /dev/null
@@ -1,4 +0,0 @@
-For Now:
-Ulrich Drepper.
-Roland McGrath
-Petr Machata
diff --git a/src/Android.mk b/src/Android.mk
deleted file mode 100755
index 260fae21..00000000
--- a/src/Android.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-include $(call all-subdir-makefiles)
diff --git a/src/CONTRIBUTING b/src/CONTRIBUTING
deleted file mode 100644
index 3f5e5aa6..00000000
--- a/src/CONTRIBUTING
+++ /dev/null
@@ -1,48 +0,0 @@
-The project homepage is at https://fedorahosted.org/elfutils/
-
-The current elfutils source code can be checked out with
-git clone git://git.fedorahosted.org/git/elfutils.git
-
-The developer mailinglist to send patches to is
-elfutils-devel@lists.fedorahosted.org.
-https://fedorahosted.org/mailman/listinfo/elfutils-devel
-
-Please supply patches using git format-patch or using git send-email.
-
-Sign your work
-
-To facilitate tracking of who did what, we've adopted a "sign-off"
-procedure for patches based on the procedure used by the Linux kernel
-project.
-
-The sign-off is a simple line at the end of the explanation for the
-patch, which certifies that you wrote it or otherwise have the right
-to pass it on as a patch under an appropriate license. The rules are
-pretty simple: if you can certify the below:
-
- Developer's Certificate of Origin
-
- By making a contribution to this project, I certify that:
-
- (a) The contribution was created in whole or in part by me,
- and I have the right to submit the contribution under each
- license indicated in, or otherwise designated as being
- applicable to, the file.
-
- (b) The contribution was provided directly to me by some other
- person who certified (a), and I have not modified it.
-
- (c) I understand and agree that the project and the
- contribution are public and that a record of the
- contribution (including all personal information I submit
- with it, including my sign-off) is maintained indefinitely
- and may be redistributed.
-
-then you just add a line saying
-
-Signed-off-by: Random J Developer <random@developer.example.org>
-
-using your real name (sorry, no pseudonyms or anonymous contributions.)
-
-git commit --signoff will add such a Signed-off-by line at the end of
-the commit log message for you.
diff --git a/src/COPYING b/src/COPYING
deleted file mode 100644
index 94a9ed02..00000000
--- a/src/COPYING
+++ /dev/null
@@ -1,674 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- <program> Copyright (C) <year> <name of author>
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/src/COPYING-GPLV2 b/src/COPYING-GPLV2
deleted file mode 100644
index d159169d..00000000
--- a/src/COPYING-GPLV2
+++ /dev/null
@@ -1,339 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/src/COPYING-LGPLV3 b/src/COPYING-LGPLV3
deleted file mode 100644
index 65c5ca88..00000000
--- a/src/COPYING-LGPLV3
+++ /dev/null
@@ -1,165 +0,0 @@
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-
- This version of the GNU Lesser General Public License incorporates
-the terms and conditions of version 3 of the GNU General Public
-License, supplemented by the additional permissions listed below.
-
- 0. Additional Definitions.
-
- As used herein, "this License" refers to version 3 of the GNU Lesser
-General Public License, and the "GNU GPL" refers to version 3 of the GNU
-General Public License.
-
- "The Library" refers to a covered work governed by this License,
-other than an Application or a Combined Work as defined below.
-
- An "Application" is any work that makes use of an interface provided
-by the Library, but which is not otherwise based on the Library.
-Defining a subclass of a class defined by the Library is deemed a mode
-of using an interface provided by the Library.
-
- A "Combined Work" is a work produced by combining or linking an
-Application with the Library. The particular version of the Library
-with which the Combined Work was made is also called the "Linked
-Version".
-
- The "Minimal Corresponding Source" for a Combined Work means the
-Corresponding Source for the Combined Work, excluding any source code
-for portions of the Combined Work that, considered in isolation, are
-based on the Application, and not on the Linked Version.
-
- The "Corresponding Application Code" for a Combined Work means the
-object code and/or source code for the Application, including any data
-and utility programs needed for reproducing the Combined Work from the
-Application, but excluding the System Libraries of the Combined Work.
-
- 1. Exception to Section 3 of the GNU GPL.
-
- You may convey a covered work under sections 3 and 4 of this License
-without being bound by section 3 of the GNU GPL.
-
- 2. Conveying Modified Versions.
-
- If you modify a copy of the Library, and, in your modifications, a
-facility refers to a function or data to be supplied by an Application
-that uses the facility (other than as an argument passed when the
-facility is invoked), then you may convey a copy of the modified
-version:
-
- a) under this License, provided that you make a good faith effort to
- ensure that, in the event an Application does not supply the
- function or data, the facility still operates, and performs
- whatever part of its purpose remains meaningful, or
-
- b) under the GNU GPL, with none of the additional permissions of
- this License applicable to that copy.
-
- 3. Object Code Incorporating Material from Library Header Files.
-
- The object code form of an Application may incorporate material from
-a header file that is part of the Library. You may convey such object
-code under terms of your choice, provided that, if the incorporated
-material is not limited to numerical parameters, data structure
-layouts and accessors, or small macros, inline functions and templates
-(ten or fewer lines in length), you do both of the following:
-
- a) Give prominent notice with each copy of the object code that the
- Library is used in it and that the Library and its use are
- covered by this License.
-
- b) Accompany the object code with a copy of the GNU GPL and this license
- document.
-
- 4. Combined Works.
-
- You may convey a Combined Work under terms of your choice that,
-taken together, effectively do not restrict modification of the
-portions of the Library contained in the Combined Work and reverse
-engineering for debugging such modifications, if you also do each of
-the following:
-
- a) Give prominent notice with each copy of the Combined Work that
- the Library is used in it and that the Library and its use are
- covered by this License.
-
- b) Accompany the Combined Work with a copy of the GNU GPL and this license
- document.
-
- c) For a Combined Work that displays copyright notices during
- execution, include the copyright notice for the Library among
- these notices, as well as a reference directing the user to the
- copies of the GNU GPL and this license document.
-
- d) Do one of the following:
-
- 0) Convey the Minimal Corresponding Source under the terms of this
- License, and the Corresponding Application Code in a form
- suitable for, and under terms that permit, the user to
- recombine or relink the Application with a modified version of
- the Linked Version to produce a modified Combined Work, in the
- manner specified by section 6 of the GNU GPL for conveying
- Corresponding Source.
-
- 1) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (a) uses at run time
- a copy of the Library already present on the user's computer
- system, and (b) will operate properly with a modified version
- of the Library that is interface-compatible with the Linked
- Version.
-
- e) Provide Installation Information, but only if you would otherwise
- be required to provide such information under section 6 of the
- GNU GPL, and only to the extent that such information is
- necessary to install and execute a modified version of the
- Combined Work produced by recombining or relinking the
- Application with a modified version of the Linked Version. (If
- you use option 4d0, the Installation Information must accompany
- the Minimal Corresponding Source and Corresponding Application
- Code. If you use option 4d1, you must provide the Installation
- Information in the manner specified by section 6 of the GNU GPL
- for conveying Corresponding Source.)
-
- 5. Combined Libraries.
-
- You may place library facilities that are a work based on the
-Library side by side in a single library together with other library
-facilities that are not Applications and are not covered by this
-License, and convey such a combined library under terms of your
-choice, if you do both of the following:
-
- a) Accompany the combined library with a copy of the same work based
- on the Library, uncombined with any other library facilities,
- conveyed under the terms of this License.
-
- b) Give prominent notice with the combined library that part of it
- is a work based on the Library, and explaining where to find the
- accompanying uncombined form of the same work.
-
- 6. Revised Versions of the GNU Lesser General Public License.
-
- The Free Software Foundation may publish revised and/or new versions
-of the GNU Lesser General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Library as you received it specifies that a certain numbered version
-of the GNU Lesser General Public License "or any later version"
-applies to it, you have the option of following the terms and
-conditions either of that published version or of any later version
-published by the Free Software Foundation. If the Library as you
-received it does not specify a version number of the GNU Lesser
-General Public License, you may choose any version of the GNU Lesser
-General Public License ever published by the Free Software Foundation.
-
- If the Library as you received it specifies that a proxy can decide
-whether future versions of the GNU Lesser General Public License shall
-apply, that proxy's public statement of acceptance of any version is
-permanent authorization for you to choose that version for the
-Library.
diff --git a/src/ChangeLog b/src/ChangeLog
index f81b3022..0ae863ed 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,477 +1,3202 @@
-2014-12-18 Mark Wielaard <mjw@redhat.com>
+2014-12-18 Ulrich Drepper <drepper@gmail.com>
- * configure.ac: Set version to 0.161.
- * NEWS: Add dwarf.h additions.
+ * Makefile.am: Suppress output of textrel_check command.
-2014-12-15 Josh Stone <jistone@redhat.com>
+2014-12-17 Mark Wielaard <mjw@redhat.com>
- * .gitignore: Add config/compile as installed by automake 1.14.
+ * readelf.c (print_cfa_program): Add bounds check before each op that
+ takes at least one argument.
-2014-11-27 Mark Wielaard <mjw@redhat.com>
+2014-12-16 Mark Wielaard <mjw@redhat.com>
- * configure.ac: Add --disable-textrelcheck.
+ * readelf.c (print_decoded_line_section): Print dwarf_errmsg if
+ dwarf_onesrcline or dwarf_linesrc fails.
-2014-10-06 Mark Wielaard <mjw@redhat.com>
+2014-12-16 Mark Wielaard <mjw@redhat.com>
- * NEWS: New section 0.161. Add dwarf_peel_type.
+ * readelf.c (print_debug_line_section): Correct overflow check for
+ unit_length.
+ (print_debug_aranges_section): Correct overflow check for length.
-2014-08-25 Mark Wielaard <mjw@redhat.com>
+2014-12-15 Mark Wielaard <mjw@redhat.com>
- * configure.ac: Set version to 0.160.
- * NEWS: Add removal of DW_TAG_mutable_type, LZMA .ko.xz kernel
- module support, ARM THUMB functions and ppc64le ELFv2 abi backends.
+ * readelf.c (notice_listptr): Return false if offset doesn't fit
+ in 61-bits.
+ (attr_callback): Warn if loclist or rangelist offset doesn't fit.
-2014-08-15 Mark Wielaard <mjw@redhat.com>
+2014-12-15 Mark Wielaard <mjw@redhat.com>
- * NEWS: Add dwarf_cu_die.
+ * readelf.c (print_ops): Don't assert when addr_size or ref_size
+ is not 4 or 8, just report invalid data.
-2014-08-15 Mark Wielaard <mjw@redhat.com>
+2014-12-15 Mark Wielaard <mjw@redhat.com>
- * NEWS: Add dwarf_cu_getdwarf.
+ * readelf.c (print_gdb_index_section): Add more bounds checks.
-2014-07-18 Mark Wielaard <mjw@redhat.com>
+2014-12-15 Mark Wielaard <mjw@redhat.com>
- * configure.ac (AC_CHECK_TYPE): Test for struct user_regs_struct.
+ * readelf.c (print_debug_line_section): Check there is enough room
+ for DW_LNE_set_address argument. Make sure there is enough room
+ for the the initial unit_length.
+
+2014-12-14 Mark Wielaard <mjw@redhat.com>
+
+ * elflint.c (check_attributes): Call get_uleb128 with end pointer.
+ * readelf.c (print_attributes): Likewise.
+ (print_ops): Likewise and also for get_sleb128.
+ (print_cfa_program): Likewise and add more readp bounds checks.
+ (read_encoded): Likewise.
+ (print_debug_frame_section): Likewise.
+ (print_debug_line_section): Likewise.
+ (print_debug_macinfo_section): Likewise.
+ (print_debug_macro_section): Likewise.
+ (print_debug_exception_table): Likewise.
+
+2014-12-16 Mark Wielaard <mjw@redhat.com>
+
+ * elfcmp.c (compare_Elf32_Word): Make sure (unsigned) Elf32_Word
+ difference doesn't wrap around before returning as int.
+
+2014-12-11 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_exception_table): Check TType base offset
+ and Action table are sane.
+
+2014-12-11 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_frame_section): Check number of augmentation
+ chars to print.
+
+2014-12-09 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_file_note): Check count fits data section and
+ doesn't overflow fptr.
+
+2014-12-08 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_exception_table): Report invalid data if
+ action table doesn't immediately follow call site table.
+
+2014-12-10 Josh Stone <jistone@redhat.com>
+
+ * addr2line.c (get_diename): New, get linkage_name or name.
+ * addr2line.c (print_dwarf_function): Use get_diename.
+ * addr2line.c (handle_address): Likewise.
+ * addr2line.c (print_diesym): Removed.
+
+2014-12-10 Josh Stone <jistone@redhat.com>
+
+ * addr2line.c (handle_address): Find the proper inline parents.
+
+2014-12-07 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_line_section): max_ops_per_instr cannot
+ be zero.
+
+2014-12-07 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_ops): Handle zero ref_size for DW_OP_call_ref
+ and DW_OP_GNU_implicit_pointer.
+
+2014-12-04 Mark Wielaard <mjw@redhat.com>
+
+ * objdump.c (show_relocs_x): Make sure destshdr exists.
+ (show_relocs_rel): Don't rely on shdr->sh_entsize, use gelf_fsize.
+ (show_relocs_rela): Likewise.
+ (show_relocs): Make sure destshdr, symshdr and symdata exists.
+
+2014-11-30 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_sysv_hash64): Fix overflow check.
+
+2014-11-28 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_relocs_rel): Don't reuse destshdr to store
+ section header of a relocation against a STT_SECTION symbol. Use
+ a new local variable secshdr.
+ (handle_relocs_rela): Likewise.
+
+2014-11-26 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_aranges_section): Cast Dwarf_Word length
+ to ptrdiff_t for comparison.
+
+2014-11-24 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_line_section): Check line_range is not zero
+ before usage.
+
+2014-11-23 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_aranges_section): Check length to catch
+ nexthdr overflow.
+
+2014-11-21 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_attributes): Guard against empty section.
+ Document attribute format. Break when vendor name isn't terminated.
+ Add overflow check for subsection_len. Handle both gnu and non-gnu
+ attribute tags.
+
+2014-11-22 Mark Wielaard <mjw@redhat.com>
+
+ * elflint.c (check_sections): Call ebl_bss_plt_p without ehdr.
+ * findtextrel.c (process_file): Use elf_getphdrnum.
+ * readelf.c (process_elf_file): Remove redundant ehdr->e_phoff check.
+ (print_phdr): Check phnum.
+ * size.c (show_segments): Use elf_getphdrnum.
+ * strip.c (handle_elf): Likewise.
+ * unstrip.c (copy_elf): Likewise.
+ (copy_elided_sections): Likewise.
+ (handle_file): Likewise.
+
+2014-11-18 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_cfa_program): Fix sanity check of DW_FORM_block
+ length.
+
+2014-11-17 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_verneed): Check vna_next and vn_next exist.
+ (handle_verdef): Check vda_next and vd_next exist.
+ (handle_versym): Check vd_next, vna_next and vn_next exist.
+ Check vername and filename are not NULL before use.
+
+2014-11-17 Mark Wielaard <mjw@redhat.com>
+
+ * elfcmp.c (main): Check section names are NULL before use.
+ * objdump.c (section_match): Likewise.
+ * size.c (show_sysv): Likewise.
+
+2014-11-17 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_frame_section): Warn if ptr_size is not 4
+ or 8 instead of just calling print_cfa_program.
+
+2014-11-16 Mark Wielaard <mjw@redhat.com>
+
+ * readelf (process_elf_file): Set phnum to zero if there aren't
+ actually any pheaders.
+ (print_phdr): Check there actually is a phdr.
+
+2014-11-16 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_cfa_program): Check block len before calling
+ print_ops.
+
+2014-11-14 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_frame_section): Sanity Check CIE
+ unit_length and augmentationlen.
+
+2014-11-14 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_versym): Check def == NULL before use.
+
+2014-11-08 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_versym): Initialize vername and filename array
+ elements.
+
+2014-11-07 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_sysv_hash): Sanity check section contents.
+ (handle_sysv_hash64): Likewise.
+ (handle_gnu_hash): Likewise.
+
+2014-09-14 Petr Machata <pmachata@redhat.com>
+
+ * readelf.c (handle_relocs_rela): Typo fix, test DESTSHDR properly.
+
+2014-09-12 Petr Machata <pmachata@redhat.com>
+
+ * readelf.c (encoded_ptr_size): In the switch statement, change
+ magic constants 3 and 4 to DW_EH_PE_* counterparts. Still accept
+ 0. Print diagnostic for anything else.
+
+2014-08-25 Josh Stone <jistone@redhat.com>
+
+ * Makefile.am: Prevent premature @AR@ replacement in a sed expression.
+
+2014-07-04 Menanteau Guy <menantea@linux.vnet.ibm.com>
+ Mark Wielaard <mjw@redhat.com>
+
+ * elflint (check_symtab): Add ".TOC." to the list of possibly
+ dangling symbols because of sourceware PR13621.
+
+2014-06-14 Mark Wielaard <mjw@redhat.com>
+
+ * elflint (check_symtab): Use ebl_func_addr_mask on st_value.
+
+2014-05-27 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug): Skip section if name is NULL.
+
+2014-05-26 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_relocs_rela): Print header like handle_relocs_rel
+ does, when sh_info == 0.
2014-05-26 Mark Wielaard <mjw@redhat.com>
- * NEWS: New section 0.160. Add unstrip --force.
+ * unstrip.c (find_alloc_sections_prelink): Allow non-split .bss
+ section when sh_size of the original and undo .bss section are equal.
+
+2014-05-26 Mark Wielaard <mjw@redhat.com>
-2014-05-17 Mark Wielaard <mjw@redhat.com>
+ * unstrip.c (options): Add --force, -F.
+ (struct arg_info): Add bool force.
+ (parse_opt): Handle 'F', set force.
+ (handle_explicit_files): Add force argument, add warn function,
+ separate check ehdr field checks, use warn.
+ (handle_dwfl_module): Add force argument, pass on to
+ handle_explicit_files.
+ (handle_output_dir_module): Add force argument, pass on to
+ handle_dwfl_module.
+ (handle_implicit_modules): Pass info->force to handle_dwfl_module and
+ handle_output_dir_module.
+ (main): Pass info.force to handle_explicit_files.
- * configure.ac: Set version to 0.159.
- * NEWS: Add entries for version 0.159.
+2014-05-19 Mark Wielaard <mjw@redhat.com>
-2014-05-02 Mark Wielaard <mjw@redhat.com>
+ * elflint.c (check_reloc_shdr): Check ebl_check_reloc_target_type.
- * NEWS: Add note about dwz support no longer being experimental and
- new helper functions.
- * configure.ac: Remove --enable-dwz.
- * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Remove --enable-dwz.
+2014-05-01 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (find_no_debuginfo): Call dwfl_standard_find_debuginfo
+ if looking for alternate debug file.
2014-04-11 Mark Wielaard <mjw@redhat.com>
- * Makefile.am (SUBDIRS): Add libdwelf.
- * configure.ac (AC_CONFIG_FILES): Add libdwelf/Makefile.
- * NEWS: Add note about libdwelf.
+ * Makefile.am (AM_CPPFLAGS): Add -I libdwelf.
+
+2014-04-22 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_core_item): Make sure variable length array
+ contains at least enough space for terminating zero char.
+
+2014-04-22 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_gdb_index_section): Use unsigned int for 31 bits
+ left shift.
+
+2014-03-13 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am: Remove no_mudflap.os. Remove libmudflap from all
+ LDADD lines.
+ * strings.c (process_chunk): Remove _MUDFLAP condition.
+
+2014-04-09 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_aranges_section): Don't get the raw section
+ data, use the possibly decompressed .[z]debug sectiondata.
+ (print_debug_ranges_section): Likewise.
+ (print_debug_frame_section): Likewise.
+ (print_debug_line_section): Likewise.
+ (print_debug_loc_section): Likewise.
+ (print_debug_macinfo_section): Likewise.
+ (print_debug_macro_section): Likewise.
+
+2014-04-10 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (buf_read_ulong): Pass actual long size to convert.
+
+2014-03-05 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (attr_callback): Print DW_FORM_sdata values as signed
+ numbers.
+
+2014-02-24 Mark Wielaard <mjw@redhat.com>
+
+ * readelf (print_phdr): Check there is a SHT_PROGBITS section at the
+ offset given by p_offsets for a PT_INTERP segment before trying to
+ display the interpreter string.
+
+2014-02-07 Mark Wielaard <mjw@redhat.com>
-2014-04-13 Mark Wielaard <mjw@redhat.com>
+ * readelf.c (print_phdr): Check phdr->p_filesz and make sure
+ interpreter string is zero terminated before calling printf.
- * configure.ac: Remove mudflap enable arg and MUDFLAP conditional.
+2014-01-22 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (nm_no_Wformat): Removed.
+ (size_no_Wformat): Likewise.
+ (strings_no_Wformat): Likewise.
+ (addr2line_no_Wformat): Likewise.
+ * size.c (show_sysv): Use fmtstr directly as literal in printf.
+ (show_sysv_one_line): Likewise.
+ * strings.c (locfmt): Removed.
+ (radix): New static enum.
+ (parse_opt): Set radix, not locfmt.
+ (process_chunk_mb): Use fmtstr directly as literal in printf based
+ on radix.
+ (process_chunk): Likewise.
+ * nm.c (show_symbols_sysv): Use fmtstr directly as literal in printf.
+ (show_symbols_bsd): Likewise.
+ (show_symbols_posix): Likewise.
2014-01-21 Mark Wielaard <mjw@redhat.com>
- * NEWS (Version 0.159): Add stack -i.
+ * stack.c (show_inlines): New static boolean.
+ (print_frame): New function split out from...
+ (print_frames): ..here. If show_inlines is true and we found a
+ DIE for the frame address, call print_inline_frames otherwise
+ call print_frame. Keep track of and track frame_nr.
+ (print_inline_frames): New function.
+ (parse_opt): Handle '-i'.
+ (main): Add 'i' to options.
+
+2014-01-27 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (maxframes): Initialize to 256.
+ (main): Document new default in options. Document magic number
+ used in frames.allocated initialization.
+
+2014-01-20 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (show_debugname): New static boolean.
+ (die_name): New function.
+ (print_frames): If show_debugname is true set symname to the
+ first function-like DIE with a name in scope for the address in
+ the debuginfo.
+ (parse_opt): Handle '-d'.
+ (main): Add 'd' to options.
2014-01-20 Mark Wielaard <mjw@redhat.com>
- * NEWS (Version 0.159): New. Add stack -d.
+ * addr2line.c (handle_address): Initialize scopes to NULL.
+
+2014-01-17 Roland McGrath <roland@redhat.com>
+
+ * strip.c (handle_elf): Check for bogus values in sh_link, sh_info,
+ st_shndx, e_shstrndx, and SHT_GROUP or SHT_SYMTAB_SHNDX data.
+ Don't use assert on input values, instead bail with "illformed" error.
+
+2014-01-17 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (handle_dynamic, handle_symtab): Check for bogus sh_link.
+ (handle_verneed, handle_verdef, handle_versym, handle_hash): Likewise.
+ (handle_scngrp): Check for bogus sh_info.
+
+2014-01-17 Jakub Jelinek <jakub@redhat.com>
+
+ * elflint.c (section_name): Return "<invalid>" instead of
+ crashing on invalid section name.
+ (check_symtab, is_rel_dyn, check_rela, check_rel, check_dynamic,
+ check_symtab_shndx, check_hash, check_versym): Robustify.
+ (check_hash): Don't check entries beyond end of section.
+ (check_note): Don't crash if gelf_rawchunk fails.
+
+2014-01-17 Petr Machata <pmachata@redhat.com>
-2014-01-03 Mark Wielaard <mjw@redhat.com>
+ * readelf.c (handle_dynamic, handle_relocs_rel)
+ (handle_relocs_rela, handle_versym, print_liblist):
+ Use gelf_fsize instead of relying on shdr->sh_entsize.
+
+2014-01-14 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_macro_section): Clear vendor array before
+ use.
- * configure.ac: Set version to 0.158.
- * NEWS: Add entries for version 0.158.
+2014-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix corruption of non-C++ symbols by the demangler.
+ * nm.c (show_symbols_sysv, show_symbols_bsd, show_symbols_posix)
+ (show_symbols): Check for _Z.
+ * stack.c (print_frames) <USE_DEMANGLE>: Check for _Z.
+
+2014-01-02 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (show_raw): Declare unconditionally.
+ (parse_opt): Handle '-r' unconditionally.
+ (main): Show "raw" option even without USE_DEMANGLE.
+
+2014-01-02 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (print_frames): Print 0x before build-id hex-offset.
+
+2014-01-02 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (maxframes): Increase to 2048.
+ (struct frames): Add allocated field.
+ (frame_callback): If frames used is frames allocated, realloc.
+ (print_frames): Show an error if maxframes has been reached.
+ (parse_opt): Allow -n 0 for unlimited frames.
+ (main): Document -n 0 and new default 2048 frames. Allocate initial
+ number of frames with malloc.
+
+2013-12-30 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (parse_opt): Explicitly call dwfl_linux_proc_attach
+ or dwfl_core_file_attach and check for errors.
+
+2013-12-28 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (print_frames): Remove address width code and use...
+ (get_addr_width): ...this new function.
+ (show_modules): New static boolean.
+ (module_callback): New static function.
+ (parse_opt): Handle '-l'.
+ (main): Add 'l' to options. If show_modules then use dwfl_getmodules
+ with module_callback to show all detected modules and possible
+ build_id, elf and dwarf files.
+
+2013-12-27 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (frames_shown): New static boolean.
+ (EXIT_OK,EXIT_ERROR,EXIT_BAD,EXIT_USAGES): New defines.
+ (frame_callback): Return -1 on error. Don't print error.
+ (print_frames): Add arguments, tid, dwflerr and what. Print tid.
+ If there was an error report it with address and module if possible.
+ Record whether any frames were actually printed.
+ (thread_callback): Collect tid and err, pass it to print_frames.
+ (parse_opt): Use EXIT_BAD for errors. On ARGP_KEY_END print errno
+ if dwfl_linux_proc_report returned it. Check whether we are properly
+ attached with dwfl_pid.
+ (main): Document exit status. Don't report DWARF_CB_ABORT from
+ callbacks as error. Pass real errors to print_frames. Return
+ EXIT_BAD if no frames could be shown. Return EXIT_ERROR if there
+ were any non-fatal errors.
+
+2013-12-23 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (stack_LDADD): Add demanglelib.
+ * stack.c (show_quiet): New static boolean, default false.
+ (show_raw): Likewise.
+ (demangle_buffer_len): New static size_t.
+ (demangle_buffer): New static char *.
+ (print_frames): Don't resolve pc name if show_quiet. Demangle name
+ unless show_raw.
+ (parse_opt): Handle '-q' and '-r'.
+ (main): Add 'q' and 'r' to options. Free demangle_buffer.
+
+2013-12-23 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (OPT_DEBUGINFO): New define.
+ (OPT_COREFILE): Likewise.
+ (pid): New static.
+ (core_fd): Likewise.
+ (core): Likewise.
+ (exec): Likewise.
+ (debuginfo_path): Likewise.
+ (parse_opt): Handle '-p', '--core', '-e' and '--debuginfo-path'.
+ Do argument sanity checking. Setup Dwfl.
+ (main): Add 'p', 'core', 'e' and 'debuginfo-path' to options.
+ Remove argp_child children, simplify argp doc, remove custom
+ usage message and construction of dwfl with dwfl_standard_argp.
+ Use pid directly as tid. close core and core_fd if opened. Print
+ pid of process or core.
+
+2013-12-23 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (show_build_id): New static boolean.
+ (print_frames): Print module build-id, load address and pc offset
+ if show_build_id is true.
+ (parse_opt): Handle '-b'.
+ (main): Add -b to options.
+
+2013-12-22 Mark Wielaard <mjw@redhat.com>
+
+ * stack.c (maxframes): New static unsigned. Initialize to 64.
+ (struct frame): New struct.
+ (struct frames): Likewise.
+ (dwfl): New static Dwfl pointer.
+ (frame_callback): Use arg as struct frames and fill it next frame.
+ Return DWARF_CB_ABORT when maxframes has been reached. Move
+ printing of frame to...
+ (print_frames): ...here. New function.
+ (thread_callback): Use arg as struct frames and set frames to zero.
+ Call print_frames.
+ (parse_opt): Handle '-n'.
+ (main): Add -n to options. Allocate frames using maxframes. Pass
+ frames to frame_callback and thread_callback.
2013-12-20 Mark Wielaard <mjw@redhat.com>
- * NEWS (libdwfl): Add dwfl_getthread_frames.
- (stack): New entry.
+ * stack.c (show_one_tid): New static boolean.
+ (parse_opt): Handle '-1'.
+ (main): Add -1 to options. Call dwfl_getthread_frames when
+ show_one_tid is true.
2013-12-18 Mark Wielaard <mjw@redhat.com>
- * NEWS (libdwfl): Add dwfl_module_getsym_info and
- dwfl_module_addrinfo.
- (addr2line): Add -x option.
+ * addr2line.c (options): Add symbol-sections, 'x'.
+ (show_symbol_sections): New static bool.
+ (parse_opt): Handle 'x'.
+ (print_addrsym): Use dwfl_module_addrinfo value.r
+ Also show section of address with show_symbol_sections.
+ (find_symbol): Use dwfl_module_getsym_info and set value.
+ (handle_address): Request value and use it instead of sym.st_value.
+ * readelf.c (format_dwarf_addr): Use dwfl_module_addrinfo to get
+ name and offset.
-2013-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+2013-12-17 Masatake YAMATO <yamato@redhat.com>
+ Mark Wielaard <mjw@redhat.com>
- * NEWS (Version 0.158) (libdwfl): Added Dwfl_Thread_Callbacks,
- Dwfl_Thread, Dwfl_Frame, dwfl_attach_state, dwfl_pid, dwfl_thread_dwfl,
- dwfl_thread_tid, dwfl_frame_thread, dwfl_thread_state_registers,
- dwfl_thread_state_register_pc, dwfl_getthreads, dwfl_thread_getframes
- and dwfl_frame_pc.
+ * stack.c (show_activation, show_module, show_source): New variables.
+ (parse_opt): Set show_activation if -a option is given.
+ Set show_module if -m option is given. Set show_source if -s option
+ is given. Set all show booleans when -v option is given.
+ (main): Added `-a', `-m', `-s', and `-v' to the help message.
+ (frame_callback): Print module and source file information.
-2013-12-16 Mark Wielaard <mjw@redhat.com>
+2013-11-25 Petr Machata <pmachata@redhat.com>
- * NEWS (libdwfl): Add dwfl_module_getsymtab_first_global.
+ * elflint.c (valid_e_machine): Add EM_AARCH64.
-2013-12-09 Josh Stone <jistone@redhat.com>
+2013-11-14 Petr Machata <pmachata@redhat.com>
- * .gitignore: Add config/ar-lib, installed due to AM_PROG_AR.
+ * readelf.c (handle_core_item) <'h'>: New branch for handling
+ fields that shouldn't be displayed.
-2013-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+2013-11-10 Mark Wielaard <mjw@redhat.com>
- * configure.ac (CC_BIARCH): Remove AS_IF for it.
+ * stack.c: Use ARGP_PROGRAM_VERSION_HOOK_DEF and
+ ARGP_PROGRAM_BUG_ADDRESS_DEF.
+ (print_version): New function.
+
+2013-11-09 Mark Wielaard <mjw@redhat.com>
+
+ * arlib.c (arlib_init): Call snprintf before using the result
+ with memcpy.
+ (arlib_finalize): Likewise.
+ * nm.c (show_symbols_sysv): Don't modify cnt inside assert.
2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
- * configure.ac: New AC_CHECK_SIZEOF for long. Call utrace_BIARCH, new
- AC_SUBST for CC_BIARCH.
+ * Makefile.am (bin_PROGRAMS): Add stack.
+ (stack_LDADD): New.
+ * stack.c: New file.
+
+2013-11-05 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_ranges_section): Cast address to size_t
+ before comparison.
+ (print_debug_loc_section): Likewise.
+
+2013-10-18 Mark Wielaard <mjw@redhat.com>
+
+ * ar.c (main): Correct operation check when instance_specifed is set.
+
+2013-09-26 Petr Machata <pmachata@redhat.com>
+
+ * readelf.c (handle_file_note): New function.
+ (handle_notes_data): Call it to handle NT_FILE notes.
+
+2013-09-26 Petr Machata <pmachata@redhat.com>
+
+ * readelf.c (handle_siginfo_note): New function.
+ (handle_notes_data): Call it to handle NT_SIGINFO notes.
+ (buf_read_int, buf_read_ulong, buf_has_data): New functions.
+
+2013-08-13 Mark Wielaard <mjw@redhat.com>
-2013-11-06 Mark Wielaard <mjw@redhat.com>
+ * addr2line.c (options): Add "inlines", 'i'.
+ (show_inlines): New bool.
+ (parse_opt): Handle 'i'.
+ (print_diesym): New static function.
+ (print_src): New function taking code from...
+ (handle_address): here. Call print_src. Print inlines.
- * configure.ac (--enable-dwz): Add AC_MSG_WARN when disabled but
- local system does have /usr/lib/debug/.dwz.
+2013-08-12 Mark Wielaard <mjw@redhat.com>
-2013-11-06 Mark Wielaard <mjw@redhat.com>
+ * addr2line.c (main): If there is a newline char at end of buf,
+ then remove it.
- * configure.ac (--enable-thread-safety): Add AC_MSG_WARN experimental
- option.
+2013-07-05 Mark Wielaard <mjw@redhat.com>
-2013-11-01 Michael Forney <mforney@mforney.org>
+ * readelf.c (print_ops): Take CU as argument, use it to print
+ parameter_ref DIE offset.
+ (struct listptr): Replace base field with cu.
+ (listptr_base): New function.
+ (compare_listptr): Use listptr_base.
+ (notice_listptr): Take CU as argument.
+ (skip_listptr_hole): Likewise.
+ (print_debug_ranges_section): Pass NULL as CU to skip_listptr_hole.
+ (print_cfa_program): Pass NULL as CU to print_ops.
+ (struct attrcb_args): Replace cu_base field with cu.
+ (attr_callback): Pass cu not cu_base to notice_listptr.
+ (print_debug_units): Don't calculate base, just set cu.
+ (print_debug_loc_section): Pass cu to skip_listptr_hole and
+ print_ops.
- * configure.ac: Call AM_PROG_AR and AC_CHECK_TOOL for readelf and nm.
+2013-05-06 Mark Wielaard <mjw@redhat.com>
-2013-10-30 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * readelf.c (print_ops): Format first DW_OP_GNU_implicit_pointer
+ argument as DIE offset.
- * NEWS (Version 0.158): New.
+2013-04-24 Mark Wielaard <mjw@redhat.com>
-2013-09-30 Mark Wielaard <mjw@redhat.com>
+ * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
- * NEWS: Update for readelf NT_SIGINFO and NT_FILE core notes.
+2013-03-25 Mark Wielaard <mjw@redhat.com>
-2013-09-27 Mark Wielaard <mjw@redhat.com>
+ * readelf.c (argp_options): Add decodedline.
+ (decodedline): New boolean initialized to false.
+ (parse_opt): Set decodedline when arg is decodedline.
+ (print_decoded_line_section): New function.
+ (print_debug_line_section): Call print_decoded_line_section when
+ decodedline is true.
- * configure.ac: Set version to 0.157.
- * NEWS: Add entries for version 0.157.
+2013-03-25 Mark Wielaard <mjw@redhat.com>
-2013-09-20 Mark Wielaard <mjw@redhat.com>
+ * readelf.c (argp_option): Add decodedaranges.
+ (decodedaranges): New boolean initialized to false.
+ (parse_opt): Set decodedaranges when arg is decodedaranges.
+ (print_debug_aranges_section): Reimplemented and original
+ implementation renamed to...
+ (print_decoded_aranges_section): this.
- * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add --enable-dwz.
+2013-03-25 Mark Wielaard <mjw@redhat.com>
-2013-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * readelf.c (attrcb_args): Add Dwarf_Die.
+ (attr_callback): When highpc is in constant form also print as
+ address.
+ (print_debug_units): Set args.die.
- * configure.ac: Set version to 0.156.
+2013-03-19 Mark Wielaard <mjw@redhat.com>
-2013-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * readelf.c (print_gdb_index_section): Free format_dwarf_addr results.
- * NEWS: Remove bugfix only entries from Version 0.156.
+2013-03-18 Mark Wielaard <mjw@redhat.com>
-2013-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * readelf.c (print_gdb_index_section): Accept version 8.
- * NEWS: Add entries for Version 0.156.
+2013-03-01 Mark Wielaard <mjw@redhat.com>
-2013-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * findtextrel.c (process_file): Release ELF and close file when not
+ text relocations are found.
+ * strip.c (handle_elf): Track memory used for .debuglink section data
+ and free when done.
- * NEWS (Version 0.156): New.
+2013-02-24 Mark Wielaard <mjw@redhat.com>
-2013-04-26 Mark Wielaard <mjw@redhat.com>
+ * elflint.c (check_symtab): Add __bss_start__ to the list of symbols
+ allowed to have out of section values because of GNU ld bugs.
- * configure.ac (AM_INIT_AUTOMAKE): Request parallel-tests.
+2013-02-06 Mark Wielaard <mjw@redhat.com>
-2013-04-25 Mark Wielaard <mjw@redhat.com>
+ * elflint.c (check_symtab): Add __bss_start and __TMC_END__ to the
+ list of symbols allowed to have out of section values because of
+ GNU ld bugs in either .symtab or .dynsym, but only when they are
+ zero sized.
- * .gitignore: Add config/test-driver as installed by automake 1.13.
- * configure.ac (AM_INIT_AUTOMAKE): Require at least automake 1.11.
+2013-01-24 Mark Wielaard <mjw@redhat.com>
-2012-10-01 Mark Wielaard <mjw@redhat.com>
+ * readelf.c (argp_option): Add unresolved-address-offsets, U.
+ (print_unresolved_addresses): New static.
+ (parse_opt): Handle 'U', set print_unprocessed_values.
+ (format_dwarf_addr): Take and handle new raw argument.
+ (print_ops): Call format_dwarf_addr with raw offset values.
+ (print_debug_ranges_section): Likewise.
+ (print_debug_frame_section): Likewise.
+ (attr_callback): Likewise.
+ (print_debug_line_section): Likewise.
+ (print_debug_loc_section): Likewise.
+ (print_gdb_index_section): Likewise.
+
+2013-01-18 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (struct listptr): Add base Dwarf_Addr field.
+ (compare_listptr): Warn for same offset with different base.
+ (notice_listptr): Take base argument and set it.
+ (skip_listptr_hole): Likewise.
+ (struct attrcb_args): Removed unused cu_offset field.
+ Add cu_base Dwarf_Addr field.
+ (attr_callback): Call notice_listptr with cbargs->cu_base.
+ (print_debug_units): Set args.cu_base.
+ (print_debug_ranges_section): Get base and use for format_dwarf_addr.
+ (print_debug_loc_section): Likewise.
+
+2013-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * readelf.c (handle_core_items): Limit special repeated items handling
+ to single-item formats '\n', 'b' and 'B', assert OFFSET 0 there.
+
+2012-12-18 Mark Wielaard <mark@bordewijk.wildebeest.org>
+
+ * readelf.c (ELF_INPUT_SECTION): New argp key value.
+ (argp_option): Add elf-section.
+ (elf_input_section): New static.
+ (parse_opt): Handle ELF_INPUT_SECTION and set elf_input_section.
+ (open_input_section): New function.
+ (process_file): Call open_input_section if elf_input_section set.
+
+2013-01-13 David Abdurachmanov <David.Abdurachmanov@cern.ch>
+
+ ar.c (do_oper_delete): Fix num passed to memset.
+
+2012-12-21 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_frame_section): Adjust FDE start address
+ if pcrel before feeding it to format_dwarf_addr.
+
+2012-12-21 Mark Wielaard <mjw@redhat.com>
+
+ * addr2line.c (main): Call dwfl_end.
+
+2012-12-11 Roland McGrath <roland@hack.frob.com>
+
+ * nm.c (show_symbols_sysv): Fix size passed to snprintf for invalid
+ sh_name case.
+ Reported by David Abdurachmanov <David.Abdurachmanov@cern.ch>.
+
+2012-10-16 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_ops): DW_OP_skip and DW_OP_bra targets are
+ calculated beginning after the operand and 2-byte constant.
+
+2012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * readelf.c (ITEM_WRAP_COLUMN, REGISTER_WRAP_COLUMN): Merge to ...
+ (WRAP_COLUMN): ... here.
+ (print_core_item): Remove parameter format_max. Update function
+ comment. Replace FORMAT_MAX by the real output width.
+ (handle_core_item): Remove the FORMAT_MAX values in TYPES, DO_TYPE,
+ calls of print_core_item, remove variable maxfmt, change
+ ITEM_WRAP_COLUMN to WRAP_COLUMN.
+ (handle_core_register): Remove the FORMAT_MAX values in TYPES, BITS,
+ calls of print_core_item, change REGISTER_WRAP_COLUMN to WRAP_COLUMN.
+
+2012-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * readelf.c (handle_core_item) <b>: Make run an outer block variable.
+ Increase run only if LASTBIT != 0. Print last element only if RUN > 0.
+
+2012-08-27 Mark Wielaard <mjw@redhat.com>
- * configure.ac: Add --enable-valgrind check.
- * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add --enable-valgrind.
+ * readelf.c (print_debug_macro_section): Print offset as PRIx64.
2012-08-27 Mark Wielaard <mjw@redhat.com>
- * configure.ac: Set version to 0.155.
+ * readelf.c (register_info): Handle loc == NULL.
-2012-08-24 Mark Wielaard <mjw@redhat.com>
+2012-08-22 Jeff Kenton <jkenton@tilera.com>
- * configure.ac: Add --enable-dwz check, defaults to no.
+ * elflint.c (valid_e_machine): Add EM_TILEGX and EM_TILEPRO.
-2012-07-24 Mark Wielaard <mjw@redhat.com>
+2012-08-16 Mark Wielaard <mjw@redhat.com>
- * TODO: Add note on shdrs after elf_cntl (ELF_C_FDREAD).
+ * readelf.c (dwarf_tag_name): Renamed from dwarf_tag_string.
+ Uses new dwarf_tag_string or adds ??? or lo_user+%#x when
+ appropriate.
+ (dwarf_attr_name): Likewise.
+ (dwarf_form_name): Likewise.
+ (dwarf_lang_name): Likewise.
+ (dwarf_inline_name): Likewise.
+ (dwarf_encoding_name): Likewise.
+ (dwarf_access_name): Likewise.
+ (dwarf_visibility_name): Likewise.
+ (dwarf_virtuality_name): Likewise.
+ (dwarf_identifier_case_name): Likewise.
+ (dwarf_calling_convention_name): Likewise.
+ (dwarf_ordering_name): Likewise.
+ (dwarf_discr_list_name): Likewise.
+ (print_ops): Remove KNOWN. Use dwarf_locexpr_opcode_string.
+ (attr_callback): Call new dwarf_foobar_name instead of old
+ dwarf_foobar_string functions.
+ (dwarf_tag_string): New function using known-dwarf.h macros.
+ (dwarf_attr_string): Likewise.
+ (dwarf_form_string): Likewise.
+ (dwarf_lang_string): Likewise.
+ (dwarf_inline_string): Likewise.
+ (dwarf_encoding_string): Likewise.
+ (dwarf_access_string): Likewise.
+ (dwarf_visibility_string): Likewise.
+ (dwarf_virtuality_string): Likewise.
+ (dwarf_identifier_case_string): Likewise.
+ (dwarf_calling_convention_string): Likewise.
+ (dwarf_ordering_string): Likewise.
+ (dwarf_discr_list_string): Likewise.
+ (dwarf_locexpr_opcode_string): Likewise.
+
+2012-06-27 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (dwarf_form_string): Handle DW_FORM_GNU_ref_alt and
+ DW_FORM_GNU_strp_alt.
+ (attr_callback): Likewise.
+
+2012-07-30 Petr Machata <pmachata@redhat.com>
+
+ * nm.c (show_symbols_bsd): Reorder arguments in {S,}FMTSTRS (and
+ corresponding printf) so that those that are referenced by only
+ one of the formatting strings are at the end.
+
+2012-07-29 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (dwarf_lang_string): Use DW_LANG_ObjC, not DW_LANG_Objc.
+ (print_ops): Use known[op], not op_name, for DW_OP_GNU_parameter_ref.
+
+2012-07-19 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_ops): Handle DW_OP_GNU_parameter_ref.
+
+2012-07-11 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (options): Add macro to help of debug-dump.
+ (section_e): Add section_macro.
+ (section_all): Add section_macro.
+ (parse_opt): Handle macro.
+ (print_debug_macro_section): New function.
+ (print_debug): Add NEW_SECTION (macro).
+
+2012-07-10 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_gdb_index_section): Add version 7 support.
+ Keep track of cu_nr. Print kind and static/global flag for each
+ symbol. When a symbol is in the TU list add 'T'.
+
+2012-06-26 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (dwarf_attr_string): Add DW_AT_GNU_macros.
2012-06-22 Mark Wielaard <mjw@redhat.com>
- * configure.ac: Set version to 0.154.
+ * readelf.c (print_ops): Cast printf PRIu/x64 arguments to uint64_t
+ for gcc 4.7 -Wformat.
+
+2012-05-09 Roland McGrath <roland@hack.frob.com>
+
+ * elflint (check_sections): Allow zero sized sections at (filesz) end
+ of segment. And make check overflow-proofed.
+
+2012-04-24 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_ops): Add DW_OP_GNU_push_tls_address,
+ DW_OP_GNU_uinit and DW_OP_GNU_encoded_addr.
+
+2012-03-28 Roland McGrath <roland@hack.frob.com>
+
+ * elflint.c (special_sections): Accept SHF_INFO_LINK for reloc sections.
+
+2012-03-28 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_abbrev_section): Check there is Dwarf
+ section data.
+ (print_debug_str_section): Likewise.
-2012-01-24 Mark Wielaard <mjw@redhat.com>
+2012-03-21 Mark Wielaard <mjw@redhat.com>
- * COPYING: Fix address. Updated version from gnulib.
+ * readelf.c (print_gdb_index_section): Accept version 6.
-2012-01-23 Mark Wielaard <mjw@redhat.com>
+2012-01-31 Mark Wielaard <mjw@redhat.com>
- * configure.ac: Set version to 0.153, update copyright years.
+ * readelf.c (attr_callback): Don't special case DW_FORM_sec_offset.
+
+2012-01-21 Ulrich Drepper <drepper@gmail.com>
+
+ * addr2line.c: Update copyright year.
+ * ar.c: Likewise.
+ * elfcmp.c: Likewise.
+ * elflint.c: Likewise.
+ * findtextrel.c: Likewise.
+ * ld.c: Likewise.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * ranlib.c: Likewise.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strings.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise.
+
+ * nm.c (argp_children): Define.
+ (argp): Hook up argp_children.
+ (handle_ar): Optimize puts call.
+ (show_symbols_bsd): Use positional parameters to also print color
+ codes. Don't print STT_FILE symbols.
+ * objdump.c (options): Improve help text.
+ (argp_children): Define.
+ (argp): Hook up argp_children.
+ (disasm_info): Add elements for color codes.
+ (disasm_output): Print color codes as well.
+ (show_disasm): Set up disasm_info data for callback.
2012-01-20 Roland McGrath <roland@hack.frob.com>
- * configure.ac: Handle --enable-deterministic-archives.
+ * arlib-argp.c (arlib_deterministic_output): Initialize from
+ configured value.
+ (help_filter): New function.
+ (argp): Use it.
+
+ * ar.c (main): Handle oper_none as usage error.
+
+ * arlib-argp.c (options, parse_opt): Grok -U as inverse of -D.
+
+ * ranlib.c (argp): Use arlib_argp_children.
+
+ * arlib.c (arlib_init): Obey arlib_deterministic_output.
+
+ * arlib-argp.c: New file.
+ * Makefile.am (libar_a_SOURCES): Add it.
+ * arlib.h (arlib_deterministic_output, arlib_argp_children):
+ Declare new variables.
+ * ar.c (deterministic_output): Variable removed.
+ (do_oper_insert): Use arlib_deterministic_output instead.
+ (options, parse_opt): Don't handle -D here. Add group numbers.
+ (argp): Use arlib_argp_children.
+
+2011-12-20 Roland McGrath <roland@hack.frob.com>
+
+ * readelf.c (print_debug): Initialize DUMMY_DBG.elf.
+ Reported by Karel Klic <kklic@redhat.com>.
+
+2011-11-05 Roland McGrath <roland@hack.frob.com>
-2011-10-08 Roland McGrath <roland@hack.frob.com>
+ * ar.c (deterministic_output): New flag variable.
+ (options, parse_opt): Grok -D to set it.
+ (do_oper_insert): When set, use zero from mtime, uid, and gid.
- * configure.ac (eu_version): Use sed instead of ${x/y/z} syntax.
- Use POSIX.2 $((...)) syntax instead of $[...].
- Reported by Mike Frysinger <vapier@gentoo.org>.
+ * ar.c (do_oper_insert): Fix check on elf_rawfile return value.
-2011-10-08 Mike Frysinger <vapier@gentoo.org>
+2011-10-04 Marek Polacek <mpolacek@redhat.com>
- * configure.ac: Fix use of AC_ARG_ENABLE to handle $enableval correctly.
+ * readelf.c (register_info): Assume the right size of an array.
+
+2011-10-03 Ulrich Drepper <drepper@gmail.com>
+
+ * nm.c: Recognize option --mark-special. Still recognize --mark-weak
+ but don't show it in help anymore.
+ (mark_special): Renamed from mark_weak.
+ (parse_opt): Adjust.
+ (class_type_char): Take additional parameters for ELF file and ELF
+ header. Treat TLS symbols like objects.
+ In case of D symbols, show u for unique symbols, R for symbols in
+ read-only sections, B for symbols in BSS sections.
+ (show_symbols_bsd): Take additional parameters for ELF file and ELF
+ header. Adjust for class_type_char change. Show TLS symbols with
+ @ after them in case --mark-special is selected.
+ (show_symbols_posix): Likewise.
+ (show_symbols): Adjust calls to show_symbols_bsd and
+ show_symbols_posix.
+ (show_symbols_sysv): Avoid printing adress and size for undefined
+ symbols. Don't print initial special entry and section entries.
2011-10-02 Ulrich Drepper <drepper@gmail.com>
- * configure.ac: Check for __cxa_demangle in libstdc++.
+ * Makefile.am (demanglelib): Define.
+ (nm_LDADD): Add demanglelib.
+ * nm.c (options): Add -C option.
+ (demangle): Define as global variable.
+ (parse_opt): Recognize -C.
+ (show_symbols_sysv): Handle demangling.
+ (show_symbols_bad): Likewise.
+ (show_symbols_posix): Likewise.
+ (show_symbols): Likewise.
+
+2011-07-09 Roland McGrath <roland@hack.frob.com>
+
+ * readelf.c (options, parse_opt): Grok -W/--wide and ignore it.
+
+ * ar.c (parse_opt): Grok -u.
+
+2011-05-30 Mark Wielaard <mjw@redhat.com>
+
+ * strip.c (relocate): Make offset check overflow-proof.
+
+2011-05-23 Mark Wielaard <mjw@redhat.com>
+
+ * strip.c (relocate): Take new arguments is_rela to indicate
+ whether the relocation is from a SHT_REL or SHT_RELA section.
+ Relocate against any debug section symbol, not just STT_SECTION
+ symbols. For SHT_REL relocations, fetch addend from offset and
+ add it to symbol value if not zero.
+
+2011-05-23 Mark Wielaard <mjw@redhat.com>
+
+ * strip.c (OPT_RELOC_DEBUG): New option.
+ (argp_option): Add new --reloc-debug-sections option.
+ (main): Check new option.
+ (parse_opt): Likewise.
+ (handle_elf): Remove any relocations between debug sections
+ in ET_REL for the debug file when requested.
+
+2011-05-18 Mark Wielaard <mjw@redhat.com>
+
+ * strip.c (handle_elf): Make sure all sections of a removed group
+ section are removed too. Don't discard SHT_GROUP sections, copy
+ section table before it gets modified. Section group signature
+ symbols don't have to be retained.
+
+2011-05-16 Jakub Jelinek <jakub@redhat.com>
+
+ * readelf.c (print_ops): Handle DW_OP_GNU_const_type,
+ DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
+ and DW_OP_GNU_reinterpret.
+
+2011-05-17 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (dwarf_tag_string): Fixup DW_TAG_GNU_call_site and
+ DW_TAG_GNU_call_site_parameter return strings.
+
+2011-05-11 Marek Polacek <mpolacek@redhat.com>
+
+ * nm.c (show_symbols_sysv): Remove unused if/else, remove
+ unused `prefix' and `fname' parameters.
+
+2011-05-07 Marek Polacek <mpolacek@redhat.com>
+
+ * unstrip.c (compare_sections_nonrel): Mark this function as static.
+
+2011-04-26 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (handle_notes_data): Call ebl_object_note_type_name
+ with note name.
+
+2011-04-14 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (options): Add gdb_index.
+ (section_e): Define section_gdb_index.
+ (parse_opt): Recognize gdb_index debug-dump argument.
+ (print_gdb_index_section): New function.
+ (print_debug): Add gdb_index to debug_sections.
+
+2011-03-24 Petr Machata <pmachata@redhat.com>
+
+ * readelf.c (print_debug_line_section): Emit initial space for all
+ opcode lines. Print offset in front of each opcode.
+
+2011-03-22 Marek Polacek <mpolacek@redhat.com>
+
+ * readelf.c (handle_dynamic): Don't segfault at DT_PLTREL case.
+
+2011-03-22 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (dwarf_tag_string): Support DW_TAG_GNU_call_site
+ and DW_TAG_GNU_call_site_parameter.
+ (dwarf_attr_string): Support DW_AT_GNU_call_site_value,
+ DW_AT_GNU_call_site_data_value,
+ DW_AT_GNU_call_site_target,
+ DW_AT_GNU_call_site_target_clobbered,
+ DW_AT_GNU_tail_call,
+ DW_AT_GNU_all_tail_call_sites,
+ DW_AT_GNU_all_call_sites,
+ and DW_AT_GNU_all_source_call_sites.
+ (print_ops): Handle DW_OP_GNU_entry_value.
+ (attr_callback): Handle DW_AT_GNU_call_site_value,
+ DW_AT_GNU_call_site_data_value,
+ DW_AT_GNU_call_site_target,
+ and DW_AT_GNU_call_site_target_clobbered.
+
+2011-03-10 Mark Wielaard <mjw@redhat.com>
+
+ * elflint.c (check_symtab): Use ebl_check_st_other_bits.
+
+2011-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * readelf.c (reset_listptr): Clear TABLE->TABLE.
+
+2011-02-25 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (dwarf_attr_string): Add DW_AT_GNU_* handling.
+ (dwarf_form_string): Properly format and return unknown form.
+
+2011-02-23 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (section_name): New function.
+ (print_debug_abbrev_section): Use it instead of constant.
+ (print_debug_aranges_section): Likewise.
+ (print_debug_ranges_section): Likewise.
+ (print_debug_units): Likewise.
+ (print_debug_line_section): Likewise.
+ (print_debug_loc_section): Likewise.
+ (print_debug_macinfo_section): Likewise.
+ (print_debug_pubnames_section): Likewise.
+ (print_debug_str_section): Likewise.
+ (print_debug) [USE_ZLIB]: Match .zdebug_* sections too.
+ (print_debug_abbrev_section): Use decoded d_size, not sh_size.
+ (print_debug_str_section): Likewise.
+
+ * readelf.c (dwarf_attr_string): Grok DW_AT_GNU_odr_signature.
+
+2011-02-11 Roland McGrath <roland@redhat.com>
+
+ * elfcmp.c (verbose): New variable.
+ (options, parse_opt): Grok -l/--verbose to set it.
+ (main): Under -l, keep going after first difference.
+
+ * elfcmp.c (ignore_build_id): New variable.
+ (options, parse_opt): Grok --ignore-build-id to set it.
+ (main): For SHT_NOTE sections, compare note details rather than raw
+ bytes. Under --ignore-build-id, don't complain about differing build
+ ID contents if lengths match.
2011-02-08 Roland McGrath <roland@redhat.com>
- * configure.ac (C99 check): Use AC_LANG_SOURCE.
+ * ldscript.y (filename_id_star): Remove unused variable.
+
+ * unstrip.c (copy_elided_sections): Remove unused variable.
+
+ * elflint.c (check_dynamic): Remove unused variables.
+
+ * elflint.c (check_symtab): Warn about missing xndx section only once.
+
+ * ldgeneric.c (check_for_duplicate2): Remove unused variable.
+
+2011-01-06 Roland McGrath <roland@redhat.com>
+
+ * strip.c (handle_elf): Under --strip-sections, remove all
+ non-allocated sections and never generate .gnu_debuglink.
+
+2011-01-04 Roland McGrath <roland@redhat.com>
+
+ * strip.c (remove_shdrs): New variable.
+ (options, parse_opt): Grok --strip-sections to set it.
+ (handle_elf): When that's set, truncate off .shstrtab and shdrs.
+
+2010-11-10 Roland McGrath <roland@redhat.com>
+
+ * findtextrel.c (process_file): Don't assume order of sections.
+ Reported by Mike Hommey <mh@glandium.org>.
+
+2010-07-26 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_ops): Handle DW_OP_GNU_implicit_pointer.
+
+2010-08-30 Roland McGrath <roland@redhat.com>
+
+ Print .debug_loc/.debug_ranges with cognizance of actual DIE uses.
+ * readelf.c (parse_opt): Add section_info to implicit_debug_sections
+ for ranges, loc.
+ (struct listptr, struct listptr_table): New types.
+ (compare_listptr, reset_listptr, sort_listptr): New functions.
+ (notice_listptr, skip_listptr_hole): New functions.
+ (struct attrcb_args): Add silent member.
+ (attr_callback): Call notice_listptr for loclistptr and rangelistptr.
+ Suppress output if silent, but still call notice_listptr.
+ (print_debug_units): Suppress output if section_info not requested.
+ (print_debug_loc_section): Call sort_listptr, skip_listptr_hole.
+ (print_debug_ranges_section): Likewise.
+ (print_debug): Call reset_listptr on both tables.
+
+ * readelf.c (print_debug_ranges_section): Print empty list.
+ (print_debug_loc_section): Likewise.
+
+ * readelf.c (print_debug_loc_section): Check for bogus length
+ before calling print_ops.
+ (print_ops): Check harder for bogus data that would read off end.
+
+2010-08-11 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (for_each_section_argument): Process all sections with
+ matching name, not just the first.
+
+2010-07-26 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_ops): Take new argument for CU version.
+ Fix DW_OP_call_ref decoding to depend on it.
+ (print_debug_loc_section): Update caller.
+ (print_cfa_program): Take new argument, pass it down.
+ (print_debug_frame_section): Update caller.
+ (struct attrcb_args): New member version.
+ (print_debug_units): Initialize it.
+
+2010-07-02 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_debug_frame_section): Use format_dwarf_addr for
+ initial_location.
+
+2010-06-30 Roland McGrath <roland@redhat.com>
+
+ * strings.c (main): Use STDIN_FILENO, not STDOUT_FILENO.
+ Ignore st_size for a non-S_ISREG file descriptor.
+ (read_block): Move assert after no-mmap bail-out.
+ (read_block_no_mmap): Fix size calculations for moving buffer remnant.
+
+2010-06-22 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_debug_line_section): Fix braino in DW_LNS_set_isa.
+
+2010-06-21 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (dwarf_tag_string): Handle new v4 tags.
+ (dwarf_attr_string): Add new attributes.
+ (dwarf_tag_string): Handle DW_TAG_GNU_*.
+
+ * readelf.c (print_ops): Use 64-bit types for LEB128 operands.
+ (print_cfa_program): Likewise.
+
+2010-06-20 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_debug_units): New function, broken out of ...
+ (print_debug_info_section): ... here. Call it.
+ (print_debug_types_section): New function.
+ (enum section_e): Add section_types alias for section_info.
+ (print_debug): Add types to the sections table.
+
+ * readelf.c (print_debug_frame_section): Handle version 4 format.
+
+ * readelf.c (print_debug_line_section): Handle version 4 format.
+
+2010-06-14 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c (copy_elided_sections): Make sure all sections' data have
+ been read in before we write anything out.
+
+2010-06-04 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c (update_shdr): New function.
+ (update_sh_size): Call it instead of gelf_update_shdr.
+ (adjust_relocs, add_new_section_symbols): Likewise.
+ (new_shstrtab, copy_elided_sections): Likewise.
+
+ * unstrip.c (copy_elided_sections): Bail if stripped file has more
+ sections than unstripped file, rather than getting confused later.
+
+2010-06-01 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (dwarf_form_string): Handle DWARF 4 forms.
+ (attr_callback): Handle DW_FORM_flag_present, DW_FORM_exprloc,
+ DW_FORM_sec_offset, DW_FORM_ref_sig8.
+
+ * readelf.c (print_debug): Don't bail if libdw setup fails.
+ Suppress complaint if we only want .eh_frame anyway.
+
+2010-05-28 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (attr_callback): Also print form information.
+
+2010-05-19 Roland McGrath <roland@redhat.com>
+
+ * addr2line.c (find_symbol): Short-circuit on empty name.
+ (handle_address): Handle SYMBOL with no +OFFSET.
+
+2010-05-08 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_ops): Take new arg OFFSET_SIZE.
+ Use that for DW_OP_call_ref, not ADDRSIZE.
+ (print_cfa_program): Update caller.
+ (struct attrcb_args): Add offset_size field.
+ (attr_callback): Use it for print_ops call.
+ (print_debug_info_section): Initialize it.
+ (print_ops): Likewise.
+
+2010-04-14 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (handle_core_item): Fix bitmask printing.
+
+2010-04-06 Roland McGrath <roland@redhat.com>
+
+ * ld.c (options): Fix some typos in messages.
+ * elflint.c (check_scn_group, check_group): Likewise.
+ * ldscript.y (add_id_list): Likewise.
+ * readelf.c (print_hash_info): Add xgettext:no-c-format magic comment
+ before translated string containing a literal %.
+
+2010-02-26 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (process_file): Don't leak an fd in failure case.
+
+2010-02-15 Roland McGrath <roland@redhat.com>
+
+ * Makefile.am: Use config/eu.am for common stuff.
+
+ * readelf.c (print_debug_frame_section): Add a cast to avoid sign
+ mismatch in comparison.
+
+2010-02-02 Roland McGrath <roland@redhat.com>
- * configure.ac (ALL_LINGUAS): Remove variable, now obsolete.
+ * readelf.c (print_encoding_base): Handle DW_EH_PE_absptr (zero).
+ (read_encoded): Likewise.
+ (print_debug_frame_section): Check for bogus augmentation length.
+ For P augmentation, use read_encoded, print the encoding description,
+ and use hex for unsigned values.
-2010-09-13 Ulrich Drepper <drepper@redhat.com>
+2010-01-15 Roland McGrath <roland@redhat.com>
- * configure.ac (ALL_LINGUAS): Add languages which have some
- translations.
+ * ar.c: Include <sys/stat.h>.
+ * elflint.c: Likewise.
+ * readelf.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise
-2010-04-15 Roland McGrath <roland@redhat.com>
+2010-01-07 Roland McGrath <roland@redhat.com>
- * configure.ac (LOCALEDIR, DATADIRNAME): Removed.
+ * readelf.c (print_ehdr): Handle PN_XNUM.
+ (phnum): New static variable.
+ (process_elf_file): Set it with elf_getphdrnum.
+ (print_phdr): Use phnum instead of EHDR->e_phnum.
+ (print_dynamic, handle_notes): Likewise.
+ (handle_relocs_rel, handle_relocs_rela): Likewise.
+
+ * elfcmp.c (main): Use elf_getshdrnum and elf_getphdrnum.
+
+ * elflint.c (phnum): New static variable.
+ (check_elf_header): Set it, handling PN_XNUM.
+ Use that in place of EHDR->e_phnum throughout.
+ (check_symtab, check_reloc_shdr, check_dynamic): Likewise.
+ (unknown_dependency_p, check_sections, check_program_header): Likewise.
+
+2010-01-05 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (dwarf_attr_string): Match DW_AT_GNU_vector and
+ DW_AT_GNU_template_name.
+
+2010-01-04 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (handle_notes_data): Grab NT_AUXV only for name "CORE".
+ (handle_core_note): Pass NHDR and NAME to ebl_core_note.
+ (handle_core_item): Handle .format of '\n' as \n-separated strings.
+
+ * readelf.c (implicit_debug_sections): New variable.
+ (parse_opt): Set it instead of print_debug_sections for -a.
+ OR them together for print_debug check.
+ (print_debug): OR them together for section check.
+
+ * readelf.c (options): Repartition into set implied by -a and others.
+ Correct -a text to match reality.
+
+ * readelf.c (struct section_argument): Add bool member 'implicit'.
+ (parse_opt): Set it for -a cases, clear it for -x args.
+ (for_each_section_argument): Don't complain about a missing section by
+ name if it's implicit.
+
+2009-11-16 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_string_section): Punt SHT_NOBITS like empty
+ sections, just as dump_data_section already does.
2009-09-21 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Update for more modern autoconf.
+ * elflint.c (special_sections): Allow MERGE and STRINGS flags to be
+ set for .comment section.
+ Patch by Mark Wielaard <mjw@redhat.com>.
+
+2009-09-08 Roland McGrath <roland@redhat.com>
+
+ * ar.c (main): Fix typo in message format.
+
+2009-08-21 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (attr_callback): Use print_block only when we don't use
+ print_ops.
+
+2009-08-14 Roland McGrath <roland@redhat.com>
+
+ * ar.c (do_oper_extract): Use pathconf instead of statfs.
+
+2009-08-01 Ulrich Drepper <drepper@redhat.com>
+
+ * debugpred.h: Add two most const.
+
+2009-07-26 Mark Wielaard <mjw@redhat.com>
+
+ * elflint.c (check_note_data): Recognize NT_GNU_GOLD_VERSION.
+
+2009-07-25 Mark Wielaard <mjw@redhat.com>
+
+ * Makefile.am (addr2line_LDADD): Add $(libelf).
+
+2009-07-24 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_block): New function.
+ (print_ops): Use it.
+ (attr_callback): Use it for DW_FORM_block* forms.
+
+2009-07-20 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_ops): Add handling of DW_OP_implicit_value
+ and DW_OP_stack_value.
+
+2009-07-14 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_elf_header): Allow Linux ABI.
+ (check_symtab): Handle STB_GNU_UNIQUE.
+
+2009-07-08 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (attr_callback): Handle DW_Form constants for
+ DW_AT_data_member_location.
+
+2009-07-06 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (register_info): New function. Handle unknown register #s.
+ (print_cfa_program): Use it.
+ (handle_core_register, handle_core_registers): Likewise.
+
+2009-06-28 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_address_names): New static variable.
+ (options, parse_opt): Grok -N/--numeric-addresses to clear it.
+ (format_dwarf_addr): Don't look up name if !print_address_names.
+
+2009-06-13 Ulrich Drepper <drepper@redhat.com>
+
+ * ldgeneric.c: Don't use deprecated libelf functions.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise.
+ * ld.h: Fix up comment.
+
+2009-06-01 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_relocs): Expect ELF header argument and pass on
+ to handle_relocs_rel* functions. Adjust caller.
+ (handle_relocs_rel): Add ELF header argument. Add special case for
+ the IRELATIVE relocations in statically linked executables.
+ (handle_relocs_rela): Likewise.
+
+2009-04-29 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_symtab): Add tests of st_other field.
+
+2009-04-23 Ulrich Drepper <drepper@redhat.com>
+
+ * Makefile [BUILD_STATIC] (libdw): Add $(zip_LIBS).
+
+2009-04-20 Roland McGrath <roland@redhat.com>
-2009-08-26 Roland McGrath <roland@redhat.com>
+ * addr2line.c (print_dwarf_function): Honor -s and -A for file names
+ of inline call sites.
- * configure.ac (zip_LIBS): Check for liblzma too.
+ * addr2line.c (just_section): New variable.
+ (adjust_to_section): New function, broken out of ...
+ (handle_address): ... here.
+ (options, parse_opt): Add -j/--section=NAME to set it.
-2009-04-19 Roland McGrath <roland@redhat.com>
+2009-04-15 Roland McGrath <roland@redhat.com>
- * configure.ac (eu_version): Round down here, not in version.h macros.
+ * readelf.c (print_debug_frame_section): Check for DW_CIE_ID_64 in
+ 64-bit format header, DW_CIE_ID_32 in 32-bit format header.
-2009-04-17 Roland McGrath <roland@redhat.com>
+2009-04-14 Roland McGrath <roland@redhat.com>
- * configure.ac (eu_version): Compute number 1000 times larger,
- let $PACKAGE_VERSION be x.y.z as well as x.y (implied x.y.0).
+ * readelf.c (print_attributes): Treat SHT_ARM_ATTRIBUTES on EM_ARM
+ like SHT_GNU_ATTRIBUTES.
-2009-01-23 Roland McGrath <roland@redhat.com>
+ * readelf.c (handle_core_registers): Fix error message.
- * configure.ac (zlib check): Check for gzdirect, need zlib >= 1.2.2.3.
+ * strip.c (handle_elf: check_preserved): Don't note any change when
+ .debug_data is already filled from a previous pass.
- * configure.ac (__thread check): Use AC_LINK_IFELSE, in case of
- building with compiler support but no working runtime support.
+2009-02-05 Ulrich Drepper <drepper@redhat.com>
-2009-01-22 Ulrich Drepper <drepper@redhat.com>
+ * objdump.c (show_relocs_x): Minor cleanups.
- * Makefile.am (rpm): The tarball is now bzip2-compressed.
+ * readelf.c (print_cfa_program): Correct a few labels.
+ Print first DW_CFA_expression and DW_CFA_val_expression parameter
+ as register.
+
+2009-02-01 Ulrich Drepper <drepper@redhat.com>
+
+ * objdump.c (show_relocs_rel, show_relocs_rela): Split common parts
+ into ...
+ (show_relocs_x): ...here. New function.
+ (show_relocs): Better spacing in output.
+
+ * objdump.c (show_relocs_rela): Show offsets as signed values.
+
+ * ar.c (main): Fix recognition of invalid modes for a, b, i modifiers.
+ Improve some error messages.
+ Use program_invocation_short_name instead of AR macro.
+ * Makefile.am (CFLAGS_ar): Remove.
+ * elflint.c (parse_opt): ARGP_HELP_EXIT_ERR does nothing for argp_help.
+ * objdump.c (parse_opt): Likewise.
+ * readelf.c (parse_opt): Likewise.
+
+2009-01-27 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_ops): Notice short length, don't overrun buffer
+ (still need to fix LEB128).
+
+ * readelf.c (print_ops): Fix DW_OP_call[24] decoding.
+
+ * readelf.c (print_ops): Print (empty)\n when LEN == 0.
+
+2009-01-24 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_debug_frame_section): Fix computation of vma_base
+ for PC-relative mode.
+
+2009-01-23 Ulrich Drepper <drepper@redhat.com>
+
+ * size.c (process_file): When handling archive, close file descriptor
+ here. For unknown file format also close file descriptor.
+ (handle_ar): Don't close file descriptor here.
+
+ * readelf.c (parse_opt): Move code to add to dump_data_sections and
+ string_sections list in local function add_dump_section. Adjust 'x'
+ key handling. For 'a' key add .strtab, .dynstr, and .comment section
+ to string_sections list.
+
+2009-01-22 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_phdr): Don't print section mapping when no sections.
+
+ * Makefile.am (AM_CFLAGS): Pass -Wno-format for *_no_Wformat.
+
+ * readelf.c (print_debug_frame_section): Initialize IS_SIGNED to false
+ and reset it only for the 'true' cases.
+
+ * Makefile.am (addr2line_no_Wformat): New variable.
+
+ * readelf.c (print_debug_frame_section): Use t instead of j formats
+ for ptrdiff_t OFFSET.
+
+2009-01-21 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_program_header): Fix typo in .eh_frame_hdr section
+ test. Handle debuginfo files.
+ (check_exception_data): First sanity test.
+
+2009-01-17 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_debug_exception_table): Show target of ar_disp
+ field.
+
+ * elflint.c (check_program_header): Add most consistency checks for
+ PT_GNU_EH_FRAME entry.
+
+ * addr2line.c: Use ARGP_PROGRAM_VERSION_HOOK_DEF and
+ ARGP_PROGRAM_BUG_ADDRESS_DEF.
+ * ar.c: Likewise.
+ * elfcmp.c: Likewise.
+ * elflint.c: Likewise.
+ * findtextrel.c: Likewise.
+ * ld.c: Likewise.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * ranlib.c: Likewise.
+ * readelf.c: Likewise.
+
+ * size.c: Likewise.
+ * strings.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise.
+
+2009-01-16 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_program_header): Check that PT_GNU_EH_FRAME entry
+ matches .eh_frame_hdr section, if it is available. Also check that
+ the segment is allocated, not writable, not executable.
+
+ * readelf.c: Add -e option. Dump exception and unwind related
+ sections. Add -e to -a.
+ (print_encoding_base): Handle DW_EH_PE_omit.
+ (print_debug_exception_table): Beginning of support.
+ (print_debug): Hook up print_debug_exception_table for
+ .gcc_except_table sections.
+
+ * readelf.c (print_debug_frame_section): Some fixes for last change.
+
+2009-01-15 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_encoding): Now a toplevel function.
+ (print_relinfo): Likewise.
+ (print_encoding_base): Broken out of print_debug_frame_section.
+ (print_debug_frame_section): Print different header for .eh_frame
+ sections. Fix recognition of matching CIEs in .debug_frame sections.
+ Print absolute offset for PC-relative FDE locations. Don't print
+ table header for FDEs if the table is empty.
+ (read_encoded): New function.
+ (print_debug_frame_hdr_section): New function.
+ (print_debug): Hook up print_debug_frame_hdr_section for .eh_frame_hdr
+ sections.
+
+ * readelf.c (handle_relocs_rel): Print section number.
+ (print_debug_abbrev_section): Likewise.
+ (print_debug_aranges_section): Likewise.
+ (print_debug_ranges_section): Likewise.
+ (print_debug_info_section): Likewise.
+ (print_debug_line_section): Likewise.
+ (print_debug_loc_section): Likewise.
+ (print_debug_macinfo_section): Likewise.
+ (print_debug_pubnames_section): Likewise.
+ (print_debug_str_section): Likewise.
2009-01-10 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Require gcc with TLS support.
- Rename USE_TLS to USE_LOCKS. The option is renamed to
- --enable-thread-safety.
+ * strings.c (read_block): Fix typo in error message string.
-2009-01-08 Roland McGrath <roland@redhat.com>
+2009-01-07 Ulrich Drepper <drepper@redhat.com>
- * configure.ac (eu_ZIPLIB): Moved to m4/zip.am.
+ * ld.c (ld_new_searchdir): Fix adding to search path list.
+
+2009-01-06 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c: Implement call frame debug section dumping.
2009-01-05 Roland McGrath <roland@redhat.com>
- * configure.ac (eu_ZIPLIB): New macro.
- Use it to test for -lz, -lbz2, set .am ZLIB, BZLIB, zip_LIBS.
+ * elfcmp.c: Exit with status 2 for errors (like cmp, diff, grep).
+ Status 1 (aka EXIT_FAILURE) is only for completed OK but not equal.
+
+2009-01-01 Ulrich Drepper <drepper@redhat.com>
+
+ * addr2line.c: Update copyright year.
+ * ar.c: Likewise.
+ * elfcmp.c: Likewise.
+ * elflint.c: Likewise.
+ * findtextrel.c: Likewise.
+ * ld.c: Likewise.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * ranlib.c: Likewise.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strings.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise.
+
+2008-12-11 Roland McGrath <roland@redhat.com>
+
+ * nm.c (sym_name): New function.
+ (show_symbols_sysv): Use it in place of elf_strptr.
+ (show_symbols_bsd, show_symbols_posix): Likewise.
+ Fixes RHBZ#476136.
+
+ * nm.c (show_symbols_sysv): Use an alloca'd backup section name when
+ elf_strptr fails.
+
+2008-12-02 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (count_dwflmod, process_file): Don't presume encoding of
+ nonzero OFFSET argument to dwfl_getmodules.
+
+2008-08-07 Roland McGrath <roland@redhat.com>
+
+ * addr2line.c (main): Pass string to handle_address.
+ (see_one_module): New function, subroutine of handle_address.
+ (find_symbol): Likewise.
+ (handle_address): Take string argument rather than address.
+ Convert plain number, or handle strings like "(section)+offset"
+ or "symbol+offset".
-2008-12-30 Ulrich Drepper <drepper@redhat.com>
+2008-08-01 Roland McGrath <roland@redhat.com>
- * configure.ac: We need automake 1.8 now.
+ * readelf.c (handle_core_item): Handle 'B' type for 1-origin bitset.
+ For 'b' and 'B', print <x-y,z> or ~<x,y-z> rather than 1/0 string.
-2008-12-24 Roland McGrath <roland@redhat.com>
+ * readelf.c (convert): Take new argument SIZE.
+ (handle_core_register, handle_core_item): Update callers.
+ (handle_core_item): Take new arg REPEATED_SIZE.
+ (handle_core_items): Special case for a singleton item,
+ let handle_core_item handle repeats if it wants to.
- * configure.ac: Use automake flags dist-bzip2 no-dist-gzip,
- distribute only in .tar.bz2 form now.
+ * readelf.c (handle_core_items): Give abridged output
+ for identical groups repeated more than twice.
-2008-12-16 Roland McGrath <roland@redhat.com>
+2008-07-04 Roland McGrath <roland@redhat.com>
- * Makefile.am (pkginclude_HEADERS): New variable, install version.h.
- * configure.ac: Create it, substituting @eu_version@ with
- PACKAGE_VERSION canonicalized to four digits of decimal.
+ * readelf.c (handle_core_items): Handle ELF_T_ADDR.
-2008-08-25 Roland McGrath <roland@redhat.com>
+2008-04-10 Roland McGrath <roland@redhat.com>
- * configure.ac (--enable-tls): Set AM_CONDITIONAL USE_TLS too.
+ * strip.c (handle_elf): Don't keep sections that kept symbol tables
+ refer to. Instead, just be sure to preserve the original symbol
+ table in the debug file so those symbols go with their sections and
+ can be elided from the stripped version of the symbol table.
-2008-08-21 Roland McGrath <roland@redhat.com>
+ * strip.c (handle_elf): When a discarded section kept in the debug
+ file refers to a nondiscard section via sh_link/sh_info, preserve
+ that nondiscarded section unmodified in the debug file as well.
+ Skip adjustment of discarded sections symbol table references when
+ that symbol table is copied in this way.
- * configure.ac (AH_BOTTOM): Emit #include <eu-config.h> and
- move the contents to lib/eu-config.h instead of keeping them here.
+ * elflint.c (check_symtab): Don't crash from missing symbol names
+ after diagnosing bogus strtab.
+
+ * strip.c (handle_elf): Cosmetic cleanup in special section contents
+ adjustment for symtab changes.
+
+2008-03-31 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_sections): Add checks on SHF_EXECINSTR sections:
+ must be SHT_PROGBITS, must not be SHF_WRITE. Let backend hook
+ excuse a special section.
+
+2008-03-27 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_sections): Check that executability and writability
+ of sections is reflected in segment p_flags.
+
+2008-03-26 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_program_header): Accept PT_GNU_RELRO p_flags
+ that matches its PT_LOAD's p_flags &~ PF_W. On sparc, PF_X really
+ is valid in RELRO.
+
+2008-02-29 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_attributes): Add a cast.
+ * elflint.c (check_attributes): Likewise.
+
+ * unaligned.h (add_8ubyte_unaligned): Cast PTR argument for parity
+ with [UNALIGNED_ACCESS_CLASS == BYTE_ORDER] definition.
+ (add_4ubyte_unaligned, add_2ubyte_unaligned): Likewise.
+
+2008-02-03 Ulrich Drepper <drepper@redhat.com>
+
+ * i386_ld.c (elf_i386_count_relocations): Implement R_386_TLS_GD
+ when linked into executable.
+ (elf_i386_create_relocations): Likewise.
+
+2008-02-20 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_attributes): New function.
+ (process_elf_file): Call it under -A.
+
+ * elflint.c (check_attributes): Implement it for real.
+
+2008-02-19 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (special_sections): Handle .gnu.attributes section.
+ (check_sections): Likewise.
+ (check_attributes): New function.
+
+2008-02-10 Roland McGrath <roland@redhat.com>
+
+ * elfcmp.c (main): Ignore sh_offset differences in non-SHF_ALLOC
+ sections and ET_REL files.
+
+2008-02-02 Ulrich Drepper <drepper@redhat.com>
+
+ * elf32-i386.script: Add .eh_frame_hdr, .tdata, and .tbss sections.
+ * i386_ld.c (elf_i386_count_relocations): Handle R_386_TLS_LDO_32
+ and R_386_TLS_LE.
+ (elf_i386_create_relocations): Likewise.
+ * ld.h (struct ld_state): Add need_tls, tls_start, and tls_tcb
+ elements.
+ * ldgeneric.c (add_section): If TLS section is used, set need_tls flag.
+ (ld_generic_create_outfile): Add PT_TLS entry to program header.
+ Fix generation of PT_GNU_STACK entry.
+
+2008-02-01 Ulrich Drepper <drepper@redhat.com>
+
+ * ld.c (replace_args): Prevent loop over replacements if the parameter
+ is only two characters long.
+
+ * ld.c: Recognize sha1 argument for --build-id parameter.
+ * ldgeneric.c (create_build_id_section): Handle sha1.
+ (compute_hash_sum): New function. Broken out of compute_build_id.
+ Take hash function and context as parameters.
+ (compute_build_id): Use compute_hash_sum for md5 and the new sha1
+ implementation.
+
+2008-01-31 Ulrich Drepper <drepper@redhat.com>
+
+ * elf32-i386.script: Add .note.ABI-tag and .note.gnu.build-id sections.
+ * ld.c: Recognize --build-id command line parameter.
+ * ld.h: Define scn_dot_note_gnu_build_id.
+ (struct ld_state): Add build_id and buildidscnidx elements.
+ * ldgeneric.c: Implement --build-id command line parameter.
+ * ldlex.l (ID): Recognize - as valid character after the first one.
+
+2008-01-29 Ulrich Drepper <drepper@redhat.com>
+
+ * ld.c (replace_args): New function.
+ (main): Use it to rewrite old-style parameters.
+
+ * elf32-i386.script: Add .gnu.hash section.
+ * ldgeneric.c (optimal_bucket_size): A tiny bit more efficient.
+ (fillin_special_symbol): Initialize st_size.
+ (sortfct_hashval): New function.
+ (create_gnu_hash): New function.
+ (create_hash): New function.
+ (ld_generic_create_outfile): Use the new functions to create the
+ hash tables.
+
+ * elflint.c (check_gnu_hash): Fix index value printed in error message.
+
+2008-01-24 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_group): Check that signature symbol for section
+ group is not an empty string.
+ * ldgeneric.c: Remove magic assignment of indeces in the dynsym
+ section. Start implementation of --hash-style.
+ * i386_ld.c: Likewise.
+ * ld.c: Recognize --hash-style.
+ * ld.h (struct scninfo): Add comdat_group.
+ Add additional parameter to finalize_plt callback.
+
+2008-01-22 Ulrich Drepper <drepper@redhat.com>
+
+ * ld.h (struct callbacks): Add initialize_gotplt.
+ (struct scnhead): Add scn_dot_gotplt.
+ (struct ld_state): Add gotpltscnidx.
+ * i386_ld.c (elf_i386_initialize_plt): Minor optimization.
+ (elf_i386_initialize_pltrel): Likewise.
+ (elf_i386_initialize_got): There is now a separate .got.plt, so
+ don't do the PLT-related work here. Initialize d_type.
+ (elf_i386_initialize_gotplt): New function.
+ (elf_i386_plt0): Use ud2a after indirect jump.
+ (elf_i386_pic_plt0_entry): Likewise.
+ (elf_i386_finalize_plt): Reference now .got.plt.
+ (elf_i386_count_relocations): For GOT entries which need no relocation
+ don't bump nrel_got.
+ (elf_i386_create_relocations): Also get .got.plt. Rewrite R-386_GOT32
+ handling for split .got/.got.plt.
+ (elf_i386_ld_init): Initialize callbacks.initialize_gotplt.
+ * elf32-i386.script: Sort sections for security. There are no .got
+ input sections. Add .got.plt.
+ * ldgeneric.c (ld_generic_generate_sections): Add .got.plt section.
+ (ld_generic_create_outfile): Initialize .got.plt section.
+ Use .got.plt address for _GLOBAL_OFFSET_TABLE_ symbol and DT_PLTGOT.
+
+2008-01-19 Ulrich Drepper <drepper@redhat.com>
+
+ * i386_ld.c (elf_i386_count_relocations): PLT relocations for undefined
+ symbols are not carried over into statically linked output files.
+ Add dummy entries for more TLS relocations.
+
+ * ld.c (options): Add long names for -( and -).
+
+ * ldgeneric.c (check_definition): For newly found definitions don't
+ mark section as used if symbol is absolute.
+ (extract_from_archive): Only assign archive sequence number the first
+ time the archive is handled. Update ld_state.last_archive_used
+ if any symbol was used. Remove nround variable.
+ (file_process2): When using symbol from an archive, update
+ ld_state.group_start_archive, ld_state.archives, and
+ ld_state.tailarchives.
+ (ld_generic_file_process): If group is not handled anymore, after
+ freeing ELF handles for the archives, clear ld_state.archives and
+ *nextp. Fix wrong logic in recognizing first iteration of group
+ loop. When clearing flags, also clear ld_state.group_start_archive.
+
+2008-01-11 Ulrich Drepper <drepper@redhat.com>
+
+ * objdump.c (show_disasm): Adjust disassembler format string for
+ removal of %e.
+
+2008-01-04 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (handle_core_items): Take new arg DESCSZ; if nonzero,
+ a size greater than the items cover means multiple sets of items.
+ (handle_core_note): Update caller.
+
+2008-01-04 Roland McGrath <roland@redhat.com>
+
+ * strip.c (handle_elf): Move SHDRIDX defn to silence gcc warning.
+
+2008-01-03 Roland McGrath <roland@redhat.com>
+
+ * ld.h (linked_from_dso_p): Use __attribute__ ((__gnu_inline__)).
+
+ * elflint.c (check_dynamic): Remove duplicate initializer.
+
+2008-01-02 Ulrich Drepper <drepper@redhat.com>
+
+ * addr2line.c: Update copyright year.
+ * ar.c: Likewise.
+ * elfcmp.c: Likewise.
+ * elflint.c: Likewise.
+ * findtextrel.c: Likewise.
+ * ld.c: Likewise.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * ranlib.c: Likewise.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strings.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise.
+
+2007-12-30 Ulrich Drepper <drepper@redhat.com>
+
+ * objdump (show_disasm): Use %e after third parameter.
+
+2007-12-21 Ulrich Drepper <drepper@redhat.com>
+
+ * strip.c: Fix wrong parenthesis in a few branch predictions.
+ * strings.c: Likewise.
2007-12-20 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Add support for --enable-debugpred.
- Update likely/unlikely macros for it.
+ * Makefile.am (DEFS): Add DEBUGPRED.
+ * addr2line.c: Include debugpred.h.
+ * ar.c: Likewise.
+ * elfcmp.c: Likewise.
+ * elflint.c: Likewise.
+ * findtextrel.c: Likewise.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * ranlib.c: Likewise.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strings.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise.
+ * debugpred.h: New file.
+
+ * readelf.c (handle_relocs_rel): Use elf_scnshndx.
+ (handle_relocs_rela): Likewise.
+
+ * readelf.c: Add lots of likely/unlikely.
+
+ * elflint.c: Minor cleanups.
+
+2007-11-19 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_ops): Handle all bad op codes gracefully.
+ Print their numbers instead of just ???.
+
+2007-11-09 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (attr_callback): Handle DW_AT_data_location.
+ Handle block forms to mean a DWARF expression for DW_AT_allocated,
+ DW_AT_associated, DW_AT_bit_size, DW_AT_bit_offset, DW_AT_bit_stride,
+ DW_AT_byte_size, DW_AT_byte_stride, DW_AT_count, DW_AT_lower_bound,
+ DW_AT_upper_bound.
+
+2007-10-20 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c (options): Update -R description.
+ (struct symbol): Put symbol details a union with a size_t pointer
+ `duplicate'.
+ (compare_symbols_output): Use null ->name as marker for discard
+ symbols, not zero *->map.
+ (copy_elided_sections): Record forwarding pointers for discarded
+ duplicates and fill SYMNDX_MAP elements through them.
+
+ * readelf.c (process_file): Set offline_next_address to 0 at start.
+ (struct process_dwflmod_args): New type.
+ (process_dwflmod): Take args in it, pass fd to process_elf_file.
+ (process_file): Update caller; dup FD for passing to libdwfl.
+ (process_elf_file): Take new arg FD. For ET_REL file when
+ displaying data affected by libdwfl relocation, open a new Elf handle.
+
+2007-10-17 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_debug_line_section): For invalid data inside a
+ unit with plausible length, keep printing at the next unit boundary.
+
+ * readelf.c (attr_callback): Use dwarf_formref_die, not dwarf_formref.
+
+2007-10-16 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (hex_dump): Fix rounding error in whitespace calculation.
+
+2007-10-15 Roland McGrath <roland@redhat.com>
+
+ * make-debug-archive.in: New file.
+ * Makefile.am (EXTRA_DIST): Add it.
+ (make-debug-archive): New target.
+ (bin_SCRIPTS, CLEANFILES): Add it.
+
+2007-10-10 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (special_sections): Add new attrflag value exact_or_gnuld.
+ Use it to check MERGE|STRINGS for .debug_str.
+ (check_sections): Handle exact_or_gnuld.
+
+2007-10-08 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (handle_core_item): Handle 'T'|0x80 to indicate
+ 64-bit struct timeval with 32-bit tv_usec.
+
+2007-10-07 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (check_archive_index): New function.
+ (process_file): Call it. Change signature to take only fd and name.
+ Use libdwfl to open the file, then iterate on its modules (multiple
+ for an archive) to print file name and call process_elf_file.
+ (main): Update caller. Let process_file do elf_begin.
+ (count_dwflmod, process_dwflmod, find_no_debuginfo): New functions.
+ (process_elf_file): Take only Dwfl_Module * argument.
+ Don't print the file name here.
+ (print_debug_*_section): Take Dwfl_Module * argument.
+ (print_debug): Likewise. Update caller.
+ (format_dwarf_addr): New function.
+ (print_debug_ranges_section): Use it.
+ (attr_callback): Likewise.
+ (print_debug_line_section, print_debug_loc_section): Likewise.
+
+ * readelf.c (print_debug_ranges_section): Translate all strings.
+ (print_debug_loc_section): Likewise.
+
+ * unstrip.c (copy_elided_sections): Initialize SEC.
+
+ * ar.c (do_oper_insert): Put trailing / on short names.
+
+ * arlib.h (MAX_AR_NAME_LEN): Decrease by one.
+
+ * arlib2.c (arlib_add_long_name): Adjust for header size.
+
+ * arlib.c (arlib_finalize): Pad long name table to keep size even.
+
+ * ar.c (do_oper_insert): Use write_retry for padding write.
+
+ * ar.c (do_oper_insert): Initialize CUR_OFF in no_old case.
+ Unconditionally set FOUND[CNT]->elf when setting ->mem.
+ (remember_long_name): New function.
+ (do_oper_insert): Call it. Correctly use length of basename,
+ not original name. Don't store long name twice for new member.
+
+2007-10-06 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_note): Skip empty segment.
+ (check_note_section): Skip empty section.
+
+ * unstrip.c (options, parse_opt, struct arg_info): Grok -R/--relocate.
+ (handle_output_dir_module, handle_implicit_modules): Pass it down.
+ (handle_dwfl_module): When set, use ET_REL already loaded by Dwfl.
+ (compare_alloc_sections): Take new arg REL, ignore address if true.
+ (compare_sections): Likewise, pass it down.
+ (compare_sections_rel, compare_sections_nonrel): New functions.
+ (find_alloc_sections_prelink, copy_elided_sections): Use them
+ instead of compare_sections.
+ (sections_match): New function, broken out of ...
+ (find_alloc_section): ... here.
+ (copy_elided_sections): Reorganize section match-up logic.
+ Use sections_match for SHF_ALLOC in ET_REL.
+ For ET_REL, let the nonzero sh_addr from the debug file dominate.
+
+ * unstrip.c (add_new_section_symbols): Take new arg REL.
+ When true, do not update section symbol values.
+ (collect_symbols): Likewise. Update section symbols with address
+ of chosen output section, not original section.
+ (check_symtab_section_symbols, copy_elided_sections): Update callers.
+
+ * unstrip.c (compare_alloc_sections): At the same address, preserve
+ original section order.
+
+ * elflint.c (special_sections): Don't require MERGE|STRINGS for
+ .debug_str, it didn't always have them with older tools.
+
+ * elflint.c (check_symtab, check_one_reloc): Ignore sh_addr in ET_REL.
+
+2007-10-05 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_symtab): Allow SHN_UNDEF _GLOBAL_OFFSET_TABLE_ in
+ ET_REL file.
+
+ * elflint.c (check_symtab): For _GLOBAL_OFFSET_TABLE_, diagnose
+ SHN_UNDEF as "bad section". Use shndx value in messages.
+
+ * elflint.c (special_sections): Add ".debug_str". Decrement namelen
+ for ".debug" so it matches as a prefix.
+ (IS_KNOWN_SPECIAL): New macro.
+ (check_sections): Use it for ".plt" match. Cite wrong SHT_NOBITS
+ type even under -d, for a .debug* or .shstrtab section.
+
+ * readelf.c (print_ops): Use hex for address operand.
+
+2007-10-04 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c (copy_elided_sections): Initialize NDX_SECTION element for
+ .gnu_debuglink section to SHN_UNDEF. Drop STT_SECTION symbols for
+ sections mapped to SHN_UNDEF.
+
+2007-10-04 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (dump_archive_index): Avoid warning about uninitialized
+ variable with older glibc versions.
+ Add some branch prediction.
+
+2007-10-04 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_archive_index): New variable.
+ (options, parse_opt): Accept -c/--archive-index to set it.
+ (dump_archive_index): New function.
+ (process_file): Take new arg WILL_PRINT_ARCHIVE_INDEX.
+ Call dump_archive_index on archives if set.
+ (main): Update caller.
+ (any_control_option): Give it file scope, moved out of ...
+ (parse_opt): ... here.
+
+2007-10-03 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c (struct arg_info): Add `list' flag.
+ (options, parse_opt): Grok -n/--list to set it.
+ (list_module): New function.
+ (handle_implicit_modules): Call it under -n.
+
+ * elflint.c (check_note_section): New function.
+ (check_sections): Call it for SHT_NOTE.
+
+ * readelf.c (handle_notes): Use sections when available.
+
+ * elflint.c (check_note_data): New function, broken out of ...
+ (check_note): ... here. Call it and elf_getdata_rawchunk.
+
+ * readelf.c (handle_auxv_note): Take offset as argument, not buffer.
+ Use elf_getdata_rawchunk and gelf_getauxv.
+ (handle_notes_data): New function, broken out of ...
+ (handle_notes): ... here. Call it and elf_getdata_rawchunk.
+
+2007-10-01 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (hex_dump): Fix transposed subtraction generating spaces.
+
+ * readelf.c (hex_dump): Fix line header to be hex instead of decimal.
+
+2007-09-10 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (options): Give -p optional argument, alias --string-dump.
+ (string_sections, string_sections_tail): New static variables.
+ (parse_opt): Set them when -p has an argument.
+ (print_string_section): New function, broken out of ...
+ (print_strings): ... here. Call it.
+ (dump_data_section): New function, broken out of ...
+ (dump_data): ... here. Call it.
+ (for_each_section_argument): New function, broken out of ...
+ (dump_data): ... here. Call it.
+ (dump_strings): New function.
+
+2007-08-31 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_strings): Typo fix.
+
+2007-08-23 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (printf_with_wrap): Function removed.
+ (REGISTER_WRAP_COLUMN): New macro.
+ (handle_core_register): Use print_core_item instead.
+ (struct register_info): New type.
+ (compare_registers, compare_register_sets): New functions.
+ (register_bitpos, compare_sets_by_info): New functions.
+ (handle_core_registers): Use those to segregate and sort registers
+ for display.
+
+ * readelf.c (ITEM_WRAP_COLUMN): New macro.
+ (print_core_item): New function.
+ (handle_core_item): Use it instead of printf_with_wrap.
+ (compare_core_items, compare_core_item_groups): New functions.
+ (handle_core_items): Use them. Sort by group and force line breaks
+ between groups.
+
+ * readelf.c (handle_core_registers, handle_core_items): New functions,
+ broken out of ...
+ (handle_core_note): ... here. Call them.
+
+2007-08-22 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c (new_shstrtab): New function, broken out of ...
+ (copy_elided_sections): ... here.
+
+2007-08-20 Roland McGrath <roland@redhat.com>
+
+ Avoid local function trampolines in nm binary.
+ * nm.c (sort_by_address): Move to a static function instead of local
+ inside show_symbols.
+ (sort_by_name_strtab): New static variable.
+ (sort_by_name): Use it. Move to a static function instead of local
+ inside show_symbols.
+ (show_symbols): Set sort_by_name_strtab.
+
+2007-08-19 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (handle_auxv_note): New function.
+ (handle_notes): Call it.
+
+ * readelf.c (printf_with_wrap, convert): New functions.
+ (handle_core_item, (handle_core_register): New functions.
+ (handle_notes): Call those with details from ebl_core_note.
+
+2007-08-12 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_note): Accept type 0 with name "Linux".
+
+ * elflint.c (special_sections): Accept SHF_ALLOC for ".note".
+
+ * elflint.c (section_flags_string): Return "none" for 0, not "".
+
+2007-08-11 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_note): Accept NT_GNU_HWCAP, NT_GNU_BUILD_ID.
+
+2007-08-04 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (hex_dump): Use isprint to determine whether to print
+ character itself or full stop character.
+ (dump_data): No need to check endp for NULL after strtol call.
+
+2007-08-03 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_string_sections): New variable.
+ (options, parse_opt): Handle --strings/-p to set it.
+ (print_strings): New function.
+ (process_elf_file): Call it under -p.
+
+ * readelf.c (options): Add hidden aliases --segments, --sections,
+ as taken by binutils readelf.
+
+2007-08-01 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (dump_data_sections, dump_data_sections_tail):
+ New variables.
+ (options, parse_opt): Handle --hex-dump/-x, set them.
+ (hex_dump): New function.
+ (dump_data): New function, call it.
+ (process_elf_file): Call it.
+
+2007-07-25 Roland McGrath <roland@redhat.com>
+
+ * addr2line.c (show_symbols): New variable.
+ (print_addrsym): New function.
+ (handle_address): Call it.
+ (options, parse_opt): Handle -S/--symbols.
2007-06-05 Ulrich Drepper <drepper@redhat.com>
- * Makefile.am: Remove traces of mini builds.
- * configure.ac: Don't use libelf-po/POTFILES.in as config file
- anymore.
+ * addr2line.c: Update for latest autoconf header.
+ * ar.c: Likewise.
+ * elfcmp.c: Likewise.
+ * elflint.c: Likewise.
+ * findtextrel.c: Likewise.
+ * ld.c: Likewise.
+ * ldgeneric.c: Likewise.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * ranlib.c: Likewise.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strings.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise.
+
+2007-05-18 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c (copy_elided_sections): Match up non-NOBITS sections with
+ stripped file, so as not to duplicate a section copied in both.
+
+ * strip.c (handle_elf): Keep SHT_NOTE section copies in the debug file.
+
+2007-05-17 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c (copy_elided_sections): Don't call gelf_newphdr for 0.
+
+ * unstrip.c (handle_file): Tweak BIAS != 0 warning.
+
+ * unstrip.c (handle_file): Take new arg CREATE_DIRS. If set,
+ call make_directories here.
+ (handle_explicit_files): Take new arg CREATE_DIRS, pass it down.
+ (handle_dwfl_module): Likewise.
+ (handle_implicit_modules): Update callers.
+ (handle_output_dir_module): Likewise. Don't do make_directories here.
+
+ * unstrip.c (get_section_name): New function, broken out of ...
+ (copy_elided_sections): here. Update callers.
+ (find_alloc_section): Broken out of ...
+ (copy_elided_sections): ... here. Update caller.
+ (symtab_count_leading_section_symbols): Take new arg NEWSYMDATA,
+ update STT_SECTION symbols' st_value fields as a side effect.
+ (check_symtab_section_symbols): Update caller.
+ (add_new_section_symbols): Set st_value in symbols added.
+ (collect_symbols): Reset S->value for STT_SECTION symbols recorded.
+ Take new arg SPLIT_BSS. Adjust S->shndx recorded for symbols moved
+ from .bss to .dynbss.
+ (find_alloc_sections_prelink): New function. Associate debug file
+ allocated SHT_NOBITS shdrs with stripped moved by prelink via
+ .gnu.prelink_undo information.
+ (copy_elided_sections): Call it when we couldn't find every allocated
+ section. Don't use a debug file non-NOBITS section if SHF_ALLOC.
+ Take STRIPPED_EHDR arg instead of E_TYPE and PHNUM.
+ (handle_file): Update callers.
+
+ * unstrip.c (copy_elided_sections): Ignore unfound unallocated section
+ named ".comment".
+
+ * elflint.c (check_sections): Fix association of segments with
+ sections when p_memsz > p_filesz.
+
+2007-04-29 Roland McGrath <roland@redhat.com>
+
+ * addr2line.c (options, main): Tweak argp group settings to fix
+ usage output.
-2007-05-16 Roland McGrath <roland@redhat.com>
+2007-04-28 Roland McGrath <roland@redhat.com>
- * configure.ac (AM_INIT_AUTOMAKE): Use -Wno-portability.
+ * strip.c (handle_elf): Update debug file's SHT_NOBITS sections'
+ sizes to match sections adjusted in the stripped file.
-2006-11-02 Roland McGrath <roland@redhat.com>
+2007-04-24 Roland McGrath <roland@redhat.com>
- * Makefile.am (EXTRA_DIST): Add EXCEPTION file.
+ * elfcmp.c (OPT_HASH_INEXACT): New macro.
+ (hash_inexact): New variable.
+ (options, parse_opt): Add --hash-inexact option to set it.
+ (hash_content_equivalent): New function.
+ (main): Call it for differing SHT_HASH sections under --hash-inexact.
+
+2007-04-23 Roland McGrath <roland@redhat.com>
+
+ * unstrip.c: New file.
+ * Makefile.am (bin_PROGRAMS): Add it.
+ (unstrip_LDADD): New variable.
+
+ * strip.c (options): Allow --output for -o.
+
+2007-02-15 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c: Remove unused code. Add a few consts.
+
+2007-02-15 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_debug): Fix brainos in SHDR test.
+
+2007-02-05 Roland McGrath <roland@redhat.com>
+
+ * ar.c: Include <limits.h>, since we use LONG_MAX.
+
+2007-02-05 Ulrich Drepper <drepper@redhat.com>
+
+ * ar.c: Add ugly hack to work around gcc complaining that we
+ ignore fchown's return value.
+ (do_oper_insert): Handle error when writing padding.
+ * ranlib.c: Add fchown complain work around.
+
+ * arlib.c: Make symtab a global variable. Change all users.
+ * arlib2.c: Likewise.
+ * ranlib.c: Likewise.
+ * ar.c: Likewise.
+ * arlib.h: Declare it.
+
+2007-01-11 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_sections): Use ebl_machine_section_flag_check on
+ SHF_MASKPROC bits separately from generic sh_flags validation.
+
+2007-02-04 Ulrich Drepper <drepper@redhat.com>
+
+ * ar.c: New file.
+ * arlib.c: New file.
+ * arlib2.c: New file.
+ * arlib.h: New file.
+ * Makefile (noinst_LIBRARIES): Add libar.
+ (libar_a_SOURCES): Define.
+ (ar_LDADD): Define.
+ (CFLAGS_ar): Define.
+ * ranlib.c: Change to use arlib.
+
+ * elflint.c (check_symtab): Work around GNU ld bug which omits
+ sections but not symbols in those sections.
+
+2007-01-10 Ulrich Drepper <drepper@redhat.com>
+
+ * addr2line.c: Update copyright year.
+ * elfcmp.c: Likewise.
+ * elflint.c: Likewise.
+ * findtextrel.c: Likewise.
+ * ld.c: Likewise.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * ranlib.c: Likewise.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strings.c: Likewise.
+ * strip.c: Likewise.
+
+2006-12-09 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (compare_hash_gnu_hash): New function. Report if the
+ two hash tables have different content (module expected omission
+ of undefined symbols).
+
+2006-10-31 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_program_header): Don't complain about
+ p_filesz > p_memsz if p_memsz is zero and p_type is PT_NOTE.
+
+2006-09-19 Jakub Jelinek <jakub@redhat.com>
+
+ * strip.c (process_file): Disallow -f on archives.
+
+2006-10-09 Roland McGrath <roland@redhat.com>
+
+ * Makefile.am (libld_elf_i386.so): Use $(LINK), not $(CC).
2006-08-29 Roland McGrath <roland@redhat.com>
- * configure.ac: Use AM_MAINTAINER_MODE.
+ * Makefile.am (MAINTAINERCLEANFILES): New variable.
+
+ * readelf.c (handle_relocs_rel): Typo fix, test DESTSHDR properly.
+ Reported by Christian Aichinger <Greek0@gmx.net>.
+
+ * elflint.c (valid_e_machine): Add EM_ALPHA.
+ Reported by Christian Aichinger <Greek0@gmx.net>.
+
+2006-08-08 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB.
+ Keep track of which "high DT" entries are present.
+ Check that either old or GNU-style hash table is present.
+ If GNU-style hash table is used a symbol table is mandatory.
+ Check that if any prelink entry is present all of them are.
+ (check_gnu_hash): Only fail for undefined symbols in GNU-style hash
+ table if they don't refer to functions.
+
+2006-07-17 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (struct version_namelist): Use GElf_Versym for `ndx' field.
+ (add_version): Likewise for argument.
+ (check_versym): Cast constant to GElf_Versym for comparison.
+
+2006-07-12 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (handle_gnu_hash): Add casts for machines where
+ Elf32_Word != unsigned int.
2006-07-12 Ulrich Drepper <drepper@redhat.com>
- * configure.ac (internal_function): Don't use internal visibility.
+ * elflint.c (check_sysv_hash64): Fix printf format.
+
+2006-07-11 Roland McGrath <roland@redhat.com>
+
+ * addr2line.c (options): English fix in -f doc string.
+
+ * addr2line.c (use_comp_dir): New variable.
+ (options, parse_opt): Grok -A/--absolute to set it.
+ (handle_address): If set, prepend dwfl_line_comp_dir results to
+ relative file names.
+
+2006-07-06 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c: Adjust for latest new hash table format.
+ * readelf.c: Likewise.
+
+ * elflint.c (check_versym): Ignore hidden bit when comparing version
+ numbers.
2006-07-05 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Add dummy automake conditional to get dependencies
- for non-generic linker right. See src/Makefile.am.
+ * ldgeneric.c (ld_generic_create_outfile): Correctly recognize
+ discarded COMDAT symbols.
+
+ * i386_ld.c (elf_i386_count_relocations): Lot of corrections.
+ (elf_i386_create_relocations): Likewise.
+ * ld.h (struct symbol): Add local and hidden bits.
+ * ld.c (create_special_section_symbol): These synthsized symbols
+ are local and hidden.
+ * ldgeneric.c (file_process2): Check whether input file matches
+ the emulation.
+ (fillin_special_symbol): Create symbols as local and/or hidden
+ if requested.
+ (ld_generic_create_outfile): Make local copy of symbol.
+ Don't hide global, defined symbols in dynamic symbol table unless
+ requested. Synthetic symbols have no version information.
+
+ * elflint.c: Add support for checking 64-bit SysV-style hash tables.
+ * readelf.c: Add support for printing 64-bit SysV-style hash tables.
+
+2006-07-04 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (is_rel_dyn): Fix and extend DT_RELCOUNT/DT_RELACOUNT
+ testing.
-2005-11-18 Roland McGrath <roland@redhat.com>
+2006-07-03 Ulrich Drepper <drepper@redhat.com>
- * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.
+ * elflint.c: Add testing of DT_GNU_HASH.
+ * readelf.c: Implement showing histogram for DT_GNU_HASH section.
+
+ * Makefile.am: Add hacks to create dependency files for non-generic
+ linker.
+
+2006-06-12 Ulrich Drepper <drepper@redhat.com>
-2005-11-16 Roland McGrath <roland@redhat.com>
+ * ldgeneric.c (ld_generic_generate_sections): Don't create .interp
+ section if creating a DSO and no interpreter is given.
+ (ld_generic_create_outfile): Don't store reference to symbols in
+ discarded COMDAT groups. Don't create PHDR and INTERP program header
+ for DSO if no interpreter is specified.
+ (create_verneed_data): Pretty printing.
- * configure.ac: Define HAVE_LIBASM and STANDALONE conditionals.
- In config.h, define ELFUTILS_HEADER macro.
+ * ldscript.y (content): If a DSO is created don't set default
+ interpreter from linker script.
-2005-11-15 Roland McGrath <roland@redhat.com>
+ * i386_ld.c (elf_i386_count_relocations): Do not add relocations
+ for symbols in discarded COMDAT groups.
+ (elf_i386_create_relocations): Likewise.
+ * ld.h (struct scninfo): Add unused_comdat.
+ * ldgeneric.c (add_section): Also check group signature when
+ matching COMDAT sections.
+ (add_relocatable_file): Ignore symbols in COMDAT group which are
+ discarded.
- * Makefile.am (all_SUBDIRS): Add backends.
- * configure.ac: Write backends/Makefile.
+ * elflint.c (check_one_reloc): For *_NONE relocs only check type
+ and symbol reference.
- * configure.ac: Add --enable-tests-rpath option.
+2006-06-11 Ulrich Drepper <drepper@redhat.com>
-2005-09-16 Roland McGrath <roland@redhat.com>
+ * elflint.c (check_dynamic): Fix checking value of tags which are
+ offsets in the string section. Make sure DT_STRTAB points to the
+ section referenced in sh_link.
- * configure.ac (ALLOW_UNALIGNED) [__ia64__ || __alpha__]:
- Don't set it, since on IA64 you get error messages for unaligned
- accesses, and on Alpha it's at least very slow.
+ * ld.c (options): Add headers. Add short option 'R' for '--rpath'.
-2005-08-29 Ulrich Drepper <drepper@redhat.com>
+ * ld.c: Recognize --eh-frame-hdr option.
+ * ld.h (struct ld_state): Add eh_frame_hdr field.
+ * ldgeneric.c (struct unw_eh_frame_hdr): Define.
- * configure.ac: Fix GCOV make condition generation.
+ * ldgeneric.c (add_section): Use ebl_sh_flags_combine instead of
+ SH_FLAGS_COMBINE.
+ (add_relocatable_file): Minor optimization of last change.
+ (match_section): Don't preserve SHF_GROUP flag any longer.
+
+2006-06-10 Ulrich Drepper <drepper@redhat.com>
+
+ * ld.c (parse_z_option): Recognize execstack and noexecstack.
+ Handle record and ignore as position dependent options.
+ (parse_z_option_2): Handle ignore and record here.
+ * ld.h (struct ld_state): Add execstack field.
+ * ldgeneric.c (add_relocatable_file): Recognize .note.GNU-stack
+ sections.
+ (ld_generic_create_outfile): Fix program header creation in native
+ linker. Add PT_GNU_STACK program header.
+
+2006-06-09 Ulrich Drepper <drepper@redhat.com>
+
+ * i386_ld.c (elf_i386_finalize_plt): Don't change symbol table entries
+ for PLT entries if there is no local definition.
+
+ * ld.c (parse_option): Handle -z ignore like --as-needed and
+ -z record like --no-as-needed.
+ * ld.h (struct ld_state): Remove ignore_unused_dsos field.
+ * ldgeneric.c (new_generated_scn): Always compute ndt_needed by
+ looping over DSOs. When deciding about adding DT_NEEDED entries
+ use ->as_needed instead of ignore_unused_dsos.
+
+2006-05-31 Ulrich Drepper <drepper@redhat.com>
+
+ * ld.c: Recognize --as-needed and --no-as-needed options.
+ * ld.h (struct usedfile): Add as_needed field.
+ (struct ld_state): Likewise.
+ * ldgeneric.c (ld_handle_filename_list): Copy as_needed flag from
+ the list.
+ * ldscript.y (filename_id_list): Split to correctly parse all
+ combinations.
+ (mark_as_needed): Fix loop.
+
+2006-05-28 Ulrich Drepper <drepper@redhat.com>
+
+ * addr2line.c (print_dwarf_function): Use unsigned type for lineno
+ and colno.
+
+2006-05-27 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (handle_relocs_rela): Better notations for addon value.
+ (print_ehdr): Distinguish e_ident[EI_VERSION] from e_version.
+
+2006-04-04 Ulrich Drepper <drepper@redhat.com>
+
+ * addr2line.c: Update copyright year.
+ * elfcmp.c: Likewise.
+ * elflint.c: Likewise.
+ * findtextrel.c: Likewise.
+ * ld.c: Likewise.
+ * nm.c: Likewise.
+ * objdump.c: Likewise.
+ * ranlib.c: Likewise.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strings.c: Likewise.
+ * strip.c: Likewise.
+
+2006-03-09 Roland McGrath <roland@redhat.com>
+
+ * Makefile.am (AM_LDFLAGS): New variable.
+
+2006-03-01 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (dwarf_tag_string, dwarf_attr_string): Update name tables
+ for dwarf.h changes matching 3.0 spec.
+ (dwarf_encoding_string, dwarf_lang_string, print_ops): Likewise.
+
+2005-12-04 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_one_reloc): If relocation section is not loaded,
+ don't check whether the relocations modify read-only sections or
+ loaded and unloaded sections.
+
+2005-11-28 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_one_reloc): Take additional parameters. Use
+ them to determine whether relocation is valid in this type of
+ file. DSOs and executables can contain relocation sections in
+ unloaded sections which just show the relocations the linker
+ applied. Adjust all callers.
+ (check_program_header): Check that PT_PHDR is loaded and that offset
+ matches the one in the ELF header.
+
+2005-10-26 Roland McGrath <roland@redhat.com>
+
+ * nm.c (get_var_range): dwarf_getloclist -> dwarf_getlocation.
+
+2005-09-03 Ulrich Drepper <drepper@redhat.com>
+
+ * strip.c (handle_elf): Unify some error messages.
+ * ld.c (main): Likewise.
+ * ldgeneric.c (open_elf): Likewise.
+ * elfcmp.c (main): Likewise.
+ * elflint.c (check_elf_header): Likewise.
+
+ * size.c (process_file): Fix typo in error message.
+
+ * readelf.c: Lots of little cleanups. Use _unlocked functions.
+
+2005-09-02 Ulrich Drepper <drepper@redhat.com>
+
+ * strings.c (main): Reset elfmap variable after munmap call.
+ [_MUDFLAP] (map_file): Simplify mudflap debugging by not using mmap.
2005-08-28 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Add --enable-gcov option.
+ * ranlib.c: Don't define pread_retry and write_retry here.
+
+ * Makefile.an [BUILD_STATIC] (libdw): Add -ldl.
+ (CLEANFILES): Add *.gcno *.gcda *.gconv.
+
+ * strings.c (process_chunk): Reorder expressions in conditional
+ (process_chunk_mb): Likewise.
+
+ * strings.c: New file.
+ * Makefile.am (bin_PROGRAMS): Add strings.
+ (strings_no_Wstring): Define.
+ (strings_LDADD): Define.
+
+2005-08-27 Roland McGrath <roland@redhat.com>
+
+ * addr2line.c (dwarf_diename_integrate): Function removed.
+ (print_dwarf_function): Use plain dwarf_diename.
+
+2005-08-24 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_versym): Versioned symbols should not have
+ local binding.
+
+2005-08-15 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_versym): Allow VER_NDX_LOCAL symbols to be
+ undefined.
+
+ * Makefile.am: Add rules to build ranlib.
+ * ranlib.c: New file.
+
+2005-08-14 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_sections): Use ebl_section_type_name and allow any
+ sh_type it recognizes.
+
+ * elflint.c (check_sections): Print unknown flags in hex, don't
+ truncate high bits. Print section number and name for unknown type.
+
+2005-08-13 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_program_header): Use ebl_segment_type_name and
+ allow any p_type it recognizes. Include p_type value in error
+ message for unknown type.
+
+2005-08-13 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c (check_symtab): Simplify last change a bit. Pass ehdr
+ to ebl_check_special_symbol.
+ (check_sections): Pass ehdr to ebl_bss_plt_p.
+
+2005-08-12 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (check_symtab): Check that _GLOBAL_OFFSET_TABLE_ st_shndx
+ refers to the right section if it's not SHN_ABS.
+ Let ebl_check_special_symbol override _G_O_T_ value and size checks.
+
+ * elflint.c (check_sections): Don't complain about a non-NOBITS
+ section taking no segment space, if it's sh_size is 0.
+
+ * elflint.c (check_sections): Use ebl_bss_plt_p to see if .plt should
+ be PROGBITS or NOBITS.
+
+ * elflint.c (check_symtab): Use ebl_check_special_symbol to override
+ standard st_value and st_size checks.
+
+2005-07-28 Roland McGrath <roland@redhat.com>
+
+ * addr2line.c (options, parse_opt): Don't handle -e here.
+ (executable): Variable removed.
+ (argp_children): New static variable.
+ (argp): Use it. Make const.
+ (main): Fill in argp_children from dwfl_standard_argp ().
+ Let libdwfl handle file selection, pass Dwfl handle to handle_address.
+ (print_dwarf_function): New function. Try to figure out inline chain.
+ (elf_getname): Function removed, libdwfl does it for us.
+ (handle_address): Take Dwfl handle instead of Elf, Dwarf handles.
+ Use dwfl_module_addrname instead of elf_getname.
+ Use dwfl_module_getsrc and dwfl_lineinfo instead of libdw calls.
+ * Makefile.am (INCLUDES): Add libdwfl directory to path.
+
+2005-08-10 Ulrich Drepper <drepper@redhat.com>
+
+ * strip.c (parse_opt): STATE parameter is now used.
+ Various little cleanups.
+
+ * readelf.c (print_debug_line_section): Correct fallout of renaming
+ of DW_LNS_set_epilog_begin.
+
+2005-08-08 Roland McGrath <roland@redhat.com>
+
+ * strip.c (options, parse_opt): Grok -R .comment for compatibility
+ with binutils strip. Likewise -d, -S, as aliases for -g.
+ Likewise ignore -s/--strip-all.
+
+2005-08-07 Roland McGrath <roland@redhat.com>
+
+ * strip.c (process_file): Open read-only when using a different output
+ file.
2005-08-06 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Add --enable-gprof option.
+ * elflint.c (in_nobits_scn): New function.
+ (check_versym): Allow references for defined symbols against versions
+ of other DSOs also for symbols in nobits sections.
+ Move a few variables around.
+
+ * Makefile.am (AM_CFLAGS): Avoid duplication.
+ Link with statis libs if BUILD_STATIC.
+
+2005-08-05 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c: Many, many more tests. Mostly related to symbol
+ versioning. Those sections should now be completely checked.
+
+ * readelf.c (print_dynamic): Use gelf_offscn.
+
+2005-08-04 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c: Add lots more tests: more extension symbol table sanity,
+ versioning section tests, hash table tests. General cleanup.
+
+2005-08-02 Ulrich Drepper <drepper@redhat.com>
+
+ * objdump.c: New file.
+ * Makefile.am (bin_PROGRAMS): Add objdump.
+ (objdump_LDADD): Define.
+
+ * elflint.c (check_reloc_shdr): New function split out from check_rela
+ and check_rel.
+ (check_one_reloc): New function. Likewise.
+ (check_rela): Use check_reloc_shdr and check_one_reloc.
+ (check_rel): Likewise.
+ (check_program_header): Check that PT_DYNAMIC entry matches .dynamic
+ section.
+ Add checks that relocations against read-only segments are flagged,
+ that the text relocation flag is not set unnecessarily, and that
+ relocations in one section are either against loaded or not-loaded
+ segments.
+
+2005-08-01 Ulrich Drepper <drepper@redhat.com>
+
+ * elfcmp.c (main): Ignore section count and section name string table
+ section index.
2005-07-27 Roland McGrath <roland@redhat.com>
- * Makefile.am (all_SUBDIRS): Put libdwfl before libdw.
+ * elfcmp.c: Include <locale.h>.
+
+2005-07-27 Ulrich Drepper <drepper@redhat.com>
+
+ * elfcmp.c: Print name and index of differing section.
+
+2005-07-24 Ulrich Drepper <drepper@redhat.com>
+
+ * elfcmp.c: Implement comparing gaps between sections.
+
+2005-07-23 Ulrich Drepper <drepper@redhat.com>
+
+ * elflint.c: Include libeblP.h instead of libebl.h.
+ * nm.c: Likewise.
+ * readelf.c: Likewise.
+ * elfcmp.c: Likewise.
+
+ * elfcmp.c (main): Compare individual ELF header fields, excluding
+ e_shoff instead of the whole struct at once.
+ Use ebl_section_strip_p instead of SECTION_STRIP_P.
+ * strip.c: Use ebl_section_strip_p instead of SECTION_STRIP_P.
+
+2005-07-22 Ulrich Drepper <drepper@redhat.com>
+
+ * elfcmp.c (main): Take empty section into account when comparing
+ section content.
+
+ * elflint.c (check_dynamic): Check that d_tag value is >= 0 before
+ using it.
+
+2005-07-21 Ulrich Drepper <drepper@redhat.com>
+
+ * elfcmp.c: New file.
+ * Makefile.am (bin_PROGRAMS): Add elfcmp.
+ (elfcmp_LDADD): Define.
+
+ * elflint.c (check_rela): Check that copy relocations only reference
+ object symbols or symbols with unknown type.
+ (check_rel): Likewise.
+
+2005-06-08 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_ops): Add consts.
+
+2005-05-31 Roland McGrath <roland@redhat.com>
+
+ * readelf.c (print_debug_abbrev_section): Don't bail after first CU's
+ abbreviations. Print a header line before each CU section.
+
+ * readelf.c (print_debug_loc_section): Fix indentation for larger
+ address size.
-2005-07-21 Roland McGrath <roland@redhat.com>
+2005-05-30 Roland McGrath <roland@redhat.com>
- * configure.ac: Take --enable-libebl-subdir=DIR to set LIBEBL_SUBDIR.
+ * readelf.c (print_debug_line_section): Print section offset of each
+ CU's table, so they are easy to find from seeing the stmt_list value.
-2005-06-01 Roland McGrath <roland@redhat.com>
+ * readelf.c (dwarf_attr_string): Add all attributes in <dwarf.h>.
+ (attr_callback): Grok DW_AT_ranges and print offset in hex.
- * Makefile.am (all_SUBDIRS): Add libdwfl.
- * configure.ac: Write libdwfl/Makefile.
+ * readelf.c (attr_callback): Add 2 to addrsize * 2 for %#0* format.
+ (print_debug_ranges_section, print_debug_loc_section): Likewise.
-2005-05-19 Roland McGrath <roland@redhat.com>
+ * readelf.c (print_ops): Take different args for indentation control.
+ (attr_callback): Caller updated.
+ Grok several more block-form attributes as being location expressions.
+ For those same attributes with udata forms, format output differently
+ for location list offset.
+ (print_debug_loc_section): Implement it for real.
- * configure.ac [AH_BOTTOM] (INTDECL, _INTDECL): New macros.
+ * readelf.c (options): Mention ranges for --debug-dump.
+ (enum section_e): Add section_ranges.
+ (parse_opt): Grok "ranges" for -w/--debug-dump.
+ (print_debug_ranges_section): New function.
+ (print_debug): Handle .debug_ranges section.
-2005-05-10 Ulrich Drepper <drepper@redhat.com>
+2005-05-30 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Define MODVERSION in config.h.
+ * readelf.c (handle_notes): At least x86-64 need not have the note
+ section values aligned to 8 bytes.
-2005-02-22 Ulrich Drepper <drepper@redhat.com>
+2005-05-18 Ulrich Drepper <drepper@redhat.com>
- * Makefile.am (all_SUBDIRS): Don't add doc subdir for now.
- * configure.ac: Don't use doc subdir for now.
+ * readelf.c (dwarf_tag_string): Add new tags.
+
+2005-05-08 Roland McGrath <roland@redhat.com>
+
+ * strip.c (handle_elf): Don't translate hash and versym data formats,
+ elf_getdata already did it for us.
+
+2005-05-07 Ulrich Drepper <drepper@redhat.com>
+
+ * Makefile.am (findtextrel_LDADD): Add $(libmudflap).
+ (addr2line_LDADD): Likewise.
+
+2005-05-03 Roland McGrath <roland@redhat.com>
+
+ * strip.c (handle_elf): Apply symbol table fixups to discarded
+ relocation sections when they are being saved in the debug file.
+
+ * strip.c (handle_elf): Pass EHDR->e_ident[EI_DATA] to gelf_xlatetom
+ and gelf_xlatetof, not the native byte order.
+
+ * strip.c (parse_opt): Give error if -f or -o is repeated.
+ (main): Exit if argp_parse returns nonzero.
+
+ * strip.c (debug_fname_embed): New variable.
+ (options, parse_opt): New option -F to set it.
+
+2005-05-07 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (parse_opt): Make any_control_option variable
+ local. Simplify some tests.
+
+2005-05-03 Roland McGrath <roland@redhat.com>
+
+ * strip.c (crc32_file): Function removed (now in ../lib).
+
+2005-05-03 Roland McGrath <roland@redhat.com>
+
+ * elflint.c (is_debuginfo): New variable.
+ (options, parse_opt): New option --debuginfo/-d to set it.
+ (check_sections): If is_debuginfo, don't complain about SHT_NOBITS.
+ (check_note): If is_debuginfo, don't try to get note contents.
+
+2005-04-24 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_debug_abbrev_section): Don't print error when end of
+ section reached.
+
+2005-04-14 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (dwarf_encoding_string): New function.
+ (dwarf_inline_string): New function.
+ (dwarf_access_string): New function.
+ (dwarf_visibility_string): New function.
+ (dwarf_virtuality_string): New function.
+ (dwarf_identifier_case_string): New function.
+ (dwarf_calling_convention_string): New function.
+ (dwarf_ordering_string): New function.
+ (dwarf_discr_list_string): New function.
+ (attr_callback): Decode man more attribute values.
+
+2005-04-01 Ulrich Drepper <drepper@redhat.com>
+
+ * addr2line.c: Finish implementation of -f option.
+
+2005-03-29 Ulrich Drepper <drepper@redhat.com>
+
+ * addr2line.c: New file.
+ * Makefile.am (bin_PROGRAMS): Add addr2line.
+ Define addr2line_LDADD.
+
+ * findtextrel.c: Use new dwarf_addrdie function.
+
+ * findtextrel.c: Fix usage message and re-add accidentally removed
+ line.
+
+2005-03-28 Ulrich Drepper <drepper@redhat.com>
+
+ * findtextrel.c: New file.
+ * Makefile: Add rules to build findtextrel.
2005-02-15 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Remove AM_GNU_GETTEXT use. Use only AM_PO_SUBDIRS.
+ * ldlex.l: Provide ECHO definition to avoid warning.
+
+ * elflint.c (check_program_header): Fix typo in RELRO test.
+
+ * Makefile.am (AM_CFLAGS): Add more warning options.
+ * elflint.c: Fix warnings introduced by the new warning options.
+ * i386_ld.c: Likewise.
+ * ld.c: Likewise.
+ * ld.h: Likewise.
+ * ldgeneric.c: Likewise.
+ * nm.c: Likewise.
+ * readelf.c: Likewise.
+ * sectionhash.c: Likewise.
+ * size.c: Likewise.
+ * string.c: Likewise.
+
+2005-02-05 Ulrich Drepper <drepper@redhat.com>
+
+ * Makefile.am: Check for text relocations in constructed DSOs.
+
+ * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. Link all apps
+ with -lmudflap.
+
+ * ldscript.y: Add as_needed handling.
+ * ldlex.l: Recognize AS_NEEDED token.
+ * ld.h (struct filename_list): Add as_needed flag.
-2005-02-06 Ulrich Drepper <drepper@redhat.com>
+2005-02-04 Ulrich Drepper <drepper@redhat.com>
- * configure.ac (AM_INIT_AUTOMAKE): Removed dist-bzip2.
+ * elflint.c (check_symtab): Correctly determine size of GOT section.
- * Makefile.am (EXTRA_DIST): Remove splint.rc.
- * splint.rc: Removed.
+2005-01-19 Ulrich Drepper <drepper@redhat.com>
+
+ * ld.c: Remove unnecessary more_help function. Print bug report
+ address using argp.
+ * strip.c: Likewise.
+ * size.c: Likewise.
+ * nm.c: Likewise.
+ * readelf.c: Likewise.
+ * elflint.c: Likewise.
+
+ * elflint.c (main): Don't check for parameter problems here.
+ (parse_opt): Do it here, where we get informed about some of them
+ anyway.
+
+ * readelf.c (main): Don't check for parameter problems here.
+ (parse_opt): Do it here, where we get informed about some of them
+ anyway.
+
+2005-01-11 Ulrich Drepper <drepper@redhat.com>
+
+ * strip.c: Update copyright year.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * nm.c: Likewise.
+ * ld.c: Likewise.
+ * elflint.c: Likewise.
+
+ * elflint.c (check_symtab): Don't warn about wrong size for
+ _DYNAMIC and __GLOBAL_OFFSET_TABLE__ for --gnu-ld.
+
+2004-10-05 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_phdr): In section mapping, also indicate
+ sections in read-only segments.
2004-09-25 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Make compile with gcc 4.0.
+ * readelf.c: Make compile with gcc 4.0.
+ * strip.c: Likewise.
+
+2004-08-16 Ulrich Drepper <drepper@redhat.com>
-2004-03-06 Ulrich Drepper <drepper@redhat.com>
+ * strip.c (handle_elf): Rewrite dynamic memory handling to use of
+ allocate to work around gcc 3.4 bug.
- * configure.ac: Use AS_HELP_STRING where applicable.
+2004-01-25 Ulrich Drepper <drepper@redhat.com>
+
+ * ldlex.l (invalid_char): Better error message.
2004-01-23 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Check for C99 compiler.
+ * readelf.c: Print SHT_GNU_LIBLIST sections.
- * configure.ac: Change locking macros in config.h to at least
- evaluate the parameter. Define base_cpu to none for generic linker.
+ * none_ld.c: New file.
2004-01-21 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Print error message in case --disable-generic is
- used if no linker support for the architecture is available.
+ * Makefile.am: Enable building of machine specific linker.
-2004-01-18 Ulrich Drepper <drepper@redhat.com>
+2004-01-20 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Dont generate libebl-po/Makefile.in,
- libdw-po/Makefile.in, libasm-po/Makefile.in.
+ * Makefile.am: Support building with mudflap.
- * Makefile.am (all_SUBDIRS): Remove libebl-po, libdw-po, libasm-po.
+ * i386_ld.c: Fix warnings gcc 3.4 spits out.
+ * ldgeneric.c: Likewise.
+ * ldscript.y: Likewise.
+ * readelf.c: Likewise.
+ * strip.c: Likewise.
-2004-01-17 Ulrich Drepper <drepper@redhat.com>
+ * readelf.c (print_debug_line_section): Determine address size
+ correctly.
+
+2004-01-19 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_phdr): Show which sections are covered by the
+ PT_GNU_RELRO entry.
- * configure.ac: Pretty printing of help message.
+ * elflint.c (check_program_header): Check PT_GNU_RELRO entry.
- * configure.ac: Move AC_SYS_LARGEFILE test to the front.
+ * readelf.c (print_debug_macinfo_section): Implement.
- * configure.ac: Add --enable-mudflap option.
+2004-01-18 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_debug_line_section): Implement.
2004-01-17 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Major cleanups. Use aux dir.
- * config.guess: Moved to new config subdir.
- * config.rpath: Likewise.
- * config.sub: Likewise.
- * depcomp: Likewise.
- * install-sh: Likewise.
- * missing: Likewise.
- * mkinstalldirs: Likewise.
- * Makefile.am (mini_SUBDIRS): Add config.
- (EXTRA_DIST): Remove config.rpath.
+ * src/elflint.c: Use PACKAGE_NAME instead of PACKAGE.
+ * src/ld.c: Likewise.
+ * src/nm.c: Likewise.
+ * src/readelf.c: Likewise.
+ * src/size.c: Likewise.
+ * src/strip.c: Likewise.
+
+ * strip.c: Add a few more unlikely. Reduce scope of some variables.
+
+ * Makefile.am: Support building with mudflap.
+
+2004-01-16 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_debug_info_section): Free dies memory.
+
+ * readelf.c: Print .debug_info section content.
+
+2004-01-13 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Add AC_REVISION.
+ * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE.
- * configure.ac: Add --enable-mudflap option.
+2004-01-12 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (print_debug_aranges): Implement using libdw.
2004-01-11 Ulrich Drepper <drepper@redhat.com>
- * configure.ac: Drop libdwarf directory. Add libdw-po.
- * Makefile.am (all_SUBDIRS): Likewise.
- * elfutils.spec: Don't distribute anything from libdwarf.
+ * nm.c: Adjust for Dwarf_Files type and dwarf_lineno interface change.
+
+ * readelf.c: Use libdw instead of libdwarf. Not all of the old
+ behavior is available yet.
+ * Makefile.am: Link readelf with libdw. Remove libdwarf include path.
+
+2004-01-09 Ulrich Drepper <drepper@redhat.com>
+
+ * nm.c (get_local_names): Adjust call to dwarf_nextcu.
+
+ * nm.c: Implement getting information about local variables.
+
+2004-01-07 Ulrich Drepper <drepper@redhat.com>
+
+ * nm.c: Read also debug information for local symbols.
2004-01-05 Ulrich Drepper <drepper@redhat.com>
- * Makefile.am: Support separate libelf built.
+ * nm.c: Shuffle dwarf handling code around so the maximum column
+ width can be computed ahead of printing. Avoid collection symbols
+ which are not printed anyway.
+
+ * nm.c: Rewrite dwarf handling to use libdw.
+ * Makefile.am (AM_CFLAGS): Add -std parameter.
+ (INCLUDES): Find header in libdw subdir.
+ (nm_LDADD): Replace libdwarf with libdw.
+
+ * elflint.c: Update copyright year.
+ * readelf.c: Likewise.
+ * size.c: Likewise.
+ * strip.c: Likewise.
+ * nm.c: Likewise.
+
+2003-12-31 Ulrich Drepper <drepper@redhat.com>
+
+ * strip.c (process_file): Close file before returning.
- * elfutils.spec.in: Create separata elfutils-libelf-devel package.
- Install libdw DSOs.
+2003-11-19 Ulrich Drepper <drepper@redhat.com>
- * configure.ac (AC_CONFIG_SRCDIR): Use libelf/libelf.h as the file
- name.
+ * readelf.c (handle_dynamic): Make column for tag name wider.
+
+2003-09-29 Ulrich Drepper <drepper@redhat.com>
+
+ * readelf.c (handle_dynamic): Always terminate tag name with a space.
+
+2003-09-25 Ulrich Drepper <drepper@redhat.com>
+
+ * strip.c (process_file): Don't mmap the input file, we modify the
+ data structures and don't want the change end up on disk.
+
+2003-09-23 Jakub Jelinek <jakub@redhat.com>
+
+ * unaligned.h (union u_2ubyte_unaligned,
+ union u_4ubyte_unaligned, union u_8ubyte_unaligned): Add
+ packed attribute.
+ (add_2ubyte_unaligned, add_4ubyte_unaligned,
+ add_8ubyte_unaligned): Avoid nesting bswap_NN macros.
+ Read/store value through _ptr->u instead of *_ptr.
+
+2003-09-22 Ulrich Drepper <drepper@redhat.com>
+
+ * size.c (show_sysv): Change type of maxlen to int.
+
+ * strip.c (handle_elf): Handle the 64-bit archs which is 64-bit
+ buckets.
+
+ * i386_ld.c: Many many fixes and extensions.
+ * ld.c: Likewise.
+ * ldgeneric.c: Likewise.
+
+2003-08-16 Ulrich Drepper <drepper@redhat.com>
+
+ * ldgeneric.c (check_definition): Don't add symbol on dso_list if
+ the reference is from another DSO.
+
+2003-08-15 Ulrich Drepper <drepper@redhat.com>
+
+ * ldgeneric.c (find_entry_point): It is no fatal error if no entry
+ point is found when creating a DSO.
+
+2003-08-14 Ulrich Drepper <drepper@redhat.com>
+
+ * ld.c (main): Always call FLAG_UNRESOLVED.
+ * ldgeneric.c (ld_generic_flag_unresolved): Only complain about
+ undefined symbols if not creating DSO or ld_state.nodefs is not set.
2003-08-13 Ulrich Drepper <drepper@redhat.com>
- * elfutils.spec.in: Remove references to libebl.so.
+ * Makefile.in: Depend on libebl.a, not libebl.so.
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
+ * ld.c (main): Mark stream for linker script as locked by caller.
+ (read_version_script): Likewise.
+ * ldlex.c: Define fread and fwrite to _unlocked variant.
- * Moved to CVS archive.
+ * i386_ld.c (elf_i386_finalize_plt): Replace #ifdefs with uses of
+ target_bswap_32.
+ * unaligned.h: Define target_bswap_16, target_bswap_32, and
+ target_bswap_64.
+ (store_2ubyte_unaligned, store_4ubyte_unaligned,
+ store_8ubyte_unaligned): Define using new macros.
+
+2003-08-12 Ulrich Drepper <drepper@redhat.com>
-2000-08-25 Ulrich Drepper <drepper@redhat.com>
+ * i386_ld.c (elf_i386_finalize_plt): Use packed structs to access
+ possibly unaligned memory. Support use of big endian machines.
- * The beginning. See the NEWS file for the time being.
+2003-08-11 Ulrich Drepper <drepper@redhat.com>
+
+ * Moved to CVS archive.
diff --git a/src/GPG-KEY b/src/GPG-KEY
deleted file mode 100644
index cd60f822..00000000
--- a/src/GPG-KEY
+++ /dev/null
@@ -1,33 +0,0 @@
-Public key for drepper@redhat.com
------BEGIN PGP PUBLIC KEY BLOCK-----
-Version: GnuPG v1.2.1 (GNU/Linux)
-
-mQGiBDuFth0RBACPcHEkyqJE26wTXuuuCxpqJjxlBnNFkJGkWUoeu89QjzWgzXy/
-EA8+ptNBgCTPKnLEqhkRUyxAT/Uz+t+xbKqUtL54IzYfxO4NQsN/VVM0uppNfIJb
-MWvAjvpp2HCkd/32i693rlH+G9dvG8K57by3PBRHBgH2L8Q7t/QvA2AWpwCgzokX
-DDUiitysGn4rWO0rBBoR6OED/3ehpcHtbGixNoubRZAxpw99VTKs/I76OkrQzqcm
-+w+zwZeihJXC88yAHA77/LBB3YKaX3G4CmDQUbeRJ9zPlETTLmRMcF61dQdq/3qV
-Biq1sm6ctZ4uEpm8HnysKMT+VY4Xmj9LLzF2BdING9frcX9rk8Vk25iCLBronS0M
-IU3WA/sEvlUFlfbyCBRBoq+Rlr9u05fnHc7CLMKI7EIS1T1dLPxH1ivuUhyYNGAM
-RhCivBbT2Z0t/R4ksu3VdnPGkCyAAdWNSafSGqCYUzQH0u5Z8HK6c2iXrIX3Ipk5
-DhQOQ6k1tyYzuQw3cCf7RYRJ9/iup8RlscVt2kmGnSucqpxJCbQjVWxyaWNoIERy
-ZXBwZXIgPGRyZXBwZXJAcmVkaGF0LmNvbT6IVwQTEQIAFwUCO4W2HQULBwoDBAMV
-AwIDFgIBAheAAAoJENoowjp5/0R0SqUAoL5HBbaRWR19vjldUeJvYCG2AR94AKDL
-nmVEaykaZWyyNg0OTuxLe1boa4hGBBARAgAGBQI8iQDvAAoJEFWW3Qzpv2U97wgA
-n1RVl6FbIHVVmT224nOp5b98OZVnAJ9ehXzM60RbmGi3kJNS30II+SGft4hGBBMR
-AgAGBQI9Tvt0AAoJEP3S3qzTM8uhUy0AoNqATBj2usEtJduGHukKZ9mQaycFAJ9y
-lq0MmZJwMZ3699e6rgMiHAMAVbkCDQQ7hbZPEAgAzuFAPq1sYUtpJClwX7+pdz1K
-dIgbxDKoSHh2rSRx24HLYY/xg9ps6fZF21/SBialKaB8BFnIeh8S9LXUtWt9aUeC
-klnnQwPbR0BGRcZAS7+nHZ9agiMd4CRe4RWFmS6KhIeUsDa70+8XhIm/C+Ogd7ag
-kBw7ykTb/jWHMyvcP9iY0QtmIatfVTDJUm7Rm5TtM1mDCml/gWIQJ5ezr9gv2NUG
-3kpNYwP+G9o4BLyTOHamix/0YHI/HiZSYiwq40ao0zROd/yXY6/a3mitN96AidJL
-5I5tbqnrFy6LmRvWmyOxWkJD/bF31rrO5PfVUgcVpUxbtW44PtVilhLuh+qjTwAD
-BQf+NTHwjUw1j+PZs/y5XnPw0x0ZdYGEl0I7NqtMgCxI4ZHT9jaLcLXARb3UVEuc
-1LuJ1tAA1ss1c1NLK3Lg+uZzeKMRffRYEUg0Emer8QGWr1uSOxDHcAzuRZX3PYNX
-cEGEyEm443DDnXr/4b8zYK6O+sy1Ld+SVxxp6jwtk0LyT7okgD0E1dDUzX+qxpsV
-ujbzdH4bdqocKouMNMT+BHeobNZpR4Tyz5+pwW+rw1+XZebyBUkIPXOoWPZpUTDG
-fZ+om9xfg0JOcKZIZ0X91dLQp5x99aCmzwWeWy9LFPTAf9pYky8wXzteEotE/Tkm
-DeA1caPC9IEK9BBrrS9TeubrEIhGBBgRAgAGBQI7hbZPAAoJENoowjp5/0R0Z38A
-mgM4FAquwltH0ooTdAmBMoCfKb4/AJ9ufAh4Rl9sFaCie/j8jdo02bcV1A==
-=Yeua
------END PGP PUBLIC KEY BLOCK-----
diff --git a/src/INSTALL b/src/INSTALL
deleted file mode 100644
index 20998407..00000000
--- a/src/INSTALL
+++ /dev/null
@@ -1,370 +0,0 @@
-Installation Instructions
-*************************
-
-Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
-Inc.
-
- Copying and distribution of this file, with or without modification,
-are permitted in any medium without royalty provided the copyright
-notice and this notice are preserved. This file is offered as-is,
-without warranty of any kind.
-
-Basic Installation
-==================
-
- Briefly, the shell command `./configure && make && make install'
-should configure, build, and install this package. The following
-more-detailed instructions are generic; see the `README' file for
-instructions specific to this package. Some packages provide this
-`INSTALL' file but do not implement all of the features documented
-below. The lack of an optional feature in a given package is not
-necessarily a bug. More recommendations for GNU packages can be found
-in *note Makefile Conventions: (standards)Makefile Conventions.
-
- The `configure' shell script attempts to guess correct values for
-various system-dependent variables used during compilation. It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions. Finally, it creates a shell script `config.status' that
-you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
-
- It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring. Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
-
- If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
-be considered for the next release. If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
-may remove or edit it.
-
- The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'. You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
-
- The simplest way to compile this package is:
-
- 1. `cd' to the directory containing the package's source code and type
- `./configure' to configure the package for your system.
-
- Running `configure' might take a while. While running, it prints
- some messages telling which features it is checking for.
-
- 2. Type `make' to compile the package.
-
- 3. Optionally, type `make check' to run any self-tests that come with
- the package, generally using the just-built uninstalled binaries.
-
- 4. Type `make install' to install the programs and any data files and
- documentation. When installing into a prefix owned by root, it is
- recommended that the package be configured and built as a regular
- user, and only the `make install' phase executed with root
- privileges.
-
- 5. Optionally, type `make installcheck' to repeat any self-tests, but
- this time using the binaries in their final installed location.
- This target does not install anything. Running this target as a
- regular user, particularly if the prior `make install' required
- root privileges, verifies that the installation completed
- correctly.
-
- 6. You can remove the program binaries and object files from the
- source code directory by typing `make clean'. To also remove the
- files that `configure' created (so you can compile the package for
- a different kind of computer), type `make distclean'. There is
- also a `make maintainer-clean' target, but that is intended mainly
- for the package's developers. If you use it, you may have to get
- all sorts of other programs in order to regenerate files that came
- with the distribution.
-
- 7. Often, you can also type `make uninstall' to remove the installed
- files again. In practice, not all packages have tested that
- uninstallation works correctly, even though it is required by the
- GNU Coding Standards.
-
- 8. Some packages, particularly those that use Automake, provide `make
- distcheck', which can by used by developers to test that all other
- targets like `make install' and `make uninstall' work correctly.
- This target is generally not run by end users.
-
-Compilers and Options
-=====================
-
- Some systems require unusual options for compilation or linking that
-the `configure' script does not know about. Run `./configure --help'
-for details on some of the pertinent environment variables.
-
- You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment. Here
-is an example:
-
- ./configure CC=c99 CFLAGS=-g LIBS=-lposix
-
- *Note Defining Variables::, for more details.
-
-Compiling For Multiple Architectures
-====================================
-
- You can compile the package for more than one kind of computer at the
-same time, by placing the object files for each architecture in their
-own directory. To do this, you can use GNU `make'. `cd' to the
-directory where you want the object files and executables to go and run
-the `configure' script. `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'. This
-is known as a "VPATH" build.
-
- With a non-GNU `make', it is safer to compile the package for one
-architecture at a time in the source code directory. After you have
-installed the package for one architecture, use `make distclean' before
-reconfiguring for another architecture.
-
- On MacOS X 10.5 and later systems, you can create libraries and
-executables that work on multiple system types--known as "fat" or
-"universal" binaries--by specifying multiple `-arch' options to the
-compiler but only a single `-arch' option to the preprocessor. Like
-this:
-
- ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
- CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
- CPP="gcc -E" CXXCPP="g++ -E"
-
- This is not guaranteed to produce working output in all cases, you
-may have to build one architecture at a time and combine the results
-using the `lipo' tool if you have problems.
-
-Installation Names
-==================
-
- By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc. You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX', where PREFIX must be an
-absolute file name.
-
- You can specify separate installation prefixes for
-architecture-specific files and architecture-independent files. If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
-PREFIX as the prefix for installing programs and libraries.
-Documentation and other data files still use the regular prefix.
-
- In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files. Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them. In general, the
-default for these options is expressed in terms of `${prefix}', so that
-specifying just `--prefix' will affect all of the other directory
-specifications that were not explicitly provided.
-
- The most portable way to affect installation locations is to pass the
-correct locations to `configure'; however, many packages provide one or
-both of the following shortcuts of passing variable assignments to the
-`make install' command line to change installation locations without
-having to reconfigure or recompile.
-
- The first method involves providing an override variable for each
-affected directory. For example, `make install
-prefix=/alternate/directory' will choose an alternate location for all
-directory configuration variables that were expressed in terms of
-`${prefix}'. Any directories that were specified during `configure',
-but not in terms of `${prefix}', must each be overridden at install
-time for the entire installation to be relocated. The approach of
-makefile variable overrides for each directory variable is required by
-the GNU Coding Standards, and ideally causes no recompilation.
-However, some platforms have known limitations with the semantics of
-shared libraries that end up requiring recompilation when using this
-method, particularly noticeable in packages that use GNU Libtool.
-
- The second method involves providing the `DESTDIR' variable. For
-example, `make install DESTDIR=/alternate/directory' will prepend
-`/alternate/directory' before all installation names. The approach of
-`DESTDIR' overrides is not required by the GNU Coding Standards, and
-does not work on platforms that have drive letters. On the other hand,
-it does better at avoiding recompilation issues, and works well even
-when some directory options were not specified in terms of `${prefix}'
-at `configure' time.
-
-Optional Features
-=================
-
- If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-
- Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System). The
-`README' should mention any `--enable-' and `--with-' options that the
-package recognizes.
-
- For packages that use the X Window System, `configure' can usually
-find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
-
- Some packages offer the ability to configure how verbose the
-execution of `make' will be. For these packages, running `./configure
---enable-silent-rules' sets the default to minimal output, which can be
-overridden with `make V=1'; while running `./configure
---disable-silent-rules' sets the default to verbose, which can be
-overridden with `make V=0'.
-
-Particular systems
-==================
-
- On HP-UX, the default C compiler is not ANSI C compatible. If GNU
-CC is not installed, it is recommended to use the following options in
-order to use an ANSI C compiler:
-
- ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
-
-and if that doesn't work, install pre-built binaries of GCC for HP-UX.
-
- HP-UX `make' updates targets which have the same time stamps as
-their prerequisites, which makes it generally unusable when shipped
-generated files such as `configure' are involved. Use GNU `make'
-instead.
-
- On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
-parse its `<wchar.h>' header file. The option `-nodtk' can be used as
-a workaround. If GNU CC is not installed, it is therefore recommended
-to try
-
- ./configure CC="cc"
-
-and if that doesn't work, try
-
- ./configure CC="cc -nodtk"
-
- On Solaris, don't put `/usr/ucb' early in your `PATH'. This
-directory contains several dysfunctional programs; working variants of
-these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
-in your `PATH', put it _after_ `/usr/bin'.
-
- On Haiku, software installed for all users goes in `/boot/common',
-not `/usr/local'. It is recommended to use the following options:
-
- ./configure --prefix=/boot/common
-
-Specifying the System Type
-==========================
-
- There may be some features `configure' cannot figure out
-automatically, but needs to determine by the type of machine the package
-will run on. Usually, assuming the package is built to be run on the
-_same_ architectures, `configure' can figure that out, but if it prints
-a message saying it cannot guess the machine type, give it the
-`--build=TYPE' option. TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
-
- CPU-COMPANY-SYSTEM
-
-where SYSTEM can have one of these forms:
-
- OS
- KERNEL-OS
-
- See the file `config.sub' for the possible values of each field. If
-`config.sub' isn't included in this package, then this package doesn't
-need to know the machine type.
-
- If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
-produce code for.
-
- If you want to _use_ a cross compiler, that generates code for a
-platform different from the build platform, you should specify the
-"host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
-
-Sharing Defaults
-================
-
- If you want to set default values for `configure' scripts to share,
-you can create a site shell script called `config.site' that gives
-default values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists. Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
-
-Defining Variables
-==================
-
- Variables not defined in a site shell script can be set in the
-environment passed to `configure'. However, some packages may run
-configure again during the build, and the customized values of these
-variables may be lost. In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'. For example:
-
- ./configure CC=/usr/local2/bin/gcc
-
-causes the specified `gcc' to be used as the C compiler (unless it is
-overridden in the site shell script).
-
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf limitation. Until the limitation is lifted, you can use
-this workaround:
-
- CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
-
-`configure' Invocation
-======================
-
- `configure' recognizes the following options to control how it
-operates.
-
-`--help'
-`-h'
- Print a summary of all of the options to `configure', and exit.
-
-`--help=short'
-`--help=recursive'
- Print a summary of the options unique to this package's
- `configure', and exit. The `short' variant lists options used
- only in the top level, while the `recursive' variant lists options
- also present in any nested packages.
-
-`--version'
-`-V'
- Print the version of Autoconf used to generate the `configure'
- script, and exit.
-
-`--cache-file=FILE'
- Enable the cache: use and save the results of the tests in FILE,
- traditionally `config.cache'. FILE defaults to `/dev/null' to
- disable caching.
-
-`--config-cache'
-`-C'
- Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
- Do not print messages saying which checks are being made. To
- suppress all normal output, redirect it to `/dev/null' (any error
- messages will still be shown).
-
-`--srcdir=DIR'
- Look for the package's source code in directory DIR. Usually
- `configure' can determine that directory automatically.
-
-`--prefix=DIR'
- Use DIR as the installation prefix. *note Installation Names::
- for more details, including other options available for fine-tuning
- the installation locations.
-
-`--no-create'
-`-n'
- Run the configure checks, but stop before creating any output
- files.
-
-`configure' also accepts some other, not widely useful, options. Run
-`configure --help' for more details.
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index 6e759382..00000000
--- a/src/Makefile
+++ /dev/null
@@ -1,894 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-subdir = .
-DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog THANKS \
- $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
- $(top_srcdir)/configure $(am__configure_deps) \
- $(srcdir)/config.h.in $(top_srcdir)/config/elfutils.spec.in \
- $(top_srcdir)/config/version.h.in $(pkginclude_HEADERS) \
- ABOUT-NLS COPYING TODO $(top_srcdir)/config/ar-lib \
- $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \
- $(top_srcdir)/config/config.sub \
- $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES = elfutils.spec version.h
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
- ctags-recursive dvi-recursive html-recursive info-recursive \
- install-data-recursive install-dvi-recursive \
- install-exec-recursive install-html-recursive \
- install-info-recursive install-pdf-recursive \
- install-ps-recursive install-recursive installcheck-recursive \
- installdirs-recursive pdf-recursive ps-recursive \
- tags-recursive uninstall-recursive
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(pkgincludedir)"
-HEADERS = $(pkginclude_HEADERS)
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-am__recursive_targets = \
- $(RECURSIVE_TARGETS) \
- $(RECURSIVE_CLEAN_TARGETS) \
- $(am__extra_recursive_targets)
-AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
- cscope distdir dist dist-all distcheck
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
- $(LISP)config.h.in
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-CSCOPE = cscope
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-distdir = $(PACKAGE)-$(VERSION)
-top_distdir = $(distdir)
-am__remove_distdir = \
- if test -d "$(distdir)"; then \
- find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
- && rm -rf "$(distdir)" \
- || { sleep 5 && rm -rf "$(distdir)"; }; \
- else :; fi
-am__post_remove_distdir = $(am__remove_distdir)
-am__relativize = \
- dir0=`pwd`; \
- sed_first='s,^\([^/]*\)/.*$$,\1,'; \
- sed_rest='s,^[^/]*/*,,'; \
- sed_last='s,^.*/\([^/]*\)$$,\1,'; \
- sed_butlast='s,/*[^/]*$$,,'; \
- while test -n "$$dir1"; do \
- first=`echo "$$dir1" | sed -e "$$sed_first"`; \
- if test "$$first" != "."; then \
- if test "$$first" = ".."; then \
- dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
- dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
- else \
- first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
- if test "$$first2" = "$$first"; then \
- dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
- else \
- dir2="../$$dir2"; \
- fi; \
- dir0="$$dir0"/"$$first"; \
- fi; \
- fi; \
- dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
- done; \
- reldir="$$dir2"
-GZIP_ENV = --best
-DIST_ARCHIVES = $(distdir).tar.bz2
-DIST_TARGETS = dist-bzip2
-distuninstallcheck_listfiles = find . -type f -print
-am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
- | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
-distcleancheck_listfiles = find . -type f -print
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -DHAVE_CONFIG_H
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 0.161
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix =
-top_builddir = .
-top_srcdir = .
-zip_LIBS = -lz
-ACLOCAL_AMFLAGS = -I m4
-pkginclude_HEADERS = version.h
-
-# Add doc back when we have some real content.
-SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
- backends src po tests
-
-EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
- COPYING COPYING-GPLV2 COPYING-LGPLV3
-
-
-# Make sure the test install uses lib64 when $LIB will yield lib64.
-# Make sure the test build uses the same compiler, which on e.g. ppc64
-# determines which platform we are actually testing.
-# Run all tests under valgrind.
-DISTCHECK_CONFIGURE_FLAGS = \
- --libdir=`echo $(libdir) | sed "s,^$(exec_prefix),$$dc_install_base,"`\
- --enable-valgrind \
- CC="$(CC)"
-
-all: config.h
- $(MAKE) $(AM_MAKEFLAGS) all-recursive
-
-.SUFFIXES:
-am--refresh: Makefile
- @:
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- echo ' cd $(srcdir) && $(AUTOMAKE) --gnits'; \
- $(am__cd) $(srcdir) && $(AUTOMAKE) --gnits \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- echo ' $(SHELL) ./config.status'; \
- $(SHELL) ./config.status;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- $(SHELL) ./config.status --recheck
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- $(am__cd) $(srcdir) && $(AUTOCONF)
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
-$(am__aclocal_m4_deps):
-
-config.h: stamp-h1
- @test -f $@ || rm -f stamp-h1
- @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
-
-stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
- @rm -f stamp-h1
- cd $(top_builddir) && $(SHELL) ./config.status config.h
-$(srcdir)/config.h.in: # $(am__configure_deps)
- ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
- rm -f stamp-h1
- touch $@
-
-distclean-hdr:
- -rm -f config.h stamp-h1
-elfutils.spec: $(top_builddir)/config.status $(top_srcdir)/config/elfutils.spec.in
- cd $(top_builddir) && $(SHELL) ./config.status $@
-version.h: $(top_builddir)/config.status $(top_srcdir)/config/version.h.in
- cd $(top_builddir) && $(SHELL) ./config.status $@
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run 'make' without going through this Makefile.
-# To change the values of 'make' variables: instead of editing Makefiles,
-# (1) if the variable is set in 'config.status', edit 'config.status'
-# (which will cause the Makefiles to be regenerated when you run 'make');
-# (2) otherwise, pass the desired values on the 'make' command line.
-$(am__recursive_targets):
- @fail=; \
- if $(am__make_keepgoing); then \
- failcom='fail=yes'; \
- else \
- failcom='exit 1'; \
- fi; \
- dot_seen=no; \
- target=`echo $@ | sed s/-recursive//`; \
- case "$@" in \
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
- *) list='$(SUBDIRS)' ;; \
- esac; \
- for subdir in $$list; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- dot_seen=yes; \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done; \
- if test "$$dot_seen" = "no"; then \
- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
- fi; test -z "$$fail"
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-recursive
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
- include_option=--etags-include; \
- empty_fix=.; \
- else \
- include_option=--include; \
- empty_fix=; \
- fi; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test ! -f $$subdir/TAGS || \
- set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
- fi; \
- done; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-recursive
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscope: cscope.files
- test ! -s cscope.files \
- || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
-clean-cscope:
- -rm -f cscope.files
-cscope.files: clean-cscope cscopelist
-cscopelist: cscopelist-recursive
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
- -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
-
-distdir: $(DISTFILES)
- @case `sed 15q $(srcdir)/NEWS` in \
- *"$(VERSION)"*) : ;; \
- *) \
- echo "NEWS not updated; not releasing" 1>&2; \
- exit 1;; \
- esac
- $(am__remove_distdir)
- test -d "$(distdir)" || mkdir "$(distdir)"
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- $(am__make_dryrun) \
- || test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
- $(am__relativize); \
- new_distdir=$$reldir; \
- dir1=$$subdir; dir2="$(top_distdir)"; \
- $(am__relativize); \
- new_top_distdir=$$reldir; \
- echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
- echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
- ($(am__cd) $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$$new_top_distdir" \
- distdir="$$new_distdir" \
- am__remove_distdir=: \
- am__skip_length_check=: \
- am__skip_mode_fix=: \
- distdir) \
- || exit 1; \
- fi; \
- done
- -test -n "$(am__skip_mode_fix)" \
- || find "$(distdir)" -type d ! -perm -755 \
- -exec chmod u+rwx,go+rx {} \; -o \
- ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
- || chmod -R a+r "$(distdir)"
-dist-gzip: distdir
- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
- $(am__post_remove_distdir)
-dist-bzip2: distdir
- tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
- $(am__post_remove_distdir)
-
-dist-lzip: distdir
- tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
- $(am__post_remove_distdir)
-
-dist-xz: distdir
- tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
- $(am__post_remove_distdir)
-
-dist-tarZ: distdir
- @echo WARNING: "Support for shar distribution archives is" \
- "deprecated." >&2
- @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
- tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
- $(am__post_remove_distdir)
-
-dist-shar: distdir
- @echo WARNING: "Support for distribution archives compressed with" \
- "legacy program 'compress' is deprecated." >&2
- @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
- shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
- $(am__post_remove_distdir)
-
-dist-zip: distdir
- -rm -f $(distdir).zip
- zip -rq $(distdir).zip $(distdir)
- $(am__post_remove_distdir)
-
-dist dist-all:
- $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
- $(am__post_remove_distdir)
-
-# This target untars the dist file and tries a VPATH configuration. Then
-# it guarantees that the distribution is self-contained by making another
-# tarfile.
-distcheck: dist
- case '$(DIST_ARCHIVES)' in \
- *.tar.gz*) \
- GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
- *.tar.bz2*) \
- bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
- *.tar.lz*) \
- lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
- *.tar.xz*) \
- xz -dc $(distdir).tar.xz | $(am__untar) ;;\
- *.tar.Z*) \
- uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
- *.shar.gz*) \
- GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
- *.zip*) \
- unzip $(distdir).zip ;;\
- esac
- chmod -R a-w $(distdir)
- chmod u+w $(distdir)
- mkdir $(distdir)/_build $(distdir)/_inst
- chmod a-w $(distdir)
- test -d $(distdir)/_build || exit 0; \
- dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
- && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
- && $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \
- && am__cwd=`pwd` \
- && $(am__cd) $(distdir)/_build \
- && ../configure \
- $(AM_DISTCHECK_CONFIGURE_FLAGS) \
- $(DISTCHECK_CONFIGURE_FLAGS) \
- --srcdir=.. --prefix="$$dc_install_base" \
- && $(MAKE) $(AM_MAKEFLAGS) \
- && $(MAKE) $(AM_MAKEFLAGS) dvi \
- && $(MAKE) $(AM_MAKEFLAGS) check \
- && $(MAKE) $(AM_MAKEFLAGS) install \
- && $(MAKE) $(AM_MAKEFLAGS) installcheck \
- && $(MAKE) $(AM_MAKEFLAGS) uninstall \
- && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
- distuninstallcheck \
- && chmod -R a-w "$$dc_install_base" \
- && ({ \
- (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
- distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
- } || { rm -rf "$$dc_destdir"; exit 1; }) \
- && rm -rf "$$dc_destdir" \
- && $(MAKE) $(AM_MAKEFLAGS) dist \
- && rm -rf $(DIST_ARCHIVES) \
- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
- && cd "$$am__cwd" \
- || exit 1
- $(am__post_remove_distdir)
- @(echo "$(distdir) archives ready for distribution: "; \
- list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
- sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
-distuninstallcheck:
- @test -n '$(distuninstallcheck_dir)' || { \
- echo 'ERROR: trying to run $@ with an empty' \
- '$$(distuninstallcheck_dir)' >&2; \
- exit 1; \
- }; \
- $(am__cd) '$(distuninstallcheck_dir)' || { \
- echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
- exit 1; \
- }; \
- test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
- || { echo "ERROR: files left after uninstall:" ; \
- if test -n "$(DESTDIR)"; then \
- echo " (check DESTDIR support)"; \
- fi ; \
- $(distuninstallcheck_listfiles) ; \
- exit 1; } >&2
-distcleancheck: distclean
- @if test '$(srcdir)' = . ; then \
- echo "ERROR: distcleancheck can only run from a VPATH build" ; \
- exit 1 ; \
- fi
- @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
- || { echo "ERROR: files left in build directory after distclean:" ; \
- $(distcleancheck_listfiles) ; \
- exit 1; } >&2
-check-am: all-am
-check: check-recursive
-all-am: Makefile $(HEADERS) config.h
-installdirs: installdirs-recursive
-installdirs-am:
- for dir in "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-recursive
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-recursive
- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-html-am:
-
-info: info-recursive
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-recursive
-
-install-html-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf $(top_srcdir)/autom4te.cache
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am: uninstall-pkgincludeHEADERS
-
-.MAKE: $(am__recursive_targets) all install-am install-strip
-
-.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
- am--refresh check check-am clean clean-cscope clean-generic \
- cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
- dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
- distcheck distclean distclean-generic distclean-hdr \
- distclean-tags distcleancheck distdir distuninstallcheck dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-pkgincludeHEADERS install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs installdirs-am maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
- pdf-am ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-pkgincludeHEADERS
-
-
-distcheck-hook:
- chmod -R u+w $(distdir)
-
-rpm: dist
- rpmbuild -ts --sign elfutils-0.161.tar.bz2
-
-# Tell version 3.79 and up of GNU make to not build goals in this
-# directory in parallel.
-.NOTPARALLEL:
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/Makefile.am b/src/Makefile.am
index d044a7cb..7a253745 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,8 +1,6 @@
## Process this file with automake to create Makefile.in
-## Configure input file for elfutils.
-##
-## Copyright (C) 1996-2002, 2003, 2004, 2005, 2006, 2008, 2009 Red Hat, Inc.
##
+## Copyright (C) 1996-2014 Red Hat, Inc.
## This file is part of elfutils.
##
## This file is free software; you can redistribute it and/or modify
@@ -18,32 +16,153 @@
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
-ACLOCAL_AMFLAGS = -I m4
+include $(top_srcdir)/config/eu.am
+DEFS += $(YYDEBUG) -DDEBUGPRED=@DEBUGPRED@ \
+ -DSRCDIR=\"$(shell cd $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
+AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
+ -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf \
+ -I$(srcdir)/../libdwfl -I$(srcdir)/../libasm
+
+AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw
+
+YACC = @YACC@ -d
+AM_YFLAGS = -pld
+AM_LFLAGS = -Pld -olex.yy.c
+## Uncomment to enable debugging of linker script parser
+##YYDEBUG = -DYYDEBUG=1
+
+native_ld = @native_ld@
+base_cpu = @base_cpu@
+
+bin_PROGRAMS = readelf nm size strip ld elflint findtextrel addr2line \
+ elfcmp objdump ranlib strings ar unstrip stack
+
+
+ld_dsos = libld_elf_i386_pic.a
+if NATIVE_LD
+noinst_LIBRARIES = libld_elf.a libar.a
+native_ld_cflags = -DBASE_ELF_NAME=elf_$(base_cpu)
+else
+noinst_LIBRARIES = libld_elf.a libar.a $(ld_dsos)
+noinst_PROGRAMS = $(ld_dsos:_pic.a=.so)
+endif
+if NEVER
+# We never build this library but we need to get the dependency files
+# of all the linker backends that might be used in a non-generic linker.
+noinst_LIBRARIES += libdummy.a
+libdummy_a_SOURCES = i386_ld.c
+endif
+
+
+ld_SOURCES = ld.c ldgeneric.c ldlex.l ldscript.y symbolhash.c sectionhash.c \
+ versionhash.c
+
+libar_a_SOURCES = arlib.c arlib2.c arlib-argp.c
+
+noinst_HEADERS = ld.h symbolhash.h sectionhash.h versionhash.h \
+ ldscript.h xelf.h unaligned.h
+
+EXTRA_DIST = elf32-i386.script libld_elf_i386.map $(ld_modules) arlib.h \
+ debugpred.h
+ld_modules = i386_ld.c
+
+bin_SCRIPTS = make-debug-archive
+EXTRA_DIST += make-debug-archive.in
+CLEANFILES += make-debug-archive
+
+if BUILD_STATIC
+libasm = ../libasm/libasm.a
+libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
+libelf = ../libelf/libelf.a
+else
+libasm = ../libasm/libasm.so
+libdw = ../libdw/libdw.so
+libelf = ../libelf/libelf.so
+endif
+libebl = ../libebl/libebl.a
+libeu = ../lib/libeu.a
+
+if DEMANGLE
+demanglelib = -lstdc++
+endif
+
+# XXX While the file is not finished, don't warn about this
+ldgeneric_no_Wunused = yes
+
+readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl
+nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl \
+ $(demanglelib)
+size_LDADD = $(libelf) $(libeu)
+strip_LDADD = $(libebl) $(libelf) $(libeu) -ldl
+ld_LDADD = $(libebl) $(libelf) $(libeu) -ldl
+if NATIVE_LD
+# -ldl is always needed for libebl.
+ld_LDADD += libld_elf.a
+endif
+ld_LDFLAGS = -rdynamic
+elflint_LDADD = $(libebl) $(libelf) $(libeu) -ldl
+findtextrel_LDADD = $(libdw) $(libelf)
+addr2line_LDADD = $(libdw) $(libelf)
+elfcmp_LDADD = $(libebl) $(libelf) -ldl
+objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) -ldl
+ranlib_LDADD = libar.a $(libelf) $(libeu)
+strings_LDADD = $(libelf) $(libeu)
+ar_LDADD = libar.a $(libelf) $(libeu)
+unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl
+stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl $(demanglelib)
+
+ldlex.o: ldscript.c
+ldlex_no_Werror = yes
+ldscript.h: ldscript.c
+
+if NATIVE_LD
+# Machine-specific linker code.
+libld_elf_a_SOURCES := $(base_cpu)_ld.c
+else
+libld_elf_i386_pic_a_SOURCES =
+am_libld_elf_i386_pic_a_OBJECTS = i386_ld.os
+
+libld_elf_i386_so_SOURCES =
+libld_elf_i386.so: libld_elf_i386_pic.a libld_elf_i386.map
+ $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
+ $(libelf) $(libeu) \
+ -Wl,--version-script,$(srcdir)/libld_elf_i386.map
+ @$(textrel_check)
+endif
-pkginclude_HEADERS = version.h
+# Special rule to make it possible to define libld_elf_a_SOURCES as we do.
+# Otherwise make would complain.
+.deps/none_ld.Po: none_ld.os
+ -:
-# Add doc back when we have some real content.
-SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
- backends src po tests
-EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
- COPYING COPYING-GPLV2 COPYING-LGPLV3
+installcheck-binPROGRAMS: $(bin_PROGRAMS)
+ bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
+ case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
+ *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
+ esac; \
+ f=`echo "$$p" | \
+ sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ for opt in --help --version; do \
+ if LD_LIBRARY_PATH=$(DESTDIR)$(libdir) \
+ $(DESTDIR)$(bindir)/$$f $$opt > c$${pid}_.out 2> c$${pid}_.err \
+ && test -n "`cat c$${pid}_.out`" \
+ && test -z "`cat c$${pid}_.err`"; then :; \
+ else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
+ done; \
+ done; rm -f c$${pid}_.???; exit $$bad
-# Make sure the test install uses lib64 when $LIB will yield lib64.
-# Make sure the test build uses the same compiler, which on e.g. ppc64
-# determines which platform we are actually testing.
-# Run all tests under valgrind.
-DISTCHECK_CONFIGURE_FLAGS = \
- --libdir=`echo $(libdir) | sed "s,^$(exec_prefix),$$dc_install_base,"`\
- --enable-valgrind \
- CC="$(CC)"
+CLEANFILES += none_ld.os $(ld_modules:.c=.os) *.gconv
-distcheck-hook:
- chmod -R u+w $(distdir)
+MAINTAINERCLEANFILES = ldlex.c ldscript.c ldscript.h
-rpm: dist
- rpmbuild -ts --sign elfutils-@PACKAGE_VERSION@.tar.bz2
-# Tell version 3.79 and up of GNU make to not build goals in this
-# directory in parallel.
-.NOTPARALLEL:
+make-debug-archive: $(srcdir)/make-debug-archive.in
+ UNSTRIP=$(bindir)/`echo unstrip | sed '$(transform)'`; \
+ AR=$(bindir)/`echo ar | sed '$(transform)'`; \
+ sed -e "s,[@]UNSTRIP[@],$$UNSTRIP,g" -e "s,[@]AR[@],$$AR,g" \
+ -e "s%[@]PACKAGE_NAME[@]%$(PACKAGE_NAME)%g" \
+ -e "s%[@]PACKAGE_VERSION[@]%$(PACKAGE_VERSION)%g" \
+ $(srcdir)/make-debug-archive.in > $@.new
+ chmod +x $@.new
+ mv -f $@.new $@
diff --git a/src/Makefile.in b/src/Makefile.in
deleted file mode 100644
index 6c93c2ec..00000000
--- a/src/Makefile.in
+++ /dev/null
@@ -1,894 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = .
-DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog THANKS \
- $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
- $(top_srcdir)/configure $(am__configure_deps) \
- $(srcdir)/config.h.in $(top_srcdir)/config/elfutils.spec.in \
- $(top_srcdir)/config/version.h.in $(pkginclude_HEADERS) \
- ABOUT-NLS COPYING TODO $(top_srcdir)/config/ar-lib \
- $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \
- $(top_srcdir)/config/config.sub \
- $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES = elfutils.spec version.h
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
- ctags-recursive dvi-recursive html-recursive info-recursive \
- install-data-recursive install-dvi-recursive \
- install-exec-recursive install-html-recursive \
- install-info-recursive install-pdf-recursive \
- install-ps-recursive install-recursive installcheck-recursive \
- installdirs-recursive pdf-recursive ps-recursive \
- tags-recursive uninstall-recursive
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(pkgincludedir)"
-HEADERS = $(pkginclude_HEADERS)
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-am__recursive_targets = \
- $(RECURSIVE_TARGETS) \
- $(RECURSIVE_CLEAN_TARGETS) \
- $(am__extra_recursive_targets)
-AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
- cscope distdir dist dist-all distcheck
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
- $(LISP)config.h.in
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-CSCOPE = cscope
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-distdir = $(PACKAGE)-$(VERSION)
-top_distdir = $(distdir)
-am__remove_distdir = \
- if test -d "$(distdir)"; then \
- find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
- && rm -rf "$(distdir)" \
- || { sleep 5 && rm -rf "$(distdir)"; }; \
- else :; fi
-am__post_remove_distdir = $(am__remove_distdir)
-am__relativize = \
- dir0=`pwd`; \
- sed_first='s,^\([^/]*\)/.*$$,\1,'; \
- sed_rest='s,^[^/]*/*,,'; \
- sed_last='s,^.*/\([^/]*\)$$,\1,'; \
- sed_butlast='s,/*[^/]*$$,,'; \
- while test -n "$$dir1"; do \
- first=`echo "$$dir1" | sed -e "$$sed_first"`; \
- if test "$$first" != "."; then \
- if test "$$first" = ".."; then \
- dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
- dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
- else \
- first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
- if test "$$first2" = "$$first"; then \
- dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
- else \
- dir2="../$$dir2"; \
- fi; \
- dir0="$$dir0"/"$$first"; \
- fi; \
- fi; \
- dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
- done; \
- reldir="$$dir2"
-GZIP_ENV = --best
-DIST_ARCHIVES = $(distdir).tar.bz2
-DIST_TARGETS = dist-bzip2
-distuninstallcheck_listfiles = find . -type f -print
-am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
- | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
-distcleancheck_listfiles = find . -type f -print
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-ACLOCAL_AMFLAGS = -I m4
-pkginclude_HEADERS = version.h
-
-# Add doc back when we have some real content.
-SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
- backends src po tests
-
-EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
- COPYING COPYING-GPLV2 COPYING-LGPLV3
-
-
-# Make sure the test install uses lib64 when $LIB will yield lib64.
-# Make sure the test build uses the same compiler, which on e.g. ppc64
-# determines which platform we are actually testing.
-# Run all tests under valgrind.
-DISTCHECK_CONFIGURE_FLAGS = \
- --libdir=`echo $(libdir) | sed "s,^$(exec_prefix),$$dc_install_base,"`\
- --enable-valgrind \
- CC="$(CC)"
-
-all: config.h
- $(MAKE) $(AM_MAKEFLAGS) all-recursive
-
-.SUFFIXES:
-am--refresh: Makefile
- @:
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- echo ' cd $(srcdir) && $(AUTOMAKE) --gnits'; \
- $(am__cd) $(srcdir) && $(AUTOMAKE) --gnits \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- echo ' $(SHELL) ./config.status'; \
- $(SHELL) ./config.status;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- $(SHELL) ./config.status --recheck
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- $(am__cd) $(srcdir) && $(AUTOCONF)
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
-$(am__aclocal_m4_deps):
-
-config.h: stamp-h1
- @test -f $@ || rm -f stamp-h1
- @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
-
-stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
- @rm -f stamp-h1
- cd $(top_builddir) && $(SHELL) ./config.status config.h
-$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
- rm -f stamp-h1
- touch $@
-
-distclean-hdr:
- -rm -f config.h stamp-h1
-elfutils.spec: $(top_builddir)/config.status $(top_srcdir)/config/elfutils.spec.in
- cd $(top_builddir) && $(SHELL) ./config.status $@
-version.h: $(top_builddir)/config.status $(top_srcdir)/config/version.h.in
- cd $(top_builddir) && $(SHELL) ./config.status $@
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run 'make' without going through this Makefile.
-# To change the values of 'make' variables: instead of editing Makefiles,
-# (1) if the variable is set in 'config.status', edit 'config.status'
-# (which will cause the Makefiles to be regenerated when you run 'make');
-# (2) otherwise, pass the desired values on the 'make' command line.
-$(am__recursive_targets):
- @fail=; \
- if $(am__make_keepgoing); then \
- failcom='fail=yes'; \
- else \
- failcom='exit 1'; \
- fi; \
- dot_seen=no; \
- target=`echo $@ | sed s/-recursive//`; \
- case "$@" in \
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
- *) list='$(SUBDIRS)' ;; \
- esac; \
- for subdir in $$list; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- dot_seen=yes; \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done; \
- if test "$$dot_seen" = "no"; then \
- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
- fi; test -z "$$fail"
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-recursive
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
- include_option=--etags-include; \
- empty_fix=.; \
- else \
- include_option=--include; \
- empty_fix=; \
- fi; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test ! -f $$subdir/TAGS || \
- set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
- fi; \
- done; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-recursive
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscope: cscope.files
- test ! -s cscope.files \
- || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
-clean-cscope:
- -rm -f cscope.files
-cscope.files: clean-cscope cscopelist
-cscopelist: cscopelist-recursive
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
- -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
-
-distdir: $(DISTFILES)
- @case `sed 15q $(srcdir)/NEWS` in \
- *"$(VERSION)"*) : ;; \
- *) \
- echo "NEWS not updated; not releasing" 1>&2; \
- exit 1;; \
- esac
- $(am__remove_distdir)
- test -d "$(distdir)" || mkdir "$(distdir)"
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- $(am__make_dryrun) \
- || test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
- $(am__relativize); \
- new_distdir=$$reldir; \
- dir1=$$subdir; dir2="$(top_distdir)"; \
- $(am__relativize); \
- new_top_distdir=$$reldir; \
- echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
- echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
- ($(am__cd) $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$$new_top_distdir" \
- distdir="$$new_distdir" \
- am__remove_distdir=: \
- am__skip_length_check=: \
- am__skip_mode_fix=: \
- distdir) \
- || exit 1; \
- fi; \
- done
- -test -n "$(am__skip_mode_fix)" \
- || find "$(distdir)" -type d ! -perm -755 \
- -exec chmod u+rwx,go+rx {} \; -o \
- ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
- || chmod -R a+r "$(distdir)"
-dist-gzip: distdir
- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
- $(am__post_remove_distdir)
-dist-bzip2: distdir
- tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
- $(am__post_remove_distdir)
-
-dist-lzip: distdir
- tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
- $(am__post_remove_distdir)
-
-dist-xz: distdir
- tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
- $(am__post_remove_distdir)
-
-dist-tarZ: distdir
- @echo WARNING: "Support for shar distribution archives is" \
- "deprecated." >&2
- @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
- tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
- $(am__post_remove_distdir)
-
-dist-shar: distdir
- @echo WARNING: "Support for distribution archives compressed with" \
- "legacy program 'compress' is deprecated." >&2
- @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
- shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
- $(am__post_remove_distdir)
-
-dist-zip: distdir
- -rm -f $(distdir).zip
- zip -rq $(distdir).zip $(distdir)
- $(am__post_remove_distdir)
-
-dist dist-all:
- $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
- $(am__post_remove_distdir)
-
-# This target untars the dist file and tries a VPATH configuration. Then
-# it guarantees that the distribution is self-contained by making another
-# tarfile.
-distcheck: dist
- case '$(DIST_ARCHIVES)' in \
- *.tar.gz*) \
- GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
- *.tar.bz2*) \
- bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
- *.tar.lz*) \
- lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
- *.tar.xz*) \
- xz -dc $(distdir).tar.xz | $(am__untar) ;;\
- *.tar.Z*) \
- uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
- *.shar.gz*) \
- GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
- *.zip*) \
- unzip $(distdir).zip ;;\
- esac
- chmod -R a-w $(distdir)
- chmod u+w $(distdir)
- mkdir $(distdir)/_build $(distdir)/_inst
- chmod a-w $(distdir)
- test -d $(distdir)/_build || exit 0; \
- dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
- && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
- && $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \
- && am__cwd=`pwd` \
- && $(am__cd) $(distdir)/_build \
- && ../configure \
- $(AM_DISTCHECK_CONFIGURE_FLAGS) \
- $(DISTCHECK_CONFIGURE_FLAGS) \
- --srcdir=.. --prefix="$$dc_install_base" \
- && $(MAKE) $(AM_MAKEFLAGS) \
- && $(MAKE) $(AM_MAKEFLAGS) dvi \
- && $(MAKE) $(AM_MAKEFLAGS) check \
- && $(MAKE) $(AM_MAKEFLAGS) install \
- && $(MAKE) $(AM_MAKEFLAGS) installcheck \
- && $(MAKE) $(AM_MAKEFLAGS) uninstall \
- && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
- distuninstallcheck \
- && chmod -R a-w "$$dc_install_base" \
- && ({ \
- (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
- distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
- } || { rm -rf "$$dc_destdir"; exit 1; }) \
- && rm -rf "$$dc_destdir" \
- && $(MAKE) $(AM_MAKEFLAGS) dist \
- && rm -rf $(DIST_ARCHIVES) \
- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
- && cd "$$am__cwd" \
- || exit 1
- $(am__post_remove_distdir)
- @(echo "$(distdir) archives ready for distribution: "; \
- list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
- sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
-distuninstallcheck:
- @test -n '$(distuninstallcheck_dir)' || { \
- echo 'ERROR: trying to run $@ with an empty' \
- '$$(distuninstallcheck_dir)' >&2; \
- exit 1; \
- }; \
- $(am__cd) '$(distuninstallcheck_dir)' || { \
- echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
- exit 1; \
- }; \
- test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
- || { echo "ERROR: files left after uninstall:" ; \
- if test -n "$(DESTDIR)"; then \
- echo " (check DESTDIR support)"; \
- fi ; \
- $(distuninstallcheck_listfiles) ; \
- exit 1; } >&2
-distcleancheck: distclean
- @if test '$(srcdir)' = . ; then \
- echo "ERROR: distcleancheck can only run from a VPATH build" ; \
- exit 1 ; \
- fi
- @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
- || { echo "ERROR: files left in build directory after distclean:" ; \
- $(distcleancheck_listfiles) ; \
- exit 1; } >&2
-check-am: all-am
-check: check-recursive
-all-am: Makefile $(HEADERS) config.h
-installdirs: installdirs-recursive
-installdirs-am:
- for dir in "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-recursive
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-recursive
- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-html-am:
-
-info: info-recursive
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-recursive
-
-install-html-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
- -rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf $(top_srcdir)/autom4te.cache
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am: uninstall-pkgincludeHEADERS
-
-.MAKE: $(am__recursive_targets) all install-am install-strip
-
-.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
- am--refresh check check-am clean clean-cscope clean-generic \
- cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
- dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
- distcheck distclean distclean-generic distclean-hdr \
- distclean-tags distcleancheck distdir distuninstallcheck dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-pkgincludeHEADERS install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs installdirs-am maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
- pdf-am ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-pkgincludeHEADERS
-
-
-distcheck-hook:
- chmod -R u+w $(distdir)
-
-rpm: dist
- rpmbuild -ts --sign elfutils-@PACKAGE_VERSION@.tar.bz2
-
-# Tell version 3.79 and up of GNU make to not build goals in this
-# directory in parallel.
-.NOTPARALLEL:
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/NEWS b/src/NEWS
deleted file mode 100644
index e4fd31e2..00000000
--- a/src/NEWS
+++ /dev/null
@@ -1,1359 +0,0 @@
-Version 0.161
-
-libdw: New function dwarf_peel_type. dwarf_aggregate_size now uses
- dwarf_peel_type to also provide the sizes of qualified types.
- dwarf_getmacros will now serve either of .debug_macro and
- .debug_macinfo transparently. New interfaces
- dwarf_getmacros_off, dwarf_macro_getsrcfiles,
- dwarf_macro_getparamcnt, and dwarf_macro_param are available
- for more generalized inspection of macros and their parameters.
- dwarf.h: Add DW_AT_GNU_deleted, DW_AT_noreturn, DW_LANG_C11,
- DW_LANG_C_plus_plus_11 and DW_LANG_C_plus_plus_14.
-
-Version 0.160
-
-libdw: New functions dwarf_cu_getdwarf, dwarf_cu_die.
- dwarf.h remove non-existing DW_TAG_mutable_type.
-
-libdwfl: Handle LZMA .ko.xz compressed kernel modules.
-
-unstrip: New option -F, --force to combining files even if some ELF headers
- don't seem to match.
-
-backends: Handle ARM THUMB functions. Add support for ppc64le ELFv2 abi.
-
-Version 0.159
-
-stack: New option -d, --debugname to lookup DWARF debuginfo name for frame.
- New option -i, --inlines to show inlined frames using DWARF debuginfo.
-
-libdwelf: New libdwelf.h header for libdw.so DWARF ELF Low-level Functions.
- New function dwelf_elf_gnu_debuglink, dwelf_dwarf_gnu_debugaltlink,
- and dwelf_elf_gnu_build_id.
-
-libdw: Support for DWZ multifile forms DW_FORM_GNU_ref_alt and
- DW_FORM_GNU_strp_alt is now enabled by default and no longer
- experimental. Added new functions dwarf_getalt and dwarf_setalt
- to get or set the alternative debug file used for the alt FORMs.
- The dwfl_linux_proc_find_elf callback will now find ELF from
- process memory for (deleted) files if the Dwfl has process state
- attached.
-
-libdwfl: The dwfl_build_id_find_debuginfo and dwfl_standard_find_debuginfo
- functions will now try to resolve and set the alternative debug file.
-
-backends: Add CFI unwinding for arm. Relies on .debug_frame.
- Add arm process initial register state compatible mode to AARCH64.
- Add aarch64 native and core unwind support.
-
-other: All separate elfutils-robustify patches have been merged.
- CVE-2014-0172 Check overflow before calling malloc to uncompress data.
-
-Version 0.158
-
-libdwfl: dwfl_core_file_report has new parameter executable.
- New functions dwfl_module_getsymtab_first_global,
- dwfl_module_getsym_info and dwfl_module_addrinfo.
- Added unwinder with type Dwfl_Thread_Callbacks, opaque types
- Dwfl_Thread and Dwfl_Frame and functions dwfl_attach_state,
- dwfl_pid, dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
- dwfl_thread_state_registers, dwfl_thread_state_register_pc,
- dwfl_getthread_frames, dwfl_getthreads, dwfl_thread_getframes
- and dwfl_frame_pc.
-
-addr2line: New option -x to show the section an address was found in.
-
-stack: New utility that uses the new unwinder for processes and cores.
-
-backends: Unwinder support for i386, x86_64, s390, s390x, ppc and ppc64.
- aarch64 support.
-
-Version 0.157
-
-libdw: Add new functions dwarf_getlocations, dwarf_getlocation_attr
- and dwarf_getlocation_die.
-
-readelf: Show contents of NT_SIGINFO and NT_FILE core notes.
-
-addr2line: Support -i, --inlines output option.
-
-backends: abi_cfi hook for arm, ppc and s390.
-
-Version 0.156
-
-lib: New macro COMPAT_VERSION_NEWPROTO.
-
-libdw: Handle GNU extension opcodes in dwarf_getlocation.
-
-libdwfl: Fix STB_GLOBAL over STB_WEAK preference in dwfl_module_addrsym.
- Add minisymtab support.
- Add parameter add_p_vaddr to dwfl_report_elf.
- Use DT_DEBUG library search first.
-
-libebl: Handle new core note types in EBL.
-
-backends: Interpret NT_ARM_VFP.
- Implement core file registers parsing for s390/s390x.
-
-readelf: Add --elf-section input option to inspect an embedded ELF file.
- Add -U, --unresolved-address-offsets output control.
- Add --debug-dump=decodedline support.
- Accept version 8 .gdb_index section format.
- Adjust output formatting width.
- When highpc is in constant form print it also as address.
- Display raw .debug_aranges. Use libdw only for decodedaranges.
-
-elflint: Add __bss_start__ to the list of allowed symbols.
-
-tests: Add configure --enable-valgrind option to run all tests under valgrind.
- Enable automake parallel-tests for make check.
-
-translations: Updated Polish translation.
-
-Updates for Automake 1.13.
-
-Version 0.155
-
-libelf: elf*_xlatetomd now works for cross-endian ELF note data.
- elf_getshdr now works consistently on non-mmaped ELF files after
- calling elf_cntl(ELF_C_FDREAD).
- Implement support for ar archives with 64-bit symbol table.
-
-libdw: dwarf.h corrected the DW_LANG_ObjC constant name (was DW_LANG_Objc).
- Any existing sources using the old name will have to be updated.
- Add DW_MACRO_GNU .debug_macro type encodings constants, DW_ATE_UTF
- and DW_OP_GNU_parameter_ref to dwarf.h.
- Experimental support for DWZ multifile forms DW_FORM_GNU_ref_alt
- and DW_FORM_GNU_strp_alt. Disabled by default. Use configure
- --enable-dwz to test it.
-
-readelf: Add .debug_macro parsing support.
- Add .gdb_index version 7 parsing support.
- Recognize DW_OP_GNU_parameter_ref.
-
-backends: Add support for Tilera TILE-Gx processor.
-
-translations: Updated Ukrainian translation.
-
-Version 0.154
-
-libelf: [g]elf[32|64]_offscn() do not match SHT_NOBITS sections at OFFSET.
-
-libdw: dwarf_highpc function now handles DWARF 4 DW_AT_high_pc constant form.
- Fix bug using dwarf_next_unit to iterate over .debug_types.
-
-elflint: Now accepts gold linker produced executables.
-
-The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for stand-alone
-programs. There is now also a formal CONTRIBUTING document describing how to
-submit patches.
-
-Version 0.153
-
-libdw: Support reading .zdebug_* DWARF sections compressed via zlib.
-
-libdwfl: Speed up dwfl_module_addrsym.
-
-nm: Support C++ demangling.
-
-ar: Support D modifier for "deterministic output" with no uid/gid/mtime info.
- The U modifier is the inverse.
- elfutils can be configured with the --enable-deterministic-archives
- option to make the D behavior the default when U is not specified.
-
-ranlib: Support -D and -U flags with same meaning.
-
-readelf: Improve output of -wline. Add support for printing SDT elf notes.
- Add printing of .gdb_index section.
- Support for typed DWARF stack, call_site and entry_value.
-
-strip: Add --reloc-debug-sections option.
- Improved SHT_GROUP sections handling.
-
-Version 0.152
-
-Various build and warning nits fixed for newest GCC and Autoconf.
-
-libdwfl: Yet another prelink-related fix for another regression.
- Look for Linux kernel images in files named with compression suffixes.
-
-elfcmp: New flag --ignore-build-id to ignore differing build ID bits.
- New flag -l/--verbose to print all differences.
-
-Version 0.151
-
-libdwfl: Fix for more prelink cases with separate debug file.
-
-strip: New flag --strip-sections to remove section headers entirely.
-
-Version 0.150
-
-libdw: Fix for handling huge .debug_aranges section.
-
-libdwfl: Fix for handling prelinked DSO with separate debug file.
-
-findtextrel: Fix diagnostics to work with usual section ordering.
-
-libebl: i386 backend fix for multi-register integer return value location.
-
-Version 0.149:
-
-libdw: Decode new DW_OP_GNU_implicit_pointer operation;
- new function dwarf_getlocation_implicit_pointer.
-
-libdwfl: New function dwfl_dwarf_line.
-
-addr2line: New flag -F/--flags to print more DWARF line information details.
-
-strip: -g recognizes .gdb_index as a debugging section.
-
-Version 0.148:
-
-libdw: Accept DWARF 4 format: new functions dwarf_next_unit, dwarf_offdie_types.
- New functions dwarf_lineisa, dwarf_linediscriminator, dwarf_lineop_index.
-
-libdwfl: Fixes in core-file handling, support cores from PIEs.
- When working from build IDs, don't open a named file that mismatches.
-
-readelf: Handle DWARF 4 formats.
-
-Version 0.147:
-
-libdw: Fixes in CFI handling, best possible handling of bogus CFA ops.
-
-libdwfl: Ignore R_*_NONE relocs, works around old (binutils) ld -r bugs.
-
-Version 0.146:
-
-libdwfl: New function dwfl_core_file_report.
-
-Version 0.145:
-
-Fix build with --disable-dependency-tracking.
-
-Fix build with most recent glibc headers.
-
-libelf: More robust to bogus section headers.
-
-libdw: Fix CFI decoding.
-
-libdwfl: Fix address bias returned by CFI accessors.
- Fix core file module layout identification.
-
-readelf: Fix CFI decoding.
-
-Version 0.144:
-
-libelf: New function elf_getphdrnum.
- Now support using more than 65536 program headers in a file.
-
-libdw: New function dwarf_aggregate_size for computing (constant) type
- sizes, including array_type cases with nontrivial calculation.
-
-readelf: Don't give errors for missing info under -a.
- Handle Linux "VMCOREINFO" notes under -n.
-
-Version 0.143:
-
-libdw: Various convenience functions for individual attributes now use
- dwarf_attr_integrate to look up indirect inherited attributes.
- Location expression handling now supports DW_OP_implicit_value.
-
-libdwfl: Support automatic decompression of files in XZ format,
- and of Linux kernel images made with bzip2 or LZMA (as well as gzip).
-
-Version 0.142:
-
-libelf: Add elf_getshdrnum alias for elf_getshnum and elf_getshdrstrndx alias
- for elf_getshstrndx and deprecate original names. Sun screwed up
- their implementation and asked for a solution.
-
-libebl: Add support for STB_GNU_UNIQUE.
-
-elflint: Add support for STB_GNU_UNIQUE.
-
-readelf: Add -N option, speeds up DWARF printing without address->name lookups.
-
-libdw: Add support for decoding DWARF CFI into location description form.
- Handle some new DWARF 3 expression operations previously omitted.
- Basic handling of some new encodings slated for DWARF 4.
-
-Version 0.141:
-
-libebl: sparc backend fixes;
- some more arm backend support
-
-libdwfl: fix dwfl_module_build_id for prelinked DSO case;
- fixes in core file support;
- dwfl_module_getsym interface improved for non-address symbols
-
-strip: fix infinite loop on strange inputs with -f
-
-addr2line: take -j/--section=NAME option for binutils compatibility
- (same effect as '(NAME)0x123' syntax already supported)
-
-Version 0.140:
-
-libelf: Fix regression in creation of section header
-
-libdwfl: Less strict behavior if DWARF reader ist just used to display data
-
-Version 0.139:
-
-libcpu: Add Intel SSE4 disassembler support
-
-readelf: Implement call frame information and exception handling dumping.
- Add -e option. Enable it implicitly for -a.
-
-elflint: Check PT_GNU_EH_FRAME program header entry.
-
-libdwfl: Support automatic gzip/bzip2 decompression of ELF files.
-
-Version 0.138:
-
-Install <elfutils/version.h> header file for applications to use in source
-version compatibility checks.
-
-libebl: backend fixes for i386 TLS relocs; backend support for NT_386_IOPERM
-
-libcpu: disassembler fixes
-
-libdwfl: bug fixes
-
-libelf: bug fixes
-
-nm: bug fixes for handling corrupt input files
-
-Version 0.137:
-
-Minor fixes for unreleased 0.136 release.
-
-Version 0.136:
-
-libdwfl: bug fixes; new "segment" interfaces;
- all the libdwfl-based tools now support --core=COREFILE option
-
-Version 0.135:
-
-libdwfl: bug fixes
-
-strip: changed handling of ET_REL files wrt symbol tables and relocs
-
-Version 0.134:
-
-elflint: backend improvements for sparc, alpha
-
-libdwfl, libelf: bug fixes
-
-Version 0.133:
-
-readelf, elflint, libebl: SHT_GNU_ATTRIBUTE section handling (readelf -A)
-
-readelf: core note handling for NT_386_TLS, NT_PPC_SPE, Alpha NT_AUXV
-
-libdwfl: bug fixes and optimization in relocation handling
-
-elfcmp: bug fix for non-allocated section handling
-
-ld: implement newer features of binutils linker.
-
-Version 0.132:
-
-libcpu: Implement x86 and x86-64 disassembler.
-libasm: Add interface for disassembler.
-
-all programs: add debugging of branch prediction.
-
-libelf: new function elf_scnshndx.
-
-Version 0.131:
-
-libdw: DW_FORM_ref_addr support; dwarf_formref entry point now deprecated;
- bug fixes for oddly-formatted DWARF
-
-libdwfl: bug fixes in offline archive support, symbol table handling;
- apply partial relocations for dwfl_module_address_section on ET_REL
-
-libebl: powerpc backend support for Altivec registers
-
-Version 0.130:
-
-readelf: -p option can take an argument like -x for one section,
- or no argument (as before) for all SHF_STRINGS sections;
- new option --archive-index (or -c);
- improved -n output for core files, on many machines
-
-libelf: new function elf_getdata_rawchunk, replaces gelf_rawchunk;
- new functions gelf_getnote, gelf_getauxv, gelf_update_auxv
-
-readelf, elflint: handle SHT_NOTE sections without requiring phdrs
-
-elflint: stricter checks on debug sections
-
-libdwfl: new functions dwfl_build_id_find_elf, dwfl_build_id_find_debuginfo,
- dwfl_module_build_id, dwfl_module_report_build_id;
- support dynamic symbol tables found via phdrs;
- dwfl_standard_find_debuginfo now uses build IDs when available
-
-unstrip: new option --list (or -n)
-
-libebl: backend improvements for sparc, alpha, powerpc
-
-Version 0.129:
-
-readelf: new options --hex-dump (or -x), --strings (or -p)
-
-addr2line: new option --symbols (or -S)
-
-Version 0.128:
-
-new program: unstrip
-
-elfcmp: new option --hash-inexact
-
-Version 0.127:
-
-libdw: new function dwarf_getsrcdirs
-
-libdwfl: new functions dwfl_module_addrsym, dwfl_report_begin_add,
- dwfl_module_address_section
-
-Version 0.126:
-
-new program: ar
-
-Version 0.125:
-
-elflint: Compare DT_GNU_HASH tests.
-
-move archives into -static RPMs
-
-libelf, elflint: better support for core file handling
-
-Version 0.124:
-
-libebl: sparc backend support for return value location
-
-libebl, libdwfl: backend register name support extended with more info
-
-libelf, libdw: bug fixes for unaligned accesses on machines that care
-
-readelf, elflint: trivial bugs fixed
-
-Version 0.123:
-
-libebl: Backend build fixes, thanks to Stepan Kasal.
-
-libebl: ia64 backend support for register names, return value location
-
-libdwfl: Handle truncated linux kernel module section names.
-
-libdwfl: Look for linux kernel "vmlinux" files with ".debug" suffix.
-
-elflint: Fix checks to permit --hash-style=gnu format.
-
-Version 0.122:
-
-libebl: add function to test for relative relocation
-
-elflint: fix and extend DT_RELCOUNT/DT_RELACOUNT checks
-
-elflint, readelf: add support for DT_GNU_HASH
-libelf: add elf_gnu_hash
-
-elflint, readelf: add support for 64-bit SysV-style hash tables
-
-libdwfl: new functions dwfl_module_getsymtab, dwfl_module_getsym.
-
-Version 0.121:
-
-libelf: bug fixes for rewriting existing files when using mmap.
-
-make all installed headers usable in C++ code.
-
-readelf: better output format.
-
-elflint: fix tests of dynamic section content.
-
-ld: Implement --as-needed, --execstack, PT_GNU_STACK. Many small patches.
-
-libdw, libdwfl: handle files without aranges info.
-
-Version 0.120:
-
-Bug fixes.
-
-dwarf.h updated for DWARF 3.0 final specification.
-
-libdwfl: New function dwfl_version.
-
-The license is now GPL for most files. The libelf, libebl, libdw,
-and libdwfl libraries have additional exceptions. Add reference to
-OIN.
-
-Version 0.119:
-
-bug fixes
-
-Version 0.118:
-
-elflint: more tests.
-
-libdwfl: New function dwfl_module_register_names.
-
-libebl: New backend hook for register names.
-
-Version 0.117:
-
-libdwfl: New function dwfl_module_return_value_location.
-
-libebl: Backend improvements for several CPUs.
-
-Version 0.116:
-
-libdw: New functions dwarf_ranges, dwarf_entrypc, dwarf_diecu,
- dwarf_entry_breakpoints. Removed Dwarf_Func type and functions
- dwarf_func_name, dwarf_func_lowpc, dwarf_func_highpc,
- dwarf_func_entrypc, dwarf_func_die; dwarf_getfuncs callback now uses
- Dwarf_Die, and dwarf_func_file, dwarf_func_line, dwarf_func_col
- replaced by dwarf_decl_file, dwarf_decl_line, dwarf_decl_column;
- dwarf_func_inline, dwarf_func_inline_instances now take Dwarf_Die.
- Type Dwarf_Loc renamed to Dwarf_Op; dwarf_getloclist,
- dwarf_addrloclists renamed dwarf_getlocation, dwarf_getlocation_addr.
-
-Version 0.115:
-
-libelf: speed-ups of non-mmap reading.
-
-strings: New program.
-
-Implement --enable-gcov option for configure.
-
-libdw: New function dwarf_getscopes_die.
-
-Version 0.114:
-
-libelf: new function elf_getaroff
-
-libdw: Added dwarf_func_die, dwarf_func_inline, dwarf_func_inline_instances.
-
-libdwfl: New functions dwfl_report_offline, dwfl_offline_section_address,
- dwfl_linux_kernel_report_offline.
-
-ranlib: new program
-
-Version 0.113:
-
-elflint: relax a bit. Allow version definitions for defined symbols against
-DSO versions also for symbols in nobits sections. Allow .rodata section
-to have STRINGS and MERGE flag set.
-
-strip: add some more compatibility with binutils.
-
-Version 0.112:
-
-elfcmp: some more relaxation.
-
-elflint: many more tests, especially regarding to symbol versioning.
-
-libelf: Add elfXX_offscn and gelf_offscn.
-
-libasm: asm_begin interface changes.
-
-libebl: Add three new interfaces to directly access machine, class, and
-data encoding information.
-
-objdump: New program. Just the beginning.
-
-Version 0.111:
-
-libdw: now contains all of libdwfl. The latter is not installed anymore.
-
-elfcmp: little usability tweak, name and index of differing section is printed.
-
-Version 0.110:
-
-libelf: fix a number of problems with elf_update
-
-elfcmp: fix a few bugs. Compare gaps.
-
-Fix a few PLT problems and mudflap build issues.
-
-libebl: Don't expose Ebl structure definition in libebl.h. It's now private.
-
-Version 0.109:
-
-libebl: Check for matching modules.
-
-elflint: Check that copy relocations only happen for OBJECT or NOTYPE symbols.
-
-elfcmp: New program.
-
-libdwfl: New library.
-
-Version 0.108:
-
-strip: fix bug introduced in last change
-
-libdw: records returned by dwarf_getsrclines are now sorted by address
-
-Version 0.107:
-
-readelf: improve DWARF output format
-
-strip: support Linux kernel modules
-
-Version 0.106:
-
-libdw: Updated dwarf.h from DWARF3 spec
-libdw: add new funtions dwarf_func_entrypc, dwarf_func_file, dwarf_func_line,
-dwarf_func_col, dwarf_getsrc_file
-
-Version 0.105:
-
-addr2line: New program
-
-libdw: add new functions: dwarf_addrdie, dwarf_macro_*, dwarf_getfuncs,
-dwarf_func_*.
-
-findtextrel: use dwarf_addrdie
-
-Version 0.104:
-
-findtextrel: New program.
-
-Version 0.103:
-
-libdw: Fix using libdw.h with gcc < 4 and C++ code. Compiler bug.
-
-Version 0.102:
-
-More Makefile and spec file cleanups.
-
-Version 0.101:
-
-Remove most gettext autoconf handling.
-
-Add more warnings
-
-Fix resulting problems. One actual bug found and fixed this way
-
-Version 0.100:
-
-libebl: Fix x86-64 relocations.
-
-Add -Wunused -Wextra warnings.
-
-Some cleanups resulting from those additional warnings.
-
-Lots of Makefile cleanup.
-
-Version 0.99:
-
-libelf: add gelf_checksum prototype to <libelf.h>
-
-libelf: fix elf*_checksum handling of NOBITS sections
-
-Finish mudflap support.
-
-Fix three bugs found by mudflap.
-
-ld: add as_needed support
-
-Version 0.98:
-
-readelf: in section to segment mapping, indicate read-only sections.
-
-elflint: more relaxation for GNU ld
-
-Version 0.97:
-
-Fix compiling with gcc 4.0.
-Some tests called elflint without appropriate LD_LIBRARY_PATH.
-
-Version 0.96:
-
-Fix support for platforms with lib64.
-
-Version 0.95:
-
-libebl: add ppc and ppc64 support
-
-readelf: fix minimal memory leak.
-
-Add support to compile with mudflap.
-
-Modernize configure.ac. Move scripts in config subdir.
-
-Modernize *-po directory infrastructure.
-
-libelf: Add gelf_getlib and gelf_update_lib
-
-readelf: print liblist sections
-
-Version 0.94:
-
-Fix some minimal build problems.
-
-Version 0.93:
-
-ibdw: tons of new functionality and bug fixes. Several interface changes.
-
-readelf: use libdw now.
-
-libdwarf: removed completely.
-
-Version 0.92:
-
-configuration changes.
-
-Version 0.91:
-
-libdw: fix memory handling. Implement source line handling.
-nm: use libdw instead of libdwarf.
-libelf: change to GPL from OSL1 for now.
-
-Version 0.90:
-
-libebl: Recognize a few more section types and dynamic tags and return
-approriate strings.
-
-Version 0.89:
-
-strip: fix overwriting of symbol table in input file.
-
-Version 0.88:
-
-libebl: Add some ia64 bits.
-
-Version 0.87:
-
-Bug fixes for big endian and some 64-bit machines.
-
-Version 0.86:
-
-strip: fix handling of Alpha and s390x which use incorrect hash bucket sizes.
-
-ld: tons of changes, moving towards usability.
-
-Version 0.85:
-
-strip: update section group symbol index if the associated symbol table changed
-
-libelf: fix two problems with generating output not via mmap
-
-elflint: add probably 10-15 more tests
-libebl: add support for some of the new tests
-
-ld: gazillion changes
-
-Version 0.84:
-
-elflint: deal with .rel.dyn section. Fix a problem with rela platforms.
-Handle PT_GNU_STACK. Change to write messages to stdout.
-
-readelf: fix a problem with version information in the symbol table output.
-
-strip: update all version symbol table entries
-
-Version 0.83:
-
-size: fix a warning
-
-strip: last changed caused problems when the symbol table is before the
-relocation section. Fixed. This fix also improved the asymptotic
-behavior if many symbol table sections are present.
-
-Version 0.82:
-
-Run strip tests with the correct libelf and libebl.
-
-libelf: fix bug in verneed byte order changing code.
-
-Version 0.81:
-
-strip: Remove unused symbol table entries. This might require updating
-various other sections.
-
-Version 0.80:
-
-Fix some libelf problems with ET_REL files.
-
-Version 0.79:
-
-More warning changes, mainly by jbj.
-
-libdw: yet more new code. dwarf_child and dwarf_sibling should now actually
-work.
-
-Version 0.78:
-
-libdw: 10+ new functions. get-pubnames2 works now fully. Almost all the
-code needed for nm is in place.
-
-Version 0.77:
-
-cleanups to compile cleanly with gcc 3.3 and -Werror.
-
-libdw: some new code.
-
-Version 0.76:
-
-libebl: Fix last patch to recognize relocation sections. We must not
-use the name.
-
-Version 0.75:
-
-libebl: .debug_ranges is a DWARF 3 debug section
-libebl: recognize relocation sections for debug section
-Patches by Jakub Jelinek.
-
-Version 0.74:
-
-Cleanups and more SPARC support by Tom Callaway <tcallaway@redhat.com>.
-
-Version 0.73:
-
-64-bit cleanups for the programs.
-
-Version 0.72:
-
-libelf: and yet more fun with endian tranformation at output time.
-
-Version 0.71:
-
-libelf: more fun with endian tranformation at output time. Add test for it.
-
-Version 0.70:
-
-libelf: Two little bugs left from previous patch to handle section output
-order.
-
-libelf: add unlikely in some more places.
-
-Version 0.69:
-
-libelf: fix output routines to handle case where section indeces and
-ordre in the output file don't match correctly. Patch by Jakub.
-
-elflint: fix test of note section content for 64-bit platforms and files
-with different byte order.
-
-Version 0.68:
-
-libebl: Fix SH_ENTSIZE_HASH definition (patch by Jakub)
-
-Version 0.67:
-
-libelf: correct mistake in error string handling.
-
-libelf: Implement ELF_F_PERMISSIVE.
-strip: Implement --permissive option.
-
-Version 0.66:
-
-strip: Implement -g option.
-
-libelf: Handle broken hash table entry sizes.
-
-libebl: New function ebl_debugscn_p. Use it where appropriate.
-
-Version 0.65:
-
-libelf: Use correct file size for NOBITS section with ELF_F_LAYOUT set
-
-Version 0.64:
-
-libelf: Make error handling more robust.
-libelf: Use TLS in error handler if configured with --enable-tls
-
-tests: input files are now distributed, not uuencoded in the shell scripts
-
-libdw: implement error handling, dwarf_get_pubnames
-
-Version 0.63:
-
-Build (incomplete) libdw.
-
-Version 0.62:
-
-Get rid of libtool.
-
-Version 0.61:
-
-Fix URL of OSL.
-
-Version 0.60:
-
-libebl: Handle .gnu.warning.* sections correctly.
-
-size: Implement -t option.
-
-libebl: Add IA-64 support.
-libebl: Update SH relocations.
-libebl: Add Alpha support.
-libebl: Add Arm support.
-libebl: Add support for all currently known architecture to the loader.
-
-Version 0.59:
-
-nm: Implement -S option. Correct portable output format. Implement -s option.
-
-libelf: Take offset of archive into account in elf_rand.
-
-Version 0.58:
-
-strip: fix handling of ET_REL files.
-Add tests for strip.
-
-Version 0.57:
-
-strip: respect layout of input file
-
-Version 0.56:
-
-strip: handle files with large number of sections.
-
-Version 0.55:
-
-libelf: quite a few bug fixes by Alex Larsson.
-
-strip: implement -f option to place stripped sections into a separate
-file. By Alex Larsson.
-
-Version 0.54:
-
-strip: don't let STT_SECTION symbols keeps sections from being removed
-
-elflint: local symbols are allowed in .dynsym
-elflint: special case .rel.dyn a bit
-
-Version 0.53:
-
-elflint: check types and flags of special sections defined in gABI
-
-libebl: add x86-64 support
-
-Version 0.52:
-
-Start improvement of debug info handling in nm.
-
-libasm: implement asm_adduleb128 and asm_addsleb128 and a test for them
-
-Version 0.51:
-
-Fix build on 64-bit platforms.
-
-Version 0.50:
-
-nm: print file/line number also for local symbols
-
-use versions scripts not libtool's useless -export-symbols option
-
-Version 0.49:
-
-Update to autoconf 2.54 and automake 1.7.
-
-elflint: check note sections
-
-libdwarf: a number of bug fixes
-
-readelf: print .debug_info section content
-
-dwarf.h: Update from draft 7
-
-Version 0.48:
-
-libcpu: beginning
-
-libelf: new function to read parts of the ELF file
-
-libebl: support for note section handling
-
-readelf: dump note sections
-
-Version 0.47:
-
-libelf: fix little new section-handling related bugs in elf_getshstrndx
-and elf_nextscn
-
-elflint: tests for mandatory content of dynamic section
-
-libasm: better handling of absolute symbols
-
-Version 0.46:
-
-libasm: rewrite to store Elf_Scn* instead of indices
-
-nm: finish many-section support
-
-nm: use debug in to print file/line info in sysv format
-
-libdwarf: fix a few bugs in DIE handling
-
-Version 0.45:
-
-libelf: major rewrite to keep Elf_Scn references valid until elf_end
-
-Version 0.44:
-
-libasm: Add support for bss, ABS, and COM sections.
-
-libebl: ebl_section_name takes now two index arguments to distinguish
-between special sections and extended sections
-
-Version 0.43:
-
-General: fix a few problem gcc 3.1 had with the code.
-
-libelf: implement {gelf,elf32,elf64}_checksum
-
-libelf: optimze DSO: fewer relocations, fewer PLTs
-
-add msg_tst test
-
-ld: use correct section header string table index; write correct index
-
-add dependencies for *.sym files
-
-Version 0.42:
-
-libelf: add elf_getshnum and elf_getshstrndx
-
-libebl: update section type name function
-
-elflint: tons of fixes wrt large number of sections. New tests in this area.
-Same amount of other bug fixes.
-
-size, strip, nm: better support for large number of sections. Including
-using correct section header string table
-
-libasm: correctly create data structures for large number of sections
-
-new tests asm-tst4 and asm-tst5 to check large number of sections
-
-libasm: implement section group generation
-
-elflint: more tests on section groups. Improve performance on existing
-section group tests
-
-Version 0.41:
-
-ld: add undefined symbols to dynamic symbol table if --export-dynamic is
-not given
-
-ld: fix value of e_entry
-
-Version 0.40:
-
-elflint: print section names in error messages
-
-elflint: mustn't warn about multiple DT_NULL
-
-ld: don't emit all symbols if --export-dynamic is not given
-
-ld: correct compute symbol address in output file (section index was off by 1)
-
-ld: generate correct version info in dynsym without --export-dynamic and
-in symtab
-
-Version 0.39:
-
-Fix check of various e_*size entries in elflint.
-
-Handle text output in asm_newsym.
-
-Finish checks in asm-tst3.
-
-Version 0.38:
-
-Update to autoconf 2.53, automake 1.6, gettext 0.11+.
-
-Introduce *.sym files to restrict export from DSOs.
-
-Use attribute_hidden and internal_function to optimize DSO code.
-
-Add TLS definitions in elf.h and handle them in readelf.
-
-Fix bug in verdef section generation in ld.
-
-Add initial libasm code.
-
-Version 0.37:
-
-Implement better hash size optimization heuristic in ld. It uses a formula
-taking number of tests into account.
-
-Lots of small bug fixes.
-
-Improve readelf output format. Respect various sh_link/sh_info values.
-Correctly print versioning information for symbol tables.
-
-Version 0.36:
-
-Implement preprocessing of linker script. Recognize -z combreloc.
-
-Version 0.35:
-
-Implement -z ignore|record for ld.
-
-Implement creating of .gnu.version_r and .gnu.version sections. The
-.gnu.version does not yet contain correct info for defined and versioned
-symbols (means .gnu.version_d is not yet implemented).
-
-Implement gelf_update_* functions to create versioning data.
-
-Version 0.34:
-
-Add DT_RUNPATH/DT_RPATH entries to dynamic section. Create .plt and
-.rel.plt sections (completely). Add support for all four PLT related
-dynamic section entries. Add callback function for PLT creation.
-
-More tests in elflint. Add support for very strict checking which for
-now flags level 2 (deprecated features) usage.
-
-Version 0.33:
-
-Create dynamic symbol table, dynamic string table, and hash table to ld.
-
-Add hash table histogram support to readelf.
-
-Version 0.32:
-
-more work on elflint
-
-ld now creates the dynamic section and references it. Start adding entries
-to dynamic section.
-
-Version 0.31:
-
-Start implementing elflint.
-
-Version 0.30:
-
-Fix handling of NOBITS sections in elf_getdata.
-
-Start implementing generation of executables and DSOs in ld.
-Generation of program header mostly done. Address computation done.
-Extension of linker script syntax.
-
-Various cleanups.
-
-Implement section group handling in readelf.
-
-Version 0.29:
-
-Implement section groups. This involved a lot of code moving. The
-new code is entirely untested since gas/gcc are currently not able to
-create section groups. ld works fine on files without section groups.
-
-Version 0.28:
-
-Fix problem with adding more section in elf_newscn. The section pointers
-for the data buffers wasn't adjusted.
-
-Fix elf_getdata with nonzero second parameter. Correctly handle creation
-of internal data buffer for machines without unaligned access.
-
-Version 0.27:
-
-Start adding support to selectively add sections. Includes support for
-section groups.
-Add --gc-sections/--no-gc-sections options.
-Add general section merging support.
-
-Fix a bug in section group support in strip.
-
-Fix some potential problems with hash value in dynamic hash implementation.
-
-Version 0.26:
-
-section merging works in ld.
-
-Version 0.25:
-
-Actually create data structures from version map file and use it to hide
-symbols in ld.
-
-Implement -s -s for ld.
-
-Version 0.24:
-
-Improve relocation table output in readelf. Avoid some crashes.
-Finish many section handling in readelf.
-
-Finish: finish implementation of ld -r. At least some simple tests pass.
-
-Version 0.23:
-
-Fix a number of errors in ELF_C_WRITE handling.
-
-Almost finished implementation of ld -r. The data sections are all copied.
-Handling of symbol tables is missing.
-
-Version 0.22:
-
-Handle DSO and archive input files correctly if -r option is given.
-
-Gracefully deal with no phdr in new file in libelf.
-Fix various small error handling problems.
-Don't mmap file for output unless the command says so.
-
-Add code to create ELF section header table to ld finalize routines.
-
-Version 0.21:
-
-Fix some problems with recursive handling of archives in libelf.
-
-Improve messages printed by nm.
-
-Add symbol binding name handling to libebl. Fix section name handling in
-libebl.
-
-readelf and nm use more libebl functions.
-
-Handle XINDEX correctly in nm and string.
-
-Add first machine ld backend library (i386).
-Use it. Recognize -r and --shared. Avoid using -lxxx parameters for -r.
-Create ELF header in output file. Change mode of output file according to
-output file type. Reorganize callback initialization in ld.
-
-Version 0.20:
-
-Fix some memory leaks in libelf.
-
-Version 0.19:
-
-Implement reading version script. Both inside linker scripts and via the
---version-script command line parameter. Uses the same code.
-What remains to be done is to implement a data structure which allows
-efficient matching against the version names to decide which pattern
-matches.
-
-Beginning of output generation and output writing functions.
-
-Version 0.18:
-
-Finish implementation for DSO input file handling. Implement rpath, runpath,
-and LD_LIBRARY_PATH handling.
-
-Version 0.17:
-
-make handling of e_shnum overflow in libelf standard conforming
-
-ld now actually can handle DSOs in linker scripts. Handling of DT_RUNPATH,
-DT_RPATH, -rpath, -rpath-link still remains to be implemented.
-
-fix handling of -L parameters. Make actual use of the default_paths element.
-
-make re-definition of symbols in and from DSO compatible with existing linker
-
-Version 0.16:
-
-more work on assigning input sections to output sections.
-
-Add gelf_xlatetof and gelf_xlatetom which were accidently left out.
-
-Fix memory handling of section headers.
-
-Version 0.15:
-
-Add many-section support to ld. Add various new command line parameters.
-Allow pagesize to be specified in linker script or on the command line.
-Collect input sections in list for the output section according to the rules
-specified in the linker script.
-
-Version 0.14:
-
-Fix some problems in the internal list handling which had the result
-that we didn't look for some of the unresolved symbols.
-
-Free some memory if we know we don't need it anymore.
-
-Optimize the list of unresolved symbols. Throw out symbols which are
-meanwhile resolved.
-
-Version 0.13:
-
-Got file reading correct now. The files are all read while parsing
-the parameters. No creating of data structures to describe the linker
-command line. The symbol table is built up while reading the files.
-DSOs are handled now. -( -) handling is optimized.
-
-Version 0.12:
-
-Linker read linker scripts everywhere. Handles --whole-archive. Recognizes
---dynamic and --static. Collects defined and undefined symbols. Recognizes
-conflicts.
-
-libebl now defines functions to call the callbacks. Add generic name handling
-in these new functions. Remove the code from readelf and call the new
-functions.
-
-Version 0.11:
-
-Start of linker. Basic argument parsing, finding of input files,
-linker script reading.
-
-Version 0.10:
-
-Implement dwarf_get_fde_n(), dwarf_get_abbrev(), dwarf_get_abbrev_tag(),
-dwarf_get_abbrev_code(), dwarf_get_abbrev_children_flag(),
-dwarf_get_abbrev_entry(), dwarf_get_fde_at_pc(), and tests for it.
-
-Version 0.9:
-
-Implement dwarf_get_fde_list_eh(), dwarf_get_cie_of_fde(),
-dwarf_get_fde_range(), dwarf_get_cie_info(), dwarf_get_fde_instr_bytes(),
-and tests for them.
-
-Version 0.8:
-
-Make handling of binaries in other byte order work and add tests for it.
-
-Version 0.7:
-
-Implement dwarf_get_aranges(), dwarf_get_arange(), dwarf_get_cu_die_offset(),
-dwarf_get_arange_info(), and tests for them.
-
-Version 0.6:
-
-Implement dwarf_get_global(), dwarf_globname(), dwarf_global_die_offset(),
-dwarf_global_cu_offset(), dwarf_global_name_offsets(), and tests for them
-
-Version 0.5:
-
-Implemented dwarf_srclines(), dwarf_srcfiles(), dwarf_linebeginstatement(),
-dwarf_lineendsequence(), dwarf_lineno(), dwarf_lineaddr(), dwarf_lineoff(),
-dwarf_linesrc(), dwarf_lineblock(), dwarf_lineprologueend(),
-dwarf_lineepiloguebegin(), and tests for them.
-
-Version 0.4:
-
-Implemented dwarf_loclist().
-
-Version 0.3:
-
-Implemented dwarf_dieoffset(), dwarf_die_CU_offset(), dwarf_diename() and
-tests.
-
-Implemented dwarf_attrlist(), dwarf_hasattr(), dwarf_attr(), dwarf_lowpc(),
-dwarf_highpc(), dwarf_bytesize(), dwarf_bitsize(), dwarf_bitoffset(),
-dwarf_srclang(), dwarf_arrayorder(), dwarf_hasform(), dwarf_whatform(),
-dwarf_whatattr(), dwarf_formref(), dwarf_global_formref(), dwarf_formaddr(),
-dwarf_formflag(), dwarf_formudata(), dwarf_formsdata(), dwarf_formblock,
-dwarf_formstring() and tests for them.
-
-Version 0.2:
-
-Implemented dwarf_offdie()), dwarf_tag(), dwarf_dieoffset(),
-dwarf_die_CU_offset(), dwarf_diename() and tests for them.
-
-Version 0.1:
-
-First libdwarf functions work.
-
-Version 0.0:
-
-libelf and parts of libebl are done.
diff --git a/src/NOTES b/src/NOTES
deleted file mode 100644
index 4f06b8d2..00000000
--- a/src/NOTES
+++ /dev/null
@@ -1,73 +0,0 @@
-- old GNU ld's behavior wrt DSOs seems to be severely broken.
-
- y.o reference foo()
- y1.o defines foo(), references bar()
- y2.o defines bar()
- libbar.so defines bar()
-
- Running
-
- gcc -o y y.o -lbar y1.o y2.o
-
- uses the bar() definition from libbar.so and does not mention the definition
- in y2.o at all (no duplicate symbol message). Correct is to use the
- definition in y2.o.
-
-
- y.o reference foo()
- y1.o defines foo(), references bar()
- y2.o in liby2.a defines bar()
- libbar.so defines bar()
-
- Running
-
- gcc -o y y.o -lbar y1.o -ly3
-
- has to use the definition in -lbar and not pull the definition from liby3.a.
-
-
-- the old linker follows DT_NEEDED entries and adds the objects referenced
- this way which define a symbol which is needed as a DT_NEEDED to the
- generated binary. This is wrong since the DT_NEEDED changes the search
- path in the object (which is breadth first).
-
-
-- the old linker supported extern "C++", extern "java" in version scripts.
- I believe this implementation is severly broken and needs a redesign
- (how do wildcards work with these languages*?). Therefore it is left
- out for now.
-
-
-- what should happen if two sections in different files with the same
- name have different types and/or the flags are different
-
-
-- section names in input files are mostly irrelevant. Exceptions:
-
- .comment/SHT_PROGBITS in strip, ld
-
- .debug \
- .line |
- .debug_srcinfo |
- .debug_sfnames |
- .debug_aranges |
- .debug_pubnames |
- .debug_info |
- .debug_abbrev |
- .debug_line |
- .debug_abbrev > DWARF sections in ld
- .debug_line |
- .debug_frame |
- .debug_str |
- .debug_loc |
- .debug_macinfo |
- .debug_weaknames |
- .debug_funcnames |
- .debug_typenames |
- .debug_varnames /
-
- Sections created in output files follow the naming of special section
- from the gABI.
-
- In no place is a section solely indentified by its name. Internal
- references always use the section index.
diff --git a/src/README b/src/README
deleted file mode 100644
index f7e4b61e..00000000
--- a/src/README
+++ /dev/null
@@ -1,19 +0,0 @@
-Fundamental design decision:
-
-- the sizes of external and internal types are assumed to be the same.
- This leaves byte ordering aside. While assuming this the code can be
- greatly simplified and speed increases. Since no change violating this
- assumption is in sight this is believed to be a worthwhile optimization.
-
-- the ABI of the backend modules is not guaranteed. Really, not guarantee
- whatsoever. We are enforcing this in the code. The modules and their
- users must match. No third-party EBL module are supported or allowed.
- The only reason there are separate modules is to not have the code for
- all architectures in all the binaries.
-
-- although the public libraries (libasm, libdw) have a stable API and are
- backwards ABI compatible they, and the elfutils tools, do depend on each
- others internals, and on internals of libelf to provide their interfaces.
- So they should always be upgraded in lockstep when packaging the tools
- and libraries separately. For one example of how to do that, see the
- config/elfutils.spec.
diff --git a/src/THANKS b/src/THANKS
deleted file mode 100644
index 887c067a..00000000
--- a/src/THANKS
+++ /dev/null
@@ -1,6 +0,0 @@
-At least the following have submitted valuable patches:
-
-Jeff Johnson building. rpm wrestling
-Alexander Larsson separate debug info
-Jakub Jelinek bug fixes, testing
-Denys Vlasenko bug fuxes
diff --git a/src/TODO b/src/TODO
deleted file mode 100644
index ad10a5ee..00000000
--- a/src/TODO
+++ /dev/null
@@ -1,195 +0,0 @@
- ToDo list for elfutils -*-outline-*-
- ----------------------
-
-Time-stamp: <2009-02-05 22:08:01 drepper>
-
-* mkinstalldirs
-
- Remove everywhere. Use mkdir -p.
-
-* libelf:
-
-** verify section
-
- Currently the elf_update function trusts the user blindly if the
- ELF_F_LAYOUT flag is set. This is OK if the data is prepared by a
- ELF_C_NULL call but not if the user prepared the data herself
-
-** break out archive handling from elf_begin
-
- The handling of archives (especially of the symbol tables) must be
- broken out of elf_begin. There are several different forms of
- archives and only when having the archive handling separately this
- remains maintainable.
-
-** shdrs in read-only files
-
- When reading (ELF_C_READ*) then there is no need to malloc Shdr
- structure in elfXX_getshdr if file is mmaped and unaligned access
- is allowed or the structure is aligned. Use ELF_F_MALLOCED flag
- to differentiate.
-
-** shdrs after elf_cntl (ELF_C_FDREAD)
-
- Similar to the above. After ELF_C_FDREAD the file is completely
- in memory. See also this mailing list thread:
- https://fedorahosted.org/pipermail/elfutils-devel/2012-July/002368.html
-
-* libdw
-
-** More memory access checks needed
-
- All accesses to the debug sections should make sure the offsets are
- valid. This is currently especially a problem with leb128 accesses.
-
-** Low level macro information operations
-
- in 5.11.3 are not implemented. gcc currently does not emit this
- information so I cannot test it.
-
-** Rename dwarf_getabbrev
-
-
-* libcpu
-
-** x86
-
-*** Opcodes
-
- crc32
- extractps
- pextrb
- pextrd/pextrq
- pextrw
- pinsrq
- popcnt 64-bit reg
-
-* nm:
-
-** add demangler support
-
- Use demangler from libiberty.
-
-** add support to read debugging symbols
-
- Implement -l option for BSD and POSIX format
-
-
-* strip:
-
-** support SHT_SYMTAB_SHNDX
-
- should be removed if not needed anymore
-
-* ld:
-
-** sanity check .rel sh_info content
-
- the sh_info of all .rel sections with the same name must point to
- sections which also have the same name
-
-** use ld.so.conf
-
- to locate shared libraries also use /etc/ld.so.conf
-
-** handle object files for different architectures
-
- ld.so is expected to ignore object files for different architectures and
- continue looking for a matching file (e.g., ignore 32-bit binaries on
- 64-bit platforms and vice versa). We probably need the same in ld.
-
-** reuse after elf_end
-
- Some files are closed using elf_end. They are removed from memory only
- if no reference is left (especially for archives this is a problem).
- The old mapping should be reused in that case. The problem is worse
- for files which are not mapped read-only (archives again).
-
-** size for STT_SECTION entries
-
- The STT_SECTION entries have zero for the size but can easily get
- the size of the section.
-
-** .eh_frame_hdr
-
- Not implemented at all in the moment except for recognition of the option
- itself.
-
-** variables with aliases in executables
-
- When linking an executable with a references against a variable in a
- DSO, create symbol table entries for all the aliases of the variable
- in the DSO and create a relocation for one of them (a non-weak
- definition)
-
-* elflint
-
-** additional checks
-
- 1st GOT entry == _DYNAMIC
-
- check versioning info:
-
- always BASE in verdef
- sh_size/sh_entsize matches last offset != 0
-
- check whether any relocation is for a merge-able section
-
- check TLS relocation depencies
-
- Check content of .eh_frame_hdr, .eh_frame, .gcc_except_table
-
-*** for x86
-
- check that R_386_TLS_GD is followed by R_386_PLT32 for __tls_get_addr
-
-** relax
-
- prelink generated files
-
-* elfcmp
-
-** treat relocation sections special
-
- Differences in the relocation sections can be ignored if all
- the same symbols with the same targets are present and the order
- of overlapping relocations doesn't change. There really never
- should be overlapping relocations but who knows.
-
-* mcs
-
- Sun has it. Can modify sections which are not in segments.
-
- -a string
- Append string to the comment section of the ELF object
- files. If string contains embedded blanks, it must be
- enclosed in quotation marks.
-
- -c Compress the contents of the comment section of the
- ELF object files. All duplicate entries are removed.
- The ordering of the remaining entries is not dis-
- turbed.
-
- -d Delete the contents of the comment section from the
- ELF object files. The section header for the comment
- section is also removed.
-
- -n name
- Specify the name of the comment section to access if
- other than .comment. By default, mcs deals with the
- section named .comment. This option can be used to
- specify another section. mcs can take multiple -n
- options to allow for specification of multiple sec-
- tion comments.
-
- -p Print the contents of the comment section on the stan-
- dard output. Each section printed is tagged by the
- name of the file from which it was extracted, using
- the format file[member_name]: for archive files and
- file: for other files.
-
- -V Print on standard error the version number of mcs.
-
-Local Variables:
-eval:(hide-sublevels 3)
-End:
diff --git a/src/aclocal.m4 b/src/aclocal.m4
deleted file mode 100644
index eb59f529..00000000
--- a/src/aclocal.m4
+++ /dev/null
@@ -1,1268 +0,0 @@
-# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
-
-# Copyright (C) 1996-2013 Free Software Foundation, Inc.
-
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
-m4_ifndef([AC_AUTOCONF_VERSION],
- [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
-[m4_warning([this file was generated for autoconf 2.69.
-You have another version of autoconf. It may work, but is not guaranteed to.
-If you have problems, you may need to regenerate the build system entirely.
-To do so, use the procedure documented by the package, typically 'autoreconf'.])])
-
-# Copyright (C) 2002-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_AUTOMAKE_VERSION(VERSION)
-# ----------------------------
-# Automake X.Y traces this macro to ensure aclocal.m4 has been
-# generated from the m4 files accompanying Automake X.Y.
-# (This private macro should not be called outside this file.)
-AC_DEFUN([AM_AUTOMAKE_VERSION],
-[am__api_version='1.14'
-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
-dnl require some minimum version. Point them to the right macro.
-m4_if([$1], [1.14.1], [],
- [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
-])
-
-# _AM_AUTOCONF_VERSION(VERSION)
-# -----------------------------
-# aclocal traces this macro to find the Autoconf version.
-# This is a private macro too. Using m4_define simplifies
-# the logic in aclocal, which can simply ignore this definition.
-m4_define([_AM_AUTOCONF_VERSION], [])
-
-# AM_SET_CURRENT_AUTOMAKE_VERSION
-# -------------------------------
-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
-# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.14.1])dnl
-m4_ifndef([AC_AUTOCONF_VERSION],
- [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
-_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
-
-# Copyright (C) 2011-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_AR([ACT-IF-FAIL])
-# -------------------------
-# Try to determine the archiver interface, and trigger the ar-lib wrapper
-# if it is needed. If the detection of archiver interface fails, run
-# ACT-IF-FAIL (default is to abort configure with a proper error message).
-AC_DEFUN([AM_PROG_AR],
-[AC_BEFORE([$0], [LT_INIT])dnl
-AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
-AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([ar-lib])dnl
-AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
-: ${AR=ar}
-
-AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
- [AC_LANG_PUSH([C])
- am_cv_ar_interface=ar
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
- [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
- AC_TRY_EVAL([am_ar_try])
- if test "$ac_status" -eq 0; then
- am_cv_ar_interface=ar
- else
- am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
- AC_TRY_EVAL([am_ar_try])
- if test "$ac_status" -eq 0; then
- am_cv_ar_interface=lib
- else
- am_cv_ar_interface=unknown
- fi
- fi
- rm -f conftest.lib libconftest.a
- ])
- AC_LANG_POP([C])])
-
-case $am_cv_ar_interface in
-ar)
- ;;
-lib)
- # Microsoft lib, so override with the ar-lib wrapper script.
- # FIXME: It is wrong to rewrite AR.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__AR in this case,
- # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
- # similar.
- AR="$am_aux_dir/ar-lib $AR"
- ;;
-unknown)
- m4_default([$1],
- [AC_MSG_ERROR([could not determine $AR interface])])
- ;;
-esac
-AC_SUBST([AR])dnl
-])
-
-# AM_AUX_DIR_EXPAND -*- Autoconf -*-
-
-# Copyright (C) 2001-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
-# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
-# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
-#
-# Of course, Automake must honor this variable whenever it calls a
-# tool from the auxiliary directory. The problem is that $srcdir (and
-# therefore $ac_aux_dir as well) can be either absolute or relative,
-# depending on how configure is run. This is pretty annoying, since
-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
-# source directory, any form will work fine, but in subdirectories a
-# relative path needs to be adjusted first.
-#
-# $ac_aux_dir/missing
-# fails when called from a subdirectory if $ac_aux_dir is relative
-# $top_srcdir/$ac_aux_dir/missing
-# fails if $ac_aux_dir is absolute,
-# fails when called from a subdirectory in a VPATH build with
-# a relative $ac_aux_dir
-#
-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
-# are both prefixed by $srcdir. In an in-source build this is usually
-# harmless because $srcdir is '.', but things will broke when you
-# start a VPATH build or use an absolute $srcdir.
-#
-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
-# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
-# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
-# and then we would define $MISSING as
-# MISSING="\${SHELL} $am_aux_dir/missing"
-# This will work as long as MISSING is not called from configure, because
-# unfortunately $(top_srcdir) has no meaning in configure.
-# However there are other variables, like CC, which are often used in
-# configure, and could therefore not use this "fixed" $ac_aux_dir.
-#
-# Another solution, used here, is to always expand $ac_aux_dir to an
-# absolute PATH. The drawback is that using absolute paths prevent a
-# configured tree to be moved without reconfiguration.
-
-AC_DEFUN([AM_AUX_DIR_EXPAND],
-[dnl Rely on autoconf to set up CDPATH properly.
-AC_PREREQ([2.50])dnl
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-])
-
-# AM_CONDITIONAL -*- Autoconf -*-
-
-# Copyright (C) 1997-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
-# -------------------------------------
-# Define a conditional.
-AC_DEFUN([AM_CONDITIONAL],
-[AC_PREREQ([2.52])dnl
- m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
-AC_SUBST([$1_TRUE])dnl
-AC_SUBST([$1_FALSE])dnl
-_AM_SUBST_NOTMAKE([$1_TRUE])dnl
-_AM_SUBST_NOTMAKE([$1_FALSE])dnl
-m4_define([_AM_COND_VALUE_$1], [$2])dnl
-if $2; then
- $1_TRUE=
- $1_FALSE='#'
-else
- $1_TRUE='#'
- $1_FALSE=
-fi
-AC_CONFIG_COMMANDS_PRE(
-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
- AC_MSG_ERROR([[conditional "$1" was never defined.
-Usually this means the macro was only invoked conditionally.]])
-fi])])
-
-# Copyright (C) 1999-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-
-# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
-# written in clear, in which case automake, when reading aclocal.m4,
-# will think it sees a *use*, and therefore will trigger all it's
-# C support machinery. Also note that it means that autoscan, seeing
-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
-
-
-# _AM_DEPENDENCIES(NAME)
-# ----------------------
-# See how the compiler implements dependency checking.
-# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
-# We try a few techniques and use that to set a single cache variable.
-#
-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
-# dependency, and given that the user is not expected to run this macro,
-# just rely on AC_PROG_CC.
-AC_DEFUN([_AM_DEPENDENCIES],
-[AC_REQUIRE([AM_SET_DEPDIR])dnl
-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
-AC_REQUIRE([AM_DEP_TRACK])dnl
-
-m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
- [$1], [CXX], [depcc="$CXX" am_compiler_list=],
- [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
- [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
- [$1], [UPC], [depcc="$UPC" am_compiler_list=],
- [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
- [depcc="$$1" am_compiler_list=])
-
-AC_CACHE_CHECK([dependency style of $depcc],
- [am_cv_$1_dependencies_compiler_type],
-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named 'D' -- because '-MD' means "put the output
- # in D".
- rm -rf conftest.dir
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
-
- am_cv_$1_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
- fi
- am__universal=false
- m4_case([$1], [CC],
- [case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac],
- [CXX],
- [case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac])
-
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
- # Solaris 10 /bin/sh.
- echo '/* dummy */' > sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
- # We check with '-c' and '-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle '-M -o', and we need to detect this. Also, some Intel
- # versions had trouble with output in subdirs.
- am__obj=sub/conftest.${OBJEXT-o}
- am__minus_obj="-o $am__obj"
- case $depmode in
- gcc)
- # This depmode causes a compiler race in universal mode.
- test "$am__universal" = false || continue
- ;;
- nosideeffect)
- # After this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested.
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- msvc7 | msvc7msys | msvisualcpp | msvcmsys)
- # This compiler won't grok '-c -o', but also, the minuso test has
- # not run yet. These depmodes are late enough in the game, and
- # so weak that their functioning should not be impacted.
- am__obj=conftest.${OBJEXT-o}
- am__minus_obj=
- ;;
- none) break ;;
- esac
- if depmode=$depmode \
- source=sub/conftest.c object=$am__obj \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_$1_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
-
- cd ..
- rm -rf conftest.dir
-else
- am_cv_$1_dependencies_compiler_type=none
-fi
-])
-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
-AM_CONDITIONAL([am__fastdep$1], [
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
-])
-
-
-# AM_SET_DEPDIR
-# -------------
-# Choose a directory name for dependency files.
-# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
-AC_DEFUN([AM_SET_DEPDIR],
-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
-])
-
-
-# AM_DEP_TRACK
-# ------------
-AC_DEFUN([AM_DEP_TRACK],
-[AC_ARG_ENABLE([dependency-tracking], [dnl
-AS_HELP_STRING(
- [--enable-dependency-tracking],
- [do not reject slow dependency extractors])
-AS_HELP_STRING(
- [--disable-dependency-tracking],
- [speeds up one-time build])])
-if test "x$enable_dependency_tracking" != xno; then
- am_depcomp="$ac_aux_dir/depcomp"
- AMDEPBACKSLASH='\'
- am__nodep='_no'
-fi
-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
-AC_SUBST([AMDEPBACKSLASH])dnl
-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
-AC_SUBST([am__nodep])dnl
-_AM_SUBST_NOTMAKE([am__nodep])dnl
-])
-
-# Generate code to set up dependency tracking. -*- Autoconf -*-
-
-# Copyright (C) 1999-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-
-# _AM_OUTPUT_DEPENDENCY_COMMANDS
-# ------------------------------
-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
-[{
- # Older Autoconf quotes --file arguments for eval, but not when files
- # are listed without --file. Let's play safe and only enable the eval
- # if we detect the quoting.
- case $CONFIG_FILES in
- *\'*) eval set x "$CONFIG_FILES" ;;
- *) set x $CONFIG_FILES ;;
- esac
- shift
- for mf
- do
- # Strip MF so we end up with the name of the file.
- mf=`echo "$mf" | sed -e 's/:.*$//'`
- # Check whether this is an Automake generated Makefile or not.
- # We used to match only the files named 'Makefile.in', but
- # some people rename them; so instead we look at the file content.
- # Grep'ing the first line is not enough: some people post-process
- # each Makefile.in and add a new line on top of each file to say so.
- # Grep'ing the whole file is not good either: AIX grep has a line
- # limit of 2048, but all sed's we know have understand at least 4000.
- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
- dirpart=`AS_DIRNAME("$mf")`
- else
- continue
- fi
- # Extract the definition of DEPDIR, am__include, and am__quote
- # from the Makefile without running 'make'.
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
- test -z "$DEPDIR" && continue
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
- test -z "$am__include" && continue
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
- # Find all dependency output files, they are included files with
- # $(DEPDIR) in their names. We invoke sed twice because it is the
- # simplest approach to changing $(DEPDIR) to its actual value in the
- # expansion.
- for file in `sed -n "
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
- # Make sure the directory exists.
- test -f "$dirpart/$file" && continue
- fdir=`AS_DIRNAME(["$file"])`
- AS_MKDIR_P([$dirpart/$fdir])
- # echo "creating $dirpart/$file"
- echo '# dummy' > "$dirpart/$file"
- done
- done
-}
-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
-
-
-# AM_OUTPUT_DEPENDENCY_COMMANDS
-# -----------------------------
-# This macro should only be invoked once -- use via AC_REQUIRE.
-#
-# This code is only required when automatic dependency tracking
-# is enabled. FIXME. This creates each '.P' file that we will
-# need in order to bootstrap the dependency handling code.
-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
-[AC_CONFIG_COMMANDS([depfiles],
- [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
-])
-
-# Do all the work for Automake. -*- Autoconf -*-
-
-# Copyright (C) 1996-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This macro actually does too much. Some checks are only needed if
-# your package does certain things. But this isn't really a big deal.
-
-dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
-m4_define([AC_PROG_CC],
-m4_defn([AC_PROG_CC])
-[_AM_PROG_CC_C_O
-])
-
-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
-# AM_INIT_AUTOMAKE([OPTIONS])
-# -----------------------------------------------
-# The call with PACKAGE and VERSION arguments is the old style
-# call (pre autoconf-2.50), which is being phased out. PACKAGE
-# and VERSION should now be passed to AC_INIT and removed from
-# the call to AM_INIT_AUTOMAKE.
-# We support both call styles for the transition. After
-# the next Automake release, Autoconf can make the AC_INIT
-# arguments mandatory, and then we can depend on a new Autoconf
-# release and drop the old call support.
-AC_DEFUN([AM_INIT_AUTOMAKE],
-[AC_PREREQ([2.65])dnl
-dnl Autoconf wants to disallow AM_ names. We explicitly allow
-dnl the ones we care about.
-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
-AC_REQUIRE([AC_PROG_INSTALL])dnl
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
- # is not polluted with repeated "-I."
- AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
- # test to see if srcdir already configured
- if test -f $srcdir/config.status; then
- AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
- fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
- if (cygpath --version) >/dev/null 2>/dev/null; then
- CYGPATH_W='cygpath -w'
- else
- CYGPATH_W=echo
- fi
-fi
-AC_SUBST([CYGPATH_W])
-
-# Define the identity of the package.
-dnl Distinguish between old-style and new-style calls.
-m4_ifval([$2],
-[AC_DIAGNOSE([obsolete],
- [$0: two- and three-arguments forms are deprecated.])
-m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
- AC_SUBST([PACKAGE], [$1])dnl
- AC_SUBST([VERSION], [$2])],
-[_AM_SET_OPTIONS([$1])dnl
-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
-m4_if(
- m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
- [ok:ok],,
- [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
-
-_AM_IF_OPTION([no-define],,
-[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
- AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
-
-# Some tools Automake needs.
-AC_REQUIRE([AM_SANITY_CHECK])dnl
-AC_REQUIRE([AC_ARG_PROGRAM])dnl
-AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
-AM_MISSING_PROG([AUTOCONF], [autoconf])
-AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
-AM_MISSING_PROG([AUTOHEADER], [autoheader])
-AM_MISSING_PROG([MAKEINFO], [makeinfo])
-AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
-AC_REQUIRE([AC_PROG_MKDIR_P])dnl
-# For better backward compatibility. To be removed once Automake 1.9.x
-# dies out for good. For more background, see:
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
-AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
-# We need awk for the "check" target. The system "awk" is bad on
-# some platforms.
-AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
- [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
- [_AM_PROG_TAR([v7])])])
-_AM_IF_OPTION([no-dependencies],,
-[AC_PROVIDE_IFELSE([AC_PROG_CC],
- [_AM_DEPENDENCIES([CC])],
- [m4_define([AC_PROG_CC],
- m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_CXX],
- [_AM_DEPENDENCIES([CXX])],
- [m4_define([AC_PROG_CXX],
- m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_OBJC],
- [_AM_DEPENDENCIES([OBJC])],
- [m4_define([AC_PROG_OBJC],
- m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
- [_AM_DEPENDENCIES([OBJCXX])],
- [m4_define([AC_PROG_OBJCXX],
- m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
-])
-AC_REQUIRE([AM_SILENT_RULES])dnl
-dnl The testsuite driver may need to know about EXEEXT, so add the
-dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
-dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
-AC_CONFIG_COMMANDS_PRE(dnl
-[m4_provide_if([_AM_COMPILER_EXEEXT],
- [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
-
-# POSIX will say in a future version that running "rm -f" with no argument
-# is OK; and we want to be able to make that assumption in our Makefile
-# recipes. So use an aggressive probe to check that the usage we want is
-# actually supported "in the wild" to an acceptable degree.
-# See automake bug#10828.
-# To make any issue more visible, cause the running configure to be aborted
-# by default if the 'rm' program in use doesn't match our expectations; the
-# user can still override this though.
-if rm -f && rm -fr && rm -rf; then : OK; else
- cat >&2 <<'END'
-Oops!
-
-Your 'rm' program seems unable to run without file operands specified
-on the command line, even when the '-f' option is present. This is contrary
-to the behaviour of most rm programs out there, and not conforming with
-the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
-
-Please tell bug-automake@gnu.org about your system, including the value
-of your $PATH and any error possibly output before this message. This
-can help us improve future automake versions.
-
-END
- if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
- echo 'Configuration will proceed anyway, since you have set the' >&2
- echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
- echo >&2
- else
- cat >&2 <<'END'
-Aborting the configuration process, to ensure you take notice of the issue.
-
-You can download and install GNU coreutils to get an 'rm' implementation
-that behaves properly: <http://www.gnu.org/software/coreutils/>.
-
-If you want to complete the configuration process using your problematic
-'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
-to "yes", and re-run configure.
-
-END
- AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
- fi
-fi])
-
-dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
-dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
-dnl mangled by Autoconf and run in a shell conditional statement.
-m4_define([_AC_COMPILER_EXEEXT],
-m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
-
-# When config.status generates a header, we must update the stamp-h file.
-# This file resides in the same directory as the config header
-# that is generated. The stamp files are numbered to have different names.
-
-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
-# loop where config.status creates the headers, so we can generate
-# our stamp files there.
-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
-[# Compute $1's index in $config_headers.
-_am_arg=$1
-_am_stamp_count=1
-for _am_header in $config_headers :; do
- case $_am_header in
- $_am_arg | $_am_arg:* )
- break ;;
- * )
- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
- esac
-done
-echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
-
-# Copyright (C) 2001-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_INSTALL_SH
-# ------------------
-# Define $install_sh.
-AC_DEFUN([AM_PROG_INSTALL_SH],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-if test x"${install_sh}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
- *)
- install_sh="\${SHELL} $am_aux_dir/install-sh"
- esac
-fi
-AC_SUBST([install_sh])])
-
-# Copyright (C) 2003-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# Check whether the underlying file-system supports filenames
-# with a leading dot. For instance MS-DOS doesn't.
-AC_DEFUN([AM_SET_LEADING_DOT],
-[rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
- am__leading_dot=.
-else
- am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-AC_SUBST([am__leading_dot])])
-
-# Copyright (C) 1998-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_LEX
-# -----------
-# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
-# "missing" invocation, for better error output.
-AC_DEFUN([AM_PROG_LEX],
-[AC_PREREQ([2.50])dnl
-AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
-AC_REQUIRE([AC_PROG_LEX])dnl
-if test "$LEX" = :; then
- LEX=${am_missing_run}flex
-fi])
-
-# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
-# From Jim Meyering
-
-# Copyright (C) 1996-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_MAINTAINER_MODE([DEFAULT-MODE])
-# ----------------------------------
-# Control maintainer-specific portions of Makefiles.
-# Default is to disable them, unless 'enable' is passed literally.
-# For symmetry, 'disable' may be passed as well. Anyway, the user
-# can override the default with the --enable/--disable switch.
-AC_DEFUN([AM_MAINTAINER_MODE],
-[m4_case(m4_default([$1], [disable]),
- [enable], [m4_define([am_maintainer_other], [disable])],
- [disable], [m4_define([am_maintainer_other], [enable])],
- [m4_define([am_maintainer_other], [enable])
- m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
-AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
- dnl maintainer-mode's default is 'disable' unless 'enable' is passed
- AC_ARG_ENABLE([maintainer-mode],
- [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
- am_maintainer_other[ make rules and dependencies not useful
- (and sometimes confusing) to the casual installer])],
- [USE_MAINTAINER_MODE=$enableval],
- [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
- AC_MSG_RESULT([$USE_MAINTAINER_MODE])
- AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
- MAINT=$MAINTAINER_MODE_TRUE
- AC_SUBST([MAINT])dnl
-]
-)
-
-# Check to see how 'make' treats includes. -*- Autoconf -*-
-
-# Copyright (C) 2001-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_MAKE_INCLUDE()
-# -----------------
-# Check to see how make treats includes.
-AC_DEFUN([AM_MAKE_INCLUDE],
-[am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
- @echo this is the am__doit target
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-AC_MSG_CHECKING([for style of include used by $am_make])
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# Ignore all kinds of additional output from 'make'.
-case `$am_make -s -f confmf 2> /dev/null` in #(
-*the\ am__doit\ target*)
- am__include=include
- am__quote=
- _am_result=GNU
- ;;
-esac
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
- echo '.include "confinc"' > confmf
- case `$am_make -s -f confmf 2> /dev/null` in #(
- *the\ am__doit\ target*)
- am__include=.include
- am__quote="\""
- _am_result=BSD
- ;;
- esac
-fi
-AC_SUBST([am__include])
-AC_SUBST([am__quote])
-AC_MSG_RESULT([$_am_result])
-rm -f confinc confmf
-])
-
-# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
-
-# Copyright (C) 1997-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_MISSING_PROG(NAME, PROGRAM)
-# ------------------------------
-AC_DEFUN([AM_MISSING_PROG],
-[AC_REQUIRE([AM_MISSING_HAS_RUN])
-$1=${$1-"${am_missing_run}$2"}
-AC_SUBST($1)])
-
-# AM_MISSING_HAS_RUN
-# ------------------
-# Define MISSING if not defined so far and test if it is modern enough.
-# If it is, set am_missing_run to use it, otherwise, to nothing.
-AC_DEFUN([AM_MISSING_HAS_RUN],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([missing])dnl
-if test x"${MISSING+set}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
- *)
- MISSING="\${SHELL} $am_aux_dir/missing" ;;
- esac
-fi
-# Use eval to expand $SHELL
-if eval "$MISSING --is-lightweight"; then
- am_missing_run="$MISSING "
-else
- am_missing_run=
- AC_MSG_WARN(['missing' script is too old or missing])
-fi
-])
-
-# Helper functions for option handling. -*- Autoconf -*-
-
-# Copyright (C) 2001-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_MANGLE_OPTION(NAME)
-# -----------------------
-AC_DEFUN([_AM_MANGLE_OPTION],
-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
-
-# _AM_SET_OPTION(NAME)
-# --------------------
-# Set option NAME. Presently that only means defining a flag for this option.
-AC_DEFUN([_AM_SET_OPTION],
-[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
-
-# _AM_SET_OPTIONS(OPTIONS)
-# ------------------------
-# OPTIONS is a space-separated list of Automake options.
-AC_DEFUN([_AM_SET_OPTIONS],
-[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
-
-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
-# -------------------------------------------
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
-AC_DEFUN([_AM_IF_OPTION],
-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
-
-# Copyright (C) 1999-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_PROG_CC_C_O
-# ---------------
-# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
-# to automatically call this.
-AC_DEFUN([_AM_PROG_CC_C_O],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-AC_REQUIRE_AUX_FILE([compile])dnl
-AC_LANG_PUSH([C])dnl
-AC_CACHE_CHECK(
- [whether $CC understands -c and -o together],
- [am_cv_prog_cc_c_o],
- [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
- # Make sure it works both with $CC and with simple cc.
- # Following AC_PROG_CC_C_O, we do the test twice because some
- # compilers refuse to overwrite an existing .o file with -o,
- # though they will create one.
- am_cv_prog_cc_c_o=yes
- for am_i in 1 2; do
- if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
- && test -f conftest2.$ac_objext; then
- : OK
- else
- am_cv_prog_cc_c_o=no
- break
- fi
- done
- rm -f core conftest*
- unset am_i])
-if test "$am_cv_prog_cc_c_o" != yes; then
- # Losing compiler, so override with the script.
- # FIXME: It is wrong to rewrite CC.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__CC in this case,
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
- CC="$am_aux_dir/compile $CC"
-fi
-AC_LANG_POP([C])])
-
-# For backward compatibility.
-AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
-
-# Copyright (C) 2001-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_RUN_LOG(COMMAND)
-# -------------------
-# Run COMMAND, save the exit status in ac_status, and log it.
-# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
-AC_DEFUN([AM_RUN_LOG],
-[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
- ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- (exit $ac_status); }])
-
-# Check to make sure that the build environment is sane. -*- Autoconf -*-
-
-# Copyright (C) 1996-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_SANITY_CHECK
-# ---------------
-AC_DEFUN([AM_SANITY_CHECK],
-[AC_MSG_CHECKING([whether build environment is sane])
-# Reject unsafe characters in $srcdir or the absolute working directory
-# name. Accept space and tab only in the latter.
-am_lf='
-'
-case `pwd` in
- *[[\\\"\#\$\&\'\`$am_lf]]*)
- AC_MSG_ERROR([unsafe absolute working directory name]);;
-esac
-case $srcdir in
- *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
- AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
-esac
-
-# Do 'set' in a subshell so we don't clobber the current shell's
-# arguments. Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
- am_has_slept=no
- for am_try in 1 2; do
- echo "timestamp, slept: $am_has_slept" > conftest.file
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
- if test "$[*]" = "X"; then
- # -L didn't work.
- set X `ls -t "$srcdir/configure" conftest.file`
- fi
- if test "$[*]" != "X $srcdir/configure conftest.file" \
- && test "$[*]" != "X conftest.file $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
- alias in your environment])
- fi
- if test "$[2]" = conftest.file || test $am_try -eq 2; then
- break
- fi
- # Just in case.
- sleep 1
- am_has_slept=yes
- done
- test "$[2]" = conftest.file
- )
-then
- # Ok.
- :
-else
- AC_MSG_ERROR([newly created file is older than distributed files!
-Check your system clock])
-fi
-AC_MSG_RESULT([yes])
-# If we didn't sleep, we still need to ensure time stamps of config.status and
-# generated files are strictly newer.
-am_sleep_pid=
-if grep 'slept: no' conftest.file >/dev/null 2>&1; then
- ( sleep 1 ) &
- am_sleep_pid=$!
-fi
-AC_CONFIG_COMMANDS_PRE(
- [AC_MSG_CHECKING([that generated files are newer than configure])
- if test -n "$am_sleep_pid"; then
- # Hide warnings about reused PIDs.
- wait $am_sleep_pid 2>/dev/null
- fi
- AC_MSG_RESULT([done])])
-rm -f conftest.file
-])
-
-# Copyright (C) 2009-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_SILENT_RULES([DEFAULT])
-# --------------------------
-# Enable less verbose build rules; with the default set to DEFAULT
-# ("yes" being less verbose, "no" or empty being verbose).
-AC_DEFUN([AM_SILENT_RULES],
-[AC_ARG_ENABLE([silent-rules], [dnl
-AS_HELP_STRING(
- [--enable-silent-rules],
- [less verbose build output (undo: "make V=1")])
-AS_HELP_STRING(
- [--disable-silent-rules],
- [verbose build output (undo: "make V=0")])dnl
-])
-case $enable_silent_rules in @%:@ (((
- yes) AM_DEFAULT_VERBOSITY=0;;
- no) AM_DEFAULT_VERBOSITY=1;;
- *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
-esac
-dnl
-dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
-dnl do not support nested variable expansions.
-dnl See automake bug#9928 and bug#10237.
-am_make=${MAKE-make}
-AC_CACHE_CHECK([whether $am_make supports nested variables],
- [am_cv_make_support_nested_variables],
- [if AS_ECHO([['TRUE=$(BAR$(V))
-BAR0=false
-BAR1=true
-V=1
-am__doit:
- @$(TRUE)
-.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
- am_cv_make_support_nested_variables=yes
-else
- am_cv_make_support_nested_variables=no
-fi])
-if test $am_cv_make_support_nested_variables = yes; then
- dnl Using '$V' instead of '$(V)' breaks IRIX make.
- AM_V='$(V)'
- AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
-else
- AM_V=$AM_DEFAULT_VERBOSITY
- AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
-fi
-AC_SUBST([AM_V])dnl
-AM_SUBST_NOTMAKE([AM_V])dnl
-AC_SUBST([AM_DEFAULT_V])dnl
-AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
-AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
-AM_BACKSLASH='\'
-AC_SUBST([AM_BACKSLASH])dnl
-_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
-])
-
-# Copyright (C) 2001-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_INSTALL_STRIP
-# ---------------------
-# One issue with vendor 'install' (even GNU) is that you can't
-# specify the program used to strip binaries. This is especially
-# annoying in cross-compiling environments, where the build's strip
-# is unlikely to handle the host's binaries.
-# Fortunately install-sh will honor a STRIPPROG variable, so we
-# always use install-sh in "make install-strip", and initialize
-# STRIPPROG with the value of the STRIP variable (set by the user).
-AC_DEFUN([AM_PROG_INSTALL_STRIP],
-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-# Installed binaries are usually stripped using 'strip' when the user
-# run "make install-strip". However 'strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the 'STRIP' environment variable to overrule this program.
-dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
-if test "$cross_compiling" != no; then
- AC_CHECK_TOOL([STRIP], [strip], :)
-fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-AC_SUBST([INSTALL_STRIP_PROGRAM])])
-
-# Copyright (C) 2006-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_SUBST_NOTMAKE(VARIABLE)
-# ---------------------------
-# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
-# This macro is traced by Automake.
-AC_DEFUN([_AM_SUBST_NOTMAKE])
-
-# AM_SUBST_NOTMAKE(VARIABLE)
-# --------------------------
-# Public sister of _AM_SUBST_NOTMAKE.
-AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
-
-# Check how to create a tarball. -*- Autoconf -*-
-
-# Copyright (C) 2004-2013 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# _AM_PROG_TAR(FORMAT)
-# --------------------
-# Check how to create a tarball in format FORMAT.
-# FORMAT should be one of 'v7', 'ustar', or 'pax'.
-#
-# Substitute a variable $(am__tar) that is a command
-# writing to stdout a FORMAT-tarball containing the directory
-# $tardir.
-# tardir=directory && $(am__tar) > result.tar
-#
-# Substitute a variable $(am__untar) that extract such
-# a tarball read from stdin.
-# $(am__untar) < result.tar
-#
-AC_DEFUN([_AM_PROG_TAR],
-[# Always define AMTAR for backward compatibility. Yes, it's still used
-# in the wild :-( We should find a proper way to deprecate it ...
-AC_SUBST([AMTAR], ['$${TAR-tar}'])
-
-# We'll loop over all known methods to create a tar archive until one works.
-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
-
-m4_if([$1], [v7],
- [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
-
- [m4_case([$1],
- [ustar],
- [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
- # There is notably a 21 bits limit for the UID and the GID. In fact,
- # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
- # and bug#13588).
- am_max_uid=2097151 # 2^21 - 1
- am_max_gid=$am_max_uid
- # The $UID and $GID variables are not portable, so we need to resort
- # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
- # below are definitely unexpected, so allow the users to see them
- # (that is, avoid stderr redirection).
- am_uid=`id -u || echo unknown`
- am_gid=`id -g || echo unknown`
- AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
- if test $am_uid -le $am_max_uid; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- _am_tools=none
- fi
- AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
- if test $am_gid -le $am_max_gid; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- _am_tools=none
- fi],
-
- [pax],
- [],
-
- [m4_fatal([Unknown tar format])])
-
- AC_MSG_CHECKING([how to create a $1 tar archive])
-
- # Go ahead even if we have the value already cached. We do so because we
- # need to set the values for the 'am__tar' and 'am__untar' variables.
- _am_tools=${am_cv_prog_tar_$1-$_am_tools}
-
- for _am_tool in $_am_tools; do
- case $_am_tool in
- gnutar)
- for _am_tar in tar gnutar gtar; do
- AM_RUN_LOG([$_am_tar --version]) && break
- done
- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
- am__untar="$_am_tar -xf -"
- ;;
- plaintar)
- # Must skip GNU tar: if it does not support --format= it doesn't create
- # ustar tarball either.
- (tar --version) >/dev/null 2>&1 && continue
- am__tar='tar chf - "$$tardir"'
- am__tar_='tar chf - "$tardir"'
- am__untar='tar xf -'
- ;;
- pax)
- am__tar='pax -L -x $1 -w "$$tardir"'
- am__tar_='pax -L -x $1 -w "$tardir"'
- am__untar='pax -r'
- ;;
- cpio)
- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
- am__untar='cpio -i -H $1 -d'
- ;;
- none)
- am__tar=false
- am__tar_=false
- am__untar=false
- ;;
- esac
-
- # If the value was cached, stop now. We just wanted to have am__tar
- # and am__untar set.
- test -n "${am_cv_prog_tar_$1}" && break
-
- # tar/untar a dummy directory, and stop if the command works.
- rm -rf conftest.dir
- mkdir conftest.dir
- echo GrepMe > conftest.dir/file
- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
- rm -rf conftest.dir
- if test -s conftest.tar; then
- AM_RUN_LOG([$am__untar <conftest.tar])
- AM_RUN_LOG([cat conftest.dir/file])
- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
- fi
- done
- rm -rf conftest.dir
-
- AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
- AC_MSG_RESULT([$am_cv_prog_tar_$1])])
-
-AC_SUBST([am__tar])
-AC_SUBST([am__untar])
-]) # _AM_PROG_TAR
-
-m4_include([m4/biarch.m4])
-m4_include([m4/nls.m4])
-m4_include([m4/po.m4])
-m4_include([m4/progtest.m4])
-m4_include([m4/zip.m4])
diff --git a/src/src/addr2line.c b/src/addr2line.c
index de802941..de802941 100644
--- a/src/src/addr2line.c
+++ b/src/addr2line.c
diff --git a/src/src/ar.c b/src/ar.c
index f51f0efd..f51f0efd 100644
--- a/src/src/ar.c
+++ b/src/ar.c
diff --git a/src/src/arlib-argp.c b/src/arlib-argp.c
index 1bdd8d0b..1bdd8d0b 100644
--- a/src/src/arlib-argp.c
+++ b/src/arlib-argp.c
diff --git a/src/src/arlib.c b/src/arlib.c
index 43a9145b..43a9145b 100644
--- a/src/src/arlib.c
+++ b/src/arlib.c
diff --git a/src/src/arlib.h b/src/arlib.h
index e117166e..e117166e 100644
--- a/src/src/arlib.h
+++ b/src/arlib.h
diff --git a/src/src/arlib2.c b/src/arlib2.c
index 7998fc6c..7998fc6c 100644
--- a/src/src/arlib2.c
+++ b/src/arlib2.c
diff --git a/src/backends/ChangeLog b/src/backends/ChangeLog
deleted file mode 100644
index e800d16b..00000000
--- a/src/backends/ChangeLog
+++ /dev/null
@@ -1,790 +0,0 @@
-2014-12-18 Ulrich Drepper <drepper@gmail.com>
-
- * Makefile.am: Suppress output of textrel_check command.
-
-2014-11-22 Mark Wielaard <mjw@redhat.com>
-
- * ppc64_symbol.c (ppc64_bss_plt_p): Remove ehdr argument.
- * ppc_symbol.c (find_dyn_got): Likewise. Use elf_getphdrnum.
- (ppc_check_special_symbol): Call find_dyn_got without ehdr.
- (ppc_bss_plt_p): Remove ehdr argument.
-
-2014-11-17 Mark Wielaard <mjw@redhat.com>
-
- * ppc64_init.c (ppc64_init): Check section name is not NULL.
-
-2014-10-06 Mark Wielaard <mjw@redhat.com>
-
- * libebl_CPU.h (dwarf_peel_type): Removed.
- (dwarf_peeled_die_type): Use libdw dwarf_peel_type.
-
-2014-07-18 Kyle McMartin <kyle@redhat.com>
- Mark Wielaard <mjw@redhat.com>
-
- * aarch64_initreg.c: Check HAVE_SYS_USER_REGS.
- (aarch64_set_initial_registers_tid): Use user_regs_struct and
- user_fpsimd_struct.
- * arm_initreg.c: Check HAVE_SYS_USER_REGS.
- (arm_set_initial_registers_tid): Use user_regs_struct in compat mode.
-
-2014-07-04 Menanteau Guy <menantea@linux.vnet.ibm.com>
- Mark Wielaard <mjw@redhat.com>
-
- * ppc64_init.c (ppc64_init): Hook check_st_other_bits.
- * ppc64_reloc.def: TLSGD, TLSLD, TOCSAVE, ADDR16_HIGH, ADDR16_HIGHA,
- TPREL16_HIGH, TPREL16_HIGHA, DTPREL16_HIGH, DTPREL16_HIGHA, JMP_IREL,
- IRELATIVE, REL16, REL16_LO, REL16_HI and REL16_HA.
- * ppc64_symbol.c (ppc64_dynamic_tag_name): Recognize DT_PPC64_OPT.
- (ppc64_dynamic_tag_check): Likewise.
- (ppc64_check_st_other_bits): New function.
-
-2014-07-04 Mark Wielaard <mjw@redhat.com>
-
- * aarch64_retval.c (aarch64_return_value_location): Handle
- DW_ATE_boolean.
-
-2014-06-18 Mark Wielaard <mjw@redhat.com>
-
- * libebl_CPU.h (dwarf_peel_type): Remove DW_TAG_mutable_type
- handling.
-
-2014-06-17 Mark Wielaard <mjw@redhat.com>
-
- * arm_init.c (arm_init): Set func_addr_mask.
-
-2014-06-20 Petr Machata <pmachata@redhat.com>
-
- * alpha_retval.c (alpha_return_value_location): Call
- dwarf_peeled_die_type instead of inlining equivalent code.
- * arm_retval.c (arm_return_value_location): Likewise.
- * i386_retval.c (i386_return_value_location): Likewise.
- * ia64_retval.c (ia64_return_value_location): Likewise.
- * ppc64_retval.c (ppc64_return_value_location): Likewise.
- * ppc_retval.c (ppc_return_value_location): Likewise.
- * s390_retval.c (s390_return_value_location): Likewise.
- * sh_retval.c (sh_return_value_location): Likewise.
- * sparc_retval.c (sparc_return_value_location): Likewise.
- * tilegx_retval.c (tilegx_return_value_location): Likewise.
- * x86_64_retval.c (x86_64_return_value_location): Likewise.
-
-2014-05-19 Mark Wielaard <mjw@redhat.com>
-
- * arm_init.c (arm_init): Hook check_reloc_target_type.
- * arm_symbol.c (arm_check_reloc_target_type): New function.
- * ia64_init.c (ia64_init): Hook check_reloc_target_type.
- * ia64_symbol.c (ia64_check_reloc_target_type): New function.
-
-2014-04-22 Kurt Roeckx <kurt@roeckx.be>
-
- * i386_initreg.c: Make Linux only.
- * x86_64_initreg.c: Make Linux only.
-
-2014-04-13 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Remove libelf and libdw definitions when MUDFLAP
- is defined. Remove libmudflap from LINK line.
-
-2014-04-09 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (aarch64_SRCS): Add aarch64_initreg.c.
- * aarch64_corenote.c (prstatus_regs): Mark pc_register.
- * aarch64_init.c: Assign frame_nregs. Hook set_initial_registers_tid.
- * aarch64_initreg: New file.
-
-2014-03-28 Jean Pihet <jean.pihet@linaro.org>
-
- * arm_initreg.c (arm_set_initial_registers_tid): Handle compat mode.
- ARM compatible code running on AARCH64.
-
-2014-03-19 Mark Wielaard <mjw@redhat.com>
-
- * aarch64_reloc.def: AARCH64_ABS32 and AARCH64_ABS64 are also valid
- in ET_REL.
-
-2014-01-30 Petr Machata <pmachata@redhat.com>
-
- * aarch64_regs.c (aarch64_register_info.regtype): Make this
- variadic printf-like function. Call one vsnprintf instead of two
- snprintf's.
- (regtyper, regtypen): Drop.
- (aarch64_register_info): Adjust callers.
-
-2014-01-26 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (arm_SRCS): Add arm_initreg.c.
- * arm_init.c (arm_init): Define frame_nregs and hook
- set_initial_registers_tid.
- * arm_initreg.c: New file.
-
-2014-01-25 Mark Wielaard <mjw@redhat.com>
-
- * arm_cfi.c (arm_abi_cfi): Restore SP (r13) from CFA.
-
-2014-01-24 Mark Wielaard <mjw@redhat.com>
-
- * arm_reloc.def: Update list.
-
-2014-01-22 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (aarch64_regs_no_Wformat): Removed.
- * aarch64_regs.c (regtype): Add bool nr argument. snprintf arg
- when nr is true.
- (regtyper): New function.
- (regtypen): Likewise.
- (aarch64_register_info): Call either regtyper or regtypen not
- regtype directly.
-
-2014-01-14 Mark Wielaard <mjw@redhat.com>
-
- * aarch64_symbol.c (aarch64_check_special_symbol): Check shdr is
- not NULL before usage.
-
-2014-01-04 Mark Wielaard <mjw@redhat.com>
-
- * ppc64_symbol.c (ppc64_machine_flag_check): New function.
- * ppc64_init.c (ppc64_init): Hook machine_flag_check.
-
-2014-01-03 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (aarch64_SRCS): Add aarch64_cfi.c.
- * aarch64_cfi.c: New file.
- * aarch64_init.c (aarch64_init): Hook abi_cfi.
- * aarch64_regs.c (aarch64_register_info): Set *prefix to "".
-
-2013-12-19 Mark Wielaard <mjw@redhat.com>
-
- * aarch64_init.c (aarch64_init): Hook check_special_symbol.
- * aarch64_symbol.c (aarch64_check_special_symbol): New function.
-
-2013-12-18 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (ppc64_SRCS): Add ppc64_resolve_sym.c.
- * ppc64_resolve_sym.c: New file.
- * ppc64_init.c: Hook resolve_sym_value and find function descriptor
- table.
-
-2013-12-18 Mark Wielaard <mjw@redhat.com>
-
- * s390_initreg.c (s390_set_initial_registers_tid): Use union
- to avoid type-punning when assigning a double to a Dwarf_Word.
-
-2013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- unwinder: s390 and s390x
- * Makefile.am (s390_SRCS): Add s390_initreg.c and s390_unwind.c.
- * s390_corenote.c (prstatus_regs): Set PC_REGISTER. Reindent all the
- entries.
- * s390_init.c (s390_init): Initialize frame_nregs,
- set_initial_registers_tid, normalize_pc and unwind.
- * s390_initreg.c: New file.
- * s390_unwind.c: New file.
-
-2013-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- unwinder: ppc and ppc64
- * Makefile.am (ppc_SRCS, ppc64_SRCS): Add ppc_initreg.c.
- * ppc64_init.c (ppc64_init): Initialize also frame_nregs,
- set_initial_registers_tid and dwarf_to_regno.
- * ppc_corenote.c (PRSTATUS_REGSET_ITEMS) <nip>: Set PC_REGISTER.
- * ppc_init.c (ppc64_init): Initialize also frame_nregs,
- set_initial_registers_tid and dwarf_to_regno.
- * ppc_initreg.c: New file.
-
-2013-11-25 Petr Machata <pmachata@redhat.com>
-
- * Makefile.am (modules): Add aarch64.
- (libebl_pic): Add libebl_aarch64_pic.a.
- (aarch64_SRCS): New variable.
- (libebl_aarch64_pic_a_SOURCES): Likewise.
- (am_libebl_aarch64_pic_a_OBJECTS): Likewise.
- (aarch64_regs_no_Wformat): Likewise.
- * aarch64_corenote.c, aarch64_init.c: New files.
- * aarch64_regs.c, aarch64_reloc.def: Likewise.
- * aarch64_retval.c, aarch64_symbol.c: Likewise.
- * libebl_CPU.h (dwarf_peel_type): New function.
- (dwarf_peeled_die_type): Likewise.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
- Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (i386_SRCS): Add i386_initreg.c.
- (x86_64_SRCS): Add x86_64_initreg.c.
- * i386_initreg.c: New file.
- * i386_init.c (i386_init): Initialize frame_nregs and
- set_initial_registers_tid.
- * x86_64_initreg.c: New file.
- * x86_64_init.c (x86_64_init): Initialize frame_nregs and
- set_initial_registers_tid.
-
-2013-10-06 Mark Wielaard <mjw@redhat.com>
-
- * ppc_cfi.c (ppc_abi_cfi): Use DW_CFA_val_offset for reg1, not
- DW_CFA_val_expression.
-
-2013-08-29 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (arm_SRCS): Add arm_cfi.c.
- * arm_cfi.c: New file.
- * arm_init.c (arm_init): Initialize abi_cfi.
-
-2013-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * Makefile.am (ppc_SRCS, ppc64_SRCS): Add ppc_cfi.c.
- (s390_SRCS): Add s390_cfi.c.
- * ppc64_init.c (ppc64_init): Initialize abi_cfi.
- * ppc_cfi.c: New file.
- * ppc_init.c (ppc_init): Initialize abi_cfi.
- * s390_cfi.c: New file.
- * s390_init.c (s390_init): Initialize abi_cfi.
-
-2013-08-28 Mark Wielaard <mjw@redhat.com>
-
- * arm_regs.c (arm_register_info): Set *prefix to "".
- * ppc_regs.c (ppc_register_info): Likewise.
- * sh_regs.c (sh_register_info): Likewise.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2013-02-06 Mark Wielaard <mjw@redhat.com>
-
- * libebl_CPU.h (DWARF_TAG_OR_RETURN): New macro.
- * backends/alpha_retval.c (alpha_return_value_location): Use new
- DWARF_TAG_OR_RETURN macro instead of dwarf_tag ().
- * backends/arm_retval.c (arm_return_value_location): Likewise.
- * backends/i386_retval.c (i386_return_value_location): Likewise.
- * backends/ia64_retval.c (hfa_type): Likewise.
- (ia64_return_value_location): Likewise.
- * backends/ppc64_retval.c (ppc64_return_value_location): Likewise.
- * backends/ppc_retval.c (ppc_return_value_location): Likewise.
- * backends/s390_retval.c (s390_return_value_location): Likewise.
- * backends/sh_retval.c (sh_return_value_location): Likewise.
- * backends/sparc_retval.c (sparc_return_value_location): Likewise.
- * backends/tilegx_retval.c (tilegx_return_value_location): Likewise.
- * backends/x86_64_retval.c (x86_64_return_value_location): Likewise.
-
-2013-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
- Roland McGrath <roland@hack.frob.com>
-
- * Makefile.am (s390_SRCS): Add s390_corenote.c and s390x_corenote.c.
- * linux-core-note.c (ALIGN_PR_REG): New definitions.
- (struct EBLHOOK(prstatus)): Change field pr_reg to anonymous struct with
- ALIGN_PR_REG.
- (EXTRA_ITEMS): New macro.
- * s390_corenote.c: New file.
- * s390_init.c (s390x_core_note): New declaration.
- (s390_init): Install s390x_core_note and s390_core_note.
- * s390x_corenote.c: New file.
-
-2013-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * arm_corenote.c (vfp_items): Remove zero COUNT initializer.
-
-2012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * linux-core-note.c (prstatus_items): Rename groups of sigpend and
- sighold to signal2 and signal3.
-
-2012-09-24 Petr Machata <pmachata@redhat.com>
-
- * arm_corenote.c (vfp_items, vfp_regs): New const variables.
- (EXTRA_NOTES): Use it for NT_ARM_VFP.
- * linux-core-note.c (EXTRA_REGSET_ITEMS): New macro.
-
-2012-09-17 Petr Machata <pmachata@redhat.com>
-
- * arm_corenote.c (FPREGSET_SIZE): Change to 116.
-
-2012-08-22 Jeff Kenton <jkenton@tilera.com>
-
- * Makefile.am (modules): Add tilegx.
- (libebl_pic): Add libebl_tilegx_pic.a.
- (tilegx_SRCS): New variable.
- (libebl_tilegx_pic_a_SOURCES): Likewise.
- (am_libebl_tilegx_pic_a_OBJECTS): Likewise.
- * tilegx_corenote.c: New file.
- * tilegx_regs.c: New file.
- * tilegx_reloc.def: New file.
- * tilegx_init.c: New file.
- * tilegx_retval.c: New file.
- * tilegx_symbol.c: New file.
-
-2011-03-09 Mark Wielaard <mjw@redhat.com>
-
- * alpha_init.c (alpha_init): Initialize check_st_other_bits hook.
- * alpha_symbol.c (alpha_check_st_other_bits): New function.
-
-2011-03-09 Roland McGrath <roland@redhat.com>
-
- * alpha_symbol.c (alpha_check_special_symbol): New function.
- * alpha_init.c (alpha_init): Initialize hook.
-
-2010-11-08 Roland McGrath <roland@redhat.com>
-
- * i386_retval.c (loc_intreg): Typo fix.
- Reported by Thorsten Glaser <tg@mirbsd.de>.
-
-2010-04-10 Matt Fleming <matt@console-pimps.org>
-
- * sh_corenote.c: New file.
- * sh_regs.c: New file.
- * sh_retval.c: New file.
- * sh_symbol.c (sh_machine_flag_check): New function.
- * Makefile.am (sh_SRCS): Add new files.
- * sh_init.c (sh_init): Add initializers.
-
-2010-04-07 Roland McGrath <roland@redhat.com>
-
- * arm_reloc.def: Accept PC24 and ABS32 in EXEC|DYN too.
-
-2010-03-04 Ulrich Drepper <drepper@redhat.com>
-
- * x86_64_reloc.def: Add entries for R_X86_64_SIZE32 and
- R_X86_64_SIZE64.
-
-2010-02-18 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (libebl_%.so): Use multi-target pattern rule instead of
- intermediate dependency file for libebl_%.map, working around apparent
- make -j timing-sensitive bugs.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
-2010-01-05 Roland McGrath <roland@redhat.com>
-
- * arm_retval.c (arm_return_value_location): Use dwarf_aggregate_size.
- * ia64_retval.c (ia64_return_value_location): Likewise.
- * ppc_retval.c (ppc_return_value_location): Likewise.
- * ppc64_retval.c (ppc64_return_value_location): Likewise.
- * sparc_retval.c (sparc_return_value_location): Likewise.
-
- * ppc64_retval.c (ppc64_return_value_location):
- Use vr2 for DW_TAG_array_type with DW_AT_GNU_vector.
- * ppc_retval.c (ppc_return_value_location): Likewise.
-
-2010-01-04 Roland McGrath <roland@redhat.com>
-
- * linux-core-note.c (vmcoreinfo_items): New static const variable.
- (EBLHOOK(core_note)): Update arguments for new protocol.
- Validate the name as "CORE" or "LINUX" for known n_type cases.
- Handle name "VMCOREINFO" n_type=0 with vmcoreinfo_items.
- * i386_corenote.c (EXTRA_NOTES): Update parameter usage.
- * x86_corenote.c (EXTRA_NOTES_IOPERM): Likewise.
-
-2009-09-10 Mark Wielaard <mjw@redhat.com>
-
- * sparc_retval.c: Fix license header.
-
-2009-08-07 Roland McGrath <roland@redhat.com>
-
- * x86_64_reloc.def: Add PC64, GOTOFF64, GOTPC32, GOTPC32_TLSDESC,
- TLSDESC_CALL, TLSDESC.
-
-2009-07-08 Roland McGrath <roland@redhat.com>
-
- * x86_64_cfi.c (x86_64_abi_cfi): New file.
- * Makefile.am (x86_64_SRCS): Add it.
- * x86_64_init.c (x86_64_init): Add initializer.
-
- * i386_cfi.c (i386_abi_cfi): New file.
- * Makefile.am (i386_SRCS): Add it.
- * i386_init.c (i386_init): Initialize abi_cfi hook.
-
-2009-06-01 Ulrich Drepper <drepper@redhat.com>
-
- * i386_reloc.def: Add IRELATIVE entry.
- * x86_64_reloc.def: Likewise.
-
-2009-04-16 Roland McGrath <roland@redhat.com>
-
- * arm_regs.c (arm_register_info): Handle VFP registers.
-
- * i386_corenote.c (EXTRA_NOTES): NT_PRXFPREG -> NT_PRXFPREG
-
-2009-04-14 Roland McGrath <roland@redhat.com>
-
- * arm_retval.c: New file.
- * arm_attrs.c: New file.
- * Makefile.am (arm_SRCS): Add them.
- * arm_symbol.c (arm_segment_type_name): New function.
- (arm_section_type_name): New function.
- (arm_machine_flag_check): New function.
- * arm_init.c (arm_init): Initialize those hooks.
-
- * arm_regs.c: New file.
- * arm_corenote.c: New file.
- * arm_auxv.c: New file.
- * Makefile.am (arm_SRCS): Add them.
- * arm_init.c (arm_init): Initialize core_note, register_info,
- and auxv_info hooks.
-
- * ia64_symbol.c (ia64_section_type_name): Remove "SHT_" prefixes.
-
-2009-04-01 Roland McGrath <roland@redhat.com>
-
- * sparc_reloc.def: Update table.
- Data from Dave Miller <davem@davemloft.net>.
-
-2009-02-15 Roland McGrath <roland@redhat.com>
-
- * ppc_attrs.c (ppc_check_object_attribute): Handle tag
- GNU_Power_ABI_Struct_Return.
-
-2008-10-04 Ulrich Drepper <drepper@redhat.com>
-
- * i386_reloc.def: Fix entries for TLS_GOTDESC, TLS_DESC_CALL, and
- TLS_DESC.
-
-2008-08-01 Roland McGrath <roland@redhat.com>
-
- * x86_corenote.c: New file.
- * Makefile.am (noinst_HEADERS): Add it.
- * i386_corenote.c: Include it, use EXTRA_NOTES_IOPERM in EXTRA_NOTES.
- * x86_64_corenote.c: Likewise.
-
- * linux-core-note.c (prstatus_items): Use 'B' instead of 'b'
- for sigpend and sighold.
-
-2008-07-04 Roland McGrath <roland@redhat.com>
-
- * i386_syscall.c: New file.
- * x86_64_syscall.c: New file.
- * ppc_syscall.c: New file.
- * Makefile.am (i386_SRCS, x86_64_SRCS, ppc_SRCS, ppc64_SRCS): Add them.
- * i386_init.c (i386_init): Initialize syscall_abi hook.
- * x86_64_init.c (x86_64_init): Likewise.
- * ppc_init.c (ppc_init): Likewise.
- * ppc64_init.c (ppc64_init): Likewise.
-
- * ppc_corenote.c (PRSTATUS_REGSET_ITEMS): Add nip.
- Fix offset calculation for 64-bit case.
-
-2008-04-04 Roland McGrath <roland@redhat.com>
-
- * alpha_symbol.c (alpha_check_special_section): New function.
- * alpha_init.c (alpha_init): Initialize check_special_section hook.
-
-2008-03-31 Roland McGrath <roland@redhat.com>
-
- * sparc_symbol.c (sparc_symbol_type_name): New function.
- (sparc_dynamic_tag_name): New function.
- (sparc_dynamic_tag_check): New function.
- * sparc_init.c (sparc_init): Initialize those hooks.
-
- * sparc_symbol.c (sparc_check_special_section): New function.
- * sparc_init.c (sparc_init): Initialize check_special_section hook.
-
-2008-02-20 Roland McGrath <roland@redhat.com>
-
- * ppc_attrs.c: New file.
- * Makefile.am (ppc_SRCS, ppc64_SRCS): Add it.
- * ppc_init.c (ppc_init): Initialize check_object_attribute hook.
-
-2008-02-14 Roland McGrath <roland@redhat.com>
-
- * alpha_auxv.c: New file.
- * Makefile.am (alpha_SRCS): Add it.
- * alpha_init.c (alpha_init): Initialize auxv_info hook.
-
-2008-02-08 Roland McGrath <roland@redhat.com>
-
- * ppc_corenote.c (spe_regs): New const variable.
- (EXTRA_NOTES): Use it for NT_PPC_SPE.
-
-2008-01-02 Roland McGrath <roland@redhat.com>
-
- * i386_corenote.c (tls_items): New const table.
- (tls_info): New function, uses it.
- (EXTRA_NOTES): Use it to handle NT_386_TLS.
-
-2008-01-08 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Add x86-64 disassembler.
- * x86_64_init.c (x86_64_init): Hook up disassembler.
-
-2007-12-28 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Add x86 disassembler.
- * i386_init.c (i386_init): Hook up disassembler.
-
-2007-12-15 Roland McGrath <roland@redhat.com>
-
- * ppc_regs.c (ppc_register_info): Return "spefscr", not "spr512".
-
-2007-10-18 Roland McGrath <roland@redhat.com>
-
- * ppc_regs.c (ppc_register_info): Assign 67 to "vscr".
- Return "vector" and 32 bits for vscr and vrsave.
- * ppc_corenote.c (altivec_regs): New variable.
- (EXTRA_NOTES): New macro, handle NT_PPC_VMX.
-
- * linux-core-note.c (EXTRA_REGSET): New macro.
- Remove NT_PRXFPREG case. Instead, use EXTRA_NOTES if defined.
- * i386_corenote.c (EXTRA_NOTES): Define it.
-
-2007-10-09 Roland McGrath <roland@redhat.com>
-
- * sparc_auxv.c: New file.
- * Makefile.am (sparc_SRCS): Add it.
- * sparc_init.c (sparc_init): Initialize auxv_info hook.
-
-2007-10-08 Roland McGrath <roland@redhat.com>
-
- * linux-core-note.c (TIMEVAL_FIELD): New macro.
- (prstatus_items): Use it.
- * sparc_corenote.c: New file.
- * sparc64_corenote.c: New file.
- * Makefile.am (sparc_SRCS): Add them.
- * sparc_init.c (sparc_init): Initialize core_note hook.
-
- * sparc_symbol.c (sparc_machine_flag_check): New function.
- * sparc_init.c (sparc_init): Use it.
-
-2007-09-27 Roland McGrath <roland@redhat.com>
-
- * alpha_retval.c: Use dwarf_attr_integrate and dwarf_hasattr_integrate.
- * i386_retval.c: Likewise.
- * ia64_retval.c: Likewise.
- * ppc64_retval.c: Likewise.
- * ppc_retval.c: Likewise.
- * s390_retval.c: Likewise.
- * sparc_retval.c: Likewise.
- * x86_64_retval.c: Likewise.
-
-2007-10-31 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: More dependencies for the libebl_* libraries.
-
-2007-08-23 Roland McGrath <roland@redhat.com>
-
- * x86_64_regs.c (x86_64_register_info): Put %rflags in "integer" set.
-
-2007-08-22 Roland McGrath <roland@redhat.com>
-
- * linux-core-note.c (prstatus_items): Add .group initializers.
- (prpsinfo_items): Likewise.
- * x86_64_corenote.c (PRSTATUS_REGSET_ITEMS): Likewise.
- * i386_corenote.c (PRSTATUS_REGSET_ITEMS): Likewise.
- * ppc_corenote.c (PRSTATUS_REGSET_ITEMS): Likewise.
-
-2007-08-20 Roland McGrath <roland@redhat.com>
-
- * ppc_symbol.c (ppc_check_special_symbol): For _GLOBAL_OFFSET_TABLE_
- when DT_PPC_GOT is not found, anywhere in the section is valid.
-
-2007-08-19 Roland McGrath <roland@redhat.com>
-
- * i386_auxv.c: New file.
- * Makefile.am (i386_SRCS, x86_64_SRCS): Add it.
- * ppc_auxv.c: New file.
- * Makefile.am (ppc_SRCS, ppc64_SRCS): Add it.
- * i386_init.c (i386_init): Initialize auxv_info hook.
- * x86_64_init.c (x86_64_init): Likewise.
- * ppc_init.c (ppc_init): Likewise.
- * ppc64_init.c (ppc64_init): Likewise.
-
- * alpha_corenote.c: New file.
- * Makefile.am (alpha_SRCS): Add it.
- * alpha_init.c (alpha_init): Initialize core_note hook.
-
- * ppc_corenote.c: New file.
- * ppc64_corenote.c: New file.
- * Makefile.am (ppc_SRCS, ppc64_SRCS): Add them.
- * ppc_init.c (ppc_init): Initialize core_note hook.
- * ppc64_init.c (ppc64_init): Likewise.
-
- * linux-core-note.c: New file.
- * Makefile.am (noinst_HEADERS): Add it.
- * i386_corenote.c: Rewritten.
- * x86_64_corenote.c: Likewise.
-
-2007-05-23 Roland McGrath <roland@redhat.com>
-
- * alpha_regs.c (alpha_register_info): fp -> s6
-
-2007-04-26 Roland McGrath <roland@redhat.com>
-
- * alpha_symbol.c (alpha_machine_section_flag_check): New function.
- * alpha_init.c (alpha_init): Initialize hook.
-
- * alpha_regs.c: New file.
- * Makefile.am (alpha_SRCS): Add it.
- * alpha_init.c (alpha_init): Initialize register_info hook.
-
-2007-04-22 Roland McGrath <roland@redhat.com>
-
- * ppc_regs.c (ppc_register_info): Use some names instead of sprNNN:
- mq, xer, lr, ctr, dsisr, dar, dec, vrsave.
- Set *BITS to 64 for FPU registers.
-
- * i386_regs.c (i386_register_info): Set *BITS to 16 for fctrl, fstat.
- * x86_64_regs.c (x86_64_register_info): Likewise for fcw, fsw.
-
-2007-04-01 Roland McGrath <roland@redhat.com>
-
- * x86_64_regs.c (x86_64_register_info): Add more registers from newer
- ABI spec.
-
-2007-01-11 Roland McGrath <roland@redhat.com>
-
- * ia64_symbol.c (ia64_machine_section_flag_check): New function.
- * ia64_init.c (ia64_init): Use it.
-
- * ia64_symbol.c (ia64_section_type_name): Typo fix in string.
-
-2006-10-09 Roland McGrath <roland@redhat.com>
-
- * ia64_symbol.c (ia64_reloc_simple_type): Treat SECREL types as simple.
-
-2006-08-29 Roland McGrath <roland@redhat.com>
-
- * sparc_retval.c: New file.
- * Makefile.am (sparc_SRCS): Add it.
- * sparc_init.c (sparc_init): Initialize return_value_location hook.
-
-2006-08-22 Roland McGrath <roland@redhat.com>
-
- * i386_regs.c (i386_register_name): Renamed i386_register_info.
- Take new args, yield more info.
- * i386_init.c (i386_init): Update initializer.
- * ia64_regs.c (ia64_register_name): Likewise.
- * ia64_init.c (ia64_init): Likewise.
- * ppc_regs.c (ppc_register_name): Likewise.
- * ppc64_init.c (ppc64_init): Likewise.
- * ppc_init.c (ppc_init): Likewise.
- * s390_regs.c (s390_register_name): Likewise.
- * s390_init.c (s390_init): Likewise.
- * sparc_regs.c (sparc_register_name): Likewise.
- * sparc_init.c (sparc_init): Likewise.
- * x86_64_regs.c (x86_64_register_name): Likewise.
- * x86_64_init.c (x86_64_init): Likewise.
-
-2006-08-08 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (%.os): Don't depend on %.o, since we don't actually
- need static object for anything here. This rule is the only source of
- .deps/ files.
-
-2006-06-23 Stepan Kasal <skasal@redhat.com>
-
- * Makefile.am (PACKAGE_VERSION): Remove superfluous definition.
-
-2006-08-03 Roland McGrath <roland@redhat.com>
-
- * sparc_regs.c (sparc_register_name): List 32 FPU regs only for
- EM_SPARC. EM_SPARC32PLUS also has 64.
-
-2006-07-21 Roland McGrath <roland@redhat.com>
-
- * i386_regs.c (i386_register_name): Fix return value when using stpcpy.
- * ppc_regs.c (ppc_register_name): Likewise.
- * s390_regs.c (s390_register_name): Likewise.
-
- * ia64_retval.c: New file.
- * Makefile.am (ia64_SRCS): Add it.
- * ia64_init.c (ia64_init): Install return_value_location hook.
-
- * ia64_regs.c: New file.
- * Makefile.am (ia64_SRCS): Add it.
- * ia64_init.c (ia64_init): Install register_name hook.
-
-2006-07-05 Ulrich Drepper <drepper@redhat.com>
-
- * alpha_init.c: Initialize sysvhash_entrysize.
- * s390_init.c: Likewise.
-
-2006-07-04 Ulrich Drepper <drepper@redhat.com>
-
- * common-reloc.c (relative_reloc_p): New function.
- (init_reloc): Hook it up.
- * ia64_reloc.def: Define NO_RELATIVE_RELOC.
-
-2006-06-13 Roland McGrath <roland@redhat.com>
-
- * ppc64_retval.c: Remove SVR4_STRUCT_RETURN braino.
-
-2006-06-12 Ulrich Drepper <drepper@redhat.com>
-
- * common-reloc.c (none_reloc_p): New function.
- (init_reloc): Hook it up.
-
-2006-02-22 Roland McGrath <roland@redhat.com>
-
- * ppc64_retval.c (SVR4_STRUCT_RETURN): New macro.
- (ppc64_return_value_location): Use registers for aggregate conditional
- on that.
- * ppc_retval.c (SVR4_STRUCT_RETURN): New macro.
- (ppc_return_value_location): Use registers for aggregate conditional
- on that.
-
-2006-01-12 Roland McGrath <roland@redhat.com>
-
- * s390_retval.c: New file.
- * Makefile.am (s390_SRCS): Add it.
- * s390_init.c (s390_init): Install return_value_location hook.
-
-2006-01-11 Roland McGrath <roland@redhat.com>
-
- * s390_regs.c: New file.
- * Makefile.am (s390_SRCS): Add it.
- * s390_init.c (s390_init): Install register_name hook.
-
- * s390_reloc.def: Update bits per
- Martin Schwidefsky <schwidefsky@de.ibm.com>.
-
-2005-12-10 Ulrich Drepper
-
- * common-reloc.c (R_NAME): Generate string correctly.
-
-2005-12-05 Roland McGrath <roland@redhat.com>
-
- * i386_regs.c (i386_register_name): Use a table for the first 8 regs.
- * x86_64_regs.c (x86_64_register_name): Likewise.
-
-2005-11-25 Roland McGrath <roland@redhat.com>
-
- * i386_regs.c (i386_register_name): Return 0, not 1, for gaps.
-
- * i386_regs.c: New file.
- * ppc_regs.c: New file.
- * sparc_regs.c: New file.
- * x86_64_regs.c: New file.
- * Makefile.am
- (i386_SRCS, x86_64_SRCS, ppc_SRCS, ppc64_SRCS, sparc_SRCS): Add them.
- * i386_init.c: Initialize register_name hook.
- * ppc_init.c: Likewise.
- * ppc64_init.c: Likewise.
- * sparc_init.c: Likewise.
- * x86_64_init.c: Likewise.
-
-2005-11-19 Roland McGrath <roland@redhat.com>
-
- * ppc64_reloc.def: REL30 -> ADDR30.
-
-2005-11-18 Roland McGrath <roland@redhat.com>
-
- * alpha_init.c: Use HOOK macro.
- * arm_init.c: Likewise.
- * i386_init.c: Likewise.
- * ia64_init.c: Likewise.
- * ppc64_init.c: Likewise.
- * ppc_init.c: Likewise.
- * s390_init.c: Likewise.
- * sh_init.c: Likewise.
- * sparc_init.c: Likewise.
- * x86_64_init.c: Likewise.
-
-2005-11-17 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (uninstall): Don't try to remove $(pkgincludedir).
- (CLEANFILES): Add libebl_$(m).so.
-
- * ppc_reloc.def: Update bits per Alan Modra <amodra@bigpond.net.au>.
- * ppc64_reloc.def: Likewise.
-
-2005-11-15 Roland McGrath <roland@redhat.com>
-
- * Contents moved here from ../libebl.
diff --git a/src/backends/Makefile b/src/backends/Makefile
deleted file mode 100644
index a6152b5a..00000000
--- a/src/backends/Makefile
+++ /dev/null
@@ -1,914 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# backends/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) ChangeLog
-subdir = backends
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libebl_aarch64_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_aarch64_pic_a_LIBADD =
-am__objects_1 = aarch64_init.$(OBJEXT) aarch64_regs.$(OBJEXT) \
- aarch64_symbol.$(OBJEXT) aarch64_corenote.$(OBJEXT) \
- aarch64_retval.$(OBJEXT) aarch64_cfi.$(OBJEXT) \
- aarch64_initreg.$(OBJEXT)
-libebl_aarch64_pic_a_OBJECTS = $(am_libebl_aarch64_pic_a_OBJECTS)
-libebl_alpha_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_alpha_pic_a_LIBADD =
-am__objects_2 = alpha_init.$(OBJEXT) alpha_symbol.$(OBJEXT) \
- alpha_retval.$(OBJEXT) alpha_regs.$(OBJEXT) \
- alpha_corenote.$(OBJEXT) alpha_auxv.$(OBJEXT)
-libebl_alpha_pic_a_OBJECTS = $(am_libebl_alpha_pic_a_OBJECTS)
-libebl_arm_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_arm_pic_a_LIBADD =
-am__objects_3 = arm_init.$(OBJEXT) arm_symbol.$(OBJEXT) \
- arm_regs.$(OBJEXT) arm_corenote.$(OBJEXT) arm_auxv.$(OBJEXT) \
- arm_attrs.$(OBJEXT) arm_retval.$(OBJEXT) arm_cfi.$(OBJEXT) \
- arm_initreg.$(OBJEXT)
-libebl_arm_pic_a_OBJECTS = $(am_libebl_arm_pic_a_OBJECTS)
-libebl_i386_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_i386_pic_a_LIBADD =
-am__objects_4 = i386_init.$(OBJEXT) i386_symbol.$(OBJEXT) \
- i386_corenote.$(OBJEXT) i386_cfi.$(OBJEXT) \
- i386_retval.$(OBJEXT) i386_regs.$(OBJEXT) i386_auxv.$(OBJEXT) \
- i386_syscall.$(OBJEXT) i386_initreg.$(OBJEXT)
-libebl_i386_pic_a_OBJECTS = $(am_libebl_i386_pic_a_OBJECTS)
-libebl_ia64_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_ia64_pic_a_LIBADD =
-am__objects_5 = ia64_init.$(OBJEXT) ia64_symbol.$(OBJEXT) \
- ia64_regs.$(OBJEXT) ia64_retval.$(OBJEXT)
-libebl_ia64_pic_a_OBJECTS = $(am_libebl_ia64_pic_a_OBJECTS)
-libebl_ppc64_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_ppc64_pic_a_LIBADD =
-am__objects_6 = ppc64_init.$(OBJEXT) ppc64_symbol.$(OBJEXT) \
- ppc64_retval.$(OBJEXT) ppc64_corenote.$(OBJEXT) \
- ppc_regs.$(OBJEXT) ppc_auxv.$(OBJEXT) ppc_attrs.$(OBJEXT) \
- ppc_syscall.$(OBJEXT) ppc_cfi.$(OBJEXT) ppc_initreg.$(OBJEXT) \
- ppc64_resolve_sym.$(OBJEXT)
-libebl_ppc64_pic_a_OBJECTS = $(am_libebl_ppc64_pic_a_OBJECTS)
-libebl_ppc_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_ppc_pic_a_LIBADD =
-am__objects_7 = ppc_init.$(OBJEXT) ppc_symbol.$(OBJEXT) \
- ppc_retval.$(OBJEXT) ppc_regs.$(OBJEXT) ppc_corenote.$(OBJEXT) \
- ppc_auxv.$(OBJEXT) ppc_attrs.$(OBJEXT) ppc_syscall.$(OBJEXT) \
- ppc_cfi.$(OBJEXT) ppc_initreg.$(OBJEXT)
-libebl_ppc_pic_a_OBJECTS = $(am_libebl_ppc_pic_a_OBJECTS)
-libebl_s390_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_s390_pic_a_LIBADD =
-am__objects_8 = s390_init.$(OBJEXT) s390_symbol.$(OBJEXT) \
- s390_regs.$(OBJEXT) s390_retval.$(OBJEXT) \
- s390_corenote.$(OBJEXT) s390x_corenote.$(OBJEXT) \
- s390_cfi.$(OBJEXT) s390_initreg.$(OBJEXT) \
- s390_unwind.$(OBJEXT)
-libebl_s390_pic_a_OBJECTS = $(am_libebl_s390_pic_a_OBJECTS)
-libebl_sh_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_sh_pic_a_LIBADD =
-am__objects_9 = sh_init.$(OBJEXT) sh_symbol.$(OBJEXT) \
- sh_corenote.$(OBJEXT) sh_regs.$(OBJEXT) sh_retval.$(OBJEXT)
-libebl_sh_pic_a_OBJECTS = $(am_libebl_sh_pic_a_OBJECTS)
-libebl_sparc_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_sparc_pic_a_LIBADD =
-am__objects_10 = sparc_init.$(OBJEXT) sparc_symbol.$(OBJEXT) \
- sparc_regs.$(OBJEXT) sparc_retval.$(OBJEXT) \
- sparc_corenote.$(OBJEXT) sparc64_corenote.$(OBJEXT) \
- sparc_auxv.$(OBJEXT)
-libebl_sparc_pic_a_OBJECTS = $(am_libebl_sparc_pic_a_OBJECTS)
-libebl_tilegx_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_tilegx_pic_a_LIBADD =
-am__objects_11 = tilegx_init.$(OBJEXT) tilegx_symbol.$(OBJEXT) \
- tilegx_regs.$(OBJEXT) tilegx_retval.$(OBJEXT) \
- tilegx_corenote.$(OBJEXT)
-libebl_tilegx_pic_a_OBJECTS = $(am_libebl_tilegx_pic_a_OBJECTS)
-libebl_x86_64_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_x86_64_pic_a_LIBADD =
-am__objects_12 = x86_64_init.$(OBJEXT) x86_64_symbol.$(OBJEXT) \
- x86_64_corenote.$(OBJEXT) x86_64_cfi.$(OBJEXT) \
- x86_64_retval.$(OBJEXT) x86_64_regs.$(OBJEXT) \
- i386_auxv.$(OBJEXT) x86_64_syscall.$(OBJEXT) \
- x86_64_initreg.$(OBJEXT)
-libebl_x86_64_pic_a_OBJECTS = $(am_libebl_x86_64_pic_a_OBJECTS)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libebl_aarch64_pic_a_SOURCES) \
- $(libebl_alpha_pic_a_SOURCES) $(libebl_arm_pic_a_SOURCES) \
- $(libebl_i386_pic_a_SOURCES) $(libebl_ia64_pic_a_SOURCES) \
- $(libebl_ppc64_pic_a_SOURCES) $(libebl_ppc_pic_a_SOURCES) \
- $(libebl_s390_pic_a_SOURCES) $(libebl_sh_pic_a_SOURCES) \
- $(libebl_sparc_pic_a_SOURCES) $(libebl_tilegx_pic_a_SOURCES) \
- $(libebl_x86_64_pic_a_SOURCES)
-DIST_SOURCES = $(libebl_aarch64_pic_a_SOURCES) \
- $(libebl_alpha_pic_a_SOURCES) $(libebl_arm_pic_a_SOURCES) \
- $(libebl_i386_pic_a_SOURCES) $(libebl_ia64_pic_a_SOURCES) \
- $(libebl_ppc64_pic_a_SOURCES) $(libebl_ppc_pic_a_SOURCES) \
- $(libebl_s390_pic_a_SOURCES) $(libebl_sh_pic_a_SOURCES) \
- $(libebl_sparc_pic_a_SOURCES) $(libebl_tilegx_pic_a_SOURCES) \
- $(libebl_x86_64_pic_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-DATA = $(noinst_DATA)
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 0.161
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/backends
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/backends
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
- -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(foreach m,$(modules), libebl_$(m).map \
- libebl_$(m).so $(am_libebl_$(m)_pic_a_OBJECTS))
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
- tilegx
-
-libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
- libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
- libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
- libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a
-
-noinst_LIBRARIES = $(libebl_pic)
-noinst_DATA = $(libebl_pic:_pic.a=.so)
-libelf = ../libelf/libelf.so
-libdw = ../libdw/libdw.so
-i386_SRCS = i386_init.c i386_symbol.c i386_corenote.c i386_cfi.c \
- i386_retval.c i386_regs.c i386_auxv.c i386_syscall.c \
- i386_initreg.c
-
-cpu_i386 = ../libcpu/libcpu_i386.a
-libebl_i386_pic_a_SOURCES = $(i386_SRCS)
-am_libebl_i386_pic_a_OBJECTS = $(i386_SRCS:.c=.os)
-sh_SRCS = sh_init.c sh_symbol.c sh_corenote.c sh_regs.c sh_retval.c
-libebl_sh_pic_a_SOURCES = $(sh_SRCS)
-am_libebl_sh_pic_a_OBJECTS = $(sh_SRCS:.c=.os)
-x86_64_SRCS = x86_64_init.c x86_64_symbol.c x86_64_corenote.c x86_64_cfi.c \
- x86_64_retval.c x86_64_regs.c i386_auxv.c x86_64_syscall.c \
- x86_64_initreg.c
-
-cpu_x86_64 = ../libcpu/libcpu_x86_64.a
-libebl_x86_64_pic_a_SOURCES = $(x86_64_SRCS)
-am_libebl_x86_64_pic_a_OBJECTS = $(x86_64_SRCS:.c=.os)
-ia64_SRCS = ia64_init.c ia64_symbol.c ia64_regs.c ia64_retval.c
-libebl_ia64_pic_a_SOURCES = $(ia64_SRCS)
-am_libebl_ia64_pic_a_OBJECTS = $(ia64_SRCS:.c=.os)
-alpha_SRCS = alpha_init.c alpha_symbol.c alpha_retval.c alpha_regs.c \
- alpha_corenote.c alpha_auxv.c
-
-libebl_alpha_pic_a_SOURCES = $(alpha_SRCS)
-am_libebl_alpha_pic_a_OBJECTS = $(alpha_SRCS:.c=.os)
-arm_SRCS = arm_init.c arm_symbol.c arm_regs.c arm_corenote.c \
- arm_auxv.c arm_attrs.c arm_retval.c arm_cfi.c arm_initreg.c
-
-libebl_arm_pic_a_SOURCES = $(arm_SRCS)
-am_libebl_arm_pic_a_OBJECTS = $(arm_SRCS:.c=.os)
-aarch64_SRCS = aarch64_init.c aarch64_regs.c aarch64_symbol.c \
- aarch64_corenote.c aarch64_retval.c aarch64_cfi.c \
- aarch64_initreg.c
-
-libebl_aarch64_pic_a_SOURCES = $(aarch64_SRCS)
-am_libebl_aarch64_pic_a_OBJECTS = $(aarch64_SRCS:.c=.os)
-sparc_SRCS = sparc_init.c sparc_symbol.c sparc_regs.c sparc_retval.c \
- sparc_corenote.c sparc64_corenote.c sparc_auxv.c
-
-libebl_sparc_pic_a_SOURCES = $(sparc_SRCS)
-am_libebl_sparc_pic_a_OBJECTS = $(sparc_SRCS:.c=.os)
-ppc_SRCS = ppc_init.c ppc_symbol.c ppc_retval.c ppc_regs.c \
- ppc_corenote.c ppc_auxv.c ppc_attrs.c ppc_syscall.c \
- ppc_cfi.c ppc_initreg.c
-
-libebl_ppc_pic_a_SOURCES = $(ppc_SRCS)
-am_libebl_ppc_pic_a_OBJECTS = $(ppc_SRCS:.c=.os)
-ppc64_SRCS = ppc64_init.c ppc64_symbol.c ppc64_retval.c \
- ppc64_corenote.c ppc_regs.c ppc_auxv.c ppc_attrs.c ppc_syscall.c \
- ppc_cfi.c ppc_initreg.c ppc64_resolve_sym.c
-
-libebl_ppc64_pic_a_SOURCES = $(ppc64_SRCS)
-am_libebl_ppc64_pic_a_OBJECTS = $(ppc64_SRCS:.c=.os)
-s390_SRCS = s390_init.c s390_symbol.c s390_regs.c s390_retval.c \
- s390_corenote.c s390x_corenote.c s390_cfi.c s390_initreg.c \
- s390_unwind.c
-
-libebl_s390_pic_a_SOURCES = $(s390_SRCS)
-am_libebl_s390_pic_a_OBJECTS = $(s390_SRCS:.c=.os)
-tilegx_SRCS = tilegx_init.c tilegx_symbol.c tilegx_regs.c \
- tilegx_retval.c tilegx_corenote.c
-
-libebl_tilegx_pic_a_SOURCES = $(tilegx_SRCS)
-am_libebl_tilegx_pic_a_OBJECTS = $(tilegx_SRCS:.c=.os)
-noinst_HEADERS = libebl_CPU.h common-reloc.c linux-core-note.c x86_corenote.c
-EXTRA_DIST = $(foreach m,$(modules),$($(m)_SRCS)) $(modules:=_reloc.def)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits backends/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits backends/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libebl_aarch64_pic.a: $(libebl_aarch64_pic_a_OBJECTS) $(libebl_aarch64_pic_a_DEPENDENCIES) $(EXTRA_libebl_aarch64_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_aarch64_pic.a
- $(AM_V_AR)$(libebl_aarch64_pic_a_AR) libebl_aarch64_pic.a $(libebl_aarch64_pic_a_OBJECTS) $(libebl_aarch64_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_aarch64_pic.a
-
-libebl_alpha_pic.a: $(libebl_alpha_pic_a_OBJECTS) $(libebl_alpha_pic_a_DEPENDENCIES) $(EXTRA_libebl_alpha_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_alpha_pic.a
- $(AM_V_AR)$(libebl_alpha_pic_a_AR) libebl_alpha_pic.a $(libebl_alpha_pic_a_OBJECTS) $(libebl_alpha_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_alpha_pic.a
-
-libebl_arm_pic.a: $(libebl_arm_pic_a_OBJECTS) $(libebl_arm_pic_a_DEPENDENCIES) $(EXTRA_libebl_arm_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_arm_pic.a
- $(AM_V_AR)$(libebl_arm_pic_a_AR) libebl_arm_pic.a $(libebl_arm_pic_a_OBJECTS) $(libebl_arm_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_arm_pic.a
-
-libebl_i386_pic.a: $(libebl_i386_pic_a_OBJECTS) $(libebl_i386_pic_a_DEPENDENCIES) $(EXTRA_libebl_i386_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_i386_pic.a
- $(AM_V_AR)$(libebl_i386_pic_a_AR) libebl_i386_pic.a $(libebl_i386_pic_a_OBJECTS) $(libebl_i386_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_i386_pic.a
-
-libebl_ia64_pic.a: $(libebl_ia64_pic_a_OBJECTS) $(libebl_ia64_pic_a_DEPENDENCIES) $(EXTRA_libebl_ia64_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_ia64_pic.a
- $(AM_V_AR)$(libebl_ia64_pic_a_AR) libebl_ia64_pic.a $(libebl_ia64_pic_a_OBJECTS) $(libebl_ia64_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_ia64_pic.a
-
-libebl_ppc64_pic.a: $(libebl_ppc64_pic_a_OBJECTS) $(libebl_ppc64_pic_a_DEPENDENCIES) $(EXTRA_libebl_ppc64_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_ppc64_pic.a
- $(AM_V_AR)$(libebl_ppc64_pic_a_AR) libebl_ppc64_pic.a $(libebl_ppc64_pic_a_OBJECTS) $(libebl_ppc64_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_ppc64_pic.a
-
-libebl_ppc_pic.a: $(libebl_ppc_pic_a_OBJECTS) $(libebl_ppc_pic_a_DEPENDENCIES) $(EXTRA_libebl_ppc_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_ppc_pic.a
- $(AM_V_AR)$(libebl_ppc_pic_a_AR) libebl_ppc_pic.a $(libebl_ppc_pic_a_OBJECTS) $(libebl_ppc_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_ppc_pic.a
-
-libebl_s390_pic.a: $(libebl_s390_pic_a_OBJECTS) $(libebl_s390_pic_a_DEPENDENCIES) $(EXTRA_libebl_s390_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_s390_pic.a
- $(AM_V_AR)$(libebl_s390_pic_a_AR) libebl_s390_pic.a $(libebl_s390_pic_a_OBJECTS) $(libebl_s390_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_s390_pic.a
-
-libebl_sh_pic.a: $(libebl_sh_pic_a_OBJECTS) $(libebl_sh_pic_a_DEPENDENCIES) $(EXTRA_libebl_sh_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_sh_pic.a
- $(AM_V_AR)$(libebl_sh_pic_a_AR) libebl_sh_pic.a $(libebl_sh_pic_a_OBJECTS) $(libebl_sh_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_sh_pic.a
-
-libebl_sparc_pic.a: $(libebl_sparc_pic_a_OBJECTS) $(libebl_sparc_pic_a_DEPENDENCIES) $(EXTRA_libebl_sparc_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_sparc_pic.a
- $(AM_V_AR)$(libebl_sparc_pic_a_AR) libebl_sparc_pic.a $(libebl_sparc_pic_a_OBJECTS) $(libebl_sparc_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_sparc_pic.a
-
-libebl_tilegx_pic.a: $(libebl_tilegx_pic_a_OBJECTS) $(libebl_tilegx_pic_a_DEPENDENCIES) $(EXTRA_libebl_tilegx_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_tilegx_pic.a
- $(AM_V_AR)$(libebl_tilegx_pic_a_AR) libebl_tilegx_pic.a $(libebl_tilegx_pic_a_OBJECTS) $(libebl_tilegx_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_tilegx_pic.a
-
-libebl_x86_64_pic.a: $(libebl_x86_64_pic_a_OBJECTS) $(libebl_x86_64_pic_a_DEPENDENCIES) $(EXTRA_libebl_x86_64_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_x86_64_pic.a
- $(AM_V_AR)$(libebl_x86_64_pic_a_AR) libebl_x86_64_pic.a $(libebl_x86_64_pic_a_OBJECTS) $(libebl_x86_64_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_x86_64_pic.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/aarch64_cfi.Po
-include ./$(DEPDIR)/aarch64_corenote.Po
-include ./$(DEPDIR)/aarch64_init.Po
-include ./$(DEPDIR)/aarch64_initreg.Po
-include ./$(DEPDIR)/aarch64_regs.Po
-include ./$(DEPDIR)/aarch64_retval.Po
-include ./$(DEPDIR)/aarch64_symbol.Po
-include ./$(DEPDIR)/alpha_auxv.Po
-include ./$(DEPDIR)/alpha_corenote.Po
-include ./$(DEPDIR)/alpha_init.Po
-include ./$(DEPDIR)/alpha_regs.Po
-include ./$(DEPDIR)/alpha_retval.Po
-include ./$(DEPDIR)/alpha_symbol.Po
-include ./$(DEPDIR)/arm_attrs.Po
-include ./$(DEPDIR)/arm_auxv.Po
-include ./$(DEPDIR)/arm_cfi.Po
-include ./$(DEPDIR)/arm_corenote.Po
-include ./$(DEPDIR)/arm_init.Po
-include ./$(DEPDIR)/arm_initreg.Po
-include ./$(DEPDIR)/arm_regs.Po
-include ./$(DEPDIR)/arm_retval.Po
-include ./$(DEPDIR)/arm_symbol.Po
-include ./$(DEPDIR)/i386_auxv.Po
-include ./$(DEPDIR)/i386_cfi.Po
-include ./$(DEPDIR)/i386_corenote.Po
-include ./$(DEPDIR)/i386_init.Po
-include ./$(DEPDIR)/i386_initreg.Po
-include ./$(DEPDIR)/i386_regs.Po
-include ./$(DEPDIR)/i386_retval.Po
-include ./$(DEPDIR)/i386_symbol.Po
-include ./$(DEPDIR)/i386_syscall.Po
-include ./$(DEPDIR)/ia64_init.Po
-include ./$(DEPDIR)/ia64_regs.Po
-include ./$(DEPDIR)/ia64_retval.Po
-include ./$(DEPDIR)/ia64_symbol.Po
-include ./$(DEPDIR)/ppc64_corenote.Po
-include ./$(DEPDIR)/ppc64_init.Po
-include ./$(DEPDIR)/ppc64_resolve_sym.Po
-include ./$(DEPDIR)/ppc64_retval.Po
-include ./$(DEPDIR)/ppc64_symbol.Po
-include ./$(DEPDIR)/ppc_attrs.Po
-include ./$(DEPDIR)/ppc_auxv.Po
-include ./$(DEPDIR)/ppc_cfi.Po
-include ./$(DEPDIR)/ppc_corenote.Po
-include ./$(DEPDIR)/ppc_init.Po
-include ./$(DEPDIR)/ppc_initreg.Po
-include ./$(DEPDIR)/ppc_regs.Po
-include ./$(DEPDIR)/ppc_retval.Po
-include ./$(DEPDIR)/ppc_symbol.Po
-include ./$(DEPDIR)/ppc_syscall.Po
-include ./$(DEPDIR)/s390_cfi.Po
-include ./$(DEPDIR)/s390_corenote.Po
-include ./$(DEPDIR)/s390_init.Po
-include ./$(DEPDIR)/s390_initreg.Po
-include ./$(DEPDIR)/s390_regs.Po
-include ./$(DEPDIR)/s390_retval.Po
-include ./$(DEPDIR)/s390_symbol.Po
-include ./$(DEPDIR)/s390_unwind.Po
-include ./$(DEPDIR)/s390x_corenote.Po
-include ./$(DEPDIR)/sh_corenote.Po
-include ./$(DEPDIR)/sh_init.Po
-include ./$(DEPDIR)/sh_regs.Po
-include ./$(DEPDIR)/sh_retval.Po
-include ./$(DEPDIR)/sh_symbol.Po
-include ./$(DEPDIR)/sparc64_corenote.Po
-include ./$(DEPDIR)/sparc_auxv.Po
-include ./$(DEPDIR)/sparc_corenote.Po
-include ./$(DEPDIR)/sparc_init.Po
-include ./$(DEPDIR)/sparc_regs.Po
-include ./$(DEPDIR)/sparc_retval.Po
-include ./$(DEPDIR)/sparc_symbol.Po
-include ./$(DEPDIR)/tilegx_corenote.Po
-include ./$(DEPDIR)/tilegx_init.Po
-include ./$(DEPDIR)/tilegx_regs.Po
-include ./$(DEPDIR)/tilegx_retval.Po
-include ./$(DEPDIR)/tilegx_symbol.Po
-include ./$(DEPDIR)/x86_64_cfi.Po
-include ./$(DEPDIR)/x86_64_corenote.Po
-include ./$(DEPDIR)/x86_64_init.Po
-include ./$(DEPDIR)/x86_64_initreg.Po
-include ./$(DEPDIR)/x86_64_regs.Po
-include ./$(DEPDIR)/x86_64_retval.Po
-include ./$(DEPDIR)/x86_64_symbol.Po
-include ./$(DEPDIR)/x86_64_syscall.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(DATA) $(HEADERS)
-installdirs:
-install-exec: install-exec-am
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-ps install-ps-am install-strip \
- installcheck installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw)
- @rm -f $(@:.so=.map)
- echo 'ELFUTILS_$(PACKAGE_VERSION) { global: $*_init; local: *; };' \
- > $(@:.so=.map)
- $(LINK) -shared -o $(@:.map=.so) \
- -Wl,--whole-archive $< $(cpu_$*) -Wl,--no-whole-archive \
- -Wl,--version-script,$(@:.so=.map) \
- -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw)
- @$(textrel_check)
-
-libebl_i386.so: $(cpu_i386)
-libebl_x86_64.so: $(cpu_x86_64)
-
-install: install-am install-ebl-modules
-install-ebl-modules:
- $(mkinstalldirs) $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)
- for m in $(modules); do \
- $(INSTALL_PROGRAM) libebl_$${m}.so $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}-$(PACKAGE_VERSION).so; \
- ln -fs libebl_$${m}-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}.so; \
- done
-
-uninstall: uninstall-am
- for m in $(modules); do \
- rm -f $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}-$(PACKAGE_VERSION).so; \
- rm -f $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}.so; \
- done
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/backends/Makefile.am b/src/backends/Makefile.am
deleted file mode 100644
index 687c089d..00000000
--- a/src/backends/Makefile.am
+++ /dev/null
@@ -1,148 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 2000-2010, 2013, 2014 Red Hat, Inc.
-## Copyright (C) 2012 Tilera Corporation
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-include $(top_srcdir)/config/eu.am
-AM_CPPFLAGS += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
- -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw
-
-
-modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
- tilegx
-libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
- libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
- libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
- libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a
-noinst_LIBRARIES = $(libebl_pic)
-noinst_DATA = $(libebl_pic:_pic.a=.so)
-
-
-libelf = ../libelf/libelf.so
-libdw = ../libdw/libdw.so
-
-i386_SRCS = i386_init.c i386_symbol.c i386_corenote.c i386_cfi.c \
- i386_retval.c i386_regs.c i386_auxv.c i386_syscall.c \
- i386_initreg.c
-cpu_i386 = ../libcpu/libcpu_i386.a
-libebl_i386_pic_a_SOURCES = $(i386_SRCS)
-am_libebl_i386_pic_a_OBJECTS = $(i386_SRCS:.c=.os)
-
-sh_SRCS = sh_init.c sh_symbol.c sh_corenote.c sh_regs.c sh_retval.c
-libebl_sh_pic_a_SOURCES = $(sh_SRCS)
-am_libebl_sh_pic_a_OBJECTS = $(sh_SRCS:.c=.os)
-
-x86_64_SRCS = x86_64_init.c x86_64_symbol.c x86_64_corenote.c x86_64_cfi.c \
- x86_64_retval.c x86_64_regs.c i386_auxv.c x86_64_syscall.c \
- x86_64_initreg.c
-cpu_x86_64 = ../libcpu/libcpu_x86_64.a
-libebl_x86_64_pic_a_SOURCES = $(x86_64_SRCS)
-am_libebl_x86_64_pic_a_OBJECTS = $(x86_64_SRCS:.c=.os)
-
-ia64_SRCS = ia64_init.c ia64_symbol.c ia64_regs.c ia64_retval.c
-libebl_ia64_pic_a_SOURCES = $(ia64_SRCS)
-am_libebl_ia64_pic_a_OBJECTS = $(ia64_SRCS:.c=.os)
-
-alpha_SRCS = alpha_init.c alpha_symbol.c alpha_retval.c alpha_regs.c \
- alpha_corenote.c alpha_auxv.c
-libebl_alpha_pic_a_SOURCES = $(alpha_SRCS)
-am_libebl_alpha_pic_a_OBJECTS = $(alpha_SRCS:.c=.os)
-
-arm_SRCS = arm_init.c arm_symbol.c arm_regs.c arm_corenote.c \
- arm_auxv.c arm_attrs.c arm_retval.c arm_cfi.c arm_initreg.c
-libebl_arm_pic_a_SOURCES = $(arm_SRCS)
-am_libebl_arm_pic_a_OBJECTS = $(arm_SRCS:.c=.os)
-
-aarch64_SRCS = aarch64_init.c aarch64_regs.c aarch64_symbol.c \
- aarch64_corenote.c aarch64_retval.c aarch64_cfi.c \
- aarch64_initreg.c
-libebl_aarch64_pic_a_SOURCES = $(aarch64_SRCS)
-am_libebl_aarch64_pic_a_OBJECTS = $(aarch64_SRCS:.c=.os)
-
-sparc_SRCS = sparc_init.c sparc_symbol.c sparc_regs.c sparc_retval.c \
- sparc_corenote.c sparc64_corenote.c sparc_auxv.c
-libebl_sparc_pic_a_SOURCES = $(sparc_SRCS)
-am_libebl_sparc_pic_a_OBJECTS = $(sparc_SRCS:.c=.os)
-
-ppc_SRCS = ppc_init.c ppc_symbol.c ppc_retval.c ppc_regs.c \
- ppc_corenote.c ppc_auxv.c ppc_attrs.c ppc_syscall.c \
- ppc_cfi.c ppc_initreg.c
-libebl_ppc_pic_a_SOURCES = $(ppc_SRCS)
-am_libebl_ppc_pic_a_OBJECTS = $(ppc_SRCS:.c=.os)
-
-ppc64_SRCS = ppc64_init.c ppc64_symbol.c ppc64_retval.c \
- ppc64_corenote.c ppc_regs.c ppc_auxv.c ppc_attrs.c ppc_syscall.c \
- ppc_cfi.c ppc_initreg.c ppc64_resolve_sym.c
-libebl_ppc64_pic_a_SOURCES = $(ppc64_SRCS)
-am_libebl_ppc64_pic_a_OBJECTS = $(ppc64_SRCS:.c=.os)
-
-s390_SRCS = s390_init.c s390_symbol.c s390_regs.c s390_retval.c \
- s390_corenote.c s390x_corenote.c s390_cfi.c s390_initreg.c \
- s390_unwind.c
-libebl_s390_pic_a_SOURCES = $(s390_SRCS)
-am_libebl_s390_pic_a_OBJECTS = $(s390_SRCS:.c=.os)
-
-tilegx_SRCS = tilegx_init.c tilegx_symbol.c tilegx_regs.c \
- tilegx_retval.c tilegx_corenote.c
-libebl_tilegx_pic_a_SOURCES = $(tilegx_SRCS)
-am_libebl_tilegx_pic_a_OBJECTS = $(tilegx_SRCS:.c=.os)
-
-
-libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw)
- @rm -f $(@:.so=.map)
- echo 'ELFUTILS_$(PACKAGE_VERSION) { global: $*_init; local: *; };' \
- > $(@:.so=.map)
- $(LINK) -shared -o $(@:.map=.so) \
- -Wl,--whole-archive $< $(cpu_$*) -Wl,--no-whole-archive \
- -Wl,--version-script,$(@:.so=.map) \
- -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw)
- @$(textrel_check)
-
-libebl_i386.so: $(cpu_i386)
-libebl_x86_64.so: $(cpu_x86_64)
-
-install: install-am install-ebl-modules
-install-ebl-modules:
- $(mkinstalldirs) $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)
- for m in $(modules); do \
- $(INSTALL_PROGRAM) libebl_$${m}.so $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}-$(PACKAGE_VERSION).so; \
- ln -fs libebl_$${m}-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}.so; \
- done
-
-uninstall: uninstall-am
- for m in $(modules); do \
- rm -f $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}-$(PACKAGE_VERSION).so; \
- rm -f $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}.so; \
- done
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)
-
-noinst_HEADERS = libebl_CPU.h common-reloc.c linux-core-note.c x86_corenote.c
-EXTRA_DIST = $(foreach m,$(modules),$($(m)_SRCS)) $(modules:=_reloc.def)
-
-CLEANFILES += $(foreach m,$(modules),\
- libebl_$(m).map libebl_$(m).so \
- $(am_libebl_$(m)_pic_a_OBJECTS))
diff --git a/src/backends/Makefile.in b/src/backends/Makefile.in
deleted file mode 100644
index d204d036..00000000
--- a/src/backends/Makefile.in
+++ /dev/null
@@ -1,914 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) ChangeLog
-subdir = backends
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libebl_aarch64_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_aarch64_pic_a_LIBADD =
-am__objects_1 = aarch64_init.$(OBJEXT) aarch64_regs.$(OBJEXT) \
- aarch64_symbol.$(OBJEXT) aarch64_corenote.$(OBJEXT) \
- aarch64_retval.$(OBJEXT) aarch64_cfi.$(OBJEXT) \
- aarch64_initreg.$(OBJEXT)
-libebl_aarch64_pic_a_OBJECTS = $(am_libebl_aarch64_pic_a_OBJECTS)
-libebl_alpha_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_alpha_pic_a_LIBADD =
-am__objects_2 = alpha_init.$(OBJEXT) alpha_symbol.$(OBJEXT) \
- alpha_retval.$(OBJEXT) alpha_regs.$(OBJEXT) \
- alpha_corenote.$(OBJEXT) alpha_auxv.$(OBJEXT)
-libebl_alpha_pic_a_OBJECTS = $(am_libebl_alpha_pic_a_OBJECTS)
-libebl_arm_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_arm_pic_a_LIBADD =
-am__objects_3 = arm_init.$(OBJEXT) arm_symbol.$(OBJEXT) \
- arm_regs.$(OBJEXT) arm_corenote.$(OBJEXT) arm_auxv.$(OBJEXT) \
- arm_attrs.$(OBJEXT) arm_retval.$(OBJEXT) arm_cfi.$(OBJEXT) \
- arm_initreg.$(OBJEXT)
-libebl_arm_pic_a_OBJECTS = $(am_libebl_arm_pic_a_OBJECTS)
-libebl_i386_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_i386_pic_a_LIBADD =
-am__objects_4 = i386_init.$(OBJEXT) i386_symbol.$(OBJEXT) \
- i386_corenote.$(OBJEXT) i386_cfi.$(OBJEXT) \
- i386_retval.$(OBJEXT) i386_regs.$(OBJEXT) i386_auxv.$(OBJEXT) \
- i386_syscall.$(OBJEXT) i386_initreg.$(OBJEXT)
-libebl_i386_pic_a_OBJECTS = $(am_libebl_i386_pic_a_OBJECTS)
-libebl_ia64_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_ia64_pic_a_LIBADD =
-am__objects_5 = ia64_init.$(OBJEXT) ia64_symbol.$(OBJEXT) \
- ia64_regs.$(OBJEXT) ia64_retval.$(OBJEXT)
-libebl_ia64_pic_a_OBJECTS = $(am_libebl_ia64_pic_a_OBJECTS)
-libebl_ppc64_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_ppc64_pic_a_LIBADD =
-am__objects_6 = ppc64_init.$(OBJEXT) ppc64_symbol.$(OBJEXT) \
- ppc64_retval.$(OBJEXT) ppc64_corenote.$(OBJEXT) \
- ppc_regs.$(OBJEXT) ppc_auxv.$(OBJEXT) ppc_attrs.$(OBJEXT) \
- ppc_syscall.$(OBJEXT) ppc_cfi.$(OBJEXT) ppc_initreg.$(OBJEXT) \
- ppc64_resolve_sym.$(OBJEXT)
-libebl_ppc64_pic_a_OBJECTS = $(am_libebl_ppc64_pic_a_OBJECTS)
-libebl_ppc_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_ppc_pic_a_LIBADD =
-am__objects_7 = ppc_init.$(OBJEXT) ppc_symbol.$(OBJEXT) \
- ppc_retval.$(OBJEXT) ppc_regs.$(OBJEXT) ppc_corenote.$(OBJEXT) \
- ppc_auxv.$(OBJEXT) ppc_attrs.$(OBJEXT) ppc_syscall.$(OBJEXT) \
- ppc_cfi.$(OBJEXT) ppc_initreg.$(OBJEXT)
-libebl_ppc_pic_a_OBJECTS = $(am_libebl_ppc_pic_a_OBJECTS)
-libebl_s390_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_s390_pic_a_LIBADD =
-am__objects_8 = s390_init.$(OBJEXT) s390_symbol.$(OBJEXT) \
- s390_regs.$(OBJEXT) s390_retval.$(OBJEXT) \
- s390_corenote.$(OBJEXT) s390x_corenote.$(OBJEXT) \
- s390_cfi.$(OBJEXT) s390_initreg.$(OBJEXT) \
- s390_unwind.$(OBJEXT)
-libebl_s390_pic_a_OBJECTS = $(am_libebl_s390_pic_a_OBJECTS)
-libebl_sh_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_sh_pic_a_LIBADD =
-am__objects_9 = sh_init.$(OBJEXT) sh_symbol.$(OBJEXT) \
- sh_corenote.$(OBJEXT) sh_regs.$(OBJEXT) sh_retval.$(OBJEXT)
-libebl_sh_pic_a_OBJECTS = $(am_libebl_sh_pic_a_OBJECTS)
-libebl_sparc_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_sparc_pic_a_LIBADD =
-am__objects_10 = sparc_init.$(OBJEXT) sparc_symbol.$(OBJEXT) \
- sparc_regs.$(OBJEXT) sparc_retval.$(OBJEXT) \
- sparc_corenote.$(OBJEXT) sparc64_corenote.$(OBJEXT) \
- sparc_auxv.$(OBJEXT)
-libebl_sparc_pic_a_OBJECTS = $(am_libebl_sparc_pic_a_OBJECTS)
-libebl_tilegx_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_tilegx_pic_a_LIBADD =
-am__objects_11 = tilegx_init.$(OBJEXT) tilegx_symbol.$(OBJEXT) \
- tilegx_regs.$(OBJEXT) tilegx_retval.$(OBJEXT) \
- tilegx_corenote.$(OBJEXT)
-libebl_tilegx_pic_a_OBJECTS = $(am_libebl_tilegx_pic_a_OBJECTS)
-libebl_x86_64_pic_a_AR = $(AR) $(ARFLAGS)
-libebl_x86_64_pic_a_LIBADD =
-am__objects_12 = x86_64_init.$(OBJEXT) x86_64_symbol.$(OBJEXT) \
- x86_64_corenote.$(OBJEXT) x86_64_cfi.$(OBJEXT) \
- x86_64_retval.$(OBJEXT) x86_64_regs.$(OBJEXT) \
- i386_auxv.$(OBJEXT) x86_64_syscall.$(OBJEXT) \
- x86_64_initreg.$(OBJEXT)
-libebl_x86_64_pic_a_OBJECTS = $(am_libebl_x86_64_pic_a_OBJECTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libebl_aarch64_pic_a_SOURCES) \
- $(libebl_alpha_pic_a_SOURCES) $(libebl_arm_pic_a_SOURCES) \
- $(libebl_i386_pic_a_SOURCES) $(libebl_ia64_pic_a_SOURCES) \
- $(libebl_ppc64_pic_a_SOURCES) $(libebl_ppc_pic_a_SOURCES) \
- $(libebl_s390_pic_a_SOURCES) $(libebl_sh_pic_a_SOURCES) \
- $(libebl_sparc_pic_a_SOURCES) $(libebl_tilegx_pic_a_SOURCES) \
- $(libebl_x86_64_pic_a_SOURCES)
-DIST_SOURCES = $(libebl_aarch64_pic_a_SOURCES) \
- $(libebl_alpha_pic_a_SOURCES) $(libebl_arm_pic_a_SOURCES) \
- $(libebl_i386_pic_a_SOURCES) $(libebl_ia64_pic_a_SOURCES) \
- $(libebl_ppc64_pic_a_SOURCES) $(libebl_ppc_pic_a_SOURCES) \
- $(libebl_s390_pic_a_SOURCES) $(libebl_sh_pic_a_SOURCES) \
- $(libebl_sparc_pic_a_SOURCES) $(libebl_tilegx_pic_a_SOURCES) \
- $(libebl_x86_64_pic_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-DATA = $(noinst_DATA)
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \
- -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(foreach m,$(modules), libebl_$(m).map \
- libebl_$(m).so $(am_libebl_$(m)_pic_a_OBJECTS))
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-modules = i386 sh x86_64 ia64 alpha arm aarch64 sparc ppc ppc64 s390 \
- tilegx
-
-libebl_pic = libebl_i386_pic.a libebl_sh_pic.a libebl_x86_64_pic.a \
- libebl_ia64_pic.a libebl_alpha_pic.a libebl_arm_pic.a \
- libebl_aarch64_pic.a libebl_sparc_pic.a libebl_ppc_pic.a \
- libebl_ppc64_pic.a libebl_s390_pic.a libebl_tilegx_pic.a
-
-noinst_LIBRARIES = $(libebl_pic)
-noinst_DATA = $(libebl_pic:_pic.a=.so)
-libelf = ../libelf/libelf.so
-libdw = ../libdw/libdw.so
-i386_SRCS = i386_init.c i386_symbol.c i386_corenote.c i386_cfi.c \
- i386_retval.c i386_regs.c i386_auxv.c i386_syscall.c \
- i386_initreg.c
-
-cpu_i386 = ../libcpu/libcpu_i386.a
-libebl_i386_pic_a_SOURCES = $(i386_SRCS)
-am_libebl_i386_pic_a_OBJECTS = $(i386_SRCS:.c=.os)
-sh_SRCS = sh_init.c sh_symbol.c sh_corenote.c sh_regs.c sh_retval.c
-libebl_sh_pic_a_SOURCES = $(sh_SRCS)
-am_libebl_sh_pic_a_OBJECTS = $(sh_SRCS:.c=.os)
-x86_64_SRCS = x86_64_init.c x86_64_symbol.c x86_64_corenote.c x86_64_cfi.c \
- x86_64_retval.c x86_64_regs.c i386_auxv.c x86_64_syscall.c \
- x86_64_initreg.c
-
-cpu_x86_64 = ../libcpu/libcpu_x86_64.a
-libebl_x86_64_pic_a_SOURCES = $(x86_64_SRCS)
-am_libebl_x86_64_pic_a_OBJECTS = $(x86_64_SRCS:.c=.os)
-ia64_SRCS = ia64_init.c ia64_symbol.c ia64_regs.c ia64_retval.c
-libebl_ia64_pic_a_SOURCES = $(ia64_SRCS)
-am_libebl_ia64_pic_a_OBJECTS = $(ia64_SRCS:.c=.os)
-alpha_SRCS = alpha_init.c alpha_symbol.c alpha_retval.c alpha_regs.c \
- alpha_corenote.c alpha_auxv.c
-
-libebl_alpha_pic_a_SOURCES = $(alpha_SRCS)
-am_libebl_alpha_pic_a_OBJECTS = $(alpha_SRCS:.c=.os)
-arm_SRCS = arm_init.c arm_symbol.c arm_regs.c arm_corenote.c \
- arm_auxv.c arm_attrs.c arm_retval.c arm_cfi.c arm_initreg.c
-
-libebl_arm_pic_a_SOURCES = $(arm_SRCS)
-am_libebl_arm_pic_a_OBJECTS = $(arm_SRCS:.c=.os)
-aarch64_SRCS = aarch64_init.c aarch64_regs.c aarch64_symbol.c \
- aarch64_corenote.c aarch64_retval.c aarch64_cfi.c \
- aarch64_initreg.c
-
-libebl_aarch64_pic_a_SOURCES = $(aarch64_SRCS)
-am_libebl_aarch64_pic_a_OBJECTS = $(aarch64_SRCS:.c=.os)
-sparc_SRCS = sparc_init.c sparc_symbol.c sparc_regs.c sparc_retval.c \
- sparc_corenote.c sparc64_corenote.c sparc_auxv.c
-
-libebl_sparc_pic_a_SOURCES = $(sparc_SRCS)
-am_libebl_sparc_pic_a_OBJECTS = $(sparc_SRCS:.c=.os)
-ppc_SRCS = ppc_init.c ppc_symbol.c ppc_retval.c ppc_regs.c \
- ppc_corenote.c ppc_auxv.c ppc_attrs.c ppc_syscall.c \
- ppc_cfi.c ppc_initreg.c
-
-libebl_ppc_pic_a_SOURCES = $(ppc_SRCS)
-am_libebl_ppc_pic_a_OBJECTS = $(ppc_SRCS:.c=.os)
-ppc64_SRCS = ppc64_init.c ppc64_symbol.c ppc64_retval.c \
- ppc64_corenote.c ppc_regs.c ppc_auxv.c ppc_attrs.c ppc_syscall.c \
- ppc_cfi.c ppc_initreg.c ppc64_resolve_sym.c
-
-libebl_ppc64_pic_a_SOURCES = $(ppc64_SRCS)
-am_libebl_ppc64_pic_a_OBJECTS = $(ppc64_SRCS:.c=.os)
-s390_SRCS = s390_init.c s390_symbol.c s390_regs.c s390_retval.c \
- s390_corenote.c s390x_corenote.c s390_cfi.c s390_initreg.c \
- s390_unwind.c
-
-libebl_s390_pic_a_SOURCES = $(s390_SRCS)
-am_libebl_s390_pic_a_OBJECTS = $(s390_SRCS:.c=.os)
-tilegx_SRCS = tilegx_init.c tilegx_symbol.c tilegx_regs.c \
- tilegx_retval.c tilegx_corenote.c
-
-libebl_tilegx_pic_a_SOURCES = $(tilegx_SRCS)
-am_libebl_tilegx_pic_a_OBJECTS = $(tilegx_SRCS:.c=.os)
-noinst_HEADERS = libebl_CPU.h common-reloc.c linux-core-note.c x86_corenote.c
-EXTRA_DIST = $(foreach m,$(modules),$($(m)_SRCS)) $(modules:=_reloc.def)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits backends/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits backends/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libebl_aarch64_pic.a: $(libebl_aarch64_pic_a_OBJECTS) $(libebl_aarch64_pic_a_DEPENDENCIES) $(EXTRA_libebl_aarch64_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_aarch64_pic.a
- $(AM_V_AR)$(libebl_aarch64_pic_a_AR) libebl_aarch64_pic.a $(libebl_aarch64_pic_a_OBJECTS) $(libebl_aarch64_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_aarch64_pic.a
-
-libebl_alpha_pic.a: $(libebl_alpha_pic_a_OBJECTS) $(libebl_alpha_pic_a_DEPENDENCIES) $(EXTRA_libebl_alpha_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_alpha_pic.a
- $(AM_V_AR)$(libebl_alpha_pic_a_AR) libebl_alpha_pic.a $(libebl_alpha_pic_a_OBJECTS) $(libebl_alpha_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_alpha_pic.a
-
-libebl_arm_pic.a: $(libebl_arm_pic_a_OBJECTS) $(libebl_arm_pic_a_DEPENDENCIES) $(EXTRA_libebl_arm_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_arm_pic.a
- $(AM_V_AR)$(libebl_arm_pic_a_AR) libebl_arm_pic.a $(libebl_arm_pic_a_OBJECTS) $(libebl_arm_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_arm_pic.a
-
-libebl_i386_pic.a: $(libebl_i386_pic_a_OBJECTS) $(libebl_i386_pic_a_DEPENDENCIES) $(EXTRA_libebl_i386_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_i386_pic.a
- $(AM_V_AR)$(libebl_i386_pic_a_AR) libebl_i386_pic.a $(libebl_i386_pic_a_OBJECTS) $(libebl_i386_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_i386_pic.a
-
-libebl_ia64_pic.a: $(libebl_ia64_pic_a_OBJECTS) $(libebl_ia64_pic_a_DEPENDENCIES) $(EXTRA_libebl_ia64_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_ia64_pic.a
- $(AM_V_AR)$(libebl_ia64_pic_a_AR) libebl_ia64_pic.a $(libebl_ia64_pic_a_OBJECTS) $(libebl_ia64_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_ia64_pic.a
-
-libebl_ppc64_pic.a: $(libebl_ppc64_pic_a_OBJECTS) $(libebl_ppc64_pic_a_DEPENDENCIES) $(EXTRA_libebl_ppc64_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_ppc64_pic.a
- $(AM_V_AR)$(libebl_ppc64_pic_a_AR) libebl_ppc64_pic.a $(libebl_ppc64_pic_a_OBJECTS) $(libebl_ppc64_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_ppc64_pic.a
-
-libebl_ppc_pic.a: $(libebl_ppc_pic_a_OBJECTS) $(libebl_ppc_pic_a_DEPENDENCIES) $(EXTRA_libebl_ppc_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_ppc_pic.a
- $(AM_V_AR)$(libebl_ppc_pic_a_AR) libebl_ppc_pic.a $(libebl_ppc_pic_a_OBJECTS) $(libebl_ppc_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_ppc_pic.a
-
-libebl_s390_pic.a: $(libebl_s390_pic_a_OBJECTS) $(libebl_s390_pic_a_DEPENDENCIES) $(EXTRA_libebl_s390_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_s390_pic.a
- $(AM_V_AR)$(libebl_s390_pic_a_AR) libebl_s390_pic.a $(libebl_s390_pic_a_OBJECTS) $(libebl_s390_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_s390_pic.a
-
-libebl_sh_pic.a: $(libebl_sh_pic_a_OBJECTS) $(libebl_sh_pic_a_DEPENDENCIES) $(EXTRA_libebl_sh_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_sh_pic.a
- $(AM_V_AR)$(libebl_sh_pic_a_AR) libebl_sh_pic.a $(libebl_sh_pic_a_OBJECTS) $(libebl_sh_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_sh_pic.a
-
-libebl_sparc_pic.a: $(libebl_sparc_pic_a_OBJECTS) $(libebl_sparc_pic_a_DEPENDENCIES) $(EXTRA_libebl_sparc_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_sparc_pic.a
- $(AM_V_AR)$(libebl_sparc_pic_a_AR) libebl_sparc_pic.a $(libebl_sparc_pic_a_OBJECTS) $(libebl_sparc_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_sparc_pic.a
-
-libebl_tilegx_pic.a: $(libebl_tilegx_pic_a_OBJECTS) $(libebl_tilegx_pic_a_DEPENDENCIES) $(EXTRA_libebl_tilegx_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_tilegx_pic.a
- $(AM_V_AR)$(libebl_tilegx_pic_a_AR) libebl_tilegx_pic.a $(libebl_tilegx_pic_a_OBJECTS) $(libebl_tilegx_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_tilegx_pic.a
-
-libebl_x86_64_pic.a: $(libebl_x86_64_pic_a_OBJECTS) $(libebl_x86_64_pic_a_DEPENDENCIES) $(EXTRA_libebl_x86_64_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl_x86_64_pic.a
- $(AM_V_AR)$(libebl_x86_64_pic_a_AR) libebl_x86_64_pic.a $(libebl_x86_64_pic_a_OBJECTS) $(libebl_x86_64_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl_x86_64_pic.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64_initreg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aarch64_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alpha_auxv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alpha_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alpha_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alpha_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alpha_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alpha_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_attrs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_auxv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_initreg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arm_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_auxv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_initreg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_syscall.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ia64_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ia64_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ia64_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ia64_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc64_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc64_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc64_resolve_sym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc64_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc64_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_attrs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_auxv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_initreg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ppc_syscall.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390_initreg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390_unwind.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/s390x_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sh_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sh_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sh_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sh_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sh_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparc64_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparc_auxv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparc_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparc_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparc_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparc_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sparc_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tilegx_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tilegx_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tilegx_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tilegx_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tilegx_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_corenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_init.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_initreg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_retval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_syscall.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(DATA) $(HEADERS)
-installdirs:
-install-exec: install-exec-am
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-ps install-ps-am install-strip \
- installcheck installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-libebl_%.so libebl_%.map: libebl_%_pic.a $(libelf) $(libdw)
- @rm -f $(@:.so=.map)
- echo 'ELFUTILS_$(PACKAGE_VERSION) { global: $*_init; local: *; };' \
- > $(@:.so=.map)
- $(LINK) -shared -o $(@:.map=.so) \
- -Wl,--whole-archive $< $(cpu_$*) -Wl,--no-whole-archive \
- -Wl,--version-script,$(@:.so=.map) \
- -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw)
- @$(textrel_check)
-
-libebl_i386.so: $(cpu_i386)
-libebl_x86_64.so: $(cpu_x86_64)
-
-install: install-am install-ebl-modules
-install-ebl-modules:
- $(mkinstalldirs) $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)
- for m in $(modules); do \
- $(INSTALL_PROGRAM) libebl_$${m}.so $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}-$(PACKAGE_VERSION).so; \
- ln -fs libebl_$${m}-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}.so; \
- done
-
-uninstall: uninstall-am
- for m in $(modules); do \
- rm -f $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}-$(PACKAGE_VERSION).so; \
- rm -f $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)/libebl_$${m}.so; \
- done
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR)
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/backends/aarch64_cfi.c b/src/backends/aarch64_cfi.c
deleted file mode 100644
index acbb9b69..00000000
--- a/src/backends/aarch64_cfi.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* arm ABI-specified defaults for DWARF CFI.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-
-#define BACKEND aarch64_
-#include "libebl_CPU.h"
-
-
-/* ABI-specified state of DWARF CFI based on:
-
- "DWARF for the ARM 64 bit architecture (AArch64) 1.0"
-http://infocenter.arm.com/help/topic/com.arm.doc.ihi0057b/IHI0057B_aadwarf64.pdf
-
- "Procedure Call Standard for the ARM 64 bit Architecture 1.0"
-http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf
-*/
-
-int
-aarch64_abi_cfi (Ebl *ebl __attribute__ ((unused)), Dwarf_CIE *abi_info)
-{
- static const uint8_t abi_cfi[] =
- {
- /* The initial Canonical Frame Address is the value of the
- Stack Pointer (r31) as setup in the previous frame. */
- DW_CFA_def_cfa, ULEB128_7 (30), ULEB128_7 (0),
-
-#define SV(n) DW_CFA_same_value, ULEB128_7 (n)
- /* Callee-saved regs r19-r28. */
- SV (19), SV (20), SV (21), SV (22), SV (23),
- SV (24), SV (25), SV (26), SV (27), SV (28),
-
- /* The Frame Pointer (FP, r29) and Link Register (LR, r30). */
- SV (29), SV (30),
-
- /* Callee-saved fpregs v8-v15. v0 == 64. */
- SV (72), SV (73), SV (74), SV (75),
- SV (76), SV (77), SV (78), SV (79),
-#undef SV
-
- /* XXX Note: registers intentionally unused by the program,
- for example as a consequence of the procedure call standard
- should be initialized as if by DW_CFA_same_value. */
- };
-
- abi_info->initial_instructions = abi_cfi;
- abi_info->initial_instructions_end = &abi_cfi[sizeof abi_cfi];
- abi_info->data_alignment_factor = -4;
-
- abi_info->return_address_register = 30; /* lr. */
-
- return 0;
-}
diff --git a/src/backends/aarch64_corenote.c b/src/backends/aarch64_corenote.c
deleted file mode 100644
index 9b424859..00000000
--- a/src/backends/aarch64_corenote.c
+++ /dev/null
@@ -1,163 +0,0 @@
-/* AArch64 specific core note handling.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#define BACKEND aarch64_
-#include "libebl_CPU.h"
-
-#define ULONG uint64_t
-#define PID_T int32_t
-#define UID_T uint32_t
-#define GID_T uint32_t
-#define ALIGN_ULONG 8
-#define ALIGN_PID_T 4
-#define ALIGN_UID_T 4
-#define ALIGN_GID_T 4
-#define TYPE_ULONG ELF_T_XWORD
-#define TYPE_PID_T ELF_T_SWORD
-#define TYPE_UID_T ELF_T_WORD
-#define TYPE_GID_T ELF_T_WORD
-
-#define PRSTATUS_REGS_SIZE (34 * 8)
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
- { .offset = 0, .regno = 0, .count = 32, .bits = 64 }, /* x0..x30, sp */
- };
-
-#define PRSTATUS_REGSET_ITEMS \
- { \
- .name = "pc", .type = ELF_T_XWORD, .format = 'x', \
- .offset = (offsetof (struct EBLHOOK(prstatus), pr_reg) \
- + PRSTATUS_REGS_SIZE - 16), \
- .group = "register", \
- .pc_register = true \
- }, \
- { \
- .name = "pstate", .type = ELF_T_XWORD, .format = 'x', \
- .offset = (offsetof (struct EBLHOOK(prstatus), pr_reg) \
- + PRSTATUS_REGS_SIZE - 8), \
- .group = "register" \
- }
-
-static const Ebl_Register_Location aarch64_fpregset_regs[] =
- {
- { .offset = 0, .regno = 64, .count = 32, .bits = 128 }, /* v0..v31 */
- };
-
-static const Ebl_Core_Item aarch64_fpregset_items[] =
- {
- {
- .name = "fpsr", .type = ELF_T_WORD, .format = 'x',
- .offset = 512, .group = "register"
- },
- {
- .name = "fpcr", .type = ELF_T_WORD, .format = 'x',
- .offset = 516, .group = "register"
- }
- };
-
-static const Ebl_Core_Item aarch64_tls_items[] =
- {
- {
- .name = "tls", .type = ELF_T_XWORD, .format = 'x',
- .offset = 0, .group = "register"
- }
- };
-
-#define AARCH64_HWBP_REG(KIND, N) \
- { \
- .name = "DBG" KIND "VR" #N "_EL1", .type = ELF_T_XWORD, .format = 'x', \
- .offset = 8 + N * 16, .group = "register" \
- }, \
- { \
- .name = "DBG" KIND "CR" #N "_EL1", .type = ELF_T_WORD, .format = 'x', \
- .offset = 16 + N * 16, .group = "register" \
- }
-
-#define AARCH64_BP_WP_GROUP(KIND, NAME) \
- static const Ebl_Core_Item NAME[] = \
- { \
- { \
- .name = "dbg_info", .type = ELF_T_WORD, .format = 'x', \
- .offset = 0, .group = "control" \
- }, \
- /* N.B.: 4 bytes of padding here. */ \
- \
- AARCH64_HWBP_REG(KIND, 0), \
- AARCH64_HWBP_REG(KIND, 1), \
- AARCH64_HWBP_REG(KIND, 2), \
- AARCH64_HWBP_REG(KIND, 3), \
- AARCH64_HWBP_REG(KIND, 4), \
- AARCH64_HWBP_REG(KIND, 5), \
- AARCH64_HWBP_REG(KIND, 6), \
- AARCH64_HWBP_REG(KIND, 7), \
- AARCH64_HWBP_REG(KIND, 8), \
- AARCH64_HWBP_REG(KIND, 9), \
- AARCH64_HWBP_REG(KIND, 10), \
- AARCH64_HWBP_REG(KIND, 11), \
- AARCH64_HWBP_REG(KIND, 12), \
- AARCH64_HWBP_REG(KIND, 13), \
- AARCH64_HWBP_REG(KIND, 14), \
- AARCH64_HWBP_REG(KIND, 15), \
- \
- /* The DBGBVR+DBGBCR pair only takes 12 bytes. There are 4 bytes \
- of padding at the end of each pair. The item formatter in \
- readelf can skip those, but the missing 4 bytes at the end of \
- the whole block cause it to assume the whole item bunch \
- repeats, so it loops around to read more. Insert an explicit \
- (but invisible) padding word. */ \
- { \
- .name = "", .type = ELF_T_WORD, .format = 'h', \
- .offset = 260, .group = "register" \
- } \
- }
-
-AARCH64_BP_WP_GROUP ("B", aarch64_hw_bp_items);
-AARCH64_BP_WP_GROUP ("W", aarch64_hw_wp_items);
-
-#undef AARCH64_BP_WP_GROUP
-#undef AARCH64_HWBP_REG
-
-#define EXTRA_NOTES \
- EXTRA_REGSET_ITEMS (NT_FPREGSET, 528, \
- aarch64_fpregset_regs, aarch64_fpregset_items) \
- EXTRA_ITEMS (NT_ARM_TLS, 8, aarch64_tls_items) \
- EXTRA_ITEMS (NT_ARM_HW_BREAK, 264, aarch64_hw_bp_items) \
- EXTRA_ITEMS (NT_ARM_HW_WATCH, 264, aarch64_hw_wp_items)
-
-#include "linux-core-note.c"
diff --git a/src/backends/aarch64_init.c b/src/backends/aarch64_init.c
deleted file mode 100644
index b0fd17a7..00000000
--- a/src/backends/aarch64_init.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* Initialization of AArch64 specific backend library.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND aarch64_
-#define RELOC_PREFIX R_AARCH64_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on aarch64_reloc.def. */
-#include "common-reloc.c"
-
-
-const char *
-aarch64_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "AARCH64";
- aarch64_init_reloc (eh);
- HOOK (eh, register_info);
- HOOK (eh, core_note);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, return_value_location);
- HOOK (eh, check_special_symbol);
- HOOK (eh, abi_cfi);
-
- /* X0-X30 (31 regs) + SP + 1 Reserved + ELR, 30 Reserved regs (34-43)
- + V0-V31 (32 regs, least significant 64 bits only)
- + ALT_FRAME_RETURN_COLUMN (used when LR isn't used) = 97 DWARF regs. */
- eh->frame_nregs = 97;
- HOOK (eh, set_initial_registers_tid);
-
- return MODVERSION;
-}
diff --git a/src/backends/aarch64_initreg.c b/src/backends/aarch64_initreg.c
deleted file mode 100644
index 9706205e..00000000
--- a/src/backends/aarch64_initreg.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/* Fetch live process registers from TID.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "system.h"
-#include <assert.h>
-#ifdef __aarch64__
-# include <linux/uio.h>
-# include <sys/user.h>
-# include <sys/ptrace.h>
-/* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */
-# ifndef HAVE_SYS_USER_REGS
-# define user_regs_struct user_pt_regs
-# define user_fpsimd_struct user_fpsimd_state
-# endif
-#endif
-
-#define BACKEND aarch64_
-#include "libebl_CPU.h"
-
-bool
-aarch64_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
- ebl_tid_registers_t *setfunc __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
-#ifndef __aarch64__
- return false;
-#else /* __aarch64__ */
-
- /* General registers. */
- struct user_regs_struct gregs;
- struct iovec iovec;
- iovec.iov_base = &gregs;
- iovec.iov_len = sizeof (gregs);
- if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, &iovec) != 0)
- return false;
-
- /* X0..X30 plus SP. */
- if (! setfunc (0, 32, (Dwarf_Word *) &gregs.regs[0], arg))
- return false;
-
- /* PC. */
- if (! setfunc (-1, 1, (Dwarf_Word *) &gregs.pc, arg))
- return false;
-
- /* ELR cannot be found. */
-
- /* FP registers (only 64bits are used). */
- struct user_fpsimd_struct fregs;
- iovec.iov_base = &fregs;
- iovec.iov_len = sizeof (fregs);
- if (ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, &iovec) != 0)
- return false;
-
- Dwarf_Word dwarf_fregs[32];
- for (int r = 0; r < 32; r++)
- dwarf_fregs[r] = fregs.vregs[r] & 0xFFFFFFFF;
-
- if (! setfunc (64, 32, dwarf_fregs, arg))
- return false;
-
- return true;
-#endif /* __aarch64__ */
-}
diff --git a/src/backends/aarch64_regs.c b/src/backends/aarch64_regs.c
deleted file mode 100644
index 7a8a6780..00000000
--- a/src/backends/aarch64_regs.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/* Register names and numbers for AArch64 DWARF.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <string.h>
-#include <dwarf.h>
-#include <stdarg.h>
-
-#define BACKEND aarch64_
-#include "libebl_CPU.h"
-
-ssize_t
-aarch64_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setnamep,
- int *bits, int *typep)
-{
- if (name == NULL)
- return 128;
-
- __attribute__ ((format (printf, 3, 4)))
- ssize_t
- regtype (const char *setname, int type, const char *fmt, ...)
- {
- *setnamep = setname;
- *typep = type;
-
- va_list ap;
- va_start (ap, fmt);
- int s = vsnprintf (name, namelen, fmt, ap);
- va_end(ap);
-
- if (s < 0 || (unsigned) s >= namelen)
- return -1;
- return s + 1;
- }
-
- *prefix = "";
- *bits = 64;
-
- switch (regno)
- {
- case 0 ... 30:
- return regtype ("integer", DW_ATE_signed, "x%d", regno);
-
- case 31:
- return regtype ("integer", DW_ATE_address, "sp");
-
- case 32:
- return 0;
-
- case 33:
- return regtype ("integer", DW_ATE_address, "elr");
-
- case 34 ... 63:
- return 0;
-
- case 64 ... 95:
- /* FP/SIMD register file supports a variety of data types--it
- can be thought of as a register holding a single integer or
- floating-point value, or a vector of 8-, 16-, 32- or 64-bit
- integers. 128-bit quad-word is the only singular value that
- covers the whole register, so mark the register thus. */
- *bits = 128;
- return regtype ("FP/SIMD", DW_ATE_unsigned, "v%d", regno - 64);
-
- case 96 ... 127:
- return 0;
-
- default:
- return -1;
- }
-}
diff --git a/src/backends/aarch64_reloc.def b/src/backends/aarch64_reloc.def
deleted file mode 100644
index 36d29e65..00000000
--- a/src/backends/aarch64_reloc.def
+++ /dev/null
@@ -1,157 +0,0 @@
-/* List the relocation types for AArch64. -*- C -*-
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (ABS64, REL|EXEC|DYN)
-RELOC_TYPE (ABS32, REL|EXEC|DYN)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JUMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (TLS_DTPMOD64, EXEC|DYN)
-RELOC_TYPE (TLS_DTPREL64, EXEC|DYN)
-RELOC_TYPE (TLS_TPREL64, EXEC|DYN)
-RELOC_TYPE (TLSDESC, EXEC|DYN)
-
-/* R_AARCH64_NONE records that the section containing the place to be
- relocated depends on the section defining the symbol mentioned in
- the relocation directive[.] (ARM IHI 0056B). */
-RELOC_TYPE (NONE, REL)
-
-RELOC_TYPE (ABS16, REL)
-RELOC_TYPE (PREL64, REL)
-RELOC_TYPE (PREL32, REL)
-RELOC_TYPE (PREL16, REL)
-RELOC_TYPE (MOVW_UABS_G0, REL)
-RELOC_TYPE (MOVW_UABS_G0_NC, REL)
-RELOC_TYPE (MOVW_UABS_G1, REL)
-RELOC_TYPE (MOVW_UABS_G1_NC, REL)
-RELOC_TYPE (MOVW_UABS_G2, REL)
-RELOC_TYPE (MOVW_UABS_G2_NC, REL)
-RELOC_TYPE (MOVW_UABS_G3, REL)
-RELOC_TYPE (MOVW_SABS_G0, REL)
-RELOC_TYPE (MOVW_SABS_G1, REL)
-RELOC_TYPE (MOVW_SABS_G2, REL)
-RELOC_TYPE (LD_PREL_LO19, REL)
-RELOC_TYPE (ADR_PREL_LO21, REL)
-RELOC_TYPE (ADR_PREL_PG_HI21, REL)
-RELOC_TYPE (ADR_PREL_PG_HI21_NC, REL)
-RELOC_TYPE (ADD_ABS_LO12_NC, REL)
-RELOC_TYPE (LDST8_ABS_LO12_NC, REL)
-RELOC_TYPE (LDST16_ABS_LO12_NC, REL)
-RELOC_TYPE (LDST32_ABS_LO12_NC, REL)
-RELOC_TYPE (LDST64_ABS_LO12_NC, REL)
-RELOC_TYPE (LDST128_ABS_LO12_NC, REL)
-RELOC_TYPE (TSTBR14, REL)
-RELOC_TYPE (CONDBR19, REL)
-RELOC_TYPE (JUMP26, REL)
-RELOC_TYPE (CALL26, REL)
-RELOC_TYPE (MOVW_PREL_G0, REL)
-RELOC_TYPE (MOVW_PREL_G0_NC, REL)
-RELOC_TYPE (MOVW_PREL_G1, REL)
-RELOC_TYPE (MOVW_PREL_G1_NC, REL)
-RELOC_TYPE (MOVW_PREL_G2, REL)
-RELOC_TYPE (MOVW_PREL_G2_NC, REL)
-RELOC_TYPE (MOVW_PREL_G3, REL)
-RELOC_TYPE (MOVW_GOTOFF_G0, REL)
-RELOC_TYPE (MOVW_GOTOFF_G0_NC, REL)
-RELOC_TYPE (MOVW_GOTOFF_G1, REL)
-RELOC_TYPE (MOVW_GOTOFF_G1_NC, REL)
-RELOC_TYPE (MOVW_GOTOFF_G2, REL)
-RELOC_TYPE (MOVW_GOTOFF_G2_NC, REL)
-RELOC_TYPE (MOVW_GOTOFF_G3, REL)
-RELOC_TYPE (GOTREL64, REL)
-RELOC_TYPE (GOTREL32, REL)
-RELOC_TYPE (GOT_LD_PREL19, REL)
-RELOC_TYPE (LD64_GOTOFF_LO15, REL)
-RELOC_TYPE (ADR_GOT_PAGE, REL)
-RELOC_TYPE (LD64_GOT_LO12_NC, REL)
-RELOC_TYPE (LD64_GOTPAGE_LO15, REL)
-RELOC_TYPE (TLSGD_ADR_PREL21, REL)
-RELOC_TYPE (TLSGD_ADR_PAGE21, REL)
-RELOC_TYPE (TLSGD_ADD_LO12_NC, REL)
-RELOC_TYPE (TLSGD_MOVW_G1, REL)
-RELOC_TYPE (TLSGD_MOVW_G0_NC, REL)
-RELOC_TYPE (TLSLD_ADR_PREL21, REL)
-RELOC_TYPE (TLSLD_ADR_PAGE21, REL)
-RELOC_TYPE (TLSLD_ADD_LO12_NC, REL)
-RELOC_TYPE (TLSLD_MOVW_G1, REL)
-RELOC_TYPE (TLSLD_MOVW_G0_NC, REL)
-RELOC_TYPE (TLSLD_LD_PREL19, REL)
-RELOC_TYPE (TLSLD_MOVW_DTPREL_G2, REL)
-RELOC_TYPE (TLSLD_MOVW_DTPREL_G1, REL)
-RELOC_TYPE (TLSLD_MOVW_DTPREL_G1_NC, REL)
-RELOC_TYPE (TLSLD_MOVW_DTPREL_G0, REL)
-RELOC_TYPE (TLSLD_MOVW_DTPREL_G0_NC, REL)
-RELOC_TYPE (TLSLD_ADD_DTPREL_HI12, REL)
-RELOC_TYPE (TLSLD_ADD_DTPREL_LO12, REL)
-RELOC_TYPE (TLSLD_ADD_DTPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLD_LDST8_DTPREL_LO12, REL)
-RELOC_TYPE (TLSLD_LDST8_DTPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLD_LDST16_DTPREL_LO12, REL)
-RELOC_TYPE (TLSLD_LDST16_DTPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLD_LDST32_DTPREL_LO12, REL)
-RELOC_TYPE (TLSLD_LDST32_DTPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLD_LDST64_DTPREL_LO12, REL)
-RELOC_TYPE (TLSLD_LDST64_DTPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLD_LDST128_DTPREL_LO12, REL)
-RELOC_TYPE (TLSLD_LDST128_DTPREL_LO12_NC, REL)
-RELOC_TYPE (TLSIE_MOVW_GOTTPREL_G1, REL)
-RELOC_TYPE (TLSIE_MOVW_GOTTPREL_G0_NC, REL)
-RELOC_TYPE (TLSIE_ADR_GOTTPREL_PAGE21, REL)
-RELOC_TYPE (TLSIE_LD64_GOTTPREL_LO12_NC, REL)
-RELOC_TYPE (TLSIE_LD_GOTTPREL_PREL19, REL)
-RELOC_TYPE (TLSLE_MOVW_TPREL_G2, REL)
-RELOC_TYPE (TLSLE_MOVW_TPREL_G1, REL)
-RELOC_TYPE (TLSLE_MOVW_TPREL_G1_NC, REL)
-RELOC_TYPE (TLSLE_MOVW_TPREL_G0, REL)
-RELOC_TYPE (TLSLE_MOVW_TPREL_G0_NC, REL)
-RELOC_TYPE (TLSLE_ADD_TPREL_HI12, REL)
-RELOC_TYPE (TLSLE_ADD_TPREL_LO12, REL)
-RELOC_TYPE (TLSLE_ADD_TPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLE_LDST8_TPREL_LO12, REL)
-RELOC_TYPE (TLSLE_LDST8_TPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLE_LDST16_TPREL_LO12, REL)
-RELOC_TYPE (TLSLE_LDST16_TPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLE_LDST32_TPREL_LO12, REL)
-RELOC_TYPE (TLSLE_LDST32_TPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLE_LDST64_TPREL_LO12, REL)
-RELOC_TYPE (TLSLE_LDST64_TPREL_LO12_NC, REL)
-RELOC_TYPE (TLSLE_LDST128_TPREL_LO12, REL)
-RELOC_TYPE (TLSLE_LDST128_TPREL_LO12_NC, REL)
-RELOC_TYPE (TLSDESC_LD_PREL19, REL)
-RELOC_TYPE (TLSDESC_ADR_PREL21, REL)
-RELOC_TYPE (TLSDESC_ADR_PAGE21, REL)
-RELOC_TYPE (TLSDESC_LD64_LO12, REL)
-RELOC_TYPE (TLSDESC_ADD_LO12, REL)
-RELOC_TYPE (TLSDESC_OFF_G1, REL)
-RELOC_TYPE (TLSDESC_OFF_G0_NC, REL)
-RELOC_TYPE (TLSDESC_LDR, REL)
-RELOC_TYPE (TLSDESC_ADD, REL)
-RELOC_TYPE (TLSDESC_CALL, REL)
diff --git a/src/backends/aarch64_retval.c b/src/backends/aarch64_retval.c
deleted file mode 100644
index 68de307e..00000000
--- a/src/backends/aarch64_retval.c
+++ /dev/null
@@ -1,376 +0,0 @@
-/* Function return value location for Linux/AArch64 ABI.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <inttypes.h>
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND aarch64_
-#include "libebl_CPU.h"
-
-static int
-skip_until (Dwarf_Die *child, int tag)
-{
- int i;
- while (DWARF_TAG_OR_RETURN (child) != tag)
- if ((i = dwarf_siblingof (child, child)) != 0)
- /* If there are no members, then this is not a HFA. Errors
- are propagated. */
- return i;
- return 0;
-}
-
-static int
-dwarf_bytesize_aux (Dwarf_Die *die, Dwarf_Word *sizep)
-{
- int bits;
- if (((bits = 8 * dwarf_bytesize (die)) < 0
- && (bits = dwarf_bitsize (die)) < 0)
- || bits % 8 != 0)
- return -1;
-
- *sizep = bits / 8;
- return 0;
-}
-
-/* HFA (Homogeneous Floating-point Aggregate) is an aggregate type
- whose members are all of the same floating-point type, which is
- then base type of this HFA. Instead of being floating-point types
- directly, members can instead themselves be HFA. Such HFA fields
- are handled as if their type were HFA base type.
-
- This function returns 0 if TYPEDIE is HFA, 1 if it is not, or -1 if
- there were errors. In the former case, *SIZEP contains byte size
- of the base type (e.g. 8 for IEEE double). *COUNT is set to the
- number of leaf members of the HFA. */
-static int hfa_type (Dwarf_Die *ftypedie, int tag,
- Dwarf_Word *sizep, Dwarf_Word *countp);
-
-/* Return 0 if MEMBDIE refers to a member with a floating-point or HFA
- type, or 1 if it's not. Return -1 for errors. The meaning of the
- remaining arguments is as documented at hfa_type. */
-static int
-member_is_fp (Dwarf_Die *membdie, Dwarf_Word *sizep, Dwarf_Word *countp)
-{
- Dwarf_Die typedie;
- int tag = dwarf_peeled_die_type (membdie, &typedie);
- switch (tag)
- {
- case DW_TAG_base_type:;
- Dwarf_Word encoding;
- Dwarf_Attribute attr_mem;
- if (dwarf_attr_integrate (&typedie, DW_AT_encoding, &attr_mem) == NULL
- || dwarf_formudata (&attr_mem, &encoding) != 0)
- return -1;
-
- switch (encoding)
- {
- case DW_ATE_complex_float:
- *countp = 2;
- break;
-
- case DW_ATE_float:
- *countp = 1;
- break;
-
- default:
- return 1;
- }
-
- if (dwarf_bytesize_aux (&typedie, sizep) < 0)
- return -1;
-
- *sizep /= *countp;
- return 0;
-
- case DW_TAG_structure_type:
- case DW_TAG_union_type:
- case DW_TAG_array_type:
- return hfa_type (&typedie, tag, sizep, countp);
- }
-
- return 1;
-}
-
-static int
-hfa_type (Dwarf_Die *ftypedie, int tag, Dwarf_Word *sizep, Dwarf_Word *countp)
-{
- assert (tag == DW_TAG_structure_type || tag == DW_TAG_class_type
- || tag == DW_TAG_union_type || tag == DW_TAG_array_type);
-
- int i;
- if (tag == DW_TAG_array_type)
- {
- Dwarf_Word tot_size;
- if (dwarf_aggregate_size (ftypedie, &tot_size) < 0)
- return -1;
-
- /* For vector types, we don't care about the underlying
- type, but only about the vector type itself. */
- bool vec;
- Dwarf_Attribute attr_mem;
- if (dwarf_formflag (dwarf_attr_integrate (ftypedie, DW_AT_GNU_vector,
- &attr_mem), &vec) == 0
- && vec)
- {
- *sizep = tot_size;
- *countp = 1;
-
- return 0;
- }
-
- if ((i = member_is_fp (ftypedie, sizep, countp)) == 0)
- {
- *countp = tot_size / *sizep;
- return 0;
- }
-
- return i;
- }
-
- /* Find first DW_TAG_member and determine its type. */
- Dwarf_Die member;
- if ((i = dwarf_child (ftypedie, &member) != 0))
- return i;
-
- if ((i = skip_until (&member, DW_TAG_member)) != 0)
- return i;
-
- *countp = 0;
- if ((i = member_is_fp (&member, sizep, countp)) != 0)
- return i;
-
- while ((i = dwarf_siblingof (&member, &member)) == 0
- && (i = skip_until (&member, DW_TAG_member)) == 0)
- {
- Dwarf_Word size, count;
- if ((i = member_is_fp (&member, &size, &count)) != 0)
- return i;
-
- if (*sizep != size)
- return 1;
-
- *countp += count;
- }
-
- /* At this point we already have at least one FP member, which means
- FTYPEDIE is an HFA. So either return 0, or propagate error. */
- return i < 0 ? i : 0;
-}
-
-static int
-pass_in_gpr (const Dwarf_Op **locp, Dwarf_Word size)
-{
- static const Dwarf_Op loc[] =
- {
- { .atom = DW_OP_reg0 }, { .atom = DW_OP_piece, .number = 8 },
- { .atom = DW_OP_reg1 }, { .atom = DW_OP_piece, .number = 8 }
- };
-
- *locp = loc;
- return size <= 8 ? 1 : 4;
-}
-
-static int
-pass_by_ref (const Dwarf_Op **locp)
-{
- static const Dwarf_Op loc[] = { { .atom = DW_OP_breg0 } };
-
- *locp = loc;
- return 1;
-}
-
-static int
-pass_hfa (const Dwarf_Op **locp, Dwarf_Word size, Dwarf_Word count)
-{
- assert (count >= 1 && count <= 4);
- assert (size == 2 || size == 4 || size == 8 || size == 16);
-
-#define DEFINE_FPREG(NAME, SIZE) \
- static const Dwarf_Op NAME[] = { \
- { .atom = DW_OP_regx, .number = 64 }, \
- { .atom = DW_OP_piece, .number = SIZE }, \
- { .atom = DW_OP_regx, .number = 65 }, \
- { .atom = DW_OP_piece, .number = SIZE }, \
- { .atom = DW_OP_regx, .number = 66 }, \
- { .atom = DW_OP_piece, .number = SIZE }, \
- { .atom = DW_OP_regx, .number = 67 }, \
- { .atom = DW_OP_piece, .number = SIZE } \
- }
-
- switch (size)
- {
- case 2:;
- DEFINE_FPREG (loc_hfa_2, 2);
- *locp = loc_hfa_2;
- break;
-
- case 4:;
- DEFINE_FPREG (loc_hfa_4, 4);
- *locp = loc_hfa_4;
- break;
-
- case 8:;
- DEFINE_FPREG (loc_hfa_8, 8);
- *locp = loc_hfa_8;
- break;
-
- case 16:;
- DEFINE_FPREG (loc_hfa_16, 16);
- *locp = loc_hfa_16;
- break;
- }
-#undef DEFINE_FPREG
-
- return count == 1 ? 1 : 2 * count;
-}
-
-static int
-pass_in_simd (const Dwarf_Op **locp)
-{
- /* This is like passing single-element HFA. Size doesn't matter, so
- pretend it's for example double. */
- return pass_hfa (locp, 8, 1);
-}
-
-int
-aarch64_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die typedie;
- int tag = dwarf_peeled_die_type (functypedie, &typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size = (Dwarf_Word)-1;
-
- /* If the argument type is a Composite Type that is larger than 16
- bytes, then the argument is copied to memory allocated by the
- caller and the argument is replaced by a pointer to the copy. */
- if (tag == DW_TAG_structure_type || tag == DW_TAG_union_type
- || tag == DW_TAG_class_type || tag == DW_TAG_array_type)
- {
- Dwarf_Word base_size, count;
- switch (hfa_type (&typedie, tag, &base_size, &count))
- {
- default:
- return -1;
-
- case 0:
- assert (count > 0);
- if (count <= 4)
- return pass_hfa (locp, base_size, count);
- /* Fall through. */
-
- case 1:
- /* Not a HFA. */
- if (dwarf_aggregate_size (&typedie, &size) < 0)
- return -1;
- if (size > 16)
- return pass_by_ref (locp);
- }
- }
-
- if (tag == DW_TAG_base_type
- || tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- {
- if (dwarf_bytesize_aux (&typedie, &size) < 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 8;
- else
- return -1;
- }
-
- Dwarf_Attribute attr_mem;
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (&typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
-
- switch (encoding)
- {
- /* If the argument is a Half-, Single-, Double- or Quad-
- precision Floating-point [...] the argument is allocated
- to the least significant bits of register v[NSRN]. */
- case DW_ATE_float:
- switch (size)
- {
- case 2: /* half */
- case 4: /* sigle */
- case 8: /* double */
- case 16: /* quad */
- return pass_in_simd (locp);
-
- default:
- return -2;
- }
-
- case DW_ATE_complex_float:
- switch (size)
- {
- case 8: /* float _Complex */
- case 16: /* double _Complex */
- case 32: /* long double _Complex */
- return pass_hfa (locp, size / 2, 2);
-
- default:
- return -2;
- }
-
- /* If the argument is an Integral or Pointer Type, the
- size of the argument is less than or equal to 8 bytes
- [...] the argument is copied to the least significant
- bits in x[NGRN]. */
- case DW_ATE_boolean:
- case DW_ATE_signed:
- case DW_ATE_unsigned:
- case DW_ATE_unsigned_char:
- case DW_ATE_signed_char:
- return pass_in_gpr (locp, size);
- }
-
- return -2;
- }
- else
- return pass_in_gpr (locp, size);
- }
-
- *locp = NULL;
- return 0;
-}
diff --git a/src/backends/aarch64_symbol.c b/src/backends/aarch64_symbol.c
deleted file mode 100644
index 3fdc9cf8..00000000
--- a/src/backends/aarch64_symbol.c
+++ /dev/null
@@ -1,87 +0,0 @@
-/* AArch64 specific symbolic name handling.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <stddef.h>
-#include <string.h>
-
-#define BACKEND aarch64_
-#include "libebl_CPU.h"
-
-
-/* Check for the simple reloc types. */
-Elf_Type
-aarch64_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_AARCH64_ABS64:
- return ELF_T_XWORD;
- case R_AARCH64_ABS32:
- return ELF_T_WORD;
- case R_AARCH64_ABS16:
- return ELF_T_HALF;
-
- default:
- return ELF_T_NUM;
- }
-}
-
-/* If this is the _GLOBAL_OFFSET_TABLE_ symbol, then it should point to
- .got[0] even if there is a .got.plt section. */
-bool
-aarch64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym,
- const char *name, const GElf_Shdr *destshdr)
-{
- if (name != NULL
- && strcmp (name, "_GLOBAL_OFFSET_TABLE_") == 0)
- {
- const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
- if (sname != NULL && strcmp (sname, ".got.plt") == 0)
- {
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr != NULL)
- {
- sname = elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name);
- if (sname != NULL && strcmp (sname, ".got") == 0)
- return sym->st_value == shdr->sh_addr;
- }
- }
- }
- }
-
- return false;
-}
diff --git a/src/backends/alpha_auxv.c b/src/backends/alpha_auxv.c
deleted file mode 100644
index 83e71997..00000000
--- a/src/backends/alpha_auxv.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Alpha-specific auxv handling.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND alpha_
-#include "libebl_CPU.h"
-
-int
-EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format)
-{
- if (a_type != AT_HWCAP)
- return 0;
-
- *name = "HWCAP";
- *format = "b"
- "bwx\0" "fix\0" "cix\0" "0x08\0"
- "0x10\0" "0x20\0" "0x40\0" "0x80\0"
- "max\0" "precise_trap\0"
- "\0";
- return 1;
-}
diff --git a/src/backends/alpha_corenote.c b/src/backends/alpha_corenote.c
deleted file mode 100644
index 6190df37..00000000
--- a/src/backends/alpha_corenote.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* PowerPC specific core note handling.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#define BACKEND alpha_
-#include "libebl_CPU.h"
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
- { .offset = 0, .regno = 0, .count = 31, .bits = 64 }, /* r0-r30 */
- { .offset = 32 * 8, .regno = 64, .count = 1, .bits = 64 }, /* pc */
- { .offset = 33 * 8, .regno = 66, .count = 1, .bits = 64 }, /* unique */
- };
-#define PRSTATUS_REGS_SIZE (33 * 8)
-
-static const Ebl_Register_Location fpregset_regs[] =
- {
- { .offset = 0, .regno = 32, .count = 32, .bits = 64 }, /* f0-f30, fpcr */
- };
-#define FPREGSET_SIZE (32 * 8)
-
-#define ULONG uint64_t
-#define ALIGN_ULONG 8
-#define TYPE_ULONG ELF_T_XWORD
-#define TYPE_LONG ELF_T_SXWORD
-#define PID_T int32_t
-#define UID_T uint32_t
-#define GID_T uint32_t
-#define ALIGN_PID_T 4
-#define ALIGN_UID_T 4
-#define ALIGN_GID_T 4
-#define TYPE_PID_T ELF_T_SWORD
-#define TYPE_UID_T ELF_T_WORD
-#define TYPE_GID_T ELF_T_WORD
-
-#include "linux-core-note.c"
diff --git a/src/backends/alpha_init.c b/src/backends/alpha_init.c
deleted file mode 100644
index a3307d83..00000000
--- a/src/backends/alpha_init.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* Initialization of Alpha specific backend library.
- Copyright (C) 2002-2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND alpha_
-#define RELOC_PREFIX R_ALPHA_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on alpha_reloc.def. */
-#include "common-reloc.c"
-
-
-const char *
-alpha_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "Alpha";
- alpha_init_reloc (eh);
- HOOK (eh, dynamic_tag_name);
- HOOK (eh, dynamic_tag_check);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, return_value_location);
- HOOK (eh, machine_section_flag_check);
- HOOK (eh, check_special_section);
- HOOK (eh, check_special_symbol);
- HOOK (eh, check_st_other_bits);
- HOOK (eh, register_info);
- HOOK (eh, core_note);
- HOOK (eh, auxv_info);
- eh->sysvhash_entrysize = sizeof (Elf64_Xword);
-
- return MODVERSION;
-}
diff --git a/src/backends/alpha_regs.c b/src/backends/alpha_regs.c
deleted file mode 100644
index 436af3b1..00000000
--- a/src/backends/alpha_regs.c
+++ /dev/null
@@ -1,164 +0,0 @@
-/* Register names and numbers for Alpha DWARF.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND alpha_
-#include "libebl_CPU.h"
-
-ssize_t
-alpha_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 67;
-
- if (regno < 0 || regno > 66 || namelen < 7)
- return -1;
-
- *prefix = "$";
-
- *bits = 64;
- *type = DW_ATE_signed;
- *setname = "integer";
- if (regno >= 32 && regno < 64)
- {
- *setname = "FPU";
- *type = DW_ATE_float;
- }
-
- switch (regno)
- {
- case 0:
- name[0] = 'v';
- name[1] = '0';
- namelen = 2;
- break;
-
- case 1 ... 8:
- name[0] = 't';
- name[1] = regno - 1 + '0';
- namelen = 2;
- break;
-
- case 9 ... 15:
- name[0] = 's';
- name[1] = regno - 9 + '0';
- namelen = 2;
- break;
-
- case 16 ... 21:
- name[0] = 'a';
- name[1] = regno - 16 + '0';
- namelen = 2;
- break;
-
- case 22 ... 23:
- name[0] = 't';
- name[1] = regno - 22 + '8';
- namelen = 2;
- break;
-
- case 24 ... 25:
- name[0] = 't';
- name[1] = '1';
- name[2] = regno - 24 + '0';
- namelen = 3;
- break;
-
- case 26:
- *type = DW_ATE_address;
- return stpcpy (name, "ra") + 1 - name;
-
- case 27:
- return stpcpy (name, "t12") + 1 - name;
-
- case 28:
- return stpcpy (name, "at") + 1 - name;
-
- case 29:
- *type = DW_ATE_address;
- return stpcpy (name, "gp") + 1 - name;
-
- case 30:
- *type = DW_ATE_address;
- return stpcpy (name, "sp") + 1 - name;
-
- case 31:
- return stpcpy (name, "zero") + 1 - name;
-
- case 32 ... 32 + 9:
- name[0] = 'f';
- name[1] = regno - 32 + '0';
- namelen = 2;
- break;
-
- case 32 + 10 ... 32 + 19:
- name[0] = 'f';
- name[1] = '1';
- name[2] = regno - 32 - 10 + '0';
- namelen = 3;
- break;
-
- case 32 + 20 ... 32 + 29:
- name[0] = 'f';
- name[1] = '2';
- name[2] = regno - 32 - 20 + '0';
- namelen = 3;
- break;
-
- case 32 + 30:
- return stpcpy (name, "f30") + 1 - name;
-
- case 32 + 31:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "fpcr") + 1 - name;
-
- case 64:
- *type = DW_ATE_address;
- return stpcpy (name, "pc") + 1 - name;
-
- case 66:
- *type = DW_ATE_address;
- return stpcpy (name, "unique") + 1 - name;
-
- default:
- *setname = NULL;
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/alpha_reloc.def b/src/backends/alpha_reloc.def
deleted file mode 100644
index ed7e5c32..00000000
--- a/src/backends/alpha_reloc.def
+++ /dev/null
@@ -1,63 +0,0 @@
-/* List the relocation types for alpha. -*- C -*-
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (REFLONG, REL|EXEC|DYN)
-RELOC_TYPE (REFQUAD, REL|EXEC|DYN)
-RELOC_TYPE (GPREL32, REL)
-RELOC_TYPE (LITERAL, REL)
-RELOC_TYPE (LITUSE, REL)
-RELOC_TYPE (GPDISP, REL)
-RELOC_TYPE (BRADDR, REL)
-RELOC_TYPE (HINT, REL)
-RELOC_TYPE (SREL16, REL)
-RELOC_TYPE (SREL32, REL)
-RELOC_TYPE (SREL64, REL)
-RELOC_TYPE (GPRELHIGH, REL)
-RELOC_TYPE (GPRELLOW, REL)
-RELOC_TYPE (GPREL16, REL)
-RELOC_TYPE (COPY, 0)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (TLS_GD_HI, REL)
-RELOC_TYPE (TLSGD, REL)
-RELOC_TYPE (TLS_LDM, REL)
-RELOC_TYPE (DTPMOD64, REL|EXEC|DYN)
-RELOC_TYPE (GOTDTPREL, REL)
-RELOC_TYPE (DTPREL64, REL|EXEC|DYN)
-RELOC_TYPE (DTPRELHI, REL)
-RELOC_TYPE (DTPRELLO, REL)
-RELOC_TYPE (DTPREL16, REL)
-RELOC_TYPE (GOTTPREL, REL)
-RELOC_TYPE (TPREL64, REL|EXEC|DYN)
-RELOC_TYPE (TPRELHI, REL)
-RELOC_TYPE (TPRELLO, REL)
-RELOC_TYPE (TPREL16, REL)
diff --git a/src/backends/alpha_retval.c b/src/backends/alpha_retval.c
deleted file mode 100644
index 53dbfa45..00000000
--- a/src/backends/alpha_retval.c
+++ /dev/null
@@ -1,150 +0,0 @@
-/* Function return value location for Alpha ELF ABI.
- Copyright (C) 2005, 2007, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND alpha_
-#include "libebl_CPU.h"
-
-
-/* $0. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg0 }
- };
-#define nloc_intreg 1
-
-/* $f0, or pair $f0, $f1. */
-static const Dwarf_Op loc_fpreg[] =
- {
- { .atom = DW_OP_regx, .number = 32 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_regx, .number = 33 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_fpreg 1
-#define nloc_fpregpair 4
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in $0. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg0, .number = 0 }
- };
-#define nloc_aggregate 1
-
-int
-alpha_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Word size;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 8;
- else
- return -1;
- }
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
-
- *locp = loc_fpreg;
- if (encoding == DW_ATE_float)
- {
- if (size <= 8)
- return nloc_fpreg;
- goto aggregate;
- }
- if (encoding == DW_ATE_complex_float)
- {
- if (size <= 8 * 2)
- return nloc_fpregpair;
- goto aggregate;
- }
- }
- if (size <= 8)
- {
- *locp = loc_intreg;
- return nloc_intreg;
- }
- }
-
- /* Else fall through. */
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- case DW_TAG_string_type:
- case DW_TAG_array_type:
- aggregate:
- *locp = loc_aggregate;
- return nloc_aggregate;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/alpha_symbol.c b/src/backends/alpha_symbol.c
deleted file mode 100644
index 657d9eec..00000000
--- a/src/backends/alpha_symbol.c
+++ /dev/null
@@ -1,156 +0,0 @@
-/* Alpha specific symbolic name handling.
- Copyright (C) 2002-2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <stddef.h>
-#include <string.h>
-
-#define BACKEND alpha_
-#include "libebl_CPU.h"
-
-
-const char *
-alpha_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (tag)
- {
- case DT_ALPHA_PLTRO:
- return "ALPHA_PLTRO";
- default:
- break;
- }
- return NULL;
-}
-
-bool
-alpha_dynamic_tag_check (int64_t tag)
-{
- return tag == DT_ALPHA_PLTRO;
-}
-
-/* Check for the simple reloc types. */
-Elf_Type
-alpha_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_ALPHA_REFLONG:
- return ELF_T_WORD;
- case R_ALPHA_REFQUAD:
- return ELF_T_XWORD;
- default:
- return ELF_T_NUM;
- }
-}
-
-
-/* Check whether SHF_MASKPROC flags are valid. */
-bool
-alpha_machine_section_flag_check (GElf_Xword sh_flags)
-{
- return (sh_flags &~ (SHF_ALPHA_GPREL)) == 0;
-}
-
-bool
-alpha_check_special_section (Ebl *ebl,
- int ndx __attribute__ ((unused)),
- const GElf_Shdr *shdr,
- const char *sname __attribute__ ((unused)))
-{
- if ((shdr->sh_flags
- & (SHF_WRITE | SHF_EXECINSTR)) == (SHF_WRITE | SHF_EXECINSTR)
- && shdr->sh_addr != 0)
- {
- /* This is ordinarily flagged, but is valid for an old-style PLT.
-
- Look for the SHT_DYNAMIC section and the DT_PLTGOT tag in it.
- Its d_ptr should match the .plt section's sh_addr. */
-
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
- {
- GElf_Shdr scn_shdr;
- if (likely (gelf_getshdr (scn, &scn_shdr) != NULL)
- && scn_shdr.sh_type == SHT_DYNAMIC
- && scn_shdr.sh_entsize != 0)
- {
- GElf_Addr pltgot = 0;
- Elf_Data *data = elf_getdata (scn, NULL);
- if (data != NULL)
- for (size_t i = 0; i < data->d_size / scn_shdr.sh_entsize; ++i)
- {
- GElf_Dyn dyn;
- if (unlikely (gelf_getdyn (data, i, &dyn) == NULL))
- break;
- if (dyn.d_tag == DT_PLTGOT)
- pltgot = dyn.d_un.d_ptr;
- else if (dyn.d_tag == DT_ALPHA_PLTRO && dyn.d_un.d_val != 0)
- return false; /* This PLT should not be writable. */
- }
- return pltgot == shdr->sh_addr;
- }
- }
- }
-
- return false;
-}
-
-/* Check whether given symbol's st_value and st_size are OK despite failing
- normal checks. */
-bool
-alpha_check_special_symbol (Elf *elf __attribute__ ((unused)),
- GElf_Ehdr *ehdr __attribute__ ((unused)),
- const GElf_Sym *sym __attribute__ ((unused)),
- const char *name,
- const GElf_Shdr *destshdr __attribute__ ((unused)))
-{
- if (name == NULL)
- return false;
-
- if (strcmp (name, "_GLOBAL_OFFSET_TABLE_") == 0)
- /* On Alpha any place in the section is valid. */
- return true;
-
- return false;
-}
-
-/* Check whether only valid bits are set on the st_other symbol flag.
- Standard ST_VISIBILITY have already been masked off. */
-bool
-alpha_check_st_other_bits (unsigned char st_other)
-{
- return ((((st_other & STO_ALPHA_STD_GPLOAD) == STO_ALPHA_NOPV)
- || ((st_other & STO_ALPHA_STD_GPLOAD) == STO_ALPHA_STD_GPLOAD))
- && (st_other &~ STO_ALPHA_STD_GPLOAD) == 0);
-}
diff --git a/src/backends/arm_attrs.c b/src/backends/arm_attrs.c
deleted file mode 100644
index c858715d..00000000
--- a/src/backends/arm_attrs.c
+++ /dev/null
@@ -1,245 +0,0 @@
-/* Object attribute tags for ARM.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND arm_
-#include "libebl_CPU.h"
-
-#define KNOWN_VALUES(...) do \
- { \
- static const char *table[] = { __VA_ARGS__ }; \
- if (value < sizeof table / sizeof table[0]) \
- *value_name = table[value]; \
- } while (0)
-
-bool
-arm_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name)
- Ebl *ebl __attribute__ ((unused));
- const char *vendor;
- int tag;
- uint64_t value __attribute__ ((unused));
- const char **tag_name;
- const char **value_name;
-{
- if (!strcmp (vendor, "aeabi"))
- switch (tag)
- {
- case 4:
- *tag_name = "CPU_raw_name";
- return true;
- case 5:
- *tag_name = "CPU_name";
- return true;
- case 6:
- *tag_name = "CPU_arch";
- KNOWN_VALUES ("Pre-v4",
- "v4",
- "v4T",
- "v5T",
- "v5TE",
- "v5TEJ",
- "v6",
- "v6KZ",
- "v6T2",
- "v6K",
- "v7",
- "v6-M",
- "v6S-M");
- return true;
- case 7:
- *tag_name = "CPU_arch_profile";
- switch (value)
- {
- case 'A':
- *value_name = "Application";
- break;
- case 'R':
- *value_name = "Realtime";
- break;
- case 'M':
- *value_name = "Microcontroller";
- break;
- }
- return true;
- case 8:
- *tag_name = "ARM_ISA_use";
- KNOWN_VALUES ("No", "Yes");
- return true;
- case 9:
- *tag_name = "THUMB_ISA_use";
- KNOWN_VALUES ("No", "Thumb-1", "Thumb-2");
- return true;
- case 10:
- *tag_name = "VFP_arch";
- KNOWN_VALUES ("No", "VFPv1", "VFPv2", "VFPv3", "VFPv3-D16");
- return true;
- case 11:
- *tag_name = "WMMX_arch";
- KNOWN_VALUES ("No", "WMMXv1", "WMMXv2");
- return true;
- case 12:
- *tag_name = "Advanced_SIMD_arch";
- KNOWN_VALUES ("No", "NEONv1");
- return true;
- case 13:
- *tag_name = "PCS_config";
- KNOWN_VALUES ("None",
- "Bare platform",
- "Linux application",
- "Linux DSO",
- "PalmOS 2004",
- "PalmOS (reserved)",
- "SymbianOS 2004",
- "SymbianOS (reserved)");
- return true;
- case 14:
- *tag_name = "ABI_PCS_R9_use";
- KNOWN_VALUES ("V6", "SB", "TLS", "Unused");
- return true;
- case 15:
- *tag_name = "ABI_PCS_RW_data";
- KNOWN_VALUES ("Absolute", "PC-relative", "SB-relative", "None");
- return true;
- case 16:
- *tag_name = "ABI_PCS_RO_data";
- KNOWN_VALUES ("Absolute", "PC-relative", "None");
- return true;
- case 17:
- *tag_name = "ABI_PCS_GOT_use";
- KNOWN_VALUES ("None", "direct", "GOT-indirect");
- return true;
- case 18:
- *tag_name = "ABI_PCS_wchar_t";
- return true;
- case 19:
- *tag_name = "ABI_FP_rounding";
- KNOWN_VALUES ("Unused", "Needed");
- return true;
- case 20:
- *tag_name = "ABI_FP_denormal";
- KNOWN_VALUES ("Unused", "Needed", "Sign only");
- return true;
- case 21:
- *tag_name = "ABI_FP_exceptions";
- KNOWN_VALUES ("Unused", "Needed");
- return true;
- case 22:
- *tag_name = "ABI_FP_user_exceptions";
- KNOWN_VALUES ("Unused", "Needed");
- return true;
- case 23:
- *tag_name = "ABI_FP_number_model";
- KNOWN_VALUES ("Unused", "Finite", "RTABI", "IEEE 754");
- return true;
- case 24:
- *tag_name = "ABI_align8_needed";
- KNOWN_VALUES ("No", "Yes", "4-byte");
- return true;
- case 25:
- *tag_name = "ABI_align8_preserved";
- KNOWN_VALUES ("No", "Yes, except leaf SP", "Yes");
- return true;
- case 26:
- *tag_name = "ABI_enum_size";
- KNOWN_VALUES ("Unused", "small", "int", "forced to int");
- return true;
- case 27:
- *tag_name = "ABI_HardFP_use";
- KNOWN_VALUES ("as VFP_arch", "SP only", "DP only", "SP and DP");
- return true;
- case 28:
- *tag_name = "ABI_VFP_args";
- KNOWN_VALUES ("AAPCS", "VFP registers", "custom");
- return true;
- case 29:
- *tag_name = "ABI_WMMX_args";
- KNOWN_VALUES ("AAPCS", "WMMX registers", "custom");
- return true;
- case 30:
- *tag_name = "ABI_optimization_goals";
- KNOWN_VALUES ("None",
- "Prefer Speed",
- "Aggressive Speed",
- "Prefer Size",
- "Aggressive Size",
- "Prefer Debug",
- "Aggressive Debug");
- return true;
- case 31:
- *tag_name = "ABI_FP_optimization_goals";
- KNOWN_VALUES ("None",
- "Prefer Speed",
- "Aggressive Speed",
- "Prefer Size",
- "Aggressive Size",
- "Prefer Accuracy",
- "Aggressive Accuracy");
- return true;
- case 34:
- *tag_name = "CPU_unaligned_access";
- KNOWN_VALUES ("None", "v6");
- return true;
- case 36:
- *tag_name = "VFP_HP_extension";
- KNOWN_VALUES ("Not Allowed", "Allowed");
- return true;
- case 38:
- *tag_name = "ABI_FP_16bit_format";
- KNOWN_VALUES ("None", "IEEE 754", "Alternative Format");
- return true;
- case 64:
- *tag_name = "nodefaults";
- return true;
- case 65:
- *tag_name = "also_compatible_with";
- return true;
- case 66:
- *tag_name = "T2EE_use";
- KNOWN_VALUES ("Not Allowed", "Allowed");
- return true;
- case 67:
- *tag_name = "conformance";
- return true;
- case 68:
- *tag_name = "Virtualization_use";
- KNOWN_VALUES ("Not Allowed", "Allowed");
- return true;
- case 70:
- *tag_name = "MPextension_use";
- KNOWN_VALUES ("Not Allowed", "Allowed");
- return true;
- }
-
- return false;
-}
diff --git a/src/backends/arm_auxv.c b/src/backends/arm_auxv.c
deleted file mode 100644
index 3282bafc..00000000
--- a/src/backends/arm_auxv.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* ARM-specific auxv handling.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND arm_
-#include "libebl_CPU.h"
-
-int
-EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format)
-{
- if (a_type != AT_HWCAP)
- return 0;
-
- *name = "HWCAP";
- *format = "b"
- "swp\0" "half\0" "thumb\0" "26bit\0"
- "fast-mult\0" "fpa\0" "vfp\0" "edsp\0"
- "java\0" "iwmmxt\0"
- "\0";
- return 1;
-}
diff --git a/src/backends/arm_cfi.c b/src/backends/arm_cfi.c
deleted file mode 100644
index 971a1fc4..00000000
--- a/src/backends/arm_cfi.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* arm ABI-specified defaults for DWARF CFI.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-
-#define BACKEND arm_
-#include "libebl_CPU.h"
-
-
-/* ABI-specified state of DWARF CFI based on:
-
- "DWARF for the ARM Architecture ABI r2.09"
-http://infocenter.arm.com/help/topic/com.arm.doc.ihi0040b/IHI0040B_aadwarf.pdf
-
- "Procedure Call Standard for the ARM Architecture ABI r2.09"
-http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042e/IHI0042E_aapcs.pdf
-*/
-
-int
-arm_abi_cfi (Ebl *ebl __attribute__ ((unused)), Dwarf_CIE *abi_info)
-{
- static const uint8_t abi_cfi[] =
- {
- /* The initial Canonical Frame Address is the value of the
- Stack Pointer (r13) as setup in the previous frame. */
- DW_CFA_def_cfa, ULEB128_7 (13), ULEB128_7 (0),
-
- /* The Stack Pointer (r13) is restored from CFA address by default. */
- DW_CFA_val_offset, ULEB128_7 (13), ULEB128_7 (0),
-
-#define SV(n) DW_CFA_same_value, ULEB128_7 (n)
- /* Callee-saved regs r4-r8, r10, r11. */
- SV (4), SV (5), SV (6), SV (7), SV (8), SV (10), SV (11),
-
- /* The link register contains the return address setup by caller. */
- SV (14),
- DW_CFA_register, ULEB128_7 (15), ULEB128_7 (14), /* pc = lr */
-#undef SV
-
- /* VFP S16-S31/D8-D15/Q4-Q7 are callee saved.
- And uleb128 encoded with two bytes. */
-#define ULEB128_8_2(x) ((x & 0x7f) | 0x80), 0x02
-#define SV(n) DW_CFA_same_value, ULEB128_8_2 (n)
- SV (264), SV (265), SV (266), SV (267),
- SV (268), SV (269), SV (270), SV (271),
-
- /* XXX Note: registers intentionally unused by the program,
- for example as a consequence of the procedure call standard
- should be initialized as if by DW_CFA_same_value. */
- };
-#undef ULEB128_8_2
-#undef SV
-
- abi_info->initial_instructions = abi_cfi;
- abi_info->initial_instructions_end = &abi_cfi[sizeof abi_cfi];
- abi_info->data_alignment_factor = 4;
-
- abi_info->return_address_register = 15; /* pc. */
-
- return 0;
-}
diff --git a/src/backends/arm_corenote.c b/src/backends/arm_corenote.c
deleted file mode 100644
index c5d8d887..00000000
--- a/src/backends/arm_corenote.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/* ARM specific core note handling.
- Copyright (C) 2009, 2012 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#define BACKEND arm_
-#include "libebl_CPU.h"
-
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
- { .offset = 0, .regno = 0, .count = 16, .bits = 32 }, /* r0..r15 */
- { .offset = 16 * 4, .regno = 128, .count = 1, .bits = 32 }, /* cpsr */
- };
-#define PRSTATUS_REGS_SIZE (18 * 4)
-
-#define PRSTATUS_REGSET_ITEMS \
- { \
- .name = "orig_r0", .type = ELF_T_SWORD, .format = 'd', \
- .offset = offsetof (struct EBLHOOK(prstatus), pr_reg) + (4 * 17), \
- .group = "register" \
- }
-
-static const Ebl_Register_Location fpregset_regs[] =
- {
- { .offset = 0, .regno = 96, .count = 8, .bits = 96 }, /* f0..f7 */
- };
-#define FPREGSET_SIZE 116
-
-#define ULONG uint32_t
-#define PID_T int32_t
-#define UID_T uint16_t
-#define GID_T uint16_t
-#define ALIGN_ULONG 4
-#define ALIGN_PID_T 4
-#define ALIGN_UID_T 2
-#define ALIGN_GID_T 2
-#define TYPE_ULONG ELF_T_WORD
-#define TYPE_PID_T ELF_T_SWORD
-#define TYPE_UID_T ELF_T_HALF
-#define TYPE_GID_T ELF_T_HALF
-
-#define ARM_VFPREGS_SIZE ( 32 * 8 /*fpregs*/ + 4 /*fpscr*/ )
-static const Ebl_Register_Location vfp_regs[] =
- {
- { .offset = 0, .regno = 256, .count = 32, .bits = 64 }, /* fpregs */
- };
-
-static const Ebl_Core_Item vfp_items[] =
- {
- {
- .name = "fpscr", .group = "register",
- .offset = 0,
- .type = ELF_T_WORD, .format = 'x',
- },
- };
-
-#define EXTRA_NOTES \
- EXTRA_REGSET_ITEMS (NT_ARM_VFP, ARM_VFPREGS_SIZE, vfp_regs, vfp_items)
-
-#include "linux-core-note.c"
diff --git a/src/backends/arm_init.c b/src/backends/arm_init.c
deleted file mode 100644
index 3283c978..00000000
--- a/src/backends/arm_init.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Initialization of Arm specific backend library.
- Copyright (C) 2002, 2005, 2009, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND arm_
-#define RELOC_PREFIX R_ARM_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on arm_reloc.def. */
-#include "common-reloc.c"
-
-
-const char *
-arm_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "ARM";
- arm_init_reloc (eh);
- HOOK (eh, segment_type_name);
- HOOK (eh, section_type_name);
- HOOK (eh, machine_flag_check);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, register_info);
- HOOK (eh, core_note);
- HOOK (eh, auxv_info);
- HOOK (eh, check_object_attribute);
- HOOK (eh, return_value_location);
- HOOK (eh, abi_cfi);
- HOOK (eh, check_reloc_target_type);
-
- /* We only unwind the core integer registers. */
- eh->frame_nregs = 16;
- HOOK (eh, set_initial_registers_tid);
-
- /* Bit zero encodes whether an function address is THUMB or ARM. */
- eh->func_addr_mask = ~(GElf_Addr)1;
-
- return MODVERSION;
-}
diff --git a/src/backends/arm_initreg.c b/src/backends/arm_initreg.c
deleted file mode 100644
index a0a9be94..00000000
--- a/src/backends/arm_initreg.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/* Fetch live process registers from TID.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#if defined __arm__
-# include <sys/types.h>
-# include <sys/user.h>
-# include <sys/ptrace.h>
-#endif
-
-#ifdef __aarch64__
-# include <linux/uio.h>
-# include <sys/user.h>
-# include <sys/ptrace.h>
-/* Deal with old glibc defining user_pt_regs instead of user_regs_struct. */
-# ifndef HAVE_SYS_USER_REGS
-# define user_regs_struct user_pt_regs
-# endif
-#endif
-
-#define BACKEND arm_
-#include "libebl_CPU.h"
-
-bool
-arm_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
- ebl_tid_registers_t *setfunc __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
-#if !defined __arm__ && !defined __aarch64__
- return false;
-#else /* __arm__ || __aarch64__ */
-#if defined __arm__
- struct user_regs user_regs;
- if (ptrace (PTRACE_GETREGS, tid, NULL, &user_regs) != 0)
- return false;
-
- Dwarf_Word dwarf_regs[16];
- /* R0..R12 SP LR PC */
- for (int i = 0; i < 16; i++)
- dwarf_regs[i] = user_regs.uregs[i];
-
- return setfunc (0, 16, dwarf_regs, arg);
-#elif defined __aarch64__
- /* Compat mode: arm compatible code running on aarch64 */
- int i;
- struct user_regs_struct gregs;
- struct iovec iovec;
- iovec.iov_base = &gregs;
- iovec.iov_len = sizeof (gregs);
- if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, &iovec) != 0)
- return false;
-
- Dwarf_Word dwarf_regs[16];
- /* R0..R12 SP LR PC, encoded as 32 bit quantities */
- uint32_t *u32_ptr = (uint32_t *) &gregs.regs[0];
- for (i = 0; i < 16; i++)
- dwarf_regs[i] = u32_ptr[i];
-
- return setfunc (0, 16, dwarf_regs, arg);
-#else
-# error "source file error, it cannot happen"
-#endif
-#endif
-}
diff --git a/src/backends/arm_regs.c b/src/backends/arm_regs.c
deleted file mode 100644
index 21c5ad3a..00000000
--- a/src/backends/arm_regs.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* Register names and numbers for ARM DWARF.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND arm_
-#include "libebl_CPU.h"
-
-ssize_t
-arm_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 320;
-
- if (regno < 0 || regno > 320 || namelen < 5)
- return -1;
-
- *prefix = "";
- *bits = 32;
- *type = DW_ATE_signed;
- *setname = "integer";
-
- switch (regno)
- {
- case 0 ... 9:
- name[0] = 'r';
- name[1] = regno + '0';
- namelen = 2;
- break;
-
- case 10 ... 12:
- name[0] = 'r';
- name[1] = '1';
- name[2] = regno % 10 + '0';
- namelen = 3;
- break;
-
- case 13 ... 15:
- *type = DW_ATE_address;
- name[0] = "slp"[regno - 13];
- name[1] = "prc"[regno - 13];
- namelen = 2;
- break;
-
- case 16 + 0 ... 16 + 7:
- regno += 96 - 16;
- /* Fall through. */
- case 96 + 0 ... 96 + 7:
- *setname = "FPA";
- *type = DW_ATE_float;
- *bits = 96;
- name[0] = 'f';
- name[1] = regno - 96 + '0';
- namelen = 2;
- break;
-
- case 128:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "spsr") + 1 - name;
-
- case 256 + 0 ... 256 + 9:
- *setname = "VFP";
- *type = DW_ATE_float;
- *bits = 64;
- name[0] = 'd';
- name[1] = regno - 256 + '0';
- namelen = 2;
- break;
-
- case 256 + 10 ... 256 + 31:
- *setname = "VFP";
- *type = DW_ATE_float;
- *bits = 64;
- name[0] = 'd';
- name[1] = (regno - 256) / 10 + '0';
- name[2] = (regno - 256) % 10 + '0';
- namelen = 3;
- break;
-
- default:
- *setname = NULL;
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/arm_reloc.def b/src/backends/arm_reloc.def
deleted file mode 100644
index 4b7894bb..00000000
--- a/src/backends/arm_reloc.def
+++ /dev/null
@@ -1,157 +0,0 @@
-/* List the relocation types for arm. -*- C -*-
- Copyright (C) 2005-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, REL) /* It really is used in ET_REL on ARM. */
-RELOC_TYPE (PC24, REL|EXEC|DYN)
-RELOC_TYPE (ABS32, REL|EXEC|DYN)
-RELOC_TYPE (REL32, REL)
-RELOC_TYPE (PC13, REL)
-RELOC_TYPE (ABS16, REL)
-RELOC_TYPE (ABS12, REL)
-RELOC_TYPE (THM_ABS5, REL)
-RELOC_TYPE (ABS8, REL)
-RELOC_TYPE (SBREL32, REL)
-RELOC_TYPE (THM_PC22, REL)
-RELOC_TYPE (THM_PC8, REL)
-RELOC_TYPE (AMP_VCALL9, REL)
-RELOC_TYPE (TLS_DESC, EXEC|DYN)
-RELOC_TYPE (THM_SWI8, REL)
-RELOC_TYPE (XPC25, REL)
-RELOC_TYPE (THM_XPC22, REL)
-RELOC_TYPE (TLS_DTPMOD32, EXEC|DYN)
-RELOC_TYPE (TLS_DTPOFF32, EXEC|DYN)
-RELOC_TYPE (TLS_TPOFF32, EXEC|DYN)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JUMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (GOTOFF, REL)
-RELOC_TYPE (GOTPC, REL)
-RELOC_TYPE (GOT32, REL)
-RELOC_TYPE (PLT32, REL)
-RELOC_TYPE (CALL, REL)
-RELOC_TYPE (JUMP24, REL)
-RELOC_TYPE (THM_JUMP24, REL)
-RELOC_TYPE (BASE_ABS, REL)
-RELOC_TYPE (ALU_PCREL_7_0, REL)
-RELOC_TYPE (ALU_PCREL_15_8, REL)
-RELOC_TYPE (ALU_PCREL_23_15, REL)
-RELOC_TYPE (LDR_SBREL_11_0, REL)
-RELOC_TYPE (ALU_SBREL_19_12, REL)
-RELOC_TYPE (ALU_SBREL_27_20, REL)
-RELOC_TYPE (TARGET1, REL)
-RELOC_TYPE (SBREL31, REL)
-RELOC_TYPE (V4BX, REL)
-RELOC_TYPE (TARGET2, REL)
-RELOC_TYPE (PREL31, REL)
-RELOC_TYPE (MOVW_ABS_NC, REL)
-RELOC_TYPE (MOVT_ABS, REL)
-RELOC_TYPE (MOVW_PREL_NC, REL)
-RELOC_TYPE (MOVT_PREL, REL)
-RELOC_TYPE (THM_MOVW_ABS_NC, REL)
-RELOC_TYPE (THM_MOVT_ABS, REL)
-RELOC_TYPE (THM_MOVW_PREL_NC, REL)
-RELOC_TYPE (THM_MOVT_PREL, REL)
-RELOC_TYPE (THM_JUMP19, REL)
-RELOC_TYPE (THM_JUMP6, REL)
-RELOC_TYPE (THM_ALU_PREL_11_0, REL)
-RELOC_TYPE (THM_PC12, REL)
-RELOC_TYPE (ABS32_NOI, REL)
-RELOC_TYPE (REL32_NOI, REL)
-RELOC_TYPE (ALU_PC_G0_NC, REL)
-RELOC_TYPE (ALU_PC_G0, REL)
-RELOC_TYPE (ALU_PC_G1_NC, REL)
-RELOC_TYPE (ALU_PC_G1, REL)
-RELOC_TYPE (ALU_PC_G2, REL)
-RELOC_TYPE (LDR_PC_G1, REL)
-RELOC_TYPE (LDR_PC_G2, REL)
-RELOC_TYPE (LDRS_PC_G0, REL)
-RELOC_TYPE (LDRS_PC_G1, REL)
-RELOC_TYPE (LDRS_PC_G2, REL)
-RELOC_TYPE (LDC_PC_G0, REL)
-RELOC_TYPE (LDC_PC_G1, REL)
-RELOC_TYPE (LDC_PC_G2, REL)
-RELOC_TYPE (ALU_SB_G0_NC, REL)
-RELOC_TYPE (ALU_SB_G0, REL)
-RELOC_TYPE (ALU_SB_G1_NC, REL)
-RELOC_TYPE (ALU_SB_G1, REL)
-RELOC_TYPE (ALU_SB_G2, REL)
-RELOC_TYPE (LDR_SB_G0, REL)
-RELOC_TYPE (LDR_SB_G1, REL)
-RELOC_TYPE (LDR_SB_G2, REL)
-RELOC_TYPE (LDRS_SB_G0, REL)
-RELOC_TYPE (LDRS_SB_G1, REL)
-RELOC_TYPE (LDRS_SB_G2, REL)
-RELOC_TYPE (LDC_SB_G0, REL)
-RELOC_TYPE (LDC_SB_G1, REL)
-RELOC_TYPE (LDC_SB_G2, REL)
-RELOC_TYPE (MOVW_BREL_NC, REL)
-RELOC_TYPE (MOVT_BREL, REL)
-RELOC_TYPE (MOVW_BREL, REL)
-RELOC_TYPE (THM_MOVW_BREL_NC, REL)
-RELOC_TYPE (THM_MOVT_BREL, REL)
-RELOC_TYPE (THM_MOVW_BREL, REL)
-RELOC_TYPE (TLS_GOTDESC, REL)
-RELOC_TYPE (TLS_CALL, REL)
-RELOC_TYPE (TLS_DESCSEQ, REL)
-RELOC_TYPE (THM_TLS_CALL, REL)
-RELOC_TYPE (PLT32_ABS, REL)
-RELOC_TYPE (GOT_ABS, REL)
-RELOC_TYPE (GOT_PREL, REL)
-RELOC_TYPE (GOT_BREL12, REL)
-RELOC_TYPE (GOTOFF12, REL)
-RELOC_TYPE (GOTRELAX, REL)
-RELOC_TYPE (GNU_VTENTRY, REL)
-RELOC_TYPE (GNU_VTINHERIT, REL)
-RELOC_TYPE (THM_PC11, REL)
-RELOC_TYPE (THM_PC9, REL)
-RELOC_TYPE (TLS_GD32, REL)
-RELOC_TYPE (TLS_LDM32, REL)
-RELOC_TYPE (TLS_LDO32, REL)
-RELOC_TYPE (TLS_IE32, REL)
-RELOC_TYPE (TLS_LE32, REL)
-RELOC_TYPE (TLS_LDO12, REL)
-RELOC_TYPE (TLS_LE12, REL)
-RELOC_TYPE (TLS_IE12GP, REL)
-
-RELOC_TYPE (ME_TOO, REL)
-RELOC_TYPE (THM_TLS_DESCSEQ16, REL)
-RELOC_TYPE (THM_TLS_DESCSEQ32, REL)
-RELOC_TYPE (THM_GOT_BREL12, REL)
-
-RELOC_TYPE (IRELATIVE, EXEC|DYN)
-
-RELOC_TYPE (RXPC25, REL)
-RELOC_TYPE (RSBREL32, REL)
-RELOC_TYPE (THM_RPC22, REL)
-RELOC_TYPE (RREL32, REL)
-RELOC_TYPE (RABS22, REL)
-RELOC_TYPE (RPC24, REL)
-RELOC_TYPE (RBASE, REL)
diff --git a/src/backends/arm_retval.c b/src/backends/arm_retval.c
deleted file mode 100644
index 7aced742..00000000
--- a/src/backends/arm_retval.c
+++ /dev/null
@@ -1,127 +0,0 @@
-/* Function return value location for ARM EABI.
- Copyright (C) 2009-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND arm_
-#include "libebl_CPU.h"
-
-
-/* r0, or pair r0, r1, or aggregate up to r0-r3. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg0 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg1 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg2 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg3 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_intreg 1
-#define nloc_intregs(n) (2 * (n))
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in r0. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg0, .number = 0 }
- };
-#define nloc_aggregate 1
-
-
-int
-arm_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 4;
- else
- return -1;
- }
- if (size <= 16)
- {
- intreg:
- *locp = loc_intreg;
- return size <= 4 ? nloc_intreg : nloc_intregs ((size + 3) / 4);
- }
-
- aggregate:
- *locp = loc_aggregate;
- return nloc_aggregate;
- }
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- case DW_TAG_array_type:
- if (dwarf_aggregate_size (typedie, &size) == 0
- && size > 0 && size <= 4)
- goto intreg;
- goto aggregate;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/arm_symbol.c b/src/backends/arm_symbol.c
deleted file mode 100644
index cd467ffc..00000000
--- a/src/backends/arm_symbol.c
+++ /dev/null
@@ -1,131 +0,0 @@
-/* Arm specific symbolic name handling.
- Copyright (C) 2002-2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <stddef.h>
-
-#define BACKEND arm_
-#include "libebl_CPU.h"
-
-
-const char *
-arm_segment_type_name (int segment, char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (segment)
- {
- case PT_ARM_EXIDX:
- return "ARM_EXIDX";
- }
- return NULL;
-}
-
-/* Return symbolic representation of section type. */
-const char *
-arm_section_type_name (int type,
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (type)
- {
- case SHT_ARM_EXIDX:
- return "ARM_EXIDX";
- case SHT_ARM_PREEMPTMAP:
- return "ARM_PREEMPTMAP";
- case SHT_ARM_ATTRIBUTES:
- return "ARM_ATTRIBUTES";
- }
-
- return NULL;
-}
-
-/* Check whether machine flags are valid. */
-bool
-arm_machine_flag_check (GElf_Word flags)
-{
- switch (flags & EF_ARM_EABIMASK)
- {
- case EF_ARM_EABI_UNKNOWN:
- case EF_ARM_EABI_VER1:
- case EF_ARM_EABI_VER2:
- case EF_ARM_EABI_VER3:
- case EF_ARM_EABI_VER4:
- case EF_ARM_EABI_VER5:
- break;
- default:
- return false;
- }
-
- return ((flags &~ (EF_ARM_EABIMASK
- | EF_ARM_RELEXEC
- | EF_ARM_HASENTRY
- | EF_ARM_INTERWORK
- | EF_ARM_APCS_26
- | EF_ARM_APCS_FLOAT
- | EF_ARM_PIC
- | EF_ARM_ALIGN8
- | EF_ARM_NEW_ABI
- | EF_ARM_OLD_ABI
- | EF_ARM_SOFT_FLOAT
- | EF_ARM_VFP_FLOAT
- | EF_ARM_MAVERICK_FLOAT
- | EF_ARM_SYMSARESORTED
- | EF_ARM_DYNSYMSUSESEGIDX
- | EF_ARM_MAPSYMSFIRST
- | EF_ARM_EABIMASK
- | EF_ARM_BE8
- | EF_ARM_LE8)) == 0);
-}
-
-/* Check for the simple reloc types. */
-Elf_Type
-arm_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_ARM_ABS32:
- return ELF_T_WORD;
- case R_ARM_ABS16:
- return ELF_T_HALF;
- case R_ARM_ABS8:
- return ELF_T_BYTE;
- default:
- return ELF_T_NUM;
- }
-}
-
-/* The SHT_ARM_EXIDX section type is a valid target for relocation. */
-bool
-arm_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type)
-{
- return sh_type == SHT_ARM_EXIDX;
-}
diff --git a/src/backends/common-reloc.c b/src/backends/common-reloc.c
deleted file mode 100644
index 2667ec4a..00000000
--- a/src/backends/common-reloc.c
+++ /dev/null
@@ -1,146 +0,0 @@
-/* Common code for ebl reloc functions.
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libebl_CPU.h"
-#include <assert.h>
-
-#define R_TYPE(name) PASTE (RELOC_PREFIX, name)
-#define PASTE(a, b) PASTE_1 (a, b)
-#define PASTE_1(a, b) a##b
-#define R_NAME(name) R_NAME_1 (RELOC_PREFIX, name)
-#define R_NAME_1(prefix, type) R_NAME_2 (prefix, type)
-#define R_NAME_2(prefix, type) #prefix #type
-
-#define RELOC_TYPES STRINGIFIED_PASTE (BACKEND, reloc.def)
-#define STRINGIFIED_PASTE(a, b) STRINGIFY (PASTE (a, b))
-#define STRINGIFY(x) STRINGIFY_1 (x)
-#define STRINGIFY_1(x) #x
-
-/* Provide a table of reloc type names, in a PIC-friendly fashion. */
-
-static const struct EBLHOOK(reloc_nametable)
-{
- char zero;
-#define RELOC_TYPE(type, uses) \
- char name_##type[sizeof R_NAME (type)];
-#include RELOC_TYPES
-#undef RELOC_TYPE
-} EBLHOOK(reloc_nametable) =
- {
- '\0',
-#define RELOC_TYPE(type, uses) R_NAME (type),
-#include RELOC_TYPES
-#undef RELOC_TYPE
- };
-#define reloc_namestr (&EBLHOOK(reloc_nametable).zero)
-
-static const uint_fast16_t EBLHOOK(reloc_nameidx)[] =
-{
-#define RELOC_TYPE(type, uses) \
- [R_TYPE (type)] = offsetof (struct EBLHOOK(reloc_nametable), name_##type),
-#include RELOC_TYPES
-#undef RELOC_TYPE
-};
-#define nreloc \
- ((int) (sizeof EBLHOOK(reloc_nameidx) / sizeof EBLHOOK(reloc_nameidx)[0]))
-
-#define REL (1 << (ET_REL - 1))
-#define EXEC (1 << (ET_EXEC - 1))
-#define DYN (1 << (ET_DYN - 1))
-static const uint8_t EBLHOOK(reloc_valid)[] =
-{
-#define RELOC_TYPE(type, uses) [R_TYPE (type)] = uses,
-#include RELOC_TYPES
-#undef RELOC_TYPE
-};
-#undef REL
-#undef EXEC
-#undef DYN
-
-const char *
-EBLHOOK(reloc_type_name) (int reloc,
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- if (reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0)
- return &reloc_namestr[EBLHOOK(reloc_nameidx)[reloc]];
- return NULL;
-}
-
-bool
-EBLHOOK(reloc_type_check) (int reloc)
-{
- return reloc >= 0 && reloc < nreloc && EBLHOOK(reloc_nameidx)[reloc] != 0;
-}
-
-bool
-EBLHOOK(reloc_valid_use) (Elf *elf, int reloc)
-{
- uint8_t uses = EBLHOOK(reloc_valid)[reloc];
-
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
- assert (ehdr != NULL);
- uint8_t type = ehdr->e_type;
-
- return type > ET_NONE && type < ET_CORE && (uses & (1 << (type - 1)));
-}
-
-
-bool
-EBLHOOK(copy_reloc_p) (int reloc)
-{
- return reloc == R_TYPE (COPY);
-}
-
-bool
-EBLHOOK(none_reloc_p) (int reloc)
-{
- return reloc == R_TYPE (NONE);
-}
-
-#ifndef NO_RELATIVE_RELOC
-bool
-EBLHOOK(relative_reloc_p) (int reloc)
-{
- return reloc == R_TYPE (RELATIVE);
-}
-#endif
-
-static void
-EBLHOOK(init_reloc) (Ebl *ebl)
-{
- ebl->reloc_type_name = EBLHOOK(reloc_type_name);
- ebl->reloc_type_check = EBLHOOK(reloc_type_check);
- ebl->reloc_valid_use = EBLHOOK(reloc_valid_use);
- ebl->copy_reloc_p = EBLHOOK(copy_reloc_p);
- ebl->none_reloc_p = EBLHOOK(none_reloc_p);
-#ifndef NO_RELATIVE_RELOC
- ebl->relative_reloc_p = EBLHOOK(relative_reloc_p);
-#endif
-}
diff --git a/src/backends/i386_auxv.c b/src/backends/i386_auxv.c
deleted file mode 100644
index dba63fe0..00000000
--- a/src/backends/i386_auxv.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* i386 specific auxv handling.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-int
-EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format)
-{
- if (a_type != AT_HWCAP)
- return 0;
-
- *name = "HWCAP";
- *format = "b"
- "fpu\0" "vme\0" "de\0" "pse\0" "tsc\0" "msr\0" "pae\0" "mce\0"
- "cx8\0" "apic\0" "10\0" "sep\0" "mtrr\0" "pge\0" "mca\0" "cmov\0"
- "pat\0" "pse36\0" "pn\0" "clflush\0" "20\0" "dts\0" "acpi\0" "mmx\0"
- "fxsr\0" "sse\0" "sse2\0" "ss\0" "ht\0" "tm\0" "ia64\0" "pbe\0" "\0";
- return 1;
-}
-
-__typeof (i386_auxv_info) x86_64_auxv_info
- __attribute__ ((alias ("i386_auxv_info")));
diff --git a/src/backends/i386_cfi.c b/src/backends/i386_cfi.c
deleted file mode 100644
index 31f85f7e..00000000
--- a/src/backends/i386_cfi.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* i386 ABI-specified defaults for DWARF CFI.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-int
-i386_abi_cfi (Ebl *ebl __attribute__ ((unused)), Dwarf_CIE *abi_info)
-{
- static const uint8_t abi_cfi[] =
- {
- /* Call-saved regs. */
- DW_CFA_same_value, ULEB128_7 (3), /* %ebx */
- DW_CFA_same_value, ULEB128_7 (5), /* %ebp */
- DW_CFA_same_value, ULEB128_7 (6), /* %esi */
- DW_CFA_same_value, ULEB128_7 (7), /* %edi */
-
- /* The CFA is the SP. */
- DW_CFA_val_offset, ULEB128_7 (4), ULEB128_7 (0),
-
- /* Segment registers are call-saved if ever used at all. */
- DW_CFA_same_value, ULEB128_7 (40), /* %es */
- DW_CFA_same_value, ULEB128_7 (41), /* %cs */
- DW_CFA_same_value, ULEB128_7 (42), /* %ss */
- DW_CFA_same_value, ULEB128_7 (43), /* %ds */
- DW_CFA_same_value, ULEB128_7 (44), /* %fs */
- DW_CFA_same_value, ULEB128_7 (45), /* %gs */
- };
-
- abi_info->initial_instructions = abi_cfi;
- abi_info->initial_instructions_end = &abi_cfi[sizeof abi_cfi];
- abi_info->data_alignment_factor = 4;
-
- abi_info->return_address_register = 8; /* %eip */
-
- return 0;
-}
diff --git a/src/backends/i386_corenote.c b/src/backends/i386_corenote.c
deleted file mode 100644
index 15cd66b5..00000000
--- a/src/backends/i386_corenote.c
+++ /dev/null
@@ -1,138 +0,0 @@
-/* i386 specific core note handling.
- Copyright (C) 2007-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
-#define GR(at, n, dwreg) \
- { .offset = at * 4, .regno = dwreg, .count = n, .bits = 32 }
-#define SR(at, n, dwreg) \
- { .offset = at * 4, .regno = dwreg, .count = n, .bits = 16, .pad = 2 }
-
- GR (0, 1, 3), /* %ebx */
- GR (1, 2, 1), /* %ecx-%edx */
- GR (3, 2, 6), /* %esi-%edi */
- GR (5, 1, 5), /* %ebp */
- GR (6, 1, 0), /* %eax */
- SR (7, 1, 43), /* %ds */
- SR (8, 1, 40), /* %es */
- SR (9, 1, 44), /* %fs */
- SR (10, 1, 45), /* %gs */
- /* 11, 1, orig_eax */
- GR (12, 1, 8), /* %eip */
- SR (13, 1, 41), /* %cs */
- GR (14, 1, 9), /* eflags */
- GR (15, 1, 4), /* %esp */
- SR (16, 1, 42), /* %ss */
-
-#undef GR
-#undef SR
- };
-#define PRSTATUS_REGS_SIZE (17 * 4)
-
-#define ULONG uint32_t
-#define PID_T int32_t
-#define UID_T uint16_t
-#define GID_T uint16_t
-#define ALIGN_ULONG 4
-#define ALIGN_PID_T 4
-#define ALIGN_UID_T 2
-#define ALIGN_GID_T 2
-#define TYPE_ULONG ELF_T_WORD
-#define TYPE_PID_T ELF_T_SWORD
-#define TYPE_UID_T ELF_T_HALF
-#define TYPE_GID_T ELF_T_HALF
-
-#define PRSTATUS_REGSET_ITEMS \
- { \
- .name = "orig_eax", .type = ELF_T_SWORD, .format = 'd', \
- .offset = offsetof (struct EBLHOOK(prstatus), pr_reg) + (4 * 11), \
- .group = "register" \
- }
-
-static const Ebl_Register_Location fpregset_regs[] =
- {
- { .offset = 0, .regno = 37, .count = 2, .bits = 32 }, /* fctrl-fstat */
- { .offset = 7 * 4, .regno = 11, .count = 8, .bits = 80 }, /* stN */
- };
-#define FPREGSET_SIZE 108
-
-static const Ebl_Register_Location prxfpreg_regs[] =
- {
- { .offset = 0, .regno = 37, .count = 2, .bits = 16 }, /* fctrl-fstat */
- { .offset = 24, .regno = 39, .count = 1, .bits = 32 }, /* mxcsr */
- { .offset = 32, .regno = 11, .count = 8, .bits = 80, .pad = 6 }, /* stN */
- { .offset = 32 + 128, .regno = 21, .count = 8, .bits = 128 }, /* xmm */
- };
-
-#define EXTRA_NOTES \
- EXTRA_REGSET (NT_PRXFPREG, 512, prxfpreg_regs) \
- case NT_386_TLS: \
- return tls_info (nhdr->n_descsz, regs_offset, nregloc, reglocs, \
- nitems, items); \
- EXTRA_NOTES_IOPERM
-
-static const Ebl_Core_Item tls_items[] =
- {
- { .type = ELF_T_WORD, .offset = 0x0, .format = 'd', .name = "index" },
- { .type = ELF_T_WORD, .offset = 0x4, .format = 'x', .name = "base" },
- { .type = ELF_T_WORD, .offset = 0x8, .format = 'x', .name = "limit" },
- { .type = ELF_T_WORD, .offset = 0xc, .format = 'x', .name = "flags" },
- };
-
-static int
-tls_info (GElf_Word descsz, GElf_Word *regs_offset,
- size_t *nregloc, const Ebl_Register_Location **reglocs,
- size_t *nitems, const Ebl_Core_Item **items)
-{
- if (descsz % 16 != 0)
- return 0;
-
- *regs_offset = 0;
- *nregloc = 0;
- *reglocs = NULL;
- *nitems = sizeof tls_items / sizeof tls_items[0];
- *items = tls_items;
- return 1;
-}
-
-#include "x86_corenote.c"
-#include "linux-core-note.c"
diff --git a/src/backends/i386_init.c b/src/backends/i386_init.c
deleted file mode 100644
index 1e0b4863..00000000
--- a/src/backends/i386_init.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* Initialization of i386 specific backend library.
- Copyright (C) 2000-2009, 2013 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND i386_
-#define RELOC_PREFIX R_386_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on i386_reloc.def. */
-#include "common-reloc.c"
-
-const char *
-i386_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "Intel 80386";
- i386_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, gotpc_reloc_check);
- HOOK (eh, core_note);
- generic_debugscn_p = eh->debugscn_p;
- HOOK (eh, debugscn_p);
- HOOK (eh, return_value_location);
- HOOK (eh, register_info);
- HOOK (eh, syscall_abi);
- HOOK (eh, auxv_info);
- HOOK (eh, disasm);
- HOOK (eh, abi_cfi);
- /* gcc/config/ #define DWARF_FRAME_REGISTERS. For i386 it is 17, why? */
- eh->frame_nregs = 9;
- HOOK (eh, set_initial_registers_tid);
-
- return MODVERSION;
-}
diff --git a/src/backends/i386_initreg.c b/src/backends/i386_initreg.c
deleted file mode 100644
index 51fd9ea6..00000000
--- a/src/backends/i386_initreg.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* Fetch live process registers from TID.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#if defined __i386__ || defined __x86_64__
-# include <sys/types.h>
-# include <sys/user.h>
-# include <sys/ptrace.h>
-#endif
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-bool
-i386_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
- ebl_tid_registers_t *setfunc __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
-#if (!defined __i386__ && !defined __x86_64__) || !defined(__linux__)
- return false;
-#else /* __i386__ || __x86_64__ */
- struct user_regs_struct user_regs;
- if (ptrace (PTRACE_GETREGS, tid, NULL, &user_regs) != 0)
- return false;
- Dwarf_Word dwarf_regs[9];
-# if defined __i386__
- dwarf_regs[0] = user_regs.eax;
- dwarf_regs[1] = user_regs.ecx;
- dwarf_regs[2] = user_regs.edx;
- dwarf_regs[3] = user_regs.ebx;
- dwarf_regs[4] = user_regs.esp;
- dwarf_regs[5] = user_regs.ebp;
- dwarf_regs[6] = user_regs.esi;
- dwarf_regs[7] = user_regs.edi;
- dwarf_regs[8] = user_regs.eip;
-# elif defined __x86_64__
- dwarf_regs[0] = user_regs.rax;
- dwarf_regs[1] = user_regs.rcx;
- dwarf_regs[2] = user_regs.rdx;
- dwarf_regs[3] = user_regs.rbx;
- dwarf_regs[4] = user_regs.rsp;
- dwarf_regs[5] = user_regs.rbp;
- dwarf_regs[6] = user_regs.rsi;
- dwarf_regs[7] = user_regs.rdi;
- dwarf_regs[8] = user_regs.rip;
-# else /* (__i386__ || __x86_64__) && (!__i386__ && !__x86_64__) */
-# error "source file error, it cannot happen"
-# endif /* (__i386__ || __x86_64__) && (!__i386__ && !__x86_64__) */
- return setfunc (0, 9, dwarf_regs, arg);
-#endif /* __i386__ || __x86_64__ */
-}
diff --git a/src/backends/i386_regs.c b/src/backends/i386_regs.c
deleted file mode 100644
index fb8ded33..00000000
--- a/src/backends/i386_regs.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/* Register names and numbers for i386 DWARF.
- Copyright (C) 2005, 2006, 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-ssize_t
-i386_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 46;
-
- if (regno < 0 || regno > 45 || namelen < 6)
- return -1;
-
- *prefix = "%";
- *bits = 32;
- *type = DW_ATE_unsigned;
- if (regno < 11)
- {
- *setname = "integer";
- if (regno < 9)
- *type = DW_ATE_signed;
- }
- else if (regno < 19)
- {
- *setname = "x87";
- *type = DW_ATE_float;
- *bits = 80;
- }
- else if (regno < 29)
- {
- *setname = "SSE";
- *bits = 128;
- }
- else if (regno < 37)
- {
- *setname = "MMX";
- *bits = 64;
- }
- else if (regno < 40)
- *setname = "FPU-control";
- else
- {
- *setname = "segment";
- *bits = 16;
- }
-
- switch (regno)
- {
- static const char baseregs[][2] =
- {
- "ax", "cx", "dx", "bx", "sp", "bp", "si", "di", "ip"
- };
-
- case 4:
- case 5:
- case 8:
- *type = DW_ATE_address;
- case 0 ... 3:
- case 6 ... 7:
- name[0] = 'e';
- name[1] = baseregs[regno][0];
- name[2] = baseregs[regno][1];
- namelen = 3;
- break;
-
- case 9:
- return stpcpy (name, "eflags") + 1 - name;
- case 10:
- return stpcpy (name, "trapno") + 1 - name;
-
- case 11 ... 18:
- name[0] = 's';
- name[1] = 't';
- name[2] = regno - 11 + '0';
- namelen = 3;
- break;
-
- case 21 ... 28:
- name[0] = 'x';
- name[1] = 'm';
- name[2] = 'm';
- name[3] = regno - 21 + '0';
- namelen = 4;
- break;
-
- case 29 ... 36:
- name[0] = 'm';
- name[1] = 'm';
- name[2] = regno - 29 + '0';
- namelen = 3;
- break;
-
- case 37:
- *bits = 16;
- return stpcpy (name, "fctrl") + 1 - name;
- case 38:
- *bits = 16;
- return stpcpy (name, "fstat") + 1 - name;
- case 39:
- return stpcpy (name, "mxcsr") + 1 - name;
-
- case 40 ... 45:
- name[0] = "ecsdfg"[regno - 40];
- name[1] = 's';
- namelen = 2;
- break;
-
- default:
- *setname = NULL;
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/i386_reloc.def b/src/backends/i386_reloc.def
deleted file mode 100644
index bd273b38..00000000
--- a/src/backends/i386_reloc.def
+++ /dev/null
@@ -1,70 +0,0 @@
-/* List the relocation types for i386. -*- C -*-
- Copyright (C) 2000, 2001, 2002, 2003, 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (32, REL|EXEC|DYN)
-RELOC_TYPE (PC32, REL|EXEC|DYN)
-RELOC_TYPE (GOT32, REL)
-RELOC_TYPE (PLT32, REL)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (GOTOFF, REL)
-RELOC_TYPE (GOTPC, REL)
-RELOC_TYPE (32PLT, REL)
-RELOC_TYPE (TLS_TPOFF, EXEC|DYN)
-RELOC_TYPE (TLS_IE, REL)
-RELOC_TYPE (TLS_GOTIE, REL)
-RELOC_TYPE (TLS_LE, REL)
-RELOC_TYPE (TLS_GD, REL)
-RELOC_TYPE (TLS_LDM, REL)
-RELOC_TYPE (16, REL)
-RELOC_TYPE (PC16, REL)
-RELOC_TYPE (8, REL)
-RELOC_TYPE (PC8, REL)
-RELOC_TYPE (TLS_GD_32, REL)
-RELOC_TYPE (TLS_GD_PUSH, REL)
-RELOC_TYPE (TLS_GD_CALL, REL)
-RELOC_TYPE (TLS_GD_POP, REL)
-RELOC_TYPE (TLS_LDM_32, REL)
-RELOC_TYPE (TLS_LDM_PUSH, REL)
-RELOC_TYPE (TLS_LDM_CALL, REL)
-RELOC_TYPE (TLS_LDM_POP, REL)
-RELOC_TYPE (TLS_LDO_32, REL)
-RELOC_TYPE (TLS_IE_32, REL)
-RELOC_TYPE (TLS_LE_32, REL)
-RELOC_TYPE (TLS_DTPMOD32, EXEC|DYN)
-RELOC_TYPE (TLS_DTPOFF32, EXEC|DYN)
-RELOC_TYPE (TLS_TPOFF32, EXEC|DYN)
-RELOC_TYPE (TLS_GOTDESC, REL)
-RELOC_TYPE (TLS_DESC_CALL, REL)
-RELOC_TYPE (TLS_DESC, EXEC)
-RELOC_TYPE (IRELATIVE, EXEC|DYN)
diff --git a/src/backends/i386_retval.c b/src/backends/i386_retval.c
deleted file mode 100644
index 9da797d5..00000000
--- a/src/backends/i386_retval.c
+++ /dev/null
@@ -1,141 +0,0 @@
-/* Function return value location for Linux/i386 ABI.
- Copyright (C) 2005-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-
-/* %eax, or pair %eax, %edx. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg0 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg2 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_intreg 1
-#define nloc_intregpair 4
-
-/* %st(0). */
-static const Dwarf_Op loc_fpreg[] =
- {
- { .atom = DW_OP_reg11 }
- };
-#define nloc_fpreg 1
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in %eax. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg0, .number = 0 }
- };
-#define nloc_aggregate 1
-
-int
-i386_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Word size;
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 4;
- else
- return -1;
- }
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
- if (encoding == DW_ATE_float)
- {
- if (size > 16)
- return -2;
- *locp = loc_fpreg;
- return nloc_fpreg;
- }
- }
- *locp = loc_intreg;
- if (size <= 4)
- return nloc_intreg;
- if (size <= 8)
- return nloc_intregpair;
-
- /* Else fall through. */
- }
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- case DW_TAG_array_type:
- *locp = loc_aggregate;
- return nloc_aggregate;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/i386_symbol.c b/src/backends/i386_symbol.c
deleted file mode 100644
index 7dbf899f..00000000
--- a/src/backends/i386_symbol.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/* i386 specific symbolic name handling.
- Copyright (C) 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <elf.h>
-#include <stddef.h>
-#include <string.h>
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-
-/* Return true if the symbol type is that referencing the GOT. */
-bool
-i386_gotpc_reloc_check (Elf *elf __attribute__ ((unused)), int type)
-{
- return type == R_386_GOTPC;
-}
-
-/* Check for the simple reloc types. */
-Elf_Type
-i386_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_386_32:
- return ELF_T_SWORD;
- case R_386_16:
- return ELF_T_HALF;
- case R_386_8:
- return ELF_T_BYTE;
- default:
- return ELF_T_NUM;
- }
-}
-
-/* Check section name for being that of a debug information section. */
-bool (*generic_debugscn_p) (const char *);
-bool
-i386_debugscn_p (const char *name)
-{
- return (generic_debugscn_p (name)
- || strcmp (name, ".stab") == 0
- || strcmp (name, ".stabstr") == 0);
-}
diff --git a/src/backends/i386_syscall.c b/src/backends/i386_syscall.c
deleted file mode 100644
index 535dcd86..00000000
--- a/src/backends/i386_syscall.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Linux/i386 system call ABI in DWARF register numbers.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-int
-i386_syscall_abi (Ebl *ebl __attribute__ ((unused)),
- int *sp, int *pc, int *callno, int args[6])
-{
- *sp = 4; /* %esp */
- *pc = 8; /* %eip */
- *callno = 0; /* %eax */
- args[0] = 3; /* %ebx */
- args[1] = 1; /* %ecx */
- args[2] = 2; /* %edx */
- args[3] = 6; /* %esi */
- args[4] = 7; /* %edi */
- args[5] = 5; /* %ebp */
- return 0;
-}
diff --git a/src/backends/ia64_init.c b/src/backends/ia64_init.c
deleted file mode 100644
index 91da748d..00000000
--- a/src/backends/ia64_init.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Initialization of IA-64 specific backend library.
- Copyright (C) 2002, 2003, 2005, 2006, 2007, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND ia64_
-#define RELOC_PREFIX R_IA64_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on ia64_reloc.def. */
-#include "common-reloc.c"
-
-const char *
-ia64_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "Intel IA-64";
- ia64_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, segment_type_name);
- HOOK (eh, section_type_name);
- HOOK (eh, dynamic_tag_name);
- HOOK (eh, dynamic_tag_check);
- HOOK (eh, machine_flag_check);
- HOOK (eh, machine_section_flag_check);
- HOOK (eh, register_info);
- HOOK (eh, return_value_location);
- HOOK (eh, check_reloc_target_type);
-
- return MODVERSION;
-}
diff --git a/src/backends/ia64_regs.c b/src/backends/ia64_regs.c
deleted file mode 100644
index a27fe63d..00000000
--- a/src/backends/ia64_regs.c
+++ /dev/null
@@ -1,273 +0,0 @@
-/* Register names and numbers for IA64 DWARF.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND i386_
-#include "libebl_CPU.h"
-
-ssize_t
-ia64_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 687 + 64;
-
- if (regno < 0 || regno > 687 + 63 || namelen < 12)
- return -1;
-
- *prefix = "ar.";
- *setname = "application";
- *bits = 64;
- *type = DW_ATE_signed;
- switch (regno)
- {
- case 0 ... 9:
- name[0] = 'r';
- name[1] = (regno - 0) + '0';
- namelen = 2;
- *setname = "integer";
- *prefix = "";
- break;
-
- case 10 ... 99:
- name[0] = 'r';
- name[1] = (regno - 0) / 10 + '0';
- name[2] = (regno - 0) % 10 + '0';
- namelen = 3;
- *setname = "integer";
- *prefix = "";
- break;
-
- case 100 ... 127:
- name[0] = 'r';
- name[1] = '1';
- name[2] = (regno - 100) / 10 + '0';
- name[3] = (regno - 0) % 10 + '0';
- namelen = 4;
- *setname = "integer";
- *prefix = "";
- break;
-
- case 128 + 0 ... 128 + 9:
- name[0] = 'f';
- name[1] = (regno - 128) + '0';
- namelen = 2;
- *type = DW_ATE_float;
- *bits = 128;
- *setname = "FPU";
- *prefix = "";
- break;
-
- case 128 + 10 ... 128 + 99:
- name[0] = 'f';
- name[1] = (regno - 128) / 10 + '0';
- name[2] = (regno - 128) % 10 + '0';
- namelen = 3;
- *setname = "FPU";
- *prefix = "";
- break;
-
- case 128 + 100 ... 128 + 127:
- name[0] = 'f';
- name[1] = '1';
- name[2] = (regno - 128 - 100) / 10 + '0';
- name[3] = (regno - 128) % 10 + '0';
- namelen = 4;
- *type = DW_ATE_float;
- *bits = 128;
- *setname = "FPU";
- *prefix = "";
- break;
-
- case 320 + 0 ... 320 + 7:
- name[0] = 'b';
- name[1] = (regno - 320) + '0';
- namelen = 2;
- *type = DW_ATE_address;
- *setname = "branch";
- *prefix = "";
- break;
-
- case 328 ... 333:
- {
- static const char named_special[][5] =
- {
- "vfp", "vrap", "pr", "ip", "psr", "cfm"
- };
- *setname = "special";
- *prefix = "";
- *type = regno == 331 ? DW_ATE_address : DW_ATE_unsigned;
- return stpcpy (name, named_special[regno - 328]) + 1 - name;
- }
-
- case 590:
- *setname = "special";
- *prefix = "";
- *type = DW_ATE_unsigned;
- return stpcpy (name, "bof") + 1 - name;
-
- case 334 + 0 ... 334 + 7:
- name[0] = 'k';
- name[1] = 'r';
- name[2] = (regno - 334) + '0';
- namelen = 3;
- *prefix = "";
- break;
-
- case 334 + 8 ... 334 + 127:
- {
- static const char named_ar[][9] =
- {
- [16 - 8] = "rsc",
- [17 - 8] = "bsp",
- [18 - 8] = "bspstore",
- [19 - 8] = "rnat",
- [21 - 8] = "fcr",
- [24 - 8] = "eflag",
- [25 - 8] = "csd",
- [26 - 8] = "ssd",
- [27 - 8] = "cflg",
- [28 - 8] = "fsr",
- [29 - 8] = "fir",
- [30 - 8] = "fdr",
- [32 - 8] = "ccv",
- [36 - 8] = "unat",
- [40 - 8] = "fpsr",
- [44 - 8] = "itc",
- [64 - 8] = "pfs",
- [65 - 8] = "lc",
- [66 - 8] = "ec",
- };
- const size_t idx = regno - (334 + 8);
- *type = DW_ATE_unsigned;
- if (idx == 1 || idx == 2)
- *type = DW_ATE_address;
- if (idx < sizeof named_ar / sizeof named_ar[0]
- && named_ar[idx][0] != '\0')
- return stpcpy (name, named_ar[idx]) + 1 - name;
-
- name[0] = 'a';
- name[1] = 'r';
- switch (regno - 334)
- {
- case 0 ... 9:
- name[2] = (regno - 334) + '0';
- namelen = 3;
- break;
- case 10 ... 99:
- name[2] = (regno - 334) / 10 + '0';
- name[3] = (regno - 334) % 10 + '0';
- namelen = 4;
- break;
- case 100 ... 127:
- name[2] = '1';
- name[3] = (regno - 334 - 100) / 10 + '0';
- name[4] = (regno - 334) % 10 + '0';
- namelen = 5;
- break;
- }
- *prefix = "";
- break;
- }
-
- case 462 + 0 ... 462 + 9:
- name[0] = 'n';
- name[1] = 'a';
- name[2] = 't';
- name[3] = (regno - 462) + '0';
- namelen = 4;
- *setname = "NAT";
- *type = DW_ATE_boolean;
- *bits = 1;
- *prefix = "";
- break;
-
- case 462 + 10 ... 462 + 99:
- name[0] = 'n';
- name[1] = 'a';
- name[2] = 't';
- name[3] = (regno - 462) / 10 + '0';
- name[4] = (regno - 462) % 10 + '0';
- namelen = 5;
- *setname = "NAT";
- *type = DW_ATE_boolean;
- *bits = 1;
- *prefix = "";
- break;
-
- case 462 + 100 ... 462 + 127:
- name[0] = 'n';
- name[1] = 'a';
- name[2] = 't';
- name[3] = '1';
- name[4] = (regno - 462 - 100) / 10 + '0';
- name[5] = (regno - 462) % 10 + '0';
- namelen = 6;
- *setname = "NAT";
- *type = DW_ATE_boolean;
- *bits = 1;
- *prefix = "";
- break;
-
- case 687 + 0 ... 687 + 9:
- name[0] = 'p';
- name[1] = (regno - 687) + '0';
- namelen = 2;
- *setname = "predicate";
- *type = DW_ATE_boolean;
- *bits = 1;
- *prefix = "";
- break;
-
- case 687 + 10 ... 687 + 63:
- name[0] = 'p';
- name[1] = (regno - 687) / 10 + '0';
- name[2] = (regno - 687) % 10 + '0';
- namelen = 3;
- *setname = "predicate";
- *type = DW_ATE_boolean;
- *bits = 1;
- *prefix = "";
- break;
-
- default:
- *setname = NULL;
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/ia64_reloc.def b/src/backends/ia64_reloc.def
deleted file mode 100644
index 9e058c8b..00000000
--- a/src/backends/ia64_reloc.def
+++ /dev/null
@@ -1,113 +0,0 @@
-/* List the relocation types for ia64. -*- C -*-
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (IMM14, REL)
-RELOC_TYPE (IMM22, REL)
-RELOC_TYPE (IMM64, REL)
-RELOC_TYPE (DIR32MSB, REL|EXEC|DYN)
-RELOC_TYPE (DIR32LSB, REL|EXEC|DYN)
-RELOC_TYPE (DIR64MSB, REL|EXEC|DYN)
-RELOC_TYPE (DIR64LSB, REL|EXEC|DYN)
-RELOC_TYPE (GPREL22, REL)
-RELOC_TYPE (GPREL64I, REL)
-RELOC_TYPE (GPREL32MSB, REL)
-RELOC_TYPE (GPREL32LSB, REL)
-RELOC_TYPE (GPREL64MSB, REL)
-RELOC_TYPE (GPREL64LSB, REL)
-RELOC_TYPE (LTOFF22, REL)
-RELOC_TYPE (LTOFF64I, REL)
-RELOC_TYPE (PLTOFF22, REL)
-RELOC_TYPE (PLTOFF64I, REL)
-RELOC_TYPE (PLTOFF64MSB, REL)
-RELOC_TYPE (PLTOFF64LSB, REL)
-RELOC_TYPE (FPTR64I, REL)
-RELOC_TYPE (FPTR32MSB, REL|EXEC|DYN)
-RELOC_TYPE (FPTR32LSB, REL|EXEC|DYN)
-RELOC_TYPE (FPTR64MSB, REL|EXEC|DYN)
-RELOC_TYPE (FPTR64LSB, REL|EXEC|DYN)
-RELOC_TYPE (PCREL60B, REL)
-RELOC_TYPE (PCREL21B, REL)
-RELOC_TYPE (PCREL21M, REL)
-RELOC_TYPE (PCREL21F, REL)
-RELOC_TYPE (PCREL32MSB, REL|EXEC|DYN)
-RELOC_TYPE (PCREL32LSB, REL|EXEC|DYN)
-RELOC_TYPE (PCREL64MSB, REL|EXEC|DYN)
-RELOC_TYPE (PCREL64LSB, REL|EXEC|DYN)
-RELOC_TYPE (LTOFF_FPTR22, REL)
-RELOC_TYPE (LTOFF_FPTR64I, REL)
-RELOC_TYPE (LTOFF_FPTR32MSB, REL)
-RELOC_TYPE (LTOFF_FPTR32LSB, REL)
-RELOC_TYPE (LTOFF_FPTR64MSB, REL)
-RELOC_TYPE (LTOFF_FPTR64LSB, REL)
-RELOC_TYPE (SEGREL32MSB, REL)
-RELOC_TYPE (SEGREL32LSB, REL)
-RELOC_TYPE (SEGREL64MSB, REL)
-RELOC_TYPE (SEGREL64LSB, REL)
-RELOC_TYPE (SECREL32MSB, REL)
-RELOC_TYPE (SECREL32LSB, REL)
-RELOC_TYPE (SECREL64MSB, REL)
-RELOC_TYPE (SECREL64LSB, REL)
-RELOC_TYPE (REL32MSB, EXEC|DYN)
-RELOC_TYPE (REL32LSB, EXEC|DYN)
-RELOC_TYPE (REL64MSB, EXEC|DYN)
-RELOC_TYPE (REL64LSB, EXEC|DYN)
-RELOC_TYPE (LTV32MSB, REL)
-RELOC_TYPE (LTV32LSB, REL)
-RELOC_TYPE (LTV64MSB, REL)
-RELOC_TYPE (LTV64LSB, REL)
-RELOC_TYPE (PCREL21BI, REL)
-RELOC_TYPE (PCREL22, REL)
-RELOC_TYPE (PCREL64I, REL)
-RELOC_TYPE (IPLTMSB, REL|EXEC|DYN)
-RELOC_TYPE (IPLTLSB, REL|EXEC|DYN)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (SUB, 0)
-RELOC_TYPE (LTOFF22X, REL)
-RELOC_TYPE (LDXMOV, REL)
-RELOC_TYPE (TPREL14, REL)
-RELOC_TYPE (TPREL22, REL)
-RELOC_TYPE (TPREL64I, REL)
-RELOC_TYPE (TPREL64MSB, REL|EXEC|DYN)
-RELOC_TYPE (TPREL64LSB, REL|EXEC|DYN)
-RELOC_TYPE (LTOFF_TPREL22, REL)
-RELOC_TYPE (DTPMOD64MSB, REL|EXEC|DYN)
-RELOC_TYPE (DTPMOD64LSB, REL|EXEC|DYN)
-RELOC_TYPE (LTOFF_DTPMOD22, REL)
-RELOC_TYPE (DTPREL14, REL)
-RELOC_TYPE (DTPREL22, REL)
-RELOC_TYPE (DTPREL64I, REL)
-RELOC_TYPE (DTPREL32MSB, REL|EXEC|DYN)
-RELOC_TYPE (DTPREL32LSB, REL|EXEC|DYN)
-RELOC_TYPE (DTPREL64MSB, REL|EXEC|DYN)
-RELOC_TYPE (DTPREL64LSB, REL|EXEC|DYN)
-RELOC_TYPE (LTOFF_DTPREL22, REL)
-
-#define NO_RELATIVE_RELOC 1
diff --git a/src/backends/ia64_retval.c b/src/backends/ia64_retval.c
deleted file mode 100644
index b5928c58..00000000
--- a/src/backends/ia64_retval.c
+++ /dev/null
@@ -1,363 +0,0 @@
-/* Function return value location for IA64 ABI.
- Copyright (C) 2006-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND ia64_
-#include "libebl_CPU.h"
-
-
-/* r8, or pair r8, r9, or aggregate up to r8-r11. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg8 }, { .atom = DW_OP_piece, .number = 8 },
- { .atom = DW_OP_reg9 }, { .atom = DW_OP_piece, .number = 8 },
- { .atom = DW_OP_reg10 }, { .atom = DW_OP_piece, .number = 8 },
- { .atom = DW_OP_reg11 }, { .atom = DW_OP_piece, .number = 8 },
- };
-#define nloc_intreg 1
-#define nloc_intregs(n) (2 * (n))
-
-/* f8, or aggregate up to f8-f15. */
-#define DEFINE_FPREG(size) \
- static const Dwarf_Op loc_fpreg_##size[] = \
- { \
- { .atom = DW_OP_regx, .number = 128 + 8 }, \
- { .atom = DW_OP_piece, .number = size }, \
- { .atom = DW_OP_regx, .number = 128 + 9 }, \
- { .atom = DW_OP_piece, .number = size }, \
- { .atom = DW_OP_regx, .number = 128 + 10 }, \
- { .atom = DW_OP_piece, .number = size }, \
- { .atom = DW_OP_regx, .number = 128 + 11 }, \
- { .atom = DW_OP_piece, .number = size }, \
- { .atom = DW_OP_regx, .number = 128 + 12 }, \
- { .atom = DW_OP_piece, .number = size }, \
- { .atom = DW_OP_regx, .number = 128 + 13 }, \
- { .atom = DW_OP_piece, .number = size }, \
- { .atom = DW_OP_regx, .number = 128 + 14 }, \
- { .atom = DW_OP_piece, .number = size }, \
- { .atom = DW_OP_regx, .number = 128 + 15 }, \
- { .atom = DW_OP_piece, .number = size }, \
- }
-#define nloc_fpreg 1
-#define nloc_fpregs(n) (2 * (n))
-
-DEFINE_FPREG (4);
-DEFINE_FPREG (8);
-DEFINE_FPREG (10);
-
-#undef DEFINE_FPREG
-
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in r8. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg8, .number = 0 }
- };
-#define nloc_aggregate 1
-
-
-/* If this type is an HFA small enough to be returned in FP registers,
- return the number of registers to use. Otherwise 9, or -1 for errors. */
-static int
-hfa_type (Dwarf_Die *typedie, Dwarf_Word size,
- const Dwarf_Op **locp, int fpregs_used)
-{
- /* Descend the type structure, counting elements and finding their types.
- If we find a datum that's not an FP type (and not quad FP), punt.
- If we find a datum that's not the same FP type as the first datum, punt.
- If we count more than eight total homogeneous FP data, punt. */
-
- inline int hfa (const Dwarf_Op *loc, int nregs)
- {
- if (fpregs_used == 0)
- *locp = loc;
- else if (*locp != loc)
- return 9;
- return fpregs_used + nregs;
- }
-
- int tag = DWARF_TAG_OR_RETURN (typedie);
- switch (tag)
- {
- Dwarf_Attribute attr_mem;
-
- case -1:
- return -1;
-
- case DW_TAG_base_type:;
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem), &encoding) != 0)
- return -1;
-
- switch (encoding)
- {
- case DW_ATE_float:
- switch (size)
- {
- case 4: /* float */
- return hfa (loc_fpreg_4, 1);
- case 8: /* double */
- return hfa (loc_fpreg_8, 1);
- case 10: /* x86-style long double, not really used */
- return hfa (loc_fpreg_10, 1);
- }
- break;
-
- case DW_ATE_complex_float:
- switch (size)
- {
- case 4 * 2: /* complex float */
- return hfa (loc_fpreg_4, 2);
- case 8 * 2: /* complex double */
- return hfa (loc_fpreg_8, 2);
- case 10 * 2: /* complex long double (x86-style) */
- return hfa (loc_fpreg_10, 2);
- }
- break;
- }
- break;
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:;
- Dwarf_Die child_mem;
- switch (dwarf_child (typedie, &child_mem))
- {
- default:
- return -1;
-
- case 1: /* No children: empty struct. */
- break;
-
- case 0:; /* Look at each element. */
- int max_used = fpregs_used;
- do
- switch (dwarf_tag (&child_mem))
- {
- case -1:
- return -1;
-
- case DW_TAG_member:;
- Dwarf_Die child_type_mem;
- Dwarf_Die *child_typedie
- = dwarf_formref_die (dwarf_attr_integrate (&child_mem,
- DW_AT_type,
- &attr_mem),
- &child_type_mem);
- Dwarf_Word child_size;
- if (dwarf_aggregate_size (child_typedie, &child_size) != 0)
- return -1;
- if (tag == DW_TAG_union_type)
- {
- int used = hfa_type (child_typedie, child_size,
- locp, fpregs_used);
- if (used < 0 || used > 8)
- return used;
- if (used > max_used)
- max_used = used;
- }
- else
- {
- fpregs_used = hfa_type (child_typedie, child_size,
- locp, fpregs_used);
- if (fpregs_used < 0 || fpregs_used > 8)
- return fpregs_used;
- }
- }
- while (dwarf_siblingof (&child_mem, &child_mem) == 0);
- if (tag == DW_TAG_union_type)
- fpregs_used = max_used;
- break;
- }
- break;
-
- case DW_TAG_array_type:
- if (size == 0)
- break;
-
- Dwarf_Die base_type_mem;
- Dwarf_Die *base_typedie
- = dwarf_formref_die (dwarf_attr_integrate (typedie, DW_AT_type,
- &attr_mem),
- &base_type_mem);
- Dwarf_Word base_size;
- if (dwarf_aggregate_size (base_typedie, &base_size) != 0)
- return -1;
-
- int used = hfa_type (base_typedie, base_size, locp, 0);
- if (used < 0 || used > 8)
- return used;
- if (size % (*locp)[1].number != 0)
- return 0;
- fpregs_used += used * (size / (*locp)[1].number);
- break;
-
- default:
- return 9;
- }
-
- return fpregs_used;
-}
-
-int
-ia64_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 8;
- else
- return -1;
- }
- }
-
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
-
- switch (encoding)
- {
- case DW_ATE_float:
- switch (size)
- {
- case 4: /* float */
- *locp = loc_fpreg_4;
- return nloc_fpreg;
- case 8: /* double */
- *locp = loc_fpreg_8;
- return nloc_fpreg;
- case 10: /* x86-style long double, not really used */
- *locp = loc_fpreg_10;
- return nloc_fpreg;
- case 16: /* long double, IEEE quad format */
- *locp = loc_intreg;
- return nloc_intregs (2);
- }
- return -2;
-
- case DW_ATE_complex_float:
- switch (size)
- {
- case 4 * 2: /* complex float */
- *locp = loc_fpreg_4;
- return nloc_fpregs (2);
- case 8 * 2: /* complex double */
- *locp = loc_fpreg_8;
- return nloc_fpregs (2);
- case 10 * 2: /* complex long double (x86-style) */
- *locp = loc_fpreg_10;
- return nloc_fpregs (2);
- case 16 * 2: /* complex long double (IEEE quad) */
- *locp = loc_intreg;
- return nloc_intregs (4);
- }
- return -2;
- }
- }
-
- intreg:
- *locp = loc_intreg;
- if (size <= 8)
- return nloc_intreg;
- if (size <= 32)
- return nloc_intregs ((size + 7) / 8);
-
- large:
- *locp = loc_aggregate;
- return nloc_aggregate;
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- case DW_TAG_array_type:
- if (dwarf_aggregate_size (typedie, &size) != 0)
- return -1;
-
- /* If this qualifies as an homogeneous floating-point aggregate
- (HFA), then it should be returned in FP regs. */
- int nfpreg = hfa_type (typedie, size, locp, 0);
- if (nfpreg < 0)
- return nfpreg;
- else if (nfpreg > 0 && nfpreg <= 8)
- return nfpreg == 1 ? nloc_fpreg : nloc_fpregs (nfpreg);
-
- if (size > 32)
- goto large;
-
- goto intreg;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/ia64_symbol.c b/src/backends/ia64_symbol.c
deleted file mode 100644
index f928b0b7..00000000
--- a/src/backends/ia64_symbol.c
+++ /dev/null
@@ -1,157 +0,0 @@
-/* IA-64 specific symbolic name handling.
- Copyright (C) 2002-2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <stddef.h>
-#include <assert.h>
-
-#define BACKEND ia64_
-#include "libebl_CPU.h"
-
-
-const char *
-ia64_segment_type_name (int segment, char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (segment)
- {
- case PT_IA_64_ARCHEXT:
- return "IA_64_ARCHEXT";
- case PT_IA_64_UNWIND:
- return "IA_64_UNWIND";
- case PT_IA_64_HP_OPT_ANOT:
- return "IA_64_HP_OPT_ANOT";
- case PT_IA_64_HP_HSL_ANOT:
- return "IA_64_HP_HSL_ANOT";
- case PT_IA_64_HP_STACK:
- return "IA_64_HP_STACK";
- default:
- break;
- }
- return NULL;
-}
-
-const char *
-ia64_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (tag)
- {
- case DT_IA_64_PLT_RESERVE:
- return "IA_64_PLT_RESERVE";
- default:
- break;
- }
- return NULL;
-}
-
-/* Check dynamic tag. */
-bool
-ia64_dynamic_tag_check (int64_t tag)
-{
- return tag == DT_IA_64_PLT_RESERVE;
-}
-
-/* Check whether machine flags are valid. */
-bool
-ia64_machine_flag_check (GElf_Word flags)
-{
- return ((flags &~ EF_IA_64_ABI64) == 0);
-}
-
-/* Check whether SHF_MASKPROC flags are valid. */
-bool
-ia64_machine_section_flag_check (GElf_Xword sh_flags)
-{
- return (sh_flags &~ (SHF_IA_64_SHORT | SHF_IA_64_NORECOV)) == 0;
-}
-
-/* Return symbolic representation of section type. */
-const char *
-ia64_section_type_name (int type,
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (type)
- {
- case SHT_IA_64_EXT:
- return "IA_64_EXT";
- case SHT_IA_64_UNWIND:
- return "IA_64_UNWIND";
- }
-
- return NULL;
-}
-
-/* Check for the simple reloc types. */
-Elf_Type
-ia64_reloc_simple_type (Ebl *ebl, int type)
-{
- switch (type)
- {
- /* The SECREL types when used with non-allocated sections
- like .debug_* are the same as direct absolute relocs
- applied to those sections, since a 0 section address is assumed.
- So we treat them the same here. */
-
- case R_IA64_SECREL32MSB:
- case R_IA64_DIR32MSB:
- if (ebl->data == ELFDATA2MSB)
- return ELF_T_WORD;
- break;
- case R_IA64_SECREL32LSB:
- case R_IA64_DIR32LSB:
- if (ebl->data == ELFDATA2LSB)
- return ELF_T_WORD;
- break;
- case R_IA64_DIR64MSB:
- case R_IA64_SECREL64MSB:
- if (ebl->data == ELFDATA2MSB)
- return ELF_T_XWORD;
- break;
- case R_IA64_SECREL64LSB:
- case R_IA64_DIR64LSB:
- if (ebl->data == ELFDATA2LSB)
- return ELF_T_XWORD;
- break;
- }
-
- return ELF_T_NUM;
-}
-
-/* The SHT_IA_64_UNWIND section type is a valid target for relocation. */
-bool
-ia64_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type)
-{
- return sh_type == SHT_IA_64_UNWIND;
-}
diff --git a/src/backends/libebl_CPU.h b/src/backends/libebl_CPU.h
deleted file mode 100644
index ef2b922b..00000000
--- a/src/backends/libebl_CPU.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Common interface for libebl modules.
- Copyright (C) 2000, 2001, 2002, 2003, 2005, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBEBL_CPU_H
-#define _LIBEBL_CPU_H 1
-
-#include <dwarf.h>
-#include <libeblP.h>
-
-#define EBLHOOK(name) EBLHOOK_1(BACKEND, name)
-#define EBLHOOK_1(a, b) EBLHOOK_2(a, b)
-#define EBLHOOK_2(a, b) a##b
-
-/* Constructor. */
-extern const char *EBLHOOK(init) (Elf *elf, GElf_Half machine,
- Ebl *eh, size_t ehlen);
-
-#include "ebl-hooks.h"
-
-#define HOOK(eh, name) eh->name = EBLHOOK(name)
-
-extern bool (*generic_debugscn_p) (const char *) attribute_hidden;
-
-/* Helper for retval. Return dwarf_tag (die), but calls return -1
- if there where previous errors that leave die NULL. */
-#define DWARF_TAG_OR_RETURN(die) \
- ({ Dwarf_Die *_die = (die); \
- if (_die == NULL) return -1; \
- dwarf_tag (_die); })
-
-/* Get a type die corresponding to DIE. Peel CV qualifiers off
- it. */
-static inline int
-dwarf_peeled_die_type (Dwarf_Die *die, Dwarf_Die *result)
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = dwarf_attr_integrate (die, DW_AT_type, &attr_mem);
- if (attr == NULL)
- /* The function has no return value, like a `void' function in C. */
- return 0;
-
- if (dwarf_formref_die (attr, result) == NULL)
- return -1;
-
- if (dwarf_peel_type (result, result) != 0)
- return -1;
-
- return DWARF_TAG_OR_RETURN (result);
-}
-
-#endif /* libebl_CPU.h */
diff --git a/src/backends/linux-core-note.c b/src/backends/linux-core-note.c
deleted file mode 100644
index e3c01098..00000000
--- a/src/backends/linux-core-note.c
+++ /dev/null
@@ -1,299 +0,0 @@
-/* Common core note type descriptions for Linux.
- Copyright (C) 2007-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <string.h>
-
-/* The including CPU_corenote.c file provides prstatus_regs and
- defines macros ULONG, [PUG]ID_T, and ALIGN_*, TYPE_*.
-
- Here we describe the common layout used in <linux/elfcore.h>. */
-
-#define CHAR int8_t
-#define ALIGN_CHAR 1
-#define TYPE_CHAR ELF_T_BYTE
-#define SHORT uint16_t
-#define ALIGN_SHORT 2
-#define TYPE_SHORT ELF_T_HALF
-#define INT int32_t
-#define ALIGN_INT 4
-#define TYPE_INT ELF_T_SWORD
-#ifndef ALIGN_PR_REG
-# define ALIGN_PR_REG ALIGN_ULONG
-#endif
-
-#define FIELD(type, name) type name __attribute__ ((aligned (ALIGN_##type)))
-
-struct EBLHOOK(siginfo)
-{
- FIELD (INT, si_signo);
- FIELD (INT, si_code);
- FIELD (INT, si_errno);
-};
-
-struct EBLHOOK(timeval)
-{
- FIELD (ULONG, tv_sec);
- FIELD (ULONG, tv_usec);
-};
-
-/* On sparc64, tv_usec (suseconds_t) is actually 32 bits with 32 bits padding.
- The 'T'|0x80 value for .format indicates this as a special kludge. */
-#if SUSECONDS_HALF
-# define TIMEVAL_FIELD(name) FIELD (time, ULONG, name, 'T'|0x80, .count = 2)
-#else
-# define TIMEVAL_FIELD(name) FIELD (time, ULONG, name, 'T', .count = 2)
-#endif
-
-
-struct EBLHOOK(prstatus)
-{
- struct EBLHOOK(siginfo) pr_info;
- FIELD (SHORT, pr_cursig);
- FIELD (ULONG, pr_sigpend);
- FIELD (ULONG, pr_sighold);
- FIELD (PID_T, pr_pid);
- FIELD (PID_T, pr_ppid);
- FIELD (PID_T, pr_pgrp);
- FIELD (PID_T, pr_sid);
- struct EBLHOOK(timeval) pr_utime;
- struct EBLHOOK(timeval) pr_stime;
- struct EBLHOOK(timeval) pr_cutime;
- struct EBLHOOK(timeval) pr_cstime;
- struct
- {
- FIELD (ULONG, pr_reg[PRSTATUS_REGS_SIZE / sizeof (ULONG)]);
- }
-#ifdef ALIGN_PR_REG
- __attribute__ ((aligned (ALIGN_PR_REG)))
-#endif
- ;
- FIELD (INT, pr_fpvalid);
-};
-
-#define FNAMESZ 16
-#define PRARGSZ 80
-
-struct EBLHOOK(prpsinfo)
-{
- FIELD (CHAR, pr_state);
- FIELD (CHAR, pr_sname);
- FIELD (CHAR, pr_zomb);
- FIELD (CHAR, pr_nice);
- FIELD (ULONG, pr_flag);
- FIELD (UID_T, pr_uid);
- FIELD (GID_T, pr_gid);
- FIELD (PID_T, pr_pid);
- FIELD (PID_T, pr_ppid);
- FIELD (PID_T, pr_pgrp);
- FIELD (PID_T, pr_sid);
- FIELD (CHAR, pr_fname[FNAMESZ]);
- FIELD (CHAR, pr_psargs[PRARGSZ]);
-};
-
-#undef FIELD
-
-#define FIELD(igroup, itype, item, fmt, ...) \
- { \
- .name = #item, \
- .group = #igroup, \
- .offset = offsetof (struct EBLHOOK(prstatus), pr_##item), \
- .type = TYPE_##itype, \
- .format = fmt, \
- __VA_ARGS__ \
- }
-
-static const Ebl_Core_Item prstatus_items[] =
- {
- FIELD (signal, INT, info.si_signo, 'd'),
- FIELD (signal, INT, info.si_code, 'd'),
- FIELD (signal, INT, info.si_errno, 'd'),
- FIELD (signal, SHORT, cursig, 'd'),
-
- /* Use different group name for a newline delimiter. */
- FIELD (signal2, ULONG, sigpend, 'B'),
- FIELD (signal3, ULONG, sighold, 'B'),
- FIELD (identity, PID_T, pid, 'd', .thread_identifier = true),
- FIELD (identity, PID_T, ppid, 'd'),
- FIELD (identity, PID_T, pgrp, 'd'),
- FIELD (identity, PID_T, sid, 'd'),
- TIMEVAL_FIELD (utime),
- TIMEVAL_FIELD (stime),
- TIMEVAL_FIELD (cutime),
- TIMEVAL_FIELD (cstime),
-#ifdef PRSTATUS_REGSET_ITEMS
- PRSTATUS_REGSET_ITEMS,
-#endif
- FIELD (register, INT, fpvalid, 'd'),
- };
-
-#undef FIELD
-
-#define FIELD(igroup, itype, item, fmt, ...) \
- { \
- .name = #item, \
- .group = #igroup, \
- .offset = offsetof (struct EBLHOOK(prpsinfo), pr_##item), \
- .type = TYPE_##itype, \
- .format = fmt, \
- __VA_ARGS__ \
- }
-
-static const Ebl_Core_Item prpsinfo_items[] =
- {
- FIELD (state, CHAR, state, 'd'),
- FIELD (state, CHAR, sname, 'c'),
- FIELD (state, CHAR, zomb, 'd'),
- FIELD (state, CHAR, nice, 'd'),
- FIELD (state, ULONG, flag, 'x'),
- FIELD (identity, UID_T, uid, 'd'),
- FIELD (identity, GID_T, gid, 'd'),
- FIELD (identity, PID_T, pid, 'd'),
- FIELD (identity, PID_T, ppid, 'd'),
- FIELD (identity, PID_T, pgrp, 'd'),
- FIELD (identity, PID_T, sid, 'd'),
- FIELD (command, CHAR, fname, 's', .count = FNAMESZ),
- FIELD (command, CHAR, psargs, 's', .count = PRARGSZ),
- };
-
-static const Ebl_Core_Item vmcoreinfo_items[] =
- {
- {
- .type = ELF_T_BYTE, .format = '\n'
- }
- };
-
-#undef FIELD
-
-int
-EBLHOOK(core_note) (nhdr, name, regs_offset, nregloc, reglocs, nitems, items)
- const GElf_Nhdr *nhdr;
- const char *name;
- GElf_Word *regs_offset;
- size_t *nregloc;
- const Ebl_Register_Location **reglocs;
- size_t *nitems;
- const Ebl_Core_Item **items;
-{
- switch (nhdr->n_namesz)
- {
- case sizeof "CORE" - 1: /* Buggy old Linux kernels. */
- if (memcmp (name, "CORE", nhdr->n_namesz) == 0)
- break;
- return 0;
-
- case sizeof "CORE":
- if (memcmp (name, "CORE", nhdr->n_namesz) == 0)
- break;
- /* Buggy old Linux kernels didn't terminate "LINUX".
- Fall through. */
-
- case sizeof "LINUX":
- if (memcmp (name, "LINUX", nhdr->n_namesz) == 0)
- break;
- return 0;
-
- case sizeof "VMCOREINFO":
- if (nhdr->n_type != 0
- || memcmp (name, "VMCOREINFO", sizeof "VMCOREINFO") != 0)
- return 0;
- *regs_offset = 0;
- *nregloc = 0;
- *nitems = 1;
- *items = vmcoreinfo_items;
- return 1;
-
- default:
- return 0;
- }
-
- switch (nhdr->n_type)
- {
- case NT_PRSTATUS:
- if (nhdr->n_descsz != sizeof (struct EBLHOOK(prstatus)))
- return 0;
- *regs_offset = offsetof (struct EBLHOOK(prstatus), pr_reg);
- *nregloc = sizeof prstatus_regs / sizeof prstatus_regs[0];
- *reglocs = prstatus_regs;
- *nitems = sizeof prstatus_items / sizeof prstatus_items[0];
- *items = prstatus_items;
- return 1;
-
- case NT_PRPSINFO:
- if (nhdr->n_descsz != sizeof (struct EBLHOOK(prpsinfo)))
- return 0;
- *regs_offset = 0;
- *nregloc = 0;
- *reglocs = NULL;
- *nitems = sizeof prpsinfo_items / sizeof prpsinfo_items[0];
- *items = prpsinfo_items;
- return 1;
-
-#define EXTRA_REGSET(type, size, table) \
- case type: \
- if (nhdr->n_descsz != size) \
- return 0; \
- *regs_offset = 0; \
- *nregloc = sizeof table / sizeof table[0]; \
- *reglocs = table; \
- *nitems = 0; \
- *items = NULL; \
- return 1;
-
-#define EXTRA_REGSET_ITEMS(type, size, table, extra_items) \
- case type: \
- if (nhdr->n_descsz != size) \
- return 0; \
- *regs_offset = 0; \
- *nregloc = sizeof table / sizeof table[0]; \
- *reglocs = table; \
- *nitems = sizeof extra_items / sizeof extra_items[0]; \
- *items = extra_items; \
- return 1;
-
-#define EXTRA_ITEMS(type, size, extra_items) \
- case type: \
- if (nhdr->n_descsz != size) \
- return 0; \
- *regs_offset = 0; \
- *nregloc = 0; \
- *reglocs = NULL; \
- *nitems = sizeof extra_items / sizeof extra_items[0]; \
- *items = extra_items; \
- return 1;
-
-#ifdef FPREGSET_SIZE
- EXTRA_REGSET (NT_FPREGSET, FPREGSET_SIZE, fpregset_regs)
-#endif
-
-#ifdef EXTRA_NOTES
- EXTRA_NOTES
-#endif
- }
-
- return 0;
-}
diff --git a/src/backends/ppc64_corenote.c b/src/backends/ppc64_corenote.c
deleted file mode 100644
index 9d6a6a44..00000000
--- a/src/backends/ppc64_corenote.c
+++ /dev/null
@@ -1,2 +0,0 @@
-#define BITS 64
-#include "ppc_corenote.c"
diff --git a/src/backends/ppc64_init.c b/src/backends/ppc64_init.c
deleted file mode 100644
index 56e1828e..00000000
--- a/src/backends/ppc64_init.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* Initialization of PPC64 specific backend library.
- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#define BACKEND ppc64_
-#define RELOC_PREFIX R_PPC64_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on ppc64_reloc.def. */
-#include "common-reloc.c"
-
-
-const char *
-ppc64_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "PowerPC 64-bit";
- ppc64_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, dynamic_tag_name);
- HOOK (eh, dynamic_tag_check);
- HOOK (eh, machine_flag_check);
- HOOK (eh, copy_reloc_p);
- HOOK (eh, check_special_symbol);
- HOOK (eh, check_st_other_bits);
- HOOK (eh, bss_plt_p);
- HOOK (eh, return_value_location);
- HOOK (eh, register_info);
- HOOK (eh, syscall_abi);
- HOOK (eh, core_note);
- HOOK (eh, auxv_info);
- HOOK (eh, abi_cfi);
- /* gcc/config/ #define DWARF_FRAME_REGISTERS. */
- eh->frame_nregs = (114 - 1) + 32;
- HOOK (eh, set_initial_registers_tid);
- HOOK (eh, dwarf_to_regno);
- HOOK (eh, resolve_sym_value);
-
- /* Find the function descriptor .opd table for resolve_sym_value. */
- if (elf != NULL)
- {
- GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr != NULL && ehdr->e_type != ET_REL)
- {
- /* We could also try through DT_PPC64_OPD and DT_PPC64_OPDSZ. */
- GElf_Shdr opd_shdr_mem, *opd_shdr;
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (elf, scn)) != NULL)
- {
- opd_shdr = gelf_getshdr (scn, &opd_shdr_mem);
- if (opd_shdr != NULL
- && (opd_shdr->sh_flags & SHF_ALLOC) != 0
- && opd_shdr->sh_type == SHT_PROGBITS
- && opd_shdr->sh_size > 0)
- {
- const char *name = elf_strptr (elf, ehdr->e_shstrndx,
- opd_shdr->sh_name);
- if (name != NULL && strcmp (name, ".opd") == 0)
- {
- eh->fd_addr = opd_shdr->sh_addr;
- eh->fd_data = elf_getdata (scn, NULL);
- break;
- }
- }
- }
- }
- }
-
- return MODVERSION;
-}
diff --git a/src/backends/ppc64_reloc.def b/src/backends/ppc64_reloc.def
deleted file mode 100644
index 3a693cf6..00000000
--- a/src/backends/ppc64_reloc.def
+++ /dev/null
@@ -1,161 +0,0 @@
-/* List the relocation types for ppc64. -*- C -*-
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (ADDR32, REL|EXEC|DYN)
-RELOC_TYPE (ADDR24, REL)
-RELOC_TYPE (ADDR16, REL) /* note 1 */
-RELOC_TYPE (ADDR16_LO, REL) /* note 1 */
-RELOC_TYPE (ADDR16_HI, REL) /* note 1 */
-RELOC_TYPE (ADDR16_HA, REL) /* note 1 */
-RELOC_TYPE (ADDR14, REL) /* note 1 */
-RELOC_TYPE (ADDR14_BRTAKEN, REL) /* note 1 */
-RELOC_TYPE (ADDR14_BRNTAKEN, REL) /* note 1 */
-RELOC_TYPE (REL24, REL)
-RELOC_TYPE (REL14, REL)
-RELOC_TYPE (REL14_BRTAKEN, REL)
-RELOC_TYPE (REL14_BRNTAKEN, REL)
-RELOC_TYPE (GOT16, REL)
-RELOC_TYPE (GOT16_LO, REL)
-RELOC_TYPE (GOT16_HI, REL)
-RELOC_TYPE (GOT16_HA, REL)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (UADDR32, REL|EXEC|DYN)
-RELOC_TYPE (UADDR16, REL)
-RELOC_TYPE (REL32, REL|EXEC|DYN)
-RELOC_TYPE (PLT32, REL)
-RELOC_TYPE (PLTREL32, REL)
-RELOC_TYPE (PLT16_LO, REL)
-RELOC_TYPE (PLT16_HI, REL)
-RELOC_TYPE (PLT16_HA, REL)
-RELOC_TYPE (SECTOFF, REL)
-RELOC_TYPE (SECTOFF_LO, REL)
-RELOC_TYPE (SECTOFF_HI, REL)
-RELOC_TYPE (SECTOFF_HA, REL)
-RELOC_TYPE (ADDR30, REL) /* note 1 */
-RELOC_TYPE (ADDR64, REL|EXEC|DYN)
-RELOC_TYPE (ADDR16_HIGHER, REL) /* note 1 */
-RELOC_TYPE (ADDR16_HIGHERA, REL) /* note 1 */
-RELOC_TYPE (ADDR16_HIGHEST, REL) /* note 1 */
-RELOC_TYPE (ADDR16_HIGHESTA, REL) /* note 1 */
-RELOC_TYPE (UADDR64, REL|EXEC|DYN)
-RELOC_TYPE (REL64, REL|EXEC|DYN)
-RELOC_TYPE (PLT64, REL)
-RELOC_TYPE (PLTREL64, REL)
-RELOC_TYPE (TOC16, REL)
-RELOC_TYPE (TOC16_LO, REL)
-RELOC_TYPE (TOC16_HI, REL)
-RELOC_TYPE (TOC16_HA, REL)
-RELOC_TYPE (TOC, REL)
-RELOC_TYPE (PLTGOT16, REL)
-RELOC_TYPE (PLTGOT16_LO, REL)
-RELOC_TYPE (PLTGOT16_HI, REL)
-RELOC_TYPE (PLTGOT16_HA, REL)
-RELOC_TYPE (ADDR16_DS, REL) /* note 1 */
-RELOC_TYPE (ADDR16_LO_DS, REL) /* note 1 */
-RELOC_TYPE (GOT16_DS, REL)
-RELOC_TYPE (GOT16_LO_DS, REL)
-RELOC_TYPE (PLT16_LO_DS, REL)
-RELOC_TYPE (SECTOFF_DS, REL)
-RELOC_TYPE (SECTOFF_LO_DS, REL)
-RELOC_TYPE (TOC16_DS, REL)
-RELOC_TYPE (TOC16_LO_DS, REL)
-RELOC_TYPE (PLTGOT16_DS, REL)
-RELOC_TYPE (PLTGOT16_LO_DS, REL)
-RELOC_TYPE (TLS, REL)
-RELOC_TYPE (DTPMOD64, REL|EXEC|DYN) /* note 3 */
-RELOC_TYPE (TPREL16, REL) /* note 2 */
-RELOC_TYPE (TPREL16_LO, REL) /* note 2 */
-RELOC_TYPE (TPREL16_HI, REL) /* note 2 */
-RELOC_TYPE (TPREL16_HA, REL) /* note 2 */
-RELOC_TYPE (TPREL64, REL|EXEC|DYN) /* note 3 */
-RELOC_TYPE (DTPREL16, REL)
-RELOC_TYPE (DTPREL16_LO, REL)
-RELOC_TYPE (DTPREL16_HI, REL)
-RELOC_TYPE (DTPREL16_HA, REL)
-RELOC_TYPE (DTPREL64, REL|EXEC|DYN) /* note 3 */
-RELOC_TYPE (GOT_TLSGD16, REL)
-RELOC_TYPE (GOT_TLSGD16_LO, REL)
-RELOC_TYPE (GOT_TLSGD16_HI, REL)
-RELOC_TYPE (GOT_TLSGD16_HA, REL)
-RELOC_TYPE (GOT_TLSLD16, REL)
-RELOC_TYPE (GOT_TLSLD16_LO, REL)
-RELOC_TYPE (GOT_TLSLD16_HI, REL)
-RELOC_TYPE (GOT_TLSLD16_HA, REL)
-RELOC_TYPE (GOT_TPREL16_DS, REL)
-RELOC_TYPE (GOT_TPREL16_LO_DS, REL)
-RELOC_TYPE (GOT_TPREL16_HI, REL)
-RELOC_TYPE (GOT_TPREL16_HA, REL)
-RELOC_TYPE (GOT_DTPREL16_DS, REL)
-RELOC_TYPE (GOT_DTPREL16_LO_DS, REL)
-RELOC_TYPE (GOT_DTPREL16_HI, REL)
-RELOC_TYPE (GOT_DTPREL16_HA, REL)
-RELOC_TYPE (TPREL16_DS, REL) /* note 2 */
-RELOC_TYPE (TPREL16_LO_DS, REL) /* note 2 */
-RELOC_TYPE (TPREL16_HIGHER, REL) /* note 2 */
-RELOC_TYPE (TPREL16_HIGHERA, REL) /* note 2 */
-RELOC_TYPE (TPREL16_HIGHEST, REL) /* note 2 */
-RELOC_TYPE (TPREL16_HIGHESTA, REL) /* note 2 */
-RELOC_TYPE (DTPREL16_DS, REL)
-RELOC_TYPE (DTPREL16_LO_DS, REL)
-RELOC_TYPE (DTPREL16_HIGHER, REL)
-RELOC_TYPE (DTPREL16_HIGHERA, REL)
-RELOC_TYPE (DTPREL16_HIGHEST, REL)
-RELOC_TYPE (DTPREL16_HIGHESTA, REL)
-RELOC_TYPE (TLSGD, REL)
-RELOC_TYPE (TLSLD, REL)
-RELOC_TYPE (TOCSAVE, REL)
-RELOC_TYPE (ADDR16_HIGH, REL)
-RELOC_TYPE (ADDR16_HIGHA, REL)
-RELOC_TYPE (TPREL16_HIGH, REL)
-RELOC_TYPE (TPREL16_HIGHA, REL)
-RELOC_TYPE (DTPREL16_HIGH, REL)
-RELOC_TYPE (DTPREL16_HIGHA, REL)
-RELOC_TYPE (JMP_IREL, REL)
-RELOC_TYPE (IRELATIVE, REL)
-RELOC_TYPE (REL16, REL)
-RELOC_TYPE (REL16_LO, REL)
-RELOC_TYPE (REL16_HI, REL)
-RELOC_TYPE (REL16_HA, REL)
-
-/* Notes from Alan Modra:
-
- 1) These can appear in DYN and EXEC with improper assembly, but they
- aren't really kosher.
-
- 2) These can appear in DYN with improper assembly (or silly gcc
- attributes, I think). Again, not kosher.
-
- 3) These are legal in REL for PowerOpen compatible assembler syntax,
- ie. TOC managed by compiler.
-*/
diff --git a/src/backends/ppc64_resolve_sym.c b/src/backends/ppc64_resolve_sym.c
deleted file mode 100644
index 03f65584..00000000
--- a/src/backends/ppc64_resolve_sym.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* Resolve symbol values through .opd function descriptors.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND ppc64_
-#include "libebl_CPU.h"
-
-/* Resolve a function descriptor if addr points into the .opd section.
- The .opd section contains function descriptors consisting of 3 addresses.
- function, toc and chain. We are just interested in the first.
- http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html#FUNC-DES
-
- Returns true if the given address could be resolved, false otherwise.
-*/
-bool
-ppc64_resolve_sym_value (Ebl *ebl, GElf_Addr *addr)
-{
- if (ebl->fd_data != NULL && *addr >= ebl->fd_addr
- && *addr + sizeof (Elf64_Addr) <= ebl->fd_addr + ebl->fd_data->d_size)
- {
- GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (ebl->elf, &ehdr_mem);
- if (ehdr != NULL)
- {
- Elf_Data opd_in, opd_out;
- opd_in.d_buf = ebl->fd_data->d_buf + (*addr - ebl->fd_addr);
- opd_out.d_buf = addr;
- opd_out.d_size = opd_in.d_size = sizeof (Elf64_Addr);
- opd_out.d_type = opd_in.d_type = ELF_T_ADDR;
- if (elf64_xlatetom (&opd_out, &opd_in,
- ehdr->e_ident[EI_DATA]) != NULL)
- return true;
- }
- }
- return false;
-}
diff --git a/src/backends/ppc64_retval.c b/src/backends/ppc64_retval.c
deleted file mode 100644
index a2519839..00000000
--- a/src/backends/ppc64_retval.c
+++ /dev/null
@@ -1,195 +0,0 @@
-/* Function return value location for Linux/PPC64 ABI.
- Copyright (C) 2005-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND ppc64_
-#include "libebl_CPU.h"
-
-
-/* r3. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg3 }
- };
-#define nloc_intreg 1
-
-/* f1, or f1:f2, or f1:f4. */
-static const Dwarf_Op loc_fpreg[] =
- {
- { .atom = DW_OP_regx, .number = 33 }, { .atom = DW_OP_piece, .number = 8 },
- { .atom = DW_OP_regx, .number = 34 }, { .atom = DW_OP_piece, .number = 8 },
- { .atom = DW_OP_regx, .number = 35 }, { .atom = DW_OP_piece, .number = 8 },
- { .atom = DW_OP_regx, .number = 36 }, { .atom = DW_OP_piece, .number = 8 },
- };
-#define nloc_fpreg 1
-#define nloc_fp2regs 4
-#define nloc_fp4regs 8
-
-/* vr2. */
-static const Dwarf_Op loc_vmxreg[] =
- {
- { .atom = DW_OP_regx, .number = 1124 + 2 }
- };
-#define nloc_vmxreg 1
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in r3. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg3, .number = 0 }
- };
-#define nloc_aggregate 1
-
-int
-ppc64_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 8;
- else
- return -1;
- }
- }
-
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
-
- if (encoding == DW_ATE_float || encoding == DW_ATE_complex_float)
- {
- *locp = loc_fpreg;
- if (size <= 8)
- return nloc_fpreg;
- if (size <= 16)
- return nloc_fp2regs;
- if (size <= 32)
- return nloc_fp4regs;
- }
- }
- if (size <= 8)
- {
- intreg:
- *locp = loc_intreg;
- return nloc_intreg;
- }
-
- /* Else fall through. */
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- aggregate:
- *locp = loc_aggregate;
- return nloc_aggregate;
-
- case DW_TAG_array_type:
- {
- Dwarf_Attribute attr_mem;
- bool is_vector;
- if (dwarf_formflag (dwarf_attr_integrate (typedie, DW_AT_GNU_vector,
- &attr_mem), &is_vector) == 0
- && is_vector)
- {
- *locp = loc_vmxreg;
- return nloc_vmxreg;
- }
- }
- /* Fall through. */
-
- case DW_TAG_string_type:
- if (dwarf_aggregate_size (typedie, &size) == 0 && size <= 8)
- {
- if (tag == DW_TAG_array_type)
- {
- /* Check if it's a character array. */
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- if (tag != DW_TAG_base_type)
- goto aggregate;
- if (dwarf_formudata (dwarf_attr_integrate (typedie,
- DW_AT_byte_size,
- &attr_mem),
- &size) != 0)
- return -1;
- if (size != 1)
- goto aggregate;
- }
- goto intreg;
- }
- goto aggregate;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/ppc64_symbol.c b/src/backends/ppc64_symbol.c
deleted file mode 100644
index 0feddcee..00000000
--- a/src/backends/ppc64_symbol.c
+++ /dev/null
@@ -1,130 +0,0 @@
-/* PPC64 specific symbolic name handling.
- Copyright (C) 2004, 2005, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <elf.h>
-#include <stddef.h>
-#include <string.h>
-
-#define BACKEND ppc64_
-#include "libebl_CPU.h"
-
-
-/* Check for the simple reloc types. */
-Elf_Type
-ppc64_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_PPC64_ADDR64:
- case R_PPC64_UADDR64:
- return ELF_T_XWORD;
- case R_PPC64_ADDR32:
- case R_PPC64_UADDR32:
- return ELF_T_WORD;
- case R_PPC64_UADDR16:
- return ELF_T_HALF;
- default:
- return ELF_T_NUM;
- }
-}
-
-
-const char *
-ppc64_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (tag)
- {
- case DT_PPC64_GLINK:
- return "PPC64_GLINK";
- case DT_PPC64_OPD:
- return "PPC64_OPD";
- case DT_PPC64_OPDSZ:
- return "PPC64_OPDSZ";
- case DT_PPC64_OPT:
- return "PPC64_OPT";
- default:
- break;
- }
- return NULL;
-}
-
-
-bool
-ppc64_dynamic_tag_check (int64_t tag)
-{
- return (tag == DT_PPC64_GLINK
- || tag == DT_PPC64_OPD
- || tag == DT_PPC64_OPDSZ
- || tag == DT_PPC64_OPT);
-}
-
-
-/* Check whether given symbol's st_value and st_size are OK despite failing
- normal checks. */
-bool
-ppc64_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr,
- const GElf_Sym *sym __attribute__ ((unused)),
- const char *name __attribute__ ((unused)),
- const GElf_Shdr *destshdr)
-{
- const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
- if (sname == NULL)
- return false;
- return strcmp (sname, ".opd") == 0;
-}
-
-
-/* Check if backend uses a bss PLT in this file. */
-bool
-ppc64_bss_plt_p (Elf *elf __attribute__ ((unused)))
-{
- return true;
-}
-
-/* Check whether machine flags are valid. PPC64 has three possible values:
- 0 - for unspecified ABI, or not using any specific ABI features.
- 1 - for the original ELF PPC64 ABI using function descriptors.
- 2 - for the revised ELFv2 PPC64 ABI without function descriptors. */
-bool
-ppc64_machine_flag_check (GElf_Word flags)
-{
- return flags == 0 || flags == 1 || flags == 2;
-}
-
-bool
-ppc64_check_st_other_bits (unsigned char st_other)
-{
- return (PPC64_LOCAL_ENTRY_OFFSET (st_other) != 0);
-}
diff --git a/src/backends/ppc_attrs.c b/src/backends/ppc_attrs.c
deleted file mode 100644
index ebeafe5a..00000000
--- a/src/backends/ppc_attrs.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/* Object attribute tags for PowerPC.
- Copyright (C) 2008, 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND ppc_
-#include "libebl_CPU.h"
-
-bool
-ppc_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name)
- Ebl *ebl __attribute__ ((unused));
- const char *vendor;
- int tag;
- uint64_t value;
- const char **tag_name;
- const char **value_name;
-{
- if (!strcmp (vendor, "gnu"))
- switch (tag)
- {
- case 4:
- *tag_name = "GNU_Power_ABI_FP";
- static const char *fp_kinds[] =
- {
- "Hard or soft float",
- "Hard float",
- "Soft float",
- };
- if (value < sizeof fp_kinds / sizeof fp_kinds[0])
- *value_name = fp_kinds[value];
- return true;
-
- case 8:
- *tag_name = "GNU_Power_ABI_Vector";
- static const char *vector_kinds[] =
- {
- "Any", "Generic", "AltiVec", "SPE"
- };
- if (value < sizeof vector_kinds / sizeof vector_kinds[0])
- *value_name = vector_kinds[value];
- return true;
-
- case 12:
- *tag_name = "GNU_Power_ABI_Struct_Return";
- static const char *struct_return_kinds[] =
- {
- "Any", "r3/r4", "Memory"
- };
- if (value < sizeof struct_return_kinds / sizeof struct_return_kinds[0])
- *value_name = struct_return_kinds[value];
- return true;
- }
-
- return false;
-}
-
-__typeof (ppc_check_object_attribute)
- ppc64_check_object_attribute
- __attribute__ ((alias ("ppc_check_object_attribute")));
diff --git a/src/backends/ppc_auxv.c b/src/backends/ppc_auxv.c
deleted file mode 100644
index a27a1da4..00000000
--- a/src/backends/ppc_auxv.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* i386 specific auxv handling.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND ppc_
-#include "libebl_CPU.h"
-
-int
-EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format)
-{
- if (a_type != AT_HWCAP)
- return 0;
-
- *name = "HWCAP";
- *format = "b"
- "ppcle\0" "truele\0" "3\0" "4\0" "5\0" "6\0" "7\0" "8\0" "9\0"
- "power6x\0" "dfp\0" "pa6t\0" "arch_2_05\0"
- "ic_snoop\0" "smt\0" "booke\0" "cellbe\0"
- "power5+\0" "power5\0" "power4\0" "notb\0"
- "efpdouble\0" "efpsingle\0" "spe\0" "ucache\0"
- "4xxmac\0" "mmu\0" "fpu\0" "altivec\0"
- "ppc601\0" "ppc64\0" "ppc32\0" "\0";
- return 1;
-}
-
-__typeof (ppc_auxv_info) ppc64_auxv_info
- __attribute__ ((alias ("ppc_auxv_info")));
diff --git a/src/backends/ppc_cfi.c b/src/backends/ppc_cfi.c
deleted file mode 100644
index 55169aef..00000000
--- a/src/backends/ppc_cfi.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/* ppc ABI-specified defaults for DWARF CFI.
- Copyright (C) 2012, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-
-#define BACKEND ppc_
-#include "libebl_CPU.h"
-
-int
-ppc_abi_cfi (Ebl *ebl __attribute__ ((unused)), Dwarf_CIE *abi_info)
-{
- static const uint8_t abi_cfi[] =
- {
- /* This instruction is provided in every CIE. It is not repeated here:
- DW_CFA_def_cfa, ULEB128_7 (1), ULEB128_7 (0) */
- /* r1 is assumed to be restored from cfa adress,
- r1 acts as a stack frame pointer. */
- DW_CFA_val_offset, ULEB128_7 (1), ULEB128_7 (0),
- /* lr is not callee-saved but it needs to be preserved as it is pre-set
- by the caller. */
- DW_CFA_same_value, ULEB128_7 (65), /* lr */
-
- /* Callee-saved regs. */
-#define SV(n) DW_CFA_same_value, ULEB128_7 (n)
- SV (2), /* r2 is TOC pointer. */
- SV (13), /* Reserved as system thread id (is it for CFI?). */
- /* r14-r31 are non-volatile registers. */
- SV (14), SV (15), SV (16), SV (17), SV (18), SV (19), SV (20), SV (21),
- SV (22), SV (23), SV (24), SV (25), SV (26), SV (27), SV (28), SV (29),
- SV (30), SV (31)
- /* VMX registers v20-v31 and vrsave are non-volatile but they are
- assigned DWARF registers 1144-1156 (v20-v31) which is outside of the
- CFI supported range. */
-#undef SV
- };
-
- abi_info->initial_instructions = abi_cfi;
- abi_info->initial_instructions_end = &abi_cfi[sizeof abi_cfi];
- abi_info->data_alignment_factor = ebl->class == ELFCLASS64 ? 8 : 4;
-
- abi_info->return_address_register = 65;
-
- return 0;
-}
-
-__typeof (ppc_abi_cfi)
- ppc64_abi_cfi
- __attribute__ ((alias ("ppc_abi_cfi")));
diff --git a/src/backends/ppc_corenote.c b/src/backends/ppc_corenote.c
deleted file mode 100644
index 9ac88712..00000000
--- a/src/backends/ppc_corenote.c
+++ /dev/null
@@ -1,134 +0,0 @@
-/* PowerPC specific core note handling.
- Copyright (C) 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#ifndef BITS
-# define BITS 32
-# define BACKEND ppc_
-#else
-# define BITS 64
-# define BACKEND ppc64_
-#endif
-#include "libebl_CPU.h"
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
-#define GR(at, n, dwreg) \
- { .offset = at * BITS/8, .regno = dwreg, .count = n, .bits = BITS }
-
- GR (0, 32, 0), /* r0-r31 */
- /* 32, 1, nip */
- GR (33, 1, 66), /* msr */
- /* 34, 1, orig_gpr3 */
- GR (35, 1, 109), /* ctr */
- GR (36, 1, 108), /* lr */
- GR (37, 1, 101), /* xer */
- GR (38, 1, 64), /* cr */
- GR (39, 1, 100), /* mq */
- /* 40, 1, trap */
- GR (41, 1, 119), /* dar */
- GR (42, 1, 118), /* dsisr */
-
-#undef GR
- };
-#define PRSTATUS_REGS_SIZE (BITS / 8 * 48)
-
-static const Ebl_Register_Location fpregset_regs[] =
- {
- { .offset = 0, .regno = 32, .count = 32, .bits = 64 }, /* f0-f31 */
- { .offset = 32 * 8 + 4, .regno = 65, .count = 1, .bits = 32 } /* fpscr */
- };
-#define FPREGSET_SIZE (33 * 8)
-
-static const Ebl_Register_Location altivec_regs[] =
- {
- /* vr0-vr31 */
- { .offset = 0, .regno = 1124, .count = 32, .bits = 128 },
- /* vscr XXX 67 is an unofficial assignment */
- { .offset = 32 * 16, .regno = 67, .count = 1, .bits = 32, .pad = 12 },
- /* vrsave */
- { .offset = 33 * 16, .regno = 356, .count = 1, .bits = 32, .pad = 12 }
- };
-
-static const Ebl_Register_Location spe_regs[] =
- {
- /* evr0-evr31
- { .offset = 0, .regno = ???, .count = 32, .bits = 32 },
- * acc *
- { .offset = 32 * 4, .regno = ???, .count = 1, .bits = 64 }, */
- /* spefscr */
- { .offset = 34 * 4, .regno = 612, .count = 1, .bits = 32 }
- };
-
-#define EXTRA_NOTES \
- EXTRA_REGSET (NT_PPC_VMX, 34 * 16, altivec_regs) \
- EXTRA_REGSET (NT_PPC_SPE, 35 * 4, spe_regs)
-
-#if BITS == 32
-# define ULONG uint32_t
-# define ALIGN_ULONG 4
-# define TYPE_ULONG ELF_T_WORD
-# define TYPE_LONG ELF_T_SWORD
-#else
-# define ULONG uint64_t
-# define ALIGN_ULONG 8
-# define TYPE_ULONG ELF_T_XWORD
-# define TYPE_LONG ELF_T_SXWORD
-#endif
-#define PID_T int32_t
-#define UID_T uint32_t
-#define GID_T uint32_t
-#define ALIGN_PID_T 4
-#define ALIGN_UID_T 4
-#define ALIGN_GID_T 4
-#define TYPE_PID_T ELF_T_SWORD
-#define TYPE_UID_T ELF_T_WORD
-#define TYPE_GID_T ELF_T_WORD
-
-#define PRSTATUS_REGSET_ITEMS \
- { \
- .name = "nip", .type = ELF_T_ADDR, .format = 'x', \
- .offset = offsetof (struct EBLHOOK(prstatus), pr_reg[32]), \
- .group = "register", .pc_register = true \
- }, \
- { \
- .name = "orig_gpr3", .type = TYPE_LONG, .format = 'd', \
- .offset = offsetof (struct EBLHOOK(prstatus), pr_reg[34]), \
- .group = "register" \
- }
-
-#include "linux-core-note.c"
diff --git a/src/backends/ppc_init.c b/src/backends/ppc_init.c
deleted file mode 100644
index ad92765c..00000000
--- a/src/backends/ppc_init.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Initialization of PPC specific backend library.
- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2013 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND ppc_
-#define RELOC_PREFIX R_PPC_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on ppc_reloc.def. */
-#include "common-reloc.c"
-
-
-const char *
-ppc_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "PowerPC";
- ppc_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, dynamic_tag_name);
- HOOK (eh, dynamic_tag_check);
- HOOK (eh, check_special_symbol);
- HOOK (eh, bss_plt_p);
- HOOK (eh, return_value_location);
- HOOK (eh, register_info);
- HOOK (eh, syscall_abi);
- HOOK (eh, core_note);
- HOOK (eh, auxv_info);
- HOOK (eh, check_object_attribute);
- HOOK (eh, abi_cfi);
- /* gcc/config/ #define DWARF_FRAME_REGISTERS. */
- eh->frame_nregs = (114 - 1) + 32;
- HOOK (eh, set_initial_registers_tid);
- HOOK (eh, dwarf_to_regno);
-
- return MODVERSION;
-}
diff --git a/src/backends/ppc_initreg.c b/src/backends/ppc_initreg.c
deleted file mode 100644
index 64f53793..00000000
--- a/src/backends/ppc_initreg.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/* Fetch live process registers from TID.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "system.h"
-#include <stdlib.h>
-#ifdef __powerpc__
-# include <sys/user.h>
-# include <sys/ptrace.h>
-#endif
-
-#define BACKEND ppc_
-#include "libebl_CPU.h"
-
-bool
-ppc_dwarf_to_regno (Ebl *ebl __attribute__ ((unused)), unsigned *regno)
-{
- switch (*regno)
- {
- case 108:
- // LR uses both 65 and 108 numbers, there is no consistency for it.
- *regno = 65;
- return true;
- case 0 ... 107:
- case 109 ... (114 - 1) -1:
- return true;
- case 1200 ... 1231:
- *regno = *regno - 1200 + (114 - 1);
- return true;
- default:
- return false;
- }
- abort ();
-}
-
-__typeof (ppc_dwarf_to_regno)
- ppc64_dwarf_to_regno
- __attribute__ ((alias ("ppc_dwarf_to_regno")));
-
-bool
-ppc_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
- ebl_tid_registers_t *setfunc __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
-#ifndef __powerpc__
- return false;
-#else /* __powerpc__ */
- union
- {
- struct pt_regs r;
- long l[sizeof (struct pt_regs) / sizeof (long)];
- }
- user_regs;
- eu_static_assert (sizeof (struct pt_regs) % sizeof (long) == 0);
- /* PTRACE_GETREGS is EIO on kernel-2.6.18-308.el5.ppc64. */
- errno = 0;
- for (unsigned regno = 0; regno < sizeof (user_regs) / sizeof (long);
- regno++)
- {
- user_regs.l[regno] = ptrace (PTRACE_PEEKUSER, tid,
- (void *) (uintptr_t) (regno
- * sizeof (long)),
- NULL);
- if (errno != 0)
- return false;
- }
- const size_t gprs = sizeof (user_regs.r.gpr) / sizeof (*user_regs.r.gpr);
- Dwarf_Word dwarf_regs[gprs];
- for (unsigned gpr = 0; gpr < gprs; gpr++)
- dwarf_regs[gpr] = user_regs.r.gpr[gpr];
- if (! setfunc (0, gprs, dwarf_regs, arg))
- return false;
- dwarf_regs[0] = user_regs.r.link;
- // LR uses both 65 and 108 numbers, there is no consistency for it.
- if (! setfunc (65, 1, dwarf_regs, arg))
- return false;
- /* Registers like msr, ctr, xer, dar, dsisr etc. are probably irrelevant
- for CFI. */
- dwarf_regs[0] = user_regs.r.nip;
- return setfunc (-1, 1, dwarf_regs, arg);
-#endif /* __powerpc__ */
-}
-
-__typeof (ppc_set_initial_registers_tid)
- ppc64_set_initial_registers_tid
- __attribute__ ((alias ("ppc_set_initial_registers_tid")));
diff --git a/src/backends/ppc_regs.c b/src/backends/ppc_regs.c
deleted file mode 100644
index 4b92a9aa..00000000
--- a/src/backends/ppc_regs.c
+++ /dev/null
@@ -1,200 +0,0 @@
-/* Register names and numbers for PowerPC DWARF.
- Copyright (C) 2005, 2006, 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND ppc_
-#include "libebl_CPU.h"
-
-ssize_t
-ppc_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 1156;
-
- if (regno < 0 || regno > 1155 || namelen < 8)
- return -1;
-
- *prefix = "";
- *bits = ebl->machine == EM_PPC64 ? 64 : 32;
- *type = (regno < 32 ? DW_ATE_signed
- : regno < 64 ? DW_ATE_float : DW_ATE_unsigned);
-
- if (regno < 32 || regno == 64 || regno == 66)
- *setname = "integer";
- else if (regno < 64 || regno == 65)
- {
- *setname = "FPU";
- if (ebl->machine != EM_PPC64 && regno < 64)
- *bits = 64;
- }
- else if (regno == 67 || regno == 356 || regno == 612 || regno >= 1124)
- {
- *setname = "vector";
- *bits = regno >= 1124 ? 128 : 32;
- }
- else
- *setname = "privileged";
-
- switch (regno)
- {
- case 0 ... 9:
- name[0] = 'r';
- name[1] = regno + '0';
- namelen = 2;
- break;
-
- case 10 ... 31:
- name[0] = 'r';
- name[1] = regno / 10 + '0';
- name[2] = regno % 10 + '0';
- namelen = 3;
- break;
-
- case 32 + 0 ... 32 + 9:
- name[0] = 'f';
- name[1] = (regno - 32) + '0';
- namelen = 2;
- break;
-
- case 32 + 10 ... 32 + 31:
- name[0] = 'f';
- name[1] = (regno - 32) / 10 + '0';
- name[2] = (regno - 32) % 10 + '0';
- namelen = 3;
- break;
-
- case 64:
- return stpcpy (name, "cr") + 1 - name;
- case 65:
- return stpcpy (name, "fpscr") + 1 - name;
- case 66:
- return stpcpy (name, "msr") + 1 - name;
- case 67: /* XXX unofficial assignment */
- return stpcpy (name, "vscr") + 1 - name;
-
- case 70 + 0 ... 70 + 9:
- name[0] = 's';
- name[1] = 'r';
- name[2] = (regno - 70) + '0';
- namelen = 3;
- break;
-
- case 70 + 10 ... 70 + 15:
- name[0] = 's';
- name[1] = 'r';
- name[2] = (regno - 70) / 10 + '0';
- name[3] = (regno - 70) % 10 + '0';
- namelen = 4;
- break;
-
- case 101:
- return stpcpy (name, "xer") + 1 - name;
- case 108:
- return stpcpy (name, "lr") + 1 - name;
- case 109:
- return stpcpy (name, "ctr") + 1 - name;
- case 118:
- return stpcpy (name, "dsisr") + 1 - name;
- case 119:
- return stpcpy (name, "dar") + 1 - name;
- case 122:
- return stpcpy (name, "dec") + 1 - name;
- case 356:
- return stpcpy (name, "vrsave") + 1 - name;
- case 612:
- return stpcpy (name, "spefscr") + 1 - name;
- case 100:
- if (*bits == 32)
- return stpcpy (name, "mq") + 1 - name;
-
- case 102 ... 107:
- name[0] = 's';
- name[1] = 'p';
- name[2] = 'r';
- name[3] = (regno - 100) + '0';
- namelen = 4;
- break;
-
- case 110 ... 117:
- case 120 ... 121:
- case 123 ... 199:
- name[0] = 's';
- name[1] = 'p';
- name[2] = 'r';
- name[3] = (regno - 100) / 10 + '0';
- name[4] = (regno - 100) % 10 + '0';
- namelen = 5;
- break;
-
- case 200 ... 355:
- case 357 ... 611:
- case 613 ... 999:
- name[0] = 's';
- name[1] = 'p';
- name[2] = 'r';
- name[3] = (regno - 100) / 100 + '0';
- name[4] = ((regno - 100) % 100 / 10) + '0';
- name[5] = (regno - 100) % 10 + '0';
- namelen = 6;
- break;
-
- case 1124 + 0 ... 1124 + 9:
- name[0] = 'v';
- name[1] = 'r';
- name[2] = (regno - 1124) + '0';
- namelen = 3;
- break;
-
- case 1124 + 10 ... 1124 + 31:
- name[0] = 'v';
- name[1] = 'r';
- name[2] = (regno - 1124) / 10 + '0';
- name[3] = (regno - 1124) % 10 + '0';
- namelen = 4;
- break;
-
- default:
- *setname = NULL;
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
-
-__typeof (ppc_register_info)
- ppc64_register_info __attribute__ ((alias ("ppc_register_info")));
diff --git a/src/backends/ppc_reloc.def b/src/backends/ppc_reloc.def
deleted file mode 100644
index dc963a0e..00000000
--- a/src/backends/ppc_reloc.def
+++ /dev/null
@@ -1,137 +0,0 @@
-/* List the relocation types for ppc. -*- C -*-
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (ADDR32, REL|EXEC|DYN)
-RELOC_TYPE (ADDR24, REL)
-RELOC_TYPE (ADDR16, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (ADDR16_LO, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (ADDR16_HI, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (ADDR16_HA, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (ADDR14, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (ADDR14_BRTAKEN, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (ADDR14_BRNTAKEN, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (REL24, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (REL14, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (REL14_BRTAKEN, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (REL14_BRNTAKEN, REL|EXEC|DYN) /* note 1 */
-RELOC_TYPE (GOT16, REL)
-RELOC_TYPE (GOT16_LO, REL)
-RELOC_TYPE (GOT16_HI, REL)
-RELOC_TYPE (GOT16_HA, REL)
-RELOC_TYPE (PLTREL24, REL)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (LOCAL24PC, REL)
-RELOC_TYPE (UADDR32, REL|EXEC|DYN)
-RELOC_TYPE (UADDR16, REL) /* note 2 */
-RELOC_TYPE (REL32, REL|EXEC|DYN)
-RELOC_TYPE (PLT32, REL)
-RELOC_TYPE (PLTREL32, REL)
-RELOC_TYPE (PLT16_LO, REL)
-RELOC_TYPE (PLT16_HI, REL)
-RELOC_TYPE (PLT16_HA, REL)
-RELOC_TYPE (SDAREL16, REL)
-RELOC_TYPE (SECTOFF, REL)
-RELOC_TYPE (SECTOFF_LO, REL)
-RELOC_TYPE (SECTOFF_HI, REL)
-RELOC_TYPE (SECTOFF_HA, REL)
-RELOC_TYPE (TLS, REL)
-RELOC_TYPE (DTPMOD32, EXEC|DYN) /* note 2 */
-RELOC_TYPE (TPREL16, REL) /* note 2 */
-RELOC_TYPE (TPREL16_LO, REL) /* note 2 */
-RELOC_TYPE (TPREL16_HI, REL) /* note 2 */
-RELOC_TYPE (TPREL16_HA, REL) /* note 2 */
-RELOC_TYPE (TPREL32, EXEC|DYN) /* note 2 */
-RELOC_TYPE (DTPREL16, REL)
-RELOC_TYPE (DTPREL16_LO, REL)
-RELOC_TYPE (DTPREL16_HI, REL)
-RELOC_TYPE (DTPREL16_HA, REL)
-RELOC_TYPE (DTPREL32, EXEC|DYN) /* note 2 */
-RELOC_TYPE (GOT_TLSGD16, REL)
-RELOC_TYPE (GOT_TLSGD16_LO, REL)
-RELOC_TYPE (GOT_TLSGD16_HI, REL)
-RELOC_TYPE (GOT_TLSGD16_HA, REL)
-RELOC_TYPE (GOT_TLSLD16, REL)
-RELOC_TYPE (GOT_TLSLD16_LO, REL)
-RELOC_TYPE (GOT_TLSLD16_HI, REL)
-RELOC_TYPE (GOT_TLSLD16_HA, REL)
-RELOC_TYPE (GOT_TPREL16, REL)
-RELOC_TYPE (GOT_TPREL16_LO, REL)
-RELOC_TYPE (GOT_TPREL16_HI, REL)
-RELOC_TYPE (GOT_TPREL16_HA, REL)
-RELOC_TYPE (GOT_DTPREL16, REL)
-RELOC_TYPE (GOT_DTPREL16_LO, REL)
-RELOC_TYPE (GOT_DTPREL16_HI, REL)
-RELOC_TYPE (GOT_DTPREL16_HA, REL)
-RELOC_TYPE (EMB_NADDR32, REL) /* note 3 */
-RELOC_TYPE (EMB_NADDR16, REL) /* note 3 */
-RELOC_TYPE (EMB_NADDR16_LO, REL) /* note 3 */
-RELOC_TYPE (EMB_NADDR16_HI, REL) /* note 3 */
-RELOC_TYPE (EMB_NADDR16_HA, REL) /* note 3 */
-RELOC_TYPE (EMB_SDAI16, REL) /* note 3 */
-RELOC_TYPE (EMB_SDA2I16, REL) /* note 3 */
-RELOC_TYPE (EMB_SDA2REL, REL) /* note 3 */
-RELOC_TYPE (EMB_SDA21, REL) /* note 3 */
-RELOC_TYPE (EMB_MRKREF, REL) /* note 3 */
-RELOC_TYPE (EMB_RELSEC16, REL) /* note 3 */
-RELOC_TYPE (EMB_RELST_LO, REL) /* note 3 */
-RELOC_TYPE (EMB_RELST_HI, REL) /* note 3 */
-RELOC_TYPE (EMB_RELST_HA, REL) /* note 3 */
-RELOC_TYPE (EMB_BIT_FLD, REL) /* note 3 */
-RELOC_TYPE (EMB_RELSDA, REL) /* note 3 */
-RELOC_TYPE (DIAB_SDA21_LO, REL) /* note 3 */
-RELOC_TYPE (DIAB_SDA21_HI, REL) /* note 3 */
-RELOC_TYPE (DIAB_SDA21_HA, REL) /* note 3 */
-RELOC_TYPE (DIAB_RELSDA_LO, REL) /* note 3 */
-RELOC_TYPE (DIAB_RELSDA_HI, REL) /* note 3 */
-RELOC_TYPE (DIAB_RELSDA_HA, REL) /* note 3 */
-RELOC_TYPE (REL16, REL) /* note 2 */
-RELOC_TYPE (REL16_LO, REL) /* note 2 */
-RELOC_TYPE (REL16_HI, REL) /* note 2 */
-RELOC_TYPE (REL16_HA, REL) /* note 2 */
-RELOC_TYPE (TOC16, REL) /* note 2 */
-
-/* Notes from Alan Modra:
-
- 1) These relocs should not really appear in EXEC or DYN, but they do,
- primarily due to improper assembly or non-pic shared objects. They
- will cause TEXTREL to be set. I marked them in the table, because
- numerous people seem to think non-pic shared libs are a good idea.
-
- 2) As for (1), these relocs can appear anywhere with improper
- assembler. I should probably make ld reject anything other than the
- cases allowed in this table. Not seen in the wild, so I haven't
- added the other cases.
-
- 3) Not used in SYSV4
-*/
diff --git a/src/backends/ppc_retval.c b/src/backends/ppc_retval.c
deleted file mode 100644
index b14a99f1..00000000
--- a/src/backends/ppc_retval.c
+++ /dev/null
@@ -1,191 +0,0 @@
-/* Function return value location for Linux/PPC ABI.
- Copyright (C) 2005, 2006, 2007, 2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND ppc_
-#include "libebl_CPU.h"
-
-
-/* This is the SVR4 ELF ABI convention, but AIX and Linux do not use it. */
-#define SVR4_STRUCT_RETURN 0
-
-
-/* r3, or pair r3, r4, or quad r3-r6. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg3 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg4 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg5 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg6 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_intreg 1
-#define nloc_intregpair 4
-#define nloc_intregquad 8
-
-/* f1. */
-static const Dwarf_Op loc_fpreg[] =
- {
- { .atom = DW_OP_regx, .number = 33 }
- };
-#define nloc_fpreg 1
-
-/* vr2. */
-static const Dwarf_Op loc_vmxreg[] =
- {
- { .atom = DW_OP_regx, .number = 1124 + 2 }
- };
-#define nloc_vmxreg 1
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in r3. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg3, .number = 0 }
- };
-#define nloc_aggregate 1
-
-
-/* XXX We should check the SHT_GNU_ATTRIBUTES bits here (or in ppc_init). */
-static bool
-ppc_altivec_abi (void)
-{
- return true;
-}
-
-int
-ppc_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 4;
- else
- return -1;
- }
- }
-
- if (size <= 8)
- {
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie,
- DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
- if (encoding == DW_ATE_float)
- {
- *locp = loc_fpreg;
- return nloc_fpreg;
- }
- }
- intreg:
- *locp = loc_intreg;
- return size <= 4 ? nloc_intreg : nloc_intregpair;
- }
-
- aggregate:
- *locp = loc_aggregate;
- return nloc_aggregate;
-
- case DW_TAG_array_type:
- {
- Dwarf_Attribute attr_mem;
- bool is_vector;
- if (dwarf_formflag (dwarf_attr_integrate (typedie, DW_AT_GNU_vector,
- &attr_mem), &is_vector) == 0
- && is_vector
- && dwarf_aggregate_size (typedie, &size) == 0)
- switch (size)
- {
- case 16:
- if (ppc_altivec_abi ())
- {
- *locp = loc_vmxreg;
- return nloc_vmxreg;
- }
- *locp = loc_intreg;
- return nloc_intregquad;
- }
- }
- /* Fall through. */
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- if (SVR4_STRUCT_RETURN
- && dwarf_aggregate_size (typedie, &size) == 0
- && size > 0 && size <= 8)
- goto intreg;
- goto aggregate;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/ppc_symbol.c b/src/backends/ppc_symbol.c
deleted file mode 100644
index c17ab374..00000000
--- a/src/backends/ppc_symbol.c
+++ /dev/null
@@ -1,165 +0,0 @@
-/* PPC specific symbolic name handling.
- Copyright (C) 2004, 2005, 2007, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <elf.h>
-#include <stddef.h>
-#include <string.h>
-
-#define BACKEND ppc_
-#include "libebl_CPU.h"
-
-
-/* Check for the simple reloc types. */
-Elf_Type
-ppc_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_PPC_ADDR32:
- case R_PPC_UADDR32:
- return ELF_T_WORD;
- case R_PPC_UADDR16:
- return ELF_T_HALF;
- default:
- return ELF_T_NUM;
- }
-}
-
-
-const char *
-ppc_dynamic_tag_name (int64_t tag, char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (tag)
- {
- case DT_PPC_GOT:
- return "PPC_GOT";
- default:
- break;
- }
- return NULL;
-}
-
-
-bool
-ppc_dynamic_tag_check (int64_t tag)
-{
- return tag == DT_PPC_GOT;
-}
-
-
-/* Look for DT_PPC_GOT. */
-static bool
-find_dyn_got (Elf *elf, GElf_Addr *addr)
-{
- size_t phnum;
- if (elf_getphdrnum (elf, &phnum) != 0)
- return false;
-
- for (size_t i = 0; i < phnum; ++i)
- {
- GElf_Phdr phdr_mem;
- GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
- if (phdr == NULL || phdr->p_type != PT_DYNAMIC)
- continue;
-
- Elf_Scn *scn = gelf_offscn (elf, phdr->p_offset);
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- Elf_Data *data = elf_getdata (scn, NULL);
- if (shdr != NULL && shdr->sh_type == SHT_DYNAMIC && data != NULL)
- for (unsigned int j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j)
- {
- GElf_Dyn dyn_mem;
- GElf_Dyn *dyn = gelf_getdyn (data, j, &dyn_mem);
- if (dyn != NULL && dyn->d_tag == DT_PPC_GOT)
- {
- *addr = dyn->d_un.d_ptr;
- return true;
- }
- }
-
- /* There is only one PT_DYNAMIC entry. */
- break;
- }
-
- return false;
-}
-
-
-/* Check whether given symbol's st_value and st_size are OK despite failing
- normal checks. */
-bool
-ppc_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, const GElf_Sym *sym,
- const char *name, const GElf_Shdr *destshdr)
-{
- if (name == NULL)
- return false;
-
- if (strcmp (name, "_GLOBAL_OFFSET_TABLE_") == 0)
- {
- /* In -msecure-plt mode, DT_PPC_GOT is present and must match. */
- GElf_Addr gotaddr;
- if (find_dyn_got (elf, &gotaddr))
- return sym->st_value == gotaddr;
-
- /* In -mbss-plt mode, any place in the section is valid. */
- return true;
- }
-
- const char *sname = elf_strptr (elf, ehdr->e_shstrndx, destshdr->sh_name);
- if (sname == NULL)
- return false;
-
- if (strcmp (name, "_SDA_BASE_") == 0)
- return (strcmp (sname, ".sdata") == 0
- && sym->st_value == destshdr->sh_addr + 0x8000
- && sym->st_size == 0);
-
- if (strcmp (name, "_SDA2_BASE_") == 0)
- return (strcmp (sname, ".sdata2") == 0
- && sym->st_value == destshdr->sh_addr + 0x8000
- && sym->st_size == 0);
-
- return false;
-}
-
-
-/* Check if backend uses a bss PLT in this file. */
-bool
-ppc_bss_plt_p (Elf *elf)
-{
- GElf_Addr addr;
- return ! find_dyn_got (elf, &addr);
-}
diff --git a/src/backends/ppc_syscall.c b/src/backends/ppc_syscall.c
deleted file mode 100644
index b1b9c52b..00000000
--- a/src/backends/ppc_syscall.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Linux/PPC system call ABI in DWARF register numbers.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND ppc_
-#include "libebl_CPU.h"
-
-int
-ppc_syscall_abi (Ebl *ebl __attribute__ ((unused)),
- int *sp, int *pc, int *callno, int args[6])
-{
- *sp = 1;
- *pc = -1;
- *callno = 0;
- args[0] = 3;
- args[1] = 4;
- args[2] = 5;
- args[3] = 6;
- args[4] = 7;
- args[5] = 8;
- return 0;
-}
-
-__typeof (ppc_syscall_abi)
-ppc64_syscall_abi __attribute__ ((alias ("ppc_syscall_abi")));
diff --git a/src/backends/s390_cfi.c b/src/backends/s390_cfi.c
deleted file mode 100644
index cb494861..00000000
--- a/src/backends/s390_cfi.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* s390 ABI-specified defaults for DWARF CFI.
- Copyright (C) 2012, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-
-#define BACKEND s390_
-#include "libebl_CPU.h"
-
-int
-s390_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info)
-{
- static const uint8_t abi_cfi[] =
- {
- /* This instruction is provided in every CIE. It is not repeated here:
- DW_CFA_def_cfa, ULEB128_7 (15), ULEB128_7 (96) */
- /* r14 is not callee-saved but it needs to be preserved as it is pre-set
- by the caller. */
- DW_CFA_same_value, ULEB128_7 (14), /* r14 */
-
- /* Callee-saved regs. */
-#define SV(n) DW_CFA_same_value, ULEB128_7 (n)
- SV (6), SV (7), SV (8), SV (9), SV (10), /* r6-r13, r15 */
- SV (11), SV (12), SV (13), SV (15),
- SV (16 + 8), SV (16 + 9), SV (16 + 10), SV (16 + 11), /* f8-f15 */
- SV (16 + 12), SV (16 + 13), SV (16 + 14), SV (16 + 15)
-#undef SV
- };
-
- abi_info->initial_instructions = abi_cfi;
- abi_info->initial_instructions_end = &abi_cfi[sizeof abi_cfi];
- abi_info->data_alignment_factor = ebl->class == ELFCLASS64 ? 8 : 4;
-
- abi_info->return_address_register = 14;
-
- return 0;
-}
diff --git a/src/backends/s390_corenote.c b/src/backends/s390_corenote.c
deleted file mode 100644
index 7ca35168..00000000
--- a/src/backends/s390_corenote.c
+++ /dev/null
@@ -1,189 +0,0 @@
-/* S390-specific core note handling.
- Copyright (C) 2012 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#ifndef BITS
-# define BITS 32
-# define BACKEND s390_
-#else
-# define BITS 64
-# define BACKEND s390x_
-#endif
-#include "libebl_CPU.h"
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
-#define GR(at, n, dwreg, b...) \
- { .offset = at * BITS/8, .regno = dwreg, .count = n, .bits = b }
-
- GR ( 0, 1, 64, BITS), /* pswm */
- GR ( 1, 1, 65, BITS, .pc_register = true ), /* pswa */
- GR ( 2, 16, 0, BITS), /* r0-r15 */
- GR (18, 16, 48, 32), /* ar0-ar15 */
-
-#undef GR
- };
-
- /* orig_r2 is at offset (BITS == 32 ? 34 * 4 : 26 * 8). */
-#define PRSTATUS_REGS_SIZE (BITS / 8 * (BITS == 32 ? 35 : 27))
-
-static const Ebl_Register_Location fpregset_regs[] =
- {
-#define FPR(at, n, dwreg) \
- { .offset = at * 64/8, .regno = dwreg, .count = n, .bits = 64 }
-
- /* fpc is at offset 0, see fpregset_items, it has no assigned DWARF regno.
- Bytes at offsets 4 to 7 are unused. */
- FPR (1 + 0, 1, 16), /* f0 */
- FPR (1 + 1, 1, 20), /* f1 */
- FPR (1 + 2, 1, 17), /* f2 */
- FPR (1 + 3, 1, 21), /* f3 */
- FPR (1 + 4, 1, 18), /* f4 */
- FPR (1 + 5, 1, 22), /* f5 */
- FPR (1 + 6, 1, 19), /* f6 */
- FPR (1 + 7, 1, 23), /* f7 */
- FPR (1 + 8, 1, 24), /* f8 */
- FPR (1 + 9, 1, 28), /* f9 */
- FPR (1 + 10, 1, 25), /* f10 */
- FPR (1 + 11, 1, 29), /* f11 */
- FPR (1 + 12, 1, 26), /* f12 */
- FPR (1 + 13, 1, 30), /* f13 */
- FPR (1 + 14, 1, 27), /* f14 */
- FPR (1 + 15, 1, 31), /* f15 */
-
-#undef FPR
- };
-
-static const Ebl_Core_Item fpregset_items[] =
- {
- {
- .name = "fpc", .group = "register", .offset = 0, .type = ELF_T_WORD,
- .format = 'x',
- },
- };
-
-/* Do not set FPREGSET_SIZE so that we can supply fpregset_items. */
-#define EXTRA_NOTES_FPREGSET \
- EXTRA_REGSET_ITEMS (NT_FPREGSET, 17 * 8, fpregset_regs, fpregset_items)
-
-#if BITS == 32
-# define ULONG uint32_t
-# define ALIGN_ULONG 4
-# define TYPE_ULONG ELF_T_WORD
-# define TYPE_LONG ELF_T_SWORD
-# define UID_T uint16_t
-# define GID_T uint16_t
-# define ALIGN_UID_T 2
-# define ALIGN_GID_T 2
-# define TYPE_UID_T ELF_T_HALF
-# define TYPE_GID_T ELF_T_HALF
-#else
-# define ULONG uint64_t
-# define ALIGN_ULONG 8
-# define TYPE_ULONG ELF_T_XWORD
-# define TYPE_LONG ELF_T_SXWORD
-# define UID_T uint32_t
-# define GID_T uint32_t
-# define ALIGN_UID_T 4
-# define ALIGN_GID_T 4
-# define TYPE_UID_T ELF_T_WORD
-# define TYPE_GID_T ELF_T_WORD
-#endif
-#define PID_T int32_t
-#define ALIGN_PID_T 4
-#define TYPE_PID_T ELF_T_SWORD
-/* s390 psw_compat_t has alignment 8 bytes where it is inherited from. */
-#define ALIGN_PR_REG 8
-
-#define PRSTATUS_REGSET_ITEMS \
- { \
- .name = "orig_r2", .type = TYPE_LONG, .format = 'd', \
- .offset = offsetof (struct EBLHOOK(prstatus), \
- pr_reg[BITS == 32 ? 34 : 26]), \
- .group = "register" \
- }
-
-#if BITS == 32
-
-static const Ebl_Core_Item high_regs_items[] =
- {
-#define HR(n) \
- { \
- .name = "high_r" #n , .group = "register", .offset = (n) * 4, \
- .type = ELF_T_WORD, .format = 'x', \
- }
-
- /* Upper halves of r0-r15 are stored here.
- FIXME: They are currently not combined with the r0-r15 lower halves. */
- HR (0), HR (1), HR (2), HR (3), HR (4), HR (5), HR (6), HR (7),
- HR (8), HR (9), HR (10), HR (11), HR (12), HR (13), HR (14), HR (15)
-
-#undef HR
- };
-
-#define EXTRA_NOTES_HIGH_GPRS \
- EXTRA_ITEMS (NT_S390_HIGH_GPRS, 16 * 4, high_regs_items)
-
-#else /* BITS == 64 */
-
-#define EXTRA_NOTES_HIGH_GPRS
-
-#endif /* BITS == 64 */
-
-static const Ebl_Core_Item last_break_items[] =
- {
- {
- .name = "last_break", .group = "system", .offset = BITS == 32 ? 4 : 0,
- .type = BITS == 32 ? ELF_T_WORD : ELF_T_XWORD, .format = 'x',
- },
- };
-
-static const Ebl_Core_Item system_call_items[] =
- {
- {
- .name = "system_call", .group = "system", .offset = 0, .type = ELF_T_WORD,
- .format = 'd',
- },
- };
-
-#define EXTRA_NOTES \
- EXTRA_NOTES_FPREGSET \
- EXTRA_NOTES_HIGH_GPRS \
- EXTRA_ITEMS (NT_S390_LAST_BREAK, 8, last_break_items) \
- EXTRA_ITEMS (NT_S390_SYSTEM_CALL, 4, system_call_items)
-
-#include "linux-core-note.c"
diff --git a/src/backends/s390_init.c b/src/backends/s390_init.c
deleted file mode 100644
index 26b20b49..00000000
--- a/src/backends/s390_init.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Initialization of S/390 specific backend library.
- Copyright (C) 2005, 2006, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND s390_
-#define RELOC_PREFIX R_390_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on arm_reloc.def. */
-#include "common-reloc.c"
-
-extern __typeof (s390_core_note) s390x_core_note;
-
-
-const char *
-s390_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "IBM S/390";
- s390_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, register_info);
- HOOK (eh, return_value_location);
- if (eh->class == ELFCLASS64)
- eh->core_note = s390x_core_note;
- else
- HOOK (eh, core_note);
- HOOK (eh, abi_cfi);
- /* gcc/config/ #define DWARF_FRAME_REGISTERS 34.
- But from the gcc/config/s390/s390.h "Register usage." comment it looks as
- if #32 (Argument pointer) and #33 (Condition code) are not used for
- unwinding. */
- eh->frame_nregs = 32;
- HOOK (eh, set_initial_registers_tid);
- if (eh->class == ELFCLASS32)
- HOOK (eh, normalize_pc);
- HOOK (eh, unwind);
-
- /* Only the 64-bit format uses the incorrect hash table entry size. */
- if (eh->class == ELFCLASS64)
- eh->sysvhash_entrysize = sizeof (Elf64_Xword);
-
- return MODVERSION;
-}
diff --git a/src/backends/s390_initreg.c b/src/backends/s390_initreg.c
deleted file mode 100644
index b4c4b67c..00000000
--- a/src/backends/s390_initreg.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Fetch live process registers from TID.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "system.h"
-#include <assert.h>
-#ifdef __s390__
-# include <sys/user.h>
-# include <asm/ptrace.h>
-# include <sys/ptrace.h>
-#endif
-
-#define BACKEND s390_
-#include "libebl_CPU.h"
-
-bool
-s390_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
- ebl_tid_registers_t *setfunc __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
-#ifndef __s390__
- return false;
-#else /* __s390__ */
- struct user user_regs;
- ptrace_area parea;
- parea.process_addr = (uintptr_t) &user_regs;
- parea.kernel_addr = 0;
- parea.len = sizeof (user_regs);
- if (ptrace (PTRACE_PEEKUSR_AREA, tid, &parea, NULL) != 0)
- return false;
- /* If we run as s390x we get the 64-bit registers of tid.
- But -m31 executable seems to use only the 32-bit parts of its
- registers so we ignore the upper half. */
- Dwarf_Word dwarf_regs[16];
- for (unsigned u = 0; u < 16; u++)
- dwarf_regs[u] = user_regs.regs.gprs[u];
- if (! setfunc (0, 16, dwarf_regs, arg))
- return false;
- /* Avoid conversion double -> integer. */
- eu_static_assert (sizeof user_regs.regs.fp_regs.fprs[0]
- == sizeof dwarf_regs[0]);
- for (unsigned u = 0; u < 16; u++)
- {
- // Store the double bits as is in the Dwarf_Word without conversion.
- union
- {
- double d;
- Dwarf_Word w;
- } fpr = { .d = user_regs.regs.fp_regs.fprs[u] };
- dwarf_regs[u] = fpr.w;
- }
-
- if (! setfunc (16, 16, dwarf_regs, arg))
- return false;
- dwarf_regs[0] = user_regs.regs.psw.addr;
- return setfunc (-1, 1, dwarf_regs, arg);
-#endif /* __s390__ */
-}
-
-void
-s390_normalize_pc (Ebl *ebl __attribute__ ((unused)), Dwarf_Addr *pc)
-{
- assert (ebl->class == ELFCLASS32);
-
- /* Clear S390 bit 31. */
- *pc &= (1U << 31) - 1;
-}
diff --git a/src/backends/s390_regs.c b/src/backends/s390_regs.c
deleted file mode 100644
index ba6178a3..00000000
--- a/src/backends/s390_regs.c
+++ /dev/null
@@ -1,146 +0,0 @@
-/* Register names and numbers for S/390 DWARF.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND s390_
-#include "libebl_CPU.h"
-
-
-/*
-zseries (64)
-
-0-15 gpr0-gpr15 x
-16-19 fpr[0246]
-20-24 fpr[13578]
-25-27 fpr1[024]
-28 fpr9
-29-31 fpr1[135]
-32-47 cr0-cr15 x
-48-63 ar0-ar15 x
-64 psw_mask
-65 psw_address
-*/
-
-
-ssize_t
-s390_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 66;
-
- if (regno < 0 || regno > 65 || namelen < 7)
- return -1;
-
- *prefix = "%";
-
- *bits = ebl->class == ELFCLASS64 ? 64 : 32;
- *type = DW_ATE_unsigned;
- if (regno < 16)
- {
- *setname = "integer";
- *type = DW_ATE_signed;
- }
- else if (regno < 32)
- {
- *setname = "FPU";
- *type = DW_ATE_float;
- *bits = 64;
- }
- else if (regno < 48 || regno > 63)
- *setname = "control";
- else
- {
- *setname = "access";
- *bits = 32;
- }
-
- switch (regno)
- {
- case 0 ... 9:
- name[0] = 'r';
- name[1] = regno + '0';
- namelen = 2;
- break;
-
- case 10 ... 15:
- name[0] = 'r';
- name[1] = '1';
- name[2] = regno - 10 + '0';
- namelen = 3;
- break;
-
- case 16 ... 31:
- name[0] = 'f';
- regno = (regno & 8) | ((regno & 4) >> 2) | ((regno & 3) << 1);
- namelen = 1;
- if (regno >= 10)
- {
- regno -= 10;
- name[namelen++] = '1';
- }
- name[namelen++] = regno + '0';
- break;
-
- case 32 + 0 ... 32 + 9:
- case 48 + 0 ... 48 + 9:
- name[0] = regno < 48 ? 'c' : 'a';
- name[1] = (regno & 15) + '0';
- namelen = 2;
- break;
-
- case 32 + 10 ... 32 + 15:
- case 48 + 10 ... 48 + 15:
- name[0] = regno < 48 ? 'c' : 'a';
- name[1] = '1';
- name[2] = (regno & 15) - 10 + '0';
- namelen = 3;
- break;
-
- case 64:
- return stpcpy (name, "pswm") + 1 - name;
- case 65:
- *type = DW_ATE_address;
- return stpcpy (name, "pswa") + 1 - name;
-
- default:
- *setname = NULL;
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/s390_reloc.def b/src/backends/s390_reloc.def
deleted file mode 100644
index b4686a30..00000000
--- a/src/backends/s390_reloc.def
+++ /dev/null
@@ -1,91 +0,0 @@
-/* List the relocation types for s390. -*- C -*-
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (8, REL|EXEC|DYN)
-RELOC_TYPE (12, REL|EXEC|DYN)
-RELOC_TYPE (16, REL|EXEC|DYN)
-RELOC_TYPE (32, REL|EXEC|DYN)
-RELOC_TYPE (PC32, REL|EXEC|DYN)
-RELOC_TYPE (GOT12, REL)
-RELOC_TYPE (GOT32, REL)
-RELOC_TYPE (PLT32, REL)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (GOTOFF32, REL)
-RELOC_TYPE (GOTPC, REL)
-RELOC_TYPE (GOT16, REL)
-RELOC_TYPE (PC16, REL|EXEC|DYN)
-RELOC_TYPE (PC16DBL, REL|EXEC|DYN)
-RELOC_TYPE (PLT16DBL, REL)
-RELOC_TYPE (PC32DBL, REL|EXEC|DYN)
-RELOC_TYPE (PLT32DBL, REL)
-RELOC_TYPE (GOTPCDBL, REL)
-RELOC_TYPE (64, REL|EXEC|DYN)
-RELOC_TYPE (PC64, REL|EXEC|DYN)
-RELOC_TYPE (GOT64, REL)
-RELOC_TYPE (PLT64, REL)
-RELOC_TYPE (GOTENT, REL)
-RELOC_TYPE (GOTOFF16, REL)
-RELOC_TYPE (GOTOFF64, REL)
-RELOC_TYPE (GOTPLT12, REL)
-RELOC_TYPE (GOTPLT16, REL)
-RELOC_TYPE (GOTPLT32, REL)
-RELOC_TYPE (GOTPLT64, REL)
-RELOC_TYPE (GOTPLTENT, REL)
-RELOC_TYPE (PLTOFF16, REL)
-RELOC_TYPE (PLTOFF32, REL)
-RELOC_TYPE (PLTOFF64, REL)
-RELOC_TYPE (TLS_LOAD, REL)
-RELOC_TYPE (TLS_GDCALL, REL)
-RELOC_TYPE (TLS_LDCALL, REL)
-RELOC_TYPE (TLS_GD32, REL)
-RELOC_TYPE (TLS_GD64, REL)
-RELOC_TYPE (TLS_GOTIE12, REL)
-RELOC_TYPE (TLS_GOTIE32, REL)
-RELOC_TYPE (TLS_GOTIE64, REL)
-RELOC_TYPE (TLS_LDM32, REL)
-RELOC_TYPE (TLS_LDM64, REL)
-RELOC_TYPE (TLS_IE32, REL)
-RELOC_TYPE (TLS_IE64, REL)
-RELOC_TYPE (TLS_IEENT, REL)
-RELOC_TYPE (TLS_LE32, REL)
-RELOC_TYPE (TLS_LE64, REL)
-RELOC_TYPE (TLS_LDO32, REL)
-RELOC_TYPE (TLS_LDO64, REL)
-RELOC_TYPE (TLS_DTPMOD, DYN)
-RELOC_TYPE (TLS_DTPOFF, DYN)
-RELOC_TYPE (TLS_TPOFF, DYN)
-RELOC_TYPE (20, REL|EXEC|DYN)
-RELOC_TYPE (GOT20, REL)
-RELOC_TYPE (GOTPLT20, REL)
-RELOC_TYPE (TLS_GOTIE20, REL)
diff --git a/src/backends/s390_retval.c b/src/backends/s390_retval.c
deleted file mode 100644
index a927d46a..00000000
--- a/src/backends/s390_retval.c
+++ /dev/null
@@ -1,144 +0,0 @@
-/* Function return value location for S/390 ABI.
- Copyright (C) 2006, 2007, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND s390_
-#include "libebl_CPU.h"
-
-
-/* %r2, or pair %r2, %r3. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg2 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg3 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_intreg 1
-#define nloc_intregpair 4
-
-/* %f0. */
-static const Dwarf_Op loc_fpreg[] =
- {
- { .atom = DW_OP_reg16 },
- };
-#define nloc_fpreg 1
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in %r2. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg2, .number = 0 }
- };
-#define nloc_aggregate 1
-
-
-int
-s390_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Die cudie;
- uint8_t asize;
- if (dwarf_diecu (typedie, &cudie, &asize, NULL) == NULL)
- return -1;
-
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = asize;
- else
- return -1;
- }
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
- if (encoding == DW_ATE_float && size <= 8)
- {
- *locp = loc_fpreg;
- return nloc_fpreg;
- }
- }
- if (size <= 8)
- {
- *locp = loc_intreg;
- return size <= asize ? nloc_intreg : nloc_intregpair;
- }
- }
- /* Fall through. */
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- case DW_TAG_array_type:
- *locp = loc_aggregate;
- return nloc_aggregate;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/s390_symbol.c b/src/backends/s390_symbol.c
deleted file mode 100644
index a0a4fafa..00000000
--- a/src/backends/s390_symbol.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* S/390-specific symbolic name handling.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <stddef.h>
-
-#define BACKEND s390_
-#include "libebl_CPU.h"
-
-/* Check for the simple reloc types. */
-Elf_Type
-s390_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_390_64:
- return ELF_T_SXWORD;
- case R_390_32:
- return ELF_T_SWORD;
- case R_390_16:
- return ELF_T_HALF;
- case R_390_8:
- return ELF_T_BYTE;
- default:
- return ELF_T_NUM;
- }
-}
diff --git a/src/backends/s390_unwind.c b/src/backends/s390_unwind.c
deleted file mode 100644
index 752bc287..00000000
--- a/src/backends/s390_unwind.c
+++ /dev/null
@@ -1,139 +0,0 @@
-/* Get previous frame state for an existing frame state.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <assert.h>
-
-#define BACKEND s390_
-#include "libebl_CPU.h"
-
-/* s390/s390x do not annotate signal handler frame by CFI. It would be also
- difficult as PC points into a stub built on stack. Function below is called
- only if unwinder could not find CFI. Function then verifies the register
- state for this frame really belongs to a signal frame. In such case it
- fetches original registers saved by the signal frame. */
-
-bool
-s390_unwind (Ebl *ebl, Dwarf_Addr pc, ebl_tid_registers_t *setfunc,
- ebl_tid_registers_get_t *getfunc, ebl_pid_memory_read_t *readfunc,
- void *arg, bool *signal_framep)
-{
- /* Caller already assumed caller adjustment but S390 instructions are 4 bytes
- long. Undo it. */
- if ((pc & 0x3) != 0x3)
- return false;
- pc++;
- /* We can assume big-endian read here. */
- Dwarf_Word instr;
- if (! readfunc (pc, &instr, arg))
- return false;
- /* Fetch only the very first two bytes. */
- instr = (instr >> (ebl->class == ELFCLASS64 ? 48 : 16)) & 0xffff;
- /* See GDB s390_sigtramp_frame_sniffer. */
- /* Check for 'svc' as the first instruction. */
- if (((instr >> 8) & 0xff) != 0x0a)
- return false;
- /* Check for 'sigreturn' or 'rt_sigreturn' as the second instruction. */
- if ((instr & 0xff) != 119 && (instr & 0xff) != 173)
- return false;
- /* See GDB s390_sigtramp_frame_unwind_cache. */
- Dwarf_Word this_sp;
- if (! getfunc (0 + 15, 1, &this_sp, arg))
- return false;
- unsigned word_size = ebl->class == ELFCLASS64 ? 8 : 4;
- Dwarf_Addr next_cfa = this_sp + 16 * word_size + 32;
- /* "New-style RT frame" is not supported,
- assuming "Old-style RT frame and all non-RT frames".
- Pointer to the array of saved registers is at NEXT_CFA + 8. */
- Dwarf_Word sigreg_ptr;
- if (! readfunc (next_cfa + 8, &sigreg_ptr, arg))
- return false;
- /* Skip PSW mask. */
- sigreg_ptr += word_size;
- /* Read PSW address. */
- Dwarf_Word val;
- if (! readfunc (sigreg_ptr, &val, arg))
- return false;
- if (! setfunc (-1, 1, &val, arg))
- return false;
- sigreg_ptr += word_size;
- /* Then the GPRs. */
- Dwarf_Word gprs[16];
- for (int i = 0; i < 16; i++)
- {
- if (! readfunc (sigreg_ptr, &gprs[i], arg))
- return false;
- sigreg_ptr += word_size;
- }
- /* Then the ACRs. Skip them, they are not used in CFI. */
- for (int i = 0; i < 16; i++)
- sigreg_ptr += 4;
- /* The floating-point control word. */
- sigreg_ptr += 8;
- /* And finally the FPRs. */
- Dwarf_Word fprs[16];
- for (int i = 0; i < 16; i++)
- {
- if (! readfunc (sigreg_ptr, &val, arg))
- return false;
- if (ebl->class == ELFCLASS32)
- {
- Dwarf_Addr val_low;
- if (! readfunc (sigreg_ptr + 4, &val_low, arg))
- return false;
- val = (val << 32) | val_low;
- }
- fprs[i] = val;
- sigreg_ptr += 8;
- }
- /* If we have them, the GPR upper halves are appended at the end. */
- if (ebl->class == ELFCLASS32)
- {
- /* Skip signal number. */
- sigreg_ptr += 4;
- for (int i = 0; i < 16; i++)
- {
- if (! readfunc (sigreg_ptr, &val, arg))
- return false;
- Dwarf_Word val_low = gprs[i];
- val = (val << 32) | val_low;
- gprs[i] = val;
- sigreg_ptr += 4;
- }
- }
- if (! setfunc (0, 16, gprs, arg))
- return false;
- if (! setfunc (16, 16, fprs, arg))
- return false;
- *signal_framep = true;
- return true;
-}
diff --git a/src/backends/s390x_corenote.c b/src/backends/s390x_corenote.c
deleted file mode 100644
index 427bf7de..00000000
--- a/src/backends/s390x_corenote.c
+++ /dev/null
@@ -1,2 +0,0 @@
-#define BITS 64
-#include "s390_corenote.c"
diff --git a/src/backends/sh_corenote.c b/src/backends/sh_corenote.c
deleted file mode 100644
index 9268f568..00000000
--- a/src/backends/sh_corenote.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/* SH specific core note handling.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
- Contributed Matt Fleming <matt@console-pimps.org>.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#define BACKEND sh_
-#include "libebl_CPU.h"
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
-#define GR(at, n, dwreg) \
- { .offset = at * 4, .regno = dwreg, .count = n, .bits = 32 }
- GR (0, 16, 0), /* r0-r15 */
- GR (16, 1, 16), /* pc */
- GR (17, 1, 17), /* pr */
- GR (18, 1, 22), /* sr */
- GR (19, 1, 18), /* gbr */
- GR (20, 1, 20), /* mach */
- GR (21, 1, 21), /* macl */
- /* 22, 1, tra */
-#undef GR
- };
-#define PRSTATUS_REGS_SIZE (23 * 4)
-
-#define ULONG uint32_t
-#define PID_T int32_t
-#define UID_T uint16_t
-#define GID_T uint16_t
-#define ALIGN_ULONG 4
-#define ALIGN_PID_T 4
-#define ALIGN_UID_T 2
-#define ALIGN_GID_T 2
-#define TYPE_ULONG ELF_T_WORD
-#define TYPE_PID_T ELF_T_SWORD
-#define TYPE_UID_T ELF_T_HALF
-#define TYPE_GID_T ELF_T_HALF
-
-#define PRSTATUS_REGSET_ITEMS \
- { \
- .name = "tra", .type = ELF_T_ADDR, .format = 'x', \
- .offset = offsetof (struct EBLHOOK(prstatus), pr_reg[22]), \
- .group = "register" \
- }
-
-static const Ebl_Register_Location fpregset_regs[] =
- {
- { .offset = 0, .regno = 25, .count = 16, .bits = 32 }, /* fr0-fr15 */
- { .offset = 16, .regno = 87, .count = 16, .bits = 32 }, /* xf0-xf15 */
- { .offset = 32, .regno = 24, .count = 1, .bits = 32 }, /* fpscr */
- { .offset = 33, .regno = 23, .count = 1, .bits = 32 } /* fpul */
- };
-#define FPREGSET_SIZE (50 * 4)
-
-#include "linux-core-note.c"
diff --git a/src/backends/sh_init.c b/src/backends/sh_init.c
deleted file mode 100644
index 90ddcb2c..00000000
--- a/src/backends/sh_init.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Initialization of SH specific backend library.
- Copyright (C) 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND sh_
-#define RELOC_PREFIX R_SH_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on sh_reloc.def. */
-#include "common-reloc.c"
-
-
-const char *
-sh_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "Hitachi SH";
- sh_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, gotpc_reloc_check);
- HOOK (eh, machine_flag_check);
- HOOK (eh, core_note);
- HOOK (eh, register_info);
- HOOK (eh, return_value_location);
-
- return MODVERSION;
-}
diff --git a/src/backends/sh_regs.c b/src/backends/sh_regs.c
deleted file mode 100644
index d4332364..00000000
--- a/src/backends/sh_regs.c
+++ /dev/null
@@ -1,191 +0,0 @@
-/* Register names and numbers for SH DWARF.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Matt Fleming <matt@console-pimps.org>.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include <string.h>
-
-#define BACKEND sh_
-#include "libebl_CPU.h"
-
-ssize_t
-sh_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 104;
-
- if (regno < 0 || regno > 103 || namelen < 6)
- return -1;
-
- *prefix = "";
- *bits = 32;
- *type = DW_ATE_signed;
-
- switch (regno)
- {
- case 0 ... 9:
- *setname = "integer";
- name[0] = 'r';
- name[1] = regno + '0';
- namelen = 2;
- break;
-
- case 10 ... 15:
- *setname = "integer";
- name[0] = 'r';
- name[1] = '1';
- name[2] = regno - 10 + '0';
- namelen = 3;
- break;
-
- case 16:
- *setname = "system";
- *type = DW_ATE_address;
- name[0] = 'p';
- name[1] = 'c';
- namelen = 2;
- break;
-
- case 17:
- *setname = "system";
- *type = DW_ATE_address;
- name[0] = 'p';
- name[1] = 'r';
- namelen = 2;
- break;
-
- case 18:
- *setname = "control";
- *type = DW_ATE_unsigned;
- name[0] = 's';
- name[1] = 'r';
- namelen = 2;
- break;
-
- case 19:
- *setname = "control";
- *type = DW_ATE_unsigned;
- name[0] = 'g';
- name[1] = 'b';
- name[2] = 'r';
- namelen = 3;
- break;
-
- case 20:
- *setname = "system";
- name[0] = 'm';
- name[1] = 'a';
- name[2] = 'c';
- name[3] = 'h';
- namelen = 4;
- break;
-
- case 21:
- *setname = "system";
- name[0] = 'm';
- name[1] = 'a';
- name[2] = 'c';
- name[3] = 'l';
- namelen = 4;
-
- break;
-
- case 23:
- *setname = "system";
- *type = DW_ATE_unsigned;
- name[0] = 'f';
- name[1] = 'p';
- name[2] = 'u';
- name[3] = 'l';
- namelen = 4;
- break;
-
- case 24:
- *setname = "system";
- *type = DW_ATE_unsigned;
- name[0] = 'f';
- name[1] = 'p';
- name[2] = 's';
- name[3] = 'c';
- name[4] = 'r';
- namelen = 5;
- break;
-
- case 25 ... 34:
- *setname = "fpu";
- *type = DW_ATE_float;
- name[0] = 'f';
- name[1] = 'r';
- name[2] = regno - 25 + '0';
- namelen = 3;
- break;
-
- case 35 ... 40:
- *setname = "fpu";
- *type = DW_ATE_float;
- name[0] = 'f';
- name[1] = 'r';
- name[2] = '1';
- name[3] = regno - 35 + '0';
- namelen = 4;
- break;
-
- case 87 ... 96:
- *type = DW_ATE_float;
- *setname = "fpu";
- name[0] = 'x';
- name[1] = 'f';
- name[2] = regno - 87 + '0';
- namelen = 3;
- break;
-
- case 97 ... 103:
- *type = DW_ATE_float;
- *setname = "fpu";
- name[0] = 'x';
- name[1] = 'f';
- name[2] = '1';
- name[3] = regno - 97 + '0';
- namelen = 4;
- break;
-
- default:
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/sh_reloc.def b/src/backends/sh_reloc.def
deleted file mode 100644
index 66a5a9d2..00000000
--- a/src/backends/sh_reloc.def
+++ /dev/null
@@ -1,67 +0,0 @@
-/* List the relocation types for SH. -*- C -*-
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (DIR32, REL|DYN)
-RELOC_TYPE (REL32, REL|DYN)
-RELOC_TYPE (DIR8WPN, REL)
-RELOC_TYPE (IND12W, REL)
-RELOC_TYPE (DIR8WPL, REL)
-RELOC_TYPE (DIR8WPZ, REL)
-RELOC_TYPE (DIR8BP, REL)
-RELOC_TYPE (DIR8W, REL)
-RELOC_TYPE (DIR8L, REL)
-RELOC_TYPE (SWITCH16, REL)
-RELOC_TYPE (SWITCH32, REL)
-RELOC_TYPE (USES, REL)
-RELOC_TYPE (COUNT, REL)
-RELOC_TYPE (ALIGN, REL)
-RELOC_TYPE (CODE, REL)
-RELOC_TYPE (DATA, REL)
-RELOC_TYPE (LABEL, REL)
-RELOC_TYPE (SWITCH8, REL)
-RELOC_TYPE (GNU_VTINHERIT, REL)
-RELOC_TYPE (GNU_VTENTRY, REL)
-RELOC_TYPE (TLS_GD_32, REL)
-RELOC_TYPE (TLS_LD_32, REL)
-RELOC_TYPE (TLS_LDO_32, REL)
-RELOC_TYPE (TLS_IE_32, REL)
-RELOC_TYPE (TLS_LE_32, REL)
-RELOC_TYPE (TLS_DTPMOD32, DYN)
-RELOC_TYPE (TLS_DTPOFF32, DYN)
-RELOC_TYPE (TLS_TPOFF32, DYN)
-RELOC_TYPE (GOT32, REL)
-RELOC_TYPE (PLT32, REL)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (GOTOFF, REL)
-RELOC_TYPE (GOTPC, REL)
diff --git a/src/backends/sh_retval.c b/src/backends/sh_retval.c
deleted file mode 100644
index d44f2601..00000000
--- a/src/backends/sh_retval.c
+++ /dev/null
@@ -1,131 +0,0 @@
-/* Function return value location for Linux/SH ABI.
- Copyright (C) 2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Matt Fleming <matt@console-pimps.org>.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND sh_
-#include "libebl_CPU.h"
-
-
-/* This is the SVR4 ELF ABI convention, but AIX and Linux do not use it. */
-#define SVR4_STRUCT_RETURN 0
-
-
-/* r0, or pair r0, r1. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg0 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg1 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_intreg 1
-#define nloc_intregpair 4
-
-/* fr0 or fr1. */
-static const Dwarf_Op loc_fpreg[] =
- {
- { .atom = DW_OP_reg25 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg26 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_fpreg 1
-#define nloc_fpregpair 2
-
-int
-sh_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 4;
- else
- return -1;
- }
- }
-
- if (size <= 8)
- {
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie,
- DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
- if (encoding == DW_ATE_float)
- {
- *locp = loc_fpreg;
- return size <= 4 ? nloc_fpreg : nloc_fpregpair;
- }
- }
- *locp = loc_intreg;
- return size <= 4 ? nloc_intreg : nloc_intregpair;
- }
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/sh_symbol.c b/src/backends/sh_symbol.c
deleted file mode 100644
index 8101e96f..00000000
--- a/src/backends/sh_symbol.c
+++ /dev/null
@@ -1,94 +0,0 @@
-/* SH specific relocation handling.
- Copyright (C) 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <stddef.h>
-
-#define BACKEND sh_
-#include "libebl_CPU.h"
-
-
-/* Return true if the symbol type is that referencing the GOT. */
-bool
-sh_gotpc_reloc_check (Elf *elf __attribute__ ((unused)), int type)
-{
- return type == R_SH_GOTPC;
-}
-
-/* Check for the simple reloc types. */
-Elf_Type
-sh_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_SH_DIR32:
- return ELF_T_WORD;
- default:
- return ELF_T_NUM;
- }
-}
-
-/* Check whether machine flags are valid. */
-bool
-sh_machine_flag_check (GElf_Word flags)
-{
- switch (flags & EF_SH_MACH_MASK)
- {
- case EF_SH_UNKNOWN:
- case EF_SH1:
- case EF_SH2:
- case EF_SH3:
- case EF_SH_DSP:
- case EF_SH3_DSP:
- case EF_SH4AL_DSP:
- case EF_SH3E:
- case EF_SH4:
- case EF_SH2E:
- case EF_SH4A:
- case EF_SH2A:
- case EF_SH4_NOFPU:
- case EF_SH4A_NOFPU:
- case EF_SH4_NOMMU_NOFPU:
- case EF_SH2A_NOFPU:
- case EF_SH3_NOMMU:
- case EF_SH2A_SH4_NOFPU:
- case EF_SH2A_SH3_NOFPU:
- case EF_SH2A_SH4:
- case EF_SH2A_SH3E:
- break;
- default:
- return false;
- }
-
- return ((flags &~ (EF_SH_MACH_MASK)) == 0);
-}
diff --git a/src/backends/sparc64_corenote.c b/src/backends/sparc64_corenote.c
deleted file mode 100644
index cef6431e..00000000
--- a/src/backends/sparc64_corenote.c
+++ /dev/null
@@ -1,2 +0,0 @@
-#define BITS 64
-#include "sparc_corenote.c"
diff --git a/src/backends/sparc_auxv.c b/src/backends/sparc_auxv.c
deleted file mode 100644
index 2da349ca..00000000
--- a/src/backends/sparc_auxv.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* SPARC-specific auxv handling.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND sparc_
-#include "libebl_CPU.h"
-
-int
-EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format)
-{
- if (a_type != AT_HWCAP)
- return 0;
-
- *name = "HWCAP";
- *format = "b"
- "flush\0" "stbar\0" "swap\0" "muldiv\0" "v9\0" "ultra3\0" "v9v\0" "\0";
- return 1;
-}
diff --git a/src/backends/sparc_corenote.c b/src/backends/sparc_corenote.c
deleted file mode 100644
index 7912539b..00000000
--- a/src/backends/sparc_corenote.c
+++ /dev/null
@@ -1,112 +0,0 @@
-/* PowerPC specific core note handling.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#ifndef BITS
-# define BITS 32
-# define BACKEND sparc_
-#else
-# define BITS 64
-# define BACKEND sparc64_
-#endif
-#include "libebl_CPU.h"
-
-#define GR(at, n, dwreg) \
- { .offset = at * BITS/8, .regno = dwreg, .count = n, .bits = BITS }
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
- GR (0, 32, 0), /* %g0-%g7, %o0-%o7, %i0-%i7 */
-#if BITS == 32
- GR (32, 1, 65), /* %psr */
- GR (33, 2, 68), /* %pc, %npc */
- GR (35, 1, 64), /* %y */
- GR (36, 1, 66), /* %wim, %tbr */
-#else
- GR (32, 1, 82), /* %state */
- GR (33, 2, 80), /* %pc, %npc */
- GR (35, 1, 85), /* %y */
-#endif
- };
-#define PRSTATUS_REGS_SIZE (BITS / 8 * (32 + (BITS == 32 ? 6 : 4)))
-
-static const Ebl_Register_Location fpregset_regs[] =
- {
-#if BITS == 32
- GR (0, 32, 32), /* %f0-%f31 */
- /* padding word */
- GR (33, 1, 70), /* %fsr */
- /* qcnt, q_entrysize, en, q, padding */
-# define FPREGSET_SIZE (34 * 4 + 4 + 64 * 4 + 4)
-#else
- GR (0, 32, 32), /* %f0-%f31 */
- GR (32, 1, 83), /* %fsr */
- /* 33, 1, %gsr */
- GR (34, 1, 84), /* %fprs */
-# define FPREGSET_SIZE (35 * 8)
-#endif
- };
-
-#if BITS == 32
-# define ULONG uint32_t
-# define ALIGN_ULONG 4
-# define TYPE_ULONG ELF_T_WORD
-# define TYPE_LONG ELF_T_SWORD
-# define UID_T uint16_t
-# define GID_T uint16_t
-# define ALIGN_UID_T 2
-# define ALIGN_GID_T 2
-# define TYPE_UID_T ELF_T_HALF
-# define TYPE_GID_T ELF_T_HALF
-#else
-# define ULONG uint64_t
-# define ALIGN_ULONG 8
-# define TYPE_ULONG ELF_T_XWORD
-# define TYPE_LONG ELF_T_SXWORD
-# define UID_T uint32_t
-# define GID_T uint32_t
-# define ALIGN_UID_T 4
-# define ALIGN_GID_T 4
-# define TYPE_UID_T ELF_T_WORD
-# define TYPE_GID_T ELF_T_WORD
-# define SUSECONDS_HALF 1
-#endif
-#define PID_T int32_t
-#define ALIGN_PID_T 4
-#define TYPE_PID_T ELF_T_SWORD
-
-#include "linux-core-note.c"
diff --git a/src/backends/sparc_init.c b/src/backends/sparc_init.c
deleted file mode 100644
index 7d229981..00000000
--- a/src/backends/sparc_init.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Initialization of SPARC specific backend library.
- Copyright (C) 2002, 2005, 2006, 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND sparc_
-#define RELOC_PREFIX R_SPARC_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on sparc_reloc.def. */
-#include "common-reloc.c"
-
-extern __typeof (EBLHOOK (core_note)) sparc64_core_note attribute_hidden;
-
-const char *
-sparc_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- if (machine == EM_SPARCV9)
- eh->name = "SPARC v9";
- else if (machine == EM_SPARC32PLUS)
- eh->name = "SPARC v8+";
- else
- eh->name = "SPARC";
- sparc_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, machine_flag_check);
- HOOK (eh, check_special_section);
- HOOK (eh, symbol_type_name);
- HOOK (eh, dynamic_tag_name);
- HOOK (eh, dynamic_tag_check);
- if (eh->class == ELFCLASS64)
- eh->core_note = sparc64_core_note;
- else
- HOOK (eh, core_note);
- HOOK (eh, auxv_info);
- HOOK (eh, register_info);
- HOOK (eh, return_value_location);
-
- return MODVERSION;
-}
diff --git a/src/backends/sparc_regs.c b/src/backends/sparc_regs.c
deleted file mode 100644
index f9709bb3..00000000
--- a/src/backends/sparc_regs.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* Register names and numbers for SPARC DWARF.
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND sparc_
-#include "libebl_CPU.h"
-
-ssize_t
-sparc_register_info (Ebl *ebl,
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- const int nfp = 32 + (ebl->machine == EM_SPARC ? 0 : 16);
- const int nspec = ebl->machine == EM_SPARC ? 8 : 6;
-
- if (name == NULL)
- return 32 + nfp + nspec;
-
- if (regno < 0 || regno >= 32 + nfp + nspec || namelen < 6)
- return -1;
-
- *bits = ebl->machine == EM_SPARC ? 32 : 64;
- *type = DW_ATE_signed;
-
- *prefix = "%";
-
- if (regno >= 32 + nfp)
- {
- regno -= 32 + nfp;
- static const char names[2][8][6] =
- {
- { "y", "psr", "wim", "tbr", "pc", "npc", "fsr", "csr" }, /* v8 */
- { "pc", "npc", "state", "fsr", "fprs", "y" } /* v9 */
- };
- *setname = "control";
- *type = DW_ATE_unsigned;
- if ((ebl->machine != EM_SPARC ? 0 : 4) + 1 - (unsigned int) regno <= 1)
- *type = DW_ATE_address;
- return stpncpy (name, names[ebl->machine != EM_SPARC][regno],
- namelen) + 1 - name;
- }
-
- if (regno < 32)
- {
- *setname = "integer";
- name[0] = "goli"[regno >> 3];
- name[1] = (regno & 7) + '0';
- namelen = 2;
- if ((regno & 8) && (regno & 7) == 6)
- *type = DW_ATE_address;
- }
- else
- {
- *setname = "FPU";
- *type = DW_ATE_float;
-
- regno -= 32;
- if (regno >= 32)
- regno = 32 + 2 * (regno - 32);
- else
- *bits = 32;
-
- name[0] = 'f';
- if (regno < 10)
- {
- name[1] = regno + '0';
- namelen = 2;
- }
- else
- {
- name[1] = regno / 10 + '0';
- name[2] = regno % 10 + '0';
- namelen = 3;
- }
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/sparc_reloc.def b/src/backends/sparc_reloc.def
deleted file mode 100644
index c39b0fae..00000000
--- a/src/backends/sparc_reloc.def
+++ /dev/null
@@ -1,121 +0,0 @@
-/* List the relocation types for sparc. -*- C -*-
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, REL)
-RELOC_TYPE (8, REL)
-RELOC_TYPE (16, REL)
-RELOC_TYPE (32, REL|DYN)
-RELOC_TYPE (DISP8, REL)
-RELOC_TYPE (DISP16, REL)
-RELOC_TYPE (DISP32, REL)
-RELOC_TYPE (WDISP30, REL)
-RELOC_TYPE (WDISP22, REL)
-RELOC_TYPE (HI22, REL)
-RELOC_TYPE (22, REL)
-RELOC_TYPE (13, REL)
-RELOC_TYPE (LO10, REL)
-RELOC_TYPE (GOT10, REL)
-RELOC_TYPE (GOT13, REL)
-RELOC_TYPE (GOT22, REL)
-RELOC_TYPE (PC10, REL)
-RELOC_TYPE (PC22, REL)
-RELOC_TYPE (WPLT30, REL)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (UA32, REL)
-RELOC_TYPE (PLT32, REL)
-RELOC_TYPE (HIPLT22, REL)
-RELOC_TYPE (LOPLT10, REL)
-RELOC_TYPE (PCPLT32, REL)
-RELOC_TYPE (PCPLT22, REL)
-RELOC_TYPE (PCPLT10, REL)
-RELOC_TYPE (10, REL)
-RELOC_TYPE (11, REL)
-RELOC_TYPE (64, REL|DYN)
-RELOC_TYPE (OLO10, REL)
-RELOC_TYPE (HH22, REL)
-RELOC_TYPE (HM10, REL)
-RELOC_TYPE (LM22, REL)
-RELOC_TYPE (PC_HH22, REL)
-RELOC_TYPE (PC_HM10, REL)
-RELOC_TYPE (PC_LM22, REL)
-RELOC_TYPE (WDISP16, REL)
-RELOC_TYPE (WDISP19, REL)
-RELOC_TYPE (GLOB_JMP, EXEC|DYN)
-RELOC_TYPE (7, REL)
-RELOC_TYPE (5, REL)
-RELOC_TYPE (6, REL)
-RELOC_TYPE (DISP64, REL)
-RELOC_TYPE (PLT64, REL)
-RELOC_TYPE (HIX22, REL)
-RELOC_TYPE (LOX10, REL)
-RELOC_TYPE (H44, REL)
-RELOC_TYPE (M44, REL)
-RELOC_TYPE (L44, REL)
-RELOC_TYPE (REGISTER, REL)
-RELOC_TYPE (UA64, REL)
-RELOC_TYPE (UA16, REL)
-RELOC_TYPE (TLS_GD_HI22, REL)
-RELOC_TYPE (TLS_GD_LO10, REL)
-RELOC_TYPE (TLS_GD_ADD, REL)
-RELOC_TYPE (TLS_GD_CALL, REL)
-RELOC_TYPE (TLS_LDM_HI22, REL)
-RELOC_TYPE (TLS_LDM_LO10, REL)
-RELOC_TYPE (TLS_LDM_ADD, REL)
-RELOC_TYPE (TLS_LDM_CALL, REL)
-RELOC_TYPE (TLS_LDO_HIX22, REL)
-RELOC_TYPE (TLS_LDO_LOX10, REL)
-RELOC_TYPE (TLS_LDO_ADD, REL)
-RELOC_TYPE (TLS_IE_HI22, REL)
-RELOC_TYPE (TLS_IE_LO10, REL)
-RELOC_TYPE (TLS_IE_LD, REL)
-RELOC_TYPE (TLS_IE_LDX, REL)
-RELOC_TYPE (TLS_IE_ADD, REL)
-RELOC_TYPE (TLS_LE_HIX22, REL)
-RELOC_TYPE (TLS_LE_LOX10, REL)
-RELOC_TYPE (TLS_DTPMOD32, DYN)
-RELOC_TYPE (TLS_DTPMOD64, DYN)
-RELOC_TYPE (TLS_DTPOFF32, DYN)
-RELOC_TYPE (TLS_DTPOFF64, DYN)
-RELOC_TYPE (TLS_TPOFF32, DYN)
-RELOC_TYPE (TLS_TPOFF64, DYN)
-RELOC_TYPE (GOTDATA_HIX22, REL)
-RELOC_TYPE (GOTDATA_LOX10, REL)
-RELOC_TYPE (GOTDATA_OP_HIX22, DYN)
-RELOC_TYPE (GOTDATA_OP_LOX10, DYN)
-RELOC_TYPE (GOTDATA_OP, DYN)
-RELOC_TYPE (H34, REL)
-RELOC_TYPE (SIZE32, REL)
-RELOC_TYPE (SIZE64, REL)
-RELOC_TYPE (GNU_VTINHERIT, REL)
-RELOC_TYPE (GNU_VTENTRY, REL)
-RELOC_TYPE (REV32, REL)
diff --git a/src/backends/sparc_retval.c b/src/backends/sparc_retval.c
deleted file mode 100644
index e1b17753..00000000
--- a/src/backends/sparc_retval.c
+++ /dev/null
@@ -1,159 +0,0 @@
-/* Function return value location for SPARC.
- Copyright (C) 2006-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND sparc_
-#include "libebl_CPU.h"
-
-
-/* %o0, or pair %o0, %o1. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg8 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_reg9 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_intreg 1
-#define nloc_intregpair 4
-
-/* %f0 or pair %f0, %f1, or quad %f0..%f3. */
-static const Dwarf_Op loc_fpreg[] =
- {
- { .atom = DW_OP_regx, .number = 32 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_regx, .number = 33 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_regx, .number = 34 }, { .atom = DW_OP_piece, .number = 4 },
- { .atom = DW_OP_regx, .number = 35 }, { .atom = DW_OP_piece, .number = 4 },
- };
-#define nloc_fpreg 1
-#define nloc_fpregpair 4
-#define nloc_fpregquad 8
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in %o0. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg8, .number = 0 }
- };
-#define nloc_aggregate 1
-
-int
-sparc_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- uint8_t asize;
- Dwarf_Die cudie;
- if ((tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- && dwarf_diecu (typedie, &cudie, &asize, NULL) != NULL)
- size = asize;
- else
- return -1;
- }
- }
-
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
- if (encoding == DW_ATE_float)
- {
- *locp = loc_fpreg;
- if (size <= 4)
- return nloc_fpreg;
- if (size <= 8)
- return nloc_fpregpair;
- if (size <= 16)
- return nloc_fpregquad;
- }
- }
- if (size <= 8)
- {
- intreg:
- *locp = loc_intreg;
- return size <= 4 ? nloc_intreg : nloc_intregpair;
- }
-
- aggregate:
- *locp = loc_aggregate;
- return nloc_aggregate;
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- case DW_TAG_array_type:
- if (dwarf_aggregate_size (typedie, &size) == 0
- && size > 0 && size <= 8)
- goto intreg;
- goto aggregate;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/sparc_symbol.c b/src/backends/sparc_symbol.c
deleted file mode 100644
index ec11dc97..00000000
--- a/src/backends/sparc_symbol.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/* SPARC specific symbolic name handling.
- Copyright (C) 2002, 2003, 2005, 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Jakub Jelinek <jakub@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <stddef.h>
-
-#define BACKEND sparc_
-#include "libebl_CPU.h"
-
-/* Check for the simple reloc types. */
-Elf_Type
-sparc_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_SPARC_8:
- return ELF_T_BYTE;
- case R_SPARC_16:
- case R_SPARC_UA16:
- return ELF_T_HALF;
- case R_SPARC_32:
- case R_SPARC_UA32:
- return ELF_T_WORD;
- case R_SPARC_64:
- case R_SPARC_UA64:
- return ELF_T_XWORD;
- default:
- return ELF_T_NUM;
- }
-}
-
-/* Check whether machine flags are valid. */
-bool
-sparc_machine_flag_check (GElf_Word flags)
-{
- return ((flags &~ (EF_SPARCV9_MM
- | EF_SPARC_LEDATA
- | EF_SPARC_32PLUS
- | EF_SPARC_SUN_US1
- | EF_SPARC_SUN_US3)) == 0);
-}
-
-bool
-sparc_check_special_section (Ebl *ebl,
- int ndx __attribute__ ((unused)),
- const GElf_Shdr *shdr,
- const char *sname __attribute__ ((unused)))
-{
- if ((shdr->sh_flags & (SHF_WRITE | SHF_EXECINSTR))
- == (SHF_WRITE | SHF_EXECINSTR))
- {
- /* This is ordinarily flagged, but is valid for a PLT on SPARC.
-
- Look for the SHT_DYNAMIC section and the DT_PLTGOT tag in it.
- Its d_ptr should match the .plt section's sh_addr. */
-
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
- {
- GElf_Shdr scn_shdr;
- if (likely (gelf_getshdr (scn, &scn_shdr) != NULL)
- && scn_shdr.sh_type == SHT_DYNAMIC
- && scn_shdr.sh_entsize != 0)
- {
- Elf_Data *data = elf_getdata (scn, NULL);
- if (data != NULL)
- for (size_t i = 0; i < data->d_size / scn_shdr.sh_entsize; ++i)
- {
- GElf_Dyn dyn;
- if (unlikely (gelf_getdyn (data, i, &dyn) == NULL))
- break;
- if (dyn.d_tag == DT_PLTGOT)
- return dyn.d_un.d_ptr == shdr->sh_addr;
- }
- break;
- }
- }
- }
-
- return false;
-}
-
-const char *
-sparc_symbol_type_name (int type,
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (type)
- {
- case STT_SPARC_REGISTER:
- return "SPARC_REGISTER";
- }
- return NULL;
-}
-
-const char *
-sparc_dynamic_tag_name (int64_t tag,
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- switch (tag)
- {
- case DT_SPARC_REGISTER:
- return "SPARC_REGISTER";
- }
- return NULL;
-}
-
-bool
-sparc_dynamic_tag_check (int64_t tag)
-{
- switch (tag)
- {
- case DT_SPARC_REGISTER:
- return true;
- }
- return false;
-}
diff --git a/src/backends/tilegx_corenote.c b/src/backends/tilegx_corenote.c
deleted file mode 100644
index be3e7dbf..00000000
--- a/src/backends/tilegx_corenote.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* TILE-Gx specific core note handling.
- Copyright (C) 2012 Tilera Corporation
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#define BACKEND tilegx_
-#include "libebl_CPU.h"
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
- { .offset = 0, .regno = 0, .count = 56, .bits = 64 }, /* r0-r55 */
- { .offset = 56 * 8, .regno = 64, .count = 1, .bits = 64 } /* pc */
- };
-#define PRSTATUS_REGS_SIZE (57 * 8)
-
-#define ULONG uint64_t
-#define ALIGN_ULONG 8
-#define TYPE_ULONG ELF_T_XWORD
-#define TYPE_LONG ELF_T_SXWORD
-#define PID_T int32_t
-#define UID_T uint32_t
-#define GID_T uint32_t
-#define ALIGN_PID_T 4
-#define ALIGN_UID_T 4
-#define ALIGN_GID_T 4
-#define TYPE_PID_T ELF_T_SWORD
-#define TYPE_UID_T ELF_T_WORD
-#define TYPE_GID_T ELF_T_WORD
-
-#include "linux-core-note.c"
diff --git a/src/backends/tilegx_init.c b/src/backends/tilegx_init.c
deleted file mode 100644
index 858798bf..00000000
--- a/src/backends/tilegx_init.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Initialization of TILE-Gx specific backend library.
- Copyright (C) 2012 Tilera Corporation
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND tilegx_
-#define RELOC_PREFIX R_TILEGX_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on tilegx_reloc.def. */
-#include "common-reloc.c"
-
-const char *
-tilegx_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "TILE-Gx";
- tilegx_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, return_value_location);
- HOOK (eh, register_info);
- HOOK (eh, core_note);
-
- return MODVERSION;
-}
diff --git a/src/backends/tilegx_regs.c b/src/backends/tilegx_regs.c
deleted file mode 100644
index b1e17439..00000000
--- a/src/backends/tilegx_regs.c
+++ /dev/null
@@ -1,129 +0,0 @@
-/* Register names and numbers for TILE-Gx DWARF.
- Copyright (C) 2012 Tilera Corporation
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <string.h>
-#include <dwarf.h>
-
-#define BACKEND tilegx_
-#include "libebl_CPU.h"
-
-ssize_t
-tilegx_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 65;
-
- if (regno < 0 || regno > 64 || namelen < 5)
- return -1;
-
- *prefix = "";
- *setname = "integer";
- *bits = 64;
-
- switch (regno)
- {
- case 0 ... 9:
- *type = DW_ATE_signed;
- name[0] = 'r';
- name[1] = regno + '0';
- namelen = 2;
- break;
-
- case 10 ... 52:
- *type = DW_ATE_signed;
- name[0] = 'r';
- name[1] = regno / 10 + '0';
- name[2] = regno % 10 + '0';
- namelen = 3;
- break;
-
- case 53:
- *type = DW_ATE_address;
- return stpcpy (name, "tp") + 1 - name;
-
- case 54:
- *type = DW_ATE_address;
- return stpcpy (name, "sp") + 1 - name;
-
- case 55:
- *type = DW_ATE_address;
- return stpcpy (name, "lr") + 1 - name;
-
- case 56:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "sn") + 1 - name;
-
- case 57:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "idn0") + 1 - name;
-
- case 58:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "idn1") + 1 - name;
-
- case 59:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "udn0") + 1 - name;
-
- case 60:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "udn1") + 1 - name;
-
- case 61:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "udn2") + 1 - name;
-
- case 62:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "udn3") + 1 - name;
-
- case 63:
- *type = DW_ATE_unsigned;
- return stpcpy (name, "zero") + 1 - name;
-
- case 64:
- *type = DW_ATE_address;
- return stpcpy (name, "pc") + 1 - name;
-
- /* Can't happen. */
- default:
- *setname = NULL;
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/tilegx_reloc.def b/src/backends/tilegx_reloc.def
deleted file mode 100644
index 9736286e..00000000
--- a/src/backends/tilegx_reloc.def
+++ /dev/null
@@ -1,120 +0,0 @@
-/* List the relocation types for tilegx. -*- C -*-
- Copyright (C) 2012 Tilera Corporation
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (64, REL|EXEC|DYN)
-RELOC_TYPE (32, REL|EXEC|DYN)
-RELOC_TYPE (16, REL|EXEC|DYN)
-RELOC_TYPE (8, REL|EXEC|DYN)
-RELOC_TYPE (64_PCREL, REL)
-RELOC_TYPE (32_PCREL, REL)
-RELOC_TYPE (16_PCREL, REL)
-RELOC_TYPE (8_PCREL, REL)
-RELOC_TYPE (HW0, REL)
-RELOC_TYPE (HW1, REL)
-RELOC_TYPE (HW2, REL)
-RELOC_TYPE (HW3, REL)
-RELOC_TYPE (HW0_LAST, REL)
-RELOC_TYPE (HW1_LAST, REL)
-RELOC_TYPE (HW2_LAST, REL)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (BROFF_X1, REL)
-RELOC_TYPE (JUMPOFF_X1, REL)
-RELOC_TYPE (JUMPOFF_X1_PLT, REL)
-RELOC_TYPE (IMM8_X0, REL)
-RELOC_TYPE (IMM8_Y0, REL)
-RELOC_TYPE (IMM8_X1, REL)
-RELOC_TYPE (IMM8_Y1, REL)
-RELOC_TYPE (DEST_IMM8_X1, REL)
-RELOC_TYPE (MT_IMM14_X1, REL)
-RELOC_TYPE (MF_IMM14_X1, REL)
-RELOC_TYPE (MMSTART_X0, REL)
-RELOC_TYPE (MMEND_X0, REL)
-RELOC_TYPE (SHAMT_X0, REL)
-RELOC_TYPE (SHAMT_X1, REL)
-RELOC_TYPE (SHAMT_Y0, REL)
-RELOC_TYPE (SHAMT_Y1, REL)
-RELOC_TYPE (IMM16_X0_HW0, REL)
-RELOC_TYPE (IMM16_X1_HW0, REL)
-RELOC_TYPE (IMM16_X0_HW1, REL)
-RELOC_TYPE (IMM16_X1_HW1, REL)
-RELOC_TYPE (IMM16_X0_HW2, REL)
-RELOC_TYPE (IMM16_X1_HW2, REL)
-RELOC_TYPE (IMM16_X0_HW3, REL)
-RELOC_TYPE (IMM16_X1_HW3, REL)
-RELOC_TYPE (IMM16_X0_HW0_LAST, REL)
-RELOC_TYPE (IMM16_X1_HW0_LAST, REL)
-RELOC_TYPE (IMM16_X0_HW1_LAST, REL)
-RELOC_TYPE (IMM16_X1_HW1_LAST, REL)
-RELOC_TYPE (IMM16_X0_HW2_LAST, REL)
-RELOC_TYPE (IMM16_X1_HW2_LAST, REL)
-RELOC_TYPE (IMM16_X0_HW0_PCREL, REL)
-RELOC_TYPE (IMM16_X1_HW0_PCREL, REL)
-RELOC_TYPE (IMM16_X0_HW1_PCREL, REL)
-RELOC_TYPE (IMM16_X1_HW1_PCREL, REL)
-RELOC_TYPE (IMM16_X0_HW2_PCREL, REL)
-RELOC_TYPE (IMM16_X1_HW2_PCREL, REL)
-RELOC_TYPE (IMM16_X0_HW3_PCREL, REL)
-RELOC_TYPE (IMM16_X1_HW3_PCREL, REL)
-RELOC_TYPE (IMM16_X0_HW0_LAST_PCREL, REL)
-RELOC_TYPE (IMM16_X1_HW0_LAST_PCREL, REL)
-RELOC_TYPE (IMM16_X0_HW1_LAST_PCREL, REL)
-RELOC_TYPE (IMM16_X1_HW1_LAST_PCREL, REL)
-RELOC_TYPE (IMM16_X0_HW2_LAST_PCREL, REL)
-RELOC_TYPE (IMM16_X1_HW2_LAST_PCREL, REL)
-RELOC_TYPE (IMM16_X0_HW0_GOT, REL)
-RELOC_TYPE (IMM16_X1_HW0_GOT, REL)
-RELOC_TYPE (IMM16_X0_HW0_LAST_GOT, REL)
-RELOC_TYPE (IMM16_X1_HW0_LAST_GOT, REL)
-RELOC_TYPE (IMM16_X0_HW1_LAST_GOT, REL)
-RELOC_TYPE (IMM16_X1_HW1_LAST_GOT, REL)
-RELOC_TYPE (IMM16_X0_HW0_TLS_GD, REL)
-RELOC_TYPE (IMM16_X1_HW0_TLS_GD, REL)
-RELOC_TYPE (IMM16_X0_HW0_LAST_TLS_GD, REL)
-RELOC_TYPE (IMM16_X1_HW0_LAST_TLS_GD, REL)
-RELOC_TYPE (IMM16_X0_HW1_LAST_TLS_GD, REL)
-RELOC_TYPE (IMM16_X1_HW1_LAST_TLS_GD, REL)
-RELOC_TYPE (IMM16_X0_HW0_TLS_IE, REL)
-RELOC_TYPE (IMM16_X1_HW0_TLS_IE, REL)
-RELOC_TYPE (IMM16_X0_HW0_LAST_TLS_IE, REL)
-RELOC_TYPE (IMM16_X1_HW0_LAST_TLS_IE, REL)
-RELOC_TYPE (IMM16_X0_HW1_LAST_TLS_IE, REL)
-RELOC_TYPE (IMM16_X1_HW1_LAST_TLS_IE, REL)
-RELOC_TYPE (TLS_DTPMOD64, EXEC|DYN)
-RELOC_TYPE (TLS_DTPOFF64, EXEC|DYN)
-RELOC_TYPE (TLS_TPOFF64, EXEC|DYN)
-RELOC_TYPE (TLS_DTPMOD32, EXEC|DYN)
-RELOC_TYPE (TLS_DTPOFF32, EXEC|DYN)
-RELOC_TYPE (TLS_TPOFF32, EXEC|DYN)
-RELOC_TYPE (GNU_VTINHERIT, REL)
-RELOC_TYPE (GNU_VTENTRY, REL)
diff --git a/src/backends/tilegx_retval.c b/src/backends/tilegx_retval.c
deleted file mode 100644
index db81a20b..00000000
--- a/src/backends/tilegx_retval.c
+++ /dev/null
@@ -1,154 +0,0 @@
-/* Function return value location for Linux/TILE-Gx ABI.
- Copyright (C) 2012 Tilera Corporation
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND tilegx_
-#include "libebl_CPU.h"
-
-
-/* r0. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg0 }
- };
-#define nloc_intreg 1
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in r0. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg0, .number = 0 }
- };
-#define nloc_aggregate 1
-
-int
-tilegx_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 8;
- else
- return -1;
- }
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
- }
- }
-
- /* Small enough structs are passed directly in registers R0 ... R7. */
- if (size <= 8)
- {
- intreg:
- *locp = loc_intreg;
- return nloc_intreg;
- }
-
- /* Else fall through. */
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- aggregate:
- *locp = loc_aggregate;
- return nloc_aggregate;
-
- case DW_TAG_array_type:
- case DW_TAG_string_type:
- if (dwarf_aggregate_size (typedie, &size) == 0 && size <= 8)
- {
- if (tag == DW_TAG_array_type)
- {
- Dwarf_Attribute attr_mem, *attr;
- /* Check if it's a character array. */
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- if (tag != DW_TAG_base_type)
- goto aggregate;
- if (dwarf_formudata (dwarf_attr_integrate (typedie,
- DW_AT_byte_size,
- &attr_mem),
- &size) != 0)
- return -1;
- if (size != 1)
- goto aggregate;
- }
- goto intreg;
- }
- goto aggregate;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/tilegx_symbol.c b/src/backends/tilegx_symbol.c
deleted file mode 100644
index b6533266..00000000
--- a/src/backends/tilegx_symbol.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* TILEGX-specific symbolic name handling.
- Copyright (C) 2012 Tilera Corporation
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <stddef.h>
-
-#define BACKEND tilegx_
-#include "libebl_CPU.h"
-
-/* Check for the simple reloc types. */
-Elf_Type
-tilegx_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_TILEGX_64:
- return ELF_T_SXWORD;
- case R_TILEGX_32:
- return ELF_T_SWORD;
- case R_TILEGX_16:
- return ELF_T_HALF;
- case R_TILEGX_8:
- return ELF_T_BYTE;
- default:
- return ELF_T_NUM;
- }
-}
diff --git a/src/backends/x86_64_cfi.c b/src/backends/x86_64_cfi.c
deleted file mode 100644
index 6db8ac44..00000000
--- a/src/backends/x86_64_cfi.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* x86-64 ABI-specified defaults for DWARF CFI.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-
-#define BACKEND x86_64_
-#include "libebl_CPU.h"
-
-int
-x86_64_abi_cfi (Ebl *ebl __attribute__ ((unused)), Dwarf_CIE *abi_info)
-{
- static const uint8_t abi_cfi[] =
- {
- /* Call-saved regs. */
- DW_CFA_same_value, ULEB128_7 (0), /* %rbx */
- DW_CFA_same_value, ULEB128_7 (6), /* %rbp */
- DW_CFA_same_value, ULEB128_7 (12), /* %r12 */
- DW_CFA_same_value, ULEB128_7 (13), /* %r13 */
- DW_CFA_same_value, ULEB128_7 (14), /* %r14 */
- DW_CFA_same_value, ULEB128_7 (15), /* %r15 */
- DW_CFA_same_value, ULEB128_7 (16), /* %r16 */
-
- /* The CFA is the SP. */
- DW_CFA_val_offset, ULEB128_7 (7), ULEB128_7 (0),
- };
-
- abi_info->initial_instructions = abi_cfi;
- abi_info->initial_instructions_end = &abi_cfi[sizeof abi_cfi];
- abi_info->data_alignment_factor = 8;
-
- abi_info->return_address_register = 16; /* %rip */
-
- return 0;
-}
diff --git a/src/backends/x86_64_corenote.c b/src/backends/x86_64_corenote.c
deleted file mode 100644
index f9d8db45..00000000
--- a/src/backends/x86_64_corenote.c
+++ /dev/null
@@ -1,112 +0,0 @@
-/* x86-64 specific core note handling.
- Copyright (C) 2005, 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <elf.h>
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <sys/time.h>
-
-#define BACKEND x86_64_
-#include "libebl_CPU.h"
-
-
-static const Ebl_Register_Location prstatus_regs[] =
- {
-#define GR(at, n, dwreg) \
- { .offset = at * 8, .regno = dwreg, .count = n, .bits = 64 }
-#define SR(at, n, dwreg) \
- { .offset = at * 8, .regno = dwreg, .count = n, .bits = 16, .pad = 6 }
-
- GR (0, 1, 15), /* %r15 */
- GR (1, 1, 14), /* %r14 */
- GR (2, 1, 13), /* %r13 */
- GR (3, 1, 12), /* %r12 */
- GR (4, 1, 6), /* %rbp */
- GR (5, 1, 3), /* %rbx */
- GR (6, 1, 11), /* %r11 */
- GR (7, 1, 10), /* %r10 */
- GR (8, 1, 9), /* %r9 */
- GR (9, 1, 8), /* %r8 */
- GR (10,1, 0), /* %rax */
- GR (11,1, 2), /* %rcx */
- GR (12,1, 1), /* %rdx */
- GR (13,2, 4), /* %rsi-%rdi */
- /* 15,1, orig_rax */
- GR (16,1, 16), /* %rip */
- SR (17,1, 51), /* %cs */
- GR (18,1, 49), /* %rFLAGS */
- GR (19,1, 7), /* %rsp */
- SR (20,1, 52), /* %ss */
- GR (21,2, 58), /* %fs.base-%gs.base */
- SR (23,1, 53), /* %ds */
- SR (24,1, 50), /* %es */
- SR (25,2, 54), /* %fs-%gs */
-
-#undef GR
-#undef SR
- };
-#define PRSTATUS_REGS_SIZE (27 * 8)
-
-#define ULONG uint64_t
-#define PID_T int32_t
-#define UID_T uint32_t
-#define GID_T uint32_t
-#define ALIGN_ULONG 8
-#define ALIGN_PID_T 4
-#define ALIGN_UID_T 4
-#define ALIGN_GID_T 4
-#define TYPE_ULONG ELF_T_XWORD
-#define TYPE_PID_T ELF_T_SWORD
-#define TYPE_UID_T ELF_T_SWORD
-#define TYPE_GID_T ELF_T_SWORD
-
-#define PRSTATUS_REGSET_ITEMS \
- { \
- .name = "orig_rax", .type = ELF_T_SXWORD, .format = 'd', \
- .offset = offsetof (struct EBLHOOK(prstatus), pr_reg) + (8 * 15), \
- .group = "register" \
- }
-
-static const Ebl_Register_Location fpregset_regs[] =
- {
- { .offset = 0, .regno = 65, .count = 2, .bits = 16 }, /* fcw-fsw */
- { .offset = 24, .regno = 64, .count = 1, .bits = 32 }, /* mxcsr */
- { .offset = 32, .regno = 33, .count = 8, .bits = 80, .pad = 6 }, /* stN */
- { .offset = 32 + 128, .regno = 17, .count = 16, .bits = 128 }, /* xmm */
- };
-#define FPREGSET_SIZE 512
-
-#define EXTRA_NOTES EXTRA_NOTES_IOPERM
-
-#include "x86_corenote.c"
-#include "linux-core-note.c"
diff --git a/src/backends/x86_64_init.c b/src/backends/x86_64_init.c
deleted file mode 100644
index b885558b..00000000
--- a/src/backends/x86_64_init.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Initialization of x86-64 specific backend library.
- Copyright (C) 2002-2009, 2013 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND x86_64_
-#define RELOC_PREFIX R_X86_64_
-#include "libebl_CPU.h"
-
-/* This defines the common reloc hooks based on x86_64_reloc.def. */
-#include "common-reloc.c"
-
-const char *
-x86_64_init (elf, machine, eh, ehlen)
- Elf *elf __attribute__ ((unused));
- GElf_Half machine __attribute__ ((unused));
- Ebl *eh;
- size_t ehlen;
-{
- /* Check whether the Elf_BH object has a sufficent size. */
- if (ehlen < sizeof (Ebl))
- return NULL;
-
- /* We handle it. */
- eh->name = "AMD x86-64";
- x86_64_init_reloc (eh);
- HOOK (eh, reloc_simple_type);
- HOOK (eh, core_note);
- HOOK (eh, return_value_location);
- HOOK (eh, register_info);
- HOOK (eh, syscall_abi);
- HOOK (eh, auxv_info);
- HOOK (eh, disasm);
- HOOK (eh, abi_cfi);
- /* gcc/config/ #define DWARF_FRAME_REGISTERS. */
- eh->frame_nregs = 17;
- HOOK (eh, set_initial_registers_tid);
-
- return MODVERSION;
-}
diff --git a/src/backends/x86_64_initreg.c b/src/backends/x86_64_initreg.c
deleted file mode 100644
index db9216ed..00000000
--- a/src/backends/x86_64_initreg.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* Fetch live process registers from TID.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#ifdef __x86_64__
-# include <sys/user.h>
-# include <sys/ptrace.h>
-#endif
-
-#define BACKEND x86_64_
-#include "libebl_CPU.h"
-
-bool
-x86_64_set_initial_registers_tid (pid_t tid __attribute__ ((unused)),
- ebl_tid_registers_t *setfunc __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
-#if !defined(__x86_64__) || !defined(__linux__)
- return false;
-#else /* __x86_64__ */
- struct user_regs_struct user_regs;
- if (ptrace (PTRACE_GETREGS, tid, NULL, &user_regs) != 0)
- return false;
- Dwarf_Word dwarf_regs[17];
- dwarf_regs[0] = user_regs.rax;
- dwarf_regs[1] = user_regs.rdx;
- dwarf_regs[2] = user_regs.rcx;
- dwarf_regs[3] = user_regs.rbx;
- dwarf_regs[4] = user_regs.rsi;
- dwarf_regs[5] = user_regs.rdi;
- dwarf_regs[6] = user_regs.rbp;
- dwarf_regs[7] = user_regs.rsp;
- dwarf_regs[8] = user_regs.r8;
- dwarf_regs[9] = user_regs.r9;
- dwarf_regs[10] = user_regs.r10;
- dwarf_regs[11] = user_regs.r11;
- dwarf_regs[12] = user_regs.r12;
- dwarf_regs[13] = user_regs.r13;
- dwarf_regs[14] = user_regs.r14;
- dwarf_regs[15] = user_regs.r15;
- dwarf_regs[16] = user_regs.rip;
- return setfunc (0, 17, dwarf_regs, arg);
-#endif /* __x86_64__ */
-}
diff --git a/src/backends/x86_64_regs.c b/src/backends/x86_64_regs.c
deleted file mode 100644
index 2172d9f1..00000000
--- a/src/backends/x86_64_regs.c
+++ /dev/null
@@ -1,185 +0,0 @@
-/* Register names and numbers for x86-64 DWARF.
- Copyright (C) 2005, 2006, 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include <string.h>
-
-#define BACKEND x86_64_
-#include "libebl_CPU.h"
-
-ssize_t
-x86_64_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 67;
-
- if (regno < 0 || regno > 66 || namelen < 7)
- return -1;
-
- *prefix = "%";
- *bits = 64;
- *type = DW_ATE_unsigned;
- if (regno < 17)
- {
- *setname = "integer";
- *type = DW_ATE_signed;
- }
- else if (regno < 33)
- {
- *setname = "SSE";
- *bits = 128;
- }
- else if (regno < 41)
- {
- *setname = "x87";
- *type = DW_ATE_float;
- *bits = 80;
- }
- else if (regno < 49)
- *setname = "MMX";
- else if (regno > 49 && regno < 60)
- {
- *setname = "segment";
- *bits = 16;
- }
- else
- *setname = "control";
-
- switch (regno)
- {
- static const char baseregs[][2] =
- {
- "ax", "dx", "cx", "bx", "si", "di", "bp", "sp"
- };
-
- case 6 ... 7:
- *type = DW_ATE_address;
- case 0 ... 5:
- name[0] = 'r';
- name[1] = baseregs[regno][0];
- name[2] = baseregs[regno][1];
- namelen = 3;
- break;
-
- case 8 ... 9:
- name[0] = 'r';
- name[1] = regno - 8 + '8';
- namelen = 2;
- break;
-
- case 10 ... 15:
- name[0] = 'r';
- name[1] = '1';
- name[2] = regno - 10 + '0';
- namelen = 3;
- break;
-
- case 16:
- *type = DW_ATE_address;
- name[0] = 'r';
- name[1] = 'i';
- name[2] = 'p';
- namelen = 3;
- break;
-
- case 17 ... 26:
- name[0] = 'x';
- name[1] = 'm';
- name[2] = 'm';
- name[3] = regno - 17 + '0';
- namelen = 4;
- break;
-
- case 27 ... 32:
- name[0] = 'x';
- name[1] = 'm';
- name[2] = 'm';
- name[3] = '1';
- name[4] = regno - 27 + '0';
- namelen = 5;
- break;
-
- case 33 ... 40:
- name[0] = 's';
- name[1] = 't';
- name[2] = regno - 33 + '0';
- namelen = 3;
- break;
-
- case 41 ... 48:
- name[0] = 'm';
- name[1] = 'm';
- name[2] = regno - 41 + '0';
- namelen = 3;
- break;
-
- case 50 ... 55:
- name[0] = "ecsdfg"[regno - 50];
- name[1] = 's';
- namelen = 2;
- break;
-
- case 58 ... 59:
- *type = DW_ATE_address;
- *bits = 64;
- name[0] = regno - 58 + 'f';
- return stpcpy (&name[1], "s.base") + 1 - name;
-
- case 49:
- *setname = "integer";
- return stpcpy (name, "rflags") + 1 - name;
- case 62:
- return stpcpy (name, "tr") + 1 - name;
- case 63:
- return stpcpy (name, "ldtr") + 1 - name;
- case 64:
- return stpcpy (name, "mxcsr") + 1 - name;
-
- case 65 ... 66:
- *bits = 16;
- name[0] = 'f';
- name[1] = "cs"[regno - 65];
- name[2] = 'w';
- namelen = 3;
- break;
-
- default:
- return 0;
- }
-
- name[namelen++] = '\0';
- return namelen;
-}
diff --git a/src/backends/x86_64_reloc.def b/src/backends/x86_64_reloc.def
deleted file mode 100644
index 8ed98f64..00000000
--- a/src/backends/x86_64_reloc.def
+++ /dev/null
@@ -1,63 +0,0 @@
-/* List the relocation types for x86-64. -*- C -*-
- Copyright (C) 2000, 2001, 2002, 2003, 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* NAME, REL|EXEC|DYN */
-
-RELOC_TYPE (NONE, 0)
-RELOC_TYPE (64, REL|EXEC|DYN)
-RELOC_TYPE (PC32, REL|EXEC|DYN)
-RELOC_TYPE (GOT32, REL)
-RELOC_TYPE (PLT32, REL)
-RELOC_TYPE (COPY, EXEC)
-RELOC_TYPE (GLOB_DAT, EXEC|DYN)
-RELOC_TYPE (JUMP_SLOT, EXEC|DYN)
-RELOC_TYPE (RELATIVE, EXEC|DYN)
-RELOC_TYPE (GOTPCREL, REL)
-RELOC_TYPE (32, REL|EXEC|DYN)
-RELOC_TYPE (32S, REL)
-RELOC_TYPE (16, REL)
-RELOC_TYPE (PC16, REL)
-RELOC_TYPE (8, REL)
-RELOC_TYPE (PC8, REL)
-RELOC_TYPE (DTPMOD64, EXEC|DYN)
-RELOC_TYPE (DTPOFF64, EXEC|DYN)
-RELOC_TYPE (TPOFF64, EXEC|DYN)
-RELOC_TYPE (TLSGD, REL)
-RELOC_TYPE (TLSLD, REL)
-RELOC_TYPE (DTPOFF32, REL)
-RELOC_TYPE (GOTTPOFF, REL)
-RELOC_TYPE (TPOFF32, REL)
-RELOC_TYPE (PC64, REL|EXEC|DYN)
-RELOC_TYPE (GOTOFF64, REL)
-RELOC_TYPE (GOTPC32, REL)
-RELOC_TYPE (SIZE32, REL|EXEC|DYN)
-RELOC_TYPE (SIZE64, REL|EXEC|DYN)
-RELOC_TYPE (GOTPC32_TLSDESC, REL)
-RELOC_TYPE (TLSDESC_CALL, REL)
-RELOC_TYPE (TLSDESC, REL|EXEC|DYN)
-RELOC_TYPE (IRELATIVE, EXEC|DYN)
diff --git a/src/backends/x86_64_retval.c b/src/backends/x86_64_retval.c
deleted file mode 100644
index b3799ae0..00000000
--- a/src/backends/x86_64_retval.c
+++ /dev/null
@@ -1,194 +0,0 @@
-/* Function return value location for Linux/x86-64 ABI.
- Copyright (C) 2005-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-
-#define BACKEND x86_64_
-#include "libebl_CPU.h"
-
-
-/* %rax, or pair %rax, %rdx. */
-static const Dwarf_Op loc_intreg[] =
- {
- { .atom = DW_OP_reg0 }, { .atom = DW_OP_piece, .number = 8 },
- { .atom = DW_OP_reg1 }, { .atom = DW_OP_piece, .number = 8 },
- };
-#define nloc_intreg 1
-#define nloc_intregpair 4
-
-/* %st(0), or pair %st(0), %st(1). */
-static const Dwarf_Op loc_x87reg[] =
- {
- { .atom = DW_OP_regx, .number = 33 },
- { .atom = DW_OP_piece, .number = 10 },
- { .atom = DW_OP_regx, .number = 34 },
- { .atom = DW_OP_piece, .number = 10 },
- };
-#define nloc_x87reg 1
-#define nloc_x87regpair 4
-
-/* %xmm0, or pair %xmm0, %xmm1. */
-static const Dwarf_Op loc_ssereg[] =
- {
- { .atom = DW_OP_reg17 }, { .atom = DW_OP_piece, .number = 16 },
- { .atom = DW_OP_reg18 }, { .atom = DW_OP_piece, .number = 16 },
- };
-#define nloc_ssereg 1
-#define nloc_sseregpair 4
-
-/* The return value is a structure and is actually stored in stack space
- passed in a hidden argument by the caller. But, the compiler
- helpfully returns the address of that space in %rax. */
-static const Dwarf_Op loc_aggregate[] =
- {
- { .atom = DW_OP_breg0, .number = 0 }
- };
-#define nloc_aggregate 1
-
-
-int
-x86_64_return_value_location (Dwarf_Die *functypedie, const Dwarf_Op **locp)
-{
- /* Start with the function's type, and get the DW_AT_type attribute,
- which is the type of the return value. */
- Dwarf_Die die_mem, *typedie = &die_mem;
- int tag = dwarf_peeled_die_type (functypedie, typedie);
- if (tag <= 0)
- return tag;
-
- Dwarf_Word size;
- switch (tag)
- {
- case -1:
- return -1;
-
- case DW_TAG_subrange_type:
- if (! dwarf_hasattr_integrate (typedie, DW_AT_byte_size))
- {
- Dwarf_Attribute attr_mem, *attr;
- attr = dwarf_attr_integrate (typedie, DW_AT_type, &attr_mem);
- typedie = dwarf_formref_die (attr, &die_mem);
- tag = DWARF_TAG_OR_RETURN (typedie);
- }
- /* Fall through. */
-
- case DW_TAG_base_type:
- case DW_TAG_enumeration_type:
- case DW_TAG_pointer_type:
- case DW_TAG_ptr_to_member_type:
- {
- Dwarf_Attribute attr_mem;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_byte_size,
- &attr_mem), &size) != 0)
- {
- if (tag == DW_TAG_pointer_type || tag == DW_TAG_ptr_to_member_type)
- size = 8;
- else
- return -1;
- }
- }
-
- if (tag == DW_TAG_base_type)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Word encoding;
- if (dwarf_formudata (dwarf_attr_integrate (typedie, DW_AT_encoding,
- &attr_mem),
- &encoding) != 0)
- return -1;
-
- switch (encoding)
- {
- case DW_ATE_complex_float:
- switch (size)
- {
- case 4 * 2: /* complex float */
- case 8 * 2: /* complex double */
- *locp = loc_ssereg;
- return nloc_sseregpair;
- case 16 * 2: /* complex long double */
- *locp = loc_x87reg;
- return nloc_x87regpair;
- }
- return -2;
-
- case DW_ATE_float:
- switch (size)
- {
- case 4: /* float */
- case 8: /* double */
- *locp = loc_ssereg;
- return nloc_ssereg;
- case 16: /* long double */
- /* XXX distinguish __float128, which is sseregpair?? */
- *locp = loc_x87reg;
- return nloc_x87reg;
- }
- return -2;
- }
- }
-
- intreg:
- *locp = loc_intreg;
- if (size <= 8)
- return nloc_intreg;
- if (size <= 16)
- return nloc_intregpair;
-
- large:
- *locp = loc_aggregate;
- return nloc_aggregate;
-
- case DW_TAG_structure_type:
- case DW_TAG_class_type:
- case DW_TAG_union_type:
- case DW_TAG_array_type:
- if (dwarf_aggregate_size (typedie, &size) != 0)
- goto large;
- if (size > 16)
- goto large;
-
- /* XXX
- Must examine the fields in picayune ways to determine the
- actual answer. This will be right for small C structs
- containing integer types and similarly simple cases.
- */
-
- goto intreg;
- }
-
- /* XXX We don't have a good way to return specific errors from ebl calls.
- This value means we do not understand the type, but it is well-formed
- DWARF and might be valid. */
- return -2;
-}
diff --git a/src/backends/x86_64_symbol.c b/src/backends/x86_64_symbol.c
deleted file mode 100644
index 1622461d..00000000
--- a/src/backends/x86_64_symbol.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* x86_64 specific symbolic name handling.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <elf.h>
-#include <stddef.h>
-
-#define BACKEND x86_64_
-#include "libebl_CPU.h"
-
-/* Check for the simple reloc types. */
-Elf_Type
-x86_64_reloc_simple_type (Ebl *ebl __attribute__ ((unused)), int type)
-{
- switch (type)
- {
- case R_X86_64_64:
- return ELF_T_XWORD;
- case R_X86_64_32:
- return ELF_T_WORD;
- case R_X86_64_32S:
- return ELF_T_SWORD;
- case R_X86_64_16:
- return ELF_T_HALF;
- case R_X86_64_8:
- return ELF_T_BYTE;
- default:
- return ELF_T_NUM;
- }
-}
diff --git a/src/backends/x86_64_syscall.c b/src/backends/x86_64_syscall.c
deleted file mode 100644
index 0deb8bad..00000000
--- a/src/backends/x86_64_syscall.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Linux/x86-64 system call ABI in DWARF register numbers.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define BACKEND x86_64_
-#include "libebl_CPU.h"
-
-int
-x86_64_syscall_abi (Ebl *ebl __attribute__ ((unused)),
- int *sp, int *pc, int *callno, int args[6])
-{
- *sp = 7; /* %rsp */
- *pc = 16; /* %rip */
- *callno = 0; /* %rax */
- args[0] = 5; /* %rdi */
- args[1] = 4; /* %rsi */
- args[2] = 1; /* %rdx */
- args[3] = 10; /* %r10 */
- args[4] = 8; /* %r8 */
- args[5] = 9; /* %r9 */
- return 0;
-}
diff --git a/src/backends/x86_corenote.c b/src/backends/x86_corenote.c
deleted file mode 100644
index 629462c3..00000000
--- a/src/backends/x86_corenote.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* x86-specific core note handling, pieces common to x86-64 and i386.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define EXTRA_NOTES_IOPERM \
- case NT_386_IOPERM: \
- return ioperm_info (nhdr->n_descsz, \
- regs_offset, nregloc, reglocs, nitems, items);
-
-static int
-ioperm_info (GElf_Word descsz, GElf_Word *regs_offset,
- size_t *nregloc, const Ebl_Register_Location **reglocs,
- size_t *nitems, const Ebl_Core_Item **items)
-{
- static const Ebl_Core_Item ioperm_item =
- { .type = ELF_T_WORD, .format = 'b', .name = "ioperm" };
-
- if (descsz % 4 != 0)
- return 0;
-
- *regs_offset = 0;
- *nregloc = 0;
- *reglocs = NULL;
- *nitems = 1;
- *items = &ioperm_item;
- return 1;
-}
diff --git a/src/config.h b/src/config.h
deleted file mode 100644
index 5642f46d..00000000
--- a/src/config.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/* config.h. Generated from config.h.in by configure. */
-/* config.h.in. Generated from configure.ac by autoheader. */
-
-/* Should ar and ranlib use -D behavior by default? */
-#define DEFAULT_AR_DETERMINISTIC false
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#define HAVE_INTTYPES_H 1
-
-/* Define to 1 if you have the <memory.h> header file. */
-#define HAVE_MEMORY_H 1
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#define HAVE_STDINT_H 1
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#define HAVE_STDLIB_H 1
-
-/* Define to 1 if you have the <strings.h> header file. */
-#define HAVE_STRINGS_H 1
-
-/* Define to 1 if you have the <string.h> header file. */
-#define HAVE_STRING_H 1
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#define HAVE_SYS_STAT_H 1
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#define HAVE_SYS_TYPES_H 1
-
-/* Define to 1 if <sys/user.h> defines struct user_regs_struct */
-#define HAVE_SYS_USER_REGS 1
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#define HAVE_UNISTD_H 1
-
-/* $libdir subdirectory containing libebl modules. */
-#define LIBEBL_SUBDIR "elfutils"
-
-/* Identifier for modules in the build. */
-#define MODVERSION "Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800"
-
-/* Define to 32 or 64 if a specific implementation is wanted. */
-/* #undef NATIVE_ELF */
-
-/* Name of package */
-#define PACKAGE "elfutils"
-
-/* Define to the address where bug reports for this package should be sent. */
-#define PACKAGE_BUGREPORT "https://bugzilla.redhat.com/"
-
-/* Define to the full name of this package. */
-#define PACKAGE_NAME "elfutils"
-
-/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "elfutils 0.161"
-
-/* Define to the one symbol short name of this package. */
-#define PACKAGE_TARNAME "elfutils"
-
-/* Define to the home page for this package. */
-#define PACKAGE_URL ""
-
-/* Define to the version of this package. */
-#define PACKAGE_VERSION "0.161"
-
-/* The size of `long', as computed by sizeof. */
-#if __LP64__
-#define SIZEOF_LONG 8
-#else
-#define SIZEOF_LONG 4
-#endif
-
-/* Define to 1 if you have the ANSI C header files. */
-#define STDC_HEADERS 1
-
-/* Support bzip2 decompression via -lbz2. */
-/* #undef USE_BZLIB */
-
-/* Defined if demangling is enabled */
-#define USE_DEMANGLE 1
-
-/* Defined if libraries should be thread-safe. */
-/* #undef USE_LOCKS */
-
-/* Support LZMA (xz) decompression via -llzma. */
-/* #undef USE_LZMA */
-
-/* Support gzip decompression via -lz. */
-#define USE_ZLIB 1
-
-/* Version number of package */
-#define VERSION "0.161"
-
-/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
- `char[]'. */
-#define YYTEXT_POINTER 1
-
-/* Enable large inode numbers on Mac OS X 10.5. */
-#ifndef _DARWIN_USE_64_BIT_INODE
-# define _DARWIN_USE_64_BIT_INODE 1
-#endif
-
-/* Number of bits in a file offset, on hosts where this is settable. */
-/* #undef _FILE_OFFSET_BITS */
-
-/* Define for large files, on AIX-style hosts. */
-/* #undef _LARGE_FILES */
-
-#include <eu-config.h>
diff --git a/src/config.h.in b/src/config.h.in
deleted file mode 100644
index 8ceb0f98..00000000
--- a/src/config.h.in
+++ /dev/null
@@ -1,105 +0,0 @@
-/* config.h.in. Generated from configure.ac by autoheader. */
-
-/* Should ar and ranlib use -D behavior by default? */
-#undef DEFAULT_AR_DETERMINISTIC
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if <sys/user.h> defines struct user_regs_struct */
-#undef HAVE_SYS_USER_REGS
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* $libdir subdirectory containing libebl modules. */
-#undef LIBEBL_SUBDIR
-
-/* Identifier for modules in the build. */
-#undef MODVERSION
-
-/* Define to 32 or 64 if a specific implementation is wanted. */
-#undef NATIVE_ELF
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* The size of `long', as computed by sizeof. */
-#undef SIZEOF_LONG
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Support bzip2 decompression via -lbz2. */
-#undef USE_BZLIB
-
-/* Defined if demangling is enabled */
-#undef USE_DEMANGLE
-
-/* Defined if libraries should be thread-safe. */
-#undef USE_LOCKS
-
-/* Support LZMA (xz) decompression via -llzma. */
-#undef USE_LZMA
-
-/* Support gzip decompression via -lz. */
-#undef USE_ZLIB
-
-/* Version number of package */
-#undef VERSION
-
-/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
- `char[]'. */
-#undef YYTEXT_POINTER
-
-/* Enable large inode numbers on Mac OS X 10.5. */
-#ifndef _DARWIN_USE_64_BIT_INODE
-# define _DARWIN_USE_64_BIT_INODE 1
-#endif
-
-/* Number of bits in a file offset, on hosts where this is settable. */
-#undef _FILE_OFFSET_BITS
-
-/* Define for large files, on AIX-style hosts. */
-#undef _LARGE_FILES
-
-#include <eu-config.h>
diff --git a/src/config.status b/src/config.status
deleted file mode 100755
index d9e41f15..00000000
--- a/src/config.status
+++ /dev/null
@@ -1,1403 +0,0 @@
-#! /bin/sh
-# Generated by configure.
-# Run this file to recreate the current configuration.
-# Compiler output produced by configure, useful for debugging
-# configure, is in config.log if it exists.
-
-debug=false
-ac_cs_recheck=false
-ac_cs_silent=false
-
-SHELL=${CONFIG_SHELL-/bin/sh}
-export SHELL
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
-else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order. Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
- as_myself=$0
-fi
-if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there. '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-
-# as_fn_error STATUS ERROR [LINENO LOG_FD]
-# ----------------------------------------
-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
-# script with STATUS, using 1 if that was 0.
-as_fn_error ()
-{
- as_status=$1; test $as_status -eq 0 && as_status=1
- if test "$4"; then
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
- fi
- $as_echo "$as_me: error: $2" >&2
- as_fn_exit $as_status
-} # as_fn_error
-
-
-# as_fn_set_status STATUS
-# -----------------------
-# Set $? to STATUS, without forking.
-as_fn_set_status ()
-{
- return $1
-} # as_fn_set_status
-
-# as_fn_exit STATUS
-# -----------------
-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
-as_fn_exit ()
-{
- set +e
- as_fn_set_status $1
- exit $1
-} # as_fn_exit
-
-# as_fn_unset VAR
-# ---------------
-# Portably unset VAR.
-as_fn_unset ()
-{
- { eval $1=; unset $1;}
-}
-as_unset=as_fn_unset
-# as_fn_append VAR VALUE
-# ----------------------
-# Append the text in VALUE to the end of the definition contained in VAR. Take
-# advantage of any shell optimizations that allow amortized linear growth over
-# repeated appends, instead of the typical quadratic growth present in naive
-# implementations.
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
-else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
-fi # as_fn_append
-
-# as_fn_arith ARG...
-# ------------------
-# Perform arithmetic evaluation on the ARGs, and store the result in the
-# global $as_val. Take advantage of shells that can avoid forks. The arguments
-# must be portable across $(()) and expr.
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
-else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
-fi # as_fn_arith
-
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
-else
- as_basename=false
-fi
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
-else
- as_dirname=false
-fi
-
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
-
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in #(((((
--n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
-*)
- ECHO_N='-n';;
-esac
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
-else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -pR'
- fi
-else
- as_ln_s='cp -pR'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-
-# as_fn_mkdir_p
-# -------------
-# Create "$as_dir" as a directory, including parents if necessary.
-as_fn_mkdir_p ()
-{
-
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
-
-
-} # as_fn_mkdir_p
-if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
-else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
-fi
-
-
-# as_fn_executable_p FILE
-# -----------------------
-# Test if FILE is an executable regular file.
-as_fn_executable_p ()
-{
- test -f "$1" && test -x "$1"
-} # as_fn_executable_p
-as_test_x='test -x'
-as_executable_p=as_fn_executable_p
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-exec 6>&1
-## ----------------------------------- ##
-## Main body of $CONFIG_STATUS script. ##
-## ----------------------------------- ##
-# Save the log message, to keep $0 and so on meaningful, and to
-# report actual input values of CONFIG_FILES etc. instead of their
-# values after options handling.
-ac_log="
-This file was extended by elfutils $as_me 0.161, which was
-generated by GNU Autoconf 2.69. Invocation command line was
-
- CONFIG_FILES = $CONFIG_FILES
- CONFIG_HEADERS = $CONFIG_HEADERS
- CONFIG_LINKS = $CONFIG_LINKS
- CONFIG_COMMANDS = $CONFIG_COMMANDS
- $ $0 $@
-
-on `(hostname || uname -n) 2>/dev/null | sed 1q`
-"
-
-# Files that config.status was made for.
-config_files=" config/Makefile Makefile m4/Makefile elfutils.spec:config/elfutils.spec.in lib/Makefile libelf/Makefile libebl/Makefile libdwelf/Makefile libdw/Makefile libdwfl/Makefile libcpu/Makefile libasm/Makefile backends/Makefile src/Makefile po/Makefile.in tests/Makefile version.h:config/version.h.in"
-config_headers=" config.h"
-config_commands=" depfiles po-directories"
-
-ac_cs_usage="\
-\`$as_me' instantiates files and other configuration actions
-from templates according to the current configuration. Unless the files
-and actions are specified as TAGs, all are instantiated by default.
-
-Usage: $0 [OPTION]... [TAG]...
-
- -h, --help print this help, then exit
- -V, --version print version number and configuration settings, then exit
- --config print configuration, then exit
- -q, --quiet, --silent
- do not print progress messages
- -d, --debug don't remove temporary files
- --recheck update $as_me by reconfiguring in the same conditions
- --file=FILE[:TEMPLATE]
- instantiate the configuration file FILE
- --header=FILE[:TEMPLATE]
- instantiate the configuration header FILE
-
-Configuration files:
-$config_files
-
-Configuration headers:
-$config_headers
-
-Configuration commands:
-$config_commands
-
-Report bugs to <https://bugzilla.redhat.com/>."
-
-ac_cs_config=""
-ac_cs_version="\
-elfutils config.status 0.161
-configured by ./configure, generated by GNU Autoconf 2.69,
- with options \"$ac_cs_config\"
-
-Copyright (C) 2012 Free Software Foundation, Inc.
-This config.status script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it."
-
-ac_pwd='/huge-ssd/aosp-arm64/external/elfutils/src'
-srcdir='.'
-INSTALL='/usr/bin/install -c'
-MKDIR_P='/bin/mkdir -p'
-AWK='gawk'
-test -n "$AWK" || AWK=awk
-# The default lists apply if the user does not specify any file.
-ac_need_defaults=:
-while test $# != 0
-do
- case $1 in
- --*=?*)
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
- ac_shift=:
- ;;
- --*=)
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
- ac_optarg=
- ac_shift=:
- ;;
- *)
- ac_option=$1
- ac_optarg=$2
- ac_shift=shift
- ;;
- esac
-
- case $ac_option in
- # Handling of the options.
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- ac_cs_recheck=: ;;
- --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
- $as_echo "$ac_cs_version"; exit ;;
- --config | --confi | --conf | --con | --co | --c )
- $as_echo "$ac_cs_config"; exit ;;
- --debug | --debu | --deb | --de | --d | -d )
- debug=: ;;
- --file | --fil | --fi | --f )
- $ac_shift
- case $ac_optarg in
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
- '') as_fn_error $? "missing file argument" ;;
- esac
- as_fn_append CONFIG_FILES " '$ac_optarg'"
- ac_need_defaults=false;;
- --header | --heade | --head | --hea )
- $ac_shift
- case $ac_optarg in
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- as_fn_append CONFIG_HEADERS " '$ac_optarg'"
- ac_need_defaults=false;;
- --he | --h)
- # Conflict between --help and --header
- as_fn_error $? "ambiguous option: \`$1'
-Try \`$0 --help' for more information.";;
- --help | --hel | -h )
- $as_echo "$ac_cs_usage"; exit ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil | --si | --s)
- ac_cs_silent=: ;;
-
- # This is an error.
- -*) as_fn_error $? "unrecognized option: \`$1'
-Try \`$0 --help' for more information." ;;
-
- *) as_fn_append ac_config_targets " $1"
- ac_need_defaults=false ;;
-
- esac
- shift
-done
-
-ac_configure_extra_args=
-
-if $ac_cs_silent; then
- exec 6>/dev/null
- ac_configure_extra_args="$ac_configure_extra_args --silent"
-fi
-
-if $ac_cs_recheck; then
- set X /bin/sh './configure' $ac_configure_extra_args --no-create --no-recursion
- shift
- $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
- CONFIG_SHELL='/bin/sh'
- export CONFIG_SHELL
- exec "$@"
-fi
-
-exec 5>>config.log
-{
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
- $as_echo "$ac_log"
-} >&5
-
-#
-# INIT-COMMANDS
-#
-AMDEP_TRUE="" ac_aux_dir="config"
-# Capture the value of obsolete ALL_LINGUAS because we need it to compute
- # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
- # from automake < 1.5.
- eval 'OBSOLETE_ALL_LINGUAS''=""'
- # Capture the value of LINGUAS because we need it to compute CATALOGS.
- LINGUAS="%UNSET%"
-
-
-
-# Handling of arguments.
-for ac_config_target in $ac_config_targets
-do
- case $ac_config_target in
- "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
- "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
- "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
- "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
- "elfutils.spec") CONFIG_FILES="$CONFIG_FILES elfutils.spec:config/elfutils.spec.in" ;;
- "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
- "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
- "libelf/Makefile") CONFIG_FILES="$CONFIG_FILES libelf/Makefile" ;;
- "libebl/Makefile") CONFIG_FILES="$CONFIG_FILES libebl/Makefile" ;;
- "libdwelf/Makefile") CONFIG_FILES="$CONFIG_FILES libdwelf/Makefile" ;;
- "libdw/Makefile") CONFIG_FILES="$CONFIG_FILES libdw/Makefile" ;;
- "libdwfl/Makefile") CONFIG_FILES="$CONFIG_FILES libdwfl/Makefile" ;;
- "libcpu/Makefile") CONFIG_FILES="$CONFIG_FILES libcpu/Makefile" ;;
- "libasm/Makefile") CONFIG_FILES="$CONFIG_FILES libasm/Makefile" ;;
- "backends/Makefile") CONFIG_FILES="$CONFIG_FILES backends/Makefile" ;;
- "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
- "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
- "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
- "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
- "version.h") CONFIG_FILES="$CONFIG_FILES version.h:config/version.h.in" ;;
-
- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
- esac
-done
-
-
-# If the user did not use the arguments to specify the items to instantiate,
-# then the envvar interface is used. Set only those that are not.
-# We use the long form for the default assignment because of an extremely
-# bizarre bug on SunOS 4.1.3.
-if $ac_need_defaults; then
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
- test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
- test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
-fi
-
-# Have a temporary directory for convenience. Make it in the build tree
-# simply because there is no reason against having it here, and in addition,
-# creating and moving files from /tmp can sometimes cause problems.
-# Hook for its removal unless debugging.
-# Note that there is a small window in which the directory will not be cleaned:
-# after its creation but before its name has been assigned to `$tmp'.
-$debug ||
-{
- tmp= ac_tmp=
- trap 'exit_status=$?
- : "${ac_tmp:=$tmp}"
- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
-' 0
- trap 'as_fn_exit 1' 1 2 13 15
-}
-# Create a (secure) tmp directory for tmp files.
-
-{
- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
- test -d "$tmp"
-} ||
-{
- tmp=./conf$$-$RANDOM
- (umask 077 && mkdir "$tmp")
-} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
-ac_tmp=$tmp
-
-# Set up the scripts for CONFIG_FILES section.
-# No need to generate them if there are no CONFIG_FILES.
-# This happens for instance with `./config.status config.h'.
-if test -n "$CONFIG_FILES"; then
-
-
-ac_cr=`echo X | tr X '\015'`
-# On cygwin, bash can eat \r inside `` if the user requested igncr.
-# But we know of no other shell where ac_cr would be empty at this
-# point, so we can use a bashism as a fallback.
-if test "x$ac_cr" = x; then
- eval ac_cr=\$\'\\r\'
-fi
-ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
-if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
- ac_cs_awk_cr='\\r'
-else
- ac_cs_awk_cr=$ac_cr
-fi
-
-echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
-cat >>"$ac_tmp/subs1.awk" <<\_ACAWK &&
-S["am__EXEEXT_FALSE"]=""
-S["am__EXEEXT_TRUE"]="#"
-S["LTLIBOBJS"]=""
-S["LIBOBJS"]=""
-S["CC_BIARCH"]="gcc -m32"
-S["BIARCH_FALSE"]="#"
-S["BIARCH_TRUE"]=""
-S["EGREP"]="/bin/grep -E"
-S["GREP"]="/bin/grep"
-S["CPP"]="gcc -E"
-S["eu_version"]="161"
-S["XGETTEXT_EXTRA_OPTIONS"]=""
-S["MSGMERGE"]="/usr/bin/msgmerge"
-S["XGETTEXT_015"]="/usr/bin/xgettext"
-S["XGETTEXT"]="/usr/bin/xgettext"
-S["GMSGFMT_015"]="/usr/bin/msgfmt"
-S["MSGFMT_015"]="/usr/bin/msgfmt"
-S["GMSGFMT"]="/usr/bin/msgfmt"
-S["MSGFMT"]="/usr/bin/msgfmt"
-S["GETTEXT_MACRO_VERSION"]="0.18"
-S["USE_NLS"]="yes"
-S["STANDALONE_FALSE"]=""
-S["STANDALONE_TRUE"]="#"
-S["HAVE_LIBASM_FALSE"]="#"
-S["HAVE_LIBASM_TRUE"]=""
-S["FATAL_TEXTREL_FALSE"]="#"
-S["FATAL_TEXTREL_TRUE"]=""
-S["DEMANGLE_FALSE"]="#"
-S["DEMANGLE_TRUE"]=""
-S["zip_LIBS"]="-lz "
-S["LZMA_FALSE"]=""
-S["LZMA_TRUE"]="#"
-S["BZLIB_FALSE"]=""
-S["BZLIB_TRUE"]="#"
-S["ZLIB_FALSE"]="#"
-S["ZLIB_TRUE"]=""
-S["LIBEBL_SUBDIR"]="elfutils"
-S["TESTS_RPATH_FALSE"]=""
-S["TESTS_RPATH_TRUE"]="#"
-S["BUILD_STATIC_FALSE"]=""
-S["BUILD_STATIC_TRUE"]="#"
-S["USE_VALGRIND_FALSE"]=""
-S["USE_VALGRIND_TRUE"]="#"
-S["HAVE_VALGRIND"]=""
-S["GCOV_FALSE"]=""
-S["GCOV_TRUE"]="#"
-S["GPROF_FALSE"]=""
-S["GPROF_TRUE"]="#"
-S["DEBUGPRED"]="0"
-S["NEVER_FALSE"]=""
-S["NEVER_TRUE"]="#"
-S["base_cpu"]="none"
-S["NATIVE_LD_FALSE"]=""
-S["NATIVE_LD_TRUE"]="#"
-S["NM"]="nm"
-S["READELF"]="readelf"
-S["ac_ct_AR"]="ar"
-S["AR"]="ar"
-S["LEXLIB"]="-lfl"
-S["LEX_OUTPUT_ROOT"]="lex.yy"
-S["LEX"]="flex"
-S["YFLAGS"]=""
-S["YACC"]="bison -y"
-S["RANLIB"]="ranlib"
-S["am__fastdepCC_FALSE"]="#"
-S["am__fastdepCC_TRUE"]=""
-S["CCDEPMODE"]="depmode=gcc3"
-S["am__nodep"]="_no"
-S["AMDEPBACKSLASH"]="\\"
-S["AMDEP_FALSE"]="#"
-S["AMDEP_TRUE"]=""
-S["am__quote"]=""
-S["am__include"]="include"
-S["DEPDIR"]=".deps"
-S["OBJEXT"]="o"
-S["EXEEXT"]=""
-S["ac_ct_CC"]="gcc"
-S["CPPFLAGS"]=""
-S["LDFLAGS"]=""
-S["CFLAGS"]="-g -O2"
-S["CC"]="gcc"
-S["USE_LOCKS_FALSE"]=""
-S["USE_LOCKS_TRUE"]="#"
-S["host_os"]="linux-gnu"
-S["host_vendor"]="unknown"
-S["host_cpu"]="x86_64"
-S["host"]="x86_64-unknown-linux-gnu"
-S["build_os"]="linux-gnu"
-S["build_vendor"]="unknown"
-S["build_cpu"]="x86_64"
-S["build"]="x86_64-unknown-linux-gnu"
-S["MODVERSION"]="Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800"
-S["MAINT"]="#"
-S["MAINTAINER_MODE_FALSE"]=""
-S["MAINTAINER_MODE_TRUE"]="#"
-S["AM_BACKSLASH"]="\\"
-S["AM_DEFAULT_VERBOSITY"]="1"
-S["AM_DEFAULT_V"]="$(AM_DEFAULT_VERBOSITY)"
-S["AM_V"]="$(V)"
-S["am__untar"]="$${TAR-tar} xf -"
-S["am__tar"]="$${TAR-tar} chof - \"$$tardir\""
-S["AMTAR"]="$${TAR-tar}"
-S["am__leading_dot"]="."
-S["SET_MAKE"]=""
-S["AWK"]="gawk"
-S["mkdir_p"]="$(MKDIR_P)"
-S["MKDIR_P"]="/bin/mkdir -p"
-S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s"
-S["STRIP"]=""
-S["install_sh"]="${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh"
-S["MAKEINFO"]="${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo"
-S["AUTOHEADER"]="${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader"
-S["AUTOMAKE"]="${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14"
-S["AUTOCONF"]="${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf"
-S["ACLOCAL"]="${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14"
-S["VERSION"]="0.161"
-S["PACKAGE"]="elfutils"
-S["CYGPATH_W"]="echo"
-S["am__isrc"]=""
-S["INSTALL_DATA"]="${INSTALL} -m 644"
-S["INSTALL_SCRIPT"]="${INSTALL}"
-S["INSTALL_PROGRAM"]="${INSTALL}"
-S["target_alias"]=""
-S["host_alias"]=""
-S["build_alias"]=""
-S["LIBS"]=""
-S["ECHO_T"]=""
-S["ECHO_N"]="-n"
-S["ECHO_C"]=""
-S["DEFS"]="-DHAVE_CONFIG_H"
-S["mandir"]="${datarootdir}/man"
-S["localedir"]="${datarootdir}/locale"
-S["libdir"]="${exec_prefix}/lib"
-S["psdir"]="${docdir}"
-S["pdfdir"]="${docdir}"
-S["dvidir"]="${docdir}"
-S["htmldir"]="${docdir}"
-S["infodir"]="${datarootdir}/info"
-S["docdir"]="${datarootdir}/doc/${PACKAGE_TARNAME}"
-S["oldincludedir"]="/usr/include"
-S["includedir"]="${prefix}/include"
-S["localstatedir"]="${prefix}/var"
-S["sharedstatedir"]="${prefix}/com"
-S["sysconfdir"]="${prefix}/etc"
-S["datadir"]="${datarootdir}"
-S["datarootdir"]="${prefix}/share"
-S["libexecdir"]="${exec_prefix}/libexec"
-S["sbindir"]="${exec_prefix}/sbin"
-S["bindir"]="${exec_prefix}/bin"
-S["program_transform_name"]="s,x,x,"
-S["prefix"]="/usr/local"
-S["exec_prefix"]="${prefix}"
-S["PACKAGE_URL"]=""
-S["PACKAGE_BUGREPORT"]="https://bugzilla.redhat.com/"
-S["PACKAGE_STRING"]="elfutils 0.161"
-S["PACKAGE_VERSION"]="0.161"
-S["PACKAGE_TARNAME"]="elfutils"
-S["PACKAGE_NAME"]="elfutils"
-S["PATH_SEPARATOR"]=":"
-S["SHELL"]="/bin/sh"
-_ACAWK
-cat >>"$ac_tmp/subs1.awk" <<_ACAWK &&
- for (key in S) S_is_set[key] = 1
- FS = ""
-
-}
-{
- line = $ 0
- nfields = split(line, field, "@")
- substed = 0
- len = length(field[1])
- for (i = 2; i < nfields; i++) {
- key = field[i]
- keylen = length(key)
- if (S_is_set[key]) {
- value = S[key]
- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
- len += length(value) + length(field[++i])
- substed = 1
- } else
- len += 1 + keylen
- }
-
- print line
-}
-
-_ACAWK
-if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
-else
- cat
-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
-fi # test -n "$CONFIG_FILES"
-
-# Set up the scripts for CONFIG_HEADERS section.
-# No need to generate them if there are no CONFIG_HEADERS.
-# This happens for instance with `./config.status Makefile'.
-if test -n "$CONFIG_HEADERS"; then
-cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
-BEGIN {
-D["PACKAGE_NAME"]=" \"elfutils\""
-D["PACKAGE_TARNAME"]=" \"elfutils\""
-D["PACKAGE_VERSION"]=" \"0.161\""
-D["PACKAGE_STRING"]=" \"elfutils 0.161\""
-D["PACKAGE_BUGREPORT"]=" \"https://bugzilla.redhat.com/\""
-D["PACKAGE_URL"]=" \"\""
-D["PACKAGE"]=" \"elfutils\""
-D["VERSION"]=" \"0.161\""
-D["MODVERSION"]=" \"Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800\""
-D["DEFAULT_AR_DETERMINISTIC"]=" false"
-D["YYTEXT_POINTER"]=" 1"
-D["LIBEBL_SUBDIR"]=" \"elfutils\""
-D["USE_ZLIB"]=" 1"
-D["USE_DEMANGLE"]=" 1"
-D["STDC_HEADERS"]=" 1"
-D["HAVE_SYS_TYPES_H"]=" 1"
-D["HAVE_SYS_STAT_H"]=" 1"
-D["HAVE_STDLIB_H"]=" 1"
-D["HAVE_STRING_H"]=" 1"
-D["HAVE_MEMORY_H"]=" 1"
-D["HAVE_STRINGS_H"]=" 1"
-D["HAVE_INTTYPES_H"]=" 1"
-D["HAVE_STDINT_H"]=" 1"
-D["HAVE_UNISTD_H"]=" 1"
-D["SIZEOF_LONG"]=" 8"
-D["HAVE_SYS_USER_REGS"]=" 1"
- for (key in D) D_is_set[key] = 1
- FS = ""
-}
-/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
- line = $ 0
- split(line, arg, " ")
- if (arg[1] == "#") {
- defundef = arg[2]
- mac1 = arg[3]
- } else {
- defundef = substr(arg[1], 2)
- mac1 = arg[2]
- }
- split(mac1, mac2, "(") #)
- macro = mac2[1]
- prefix = substr(line, 1, index(line, defundef) - 1)
- if (D_is_set[macro]) {
- # Preserve the white space surrounding the "#".
- print prefix "define", macro P[macro] D[macro]
- next
- } else {
- # Replace #undef with comments. This is necessary, for example,
- # in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- if (defundef == "undef") {
- print "/*", prefix defundef, macro, "*/"
- next
- }
- }
-}
-{ print }
-_ACAWK
- as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
-fi # test -n "$CONFIG_HEADERS"
-
-
-eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
-shift
-for ac_tag
-do
- case $ac_tag in
- :[FHLC]) ac_mode=$ac_tag; continue;;
- esac
- case $ac_mode$ac_tag in
- :[FHL]*:*);;
- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
- :[FH]-) ac_tag=-:-;;
- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
- esac
- ac_save_IFS=$IFS
- IFS=:
- set x $ac_tag
- IFS=$ac_save_IFS
- shift
- ac_file=$1
- shift
-
- case $ac_mode in
- :L) ac_source=$1;;
- :[FH])
- ac_file_inputs=
- for ac_f
- do
- case $ac_f in
- -) ac_f="$ac_tmp/stdin";;
- *) # Look for the file first in the build tree, then in the source tree
- # (if the path is not absolute). The absolute path cannot be DOS-style,
- # because $ac_f cannot contain `:'.
- test -f "$ac_f" ||
- case $ac_f in
- [\\/$]*) false;;
- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
- esac ||
- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
- esac
- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
- as_fn_append ac_file_inputs " '$ac_f'"
- done
-
- # Let's still pretend it is `configure' which instantiates (i.e., don't
- # use $as_me), people would be surprised to read:
- # /* config.h. Generated by config.status. */
- configure_input='Generated from '`
- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
- `' by configure.'
- if test x"$ac_file" != x-; then
- configure_input="$ac_file. $configure_input"
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
-$as_echo "$as_me: creating $ac_file" >&6;}
- fi
- # Neutralize special characters interpreted by sed in replacement strings.
- case $configure_input in #(
- *\&* | *\|* | *\\* )
- ac_sed_conf_input=`$as_echo "$configure_input" |
- sed 's/[\\\\&|]/\\\\&/g'`;; #(
- *) ac_sed_conf_input=$configure_input;;
- esac
-
- case $ac_tag in
- *:-:* | *:-) cat >"$ac_tmp/stdin" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
- esac
- ;;
- esac
-
- ac_dir=`$as_dirname -- "$ac_file" ||
-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_file" : 'X\(//\)[^/]' \| \
- X"$ac_file" : 'X\(//\)$' \| \
- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$ac_file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- as_dir="$ac_dir"; as_fn_mkdir_p
- ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\\/]* | ?:[\\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
-
- case $ac_mode in
- :F)
- #
- # CONFIG_FILE
- #
-
- case $INSTALL in
- [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
- *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
- esac
- ac_MKDIR_P=$MKDIR_P
- case $MKDIR_P in
- [\\/$]* | ?:[\\/]* ) ;;
- */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
- esac
-# If the template does not know about datarootdir, expand it.
-# FIXME: This hack should be removed a few years after 2.60.
-ac_datarootdir_hack=; ac_datarootdir_seen=
-ac_sed_dataroot='
-/datarootdir/ {
- p
- q
-}
-/@datadir@/p
-/@docdir@/p
-/@infodir@/p
-/@localedir@/p
-/@mandir@/p'
-case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
-*datarootdir*) ac_datarootdir_seen=yes;;
-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
-$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
- ac_datarootdir_hack='
- s&@datadir@&${datarootdir}&g
- s&@docdir@&${datarootdir}/doc/${PACKAGE_TARNAME}&g
- s&@infodir@&${datarootdir}/info&g
- s&@localedir@&${datarootdir}/locale&g
- s&@mandir@&${datarootdir}/man&g
- s&\${datarootdir}&${prefix}/share&g' ;;
-esac
-ac_sed_extra="/^[ ]*VPATH[ ]*=[ ]*/{
-h
-s///
-s/^/:/
-s/[ ]*$/:/
-s/:\$(srcdir):/:/g
-s/:\${srcdir}:/:/g
-s/:@srcdir@:/:/g
-s/^:*//
-s/:*$//
-x
-s/\(=[ ]*\).*/\1/
-G
-s/\n//
-s/^[^=]*=[ ]*$//
-}
-
-:t
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s|@configure_input@|$ac_sed_conf_input|;t t
-s&@top_builddir@&$ac_top_builddir_sub&;t t
-s&@top_build_prefix@&$ac_top_build_prefix&;t t
-s&@srcdir@&$ac_srcdir&;t t
-s&@abs_srcdir@&$ac_abs_srcdir&;t t
-s&@top_srcdir@&$ac_top_srcdir&;t t
-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
-s&@builddir@&$ac_builddir&;t t
-s&@abs_builddir@&$ac_abs_builddir&;t t
-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
-s&@INSTALL@&$ac_INSTALL&;t t
-s&@MKDIR_P@&$ac_MKDIR_P&;t t
-$ac_datarootdir_hack
-"
-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
-
-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
- "$ac_tmp/out"`; test -z "$ac_out"; } &&
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined. Please make sure it is defined" >&5
-$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined. Please make sure it is defined" >&2;}
-
- rm -f "$ac_tmp/stdin"
- case $ac_file in
- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
- esac \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- ;;
- :H)
- #
- # CONFIG_HEADER
- #
- if test x"$ac_file" != x-; then
- {
- $as_echo "/* $configure_input */" \
- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
- } >"$ac_tmp/config.h" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
-$as_echo "$as_me: $ac_file is unchanged" >&6;}
- else
- rm -f "$ac_file"
- mv "$ac_tmp/config.h" "$ac_file" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- fi
- else
- $as_echo "/* $configure_input */" \
- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
- || as_fn_error $? "could not create -" "$LINENO" 5
- fi
-# Compute "$ac_file"'s index in $config_headers.
-_am_arg="$ac_file"
-_am_stamp_count=1
-for _am_header in $config_headers :; do
- case $_am_header in
- $_am_arg | $_am_arg:* )
- break ;;
- * )
- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
- esac
-done
-echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
-$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$_am_arg" : 'X\(//\)[^/]' \| \
- X"$_am_arg" : 'X\(//\)$' \| \
- X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$_am_arg" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`/stamp-h$_am_stamp_count
- ;;
-
- :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
-$as_echo "$as_me: executing $ac_file commands" >&6;}
- ;;
- esac
-
-
- case $ac_file$ac_mode in
- "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
- # Older Autoconf quotes --file arguments for eval, but not when files
- # are listed without --file. Let's play safe and only enable the eval
- # if we detect the quoting.
- case $CONFIG_FILES in
- *\'*) eval set x "$CONFIG_FILES" ;;
- *) set x $CONFIG_FILES ;;
- esac
- shift
- for mf
- do
- # Strip MF so we end up with the name of the file.
- mf=`echo "$mf" | sed -e 's/:.*$//'`
- # Check whether this is an Automake generated Makefile or not.
- # We used to match only the files named 'Makefile.in', but
- # some people rename them; so instead we look at the file content.
- # Grep'ing the first line is not enough: some people post-process
- # each Makefile.in and add a new line on top of each file to say so.
- # Grep'ing the whole file is not good either: AIX grep has a line
- # limit of 2048, but all sed's we know have understand at least 4000.
- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
- dirpart=`$as_dirname -- "$mf" ||
-$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$mf" : 'X\(//\)[^/]' \| \
- X"$mf" : 'X\(//\)$' \| \
- X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$mf" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- else
- continue
- fi
- # Extract the definition of DEPDIR, am__include, and am__quote
- # from the Makefile without running 'make'.
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
- test -z "$DEPDIR" && continue
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
- test -z "$am__include" && continue
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
- # Find all dependency output files, they are included files with
- # $(DEPDIR) in their names. We invoke sed twice because it is the
- # simplest approach to changing $(DEPDIR) to its actual value in the
- # expansion.
- for file in `sed -n "
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
- # Make sure the directory exists.
- test -f "$dirpart/$file" && continue
- fdir=`$as_dirname -- "$file" ||
-$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$file" : 'X\(//\)[^/]' \| \
- X"$file" : 'X\(//\)$' \| \
- X"$file" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- as_dir=$dirpart/$fdir; as_fn_mkdir_p
- # echo "creating $dirpart/$file"
- echo '# dummy' > "$dirpart/$file"
- done
- done
-}
- ;;
- "po-directories":C)
- for ac_file in $CONFIG_FILES; do
- # Support "outfile[:infile[:infile...]]"
- case "$ac_file" in
- *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- esac
- # PO directories have a Makefile.in generated from Makefile.in.in.
- case "$ac_file" in */Makefile.in)
- # Adjust a relative srcdir.
- ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
- ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
- ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
- # In autoconf-2.13 it is called $ac_given_srcdir.
- # In autoconf-2.50 it is called $srcdir.
- test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
- case "$ac_given_srcdir" in
- .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
- /*) top_srcdir="$ac_given_srcdir" ;;
- *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- # Treat a directory as a PO directory if and only if it has a
- # POTFILES.in file. This allows packages to have multiple PO
- # directories under different names or in different locations.
- if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
- rm -f "$ac_dir/POTFILES"
- test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
- gt_tab=`printf '\t'`
- cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
- POMAKEFILEDEPS="POTFILES.in"
- # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
- # on $ac_dir but don't depend on user-specified configuration
- # parameters.
- if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
- # The LINGUAS file contains the set of available languages.
- if test -n "$OBSOLETE_ALL_LINGUAS"; then
- test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
- fi
- ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
- # Hide the ALL_LINGUAS assignment from automake < 1.5.
- eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
- POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
- else
- # The set of available languages was given in configure.in.
- # Hide the ALL_LINGUAS assignment from automake < 1.5.
- eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
- fi
- # Compute POFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
- # Compute UPDATEPOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
- # Compute DUMMYPOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
- # Compute GMOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
- case "$ac_given_srcdir" in
- .) srcdirpre= ;;
- *) srcdirpre='$(srcdir)/' ;;
- esac
- POFILES=
- UPDATEPOFILES=
- DUMMYPOFILES=
- GMOFILES=
- for lang in $ALL_LINGUAS; do
- POFILES="$POFILES $srcdirpre$lang.po"
- UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
- DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
- GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
- done
- # CATALOGS depends on both $ac_dir and the user's LINGUAS
- # environment variable.
- INST_LINGUAS=
- if test -n "$ALL_LINGUAS"; then
- for presentlang in $ALL_LINGUAS; do
- useit=no
- if test "%UNSET%" != "$LINGUAS"; then
- desiredlanguages="$LINGUAS"
- else
- desiredlanguages="$ALL_LINGUAS"
- fi
- for desiredlang in $desiredlanguages; do
- # Use the presentlang catalog if desiredlang is
- # a. equal to presentlang, or
- # b. a variant of presentlang (because in this case,
- # presentlang can be used as a fallback for messages
- # which are not translated in the desiredlang catalog).
- case "$desiredlang" in
- "$presentlang"*) useit=yes;;
- esac
- done
- if test $useit = yes; then
- INST_LINGUAS="$INST_LINGUAS $presentlang"
- fi
- done
- fi
- CATALOGS=
- if test -n "$INST_LINGUAS"; then
- for lang in $INST_LINGUAS; do
- CATALOGS="$CATALOGS $lang.gmo"
- done
- fi
- test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
- sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
- for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
- if test -f "$f"; then
- case "$f" in
- *.orig | *.bak | *~) ;;
- *) cat "$f" >> "$ac_dir/Makefile" ;;
- esac
- fi
- done
- fi
- ;;
- esac
- done ;;
-
- esac
-done # for ac_tag
-
-
-as_fn_exit 0
diff --git a/src/config/ChangeLog b/src/config/ChangeLog
deleted file mode 100644
index 1b4e8960..00000000
--- a/src/config/ChangeLog
+++ /dev/null
@@ -1,195 +0,0 @@
-2014-12-18 Mark Wielaard <mjw@redhat.com>
-
- * elfutils.spec.in: Update for 0.161.
-
-2014-11-27 Mark Wielaard <mjw@redhat.com>
-
- * eu.am: Define textrel_msg, textrel_found and textrel_check based
- on FATAL_TEXTREL.
-
-2014-08-25 Mark Wielaard <mjw@redhat.com>
-
- * elfutils.spec.in: Update for 0.160.
-
-2014-05-17 Mark Wielaard <mjw@redhat.com>
-
- * elfutils.spec.in: Update for 0.159.
- (%files devel): Add libdwelf.h.
-
-2014-04-13 Mark Wielaard <mjw@redhat.com>
-
- * eu.am (AM_CFLAGS): Don't add -fmudflap.
- (COMPILE.os): Don't remove no_mudflap.os.
-
-2014-01-22 Mark Wielaard <mjw@redhat.com>
-
- * eu.am (AM_CFLAGS): Unconditionally add -Wformat=2.
-
-2014-01-03 Mark Wielaard <mjw@redhat.com>
-
- * elfutils.spec.in: Update for 0.158.
-
-2013-11-01 Michael Forney <mforney@mforney.org>
-
- * eu.am: Use READELF.
-
-2013-09-30 Mark Wielaard <mjw@redhat.com>
-
- * elfutils.spec.in: Update for readelf NT_SIGINFO and NT_FILE
- core notes.
-
-2013-09-27 Mark Wielaard <mjw@redhat.com>
-
- * config/elfutils.spec.in: Update for 0.157.
-
-2013-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * config/elfutils.spec.in: Update for 0.156.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * eu.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2012-08-27 Mark Wielaard <mjw@redhat.com>
-
- * config/elfutils.spec.in: Update for 0.155.
-
-2012-07-19 Mark Wielaard <mjw@redhat.com>
-
- * known-dwarf.awk: "Generated by" header had wrong file names,
- mention config/known-dwarf.awk and libdw/dwarf.h contents.
-
-2012-06-22 Mark Wielaard <mjw@redhat.com>
-
- * config/elfutils.spec.in: Update for 0.154.
-
-2012-02-23 Mark Wielaard <mjw@redhat.com>
-
- * config/elfutils.spec.in: Update for 0.153.
-
-2011-10-31 Mark Wielaard <mjw@redhat.com>
-
- * known-dwarf.awk: Use gawk.
-
-2010-07-02 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Add more BuildRequires.
- Ship the .mo files with the libelf subpackage.
-
-2010-04-15 Roland McGrath <roland@redhat.com>
-
- * eu.am (DEFS): Add -DLOCALEDIR=... here.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * eu.am: New file.
-
-2009-04-19 Roland McGrath <roland@redhat.com>
-
- * version.h.in: Revert last change.
-
-2009-04-17 Roland McGrath <roland@redhat.com>
-
- * version.h.in (_ELFUTILS_PREREQ): Multiple major by 1000000 and minor
- by 1000; now _ELFUTILS_VERSION is 789000 for version 0.789.
-
-2009-01-22 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Distribute <elfutils/version.h> in
- elfutils-libelf-devel.
-
-2009-01-22 Roland McGrath <roland@redhat.com>
-
- * known-dwarf.awk: Handle DW_FOO_BAR_* sets better.
-
-2009-01-11 Roland McGrath <roland@redhat.com>
-
- * known-dwarf.awk: New file.
- * Makefile.am (EXTRA_DIST): Add it.
-
-2008-12-24 Roland McGrath <roland@redhat.com>
-
- * Makefile.am ($(srcdir)/elfutils.spec.in): Rewrite awk magic.
- Put the target inside [if MAINTAINER_MODE].
-
-2008-12-16 Roland McGrath <roland@redhat.com>
-
- * version.h.in: New file.
-
-2008-01-12 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Add m4 to build requirements.
-
-2008-01-02 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Changes for disasm branch merge.
-
-2007-08-08 Roland McGrath <roland@redhat.com>
-
- * elfutils.spec.in (License): Canonicalize.
-
-2007-04-23 Roland McGrath <roland@redhat.com>
-
- * elfutils.spec.in: Distribute eu-unstrip.
-
-2005-08-13 Roland McGrath <roland@redhat.com>
-
- * Makefile.am ($(srcdir)/elfutils.spec.in): Add missing $.
-
-2005-07-28 Roland McGrath <roland@redhat.com>
-
- * elfutils.spec.in: Remove libdwfl.so from package.
-
-2005-07-21 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Distribute eu-elfcmp.
-
-2005-04-01 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Distribute eu-addr2line.
-
-2005-03-17 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Distribute libdw.{a,so,h}.
-
-2005-02-22 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Ignore result of cvs run.
-
- * elfutils.spec.in: Simplify build process by not using a subdir.
- This means we can use %configure.
-
-2005-02-18 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Automatically added changelog from NEWS file on dist.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Make sure RPM_OPT_FLAGS is used. During
- %build, really do build the binaries.
- Remove --enable-shared configure parameters.
-
-2005-02-07 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in (BuildRequires): Up gcc requirement to 3.4.
-
-2004-11-23 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Some more changes for the RPM with the fake
- binaries.
-
-2004-01-29 Ulrich Drepper <drepper@redhat.com>
-
- * elfutils.spec.in: Update BuildRequires.
-
-2004-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: New file.
- * config.guess: Moved to here from toplevel.
- * config.rpath: Likewise.
- * config.sub: Likewise.
- * depcomp: Likewise.
- * install-sh: Likewise.
- * missing: Likewise.
- * mkinstalldirs: Likewise.
- * elfutils.spec.in: New file.
diff --git a/src/config/Makefile b/src/config/Makefile
deleted file mode 100644
index c1d6f151..00000000
--- a/src/config/Makefile
+++ /dev/null
@@ -1,445 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# config/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-subdir = config
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ChangeLog \
- ar-lib compile config.guess config.sub depcomp install-sh \
- missing ylwrap
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -DHAVE_CONFIG_H
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 0.161
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/config
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/config
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-EXTRA_DIST = elfutils.spec.in known-dwarf.awk
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits config/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits config/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-tags TAGS:
-
-ctags CTAGS:
-
-cscope cscopelist:
-
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic cscopelist-am \
- ctags-am distclean distclean-generic distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
- pdf-am ps ps-am tags-am uninstall uninstall-am
-
-
-#$(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS
-# @tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \
-# date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \
-# getent passwd "$$(whoami)" | \
-# awk 'BEGIN {FS=":"} { printf $$5; exit 0}' >> $$tmpname; \
-# echo -n " <$$(whoami)@gmail.com> " >> $$tmpname; \
-# awk '\
-# $$1 == "Version" && started { exit } \
-# $$1 == "Version" { started=1; line=""; sub(/:/,"",$$2); \
-# print $$2 "-1"; next } \
-# NF > 0 { line = (line != "") ? (line " " $$0) : ("- " $$0) } \
-# NF == 0 && line != "" { print line; line="" } \
-# END { if (line != "") print line; print "" }' $< \
-# | fold -s -w 70 | sed '1!s/^[^-]/ &/' >> $$tmpname; \
-# sed "/^%changelog/r $$tmpname" $@ > $@.new; \
-# rm -f $$tmpname; \
-# mv -f $@.new $@
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/config/Makefile.am b/src/config/Makefile.am
deleted file mode 100644
index 6e61b778..00000000
--- a/src/config/Makefile.am
+++ /dev/null
@@ -1,51 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-
-## Configure input file for elfutils.
-##
-## Copyright (C) 2004, 2005, 2008, 2009, 2011 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-EXTRA_DIST = elfutils.spec.in known-dwarf.awk
-
-if MAINTAINER_MODE
-$(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS
- @tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \
- date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \
- getent passwd "$$(whoami)" | \
- awk 'BEGIN {FS=":"} { printf $$5; exit 0}' >> $$tmpname; \
- echo -n " <$$(whoami)@gmail.com> " >> $$tmpname; \
- awk '\
- $$1 == "Version" && started { exit } \
- $$1 == "Version" { started=1; line=""; sub(/:/,"",$$2); \
- print $$2 "-1"; next } \
- NF > 0 { line = (line != "") ? (line " " $$0) : ("- " $$0) } \
- NF == 0 && line != "" { print line; line="" } \
- END { if (line != "") print line; print "" }' $< \
- | fold -s -w 70 | sed '1!s/^[^-]/ &/' >> $$tmpname; \
- sed "/^%changelog/r $$tmpname" $@ > $@.new; \
- rm -f $$tmpname; \
- mv -f $@.new $@
-endif
diff --git a/src/config/Makefile.in b/src/config/Makefile.in
deleted file mode 100644
index 1384d5fd..00000000
--- a/src/config/Makefile.in
+++ /dev/null
@@ -1,445 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = config
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ChangeLog \
- ar-lib compile config.guess config.sub depcomp install-sh \
- missing ylwrap
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-EXTRA_DIST = elfutils.spec.in known-dwarf.awk
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits config/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits config/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-tags TAGS:
-
-ctags CTAGS:
-
-cscope cscopelist:
-
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic cscopelist-am \
- ctags-am distclean distclean-generic distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
- pdf-am ps ps-am tags-am uninstall uninstall-am
-
-
-@MAINTAINER_MODE_TRUE@$(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS
-@MAINTAINER_MODE_TRUE@ @tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \
-@MAINTAINER_MODE_TRUE@ date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \
-@MAINTAINER_MODE_TRUE@ getent passwd "$$(whoami)" | \
-@MAINTAINER_MODE_TRUE@ awk 'BEGIN {FS=":"} { printf $$5; exit 0}' >> $$tmpname; \
-@MAINTAINER_MODE_TRUE@ echo -n " <$$(whoami)@gmail.com> " >> $$tmpname; \
-@MAINTAINER_MODE_TRUE@ awk '\
-@MAINTAINER_MODE_TRUE@ $$1 == "Version" && started { exit } \
-@MAINTAINER_MODE_TRUE@ $$1 == "Version" { started=1; line=""; sub(/:/,"",$$2); \
-@MAINTAINER_MODE_TRUE@ print $$2 "-1"; next } \
-@MAINTAINER_MODE_TRUE@ NF > 0 { line = (line != "") ? (line " " $$0) : ("- " $$0) } \
-@MAINTAINER_MODE_TRUE@ NF == 0 && line != "" { print line; line="" } \
-@MAINTAINER_MODE_TRUE@ END { if (line != "") print line; print "" }' $< \
-@MAINTAINER_MODE_TRUE@ | fold -s -w 70 | sed '1!s/^[^-]/ &/' >> $$tmpname; \
-@MAINTAINER_MODE_TRUE@ sed "/^%changelog/r $$tmpname" $@ > $@.new; \
-@MAINTAINER_MODE_TRUE@ rm -f $$tmpname; \
-@MAINTAINER_MODE_TRUE@ mv -f $@.new $@
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/config/ar-lib b/src/config/ar-lib
deleted file mode 100755
index fe2301e7..00000000
--- a/src/config/ar-lib
+++ /dev/null
@@ -1,270 +0,0 @@
-#! /bin/sh
-# Wrapper for Microsoft lib.exe
-
-me=ar-lib
-scriptversion=2012-03-01.08; # UTC
-
-# Copyright (C) 2010-2013 Free Software Foundation, Inc.
-# Written by Peter Rosin <peda@lysator.liu.se>.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to <bug-automake@gnu.org> or send patches to
-# <automake-patches@gnu.org>.
-
-
-# func_error message
-func_error ()
-{
- echo "$me: $1" 1>&2
- exit 1
-}
-
-file_conv=
-
-# func_file_conv build_file
-# Convert a $build file to $host form and store it in $file
-# Currently only supports Windows hosts.
-func_file_conv ()
-{
- file=$1
- case $file in
- / | /[!/]*) # absolute file, and not a UNC file
- if test -z "$file_conv"; then
- # lazily determine how to convert abs files
- case `uname -s` in
- MINGW*)
- file_conv=mingw
- ;;
- CYGWIN*)
- file_conv=cygwin
- ;;
- *)
- file_conv=wine
- ;;
- esac
- fi
- case $file_conv in
- mingw)
- file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
- ;;
- cygwin)
- file=`cygpath -m "$file" || echo "$file"`
- ;;
- wine)
- file=`winepath -w "$file" || echo "$file"`
- ;;
- esac
- ;;
- esac
-}
-
-# func_at_file at_file operation archive
-# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE
-# for each of them.
-# When interpreting the content of the @FILE, do NOT use func_file_conv,
-# since the user would need to supply preconverted file names to
-# binutils ar, at least for MinGW.
-func_at_file ()
-{
- operation=$2
- archive=$3
- at_file_contents=`cat "$1"`
- eval set x "$at_file_contents"
- shift
-
- for member
- do
- $AR -NOLOGO $operation:"$member" "$archive" || exit $?
- done
-}
-
-case $1 in
- '')
- func_error "no command. Try '$0 --help' for more information."
- ;;
- -h | --h*)
- cat <<EOF
-Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...]
-
-Members may be specified in a file named with @FILE.
-EOF
- exit $?
- ;;
- -v | --v*)
- echo "$me, version $scriptversion"
- exit $?
- ;;
-esac
-
-if test $# -lt 3; then
- func_error "you must specify a program, an action and an archive"
-fi
-
-AR=$1
-shift
-while :
-do
- if test $# -lt 2; then
- func_error "you must specify a program, an action and an archive"
- fi
- case $1 in
- -lib | -LIB \
- | -ltcg | -LTCG \
- | -machine* | -MACHINE* \
- | -subsystem* | -SUBSYSTEM* \
- | -verbose | -VERBOSE \
- | -wx* | -WX* )
- AR="$AR $1"
- shift
- ;;
- *)
- action=$1
- shift
- break
- ;;
- esac
-done
-orig_archive=$1
-shift
-func_file_conv "$orig_archive"
-archive=$file
-
-# strip leading dash in $action
-action=${action#-}
-
-delete=
-extract=
-list=
-quick=
-replace=
-index=
-create=
-
-while test -n "$action"
-do
- case $action in
- d*) delete=yes ;;
- x*) extract=yes ;;
- t*) list=yes ;;
- q*) quick=yes ;;
- r*) replace=yes ;;
- s*) index=yes ;;
- S*) ;; # the index is always updated implicitly
- c*) create=yes ;;
- u*) ;; # TODO: don't ignore the update modifier
- v*) ;; # TODO: don't ignore the verbose modifier
- *)
- func_error "unknown action specified"
- ;;
- esac
- action=${action#?}
-done
-
-case $delete$extract$list$quick$replace,$index in
- yes,* | ,yes)
- ;;
- yesyes*)
- func_error "more than one action specified"
- ;;
- *)
- func_error "no action specified"
- ;;
-esac
-
-if test -n "$delete"; then
- if test ! -f "$orig_archive"; then
- func_error "archive not found"
- fi
- for member
- do
- case $1 in
- @*)
- func_at_file "${1#@}" -REMOVE "$archive"
- ;;
- *)
- func_file_conv "$1"
- $AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
- ;;
- esac
- done
-
-elif test -n "$extract"; then
- if test ! -f "$orig_archive"; then
- func_error "archive not found"
- fi
- if test $# -gt 0; then
- for member
- do
- case $1 in
- @*)
- func_at_file "${1#@}" -EXTRACT "$archive"
- ;;
- *)
- func_file_conv "$1"
- $AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
- ;;
- esac
- done
- else
- $AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member
- do
- $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
- done
- fi
-
-elif test -n "$quick$replace"; then
- if test ! -f "$orig_archive"; then
- if test -z "$create"; then
- echo "$me: creating $orig_archive"
- fi
- orig_archive=
- else
- orig_archive=$archive
- fi
-
- for member
- do
- case $1 in
- @*)
- func_file_conv "${1#@}"
- set x "$@" "@$file"
- ;;
- *)
- func_file_conv "$1"
- set x "$@" "$file"
- ;;
- esac
- shift
- shift
- done
-
- if test -n "$orig_archive"; then
- $AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $?
- else
- $AR -NOLOGO -OUT:"$archive" "$@" || exit $?
- fi
-
-elif test -n "$list"; then
- if test ! -f "$orig_archive"; then
- func_error "archive not found"
- fi
- $AR -NOLOGO -LIST "$archive" || exit $?
-fi
diff --git a/src/config/compile b/src/config/compile
deleted file mode 100755
index 531136b0..00000000
--- a/src/config/compile
+++ /dev/null
@@ -1,347 +0,0 @@
-#! /bin/sh
-# Wrapper for compilers which do not understand '-c -o'.
-
-scriptversion=2012-10-14.11; # UTC
-
-# Copyright (C) 1999-2013 Free Software Foundation, Inc.
-# Written by Tom Tromey <tromey@cygnus.com>.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to <bug-automake@gnu.org> or send patches to
-# <automake-patches@gnu.org>.
-
-nl='
-'
-
-# We need space, tab and new line, in precisely that order. Quoting is
-# there to prevent tools from complaining about whitespace usage.
-IFS=" "" $nl"
-
-file_conv=
-
-# func_file_conv build_file lazy
-# Convert a $build file to $host form and store it in $file
-# Currently only supports Windows hosts. If the determined conversion
-# type is listed in (the comma separated) LAZY, no conversion will
-# take place.
-func_file_conv ()
-{
- file=$1
- case $file in
- / | /[!/]*) # absolute file, and not a UNC file
- if test -z "$file_conv"; then
- # lazily determine how to convert abs files
- case `uname -s` in
- MINGW*)
- file_conv=mingw
- ;;
- CYGWIN*)
- file_conv=cygwin
- ;;
- *)
- file_conv=wine
- ;;
- esac
- fi
- case $file_conv/,$2, in
- *,$file_conv,*)
- ;;
- mingw/*)
- file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
- ;;
- cygwin/*)
- file=`cygpath -m "$file" || echo "$file"`
- ;;
- wine/*)
- file=`winepath -w "$file" || echo "$file"`
- ;;
- esac
- ;;
- esac
-}
-
-# func_cl_dashL linkdir
-# Make cl look for libraries in LINKDIR
-func_cl_dashL ()
-{
- func_file_conv "$1"
- if test -z "$lib_path"; then
- lib_path=$file
- else
- lib_path="$lib_path;$file"
- fi
- linker_opts="$linker_opts -LIBPATH:$file"
-}
-
-# func_cl_dashl library
-# Do a library search-path lookup for cl
-func_cl_dashl ()
-{
- lib=$1
- found=no
- save_IFS=$IFS
- IFS=';'
- for dir in $lib_path $LIB
- do
- IFS=$save_IFS
- if $shared && test -f "$dir/$lib.dll.lib"; then
- found=yes
- lib=$dir/$lib.dll.lib
- break
- fi
- if test -f "$dir/$lib.lib"; then
- found=yes
- lib=$dir/$lib.lib
- break
- fi
- if test -f "$dir/lib$lib.a"; then
- found=yes
- lib=$dir/lib$lib.a
- break
- fi
- done
- IFS=$save_IFS
-
- if test "$found" != yes; then
- lib=$lib.lib
- fi
-}
-
-# func_cl_wrapper cl arg...
-# Adjust compile command to suit cl
-func_cl_wrapper ()
-{
- # Assume a capable shell
- lib_path=
- shared=:
- linker_opts=
- for arg
- do
- if test -n "$eat"; then
- eat=
- else
- case $1 in
- -o)
- # configure might choose to run compile as 'compile cc -o foo foo.c'.
- eat=1
- case $2 in
- *.o | *.[oO][bB][jJ])
- func_file_conv "$2"
- set x "$@" -Fo"$file"
- shift
- ;;
- *)
- func_file_conv "$2"
- set x "$@" -Fe"$file"
- shift
- ;;
- esac
- ;;
- -I)
- eat=1
- func_file_conv "$2" mingw
- set x "$@" -I"$file"
- shift
- ;;
- -I*)
- func_file_conv "${1#-I}" mingw
- set x "$@" -I"$file"
- shift
- ;;
- -l)
- eat=1
- func_cl_dashl "$2"
- set x "$@" "$lib"
- shift
- ;;
- -l*)
- func_cl_dashl "${1#-l}"
- set x "$@" "$lib"
- shift
- ;;
- -L)
- eat=1
- func_cl_dashL "$2"
- ;;
- -L*)
- func_cl_dashL "${1#-L}"
- ;;
- -static)
- shared=false
- ;;
- -Wl,*)
- arg=${1#-Wl,}
- save_ifs="$IFS"; IFS=','
- for flag in $arg; do
- IFS="$save_ifs"
- linker_opts="$linker_opts $flag"
- done
- IFS="$save_ifs"
- ;;
- -Xlinker)
- eat=1
- linker_opts="$linker_opts $2"
- ;;
- -*)
- set x "$@" "$1"
- shift
- ;;
- *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
- func_file_conv "$1"
- set x "$@" -Tp"$file"
- shift
- ;;
- *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
- func_file_conv "$1" mingw
- set x "$@" "$file"
- shift
- ;;
- *)
- set x "$@" "$1"
- shift
- ;;
- esac
- fi
- shift
- done
- if test -n "$linker_opts"; then
- linker_opts="-link$linker_opts"
- fi
- exec "$@" $linker_opts
- exit 1
-}
-
-eat=
-
-case $1 in
- '')
- echo "$0: No command. Try '$0 --help' for more information." 1>&2
- exit 1;
- ;;
- -h | --h*)
- cat <<\EOF
-Usage: compile [--help] [--version] PROGRAM [ARGS]
-
-Wrapper for compilers which do not understand '-c -o'.
-Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
-arguments, and rename the output as expected.
-
-If you are trying to build a whole package this is not the
-right script to run: please start by reading the file 'INSTALL'.
-
-Report bugs to <bug-automake@gnu.org>.
-EOF
- exit $?
- ;;
- -v | --v*)
- echo "compile $scriptversion"
- exit $?
- ;;
- cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
- func_cl_wrapper "$@" # Doesn't return...
- ;;
-esac
-
-ofile=
-cfile=
-
-for arg
-do
- if test -n "$eat"; then
- eat=
- else
- case $1 in
- -o)
- # configure might choose to run compile as 'compile cc -o foo foo.c'.
- # So we strip '-o arg' only if arg is an object.
- eat=1
- case $2 in
- *.o | *.obj)
- ofile=$2
- ;;
- *)
- set x "$@" -o "$2"
- shift
- ;;
- esac
- ;;
- *.c)
- cfile=$1
- set x "$@" "$1"
- shift
- ;;
- *)
- set x "$@" "$1"
- shift
- ;;
- esac
- fi
- shift
-done
-
-if test -z "$ofile" || test -z "$cfile"; then
- # If no '-o' option was seen then we might have been invoked from a
- # pattern rule where we don't need one. That is ok -- this is a
- # normal compilation that the losing compiler can handle. If no
- # '.c' file was seen then we are probably linking. That is also
- # ok.
- exec "$@"
-fi
-
-# Name of file we expect compiler to create.
-cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
-
-# Create the lock directory.
-# Note: use '[/\\:.-]' here to ensure that we don't use the same name
-# that we are using for the .o file. Also, base the name on the expected
-# object file name, since that is what matters with a parallel build.
-lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
-while true; do
- if mkdir "$lockdir" >/dev/null 2>&1; then
- break
- fi
- sleep 1
-done
-# FIXME: race condition here if user kills between mkdir and trap.
-trap "rmdir '$lockdir'; exit 1" 1 2 15
-
-# Run the compile.
-"$@"
-ret=$?
-
-if test -f "$cofile"; then
- test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
-elif test -f "${cofile}bj"; then
- test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
-fi
-
-rmdir "$lockdir"
-exit $ret
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/src/config/config.guess b/src/config/config.guess
deleted file mode 100755
index 1f5c50c0..00000000
--- a/src/config/config.guess
+++ /dev/null
@@ -1,1420 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-# Copyright 1992-2014 Free Software Foundation, Inc.
-
-timestamp='2014-03-23'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that
-# program. This Exception is an additional permission under section 7
-# of the GNU General Public License, version 3 ("GPLv3").
-#
-# Originally written by Per Bothner.
-#
-# You can get the latest version of this script from:
-# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-#
-# Please send patches with a ChangeLog entry to config-patches@gnu.org.
-
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright 1992-2014 Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit ;;
- --version | -v )
- echo "$version" ; exit ;;
- --help | --h* | -h )
- echo "$usage"; exit ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help" >&2
- exit 1 ;;
- * )
- break ;;
- esac
-done
-
-if test $# != 0; then
- echo "$me: too many arguments$help" >&2
- exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int x;" > $dummy.c ;
- for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
- CC_FOR_BUILD="$c"; break ;
- fi ;
- done ;
- if test x"$CC_FOR_BUILD" = x ; then
- CC_FOR_BUILD=no_compiler_found ;
- fi
- ;;
- ,,*) CC_FOR_BUILD=$CC ;;
- ,*,*) CC_FOR_BUILD=$HOST_CC ;;
-esac ; set_cc_for_build= ;'
-
-# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
-# (ghazi@noc.rutgers.edu 1994-08-24)
-if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
- PATH=$PATH:/.attbin ; export PATH
-fi
-
-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
-UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-
-case "${UNAME_SYSTEM}" in
-Linux|GNU|GNU/*)
- # If the system lacks a compiler, then just pick glibc.
- # We could probably try harder.
- LIBC=gnu
-
- eval $set_cc_for_build
- cat <<-EOF > $dummy.c
- #include <features.h>
- #if defined(__UCLIBC__)
- LIBC=uclibc
- #elif defined(__dietlibc__)
- LIBC=dietlibc
- #else
- LIBC=gnu
- #endif
- EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
- ;;
-esac
-
-# Note: order is significant - the case branches are not exclusive.
-
-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
- *:NetBSD:*:*)
- # NetBSD (nbsd) targets should (where applicable) match one or
- # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
- # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
- # switched to ELF, *-*-netbsd* would select the old
- # object file format. This provides both forward
- # compatibility and a consistent mechanism for selecting the
- # object file format.
- #
- # Note: NetBSD doesn't particularly care about the vendor
- # portion of the name. We always set it to "unknown".
- sysctl="sysctl -n hw.machine_arch"
- UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
- /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
- case "${UNAME_MACHINE_ARCH}" in
- armeb) machine=armeb-unknown ;;
- arm*) machine=arm-unknown ;;
- sh3el) machine=shl-unknown ;;
- sh3eb) machine=sh-unknown ;;
- sh5el) machine=sh5le-unknown ;;
- *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
- esac
- # The Operating System including object format, if it has switched
- # to ELF recently, or will in the future.
- case "${UNAME_MACHINE_ARCH}" in
- arm*|i386|m68k|ns32k|sh3*|sparc|vax)
- eval $set_cc_for_build
- if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep -q __ELF__
- then
- # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
- # Return netbsd for either. FIX?
- os=netbsd
- else
- os=netbsdelf
- fi
- ;;
- *)
- os=netbsd
- ;;
- esac
- # The OS release
- # Debian GNU/NetBSD machines have a different userland, and
- # thus, need a distinct triplet. However, they do not need
- # kernel version information, so it can be replaced with a
- # suitable tag, in the style of linux-gnu.
- case "${UNAME_VERSION}" in
- Debian*)
- release='-gnu'
- ;;
- *)
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
- ;;
- esac
- # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
- # contains redundant information, the shorter form:
- # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
- echo "${machine}-${os}${release}"
- exit ;;
- *:Bitrig:*:*)
- UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
- echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
- exit ;;
- *:OpenBSD:*:*)
- UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
- echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
- exit ;;
- *:ekkoBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
- exit ;;
- *:SolidBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
- exit ;;
- macppc:MirBSD:*:*)
- echo powerpc-unknown-mirbsd${UNAME_RELEASE}
- exit ;;
- *:MirBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
- exit ;;
- alpha:OSF1:*:*)
- case $UNAME_RELEASE in
- *4.0)
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
- ;;
- *5.*)
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
- ;;
- esac
- # According to Compaq, /usr/sbin/psrinfo has been available on
- # OSF/1 and Tru64 systems produced since 1995. I hope that
- # covers most systems running today. This code pipes the CPU
- # types through head -n 1, so we only detect the type of CPU 0.
- ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
- case "$ALPHA_CPU_TYPE" in
- "EV4 (21064)")
- UNAME_MACHINE="alpha" ;;
- "EV4.5 (21064)")
- UNAME_MACHINE="alpha" ;;
- "LCA4 (21066/21068)")
- UNAME_MACHINE="alpha" ;;
- "EV5 (21164)")
- UNAME_MACHINE="alphaev5" ;;
- "EV5.6 (21164A)")
- UNAME_MACHINE="alphaev56" ;;
- "EV5.6 (21164PC)")
- UNAME_MACHINE="alphapca56" ;;
- "EV5.7 (21164PC)")
- UNAME_MACHINE="alphapca57" ;;
- "EV6 (21264)")
- UNAME_MACHINE="alphaev6" ;;
- "EV6.7 (21264A)")
- UNAME_MACHINE="alphaev67" ;;
- "EV6.8CB (21264C)")
- UNAME_MACHINE="alphaev68" ;;
- "EV6.8AL (21264B)")
- UNAME_MACHINE="alphaev68" ;;
- "EV6.8CX (21264D)")
- UNAME_MACHINE="alphaev68" ;;
- "EV6.9A (21264/EV69A)")
- UNAME_MACHINE="alphaev69" ;;
- "EV7 (21364)")
- UNAME_MACHINE="alphaev7" ;;
- "EV7.9 (21364A)")
- UNAME_MACHINE="alphaev79" ;;
- esac
- # A Pn.n version is a patched version.
- # A Vn.n version is a released version.
- # A Tn.n version is a released field test version.
- # A Xn.n version is an unreleased experimental baselevel.
- # 1.2 uses "1.2" for uname -r.
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
- exitcode=$?
- trap '' 0
- exit $exitcode ;;
- Alpha\ *:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # Should we change UNAME_MACHINE based on the output of uname instead
- # of the specific Alpha model?
- echo alpha-pc-interix
- exit ;;
- 21064:Windows_NT:50:3)
- echo alpha-dec-winnt3.5
- exit ;;
- Amiga*:UNIX_System_V:4.0:*)
- echo m68k-unknown-sysv4
- exit ;;
- *:[Aa]miga[Oo][Ss]:*:*)
- echo ${UNAME_MACHINE}-unknown-amigaos
- exit ;;
- *:[Mm]orph[Oo][Ss]:*:*)
- echo ${UNAME_MACHINE}-unknown-morphos
- exit ;;
- *:OS/390:*:*)
- echo i370-ibm-openedition
- exit ;;
- *:z/VM:*:*)
- echo s390-ibm-zvmoe
- exit ;;
- *:OS400:*:*)
- echo powerpc-ibm-os400
- exit ;;
- arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
- echo arm-acorn-riscix${UNAME_RELEASE}
- exit ;;
- arm*:riscos:*:*|arm*:RISCOS:*:*)
- echo arm-unknown-riscos
- exit ;;
- SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
- echo hppa1.1-hitachi-hiuxmpp
- exit ;;
- Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
- # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
- if test "`(/bin/universe) 2>/dev/null`" = att ; then
- echo pyramid-pyramid-sysv3
- else
- echo pyramid-pyramid-bsd
- fi
- exit ;;
- NILE*:*:*:dcosx)
- echo pyramid-pyramid-svr4
- exit ;;
- DRS?6000:unix:4.0:6*)
- echo sparc-icl-nx6
- exit ;;
- DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
- case `/usr/bin/uname -p` in
- sparc) echo sparc-icl-nx7; exit ;;
- esac ;;
- s390x:SunOS:*:*)
- echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit ;;
- sun4H:SunOS:5.*:*)
- echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit ;;
- sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
- echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit ;;
- i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
- echo i386-pc-auroraux${UNAME_RELEASE}
- exit ;;
- i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
- eval $set_cc_for_build
- SUN_ARCH="i386"
- # If there is a compiler, see if it is configured for 64-bit objects.
- # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
- # This test works for both compilers.
- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
- if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
- grep IS_64BIT_ARCH >/dev/null
- then
- SUN_ARCH="x86_64"
- fi
- fi
- echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit ;;
- sun4*:SunOS:6*:*)
- # According to config.sub, this is the proper way to canonicalize
- # SunOS6. Hard to guess exactly what SunOS6 will be like, but
- # it's likely to be more like Solaris than SunOS4.
- echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit ;;
- sun4*:SunOS:*:*)
- case "`/usr/bin/arch -k`" in
- Series*|S4*)
- UNAME_RELEASE=`uname -v`
- ;;
- esac
- # Japanese Language versions have a version number like `4.1.3-JL'.
- echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
- exit ;;
- sun3*:SunOS:*:*)
- echo m68k-sun-sunos${UNAME_RELEASE}
- exit ;;
- sun*:*:4.2BSD:*)
- UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
- test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
- case "`/bin/arch`" in
- sun3)
- echo m68k-sun-sunos${UNAME_RELEASE}
- ;;
- sun4)
- echo sparc-sun-sunos${UNAME_RELEASE}
- ;;
- esac
- exit ;;
- aushp:SunOS:*:*)
- echo sparc-auspex-sunos${UNAME_RELEASE}
- exit ;;
- # The situation for MiNT is a little confusing. The machine name
- # can be virtually everything (everything which is not
- # "atarist" or "atariste" at least should have a processor
- # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
- # to the lowercase version "mint" (or "freemint"). Finally
- # the system name "TOS" denotes a system which is actually not
- # MiNT. But MiNT is downward compatible to TOS, so this should
- # be no problem.
- atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit ;;
- atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit ;;
- *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
- exit ;;
- milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE}
- exit ;;
- hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE}
- exit ;;
- *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit ;;
- m68k:machten:*:*)
- echo m68k-apple-machten${UNAME_RELEASE}
- exit ;;
- powerpc:machten:*:*)
- echo powerpc-apple-machten${UNAME_RELEASE}
- exit ;;
- RISC*:Mach:*:*)
- echo mips-dec-mach_bsd4.3
- exit ;;
- RISC*:ULTRIX:*:*)
- echo mips-dec-ultrix${UNAME_RELEASE}
- exit ;;
- VAX*:ULTRIX*:*:*)
- echo vax-dec-ultrix${UNAME_RELEASE}
- exit ;;
- 2020:CLIX:*:* | 2430:CLIX:*:*)
- echo clipper-intergraph-clix${UNAME_RELEASE}
- exit ;;
- mips:*:*:UMIPS | mips:*:*:RISCos)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
-#ifdef __cplusplus
-#include <stdio.h> /* for printf() prototype */
- int main (int argc, char *argv[]) {
-#else
- int main (argc, argv) int argc; char *argv[]; {
-#endif
- #if defined (host_mips) && defined (MIPSEB)
- #if defined (SYSTYPE_SYSV)
- printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
- #endif
- #if defined (SYSTYPE_SVR4)
- printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
- #endif
- #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
- printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
- #endif
- #endif
- exit (-1);
- }
-EOF
- $CC_FOR_BUILD -o $dummy $dummy.c &&
- dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
- SYSTEM_NAME=`$dummy $dummyarg` &&
- { echo "$SYSTEM_NAME"; exit; }
- echo mips-mips-riscos${UNAME_RELEASE}
- exit ;;
- Motorola:PowerMAX_OS:*:*)
- echo powerpc-motorola-powermax
- exit ;;
- Motorola:*:4.3:PL8-*)
- echo powerpc-harris-powermax
- exit ;;
- Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
- echo powerpc-harris-powermax
- exit ;;
- Night_Hawk:Power_UNIX:*:*)
- echo powerpc-harris-powerunix
- exit ;;
- m88k:CX/UX:7*:*)
- echo m88k-harris-cxux7
- exit ;;
- m88k:*:4*:R4*)
- echo m88k-motorola-sysv4
- exit ;;
- m88k:*:3*:R3*)
- echo m88k-motorola-sysv3
- exit ;;
- AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
- if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
- then
- if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
- [ ${TARGET_BINARY_INTERFACE}x = x ]
- then
- echo m88k-dg-dgux${UNAME_RELEASE}
- else
- echo m88k-dg-dguxbcs${UNAME_RELEASE}
- fi
- else
- echo i586-dg-dgux${UNAME_RELEASE}
- fi
- exit ;;
- M88*:DolphinOS:*:*) # DolphinOS (SVR3)
- echo m88k-dolphin-sysv3
- exit ;;
- M88*:*:R3*:*)
- # Delta 88k system running SVR3
- echo m88k-motorola-sysv3
- exit ;;
- XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
- echo m88k-tektronix-sysv3
- exit ;;
- Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
- echo m68k-tektronix-bsd
- exit ;;
- *:IRIX*:*:*)
- echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
- exit ;;
- ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
- exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
- i*86:AIX:*:*)
- echo i386-ibm-aix
- exit ;;
- ia64:AIX:*:*)
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
- else
- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
- fi
- echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
- exit ;;
- *:AIX:2:3)
- if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <sys/systemcfg.h>
-
- main()
- {
- if (!__power_pc())
- exit(1);
- puts("powerpc-ibm-aix3.2.5");
- exit(0);
- }
-EOF
- if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
- then
- echo "$SYSTEM_NAME"
- else
- echo rs6000-ibm-aix3.2.5
- fi
- elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
- echo rs6000-ibm-aix3.2.4
- else
- echo rs6000-ibm-aix3.2
- fi
- exit ;;
- *:AIX:*:[4567])
- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
- if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
- IBM_ARCH=rs6000
- else
- IBM_ARCH=powerpc
- fi
- if [ -x /usr/bin/oslevel ] ; then
- IBM_REV=`/usr/bin/oslevel`
- else
- IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
- fi
- echo ${IBM_ARCH}-ibm-aix${IBM_REV}
- exit ;;
- *:AIX:*:*)
- echo rs6000-ibm-aix
- exit ;;
- ibmrt:4.4BSD:*|romp-ibm:BSD:*)
- echo romp-ibm-bsd4.4
- exit ;;
- ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
- echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
- exit ;; # report: romp-ibm BSD 4.3
- *:BOSX:*:*)
- echo rs6000-bull-bosx
- exit ;;
- DPX/2?00:B.O.S.:*:*)
- echo m68k-bull-sysv3
- exit ;;
- 9000/[34]??:4.3bsd:1.*:*)
- echo m68k-hp-bsd
- exit ;;
- hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
- echo m68k-hp-bsd4.4
- exit ;;
- 9000/[34678]??:HP-UX:*:*)
- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- case "${UNAME_MACHINE}" in
- 9000/31? ) HP_ARCH=m68000 ;;
- 9000/[34]?? ) HP_ARCH=m68k ;;
- 9000/[678][0-9][0-9])
- if [ -x /usr/bin/getconf ]; then
- sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
- 532) # CPU_PA_RISC2_0
- case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;;
- '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- esac ;;
- esac
- fi
- if [ "${HP_ARCH}" = "" ]; then
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
-
- #define _HPUX_SOURCE
- #include <stdlib.h>
- #include <unistd.h>
-
- int main ()
- {
- #if defined(_SC_KERNEL_BITS)
- long bits = sysconf(_SC_KERNEL_BITS);
- #endif
- long cpu = sysconf (_SC_CPU_VERSION);
-
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
- case CPU_PA_RISC2_0:
- #if defined(_SC_KERNEL_BITS)
- switch (bits)
- {
- case 64: puts ("hppa2.0w"); break;
- case 32: puts ("hppa2.0n"); break;
- default: puts ("hppa2.0"); break;
- } break;
- #else /* !defined(_SC_KERNEL_BITS) */
- puts ("hppa2.0"); break;
- #endif
- default: puts ("hppa1.0"); break;
- }
- exit (0);
- }
-EOF
- (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
- test -z "$HP_ARCH" && HP_ARCH=hppa
- fi ;;
- esac
- if [ ${HP_ARCH} = "hppa2.0w" ]
- then
- eval $set_cc_for_build
-
- # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
- # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
- # generating 64-bit code. GNU and HP use different nomenclature:
- #
- # $ CC_FOR_BUILD=cc ./config.guess
- # => hppa2.0w-hp-hpux11.23
- # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
- # => hppa64-hp-hpux11.23
-
- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
- grep -q __LP64__
- then
- HP_ARCH="hppa2.0w"
- else
- HP_ARCH="hppa64"
- fi
- fi
- echo ${HP_ARCH}-hp-hpux${HPUX_REV}
- exit ;;
- ia64:HP-UX:*:*)
- HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
- echo ia64-hp-hpux${HPUX_REV}
- exit ;;
- 3050*:HI-UX:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #include <unistd.h>
- int
- main ()
- {
- long cpu = sysconf (_SC_CPU_VERSION);
- /* The order matters, because CPU_IS_HP_MC68K erroneously returns
- true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
- results, however. */
- if (CPU_IS_PA_RISC (cpu))
- {
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
- case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
- default: puts ("hppa-hitachi-hiuxwe2"); break;
- }
- }
- else if (CPU_IS_HP_MC68K (cpu))
- puts ("m68k-hitachi-hiuxwe2");
- else puts ("unknown-hitachi-hiuxwe2");
- exit (0);
- }
-EOF
- $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
- { echo "$SYSTEM_NAME"; exit; }
- echo unknown-hitachi-hiuxwe2
- exit ;;
- 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
- echo hppa1.1-hp-bsd
- exit ;;
- 9000/8??:4.3bsd:*:*)
- echo hppa1.0-hp-bsd
- exit ;;
- *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
- echo hppa1.0-hp-mpeix
- exit ;;
- hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
- echo hppa1.1-hp-osf
- exit ;;
- hp8??:OSF1:*:*)
- echo hppa1.0-hp-osf
- exit ;;
- i*86:OSF1:*:*)
- if [ -x /usr/sbin/sysversion ] ; then
- echo ${UNAME_MACHINE}-unknown-osf1mk
- else
- echo ${UNAME_MACHINE}-unknown-osf1
- fi
- exit ;;
- parisc*:Lites*:*:*)
- echo hppa1.1-hp-lites
- exit ;;
- C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
- echo c1-convex-bsd
- exit ;;
- C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
- if getsysinfo -f scalar_acc
- then echo c32-convex-bsd
- else echo c2-convex-bsd
- fi
- exit ;;
- C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
- echo c34-convex-bsd
- exit ;;
- C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
- echo c38-convex-bsd
- exit ;;
- C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
- echo c4-convex-bsd
- exit ;;
- CRAY*Y-MP:*:*:*)
- echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit ;;
- CRAY*[A-Z]90:*:*:*)
- echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
- | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
- -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
- -e 's/\.[^.]*$/.X/'
- exit ;;
- CRAY*TS:*:*:*)
- echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit ;;
- CRAY*T3E:*:*:*)
- echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit ;;
- CRAY*SV1:*:*:*)
- echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit ;;
- *:UNICOS/mp:*:*)
- echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit ;;
- F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
- FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit ;;
- 5000:UNIX_System_V:4.*:*)
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit ;;
- i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
- echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
- exit ;;
- sparc*:BSD/OS:*:*)
- echo sparc-unknown-bsdi${UNAME_RELEASE}
- exit ;;
- *:BSD/OS:*:*)
- echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
- exit ;;
- *:FreeBSD:*:*)
- UNAME_PROCESSOR=`/usr/bin/uname -p`
- case ${UNAME_PROCESSOR} in
- amd64)
- echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- *)
- echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- esac
- exit ;;
- i*:CYGWIN*:*)
- echo ${UNAME_MACHINE}-pc-cygwin
- exit ;;
- *:MINGW64*:*)
- echo ${UNAME_MACHINE}-pc-mingw64
- exit ;;
- *:MINGW*:*)
- echo ${UNAME_MACHINE}-pc-mingw32
- exit ;;
- *:MSYS*:*)
- echo ${UNAME_MACHINE}-pc-msys
- exit ;;
- i*:windows32*:*)
- # uname -m includes "-pc" on this system.
- echo ${UNAME_MACHINE}-mingw32
- exit ;;
- i*:PW*:*)
- echo ${UNAME_MACHINE}-pc-pw32
- exit ;;
- *:Interix*:*)
- case ${UNAME_MACHINE} in
- x86)
- echo i586-pc-interix${UNAME_RELEASE}
- exit ;;
- authenticamd | genuineintel | EM64T)
- echo x86_64-unknown-interix${UNAME_RELEASE}
- exit ;;
- IA64)
- echo ia64-unknown-interix${UNAME_RELEASE}
- exit ;;
- esac ;;
- [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
- echo i${UNAME_MACHINE}-pc-mks
- exit ;;
- 8664:Windows_NT:*)
- echo x86_64-pc-mks
- exit ;;
- i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem?
- # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
- # UNAME_MACHINE based on the output of uname instead of i386?
- echo i586-pc-interix
- exit ;;
- i*:UWIN*:*)
- echo ${UNAME_MACHINE}-pc-uwin
- exit ;;
- amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
- echo x86_64-unknown-cygwin
- exit ;;
- p*:CYGWIN*:*)
- echo powerpcle-unknown-cygwin
- exit ;;
- prep*:SunOS:5.*:*)
- echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit ;;
- *:GNU:*:*)
- # the GNU system
- echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
- exit ;;
- *:GNU/*:*:*)
- # other systems with GNU libc and userland
- echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
- exit ;;
- i*86:Minix:*:*)
- echo ${UNAME_MACHINE}-pc-minix
- exit ;;
- aarch64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- aarch64_be:Linux:*:*)
- UNAME_MACHINE=aarch64_be
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- alpha:Linux:*:*)
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
- EV5) UNAME_MACHINE=alphaev5 ;;
- EV56) UNAME_MACHINE=alphaev56 ;;
- PCA56) UNAME_MACHINE=alphapca56 ;;
- PCA57) UNAME_MACHINE=alphapca56 ;;
- EV6) UNAME_MACHINE=alphaev6 ;;
- EV67) UNAME_MACHINE=alphaev67 ;;
- EV68*) UNAME_MACHINE=alphaev68 ;;
- esac
- objdump --private-headers /bin/sh | grep -q ld.so.1
- if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- arc:Linux:*:* | arceb:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- arm*:Linux:*:*)
- eval $set_cc_for_build
- if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep -q __ARM_EABI__
- then
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- else
- if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep -q __ARM_PCS_VFP
- then
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
- else
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
- fi
- fi
- exit ;;
- avr32*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- cris:Linux:*:*)
- echo ${UNAME_MACHINE}-axis-linux-${LIBC}
- exit ;;
- crisv32:Linux:*:*)
- echo ${UNAME_MACHINE}-axis-linux-${LIBC}
- exit ;;
- frv:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- hexagon:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- i*86:Linux:*:*)
- echo ${UNAME_MACHINE}-pc-linux-${LIBC}
- exit ;;
- ia64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- m32r*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- m68*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- mips:Linux:*:* | mips64:Linux:*:*)
- eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c
- #undef CPU
- #undef ${UNAME_MACHINE}
- #undef ${UNAME_MACHINE}el
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
- CPU=${UNAME_MACHINE}el
- #else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
- CPU=${UNAME_MACHINE}
- #else
- CPU=
- #endif
- #endif
-EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
- ;;
- openrisc*:Linux:*:*)
- echo or1k-unknown-linux-${LIBC}
- exit ;;
- or32:Linux:*:* | or1k*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- padre:Linux:*:*)
- echo sparc-unknown-linux-${LIBC}
- exit ;;
- parisc64:Linux:*:* | hppa64:Linux:*:*)
- echo hppa64-unknown-linux-${LIBC}
- exit ;;
- parisc:Linux:*:* | hppa:Linux:*:*)
- # Look for CPU level
- case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
- PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
- PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
- *) echo hppa-unknown-linux-${LIBC} ;;
- esac
- exit ;;
- ppc64:Linux:*:*)
- echo powerpc64-unknown-linux-${LIBC}
- exit ;;
- ppc:Linux:*:*)
- echo powerpc-unknown-linux-${LIBC}
- exit ;;
- ppc64le:Linux:*:*)
- echo powerpc64le-unknown-linux-${LIBC}
- exit ;;
- ppcle:Linux:*:*)
- echo powerpcle-unknown-linux-${LIBC}
- exit ;;
- s390:Linux:*:* | s390x:Linux:*:*)
- echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
- exit ;;
- sh64*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- sh*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- tile*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- vax:Linux:*:*)
- echo ${UNAME_MACHINE}-dec-linux-${LIBC}
- exit ;;
- x86_64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- xtensa*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
- exit ;;
- i*86:DYNIX/ptx:4*:*)
- # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
- # earlier versions are messed up and put the nodename in both
- # sysname and nodename.
- echo i386-sequent-sysv4
- exit ;;
- i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
- # I just have to hope. -- rms.
- # Use sysv4.2uw... so that sysv4* matches it.
- echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
- exit ;;
- i*86:OS/2:*:*)
- # If we were able to find `uname', then EMX Unix compatibility
- # is probably installed.
- echo ${UNAME_MACHINE}-pc-os2-emx
- exit ;;
- i*86:XTS-300:*:STOP)
- echo ${UNAME_MACHINE}-unknown-stop
- exit ;;
- i*86:atheos:*:*)
- echo ${UNAME_MACHINE}-unknown-atheos
- exit ;;
- i*86:syllable:*:*)
- echo ${UNAME_MACHINE}-pc-syllable
- exit ;;
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
- echo i386-unknown-lynxos${UNAME_RELEASE}
- exit ;;
- i*86:*DOS:*:*)
- echo ${UNAME_MACHINE}-pc-msdosdjgpp
- exit ;;
- i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
- UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
- if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
- echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
- else
- echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
- fi
- exit ;;
- i*86:*:5:[678]*)
- # UnixWare 7.x, OpenUNIX and OpenServer 6.
- case `/bin/uname -X | grep "^Machine"` in
- *486*) UNAME_MACHINE=i486 ;;
- *Pentium) UNAME_MACHINE=i586 ;;
- *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
- esac
- echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
- exit ;;
- i*86:*:3.2:*)
- if test -f /usr/options/cb.name; then
- UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
- echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
- elif /bin/uname -X 2>/dev/null >/dev/null ; then
- UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
- (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
- (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
- && UNAME_MACHINE=i586
- (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
- && UNAME_MACHINE=i686
- (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
- && UNAME_MACHINE=i686
- echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
- else
- echo ${UNAME_MACHINE}-pc-sysv32
- fi
- exit ;;
- pc:*:*:*)
- # Left here for compatibility:
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
- # the processor, so we play safe by assuming i586.
- # Note: whatever this is, it MUST be the same as what config.sub
- # prints for the "djgpp" host, or else GDB configury will decide that
- # this is a cross-build.
- echo i586-pc-msdosdjgpp
- exit ;;
- Intel:Mach:3*:*)
- echo i386-pc-mach3
- exit ;;
- paragon:*:*:*)
- echo i860-intel-osf1
- exit ;;
- i860:*:4.*:*) # i860-SVR4
- if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
- echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
- else # Add other i860-SVR4 vendors below as they are discovered.
- echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
- fi
- exit ;;
- mini*:CTIX:SYS*5:*)
- # "miniframe"
- echo m68010-convergent-sysv
- exit ;;
- mc68k:UNIX:SYSTEM5:3.51m)
- echo m68k-convergent-sysv
- exit ;;
- M680?0:D-NIX:5.3:*)
- echo m68k-diab-dnix
- exit ;;
- M68*:*:R3V[5678]*:*)
- test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
- 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
- OS_REL=''
- test -r /etc/.relid \
- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
- /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
- && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
- 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && { echo i486-ncr-sysv4; exit; } ;;
- NCR*:*:4.2:* | MPRAS*:*:4.2:*)
- OS_REL='.3'
- test -r /etc/.relid \
- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
- /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
- && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
- /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
- && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
- m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
- echo m68k-unknown-lynxos${UNAME_RELEASE}
- exit ;;
- mc68030:UNIX_System_V:4.*:*)
- echo m68k-atari-sysv4
- exit ;;
- TSUNAMI:LynxOS:2.*:*)
- echo sparc-unknown-lynxos${UNAME_RELEASE}
- exit ;;
- rs6000:LynxOS:2.*:*)
- echo rs6000-unknown-lynxos${UNAME_RELEASE}
- exit ;;
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
- echo powerpc-unknown-lynxos${UNAME_RELEASE}
- exit ;;
- SM[BE]S:UNIX_SV:*:*)
- echo mips-dde-sysv${UNAME_RELEASE}
- exit ;;
- RM*:ReliantUNIX-*:*:*)
- echo mips-sni-sysv4
- exit ;;
- RM*:SINIX-*:*:*)
- echo mips-sni-sysv4
- exit ;;
- *:SINIX-*:*:*)
- if uname -p 2>/dev/null >/dev/null ; then
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
- echo ${UNAME_MACHINE}-sni-sysv4
- else
- echo ns32k-sni-sysv
- fi
- exit ;;
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- # says <Richard.M.Bartel@ccMail.Census.GOV>
- echo i586-unisys-sysv4
- exit ;;
- *:UNIX_System_V:4*:FTX*)
- # From Gerald Hewes <hewes@openmarket.com>.
- # How about differentiating between stratus architectures? -djm
- echo hppa1.1-stratus-sysv4
- exit ;;
- *:*:*:FTX*)
- # From seanf@swdc.stratus.com.
- echo i860-stratus-sysv4
- exit ;;
- i*86:VOS:*:*)
- # From Paul.Green@stratus.com.
- echo ${UNAME_MACHINE}-stratus-vos
- exit ;;
- *:VOS:*:*)
- # From Paul.Green@stratus.com.
- echo hppa1.1-stratus-vos
- exit ;;
- mc68*:A/UX:*:*)
- echo m68k-apple-aux${UNAME_RELEASE}
- exit ;;
- news*:NEWS-OS:6*:*)
- echo mips-sony-newsos6
- exit ;;
- R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
- if [ -d /usr/nec ]; then
- echo mips-nec-sysv${UNAME_RELEASE}
- else
- echo mips-unknown-sysv${UNAME_RELEASE}
- fi
- exit ;;
- BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
- echo powerpc-be-beos
- exit ;;
- BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
- echo powerpc-apple-beos
- exit ;;
- BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
- echo i586-pc-beos
- exit ;;
- BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
- echo i586-pc-haiku
- exit ;;
- x86_64:Haiku:*:*)
- echo x86_64-unknown-haiku
- exit ;;
- SX-4:SUPER-UX:*:*)
- echo sx4-nec-superux${UNAME_RELEASE}
- exit ;;
- SX-5:SUPER-UX:*:*)
- echo sx5-nec-superux${UNAME_RELEASE}
- exit ;;
- SX-6:SUPER-UX:*:*)
- echo sx6-nec-superux${UNAME_RELEASE}
- exit ;;
- SX-7:SUPER-UX:*:*)
- echo sx7-nec-superux${UNAME_RELEASE}
- exit ;;
- SX-8:SUPER-UX:*:*)
- echo sx8-nec-superux${UNAME_RELEASE}
- exit ;;
- SX-8R:SUPER-UX:*:*)
- echo sx8r-nec-superux${UNAME_RELEASE}
- exit ;;
- Power*:Rhapsody:*:*)
- echo powerpc-apple-rhapsody${UNAME_RELEASE}
- exit ;;
- *:Rhapsody:*:*)
- echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
- exit ;;
- *:Darwin:*:*)
- UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
- eval $set_cc_for_build
- if test "$UNAME_PROCESSOR" = unknown ; then
- UNAME_PROCESSOR=powerpc
- fi
- if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
- if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
- if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
- (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
- grep IS_64BIT_ARCH >/dev/null
- then
- case $UNAME_PROCESSOR in
- i386) UNAME_PROCESSOR=x86_64 ;;
- powerpc) UNAME_PROCESSOR=powerpc64 ;;
- esac
- fi
- fi
- elif test "$UNAME_PROCESSOR" = i386 ; then
- # Avoid executing cc on OS X 10.9, as it ships with a stub
- # that puts up a graphical alert prompting to install
- # developer tools. Any system running Mac OS X 10.7 or
- # later (Darwin 11 and later) is required to have a 64-bit
- # processor. This is not true of the ARM version of Darwin
- # that Apple uses in portable devices.
- UNAME_PROCESSOR=x86_64
- fi
- echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
- exit ;;
- *:procnto*:*:* | *:QNX:[0123456789]*:*)
- UNAME_PROCESSOR=`uname -p`
- if test "$UNAME_PROCESSOR" = "x86"; then
- UNAME_PROCESSOR=i386
- UNAME_MACHINE=pc
- fi
- echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
- exit ;;
- *:QNX:*:4*)
- echo i386-pc-qnx
- exit ;;
- NEO-?:NONSTOP_KERNEL:*:*)
- echo neo-tandem-nsk${UNAME_RELEASE}
- exit ;;
- NSE-*:NONSTOP_KERNEL:*:*)
- echo nse-tandem-nsk${UNAME_RELEASE}
- exit ;;
- NSR-?:NONSTOP_KERNEL:*:*)
- echo nsr-tandem-nsk${UNAME_RELEASE}
- exit ;;
- *:NonStop-UX:*:*)
- echo mips-compaq-nonstopux
- exit ;;
- BS2000:POSIX*:*:*)
- echo bs2000-siemens-sysv
- exit ;;
- DS/*:UNIX_System_V:*:*)
- echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
- exit ;;
- *:Plan9:*:*)
- # "uname -m" is not consistent, so use $cputype instead. 386
- # is converted to i386 for consistency with other x86
- # operating systems.
- if test "$cputype" = "386"; then
- UNAME_MACHINE=i386
- else
- UNAME_MACHINE="$cputype"
- fi
- echo ${UNAME_MACHINE}-unknown-plan9
- exit ;;
- *:TOPS-10:*:*)
- echo pdp10-unknown-tops10
- exit ;;
- *:TENEX:*:*)
- echo pdp10-unknown-tenex
- exit ;;
- KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
- echo pdp10-dec-tops20
- exit ;;
- XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
- echo pdp10-xkl-tops20
- exit ;;
- *:TOPS-20:*:*)
- echo pdp10-unknown-tops20
- exit ;;
- *:ITS:*:*)
- echo pdp10-unknown-its
- exit ;;
- SEI:*:*:SEIUX)
- echo mips-sei-seiux${UNAME_RELEASE}
- exit ;;
- *:DragonFly:*:*)
- echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
- exit ;;
- *:*VMS:*:*)
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
- case "${UNAME_MACHINE}" in
- A*) echo alpha-dec-vms ; exit ;;
- I*) echo ia64-dec-vms ; exit ;;
- V*) echo vax-dec-vms ; exit ;;
- esac ;;
- *:XENIX:*:SysV)
- echo i386-pc-xenix
- exit ;;
- i*86:skyos:*:*)
- echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
- exit ;;
- i*86:rdos:*:*)
- echo ${UNAME_MACHINE}-pc-rdos
- exit ;;
- i*86:AROS:*:*)
- echo ${UNAME_MACHINE}-pc-aros
- exit ;;
- x86_64:VMkernel:*:*)
- echo ${UNAME_MACHINE}-unknown-esx
- exit ;;
-esac
-
-cat >&2 <<EOF
-$0: unable to guess system type
-
-This script, last modified $timestamp, has failed to recognize
-the operating system you are using. It is advised that you
-download the most up to date version of the config scripts from
-
- http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-and
- http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
-
-If the version you run ($0) is already up to date, please
-send the following data and any information you think might be
-pertinent to <config-patches@gnu.org> in order to provide the needed
-information to handle your system.
-
-config.guess timestamp = $timestamp
-
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
-/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
-
-hostinfo = `(hostinfo) 2>/dev/null`
-/bin/universe = `(/bin/universe) 2>/dev/null`
-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
-/bin/arch = `(/bin/arch) 2>/dev/null`
-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
-
-UNAME_MACHINE = ${UNAME_MACHINE}
-UNAME_RELEASE = ${UNAME_RELEASE}
-UNAME_SYSTEM = ${UNAME_SYSTEM}
-UNAME_VERSION = ${UNAME_VERSION}
-EOF
-
-exit 1
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/src/config/config.sub b/src/config/config.sub
deleted file mode 100755
index 66c50743..00000000
--- a/src/config/config.sub
+++ /dev/null
@@ -1,1798 +0,0 @@
-#! /bin/sh
-# Configuration validation subroutine script.
-# Copyright 1992-2014 Free Software Foundation, Inc.
-
-timestamp='2014-07-28'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that
-# program. This Exception is an additional permission under section 7
-# of the GNU General Public License, version 3 ("GPLv3").
-
-
-# Please send patches with a ChangeLog entry to config-patches@gnu.org.
-#
-# Configuration subroutine to validate and canonicalize a configuration type.
-# Supply the specified configuration type as an argument.
-# If it is invalid, we print an error message on stderr and exit with code 1.
-# Otherwise, we print the canonical config type on stdout and succeed.
-
-# You can get the latest version of this script from:
-# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
-
-# This file is supposed to be the same for all GNU packages
-# and recognize all the CPU types, system types and aliases
-# that are meaningful with *any* GNU software.
-# Each package is responsible for reporting which valid configurations
-# it does not support. The user should be able to distinguish
-# a failure to support a valid configuration from a meaningless
-# configuration.
-
-# The goal of this file is to map all the various variations of a given
-# machine specification into a single specification in the form:
-# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
-# or in some cases, the newer four-part form:
-# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
-# It is wrong to echo any other type of specification.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
- $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.sub ($timestamp)
-
-Copyright 1992-2014 Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit ;;
- --version | -v )
- echo "$version" ; exit ;;
- --help | --h* | -h )
- echo "$usage"; exit ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help"
- exit 1 ;;
-
- *local*)
- # First pass through any local machine types.
- echo $1
- exit ;;
-
- * )
- break ;;
- esac
-done
-
-case $# in
- 0) echo "$me: missing argument$help" >&2
- exit 1;;
- 1) ;;
- *) echo "$me: too many arguments$help" >&2
- exit 1;;
-esac
-
-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
-# Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
-case $maybe_os in
- nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
- linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
- knetbsd*-gnu* | netbsd*-gnu* | \
- kopensolaris*-gnu* | \
- storm-chaos* | os2-emx* | rtmk-nova*)
- os=-$maybe_os
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
- ;;
- android-linux)
- os=-linux-android
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
- ;;
- *)
- basic_machine=`echo $1 | sed 's/-[^-]*$//'`
- if [ $basic_machine != $1 ]
- then os=`echo $1 | sed 's/.*-/-/'`
- else os=; fi
- ;;
-esac
-
-### Let's recognize common machines as not being operating systems so
-### that things like config.sub decstation-3100 work. We also
-### recognize some manufacturers as not being operating systems, so we
-### can provide default operating systems below.
-case $os in
- -sun*os*)
- # Prevent following clause from handling this invalid input.
- ;;
- -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
- -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
- -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
- -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
- -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis | -knuth | -cray | -microblaze*)
- os=
- basic_machine=$1
- ;;
- -bluegene*)
- os=-cnk
- ;;
- -sim | -cisco | -oki | -wec | -winbond)
- os=
- basic_machine=$1
- ;;
- -scout)
- ;;
- -wrs)
- os=-vxworks
- basic_machine=$1
- ;;
- -chorusos*)
- os=-chorusos
- basic_machine=$1
- ;;
- -chorusrdb)
- os=-chorusrdb
- basic_machine=$1
- ;;
- -hiux*)
- os=-hiuxwe2
- ;;
- -sco6)
- os=-sco5v6
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco5)
- os=-sco3.2v5
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco4)
- os=-sco3.2v4
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2.[4-9]*)
- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2v[4-9]*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco5v6*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco*)
- os=-sco3.2v2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -udk*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -isc)
- os=-isc2.2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -clix*)
- basic_machine=clipper-intergraph
- ;;
- -isc*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -lynx*178)
- os=-lynxos178
- ;;
- -lynx*5)
- os=-lynxos5
- ;;
- -lynx*)
- os=-lynxos
- ;;
- -ptx*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
- ;;
- -windowsnt*)
- os=`echo $os | sed -e 's/windowsnt/winnt/'`
- ;;
- -psos*)
- os=-psos
- ;;
- -mint | -mint[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
-esac
-
-# Decode aliases for certain CPU-COMPANY combinations.
-case $basic_machine in
- # Recognize the basic CPU types without company name.
- # Some are omitted here because they have special meanings below.
- 1750a | 580 \
- | a29k \
- | aarch64 | aarch64_be \
- | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
- | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
- | am33_2.0 \
- | arc | arceb \
- | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
- | avr | avr32 \
- | be32 | be64 \
- | bfin \
- | c4x | c8051 | clipper \
- | d10v | d30v | dlx | dsp16xx \
- | epiphany \
- | fido | fr30 | frv \
- | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
- | hexagon \
- | i370 | i860 | i960 | ia64 \
- | ip2k | iq2000 \
- | k1om \
- | le32 | le64 \
- | lm32 \
- | m32c | m32r | m32rle | m68000 | m68k | m88k \
- | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
- | mips | mipsbe | mipseb | mipsel | mipsle \
- | mips16 \
- | mips64 | mips64el \
- | mips64octeon | mips64octeonel \
- | mips64orion | mips64orionel \
- | mips64r5900 | mips64r5900el \
- | mips64vr | mips64vrel \
- | mips64vr4100 | mips64vr4100el \
- | mips64vr4300 | mips64vr4300el \
- | mips64vr5000 | mips64vr5000el \
- | mips64vr5900 | mips64vr5900el \
- | mipsisa32 | mipsisa32el \
- | mipsisa32r2 | mipsisa32r2el \
- | mipsisa32r6 | mipsisa32r6el \
- | mipsisa64 | mipsisa64el \
- | mipsisa64r2 | mipsisa64r2el \
- | mipsisa64r6 | mipsisa64r6el \
- | mipsisa64sb1 | mipsisa64sb1el \
- | mipsisa64sr71k | mipsisa64sr71kel \
- | mipsr5900 | mipsr5900el \
- | mipstx39 | mipstx39el \
- | mn10200 | mn10300 \
- | moxie \
- | mt \
- | msp430 \
- | nds32 | nds32le | nds32be \
- | nios | nios2 | nios2eb | nios2el \
- | ns16k | ns32k \
- | open8 | or1k | or1knd | or32 \
- | pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle \
- | pyramid \
- | rl78 | rx \
- | score \
- | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
- | sh64 | sh64le \
- | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
- | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
- | spu \
- | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
- | ubicom32 \
- | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
- | we32k \
- | x86 | xc16x | xstormy16 | xtensa \
- | z8k | z80)
- basic_machine=$basic_machine-unknown
- ;;
- c54x)
- basic_machine=tic54x-unknown
- ;;
- c55x)
- basic_machine=tic55x-unknown
- ;;
- c6x)
- basic_machine=tic6x-unknown
- ;;
- m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
- basic_machine=$basic_machine-unknown
- os=-none
- ;;
- m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
- ;;
- ms1)
- basic_machine=mt-unknown
- ;;
-
- strongarm | thumb | xscale)
- basic_machine=arm-unknown
- ;;
- xgate)
- basic_machine=$basic_machine-unknown
- os=-none
- ;;
- xscaleeb)
- basic_machine=armeb-unknown
- ;;
-
- xscaleel)
- basic_machine=armel-unknown
- ;;
-
- # We use `pc' rather than `unknown'
- # because (1) that's what they normally are, and
- # (2) the word "unknown" tends to confuse beginning users.
- i*86 | x86_64)
- basic_machine=$basic_machine-pc
- ;;
- # Object if more than one company name word.
- *-*-*)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
- # Recognize the basic CPU types with company name.
- 580-* \
- | a29k-* \
- | aarch64-* | aarch64_be-* \
- | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
- | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
- | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
- | avr-* | avr32-* \
- | be32-* | be64-* \
- | bfin-* | bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c4x-* \
- | c8051-* | clipper-* | craynv-* | cydra-* \
- | d10v-* | d30v-* | dlx-* \
- | elxsi-* \
- | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
- | h8300-* | h8500-* \
- | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
- | hexagon-* \
- | i*86-* | i860-* | i960-* | ia64-* \
- | ip2k-* | iq2000-* \
- | k1om-* \
- | le32-* | le64-* \
- | lm32-* \
- | m32c-* | m32r-* | m32rle-* \
- | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
- | microblaze-* | microblazeel-* \
- | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
- | mips16-* \
- | mips64-* | mips64el-* \
- | mips64octeon-* | mips64octeonel-* \
- | mips64orion-* | mips64orionel-* \
- | mips64r5900-* | mips64r5900el-* \
- | mips64vr-* | mips64vrel-* \
- | mips64vr4100-* | mips64vr4100el-* \
- | mips64vr4300-* | mips64vr4300el-* \
- | mips64vr5000-* | mips64vr5000el-* \
- | mips64vr5900-* | mips64vr5900el-* \
- | mipsisa32-* | mipsisa32el-* \
- | mipsisa32r2-* | mipsisa32r2el-* \
- | mipsisa32r6-* | mipsisa32r6el-* \
- | mipsisa64-* | mipsisa64el-* \
- | mipsisa64r2-* | mipsisa64r2el-* \
- | mipsisa64r6-* | mipsisa64r6el-* \
- | mipsisa64sb1-* | mipsisa64sb1el-* \
- | mipsisa64sr71k-* | mipsisa64sr71kel-* \
- | mipsr5900-* | mipsr5900el-* \
- | mipstx39-* | mipstx39el-* \
- | mmix-* \
- | mt-* \
- | msp430-* \
- | nds32-* | nds32le-* | nds32be-* \
- | nios-* | nios2-* | nios2eb-* | nios2el-* \
- | none-* | np1-* | ns16k-* | ns32k-* \
- | open8-* \
- | or1k*-* \
- | orion-* \
- | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
- | pyramid-* \
- | rl78-* | romp-* | rs6000-* | rx-* \
- | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
- | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
- | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
- | sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
- | tahoe-* \
- | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
- | tile*-* \
- | tron-* \
- | ubicom32-* \
- | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
- | vax-* \
- | we32k-* \
- | x86-* | x86_64-* | xc16x-* | xps100-* \
- | xstormy16-* | xtensa*-* \
- | ymp-* \
- | z8k-* | z80-*)
- ;;
- # Recognize the basic CPU types without company name, with glob match.
- xtensa*)
- basic_machine=$basic_machine-unknown
- ;;
- # Recognize the various machine names and aliases which stand
- # for a CPU type and a company and sometimes even an OS.
- 386bsd)
- basic_machine=i386-unknown
- os=-bsd
- ;;
- 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
- basic_machine=m68000-att
- ;;
- 3b*)
- basic_machine=we32k-att
- ;;
- a29khif)
- basic_machine=a29k-amd
- os=-udi
- ;;
- abacus)
- basic_machine=abacus-unknown
- ;;
- adobe68k)
- basic_machine=m68010-adobe
- os=-scout
- ;;
- alliant | fx80)
- basic_machine=fx80-alliant
- ;;
- altos | altos3068)
- basic_machine=m68k-altos
- ;;
- am29k)
- basic_machine=a29k-none
- os=-bsd
- ;;
- amd64)
- basic_machine=x86_64-pc
- ;;
- amd64-*)
- basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- amdahl)
- basic_machine=580-amdahl
- os=-sysv
- ;;
- amiga | amiga-*)
- basic_machine=m68k-unknown
- ;;
- amigaos | amigados)
- basic_machine=m68k-unknown
- os=-amigaos
- ;;
- amigaunix | amix)
- basic_machine=m68k-unknown
- os=-sysv4
- ;;
- apollo68)
- basic_machine=m68k-apollo
- os=-sysv
- ;;
- apollo68bsd)
- basic_machine=m68k-apollo
- os=-bsd
- ;;
- aros)
- basic_machine=i386-pc
- os=-aros
- ;;
- aux)
- basic_machine=m68k-apple
- os=-aux
- ;;
- balance)
- basic_machine=ns32k-sequent
- os=-dynix
- ;;
- blackfin)
- basic_machine=bfin-unknown
- os=-linux
- ;;
- blackfin-*)
- basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
- os=-linux
- ;;
- bluegene*)
- basic_machine=powerpc-ibm
- os=-cnk
- ;;
- c54x-*)
- basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- c55x-*)
- basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- c6x-*)
- basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- c90)
- basic_machine=c90-cray
- os=-unicos
- ;;
- cegcc)
- basic_machine=arm-unknown
- os=-cegcc
- ;;
- convex-c1)
- basic_machine=c1-convex
- os=-bsd
- ;;
- convex-c2)
- basic_machine=c2-convex
- os=-bsd
- ;;
- convex-c32)
- basic_machine=c32-convex
- os=-bsd
- ;;
- convex-c34)
- basic_machine=c34-convex
- os=-bsd
- ;;
- convex-c38)
- basic_machine=c38-convex
- os=-bsd
- ;;
- cray | j90)
- basic_machine=j90-cray
- os=-unicos
- ;;
- craynv)
- basic_machine=craynv-cray
- os=-unicosmp
- ;;
- cr16 | cr16-*)
- basic_machine=cr16-unknown
- os=-elf
- ;;
- crds | unos)
- basic_machine=m68k-crds
- ;;
- crisv32 | crisv32-* | etraxfs*)
- basic_machine=crisv32-axis
- ;;
- cris | cris-* | etrax*)
- basic_machine=cris-axis
- ;;
- crx)
- basic_machine=crx-unknown
- os=-elf
- ;;
- da30 | da30-*)
- basic_machine=m68k-da30
- ;;
- decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
- basic_machine=mips-dec
- ;;
- decsystem10* | dec10*)
- basic_machine=pdp10-dec
- os=-tops10
- ;;
- decsystem20* | dec20*)
- basic_machine=pdp10-dec
- os=-tops20
- ;;
- delta | 3300 | motorola-3300 | motorola-delta \
- | 3300-motorola | delta-motorola)
- basic_machine=m68k-motorola
- ;;
- delta88)
- basic_machine=m88k-motorola
- os=-sysv3
- ;;
- dicos)
- basic_machine=i686-pc
- os=-dicos
- ;;
- djgpp)
- basic_machine=i586-pc
- os=-msdosdjgpp
- ;;
- dpx20 | dpx20-*)
- basic_machine=rs6000-bull
- os=-bosx
- ;;
- dpx2* | dpx2*-bull)
- basic_machine=m68k-bull
- os=-sysv3
- ;;
- ebmon29k)
- basic_machine=a29k-amd
- os=-ebmon
- ;;
- elxsi)
- basic_machine=elxsi-elxsi
- os=-bsd
- ;;
- encore | umax | mmax)
- basic_machine=ns32k-encore
- ;;
- es1800 | OSE68k | ose68k | ose | OSE)
- basic_machine=m68k-ericsson
- os=-ose
- ;;
- fx2800)
- basic_machine=i860-alliant
- ;;
- genix)
- basic_machine=ns32k-ns
- ;;
- gmicro)
- basic_machine=tron-gmicro
- os=-sysv
- ;;
- go32)
- basic_machine=i386-pc
- os=-go32
- ;;
- h3050r* | hiux*)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- h8300hms)
- basic_machine=h8300-hitachi
- os=-hms
- ;;
- h8300xray)
- basic_machine=h8300-hitachi
- os=-xray
- ;;
- h8500hms)
- basic_machine=h8500-hitachi
- os=-hms
- ;;
- harris)
- basic_machine=m88k-harris
- os=-sysv3
- ;;
- hp300-*)
- basic_machine=m68k-hp
- ;;
- hp300bsd)
- basic_machine=m68k-hp
- os=-bsd
- ;;
- hp300hpux)
- basic_machine=m68k-hp
- os=-hpux
- ;;
- hp3k9[0-9][0-9] | hp9[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k2[0-9][0-9] | hp9k31[0-9])
- basic_machine=m68000-hp
- ;;
- hp9k3[2-9][0-9])
- basic_machine=m68k-hp
- ;;
- hp9k6[0-9][0-9] | hp6[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k7[0-79][0-9] | hp7[0-79][0-9])
- basic_machine=hppa1.1-hp
- ;;
- hp9k78[0-9] | hp78[0-9])
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][13679] | hp8[0-9][13679])
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][0-9] | hp8[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hppa-next)
- os=-nextstep3
- ;;
- hppaosf)
- basic_machine=hppa1.1-hp
- os=-osf
- ;;
- hppro)
- basic_machine=hppa1.1-hp
- os=-proelf
- ;;
- i370-ibm* | ibm*)
- basic_machine=i370-ibm
- ;;
- i*86v32)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv32
- ;;
- i*86v4*)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv4
- ;;
- i*86v)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv
- ;;
- i*86sol2)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-solaris2
- ;;
- i386mach)
- basic_machine=i386-mach
- os=-mach
- ;;
- i386-vsta | vsta)
- basic_machine=i386-unknown
- os=-vsta
- ;;
- iris | iris4d)
- basic_machine=mips-sgi
- case $os in
- -irix*)
- ;;
- *)
- os=-irix4
- ;;
- esac
- ;;
- isi68 | isi)
- basic_machine=m68k-isi
- os=-sysv
- ;;
- m68knommu)
- basic_machine=m68k-unknown
- os=-linux
- ;;
- m68knommu-*)
- basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
- os=-linux
- ;;
- m88k-omron*)
- basic_machine=m88k-omron
- ;;
- magnum | m3230)
- basic_machine=mips-mips
- os=-sysv
- ;;
- merlin)
- basic_machine=ns32k-utek
- os=-sysv
- ;;
- microblaze*)
- basic_machine=microblaze-xilinx
- ;;
- mingw64)
- basic_machine=x86_64-pc
- os=-mingw64
- ;;
- mingw32)
- basic_machine=i686-pc
- os=-mingw32
- ;;
- mingw32ce)
- basic_machine=arm-unknown
- os=-mingw32ce
- ;;
- miniframe)
- basic_machine=m68000-convergent
- ;;
- *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
- mips3*-*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
- ;;
- mips3*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
- ;;
- monitor)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- morphos)
- basic_machine=powerpc-unknown
- os=-morphos
- ;;
- moxiebox)
- basic_machine=moxie-unknown
- os=-moxiebox
- ;;
- msdos)
- basic_machine=i386-pc
- os=-msdos
- ;;
- ms1-*)
- basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
- ;;
- msys)
- basic_machine=i686-pc
- os=-msys
- ;;
- mvs)
- basic_machine=i370-ibm
- os=-mvs
- ;;
- nacl)
- basic_machine=le32-unknown
- os=-nacl
- ;;
- ncr3000)
- basic_machine=i486-ncr
- os=-sysv4
- ;;
- netbsd386)
- basic_machine=i386-unknown
- os=-netbsd
- ;;
- netwinder)
- basic_machine=armv4l-rebel
- os=-linux
- ;;
- news | news700 | news800 | news900)
- basic_machine=m68k-sony
- os=-newsos
- ;;
- news1000)
- basic_machine=m68030-sony
- os=-newsos
- ;;
- news-3600 | risc-news)
- basic_machine=mips-sony
- os=-newsos
- ;;
- necv70)
- basic_machine=v70-nec
- os=-sysv
- ;;
- next | m*-next )
- basic_machine=m68k-next
- case $os in
- -nextstep* )
- ;;
- -ns2*)
- os=-nextstep2
- ;;
- *)
- os=-nextstep3
- ;;
- esac
- ;;
- nh3000)
- basic_machine=m68k-harris
- os=-cxux
- ;;
- nh[45]000)
- basic_machine=m88k-harris
- os=-cxux
- ;;
- nindy960)
- basic_machine=i960-intel
- os=-nindy
- ;;
- mon960)
- basic_machine=i960-intel
- os=-mon960
- ;;
- nonstopux)
- basic_machine=mips-compaq
- os=-nonstopux
- ;;
- np1)
- basic_machine=np1-gould
- ;;
- neo-tandem)
- basic_machine=neo-tandem
- ;;
- nse-tandem)
- basic_machine=nse-tandem
- ;;
- nsr-tandem)
- basic_machine=nsr-tandem
- ;;
- op50n-* | op60c-*)
- basic_machine=hppa1.1-oki
- os=-proelf
- ;;
- openrisc | openrisc-*)
- basic_machine=or32-unknown
- ;;
- os400)
- basic_machine=powerpc-ibm
- os=-os400
- ;;
- OSE68000 | ose68000)
- basic_machine=m68000-ericsson
- os=-ose
- ;;
- os68k)
- basic_machine=m68k-none
- os=-os68k
- ;;
- pa-hitachi)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- paragon)
- basic_machine=i860-intel
- os=-osf
- ;;
- parisc)
- basic_machine=hppa-unknown
- os=-linux
- ;;
- parisc-*)
- basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
- os=-linux
- ;;
- pbd)
- basic_machine=sparc-tti
- ;;
- pbb)
- basic_machine=m68k-tti
- ;;
- pc532 | pc532-*)
- basic_machine=ns32k-pc532
- ;;
- pc98)
- basic_machine=i386-pc
- ;;
- pc98-*)
- basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentium | p5 | k5 | k6 | nexgen | viac3)
- basic_machine=i586-pc
- ;;
- pentiumpro | p6 | 6x86 | athlon | athlon_*)
- basic_machine=i686-pc
- ;;
- pentiumii | pentium2 | pentiumiii | pentium3)
- basic_machine=i686-pc
- ;;
- pentium4)
- basic_machine=i786-pc
- ;;
- pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
- basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumpro-* | p6-* | 6x86-* | athlon-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentium4-*)
- basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pn)
- basic_machine=pn-gould
- ;;
- power) basic_machine=power-ibm
- ;;
- ppc | ppcbe) basic_machine=powerpc-unknown
- ;;
- ppc-* | ppcbe-*)
- basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppcle | powerpclittle | ppc-le | powerpc-little)
- basic_machine=powerpcle-unknown
- ;;
- ppcle-* | powerpclittle-*)
- basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64) basic_machine=powerpc64-unknown
- ;;
- ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64le | powerpc64little | ppc64-le | powerpc64-little)
- basic_machine=powerpc64le-unknown
- ;;
- ppc64le-* | powerpc64little-*)
- basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ps2)
- basic_machine=i386-ibm
- ;;
- pw32)
- basic_machine=i586-unknown
- os=-pw32
- ;;
- rdos | rdos64)
- basic_machine=x86_64-pc
- os=-rdos
- ;;
- rdos32)
- basic_machine=i386-pc
- os=-rdos
- ;;
- rom68k)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- rm[46]00)
- basic_machine=mips-siemens
- ;;
- rtpc | rtpc-*)
- basic_machine=romp-ibm
- ;;
- s390 | s390-*)
- basic_machine=s390-ibm
- ;;
- s390x | s390x-*)
- basic_machine=s390x-ibm
- ;;
- sa29200)
- basic_machine=a29k-amd
- os=-udi
- ;;
- sb1)
- basic_machine=mipsisa64sb1-unknown
- ;;
- sb1el)
- basic_machine=mipsisa64sb1el-unknown
- ;;
- sde)
- basic_machine=mipsisa32-sde
- os=-elf
- ;;
- sei)
- basic_machine=mips-sei
- os=-seiux
- ;;
- sequent)
- basic_machine=i386-sequent
- ;;
- sh)
- basic_machine=sh-hitachi
- os=-hms
- ;;
- sh5el)
- basic_machine=sh5le-unknown
- ;;
- sh64)
- basic_machine=sh64-unknown
- ;;
- sparclite-wrs | simso-wrs)
- basic_machine=sparclite-wrs
- os=-vxworks
- ;;
- sps7)
- basic_machine=m68k-bull
- os=-sysv2
- ;;
- spur)
- basic_machine=spur-unknown
- ;;
- st2000)
- basic_machine=m68k-tandem
- ;;
- stratus)
- basic_machine=i860-stratus
- os=-sysv4
- ;;
- strongarm-* | thumb-*)
- basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- sun2)
- basic_machine=m68000-sun
- ;;
- sun2os3)
- basic_machine=m68000-sun
- os=-sunos3
- ;;
- sun2os4)
- basic_machine=m68000-sun
- os=-sunos4
- ;;
- sun3os3)
- basic_machine=m68k-sun
- os=-sunos3
- ;;
- sun3os4)
- basic_machine=m68k-sun
- os=-sunos4
- ;;
- sun4os3)
- basic_machine=sparc-sun
- os=-sunos3
- ;;
- sun4os4)
- basic_machine=sparc-sun
- os=-sunos4
- ;;
- sun4sol2)
- basic_machine=sparc-sun
- os=-solaris2
- ;;
- sun3 | sun3-*)
- basic_machine=m68k-sun
- ;;
- sun4)
- basic_machine=sparc-sun
- ;;
- sun386 | sun386i | roadrunner)
- basic_machine=i386-sun
- ;;
- sv1)
- basic_machine=sv1-cray
- os=-unicos
- ;;
- symmetry)
- basic_machine=i386-sequent
- os=-dynix
- ;;
- t3e)
- basic_machine=alphaev5-cray
- os=-unicos
- ;;
- t90)
- basic_machine=t90-cray
- os=-unicos
- ;;
- tile*)
- basic_machine=$basic_machine-unknown
- os=-linux-gnu
- ;;
- tx39)
- basic_machine=mipstx39-unknown
- ;;
- tx39el)
- basic_machine=mipstx39el-unknown
- ;;
- toad1)
- basic_machine=pdp10-xkl
- os=-tops20
- ;;
- tower | tower-32)
- basic_machine=m68k-ncr
- ;;
- tpf)
- basic_machine=s390x-ibm
- os=-tpf
- ;;
- udi29k)
- basic_machine=a29k-amd
- os=-udi
- ;;
- ultra3)
- basic_machine=a29k-nyu
- os=-sym1
- ;;
- v810 | necv810)
- basic_machine=v810-nec
- os=-none
- ;;
- vaxv)
- basic_machine=vax-dec
- os=-sysv
- ;;
- vms)
- basic_machine=vax-dec
- os=-vms
- ;;
- vpp*|vx|vx-*)
- basic_machine=f301-fujitsu
- ;;
- vxworks960)
- basic_machine=i960-wrs
- os=-vxworks
- ;;
- vxworks68)
- basic_machine=m68k-wrs
- os=-vxworks
- ;;
- vxworks29k)
- basic_machine=a29k-wrs
- os=-vxworks
- ;;
- w65*)
- basic_machine=w65-wdc
- os=-none
- ;;
- w89k-*)
- basic_machine=hppa1.1-winbond
- os=-proelf
- ;;
- xbox)
- basic_machine=i686-pc
- os=-mingw32
- ;;
- xps | xps100)
- basic_machine=xps100-honeywell
- ;;
- xscale-* | xscalee[bl]-*)
- basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
- ;;
- ymp)
- basic_machine=ymp-cray
- os=-unicos
- ;;
- z8k-*-coff)
- basic_machine=z8k-unknown
- os=-sim
- ;;
- z80-*-coff)
- basic_machine=z80-unknown
- os=-sim
- ;;
- none)
- basic_machine=none-none
- os=-none
- ;;
-
-# Here we handle the default manufacturer of certain CPU types. It is in
-# some cases the only manufacturer, in others, it is the most popular.
- w89k)
- basic_machine=hppa1.1-winbond
- ;;
- op50n)
- basic_machine=hppa1.1-oki
- ;;
- op60c)
- basic_machine=hppa1.1-oki
- ;;
- romp)
- basic_machine=romp-ibm
- ;;
- mmix)
- basic_machine=mmix-knuth
- ;;
- rs6000)
- basic_machine=rs6000-ibm
- ;;
- vax)
- basic_machine=vax-dec
- ;;
- pdp10)
- # there are many clones, so DEC is not a safe bet
- basic_machine=pdp10-unknown
- ;;
- pdp11)
- basic_machine=pdp11-dec
- ;;
- we32k)
- basic_machine=we32k-att
- ;;
- sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
- basic_machine=sh-unknown
- ;;
- sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
- basic_machine=sparc-sun
- ;;
- cydra)
- basic_machine=cydra-cydrome
- ;;
- orion)
- basic_machine=orion-highlevel
- ;;
- orion105)
- basic_machine=clipper-highlevel
- ;;
- mac | mpw | mac-mpw)
- basic_machine=m68k-apple
- ;;
- pmac | pmac-mpw)
- basic_machine=powerpc-apple
- ;;
- *-unknown)
- # Make sure to match an already-canonicalized machine name.
- ;;
- *)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
-esac
-
-# Here we canonicalize certain aliases for manufacturers.
-case $basic_machine in
- *-digital*)
- basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
- ;;
- *-commodore*)
- basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
- ;;
- *)
- ;;
-esac
-
-# Decode manufacturer-specific aliases for certain operating systems.
-
-if [ x"$os" != x"" ]
-then
-case $os in
- # First match some system type aliases
- # that might get confused with valid system types.
- # -solaris* is a basic system type, with this one exception.
- -auroraux)
- os=-auroraux
- ;;
- -solaris1 | -solaris1.*)
- os=`echo $os | sed -e 's|solaris1|sunos4|'`
- ;;
- -solaris)
- os=-solaris2
- ;;
- -svr4*)
- os=-sysv4
- ;;
- -unixware*)
- os=-sysv4.2uw
- ;;
- -gnu/linux*)
- os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
- ;;
- # First accept the basic system types.
- # The portable systems comes first.
- # Each alternative MUST END IN A *, to match a version number.
- # -sysv* is not here because it comes later, after sysvr4.
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
- | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
- | -sym* | -kopensolaris* | -plan9* \
- | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* | -aros* \
- | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
- | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
- | -bitrig* | -openbsd* | -solidbsd* \
- | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
- | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* | -cegcc* \
- | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
- | -linux-newlib* | -linux-musl* | -linux-uclibc* \
- | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
- | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
- | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
- | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
- | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
- | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
- # Remember, each alternative MUST END IN *, to match a version number.
- ;;
- -qnx*)
- case $basic_machine in
- x86-* | i*86-*)
- ;;
- *)
- os=-nto$os
- ;;
- esac
- ;;
- -nto-qnx*)
- ;;
- -nto*)
- os=`echo $os | sed -e 's|nto|nto-qnx|'`
- ;;
- -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
- | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
- ;;
- -mac*)
- os=`echo $os | sed -e 's|mac|macos|'`
- ;;
- -linux-dietlibc)
- os=-linux-dietlibc
- ;;
- -linux*)
- os=`echo $os | sed -e 's|linux|linux-gnu|'`
- ;;
- -sunos5*)
- os=`echo $os | sed -e 's|sunos5|solaris2|'`
- ;;
- -sunos6*)
- os=`echo $os | sed -e 's|sunos6|solaris3|'`
- ;;
- -opened*)
- os=-openedition
- ;;
- -os400*)
- os=-os400
- ;;
- -wince*)
- os=-wince
- ;;
- -osfrose*)
- os=-osfrose
- ;;
- -osf*)
- os=-osf
- ;;
- -utek*)
- os=-bsd
- ;;
- -dynix*)
- os=-bsd
- ;;
- -acis*)
- os=-aos
- ;;
- -atheos*)
- os=-atheos
- ;;
- -syllable*)
- os=-syllable
- ;;
- -386bsd)
- os=-bsd
- ;;
- -ctix* | -uts*)
- os=-sysv
- ;;
- -nova*)
- os=-rtmk-nova
- ;;
- -ns2 )
- os=-nextstep2
- ;;
- -nsk*)
- os=-nsk
- ;;
- # Preserve the version number of sinix5.
- -sinix5.*)
- os=`echo $os | sed -e 's|sinix|sysv|'`
- ;;
- -sinix*)
- os=-sysv4
- ;;
- -tpf*)
- os=-tpf
- ;;
- -triton*)
- os=-sysv3
- ;;
- -oss*)
- os=-sysv3
- ;;
- -svr4)
- os=-sysv4
- ;;
- -svr3)
- os=-sysv3
- ;;
- -sysvr4)
- os=-sysv4
- ;;
- # This must come after -sysvr4.
- -sysv*)
- ;;
- -ose*)
- os=-ose
- ;;
- -es1800*)
- os=-ose
- ;;
- -xenix)
- os=-xenix
- ;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- os=-mint
- ;;
- -aros*)
- os=-aros
- ;;
- -zvmoe)
- os=-zvmoe
- ;;
- -dicos*)
- os=-dicos
- ;;
- -nacl*)
- ;;
- -none)
- ;;
- *)
- # Get rid of the `-' at the beginning of $os.
- os=`echo $os | sed 's/[^-]*-//'`
- echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
- exit 1
- ;;
-esac
-else
-
-# Here we handle the default operating systems that come with various machines.
-# The value should be what the vendor currently ships out the door with their
-# machine or put another way, the most popular os provided with the machine.
-
-# Note that if you're going to try to match "-MANUFACTURER" here (say,
-# "-sun"), then you have to tell the case statement up towards the top
-# that MANUFACTURER isn't an operating system. Otherwise, code above
-# will signal an error saying that MANUFACTURER isn't an operating
-# system, and we'll never get to this point.
-
-case $basic_machine in
- score-*)
- os=-elf
- ;;
- spu-*)
- os=-elf
- ;;
- *-acorn)
- os=-riscix1.2
- ;;
- arm*-rebel)
- os=-linux
- ;;
- arm*-semi)
- os=-aout
- ;;
- c4x-* | tic4x-*)
- os=-coff
- ;;
- c8051-*)
- os=-elf
- ;;
- hexagon-*)
- os=-elf
- ;;
- tic54x-*)
- os=-coff
- ;;
- tic55x-*)
- os=-coff
- ;;
- tic6x-*)
- os=-coff
- ;;
- # This must come before the *-dec entry.
- pdp10-*)
- os=-tops20
- ;;
- pdp11-*)
- os=-none
- ;;
- *-dec | vax-*)
- os=-ultrix4.2
- ;;
- m68*-apollo)
- os=-domain
- ;;
- i386-sun)
- os=-sunos4.0.2
- ;;
- m68000-sun)
- os=-sunos3
- ;;
- m68*-cisco)
- os=-aout
- ;;
- mep-*)
- os=-elf
- ;;
- mips*-cisco)
- os=-elf
- ;;
- mips*-*)
- os=-elf
- ;;
- or32-*)
- os=-coff
- ;;
- *-tti) # must be before sparc entry or we get the wrong os.
- os=-sysv3
- ;;
- sparc-* | *-sun)
- os=-sunos4.1.1
- ;;
- *-be)
- os=-beos
- ;;
- *-haiku)
- os=-haiku
- ;;
- *-ibm)
- os=-aix
- ;;
- *-knuth)
- os=-mmixware
- ;;
- *-wec)
- os=-proelf
- ;;
- *-winbond)
- os=-proelf
- ;;
- *-oki)
- os=-proelf
- ;;
- *-hp)
- os=-hpux
- ;;
- *-hitachi)
- os=-hiux
- ;;
- i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
- os=-sysv
- ;;
- *-cbm)
- os=-amigaos
- ;;
- *-dg)
- os=-dgux
- ;;
- *-dolphin)
- os=-sysv3
- ;;
- m68k-ccur)
- os=-rtu
- ;;
- m88k-omron*)
- os=-luna
- ;;
- *-next )
- os=-nextstep
- ;;
- *-sequent)
- os=-ptx
- ;;
- *-crds)
- os=-unos
- ;;
- *-ns)
- os=-genix
- ;;
- i370-*)
- os=-mvs
- ;;
- *-next)
- os=-nextstep3
- ;;
- *-gould)
- os=-sysv
- ;;
- *-highlevel)
- os=-bsd
- ;;
- *-encore)
- os=-bsd
- ;;
- *-sgi)
- os=-irix
- ;;
- *-siemens)
- os=-sysv4
- ;;
- *-masscomp)
- os=-rtu
- ;;
- f30[01]-fujitsu | f700-fujitsu)
- os=-uxpv
- ;;
- *-rom68k)
- os=-coff
- ;;
- *-*bug)
- os=-coff
- ;;
- *-apple)
- os=-macos
- ;;
- *-atari*)
- os=-mint
- ;;
- *)
- os=-none
- ;;
-esac
-fi
-
-# Here we handle the case where we know the os, and the CPU type, but not the
-# manufacturer. We pick the logical manufacturer.
-vendor=unknown
-case $basic_machine in
- *-unknown)
- case $os in
- -riscix*)
- vendor=acorn
- ;;
- -sunos*)
- vendor=sun
- ;;
- -cnk*|-aix*)
- vendor=ibm
- ;;
- -beos*)
- vendor=be
- ;;
- -hpux*)
- vendor=hp
- ;;
- -mpeix*)
- vendor=hp
- ;;
- -hiux*)
- vendor=hitachi
- ;;
- -unos*)
- vendor=crds
- ;;
- -dgux*)
- vendor=dg
- ;;
- -luna*)
- vendor=omron
- ;;
- -genix*)
- vendor=ns
- ;;
- -mvs* | -opened*)
- vendor=ibm
- ;;
- -os400*)
- vendor=ibm
- ;;
- -ptx*)
- vendor=sequent
- ;;
- -tpf*)
- vendor=ibm
- ;;
- -vxsim* | -vxworks* | -windiss*)
- vendor=wrs
- ;;
- -aux*)
- vendor=apple
- ;;
- -hms*)
- vendor=hitachi
- ;;
- -mpw* | -macos*)
- vendor=apple
- ;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- vendor=atari
- ;;
- -vos*)
- vendor=stratus
- ;;
- esac
- basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
- ;;
-esac
-
-echo $basic_machine$os
-exit
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/src/config/depcomp b/src/config/depcomp
deleted file mode 100755
index 4ebd5b3a..00000000
--- a/src/config/depcomp
+++ /dev/null
@@ -1,791 +0,0 @@
-#! /bin/sh
-# depcomp - compile a program generating dependencies as side-effects
-
-scriptversion=2013-05-30.07; # UTC
-
-# Copyright (C) 1999-2013 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
-
-case $1 in
- '')
- echo "$0: No command. Try '$0 --help' for more information." 1>&2
- exit 1;
- ;;
- -h | --h*)
- cat <<\EOF
-Usage: depcomp [--help] [--version] PROGRAM [ARGS]
-
-Run PROGRAMS ARGS to compile a file, generating dependencies
-as side-effects.
-
-Environment variables:
- depmode Dependency tracking mode.
- source Source file read by 'PROGRAMS ARGS'.
- object Object file output by 'PROGRAMS ARGS'.
- DEPDIR directory where to store dependencies.
- depfile Dependency file to output.
- tmpdepfile Temporary file to use when outputting dependencies.
- libtool Whether libtool is used (yes/no).
-
-Report bugs to <bug-automake@gnu.org>.
-EOF
- exit $?
- ;;
- -v | --v*)
- echo "depcomp $scriptversion"
- exit $?
- ;;
-esac
-
-# Get the directory component of the given path, and save it in the
-# global variables '$dir'. Note that this directory component will
-# be either empty or ending with a '/' character. This is deliberate.
-set_dir_from ()
-{
- case $1 in
- */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
- *) dir=;;
- esac
-}
-
-# Get the suffix-stripped basename of the given path, and save it the
-# global variable '$base'.
-set_base_from ()
-{
- base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
-}
-
-# If no dependency file was actually created by the compiler invocation,
-# we still have to create a dummy depfile, to avoid errors with the
-# Makefile "include basename.Plo" scheme.
-make_dummy_depfile ()
-{
- echo "#dummy" > "$depfile"
-}
-
-# Factor out some common post-processing of the generated depfile.
-# Requires the auxiliary global variable '$tmpdepfile' to be set.
-aix_post_process_depfile ()
-{
- # If the compiler actually managed to produce a dependency file,
- # post-process it.
- if test -f "$tmpdepfile"; then
- # Each line is of the form 'foo.o: dependency.h'.
- # Do two passes, one to just change these to
- # $object: dependency.h
- # and one to simply output
- # dependency.h:
- # which is needed to avoid the deleted-header problem.
- { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
- sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
- } > "$depfile"
- rm -f "$tmpdepfile"
- else
- make_dummy_depfile
- fi
-}
-
-# A tabulation character.
-tab=' '
-# A newline character.
-nl='
-'
-# Character ranges might be problematic outside the C locale.
-# These definitions help.
-upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
-lower=abcdefghijklmnopqrstuvwxyz
-digits=0123456789
-alpha=${upper}${lower}
-
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
- echo "depcomp: Variables source, object and depmode must be set" 1>&2
- exit 1
-fi
-
-# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
-depfile=${depfile-`echo "$object" |
- sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
-tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
-
-rm -f "$tmpdepfile"
-
-# Avoid interferences from the environment.
-gccflag= dashmflag=
-
-# Some modes work just like other modes, but use different flags. We
-# parameterize here, but still list the modes in the big case below,
-# to make depend.m4 easier to write. Note that we *cannot* use a case
-# here, because this file can only contain one case statement.
-if test "$depmode" = hp; then
- # HP compiler uses -M and no extra arg.
- gccflag=-M
- depmode=gcc
-fi
-
-if test "$depmode" = dashXmstdout; then
- # This is just like dashmstdout with a different argument.
- dashmflag=-xM
- depmode=dashmstdout
-fi
-
-cygpath_u="cygpath -u -f -"
-if test "$depmode" = msvcmsys; then
- # This is just like msvisualcpp but w/o cygpath translation.
- # Just convert the backslash-escaped backslashes to single forward
- # slashes to satisfy depend.m4
- cygpath_u='sed s,\\\\,/,g'
- depmode=msvisualcpp
-fi
-
-if test "$depmode" = msvc7msys; then
- # This is just like msvc7 but w/o cygpath translation.
- # Just convert the backslash-escaped backslashes to single forward
- # slashes to satisfy depend.m4
- cygpath_u='sed s,\\\\,/,g'
- depmode=msvc7
-fi
-
-if test "$depmode" = xlc; then
- # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
- gccflag=-qmakedep=gcc,-MF
- depmode=gcc
-fi
-
-case "$depmode" in
-gcc3)
-## gcc 3 implements dependency tracking that does exactly what
-## we want. Yay! Note: for some reason libtool 1.4 doesn't like
-## it if -MD -MP comes after the -MF stuff. Hmm.
-## Unfortunately, FreeBSD c89 acceptance of flags depends upon
-## the command line argument order; so add the flags where they
-## appear in depend2.am. Note that the slowdown incurred here
-## affects only configure: in makefiles, %FASTDEP% shortcuts this.
- for arg
- do
- case $arg in
- -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
- *) set fnord "$@" "$arg" ;;
- esac
- shift # fnord
- shift # $arg
- done
- "$@"
- stat=$?
- if test $stat -ne 0; then
- rm -f "$tmpdepfile"
- exit $stat
- fi
- mv "$tmpdepfile" "$depfile"
- ;;
-
-gcc)
-## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
-## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
-## (see the conditional assignment to $gccflag above).
-## There are various ways to get dependency output from gcc. Here's
-## why we pick this rather obscure method:
-## - Don't want to use -MD because we'd like the dependencies to end
-## up in a subdir. Having to rename by hand is ugly.
-## (We might end up doing this anyway to support other compilers.)
-## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
-## -MM, not -M (despite what the docs say). Also, it might not be
-## supported by the other compilers which use the 'gcc' depmode.
-## - Using -M directly means running the compiler twice (even worse
-## than renaming).
- if test -z "$gccflag"; then
- gccflag=-MD,
- fi
- "$@" -Wp,"$gccflag$tmpdepfile"
- stat=$?
- if test $stat -ne 0; then
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
- echo "$object : \\" > "$depfile"
- # The second -e expression handles DOS-style file names with drive
- # letters.
- sed -e 's/^[^:]*: / /' \
- -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
-## This next piece of magic avoids the "deleted header file" problem.
-## The problem is that when a header file which appears in a .P file
-## is deleted, the dependency causes make to die (because there is
-## typically no way to rebuild the header). We avoid this by adding
-## dummy dependencies for each header file. Too bad gcc doesn't do
-## this for us directly.
-## Some versions of gcc put a space before the ':'. On the theory
-## that the space means something, we add a space to the output as
-## well. hp depmode also adds that space, but also prefixes the VPATH
-## to the object. Take care to not repeat it in the output.
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly. Breaking it into two sed invocations is a workaround.
- tr ' ' "$nl" < "$tmpdepfile" \
- | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
- | sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-hp)
- # This case exists only to let depend.m4 do its work. It works by
- # looking at the text of this script. This case will never be run,
- # since it is checked for above.
- exit 1
- ;;
-
-sgi)
- if test "$libtool" = yes; then
- "$@" "-Wp,-MDupdate,$tmpdepfile"
- else
- "$@" -MDupdate "$tmpdepfile"
- fi
- stat=$?
- if test $stat -ne 0; then
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
-
- if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
- echo "$object : \\" > "$depfile"
- # Clip off the initial element (the dependent). Don't try to be
- # clever and replace this with sed code, as IRIX sed won't handle
- # lines with more than a fixed number of characters (4096 in
- # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
- # the IRIX cc adds comments like '#:fec' to the end of the
- # dependency line.
- tr ' ' "$nl" < "$tmpdepfile" \
- | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
- | tr "$nl" ' ' >> "$depfile"
- echo >> "$depfile"
- # The second pass generates a dummy entry for each header file.
- tr ' ' "$nl" < "$tmpdepfile" \
- | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
- >> "$depfile"
- else
- make_dummy_depfile
- fi
- rm -f "$tmpdepfile"
- ;;
-
-xlc)
- # This case exists only to let depend.m4 do its work. It works by
- # looking at the text of this script. This case will never be run,
- # since it is checked for above.
- exit 1
- ;;
-
-aix)
- # The C for AIX Compiler uses -M and outputs the dependencies
- # in a .u file. In older versions, this file always lives in the
- # current directory. Also, the AIX compiler puts '$object:' at the
- # start of each line; $object doesn't have directory information.
- # Version 6 uses the directory in both cases.
- set_dir_from "$object"
- set_base_from "$object"
- if test "$libtool" = yes; then
- tmpdepfile1=$dir$base.u
- tmpdepfile2=$base.u
- tmpdepfile3=$dir.libs/$base.u
- "$@" -Wc,-M
- else
- tmpdepfile1=$dir$base.u
- tmpdepfile2=$dir$base.u
- tmpdepfile3=$dir$base.u
- "$@" -M
- fi
- stat=$?
- if test $stat -ne 0; then
- rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
- exit $stat
- fi
-
- for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
- do
- test -f "$tmpdepfile" && break
- done
- aix_post_process_depfile
- ;;
-
-tcc)
- # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
- # FIXME: That version still under development at the moment of writing.
- # Make that this statement remains true also for stable, released
- # versions.
- # It will wrap lines (doesn't matter whether long or short) with a
- # trailing '\', as in:
- #
- # foo.o : \
- # foo.c \
- # foo.h \
- #
- # It will put a trailing '\' even on the last line, and will use leading
- # spaces rather than leading tabs (at least since its commit 0394caf7
- # "Emit spaces for -MD").
- "$@" -MD -MF "$tmpdepfile"
- stat=$?
- if test $stat -ne 0; then
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
- # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
- # We have to change lines of the first kind to '$object: \'.
- sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
- # And for each line of the second kind, we have to emit a 'dep.h:'
- # dummy dependency, to avoid the deleted-header problem.
- sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-## The order of this option in the case statement is important, since the
-## shell code in configure will try each of these formats in the order
-## listed in this file. A plain '-MD' option would be understood by many
-## compilers, so we must ensure this comes after the gcc and icc options.
-pgcc)
- # Portland's C compiler understands '-MD'.
- # Will always output deps to 'file.d' where file is the root name of the
- # source file under compilation, even if file resides in a subdirectory.
- # The object file name does not affect the name of the '.d' file.
- # pgcc 10.2 will output
- # foo.o: sub/foo.c sub/foo.h
- # and will wrap long lines using '\' :
- # foo.o: sub/foo.c ... \
- # sub/foo.h ... \
- # ...
- set_dir_from "$object"
- # Use the source, not the object, to determine the base name, since
- # that's sadly what pgcc will do too.
- set_base_from "$source"
- tmpdepfile=$base.d
-
- # For projects that build the same source file twice into different object
- # files, the pgcc approach of using the *source* file root name can cause
- # problems in parallel builds. Use a locking strategy to avoid stomping on
- # the same $tmpdepfile.
- lockdir=$base.d-lock
- trap "
- echo '$0: caught signal, cleaning up...' >&2
- rmdir '$lockdir'
- exit 1
- " 1 2 13 15
- numtries=100
- i=$numtries
- while test $i -gt 0; do
- # mkdir is a portable test-and-set.
- if mkdir "$lockdir" 2>/dev/null; then
- # This process acquired the lock.
- "$@" -MD
- stat=$?
- # Release the lock.
- rmdir "$lockdir"
- break
- else
- # If the lock is being held by a different process, wait
- # until the winning process is done or we timeout.
- while test -d "$lockdir" && test $i -gt 0; do
- sleep 1
- i=`expr $i - 1`
- done
- fi
- i=`expr $i - 1`
- done
- trap - 1 2 13 15
- if test $i -le 0; then
- echo "$0: failed to acquire lock after $numtries attempts" >&2
- echo "$0: check lockdir '$lockdir'" >&2
- exit 1
- fi
-
- if test $stat -ne 0; then
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
- # Each line is of the form `foo.o: dependent.h',
- # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
- # Do two passes, one to just change these to
- # `$object: dependent.h' and one to simply `dependent.h:'.
- sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
- # Some versions of the HPUX 10.20 sed can't process this invocation
- # correctly. Breaking it into two sed invocations is a workaround.
- sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
- | sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-hp2)
- # The "hp" stanza above does not work with aCC (C++) and HP's ia64
- # compilers, which have integrated preprocessors. The correct option
- # to use with these is +Maked; it writes dependencies to a file named
- # 'foo.d', which lands next to the object file, wherever that
- # happens to be.
- # Much of this is similar to the tru64 case; see comments there.
- set_dir_from "$object"
- set_base_from "$object"
- if test "$libtool" = yes; then
- tmpdepfile1=$dir$base.d
- tmpdepfile2=$dir.libs/$base.d
- "$@" -Wc,+Maked
- else
- tmpdepfile1=$dir$base.d
- tmpdepfile2=$dir$base.d
- "$@" +Maked
- fi
- stat=$?
- if test $stat -ne 0; then
- rm -f "$tmpdepfile1" "$tmpdepfile2"
- exit $stat
- fi
-
- for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
- do
- test -f "$tmpdepfile" && break
- done
- if test -f "$tmpdepfile"; then
- sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
- # Add 'dependent.h:' lines.
- sed -ne '2,${
- s/^ *//
- s/ \\*$//
- s/$/:/
- p
- }' "$tmpdepfile" >> "$depfile"
- else
- make_dummy_depfile
- fi
- rm -f "$tmpdepfile" "$tmpdepfile2"
- ;;
-
-tru64)
- # The Tru64 compiler uses -MD to generate dependencies as a side
- # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
- # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
- # dependencies in 'foo.d' instead, so we check for that too.
- # Subdirectories are respected.
- set_dir_from "$object"
- set_base_from "$object"
-
- if test "$libtool" = yes; then
- # Libtool generates 2 separate objects for the 2 libraries. These
- # two compilations output dependencies in $dir.libs/$base.o.d and
- # in $dir$base.o.d. We have to check for both files, because
- # one of the two compilations can be disabled. We should prefer
- # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
- # automatically cleaned when .libs/ is deleted, while ignoring
- # the former would cause a distcleancheck panic.
- tmpdepfile1=$dir$base.o.d # libtool 1.5
- tmpdepfile2=$dir.libs/$base.o.d # Likewise.
- tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
- "$@" -Wc,-MD
- else
- tmpdepfile1=$dir$base.d
- tmpdepfile2=$dir$base.d
- tmpdepfile3=$dir$base.d
- "$@" -MD
- fi
-
- stat=$?
- if test $stat -ne 0; then
- rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
- exit $stat
- fi
-
- for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
- do
- test -f "$tmpdepfile" && break
- done
- # Same post-processing that is required for AIX mode.
- aix_post_process_depfile
- ;;
-
-msvc7)
- if test "$libtool" = yes; then
- showIncludes=-Wc,-showIncludes
- else
- showIncludes=-showIncludes
- fi
- "$@" $showIncludes > "$tmpdepfile"
- stat=$?
- grep -v '^Note: including file: ' "$tmpdepfile"
- if test $stat -ne 0; then
- rm -f "$tmpdepfile"
- exit $stat
- fi
- rm -f "$depfile"
- echo "$object : \\" > "$depfile"
- # The first sed program below extracts the file names and escapes
- # backslashes for cygpath. The second sed program outputs the file
- # name when reading, but also accumulates all include files in the
- # hold buffer in order to output them again at the end. This only
- # works with sed implementations that can handle large buffers.
- sed < "$tmpdepfile" -n '
-/^Note: including file: *\(.*\)/ {
- s//\1/
- s/\\/\\\\/g
- p
-}' | $cygpath_u | sort -u | sed -n '
-s/ /\\ /g
-s/\(.*\)/'"$tab"'\1 \\/p
-s/.\(.*\) \\/\1:/
-H
-$ {
- s/.*/'"$tab"'/
- G
- p
-}' >> "$depfile"
- echo >> "$depfile" # make sure the fragment doesn't end with a backslash
- rm -f "$tmpdepfile"
- ;;
-
-msvc7msys)
- # This case exists only to let depend.m4 do its work. It works by
- # looking at the text of this script. This case will never be run,
- # since it is checked for above.
- exit 1
- ;;
-
-#nosideeffect)
- # This comment above is used by automake to tell side-effect
- # dependency tracking mechanisms from slower ones.
-
-dashmstdout)
- # Important note: in order to support this mode, a compiler *must*
- # always write the preprocessed file to stdout, regardless of -o.
- "$@" || exit $?
-
- # Remove the call to Libtool.
- if test "$libtool" = yes; then
- while test "X$1" != 'X--mode=compile'; do
- shift
- done
- shift
- fi
-
- # Remove '-o $object'.
- IFS=" "
- for arg
- do
- case $arg in
- -o)
- shift
- ;;
- $object)
- shift
- ;;
- *)
- set fnord "$@" "$arg"
- shift # fnord
- shift # $arg
- ;;
- esac
- done
-
- test -z "$dashmflag" && dashmflag=-M
- # Require at least two characters before searching for ':'
- # in the target name. This is to cope with DOS-style filenames:
- # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
- "$@" $dashmflag |
- sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
- rm -f "$depfile"
- cat < "$tmpdepfile" > "$depfile"
- # Some versions of the HPUX 10.20 sed can't process this sed invocation
- # correctly. Breaking it into two sed invocations is a workaround.
- tr ' ' "$nl" < "$tmpdepfile" \
- | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
- | sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-dashXmstdout)
- # This case only exists to satisfy depend.m4. It is never actually
- # run, as this mode is specially recognized in the preamble.
- exit 1
- ;;
-
-makedepend)
- "$@" || exit $?
- # Remove any Libtool call
- if test "$libtool" = yes; then
- while test "X$1" != 'X--mode=compile'; do
- shift
- done
- shift
- fi
- # X makedepend
- shift
- cleared=no eat=no
- for arg
- do
- case $cleared in
- no)
- set ""; shift
- cleared=yes ;;
- esac
- if test $eat = yes; then
- eat=no
- continue
- fi
- case "$arg" in
- -D*|-I*)
- set fnord "$@" "$arg"; shift ;;
- # Strip any option that makedepend may not understand. Remove
- # the object too, otherwise makedepend will parse it as a source file.
- -arch)
- eat=yes ;;
- -*|$object)
- ;;
- *)
- set fnord "$@" "$arg"; shift ;;
- esac
- done
- obj_suffix=`echo "$object" | sed 's/^.*\././'`
- touch "$tmpdepfile"
- ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
- rm -f "$depfile"
- # makedepend may prepend the VPATH from the source file name to the object.
- # No need to regex-escape $object, excess matching of '.' is harmless.
- sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
- # Some versions of the HPUX 10.20 sed can't process the last invocation
- # correctly. Breaking it into two sed invocations is a workaround.
- sed '1,2d' "$tmpdepfile" \
- | tr ' ' "$nl" \
- | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
- | sed -e 's/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile" "$tmpdepfile".bak
- ;;
-
-cpp)
- # Important note: in order to support this mode, a compiler *must*
- # always write the preprocessed file to stdout.
- "$@" || exit $?
-
- # Remove the call to Libtool.
- if test "$libtool" = yes; then
- while test "X$1" != 'X--mode=compile'; do
- shift
- done
- shift
- fi
-
- # Remove '-o $object'.
- IFS=" "
- for arg
- do
- case $arg in
- -o)
- shift
- ;;
- $object)
- shift
- ;;
- *)
- set fnord "$@" "$arg"
- shift # fnord
- shift # $arg
- ;;
- esac
- done
-
- "$@" -E \
- | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
- -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
- | sed '$ s: \\$::' > "$tmpdepfile"
- rm -f "$depfile"
- echo "$object : \\" > "$depfile"
- cat < "$tmpdepfile" >> "$depfile"
- sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-msvisualcpp)
- # Important note: in order to support this mode, a compiler *must*
- # always write the preprocessed file to stdout.
- "$@" || exit $?
-
- # Remove the call to Libtool.
- if test "$libtool" = yes; then
- while test "X$1" != 'X--mode=compile'; do
- shift
- done
- shift
- fi
-
- IFS=" "
- for arg
- do
- case "$arg" in
- -o)
- shift
- ;;
- $object)
- shift
- ;;
- "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
- set fnord "$@"
- shift
- shift
- ;;
- *)
- set fnord "$@" "$arg"
- shift
- shift
- ;;
- esac
- done
- "$@" -E 2>/dev/null |
- sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
- rm -f "$depfile"
- echo "$object : \\" > "$depfile"
- sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
- echo "$tab" >> "$depfile"
- sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
- rm -f "$tmpdepfile"
- ;;
-
-msvcmsys)
- # This case exists only to let depend.m4 do its work. It works by
- # looking at the text of this script. This case will never be run,
- # since it is checked for above.
- exit 1
- ;;
-
-none)
- exec "$@"
- ;;
-
-*)
- echo "Unknown depmode $depmode" 1>&2
- exit 1
- ;;
-esac
-
-exit 0
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/src/config/elfutils.spec.in b/src/config/elfutils.spec.in
deleted file mode 100644
index 06f73fc9..00000000
--- a/src/config/elfutils.spec.in
+++ /dev/null
@@ -1,815 +0,0 @@
-# -*- rpm-spec-*-
-Summary: A collection of utilities and DSOs to handle compiled objects
-Name: elfutils
-Version: @PACKAGE_VERSION@
-Release: 1
-License: GPLv3+ and (GPLv2+ or LGPLv3+)
-Group: Development/Tools
-Source: elfutils-%{version}.tar.bz2
-Obsoletes: libelf libelf-devel
-Requires: elfutils-libelf = %{version}-%{release}
-Requires: glibc >= 2.7
-Requires: libstdc++
-
-# ExcludeArch: xxx
-
-BuildRoot: %{_tmppath}/%{name}-root
-BuildRequires: gcc >= 4.1.2-33
-BuildRequires: glibc >= 2.7
-BuildRequires: bison >= 1.875
-BuildRequires: flex >= 2.5.4a
-BuildRequires: bzip2
-BuildRequires: m4
-BuildRequires: gettext
-BuildRequires: zlib-devel
-BuildRequires: bzip2-devel
-BuildRequires: xz-devel
-BuildRequires: gcc-c++
-
-%define _gnu %{nil}
-%define _programprefix eu-
-
-%description
-Elfutils is a collection of utilities, including ld (a linker),
-nm (for listing symbols from object files), size (for listing the
-section sizes of an object or archive file), strip (for discarding
-symbols), readelf (to see the raw ELF file structures), and elflint
-(to check for well-formed ELF files). Also included are numerous
-helper libraries which implement DWARF, ELF, and machine-specific ELF
-handling.
-
-%package devel
-Summary: Development libraries to handle compiled objects.
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-Requires: elfutils = %{version}-%{release}
-Requires: elfutils-libelf-devel = %{version}-%{release}
-
-%description devel
-The elfutils-devel package contains the libraries to create
-applications for handling compiled objects. libebl provides some
-higher-level ELF access functionality. libdw provides access to
-the DWARF debugging information. libasm provides a programmable
-assembler interface.
-
-%package devel-static
-Summary: Static archives to handle compiled objects.
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-Requires: elfutils-devel = %{version}-%{release}
-
-%description devel-static
-The elfutils-devel-static archive contains the static archives
-with the code the handle compiled objects.
-
-%package libelf
-Summary: Library to read and write ELF files.
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-
-%description libelf
-The elfutils-libelf package provides a DSO which allows reading and
-writing ELF files on a high level. Third party programs depend on
-this package to read internals of ELF files. The programs of the
-elfutils package use it also to generate new ELF files.
-
-%package libelf-devel
-Summary: Development support for libelf
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-Requires: elfutils-libelf = %{version}-%{release}
-Conflicts: libelf-devel
-
-%description libelf-devel
-The elfutils-libelf-devel package contains the libraries to create
-applications for handling compiled objects. libelf allows you to
-access the internals of the ELF object file format, so you can see the
-different sections of an ELF file.
-
-%package libelf-devel-static
-Summary: Static archive of libelf
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-Requires: elfutils-libelf-devel = %{version}-%{release}
-Conflicts: libelf-devel
-
-%description libelf-devel-static
-The elfutils-libelf-static package contains the static archive
-for libelf.
-
-%prep
-%setup -q
-
-%build
-%configure --program-prefix=%{_programprefix}
-make
-
-%install
-rm -rf ${RPM_BUILD_ROOT}
-mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
-
-%makeinstall
-
-chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
-chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
-
-# XXX Nuke unpackaged files
-{ cd ${RPM_BUILD_ROOT}
- rm -f .%{_bindir}/eu-ld
- rm -f .%{_includedir}/elfutils/libasm.h
- rm -f .%{_libdir}/libasm.so
- rm -f .%{_libdir}/libasm.a
-}
-
-%check
-make check
-
-%clean
-rm -rf ${RPM_BUILD_ROOT}
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%post libelf -p /sbin/ldconfig
-
-%postun libelf -p /sbin/ldconfig
-
-%files
-%defattr(-,root,root)
-%doc COPYING COPYING-GPLV2 COPYING-LGPLV3 README TODO CONTRIBUTING
-%{_bindir}/eu-elflint
-%{_bindir}/eu-nm
-%{_bindir}/eu-readelf
-%{_bindir}/eu-size
-%{_bindir}/eu-strip
-%{_bindir}/eu-findtextrel
-%{_bindir}/eu-addr2line
-%{_bindir}/eu-elfcmp
-%{_bindir}/eu-ranlib
-%{_bindir}/eu-strings
-%{_bindir}/eu-objdump
-%{_bindir}/eu-ar
-%{_bindir}/eu-unstrip
-%{_bindir}/eu-make-debug-archive
-#%{_bindir}/eu-ld
-%{_libdir}/libasm-%{version}.so
-%{_libdir}/libdw-%{version}.so
-%{_libdir}/libasm.so.*
-%{_libdir}/libdw.so.*
-%dir %{_libdir}/elfutils
-%{_libdir}/elfutils/lib*.so
-
-%files devel
-%defattr(-,root,root)
-%{_includedir}/dwarf.h
-%dir %{_includedir}/elfutils
-%{_includedir}/elfutils/elf-knowledge.h
-#%{_includedir}/elfutils/libasm.h
-%{_includedir}/elfutils/libebl.h
-%{_includedir}/elfutils/libdw.h
-%{_includedir}/elfutils/libdwfl.h
-%{_includedir}/elfutils/libdwelf.h
-%{_libdir}/libebl.a
-#%{_libdir}/libasm.so
-%{_libdir}/libdw.so
-
-%files devel-static
-%{_libdir}/libdw.a
-#%{_libdir}/libasm.a
-
-%files libelf
-%defattr(-,root,root)
-%{_libdir}/libelf-%{version}.so
-%{_libdir}/libelf.so.*
-%{_datadir}/locale/*/LC_MESSAGES/elfutils.mo
-
-%files libelf-devel
-%defattr(-,root,root)
-%{_includedir}/libelf.h
-%{_includedir}/gelf.h
-%{_includedir}/nlist.h
-%{_includedir}/elfutils/version.h
-%{_libdir}/libelf.so
-
-%files libelf-devel-static
-%{_libdir}/libelf.a
-
-%changelog
-* Thu Dec 18 2014 Mark Wielaard <mjw@redhat.com> 0.161-1
-- libdw: New function dwarf_peel_type. dwarf_aggregate_size now uses
- dwarf_peel_type to also provide the sizes of qualified types.
- dwarf_getmacros will now serve either of .debug_macro and
- .debug_macinfo transparently. New interfaces dwarf_getmacros_off,
- dwarf_macro_getsrcfiles, dwarf_macro_getparamcnt, and
- dwarf_macro_param are available for more generalized inspection of
- macros and their parameters.
- dwarf.h: Add DW_AT_GNU_deleted, DW_AT_noreturn, DW_LANG_C11,
- DW_LANG_C_plus_plus_11 and DW_LANG_C_plus_plus_14.
-
-* Mon Aug 25 2014 Mark Wielaard <mjw@redhat.com> 0.160-1
-- libdw: New functions dwarf_cu_getdwarf, dwarf_cu_die.
- dwarf.h remove non-existing DW_TAG_mutable_type.
-- libdwfl: Handle LZMA .ko.xz compressed kernel modules.
-- unstrip: New option -F, --force to combining files even if some ELF
- headers don't seem to match.
-- backends: Handle ARM THUMB functions. Add support for ppc64le ELFv2 abi.
-
-* Sat May 17 2014 Mark Wielaard <mjw@redhat.com> 0.159-1
-- stack: New option -d, --debugname to lookup DWARF debuginfo name
- for frame. New option -i, --inlines to show inlined frames
- using DWARF debuginfo.
-- libdwelf: New libdwelf.h header for libdw.so DWARF ELF Low-level
- Functions. New function dwelf_elf_gnu_debuglink,
- dwelf_dwarf_gnu_debugaltlink, and dwelf_elf_gnu_build_id.
-- libdw: Support for DWZ multifile forms DW_FORM_GNU_ref_alt and
- DW_FORM_GNU_strp_alt is now enabled by default and no longer
- experimental. Added new functions dwarf_getalt and dwarf_setalt
- to get or set the alternative debug file used for the alt FORMs.
- The dwfl_linux_proc_find_elf callback will now find ELF from
- process memory for (deleted) files if the Dwfl has process state
- attached.
-- libdwfl: The dwfl_build_id_find_debuginfo and
- dwfl_standard_find_debuginfo functions will now try to
- resolve and set the alternative debug file.
-- backends: Add CFI unwinding for arm. Relies on .debug_frame.
- Add arm process initial register state compatible mode to AARCH64.
- Add aarch64 native and core unwind support.
-- other: All separate elfutils-robustify patches have been merged.
- CVE-2014-0172 Check overflow before calling malloc to uncompress
- data.
-
-* Fri Jan 3 2014 Mark Wielaard <mjw@redhat.com> 0.158-1
-- libdwfl: dwfl_core_file_report has new parameter executable.
- New functions dwfl_module_getsymtab_first_global,
- dwfl_module_getsym_info and dwfl_module_addrinfo.
- Added unwinder with type Dwfl_Thread_Callbacks, opaque types
- Dwfl_Thread and Dwfl_Frame and functions dwfl_attach_state,
- dwfl_pid, dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
- dwfl_thread_state_registers, dwfl_thread_state_register_pc,
- dwfl_getthread_frames, dwfl_getthreads, dwfl_thread_getframes
- and dwfl_frame_pc.
-- addr2line: New option -x to show the section an address was found in.
-- stack: New utility that uses the new unwinder for processes and cores.
-- backends: Unwinder support for i386, x86_64, s390, s390x, ppc and ppc64.
- aarch64 support.
-
-* Mon Sep 30 2013 Mark Wielaard <mjw@redhat.com> 0.157-1
-- libdw: Add new functions dwarf_getlocations, dwarf_getlocation_attr
- and dwarf_getlocation_die.
-- readelf: Show contents of NT_SIGINFO and NT_FILE core notes.
-- addr2line: Support -i, --inlines output option.
-- backends: abi_cfi hook for arm, ppc and s390.
-
-* Thu Jul 25 2013 Jan Kratochvil <jan.kratochvil@redhat.com> 0.156-1
-- lib: New macro COMPAT_VERSION_NEWPROTO.
-- libdw: Handle GNU extension opcodes in dwarf_getlocation.
-- libdwfl: Fix STB_GLOBAL over STB_WEAK preference in
- dwfl_module_addrsym. Add minisymtab support. Add
- parameter add_p_vaddr to dwfl_report_elf. Use DT_DEBUG
- library search first.
-- libebl: Handle new core note types in EBL.
-- backends: Interpret NT_ARM_VFP. Implement core file
- registers parsing for s390/s390x.
-- readelf: Add --elf-section input option to inspect an embedded ELF
- file. Add -U, --unresolved-address-offsets output control.
- Add --debug-dump=decodedline support. Accept version
- 8 .gdb_index section format. Adjust output formatting width.
- When highpc is in constant form print it also as address.
- Display raw .debug_aranges. Use libdw only for decodedaranges.
-- elflint: Add __bss_start__ to the list of allowed symbols.
-- tests: Add configure --enable-valgrind option to run all tests
- under valgrind. Enable automake parallel-tests for make check.
-- translations: Updated Polish translation.
-- Updates for Automake 1.13.
-
-* Fri Aug 24 2012 Mark Wielaard <mjw@redhat.com> 0.155-1
-- libelf: elf*_xlatetomd now works for cross-endian ELF note data.
- elf_getshdr now works consistently on non-mmaped ELF files after
- calling elf_cntl(ELF_C_FDREAD). Implement support for
- ar archives with 64-bit symbol table.
-- libdw: dwarf.h corrected the DW_LANG_ObjC constant name (was
- DW_LANG_Objc). Any existing sources using the old name will
- have to be updated. Add DW_MACRO_GNU .debug_macro type
- encodings constants, DW_ATE_UTF and DW_OP_GNU_parameter_ref to
- dwarf.h. Experimental support for DWZ multifile forms
- DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt. Disabled by
- default. Use configure --enable-dwz to test it.
-- readelf: Add .debug_macro parsing support. Add .gdb_index
- version 7 parsing support. Recognize DW_OP_GNU_parameter_ref.
-- backends: Add support for Tilera TILE-Gx processor.
-- translations: Updated Ukrainian translation.
-
-* Fri Jun 22 2012 Mark Wielaard <mjw@redhat.com> 0.154-1
-- libelf: [g]elf[32|64]_offscn() do not match SHT_NOBITS sections at
- OFFSET.
-- libdw: dwarf_highpc function now handles DWARF 4 DW_AT_high_pc
- constant form. Fix bug using dwarf_next_unit to iterate over
- .debug_types.
-- elflint: Now accepts gold linker produced executables.
-- The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for
- stand-alone programs. There is now also a formal CONTRIBUTING
- document describing how to submit patches.
-
-* Thu Feb 23 2012 Mark Wielaard <mjw@redhat.com> 0.153-1
-- libdw: Support reading .zdebug_* DWARF sections compressed via zlib.
-- libdwfl: Speed up dwfl_module_addrsym.
-- nm: Support C++ demangling.
-- ar: Support D modifier for "deterministic output" with no
- uid/gid/mtime info. The U modifier is the inverse. elfutils
- can be configured with the --enable-deterministic-archives option
- to make the D behavior the default when U is not specified.
-- ranlib: Support -D and -U flags with same meaning.
-- readelf: Improve output of -wline. Add support for printing SDT elf
- notes. Add printing of .gdb_index section. Support for
- typed DWARF stack, call_site and entry_value.
-- strip: Add --reloc-debug-sections option. Improved SHT_GROUP
- sections handling.
-
-* Tue Feb 15 2011 <drepper@gmail.com> 0.152-1
-- Various build and warning nits fixed for newest GCC and Autoconf.
-- libdwfl: Yet another prelink-related fix for another regression.
- Look for Linux kernel images in files named with compression
- suffixes.
-- elfcmp: New flag --ignore-build-id to ignore differing build ID
- bits. New flag -l/--verbose to print all differences.
-
-* Wed Jan 12 2011 <drepper@gmail.com> 0.151-1
-- libdwfl: Fix for more prelink cases with separate debug file.
-- strip: New flag --strip-sections to remove section headers entirely.
-
-* Mon Nov 22 2010 <drepper@gmail.com> 0.150-1
-- libdw: Fix for handling huge .debug_aranges section.
-- libdwfl: Fix for handling prelinked DSO with separate debug file.
-- findtextrel: Fix diagnostics to work with usual section ordering.
-- libebl: i386 backend fix for multi-register integer return value
- location.
-
-* Mon Sep 13 2010 <drepper@redhat.com> 0.149-1
-- libdw: Decode new DW_OP_GNU_implicit_pointer operation; new
- function dwarf_getlocation_implicit_pointer.
-- libdwfl: New function dwfl_dwarf_line.
-- addr2line: New flag -F/--flags to print more DWARF line information
- details.
-- strip: -g recognizes .gdb_index as a debugging section.
-
-* Mon Jun 28 2010 <drepper@redhat.com> 0.148-1
-- libdw: Accept DWARF 4 format: new functions dwarf_next_unit,
- dwarf_offdie_types. New functions dwarf_lineisa,
- dwarf_linediscriminator, dwarf_lineop_index.
-- libdwfl: Fixes in core-file handling, support cores from PIEs.
- When working from build IDs, don't open a named file that
- mismatches.
-- readelf: Handle DWARF 4 formats.
-
-* Mon May 3 2010 Ulrich Drepper <drepper@redhat.com> 0.147-1
-- libdw: Fixes in CFI handling, best possible handling of bogus CFA
- ops.
-- libdwfl: Ignore R_*_NONE relocs, works around old (binutils) ld -r
- bugs.
-
-* Wed Apr 21 2010 <drepper@redhat.com> 0.146-1
-- libdwfl: New function dwfl_core_file_report.
-
-* Tue Feb 23 2010 Ulrich Drepper <drepper@redhat.com> 0.145-1
-- Fix build with --disable-dependency-tracking.
-- Fix build with most recent glibc headers.
-- libelf: More robust to bogus section headers.
-- libdw: Fix CFI decoding.
-- libdwfl: Fix address bias returned by CFI accessors. Fix core
- file module layout identification.
-- readelf: Fix CFI decoding.
-
-* Thu Jan 14 2010 <drepper@redhat.com> 0.144-1
-- libelf: New function elf_getphdrnum. Now support using more than
- 65536 program headers in a file.
-- libdw: New function dwarf_aggregate_size for computing (constant)
- type sizes, including array_type cases with nontrivial
- calculation.
-- readelf: Don't give errors for missing info under -a.
- Handle Linux "VMCOREINFO" notes under -n.
-
-* Mon Sep 21 2009 <drepper@redhat.com> 0.143-1
-- libdw: Various convenience functions for individual attributes now
- use dwarf_attr_integrate to look up indirect inherited
- attributes. Location expression handling now supports
- DW_OP_implicit_value.
-- libdwfl: Support automatic decompression of files in XZ format,
- and of Linux kernel images made with bzip2 or LZMA (as well
- as gzip).
-
-* Mon Jun 29 2009 <drepper@redhat.com> 0.142-1
-- libelf: Add elf_getshdrnum alias for elf_getshnum and elf_getshdrstrndx alias
- for elf_getshstrndx and deprecate original names. Sun screwed up
- their implementation and asked for a solution.
-- libebl: Add support for STB_GNU_UNIQUE.
-- elflint: Add support for STB_GNU_UNIQUE.
-- readelf: Add -N option, speeds up DWARF printing without address->name lookups.
-- libdw: Add support for decoding DWARF CFI into location description form.
- Handle some new DWARF 3 expression operations previously omitted.
- Basic handling of some new encodings slated for DWARF
-
-* Thu Apr 23 2009 Ulrich Drepper <drepper@redhat.com> 0.141-1
-- libebl: sparc backend fixes; some more arm backend support
-- libdwfl: fix dwfl_module_build_id for prelinked DSO case;
- fixes in core file support; dwfl_module_getsym interface
- improved for non-address symbols
-- strip: fix infinite loop on strange inputs with -f
-- addr2line: take -j/--section=NAME option for binutils compatibility
- (same effect as '(NAME)0x123' syntax already supported)
-
-* Mon Feb 16 2009 Ulrich Drepper <drepper@redhat.com> 0.140-1
-- libelf: Fix regression in creation of section header
-- libdwfl: Less strict behavior if DWARF reader ist just used to
- display data
-
-* Thu Jan 22 2009 Ulrich Drepper <drepper@redhat.com> 0.139-1
-- libcpu: Add Intel SSE4 disassembler support
-- readelf: Implement call frame information and exception handling
- dumping. Add -e option. Enable it implicitly for -a.
-- elflint: Check PT_GNU_EH_FRAME program header entry.
-- libdwfl: Support automatic gzip/bzip2 decompression of ELF files.
-
-* Wed Dec 31 2008 Roland McGrath <roland@redhat.com> 0.138-1
-- Install <elfutils/version.h> header file for applications to use in
- source version compatibility checks.
-- libebl: backend fixes for i386 TLS relocs; backend support for
- NT_386_IOPERM
-- libcpu: disassembler fixes
-- libdwfl: bug fixes
-- libelf: bug fixes
-- nm: bug fixes for handling corrupt input files
-
-* Tue Aug 26 2008 Ulrich Drepper <drepper@redhat.com> 0.137-1
-- Minor fixes for unreleased 0.136 release.
-
-* Mon Aug 25 2008 Ulrich Drepper <drepper@redhat.com> 0.136-1
-- libdwfl: bug fixes; new segment interfaces; all the libdwfl-based
- tools now support --core=COREFILE option
-
-* Mon May 12 2008 Ulrich Drepper <drepper@redhat.com> 0.135-1
-- libdwfl: bug fixes
-- strip: changed handling of ET_REL files wrt symbol tables and relocs
-
-* Tue Apr 8 2008 Ulrich Drepper <drepper@redhat.com> 0.134-1
-- elflint: backend improvements for sparc, alpha
-- libdwfl, libelf: bug fixes
-
-* Sat Mar 1 2008 Ulrich Drepper <drepper@redhat.com> 0.133-1
-- readelf, elflint, libebl: SHT_GNU_ATTRIBUTE section handling (readelf -A)
-- readelf: core note handling for NT_386_TLS, NT_PPC_SPE, Alpha NT_AUXV
-- libdwfl: bug fixes and optimization in relocation handling
-- elfcmp: bug fix for non-allocated section handling
-- ld: implement newer features of binutils linker.
-
-* Mon Jan 21 2008 Ulrich Drepper <drepper@redhat.com> 0.132-1
-- libcpu: Implement x86 and x86-64 disassembler.
-- libasm: Add interface for disassembler.
-- all programs: add debugging of branch prediction.
-- libelf: new function elf_scnshndx.
-
-* Sun Nov 11 2007 Ulrich Drepper <drepper@redhat.com> 0.131-1
-- libdw: DW_FORM_ref_addr support; dwarf_formref entry point now depreca
-ted; bug fixes for oddly-formatted DWARF
-- libdwfl: bug fixes in offline archive support, symbol table handling;
- apply partial relocations for dwfl_module_address_section on
-ET_REL
-- libebl: powerpc backend support for Altivec registers
-
-* Mon Oct 15 2007 Ulrich Drepper <drepper@redhat.com> 0.130-1
-- readelf: -p option can take an argument like -x for one section,
- or no argument (as before) for all SHF_STRINGS sections;
- new option --archive-index (or -c); improved -n output fo
-r core files, on many machines
-- libelf: new function elf_getdata_rawchunk, replaces gelf_rawchunk;
- new functions gelf_getnote, gelf_getauxv, gelf_update_auxv
-- readelf, elflint: handle SHT_NOTE sections without requiring phdrs
-- elflint: stricter checks on debug sections
-- libdwfl: new functions dwfl_build_id_find_elf, dwfl_build_id_find_debu
-ginfo, dwfl_module_build_id, dwfl_module_report_build_id; suppo
-rt dynamic symbol tables found via phdrs; dwfl_standard_find_de
-buginfo now uses build IDs when available
-- unstrip: new option --list (or -n)
-- libebl: backend improvements for sparc, alpha, powerpc
-
-* Tue Aug 14 2007 Ulrich Drepper <drepper@redhat.com> 0.129-1
-- readelf: new options --hex-dump (or -x), --strings (or -p)
-- addr2line: new option --symbols (or -S)
-
-* Wed Apr 18 2007 Ulrich Drepper <drepper@redhat.com> 0.127-1
-- libdw: new function dwarf_getsrcdirs
-- libdwfl: new functions dwfl_module_addrsym, dwfl_report_begin_add,
- dwfl_module_address_section
-
-* Mon Feb 5 2007 Ulrich Drepper <drepper@redhat.com> 0.126-1
-- new program: ar
-
-* Mon Dec 18 2006 Ulrich Drepper <drepper@redhat.com> 0.125-1
-- elflint: Compare DT_GNU_HASH tests.
-- move archives into -static RPMs
-- libelf, elflint: better support for core file handling
-
-* Tue Oct 10 2006 Ulrich Drepper <drepper@redhat.com> 0.124-1
-- libebl: sparc backend support for return value location
-- libebl, libdwfl: backend register name support extended with more info
-- libelf, libdw: bug fixes for unaligned accesses on machines that care
-- readelf, elflint: trivial bugs fixed
-
-* Mon Aug 14 2006 Roland McGrath <roland@redhat.com> 0.123-1
-- libebl: Backend build fixes, thanks to Stepan Kasal.
-- libebl: ia64 backend support for register names, return value location
-- libdwfl: Handle truncated linux kernel module section names.
-- libdwfl: Look for linux kernel vmlinux files with .debug suffix.
-- elflint: Fix checks to permit --hash-style=gnu format.
-
-* Wed Jul 12 2006 Ulrich Drepper <drepper@redhat.com> 0.122-1
-- libebl: add function to test for relative relocation
-- elflint: fix and extend DT_RELCOUNT/DT_RELACOUNT checks
-- elflint, readelf: add support for DT_GNU_HASHlibelf: add elf_gnu_hash
-- elflint, readelf: add support for 64-bit SysV-style hash tables
-- libdwfl: new functions dwfl_module_getsymtab, dwfl_module_getsym.
-
-* Wed Jun 14 2006 <drepper@redhat.com> 0.121-1
-- libelf: bug fixes for rewriting existing files when using mmap.
-- make all installed headers usable in C++ code.
-- readelf: better output format.
-- elflint: fix tests of dynamic section content.
-- ld: Implement --as-needed, --execstack, PT_GNU_STACK. Many small patc
-hes.
-- libdw, libdwfl: handle files without aranges info.
-
-* Tue Apr 4 2006 Ulrich Drepper <drepper@redhat.com> 0.120-1
-- Bug fixes.
-- dwarf.h updated for DWARF 3.0 final specification.
-- libdwfl: New function dwfl_version.
-- The license is now GPL for most files. The libelf, libebl, libdw,and
-libdwfl libraries have additional exceptions. Add reference toOIN.
-
-* Thu Jan 12 2006 Roland McGrath <roland@redhat.com> 0.119-1
-- elflint: more tests.
-- libdwfl: New function dwfl_module_register_names.
-- libebl: New backend hook for register names.
-
-* Tue Dec 6 2005 Ulrich Drepper <drepper@redhat.com> 0.118-1
-- elflint: more tests.
-- libdwfl: New function dwfl_module_register_names.
-- libebl: New backend hook for register names.
-
-* Thu Nov 17 2005 Ulrich Drepper <drepper@redhat.com> 0.117-1
-- libdwfl: New function dwfl_module_return_value_location.
-- libebl: Backend improvements for several CPUs.
-
-* Mon Oct 31 2005 Ulrich Drepper <drepper@redhat.com> 0.116-1
-- libdw: New functions dwarf_ranges, dwarf_entrypc, dwarf_diecu, d
-warf_entry_breakpoints. Removed Dwarf_Func type and functions d
-warf_func_name, dwarf_func_lowpc, dwarf_func_highpc, dwarf_func_
-entrypc, dwarf_func_die; dwarf_getfuncs callback now uses Dwarf_
-Die, and dwarf_func_file, dwarf_func_line, dwarf_func_col replac
-ed by dwarf_decl_file, dwarf_decl_line, dwarf_decl_column; dwarf
-_func_inline, dwarf_func_inline_instances now take Dwarf_Die. Ty
-pe Dwarf_Loc renamed to Dwarf_Op; dwarf_getloclist, dwarf_addrlo
-clists renamed dwarf_getlocation, dwarf_getlocation_addr.
-
-* Fri Sep 2 2005 Ulrich Drepper <drepper@redhat.com> 0.115-1
-- libelf: speed-ups of non-mmap reading.
-- strings: New program.
-- Implement --enable-gcov option for configure.
-- libdw: New function dwarf_getscopes_die.
-
-* Wed Aug 24 2005 Ulrich Drepper <drepper@redhat.com> 0.114-1
-- libelf: new function elf_getaroff
-- libdw: Added dwarf_func_die, dwarf_func_inline, dwarf_func_inline_inst
-ances.
-- libdwfl: New functions dwfl_report_offline, dwfl_offline_section_addre
-ss, dwfl_linux_kernel_report_offline.
-- ranlib: new program
-
-* Mon Aug 15 2005 Ulrich Drepper <drepper@redhat.com> 0.114-1
-- libelf: new function elf_getaroff
-- ranlib: new program
-
-* Wed Aug 10 2005 Ulrich Drepper <@redhat.com> 0.113-1
-- elflint: relax a bit. Allow version definitions for defined symbols ag
-ainstDSO versions also for symbols in nobits sections. Allow .rodata
-sectionto have STRINGS and MERGE flag set.
-- strip: add some more compatibility with binutils.
-
-* Sat Aug 6 2005 Ulrich Drepper <@redhat.com> 0.113-1
-- elflint: relax a bit. Allow version definitions for defined symbols ag
-ainstDSO versions also for symbols in nobits sections. Allow .rodata
-sectionto have STRINGS and MERGE flag set.
-
-* Sat Aug 6 2005 Ulrich Drepper <@redhat.com> 0.113-1
-- elflint: relax a bit. Allow version definitions for defined symbols ag
-ainstDSO versions also for symbols in nobits sections.
-
-* Fri Aug 5 2005 Ulrich Drepper <@redhat.com> 0.112-1
-- elfcmp: some more relaxation.
-- elflint: many more tests, especially regarding to symbol versioning.
-- libelf: Add elfXX_offscn and gelf_offscn.
-- libasm: asm_begin interface changes.
-- libebl: Add three new interfaces to directly access machine, class, an
-ddata encoding information.
-- objdump: New program. Just the beginning.
-
-* Thu Jul 28 2005 Ulrich Drepper <@redhat.com> 0.111-1
-- libdw: now contains all of libdwfl. The latter is not installed anymore.
-- elfcmp: little usability tweak, name and index of differing section is
- printed.
-
-* Sun Jul 24 2005 Ulrich Drepper <@redhat.com> 0.110-1
-- libelf: fix a numbe rof problems with elf_update
-- elfcmp: fix a few bugs. Compare gaps.
-- Fix a few PLT problems and mudflap build issues.
-- libebl: Don't expose Ebl structure definition in libebl.h. It's now p
-rivate.
-
-* Thu Jul 21 2005 Ulrich Drepper <@redhat.com> 0.109-1
-- libebl: Check for matching modules.
-- elflint: Check that copy relocations only happen for OBJECT or NOTYPE
-symbols.
-- elfcmp: New program.
-- libdwfl: New library.
-
-* Mon May 9 2005 Ulrich Drepper <@redhat.com> 0.108-1
-- strip: fix bug introduced in last change
-- libdw: records returned by dwarf_getsrclines are now sorted by address
-
-* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.108-1
-- strip: fix bug introduced in last change
-
-* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.107-1
-- readelf: improve DWARF output format
-- strip: support Linux kernel modules
-
-* Fri Apr 29 2005 Ulrich Drepper <drepper@redhat.com> 0.107-1
-- readelf: improve DWARF output format
-
-* Mon Apr 4 2005 Ulrich Drepper <drepper@redhat.com> 0.106-1
-- libdw: Updated dwarf.h from DWARF3 speclibdw: add new funtions dwarf_f
-unc_entrypc, dwarf_func_file, dwarf_func_line,dwarf_func_col, dwarf_ge
-tsrc_file
-
-* Fri Apr 1 2005 Ulrich Drepper <drepper@redhat.com> 0.105-1
-- addr2line: New program
-- libdw: add new functions: dwarf_addrdie, dwarf_macro_*, dwarf_getfuncs
-,dwarf_func_*.
-- findtextrel: use dwarf_addrdie
-
-* Mon Mar 28 2005 Ulrich Drepper <drepper@redhat.com> 0.104-1
-- findtextrel: New program.
-
-* Mon Mar 21 2005 Ulrich Drepper <drepper@redhat.com> 0.103-1
-- libdw: Fix using libdw.h with gcc < 4 and C++ code. Compiler bug.
-
-* Tue Feb 22 2005 Ulrich Drepper <drepper@redhat.com> 0.102-1
-- More Makefile and spec file cleanups.
-
-* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.94-1
-- upgrade to 0.94
-
-* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.93-1
-- upgrade to 0.93
-
-* Thu Jan 8 2004 Jakub Jelinek <jakub@redhat.com> 0.92-1
-- full version
-- macroized spec file for GPL or OSL builds
-- include only libelf under GPL plus wrapper scripts
-
-* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-2
-- macroized spec file for GPL or OSL builds
-
-* Wed Jan 7 2004 Ulrich Drepper <drepper@redhat.com>
-- split elfutils-devel into two packages.
-
-* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-1
-- include only libelf under GPL plus wrapper scripts
-
-* Tue Dec 23 2003 Jeff Johnson <jbj@redhat.com> 0.89-3
-- readelf, not readline, in %%description (#111214).
-
-* Fri Sep 26 2003 Bill Nottingham <notting@redhat.com> 0.89-1
-- update to 0.89 (fix eu-strip)
-
-* Tue Sep 23 2003 Jakub Jelinek <jakub@redhat.com> 0.86-3
-- update to 0.86 (fix eu-strip on s390x/alpha)
-- libebl is an archive now; remove references to DSO
-
-* Mon Jul 14 2003 Jeff Johnson <jbj@redhat.com> 0.84-3
-- upgrade to 0.84 (readelf/elflint improvements, rawhide bugs fixed).
-
-* Fri Jul 11 2003 Jeff Johnson <jbj@redhat.com> 0.83-3
-- upgrade to 0.83 (fix invalid ELf handle on *.so strip, more).
-
-* Wed Jul 9 2003 Jeff Johnson <jbj@redhat.com> 0.82-3
-- upgrade to 0.82 (strip tests fixed on big-endian).
-
-* Tue Jul 8 2003 Jeff Johnson <jbj@redhat.com> 0.81-3
-- upgrade to 0.81 (strip excludes unused symtable entries, test borked).
-
-* Thu Jun 26 2003 Jeff Johnson <jbj@redhat.com> 0.80-3
-- upgrade to 0.80 (debugedit changes for kernel in progress).
-
-* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
-- rebuilt
-
-* Wed May 21 2003 Jeff Johnson <jbj@redhat.com> 0.79-2
-- upgrade to 0.79 (correct formats for size_t, more of libdw "works").
-
-* Mon May 19 2003 Jeff Johnson <jbj@redhat.com> 0.78-2
-- upgrade to 0.78 (libdwarf bugfix, libdw additions).
-
-* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
-- debuginfo rebuild
-
-* Thu Feb 20 2003 Jeff Johnson <jbj@redhat.com> 0.76-2
-- use the correct way of identifying the section via the sh_info link.
-
-* Sat Feb 15 2003 Jakub Jelinek <jakub@redhat.com> 0.75-2
-- update to 0.75 (eu-strip -g fix)
-
-* Tue Feb 11 2003 Jakub Jelinek <jakub@redhat.com> 0.74-2
-- update to 0.74 (fix for writing with some non-dirty sections)
-
-* Thu Feb 6 2003 Jeff Johnson <jbj@redhat.com> 0.73-3
-- another -0.73 update (with sparc fixes).
-- do "make check" in %%check, not %%install, section.
-
-* Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 0.73-2
-- update to 0.73 (with s390 fixes).
-
-* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
-- rebuilt
-
-* Wed Jan 22 2003 Jakub Jelinek <jakub@redhat.com> 0.72-4
-- fix arguments to gelf_getsymshndx and elf_getshstrndx
-- fix other warnings
-- reenable checks on s390x
-
-* Sat Jan 11 2003 Karsten Hopp <karsten@redhat.de> 0.72-3
-- temporarily disable checks on s390x, until someone has
- time to look at it
-
-* Thu Dec 12 2002 Jakub Jelinek <jakub@redhat.com> 0.72-2
-- update to 0.72
-
-* Wed Dec 11 2002 Jakub Jelinek <jakub@redhat.com> 0.71-2
-- update to 0.71
-
-* Wed Dec 11 2002 Jeff Johnson <jbj@redhat.com> 0.69-4
-- update to 0.69.
-- add "make check" and segfault avoidance patch.
-- elfutils-libelf needs to run ldconfig.
-
-* Tue Dec 10 2002 Jeff Johnson <jbj@redhat.com> 0.68-2
-- update to 0.68.
-
-* Fri Dec 6 2002 Jeff Johnson <jbj@redhat.com> 0.67-2
-- update to 0.67.
-
-* Tue Dec 3 2002 Jeff Johnson <jbj@redhat.com> 0.65-2
-- update to 0.65.
-
-* Mon Dec 2 2002 Jeff Johnson <jbj@redhat.com> 0.64-2
-- update to 0.64.
-
-* Sun Dec 1 2002 Ulrich Drepper <drepper@redhat.com> 0.64
-- split packages further into elfutils-libelf
-
-* Sat Nov 30 2002 Jeff Johnson <jbj@redhat.com> 0.63-2
-- update to 0.63.
-
-* Fri Nov 29 2002 Ulrich Drepper <drepper@redhat.com> 0.62
-- Adjust for dropping libtool
-
-* Sun Nov 24 2002 Jeff Johnson <jbj@redhat.com> 0.59-2
-- update to 0.59
-
-* Thu Nov 14 2002 Jeff Johnson <jbj@redhat.com> 0.56-2
-- update to 0.56
-
-* Thu Nov 7 2002 Jeff Johnson <jbj@redhat.com> 0.54-2
-- update to 0.54
-
-* Sun Oct 27 2002 Jeff Johnson <jbj@redhat.com> 0.53-2
-- update to 0.53
-- drop x86_64 hack, ICE fixed in gcc-3.2-11.
-
-* Sat Oct 26 2002 Jeff Johnson <jbj@redhat.com> 0.52-3
-- get beehive to punch a rhpkg generated package.
-
-* Wed Oct 23 2002 Jeff Johnson <jbj@redhat.com> 0.52-2
-- build in 8.0.1.
-- x86_64: avoid gcc-3.2 ICE on x86_64 for now.
-
-* Tue Oct 22 2002 Ulrich Drepper <drepper@redhat.com> 0.52
-- Add libelf-devel to conflicts for elfutils-devel
-
-* Mon Oct 21 2002 Ulrich Drepper <drepper@redhat.com> 0.50
-- Split into runtime and devel package
-
-* Fri Oct 18 2002 Ulrich Drepper <drepper@redhat.com> 0.49
-- integrate into official sources
-
-* Wed Oct 16 2002 Jeff Johnson <jbj@redhat.com> 0.46-1
-- Swaddle.
diff --git a/src/config/eu.am b/src/config/eu.am
deleted file mode 100644
index faf8add4..00000000
--- a/src/config/eu.am
+++ /dev/null
@@ -1,61 +0,0 @@
-## Common automake fragments for elfutils subdirectory makefiles.
-##
-## Copyright (C) 2010, 2014 Red Hat, Inc.
-##
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-
-%.os: %.c %.o
-if AMDEP
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-else
- $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-endif
-
-CLEANFILES = *.gcno *.gcda
-
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-if FATAL_TEXTREL
-textrel_found = $(textrel_msg); exit 1
-else
-textrel_found = $(textrel_msg)
-endif
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
diff --git a/src/config/install-sh b/src/config/install-sh
deleted file mode 100755
index 377bb868..00000000
--- a/src/config/install-sh
+++ /dev/null
@@ -1,527 +0,0 @@
-#!/bin/sh
-# install - install a program, script, or datafile
-
-scriptversion=2011-11-20.07; # UTC
-
-# This originates from X11R5 (mit/util/scripts/install.sh), which was
-# later released in X11R6 (xc/config/util/install.sh) with the
-# following copyright and license.
-#
-# Copyright (C) 1994 X Consortium
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
-# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-# Except as contained in this notice, the name of the X Consortium shall not
-# be used in advertising or otherwise to promote the sale, use or other deal-
-# ings in this Software without prior written authorization from the X Consor-
-# tium.
-#
-#
-# FSF changes to this file are in the public domain.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# 'make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch.
-
-nl='
-'
-IFS=" "" $nl"
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit=${DOITPROG-}
-if test -z "$doit"; then
- doit_exec=exec
-else
- doit_exec=$doit
-fi
-
-# Put in absolute file names if you don't have them in your path;
-# or use environment vars.
-
-chgrpprog=${CHGRPPROG-chgrp}
-chmodprog=${CHMODPROG-chmod}
-chownprog=${CHOWNPROG-chown}
-cmpprog=${CMPPROG-cmp}
-cpprog=${CPPROG-cp}
-mkdirprog=${MKDIRPROG-mkdir}
-mvprog=${MVPROG-mv}
-rmprog=${RMPROG-rm}
-stripprog=${STRIPPROG-strip}
-
-posix_glob='?'
-initialize_posix_glob='
- test "$posix_glob" != "?" || {
- if (set -f) 2>/dev/null; then
- posix_glob=
- else
- posix_glob=:
- fi
- }
-'
-
-posix_mkdir=
-
-# Desired mode of installed file.
-mode=0755
-
-chgrpcmd=
-chmodcmd=$chmodprog
-chowncmd=
-mvcmd=$mvprog
-rmcmd="$rmprog -f"
-stripcmd=
-
-src=
-dst=
-dir_arg=
-dst_arg=
-
-copy_on_change=false
-no_target_directory=
-
-usage="\
-Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
- or: $0 [OPTION]... SRCFILES... DIRECTORY
- or: $0 [OPTION]... -t DIRECTORY SRCFILES...
- or: $0 [OPTION]... -d DIRECTORIES...
-
-In the 1st form, copy SRCFILE to DSTFILE.
-In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
-In the 4th, create DIRECTORIES.
-
-Options:
- --help display this help and exit.
- --version display version info and exit.
-
- -c (ignored)
- -C install only if different (preserve the last data modification time)
- -d create directories instead of installing files.
- -g GROUP $chgrpprog installed files to GROUP.
- -m MODE $chmodprog installed files to MODE.
- -o USER $chownprog installed files to USER.
- -s $stripprog installed files.
- -t DIRECTORY install into DIRECTORY.
- -T report an error if DSTFILE is a directory.
-
-Environment variables override the default commands:
- CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
- RMPROG STRIPPROG
-"
-
-while test $# -ne 0; do
- case $1 in
- -c) ;;
-
- -C) copy_on_change=true;;
-
- -d) dir_arg=true;;
-
- -g) chgrpcmd="$chgrpprog $2"
- shift;;
-
- --help) echo "$usage"; exit $?;;
-
- -m) mode=$2
- case $mode in
- *' '* | *' '* | *'
-'* | *'*'* | *'?'* | *'['*)
- echo "$0: invalid mode: $mode" >&2
- exit 1;;
- esac
- shift;;
-
- -o) chowncmd="$chownprog $2"
- shift;;
-
- -s) stripcmd=$stripprog;;
-
- -t) dst_arg=$2
- # Protect names problematic for 'test' and other utilities.
- case $dst_arg in
- -* | [=\(\)!]) dst_arg=./$dst_arg;;
- esac
- shift;;
-
- -T) no_target_directory=true;;
-
- --version) echo "$0 $scriptversion"; exit $?;;
-
- --) shift
- break;;
-
- -*) echo "$0: invalid option: $1" >&2
- exit 1;;
-
- *) break;;
- esac
- shift
-done
-
-if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
- # When -d is used, all remaining arguments are directories to create.
- # When -t is used, the destination is already specified.
- # Otherwise, the last argument is the destination. Remove it from $@.
- for arg
- do
- if test -n "$dst_arg"; then
- # $@ is not empty: it contains at least $arg.
- set fnord "$@" "$dst_arg"
- shift # fnord
- fi
- shift # arg
- dst_arg=$arg
- # Protect names problematic for 'test' and other utilities.
- case $dst_arg in
- -* | [=\(\)!]) dst_arg=./$dst_arg;;
- esac
- done
-fi
-
-if test $# -eq 0; then
- if test -z "$dir_arg"; then
- echo "$0: no input file specified." >&2
- exit 1
- fi
- # It's OK to call 'install-sh -d' without argument.
- # This can happen when creating conditional directories.
- exit 0
-fi
-
-if test -z "$dir_arg"; then
- do_exit='(exit $ret); exit $ret'
- trap "ret=129; $do_exit" 1
- trap "ret=130; $do_exit" 2
- trap "ret=141; $do_exit" 13
- trap "ret=143; $do_exit" 15
-
- # Set umask so as not to create temps with too-generous modes.
- # However, 'strip' requires both read and write access to temps.
- case $mode in
- # Optimize common cases.
- *644) cp_umask=133;;
- *755) cp_umask=22;;
-
- *[0-7])
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw='% 200'
- fi
- cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
- *)
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw=,u+rw
- fi
- cp_umask=$mode$u_plus_rw;;
- esac
-fi
-
-for src
-do
- # Protect names problematic for 'test' and other utilities.
- case $src in
- -* | [=\(\)!]) src=./$src;;
- esac
-
- if test -n "$dir_arg"; then
- dst=$src
- dstdir=$dst
- test -d "$dstdir"
- dstdir_status=$?
- else
-
- # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
- # might cause directories to be created, which would be especially bad
- # if $src (and thus $dsttmp) contains '*'.
- if test ! -f "$src" && test ! -d "$src"; then
- echo "$0: $src does not exist." >&2
- exit 1
- fi
-
- if test -z "$dst_arg"; then
- echo "$0: no destination specified." >&2
- exit 1
- fi
- dst=$dst_arg
-
- # If destination is a directory, append the input filename; won't work
- # if double slashes aren't ignored.
- if test -d "$dst"; then
- if test -n "$no_target_directory"; then
- echo "$0: $dst_arg: Is a directory" >&2
- exit 1
- fi
- dstdir=$dst
- dst=$dstdir/`basename "$src"`
- dstdir_status=0
- else
- # Prefer dirname, but fall back on a substitute if dirname fails.
- dstdir=`
- (dirname "$dst") 2>/dev/null ||
- expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$dst" : 'X\(//\)[^/]' \| \
- X"$dst" : 'X\(//\)$' \| \
- X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
- echo X"$dst" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'
- `
-
- test -d "$dstdir"
- dstdir_status=$?
- fi
- fi
-
- obsolete_mkdir_used=false
-
- if test $dstdir_status != 0; then
- case $posix_mkdir in
- '')
- # Create intermediate dirs using mode 755 as modified by the umask.
- # This is like FreeBSD 'install' as of 1997-10-28.
- umask=`umask`
- case $stripcmd.$umask in
- # Optimize common cases.
- *[2367][2367]) mkdir_umask=$umask;;
- .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
-
- *[0-7])
- mkdir_umask=`expr $umask + 22 \
- - $umask % 100 % 40 + $umask % 20 \
- - $umask % 10 % 4 + $umask % 2
- `;;
- *) mkdir_umask=$umask,go-w;;
- esac
-
- # With -d, create the new directory with the user-specified mode.
- # Otherwise, rely on $mkdir_umask.
- if test -n "$dir_arg"; then
- mkdir_mode=-m$mode
- else
- mkdir_mode=
- fi
-
- posix_mkdir=false
- case $umask in
- *[123567][0-7][0-7])
- # POSIX mkdir -p sets u+wx bits regardless of umask, which
- # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
- ;;
- *)
- tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
-
- if (umask $mkdir_umask &&
- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
- then
- if test -z "$dir_arg" || {
- # Check for POSIX incompatibilities with -m.
- # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
- # other-writable bit of parent directory when it shouldn't.
- # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
- ls_ld_tmpdir=`ls -ld "$tmpdir"`
- case $ls_ld_tmpdir in
- d????-?r-*) different_mode=700;;
- d????-?--*) different_mode=755;;
- *) false;;
- esac &&
- $mkdirprog -m$different_mode -p -- "$tmpdir" && {
- ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
- test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
- }
- }
- then posix_mkdir=:
- fi
- rmdir "$tmpdir/d" "$tmpdir"
- else
- # Remove any dirs left behind by ancient mkdir implementations.
- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
- fi
- trap '' 0;;
- esac;;
- esac
-
- if
- $posix_mkdir && (
- umask $mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
- )
- then :
- else
-
- # The umask is ridiculous, or mkdir does not conform to POSIX,
- # or it failed possibly due to a race condition. Create the
- # directory the slow way, step by step, checking for races as we go.
-
- case $dstdir in
- /*) prefix='/';;
- [-=\(\)!]*) prefix='./';;
- *) prefix='';;
- esac
-
- eval "$initialize_posix_glob"
-
- oIFS=$IFS
- IFS=/
- $posix_glob set -f
- set fnord $dstdir
- shift
- $posix_glob set +f
- IFS=$oIFS
-
- prefixes=
-
- for d
- do
- test X"$d" = X && continue
-
- prefix=$prefix$d
- if test -d "$prefix"; then
- prefixes=
- else
- if $posix_mkdir; then
- (umask=$mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
- # Don't fail if two instances are running concurrently.
- test -d "$prefix" || exit 1
- else
- case $prefix in
- *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
- *) qprefix=$prefix;;
- esac
- prefixes="$prefixes '$qprefix'"
- fi
- fi
- prefix=$prefix/
- done
-
- if test -n "$prefixes"; then
- # Don't fail if two instances are running concurrently.
- (umask $mkdir_umask &&
- eval "\$doit_exec \$mkdirprog $prefixes") ||
- test -d "$dstdir" || exit 1
- obsolete_mkdir_used=true
- fi
- fi
- fi
-
- if test -n "$dir_arg"; then
- { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
- { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
- test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
- else
-
- # Make a couple of temp file names in the proper directory.
- dsttmp=$dstdir/_inst.$$_
- rmtmp=$dstdir/_rm.$$_
-
- # Trap to clean up those temp files at exit.
- trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
-
- # Copy the file name to the temp name.
- (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
-
- # and set any options; do chmod last to preserve setuid bits.
- #
- # If any of these fail, we abort the whole thing. If we want to
- # ignore errors from any of these, just make sure not to ignore
- # errors from the above "$doit $cpprog $src $dsttmp" command.
- #
- { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
- { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
- { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
-
- # If -C, don't bother to copy if it wouldn't change the file.
- if $copy_on_change &&
- old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
- new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
-
- eval "$initialize_posix_glob" &&
- $posix_glob set -f &&
- set X $old && old=:$2:$4:$5:$6 &&
- set X $new && new=:$2:$4:$5:$6 &&
- $posix_glob set +f &&
-
- test "$old" = "$new" &&
- $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
- then
- rm -f "$dsttmp"
- else
- # Rename the file to the real destination.
- $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
-
- # The rename failed, perhaps because mv can't rename something else
- # to itself, or perhaps because mv is so ancient that it does not
- # support -f.
- {
- # Now remove or move aside any old file at destination location.
- # We try this two ways since rm can't unlink itself on some
- # systems and the destination file might be busy for other
- # reasons. In this case, the final cleanup might fail but the new
- # file should still install successfully.
- {
- test ! -f "$dst" ||
- $doit $rmcmd -f "$dst" 2>/dev/null ||
- { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
- { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
- } ||
- { echo "$0: cannot unlink or rename $dst" >&2
- (exit 1); exit 1
- }
- } &&
-
- # Now rename the file to the real destination.
- $doit $mvcmd "$dsttmp" "$dst"
- }
- fi || exit 1
-
- trap '' 0
- fi
-done
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/src/config/known-dwarf.awk b/src/config/known-dwarf.awk
deleted file mode 100644
index 52ec5b62..00000000
--- a/src/config/known-dwarf.awk
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/gawk -f
-
-## Copyright (C) 2012 Red Hat, Inc.
-##
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-$1 == "enum" { set = ""; next }
-
-set == "" && $1 ~ /DW_([A-Z_]+)_([^ ]+)/ {
- set = $1;
- sub(/^DW_/, "", set);
- sub(/_[^[:upper:]_].*$/, "", set);
- if (set ~ /LANG_.+/) set = "LANG";
-}
-
-$1 ~ /DW([_A-Z]+)_([^ ]+)/ {
- match($1, ("DW_" set "_([^ ]+)"), fields);
- elt = fields[1];
- if (set in DW)
- DW[set] = DW[set] "," elt;
- else
- DW[set] = elt;
- if ($NF == "*/" && $4 == "/*") {
- c = $5;
- for (i = 6; i < NF; ++i) c = c " " $i;
- comment[set, elt] = c;
- }
-}
-
-END {
- print "/* Generated by config/known-dwarf.awk from libdw/dwarf.h contents. */";
- n = asorti(DW, sets);
- for (i = 1; i <= n; ++i) {
- set = sets[i];
- if (what && what != set) continue;
- split(DW[set], elts, ",");
- m = asort(elts);
- lo = hi = "";
- if (m == 0) continue;
- print "\n#define ALL_KNOWN_DW_" set " \\";
- for (j = 1; j <= m; ++j) {
- elt = elts[j];
- if (elt ~ /(lo|low)_user$/) {
- lo = elt;
- continue;
- }
- if (elt ~ /(hi|high)_user$/) {
- hi = elt;
- continue;
- }
- if (comment[set, elt])
- print " ONE_KNOWN_DW_" set "_DESC (" elt ", DW_" set "_" elt \
- ", \"" comment[set, elt] "\") \\";
- else
- print " ONE_KNOWN_DW_" set " (" elt ", DW_" set "_" elt ") \\";
- }
- print " /* End of DW_" set "_*. */";
- }
-}
diff --git a/src/config/missing b/src/config/missing
deleted file mode 100755
index db98974f..00000000
--- a/src/config/missing
+++ /dev/null
@@ -1,215 +0,0 @@
-#! /bin/sh
-# Common wrapper for a few potentially missing GNU programs.
-
-scriptversion=2013-10-28.13; # UTC
-
-# Copyright (C) 1996-2013 Free Software Foundation, Inc.
-# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
- echo 1>&2 "Try '$0 --help' for more information"
- exit 1
-fi
-
-case $1 in
-
- --is-lightweight)
- # Used by our autoconf macros to check whether the available missing
- # script is modern enough.
- exit 0
- ;;
-
- --run)
- # Back-compat with the calling convention used by older automake.
- shift
- ;;
-
- -h|--h|--he|--hel|--help)
- echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
-to PROGRAM being missing or too old.
-
-Options:
- -h, --help display this help and exit
- -v, --version output version information and exit
-
-Supported PROGRAM values:
- aclocal autoconf autoheader autom4te automake makeinfo
- bison yacc flex lex help2man
-
-Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
-'g' are ignored when checking the name.
-
-Send bug reports to <bug-automake@gnu.org>."
- exit $?
- ;;
-
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing $scriptversion (GNU Automake)"
- exit $?
- ;;
-
- -*)
- echo 1>&2 "$0: unknown '$1' option"
- echo 1>&2 "Try '$0 --help' for more information"
- exit 1
- ;;
-
-esac
-
-# Run the given program, remember its exit status.
-"$@"; st=$?
-
-# If it succeeded, we are done.
-test $st -eq 0 && exit 0
-
-# Also exit now if we it failed (or wasn't found), and '--version' was
-# passed; such an option is passed most likely to detect whether the
-# program is present and works.
-case $2 in --version|--help) exit $st;; esac
-
-# Exit code 63 means version mismatch. This often happens when the user
-# tries to use an ancient version of a tool on a file that requires a
-# minimum version.
-if test $st -eq 63; then
- msg="probably too old"
-elif test $st -eq 127; then
- # Program was missing.
- msg="missing on your system"
-else
- # Program was found and executed, but failed. Give up.
- exit $st
-fi
-
-perl_URL=http://www.perl.org/
-flex_URL=http://flex.sourceforge.net/
-gnu_software_URL=http://www.gnu.org/software
-
-program_details ()
-{
- case $1 in
- aclocal|automake)
- echo "The '$1' program is part of the GNU Automake package:"
- echo "<$gnu_software_URL/automake>"
- echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
- echo "<$gnu_software_URL/autoconf>"
- echo "<$gnu_software_URL/m4/>"
- echo "<$perl_URL>"
- ;;
- autoconf|autom4te|autoheader)
- echo "The '$1' program is part of the GNU Autoconf package:"
- echo "<$gnu_software_URL/autoconf/>"
- echo "It also requires GNU m4 and Perl in order to run:"
- echo "<$gnu_software_URL/m4/>"
- echo "<$perl_URL>"
- ;;
- esac
-}
-
-give_advice ()
-{
- # Normalize program name to check for.
- normalized_program=`echo "$1" | sed '
- s/^gnu-//; t
- s/^gnu//; t
- s/^g//; t'`
-
- printf '%s\n' "'$1' is $msg."
-
- configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
- case $normalized_program in
- autoconf*)
- echo "You should only need it if you modified 'configure.ac',"
- echo "or m4 files included by it."
- program_details 'autoconf'
- ;;
- autoheader*)
- echo "You should only need it if you modified 'acconfig.h' or"
- echo "$configure_deps."
- program_details 'autoheader'
- ;;
- automake*)
- echo "You should only need it if you modified 'Makefile.am' or"
- echo "$configure_deps."
- program_details 'automake'
- ;;
- aclocal*)
- echo "You should only need it if you modified 'acinclude.m4' or"
- echo "$configure_deps."
- program_details 'aclocal'
- ;;
- autom4te*)
- echo "You might have modified some maintainer files that require"
- echo "the 'autom4te' program to be rebuilt."
- program_details 'autom4te'
- ;;
- bison*|yacc*)
- echo "You should only need it if you modified a '.y' file."
- echo "You may want to install the GNU Bison package:"
- echo "<$gnu_software_URL/bison/>"
- ;;
- lex*|flex*)
- echo "You should only need it if you modified a '.l' file."
- echo "You may want to install the Fast Lexical Analyzer package:"
- echo "<$flex_URL>"
- ;;
- help2man*)
- echo "You should only need it if you modified a dependency" \
- "of a man page."
- echo "You may want to install the GNU Help2man package:"
- echo "<$gnu_software_URL/help2man/>"
- ;;
- makeinfo*)
- echo "You should only need it if you modified a '.texi' file, or"
- echo "any other file indirectly affecting the aspect of the manual."
- echo "You might want to install the Texinfo package:"
- echo "<$gnu_software_URL/texinfo/>"
- echo "The spurious makeinfo call might also be the consequence of"
- echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
- echo "want to install GNU make:"
- echo "<$gnu_software_URL/make/>"
- ;;
- *)
- echo "You might have modified some files without having the proper"
- echo "tools for further handling them. Check the 'README' file, it"
- echo "often tells you about the needed prerequisites for installing"
- echo "this package. You may also peek at any GNU archive site, in"
- echo "case some other package contains this missing '$1' program."
- ;;
- esac
-}
-
-give_advice "$1" | sed -e '1s/^/WARNING: /' \
- -e '2,$s/^/ /' >&2
-
-# Propagate the correct exit status (expected to be 127 for a program
-# not found, 63 for a program that failed due to version mismatch).
-exit $st
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/src/config/test-driver b/src/config/test-driver
deleted file mode 100755
index d3060566..00000000
--- a/src/config/test-driver
+++ /dev/null
@@ -1,139 +0,0 @@
-#! /bin/sh
-# test-driver - basic testsuite driver script.
-
-scriptversion=2013-07-13.22; # UTC
-
-# Copyright (C) 2011-2013 Free Software Foundation, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to <bug-automake@gnu.org> or send patches to
-# <automake-patches@gnu.org>.
-
-# Make unconditional expansion of undefined variables an error. This
-# helps a lot in preventing typo-related bugs.
-set -u
-
-usage_error ()
-{
- echo "$0: $*" >&2
- print_usage >&2
- exit 2
-}
-
-print_usage ()
-{
- cat <<END
-Usage:
- test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
- [--expect-failure={yes|no}] [--color-tests={yes|no}]
- [--enable-hard-errors={yes|no}] [--]
- TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
-The '--test-name', '--log-file' and '--trs-file' options are mandatory.
-END
-}
-
-test_name= # Used for reporting.
-log_file= # Where to save the output of the test script.
-trs_file= # Where to save the metadata of the test run.
-expect_failure=no
-color_tests=no
-enable_hard_errors=yes
-while test $# -gt 0; do
- case $1 in
- --help) print_usage; exit $?;;
- --version) echo "test-driver $scriptversion"; exit $?;;
- --test-name) test_name=$2; shift;;
- --log-file) log_file=$2; shift;;
- --trs-file) trs_file=$2; shift;;
- --color-tests) color_tests=$2; shift;;
- --expect-failure) expect_failure=$2; shift;;
- --enable-hard-errors) enable_hard_errors=$2; shift;;
- --) shift; break;;
- -*) usage_error "invalid option: '$1'";;
- *) break;;
- esac
- shift
-done
-
-missing_opts=
-test x"$test_name" = x && missing_opts="$missing_opts --test-name"
-test x"$log_file" = x && missing_opts="$missing_opts --log-file"
-test x"$trs_file" = x && missing_opts="$missing_opts --trs-file"
-if test x"$missing_opts" != x; then
- usage_error "the following mandatory options are missing:$missing_opts"
-fi
-
-if test $# -eq 0; then
- usage_error "missing argument"
-fi
-
-if test $color_tests = yes; then
- # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
- red='' # Red.
- grn='' # Green.
- lgn='' # Light green.
- blu='' # Blue.
- mgn='' # Magenta.
- std='' # No color.
-else
- red= grn= lgn= blu= mgn= std=
-fi
-
-do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
-trap "st=129; $do_exit" 1
-trap "st=130; $do_exit" 2
-trap "st=141; $do_exit" 13
-trap "st=143; $do_exit" 15
-
-# Test script is run here.
-"$@" >$log_file 2>&1
-estatus=$?
-if test $enable_hard_errors = no && test $estatus -eq 99; then
- estatus=1
-fi
-
-case $estatus:$expect_failure in
- 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
- 0:*) col=$grn res=PASS recheck=no gcopy=no;;
- 77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
- 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
- *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
- *:*) col=$red res=FAIL recheck=yes gcopy=yes;;
-esac
-
-# Report outcome to console.
-echo "${col}${res}${std}: $test_name"
-
-# Register the test result, and other relevant metadata.
-echo ":test-result: $res" > $trs_file
-echo ":global-test-result: $res" >> $trs_file
-echo ":recheck: $recheck" >> $trs_file
-echo ":copy-in-global-log: $gcopy" >> $trs_file
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/src/config/version.h.in b/src/config/version.h.in
deleted file mode 100644
index 34e62c3b..00000000
--- a/src/config/version.h.in
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Version information about elfutils development libraries.
- Copyright (C) 2008 Red Hat, Inc.
-
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _ELFUTILS_VERSION_H
-#define _ELFUTILS_VERSION_H 1
-
-#define _ELFUTILS_VERSION @eu_version@
-
-#define _ELFUTILS_PREREQ(major, minor) \
- (_ELFUTILS_VERSION >= ((major) * 1000 + (minor)))
-
-#endif /* elfutils/version.h */
diff --git a/src/config/ylwrap b/src/config/ylwrap
deleted file mode 100755
index 8f072a8e..00000000
--- a/src/config/ylwrap
+++ /dev/null
@@ -1,247 +0,0 @@
-#! /bin/sh
-# ylwrap - wrapper for lex/yacc invocations.
-
-scriptversion=2013-01-12.17; # UTC
-
-# Copyright (C) 1996-2013 Free Software Foundation, Inc.
-#
-# Written by Tom Tromey <tromey@cygnus.com>.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to <bug-automake@gnu.org> or send patches to
-# <automake-patches@gnu.org>.
-
-get_dirname ()
-{
- case $1 in
- */*|*\\*) printf '%s\n' "$1" | sed -e 's|\([\\/]\)[^\\/]*$|\1|';;
- # Otherwise, we want the empty string (not ".").
- esac
-}
-
-# guard FILE
-# ----------
-# The CPP macro used to guard inclusion of FILE.
-guard ()
-{
- printf '%s\n' "$1" \
- | sed \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
- -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g' \
- -e 's/__*/_/g'
-}
-
-# quote_for_sed [STRING]
-# ----------------------
-# Return STRING (or stdin) quoted to be used as a sed pattern.
-quote_for_sed ()
-{
- case $# in
- 0) cat;;
- 1) printf '%s\n' "$1";;
- esac \
- | sed -e 's|[][\\.*]|\\&|g'
-}
-
-case "$1" in
- '')
- echo "$0: No files given. Try '$0 --help' for more information." 1>&2
- exit 1
- ;;
- --basedir)
- basedir=$2
- shift 2
- ;;
- -h|--h*)
- cat <<\EOF
-Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]...
-
-Wrapper for lex/yacc invocations, renaming files as desired.
-
- INPUT is the input file
- OUTPUT is one file PROG generates
- DESIRED is the file we actually want instead of OUTPUT
- PROGRAM is program to run
- ARGS are passed to PROG
-
-Any number of OUTPUT,DESIRED pairs may be used.
-
-Report bugs to <bug-automake@gnu.org>.
-EOF
- exit $?
- ;;
- -v|--v*)
- echo "ylwrap $scriptversion"
- exit $?
- ;;
-esac
-
-
-# The input.
-input=$1
-shift
-# We'll later need for a correct munging of "#line" directives.
-input_sub_rx=`get_dirname "$input" | quote_for_sed`
-case $input in
- [\\/]* | ?:[\\/]*)
- # Absolute path; do nothing.
- ;;
- *)
- # Relative path. Make it absolute.
- input=`pwd`/$input
- ;;
-esac
-input_rx=`get_dirname "$input" | quote_for_sed`
-
-# Since DOS filename conventions don't allow two dots,
-# the DOS version of Bison writes out y_tab.c instead of y.tab.c
-# and y_tab.h instead of y.tab.h. Test to see if this is the case.
-y_tab_nodot=false
-if test -f y_tab.c || test -f y_tab.h; then
- y_tab_nodot=true
-fi
-
-# The parser itself, the first file, is the destination of the .y.c
-# rule in the Makefile.
-parser=$1
-
-# A sed program to s/FROM/TO/g for all the FROM/TO so that, for
-# instance, we rename #include "y.tab.h" into #include "parse.h"
-# during the conversion from y.tab.c to parse.c.
-sed_fix_filenames=
-
-# Also rename header guards, as Bison 2.7 for instance uses its header
-# guard in its implementation file.
-sed_fix_header_guards=
-
-while test $# -ne 0; do
- if test x"$1" = x"--"; then
- shift
- break
- fi
- from=$1
- # Handle y_tab.c and y_tab.h output by DOS
- if $y_tab_nodot; then
- case $from in
- "y.tab.c") from=y_tab.c;;
- "y.tab.h") from=y_tab.h;;
- esac
- fi
- shift
- to=$1
- shift
- sed_fix_filenames="${sed_fix_filenames}s|"`quote_for_sed "$from"`"|$to|g;"
- sed_fix_header_guards="${sed_fix_header_guards}s|"`guard "$from"`"|"`guard "$to"`"|g;"
-done
-
-# The program to run.
-prog=$1
-shift
-# Make any relative path in $prog absolute.
-case $prog in
- [\\/]* | ?:[\\/]*) ;;
- *[\\/]*) prog=`pwd`/$prog ;;
-esac
-
-dirname=ylwrap$$
-do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret'
-trap "ret=129; $do_exit" 1
-trap "ret=130; $do_exit" 2
-trap "ret=141; $do_exit" 13
-trap "ret=143; $do_exit" 15
-mkdir $dirname || exit 1
-
-cd $dirname
-
-case $# in
- 0) "$prog" "$input" ;;
- *) "$prog" "$@" "$input" ;;
-esac
-ret=$?
-
-if test $ret -eq 0; then
- for from in *
- do
- to=`printf '%s\n' "$from" | sed "$sed_fix_filenames"`
- if test -f "$from"; then
- # If $2 is an absolute path name, then just use that,
- # otherwise prepend '../'.
- case $to in
- [\\/]* | ?:[\\/]*) target=$to;;
- *) target=../$to;;
- esac
-
- # Do not overwrite unchanged header files to avoid useless
- # recompilations. Always update the parser itself: it is the
- # destination of the .y.c rule in the Makefile. Divert the
- # output of all other files to a temporary file so we can
- # compare them to existing versions.
- if test $from != $parser; then
- realtarget=$target
- target=tmp-`printf '%s\n' "$target" | sed 's|.*[\\/]||g'`
- fi
-
- # Munge "#line" or "#" directives. Don't let the resulting
- # debug information point at an absolute srcdir. Use the real
- # output file name, not yy.lex.c for instance. Adjust the
- # include guards too.
- sed -e "/^#/!b" \
- -e "s|$input_rx|$input_sub_rx|" \
- -e "$sed_fix_filenames" \
- -e "$sed_fix_header_guards" \
- "$from" >"$target" || ret=$?
-
- # Check whether files must be updated.
- if test "$from" != "$parser"; then
- if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then
- echo "$to is unchanged"
- rm -f "$target"
- else
- echo "updating $to"
- mv -f "$target" "$realtarget"
- fi
- fi
- else
- # A missing file is only an error for the parser. This is a
- # blatant hack to let us support using "yacc -d". If -d is not
- # specified, don't fail when the header file is "missing".
- if test "$from" = "$parser"; then
- ret=1
- fi
- fi
- done
-fi
-
-# Remove the directory.
-cd ..
-rm -rf $dirname
-
-exit $ret
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/src/configure b/src/configure
deleted file mode 100755
index 09ea13a6..00000000
--- a/src/configure
+++ /dev/null
@@ -1,8226 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for elfutils 0.161.
-#
-# Report bugs to <https://bugzilla.redhat.com/>.
-#
-#
-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
-#
-#
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-#
-# Copyright (C) 1996-2014 Red Hat, Inc.
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
-else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order. Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
- as_myself=$0
-fi
-if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there. '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# Use a proper internal environment variable to ensure we don't fall
- # into an infinite loop, continuously re-executing ourselves.
- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
- _as_can_reexec=no; export _as_can_reexec;
- # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-as_fn_exit 255
- fi
- # We don't want this to propagate to other subprocesses.
- { _as_can_reexec=; unset _as_can_reexec;}
-if test "x$CONFIG_SHELL" = x; then
- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '\${1+\"\$@\"}'='\"\$@\"'
- setopt NO_GLOB_SUBST
-else
- case \`(set -o) 2>/dev/null\` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-"
- as_required="as_fn_return () { (exit \$1); }
-as_fn_success () { as_fn_return 0; }
-as_fn_failure () { as_fn_return 1; }
-as_fn_ret_success () { return 0; }
-as_fn_ret_failure () { return 1; }
-
-exitcode=0
-as_fn_success || { exitcode=1; echo as_fn_success failed.; }
-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
-
-else
- exitcode=1; echo positional parameters were not saved.
-fi
-test x\$exitcode = x0 || exit 1
-test -x / || exit 1"
- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
-test \$(( 1 + 1 )) = 2 || exit 1"
- if (eval "$as_required") 2>/dev/null; then :
- as_have_required=yes
-else
- as_have_required=no
-fi
- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
-
-else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-as_found=false
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- as_found=:
- case $as_dir in #(
- /*)
- for as_base in sh bash ksh sh5; do
- # Try only shells that exist, to save several forks.
- as_shell=$as_dir/$as_base
- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
- CONFIG_SHELL=$as_shell as_have_required=yes
- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
- break 2
-fi
-fi
- done;;
- esac
- as_found=false
-done
-$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
- CONFIG_SHELL=$SHELL as_have_required=yes
-fi; }
-IFS=$as_save_IFS
-
-
- if test "x$CONFIG_SHELL" != x; then :
- export CONFIG_SHELL
- # We cannot yet assume a decent shell, so we have to provide a
-# neutralization value for shells without unset; and this also
-# works around shells that cannot unset nonexistent variables.
-# Preserve -v and -x to the replacement shell.
-BASH_ENV=/dev/null
-ENV=/dev/null
-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
-case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
-esac
-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
-# Admittedly, this is quite paranoid, since all the known shells bail
-# out after a failed `exec'.
-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
-exit 255
-fi
-
- if test x$as_have_required = xno; then :
- $as_echo "$0: This script requires a shell more modern than all"
- $as_echo "$0: the shells that I found on your system."
- if test x${ZSH_VERSION+set} = xset ; then
- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
- $as_echo "$0: be upgraded to zsh 4.3.4 or later."
- else
- $as_echo "$0: Please tell bug-autoconf@gnu.org and
-$0: https://bugzilla.redhat.com/ about your system,
-$0: including any error possibly output before this
-$0: message. Then install a modern shell, or manually run
-$0: the script under such a shell if you do have one."
- fi
- exit 1
-fi
-fi
-fi
-SHELL=${CONFIG_SHELL-/bin/sh}
-export SHELL
-# Unset more variables known to interfere with behavior of common tools.
-CLICOLOR_FORCE= GREP_OPTIONS=
-unset CLICOLOR_FORCE GREP_OPTIONS
-
-## --------------------- ##
-## M4sh Shell Functions. ##
-## --------------------- ##
-# as_fn_unset VAR
-# ---------------
-# Portably unset VAR.
-as_fn_unset ()
-{
- { eval $1=; unset $1;}
-}
-as_unset=as_fn_unset
-
-# as_fn_set_status STATUS
-# -----------------------
-# Set $? to STATUS, without forking.
-as_fn_set_status ()
-{
- return $1
-} # as_fn_set_status
-
-# as_fn_exit STATUS
-# -----------------
-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
-as_fn_exit ()
-{
- set +e
- as_fn_set_status $1
- exit $1
-} # as_fn_exit
-
-# as_fn_mkdir_p
-# -------------
-# Create "$as_dir" as a directory, including parents if necessary.
-as_fn_mkdir_p ()
-{
-
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
-
-
-} # as_fn_mkdir_p
-
-# as_fn_executable_p FILE
-# -----------------------
-# Test if FILE is an executable regular file.
-as_fn_executable_p ()
-{
- test -f "$1" && test -x "$1"
-} # as_fn_executable_p
-# as_fn_append VAR VALUE
-# ----------------------
-# Append the text in VALUE to the end of the definition contained in VAR. Take
-# advantage of any shell optimizations that allow amortized linear growth over
-# repeated appends, instead of the typical quadratic growth present in naive
-# implementations.
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
-else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
-fi # as_fn_append
-
-# as_fn_arith ARG...
-# ------------------
-# Perform arithmetic evaluation on the ARGs, and store the result in the
-# global $as_val. Take advantage of shells that can avoid forks. The arguments
-# must be portable across $(()) and expr.
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
-else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
-fi # as_fn_arith
-
-
-# as_fn_error STATUS ERROR [LINENO LOG_FD]
-# ----------------------------------------
-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
-# script with STATUS, using 1 if that was 0.
-as_fn_error ()
-{
- as_status=$1; test $as_status -eq 0 && as_status=1
- if test "$4"; then
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
- fi
- $as_echo "$as_me: error: $2" >&2
- as_fn_exit $as_status
-} # as_fn_error
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
-else
- as_basename=false
-fi
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
-else
- as_dirname=false
-fi
-
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
-
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-
- as_lineno_1=$LINENO as_lineno_1a=$LINENO
- as_lineno_2=$LINENO as_lineno_2a=$LINENO
- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
- sed -n '
- p
- /[$]LINENO/=
- ' <$as_myself |
- sed '
- s/[$]LINENO.*/&-/
- t lineno
- b
- :lineno
- N
- :loop
- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
- t loop
- s/-\n.*//
- ' >$as_me.lineno &&
- chmod +x "$as_me.lineno" ||
- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
-
- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
- # already done that, so ensure we don't try to do so again and fall
- # in an infinite loop. This has already happened in practice.
- _as_can_reexec=no; export _as_can_reexec
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensitive to this).
- . "./$as_me.lineno"
- # Exit status is that of the last command.
- exit
-}
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in #(((((
--n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
-*)
- ECHO_N='-n';;
-esac
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
-else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -pR'
- fi
-else
- as_ln_s='cp -pR'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
-else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
-fi
-
-as_test_x='test -x'
-as_executable_p=as_fn_executable_p
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-test -n "$DJDIR" || exec 7<&0 </dev/null
-exec 6>&1
-
-# Name of the host.
-# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
-# so uname gets run too.
-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
-
-#
-# Initializations.
-#
-ac_default_prefix=/usr/local
-ac_clean_files=
-ac_config_libobj_dir=.
-LIBOBJS=
-cross_compiling=no
-subdirs=
-MFLAGS=
-MAKEFLAGS=
-
-# Identity of this package.
-PACKAGE_NAME='elfutils'
-PACKAGE_TARNAME='elfutils'
-PACKAGE_VERSION='0.161'
-PACKAGE_STRING='elfutils 0.161'
-PACKAGE_BUGREPORT='https://bugzilla.redhat.com/'
-PACKAGE_URL=''
-
-ac_unique_file="libelf/libelf.h"
-# Factoring default headers for most tests.
-ac_includes_default="\
-#include <stdio.h>
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_STRING_H
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif"
-
-ac_subst_vars='am__EXEEXT_FALSE
-am__EXEEXT_TRUE
-LTLIBOBJS
-LIBOBJS
-CC_BIARCH
-BIARCH_FALSE
-BIARCH_TRUE
-EGREP
-GREP
-CPP
-eu_version
-XGETTEXT_EXTRA_OPTIONS
-MSGMERGE
-XGETTEXT_015
-XGETTEXT
-GMSGFMT_015
-MSGFMT_015
-GMSGFMT
-MSGFMT
-GETTEXT_MACRO_VERSION
-USE_NLS
-STANDALONE_FALSE
-STANDALONE_TRUE
-HAVE_LIBASM_FALSE
-HAVE_LIBASM_TRUE
-FATAL_TEXTREL_FALSE
-FATAL_TEXTREL_TRUE
-DEMANGLE_FALSE
-DEMANGLE_TRUE
-zip_LIBS
-LZMA_FALSE
-LZMA_TRUE
-BZLIB_FALSE
-BZLIB_TRUE
-ZLIB_FALSE
-ZLIB_TRUE
-LIBEBL_SUBDIR
-TESTS_RPATH_FALSE
-TESTS_RPATH_TRUE
-BUILD_STATIC_FALSE
-BUILD_STATIC_TRUE
-USE_VALGRIND_FALSE
-USE_VALGRIND_TRUE
-HAVE_VALGRIND
-GCOV_FALSE
-GCOV_TRUE
-GPROF_FALSE
-GPROF_TRUE
-DEBUGPRED
-NEVER_FALSE
-NEVER_TRUE
-base_cpu
-NATIVE_LD_FALSE
-NATIVE_LD_TRUE
-NM
-READELF
-ac_ct_AR
-AR
-LEXLIB
-LEX_OUTPUT_ROOT
-LEX
-YFLAGS
-YACC
-RANLIB
-am__fastdepCC_FALSE
-am__fastdepCC_TRUE
-CCDEPMODE
-am__nodep
-AMDEPBACKSLASH
-AMDEP_FALSE
-AMDEP_TRUE
-am__quote
-am__include
-DEPDIR
-OBJEXT
-EXEEXT
-ac_ct_CC
-CPPFLAGS
-LDFLAGS
-CFLAGS
-CC
-USE_LOCKS_FALSE
-USE_LOCKS_TRUE
-host_os
-host_vendor
-host_cpu
-host
-build_os
-build_vendor
-build_cpu
-build
-MODVERSION
-MAINT
-MAINTAINER_MODE_FALSE
-MAINTAINER_MODE_TRUE
-AM_BACKSLASH
-AM_DEFAULT_VERBOSITY
-AM_DEFAULT_V
-AM_V
-am__untar
-am__tar
-AMTAR
-am__leading_dot
-SET_MAKE
-AWK
-mkdir_p
-MKDIR_P
-INSTALL_STRIP_PROGRAM
-STRIP
-install_sh
-MAKEINFO
-AUTOHEADER
-AUTOMAKE
-AUTOCONF
-ACLOCAL
-VERSION
-PACKAGE
-CYGPATH_W
-am__isrc
-INSTALL_DATA
-INSTALL_SCRIPT
-INSTALL_PROGRAM
-target_alias
-host_alias
-build_alias
-LIBS
-ECHO_T
-ECHO_N
-ECHO_C
-DEFS
-mandir
-localedir
-libdir
-psdir
-pdfdir
-dvidir
-htmldir
-infodir
-docdir
-oldincludedir
-includedir
-localstatedir
-sharedstatedir
-sysconfdir
-datadir
-datarootdir
-libexecdir
-sbindir
-bindir
-program_transform_name
-prefix
-exec_prefix
-PACKAGE_URL
-PACKAGE_BUGREPORT
-PACKAGE_STRING
-PACKAGE_VERSION
-PACKAGE_TARNAME
-PACKAGE_NAME
-PATH_SEPARATOR
-SHELL'
-ac_subst_files=''
-ac_user_opts='
-enable_option_checking
-enable_silent_rules
-enable_maintainer_mode
-enable_deterministic_archives
-enable_thread_safety
-enable_dependency_tracking
-enable_largefile
-enable_generic
-enable_debugpred
-enable_gprof
-enable_gcov
-enable_valgrind
-enable_tests_rpath
-enable_libebl_subdir
-with_zlib
-with_bzlib
-with_lzma
-enable_textrelcheck
-enable_nls
-with_biarch
-'
- ac_precious_vars='build_alias
-host_alias
-target_alias
-CC
-CFLAGS
-LDFLAGS
-LIBS
-CPPFLAGS
-YACC
-YFLAGS
-CPP'
-
-
-# Initialize some variables set by options.
-ac_init_help=
-ac_init_version=false
-ac_unrecognized_opts=
-ac_unrecognized_sep=
-# The variables have the same names as the options, with
-# dashes changed to underlines.
-cache_file=/dev/null
-exec_prefix=NONE
-no_create=
-no_recursion=
-prefix=NONE
-program_prefix=NONE
-program_suffix=NONE
-program_transform_name=s,x,x,
-silent=
-site=
-srcdir=
-verbose=
-x_includes=NONE
-x_libraries=NONE
-
-# Installation directory options.
-# These are left unexpanded so users can "make install exec_prefix=/foo"
-# and all the variables that are supposed to be based on exec_prefix
-# by default will actually change.
-# Use braces instead of parens because sh, perl, etc. also accept them.
-# (The list follows the same order as the GNU Coding Standards.)
-bindir='${exec_prefix}/bin'
-sbindir='${exec_prefix}/sbin'
-libexecdir='${exec_prefix}/libexec'
-datarootdir='${prefix}/share'
-datadir='${datarootdir}'
-sysconfdir='${prefix}/etc'
-sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
-includedir='${prefix}/include'
-oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
-infodir='${datarootdir}/info'
-htmldir='${docdir}'
-dvidir='${docdir}'
-pdfdir='${docdir}'
-psdir='${docdir}'
-libdir='${exec_prefix}/lib'
-localedir='${datarootdir}/locale'
-mandir='${datarootdir}/man'
-
-ac_prev=
-ac_dashdash=
-for ac_option
-do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval $ac_prev=\$ac_option
- ac_prev=
- continue
- fi
-
- case $ac_option in
- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
- *=) ac_optarg= ;;
- *) ac_optarg=yes ;;
- esac
-
- # Accept the important Cygnus configure options, so we can diagnose typos.
-
- case $ac_dashdash$ac_option in
- --)
- ac_dashdash=yes ;;
-
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir=$ac_optarg ;;
-
- -build | --build | --buil | --bui | --bu)
- ac_prev=build_alias ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build_alias=$ac_optarg ;;
-
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file=$ac_optarg ;;
-
- --config-cache | -C)
- cache_file=config.cache ;;
-
- -datadir | --datadir | --datadi | --datad)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=*)
- datadir=$ac_optarg ;;
-
- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
- | --dataroo | --dataro | --datar)
- ac_prev=datarootdir ;;
- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
- datarootdir=$ac_optarg ;;
-
- -disable-* | --disable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"enable_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=no ;;
-
- -docdir | --docdir | --docdi | --doc | --do)
- ac_prev=docdir ;;
- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
- docdir=$ac_optarg ;;
-
- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
- ac_prev=dvidir ;;
- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
- dvidir=$ac_optarg ;;
-
- -enable-* | --enable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"enable_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=\$ac_optarg ;;
-
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix=$ac_optarg ;;
-
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
-
- -help | --help | --hel | --he | -h)
- ac_init_help=long ;;
- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
- ac_init_help=recursive ;;
- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
- ac_init_help=short ;;
-
- -host | --host | --hos | --ho)
- ac_prev=host_alias ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host_alias=$ac_optarg ;;
-
- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
- ac_prev=htmldir ;;
- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
- | --ht=*)
- htmldir=$ac_optarg ;;
-
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir=$ac_optarg ;;
-
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir=$ac_optarg ;;
-
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir=$ac_optarg ;;
-
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir=$ac_optarg ;;
-
- -localedir | --localedir | --localedi | --localed | --locale)
- ac_prev=localedir ;;
- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
- localedir=$ac_optarg ;;
-
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst | --locals)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
- localstatedir=$ac_optarg ;;
-
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir=$ac_optarg ;;
-
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
-
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c | -n)
- no_create=yes ;;
-
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
-
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir=$ac_optarg ;;
-
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix=$ac_optarg ;;
-
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix=$ac_optarg ;;
-
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix=$ac_optarg ;;
-
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name=$ac_optarg ;;
-
- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
- ac_prev=pdfdir ;;
- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
- pdfdir=$ac_optarg ;;
-
- -psdir | --psdir | --psdi | --psd | --ps)
- ac_prev=psdir ;;
- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
- psdir=$ac_optarg ;;
-
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
-
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir=$ac_optarg ;;
-
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir=$ac_optarg ;;
-
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site=$ac_optarg ;;
-
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir=$ac_optarg ;;
-
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir=$ac_optarg ;;
-
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target_alias ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target_alias=$ac_optarg ;;
-
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
-
- -version | --version | --versio | --versi | --vers | -V)
- ac_init_version=: ;;
-
- -with-* | --with-*)
- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"with_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=\$ac_optarg ;;
-
- -without-* | --without-*)
- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
-"with_$ac_useropt"
-"*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=no ;;
-
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
-
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes=$ac_optarg ;;
-
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries=$ac_optarg ;;
-
- -*) as_fn_error $? "unrecognized option: \`$ac_option'
-Try \`$0 --help' for more information"
- ;;
-
- *=*)
- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
- # Reject names that are not valid shell variable names.
- case $ac_envvar in #(
- '' | [0-9]* | *[!_$as_cr_alnum]* )
- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
- esac
- eval $ac_envvar=\$ac_optarg
- export $ac_envvar ;;
-
- *)
- # FIXME: should be removed in autoconf 3.0.
- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
- ;;
-
- esac
-done
-
-if test -n "$ac_prev"; then
- ac_option=--`echo $ac_prev | sed 's/_/-/g'`
- as_fn_error $? "missing argument to $ac_option"
-fi
-
-if test -n "$ac_unrecognized_opts"; then
- case $enable_option_checking in
- no) ;;
- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
- esac
-fi
-
-# Check all directory arguments for consistency.
-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
- datadir sysconfdir sharedstatedir localstatedir includedir \
- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir
-do
- eval ac_val=\$$ac_var
- # Remove trailing slashes.
- case $ac_val in
- */ )
- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
- eval $ac_var=\$ac_val;;
- esac
- # Be sure to have absolute directory names.
- case $ac_val in
- [\\/$]* | ?:[\\/]* ) continue;;
- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
- esac
- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
-done
-
-# There might be people who depend on the old broken behavior: `$host'
-# used to hold the argument of --host etc.
-# FIXME: To remove some day.
-build=$build_alias
-host=$host_alias
-target=$target_alias
-
-# FIXME: To remove some day.
-if test "x$host_alias" != x; then
- if test "x$build_alias" = x; then
- cross_compiling=maybe
- elif test "x$build_alias" != "x$host_alias"; then
- cross_compiling=yes
- fi
-fi
-
-ac_tool_prefix=
-test -n "$host_alias" && ac_tool_prefix=$host_alias-
-
-test "$silent" = yes && exec 6>/dev/null
-
-
-ac_pwd=`pwd` && test -n "$ac_pwd" &&
-ac_ls_di=`ls -di .` &&
-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
- as_fn_error $? "working directory cannot be determined"
-test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
- as_fn_error $? "pwd does not report name of working directory"
-
-
-# Find the source files, if location was not specified.
-if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then the parent directory.
- ac_confdir=`$as_dirname -- "$as_myself" ||
-$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_myself" : 'X\(//\)[^/]' \| \
- X"$as_myself" : 'X\(//\)$' \| \
- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_myself" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- srcdir=$ac_confdir
- if test ! -r "$srcdir/$ac_unique_file"; then
- srcdir=..
- fi
-else
- ac_srcdir_defaulted=no
-fi
-if test ! -r "$srcdir/$ac_unique_file"; then
- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
-fi
-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
-ac_abs_confdir=`(
- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
- pwd)`
-# When building in place, set srcdir=.
-if test "$ac_abs_confdir" = "$ac_pwd"; then
- srcdir=.
-fi
-# Remove unnecessary trailing slashes from srcdir.
-# Double slashes in file names in object file debugging info
-# mess up M-x gdb in Emacs.
-case $srcdir in
-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
-esac
-for ac_var in $ac_precious_vars; do
- eval ac_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_env_${ac_var}_value=\$${ac_var}
- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_cv_env_${ac_var}_value=\$${ac_var}
-done
-
-#
-# Report the --help message.
-#
-if test "$ac_init_help" = "long"; then
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat <<_ACEOF
-\`configure' configures elfutils 0.161 to adapt to many kinds of systems.
-
-Usage: $0 [OPTION]... [VAR=VALUE]...
-
-To assign environment variables (e.g., CC, CFLAGS...), specify them as
-VAR=VALUE. See below for descriptions of some of the useful variables.
-
-Defaults for the options are specified in brackets.
-
-Configuration:
- -h, --help display this help and exit
- --help=short display options specific to this package
- --help=recursive display the short help of all the included packages
- -V, --version display version information and exit
- -q, --quiet, --silent do not print \`checking ...' messages
- --cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for \`--cache-file=config.cache'
- -n, --no-create do not create output files
- --srcdir=DIR find the sources in DIR [configure dir or \`..']
-
-Installation directories:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [PREFIX]
-
-By default, \`make install' will install all the files in
-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
-an installation prefix other than \`$ac_default_prefix' using \`--prefix',
-for instance \`--prefix=\$HOME'.
-
-For better control, use the options below.
-
-Fine tuning of the installation directories:
- --bindir=DIR user executables [EPREFIX/bin]
- --sbindir=DIR system admin executables [EPREFIX/sbin]
- --libexecdir=DIR program executables [EPREFIX/libexec]
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --libdir=DIR object code libraries [EPREFIX/lib]
- --includedir=DIR C header files [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
- --infodir=DIR info documentation [DATAROOTDIR/info]
- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
- --mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/elfutils]
- --htmldir=DIR html documentation [DOCDIR]
- --dvidir=DIR dvi documentation [DOCDIR]
- --pdfdir=DIR pdf documentation [DOCDIR]
- --psdir=DIR ps documentation [DOCDIR]
-_ACEOF
-
- cat <<\_ACEOF
-
-Program names:
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM run sed PROGRAM on installed program names
-
-System types:
- --build=BUILD configure for building on BUILD [guessed]
- --host=HOST cross-compile to build programs to run on HOST [BUILD]
-_ACEOF
-fi
-
-if test -n "$ac_init_help"; then
- case $ac_init_help in
- short | recursive ) echo "Configuration of elfutils 0.161:";;
- esac
- cat <<\_ACEOF
-
-Optional Features:
- --disable-option-checking ignore unrecognized --enable/--with options
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --enable-silent-rules less verbose build output (undo: "make V=1")
- --disable-silent-rules verbose build output (undo: "make V=0")
- --enable-maintainer-mode
- enable make rules and dependencies not useful (and
- sometimes confusing) to the casual installer
- --enable-deterministic-archives
- ar and ranlib default to -D behavior
- --enable-thread-safety enable thread safety of libraries EXPERIMENTAL
- --enable-dependency-tracking
- do not reject slow dependency extractors
- --disable-dependency-tracking
- speeds up one-time build
- --disable-largefile omit support for large files
- --disable-generic do not build generic linker
- --enable-debugpred build binaries with support to debug branch
- prediction
- --enable-gprof build binaries with gprof support
- --enable-gcov build binaries with gcov support
- --enable-valgrind run all tests under valgrind
- --enable-tests-rpath build $ORIGIN-using rpath into tests
- --enable-libebl-subdir=DIR
- install libebl_CPU modules in $(libdir)/DIR
- --disable-textrelcheck Disable textrelcheck being a fatal error
- --disable-nls do not use Native Language Support
-
-Optional Packages:
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-zlib support [zlib] compression in libdwfl
- --with-bzlib support [bzlib] compression in libdwfl
- --with-lzma support [lzma] compression in libdwfl
- --with-biarch enable biarch tests despite build problems
-
-Some influential environment variables:
- CC C compiler command
- CFLAGS C compiler flags
- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
- nonstandard directory <lib dir>
- LIBS libraries to pass to the linker, e.g. -l<library>
- CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
- you have headers in a nonstandard directory <include dir>
- YACC The `Yet Another Compiler Compiler' implementation to use.
- Defaults to the first program found out of: `bison -y', `byacc',
- `yacc'.
- YFLAGS The list of arguments that will be passed by default to $YACC.
- This script will default YFLAGS to the empty string to avoid a
- default value of `-d' given by some make applications.
- CPP C preprocessor
-
-Use these variables to override the choices made by `configure' or to help
-it to find libraries and programs with nonstandard names/locations.
-
-Report bugs to <https://bugzilla.redhat.com/>.
-_ACEOF
-ac_status=$?
-fi
-
-if test "$ac_init_help" = "recursive"; then
- # If there are subdirs, report their specific --help.
- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
- test -d "$ac_dir" ||
- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
- continue
- ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\\/]* | ?:[\\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
- cd "$ac_dir" || { ac_status=$?; continue; }
- # Check for guested configure.
- if test -f "$ac_srcdir/configure.gnu"; then
- echo &&
- $SHELL "$ac_srcdir/configure.gnu" --help=recursive
- elif test -f "$ac_srcdir/configure"; then
- echo &&
- $SHELL "$ac_srcdir/configure" --help=recursive
- else
- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
- fi || ac_status=$?
- cd "$ac_pwd" || { ac_status=$?; break; }
- done
-fi
-
-test -n "$ac_init_help" && exit $ac_status
-if $ac_init_version; then
- cat <<\_ACEOF
-elfutils configure 0.161
-generated by GNU Autoconf 2.69
-
-Copyright (C) 2012 Free Software Foundation, Inc.
-This configure script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it.
-
-Copyright (C) 1996-2014 Red Hat, Inc.
-_ACEOF
- exit
-fi
-
-## ------------------------ ##
-## Autoconf initialization. ##
-## ------------------------ ##
-
-# ac_fn_c_try_compile LINENO
-# --------------------------
-# Try to compile conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_compile ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext
- if { { ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then :
- ac_retval=0
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=1
-fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_compile
-
-# ac_fn_c_try_link LINENO
-# -----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_link ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- test -x conftest$ac_exeext
- }; then :
- ac_retval=0
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=1
-fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_link
-
-# ac_fn_c_try_run LINENO
-# ----------------------
-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
-# that executables *can* be run.
-ac_fn_c_try_run ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then :
- ac_retval=0
-else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=$ac_status
-fi
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_run
-
-# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
-# --------------------------------------------
-# Tries to find the compile-time value of EXPR in a program that includes
-# INCLUDES, setting VAR accordingly. Returns whether the value could be
-# computed
-ac_fn_c_compute_int ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if test "$cross_compiling" = yes; then
- # Depending upon the size, compute the lo and hi bounds.
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) >= 0)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_lo=0 ac_mid=0
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) <= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=$ac_mid; break
-else
- as_fn_arith $ac_mid + 1 && ac_lo=$as_val
- if test $ac_lo -le $ac_mid; then
- ac_lo= ac_hi=
- break
- fi
- as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) < 0)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=-1 ac_mid=-1
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) >= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_lo=$ac_mid; break
-else
- as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
- if test $ac_mid -le $ac_hi; then
- ac_lo= ac_hi=
- break
- fi
- as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
-else
- ac_lo= ac_hi=
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-# Binary search between lo and hi bounds.
-while test "x$ac_lo" != "x$ac_hi"; do
- as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-static int test_array [1 - 2 * !(($2) <= $ac_mid)];
-test_array [0] = 0;
-return test_array [0];
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=$ac_mid
-else
- as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-done
-case $ac_lo in #((
-?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
-'') ac_retval=1 ;;
-esac
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-static long int longval () { return $2; }
-static unsigned long int ulongval () { return $2; }
-#include <stdio.h>
-#include <stdlib.h>
-int
-main ()
-{
-
- FILE *f = fopen ("conftest.val", "w");
- if (! f)
- return 1;
- if (($2) < 0)
- {
- long int i = longval ();
- if (i != ($2))
- return 1;
- fprintf (f, "%ld", i);
- }
- else
- {
- unsigned long int i = ulongval ();
- if (i != ($2))
- return 1;
- fprintf (f, "%lu", i);
- }
- /* Do not output a trailing newline, as this causes \r\n confusion
- on some platforms. */
- return ferror (f) || fclose (f) != 0;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
- echo >>conftest.val; read $3 <conftest.val; ac_retval=0
-else
- ac_retval=1
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-rm -f conftest.val
-
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_compute_int
-
-# ac_fn_c_try_cpp LINENO
-# ----------------------
-# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
-ac_fn_c_try_cpp ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } > conftest.i && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then :
- ac_retval=0
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_retval=1
-fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
-
-} # ac_fn_c_try_cpp
-
-# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
-# -------------------------------------------------------
-# Tests whether HEADER exists and can be compiled using the include files in
-# INCLUDES, setting the cache variable VAR accordingly.
-ac_fn_c_check_header_compile ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-#include <$2>
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- eval "$3=yes"
-else
- eval "$3=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_header_compile
-
-# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
-# -------------------------------------------
-# Tests whether TYPE exists after having included INCLUDES, setting cache
-# variable VAR accordingly.
-ac_fn_c_check_type ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
-$as_echo_n "checking for $2... " >&6; }
-if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- eval "$3=no"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-if (sizeof ($2))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$4
-int
-main ()
-{
-if (sizeof (($2)))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-else
- eval "$3=yes"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_type
-cat >config.log <<_ACEOF
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-
-It was created by elfutils $as_me 0.161, which was
-generated by GNU Autoconf 2.69. Invocation command line was
-
- $ $0 $@
-
-_ACEOF
-exec 5>>config.log
-{
-cat <<_ASUNAME
-## --------- ##
-## Platform. ##
-## --------- ##
-
-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
-
-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
-
-_ASUNAME
-
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- $as_echo "PATH: $as_dir"
- done
-IFS=$as_save_IFS
-
-} >&5
-
-cat >&5 <<_ACEOF
-
-
-## ----------- ##
-## Core tests. ##
-## ----------- ##
-
-_ACEOF
-
-
-# Keep a trace of the command line.
-# Strip out --no-create and --no-recursion so they do not pile up.
-# Strip out --silent because we don't want to record it for future runs.
-# Also quote any args containing shell meta-characters.
-# Make two passes to allow for proper duplicate-argument suppression.
-ac_configure_args=
-ac_configure_args0=
-ac_configure_args1=
-ac_must_keep_next=false
-for ac_pass in 1 2
-do
- for ac_arg
- do
- case $ac_arg in
- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- continue ;;
- *\'*)
- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- case $ac_pass in
- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
- 2)
- as_fn_append ac_configure_args1 " '$ac_arg'"
- if test $ac_must_keep_next = true; then
- ac_must_keep_next=false # Got value, back to normal.
- else
- case $ac_arg in
- *=* | --config-cache | -C | -disable-* | --disable-* \
- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
- | -with-* | --with-* | -without-* | --without-* | --x)
- case "$ac_configure_args0 " in
- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
- esac
- ;;
- -* ) ac_must_keep_next=true ;;
- esac
- fi
- as_fn_append ac_configure_args " '$ac_arg'"
- ;;
- esac
- done
-done
-{ ac_configure_args0=; unset ac_configure_args0;}
-{ ac_configure_args1=; unset ac_configure_args1;}
-
-# When interrupted or exit'd, cleanup temporary files, and complete
-# config.log. We remove comments because anyway the quotes in there
-# would cause problems or look ugly.
-# WARNING: Use '\'' to represent an apostrophe within the trap.
-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
-trap 'exit_status=$?
- # Save into config.log some information that might help in debugging.
- {
- echo
-
- $as_echo "## ---------------- ##
-## Cache variables. ##
-## ---------------- ##"
- echo
- # The following way of writing the cache mishandles newlines in values,
-(
- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
- eval ac_val=\$$ac_var
- case $ac_val in #(
- *${as_nl}*)
- case $ac_var in #(
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
- *) { eval $ac_var=; unset $ac_var;} ;;
- esac ;;
- esac
- done
- (set) 2>&1 |
- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
- *${as_nl}ac_space=\ *)
- sed -n \
- "s/'\''/'\''\\\\'\'''\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
- ;; #(
- *)
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
- ;;
- esac |
- sort
-)
- echo
-
- $as_echo "## ----------------- ##
-## Output variables. ##
-## ----------------- ##"
- echo
- for ac_var in $ac_subst_vars
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- $as_echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
-
- if test -n "$ac_subst_files"; then
- $as_echo "## ------------------- ##
-## File substitutions. ##
-## ------------------- ##"
- echo
- for ac_var in $ac_subst_files
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- $as_echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
- fi
-
- if test -s confdefs.h; then
- $as_echo "## ----------- ##
-## confdefs.h. ##
-## ----------- ##"
- echo
- cat confdefs.h
- echo
- fi
- test "$ac_signal" != 0 &&
- $as_echo "$as_me: caught signal $ac_signal"
- $as_echo "$as_me: exit $exit_status"
- } >&5
- rm -f core *.core core.conftest.* &&
- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
- exit $exit_status
-' 0
-for ac_signal in 1 2 13 15; do
- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
-done
-ac_signal=0
-
-# confdefs.h avoids OS command line length limits that DEFS can exceed.
-rm -f -r conftest* confdefs.h
-
-$as_echo "/* confdefs.h */" > confdefs.h
-
-# Predefined preprocessor variables.
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_NAME "$PACKAGE_NAME"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_VERSION "$PACKAGE_VERSION"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_STRING "$PACKAGE_STRING"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_URL "$PACKAGE_URL"
-_ACEOF
-
-
-# Let the site file select an alternate cache file if it wants to.
-# Prefer an explicitly selected file to automatically selected ones.
-ac_site_file1=NONE
-ac_site_file2=NONE
-if test -n "$CONFIG_SITE"; then
- # We do not want a PATH search for config.site.
- case $CONFIG_SITE in #((
- -*) ac_site_file1=./$CONFIG_SITE;;
- */*) ac_site_file1=$CONFIG_SITE;;
- *) ac_site_file1=./$CONFIG_SITE;;
- esac
-elif test "x$prefix" != xNONE; then
- ac_site_file1=$prefix/share/config.site
- ac_site_file2=$prefix/etc/config.site
-else
- ac_site_file1=$ac_default_prefix/share/config.site
- ac_site_file2=$ac_default_prefix/etc/config.site
-fi
-for ac_site_file in "$ac_site_file1" "$ac_site_file2"
-do
- test "x$ac_site_file" = xNONE && continue
- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
-$as_echo "$as_me: loading site script $ac_site_file" >&6;}
- sed 's/^/| /' "$ac_site_file" >&5
- . "$ac_site_file" \
- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "failed to load site script $ac_site_file
-See \`config.log' for more details" "$LINENO" 5; }
- fi
-done
-
-if test -r "$cache_file"; then
- # Some versions of bash will fail to source /dev/null (special files
- # actually), so we avoid doing that. DJGPP emulates it as a regular file.
- if test /dev/null != "$cache_file" && test -f "$cache_file"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
-$as_echo "$as_me: loading cache $cache_file" >&6;}
- case $cache_file in
- [\\/]* | ?:[\\/]* ) . "$cache_file";;
- *) . "./$cache_file";;
- esac
- fi
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
-$as_echo "$as_me: creating cache $cache_file" >&6;}
- >$cache_file
-fi
-
-# Check that the precious variables saved in the cache have kept the same
-# value.
-ac_cache_corrupted=false
-for ac_var in $ac_precious_vars; do
- eval ac_old_set=\$ac_cv_env_${ac_var}_set
- eval ac_new_set=\$ac_env_${ac_var}_set
- eval ac_old_val=\$ac_cv_env_${ac_var}_value
- eval ac_new_val=\$ac_env_${ac_var}_value
- case $ac_old_set,$ac_new_set in
- set,)
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,set)
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
-$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,);;
- *)
- if test "x$ac_old_val" != "x$ac_new_val"; then
- # differences in whitespace do not lead to failure.
- ac_old_val_w=`echo x $ac_old_val`
- ac_new_val_w=`echo x $ac_new_val`
- if test "$ac_old_val_w" != "$ac_new_val_w"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
-$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
- ac_cache_corrupted=:
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
-$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
- eval $ac_var=\$ac_old_val
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
-$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
-$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
- fi;;
- esac
- # Pass precious variables to config.status.
- if test "$ac_new_set" = set; then
- case $ac_new_val in
- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
- *) ac_arg=$ac_var=$ac_new_val ;;
- esac
- case " $ac_configure_args " in
- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
- *) as_fn_append ac_configure_args " '$ac_arg'" ;;
- esac
- fi
-done
-if $ac_cache_corrupted; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
-$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
-fi
-## -------------------- ##
-## Main body of script. ##
-## -------------------- ##
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-
-ac_aux_dir=
-for ac_dir in config "$srcdir"/config; do
- if test -f "$ac_dir/install-sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f "$ac_dir/install.sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- elif test -f "$ac_dir/shtool"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/shtool install -c"
- break
- fi
-done
-if test -z "$ac_aux_dir"; then
- as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
-fi
-
-# These three variables are undocumented and unsupported,
-# and are intended to be withdrawn in a future Autoconf release.
-# They can cause serious problems if a builder's source tree is in a directory
-# whose full name contains unusual characters.
-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
-
-
-ac_config_files="$ac_config_files config/Makefile"
-
-
-
-
-am__api_version='1.14'
-
-# Find a good install program. We prefer a C program (faster),
-# so one script is as good as another. But avoid the broken or
-# incompatible versions:
-# SysV /etc/install, /usr/sbin/install
-# SunOS /usr/etc/install
-# IRIX /sbin/install
-# AIX /bin/install
-# AmigaOS /C/install, which installs bootblocks on floppy discs
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
-# OS/2's system install, which has a completely different semantic
-# ./install, which can be erroneously created by make from ./install.sh.
-# Reject install programs that cannot install multiple files.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
-$as_echo_n "checking for a BSD-compatible install... " >&6; }
-if test -z "$INSTALL"; then
-if ${ac_cv_path_install+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- # Account for people who put trailing slashes in PATH elements.
-case $as_dir/ in #((
- ./ | .// | /[cC]/* | \
- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
- ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
- /usr/ucb/* ) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
- if test $ac_prog = install &&
- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- elif test $ac_prog = install &&
- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # program-specific install script used by HP pwplus--don't use.
- :
- else
- rm -rf conftest.one conftest.two conftest.dir
- echo one > conftest.one
- echo two > conftest.two
- mkdir conftest.dir
- if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
- test -s conftest.one && test -s conftest.two &&
- test -s conftest.dir/conftest.one &&
- test -s conftest.dir/conftest.two
- then
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
- break 3
- fi
- fi
- fi
- done
- done
- ;;
-esac
-
- done
-IFS=$as_save_IFS
-
-rm -rf conftest.one conftest.two conftest.dir
-
-fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL=$ac_cv_path_install
- else
- # As a last resort, use the slow shell script. Don't cache a
- # value for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the value is a relative name.
- INSTALL=$ac_install_sh
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
-$as_echo "$INSTALL" >&6; }
-
-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
-# It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
-
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
-$as_echo_n "checking whether build environment is sane... " >&6; }
-# Reject unsafe characters in $srcdir or the absolute working directory
-# name. Accept space and tab only in the latter.
-am_lf='
-'
-case `pwd` in
- *[\\\"\#\$\&\'\`$am_lf]*)
- as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
-esac
-case $srcdir in
- *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
- as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
-esac
-
-# Do 'set' in a subshell so we don't clobber the current shell's
-# arguments. Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
- am_has_slept=no
- for am_try in 1 2; do
- echo "timestamp, slept: $am_has_slept" > conftest.file
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
- if test "$*" = "X"; then
- # -L didn't work.
- set X `ls -t "$srcdir/configure" conftest.file`
- fi
- if test "$*" != "X $srcdir/configure conftest.file" \
- && test "$*" != "X conftest.file $srcdir/configure"; then
-
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
- alias in your environment" "$LINENO" 5
- fi
- if test "$2" = conftest.file || test $am_try -eq 2; then
- break
- fi
- # Just in case.
- sleep 1
- am_has_slept=yes
- done
- test "$2" = conftest.file
- )
-then
- # Ok.
- :
-else
- as_fn_error $? "newly created file is older than distributed files!
-Check your system clock" "$LINENO" 5
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-# If we didn't sleep, we still need to ensure time stamps of config.status and
-# generated files are strictly newer.
-am_sleep_pid=
-if grep 'slept: no' conftest.file >/dev/null 2>&1; then
- ( sleep 1 ) &
- am_sleep_pid=$!
-fi
-
-rm -f conftest.file
-
-test "$program_prefix" != NONE &&
- program_transform_name="s&^&$program_prefix&;$program_transform_name"
-# Use a double $ so make ignores it.
-test "$program_suffix" != NONE &&
- program_transform_name="s&\$&$program_suffix&;$program_transform_name"
-# Double any \ or $.
-# By default was `s,x,x', remove it if useless.
-ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
-program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
-
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-
-if test x"${MISSING+set}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
- *)
- MISSING="\${SHELL} $am_aux_dir/missing" ;;
- esac
-fi
-# Use eval to expand $SHELL
-if eval "$MISSING --is-lightweight"; then
- am_missing_run="$MISSING "
-else
- am_missing_run=
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
-$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
-fi
-
-if test x"${install_sh}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
- *)
- install_sh="\${SHELL} $am_aux_dir/install-sh"
- esac
-fi
-
-# Installed binaries are usually stripped using 'strip' when the user
-# run "make install-strip". However 'strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the 'STRIP' environment variable to overrule this program.
-if test "$cross_compiling" != no; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_STRIP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$STRIP"; then
- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
-$as_echo "$STRIP" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_STRIP"; then
- ac_ct_STRIP=$STRIP
- # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_STRIP"; then
- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_STRIP="strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
-if test -n "$ac_ct_STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
-$as_echo "$ac_ct_STRIP" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_STRIP" = x; then
- STRIP=":"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- STRIP=$ac_ct_STRIP
- fi
-else
- STRIP="$ac_cv_prog_STRIP"
-fi
-
-fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
-$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
-if test -z "$MKDIR_P"; then
- if ${ac_cv_path_mkdir+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in mkdir gmkdir; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
- case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
- 'mkdir (GNU coreutils) '* | \
- 'mkdir (coreutils) '* | \
- 'mkdir (fileutils) '4.1*)
- ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
- break 3;;
- esac
- done
- done
- done
-IFS=$as_save_IFS
-
-fi
-
- test -d ./--version && rmdir ./--version
- if test "${ac_cv_path_mkdir+set}" = set; then
- MKDIR_P="$ac_cv_path_mkdir -p"
- else
- # As a last resort, use the slow shell script. Don't cache a
- # value for MKDIR_P within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the value is a relative name.
- MKDIR_P="$ac_install_sh -d"
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
-$as_echo "$MKDIR_P" >&6; }
-
-for ac_prog in gawk mawk nawk awk
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_AWK+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$AWK"; then
- ac_cv_prog_AWK="$AWK" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_AWK="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-AWK=$ac_cv_prog_AWK
-if test -n "$AWK"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
-$as_echo "$AWK" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$AWK" && break
-done
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
-$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
-set x ${MAKE-make}
-ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
-if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat >conftest.make <<\_ACEOF
-SHELL = /bin/sh
-all:
- @echo '@@@%%%=$(MAKE)=@@@%%%'
-_ACEOF
-# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
-case `${MAKE-make} -f conftest.make 2>/dev/null` in
- *@@@%%%=?*=@@@%%%*)
- eval ac_cv_prog_make_${ac_make}_set=yes;;
- *)
- eval ac_cv_prog_make_${ac_make}_set=no;;
-esac
-rm -f conftest.make
-fi
-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- SET_MAKE=
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- SET_MAKE="MAKE=${MAKE-make}"
-fi
-
-rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
- am__leading_dot=.
-else
- am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-
-# Check whether --enable-silent-rules was given.
-if test "${enable_silent_rules+set}" = set; then :
- enableval=$enable_silent_rules;
-fi
-
-case $enable_silent_rules in # (((
- yes) AM_DEFAULT_VERBOSITY=0;;
- no) AM_DEFAULT_VERBOSITY=1;;
- *) AM_DEFAULT_VERBOSITY=1;;
-esac
-am_make=${MAKE-make}
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
-$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
-if ${am_cv_make_support_nested_variables+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if $as_echo 'TRUE=$(BAR$(V))
-BAR0=false
-BAR1=true
-V=1
-am__doit:
- @$(TRUE)
-.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
- am_cv_make_support_nested_variables=yes
-else
- am_cv_make_support_nested_variables=no
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
-$as_echo "$am_cv_make_support_nested_variables" >&6; }
-if test $am_cv_make_support_nested_variables = yes; then
- AM_V='$(V)'
- AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
-else
- AM_V=$AM_DEFAULT_VERBOSITY
- AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
-fi
-AM_BACKSLASH='\'
-
-if test "`cd $srcdir && pwd`" != "`pwd`"; then
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
- # is not polluted with repeated "-I."
- am__isrc=' -I$(srcdir)'
- # test to see if srcdir already configured
- if test -f $srcdir/config.status; then
- as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
- fi
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
- if (cygpath --version) >/dev/null 2>/dev/null; then
- CYGPATH_W='cygpath -w'
- else
- CYGPATH_W=echo
- fi
-fi
-
-
-# Define the identity of the package.
- PACKAGE='elfutils'
- VERSION='0.161'
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE "$PACKAGE"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define VERSION "$VERSION"
-_ACEOF
-
-# Some tools Automake needs.
-
-ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
-
-
-AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
-
-
-AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
-
-
-AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
-
-
-MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
-
-# For better backward compatibility. To be removed once Automake 1.9.x
-# dies out for good. For more background, see:
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
-mkdir_p='$(MKDIR_P)'
-
-# We need awk for the "check" target. The system "awk" is bad on
-# some platforms.
-# Always define AMTAR for backward compatibility. Yes, it's still used
-# in the wild :-( We should find a proper way to deprecate it ...
-AMTAR='$${TAR-tar}'
-
-
-# We'll loop over all known methods to create a tar archive until one works.
-_am_tools='gnutar pax cpio none'
-
-am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
-
-
-
-
-
-
-# POSIX will say in a future version that running "rm -f" with no argument
-# is OK; and we want to be able to make that assumption in our Makefile
-# recipes. So use an aggressive probe to check that the usage we want is
-# actually supported "in the wild" to an acceptable degree.
-# See automake bug#10828.
-# To make any issue more visible, cause the running configure to be aborted
-# by default if the 'rm' program in use doesn't match our expectations; the
-# user can still override this though.
-if rm -f && rm -fr && rm -rf; then : OK; else
- cat >&2 <<'END'
-Oops!
-
-Your 'rm' program seems unable to run without file operands specified
-on the command line, even when the '-f' option is present. This is contrary
-to the behaviour of most rm programs out there, and not conforming with
-the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
-
-Please tell bug-automake@gnu.org about your system, including the value
-of your $PATH and any error possibly output before this message. This
-can help us improve future automake versions.
-
-END
- if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
- echo 'Configuration will proceed anyway, since you have set the' >&2
- echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
- echo >&2
- else
- cat >&2 <<'END'
-Aborting the configuration process, to ensure you take notice of the issue.
-
-You can download and install GNU coreutils to get an 'rm' implementation
-that behaves properly: <http://www.gnu.org/software/coreutils/>.
-
-If you want to complete the configuration process using your problematic
-'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
-to "yes", and re-run configure.
-
-END
- as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
- fi
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
-$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
- # Check whether --enable-maintainer-mode was given.
-if test "${enable_maintainer_mode+set}" = set; then :
- enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
-else
- USE_MAINTAINER_MODE=no
-fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
-$as_echo "$USE_MAINTAINER_MODE" >&6; }
- if test $USE_MAINTAINER_MODE = yes; then
- MAINTAINER_MODE_TRUE=
- MAINTAINER_MODE_FALSE='#'
-else
- MAINTAINER_MODE_TRUE='#'
- MAINTAINER_MODE_FALSE=
-fi
-
- MAINT=$MAINTAINER_MODE_TRUE
-
-
-
-MODVERSION="Build on $(hostname) $(date +%FT%R:%S%z)"
-
-cat >>confdefs.h <<_ACEOF
-#define MODVERSION "$MODVERSION"
-_ACEOF
-
-
-
-
-ac_config_files="$ac_config_files Makefile"
-
-ac_config_headers="$ac_config_headers config.h"
-
-
-
-ac_config_files="$ac_config_files m4/Makefile"
-
-
-ac_config_files="$ac_config_files elfutils.spec:config/elfutils.spec.in"
-
-
-
-# Make sure we can run config.sub.
-$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
- as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
-$as_echo_n "checking build system type... " >&6; }
-if ${ac_cv_build+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_build_alias=$build_alias
-test "x$ac_build_alias" = x &&
- ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
-test "x$ac_build_alias" = x &&
- as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
-ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
-$as_echo "$ac_cv_build" >&6; }
-case $ac_cv_build in
-*-*-*) ;;
-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
-esac
-build=$ac_cv_build
-ac_save_IFS=$IFS; IFS='-'
-set x $ac_cv_build
-shift
-build_cpu=$1
-build_vendor=$2
-shift; shift
-# Remember, the first character of IFS is used to create $*,
-# except with old shells:
-build_os=$*
-IFS=$ac_save_IFS
-case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
-$as_echo_n "checking host system type... " >&6; }
-if ${ac_cv_host+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test "x$host_alias" = x; then
- ac_cv_host=$ac_cv_build
-else
- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
-$as_echo "$ac_cv_host" >&6; }
-case $ac_cv_host in
-*-*-*) ;;
-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
-esac
-host=$ac_cv_host
-ac_save_IFS=$IFS; IFS='-'
-set x $ac_cv_host
-shift
-host_cpu=$1
-host_vendor=$2
-shift; shift
-# Remember, the first character of IFS is used to create $*,
-# except with old shells:
-host_os=$*
-IFS=$ac_save_IFS
-case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
-
-
-
-# Check whether --enable-deterministic-archives was given.
-if test "${enable_deterministic_archives+set}" = set; then :
- enableval=$enable_deterministic_archives;
-if test "${enableval}" = no; then
- default_ar_deterministic=false
-else
- default_ar_deterministic=true
-fi
-else
- default_ar_deterministic=false
-fi
-
-
-cat >>confdefs.h <<_ACEOF
-#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
-_ACEOF
-
-
-# Check whether --enable-thread-safety was given.
-if test "${enable_thread_safety+set}" = set; then :
- enableval=$enable_thread_safety; use_locks=$enableval
-else
- use_locks=no
-fi
-
- if test "$use_locks" = yes; then
- USE_LOCKS_TRUE=
- USE_LOCKS_FALSE='#'
-else
- USE_LOCKS_TRUE='#'
- USE_LOCKS_FALSE=
-fi
-
-if test "$use_locks" = yes; then :
- $as_echo "#define USE_LOCKS 1" >>confdefs.h
-
-fi
-if test "$use_locks" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread-safety is EXPERIMENTAL tests might fail." >&5
-$as_echo "$as_me: WARNING: thread-safety is EXPERIMENTAL tests might fail." >&2;}
-fi
-
-
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}gcc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
-$as_echo "$ac_ct_CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- CC=$ac_ct_CC
- fi
-else
- CC="$ac_cv_prog_CC"
-fi
-
-if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}cc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="${ac_tool_prefix}cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- fi
-fi
-if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- ac_prog_rejected=no
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# != 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
- fi
-fi
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
-$as_echo "$CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$CC" && break
- done
-fi
-if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cl.exe
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
-$as_echo "$ac_ct_CC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$ac_ct_CC" && break
-done
-
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- CC=$ac_ct_CC
- fi
-fi
-
-fi
-
-
-test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "no acceptable C compiler found in \$PATH
-See \`config.log' for more details" "$LINENO" 5; }
-
-# Provide some information about the compiler.
-$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
-set X $ac_compile
-ac_compiler=$2
-for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
-... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-done
-
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
-# Try to create an executable without -o first, disregard a.out.
-# It will help us diagnose broken compilers, and finding out an intuition
-# of exeext.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
-$as_echo_n "checking whether the C compiler works... " >&6; }
-ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
-
-# The possible output files:
-ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
-
-ac_rmfiles=
-for ac_file in $ac_files
-do
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
- * ) ac_rmfiles="$ac_rmfiles $ac_file";;
- esac
-done
-rm -f $ac_rmfiles
-
-if { { ac_try="$ac_link_default"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link_default") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
-# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
-# in a Makefile. We should not override ac_cv_exeext if it was cached,
-# so that the user can short-circuit this test for compilers unknown to
-# Autoconf.
-for ac_file in $ac_files ''
-do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
- ;;
- [ab].out )
- # We found the default executable, but exeext='' is most
- # certainly right.
- break;;
- *.* )
- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
- then :; else
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- fi
- # We set ac_cv_exeext here because the later test for it is not
- # safe: cross compilers may not add the suffix if given an `-o'
- # argument, so we may need to know it at that point already.
- # Even if this section looks crufty: it has the advantage of
- # actually working.
- break;;
- * )
- break;;
- esac
-done
-test "$ac_cv_exeext" = no && ac_cv_exeext=
-
-else
- ac_file=''
-fi
-if test -z "$ac_file"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-$as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error 77 "C compiler cannot create executables
-See \`config.log' for more details" "$LINENO" 5; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
-$as_echo_n "checking for C compiler default output file name... " >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
-$as_echo "$ac_file" >&6; }
-ac_exeext=$ac_cv_exeext
-
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
-ac_clean_files=$ac_clean_files_save
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
-$as_echo_n "checking for suffix of executables... " >&6; }
-if { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- # If both `conftest.exe' and `conftest' are `present' (well, observable)
-# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
-# work properly (i.e., refer to `conftest.exe'), while it won't with
-# `rm'.
-for ac_file in conftest.exe conftest conftest.*; do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- break;;
- * ) break;;
- esac
-done
-else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-rm -f conftest conftest$ac_cv_exeext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
-$as_echo "$ac_cv_exeext" >&6; }
-
-rm -f conftest.$ac_ext
-EXEEXT=$ac_cv_exeext
-ac_exeext=$EXEEXT
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdio.h>
-int
-main ()
-{
-FILE *f = fopen ("conftest.out", "w");
- return ferror (f) || fclose (f) != 0;
-
- ;
- return 0;
-}
-_ACEOF
-ac_clean_files="$ac_clean_files conftest.out"
-# Check that the compiler produces executables we can run. If not, either
-# the compiler is broken, or we cross compile.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
-$as_echo_n "checking whether we are cross compiling... " >&6; }
-if test "$cross_compiling" != yes; then
- { { ac_try="$ac_link"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- if { ac_try='./conftest$ac_cv_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then
- cross_compiling=no
- else
- if test "$cross_compiling" = maybe; then
- cross_compiling=yes
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot run C compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details" "$LINENO" 5; }
- fi
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
-$as_echo "$cross_compiling" >&6; }
-
-rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
-ac_clean_files=$ac_clean_files_save
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
-$as_echo_n "checking for suffix of object files... " >&6; }
-if ${ac_cv_objext+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.o conftest.obj
-if { { ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- for ac_file in conftest.o conftest.obj conftest.*; do
- test -f "$ac_file" || continue;
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
- break;;
- esac
-done
-else
- $as_echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "cannot compute suffix of object files: cannot compile
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-rm -f conftest.$ac_cv_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
-$as_echo "$ac_cv_objext" >&6; }
-OBJEXT=$ac_cv_objext
-ac_objext=$OBJEXT
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
-$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
-if ${ac_cv_c_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-#ifndef __GNUC__
- choke me
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
-else
- ac_compiler_gnu=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-ac_cv_c_compiler_gnu=$ac_compiler_gnu
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
-$as_echo "$ac_cv_c_compiler_gnu" >&6; }
-if test $ac_compiler_gnu = yes; then
- GCC=yes
-else
- GCC=
-fi
-ac_test_CFLAGS=${CFLAGS+set}
-ac_save_CFLAGS=$CFLAGS
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
-$as_echo_n "checking whether $CC accepts -g... " >&6; }
-if ${ac_cv_prog_cc_g+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_save_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- ac_cv_prog_cc_g=no
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
-else
- CFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-else
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_c_werror_flag=$ac_save_c_werror_flag
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
-$as_echo "$ac_cv_prog_cc_g" >&6; }
-if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
-elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
-else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
-$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
-if ${ac_cv_prog_cc_c89+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_cv_prog_cc_c89=no
-ac_save_CC=$CC
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdarg.h>
-#include <stdio.h>
-struct stat;
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
- char **p;
- int i;
-{
- return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
-}
-
-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
-int osf4_cc_array ['\x00' == 0 ? 1 : -1];
-
-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
-#define FOO(x) 'x'
-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
-
-int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
-int argc;
-char **argv;
-int
-main ()
-{
-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
-}
-_ACEOF
-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
-fi
-rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
-done
-rm -f conftest.$ac_ext
-CC=$ac_save_CC
-
-fi
-# AC_CACHE_VAL
-case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
-$as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
-$as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
-$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
-esac
-if test "x$ac_cv_prog_cc_c89" != xno; then :
-
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
-$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
-if ${am_cv_prog_cc_c_o+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
- # Make sure it works both with $CC and with simple cc.
- # Following AC_PROG_CC_C_O, we do the test twice because some
- # compilers refuse to overwrite an existing .o file with -o,
- # though they will create one.
- am_cv_prog_cc_c_o=yes
- for am_i in 1 2; do
- if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
- ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } \
- && test -f conftest2.$ac_objext; then
- : OK
- else
- am_cv_prog_cc_c_o=no
- break
- fi
- done
- rm -f core conftest*
- unset am_i
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
-$as_echo "$am_cv_prog_cc_c_o" >&6; }
-if test "$am_cv_prog_cc_c_o" != yes; then
- # Losing compiler, so override with the script.
- # FIXME: It is wrong to rewrite CC.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__CC in this case,
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
- CC="$am_aux_dir/compile $CC"
-fi
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-DEPDIR="${am__leading_dot}deps"
-
-ac_config_commands="$ac_config_commands depfiles"
-
-
-am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
- @echo this is the am__doit target
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
-$as_echo_n "checking for style of include used by $am_make... " >&6; }
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# Ignore all kinds of additional output from 'make'.
-case `$am_make -s -f confmf 2> /dev/null` in #(
-*the\ am__doit\ target*)
- am__include=include
- am__quote=
- _am_result=GNU
- ;;
-esac
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
- echo '.include "confinc"' > confmf
- case `$am_make -s -f confmf 2> /dev/null` in #(
- *the\ am__doit\ target*)
- am__include=.include
- am__quote="\""
- _am_result=BSD
- ;;
- esac
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
-$as_echo "$_am_result" >&6; }
-rm -f confinc confmf
-
-# Check whether --enable-dependency-tracking was given.
-if test "${enable_dependency_tracking+set}" = set; then :
- enableval=$enable_dependency_tracking;
-fi
-
-if test "x$enable_dependency_tracking" != xno; then
- am_depcomp="$ac_aux_dir/depcomp"
- AMDEPBACKSLASH='\'
- am__nodep='_no'
-fi
- if test "x$enable_dependency_tracking" != xno; then
- AMDEP_TRUE=
- AMDEP_FALSE='#'
-else
- AMDEP_TRUE='#'
- AMDEP_FALSE=
-fi
-
-
-
-depcc="$CC" am_compiler_list=
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
-$as_echo_n "checking dependency style of $depcc... " >&6; }
-if ${am_cv_CC_dependencies_compiler_type+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named 'D' -- because '-MD' means "put the output
- # in D".
- rm -rf conftest.dir
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
-
- am_cv_CC_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
- fi
- am__universal=false
- case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac
-
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
- # Solaris 10 /bin/sh.
- echo '/* dummy */' > sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
- # We check with '-c' and '-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle '-M -o', and we need to detect this. Also, some Intel
- # versions had trouble with output in subdirs.
- am__obj=sub/conftest.${OBJEXT-o}
- am__minus_obj="-o $am__obj"
- case $depmode in
- gcc)
- # This depmode causes a compiler race in universal mode.
- test "$am__universal" = false || continue
- ;;
- nosideeffect)
- # After this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested.
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- msvc7 | msvc7msys | msvisualcpp | msvcmsys)
- # This compiler won't grok '-c -o', but also, the minuso test has
- # not run yet. These depmodes are late enough in the game, and
- # so weak that their functioning should not be impacted.
- am__obj=conftest.${OBJEXT-o}
- am__minus_obj=
- ;;
- none) break ;;
- esac
- if depmode=$depmode \
- source=sub/conftest.c object=$am__obj \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_CC_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
-
- cd ..
- rm -rf conftest.dir
-else
- am_cv_CC_dependencies_compiler_type=none
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
-$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
-CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
-
- if
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
- am__fastdepCC_TRUE=
- am__fastdepCC_FALSE='#'
-else
- am__fastdepCC_TRUE='#'
- am__fastdepCC_FALSE=
-fi
-
-
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
-set dummy ${ac_tool_prefix}ranlib; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_RANLIB+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-RANLIB=$ac_cv_prog_RANLIB
-if test -n "$RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
-$as_echo "$RANLIB" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_RANLIB"; then
- ac_ct_RANLIB=$RANLIB
- # Extract the first word of "ranlib", so it can be a program name with args.
-set dummy ranlib; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_RANLIB"; then
- ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_RANLIB="ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
-if test -n "$ac_ct_RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
-$as_echo "$ac_ct_RANLIB" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_RANLIB" = x; then
- RANLIB=":"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- RANLIB=$ac_ct_RANLIB
- fi
-else
- RANLIB="$ac_cv_prog_RANLIB"
-fi
-
-for ac_prog in 'bison -y' byacc
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_YACC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_YACC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-YACC=$ac_cv_prog_YACC
-if test -n "$YACC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
-$as_echo "$YACC" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$YACC" && break
-done
-test -n "$YACC" || YACC="yacc"
-
-
-for ac_prog in flex lex
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_LEX+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$LEX"; then
- ac_cv_prog_LEX="$LEX" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_LEX="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-LEX=$ac_cv_prog_LEX
-if test -n "$LEX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
-$as_echo "$LEX" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$LEX" && break
-done
-test -n "$LEX" || LEX=":"
-
-if test "x$LEX" != "x:"; then
- cat >conftest.l <<_ACEOF
-%%
-a { ECHO; }
-b { REJECT; }
-c { yymore (); }
-d { yyless (1); }
-e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
- yyless ((input () != 0)); }
-f { unput (yytext[0]); }
-. { BEGIN INITIAL; }
-%%
-#ifdef YYTEXT_POINTER
-extern char *yytext;
-#endif
-int
-main (void)
-{
- return ! yylex () + ! yywrap ();
-}
-_ACEOF
-{ { ac_try="$LEX conftest.l"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$LEX conftest.l") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
-$as_echo_n "checking lex output file root... " >&6; }
-if ${ac_cv_prog_lex_root+:} false; then :
- $as_echo_n "(cached) " >&6
-else
-
-if test -f lex.yy.c; then
- ac_cv_prog_lex_root=lex.yy
-elif test -f lexyy.c; then
- ac_cv_prog_lex_root=lexyy
-else
- as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
-$as_echo "$ac_cv_prog_lex_root" >&6; }
-LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
-
-if test -z "${LEXLIB+set}"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
-$as_echo_n "checking lex library... " >&6; }
-if ${ac_cv_lib_lex+:} false; then :
- $as_echo_n "(cached) " >&6
-else
-
- ac_save_LIBS=$LIBS
- ac_cv_lib_lex='none needed'
- for ac_lib in '' -lfl -ll; do
- LIBS="$ac_lib $ac_save_LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-`cat $LEX_OUTPUT_ROOT.c`
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_lex=$ac_lib
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- test "$ac_cv_lib_lex" != 'none needed' && break
- done
- LIBS=$ac_save_LIBS
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
-$as_echo "$ac_cv_lib_lex" >&6; }
- test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
-$as_echo_n "checking whether yytext is a pointer... " >&6; }
-if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- # POSIX says lex can declare yytext either as a pointer or an array; the
-# default is implementation-dependent. Figure out which it is, since
-# not all implementations provide the %pointer and %array declarations.
-ac_cv_prog_lex_yytext_pointer=no
-ac_save_LIBS=$LIBS
-LIBS="$LEXLIB $ac_save_LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- #define YYTEXT_POINTER 1
-`cat $LEX_OUTPUT_ROOT.c`
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_prog_lex_yytext_pointer=yes
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_save_LIBS
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
-$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
-if test $ac_cv_prog_lex_yytext_pointer = yes; then
-
-$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
-
-fi
-rm -f conftest.l $LEX_OUTPUT_ROOT.c
-
-fi
-if test "$LEX" = :; then
- LEX=${am_missing_run}flex
-fi
-# Only available since automake 1.12
-if test -n "$ac_tool_prefix"; then
- for ac_prog in ar lib "link -lib"
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_AR+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$AR"; then
- ac_cv_prog_AR="$AR" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-AR=$ac_cv_prog_AR
-if test -n "$AR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
-$as_echo "$AR" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$AR" && break
- done
-fi
-if test -z "$AR"; then
- ac_ct_AR=$AR
- for ac_prog in ar lib "link -lib"
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_AR+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_AR"; then
- ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_AR="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_AR=$ac_cv_prog_ac_ct_AR
-if test -n "$ac_ct_AR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
-$as_echo "$ac_ct_AR" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$ac_ct_AR" && break
-done
-
- if test "x$ac_ct_AR" = x; then
- AR="false"
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- AR=$ac_ct_AR
- fi
-fi
-
-: ${AR=ar}
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
-$as_echo_n "checking the archiver ($AR) interface... " >&6; }
-if ${am_cv_ar_interface+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
- am_cv_ar_interface=ar
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-int some_variable = 0;
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
- { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
- (eval $am_ar_try) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- if test "$ac_status" -eq 0; then
- am_cv_ar_interface=ar
- else
- am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
- { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
- (eval $am_ar_try) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- if test "$ac_status" -eq 0; then
- am_cv_ar_interface=lib
- else
- am_cv_ar_interface=unknown
- fi
- fi
- rm -f conftest.lib libconftest.a
-
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
-$as_echo "$am_cv_ar_interface" >&6; }
-
-case $am_cv_ar_interface in
-ar)
- ;;
-lib)
- # Microsoft lib, so override with the ar-lib wrapper script.
- # FIXME: It is wrong to rewrite AR.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__AR in this case,
- # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
- # similar.
- AR="$am_aux_dir/ar-lib $AR"
- ;;
-unknown)
- as_fn_error $? "could not determine $AR interface" "$LINENO" 5
- ;;
-esac
-
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
-set dummy ${ac_tool_prefix}readelf; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_READELF+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$READELF"; then
- ac_cv_prog_READELF="$READELF" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_READELF="${ac_tool_prefix}readelf"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-READELF=$ac_cv_prog_READELF
-if test -n "$READELF"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
-$as_echo "$READELF" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_READELF"; then
- ac_ct_READELF=$READELF
- # Extract the first word of "readelf", so it can be a program name with args.
-set dummy readelf; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_READELF+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_READELF"; then
- ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_READELF="readelf"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
-if test -n "$ac_ct_READELF"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
-$as_echo "$ac_ct_READELF" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_READELF" = x; then
- READELF=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- READELF=$ac_ct_READELF
- fi
-else
- READELF="$ac_cv_prog_READELF"
-fi
-
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
-set dummy ${ac_tool_prefix}nm; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_NM+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$NM"; then
- ac_cv_prog_NM="$NM" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_NM="${ac_tool_prefix}nm"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-NM=$ac_cv_prog_NM
-if test -n "$NM"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
-$as_echo "$NM" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_NM"; then
- ac_ct_NM=$NM
- # Extract the first word of "nm", so it can be a program name with args.
-set dummy nm; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_NM+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$ac_ct_NM"; then
- ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_NM="nm"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_NM=$ac_cv_prog_ac_ct_NM
-if test -n "$ac_ct_NM"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
-$as_echo "$ac_ct_NM" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- if test "x$ac_ct_NM" = x; then
- NM=""
- else
- case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
- NM=$ac_ct_NM
- fi
-else
- NM="$ac_cv_prog_NM"
-fi
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc with C99 support" >&5
-$as_echo_n "checking for gcc with C99 support... " >&6; }
-if ${ac_cv_c99+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- old_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -std=gnu99"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-int foo (int a) { for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; }
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c99=yes
-else
- ac_cv_c99=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-CFLAGS="$old_CFLAGS"
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99" >&5
-$as_echo "$ac_cv_c99" >&6; }
-if test "x$ac_cv_c99" != xyes; then :
- as_fn_error $? "gcc with C99 support required" "$LINENO" 5
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5
-$as_echo_n "checking for __thread support... " >&6; }
-if ${ac_cv_tls+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- # Use the same flags that we use for our DSOs, so the test is representative.
-# Some old compiler/linker/libc combinations fail some ways and not others.
-save_CFLAGS="$CFLAGS"
-save_LDFLAGS="$LDFLAGS"
-CFLAGS="-fpic $CFLAGS"
-LDFLAGS="-shared -Wl,-z,defs,-z,relro $LDFLAGS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#undef __thread
-static __thread int a; int foo (int b) { return a + b; }
-int
-main ()
-{
-exit (foo (0));
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_tls=yes
-else
- ac_cv_tls=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-CFLAGS="$save_CFLAGS"
-LDFLAGS="$save_LDFLAGS"
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
-$as_echo "$ac_cv_tls" >&6; }
-if test "x$ac_cv_tls" != xyes; then :
- as_fn_error $? "__thread support required" "$LINENO" 5
-fi
-
-# Check whether --enable-largefile was given.
-if test "${enable_largefile+set}" = set; then :
- enableval=$enable_largefile;
-fi
-
-if test "$enable_largefile" != no; then
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
-$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
-if ${ac_cv_sys_largefile_CC+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_cv_sys_largefile_CC=no
- if test "$GCC" != yes; then
- ac_save_CC=$CC
- while :; do
- # IRIX 6.2 and later do not support large files by default,
- # so use the C compiler's -n32 option if that helps.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- break
-fi
-rm -f core conftest.err conftest.$ac_objext
- CC="$CC -n32"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_largefile_CC=' -n32'; break
-fi
-rm -f core conftest.err conftest.$ac_objext
- break
- done
- CC=$ac_save_CC
- rm -f conftest.$ac_ext
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
-$as_echo "$ac_cv_sys_largefile_CC" >&6; }
- if test "$ac_cv_sys_largefile_CC" != no; then
- CC=$CC$ac_cv_sys_largefile_CC
- fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
-$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
-if ${ac_cv_sys_file_offset_bits+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_file_offset_bits=no; break
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#define _FILE_OFFSET_BITS 64
-#include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_file_offset_bits=64; break
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_sys_file_offset_bits=unknown
- break
-done
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
-$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
-case $ac_cv_sys_file_offset_bits in #(
- no | unknown) ;;
- *)
-cat >>confdefs.h <<_ACEOF
-#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
-_ACEOF
-;;
-esac
-rm -rf conftest*
- if test $ac_cv_sys_file_offset_bits = unknown; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
-$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
-if ${ac_cv_sys_large_files+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_large_files=no; break
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#define _LARGE_FILES 1
-#include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
-#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_large_files=1; break
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_sys_large_files=unknown
- break
-done
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
-$as_echo "$ac_cv_sys_large_files" >&6; }
-case $ac_cv_sys_large_files in #(
- no | unknown) ;;
- *)
-cat >>confdefs.h <<_ACEOF
-#define _LARGE_FILES $ac_cv_sys_large_files
-_ACEOF
-;;
-esac
-rm -rf conftest*
- fi
-
-
-fi
-
-
-native_ld=no
-# Check whether --enable-generic was given.
-if test "${enable_generic+set}" = set; then :
- enableval=$enable_generic; if test "$enable_generic" = no; then
- case "$host_cpu" in
- i?86)
- $as_echo "#define NATIVE_ELF 32" >>confdefs.h
-
- native_ld=yes
- base_cpu=i386
- ;;
- *)
- as_fn_error $? "no machine-specific linker for this configuration available" "$LINENO" 5
- ;;
- esac
-fi
-fi
-
-
- if test "$native_ld" = yes; then
- NATIVE_LD_TRUE=
- NATIVE_LD_FALSE='#'
-else
- NATIVE_LD_TRUE='#'
- NATIVE_LD_FALSE=
-fi
-
-if test -z "$base_cpu"; then :
- base_cpu=none
-fi
-
- if false; then
- NEVER_TRUE=
- NEVER_FALSE='#'
-else
- NEVER_TRUE='#'
- NEVER_FALSE=
-fi
-
-
-# Check whether --enable-debugpred was given.
-if test "${enable_debugpred+set}" = set; then :
- enableval=$enable_debugpred; use_debugpred=$enableval
-else
- use_debugpred=no
-fi
-
-case $use_debugpred in
- yes) use_debugpred=1 ;;
- *) use_debugpred=0 ;;
-esac
-DEBUGPRED=$use_debugpred
-
-
-# Check whether --enable-gprof was given.
-if test "${enable_gprof+set}" = set; then :
- enableval=$enable_gprof; use_gprof=$enableval
-else
- use_gprof=no
-fi
-
-if test "$use_gprof" = yes; then
- CFLAGS="$CFLAGS -pg"
- LDFLAGS="$LDFLAGS -pg"
-fi
- if test "$use_gprof" = yes; then
- GPROF_TRUE=
- GPROF_FALSE='#'
-else
- GPROF_TRUE='#'
- GPROF_FALSE=
-fi
-
-
-# Enable gcov suport.
-# Check whether --enable-gcov was given.
-if test "${enable_gcov+set}" = set; then :
- enableval=$enable_gcov; use_gcov=$enableval
-else
- use_gcov=no
-fi
-
-if test "$use_gcov" = yes; then
- CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
- LDFLAGS="$LDFLAGS -fprofile-arcs"
-fi
- if test "$use_gcov" = yes; then
- GCOV_TRUE=
- GCOV_FALSE='#'
-else
- GCOV_TRUE='#'
- GCOV_FALSE=
-fi
-
-
-# Check whether --enable-valgrind was given.
-if test "${enable_valgrind+set}" = set; then :
- enableval=$enable_valgrind; use_valgrind=$enableval
-else
- use_valgrind=no
-fi
-
-if test "$use_valgrind" = yes; then
- # Extract the first word of "valgrind", so it can be a program name with args.
-set dummy valgrind; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_HAVE_VALGRIND+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -n "$HAVE_VALGRIND"; then
- ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_HAVE_VALGRIND="yes"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
-fi
-fi
-HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
-if test -n "$HAVE_VALGRIND"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_VALGRIND" >&5
-$as_echo "$HAVE_VALGRIND" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- if test "$HAVE_VALGRIND" = "no"; then
- as_fn_error $? "valgrind not found" "$LINENO" 5
- fi
-fi
- if test "$use_valgrind" = yes; then
- USE_VALGRIND_TRUE=
- USE_VALGRIND_FALSE='#'
-else
- USE_VALGRIND_TRUE='#'
- USE_VALGRIND_FALSE=
-fi
-
-
- if test "$use_gprof" = yes -o "$use_gcov" = yes; then
- BUILD_STATIC_TRUE=
- BUILD_STATIC_FALSE='#'
-else
- BUILD_STATIC_TRUE='#'
- BUILD_STATIC_FALSE=
-fi
-
-
-# Check whether --enable-tests-rpath was given.
-if test "${enable_tests_rpath+set}" = set; then :
- enableval=$enable_tests_rpath; tests_use_rpath=$enableval
-else
- tests_use_rpath=no
-fi
-
- if test "$tests_use_rpath" = yes; then
- TESTS_RPATH_TRUE=
- TESTS_RPATH_FALSE='#'
-else
- TESTS_RPATH_TRUE='#'
- TESTS_RPATH_FALSE=
-fi
-
-
-LIBEBL_SUBDIR="$PACKAGE"
-# Check whether --enable-libebl-subdir was given.
-if test "${enable_libebl_subdir+set}" = set; then :
- enableval=$enable_libebl_subdir; LIBEBL_SUBDIR="$enable_libebl_subdir"
-fi
-
-
-cat >>confdefs.h <<_ACEOF
-#define LIBEBL_SUBDIR "$LIBEBL_SUBDIR"
-_ACEOF
-
-
-
-save_LIBS="$LIBS"
-LIBS=
-
-# Check whether --with-zlib was given.
-if test "${with_zlib+set}" = set; then :
- withval=$with_zlib;
-else
- with_zlib=default
-fi
-
-if test $with_zlib != no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzdirect" >&5
-$as_echo_n "checking for library containing gzdirect... " >&6; }
-if ${ac_cv_search_gzdirect+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char gzdirect ();
-int
-main ()
-{
-return gzdirect ();
- ;
- return 0;
-}
-_ACEOF
-for ac_lib in '' z; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_gzdirect=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_gzdirect+:} false; then :
- break
-fi
-done
-if ${ac_cv_search_gzdirect+:} false; then :
-
-else
- ac_cv_search_gzdirect=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzdirect" >&5
-$as_echo "$ac_cv_search_gzdirect" >&6; }
-ac_res=$ac_cv_search_gzdirect
-if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- with_zlib=yes
-else
- test $with_zlib = default ||
- as_fn_error $? "missing -lz for --with-zlib" "$LINENO" 5
-fi
-
-fi
- if test $with_zlib = yes; then
- ZLIB_TRUE=
- ZLIB_FALSE='#'
-else
- ZLIB_TRUE='#'
- ZLIB_FALSE=
-fi
-
-if test $with_zlib = yes; then
- $as_echo "#define USE_ZLIB 1" >>confdefs.h
-
-fi
-
-
-# Check whether --with-bzlib was given.
-if test "${with_bzlib+set}" = set; then :
- withval=$with_bzlib;
-else
- with_bzlib=default
-fi
-
-if test $with_bzlib != no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing BZ2_bzdopen" >&5
-$as_echo_n "checking for library containing BZ2_bzdopen... " >&6; }
-if ${ac_cv_search_BZ2_bzdopen+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char BZ2_bzdopen ();
-int
-main ()
-{
-return BZ2_bzdopen ();
- ;
- return 0;
-}
-_ACEOF
-for ac_lib in '' bz2; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_BZ2_bzdopen=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_BZ2_bzdopen+:} false; then :
- break
-fi
-done
-if ${ac_cv_search_BZ2_bzdopen+:} false; then :
-
-else
- ac_cv_search_BZ2_bzdopen=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_BZ2_bzdopen" >&5
-$as_echo "$ac_cv_search_BZ2_bzdopen" >&6; }
-ac_res=$ac_cv_search_BZ2_bzdopen
-if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- with_bzlib=yes
-else
- test $with_bzlib = default ||
- as_fn_error $? "missing -lbz2 for --with-bzlib" "$LINENO" 5
-fi
-
-fi
- if test $with_bzlib = yes; then
- BZLIB_TRUE=
- BZLIB_FALSE='#'
-else
- BZLIB_TRUE='#'
- BZLIB_FALSE=
-fi
-
-if test $with_bzlib = yes; then
- $as_echo "#define USE_BZLIB 1" >>confdefs.h
-
-fi
-
-
-# Check whether --with-lzma was given.
-if test "${with_lzma+set}" = set; then :
- withval=$with_lzma;
-else
- with_lzma=default
-fi
-
-if test $with_lzma != no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lzma_auto_decoder" >&5
-$as_echo_n "checking for library containing lzma_auto_decoder... " >&6; }
-if ${ac_cv_search_lzma_auto_decoder+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char lzma_auto_decoder ();
-int
-main ()
-{
-return lzma_auto_decoder ();
- ;
- return 0;
-}
-_ACEOF
-for ac_lib in '' lzma; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_lzma_auto_decoder=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_lzma_auto_decoder+:} false; then :
- break
-fi
-done
-if ${ac_cv_search_lzma_auto_decoder+:} false; then :
-
-else
- ac_cv_search_lzma_auto_decoder=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lzma_auto_decoder" >&5
-$as_echo "$ac_cv_search_lzma_auto_decoder" >&6; }
-ac_res=$ac_cv_search_lzma_auto_decoder
-if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- with_lzma=yes
-else
- test $with_lzma = default ||
- as_fn_error $? "missing -llzma for --with-lzma" "$LINENO" 5
-fi
-
-fi
- if test $with_lzma = yes; then
- LZMA_TRUE=
- LZMA_FALSE='#'
-else
- LZMA_TRUE='#'
- LZMA_FALSE=
-fi
-
-if test $with_lzma = yes; then
- $as_echo "#define USE_LZMA 1" >>confdefs.h
-
-fi
-
-zip_LIBS="$LIBS"
-LIBS="$save_LIBS"
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cxa_demangle in -lstdc++" >&5
-$as_echo_n "checking for __cxa_demangle in -lstdc++... " >&6; }
-if ${ac_cv_lib_stdcpp___cxa_demangle+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lstdc++ $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char __cxa_demangle ();
-int
-main ()
-{
-return __cxa_demangle ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_stdcpp___cxa_demangle=yes
-else
- ac_cv_lib_stdcpp___cxa_demangle=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp___cxa_demangle" >&5
-$as_echo "$ac_cv_lib_stdcpp___cxa_demangle" >&6; }
-if test "x$ac_cv_lib_stdcpp___cxa_demangle" = xyes; then :
-
-$as_echo "#define USE_DEMANGLE 1" >>confdefs.h
-
-fi
-
- if test "$ac_cv_lib_stdcpp___cxa_demangle" = yes; then
- DEMANGLE_TRUE=
- DEMANGLE_FALSE='#'
-else
- DEMANGLE_TRUE='#'
- DEMANGLE_FALSE=
-fi
-
-
-# Check whether --enable-textrelcheck was given.
-if test "${enable_textrelcheck+set}" = set; then :
- enableval=$enable_textrelcheck;
-fi
-
- if test "x$enable_textrelcheck" != "xno"; then
- FATAL_TEXTREL_TRUE=
- FATAL_TEXTREL_FALSE='#'
-else
- FATAL_TEXTREL_TRUE='#'
- FATAL_TEXTREL_FALSE=
-fi
-
-
-
-
-ac_config_files="$ac_config_files lib/Makefile"
-
-
-ac_config_files="$ac_config_files libelf/Makefile"
-
-
-ac_config_files="$ac_config_files libebl/Makefile"
-
-
-ac_config_files="$ac_config_files libdwelf/Makefile"
-
-
-ac_config_files="$ac_config_files libdw/Makefile"
-
-
-ac_config_files="$ac_config_files libdwfl/Makefile"
-
-
-ac_config_files="$ac_config_files libcpu/Makefile"
-
-
- if true; then
- HAVE_LIBASM_TRUE=
- HAVE_LIBASM_FALSE='#'
-else
- HAVE_LIBASM_TRUE='#'
- HAVE_LIBASM_FALSE=
-fi
-ac_config_files="$ac_config_files libasm/Makefile"
-
-
-ac_config_files="$ac_config_files backends/Makefile"
-
-
-ac_config_files="$ac_config_files src/Makefile po/Makefile.in"
-
-
- if false; then
- STANDALONE_TRUE=
- STANDALONE_FALSE='#'
-else
- STANDALONE_TRUE='#'
- STANDALONE_FALSE=
-fi
-ac_config_files="$ac_config_files tests/Makefile"
-
-
-# Get the definitions necessary to create the Makefiles in the po
-# subdirectories. This is a small subset of the gettext rules.
-USE_NLS=yes
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
-$as_echo_n "checking whether NLS is requested... " >&6; }
- # Check whether --enable-nls was given.
-if test "${enable_nls+set}" = set; then :
- enableval=$enable_nls; USE_NLS=$enableval
-else
- USE_NLS=yes
-fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
-$as_echo "$USE_NLS" >&6; }
-
-
-
-
- GETTEXT_MACRO_VERSION=0.18
-
-
-
-
-# Prepare PATH_SEPARATOR.
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
-fi
-
-# Find out how to test for executable files. Don't use a zero-byte file,
-# as systems may use methods other than mode bits to determine executability.
-cat >conf$$.file <<_ASEOF
-#! /bin/sh
-exit 0
-_ASEOF
-chmod +x conf$$.file
-if test -x conf$$.file >/dev/null 2>&1; then
- ac_executable_p="test -x"
-else
- ac_executable_p="test -f"
-fi
-rm -f conf$$.file
-
-# Extract the first word of "msgfmt", so it can be a program name with args.
-set dummy msgfmt; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_MSGFMT+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case "$MSGFMT" in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
- ;;
- *)
- ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$ac_save_IFS"
- test -z "$ac_dir" && ac_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
- echo "$as_me: trying $ac_dir/$ac_word..." >&5
- if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
- (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
- ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
- break 2
- fi
- fi
- done
- done
- IFS="$ac_save_IFS"
- test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
- ;;
-esac
-fi
-MSGFMT="$ac_cv_path_MSGFMT"
-if test "$MSGFMT" != ":"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
-$as_echo "$MSGFMT" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- # Extract the first word of "gmsgfmt", so it can be a program name with args.
-set dummy gmsgfmt; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_GMSGFMT+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $GMSGFMT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
- ;;
-esac
-fi
-GMSGFMT=$ac_cv_path_GMSGFMT
-if test -n "$GMSGFMT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
-$as_echo "$GMSGFMT" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-
- case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
- *) MSGFMT_015=$MSGFMT ;;
- esac
-
- case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
- *) GMSGFMT_015=$GMSGFMT ;;
- esac
-
-
-
-# Prepare PATH_SEPARATOR.
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
-fi
-
-# Find out how to test for executable files. Don't use a zero-byte file,
-# as systems may use methods other than mode bits to determine executability.
-cat >conf$$.file <<_ASEOF
-#! /bin/sh
-exit 0
-_ASEOF
-chmod +x conf$$.file
-if test -x conf$$.file >/dev/null 2>&1; then
- ac_executable_p="test -x"
-else
- ac_executable_p="test -f"
-fi
-rm -f conf$$.file
-
-# Extract the first word of "xgettext", so it can be a program name with args.
-set dummy xgettext; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_XGETTEXT+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case "$XGETTEXT" in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
- ;;
- *)
- ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$ac_save_IFS"
- test -z "$ac_dir" && ac_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
- echo "$as_me: trying $ac_dir/$ac_word..." >&5
- if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
- (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
- ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
- break 2
- fi
- fi
- done
- done
- IFS="$ac_save_IFS"
- test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
- ;;
-esac
-fi
-XGETTEXT="$ac_cv_path_XGETTEXT"
-if test "$XGETTEXT" != ":"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
-$as_echo "$XGETTEXT" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
- rm -f messages.po
-
- case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
- *) XGETTEXT_015=$XGETTEXT ;;
- esac
-
-
-
-# Prepare PATH_SEPARATOR.
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
-fi
-
-# Find out how to test for executable files. Don't use a zero-byte file,
-# as systems may use methods other than mode bits to determine executability.
-cat >conf$$.file <<_ASEOF
-#! /bin/sh
-exit 0
-_ASEOF
-chmod +x conf$$.file
-if test -x conf$$.file >/dev/null 2>&1; then
- ac_executable_p="test -x"
-else
- ac_executable_p="test -f"
-fi
-rm -f conf$$.file
-
-# Extract the first word of "msgmerge", so it can be a program name with args.
-set dummy msgmerge; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_MSGMERGE+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case "$MSGMERGE" in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
- ;;
- *)
- ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$ac_save_IFS"
- test -z "$ac_dir" && ac_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
- echo "$as_me: trying $ac_dir/$ac_word..." >&5
- if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
- ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
- break 2
- fi
- fi
- done
- done
- IFS="$ac_save_IFS"
- test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
- ;;
-esac
-fi
-MSGMERGE="$ac_cv_path_MSGMERGE"
-if test "$MSGMERGE" != ":"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
-$as_echo "$MSGMERGE" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$localedir" || localedir='${datadir}/locale'
-
-
- test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
-
-
- ac_config_commands="$ac_config_commands po-directories"
-
-
-
-
-
-ac_config_files="$ac_config_files version.h:config/version.h.in"
-
-
-
-# 1.234<whatever> -> 1234<whatever>
-case "$PACKAGE_VERSION" in
-[0-9].*) eu_version=`echo "$PACKAGE_VERSION" | sed 's@\.@@'` ;;
-*) as_fn_error $? "confused by version number '$PACKAGE_VERSION'" "$LINENO" 5 ;;
-esac
-case "$eu_version" in
-*.*)
- # 1234.567 -> "1234", "567"
- eu_extra_version="${eu_version#*.}"
- eu_version="${eu_version%%.*}"
- case "$eu_extra_version" in
- [0-9][0-9][0-9]) ;;
- [0-9][0-9]) eu_extra_version="${eu_extra_version}0" ;;
- [0-9]) eu_extra_version="${eu_extra_version}00" ;;
- *) as_fn_error $? "confused by version number '$PACKAGE_VERSION'" "$LINENO" 5 ;;
- esac
- ;;
-*)
- eu_extra_version=000
- ;;
-esac
-
-case "$eu_version" in
- 0[0-9][0-9][0-9]) eu_version="${eu_version#0}$eu_extra_version" ;;
-[0-9][0-9][0-9][0-9]) eu_version="${eu_version}$eu_extra_version" ;;
-[0-9][0-9][0-9]) eu_version="${eu_version}0$eu_extra_version" ;;
-[0-9][0-9]) eu_version="${eu_version}00$eu_extra_version";;
-*) as_fn_error $? "confused by version number '$PACKAGE_VERSION'" "$LINENO" 5 ;;
-esac
-
-# Round up to the next release API (x.y) version.
-eu_version=$(( (eu_version + 999) / 1000 ))
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
-$as_echo_n "checking how to run the C preprocessor... " >&6; }
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
- CPP=
-fi
-if test -z "$CPP"; then
- if ${ac_cv_prog_CPP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- # Double quotes because CPP needs to be expanded
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
- do
- ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-
-else
- # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
-continue
-else
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.i conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then :
- break
-fi
-
- done
- ac_cv_prog_CPP=$CPP
-
-fi
- CPP=$ac_cv_prog_CPP
-else
- ac_cv_prog_CPP=$CPP
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
-$as_echo "$CPP" >&6; }
-ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
-
-else
- # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
-continue
-else
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-rm -f conftest.err conftest.i conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.i conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then :
-
-else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details" "$LINENO" 5; }
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
-$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
-if ${ac_cv_path_GREP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if test -z "$GREP"; then
- ac_path_GREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in grep ggrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_GREP" || continue
-# Check for GNU ac_path_GREP and select it if it is found.
- # Check for GNU $ac_path_GREP
-case `"$ac_path_GREP" --version 2>&1` in
-*GNU*)
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
-*)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'GREP' >> "conftest.nl"
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_GREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_GREP="$ac_path_GREP"
- ac_path_GREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
- $ac_path_GREP_found && break 3
- done
- done
- done
-IFS=$as_save_IFS
- if test -z "$ac_cv_path_GREP"; then
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
-else
- ac_cv_path_GREP=$GREP
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
-$as_echo "$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
-$as_echo_n "checking for egrep... " >&6; }
-if ${ac_cv_path_EGREP+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
- then ac_cv_path_EGREP="$GREP -E"
- else
- if test -z "$EGREP"; then
- ac_path_EGREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in egrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_EGREP" || continue
-# Check for GNU ac_path_EGREP and select it if it is found.
- # Check for GNU $ac_path_EGREP
-case `"$ac_path_EGREP" --version 2>&1` in
-*GNU*)
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
-*)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'EGREP' >> "conftest.nl"
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_EGREP="$ac_path_EGREP"
- ac_path_EGREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
- $ac_path_EGREP_found && break 3
- done
- done
- done
-IFS=$as_save_IFS
- if test -z "$ac_cv_path_EGREP"; then
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
-else
- ac_cv_path_EGREP=$EGREP
-fi
-
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
-$as_echo "$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if ${ac_cv_header_stdc+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_stdc=yes
-else
- ac_cv_header_stdc=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <string.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then :
-
-else
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then :
-
-else
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then :
- :
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int
-main ()
-{
- int i;
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
- return 2;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
- ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
-
-fi
-
-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
- inttypes.h stdint.h unistd.h
-do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
-"
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-# The cast to long int works around a bug in the HP C Compiler
-# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
-# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
-# This bug is HP SR number 8606223364.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
-$as_echo_n "checking size of long... " >&6; }
-if ${ac_cv_sizeof_long+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
-
-else
- if test "$ac_cv_type_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error 77 "cannot compute sizeof (long)
-See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long=0
- fi
-fi
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
-$as_echo "$ac_cv_sizeof_long" >&6; }
-
-
-
-cat >>confdefs.h <<_ACEOF
-#define SIZEOF_LONG $ac_cv_sizeof_long
-_ACEOF
-
-
-
-# On aarch64 before glibc 2.20 we would get the kernel user_pt_regs instead
-# of the user_regs_struct from sys/user.h. They are structurally the same
-# but we get either one or the other.
-ac_fn_c_check_type "$LINENO" "struct user_regs_struct" "ac_cv_type_struct_user_regs_struct" "#include <sys/ptrace.h>
- #include <sys/time.h>
- #include <sys/user.h>
-"
-if test "x$ac_cv_type_struct_user_regs_struct" = xyes; then :
- sys_user_has_user_regs=yes
-else
- sys_user_has_user_regs=no
-fi
-
-if test "$sys_user_has_user_regs" = "yes"; then
-
-$as_echo "#define HAVE_SYS_USER_REGS 1" >>confdefs.h
-
-fi
-
-# On a 64-bit host where can can use $CC -m32, we'll run two sets of tests.
-# Likewise in a 32-bit build on a host where $CC -m64 works.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC option for 32-bit word size" >&5
-$as_echo_n "checking $CC option for 32-bit word size... " >&6; }
-if ${utrace_cv_CC_m32+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- save_CC="$CC"
-utrace_cv_CC_m32=none
-for ut_try in -m32 -m31; do
- CC=`echo "$save_CC" | sed 's/ -m[36][241]//'`" $ut_try"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-int foo (void) { return 1; }
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- utrace_cv_CC_m32=$ut_try
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- test x$utrace_cv_CC_m32 = xnone || break
-done
-CC="$save_CC"
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $utrace_cv_CC_m32" >&5
-$as_echo "$utrace_cv_CC_m32" >&6; }
-
-if test x$utrace_cv_CC_m32 != xnone; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
-$as_echo_n "checking for 64-bit host... " >&6; }
-if ${utrace_cv_host64+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-#include <stdint.h>
-#if (UINTPTR_MAX > 0xffffffffUL)
-@utrace_host64@
-#endif
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "@utrace_host64@" >/dev/null 2>&1; then :
- utrace_cv_host64=yes
-else
- utrace_cv_host64=no
-fi
-rm -f conftest*
-
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $utrace_cv_host64" >&5
-$as_echo "$utrace_cv_host64" >&6; }
-if test $utrace_cv_host64 = no; then :
- utrace_biarch=-m64 utrace_thisarch=$utrace_cv_CC_m32
-else
- utrace_biarch=$utrace_cv_CC_m32 utrace_thisarch=-m64
-fi
-
-biarch_CC=`echo "$CC" | sed "s/ *${utrace_thisarch}//"`
-biarch_CC="$biarch_CC $utrace_biarch"
-fi
-
-utrace_biarch_forced=no
-
-# Check whether --with-biarch was given.
-if test "${with_biarch+set}" = set; then :
- withval=$with_biarch; if test "x$with_biarch" != xno; then :
- utrace_biarch_forced=yes
-fi
-fi
-
-if test $utrace_biarch_forced = yes; then :
- utrace_cv_cc_biarch=yes
-{ $as_echo "$as_me:${as_lineno-$LINENO}: enabling biarch tests regardless using $biarch_CC" >&5
-$as_echo "$as_me: enabling biarch tests regardless using $biarch_CC" >&6;}
-else
- if test x$utrace_cv_CC_m32 != xnone; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $biarch_CC makes executables we can run" >&5
-$as_echo_n "checking whether $biarch_CC makes executables we can run... " >&6; }
-if ${utrace_cv_cc_biarch+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- save_CC="$CC"
-CC="$biarch_CC"
-if test "$cross_compiling" = yes; then :
- utrace_cv_cc_biarch=no
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
- utrace_cv_cc_biarch=yes
-else
- utrace_cv_cc_biarch=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-CC="$save_CC"
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $utrace_cv_cc_biarch" >&5
-$as_echo "$utrace_cv_cc_biarch" >&6; }
-else
- utrace_cv_cc_biarch=no
-fi
-if test $utrace_cv_cc_biarch != yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not running biarch tests, $biarch_CC does not work" >&5
-$as_echo "$as_me: WARNING: not running biarch tests, $biarch_CC does not work" >&2;}
-fi
-fi
- if test $utrace_cv_cc_biarch = yes; then
- BIARCH_TRUE=
- BIARCH_FALSE='#'
-else
- BIARCH_TRUE='#'
- BIARCH_FALSE=
-fi
-
-# `$utrace_biarch' will be `-m64' even on an uniarch i386 machine.
-CC_BIARCH="$CC $utrace_biarch"
-
-
-cat >confcache <<\_ACEOF
-# This file is a shell script that caches the results of configure
-# tests run on this system so they can be shared between configure
-# scripts and configure runs, see configure's option --config-cache.
-# It is not useful on other systems. If it contains results you don't
-# want to keep, you may remove or edit it.
-#
-# config.status only pays attention to the cache file if you give it
-# the --recheck option to rerun configure.
-#
-# `ac_cv_env_foo' variables (set or unset) will be overridden when
-# loading this file, other *unset* `ac_cv_foo' will be assigned the
-# following values.
-
-_ACEOF
-
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, we kill variables containing newlines.
-# Ultrix sh set writes to stderr and can't be redirected directly,
-# and sets the high bit in the cache file unless we assign to the vars.
-(
- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
- eval ac_val=\$$ac_var
- case $ac_val in #(
- *${as_nl}*)
- case $ac_var in #(
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
- *) { eval $ac_var=; unset $ac_var;} ;;
- esac ;;
- esac
- done
-
- (set) 2>&1 |
- case $as_nl`(ac_space=' '; set) 2>&1` in #(
- *${as_nl}ac_space=\ *)
- # `set' does not quote correctly, so add quotes: double-quote
- # substitution turns \\\\ into \\, and sed turns \\ into \.
- sed -n \
- "s/'/'\\\\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
- ;; #(
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
- ;;
- esac |
- sort
-) |
- sed '
- /^ac_cv_env_/b end
- t clear
- :clear
- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
- t end
- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
- :end' >>confcache
-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
- if test -w "$cache_file"; then
- if test "x$cache_file" != "x/dev/null"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
-$as_echo "$as_me: updating cache $cache_file" >&6;}
- if test ! -f "$cache_file" || test -h "$cache_file"; then
- cat confcache >"$cache_file"
- else
- case $cache_file in #(
- */* | ?:*)
- mv -f confcache "$cache_file"$$ &&
- mv -f "$cache_file"$$ "$cache_file" ;; #(
- *)
- mv -f confcache "$cache_file" ;;
- esac
- fi
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
-$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
- fi
-fi
-rm -f confcache
-
-test "x$prefix" = xNONE && prefix=$ac_default_prefix
-# Let make expand exec_prefix.
-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-
-DEFS=-DHAVE_CONFIG_H
-
-ac_libobjs=
-ac_ltlibobjs=
-U=
-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
- # 1. Remove the extension, and $U if already installed.
- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
- ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
- # will be set to the directory where LIBOBJS objects are built.
- as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
- as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
-done
-LIBOBJS=$ac_libobjs
-
-LTLIBOBJS=$ac_ltlibobjs
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
-$as_echo_n "checking that generated files are newer than configure... " >&6; }
- if test -n "$am_sleep_pid"; then
- # Hide warnings about reused PIDs.
- wait $am_sleep_pid 2>/dev/null
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
-$as_echo "done" >&6; }
- if test -n "$EXEEXT"; then
- am__EXEEXT_TRUE=
- am__EXEEXT_FALSE='#'
-else
- am__EXEEXT_TRUE='#'
- am__EXEEXT_FALSE=
-fi
-
-if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
- as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${USE_LOCKS_TRUE}" && test -z "${USE_LOCKS_FALSE}"; then
- as_fn_error $? "conditional \"USE_LOCKS\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
- as_fn_error $? "conditional \"AMDEP\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
- as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${NATIVE_LD_TRUE}" && test -z "${NATIVE_LD_FALSE}"; then
- as_fn_error $? "conditional \"NATIVE_LD\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${NEVER_TRUE}" && test -z "${NEVER_FALSE}"; then
- as_fn_error $? "conditional \"NEVER\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${GPROF_TRUE}" && test -z "${GPROF_FALSE}"; then
- as_fn_error $? "conditional \"GPROF\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${GCOV_TRUE}" && test -z "${GCOV_FALSE}"; then
- as_fn_error $? "conditional \"GCOV\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${USE_VALGRIND_TRUE}" && test -z "${USE_VALGRIND_FALSE}"; then
- as_fn_error $? "conditional \"USE_VALGRIND\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
- as_fn_error $? "conditional \"BUILD_STATIC\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${TESTS_RPATH_TRUE}" && test -z "${TESTS_RPATH_FALSE}"; then
- as_fn_error $? "conditional \"TESTS_RPATH\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${ZLIB_TRUE}" && test -z "${ZLIB_FALSE}"; then
- as_fn_error $? "conditional \"ZLIB\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${BZLIB_TRUE}" && test -z "${BZLIB_FALSE}"; then
- as_fn_error $? "conditional \"BZLIB\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${LZMA_TRUE}" && test -z "${LZMA_FALSE}"; then
- as_fn_error $? "conditional \"LZMA\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${DEMANGLE_TRUE}" && test -z "${DEMANGLE_FALSE}"; then
- as_fn_error $? "conditional \"DEMANGLE\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${FATAL_TEXTREL_TRUE}" && test -z "${FATAL_TEXTREL_FALSE}"; then
- as_fn_error $? "conditional \"FATAL_TEXTREL\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${HAVE_LIBASM_TRUE}" && test -z "${HAVE_LIBASM_FALSE}"; then
- as_fn_error $? "conditional \"HAVE_LIBASM\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${STANDALONE_TRUE}" && test -z "${STANDALONE_FALSE}"; then
- as_fn_error $? "conditional \"STANDALONE\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-if test -z "${BIARCH_TRUE}" && test -z "${BIARCH_FALSE}"; then
- as_fn_error $? "conditional \"BIARCH\" was never defined.
-Usually this means the macro was only invoked conditionally." "$LINENO" 5
-fi
-
-: "${CONFIG_STATUS=./config.status}"
-ac_write_fail=0
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
-$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
-as_write_fail=0
-cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
-#! $SHELL
-# Generated by $as_me.
-# Run this file to recreate the current configuration.
-# Compiler output produced by configure, useful for debugging
-# configure, is in config.log if it exists.
-
-debug=false
-ac_cs_recheck=false
-ac_cs_silent=false
-
-SHELL=\${CONFIG_SHELL-$SHELL}
-export SHELL
-_ASEOF
-cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
-## -------------------- ##
-## M4sh Initialization. ##
-## -------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
-else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
-esac
-fi
-
-
-as_nl='
-'
-export as_nl
-# Printing a long string crashes Solaris 7 /usr/bin/printf.
-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
-# Prefer a ksh shell builtin over an external printf program on Solaris,
-# but without wasting forks for bash or zsh.
-if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
-else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
-fi
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order. Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-IFS=" "" $as_nl"
-
-# Find who we are. Look in the path if we contain no directory separator.
-as_myself=
-case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
- as_myself=$0
-fi
-if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
-fi
-
-# Unset variables that we do not need and which cause bugs (e.g. in
-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
-# suppresses any "Segmentation fault" message there. '((' could
-# trigger a bug in pdksh 5.2.14.
-for as_var in BASH_ENV ENV MAIL MAILPATH
-do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-LC_ALL=C
-export LC_ALL
-LANGUAGE=C
-export LANGUAGE
-
-# CDPATH.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-
-# as_fn_error STATUS ERROR [LINENO LOG_FD]
-# ----------------------------------------
-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
-# script with STATUS, using 1 if that was 0.
-as_fn_error ()
-{
- as_status=$1; test $as_status -eq 0 && as_status=1
- if test "$4"; then
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
- fi
- $as_echo "$as_me: error: $2" >&2
- as_fn_exit $as_status
-} # as_fn_error
-
-
-# as_fn_set_status STATUS
-# -----------------------
-# Set $? to STATUS, without forking.
-as_fn_set_status ()
-{
- return $1
-} # as_fn_set_status
-
-# as_fn_exit STATUS
-# -----------------
-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
-as_fn_exit ()
-{
- set +e
- as_fn_set_status $1
- exit $1
-} # as_fn_exit
-
-# as_fn_unset VAR
-# ---------------
-# Portably unset VAR.
-as_fn_unset ()
-{
- { eval $1=; unset $1;}
-}
-as_unset=as_fn_unset
-# as_fn_append VAR VALUE
-# ----------------------
-# Append the text in VALUE to the end of the definition contained in VAR. Take
-# advantage of any shell optimizations that allow amortized linear growth over
-# repeated appends, instead of the typical quadratic growth present in naive
-# implementations.
-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
-else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
-fi # as_fn_append
-
-# as_fn_arith ARG...
-# ------------------
-# Perform arithmetic evaluation on the ARGs, and store the result in the
-# global $as_val. Take advantage of shells that can avoid forks. The arguments
-# must be portable across $(()) and expr.
-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
-else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
-fi # as_fn_arith
-
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
-else
- as_basename=false
-fi
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
-else
- as_dirname=false
-fi
-
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
-
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in #(((((
--n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
-*)
- ECHO_N='-n';;
-esac
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
-else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
-fi
-if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -pR'
- fi
-else
- as_ln_s='cp -pR'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-
-# as_fn_mkdir_p
-# -------------
-# Create "$as_dir" as a directory, including parents if necessary.
-as_fn_mkdir_p ()
-{
-
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
-
-
-} # as_fn_mkdir_p
-if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
-else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
-fi
-
-
-# as_fn_executable_p FILE
-# -----------------------
-# Test if FILE is an executable regular file.
-as_fn_executable_p ()
-{
- test -f "$1" && test -x "$1"
-} # as_fn_executable_p
-as_test_x='test -x'
-as_executable_p=as_fn_executable_p
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-exec 6>&1
-## ----------------------------------- ##
-## Main body of $CONFIG_STATUS script. ##
-## ----------------------------------- ##
-_ASEOF
-test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# Save the log message, to keep $0 and so on meaningful, and to
-# report actual input values of CONFIG_FILES etc. instead of their
-# values after options handling.
-ac_log="
-This file was extended by elfutils $as_me 0.161, which was
-generated by GNU Autoconf 2.69. Invocation command line was
-
- CONFIG_FILES = $CONFIG_FILES
- CONFIG_HEADERS = $CONFIG_HEADERS
- CONFIG_LINKS = $CONFIG_LINKS
- CONFIG_COMMANDS = $CONFIG_COMMANDS
- $ $0 $@
-
-on `(hostname || uname -n) 2>/dev/null | sed 1q`
-"
-
-_ACEOF
-
-case $ac_config_files in *"
-"*) set x $ac_config_files; shift; ac_config_files=$*;;
-esac
-
-case $ac_config_headers in *"
-"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
-esac
-
-
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-# Files that config.status was made for.
-config_files="$ac_config_files"
-config_headers="$ac_config_headers"
-config_commands="$ac_config_commands"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-ac_cs_usage="\
-\`$as_me' instantiates files and other configuration actions
-from templates according to the current configuration. Unless the files
-and actions are specified as TAGs, all are instantiated by default.
-
-Usage: $0 [OPTION]... [TAG]...
-
- -h, --help print this help, then exit
- -V, --version print version number and configuration settings, then exit
- --config print configuration, then exit
- -q, --quiet, --silent
- do not print progress messages
- -d, --debug don't remove temporary files
- --recheck update $as_me by reconfiguring in the same conditions
- --file=FILE[:TEMPLATE]
- instantiate the configuration file FILE
- --header=FILE[:TEMPLATE]
- instantiate the configuration header FILE
-
-Configuration files:
-$config_files
-
-Configuration headers:
-$config_headers
-
-Configuration commands:
-$config_commands
-
-Report bugs to <https://bugzilla.redhat.com/>."
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
-ac_cs_version="\\
-elfutils config.status 0.161
-configured by $0, generated by GNU Autoconf 2.69,
- with options \\"\$ac_cs_config\\"
-
-Copyright (C) 2012 Free Software Foundation, Inc.
-This config.status script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it."
-
-ac_pwd='$ac_pwd'
-srcdir='$srcdir'
-INSTALL='$INSTALL'
-MKDIR_P='$MKDIR_P'
-AWK='$AWK'
-test -n "\$AWK" || AWK=awk
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# The default lists apply if the user does not specify any file.
-ac_need_defaults=:
-while test $# != 0
-do
- case $1 in
- --*=?*)
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
- ac_shift=:
- ;;
- --*=)
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
- ac_optarg=
- ac_shift=:
- ;;
- *)
- ac_option=$1
- ac_optarg=$2
- ac_shift=shift
- ;;
- esac
-
- case $ac_option in
- # Handling of the options.
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- ac_cs_recheck=: ;;
- --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
- $as_echo "$ac_cs_version"; exit ;;
- --config | --confi | --conf | --con | --co | --c )
- $as_echo "$ac_cs_config"; exit ;;
- --debug | --debu | --deb | --de | --d | -d )
- debug=: ;;
- --file | --fil | --fi | --f )
- $ac_shift
- case $ac_optarg in
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
- '') as_fn_error $? "missing file argument" ;;
- esac
- as_fn_append CONFIG_FILES " '$ac_optarg'"
- ac_need_defaults=false;;
- --header | --heade | --head | --hea )
- $ac_shift
- case $ac_optarg in
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- as_fn_append CONFIG_HEADERS " '$ac_optarg'"
- ac_need_defaults=false;;
- --he | --h)
- # Conflict between --help and --header
- as_fn_error $? "ambiguous option: \`$1'
-Try \`$0 --help' for more information.";;
- --help | --hel | -h )
- $as_echo "$ac_cs_usage"; exit ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil | --si | --s)
- ac_cs_silent=: ;;
-
- # This is an error.
- -*) as_fn_error $? "unrecognized option: \`$1'
-Try \`$0 --help' for more information." ;;
-
- *) as_fn_append ac_config_targets " $1"
- ac_need_defaults=false ;;
-
- esac
- shift
-done
-
-ac_configure_extra_args=
-
-if $ac_cs_silent; then
- exec 6>/dev/null
- ac_configure_extra_args="$ac_configure_extra_args --silent"
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-if \$ac_cs_recheck; then
- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
- shift
- \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
- CONFIG_SHELL='$SHELL'
- export CONFIG_SHELL
- exec "\$@"
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-exec 5>>config.log
-{
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
- $as_echo "$ac_log"
-} >&5
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-#
-# INIT-COMMANDS
-#
-AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
-# Capture the value of obsolete ALL_LINGUAS because we need it to compute
- # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
- # from automake < 1.5.
- eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
- # Capture the value of LINGUAS because we need it to compute CATALOGS.
- LINGUAS="${LINGUAS-%UNSET%}"
-
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-
-# Handling of arguments.
-for ac_config_target in $ac_config_targets
-do
- case $ac_config_target in
- "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
- "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
- "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
- "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
- "elfutils.spec") CONFIG_FILES="$CONFIG_FILES elfutils.spec:config/elfutils.spec.in" ;;
- "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
- "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
- "libelf/Makefile") CONFIG_FILES="$CONFIG_FILES libelf/Makefile" ;;
- "libebl/Makefile") CONFIG_FILES="$CONFIG_FILES libebl/Makefile" ;;
- "libdwelf/Makefile") CONFIG_FILES="$CONFIG_FILES libdwelf/Makefile" ;;
- "libdw/Makefile") CONFIG_FILES="$CONFIG_FILES libdw/Makefile" ;;
- "libdwfl/Makefile") CONFIG_FILES="$CONFIG_FILES libdwfl/Makefile" ;;
- "libcpu/Makefile") CONFIG_FILES="$CONFIG_FILES libcpu/Makefile" ;;
- "libasm/Makefile") CONFIG_FILES="$CONFIG_FILES libasm/Makefile" ;;
- "backends/Makefile") CONFIG_FILES="$CONFIG_FILES backends/Makefile" ;;
- "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
- "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
- "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
- "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
- "version.h") CONFIG_FILES="$CONFIG_FILES version.h:config/version.h.in" ;;
-
- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
- esac
-done
-
-
-# If the user did not use the arguments to specify the items to instantiate,
-# then the envvar interface is used. Set only those that are not.
-# We use the long form for the default assignment because of an extremely
-# bizarre bug on SunOS 4.1.3.
-if $ac_need_defaults; then
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
- test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
- test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
-fi
-
-# Have a temporary directory for convenience. Make it in the build tree
-# simply because there is no reason against having it here, and in addition,
-# creating and moving files from /tmp can sometimes cause problems.
-# Hook for its removal unless debugging.
-# Note that there is a small window in which the directory will not be cleaned:
-# after its creation but before its name has been assigned to `$tmp'.
-$debug ||
-{
- tmp= ac_tmp=
- trap 'exit_status=$?
- : "${ac_tmp:=$tmp}"
- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
-' 0
- trap 'as_fn_exit 1' 1 2 13 15
-}
-# Create a (secure) tmp directory for tmp files.
-
-{
- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
- test -d "$tmp"
-} ||
-{
- tmp=./conf$$-$RANDOM
- (umask 077 && mkdir "$tmp")
-} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
-ac_tmp=$tmp
-
-# Set up the scripts for CONFIG_FILES section.
-# No need to generate them if there are no CONFIG_FILES.
-# This happens for instance with `./config.status config.h'.
-if test -n "$CONFIG_FILES"; then
-
-
-ac_cr=`echo X | tr X '\015'`
-# On cygwin, bash can eat \r inside `` if the user requested igncr.
-# But we know of no other shell where ac_cr would be empty at this
-# point, so we can use a bashism as a fallback.
-if test "x$ac_cr" = x; then
- eval ac_cr=\$\'\\r\'
-fi
-ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
-if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
- ac_cs_awk_cr='\\r'
-else
- ac_cs_awk_cr=$ac_cr
-fi
-
-echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
-_ACEOF
-
-
-{
- echo "cat >conf$$subs.awk <<_ACEOF" &&
- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
- echo "_ACEOF"
-} >conf$$subs.sh ||
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
-ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
-ac_delim='%!_!# '
-for ac_last_try in false false false false false :; do
- . ./conf$$subs.sh ||
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
-
- ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
- if test $ac_delim_n = $ac_delim_num; then
- break
- elif $ac_last_try; then
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
-done
-rm -f conf$$subs.sh
-
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
-_ACEOF
-sed -n '
-h
-s/^/S["/; s/!.*/"]=/
-p
-g
-s/^[^!]*!//
-:repl
-t repl
-s/'"$ac_delim"'$//
-t delim
-:nl
-h
-s/\(.\{148\}\)..*/\1/
-t more1
-s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
-p
-n
-b repl
-:more1
-s/["\\]/\\&/g; s/^/"/; s/$/"\\/
-p
-g
-s/.\{148\}//
-t nl
-:delim
-h
-s/\(.\{148\}\)..*/\1/
-t more2
-s/["\\]/\\&/g; s/^/"/; s/$/"/
-p
-b
-:more2
-s/["\\]/\\&/g; s/^/"/; s/$/"\\/
-p
-g
-s/.\{148\}//
-t delim
-' <conf$$subs.awk | sed '
-/^[^""]/{
- N
- s/\n//
-}
-' >>$CONFIG_STATUS || ac_write_fail=1
-rm -f conf$$subs.awk
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-_ACAWK
-cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
- for (key in S) S_is_set[key] = 1
- FS = ""
-
-}
-{
- line = $ 0
- nfields = split(line, field, "@")
- substed = 0
- len = length(field[1])
- for (i = 2; i < nfields; i++) {
- key = field[i]
- keylen = length(key)
- if (S_is_set[key]) {
- value = S[key]
- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
- len += length(value) + length(field[++i])
- substed = 1
- } else
- len += 1 + keylen
- }
-
- print line
-}
-
-_ACAWK
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
-else
- cat
-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
-_ACEOF
-
-# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
-# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
-# trailing colons and then remove the whole line if VPATH becomes empty
-# (actually we leave an empty line to preserve line numbers).
-if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
-h
-s///
-s/^/:/
-s/[ ]*$/:/
-s/:\$(srcdir):/:/g
-s/:\${srcdir}:/:/g
-s/:@srcdir@:/:/g
-s/^:*//
-s/:*$//
-x
-s/\(=[ ]*\).*/\1/
-G
-s/\n//
-s/^[^=]*=[ ]*$//
-}'
-fi
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-fi # test -n "$CONFIG_FILES"
-
-# Set up the scripts for CONFIG_HEADERS section.
-# No need to generate them if there are no CONFIG_HEADERS.
-# This happens for instance with `./config.status Makefile'.
-if test -n "$CONFIG_HEADERS"; then
-cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
-BEGIN {
-_ACEOF
-
-# Transform confdefs.h into an awk script `defines.awk', embedded as
-# here-document in config.status, that substitutes the proper values into
-# config.h.in to produce config.h.
-
-# Create a delimiter string that does not exist in confdefs.h, to ease
-# handling of long lines.
-ac_delim='%!_!# '
-for ac_last_try in false false :; do
- ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
- if test -z "$ac_tt"; then
- break
- elif $ac_last_try; then
- as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
-done
-
-# For the awk script, D is an array of macro values keyed by name,
-# likewise P contains macro parameters if any. Preserve backslash
-# newline sequences.
-
-ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
-sed -n '
-s/.\{148\}/&'"$ac_delim"'/g
-t rset
-:rset
-s/^[ ]*#[ ]*define[ ][ ]*/ /
-t def
-d
-:def
-s/\\$//
-t bsnl
-s/["\\]/\\&/g
-s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
-D["\1"]=" \3"/p
-s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
-d
-:bsnl
-s/["\\]/\\&/g
-s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
-D["\1"]=" \3\\\\\\n"\\/p
-t cont
-s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
-t cont
-d
-:cont
-n
-s/.\{148\}/&'"$ac_delim"'/g
-t clear
-:clear
-s/\\$//
-t bsnlc
-s/["\\]/\\&/g; s/^/"/; s/$/"/p
-d
-:bsnlc
-s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
-b cont
-' <confdefs.h | sed '
-s/'"$ac_delim"'/"\\\
-"/g' >>$CONFIG_STATUS || ac_write_fail=1
-
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- for (key in D) D_is_set[key] = 1
- FS = ""
-}
-/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
- line = \$ 0
- split(line, arg, " ")
- if (arg[1] == "#") {
- defundef = arg[2]
- mac1 = arg[3]
- } else {
- defundef = substr(arg[1], 2)
- mac1 = arg[2]
- }
- split(mac1, mac2, "(") #)
- macro = mac2[1]
- prefix = substr(line, 1, index(line, defundef) - 1)
- if (D_is_set[macro]) {
- # Preserve the white space surrounding the "#".
- print prefix "define", macro P[macro] D[macro]
- next
- } else {
- # Replace #undef with comments. This is necessary, for example,
- # in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- if (defundef == "undef") {
- print "/*", prefix defundef, macro, "*/"
- next
- }
- }
-}
-{ print }
-_ACAWK
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
-fi # test -n "$CONFIG_HEADERS"
-
-
-eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
-shift
-for ac_tag
-do
- case $ac_tag in
- :[FHLC]) ac_mode=$ac_tag; continue;;
- esac
- case $ac_mode$ac_tag in
- :[FHL]*:*);;
- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
- :[FH]-) ac_tag=-:-;;
- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
- esac
- ac_save_IFS=$IFS
- IFS=:
- set x $ac_tag
- IFS=$ac_save_IFS
- shift
- ac_file=$1
- shift
-
- case $ac_mode in
- :L) ac_source=$1;;
- :[FH])
- ac_file_inputs=
- for ac_f
- do
- case $ac_f in
- -) ac_f="$ac_tmp/stdin";;
- *) # Look for the file first in the build tree, then in the source tree
- # (if the path is not absolute). The absolute path cannot be DOS-style,
- # because $ac_f cannot contain `:'.
- test -f "$ac_f" ||
- case $ac_f in
- [\\/$]*) false;;
- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
- esac ||
- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
- esac
- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
- as_fn_append ac_file_inputs " '$ac_f'"
- done
-
- # Let's still pretend it is `configure' which instantiates (i.e., don't
- # use $as_me), people would be surprised to read:
- # /* config.h. Generated by config.status. */
- configure_input='Generated from '`
- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
- `' by configure.'
- if test x"$ac_file" != x-; then
- configure_input="$ac_file. $configure_input"
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
-$as_echo "$as_me: creating $ac_file" >&6;}
- fi
- # Neutralize special characters interpreted by sed in replacement strings.
- case $configure_input in #(
- *\&* | *\|* | *\\* )
- ac_sed_conf_input=`$as_echo "$configure_input" |
- sed 's/[\\\\&|]/\\\\&/g'`;; #(
- *) ac_sed_conf_input=$configure_input;;
- esac
-
- case $ac_tag in
- *:-:* | *:-) cat >"$ac_tmp/stdin" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
- esac
- ;;
- esac
-
- ac_dir=`$as_dirname -- "$ac_file" ||
-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_file" : 'X\(//\)[^/]' \| \
- X"$ac_file" : 'X\(//\)$' \| \
- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$ac_file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- as_dir="$ac_dir"; as_fn_mkdir_p
- ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\\/]* | ?:[\\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
-
- case $ac_mode in
- :F)
- #
- # CONFIG_FILE
- #
-
- case $INSTALL in
- [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
- *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
- esac
- ac_MKDIR_P=$MKDIR_P
- case $MKDIR_P in
- [\\/$]* | ?:[\\/]* ) ;;
- */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
- esac
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-# If the template does not know about datarootdir, expand it.
-# FIXME: This hack should be removed a few years after 2.60.
-ac_datarootdir_hack=; ac_datarootdir_seen=
-ac_sed_dataroot='
-/datarootdir/ {
- p
- q
-}
-/@datadir@/p
-/@docdir@/p
-/@infodir@/p
-/@localedir@/p
-/@mandir@/p'
-case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
-*datarootdir*) ac_datarootdir_seen=yes;;
-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
-$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_datarootdir_hack='
- s&@datadir@&$datadir&g
- s&@docdir@&$docdir&g
- s&@infodir@&$infodir&g
- s&@localedir@&$localedir&g
- s&@mandir@&$mandir&g
- s&\\\${datarootdir}&$datarootdir&g' ;;
-esac
-_ACEOF
-
-# Neutralize VPATH when `$srcdir' = `.'.
-# Shell code in configure.ac might set extrasub.
-# FIXME: do we really want to maintain this feature?
-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
-ac_sed_extra="$ac_vpsub
-$extrasub
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-:t
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s|@configure_input@|$ac_sed_conf_input|;t t
-s&@top_builddir@&$ac_top_builddir_sub&;t t
-s&@top_build_prefix@&$ac_top_build_prefix&;t t
-s&@srcdir@&$ac_srcdir&;t t
-s&@abs_srcdir@&$ac_abs_srcdir&;t t
-s&@top_srcdir@&$ac_top_srcdir&;t t
-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
-s&@builddir@&$ac_builddir&;t t
-s&@abs_builddir@&$ac_abs_builddir&;t t
-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
-s&@INSTALL@&$ac_INSTALL&;t t
-s&@MKDIR_P@&$ac_MKDIR_P&;t t
-$ac_datarootdir_hack
-"
-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
-
-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
- "$ac_tmp/out"`; test -z "$ac_out"; } &&
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined. Please make sure it is defined" >&5
-$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined. Please make sure it is defined" >&2;}
-
- rm -f "$ac_tmp/stdin"
- case $ac_file in
- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
- esac \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- ;;
- :H)
- #
- # CONFIG_HEADER
- #
- if test x"$ac_file" != x-; then
- {
- $as_echo "/* $configure_input */" \
- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
- } >"$ac_tmp/config.h" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
-$as_echo "$as_me: $ac_file is unchanged" >&6;}
- else
- rm -f "$ac_file"
- mv "$ac_tmp/config.h" "$ac_file" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- fi
- else
- $as_echo "/* $configure_input */" \
- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
- || as_fn_error $? "could not create -" "$LINENO" 5
- fi
-# Compute "$ac_file"'s index in $config_headers.
-_am_arg="$ac_file"
-_am_stamp_count=1
-for _am_header in $config_headers :; do
- case $_am_header in
- $_am_arg | $_am_arg:* )
- break ;;
- * )
- _am_stamp_count=`expr $_am_stamp_count + 1` ;;
- esac
-done
-echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
-$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$_am_arg" : 'X\(//\)[^/]' \| \
- X"$_am_arg" : 'X\(//\)$' \| \
- X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$_am_arg" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`/stamp-h$_am_stamp_count
- ;;
-
- :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
-$as_echo "$as_me: executing $ac_file commands" >&6;}
- ;;
- esac
-
-
- case $ac_file$ac_mode in
- "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
- # Older Autoconf quotes --file arguments for eval, but not when files
- # are listed without --file. Let's play safe and only enable the eval
- # if we detect the quoting.
- case $CONFIG_FILES in
- *\'*) eval set x "$CONFIG_FILES" ;;
- *) set x $CONFIG_FILES ;;
- esac
- shift
- for mf
- do
- # Strip MF so we end up with the name of the file.
- mf=`echo "$mf" | sed -e 's/:.*$//'`
- # Check whether this is an Automake generated Makefile or not.
- # We used to match only the files named 'Makefile.in', but
- # some people rename them; so instead we look at the file content.
- # Grep'ing the first line is not enough: some people post-process
- # each Makefile.in and add a new line on top of each file to say so.
- # Grep'ing the whole file is not good either: AIX grep has a line
- # limit of 2048, but all sed's we know have understand at least 4000.
- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
- dirpart=`$as_dirname -- "$mf" ||
-$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$mf" : 'X\(//\)[^/]' \| \
- X"$mf" : 'X\(//\)$' \| \
- X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$mf" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- else
- continue
- fi
- # Extract the definition of DEPDIR, am__include, and am__quote
- # from the Makefile without running 'make'.
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
- test -z "$DEPDIR" && continue
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
- test -z "$am__include" && continue
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
- # Find all dependency output files, they are included files with
- # $(DEPDIR) in their names. We invoke sed twice because it is the
- # simplest approach to changing $(DEPDIR) to its actual value in the
- # expansion.
- for file in `sed -n "
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
- # Make sure the directory exists.
- test -f "$dirpart/$file" && continue
- fdir=`$as_dirname -- "$file" ||
-$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$file" : 'X\(//\)[^/]' \| \
- X"$file" : 'X\(//\)$' \| \
- X"$file" : 'X\(/\)' \| . 2>/dev/null ||
-$as_echo X"$file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- as_dir=$dirpart/$fdir; as_fn_mkdir_p
- # echo "creating $dirpart/$file"
- echo '# dummy' > "$dirpart/$file"
- done
- done
-}
- ;;
- "po-directories":C)
- for ac_file in $CONFIG_FILES; do
- # Support "outfile[:infile[:infile...]]"
- case "$ac_file" in
- *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- esac
- # PO directories have a Makefile.in generated from Makefile.in.in.
- case "$ac_file" in */Makefile.in)
- # Adjust a relative srcdir.
- ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
- ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
- ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
- # In autoconf-2.13 it is called $ac_given_srcdir.
- # In autoconf-2.50 it is called $srcdir.
- test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
- case "$ac_given_srcdir" in
- .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
- /*) top_srcdir="$ac_given_srcdir" ;;
- *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- # Treat a directory as a PO directory if and only if it has a
- # POTFILES.in file. This allows packages to have multiple PO
- # directories under different names or in different locations.
- if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
- rm -f "$ac_dir/POTFILES"
- test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
- gt_tab=`printf '\t'`
- cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
- POMAKEFILEDEPS="POTFILES.in"
- # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
- # on $ac_dir but don't depend on user-specified configuration
- # parameters.
- if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
- # The LINGUAS file contains the set of available languages.
- if test -n "$OBSOLETE_ALL_LINGUAS"; then
- test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
- fi
- ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
- # Hide the ALL_LINGUAS assignment from automake < 1.5.
- eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
- POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
- else
- # The set of available languages was given in configure.in.
- # Hide the ALL_LINGUAS assignment from automake < 1.5.
- eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
- fi
- # Compute POFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
- # Compute UPDATEPOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
- # Compute DUMMYPOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
- # Compute GMOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
- case "$ac_given_srcdir" in
- .) srcdirpre= ;;
- *) srcdirpre='$(srcdir)/' ;;
- esac
- POFILES=
- UPDATEPOFILES=
- DUMMYPOFILES=
- GMOFILES=
- for lang in $ALL_LINGUAS; do
- POFILES="$POFILES $srcdirpre$lang.po"
- UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
- DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
- GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
- done
- # CATALOGS depends on both $ac_dir and the user's LINGUAS
- # environment variable.
- INST_LINGUAS=
- if test -n "$ALL_LINGUAS"; then
- for presentlang in $ALL_LINGUAS; do
- useit=no
- if test "%UNSET%" != "$LINGUAS"; then
- desiredlanguages="$LINGUAS"
- else
- desiredlanguages="$ALL_LINGUAS"
- fi
- for desiredlang in $desiredlanguages; do
- # Use the presentlang catalog if desiredlang is
- # a. equal to presentlang, or
- # b. a variant of presentlang (because in this case,
- # presentlang can be used as a fallback for messages
- # which are not translated in the desiredlang catalog).
- case "$desiredlang" in
- "$presentlang"*) useit=yes;;
- esac
- done
- if test $useit = yes; then
- INST_LINGUAS="$INST_LINGUAS $presentlang"
- fi
- done
- fi
- CATALOGS=
- if test -n "$INST_LINGUAS"; then
- for lang in $INST_LINGUAS; do
- CATALOGS="$CATALOGS $lang.gmo"
- done
- fi
- test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
- sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
- for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
- if test -f "$f"; then
- case "$f" in
- *.orig | *.bak | *~) ;;
- *) cat "$f" >> "$ac_dir/Makefile" ;;
- esac
- fi
- done
- fi
- ;;
- esac
- done ;;
-
- esac
-done # for ac_tag
-
-
-as_fn_exit 0
-_ACEOF
-ac_clean_files=$ac_clean_files_save
-
-test $ac_write_fail = 0 ||
- as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
-
-
-# configure is writing to config.log, and then calls config.status.
-# config.status does its own redirection, appending to config.log.
-# Unfortunately, on DOS this fails, as config.log is still kept open
-# by configure, so config.status won't be able to write to it; its
-# output is simply discarded. So we exec the FD to /dev/null,
-# effectively closing config.log, so it can be properly (re)opened and
-# appended to by config.status. When coming back to configure, we
-# need to make the FD available again.
-if test "$no_create" != yes; then
- ac_cs_success=:
- ac_config_status_args=
- test "$silent" = yes &&
- ac_config_status_args="$ac_config_status_args --quiet"
- exec 5>/dev/null
- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
- exec 5>>config.log
- # Use ||, not &&, to avoid exiting from the if with $? = 1, which
- # would make configure fail if this is the last instruction.
- $ac_cs_success || as_fn_exit 1
-fi
-if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
-$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
-fi
-
diff --git a/src/configure.ac b/src/configure.ac
deleted file mode 100644
index 0e67a792..00000000
--- a/src/configure.ac
+++ /dev/null
@@ -1,329 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-dnl Configure input file for elfutils. -*-autoconf-*-
-dnl
-dnl Copyright (C) 1996-2014 Red Hat, Inc.
-dnl
-dnl This file is part of elfutils.
-dnl
-dnl This file is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 3 of the License, or
-dnl (at your option) any later version.
-dnl
-dnl elfutils is distributed in the hope that it will be useful, but
-dnl WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
-AC_INIT([elfutils],[0.161],[https://bugzilla.redhat.com/],[elfutils])
-
-AC_CONFIG_AUX_DIR([config])
-AC_CONFIG_FILES([config/Makefile])
-
-AC_COPYRIGHT([Copyright (C) 1996-2014 Red Hat, Inc.])
-AC_PREREQ(2.63) dnl Minimum Autoconf version required.
-
-dnl We use GNU make extensions; automake 1.10 defaults to -Wportability.
-AM_INIT_AUTOMAKE([gnits 1.11 -Wno-portability dist-bzip2 no-dist-gzip parallel-tests])
-AM_MAINTAINER_MODE
-
-dnl Unique ID for this build.
-MODVERSION="Build on $(hostname) $(date +%FT%R:%S%z)"
-AC_SUBST([MODVERSION])
-AC_DEFINE_UNQUOTED(MODVERSION, "$MODVERSION")
-AH_TEMPLATE([MODVERSION], [Identifier for modules in the build.])
-
-AC_CONFIG_SRCDIR([libelf/libelf.h])
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_HEADERS([config.h])
-
-AC_CONFIG_MACRO_DIR([m4])
-AC_CONFIG_FILES([m4/Makefile])
-
-dnl The RPM spec file. We substitute a few values in the file.
-AC_CONFIG_FILES([elfutils.spec:config/elfutils.spec.in])
-
-
-AC_CANONICAL_HOST
-
-AC_ARG_ENABLE(deterministic-archives,
-[AS_HELP_STRING([--enable-deterministic-archives],
- [ar and ranlib default to -D behavior])], [
-if test "${enableval}" = no; then
- default_ar_deterministic=false
-else
- default_ar_deterministic=true
-fi], [default_ar_deterministic=false])
-AC_DEFINE_UNQUOTED(DEFAULT_AR_DETERMINISTIC, $default_ar_deterministic,
- [Should ar and ranlib use -D behavior by default?])
-
-AC_ARG_ENABLE([thread-safety],
-AS_HELP_STRING([--enable-thread-safety],
- [enable thread safety of libraries EXPERIMENTAL]),
- use_locks=$enableval, use_locks=no)
-AM_CONDITIONAL(USE_LOCKS, test "$use_locks" = yes)
-AS_IF([test "$use_locks" = yes], [AC_DEFINE(USE_LOCKS)])
-AS_IF([test "$use_locks" = yes],
- [AC_MSG_WARN([thread-safety is EXPERIMENTAL tests might fail.])])
-
-AH_TEMPLATE([USE_LOCKS], [Defined if libraries should be thread-safe.])
-
-AC_PROG_CC
-AC_PROG_RANLIB
-AC_PROG_YACC
-AM_PROG_LEX
-# Only available since automake 1.12
-m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
-AC_CHECK_TOOL([READELF], [readelf])
-AC_CHECK_TOOL([NM], [nm])
-
-AC_CACHE_CHECK([for gcc with C99 support], ac_cv_c99, [dnl
-old_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -std=gnu99"
-AC_COMPILE_IFELSE([AC_LANG_SOURCE([dnl
-int foo (int a) { for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; }])],
- ac_cv_c99=yes, ac_cv_c99=no)
-CFLAGS="$old_CFLAGS"])
-AS_IF([test "x$ac_cv_c99" != xyes],
- AC_MSG_ERROR([gcc with C99 support required]))
-
-AC_CACHE_CHECK([for __thread support], ac_cv_tls, [dnl
-# Use the same flags that we use for our DSOs, so the test is representative.
-# Some old compiler/linker/libc combinations fail some ways and not others.
-save_CFLAGS="$CFLAGS"
-save_LDFLAGS="$LDFLAGS"
-CFLAGS="-fpic $CFLAGS"
-LDFLAGS="-shared -Wl,-z,defs,-z,relro $LDFLAGS"
-AC_LINK_IFELSE([dnl
-AC_LANG_PROGRAM([[#undef __thread
-static __thread int a; int foo (int b) { return a + b; }]],
- [[exit (foo (0));]])],
- ac_cv_tls=yes, ac_cv_tls=no)
-CFLAGS="$save_CFLAGS"
-LDFLAGS="$save_LDFLAGS"])
-AS_IF([test "x$ac_cv_tls" != xyes],
- AC_MSG_ERROR([__thread support required]))
-
-dnl This test must come as early as possible after the compiler configuration
-dnl tests, because the choice of the file model can (in principle) affect
-dnl whether functions and headers are available, whether they work, etc.
-AC_SYS_LARGEFILE
-
-dnl Enable the linker to be build as a native-only linker. By default it
-dnl can handle all architectures but this comes at a cost. A native
-dnl will be slightly faster, small, and has fewer dependencies.
-native_ld=no
-AC_ARG_ENABLE([generic],
-AS_HELP_STRING([--disable-generic], [do not build generic linker]), [dnl
-if test "$enable_generic" = no; then
- case "$host_cpu" in
- i?86)
- AC_DEFINE(NATIVE_ELF, 32)
- native_ld=yes
- base_cpu=i386
- ;;
- *)
- AC_MSG_ERROR([no machine-specific linker for this configuration available])
- ;;
- esac
-fi])
-AH_TEMPLATE([NATIVE_ELF],
-[Define to 32 or 64 if a specific implementation is wanted.])
-AM_CONDITIONAL(NATIVE_LD, test "$native_ld" = yes)
-dnl The automake generated Makefile cannot deal with macros in the name
-dnl of files if at any time there is no such file, even if the filename
-dnl would not be used.
-AS_IF([test -z "$base_cpu"], [base_cpu=none])
-AC_SUBST(base_cpu)
-dnl Support to work around automake's inflexible dependency generation.
-dnl See src/Makefile.am for more information.
-AM_CONDITIONAL(NEVER, false)
-
-dnl enable debugging of branch prediction.
-AC_ARG_ENABLE([debugpred],
-AS_HELP_STRING([--enable-debugpred],[build binaries with support to debug branch prediction]),
-[use_debugpred=$enableval], [use_debugpred=no])
-case $use_debugpred in
- yes) use_debugpred=1 ;;
- *) use_debugpred=0 ;;
-esac
-AC_SUBST([DEBUGPRED], $use_debugpred)
-
-dnl Enable gprof suport.
-AC_ARG_ENABLE([gprof],
-AS_HELP_STRING([--enable-gprof],[build binaries with gprof support]), [use_gprof=$enableval], [use_gprof=no])
-if test "$use_gprof" = yes; then
- CFLAGS="$CFLAGS -pg"
- LDFLAGS="$LDFLAGS -pg"
-fi
-AM_CONDITIONAL(GPROF, test "$use_gprof" = yes)
-
-# Enable gcov suport.
-AC_ARG_ENABLE([gcov],
-AS_HELP_STRING([--enable-gcov],[build binaries with gcov support]), [use_gcov=$enableval], [use_gcov=no])
-if test "$use_gcov" = yes; then
- CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
- LDFLAGS="$LDFLAGS -fprofile-arcs"
-fi
-AM_CONDITIONAL(GCOV, test "$use_gcov" = yes)
-
-AC_ARG_ENABLE([valgrind],
-AS_HELP_STRING([--enable-valgrind],[run all tests under valgrind]),
-[use_valgrind=$enableval], [use_valgrind=no])
-if test "$use_valgrind" = yes; then
- AC_CHECK_PROG(HAVE_VALGRIND, valgrind, yes, no)
- if test "$HAVE_VALGRIND" = "no"; then
- AC_MSG_ERROR([valgrind not found])
- fi
-fi
-AM_CONDITIONAL(USE_VALGRIND, test "$use_valgrind" = yes)
-
-AM_CONDITIONAL(BUILD_STATIC, [dnl
-test "$use_gprof" = yes -o "$use_gcov" = yes])
-
-AC_ARG_ENABLE([tests-rpath],
-AS_HELP_STRING([--enable-tests-rpath],[build $ORIGIN-using rpath into tests]),
- [tests_use_rpath=$enableval], [tests_use_rpath=no])
-AM_CONDITIONAL(TESTS_RPATH, test "$tests_use_rpath" = yes)
-
-LIBEBL_SUBDIR="$PACKAGE"
-AC_ARG_ENABLE([libebl-subdir],
-AS_HELP_STRING([--enable-libebl-subdir=DIR],
-[install libebl_CPU modules in $(libdir)/DIR]), [dnl
-LIBEBL_SUBDIR="$enable_libebl_subdir"])
-AC_SUBST([LIBEBL_SUBDIR])
-AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR")
-AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.])
-
-dnl Test for zlib and bzlib, gives ZLIB/BZLIB .am
-dnl conditional and config.h USE_ZLIB/USE_BZLIB #define.
-save_LIBS="$LIBS"
-LIBS=
-eu_ZIPLIB(zlib,ZLIB,z,gzdirect,gzip)
-eu_ZIPLIB(bzlib,BZLIB,bz2,BZ2_bzdopen,bzip2)
-eu_ZIPLIB(lzma,LZMA,lzma,lzma_auto_decoder,[LZMA (xz)])
-zip_LIBS="$LIBS"
-LIBS="$save_LIBS"
-AC_SUBST([zip_LIBS])
-
-AC_CHECK_LIB([stdc++], [__cxa_demangle], [dnl
-AC_DEFINE([USE_DEMANGLE], [1], [Defined if demangling is enabled])])
-AM_CONDITIONAL(DEMANGLE, test "$ac_cv_lib_stdcpp___cxa_demangle" = yes)
-
-AC_ARG_ENABLE([textrelcheck],
-AS_HELP_STRING([--disable-textrelcheck],
- [Disable textrelcheck being a fatal error]))
-AM_CONDITIONAL(FATAL_TEXTREL, [test "x$enable_textrelcheck" != "xno"])
-
-dnl The directories with content.
-
-dnl Documentation.
-dnl Commented out for now.
-dnl AC_CONFIG_FILES([doc/Makefile])
-
-dnl Support library.
-AC_CONFIG_FILES([lib/Makefile])
-
-dnl ELF library.
-AC_CONFIG_FILES([libelf/Makefile])
-
-dnl Higher-level ELF support library.
-AC_CONFIG_FILES([libebl/Makefile])
-
-dnl DWARF-ELF Lower-level Functions support library.
-AC_CONFIG_FILES([libdwelf/Makefile])
-
-dnl DWARF library.
-AC_CONFIG_FILES([libdw/Makefile])
-
-dnl Higher-level DWARF support library.
-AC_CONFIG_FILES([libdwfl/Makefile])
-
-dnl CPU handling library.
-AC_CONFIG_FILES([libcpu/Makefile])
-
-dnl Assembler library.
-AM_CONDITIONAL(HAVE_LIBASM, true)dnl Used in tests/Makefile.am, which see.
-AC_CONFIG_FILES([libasm/Makefile])
-
-dnl CPU-specific backend libraries.
-AC_CONFIG_FILES([backends/Makefile])
-
-dnl Tools.
-AC_CONFIG_FILES([src/Makefile po/Makefile.in])
-
-dnl Test suite.
-AM_CONDITIONAL(STANDALONE, false)dnl Used in tests/Makefile.am, which see.
-AC_CONFIG_FILES([tests/Makefile])
-
-# Get the definitions necessary to create the Makefiles in the po
-# subdirectories. This is a small subset of the gettext rules.
-AC_SUBST(USE_NLS, yes)
-AM_PO_SUBDIRS
-
-dnl Appended to the config.h file.
-dnl We hide all kinds of configuration magic in lib/eu-config.h.
-AH_BOTTOM([#include <eu-config.h>])
-
-dnl Version compatibility header.
-AC_CONFIG_FILES([version.h:config/version.h.in])
-AC_SUBST([eu_version])
-
-# 1.234<whatever> -> 1234<whatever>
-case "$PACKAGE_VERSION" in
-[[0-9]].*) eu_version=`echo "$PACKAGE_VERSION" | sed 's@\.@@'` ;;
-*) AC_MSG_ERROR([confused by version number '$PACKAGE_VERSION']) ;;
-esac
-case "$eu_version" in
-*.*)
- # 1234.567 -> "1234", "567"
- eu_extra_version="${eu_version#*.}"
- eu_version="${eu_version%%.*}"
- case "$eu_extra_version" in
- [[0-9]][[0-9]][[0-9]]) ;;
- [[0-9]][[0-9]]) eu_extra_version="${eu_extra_version}0" ;;
- [[0-9]]) eu_extra_version="${eu_extra_version}00" ;;
- *) AC_MSG_ERROR([confused by version number '$PACKAGE_VERSION']) ;;
- esac
- ;;
-*)
- eu_extra_version=000
- ;;
-esac
-
-case "$eu_version" in
- 0[[0-9]][[0-9]][[0-9]]) eu_version="${eu_version#0}$eu_extra_version" ;;
-[[0-9]][[0-9]][[0-9]][[0-9]]) eu_version="${eu_version}$eu_extra_version" ;;
-[[0-9]][[0-9]][[0-9]]) eu_version="${eu_version}0$eu_extra_version" ;;
-[[0-9]][[0-9]]) eu_version="${eu_version}00$eu_extra_version";;
-*) AC_MSG_ERROR([confused by version number '$PACKAGE_VERSION']) ;;
-esac
-
-# Round up to the next release API (x.y) version.
-eu_version=$(( (eu_version + 999) / 1000 ))
-
-AC_CHECK_SIZEOF(long)
-
-# On aarch64 before glibc 2.20 we would get the kernel user_pt_regs instead
-# of the user_regs_struct from sys/user.h. They are structurally the same
-# but we get either one or the other.
-AC_CHECK_TYPE([struct user_regs_struct],
- [sys_user_has_user_regs=yes], [sys_user_has_user_regs=no],
- [[#include <sys/ptrace.h>]
- [#include <sys/time.h>]
- [#include <sys/user.h>]])
-if test "$sys_user_has_user_regs" = "yes"; then
- AC_DEFINE(HAVE_SYS_USER_REGS, 1,
- [Define to 1 if <sys/user.h> defines struct user_regs_struct])
-fi
-
-# On a 64-bit host where can can use $CC -m32, we'll run two sets of tests.
-# Likewise in a 32-bit build on a host where $CC -m64 works.
-utrace_BIARCH
-# `$utrace_biarch' will be `-m64' even on an uniarch i386 machine.
-CC_BIARCH="$CC $utrace_biarch"
-AC_SUBST([CC_BIARCH])
-
-AC_OUTPUT
diff --git a/src/src/debugpred.h b/src/debugpred.h
index 4845a6e2..4845a6e2 100644
--- a/src/src/debugpred.h
+++ b/src/debugpred.h
diff --git a/src/src/elf32-i386.script b/src/elf32-i386.script
index 2083278f..2083278f 100644
--- a/src/src/elf32-i386.script
+++ b/src/elf32-i386.script
diff --git a/src/src/elfcmp.c b/src/elfcmp.c
index d1008b3c..d1008b3c 100644
--- a/src/src/elfcmp.c
+++ b/src/elfcmp.c
diff --git a/src/src/elflint.c b/src/elflint.c
index 7e732531..7e732531 100644
--- a/src/src/elflint.c
+++ b/src/elflint.c
diff --git a/src/elfutils.spec b/src/elfutils.spec
deleted file mode 100644
index a6c5fbea..00000000
--- a/src/elfutils.spec
+++ /dev/null
@@ -1,815 +0,0 @@
-# -*- rpm-spec-*-
-Summary: A collection of utilities and DSOs to handle compiled objects
-Name: elfutils
-Version: 0.161
-Release: 1
-License: GPLv3+ and (GPLv2+ or LGPLv3+)
-Group: Development/Tools
-Source: elfutils-%{version}.tar.bz2
-Obsoletes: libelf libelf-devel
-Requires: elfutils-libelf = %{version}-%{release}
-Requires: glibc >= 2.7
-Requires: libstdc++
-
-# ExcludeArch: xxx
-
-BuildRoot: %{_tmppath}/%{name}-root
-BuildRequires: gcc >= 4.1.2-33
-BuildRequires: glibc >= 2.7
-BuildRequires: bison >= 1.875
-BuildRequires: flex >= 2.5.4a
-BuildRequires: bzip2
-BuildRequires: m4
-BuildRequires: gettext
-BuildRequires: zlib-devel
-BuildRequires: bzip2-devel
-BuildRequires: xz-devel
-BuildRequires: gcc-c++
-
-%define _gnu %{nil}
-%define _programprefix eu-
-
-%description
-Elfutils is a collection of utilities, including ld (a linker),
-nm (for listing symbols from object files), size (for listing the
-section sizes of an object or archive file), strip (for discarding
-symbols), readelf (to see the raw ELF file structures), and elflint
-(to check for well-formed ELF files). Also included are numerous
-helper libraries which implement DWARF, ELF, and machine-specific ELF
-handling.
-
-%package devel
-Summary: Development libraries to handle compiled objects.
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-Requires: elfutils = %{version}-%{release}
-Requires: elfutils-libelf-devel = %{version}-%{release}
-
-%description devel
-The elfutils-devel package contains the libraries to create
-applications for handling compiled objects. libebl provides some
-higher-level ELF access functionality. libdw provides access to
-the DWARF debugging information. libasm provides a programmable
-assembler interface.
-
-%package devel-static
-Summary: Static archives to handle compiled objects.
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-Requires: elfutils-devel = %{version}-%{release}
-
-%description devel-static
-The elfutils-devel-static archive contains the static archives
-with the code the handle compiled objects.
-
-%package libelf
-Summary: Library to read and write ELF files.
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-
-%description libelf
-The elfutils-libelf package provides a DSO which allows reading and
-writing ELF files on a high level. Third party programs depend on
-this package to read internals of ELF files. The programs of the
-elfutils package use it also to generate new ELF files.
-
-%package libelf-devel
-Summary: Development support for libelf
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-Requires: elfutils-libelf = %{version}-%{release}
-Conflicts: libelf-devel
-
-%description libelf-devel
-The elfutils-libelf-devel package contains the libraries to create
-applications for handling compiled objects. libelf allows you to
-access the internals of the ELF object file format, so you can see the
-different sections of an ELF file.
-
-%package libelf-devel-static
-Summary: Static archive of libelf
-Group: Development/Tools
-License: GPLv2+ or LGPLv3+
-Requires: elfutils-libelf-devel = %{version}-%{release}
-Conflicts: libelf-devel
-
-%description libelf-devel-static
-The elfutils-libelf-static package contains the static archive
-for libelf.
-
-%prep
-%setup -q
-
-%build
-%configure --program-prefix=%{_programprefix}
-make
-
-%install
-rm -rf ${RPM_BUILD_ROOT}
-mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
-
-%makeinstall
-
-chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so*
-chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
-
-# XXX Nuke unpackaged files
-{ cd ${RPM_BUILD_ROOT}
- rm -f .%{_bindir}/eu-ld
- rm -f .%{_includedir}/elfutils/libasm.h
- rm -f .%{_libdir}/libasm.so
- rm -f .%{_libdir}/libasm.a
-}
-
-%check
-make check
-
-%clean
-rm -rf ${RPM_BUILD_ROOT}
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%post libelf -p /sbin/ldconfig
-
-%postun libelf -p /sbin/ldconfig
-
-%files
-%defattr(-,root,root)
-%doc COPYING COPYING-GPLV2 COPYING-LGPLV3 README TODO CONTRIBUTING
-%{_bindir}/eu-elflint
-%{_bindir}/eu-nm
-%{_bindir}/eu-readelf
-%{_bindir}/eu-size
-%{_bindir}/eu-strip
-%{_bindir}/eu-findtextrel
-%{_bindir}/eu-addr2line
-%{_bindir}/eu-elfcmp
-%{_bindir}/eu-ranlib
-%{_bindir}/eu-strings
-%{_bindir}/eu-objdump
-%{_bindir}/eu-ar
-%{_bindir}/eu-unstrip
-%{_bindir}/eu-make-debug-archive
-#%{_bindir}/eu-ld
-%{_libdir}/libasm-%{version}.so
-%{_libdir}/libdw-%{version}.so
-%{_libdir}/libasm.so.*
-%{_libdir}/libdw.so.*
-%dir %{_libdir}/elfutils
-%{_libdir}/elfutils/lib*.so
-
-%files devel
-%defattr(-,root,root)
-%{_includedir}/dwarf.h
-%dir %{_includedir}/elfutils
-%{_includedir}/elfutils/elf-knowledge.h
-#%{_includedir}/elfutils/libasm.h
-%{_includedir}/elfutils/libebl.h
-%{_includedir}/elfutils/libdw.h
-%{_includedir}/elfutils/libdwfl.h
-%{_includedir}/elfutils/libdwelf.h
-%{_libdir}/libebl.a
-#%{_libdir}/libasm.so
-%{_libdir}/libdw.so
-
-%files devel-static
-%{_libdir}/libdw.a
-#%{_libdir}/libasm.a
-
-%files libelf
-%defattr(-,root,root)
-%{_libdir}/libelf-%{version}.so
-%{_libdir}/libelf.so.*
-%{_datadir}/locale/*/LC_MESSAGES/elfutils.mo
-
-%files libelf-devel
-%defattr(-,root,root)
-%{_includedir}/libelf.h
-%{_includedir}/gelf.h
-%{_includedir}/nlist.h
-%{_includedir}/elfutils/version.h
-%{_libdir}/libelf.so
-
-%files libelf-devel-static
-%{_libdir}/libelf.a
-
-%changelog
-* Thu Dec 18 2014 Mark Wielaard <mjw@redhat.com> 0.161-1
-- libdw: New function dwarf_peel_type. dwarf_aggregate_size now uses
- dwarf_peel_type to also provide the sizes of qualified types.
- dwarf_getmacros will now serve either of .debug_macro and
- .debug_macinfo transparently. New interfaces dwarf_getmacros_off,
- dwarf_macro_getsrcfiles, dwarf_macro_getparamcnt, and
- dwarf_macro_param are available for more generalized inspection of
- macros and their parameters.
- dwarf.h: Add DW_AT_GNU_deleted, DW_AT_noreturn, DW_LANG_C11,
- DW_LANG_C_plus_plus_11 and DW_LANG_C_plus_plus_14.
-
-* Mon Aug 25 2014 Mark Wielaard <mjw@redhat.com> 0.160-1
-- libdw: New functions dwarf_cu_getdwarf, dwarf_cu_die.
- dwarf.h remove non-existing DW_TAG_mutable_type.
-- libdwfl: Handle LZMA .ko.xz compressed kernel modules.
-- unstrip: New option -F, --force to combining files even if some ELF
- headers don't seem to match.
-- backends: Handle ARM THUMB functions. Add support for ppc64le ELFv2 abi.
-
-* Sat May 17 2014 Mark Wielaard <mjw@redhat.com> 0.159-1
-- stack: New option -d, --debugname to lookup DWARF debuginfo name
- for frame. New option -i, --inlines to show inlined frames
- using DWARF debuginfo.
-- libdwelf: New libdwelf.h header for libdw.so DWARF ELF Low-level
- Functions. New function dwelf_elf_gnu_debuglink,
- dwelf_dwarf_gnu_debugaltlink, and dwelf_elf_gnu_build_id.
-- libdw: Support for DWZ multifile forms DW_FORM_GNU_ref_alt and
- DW_FORM_GNU_strp_alt is now enabled by default and no longer
- experimental. Added new functions dwarf_getalt and dwarf_setalt
- to get or set the alternative debug file used for the alt FORMs.
- The dwfl_linux_proc_find_elf callback will now find ELF from
- process memory for (deleted) files if the Dwfl has process state
- attached.
-- libdwfl: The dwfl_build_id_find_debuginfo and
- dwfl_standard_find_debuginfo functions will now try to
- resolve and set the alternative debug file.
-- backends: Add CFI unwinding for arm. Relies on .debug_frame.
- Add arm process initial register state compatible mode to AARCH64.
- Add aarch64 native and core unwind support.
-- other: All separate elfutils-robustify patches have been merged.
- CVE-2014-0172 Check overflow before calling malloc to uncompress
- data.
-
-* Fri Jan 3 2014 Mark Wielaard <mjw@redhat.com> 0.158-1
-- libdwfl: dwfl_core_file_report has new parameter executable.
- New functions dwfl_module_getsymtab_first_global,
- dwfl_module_getsym_info and dwfl_module_addrinfo.
- Added unwinder with type Dwfl_Thread_Callbacks, opaque types
- Dwfl_Thread and Dwfl_Frame and functions dwfl_attach_state,
- dwfl_pid, dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
- dwfl_thread_state_registers, dwfl_thread_state_register_pc,
- dwfl_getthread_frames, dwfl_getthreads, dwfl_thread_getframes
- and dwfl_frame_pc.
-- addr2line: New option -x to show the section an address was found in.
-- stack: New utility that uses the new unwinder for processes and cores.
-- backends: Unwinder support for i386, x86_64, s390, s390x, ppc and ppc64.
- aarch64 support.
-
-* Mon Sep 30 2013 Mark Wielaard <mjw@redhat.com> 0.157-1
-- libdw: Add new functions dwarf_getlocations, dwarf_getlocation_attr
- and dwarf_getlocation_die.
-- readelf: Show contents of NT_SIGINFO and NT_FILE core notes.
-- addr2line: Support -i, --inlines output option.
-- backends: abi_cfi hook for arm, ppc and s390.
-
-* Thu Jul 25 2013 Jan Kratochvil <jan.kratochvil@redhat.com> 0.156-1
-- lib: New macro COMPAT_VERSION_NEWPROTO.
-- libdw: Handle GNU extension opcodes in dwarf_getlocation.
-- libdwfl: Fix STB_GLOBAL over STB_WEAK preference in
- dwfl_module_addrsym. Add minisymtab support. Add
- parameter add_p_vaddr to dwfl_report_elf. Use DT_DEBUG
- library search first.
-- libebl: Handle new core note types in EBL.
-- backends: Interpret NT_ARM_VFP. Implement core file
- registers parsing for s390/s390x.
-- readelf: Add --elf-section input option to inspect an embedded ELF
- file. Add -U, --unresolved-address-offsets output control.
- Add --debug-dump=decodedline support. Accept version
- 8 .gdb_index section format. Adjust output formatting width.
- When highpc is in constant form print it also as address.
- Display raw .debug_aranges. Use libdw only for decodedaranges.
-- elflint: Add __bss_start__ to the list of allowed symbols.
-- tests: Add configure --enable-valgrind option to run all tests
- under valgrind. Enable automake parallel-tests for make check.
-- translations: Updated Polish translation.
-- Updates for Automake 1.13.
-
-* Fri Aug 24 2012 Mark Wielaard <mjw@redhat.com> 0.155-1
-- libelf: elf*_xlatetomd now works for cross-endian ELF note data.
- elf_getshdr now works consistently on non-mmaped ELF files after
- calling elf_cntl(ELF_C_FDREAD). Implement support for
- ar archives with 64-bit symbol table.
-- libdw: dwarf.h corrected the DW_LANG_ObjC constant name (was
- DW_LANG_Objc). Any existing sources using the old name will
- have to be updated. Add DW_MACRO_GNU .debug_macro type
- encodings constants, DW_ATE_UTF and DW_OP_GNU_parameter_ref to
- dwarf.h. Experimental support for DWZ multifile forms
- DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt. Disabled by
- default. Use configure --enable-dwz to test it.
-- readelf: Add .debug_macro parsing support. Add .gdb_index
- version 7 parsing support. Recognize DW_OP_GNU_parameter_ref.
-- backends: Add support for Tilera TILE-Gx processor.
-- translations: Updated Ukrainian translation.
-
-* Fri Jun 22 2012 Mark Wielaard <mjw@redhat.com> 0.154-1
-- libelf: [g]elf[32|64]_offscn() do not match SHT_NOBITS sections at
- OFFSET.
-- libdw: dwarf_highpc function now handles DWARF 4 DW_AT_high_pc
- constant form. Fix bug using dwarf_next_unit to iterate over
- .debug_types.
-- elflint: Now accepts gold linker produced executables.
-- The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for
- stand-alone programs. There is now also a formal CONTRIBUTING
- document describing how to submit patches.
-
-* Thu Feb 23 2012 Mark Wielaard <mjw@redhat.com> 0.153-1
-- libdw: Support reading .zdebug_* DWARF sections compressed via zlib.
-- libdwfl: Speed up dwfl_module_addrsym.
-- nm: Support C++ demangling.
-- ar: Support D modifier for "deterministic output" with no
- uid/gid/mtime info. The U modifier is the inverse. elfutils
- can be configured with the --enable-deterministic-archives option
- to make the D behavior the default when U is not specified.
-- ranlib: Support -D and -U flags with same meaning.
-- readelf: Improve output of -wline. Add support for printing SDT elf
- notes. Add printing of .gdb_index section. Support for
- typed DWARF stack, call_site and entry_value.
-- strip: Add --reloc-debug-sections option. Improved SHT_GROUP
- sections handling.
-
-* Tue Feb 15 2011 <drepper@gmail.com> 0.152-1
-- Various build and warning nits fixed for newest GCC and Autoconf.
-- libdwfl: Yet another prelink-related fix for another regression.
- Look for Linux kernel images in files named with compression
- suffixes.
-- elfcmp: New flag --ignore-build-id to ignore differing build ID
- bits. New flag -l/--verbose to print all differences.
-
-* Wed Jan 12 2011 <drepper@gmail.com> 0.151-1
-- libdwfl: Fix for more prelink cases with separate debug file.
-- strip: New flag --strip-sections to remove section headers entirely.
-
-* Mon Nov 22 2010 <drepper@gmail.com> 0.150-1
-- libdw: Fix for handling huge .debug_aranges section.
-- libdwfl: Fix for handling prelinked DSO with separate debug file.
-- findtextrel: Fix diagnostics to work with usual section ordering.
-- libebl: i386 backend fix for multi-register integer return value
- location.
-
-* Mon Sep 13 2010 <drepper@redhat.com> 0.149-1
-- libdw: Decode new DW_OP_GNU_implicit_pointer operation; new
- function dwarf_getlocation_implicit_pointer.
-- libdwfl: New function dwfl_dwarf_line.
-- addr2line: New flag -F/--flags to print more DWARF line information
- details.
-- strip: -g recognizes .gdb_index as a debugging section.
-
-* Mon Jun 28 2010 <drepper@redhat.com> 0.148-1
-- libdw: Accept DWARF 4 format: new functions dwarf_next_unit,
- dwarf_offdie_types. New functions dwarf_lineisa,
- dwarf_linediscriminator, dwarf_lineop_index.
-- libdwfl: Fixes in core-file handling, support cores from PIEs.
- When working from build IDs, don't open a named file that
- mismatches.
-- readelf: Handle DWARF 4 formats.
-
-* Mon May 3 2010 Ulrich Drepper <drepper@redhat.com> 0.147-1
-- libdw: Fixes in CFI handling, best possible handling of bogus CFA
- ops.
-- libdwfl: Ignore R_*_NONE relocs, works around old (binutils) ld -r
- bugs.
-
-* Wed Apr 21 2010 <drepper@redhat.com> 0.146-1
-- libdwfl: New function dwfl_core_file_report.
-
-* Tue Feb 23 2010 Ulrich Drepper <drepper@redhat.com> 0.145-1
-- Fix build with --disable-dependency-tracking.
-- Fix build with most recent glibc headers.
-- libelf: More robust to bogus section headers.
-- libdw: Fix CFI decoding.
-- libdwfl: Fix address bias returned by CFI accessors. Fix core
- file module layout identification.
-- readelf: Fix CFI decoding.
-
-* Thu Jan 14 2010 <drepper@redhat.com> 0.144-1
-- libelf: New function elf_getphdrnum. Now support using more than
- 65536 program headers in a file.
-- libdw: New function dwarf_aggregate_size for computing (constant)
- type sizes, including array_type cases with nontrivial
- calculation.
-- readelf: Don't give errors for missing info under -a.
- Handle Linux "VMCOREINFO" notes under -n.
-
-* Mon Sep 21 2009 <drepper@redhat.com> 0.143-1
-- libdw: Various convenience functions for individual attributes now
- use dwarf_attr_integrate to look up indirect inherited
- attributes. Location expression handling now supports
- DW_OP_implicit_value.
-- libdwfl: Support automatic decompression of files in XZ format,
- and of Linux kernel images made with bzip2 or LZMA (as well
- as gzip).
-
-* Mon Jun 29 2009 <drepper@redhat.com> 0.142-1
-- libelf: Add elf_getshdrnum alias for elf_getshnum and elf_getshdrstrndx alias
- for elf_getshstrndx and deprecate original names. Sun screwed up
- their implementation and asked for a solution.
-- libebl: Add support for STB_GNU_UNIQUE.
-- elflint: Add support for STB_GNU_UNIQUE.
-- readelf: Add -N option, speeds up DWARF printing without address->name lookups.
-- libdw: Add support for decoding DWARF CFI into location description form.
- Handle some new DWARF 3 expression operations previously omitted.
- Basic handling of some new encodings slated for DWARF
-
-* Thu Apr 23 2009 Ulrich Drepper <drepper@redhat.com> 0.141-1
-- libebl: sparc backend fixes; some more arm backend support
-- libdwfl: fix dwfl_module_build_id for prelinked DSO case;
- fixes in core file support; dwfl_module_getsym interface
- improved for non-address symbols
-- strip: fix infinite loop on strange inputs with -f
-- addr2line: take -j/--section=NAME option for binutils compatibility
- (same effect as '(NAME)0x123' syntax already supported)
-
-* Mon Feb 16 2009 Ulrich Drepper <drepper@redhat.com> 0.140-1
-- libelf: Fix regression in creation of section header
-- libdwfl: Less strict behavior if DWARF reader ist just used to
- display data
-
-* Thu Jan 22 2009 Ulrich Drepper <drepper@redhat.com> 0.139-1
-- libcpu: Add Intel SSE4 disassembler support
-- readelf: Implement call frame information and exception handling
- dumping. Add -e option. Enable it implicitly for -a.
-- elflint: Check PT_GNU_EH_FRAME program header entry.
-- libdwfl: Support automatic gzip/bzip2 decompression of ELF files.
-
-* Wed Dec 31 2008 Roland McGrath <roland@redhat.com> 0.138-1
-- Install <elfutils/version.h> header file for applications to use in
- source version compatibility checks.
-- libebl: backend fixes for i386 TLS relocs; backend support for
- NT_386_IOPERM
-- libcpu: disassembler fixes
-- libdwfl: bug fixes
-- libelf: bug fixes
-- nm: bug fixes for handling corrupt input files
-
-* Tue Aug 26 2008 Ulrich Drepper <drepper@redhat.com> 0.137-1
-- Minor fixes for unreleased 0.136 release.
-
-* Mon Aug 25 2008 Ulrich Drepper <drepper@redhat.com> 0.136-1
-- libdwfl: bug fixes; new segment interfaces; all the libdwfl-based
- tools now support --core=COREFILE option
-
-* Mon May 12 2008 Ulrich Drepper <drepper@redhat.com> 0.135-1
-- libdwfl: bug fixes
-- strip: changed handling of ET_REL files wrt symbol tables and relocs
-
-* Tue Apr 8 2008 Ulrich Drepper <drepper@redhat.com> 0.134-1
-- elflint: backend improvements for sparc, alpha
-- libdwfl, libelf: bug fixes
-
-* Sat Mar 1 2008 Ulrich Drepper <drepper@redhat.com> 0.133-1
-- readelf, elflint, libebl: SHT_GNU_ATTRIBUTE section handling (readelf -A)
-- readelf: core note handling for NT_386_TLS, NT_PPC_SPE, Alpha NT_AUXV
-- libdwfl: bug fixes and optimization in relocation handling
-- elfcmp: bug fix for non-allocated section handling
-- ld: implement newer features of binutils linker.
-
-* Mon Jan 21 2008 Ulrich Drepper <drepper@redhat.com> 0.132-1
-- libcpu: Implement x86 and x86-64 disassembler.
-- libasm: Add interface for disassembler.
-- all programs: add debugging of branch prediction.
-- libelf: new function elf_scnshndx.
-
-* Sun Nov 11 2007 Ulrich Drepper <drepper@redhat.com> 0.131-1
-- libdw: DW_FORM_ref_addr support; dwarf_formref entry point now depreca
-ted; bug fixes for oddly-formatted DWARF
-- libdwfl: bug fixes in offline archive support, symbol table handling;
- apply partial relocations for dwfl_module_address_section on
-ET_REL
-- libebl: powerpc backend support for Altivec registers
-
-* Mon Oct 15 2007 Ulrich Drepper <drepper@redhat.com> 0.130-1
-- readelf: -p option can take an argument like -x for one section,
- or no argument (as before) for all SHF_STRINGS sections;
- new option --archive-index (or -c); improved -n output fo
-r core files, on many machines
-- libelf: new function elf_getdata_rawchunk, replaces gelf_rawchunk;
- new functions gelf_getnote, gelf_getauxv, gelf_update_auxv
-- readelf, elflint: handle SHT_NOTE sections without requiring phdrs
-- elflint: stricter checks on debug sections
-- libdwfl: new functions dwfl_build_id_find_elf, dwfl_build_id_find_debu
-ginfo, dwfl_module_build_id, dwfl_module_report_build_id; suppo
-rt dynamic symbol tables found via phdrs; dwfl_standard_find_de
-buginfo now uses build IDs when available
-- unstrip: new option --list (or -n)
-- libebl: backend improvements for sparc, alpha, powerpc
-
-* Tue Aug 14 2007 Ulrich Drepper <drepper@redhat.com> 0.129-1
-- readelf: new options --hex-dump (or -x), --strings (or -p)
-- addr2line: new option --symbols (or -S)
-
-* Wed Apr 18 2007 Ulrich Drepper <drepper@redhat.com> 0.127-1
-- libdw: new function dwarf_getsrcdirs
-- libdwfl: new functions dwfl_module_addrsym, dwfl_report_begin_add,
- dwfl_module_address_section
-
-* Mon Feb 5 2007 Ulrich Drepper <drepper@redhat.com> 0.126-1
-- new program: ar
-
-* Mon Dec 18 2006 Ulrich Drepper <drepper@redhat.com> 0.125-1
-- elflint: Compare DT_GNU_HASH tests.
-- move archives into -static RPMs
-- libelf, elflint: better support for core file handling
-
-* Tue Oct 10 2006 Ulrich Drepper <drepper@redhat.com> 0.124-1
-- libebl: sparc backend support for return value location
-- libebl, libdwfl: backend register name support extended with more info
-- libelf, libdw: bug fixes for unaligned accesses on machines that care
-- readelf, elflint: trivial bugs fixed
-
-* Mon Aug 14 2006 Roland McGrath <roland@redhat.com> 0.123-1
-- libebl: Backend build fixes, thanks to Stepan Kasal.
-- libebl: ia64 backend support for register names, return value location
-- libdwfl: Handle truncated linux kernel module section names.
-- libdwfl: Look for linux kernel vmlinux files with .debug suffix.
-- elflint: Fix checks to permit --hash-style=gnu format.
-
-* Wed Jul 12 2006 Ulrich Drepper <drepper@redhat.com> 0.122-1
-- libebl: add function to test for relative relocation
-- elflint: fix and extend DT_RELCOUNT/DT_RELACOUNT checks
-- elflint, readelf: add support for DT_GNU_HASHlibelf: add elf_gnu_hash
-- elflint, readelf: add support for 64-bit SysV-style hash tables
-- libdwfl: new functions dwfl_module_getsymtab, dwfl_module_getsym.
-
-* Wed Jun 14 2006 <drepper@redhat.com> 0.121-1
-- libelf: bug fixes for rewriting existing files when using mmap.
-- make all installed headers usable in C++ code.
-- readelf: better output format.
-- elflint: fix tests of dynamic section content.
-- ld: Implement --as-needed, --execstack, PT_GNU_STACK. Many small patc
-hes.
-- libdw, libdwfl: handle files without aranges info.
-
-* Tue Apr 4 2006 Ulrich Drepper <drepper@redhat.com> 0.120-1
-- Bug fixes.
-- dwarf.h updated for DWARF 3.0 final specification.
-- libdwfl: New function dwfl_version.
-- The license is now GPL for most files. The libelf, libebl, libdw,and
-libdwfl libraries have additional exceptions. Add reference toOIN.
-
-* Thu Jan 12 2006 Roland McGrath <roland@redhat.com> 0.119-1
-- elflint: more tests.
-- libdwfl: New function dwfl_module_register_names.
-- libebl: New backend hook for register names.
-
-* Tue Dec 6 2005 Ulrich Drepper <drepper@redhat.com> 0.118-1
-- elflint: more tests.
-- libdwfl: New function dwfl_module_register_names.
-- libebl: New backend hook for register names.
-
-* Thu Nov 17 2005 Ulrich Drepper <drepper@redhat.com> 0.117-1
-- libdwfl: New function dwfl_module_return_value_location.
-- libebl: Backend improvements for several CPUs.
-
-* Mon Oct 31 2005 Ulrich Drepper <drepper@redhat.com> 0.116-1
-- libdw: New functions dwarf_ranges, dwarf_entrypc, dwarf_diecu, d
-warf_entry_breakpoints. Removed Dwarf_Func type and functions d
-warf_func_name, dwarf_func_lowpc, dwarf_func_highpc, dwarf_func_
-entrypc, dwarf_func_die; dwarf_getfuncs callback now uses Dwarf_
-Die, and dwarf_func_file, dwarf_func_line, dwarf_func_col replac
-ed by dwarf_decl_file, dwarf_decl_line, dwarf_decl_column; dwarf
-_func_inline, dwarf_func_inline_instances now take Dwarf_Die. Ty
-pe Dwarf_Loc renamed to Dwarf_Op; dwarf_getloclist, dwarf_addrlo
-clists renamed dwarf_getlocation, dwarf_getlocation_addr.
-
-* Fri Sep 2 2005 Ulrich Drepper <drepper@redhat.com> 0.115-1
-- libelf: speed-ups of non-mmap reading.
-- strings: New program.
-- Implement --enable-gcov option for configure.
-- libdw: New function dwarf_getscopes_die.
-
-* Wed Aug 24 2005 Ulrich Drepper <drepper@redhat.com> 0.114-1
-- libelf: new function elf_getaroff
-- libdw: Added dwarf_func_die, dwarf_func_inline, dwarf_func_inline_inst
-ances.
-- libdwfl: New functions dwfl_report_offline, dwfl_offline_section_addre
-ss, dwfl_linux_kernel_report_offline.
-- ranlib: new program
-
-* Mon Aug 15 2005 Ulrich Drepper <drepper@redhat.com> 0.114-1
-- libelf: new function elf_getaroff
-- ranlib: new program
-
-* Wed Aug 10 2005 Ulrich Drepper <@redhat.com> 0.113-1
-- elflint: relax a bit. Allow version definitions for defined symbols ag
-ainstDSO versions also for symbols in nobits sections. Allow .rodata
-sectionto have STRINGS and MERGE flag set.
-- strip: add some more compatibility with binutils.
-
-* Sat Aug 6 2005 Ulrich Drepper <@redhat.com> 0.113-1
-- elflint: relax a bit. Allow version definitions for defined symbols ag
-ainstDSO versions also for symbols in nobits sections. Allow .rodata
-sectionto have STRINGS and MERGE flag set.
-
-* Sat Aug 6 2005 Ulrich Drepper <@redhat.com> 0.113-1
-- elflint: relax a bit. Allow version definitions for defined symbols ag
-ainstDSO versions also for symbols in nobits sections.
-
-* Fri Aug 5 2005 Ulrich Drepper <@redhat.com> 0.112-1
-- elfcmp: some more relaxation.
-- elflint: many more tests, especially regarding to symbol versioning.
-- libelf: Add elfXX_offscn and gelf_offscn.
-- libasm: asm_begin interface changes.
-- libebl: Add three new interfaces to directly access machine, class, an
-ddata encoding information.
-- objdump: New program. Just the beginning.
-
-* Thu Jul 28 2005 Ulrich Drepper <@redhat.com> 0.111-1
-- libdw: now contains all of libdwfl. The latter is not installed anymore.
-- elfcmp: little usability tweak, name and index of differing section is
- printed.
-
-* Sun Jul 24 2005 Ulrich Drepper <@redhat.com> 0.110-1
-- libelf: fix a numbe rof problems with elf_update
-- elfcmp: fix a few bugs. Compare gaps.
-- Fix a few PLT problems and mudflap build issues.
-- libebl: Don't expose Ebl structure definition in libebl.h. It's now p
-rivate.
-
-* Thu Jul 21 2005 Ulrich Drepper <@redhat.com> 0.109-1
-- libebl: Check for matching modules.
-- elflint: Check that copy relocations only happen for OBJECT or NOTYPE
-symbols.
-- elfcmp: New program.
-- libdwfl: New library.
-
-* Mon May 9 2005 Ulrich Drepper <@redhat.com> 0.108-1
-- strip: fix bug introduced in last change
-- libdw: records returned by dwarf_getsrclines are now sorted by address
-
-* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.108-1
-- strip: fix bug introduced in last change
-
-* Sun May 8 2005 Ulrich Drepper <@redhat.com> 0.107-1
-- readelf: improve DWARF output format
-- strip: support Linux kernel modules
-
-* Fri Apr 29 2005 Ulrich Drepper <drepper@redhat.com> 0.107-1
-- readelf: improve DWARF output format
-
-* Mon Apr 4 2005 Ulrich Drepper <drepper@redhat.com> 0.106-1
-- libdw: Updated dwarf.h from DWARF3 speclibdw: add new funtions dwarf_f
-unc_entrypc, dwarf_func_file, dwarf_func_line,dwarf_func_col, dwarf_ge
-tsrc_file
-
-* Fri Apr 1 2005 Ulrich Drepper <drepper@redhat.com> 0.105-1
-- addr2line: New program
-- libdw: add new functions: dwarf_addrdie, dwarf_macro_*, dwarf_getfuncs
-,dwarf_func_*.
-- findtextrel: use dwarf_addrdie
-
-* Mon Mar 28 2005 Ulrich Drepper <drepper@redhat.com> 0.104-1
-- findtextrel: New program.
-
-* Mon Mar 21 2005 Ulrich Drepper <drepper@redhat.com> 0.103-1
-- libdw: Fix using libdw.h with gcc < 4 and C++ code. Compiler bug.
-
-* Tue Feb 22 2005 Ulrich Drepper <drepper@redhat.com> 0.102-1
-- More Makefile and spec file cleanups.
-
-* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.94-1
-- upgrade to 0.94
-
-* Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 0.93-1
-- upgrade to 0.93
-
-* Thu Jan 8 2004 Jakub Jelinek <jakub@redhat.com> 0.92-1
-- full version
-- macroized spec file for GPL or OSL builds
-- include only libelf under GPL plus wrapper scripts
-
-* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-2
-- macroized spec file for GPL or OSL builds
-
-* Wed Jan 7 2004 Ulrich Drepper <drepper@redhat.com>
-- split elfutils-devel into two packages.
-
-* Wed Jan 7 2004 Jakub Jelinek <jakub@redhat.com> 0.91-1
-- include only libelf under GPL plus wrapper scripts
-
-* Tue Dec 23 2003 Jeff Johnson <jbj@redhat.com> 0.89-3
-- readelf, not readline, in %%description (#111214).
-
-* Fri Sep 26 2003 Bill Nottingham <notting@redhat.com> 0.89-1
-- update to 0.89 (fix eu-strip)
-
-* Tue Sep 23 2003 Jakub Jelinek <jakub@redhat.com> 0.86-3
-- update to 0.86 (fix eu-strip on s390x/alpha)
-- libebl is an archive now; remove references to DSO
-
-* Mon Jul 14 2003 Jeff Johnson <jbj@redhat.com> 0.84-3
-- upgrade to 0.84 (readelf/elflint improvements, rawhide bugs fixed).
-
-* Fri Jul 11 2003 Jeff Johnson <jbj@redhat.com> 0.83-3
-- upgrade to 0.83 (fix invalid ELf handle on *.so strip, more).
-
-* Wed Jul 9 2003 Jeff Johnson <jbj@redhat.com> 0.82-3
-- upgrade to 0.82 (strip tests fixed on big-endian).
-
-* Tue Jul 8 2003 Jeff Johnson <jbj@redhat.com> 0.81-3
-- upgrade to 0.81 (strip excludes unused symtable entries, test borked).
-
-* Thu Jun 26 2003 Jeff Johnson <jbj@redhat.com> 0.80-3
-- upgrade to 0.80 (debugedit changes for kernel in progress).
-
-* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
-- rebuilt
-
-* Wed May 21 2003 Jeff Johnson <jbj@redhat.com> 0.79-2
-- upgrade to 0.79 (correct formats for size_t, more of libdw "works").
-
-* Mon May 19 2003 Jeff Johnson <jbj@redhat.com> 0.78-2
-- upgrade to 0.78 (libdwarf bugfix, libdw additions).
-
-* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
-- debuginfo rebuild
-
-* Thu Feb 20 2003 Jeff Johnson <jbj@redhat.com> 0.76-2
-- use the correct way of identifying the section via the sh_info link.
-
-* Sat Feb 15 2003 Jakub Jelinek <jakub@redhat.com> 0.75-2
-- update to 0.75 (eu-strip -g fix)
-
-* Tue Feb 11 2003 Jakub Jelinek <jakub@redhat.com> 0.74-2
-- update to 0.74 (fix for writing with some non-dirty sections)
-
-* Thu Feb 6 2003 Jeff Johnson <jbj@redhat.com> 0.73-3
-- another -0.73 update (with sparc fixes).
-- do "make check" in %%check, not %%install, section.
-
-* Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 0.73-2
-- update to 0.73 (with s390 fixes).
-
-* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
-- rebuilt
-
-* Wed Jan 22 2003 Jakub Jelinek <jakub@redhat.com> 0.72-4
-- fix arguments to gelf_getsymshndx and elf_getshstrndx
-- fix other warnings
-- reenable checks on s390x
-
-* Sat Jan 11 2003 Karsten Hopp <karsten@redhat.de> 0.72-3
-- temporarily disable checks on s390x, until someone has
- time to look at it
-
-* Thu Dec 12 2002 Jakub Jelinek <jakub@redhat.com> 0.72-2
-- update to 0.72
-
-* Wed Dec 11 2002 Jakub Jelinek <jakub@redhat.com> 0.71-2
-- update to 0.71
-
-* Wed Dec 11 2002 Jeff Johnson <jbj@redhat.com> 0.69-4
-- update to 0.69.
-- add "make check" and segfault avoidance patch.
-- elfutils-libelf needs to run ldconfig.
-
-* Tue Dec 10 2002 Jeff Johnson <jbj@redhat.com> 0.68-2
-- update to 0.68.
-
-* Fri Dec 6 2002 Jeff Johnson <jbj@redhat.com> 0.67-2
-- update to 0.67.
-
-* Tue Dec 3 2002 Jeff Johnson <jbj@redhat.com> 0.65-2
-- update to 0.65.
-
-* Mon Dec 2 2002 Jeff Johnson <jbj@redhat.com> 0.64-2
-- update to 0.64.
-
-* Sun Dec 1 2002 Ulrich Drepper <drepper@redhat.com> 0.64
-- split packages further into elfutils-libelf
-
-* Sat Nov 30 2002 Jeff Johnson <jbj@redhat.com> 0.63-2
-- update to 0.63.
-
-* Fri Nov 29 2002 Ulrich Drepper <drepper@redhat.com> 0.62
-- Adjust for dropping libtool
-
-* Sun Nov 24 2002 Jeff Johnson <jbj@redhat.com> 0.59-2
-- update to 0.59
-
-* Thu Nov 14 2002 Jeff Johnson <jbj@redhat.com> 0.56-2
-- update to 0.56
-
-* Thu Nov 7 2002 Jeff Johnson <jbj@redhat.com> 0.54-2
-- update to 0.54
-
-* Sun Oct 27 2002 Jeff Johnson <jbj@redhat.com> 0.53-2
-- update to 0.53
-- drop x86_64 hack, ICE fixed in gcc-3.2-11.
-
-* Sat Oct 26 2002 Jeff Johnson <jbj@redhat.com> 0.52-3
-- get beehive to punch a rhpkg generated package.
-
-* Wed Oct 23 2002 Jeff Johnson <jbj@redhat.com> 0.52-2
-- build in 8.0.1.
-- x86_64: avoid gcc-3.2 ICE on x86_64 for now.
-
-* Tue Oct 22 2002 Ulrich Drepper <drepper@redhat.com> 0.52
-- Add libelf-devel to conflicts for elfutils-devel
-
-* Mon Oct 21 2002 Ulrich Drepper <drepper@redhat.com> 0.50
-- Split into runtime and devel package
-
-* Fri Oct 18 2002 Ulrich Drepper <drepper@redhat.com> 0.49
-- integrate into official sources
-
-* Wed Oct 16 2002 Jeff Johnson <jbj@redhat.com> 0.46-1
-- Swaddle.
diff --git a/src/src/findtextrel.c b/src/findtextrel.c
index 264a06bd..264a06bd 100644
--- a/src/src/findtextrel.c
+++ b/src/findtextrel.c
diff --git a/src/src/i386_ld.c b/src/i386_ld.c
index d196177a..d196177a 100644
--- a/src/src/i386_ld.c
+++ b/src/i386_ld.c
diff --git a/src/src/ld.c b/src/ld.c
index 73e4f04f..73e4f04f 100644
--- a/src/src/ld.c
+++ b/src/ld.c
diff --git a/src/src/ld.h b/src/ld.h
index 29f4031b..29f4031b 100644
--- a/src/src/ld.h
+++ b/src/ld.h
diff --git a/src/src/ldgeneric.c b/src/ldgeneric.c
index 1b5d0f9b..1b5d0f9b 100644
--- a/src/src/ldgeneric.c
+++ b/src/ldgeneric.c
diff --git a/src/src/ldlex.c b/src/ldlex.c
index 03870df0..03870df0 100644
--- a/src/src/ldlex.c
+++ b/src/ldlex.c
diff --git a/src/src/ldlex.l b/src/ldlex.l
index bfc8bbe5..bfc8bbe5 100644
--- a/src/src/ldlex.l
+++ b/src/ldlex.l
diff --git a/src/src/ldscript.c b/src/ldscript.c
index 690d805e..690d805e 100644
--- a/src/src/ldscript.c
+++ b/src/ldscript.c
diff --git a/src/src/ldscript.h b/src/ldscript.h
index 6442d673..6442d673 100644
--- a/src/src/ldscript.h
+++ b/src/ldscript.h
diff --git a/src/src/ldscript.y b/src/ldscript.y
index ec58e21a..ec58e21a 100644
--- a/src/src/ldscript.y
+++ b/src/ldscript.y
diff --git a/src/lib/ChangeLog b/src/lib/ChangeLog
deleted file mode 100644
index 44152131..00000000
--- a/src/lib/ChangeLog
+++ /dev/null
@@ -1,156 +0,0 @@
-2014-01-17 Lei Zhang <thestig@google.com>
-
- * crc32_file.c: Include config.h.
-
-2013-12-12 Josh Stone <jistone@redhat.com>
-
- * dynamicsizehash.c (lookup): Add a shortcut around division.
-
-2013-04-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * eu-config.h (COMPAT_VERSION_NEWPROTO): New. Twice.
-
-2013-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * system.h (LE64, BE64): Move here the definitions from
- libdwfl/link_map.c.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2012-10-09 Adam Markey <adam@etinternational.com>
-
- * system.h: Changed pwrite_retry, write_retry, and pread_retry to
- handle case where not all data was read/written.
-
-2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * system.h (eu_static_assert): New macro.
-
-2012-01-21 Ulrich Drepper <drepper@gmail.com>
-
- * Makefile.am (libeu_a_SOURCES): Add color.c.
- * system.h: Declare color_argp. Define color_enum. Declare
- color_* variables.
- * color.c: New file.
-
-2011-10-02 Ulrich Drepper <drepper@gmail.com>
-
- * system.h: Declare __cxa_demangle.
-
-2011-07-09 Roland McGrath <roland@hack.frob.com>
-
- * sha1.c (be64_copy): New function.
- (sha1_finish_ctx): Use it.
- * md5.c (le64_copy): New function.
- (md5_finish_ctx): Use it.
- * system.h (LE32, BE32): New macros, using <endian.h> and <byteswap.h>.
- * md5.c (SWAP): Use LE32.
- * sha1.c (SWAP): Use BE32.
-
-2010-06-16 Roland McGrath <roland@redhat.com>
-
- * dynamicsizehash.h (HASHTYPE): New macro.
- (struct): Use size_t for table sizes.
- * dynamicsizehash.c: Likewise. Use HASHTYPE for hash values.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
-2009-08-09 Roland McGrath <roland@redhat.com>
-
- * eu-config.h (OLD_VERSION, NEW_VERSION, COMPAT_VERSION): New macros.
-
-2009-01-23 Roland McGrath <roland@redhat.com>
-
- * eu-config.h: Add multiple inclusion protection.
-
-2009-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * system.h (ARGP_PROGRAM_VERSION_HOOK_DEF): Define.
- (ARGP_PROGRAM_BUG_ADDRESS_DEF): Define.
-
-2009-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * eu-config.h: Remove tls_key_t, key_create, getspecific, setspecific,
- once_define, and once_execute macros. Use USE_LOCKS instead of
- USE_TLS.
-
-2008-08-25 Roland McGrath <roland@redhat.com>
-
- * eu-config.h [USE_TLS] (RWLOCK_CALL): New macro.
- (rwlock_init, rwlock_fini, rwlock_rdlock, rwlock_wrlock, rwlock_unlock):
- Use it.
-
-2008-08-24 Roland McGrath <roland@redhat.com>
-
- * eu-config.h: New file.
- * Makefile.am (noinst_HEADERS): Add it.
-
-2008-02-01 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (libeu_a_SOURCES): Add sha1.c.
- (noinst_HEADERS): Add sha1.h.
- * sha1.c: New file.
- * sha1.h: New file.
-
-2008-01-31 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (libeu_a_SOURCES): Add md5.c.
- (noinst_HEADERS): Add md5.h.
- * md5.c: New file.
- * md5.h: New file.
-
-2006-04-04 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (libeu_a_SOURCES): We don't need xstrdup in the moment.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * system.h: Define pwrite_retry, write_retry, and pread_retry.
-
-2005-08-06 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (xmalloc_CFLAGS): Define only if !GPROF.
-
-2005-05-03 Roland McGrath <roland@redhat.com>
-
- * crc32_file.c: New file.
- * Makefile.am (libeu_a_SOURCES): Add it.
- * system.h: Declare crc32_file.
-
-2005-04-30 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Use -ffunction-sections for xmalloc.c.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * dynamicsizehash.c (lookup): Mark val parameter as possibly unused.
-
-2005-02-06 Ulrich Drepper <drepper@redhat.com>
-
- * fixedsizehash.h: Mark unused parameters. Correct CLASS and
- const order for fshash_find.
-
- * Makefile.am: Cleanup AM_CFLAGS handling. Add -Wunused -Wextra.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fpic and -fmudflap.
-
-2004-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
-2003-09-22 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Add -fpic.
-
- * Makefile.am (noinst_HEADERS): Add list.h.
- * list.h: New file.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/lib/Makefile b/src/lib/Makefile
deleted file mode 100644
index 3b44ac52..00000000
--- a/src/lib/Makefile
+++ /dev/null
@@ -1,598 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# lib/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) ChangeLog
-subdir = lib
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libeu_a_AR = $(AR) $(ARFLAGS)
-libeu_a_LIBADD =
-am_libeu_a_OBJECTS = xstrdup.$(OBJEXT) xstrndup.$(OBJEXT) \
- xmalloc.$(OBJEXT) next_prime.$(OBJEXT) crc32.$(OBJEXT) \
- crc32_file.$(OBJEXT) md5.$(OBJEXT) sha1.$(OBJEXT) \
- color.$(OBJEXT)
-libeu_a_OBJECTS = $(am_libeu_a_OBJECTS)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libeu_a_SOURCES)
-DIST_SOURCES = $(libeu_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 0.161
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/lib
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/lib
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-noinst_LIBRARIES = libeu.a
-libeu_a_SOURCES = xstrdup.c xstrndup.c xmalloc.c next_prime.c \
- crc32.c crc32_file.c md5.c sha1.c \
- color.c
-
-noinst_HEADERS = fixedsizehash.h system.h dynamicsizehash.h list.h md5.h \
- sha1.h eu-config.h
-
-EXTRA_DIST = dynamicsizehash.c
-xmalloc_CFLAGS = -ffunction-sections
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits lib/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits lib/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libeu.a: $(libeu_a_OBJECTS) $(libeu_a_DEPENDENCIES) $(EXTRA_libeu_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libeu.a
- $(AM_V_AR)$(libeu_a_AR) libeu.a $(libeu_a_OBJECTS) $(libeu_a_LIBADD)
- $(AM_V_at)$(RANLIB) libeu.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/color.Po
-include ./$(DEPDIR)/crc32.Po
-include ./$(DEPDIR)/crc32_file.Po
-include ./$(DEPDIR)/md5.Po
-include ./$(DEPDIR)/next_prime.Po
-include ./$(DEPDIR)/sha1.Po
-include ./$(DEPDIR)/xmalloc.Po
-include ./$(DEPDIR)/xstrdup.Po
-include ./$(DEPDIR)/xstrndup.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(HEADERS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-ps install-ps-am install-strip \
- installcheck installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
deleted file mode 100644
index 97f295eb..00000000
--- a/src/lib/Makefile.am
+++ /dev/null
@@ -1,46 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 1996-2011 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-AM_CFLAGS += -fpic
-AM_CPPFLAGS += -I$(srcdir)/../libelf
-
-noinst_LIBRARIES = libeu.a
-
-libeu_a_SOURCES = xstrdup.c xstrndup.c xmalloc.c next_prime.c \
- crc32.c crc32_file.c md5.c sha1.c \
- color.c
-
-noinst_HEADERS = fixedsizehash.h system.h dynamicsizehash.h list.h md5.h \
- sha1.h eu-config.h
-EXTRA_DIST = dynamicsizehash.c
-
-if !GPROF
-xmalloc_CFLAGS = -ffunction-sections
-endif
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in
deleted file mode 100644
index 8799ddb9..00000000
--- a/src/lib/Makefile.in
+++ /dev/null
@@ -1,598 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) ChangeLog
-subdir = lib
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libeu_a_AR = $(AR) $(ARFLAGS)
-libeu_a_LIBADD =
-am_libeu_a_OBJECTS = xstrdup.$(OBJEXT) xstrndup.$(OBJEXT) \
- xmalloc.$(OBJEXT) next_prime.$(OBJEXT) crc32.$(OBJEXT) \
- crc32_file.$(OBJEXT) md5.$(OBJEXT) sha1.$(OBJEXT) \
- color.$(OBJEXT)
-libeu_a_OBJECTS = $(am_libeu_a_OBJECTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libeu_a_SOURCES)
-DIST_SOURCES = $(libeu_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-noinst_LIBRARIES = libeu.a
-libeu_a_SOURCES = xstrdup.c xstrndup.c xmalloc.c next_prime.c \
- crc32.c crc32_file.c md5.c sha1.c \
- color.c
-
-noinst_HEADERS = fixedsizehash.h system.h dynamicsizehash.h list.h md5.h \
- sha1.h eu-config.h
-
-EXTRA_DIST = dynamicsizehash.c
-@GPROF_FALSE@xmalloc_CFLAGS = -ffunction-sections
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits lib/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits lib/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libeu.a: $(libeu_a_OBJECTS) $(libeu_a_DEPENDENCIES) $(EXTRA_libeu_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libeu.a
- $(AM_V_AR)$(libeu_a_AR) libeu.a $(libeu_a_OBJECTS) $(libeu_a_LIBADD)
- $(AM_V_at)$(RANLIB) libeu.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32_file.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/next_prime.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sha1.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmalloc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrdup.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrndup.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(HEADERS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-ps install-ps-am install-strip \
- installcheck installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/lib/color.c b/src/lib/color.c
deleted file mode 100644
index d1309ed7..00000000
--- a/src/lib/color.c
+++ /dev/null
@@ -1,230 +0,0 @@
-/* Handling of color output.
- Copyright (C) 2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2011.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <argp.h>
-#include <error.h>
-#include <libintl.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include "system.h"
-
-
-/* Prototype for option handler. */
-static error_t parse_opt (int key, char *arg, struct argp_state *state);
-
-/* Option values. */
-#define OPT_COLOR 0x100100
-
-/* Definitions of arguments for argp functions. */
-static const struct argp_option options[] =
-{
- { "color", OPT_COLOR, "WHEN", OPTION_ARG_OPTIONAL,
- N_("colorize the output. WHEN defaults to 'always' or can be 'auto' or 'never'"), 0 },
-
- { NULL, 0, NULL, 0, NULL, 0 }
-};
-
-/* Parser data structure. */
-const struct argp color_argp =
- {
- options, parse_opt, NULL, NULL, NULL, NULL, NULL
- };
-
-/* Coloring mode. */
-enum color_enum color_mode;
-
-/* Colors to use for the various components. */
-char *color_address = "";
-char *color_bytes = "";
-char *color_mnemonic = "";
-char *color_operand = NULL;
-char *color_operand1 = "";
-char *color_operand2 = "";
-char *color_operand3 = "";
-char *color_label = "";
-char *color_undef = "";
-char *color_undef_tls = "";
-char *color_undef_weak = "";
-char *color_symbol = "";
-char *color_tls = "";
-char *color_weak = "";
-
-const char color_off[] = "\e[0m";
-
-
-/* Handle program arguments. */
-static error_t
-parse_opt (int key, char *arg,
- struct argp_state *state __attribute__ ((unused)))
-{
- switch (key)
- {
- case OPT_COLOR:
- if (arg == NULL)
- color_mode = color_always;
- else
- {
- static const struct
- {
- const char str[7];
- enum color_enum mode;
- } values[] =
- {
- { "always", color_always },
- { "yes", color_always },
- { "force", color_always },
- { "never", color_never },
- { "no", color_never },
- { "none", color_never },
- { "auto", color_auto },
- { "tty", color_auto },
- { "if-tty", color_auto }
- };
- const int nvalues = sizeof (values) / sizeof (values[0]);
- int i;
- for (i = 0; i < nvalues; ++i)
- if (strcmp (arg, values[i].str) == 0)
- {
- color_mode = values[i].mode;
- if (color_mode == color_auto)
- color_mode
- = isatty (STDOUT_FILENO) ? color_always : color_never;
- break;
- }
- if (i == nvalues)
- {
- error (0, 0, dgettext ("elfutils", "\
-%s: invalid argument '%s' for '--color'\n\
-valid arguments are:\n\
- - 'always', 'yes', 'force'\n\
- - 'never', 'no', 'none'\n\
- - 'auto', 'tty', 'if-tty'\n"),
- program_invocation_short_name, arg);
- argp_help (&color_argp, stderr, ARGP_HELP_SEE,
- program_invocation_short_name);
- exit (EXIT_FAILURE);
- }
- }
-
- if (color_mode == color_always)
- {
- const char *env = getenv ("ELFUTILS_COLORS");
- if (env != NULL)
- {
- do
- {
- const char *start = env;
- while (*env != '=' && *env != '\0')
- ++env;
- if (*env == '=' && env != start)
- {
- size_t name_len = env - start;
- const char *val = ++env;
- env = strchrnul (env, ':');
- if (val != env)
- {
- static const struct
- {
- unsigned char len;
- const char name[sizeof (char *) - 1];
- char **varp;
- } known[] =
- {
-#define E(name, var) { sizeof (#name) - 1, #name, &color_##var }
- E (a, address),
- E (b, bytes),
- E (m, mnemonic),
- E (o, operand),
- E (o1, operand1),
- E (o1, operand2),
- E (o1, operand3),
- E (l, label),
- E (u, undef),
- E (ut, undef_tls),
- E (uw, undef_weak),
- E (sy, symbol),
- E (st, tls),
- E (sw, weak),
- };
- const size_t nknown = (sizeof (known)
- / sizeof (known[0]));
-
- for (size_t i = 0; i < nknown; ++i)
- if (name_len == known[i].len
- && memcmp (start, known[i].name, name_len) == 0)
- {
- if (asprintf (known[i].varp, "\e[%.*sm",
- (int) (env - val), val) < 0)
- error (EXIT_FAILURE, errno,
- gettext ("cannot allocate memory"));
- break;
- }
- }
- if (*env == ':')
- ++env;
- }
- }
- while (*env != '\0');
-
- if (color_operand != NULL)
- {
- if (color_operand1[0] == '\0')
- color_operand1 = color_operand;
- if (color_operand2[0] == '\0')
- color_operand2 = color_operand;
- if (color_operand3[0] == '\0')
- color_operand3 = color_operand;
- }
- }
-#if 0
- else
- {
- // XXX Just for testing.
- color_address = xstrdup ("\e[38;5;166;1m");
- color_bytes = xstrdup ("\e[38;5;141m");
- color_mnemonic = xstrdup ("\e[38;5;202;1m");
- color_operand1 = xstrdup ("\e[38;5;220m");
- color_operand2 = xstrdup ("\e[38;5;48m");
- color_operand3 = xstrdup ("\e[38;5;112m");
- color_label = xstrdup ("\e[38;5;21m");
- }
-#endif
- }
- break;
-
- default:
- return ARGP_ERR_UNKNOWN;
- }
- return 0;
-}
diff --git a/src/lib/crc32.c b/src/lib/crc32.c
deleted file mode 100644
index 1a76b1b3..00000000
--- a/src/lib/crc32.c
+++ /dev/null
@@ -1,98 +0,0 @@
-/* Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <stdint.h>
-#include "system.h"
-
-
-/* Table computed with Mark Adler's makecrc.c utility. */
-static const uint32_t crc32_table[256] =
-{
- 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419,
- 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4,
- 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07,
- 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de,
- 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856,
- 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
- 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4,
- 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b,
- 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3,
- 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a,
- 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599,
- 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
- 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190,
- 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f,
- 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e,
- 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01,
- 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed,
- 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,
- 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3,
- 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2,
- 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a,
- 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5,
- 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010,
- 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
- 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17,
- 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6,
- 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615,
- 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8,
- 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344,
- 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,
- 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a,
- 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5,
- 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1,
- 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c,
- 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef,
- 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
- 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe,
- 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31,
- 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c,
- 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713,
- 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b,
- 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,
- 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1,
- 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c,
- 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278,
- 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7,
- 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66,
- 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
- 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605,
- 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8,
- 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b,
- 0x2d02ef8d
-};
-
-uint32_t
-crc32 (uint32_t crc, unsigned char *buf, size_t len)
-{
- unsigned char *end;
-
- crc = ~crc;
- for (end = buf + len; buf < end; ++buf)
- crc = crc32_table[(crc ^ *buf) & 0xff] ^ (crc >> 8);
- return ~crc;
-}
diff --git a/src/lib/crc32_file.c b/src/lib/crc32_file.c
deleted file mode 100644
index c0b18e91..00000000
--- a/src/lib/crc32_file.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/* Compute CRC32 checksum of file contents.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "system.h"
-#include <errno.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/mman.h>
-
-int
-crc32_file (int fd, uint32_t *resp)
-{
- unsigned char buffer[1024 * 8];
- uint32_t crc = 0;
- off_t off = 0;
- ssize_t count;
-
- struct stat st;
- if (fstat (fd, &st) == 0)
- {
- /* Try mapping in the file data. */
- size_t mapsize = st.st_size;
- void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0);
- if (mapped == MAP_FAILED && errno == ENOMEM)
- {
- const size_t pagesize = sysconf (_SC_PAGE_SIZE);
- mapsize = ((mapsize / 2) + pagesize - 1) & -pagesize;
- while (mapsize >= pagesize
- && (mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE,
- fd, 0)) == MAP_FAILED && errno == ENOMEM)
- mapsize /= 2;
- }
- if (mapped != MAP_FAILED)
- {
- do
- {
- if (st.st_size <= (off_t) mapsize)
- {
- *resp = crc32 (crc, mapped, st.st_size);
- munmap (mapped, mapsize);
- return 0;
- }
- crc = crc32 (crc, mapped, mapsize);
- off += mapsize;
- st.st_size -= mapsize;
- } while (mmap (mapped, mapsize, PROT_READ, MAP_FIXED|MAP_PRIVATE,
- fd, off) == mapped);
- munmap (mapped, mapsize);
- }
- }
-
- while ((count = TEMP_FAILURE_RETRY (pread (fd, buffer, sizeof buffer,
- off))) > 0)
- {
- off += count;
- crc = crc32 (crc, buffer, count);
- }
-
- *resp = crc;
-
- return count == 0 ? 0 : -1;
-}
diff --git a/src/lib/dynamicsizehash.c b/src/lib/dynamicsizehash.c
deleted file mode 100644
index 1fdff1b0..00000000
--- a/src/lib/dynamicsizehash.c
+++ /dev/null
@@ -1,332 +0,0 @@
-/* Copyright (C) 2000-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <assert.h>
-#include <stdlib.h>
-#include <system.h>
-
-/* Before including this file the following macros must be defined:
-
- NAME name of the hash table structure.
- TYPE data type of the hash table entries
- COMPARE comparison function taking two pointers to TYPE objects
-
- The following macros if present select features:
-
- ITERATE iterating over the table entries is possible
- REVERSE iterate in reverse order of insert
- */
-
-
-static size_t
-lookup (htab, hval, val)
- NAME *htab;
- HASHTYPE hval;
- TYPE val __attribute__ ((unused));
-{
- /* First hash function: simply take the modul but prevent zero. Small values
- can skip the division, which helps performance when this is common. */
- size_t idx = 1 + (hval < htab->size ? hval : hval % htab->size);
-
- if (htab->table[idx].hashval != 0)
- {
- HASHTYPE hash;
-
- if (htab->table[idx].hashval == hval
- && COMPARE (htab->table[idx].data, val) == 0)
- return idx;
-
- /* Second hash function as suggested in [Knuth]. */
- hash = 1 + hval % (htab->size - 2);
-
- do
- {
- if (idx <= hash)
- idx = htab->size + idx - hash;
- else
- idx -= hash;
-
- /* If entry is found use it. */
- if (htab->table[idx].hashval == hval
- && COMPARE (htab->table[idx].data, val) == 0)
- return idx;
- }
- while (htab->table[idx].hashval);
- }
- return idx;
-}
-
-
-static void
-insert_entry_2 (NAME *htab, HASHTYPE hval, size_t idx, TYPE data)
-{
-#ifdef ITERATE
- if (htab->table[idx].hashval == 0)
- {
-# ifdef REVERSE
- htab->table[idx].next = htab->first;
- htab->first = &htab->table[idx];
-# else
- /* Add the new value to the list. */
- if (htab->first == NULL)
- htab->first = htab->table[idx].next = &htab->table[idx];
- else
- {
- htab->table[idx].next = htab->first->next;
- htab->first = htab->first->next = &htab->table[idx];
- }
-# endif
- }
-#endif
-
- htab->table[idx].hashval = hval;
- htab->table[idx].data = data;
-
- ++htab->filled;
- if (100 * htab->filled > 90 * htab->size)
- {
- /* Table is filled more than 90%. Resize the table. */
-#ifdef ITERATE
- __typeof__ (htab->first) first;
-# ifndef REVERSE
- __typeof__ (htab->first) runp;
-# endif
-#else
- size_t old_size = htab->size;
-#endif
-#define _TABLE(name) \
- name##_ent *table = htab->table
-#define TABLE(name) _TABLE (name)
- TABLE(NAME);
-
- htab->size = next_prime (htab->size * 2);
- htab->filled = 0;
-#ifdef ITERATE
- first = htab->first;
- htab->first = NULL;
-#endif
- htab->table = calloc ((1 + htab->size), sizeof (htab->table[0]));
- if (htab->table == NULL)
- {
- /* We cannot enlarge the table. Live with what we got. This
- might lead to an infinite loop at some point, though. */
- htab->table = table;
- return;
- }
-
- /* Add the old entries to the new table. When iteration is
- supported we maintain the order. */
-#ifdef ITERATE
-# ifdef REVERSE
- while (first != NULL)
- {
- insert_entry_2 (htab, first->hashval,
- lookup (htab, first->hashval, first->data),
- first->data);
-
- first = first->next;
- }
-# else
- assert (first != NULL);
- runp = first = first->next;
- do
- insert_entry_2 (htab, runp->hashval,
- lookup (htab, runp->hashval, runp->data), runp->data);
- while ((runp = runp->next) != first);
-# endif
-#else
- for (idx = 1; idx <= old_size; ++idx)
- if (table[idx].hashval != 0)
- insert_entry_2 (htab, table[idx].hashval,
- lookup (htab, table[idx].hashval, table[idx].data),
- table[idx].data);
-#endif
-
- free (table);
- }
-}
-
-
-int
-#define INIT(name) _INIT (name)
-#define _INIT(name) \
- name##_init
-INIT(NAME) (htab, init_size)
- NAME *htab;
- size_t init_size;
-{
- /* We need the size to be a prime. */
- init_size = next_prime (init_size);
-
- /* Initialize the data structure. */
- htab->size = init_size;
- htab->filled = 0;
-#ifdef ITERATE
- htab->first = NULL;
-#endif
- htab->table = (void *) calloc ((init_size + 1), sizeof (htab->table[0]));
- if (htab->table == NULL)
- return -1;
-
- return 0;
-}
-
-
-int
-#define FREE(name) _FREE (name)
-#define _FREE(name) \
- name##_free
-FREE(NAME) (htab)
- NAME *htab;
-{
- free (htab->table);
- return 0;
-}
-
-
-int
-#define INSERT(name) _INSERT (name)
-#define _INSERT(name) \
- name##_insert
-INSERT(NAME) (htab, hval, data)
- NAME *htab;
- HASHTYPE hval;
- TYPE data;
-{
- size_t idx;
-
- /* Make the hash value nonzero. */
- hval = hval ?: 1;
-
- idx = lookup (htab, hval, data);
-
- if (htab->table[idx].hashval != 0)
- /* We don't want to overwrite the old value. */
- return -1;
-
- /* An empty bucket has been found. */
- insert_entry_2 (htab, hval, idx, data);
- return 0;
-}
-
-
-#ifdef OVERWRITE
-int
-#define INSERT(name) _INSERT (name)
-#define _INSERT(name) \
- name##_overwrite
-INSERT(NAME) (htab, hval, data)
- NAME *htab;
- HASHTYPE hval;
- TYPE data;
-{
- size_t idx;
-
- /* Make the hash value nonzero. */
- hval = hval ?: 1;
-
- idx = lookup (htab, hval, data);
-
- /* The correct bucket has been found. */
- insert_entry_2 (htab, hval, idx, data);
- return 0;
-}
-#endif
-
-
-TYPE
-#define FIND(name) _FIND (name)
-#define _FIND(name) \
- name##_find
-FIND(NAME) (htab, hval, val)
- NAME *htab;
- HASHTYPE hval;
- TYPE val;
-{
- size_t idx;
-
- /* Make the hash value nonzero. */
- hval = hval ?: 1;
-
- idx = lookup (htab, hval, val);
-
- if (htab->table[idx].hashval == 0)
- return NULL;
-
- return htab->table[idx].data;
-}
-
-
-#ifdef ITERATE
-# define ITERATEFCT(name) _ITERATEFCT (name)
-# define _ITERATEFCT(name) \
- name##_iterate
-TYPE
-ITERATEFCT(NAME) (htab, ptr)
- NAME *htab;
- void **ptr;
-{
- void *p = *ptr;
-
-# define TYPENAME(name) _TYPENAME (name)
-# define _TYPENAME(name) name##_ent
-
-# ifdef REVERSE
- if (p == NULL)
- p = htab->first;
- else
- p = ((TYPENAME(NAME) *) p)->next;
-
- if (p == NULL)
- {
- *ptr = NULL;
- return NULL;
- }
-# else
- if (p == NULL)
- {
- if (htab->first == NULL)
- return NULL;
- p = htab->first->next;
- }
- else
- {
- if (p == htab->first)
- return NULL;
-
- p = ((TYPENAME(NAME) *) p)->next;
- }
-# endif
-
- /* Prepare the next element. If possible this will pull the data
- into the cache, for reading. */
- __builtin_prefetch (((TYPENAME(NAME) *) p)->next, 0, 2);
-
- return ((TYPENAME(NAME) *) (*ptr = p))->data;
-}
-#endif
diff --git a/src/lib/dynamicsizehash.h b/src/lib/dynamicsizehash.h
deleted file mode 100644
index ccd41d0f..00000000
--- a/src/lib/dynamicsizehash.h
+++ /dev/null
@@ -1,127 +0,0 @@
-/* Copyright (C) 2000-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <stddef.h>
-
-/* Before including this file the following macros must be defined:
-
- NAME name of the hash table structure.
- TYPE data type of the hash table entries
-
- The following macros if present select features:
-
- ITERATE iterating over the table entries is possible
- HASHTYPE integer type for hash values, default unsigned long int
- */
-
-
-/* Optionally include an entry pointing to the first used entry. */
-#ifdef ITERATE
-# define FIRST(name) name##_ent *first;
-# define NEXT(name) struct name##_ent *next;
-#else
-# define FIRST(name)
-# define NEXT(name)
-#endif
-
-#ifndef HASHTYPE
-# define HASHTYPE unsigned long int
-#endif
-
-
-/* Defined separately. */
-extern size_t next_prime (size_t seed);
-
-
-/* Table entry type. */
-#define _DYNHASHENTTYPE(name) \
- typedef struct name##_ent \
- { \
- HASHTYPE hashval; \
- TYPE data; \
- NEXT (name) \
- } name##_ent
-#define DYNHASHENTTYPE(name) _DYNHASHENTTYPE (name)
-DYNHASHENTTYPE (NAME);
-
-
-/* Type of the dynamic hash table data structure. */
-#define _DYNHASHTYPE(name) \
-typedef struct \
-{ \
- size_t size; \
- size_t filled; \
- name##_ent *table; \
- FIRST (name) \
-} name
-#define DYNHASHTYPE(name) _DYNHASHTYPE (name)
-DYNHASHTYPE (NAME);
-
-
-
-#define _FUNCTIONS(name) \
-/* Initialize the hash table. */ \
-extern int name##_init (name *htab, size_t init_size); \
- \
-/* Free resources allocated for hash table. */ \
-extern int name##_free (name *htab); \
- \
-/* Insert new entry. */ \
-extern int name##_insert (name *htab, HASHTYPE hval, TYPE data); \
- \
-/* Insert new entry, possibly overwrite old entry. */ \
-extern int name##_overwrite (name *htab, HASHTYPE hval, TYPE data); \
- \
-/* Find entry in hash table. */ \
-extern TYPE name##_find (name *htab, HASHTYPE hval, TYPE val);
-#define FUNCTIONS(name) _FUNCTIONS (name)
-FUNCTIONS (NAME)
-
-
-#ifdef ITERATE
-# define _XFUNCTIONS(name) \
-/* Get next element in table. */ \
-extern TYPE name##_iterate (name *htab, void **ptr);
-# define XFUNCTIONS(name) _XFUNCTIONS (name)
-XFUNCTIONS (NAME)
-#endif
-
-#ifndef NO_UNDEF
-# undef DYNHASHENTTYPE
-# undef DYNHASHTYPE
-# undef FUNCTIONS
-# undef _FUNCTIONS
-# undef XFUNCTIONS
-# undef _XFUNCTIONS
-# undef NAME
-# undef TYPE
-# undef ITERATE
-# undef COMPARE
-# undef FIRST
-# undef NEXT
-#endif
diff --git a/src/lib/eu-config.h b/src/lib/eu-config.h
deleted file mode 100644
index 3afff26a..00000000
--- a/src/lib/eu-config.h
+++ /dev/null
@@ -1,189 +0,0 @@
-/* Configuration definitions.
- Copyright (C) 2008, 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef EU_CONFIG_H
-#define EU_CONFIG_H 1
-
-#ifdef USE_LOCKS
-# include <pthread.h>
-# include <assert.h>
-# define rwlock_define(class,name) class pthread_rwlock_t name
-# define RWLOCK_CALL(call) \
- ({ int _err = pthread_rwlock_ ## call; assert_perror (_err); })
-# define rwlock_init(lock) RWLOCK_CALL (init (&lock, NULL))
-# define rwlock_fini(lock) RWLOCK_CALL (destroy (&lock))
-# define rwlock_rdlock(lock) RWLOCK_CALL (rdlock (&lock))
-# define rwlock_wrlock(lock) RWLOCK_CALL (wrlock (&lock))
-# define rwlock_unlock(lock) RWLOCK_CALL (unlock (&lock))
-#else
-/* Eventually we will allow multi-threaded applications to use the
- libraries. Therefore we will add the necessary locking although
- the macros used expand to nothing for now. */
-# define rwlock_define(class,name) class int name
-# define rwlock_init(lock) ((void) (lock))
-# define rwlock_fini(lock) ((void) (lock))
-# define rwlock_rdlock(lock) ((void) (lock))
-# define rwlock_wrlock(lock) ((void) (lock))
-# define rwlock_unlock(lock) ((void) (lock))
-#endif /* USE_LOCKS */
-
-/* gettext helper macro. */
-#define N_(Str) Str
-
-/* Compiler-specific definitions. */
-#define strong_alias(name, aliasname) \
- extern __typeof (name) aliasname __attribute__ ((alias (#name)));
-
-#ifdef __i386__
-# define internal_function __attribute__ ((regparm (3), stdcall))
-#else
-# define internal_function /* nothing */
-#endif
-
-#define internal_strong_alias(name, aliasname) \
- extern __typeof (name) aliasname __attribute__ ((alias (#name))) internal_function;
-
-#define attribute_hidden \
- __attribute__ ((visibility ("hidden")))
-
-/* Define ALLOW_UNALIGNED if the architecture allows operations on
- unaligned memory locations. */
-#if defined __i386__ || defined __x86_64__
-# define ALLOW_UNALIGNED 1
-#else
-# define ALLOW_UNALIGNED 0
-#endif
-
-#if DEBUGPRED
-# ifdef __x86_64__
-asm (".section predict_data, \"aw\"; .previous\n"
- ".section predict_line, \"a\"; .previous\n"
- ".section predict_file, \"a\"; .previous");
-# ifndef PIC
-# define debugpred__(e, E) \
- ({ long int _e = !!(e); \
- asm volatile (".pushsection predict_data; ..predictcnt%=: .quad 0; .quad 0\n" \
- ".section predict_line; .quad %c1\n" \
- ".section predict_file; .quad %c2; .popsection\n" \
- "addq $1,..predictcnt%=(,%0,8)" \
- : : "r" (_e == E), "i" (__LINE__), "i" (__FILE__)); \
- __builtin_expect (_e, E); \
- })
-# endif
-# elif defined __i386__
-asm (".section predict_data, \"aw\"; .previous\n"
- ".section predict_line, \"a\"; .previous\n"
- ".section predict_file, \"a\"; .previous");
-# ifndef PIC
-# define debugpred__(e, E) \
- ({ long int _e = !!(e); \
- asm volatile (".pushsection predict_data; ..predictcnt%=: .long 0; .long 0\n" \
- ".section predict_line; .long %c1\n" \
- ".section predict_file; .long %c2; .popsection\n" \
- "incl ..predictcnt%=(,%0,8)" \
- : : "r" (_e == E), "i" (__LINE__), "i" (__FILE__)); \
- __builtin_expect (_e, E); \
- })
-# endif
-# endif
-# ifdef debugpred__
-# define unlikely(e) debugpred__ (e,0)
-# define likely(e) debugpred__ (e,1)
-# endif
-#endif
-#ifndef likely
-# define unlikely(expr) __builtin_expect (!!(expr), 0)
-# define likely(expr) __builtin_expect (!!(expr), 1)
-#endif
-
-#define obstack_calloc(ob, size) \
- ({ size_t _s = (size); memset (obstack_alloc (ob, _s), '\0', _s); })
-#define obstack_strdup(ob, str) \
- ({ const char *_s = (str); obstack_copy0 (ob, _s, strlen (_s)); })
-#define obstack_strndup(ob, str, n) \
- ({ const char *_s = (str); obstack_copy0 (ob, _s, strnlen (_s, n)); })
-
-#if __STDC_VERSION__ >= 199901L
-# define flexarr_size /* empty */
-#else
-# define flexarr_size 0
-#endif
-
-/* Calling conventions. */
-#ifdef __i386__
-# define CALLING_CONVENTION regparm (3), stdcall
-# define AND_CALLING_CONVENTION , regparm (3), stdcall
-#else
-# define CALLING_CONVENTION
-# define AND_CALLING_CONVENTION
-#endif
-
-/* Avoid PLT entries. */
-#ifdef PIC
-# define INTUSE(name) _INTUSE(name)
-# define _INTUSE(name) __##name##_internal
-# define INTDEF(name) _INTDEF(name)
-# define _INTDEF(name) \
- extern __typeof__ (name) __##name##_internal __attribute__ ((alias (#name)));
-# define INTDECL(name) _INTDECL(name)
-# define _INTDECL(name) \
- extern __typeof__ (name) __##name##_internal attribute_hidden;
-#else
-# define INTUSE(name) name
-# define INTDEF(name) /* empty */
-# define INTDECL(name) /* empty */
-#endif
-
-/* This macro is used by the tests conditionalize for standalone building. */
-#define ELFUTILS_HEADER(name) <lib##name.h>
-
-
-#ifdef SHARED
-# define OLD_VERSION(name, version) \
- asm (".globl _compat." #version "." #name "\n" \
- "_compat." #version "." #name " = " #name "\n" \
- ".symver _compat." #version "." #name "," #name "@" #version);
-# define NEW_VERSION(name, version) \
- asm (".symver " #name "," #name "@@@" #version);
-# define COMPAT_VERSION_NEWPROTO(name, version, prefix) \
- asm (".symver _compat." #version "." #name "," #name "@" #version); \
- __typeof (_compat_##prefix##_##name) _compat_##prefix##_##name \
- asm ("_compat." #version "." #name);
-# define COMPAT_VERSION(name, version, prefix) \
- asm (".symver _compat." #version "." #name "," #name "@" #version); \
- __typeof (name) _compat_##prefix##_##name asm ("_compat." #version "." #name);
-#else
-# define OLD_VERSION(name, version) /* Nothing for static linking. */
-# define NEW_VERSION(name, version) /* Nothing for static linking. */
-# define COMPAT_VERSION_NEWPROTO(name, version, prefix) \
- error "should use #ifdef SHARED"
-# define COMPAT_VERSION(name, version, prefix) error "should use #ifdef SHARED"
-#endif
-
-
-#endif /* eu-config.h */
diff --git a/src/lib/fixedsizehash.h b/src/lib/fixedsizehash.h
deleted file mode 100644
index 06ce6a25..00000000
--- a/src/lib/fixedsizehash.h
+++ /dev/null
@@ -1,267 +0,0 @@
-/* Fixed size hash table with internal linking.
- Copyright (C) 2000, 2001, 2002, 2004, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/cdefs.h>
-#include <sys/param.h>
-
-#include <system.h>
-
-#define CONCAT(t1,t2) __CONCAT (t1,t2)
-
-/* Before including this file the following macros must be defined:
-
- TYPE data type of the hash table entries
- HASHFCT name of the hashing function to use
- HASHTYPE type used for the hashing value
- COMPARE comparison function taking two pointers to TYPE objects
- CLASS can be defined to `static' to avoid exporting the functions
- PREFIX prefix to be used for function and data type names
- STORE_POINTER if defined the table stores a pointer and not an element
- of type TYPE
- INSERT_HASH if defined alternate insert function which takes a hash
- value is defined
- NO_FINI_FCT if defined the fini function is not defined
-*/
-
-
-/* Defined separately. */
-extern size_t next_prime (size_t seed);
-
-
-/* Set default values. */
-#ifndef HASHTYPE
-# define HASHTYPE size_t
-#endif
-
-#ifndef CLASS
-# define CLASS
-#endif
-
-#ifndef PREFIX
-# define PREFIX
-#endif
-
-
-/* The data structure. */
-struct CONCAT(PREFIX,fshash)
-{
- size_t nslots;
- struct CONCAT(PREFIX,fshashent)
- {
- HASHTYPE hval;
-#ifdef STORE_POINTER
-# define ENTRYP(el) (el).entry
- TYPE *entry;
-#else
-# define ENTRYP(el) &(el).entry
- TYPE entry;
-#endif
- } table[0];
-};
-
-
-/* Constructor for the hashing table. */
-CLASS struct CONCAT(PREFIX,fshash) *
-CONCAT(PREFIX,fshash_init) (size_t nelems)
-{
- struct CONCAT(PREFIX,fshash) *result;
- /* We choose a size for the hashing table 150% over the number of
- entries. This will guarantee short medium search lengths. */
- const size_t max_size_t = ~((size_t) 0);
-
- if (nelems >= (max_size_t / 3) * 2)
- {
- errno = EINVAL;
- return NULL;
- }
-
- /* Adjust the size to be used for the hashing table. */
- nelems = next_prime (MAX ((nelems * 3) / 2, 10));
-
- /* Allocate the data structure for the result. */
- result = (struct CONCAT(PREFIX,fshash) *)
- xcalloc (sizeof (struct CONCAT(PREFIX,fshash))
- + (nelems + 1) * sizeof (struct CONCAT(PREFIX,fshashent)), 1);
- if (result == NULL)
- return NULL;
-
- result->nslots = nelems;
-
- return result;
-}
-
-
-#ifndef NO_FINI_FCT
-CLASS void
-CONCAT(PREFIX,fshash_fini) (struct CONCAT(PREFIX,fshash) *htab)
-{
- free (htab);
-}
-#endif
-
-
-static struct CONCAT(PREFIX,fshashent) *
-CONCAT(PREFIX,fshash_lookup) (struct CONCAT(PREFIX,fshash) *htab,
- HASHTYPE hval, TYPE *data)
-{
- size_t idx = 1 + hval % htab->nslots;
-
- if (htab->table[idx].hval != 0)
- {
- HASHTYPE hash;
-
- /* See whether this is the same entry. */
- if (htab->table[idx].hval == hval
- && COMPARE (data, ENTRYP (htab->table[idx])) == 0)
- return &htab->table[idx];
-
- /* Second hash function as suggested in [Knuth]. */
- hash = 1 + hval % (htab->nslots - 2);
-
- do
- {
- if (idx <= hash)
- idx = htab->nslots + idx - hash;
- else
- idx -= hash;
-
- if (htab->table[idx].hval == hval
- && COMPARE (data, ENTRYP(htab->table[idx])) == 0)
- return &htab->table[idx];
- }
- while (htab->table[idx].hval != 0);
- }
-
- return &htab->table[idx];
-}
-
-
-CLASS int
-__attribute__ ((unused))
-CONCAT(PREFIX,fshash_insert) (struct CONCAT(PREFIX,fshash) *htab,
- const char *str,
- size_t len __attribute__ ((unused)), TYPE *data)
-{
- HASHTYPE hval = HASHFCT (str, len ?: strlen (str));
- struct CONCAT(PREFIX,fshashent) *slot;
-
- slot = CONCAT(PREFIX,fshash_lookup) (htab, hval, data);
- if (slot->hval != 0)
- /* We don't want to overwrite the old value. */
- return -1;
-
- slot->hval = hval;
-#ifdef STORE_POINTER
- slot->entry = data;
-#else
- slot->entry = *data;
-#endif
-
- return 0;
-}
-
-
-#ifdef INSERT_HASH
-CLASS int
-__attribute__ ((unused))
-CONCAT(PREFIX,fshash_insert_hash) (struct CONCAT(PREFIX,fshash) *htab,
- HASHTYPE hval, TYPE *data)
-{
- struct CONCAT(PREFIX,fshashent) *slot;
-
- slot = CONCAT(PREFIX,fshash_lookup) (htab, hval, data);
- if (slot->hval != 0)
- /* We don't want to overwrite the old value. */
- return -1;
-
- slot->hval = hval;
-#ifdef STORE_POINTER
- slot->entry = data;
-#else
- slot->entry = *data;
-#endif
-
- return 0;
-}
-#endif
-
-
-CLASS int
-__attribute__ ((unused))
-CONCAT(PREFIX,fshash_overwrite) (struct CONCAT(PREFIX,fshash) *htab,
- const char *str,
- size_t len __attribute__ ((unused)),
- TYPE *data)
-{
- HASHTYPE hval = HASHFCT (str, len ?: strlen (str));
- struct CONCAT(PREFIX,fshashent) *slot;
-
- slot = CONCAT(PREFIX,fshash_lookup) (htab, hval, data);
- slot->hval = hval;
-#ifdef STORE_POINTER
- slot->entry = data;
-#else
- slot->entry = *data;
-#endif
-
- return 0;
-}
-
-
-CLASS const TYPE *
-CONCAT(PREFIX,fshash_find) (const struct CONCAT(PREFIX,fshash) *htab,
- const char *str,
- size_t len __attribute__ ((unused)), TYPE *data)
-{
- HASHTYPE hval = HASHFCT (str, len ?: strlen (str));
- struct CONCAT(PREFIX,fshashent) *slot;
-
- slot = CONCAT(PREFIX,fshash_lookup) ((struct CONCAT(PREFIX,fshash) *) htab,
- hval, data);
- if (slot->hval == 0)
- /* Not found. */
- return NULL;
-
- return ENTRYP(*slot);
-}
-
-
-/* Unset the macros we expect. */
-#undef TYPE
-#undef HASHFCT
-#undef HASHTYPE
-#undef COMPARE
-#undef CLASS
-#undef PREFIX
-#undef INSERT_HASH
-#undef STORE_POINTER
-#undef NO_FINI_FCT
diff --git a/src/lib/list.h b/src/lib/list.h
deleted file mode 100644
index fc5c73cd..00000000
--- a/src/lib/list.h
+++ /dev/null
@@ -1,100 +0,0 @@
-/* Copyright (C) 2001, 2002, 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef LIST_H
-#define LIST_H 1
-
-/* Add element to the end of a circular, double-linked list. */
-#define CDBL_LIST_ADD_REAR(first, newp) \
- do { \
- __typeof (newp) _newp = (newp); \
- assert (_newp->next == NULL); \
- assert (_newp->previous == NULL); \
- if (unlikely ((first) == NULL)) \
- (first) = _newp->next = _newp->previous = _newp; \
- else \
- { \
- _newp->next = (first); \
- _newp->previous = (first)->previous; \
- _newp->previous->next = _newp->next->previous = _newp; \
- } \
- } while (0)
-
-/* Remove element from circular, double-linked list. */
-#define CDBL_LIST_DEL(first, elem) \
- do { \
- __typeof (elem) _elem = (elem); \
- /* Check whether the element is indeed on the list. */ \
- assert (first != NULL && _elem != NULL \
- && (first != elem \
- || ({ __typeof (elem) _runp = first->next; \
- while (_runp != first) \
- if (_runp == _elem) \
- break; \
- else \
- _runp = _runp->next; \
- _runp == _elem; }))); \
- if (unlikely (_elem->next == _elem)) \
- first = NULL; \
- else \
- { \
- _elem->next->previous = _elem->previous; \
- _elem->previous->next = _elem->next; \
- if (unlikely (first == _elem)) \
- first = _elem->next; \
- } \
- assert ((_elem->next = _elem->previous = NULL, 1)); \
- } while (0)
-
-
-/* Add element to the front of a single-linked list. */
-#define SNGL_LIST_PUSH(first, newp) \
- do { \
- __typeof (newp) _newp = (newp); \
- assert (_newp->next == NULL); \
- _newp->next = first; \
- first = _newp; \
- } while (0)
-
-
-/* Add element to the rear of a circular single-linked list. */
-#define CSNGL_LIST_ADD_REAR(first, newp) \
- do { \
- __typeof (newp) _newp = (newp); \
- assert (_newp->next == NULL); \
- if (unlikely ((first) == NULL)) \
- (first) = _newp->next = _newp; \
- else \
- { \
- _newp->next = (first)->next; \
- (first) = (first)->next = _newp; \
- } \
- } while (0)
-
-
-#endif /* list.h */
diff --git a/src/lib/md5.c b/src/lib/md5.c
deleted file mode 100644
index 1c27549c..00000000
--- a/src/lib/md5.c
+++ /dev/null
@@ -1,454 +0,0 @@
-/* Functions to compute MD5 message digest of files or memory blocks.
- according to the definition of MD5 in RFC 1321 from April 1992.
- Copyright (C) 1995-2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1995.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-
-#include "md5.h"
-#include "system.h"
-
-#define SWAP(n) LE32 (n)
-
-/* This array contains the bytes used to pad the buffer to the next
- 64-byte boundary. (RFC 1321, 3.1: Step 1) */
-static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ };
-
-
-/* Initialize structure containing state of computation.
- (RFC 1321, 3.3: Step 3) */
-void
-md5_init_ctx (ctx)
- struct md5_ctx *ctx;
-{
- ctx->A = 0x67452301;
- ctx->B = 0xefcdab89;
- ctx->C = 0x98badcfe;
- ctx->D = 0x10325476;
-
- ctx->total[0] = ctx->total[1] = 0;
- ctx->buflen = 0;
-}
-
-/* Put result from CTX in first 16 bytes following RESBUF. The result
- must be in little endian byte order.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-void *
-md5_read_ctx (ctx, resbuf)
- const struct md5_ctx *ctx;
- void *resbuf;
-{
- ((md5_uint32 *) resbuf)[0] = SWAP (ctx->A);
- ((md5_uint32 *) resbuf)[1] = SWAP (ctx->B);
- ((md5_uint32 *) resbuf)[2] = SWAP (ctx->C);
- ((md5_uint32 *) resbuf)[3] = SWAP (ctx->D);
-
- return resbuf;
-}
-
-static void
-le64_copy (char *dest, uint64_t x)
-{
- for (size_t i = 0; i < 8; ++i)
- {
- dest[i] = (uint8_t) x;
- x >>= 8;
- }
-}
-
-/* Process the remaining bytes in the internal buffer and the usual
- prolog according to the standard and write the result to RESBUF.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-void *
-md5_finish_ctx (ctx, resbuf)
- struct md5_ctx *ctx;
- void *resbuf;
-{
- /* Take yet unprocessed bytes into account. */
- md5_uint32 bytes = ctx->buflen;
- size_t pad;
-
- /* Now count remaining bytes. */
- ctx->total[0] += bytes;
- if (ctx->total[0] < bytes)
- ++ctx->total[1];
-
- pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes;
- memcpy (&ctx->buffer[bytes], fillbuf, pad);
-
- /* Put the 64-bit file length in *bits* at the end of the buffer. */
- const uint64_t bit_length = ((ctx->total[0] << 3)
- + ((uint64_t) ((ctx->total[1] << 3) |
- (ctx->total[0] >> 29)) << 32));
- le64_copy (&ctx->buffer[bytes + pad], bit_length);
-
- /* Process last bytes. */
- md5_process_block (ctx->buffer, bytes + pad + 8, ctx);
-
- return md5_read_ctx (ctx, resbuf);
-}
-
-
-#ifdef NEED_MD5_STREAM
-/* Compute MD5 message digest for bytes read from STREAM. The
- resulting message digest number will be written into the 16 bytes
- beginning at RESBLOCK. */
-int
-md5_stream (stream, resblock)
- FILE *stream;
- void *resblock;
-{
- /* Important: BLOCKSIZE must be a multiple of 64. */
-#define BLOCKSIZE 4096
- struct md5_ctx ctx;
- char buffer[BLOCKSIZE + 72];
- size_t sum;
-
- /* Initialize the computation context. */
- md5_init_ctx (&ctx);
-
- /* Iterate over full file contents. */
- while (1)
- {
- /* We read the file in blocks of BLOCKSIZE bytes. One call of the
- computation function processes the whole buffer so that with the
- next round of the loop another block can be read. */
- size_t n;
- sum = 0;
-
- /* Read block. Take care for partial reads. */
- do
- {
- n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream);
-
- sum += n;
- }
- while (sum < BLOCKSIZE && n != 0);
- if (n == 0 && ferror (stream))
- return 1;
-
- /* If end of file is reached, end the loop. */
- if (n == 0)
- break;
-
- /* Process buffer with BLOCKSIZE bytes. Note that
- BLOCKSIZE % 64 == 0
- */
- md5_process_block (buffer, BLOCKSIZE, &ctx);
- }
-
- /* Add the last bytes if necessary. */
- if (sum > 0)
- md5_process_bytes (buffer, sum, &ctx);
-
- /* Construct result in desired memory. */
- md5_finish_ctx (&ctx, resblock);
- return 0;
-}
-#endif
-
-
-#ifdef NEED_MD5_BUFFER
-/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
- result is always in little endian byte order, so that a byte-wise
- output yields to the wanted ASCII representation of the message
- digest. */
-void *
-md5_buffer (buffer, len, resblock)
- const char *buffer;
- size_t len;
- void *resblock;
-{
- struct md5_ctx ctx;
-
- /* Initialize the computation context. */
- md5_init_ctx (&ctx);
-
- /* Process whole buffer but last len % 64 bytes. */
- md5_process_bytes (buffer, len, &ctx);
-
- /* Put result in desired memory area. */
- return md5_finish_ctx (&ctx, resblock);
-}
-#endif
-
-
-void
-md5_process_bytes (buffer, len, ctx)
- const void *buffer;
- size_t len;
- struct md5_ctx *ctx;
-{
- /* When we already have some bits in our internal buffer concatenate
- both inputs first. */
- if (ctx->buflen != 0)
- {
- size_t left_over = ctx->buflen;
- size_t add = 128 - left_over > len ? len : 128 - left_over;
-
- memcpy (&ctx->buffer[left_over], buffer, add);
- ctx->buflen += add;
-
- if (ctx->buflen > 64)
- {
- md5_process_block (ctx->buffer, ctx->buflen & ~63, ctx);
-
- ctx->buflen &= 63;
- /* The regions in the following copy operation cannot overlap. */
- memcpy (ctx->buffer, &ctx->buffer[(left_over + add) & ~63],
- ctx->buflen);
- }
-
- buffer = (const char *) buffer + add;
- len -= add;
- }
-
- /* Process available complete blocks. */
- if (len >= 64)
- {
-#if !_STRING_ARCH_unaligned
-/* To check alignment gcc has an appropriate operator. Other
- compilers don't. */
-# if __GNUC__ >= 2
-# define UNALIGNED_P(p) (((md5_uintptr) p) % __alignof__ (md5_uint32) != 0)
-# else
-# define UNALIGNED_P(p) (((md5_uintptr) p) % sizeof (md5_uint32) != 0)
-# endif
- if (UNALIGNED_P (buffer))
- while (len > 64)
- {
- md5_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
- buffer = (const char *) buffer + 64;
- len -= 64;
- }
- else
-#endif
- {
- md5_process_block (buffer, len & ~63, ctx);
- buffer = (const char *) buffer + (len & ~63);
- len &= 63;
- }
- }
-
- /* Move remaining bytes in internal buffer. */
- if (len > 0)
- {
- size_t left_over = ctx->buflen;
-
- memcpy (&ctx->buffer[left_over], buffer, len);
- left_over += len;
- if (left_over >= 64)
- {
- md5_process_block (ctx->buffer, 64, ctx);
- left_over -= 64;
- memcpy (ctx->buffer, &ctx->buffer[64], left_over);
- }
- ctx->buflen = left_over;
- }
-}
-
-
-/* These are the four functions used in the four steps of the MD5 algorithm
- and defined in the RFC 1321. The first function is a little bit optimized
- (as found in Colin Plumbs public domain implementation). */
-/* #define FF(b, c, d) ((b & c) | (~b & d)) */
-#define FF(b, c, d) (d ^ (b & (c ^ d)))
-#define FG(b, c, d) FF (d, b, c)
-#define FH(b, c, d) (b ^ c ^ d)
-#define FI(b, c, d) (c ^ (b | ~d))
-
-/* Process LEN bytes of BUFFER, accumulating context into CTX.
- It is assumed that LEN % 64 == 0. */
-
-void
-md5_process_block (buffer, len, ctx)
- const void *buffer;
- size_t len;
- struct md5_ctx *ctx;
-{
- md5_uint32 correct_words[16];
- const md5_uint32 *words = buffer;
- size_t nwords = len / sizeof (md5_uint32);
- const md5_uint32 *endp = words + nwords;
- md5_uint32 A = ctx->A;
- md5_uint32 B = ctx->B;
- md5_uint32 C = ctx->C;
- md5_uint32 D = ctx->D;
-
- /* First increment the byte count. RFC 1321 specifies the possible
- length of the file up to 2^64 bits. Here we only compute the
- number of bytes. Do a double word increment. */
- ctx->total[0] += len;
- if (ctx->total[0] < len)
- ++ctx->total[1];
-
- /* Process all bytes in the buffer with 64 bytes in each round of
- the loop. */
- while (words < endp)
- {
- md5_uint32 *cwp = correct_words;
- md5_uint32 A_save = A;
- md5_uint32 B_save = B;
- md5_uint32 C_save = C;
- md5_uint32 D_save = D;
-
- /* First round: using the given function, the context and a constant
- the next context is computed. Because the algorithms processing
- unit is a 32-bit word and it is determined to work on words in
- little endian byte order we perhaps have to change the byte order
- before the computation. To reduce the work for the next steps
- we store the swapped words in the array CORRECT_WORDS. */
-
-#define OP(a, b, c, d, s, T) \
- do \
- { \
- a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \
- ++words; \
- CYCLIC (a, s); \
- a += b; \
- } \
- while (0)
-
- /* It is unfortunate that C does not provide an operator for
- cyclic rotation. Hope the C compiler is smart enough. */
-#define CYCLIC(w, s) (w = (w << s) | (w >> (32 - s)))
-
- /* Before we start, one word to the strange constants.
- They are defined in RFC 1321 as
-
- T[i] = (int) (4294967296.0 * fabs (sin (i))), i=1..64
- */
-
- /* Round 1. */
- OP (A, B, C, D, 7, 0xd76aa478);
- OP (D, A, B, C, 12, 0xe8c7b756);
- OP (C, D, A, B, 17, 0x242070db);
- OP (B, C, D, A, 22, 0xc1bdceee);
- OP (A, B, C, D, 7, 0xf57c0faf);
- OP (D, A, B, C, 12, 0x4787c62a);
- OP (C, D, A, B, 17, 0xa8304613);
- OP (B, C, D, A, 22, 0xfd469501);
- OP (A, B, C, D, 7, 0x698098d8);
- OP (D, A, B, C, 12, 0x8b44f7af);
- OP (C, D, A, B, 17, 0xffff5bb1);
- OP (B, C, D, A, 22, 0x895cd7be);
- OP (A, B, C, D, 7, 0x6b901122);
- OP (D, A, B, C, 12, 0xfd987193);
- OP (C, D, A, B, 17, 0xa679438e);
- OP (B, C, D, A, 22, 0x49b40821);
-
- /* For the second to fourth round we have the possibly swapped words
- in CORRECT_WORDS. Redefine the macro to take an additional first
- argument specifying the function to use. */
-#undef OP
-#define OP(f, a, b, c, d, k, s, T) \
- do \
- { \
- a += f (b, c, d) + correct_words[k] + T; \
- CYCLIC (a, s); \
- a += b; \
- } \
- while (0)
-
- /* Round 2. */
- OP (FG, A, B, C, D, 1, 5, 0xf61e2562);
- OP (FG, D, A, B, C, 6, 9, 0xc040b340);
- OP (FG, C, D, A, B, 11, 14, 0x265e5a51);
- OP (FG, B, C, D, A, 0, 20, 0xe9b6c7aa);
- OP (FG, A, B, C, D, 5, 5, 0xd62f105d);
- OP (FG, D, A, B, C, 10, 9, 0x02441453);
- OP (FG, C, D, A, B, 15, 14, 0xd8a1e681);
- OP (FG, B, C, D, A, 4, 20, 0xe7d3fbc8);
- OP (FG, A, B, C, D, 9, 5, 0x21e1cde6);
- OP (FG, D, A, B, C, 14, 9, 0xc33707d6);
- OP (FG, C, D, A, B, 3, 14, 0xf4d50d87);
- OP (FG, B, C, D, A, 8, 20, 0x455a14ed);
- OP (FG, A, B, C, D, 13, 5, 0xa9e3e905);
- OP (FG, D, A, B, C, 2, 9, 0xfcefa3f8);
- OP (FG, C, D, A, B, 7, 14, 0x676f02d9);
- OP (FG, B, C, D, A, 12, 20, 0x8d2a4c8a);
-
- /* Round 3. */
- OP (FH, A, B, C, D, 5, 4, 0xfffa3942);
- OP (FH, D, A, B, C, 8, 11, 0x8771f681);
- OP (FH, C, D, A, B, 11, 16, 0x6d9d6122);
- OP (FH, B, C, D, A, 14, 23, 0xfde5380c);
- OP (FH, A, B, C, D, 1, 4, 0xa4beea44);
- OP (FH, D, A, B, C, 4, 11, 0x4bdecfa9);
- OP (FH, C, D, A, B, 7, 16, 0xf6bb4b60);
- OP (FH, B, C, D, A, 10, 23, 0xbebfbc70);
- OP (FH, A, B, C, D, 13, 4, 0x289b7ec6);
- OP (FH, D, A, B, C, 0, 11, 0xeaa127fa);
- OP (FH, C, D, A, B, 3, 16, 0xd4ef3085);
- OP (FH, B, C, D, A, 6, 23, 0x04881d05);
- OP (FH, A, B, C, D, 9, 4, 0xd9d4d039);
- OP (FH, D, A, B, C, 12, 11, 0xe6db99e5);
- OP (FH, C, D, A, B, 15, 16, 0x1fa27cf8);
- OP (FH, B, C, D, A, 2, 23, 0xc4ac5665);
-
- /* Round 4. */
- OP (FI, A, B, C, D, 0, 6, 0xf4292244);
- OP (FI, D, A, B, C, 7, 10, 0x432aff97);
- OP (FI, C, D, A, B, 14, 15, 0xab9423a7);
- OP (FI, B, C, D, A, 5, 21, 0xfc93a039);
- OP (FI, A, B, C, D, 12, 6, 0x655b59c3);
- OP (FI, D, A, B, C, 3, 10, 0x8f0ccc92);
- OP (FI, C, D, A, B, 10, 15, 0xffeff47d);
- OP (FI, B, C, D, A, 1, 21, 0x85845dd1);
- OP (FI, A, B, C, D, 8, 6, 0x6fa87e4f);
- OP (FI, D, A, B, C, 15, 10, 0xfe2ce6e0);
- OP (FI, C, D, A, B, 6, 15, 0xa3014314);
- OP (FI, B, C, D, A, 13, 21, 0x4e0811a1);
- OP (FI, A, B, C, D, 4, 6, 0xf7537e82);
- OP (FI, D, A, B, C, 11, 10, 0xbd3af235);
- OP (FI, C, D, A, B, 2, 15, 0x2ad7d2bb);
- OP (FI, B, C, D, A, 9, 21, 0xeb86d391);
-
- /* Add the starting values of the context. */
- A += A_save;
- B += B_save;
- C += C_save;
- D += D_save;
- }
-
- /* Put checksum in context given as argument. */
- ctx->A = A;
- ctx->B = B;
- ctx->C = C;
- ctx->D = D;
-}
diff --git a/src/lib/md5.h b/src/lib/md5.h
deleted file mode 100644
index f2d0f306..00000000
--- a/src/lib/md5.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/* Declaration of functions and data types used for MD5 sum computing
- library functions.
- Copyright (C) 1995,1996,1997,1999-2001,2004,2005,2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1995.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _MD5_H
-#define _MD5_H 1
-
-#include <limits.h>
-#include <stdint.h>
-#include <stdio.h>
-
-#define MD5_DIGEST_SIZE 16
-#define MD5_BLOCK_SIZE 64
-
-typedef uint32_t md5_uint32;
-typedef uintptr_t md5_uintptr;
-
-/* Structure to save state of computation between the single steps. */
-struct md5_ctx
-{
- md5_uint32 A;
- md5_uint32 B;
- md5_uint32 C;
- md5_uint32 D;
-
- md5_uint32 total[2];
- md5_uint32 buflen;
- char buffer[128] __attribute__ ((__aligned__ (__alignof__ (md5_uint32))));
-};
-
-/*
- * The following three functions are build up the low level used in
- * the functions `md5_stream' and `md5_buffer'.
- */
-
-/* Initialize structure containing state of computation.
- (RFC 1321, 3.3: Step 3) */
-extern void md5_init_ctx (struct md5_ctx *ctx);
-
-/* Starting with the result of former calls of this function (or the
- initialization function update the context for the next LEN bytes
- starting at BUFFER.
- It is necessary that LEN is a multiple of 64!!! */
-extern void md5_process_block (const void *buffer, size_t len,
- struct md5_ctx *ctx);
-
-/* Starting with the result of former calls of this function (or the
- initialization function update the context for the next LEN bytes
- starting at BUFFER.
- It is NOT required that LEN is a multiple of 64. */
-extern void md5_process_bytes (const void *buffer, size_t len,
- struct md5_ctx *ctx);
-
-/* Process the remaining bytes in the buffer and put result from CTX
- in first 16 bytes following RESBUF. The result is always in little
- endian byte order, so that a byte-wise output yields to the wanted
- ASCII representation of the message digest.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-extern void *md5_finish_ctx (struct md5_ctx *ctx, void *resbuf);
-
-
-/* Put result from CTX in first 16 bytes following RESBUF. The result is
- always in little endian byte order, so that a byte-wise output yields
- to the wanted ASCII representation of the message digest.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-extern void *md5_read_ctx (const struct md5_ctx *ctx, void *resbuf);
-
-
-/* Compute MD5 message digest for bytes read from STREAM. The
- resulting message digest number will be written into the 16 bytes
- beginning at RESBLOCK. */
-extern int md5_stream (FILE *stream, void *resblock);
-
-/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
- result is always in little endian byte order, so that a byte-wise
- output yields to the wanted ASCII representation of the message
- digest. */
-extern void *md5_buffer (const char *buffer, size_t len, void *resblock);
-
-#endif /* md5.h */
diff --git a/src/lib/next_prime.c b/src/lib/next_prime.c
deleted file mode 100644
index f2c921e3..00000000
--- a/src/lib/next_prime.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Determine prime number.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <stddef.h>
-
-
-/* Test whether CANDIDATE is a prime. */
-static int
-is_prime (size_t candidate)
-{
- /* No even number and none less than 10 will be passed here. */
- size_t divn = 3;
- size_t sq = divn * divn;
-
- while (sq < candidate && candidate % divn != 0)
- {
- size_t old_sq = sq;
- ++divn;
- sq += 4 * divn;
- if (sq < old_sq)
- return 1;
- ++divn;
- }
-
- return candidate % divn != 0;
-}
-
-
-/* We need primes for the table size. */
-size_t
-next_prime (size_t seed)
-{
- /* Make it definitely odd. */
- seed |= 1;
-
- while (!is_prime (seed))
- seed += 2;
-
- return seed;
-}
diff --git a/src/lib/sha1.c b/src/lib/sha1.c
deleted file mode 100644
index 0e845629..00000000
--- a/src/lib/sha1.c
+++ /dev/null
@@ -1,391 +0,0 @@
-/* Functions to compute SHA1 message digest of files or memory blocks.
- according to the definition of SHA1 in FIPS 180-1 from April 1997.
- Copyright (C) 2008-2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2008.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-
-#include "sha1.h"
-#include "system.h"
-
-#define SWAP(n) BE32 (n)
-
-/* This array contains the bytes used to pad the buffer to the next
- 64-byte boundary. */
-static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ };
-
-
-/* Initialize structure containing state of computation. */
-void
-sha1_init_ctx (ctx)
- struct sha1_ctx *ctx;
-{
- ctx->A = 0x67452301;
- ctx->B = 0xefcdab89;
- ctx->C = 0x98badcfe;
- ctx->D = 0x10325476;
- ctx->E = 0xc3d2e1f0;
-
- ctx->total[0] = ctx->total[1] = 0;
- ctx->buflen = 0;
-}
-
-/* Put result from CTX in first 20 bytes following RESBUF. The result
- must be in little endian byte order.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-void *
-sha1_read_ctx (ctx, resbuf)
- const struct sha1_ctx *ctx;
- void *resbuf;
-{
- ((sha1_uint32 *) resbuf)[0] = SWAP (ctx->A);
- ((sha1_uint32 *) resbuf)[1] = SWAP (ctx->B);
- ((sha1_uint32 *) resbuf)[2] = SWAP (ctx->C);
- ((sha1_uint32 *) resbuf)[3] = SWAP (ctx->D);
- ((sha1_uint32 *) resbuf)[4] = SWAP (ctx->E);
-
- return resbuf;
-}
-
-static void
-be64_copy (char *dest, uint64_t x)
-{
- for (size_t i = 8; i-- > 0; x >>= 8)
- dest[i] = (uint8_t) x;
-}
-
-/* Process the remaining bytes in the internal buffer and the usual
- prolog according to the standard and write the result to RESBUF.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-void *
-sha1_finish_ctx (ctx, resbuf)
- struct sha1_ctx *ctx;
- void *resbuf;
-{
- /* Take yet unprocessed bytes into account. */
- sha1_uint32 bytes = ctx->buflen;
- size_t pad;
-
- /* Now count remaining bytes. */
- ctx->total[0] += bytes;
- if (ctx->total[0] < bytes)
- ++ctx->total[1];
-
- pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes;
- memcpy (&ctx->buffer[bytes], fillbuf, pad);
-
- /* Put the 64-bit file length in *bits* at the end of the buffer. */
- const uint64_t bit_length = ((ctx->total[0] << 3)
- + ((uint64_t) ((ctx->total[1] << 3) |
- (ctx->total[0] >> 29)) << 32));
- be64_copy (&ctx->buffer[bytes + pad], bit_length);
-
- /* Process last bytes. */
- sha1_process_block (ctx->buffer, bytes + pad + 8, ctx);
-
- return sha1_read_ctx (ctx, resbuf);
-}
-
-
-void
-sha1_process_bytes (buffer, len, ctx)
- const void *buffer;
- size_t len;
- struct sha1_ctx *ctx;
-{
- /* When we already have some bits in our internal buffer concatenate
- both inputs first. */
- if (ctx->buflen != 0)
- {
- size_t left_over = ctx->buflen;
- size_t add = 128 - left_over > len ? len : 128 - left_over;
-
- memcpy (&ctx->buffer[left_over], buffer, add);
- ctx->buflen += add;
-
- if (ctx->buflen > 64)
- {
- sha1_process_block (ctx->buffer, ctx->buflen & ~63, ctx);
-
- ctx->buflen &= 63;
- /* The regions in the following copy operation cannot overlap. */
- memcpy (ctx->buffer, &ctx->buffer[(left_over + add) & ~63],
- ctx->buflen);
- }
-
- buffer = (const char *) buffer + add;
- len -= add;
- }
-
- /* Process available complete blocks. */
- if (len >= 64)
- {
-#if !_STRING_ARCH_unaligned
-/* To check alignment gcc has an appropriate operator. Other
- compilers don't. */
-# if __GNUC__ >= 2
-# define UNALIGNED_P(p) (((sha1_uintptr) p) % __alignof__ (sha1_uint32) != 0)
-# else
-# define UNALIGNED_P(p) (((sha1_uintptr) p) % sizeof (sha1_uint32) != 0)
-# endif
- if (UNALIGNED_P (buffer))
- while (len > 64)
- {
- sha1_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
- buffer = (const char *) buffer + 64;
- len -= 64;
- }
- else
-#endif
- {
- sha1_process_block (buffer, len & ~63, ctx);
- buffer = (const char *) buffer + (len & ~63);
- len &= 63;
- }
- }
-
- /* Move remaining bytes in internal buffer. */
- if (len > 0)
- {
- size_t left_over = ctx->buflen;
-
- memcpy (&ctx->buffer[left_over], buffer, len);
- left_over += len;
- if (left_over >= 64)
- {
- sha1_process_block (ctx->buffer, 64, ctx);
- left_over -= 64;
- memcpy (ctx->buffer, &ctx->buffer[64], left_over);
- }
- ctx->buflen = left_over;
- }
-}
-
-
-/* These are the four functions used in the four steps of the SHA1 algorithm
- and defined in the FIPS 180-1. */
-/* #define FF(b, c, d) ((b & c) | (~b & d)) */
-#define FF(b, c, d) (d ^ (b & (c ^ d)))
-#define FG(b, c, d) (b ^ c ^ d)
-/* define FH(b, c, d) ((b & c) | (b & d) | (c & d)) */
-#define FH(b, c, d) (((b | c) & d) | (b & c))
-
-/* It is unfortunate that C does not provide an operator for cyclic
- rotation. Hope the C compiler is smart enough. */
-#define CYCLIC(w, s) (((w) << s) | ((w) >> (32 - s)))
-
-/* Magic constants. */
-#define K0 0x5a827999
-#define K1 0x6ed9eba1
-#define K2 0x8f1bbcdc
-#define K3 0xca62c1d6
-
-
-/* Process LEN bytes of BUFFER, accumulating context into CTX.
- It is assumed that LEN % 64 == 0. */
-
-void
-sha1_process_block (buffer, len, ctx)
- const void *buffer;
- size_t len;
- struct sha1_ctx *ctx;
-{
- sha1_uint32 computed_words[16];
-#define W(i) computed_words[(i) % 16]
- const sha1_uint32 *words = buffer;
- size_t nwords = len / sizeof (sha1_uint32);
- const sha1_uint32 *endp = words + nwords;
- sha1_uint32 A = ctx->A;
- sha1_uint32 B = ctx->B;
- sha1_uint32 C = ctx->C;
- sha1_uint32 D = ctx->D;
- sha1_uint32 E = ctx->E;
-
- /* First increment the byte count. FIPS 180-1 specifies the possible
- length of the file up to 2^64 bits. Here we only compute the
- number of bytes. Do a double word increment. */
- ctx->total[0] += len;
- if (ctx->total[0] < len)
- ++ctx->total[1];
-
- /* Process all bytes in the buffer with 64 bytes in each round of
- the loop. */
- while (words < endp)
- {
- sha1_uint32 A_save = A;
- sha1_uint32 B_save = B;
- sha1_uint32 C_save = C;
- sha1_uint32 D_save = D;
- sha1_uint32 E_save = E;
-
- /* First round: using the given function, the context and a constant
- the next context is computed. Because the algorithms processing
- unit is a 32-bit word and it is determined to work on words in
- little endian byte order we perhaps have to change the byte order
- before the computation. */
-
-#define OP(i, a, b, c, d, e) \
- do \
- { \
- W (i) = SWAP (*words); \
- e = CYCLIC (a, 5) + FF (b, c, d) + e + W (i) + K0; \
- ++words; \
- b = CYCLIC (b, 30); \
- } \
- while (0)
-
- /* Steps 0 to 15. */
- OP (0, A, B, C, D, E);
- OP (1, E, A, B, C, D);
- OP (2, D, E, A, B, C);
- OP (3, C, D, E, A, B);
- OP (4, B, C, D, E, A);
- OP (5, A, B, C, D, E);
- OP (6, E, A, B, C, D);
- OP (7, D, E, A, B, C);
- OP (8, C, D, E, A, B);
- OP (9, B, C, D, E, A);
- OP (10, A, B, C, D, E);
- OP (11, E, A, B, C, D);
- OP (12, D, E, A, B, C);
- OP (13, C, D, E, A, B);
- OP (14, B, C, D, E, A);
- OP (15, A, B, C, D, E);
-
- /* For the remaining 64 steps we have a more complicated
- computation of the input data-derived values. Redefine the
- macro to take an additional second argument specifying the
- function to use and a new last parameter for the magic
- constant. */
-#undef OP
-#define OP(i, f, a, b, c, d, e, K) \
- do \
- { \
- W (i) = CYCLIC (W (i - 3) ^ W (i - 8) ^ W (i - 14) ^ W (i - 16), 1);\
- e = CYCLIC (a, 5) + f (b, c, d) + e + W (i) + K; \
- b = CYCLIC (b, 30); \
- } \
- while (0)
-
- /* Steps 16 to 19. */
- OP (16, FF, E, A, B, C, D, K0);
- OP (17, FF, D, E, A, B, C, K0);
- OP (18, FF, C, D, E, A, B, K0);
- OP (19, FF, B, C, D, E, A, K0);
-
- /* Steps 20 to 39. */
- OP (20, FG, A, B, C, D, E, K1);
- OP (21, FG, E, A, B, C, D, K1);
- OP (22, FG, D, E, A, B, C, K1);
- OP (23, FG, C, D, E, A, B, K1);
- OP (24, FG, B, C, D, E, A, K1);
- OP (25, FG, A, B, C, D, E, K1);
- OP (26, FG, E, A, B, C, D, K1);
- OP (27, FG, D, E, A, B, C, K1);
- OP (28, FG, C, D, E, A, B, K1);
- OP (29, FG, B, C, D, E, A, K1);
- OP (30, FG, A, B, C, D, E, K1);
- OP (31, FG, E, A, B, C, D, K1);
- OP (32, FG, D, E, A, B, C, K1);
- OP (33, FG, C, D, E, A, B, K1);
- OP (34, FG, B, C, D, E, A, K1);
- OP (35, FG, A, B, C, D, E, K1);
- OP (36, FG, E, A, B, C, D, K1);
- OP (37, FG, D, E, A, B, C, K1);
- OP (38, FG, C, D, E, A, B, K1);
- OP (39, FG, B, C, D, E, A, K1);
-
- /* Steps 40 to 59. */
- OP (40, FH, A, B, C, D, E, K2);
- OP (41, FH, E, A, B, C, D, K2);
- OP (42, FH, D, E, A, B, C, K2);
- OP (43, FH, C, D, E, A, B, K2);
- OP (44, FH, B, C, D, E, A, K2);
- OP (45, FH, A, B, C, D, E, K2);
- OP (46, FH, E, A, B, C, D, K2);
- OP (47, FH, D, E, A, B, C, K2);
- OP (48, FH, C, D, E, A, B, K2);
- OP (49, FH, B, C, D, E, A, K2);
- OP (50, FH, A, B, C, D, E, K2);
- OP (51, FH, E, A, B, C, D, K2);
- OP (52, FH, D, E, A, B, C, K2);
- OP (53, FH, C, D, E, A, B, K2);
- OP (54, FH, B, C, D, E, A, K2);
- OP (55, FH, A, B, C, D, E, K2);
- OP (56, FH, E, A, B, C, D, K2);
- OP (57, FH, D, E, A, B, C, K2);
- OP (58, FH, C, D, E, A, B, K2);
- OP (59, FH, B, C, D, E, A, K2);
-
- /* Steps 60 to 79. */
- OP (60, FG, A, B, C, D, E, K3);
- OP (61, FG, E, A, B, C, D, K3);
- OP (62, FG, D, E, A, B, C, K3);
- OP (63, FG, C, D, E, A, B, K3);
- OP (64, FG, B, C, D, E, A, K3);
- OP (65, FG, A, B, C, D, E, K3);
- OP (66, FG, E, A, B, C, D, K3);
- OP (67, FG, D, E, A, B, C, K3);
- OP (68, FG, C, D, E, A, B, K3);
- OP (69, FG, B, C, D, E, A, K3);
- OP (70, FG, A, B, C, D, E, K3);
- OP (71, FG, E, A, B, C, D, K3);
- OP (72, FG, D, E, A, B, C, K3);
- OP (73, FG, C, D, E, A, B, K3);
- OP (74, FG, B, C, D, E, A, K3);
- OP (75, FG, A, B, C, D, E, K3);
- OP (76, FG, E, A, B, C, D, K3);
- OP (77, FG, D, E, A, B, C, K3);
- OP (78, FG, C, D, E, A, B, K3);
- OP (79, FG, B, C, D, E, A, K3);
-
- /* Add the starting values of the context. */
- A += A_save;
- B += B_save;
- C += C_save;
- D += D_save;
- E += E_save;
- }
-
- /* Put checksum in context given as argument. */
- ctx->A = A;
- ctx->B = B;
- ctx->C = C;
- ctx->D = D;
- ctx->E = E;
-}
diff --git a/src/lib/sha1.h b/src/lib/sha1.h
deleted file mode 100644
index 05301c80..00000000
--- a/src/lib/sha1.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/* Declaration of functions and data types used for SHA1 sum computing
- library functions.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2008.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _SHA1_H
-#define _SHA1_H 1
-
-#include <limits.h>
-#include <stdint.h>
-#include <stdio.h>
-
-#define SHA1_DIGEST_SIZE 20
-#define SHA1_BLOCK_SIZE 64
-
-typedef uint32_t sha1_uint32;
-typedef uintptr_t sha1_uintptr;
-
-/* Structure to save state of computation between the single steps. */
-struct sha1_ctx
-{
- sha1_uint32 A;
- sha1_uint32 B;
- sha1_uint32 C;
- sha1_uint32 D;
- sha1_uint32 E;
-
- sha1_uint32 total[2];
- sha1_uint32 buflen;
- char buffer[128] __attribute__ ((__aligned__ (__alignof__ (sha1_uint32))));
-};
-
-/* Initialize structure containing state of computation. */
-extern void sha1_init_ctx (struct sha1_ctx *ctx);
-
-/* Starting with the result of former calls of this function (or the
- initialization function update the context for the next LEN bytes
- starting at BUFFER.
- It is necessary that LEN is a multiple of 64!!! */
-extern void sha1_process_block (const void *buffer, size_t len,
- struct sha1_ctx *ctx);
-
-/* Starting with the result of former calls of this function (or the
- initialization function update the context for the next LEN bytes
- starting at BUFFER.
- It is NOT required that LEN is a multiple of 64. */
-extern void sha1_process_bytes (const void *buffer, size_t len,
- struct sha1_ctx *ctx);
-
-/* Process the remaining bytes in the buffer and put result from CTX
- in first 20 bytes following RESBUF. The result is always in little
- endian byte order, so that a byte-wise output yields to the wanted
- ASCII representation of the message digest.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-extern void *sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf);
-
-
-/* Put result from CTX in first 20 bytes following RESBUF. The result is
- always in little endian byte order, so that a byte-wise output yields
- to the wanted ASCII representation of the message digest.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-extern void *sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf);
-
-#endif /* sha1.h */
diff --git a/src/lib/system.h b/src/lib/system.h
deleted file mode 100644
index f31cfd03..00000000
--- a/src/lib/system.h
+++ /dev/null
@@ -1,185 +0,0 @@
-/* Declarations for common convenience functions.
- Copyright (C) 2006-2011 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef LIB_SYSTEM_H
-#define LIB_SYSTEM_H 1
-
-#include <argp.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <endian.h>
-#include <byteswap.h>
-#include <unistd.h>
-
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# define LE32(n) (n)
-# define LE64(n) (n)
-# define BE32(n) bswap_32 (n)
-# define BE64(n) bswap_64 (n)
-#elif __BYTE_ORDER == __BIG_ENDIAN
-# define BE32(n) (n)
-# define BE64(n) (n)
-# define LE32(n) bswap_32 (n)
-# define LE64(n) bswap_64 (n)
-#else
-# error "Unknown byte order"
-#endif
-
-extern void *xmalloc (size_t) __attribute__ ((__malloc__));
-extern void *xcalloc (size_t, size_t) __attribute__ ((__malloc__));
-extern void *xrealloc (void *, size_t) __attribute__ ((__malloc__));
-
-extern char *xstrdup (const char *) __attribute__ ((__malloc__));
-extern char *xstrndup (const char *, size_t) __attribute__ ((__malloc__));
-
-
-extern uint32_t crc32 (uint32_t crc, unsigned char *buf, size_t len);
-extern int crc32_file (int fd, uint32_t *resp);
-
-/* A special gettext function we use if the strings are too short. */
-#define sgettext(Str) \
- ({ const char *__res = strrchr (gettext (Str), '|'); \
- __res ? __res + 1 : Str; })
-
-#define gettext_noop(Str) Str
-
-
-static inline ssize_t __attribute__ ((unused))
-pwrite_retry (int fd, const void *buf, size_t len, off_t off)
-{
- ssize_t recvd = 0;
-
- do
- {
- ssize_t ret = TEMP_FAILURE_RETRY (pwrite (fd, buf + recvd, len - recvd,
- off + recvd));
- if (ret <= 0)
- return ret < 0 ? ret : recvd;
-
- recvd += ret;
- }
- while ((size_t) recvd < len);
-
- return recvd;
-}
-
-static inline ssize_t __attribute__ ((unused))
-write_retry (int fd, const void *buf, size_t len)
-{
- ssize_t recvd = 0;
-
- do
- {
- ssize_t ret = TEMP_FAILURE_RETRY (write (fd, buf + recvd, len - recvd));
- if (ret <= 0)
- return ret < 0 ? ret : recvd;
-
- recvd += ret;
- }
- while ((size_t) recvd < len);
-
- return recvd;
-}
-
-static inline ssize_t __attribute__ ((unused))
-pread_retry (int fd, void *buf, size_t len, off_t off)
-{
- ssize_t recvd = 0;
-
- do
- {
- ssize_t ret = TEMP_FAILURE_RETRY (pread (fd, buf + recvd, len - recvd,
- off + recvd));
- if (ret <= 0)
- return ret < 0 ? ret : recvd;
-
- recvd += ret;
- }
- while ((size_t) recvd < len);
-
- return recvd;
-}
-
-
-/* We need define two variables, argp_program_version_hook and
- argp_program_bug_address, in all programs. argp.h declares these
- variables as non-const (which is correct in general). But we can
- do better, it is not going to change. So we want to move them into
- the .rodata section. Define macros to do the trick. */
-#define ARGP_PROGRAM_VERSION_HOOK_DEF \
- void (*const apvh) (FILE *, struct argp_state *) \
- __asm ("argp_program_version_hook")
-#define ARGP_PROGRAM_BUG_ADDRESS_DEF \
- const char *const apba__ __asm ("argp_program_bug_address")
-
-
-/* The demangler from libstdc++. */
-extern char *__cxa_demangle (const char *mangled_name, char *output_buffer,
- size_t *length, int *status);
-
-
-
-/* Color handling. */
-
-/* Command line parser. */
-extern const struct argp color_argp;
-
-/* Coloring mode. */
-enum color_enum
- {
- color_never = 0,
- color_always,
- color_auto
- } __attribute__ ((packed));
-extern enum color_enum color_mode;
-
-/* Colors to use for the various components. */
-extern char *color_address;
-extern char *color_bytes;
-extern char *color_mnemonic;
-extern char *color_operand1;
-extern char *color_operand2;
-extern char *color_operand3;
-extern char *color_label;
-extern char *color_undef;
-extern char *color_undef_tls;
-extern char *color_undef_weak;
-extern char *color_symbol;
-extern char *color_tls;
-extern char *color_weak;
-
-extern const char color_off[];
-
-/* A static assertion. This will cause a compile-time error if EXPR,
- which must be a compile-time constant, is false. */
-
-#define eu_static_assert(expr) \
- extern int never_defined_just_used_for_checking[(expr) ? 1 : -1] \
- __attribute__ ((unused))
-
-#endif /* system.h */
diff --git a/src/lib/xmalloc.c b/src/lib/xmalloc.c
deleted file mode 100644
index 27ccab95..00000000
--- a/src/lib/xmalloc.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Convenience functions for allocation.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <error.h>
-#include <libintl.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include "system.h"
-
-#ifndef _
-# define _(str) gettext (str)
-#endif
-
-
-/* Allocate N bytes of memory dynamically, with error checking. */
-void *
-xmalloc (n)
- size_t n;
-{
- void *p;
-
- p = malloc (n);
- if (p == NULL)
- error (EXIT_FAILURE, 0, _("memory exhausted"));
- return p;
-}
-
-
-/* Allocate memory for N elements of S bytes, with error checking. */
-void *
-xcalloc (n, s)
- size_t n, s;
-{
- void *p;
-
- p = calloc (n, s);
- if (p == NULL)
- error (EXIT_FAILURE, 0, _("memory exhausted"));
- return p;
-}
-
-
-/* Change the size of an allocated block of memory P to N bytes,
- with error checking. */
-void *
-xrealloc (p, n)
- void *p;
- size_t n;
-{
- p = realloc (p, n);
- if (p == NULL)
- error (EXIT_FAILURE, 0, _("memory exhausted"));
- return p;
-}
diff --git a/src/lib/xstrdup.c b/src/lib/xstrdup.c
deleted file mode 100644
index d9d6010c..00000000
--- a/src/lib/xstrdup.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Convenience function for string allocation.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include "system.h"
-
-
-/* Return a newly allocated copy of STRING. */
-char *
-xstrdup (string)
- const char *string;
-{
- return strcpy (xmalloc (strlen (string) + 1), string);
-}
diff --git a/src/lib/xstrndup.c b/src/lib/xstrndup.c
deleted file mode 100644
index 52304e65..00000000
--- a/src/lib/xstrndup.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Convenience function for string allocation.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include "system.h"
-
-
-/* Return a newly allocated copy of STRING. */
-char *
-xstrndup (string, n)
- const char *string;
- size_t n;
-{
- char *res;
- size_t len = strnlen (string, n);
- *((char *) mempcpy ((res = xmalloc (len + 1)), string, len)) = '\0';
- return res;
-}
diff --git a/src/libasm/ChangeLog b/src/libasm/ChangeLog
deleted file mode 100644
index 9b25af99..00000000
--- a/src/libasm/ChangeLog
+++ /dev/null
@@ -1,141 +0,0 @@
-2014-12-18 Ulrich Drepper <drepper@gmail.com>
-
- * Makefile.am: Suppress output of textrel_check command.
-
-2014-11-27 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (libasm.so): Use textrel_check.
-
-2014-04-13 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Remove !MUDFLAP conditions.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2011-02-08 Roland McGrath <roland@redhat.com>
-
- * asm_newscn.c (asm_newscn): Remove unused variable.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
-2009-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Use USE_LOCKS instead of USE_TLS.
- * asm_error.c: Always use __thread. Remove all !USE_TLS code.
-
-2008-12-03 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am [USE_TLS]: Like libasm.so with libpthread.
-
-2008-01-11 Ulrich Drepper <drepper@redhat.com>
-
- * libasm.h (DisasmGetSymCB_t): Change type of fourth and fifth
- parameter.
- * disasm_cb.c: Adjust accordingly.
-
-2008-01-08 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (euinclude): Variable removed.
- (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
-
-2007-12-20 Ulrich Drepper <drepper@redhat.com>
-
- * disasm_cb.c: Add initial support to resolve addresses to symbols.
-
-2007-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * disasm_begin.c: New file.
- * disasm_cb.c: New file.
- * disasm_end.c: New file.
- * disasm_str.c: New file.
-
-2006-08-29 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (CLEANFILES): Add libasm.so.$(VERSION).
-
-2005-11-13 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (INCLUDES): Search in libdw.
-
-2005-09-02 Ulrich Drepper <drepper@redhat.com>
-
- * asm_error.c (asm_errmsg): Unify error message.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
- (%.os): Use COMPILE.os.
- (COMPILE.os): Filter out gconv options.
-
-2005-08-02 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Add -std=gnu99.
- * asm_abort.c: Don't try to remove output file if there is none.
- * asm_addint8.c: In print mode, print to file not stdout.
- * asm_addsleb128.c: Likewise.
- * asm_adduleb128.c: Likewise.
- * asm_newscn.c: Likewise.
- * asm_align.c: Implement print mode.
- * asm_begin.c (asm_begin): Change interface. Take binary class and
- byte order information from new Ebl parameter.
- * libasm.h: Adjust prototype.
- * asm_end.c (text_end): Close file if necesary.
- * asm_error.c: Add new error ASM_E_IOERROR.
- * libasmP.h: Add ASM_E_IOERROR definition.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
-
- * asm_end.c (text_end): Mark parameter as possibly unused.
-
-2005-02-06 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Remove lint handling.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * asm_end.c (binary_end): Don't terminate with error() in case
- something goes wrong.
-
- * Makefile.am: Check for text relocations in constructed DSO.
-
- * Makefile.am (AM_CFLAGS): More warnings. Add -fmudflap for MUDFLAP.
-
- * asm_end.c (binary_end): Remove shadowing variables.
- Little cleanups.
-
- * asm_newsym.c: Allocate memory for the string parameter.
-
-2005-02-04 Ulrich Drepper <drepper@redhat.com>
-
- * asm_newscn_ingrp.c (asm_newscn_ingrp): Use INTUSE to reference
- asm_newscn.
-
-2004-09-25 Ulrich Drepper <drepper@redhat.com>
-
- * asm_error.c: Make compile with gcc 4.0.
-
-2004-01-20 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
-2004-01-18 Ulrich Drepper <drepper@redhat.com>
-
- * libasmP.h (_): Use elfutils domain.
-
-2004-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
-2003-08-13 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.in: Depend on libebl.a, not libebl.so.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/libasm/Makefile b/src/libasm/Makefile
deleted file mode 100644
index 1c8f5a10..00000000
--- a/src/libasm/Makefile
+++ /dev/null
@@ -1,772 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# libasm/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog
-noinst_PROGRAMS = $(am__EXEEXT_1)
-#am__append_1 = -lpthread
-subdir = libasm
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"
-LIBRARIES = $(lib_LIBRARIES) $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libasm_a_AR = $(AR) $(ARFLAGS)
-libasm_a_LIBADD =
-am_libasm_a_OBJECTS = asm_begin.$(OBJEXT) asm_abort.$(OBJEXT) \
- asm_end.$(OBJEXT) asm_error.$(OBJEXT) asm_getelf.$(OBJEXT) \
- asm_newscn.$(OBJEXT) asm_newscn_ingrp.$(OBJEXT) \
- asm_newsubscn.$(OBJEXT) asm_newsym.$(OBJEXT) \
- asm_newcomsym.$(OBJEXT) asm_newabssym.$(OBJEXT) \
- asm_newscngrp.$(OBJEXT) asm_scngrp_newsignature.$(OBJEXT) \
- asm_fill.$(OBJEXT) asm_align.$(OBJEXT) asm_addstrz.$(OBJEXT) \
- asm_addint8.$(OBJEXT) asm_adduint8.$(OBJEXT) \
- asm_addint16.$(OBJEXT) asm_adduint16.$(OBJEXT) \
- asm_addint32.$(OBJEXT) asm_adduint32.$(OBJEXT) \
- asm_addint64.$(OBJEXT) asm_adduint64.$(OBJEXT) \
- asm_adduleb128.$(OBJEXT) asm_addsleb128.$(OBJEXT) \
- disasm_begin.$(OBJEXT) disasm_cb.$(OBJEXT) \
- disasm_end.$(OBJEXT) disasm_str.$(OBJEXT) symbolhash.$(OBJEXT)
-libasm_a_OBJECTS = $(am_libasm_a_OBJECTS)
-libasm_pic_a_AR = $(AR) $(ARFLAGS)
-libasm_pic_a_LIBADD =
-libasm_pic_a_OBJECTS = $(am_libasm_pic_a_OBJECTS)
-am__EXEEXT_1 = libasm.so$(EXEEXT)
-PROGRAMS = $(noinst_PROGRAMS)
-am_libasm_so_OBJECTS =
-libasm_so_OBJECTS = $(am_libasm_so_OBJECTS)
-libasm_so_LDADD = $(LDADD)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libasm_a_SOURCES) $(libasm_pic_a_SOURCES) \
- $(libasm_so_SOURCES)
-DIST_SOURCES = $(libasm_a_SOURCES) $(libasm_pic_a_SOURCES) \
- $(libasm_so_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 1
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/libasm
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/libasm
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl \
- -I$(top_srcdir)/libdw
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libasm_pic_a_OBJECTS) \
- libasm.so.$(VERSION)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
-lib_LIBRARIES = libasm.a
-noinst_LIBRARIES = libasm_pic.a
-pkginclude_HEADERS = libasm.h
-libasm_a_SOURCES = asm_begin.c asm_abort.c asm_end.c asm_error.c \
- asm_getelf.c asm_newscn.c asm_newscn_ingrp.c \
- asm_newsubscn.c asm_newsym.c asm_newcomsym.c \
- asm_newabssym.c \
- asm_newscngrp.c asm_scngrp_newsignature.c \
- asm_fill.c asm_align.c asm_addstrz.c \
- asm_addint8.c asm_adduint8.c \
- asm_addint16.c asm_adduint16.c \
- asm_addint32.c asm_adduint32.c \
- asm_addint64.c asm_adduint64.c \
- asm_adduleb128.c asm_addsleb128.c \
- disasm_begin.c disasm_cb.c disasm_end.c disasm_str.c \
- symbolhash.c
-
-libasm_pic_a_SOURCES =
-am_libasm_pic_a_OBJECTS = $(libasm_a_SOURCES:.c=.os)
-libasm_so_LDLIBS = $(am__append_1)
-libasm_so_SOURCES =
-noinst_HEADERS = libasmP.h symbolhash.h
-EXTRA_DIST = libasm.map
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libasm/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libasm/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- if test -f $$p; then \
- $(am__strip_dir) \
- echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
- ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir)
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libasm.a: $(libasm_a_OBJECTS) $(libasm_a_DEPENDENCIES) $(EXTRA_libasm_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libasm.a
- $(AM_V_AR)$(libasm_a_AR) libasm.a $(libasm_a_OBJECTS) $(libasm_a_LIBADD)
- $(AM_V_at)$(RANLIB) libasm.a
-
-libasm_pic.a: $(libasm_pic_a_OBJECTS) $(libasm_pic_a_DEPENDENCIES) $(EXTRA_libasm_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libasm_pic.a
- $(AM_V_AR)$(libasm_pic_a_AR) libasm_pic.a $(libasm_pic_a_OBJECTS) $(libasm_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libasm_pic.a
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/asm_abort.Po
-include ./$(DEPDIR)/asm_addint16.Po
-include ./$(DEPDIR)/asm_addint32.Po
-include ./$(DEPDIR)/asm_addint64.Po
-include ./$(DEPDIR)/asm_addint8.Po
-include ./$(DEPDIR)/asm_addsleb128.Po
-include ./$(DEPDIR)/asm_addstrz.Po
-include ./$(DEPDIR)/asm_adduint16.Po
-include ./$(DEPDIR)/asm_adduint32.Po
-include ./$(DEPDIR)/asm_adduint64.Po
-include ./$(DEPDIR)/asm_adduint8.Po
-include ./$(DEPDIR)/asm_adduleb128.Po
-include ./$(DEPDIR)/asm_align.Po
-include ./$(DEPDIR)/asm_begin.Po
-include ./$(DEPDIR)/asm_end.Po
-include ./$(DEPDIR)/asm_error.Po
-include ./$(DEPDIR)/asm_fill.Po
-include ./$(DEPDIR)/asm_getelf.Po
-include ./$(DEPDIR)/asm_newabssym.Po
-include ./$(DEPDIR)/asm_newcomsym.Po
-include ./$(DEPDIR)/asm_newscn.Po
-include ./$(DEPDIR)/asm_newscn_ingrp.Po
-include ./$(DEPDIR)/asm_newscngrp.Po
-include ./$(DEPDIR)/asm_newsubscn.Po
-include ./$(DEPDIR)/asm_newsym.Po
-include ./$(DEPDIR)/asm_scngrp_newsignature.Po
-include ./$(DEPDIR)/disasm_begin.Po
-include ./$(DEPDIR)/disasm_cb.Po
-include ./$(DEPDIR)/disasm_end.Po
-include ./$(DEPDIR)/disasm_str.Po
-include ./$(DEPDIR)/symbolhash.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install-exec: install-exec-am
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libLIBRARIES clean-noinstLIBRARIES \
- clean-noinstPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-libLIBRARIES
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-libLIBRARIES clean-noinstLIBRARIES clean-noinstPROGRAMS \
- cscopelist-am ctags ctags-am distclean distclean-compile \
- distclean-generic distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-libLIBRARIES install-man install-pdf \
- install-pdf-am install-pkgincludeHEADERS install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-libasm.so$(EXEEXT): libasm_pic.a libasm.map
- $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- -Wl,--version-script,$(srcdir)/libasm.map,--no-undefined \
- -Wl,--soname,$@.$(VERSION) \
- ../libebl/libebl.a ../libelf/libelf.so $(libasm_so_LDLIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libasm.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libasm.so $(DESTDIR)$(libdir)/libasm-$(PACKAGE_VERSION).so
- ln -fs libasm-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libasm.so.$(VERSION)
- ln -fs libasm.so.$(VERSION) $(DESTDIR)$(libdir)/libasm.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libasm-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libasm.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libasm.so
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir)/elfutils
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libasm/Makefile.am b/src/libasm/Makefile.am
deleted file mode 100644
index 6ea2a8e8..00000000
--- a/src/libasm/Makefile.am
+++ /dev/null
@@ -1,87 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 2002-2010 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-AM_CPPFLAGS += -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl -I$(top_srcdir)/libdw
-
-GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
-VERSION = 1
-
-lib_LIBRARIES = libasm.a
-noinst_LIBRARIES = libasm_pic.a
-noinst_PROGRAMS = $(noinst_LIBRARIES:_pic.a=.so)
-pkginclude_HEADERS = libasm.h
-
-libasm_a_SOURCES = asm_begin.c asm_abort.c asm_end.c asm_error.c \
- asm_getelf.c asm_newscn.c asm_newscn_ingrp.c \
- asm_newsubscn.c asm_newsym.c asm_newcomsym.c \
- asm_newabssym.c \
- asm_newscngrp.c asm_scngrp_newsignature.c \
- asm_fill.c asm_align.c asm_addstrz.c \
- asm_addint8.c asm_adduint8.c \
- asm_addint16.c asm_adduint16.c \
- asm_addint32.c asm_adduint32.c \
- asm_addint64.c asm_adduint64.c \
- asm_adduleb128.c asm_addsleb128.c \
- disasm_begin.c disasm_cb.c disasm_end.c disasm_str.c \
- symbolhash.c
-
-libasm_pic_a_SOURCES =
-am_libasm_pic_a_OBJECTS = $(libasm_a_SOURCES:.c=.os)
-
-libasm_so_LDLIBS =
-if USE_LOCKS
-libasm_so_LDLIBS += -lpthread
-endif
-
-libasm_so_SOURCES =
-libasm.so$(EXEEXT): libasm_pic.a libasm.map
- $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- -Wl,--version-script,$(srcdir)/libasm.map,--no-undefined \
- -Wl,--soname,$@.$(VERSION) \
- ../libebl/libebl.a ../libelf/libelf.so $(libasm_so_LDLIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libasm.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libasm.so $(DESTDIR)$(libdir)/libasm-$(PACKAGE_VERSION).so
- ln -fs libasm-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libasm.so.$(VERSION)
- ln -fs libasm.so.$(VERSION) $(DESTDIR)$(libdir)/libasm.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libasm-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libasm.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libasm.so
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir)/elfutils
-
-noinst_HEADERS = libasmP.h symbolhash.h
-EXTRA_DIST = libasm.map
-
-CLEANFILES += $(am_libasm_pic_a_OBJECTS) libasm.so.$(VERSION)
diff --git a/src/libasm/Makefile.in b/src/libasm/Makefile.in
deleted file mode 100644
index 2c263240..00000000
--- a/src/libasm/Makefile.in
+++ /dev/null
@@ -1,772 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog
-noinst_PROGRAMS = $(am__EXEEXT_1)
-@USE_LOCKS_TRUE@am__append_1 = -lpthread
-subdir = libasm
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"
-LIBRARIES = $(lib_LIBRARIES) $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libasm_a_AR = $(AR) $(ARFLAGS)
-libasm_a_LIBADD =
-am_libasm_a_OBJECTS = asm_begin.$(OBJEXT) asm_abort.$(OBJEXT) \
- asm_end.$(OBJEXT) asm_error.$(OBJEXT) asm_getelf.$(OBJEXT) \
- asm_newscn.$(OBJEXT) asm_newscn_ingrp.$(OBJEXT) \
- asm_newsubscn.$(OBJEXT) asm_newsym.$(OBJEXT) \
- asm_newcomsym.$(OBJEXT) asm_newabssym.$(OBJEXT) \
- asm_newscngrp.$(OBJEXT) asm_scngrp_newsignature.$(OBJEXT) \
- asm_fill.$(OBJEXT) asm_align.$(OBJEXT) asm_addstrz.$(OBJEXT) \
- asm_addint8.$(OBJEXT) asm_adduint8.$(OBJEXT) \
- asm_addint16.$(OBJEXT) asm_adduint16.$(OBJEXT) \
- asm_addint32.$(OBJEXT) asm_adduint32.$(OBJEXT) \
- asm_addint64.$(OBJEXT) asm_adduint64.$(OBJEXT) \
- asm_adduleb128.$(OBJEXT) asm_addsleb128.$(OBJEXT) \
- disasm_begin.$(OBJEXT) disasm_cb.$(OBJEXT) \
- disasm_end.$(OBJEXT) disasm_str.$(OBJEXT) symbolhash.$(OBJEXT)
-libasm_a_OBJECTS = $(am_libasm_a_OBJECTS)
-libasm_pic_a_AR = $(AR) $(ARFLAGS)
-libasm_pic_a_LIBADD =
-libasm_pic_a_OBJECTS = $(am_libasm_pic_a_OBJECTS)
-am__EXEEXT_1 = libasm.so$(EXEEXT)
-PROGRAMS = $(noinst_PROGRAMS)
-am_libasm_so_OBJECTS =
-libasm_so_OBJECTS = $(am_libasm_so_OBJECTS)
-libasm_so_LDADD = $(LDADD)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libasm_a_SOURCES) $(libasm_pic_a_SOURCES) \
- $(libasm_so_SOURCES)
-DIST_SOURCES = $(libasm_a_SOURCES) $(libasm_pic_a_SOURCES) \
- $(libasm_so_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = 1
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl \
- -I$(top_srcdir)/libdw
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libasm_pic_a_OBJECTS) \
- libasm.so.$(VERSION)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
-lib_LIBRARIES = libasm.a
-noinst_LIBRARIES = libasm_pic.a
-pkginclude_HEADERS = libasm.h
-libasm_a_SOURCES = asm_begin.c asm_abort.c asm_end.c asm_error.c \
- asm_getelf.c asm_newscn.c asm_newscn_ingrp.c \
- asm_newsubscn.c asm_newsym.c asm_newcomsym.c \
- asm_newabssym.c \
- asm_newscngrp.c asm_scngrp_newsignature.c \
- asm_fill.c asm_align.c asm_addstrz.c \
- asm_addint8.c asm_adduint8.c \
- asm_addint16.c asm_adduint16.c \
- asm_addint32.c asm_adduint32.c \
- asm_addint64.c asm_adduint64.c \
- asm_adduleb128.c asm_addsleb128.c \
- disasm_begin.c disasm_cb.c disasm_end.c disasm_str.c \
- symbolhash.c
-
-libasm_pic_a_SOURCES =
-am_libasm_pic_a_OBJECTS = $(libasm_a_SOURCES:.c=.os)
-libasm_so_LDLIBS = $(am__append_1)
-libasm_so_SOURCES =
-noinst_HEADERS = libasmP.h symbolhash.h
-EXTRA_DIST = libasm.map
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libasm/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libasm/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- if test -f $$p; then \
- $(am__strip_dir) \
- echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
- ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir)
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libasm.a: $(libasm_a_OBJECTS) $(libasm_a_DEPENDENCIES) $(EXTRA_libasm_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libasm.a
- $(AM_V_AR)$(libasm_a_AR) libasm.a $(libasm_a_OBJECTS) $(libasm_a_LIBADD)
- $(AM_V_at)$(RANLIB) libasm.a
-
-libasm_pic.a: $(libasm_pic_a_OBJECTS) $(libasm_pic_a_DEPENDENCIES) $(EXTRA_libasm_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libasm_pic.a
- $(AM_V_AR)$(libasm_pic_a_AR) libasm_pic.a $(libasm_pic_a_OBJECTS) $(libasm_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libasm_pic.a
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_abort.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_addint16.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_addint32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_addint64.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_addint8.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_addsleb128.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_addstrz.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_adduint16.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_adduint32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_adduint64.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_adduint8.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_adduleb128.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_align.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_begin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_end.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_error.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_fill.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_getelf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_newabssym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_newcomsym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_newscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_newscn_ingrp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_newscngrp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_newsubscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_newsym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm_scngrp_newsignature.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/disasm_begin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/disasm_cb.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/disasm_end.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/disasm_str.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symbolhash.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install-exec: install-exec-am
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libLIBRARIES clean-noinstLIBRARIES \
- clean-noinstPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-libLIBRARIES
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-libLIBRARIES clean-noinstLIBRARIES clean-noinstPROGRAMS \
- cscopelist-am ctags ctags-am distclean distclean-compile \
- distclean-generic distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-libLIBRARIES install-man install-pdf \
- install-pdf-am install-pkgincludeHEADERS install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-libasm.so$(EXEEXT): libasm_pic.a libasm.map
- $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- -Wl,--version-script,$(srcdir)/libasm.map,--no-undefined \
- -Wl,--soname,$@.$(VERSION) \
- ../libebl/libebl.a ../libelf/libelf.so $(libasm_so_LDLIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libasm.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libasm.so $(DESTDIR)$(libdir)/libasm-$(PACKAGE_VERSION).so
- ln -fs libasm-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libasm.so.$(VERSION)
- ln -fs libasm.so.$(VERSION) $(DESTDIR)$(libdir)/libasm.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libasm-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libasm.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libasm.so
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir)/elfutils
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libasm/asm_abort.c b/src/libasm/asm_abort.c
deleted file mode 100644
index ef55ee9b..00000000
--- a/src/libasm/asm_abort.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* Abort operations on the assembler context, free all resources.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <unistd.h>
-
-#include <libasmP.h>
-#include <libelf.h>
-
-
-int
-asm_abort (ctx)
- AsmCtx_t *ctx;
-{
- if (ctx == NULL)
- /* Something went wrong earlier. */
- return -1;
-
- if (likely (! ctx->textp))
- /* First free the ELF file. We don't care about the result. */
- (void) elf_end (ctx->out.elf);
-
- /* Now close the temporary file and remove it. */
- if (ctx->fd != -1)
- (void) unlink (ctx->tmp_fname);
-
- /* Free the resources. */
- __libasm_finictx (ctx);
-
- return 0;
-}
diff --git a/src/libasm/asm_addint16.c b/src/libasm/asm_addint16.c
deleted file mode 100644
index 4ae45972..00000000
--- a/src/libasm/asm_addint16.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Add integer to a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define SIZE 16
-
-#include "asm_addint8.c"
diff --git a/src/libasm/asm_addint32.c b/src/libasm/asm_addint32.c
deleted file mode 100644
index 776cf6f5..00000000
--- a/src/libasm/asm_addint32.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Add integer to a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define SIZE 32
-
-#include "asm_addint8.c"
diff --git a/src/libasm/asm_addint64.c b/src/libasm/asm_addint64.c
deleted file mode 100644
index ee338344..00000000
--- a/src/libasm/asm_addint64.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Add integer to a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define SIZE 64
-
-#include "asm_addint8.c"
diff --git a/src/libasm/asm_addint8.c b/src/libasm/asm_addint8.c
deleted file mode 100644
index ec05b8da..00000000
--- a/src/libasm/asm_addint8.c
+++ /dev/null
@@ -1,123 +0,0 @@
-/* Add integer to a section.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <byteswap.h>
-#include <endian.h>
-#include <inttypes.h>
-#include <string.h>
-
-#include <libasmP.h>
-
-#ifndef SIZE
-# define SIZE 8
-#endif
-
-#define FCT(size) _FCT(size)
-#define _FCT(size) asm_addint##size
-#define TYPE(size) _TYPE(size)
-#define _TYPE(size) int##size##_t
-#define BSWAP(size) _BSWAP(size)
-#define _BSWAP(size) bswap_##size
-
-
-int
-FCT(SIZE) (asmscn, num)
- AsmScn_t *asmscn;
- TYPE(SIZE) num;
-{
- if (asmscn == NULL)
- return -1;
-
- if (asmscn->type == SHT_NOBITS && unlikely (num != 0))
- {
- __libasm_seterrno (ASM_E_TYPE);
- return -1;
- }
-
- if (unlikely (asmscn->ctx->textp))
- {
- // XXX Needs to use backend specified pseudo-ops
- if (SIZE == 8)
- fprintf (asmscn->ctx->out.file, "\t.byte\t%" PRId8 "\n", (int8_t) num);
- else if (SIZE == 16)
- fprintf (asmscn->ctx->out.file, "\t.value\t%" PRId16 "\n",
- (int16_t) num);
- else if (SIZE == 32)
- fprintf (asmscn->ctx->out.file, "\t.long\t%" PRId32 "\n",
- (int32_t) num);
- else
- {
- // XXX This is not necessary for 64-bit machines
- bool is_leb = (elf_getident (asmscn->ctx->out.elf, NULL)[EI_DATA]
- == ELFDATA2LSB);
-
- fprintf (asmscn->ctx->out.file,
- "\t.long\t%" PRId32 "\n\t.long\t%" PRId32 "\n",
- (int32_t) (is_leb
- ? num % 0x100000000ll : num / 0x100000000ll),
- (int32_t) (is_leb
- ? num / 0x100000000ll : num % 0x100000000ll));
- }
- }
- else
- {
-#if SIZE > 8
- bool is_leb = (elf_getident (asmscn->ctx->out.elf, NULL)[EI_DATA]
- == ELFDATA2LSB);
-#endif
- TYPE(SIZE) var = num;
-
- /* Make sure we have enough room. */
- if (__libasm_ensure_section_space (asmscn, SIZE / 8) != 0)
- return -1;
-
-#if SIZE > 8
- if ((BYTE_ORDER == LITTLE_ENDIAN && !is_leb)
- || (BYTE_ORDER == BIG_ENDIAN && is_leb))
- var = BSWAP(SIZE) (var);
-#endif
-
- /* Copy the variable value. */
- if (likely (asmscn->type == SHT_NOBITS))
- memcpy (&asmscn->content->data[asmscn->content->len], &var, SIZE / 8);
-
- /* Adjust the pointer in the data buffer. */
- asmscn->content->len += SIZE / 8;
-
- /* Increment the offset in the (sub)section. */
- asmscn->offset += SIZE / 8;
- }
-
- return 0;
-}
-INTDEF(FCT(SIZE))
diff --git a/src/libasm/asm_addsleb128.c b/src/libasm/asm_addsleb128.c
deleted file mode 100644
index 3692789d..00000000
--- a/src/libasm/asm_addsleb128.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Add signed little endian base 128 integer to a section.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <string.h>
-
-#include <libasmP.h>
-
-
-int
-asm_addsleb128 (asmscn, num)
- AsmScn_t *asmscn;
- int32_t num;
-{
- if (asmscn == NULL)
- return -1;
-
- if (asmscn->type == SHT_NOBITS && unlikely (num != 0))
- {
- __libasm_seterrno (ASM_E_TYPE);
- return -1;
- }
-
- if (unlikely (asmscn->ctx->textp))
- fprintf (asmscn->ctx->out.file, "\t.sleb128\t%" PRId32 "\n", num);
- else
- {
- char tmpbuf[(sizeof (num) * 8 + 6) / 7];
- char *dest = tmpbuf;
- uint32_t byte;
- int32_t endval = num >> 31;
-
- if (num == 0)
- byte = 0;
- else
- while (1)
- {
- byte = num & 0x7f;
-
- num >>= 7;
- if (num == endval)
- /* This is the last byte. */
- break;
-
- *dest++ = byte | 0x80;
- }
-
- *dest++ = byte;
-
- /* Number of bytes produced. */
- size_t nbytes = dest - tmpbuf;
-
- /* Make sure we have enough room. */
- if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
- return -1;
-
- /* Copy the bytes. */
- if (likely (asmscn->type != SHT_NOBITS))
- memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
-
- /* Adjust the pointer in the data buffer. */
- asmscn->content->len += nbytes;
-
- /* Increment the offset in the (sub)section. */
- asmscn->offset += nbytes;
- }
-
- return 0;
-}
diff --git a/src/libasm/asm_addstrz.c b/src/libasm/asm_addstrz.c
deleted file mode 100644
index 87663f3a..00000000
--- a/src/libasm/asm_addstrz.c
+++ /dev/null
@@ -1,128 +0,0 @@
-/* Add string to a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <ctype.h>
-#include <stdio.h>
-#include <string.h>
-
-#include <libasmP.h>
-
-
-/* Add zero terminated string STR of size LEN to (sub)section ASMSCN. */
-int
-asm_addstrz (asmscn, str, len)
- AsmScn_t *asmscn;
- const char *str;
- size_t len;
-{
- if (asmscn == NULL)
- return -1;
-
- if (unlikely (asmscn->type == SHT_NOBITS))
- {
- if (len == 0)
- {
- if (str[0] != '\0')
- {
- __libasm_seterrno (ASM_E_TYPE);
- return -1;
- }
- }
- else
- {
- size_t cnt;
-
- for (cnt = 0; cnt < len; ++cnt)
- if (str[cnt] != '\0')
- {
- __libasm_seterrno (ASM_E_TYPE);
- return -1;
- }
- }
- }
-
- if (len == 0)
- len = strlen (str) + 1;
-
- if (unlikely (asmscn->ctx->textp))
- {
- bool nextline = true;
-
- do
- {
- if (nextline)
- {
- fputs ("\t.string\t\"", asmscn->ctx->out.file);
- nextline = false;
- }
-
- if (*str == '\0')
- fputs ("\\000", asmscn->ctx->out.file);
- else if (! isascii (*str))
- fprintf (asmscn->ctx->out.file, "\\%03o",
- (unsigned int) *((unsigned char *)str));
- else if (*str == '\\')
- fputs ("\\\\", asmscn->ctx->out.file);
- else if (*str == '\n')
- {
- fputs ("\\n\"", asmscn->ctx->out.file);
- nextline = true;
- }
- else
- fputc (*str, asmscn->ctx->out.file);
-
- ++str;
- }
- while (--len > 0 && (len > 1 || *str != '\0'));
-
- if (! nextline)
- fputs ("\"\n", asmscn->ctx->out.file);
- }
- else
- {
- /* Make sure there is enough room. */
- if (__libasm_ensure_section_space (asmscn, len) != 0)
- return -1;
-
- /* Copy the string. */
- memcpy (&asmscn->content->data[asmscn->content->len], str, len);
-
- /* Adjust the pointer in the data buffer. */
- asmscn->content->len += len;
-
- /* Increment the offset in the (sub)section. */
- asmscn->offset += len;
- }
-
- return 0;
-}
diff --git a/src/libasm/asm_adduint16.c b/src/libasm/asm_adduint16.c
deleted file mode 100644
index 65a13030..00000000
--- a/src/libasm/asm_adduint16.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Add unsigned integer to a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define SIZE 16
-
-#include "asm_adduint8.c"
diff --git a/src/libasm/asm_adduint32.c b/src/libasm/asm_adduint32.c
deleted file mode 100644
index 9a3ec6d5..00000000
--- a/src/libasm/asm_adduint32.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Add unsigned integer to a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define SIZE 32
-
-#include "asm_adduint8.c"
diff --git a/src/libasm/asm_adduint64.c b/src/libasm/asm_adduint64.c
deleted file mode 100644
index b2c57a42..00000000
--- a/src/libasm/asm_adduint64.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Add unsigned integer to a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define SIZE 64
-
-#include "asm_adduint8.c"
diff --git a/src/libasm/asm_adduint8.c b/src/libasm/asm_adduint8.c
deleted file mode 100644
index 30641b84..00000000
--- a/src/libasm/asm_adduint8.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Add unsigned integer to a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libasmP.h>
-
-#ifndef SIZE
-# define SIZE 8
-#endif
-
-#define UFCT(size) _UFCT(size)
-#define _UFCT(size) asm_adduint##size
-#define FCT(size) _FCT(size)
-#define _FCT(size) asm_addint##size
-#define UTYPE(size) _UTYPE(size)
-#define _UTYPE(size) uint##size##_t
-#define TYPE(size) _TYPE(size)
-#define _TYPE(size) int##size##_t
-
-
-int
-UFCT(SIZE) (asmscn, num)
- AsmScn_t *asmscn;
- UTYPE(SIZE) num;
-{
- return INTUSE(FCT(SIZE)) (asmscn, (TYPE(SIZE)) num);
-}
diff --git a/src/libasm/asm_adduleb128.c b/src/libasm/asm_adduleb128.c
deleted file mode 100644
index a3a85738..00000000
--- a/src/libasm/asm_adduleb128.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Add integer to a section.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <string.h>
-
-#include "libasmP.h"
-
-
-int
-asm_adduleb128 (asmscn, num)
- AsmScn_t *asmscn;
- uint32_t num;
-{
- if (asmscn == NULL)
- return -1;
-
- if (asmscn->type == SHT_NOBITS && unlikely (num != 0))
- {
- __libasm_seterrno (ASM_E_TYPE);
- return -1;
- }
-
- if (unlikely (asmscn->ctx->textp))
- fprintf (asmscn->ctx->out.file, "\t.uleb128\t%" PRIu32 "\n", num);
- else
- {
- char tmpbuf[(sizeof (num) * 8 + 6) / 7];
- char *dest = tmpbuf;
- uint32_t byte;
-
- while (1)
- {
- byte = num & 0x7f;
-
- num >>= 7;
- if (num == 0)
- /* This is the last byte. */
- break;
-
- *dest++ = byte | 0x80;
- }
-
- *dest++ = byte;
-
- /* Number of bytes produced. */
- size_t nbytes = dest - tmpbuf;
-
- /* Make sure we have enough room. */
- if (__libasm_ensure_section_space (asmscn, nbytes) != 0)
- return -1;
-
- /* Copy the bytes. */
- if (likely (asmscn->type != SHT_NOBITS))
- memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes);
-
- /* Adjust the pointer in the data buffer. */
- asmscn->content->len += nbytes;
-
- /* Increment the offset in the (sub)section. */
- asmscn->offset += nbytes;
- }
-
- return 0;
-}
diff --git a/src/libasm/asm_align.c b/src/libasm/asm_align.c
deleted file mode 100644
index 2025b027..00000000
--- a/src/libasm/asm_align.c
+++ /dev/null
@@ -1,179 +0,0 @@
-/* Align section.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <stdlib.h>
-#include <sys/param.h>
-
-#include <libasmP.h>
-#include <system.h>
-
-
-int
-asm_align (asmscn, value)
- AsmScn_t *asmscn;
- GElf_Word value;
-{
- if (asmscn == NULL)
- /* An earlier error. */
- return -1;
-
- /* The alignment value must be a power of two. */
- if (unlikely (! powerof2 (value)))
- {
- __libasm_seterrno (ASM_E_INVALID);
- return -1;
- }
-
- if (unlikely (asmscn->ctx->textp))
- {
- fprintf (asmscn->ctx->out.file, "\t.align %" PRId32 ", ",
- (int32_t) value);
- if (asmscn->pattern->len == 1)
- fprintf (asmscn->ctx->out.file, "%02hhx\n", asmscn->pattern->bytes[0]);
- else
- {
- fputc_unlocked ('"', asmscn->ctx->out.file);
-
- for (size_t cnt = 0; cnt < asmscn->pattern->len; ++cnt)
- fprintf (asmscn->ctx->out.file, "\\x%02hhx",
- asmscn->pattern->bytes[cnt]);
-
- fputs_unlocked ("\"\n", asmscn->ctx->out.file);
- }
- return 0;
- }
-
- rwlock_wrlock (asmscn->ctx->lock);
-
- int result = 0;
-
- /* Fillbytes necessary? */
- if ((asmscn->offset & (value - 1)) != 0)
- {
- /* Add fillbytes. */
- size_t cnt = value - (asmscn->offset & (value - 1));
-
- /* Ensure there is enough room to add the fill bytes. */
- result = __libasm_ensure_section_space (asmscn, cnt);
- if (result != 0)
- goto out;
-
- /* Fill in the bytes. We align the pattern according to the
- current offset. */
- size_t byteptr = asmscn->offset % asmscn->pattern->len;
-
- /* Update the total size. */
- asmscn->offset += cnt;
-
- do
- {
- asmscn->content->data[asmscn->content->len++]
- = asmscn->pattern->bytes[byteptr++];
-
- if (byteptr == asmscn->pattern->len)
- byteptr = 0;
- }
- while (--cnt > 0);
- }
-
- /* Remember the maximum alignment for this subsection. */
- if (asmscn->max_align < value)
- {
- asmscn->max_align = value;
-
- /* Update the parent as well (if it exists). */
- if (asmscn->subsection_id != 0)
- {
- rwlock_wrlock (asmscn->data.up->ctx->lock);
-
- if (asmscn->data.up->max_align < value)
- asmscn->data.up->max_align = value;
-
- rwlock_unlock (asmscn->data.up->ctx->lock);
- }
- }
-
- out:
- rwlock_unlock (asmscn->ctx->lock);
-
- return result;
-}
-
-
-/* Ensure there are at least LEN bytes available in the output buffer
- for ASMSCN. */
-int
-__libasm_ensure_section_space (asmscn, len)
- AsmScn_t *asmscn;
- size_t len;
-{
- /* The blocks with the section content are kept in a circular
- single-linked list. */
- size_t size;
-
- if (asmscn->content == NULL)
- {
- /* This is the first block. */
- size = MAX (2 * len, 960);
-
- asmscn->content = (struct AsmData *) malloc (sizeof (struct AsmData)
- + size);
- if (asmscn->content == NULL)
- return -1;
-
- asmscn->content->next = asmscn->content;
- }
- else
- {
- struct AsmData *newp;
-
- if (asmscn->content->maxlen - asmscn->content->len >= len)
- /* Nothing to do, there is enough space. */
- return 0;
-
- size = MAX (2 *len, MIN (32768, 2 * asmscn->offset));
-
- newp = (struct AsmData *) malloc (sizeof (struct AsmData) + size);
- if (newp == NULL)
- return -1;
-
- newp->next = asmscn->content->next;
- asmscn->content = asmscn->content->next = newp;
- }
-
- asmscn->content->len = 0;
- asmscn->content->maxlen = size;
-
- return 0;
-}
diff --git a/src/libasm/asm_begin.c b/src/libasm/asm_begin.c
deleted file mode 100644
index 48842d3c..00000000
--- a/src/libasm/asm_begin.c
+++ /dev/null
@@ -1,184 +0,0 @@
-/* Create descriptor for assembling.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <gelf.h>
-#include "libasmP.h"
-#include <system.h>
-
-
-static AsmCtx_t *
-prepare_text_output (AsmCtx_t *result)
-{
- if (result->fd == -1)
- result->out.file = stdout;
- else
- {
- result->out.file = fdopen (result->fd, "a");
- if (result->out.file == NULL)
- {
- close (result->fd);
- free (result);
- result = NULL;
- }
-
- __fsetlocking (result->out.file, FSETLOCKING_BYCALLER);
- }
-
- return result;
-}
-
-
-static AsmCtx_t *
-prepare_binary_output (AsmCtx_t *result, Ebl *ebl)
-{
- GElf_Ehdr *ehdr;
- GElf_Ehdr ehdr_mem;
-
- /* Create the ELF descriptor for the file. */
- result->out.elf = elf_begin (result->fd, ELF_C_WRITE_MMAP, NULL);
- if (result->out.elf == NULL)
- {
- err_libelf:
- unlink (result->tmp_fname);
- close (result->fd);
- free (result);
- __libasm_seterrno (ASM_E_LIBELF);
- return NULL;
- }
-
- /* Create the ELF header for the output file. */
- int class = ebl_get_elfclass (ebl);
- if (gelf_newehdr (result->out.elf, class) == 0)
- goto err_libelf;
-
- ehdr = gelf_getehdr (result->out.elf, &ehdr_mem);
- /* If this failed we are in trouble. */
- assert (ehdr != NULL);
-
- /* We create an object file. */
- ehdr->e_type = ET_REL;
- /* Set the ELF version. */
- ehdr->e_version = EV_CURRENT;
-
- /* Use the machine, class, and endianess values from the Ebl descriptor. */
- ehdr->e_machine = ebl_get_elfmachine (ebl);
- ehdr->e_ident[EI_CLASS] = class;
- ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl);
-
- memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG);
-
- /* Write the ELF header information back. */
- (void) gelf_update_ehdr (result->out.elf, ehdr);
-
- /* No section so far. */
- result->section_list = NULL;
-
- /* Initialize the hash table. */
- asm_symbol_tab_init (&result->symbol_tab, 67);
- result->nsymbol_tab = 0;
- /* And the string tables. */
- result->section_strtab = ebl_strtabinit (true);
- result->symbol_strtab = ebl_strtabinit (true);
-
- /* We have no section groups so far. */
- result->groups = NULL;
- result->ngroups = 0;
-
- return result;
-}
-
-
-AsmCtx_t *
-asm_begin (fname, ebl, textp)
- const char *fname;
- Ebl *ebl;
- bool textp;
-{
- if (fname == NULL && ! textp)
- return NULL;
-
- size_t fname_len = fname != NULL ? strlen (fname) : 0;
-
- /* Create the file descriptor. We do not generate the output file
- right away. Instead we create a temporary file in the same
- directory which, if everything goes alright, will replace a
- possibly existing file with the given name. */
- AsmCtx_t *result
- = (AsmCtx_t *) malloc (sizeof (AsmCtx_t) + 2 * fname_len + 9);
- if (result == NULL)
- return NULL;
-
- /* Initialize the lock. */
- rwlock_init (result->lock);
-
- if (fname != NULL)
- {
- /* Create the name of the temporary file. */
- result->fname = stpcpy (mempcpy (result->tmp_fname, fname, fname_len),
- ".XXXXXX") + 1;
- memcpy (result->fname, fname, fname_len + 1);
-
- /* Create the temporary file. */
- result->fd = mkstemp (result->tmp_fname);
- if (result->fd == -1)
- {
- int save_errno = errno;
- free (result);
- __libasm_seterrno (ASM_E_CANNOT_CREATE);
- errno = save_errno;
- return NULL;
- }
- }
- else
- result->fd = -1;
-
- /* Initialize the counter for temporary symbols. */
- result->tempsym_count = 0;
-
- /* Now we differentiate between textual and binary output. */
- result->textp = textp;
- if (textp)
- result = prepare_text_output (result);
- else
- result = prepare_binary_output (result, ebl);
-
- return result;
-}
diff --git a/src/libasm/asm_end.c b/src/libasm/asm_end.c
deleted file mode 100644
index f4145a75..00000000
--- a/src/libasm/asm_end.c
+++ /dev/null
@@ -1,613 +0,0 @@
-/* Finalize operations on the assembler context, free all resources.
- Copyright (C) 2002, 2003, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <error.h>
-#include <libintl.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/stat.h>
-
-#include <libasmP.h>
-#include <libelf.h>
-#include <system.h>
-
-
-static int
-text_end (AsmCtx_t *ctx __attribute__ ((unused)))
-{
- if (fclose (ctx->out.file) != 0)
- {
- __libasm_seterrno (ASM_E_IOERROR);
- return -1;
- }
-
- return 0;
-}
-
-
-static int
-binary_end (AsmCtx_t *ctx)
-{
- void *symtab = NULL;
- struct Ebl_Strent *symscn_strent = NULL;
- struct Ebl_Strent *strscn_strent = NULL;
- struct Ebl_Strent *xndxscn_strent = NULL;
- Elf_Scn *shstrscn;
- struct Ebl_Strent *shstrscn_strent;
- size_t shstrscnndx;
- size_t symscnndx = 0;
- size_t strscnndx = 0;
- size_t xndxscnndx = 0;
- Elf_Data *data;
- Elf_Data *shstrtabdata;
- Elf_Data *strtabdata = NULL;
- Elf_Data *xndxdata = NULL;
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr;
- AsmScn_t *asmscn;
- int result = 0;
-
- /* Iterate over the created sections and compute the offsets of the
- various subsections and fill in the content. */
- for (asmscn = ctx->section_list; asmscn != NULL; asmscn = asmscn->allnext)
- {
-#if 0
- Elf_Scn *scn = elf_getscn (ctx->out.elf, asmscn->data.main.scnndx);
-#else
- Elf_Scn *scn = asmscn->data.main.scn;
-#endif
- off_t offset = 0;
- AsmScn_t *asmsubscn = asmscn;
-
- do
- {
- struct AsmData *content = asmsubscn->content;
- bool first = true;
-
- offset = ((offset + asmsubscn->max_align - 1)
- & ~(asmsubscn->max_align - 1));
-
- /* Update the offset for this subsection. This field now
- stores the offset of the first by in this subsection. */
- asmsubscn->offset = offset;
-
- /* Note that the content list is circular. */
- if (content != NULL)
- do
- {
- Elf_Data *newdata = elf_newdata (scn);
-
- if (newdata == NULL)
- {
- __libasm_seterrno (ASM_E_LIBELF);
- return -1;
- }
-
- newdata->d_buf = content->data;
- newdata->d_type = ELF_T_BYTE;
- newdata->d_size = content->len;
- newdata->d_off = offset;
- newdata->d_align = first ? asmsubscn->max_align : 1;
-
- offset += content->len;
- }
- while ((content = content->next) != asmsubscn->content);
- }
- while ((asmsubscn = asmsubscn->subnext) != NULL);
- }
-
-
- /* Create the symbol table if necessary. */
- if (ctx->nsymbol_tab > 0)
- {
- /* Create the symbol table and string table section names. */
- symscn_strent = ebl_strtabadd (ctx->section_strtab, ".symtab", 8);
- strscn_strent = ebl_strtabadd (ctx->section_strtab, ".strtab", 8);
-
- /* Create the symbol string table section. */
- Elf_Scn *strscn = elf_newscn (ctx->out.elf);
- strtabdata = elf_newdata (strscn);
- shdr = gelf_getshdr (strscn, &shdr_mem);
- if (strtabdata == NULL || shdr == NULL)
- {
- __libasm_seterrno (ASM_E_LIBELF);
- return -1;
- }
- strscnndx = elf_ndxscn (strscn);
-
- ebl_strtabfinalize (ctx->symbol_strtab, strtabdata);
-
- shdr->sh_type = SHT_STRTAB;
- assert (shdr->sh_entsize == 0);
-
- (void) gelf_update_shdr (strscn, shdr);
-
- /* Create the symbol table section. */
- Elf_Scn *symscn = elf_newscn (ctx->out.elf);
- data = elf_newdata (symscn);
- shdr = gelf_getshdr (symscn, &shdr_mem);
- if (data == NULL || shdr == NULL)
- {
- __libasm_seterrno (ASM_E_LIBELF);
- return -1;
- }
- symscnndx = elf_ndxscn (symscn);
-
- /* We know how many symbols there will be in the symbol table. */
- data->d_size = gelf_fsize (ctx->out.elf, ELF_T_SYM,
- ctx->nsymbol_tab + 1, EV_CURRENT);
- symtab = malloc (data->d_size);
- if (symtab == NULL)
- return -1;
- data->d_buf = symtab;
- data->d_type = ELF_T_SYM;
- data->d_off = 0;
-
- /* Clear the first entry. */
- GElf_Sym syment;
- memset (&syment, '\0', sizeof (syment));
- (void) gelf_update_sym (data, 0, &syment);
-
- /* Iterate over the symbol table. */
- void *runp = NULL;
- int ptr_local = 1; /* Start with index 1; zero remains unused. */
- int ptr_nonlocal = ctx->nsymbol_tab;
- uint32_t *xshndx = NULL;
- AsmSym_t *sym;
- while ((sym = asm_symbol_tab_iterate (&ctx->symbol_tab, &runp)) != NULL)
- if (asm_emit_symbol_p (ebl_string (sym->strent)))
- {
- assert (ptr_local <= ptr_nonlocal);
-
- syment.st_name = ebl_strtaboffset (sym->strent);
- syment.st_info = GELF_ST_INFO (sym->binding, sym->type);
- syment.st_other = 0;
- syment.st_value = sym->scn->offset + sym->offset;
- syment.st_size = sym->size;
-
- /* Add local symbols at the beginning, the other from
- the end. */
- int ptr = sym->binding == STB_LOCAL ? ptr_local++ : ptr_nonlocal--;
-
- /* Determine the section index. We have to handle the
- overflow correctly. */
- Elf_Scn *scn = (sym->scn->subsection_id == 0
- ? sym->scn->data.main.scn
- : sym->scn->data.up->data.main.scn);
-
- Elf32_Word ndx;
- if (unlikely (scn == ASM_ABS_SCN))
- ndx = SHN_ABS;
- else if (unlikely (scn == ASM_COM_SCN))
- ndx = SHN_COMMON;
- else if (unlikely ((ndx = elf_ndxscn (scn)) >= SHN_LORESERVE))
- {
- if (unlikely (xshndx == NULL))
- {
- /* The extended section index section does not yet
- exist. */
- Elf_Scn *xndxscn;
-
- xndxscn = elf_newscn (ctx->out.elf);
- xndxdata = elf_newdata (xndxscn);
- shdr = gelf_getshdr (xndxscn, &shdr_mem);
- if (xndxdata == NULL || shdr == NULL)
- {
- __libasm_seterrno (ASM_E_LIBELF);
- return -1;
- }
- xndxscnndx = elf_ndxscn (xndxscn);
-
- shdr->sh_type = SHT_SYMTAB_SHNDX;
- shdr->sh_entsize = sizeof (Elf32_Word);
- shdr->sh_addralign = sizeof (Elf32_Word);
- shdr->sh_link = symscnndx;
-
- (void) gelf_update_shdr (xndxscn, shdr);
-
- xndxscn_strent = ebl_strtabadd (ctx->section_strtab,
- ".symtab_shndx", 14);
-
- /* Note that using 'elf32_fsize' instead of
- 'gelf_fsize' here is correct. */
- xndxdata->d_size = elf32_fsize (ELF_T_WORD,
- ctx->nsymbol_tab + 1,
- EV_CURRENT);
- xshndx = xndxdata->d_buf = calloc (1, xndxdata->d_size);
- if (xshndx == NULL)
- return -1;
- /* Using ELF_T_WORD here relies on the fact that the
- 32- and 64-bit types are the same size. */
- xndxdata->d_type = ELF_T_WORD;
- xndxdata->d_off = 0;
- }
-
- /* Store the real section index in the extended setion
- index table. */
- assert ((size_t) ptr < ctx->nsymbol_tab + 1);
- xshndx[ptr] = ndx;
-
- /* And signal that this happened. */
- ndx = SHN_XINDEX;
- }
- syment.st_shndx = ndx;
-
- /* Remember where we put the symbol. */
- sym->symidx = ptr;
-
- (void) gelf_update_sym (data, ptr, &syment);
- }
-
- assert (ptr_local == ptr_nonlocal + 1);
-
- shdr->sh_type = SHT_SYMTAB;
- shdr->sh_link = strscnndx;
- shdr->sh_info = ptr_local;
- shdr->sh_entsize = gelf_fsize (ctx->out.elf, ELF_T_SYM, 1, EV_CURRENT);
- shdr->sh_addralign = gelf_fsize (ctx->out.elf, ELF_T_ADDR, 1,
- EV_CURRENT);
-
- (void) gelf_update_shdr (symscn, shdr);
- }
-
-
- /* Create the section header string table section and fill in the
- references in the section headers. */
- shstrscn = elf_newscn (ctx->out.elf);
- shstrtabdata = elf_newdata (shstrscn);
- shdr = gelf_getshdr (shstrscn, &shdr_mem);
- if (shstrscn == NULL || shstrtabdata == NULL || shdr == NULL)
- {
- __libasm_seterrno (ASM_E_LIBELF);
- return -1;
- }
-
-
- /* Add the name of the section header string table. */
- shstrscn_strent = ebl_strtabadd (ctx->section_strtab, ".shstrtab", 10);
-
- ebl_strtabfinalize (ctx->section_strtab, shstrtabdata);
-
- shdr->sh_type = SHT_STRTAB;
- assert (shdr->sh_entsize == 0);
- shdr->sh_name = ebl_strtaboffset (shstrscn_strent);
-
- (void) gelf_update_shdr (shstrscn, shdr);
-
-
- /* Create the section groups. */
- if (ctx->groups != NULL)
- {
- AsmScnGrp_t *runp = ctx->groups->next;
-
- do
- {
- Elf_Scn *scn;
- Elf32_Word *grpdata;
-
- scn = runp->scn;
- assert (scn != NULL);
- shdr = gelf_getshdr (scn, &shdr_mem);
- assert (shdr != NULL);
-
- data = elf_newdata (scn);
- if (data == NULL)
- {
- __libasm_seterrno (ASM_E_LIBELF);
- return -1;
- }
-
- /* It is correct to use 'elf32_fsize' instead of 'gelf_fsize'
- here. */
- data->d_size = elf32_fsize (ELF_T_WORD, runp->nmembers + 1,
- EV_CURRENT);
- grpdata = data->d_buf = malloc (data->d_size);
- if (grpdata == NULL)
- return -1;
- data->d_type = ELF_T_WORD;
- data->d_off = 0;
- data->d_align = elf32_fsize (ELF_T_WORD, 1, EV_CURRENT);
-
- /* The first word of the section is filled with the flag word. */
- *grpdata++ = runp->flags;
-
- if (runp->members != NULL)
- {
- AsmScn_t *member = runp->members->data.main.next_in_group;
-
- do
- {
- /* Only sections, not subsections, can be registered
- as member of a group. The subsections get
- automatically included. */
- assert (member->subsection_id == 0);
-
- *grpdata++ = elf_ndxscn (member->data.main.scn);
- }
- while ((member = member->data.main.next_in_group)
- != runp->members->data.main.next_in_group);
- }
-
- /* Construct the section header. */
- shdr->sh_name = ebl_strtaboffset (runp->strent);
- shdr->sh_type = SHT_GROUP;
- shdr->sh_flags = 0;
- shdr->sh_link = symscnndx;
- /* If the user did not specify a signature we use the initial
- empty symbol in the symbol table as the signature. */
- shdr->sh_info = (runp->signature != NULL
- ? runp->signature->symidx : 0);
-
- (void) gelf_update_shdr (scn, shdr);
- }
- while ((runp = runp->next) != ctx->groups->next);
- }
-
-
- /* Add the name to the symbol section. */
- if (likely (symscnndx != 0))
- {
- Elf_Scn *scn = elf_getscn (ctx->out.elf, symscnndx);
-
- shdr = gelf_getshdr (scn, &shdr_mem);
-
- shdr->sh_name = ebl_strtaboffset (symscn_strent);
-
- (void) gelf_update_shdr (scn, shdr);
-
-
- /* Add the name to the string section. */
- assert (strscnndx != 0);
- scn = elf_getscn (ctx->out.elf, strscnndx);
-
- shdr = gelf_getshdr (scn, &shdr_mem);
-
- shdr->sh_name = ebl_strtaboffset (strscn_strent);
-
- (void) gelf_update_shdr (scn, shdr);
-
-
- /* Add the name to the extended symbol index section. */
- if (xndxscnndx != 0)
- {
- scn = elf_getscn (ctx->out.elf, xndxscnndx);
-
- shdr = gelf_getshdr (scn, &shdr_mem);
-
- shdr->sh_name = ebl_strtaboffset (xndxscn_strent);
-
- (void) gelf_update_shdr (scn, shdr);
- }
- }
-
-
- /* Iterate over the created sections and fill in the names. */
- for (asmscn = ctx->section_list; asmscn != NULL; asmscn = asmscn->allnext)
- {
- shdr = gelf_getshdr (asmscn->data.main.scn, &shdr_mem);
- /* This better should not fail. */
- assert (shdr != NULL);
-
- shdr->sh_name = ebl_strtaboffset (asmscn->data.main.strent);
-
- /* We now know the maximum alignment. */
- shdr->sh_addralign = asmscn->max_align;
-
- (void) gelf_update_shdr (asmscn->data.main.scn, shdr);
- }
-
- /* Put the reference to the section header string table in the ELF
- header. */
- ehdr = gelf_getehdr (ctx->out.elf, &ehdr_mem);
- assert (ehdr != NULL);
-
- shstrscnndx = elf_ndxscn (shstrscn);
- if (unlikely (shstrscnndx > SHN_HIRESERVE)
- || unlikely (shstrscnndx == SHN_XINDEX))
- {
- /* The index of the section header string sectio is too large. */
- Elf_Scn *scn = elf_getscn (ctx->out.elf, 0);
-
- /* Get the header for the zeroth section. */
- shdr = gelf_getshdr (scn, &shdr_mem);
- /* This better does not fail. */
- assert (shdr != NULL);
-
- /* The sh_link field of the zeroth section header contains the value. */
- shdr->sh_link = shstrscnndx;
-
- (void) gelf_update_shdr (scn, shdr);
-
- /* This is the sign for the overflow. */
- ehdr->e_shstrndx = SHN_XINDEX;
- }
- else
- ehdr->e_shstrndx = elf_ndxscn (shstrscn);
-
- gelf_update_ehdr (ctx->out.elf, ehdr);
-
- /* Write out the ELF file. */
- if (unlikely (elf_update (ctx->out.elf, ELF_C_WRITE_MMAP)) < 0)
- {
- __libasm_seterrno (ASM_E_LIBELF);
- result = -1;
- }
-
- /* We do not need the section header and symbol string tables anymore. */
- free (shstrtabdata->d_buf);
- if (strtabdata != NULL)
- free (strtabdata->d_buf);
- /* We might have allocated the extended symbol table index. */
- if (xndxdata != NULL)
- free (xndxdata->d_buf);
-
- /* Free section groups memory. */
- AsmScnGrp_t *scngrp = ctx->groups;
- if (scngrp != NULL)
- do
- free (elf_getdata (scngrp->scn, NULL)->d_buf);
- while ((scngrp = scngrp->next) != ctx->groups);
-
- /* Finalize the ELF handling. */
- if (unlikely (elf_end (ctx->out.elf)) != 0)
- {
- __libasm_seterrno (ASM_E_LIBELF);
- result = -1;
- }
-
- /* Free the temporary resources. */
- free (symtab);
-
- return result;
-}
-
-
-int
-asm_end (ctx)
- AsmCtx_t *ctx;
-{
- int result;
-
- if (ctx == NULL)
- /* Something went wrong earlier. */
- return -1;
-
- result = unlikely (ctx->textp) ? text_end (ctx) : binary_end (ctx);
- if (result != 0)
- return result;
-
- /* Make the new file globally readable and user/group-writable. */
- if (fchmod (ctx->fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH) != 0)
- {
- __libasm_seterrno (ASM_E_CANNOT_CHMOD);
- return -1;
- }
-
- /* Rename output file. */
- if (rename (ctx->tmp_fname, ctx->fname) != 0)
- {
- __libasm_seterrno (ASM_E_CANNOT_RENAME);
- return -1;
- }
-
- /* Free the resources. */
- __libasm_finictx (ctx);
-
- return 0;
-}
-
-
-static void
-free_section (AsmScn_t *scnp)
-{
- void *oldp;
-
- if (scnp->subnext != NULL)
- free_section (scnp->subnext);
-
- struct AsmData *data = scnp->content;
- if (data != NULL)
- do
- {
- oldp = data;
- data = data->next;
- free (oldp);
- }
- while (oldp != scnp->content);
-
- free (scnp);
-}
-
-
-void
-__libasm_finictx (ctx)
- AsmCtx_t *ctx;
-{
- /* Iterate through section table and free individual entries. */
- AsmScn_t *scn = ctx->section_list;
- while (scn != NULL)
- {
- AsmScn_t *oldp = scn;
- scn = scn->allnext;
- free_section (oldp);
- }
-
- /* Free the resources of the symbol table. */
- void *runp = NULL;
- AsmSym_t *sym;
- while ((sym = asm_symbol_tab_iterate (&ctx->symbol_tab, &runp)) != NULL)
- free (sym);
- asm_symbol_tab_free (&ctx->symbol_tab);
-
-
- /* Free section groups. */
- AsmScnGrp_t *scngrp = ctx->groups;
- if (scngrp != NULL)
- do
- {
- AsmScnGrp_t *oldp = scngrp;
-
- scngrp = scngrp->next;
- free (oldp);
- }
- while (scngrp != ctx->groups);
-
-
- if (unlikely (ctx->textp))
- {
- /* Close the stream. */
- fclose (ctx->out.file);
- }
- else
- {
- /* Close the output file. */
- /* XXX We should test for errors here but what would we do if we'd
- find any. */
- (void) close (ctx->fd);
-
- /* And the string tables. */
- ebl_strtabfree (ctx->section_strtab);
- ebl_strtabfree (ctx->symbol_strtab);
- }
-
- /* Initialize the lock. */
- rwlock_fini (ctx->lock);
-
- /* Finally free the data structure. */
- free (ctx);
-}
diff --git a/src/libasm/asm_error.c b/src/libasm/asm_error.c
deleted file mode 100644
index 300a7983..00000000
--- a/src/libasm/asm_error.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/* Error handling in libasm.
- Copyright (C) 2002, 2004, 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libintl.h>
-#include <stdbool.h>
-#include <stdlib.h>
-
-#include "libasmP.h"
-
-
-/* This is the key for the thread specific memory. */
-static __thread int global_error;
-
-
-int
-asm_errno (void)
-{
- int result = global_error;
- global_error = ASM_E_NOERROR;
- return result;
-}
-
-
-void
-__libasm_seterrno (value)
- int value;
-{
- global_error = value;
-}
-
-
-/* Return the appropriate message for the error. */
-static const char *msgs[ASM_E_NUM] =
-{
- [ASM_E_NOERROR] = N_("no error"),
- [ASM_E_NOMEM] = N_("out of memory"),
- [ASM_E_CANNOT_CREATE] = N_("cannot create output file"),
- [ASM_E_INVALID] = N_("invalid parameter"),
- [ASM_E_CANNOT_CHMOD] = N_("cannot change mode of output file"),
- [ASM_E_CANNOT_RENAME] = N_("cannot rename output file"),
- [ASM_E_DUPLSYM] = N_("duplicate symbol"),
- [ASM_E_TYPE] = N_("invalid section type for operation"),
- [ASM_E_IOERROR] = N_("error during output of data"),
- [ASM_E_ENOSUP] = N_("no backend support available"),
-};
-
-const char *
-asm_errmsg (error)
- int error;
-{
- int last_error = global_error;
-
- if (error < -1)
- return _("unknown error");
- if (error == 0 && last_error == 0)
- /* No error. */
- return NULL;
-
- if (error != -1)
- last_error = error;
-
- if (last_error == ASM_E_LIBELF)
- return elf_errmsg (-1);
-
- return _(msgs[last_error]);
-}
diff --git a/src/libasm/asm_fill.c b/src/libasm/asm_fill.c
deleted file mode 100644
index 6b92bc36..00000000
--- a/src/libasm/asm_fill.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/* Determine fill pattern for a section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <libasmP.h>
-#include <system.h>
-
-
-int
-asm_fill (asmscn, bytes, len)
- AsmScn_t *asmscn;
- void *bytes;
- size_t len;
-{
- struct FillPattern *pattern;
- struct FillPattern *old_pattern;
-
- if (asmscn == NULL)
- /* Some earlier error. */
- return -1;
-
- if (bytes == NULL)
- /* Use the default pattern. */
- pattern = (struct FillPattern *) __libasm_default_pattern;
- else
- {
- /* Allocate appropriate memory. */
- pattern = (struct FillPattern *) malloc (sizeof (struct FillPattern)
- + len);
- if (pattern == NULL)
- return -1;
-
- pattern->len = len;
- memcpy (pattern->bytes, bytes, len);
- }
-
- old_pattern = asmscn->pattern;
- asmscn->pattern = pattern;
-
- /* Free the old data structure if we have allocated it. */
- if (old_pattern != __libasm_default_pattern)
- free (old_pattern);
-
- return 0;
-}
diff --git a/src/libasm/asm_getelf.c b/src/libasm/asm_getelf.c
deleted file mode 100644
index edeff13f..00000000
--- a/src/libasm/asm_getelf.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Return ELF descriptor associated with the assembler context.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stddef.h>
-
-#include <libasmP.h>
-
-
-Elf *
-asm_getelf (ctx)
- AsmCtx_t *ctx;
-{
- return ctx != NULL ? ctx->out.elf : NULL;
-}
diff --git a/src/libasm/asm_newabssym.c b/src/libasm/asm_newabssym.c
deleted file mode 100644
index 4e59901a..00000000
--- a/src/libasm/asm_newabssym.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/* Create new ABS symbol.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <libasmP.h>
-#include <system.h>
-
-
-/* Object for special COMMON section. */
-static const AsmScn_t __libasm_abs_scn =
- {
- .data = {
- .main = {
- .scn = ASM_ABS_SCN
- }
- }
- };
-
-
-AsmSym_t *
-asm_newabssym (ctx, name, size, value, type, binding)
- AsmCtx_t *ctx;
- const char *name;
- GElf_Xword size;
- GElf_Addr value;
- int type;
- int binding;
-{
- AsmSym_t *result;
-
- if (ctx == NULL)
- /* Something went wrong before. */
- return NULL;
-
- /* Common symbols are public. Therefore the user must provide a
- name. */
- if (name == NULL)
- {
- __libasm_seterrno (ASM_E_INVALID);
- return NULL;
- }
-
- rwlock_wrlock (ctx->lock);
-
- result = (AsmSym_t *) malloc (sizeof (AsmSym_t));
- if (result == NULL)
- return NULL;
-
- result->scn = (AsmScn_t *) &__libasm_abs_scn;
- result->size = size;
- result->type = type;
- result->binding = binding;
- result->symidx = 0;
- result->strent = ebl_strtabadd (ctx->symbol_strtab, name, 0);
-
- /* The value of an ABS symbol must not be modified. Since there are
- no subsection and the initial offset of the section is 0 we can
- get the alignment recorded by storing it into the offset
- field. */
- result->offset = value;
-
- if (unlikely (ctx->textp))
- {
- /* An absolute symbol can be defined by giving a symbol a
- specific value. */
- if (binding == STB_GLOBAL)
- fprintf (ctx->out.file, "\t.globl %s\n", name);
- else if (binding == STB_WEAK)
- fprintf (ctx->out.file, "\t.weak %s\n", name);
-
- if (type == STT_OBJECT)
- fprintf (ctx->out.file, "\t.type %s,@object\n", name);
- else if (type == STT_FUNC)
- fprintf (ctx->out.file, "\t.type %s,@function\n", name);
-
- fprintf (ctx->out.file, "%s = %llu\n",
- name, (unsigned long long int) value);
-
- if (size != 0)
- fprintf (ctx->out.file, "\t.size %s, %llu\n",
- name, (unsigned long long int) size);
- }
- else
- {
- /* Put the symbol in the hash table so that we can later find it. */
- if (asm_symbol_tab_insert (&ctx->symbol_tab, elf_hash (name), result)
- != 0)
- {
- /* The symbol already exists. */
- __libasm_seterrno (ASM_E_DUPLSYM);
- free (result);
- result = NULL;
- }
- else if (name != NULL && asm_emit_symbol_p (name))
- /* Only count non-private symbols. */
- ++ctx->nsymbol_tab;
- }
-
- rwlock_unlock (ctx->lock);
-
- return result;
-}
diff --git a/src/libasm/asm_newcomsym.c b/src/libasm/asm_newcomsym.c
deleted file mode 100644
index 7a578e0c..00000000
--- a/src/libasm/asm_newcomsym.c
+++ /dev/null
@@ -1,117 +0,0 @@
-/* Create new COMMON symbol.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <libasmP.h>
-#include <system.h>
-
-
-/* Object for special COMMON section. */
-static const AsmScn_t __libasm_com_scn =
- {
- .data = {
- .main = {
- .scn = ASM_COM_SCN
- }
- }
- };
-
-
-AsmSym_t *
-asm_newcomsym (ctx, name, size, align)
- AsmCtx_t *ctx;
- const char *name;
- GElf_Xword size;
- GElf_Addr align;
-{
- AsmSym_t *result;
-
- if (ctx == NULL)
- /* Something went wrong before. */
- return NULL;
-
- /* Common symbols are public. Therefore the user must provide a
- name. */
- if (name == NULL)
- {
- __libasm_seterrno (ASM_E_INVALID);
- return NULL;
- }
-
- rwlock_wrlock (ctx->lock);
-
- result = (AsmSym_t *) malloc (sizeof (AsmSym_t));
- if (result == NULL)
- return NULL;
-
- result->scn = (AsmScn_t *) &__libasm_com_scn;
- result->size = size;
- /* XXX Do we have to allow a different type? */
- result->type = STT_OBJECT;
- /* XXX Do we have to allow a different binding? */
- result->binding = STB_GLOBAL;
- result->symidx = 0;
- result->strent = ebl_strtabadd (ctx->symbol_strtab, name, 0);
-
- /* The value of a COM symbol is the alignment. Since there are no
- subsection and the initial offset of the section is 0 we can get
- the alignment recorded by storing it into the offset field. */
- result->offset = align;
-
- if (unlikely (ctx->textp))
- fprintf (ctx->out.file, "\t.comm %s, %" PRIuMAX ", %" PRIuMAX "\n",
- name, (uintmax_t) size, (uintmax_t) align);
- else
- {
- /* Put the symbol in the hash table so that we can later find it. */
- if (asm_symbol_tab_insert (&ctx->symbol_tab, elf_hash (name), result)
- != 0)
- {
- /* The symbol already exists. */
- __libasm_seterrno (ASM_E_DUPLSYM);
- free (result);
- result = NULL;
- }
- else if (name != NULL && asm_emit_symbol_p (name))
- /* Only count non-private symbols. */
- ++ctx->nsymbol_tab;
- }
-
- rwlock_unlock (ctx->lock);
-
- return result;
-}
diff --git a/src/libasm/asm_newscn.c b/src/libasm/asm_newscn.c
deleted file mode 100644
index ece7f5cb..00000000
--- a/src/libasm/asm_newscn.c
+++ /dev/null
@@ -1,215 +0,0 @@
-/* Create new section in output file.
- Copyright (C) 2002-2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <error.h>
-#include <libintl.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <libasmP.h>
-#include <libelf.h>
-#include <system.h>
-
-
-/* Memory for the default pattern. The type uses a flexible array
- which does work well with a static initializer. So we play some
- dirty tricks here. */
-static const struct
-{
- struct FillPattern pattern;
- char zero;
-} xdefault_pattern =
- {
- .pattern =
- {
- .len = 1
- },
- .zero = '\0'
- };
-const struct FillPattern *__libasm_default_pattern = &xdefault_pattern.pattern;
-
-
-static AsmScn_t *
-text_newscn (AsmScn_t *result, GElf_Word type, GElf_Xword flags)
-{
- /* Buffer where we construct the flag string. */
- char flagstr[sizeof (GElf_Xword) * 8 + 5];
- char *wp = flagstr;
- const char *typestr = "";
-
- /* Only write out the flag string if this is the first time the
- section is selected. Some assemblers cannot cope with the
- .section pseudo-op otherwise. */
- wp = stpcpy (wp, ", \"");
-
- if (flags & SHF_WRITE)
- *wp++ = 'w';
- if (flags & SHF_ALLOC)
- *wp++ = 'a';
- if (flags & SHF_EXECINSTR)
- *wp++ = 'x';
- if (flags & SHF_MERGE)
- *wp++ = 'M';
- if (flags & SHF_STRINGS)
- *wp++ = 'S';
- if (flags & SHF_LINK_ORDER)
- *wp++ = 'L';
-
- *wp++ = '"';
-
- if (type == SHT_PROGBITS)
- typestr = ",@progbits";
- else if (type == SHT_NOBITS)
- typestr = ",@nobits";
-
- /* Terminate the string. */
- *wp = '\0';
-
- fprintf (result->ctx->out.file, "\t.section \"%s\"%s%s\n",
- result->name, flagstr, typestr);
-
- return result;
-}
-
-
-static AsmScn_t *
-binary_newscn (AsmScn_t *result, GElf_Word type, GElf_Xword flags,
- size_t scnname_len)
-{
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
- Elf_Scn *scn;
-
- /* The initial subsection has the number zero. */
- result->subsection_id = 0;
-
- /* We start at offset zero. */
- result->offset = 0;
- /* And generic alignment. */
- result->max_align = 1;
-
- /* No output yet. */
- result->content = NULL;
-
- /* Put the default fill pattern in place. */
- result->pattern = (struct FillPattern *) __libasm_default_pattern;
-
- /* There are no subsections so far. */
- result->subnext = NULL;
-
- /* Add the name to the section header string table. */
- result->data.main.strent = ebl_strtabadd (result->ctx->section_strtab,
- result->name, scnname_len);
- assert (result->data.main.strent != NULL);
-
- /* Create the new ELF section. */
- result->data.main.scn = scn = elf_newscn (result->ctx->out.elf);
- if (scn == NULL)
- {
- free (result);
- __libasm_seterrno (ASM_E_LIBELF);
- return NULL;
- }
-
- /* Not part of a section group (yet). */
- result->data.main.next_in_group = NULL;
-
- /* Remember the flags. */
- shdr = gelf_getshdr (scn, &shdr_mem);
-
- shdr->sh_flags = flags;
- result->type = shdr->sh_type = type;
-
- (void) gelf_update_shdr (scn, shdr);
-
- return result;
-}
-
-
-AsmScn_t *
-asm_newscn (ctx, scnname, type, flags)
- AsmCtx_t *ctx;
- const char *scnname;
- GElf_Word type;
- GElf_Xword flags;
-{
- size_t scnname_len = strlen (scnname) + 1;
- AsmScn_t *result;
-
- /* If no context is given there might be an earlier error. */
- if (ctx == NULL)
- return NULL;
-
- /* Check whether only flags are set which areselectable by the user. */
- if (unlikely ((flags & ~(SHF_WRITE | SHF_ALLOC | SHF_EXECINSTR | SHF_MERGE
- | SHF_STRINGS | SHF_LINK_ORDER)) != 0)
- /* We allow only two section types: data and data without file
- representation. */
- || (type != SHT_PROGBITS && unlikely (type != SHT_NOBITS)))
- {
- __libasm_seterrno (ASM_E_INVALID);
- return NULL;
- }
-
- rwlock_wrlock (ctx->lock);
-
- /* This is a new section. */
- result = (AsmScn_t *) malloc (sizeof (AsmScn_t) + scnname_len);
- if (result != NULL)
- {
- /* Add the name. */
- memcpy (result->name, scnname, scnname_len);
-
- /* Add the reference to the context. */
- result->ctx = ctx;
-
- /* Perform operations according to output mode. */
- result = (unlikely (ctx->textp)
- ? text_newscn (result, type, flags)
- : binary_newscn (result, type, flags, scnname_len));
-
- /* If everything went well finally add the new section to the hash
- table. */
- if (result != NULL)
- {
- result->allnext = ctx->section_list;
- ctx->section_list = result;
- }
- }
-
- rwlock_unlock (ctx->lock);
-
- return result;
-}
-INTDEF(asm_newscn)
diff --git a/src/libasm/asm_newscn_ingrp.c b/src/libasm/asm_newscn_ingrp.c
deleted file mode 100644
index 6ef7cb98..00000000
--- a/src/libasm/asm_newscn_ingrp.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Create new section, which is member of a group, in output file.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-
-#include "libasmP.h"
-
-
-AsmScn_t *
-asm_newscn_ingrp (ctx, scnname, type, flags, grp)
- AsmCtx_t *ctx;
- const char *scnname;
- GElf_Word type;
- GElf_Xword flags;
- AsmScnGrp_t *grp;
-{
- AsmScn_t *result = INTUSE (asm_newscn) (ctx, scnname, type, flags);
-
- if (likely (result != NULL))
- {
- /* We managed to create a section group. Add it to the section
- group. */
- if (grp->nmembers == 0)
- {
- assert (grp->members == NULL);
- grp->members = result->data.main.next_in_group = result;
- }
- else
- {
- result->data.main.next_in_group
- = grp->members->data.main.next_in_group;
- grp->members = grp->members->data.main.next_in_group = result;
- }
-
- ++grp->nmembers;
-
- /* Set the SHF_GROUP flag. */
- if (likely (! ctx->textp))
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (result->data.main.scn, &shdr_mem);
-
- assert (shdr != NULL);
- shdr->sh_flags |= SHF_GROUP;
-
- (void) gelf_update_shdr (result->data.main.scn, shdr);
- }
- }
-
- return result;
-}
diff --git a/src/libasm/asm_newscngrp.c b/src/libasm/asm_newscngrp.c
deleted file mode 100644
index 2808e694..00000000
--- a/src/libasm/asm_newscngrp.c
+++ /dev/null
@@ -1,105 +0,0 @@
-/* Create new section group.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libasmP.h"
-#include <system.h>
-
-
-
-AsmScnGrp_t *
-asm_newscngrp (ctx, grpname, signature, flags)
- AsmCtx_t *ctx;
- const char *grpname;
- AsmSym_t *signature;
- Elf32_Word flags;
-{
- AsmScnGrp_t *result;
- size_t grpname_len = strlen (grpname) + 1;
-
- if (ctx == NULL)
- return NULL;
-
- if ((flags & ~GRP_COMDAT) != 0)
- {
- /* This is not a supported flag. */
- __libasm_seterrno (ASM_E_INVALID);
- return NULL;
- }
-
- result = (AsmScnGrp_t *) malloc (sizeof (AsmScnGrp_t) + grpname_len);
- if (result == NULL)
- return NULL;
-
- result->signature = signature;
- result->members = NULL;
- result->nmembers = 0;
- result->flags = flags;
-
- memcpy (result->name, grpname, grpname_len);
- result->strent = ebl_strtabadd (ctx->section_strtab, result->name,
- grpname_len);
-
- if (unlikely (ctx->textp))
- // XXX TBI. What is the format?
- abort ();
- else
- {
- result->scn = elf_newscn (ctx->out.elf);
- if (result->scn == NULL)
- {
- /* Couldn't allocate a new section. */
- __libasm_seterrno (ASM_E_LIBELF);
- free (result);
- return NULL;
- }
- }
-
- /* Enqueue is the context data structure. */
- if (ctx->ngroups == 0)
- {
- assert (ctx->groups == NULL);
- ctx->groups = result->next = result;
- }
- else
- {
- result->next = ctx->groups->next;
- ctx->groups = ctx->groups->next = result;
- }
- ++ctx->ngroups;
-
- return result;
-}
diff --git a/src/libasm/asm_newsubscn.c b/src/libasm/asm_newsubscn.c
deleted file mode 100644
index a83607ac..00000000
--- a/src/libasm/asm_newsubscn.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Create new subsection section in given section.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-
-#include <libasmP.h>
-#include <system.h>
-
-
-AsmScn_t *
-asm_newsubscn (asmscn, nr)
- AsmScn_t *asmscn;
- unsigned int nr;
-{
- AsmScn_t *runp;
- AsmScn_t *newp;
-
- /* Just return if no section is given. The error must have been
- somewhere else. */
- if (asmscn == NULL)
- return NULL;
-
- /* Determine whether there is already a subsection with this number. */
- runp = asmscn->subsection_id == 0 ? asmscn : asmscn->data.up;
- while (1)
- {
- if (runp->subsection_id == nr)
- /* Found it. */
- return runp;
-
- if (runp->subnext == NULL || runp->subnext->subsection_id > nr)
- break;
-
- runp = runp->subnext;
- }
-
- newp = (AsmScn_t *) malloc (sizeof (AsmScn_t));
- if (newp == NULL)
- return NULL;
-
- /* Same assembler context than the original section. */
- newp->ctx = runp->ctx;
-
- /* User provided the subsectio nID. */
- newp->subsection_id = nr;
-
- /* Inherit the parent's type. */
- newp->type = runp->type;
-
- /* Pointer to the zeroth subsection. */
- newp->data.up = runp->subsection_id == 0 ? runp : runp->data.up;
-
- /* We start at offset zero. */
- newp->offset = 0;
- /* And generic alignment. */
- newp->max_align = 1;
-
- /* No output yet. */
- newp->content = NULL;
-
- /* Inherit the fill pattern from the section this one is derived from. */
- newp->pattern = asmscn->pattern;
-
- /* Enqueue at the right position in the list. */
- newp->subnext = runp->subnext;
- runp->subnext = newp;
-
- return newp;
-}
diff --git a/src/libasm/asm_newsym.c b/src/libasm/asm_newsym.c
deleted file mode 100644
index deca08a4..00000000
--- a/src/libasm/asm_newsym.c
+++ /dev/null
@@ -1,138 +0,0 @@
-/* Define new symbol for current position in given section.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <libasmP.h>
-#include <system.h>
-
-
-AsmSym_t *
-asm_newsym (asmscn, name, size, type, binding)
- AsmScn_t *asmscn;
- const char *name;
- GElf_Xword size;
- int type;
- int binding;
-{
-#define TEMPSYMLEN 10
- char tempsym[TEMPSYMLEN];
- AsmSym_t *result;
-
- if (asmscn == NULL)
- /* Something went wrong before. */
- return NULL;
-
- /* Generate a temporary symbol if necessary. */
- if (name == NULL)
- {
- /* If a local symbol name is created the symbol better have
- local binding. */
- if (binding != STB_LOCAL)
- {
- __libasm_seterrno (ASM_E_INVALID);
- return NULL;
- }
-
- // XXX This requires getting the format from the machine backend. */
- snprintf (tempsym, TEMPSYMLEN, ".L%07u", asmscn->ctx->tempsym_count++);
-
- name = tempsym;
- }
-
- size_t name_len = strlen (name) + 1;
-
- result = (AsmSym_t *) malloc (sizeof (AsmSym_t) + name_len);
- if (result == NULL)
- return NULL;
-
- rwlock_wrlock (asmscn->ctx->lock);
-
- result->scn = asmscn;
- result->offset = asmscn->offset;
- result->size = size;
- result->type = type;
- result->binding = binding;
- result->symidx = 0;
- result->strent = ebl_strtabadd (asmscn->ctx->symbol_strtab,
- memcpy (result + 1, name, name_len), 0);
-
- if (unlikely (asmscn->ctx->textp))
- {
- /* We are only interested in the name and don't need to know whether
- it is a local name or not. */
- /* First print the binding pseudo-op. */
- if (binding == STB_GLOBAL)
- fprintf (asmscn->ctx->out.file, "\t.globl\t%s\n", name);
- else if (binding == STB_WEAK)
- fprintf (asmscn->ctx->out.file, "\t.weak\t%s\n", name);
-
- /* Next the symbol type. */
- if (type == STT_OBJECT)
- fprintf (asmscn->ctx->out.file, "\t.type\t%s,@object\n", name);
- else if (type == STT_FUNC)
- fprintf (asmscn->ctx->out.file, "\t.type\t%s,@function\n", name);
-
- /* Finally the size and the label. */
- fprintf (asmscn->ctx->out.file, "\t.size\t%s,%" PRIuMAX "\n%s:\n",
- name, (uintmax_t) size, name);
- }
- else
- {
- /* Put the symbol in the hash table so that we can later find it. */
- if (asm_symbol_tab_insert (&asmscn->ctx->symbol_tab, elf_hash (name),
- result) != 0)
- {
- /* The symbol already exists. */
- __libasm_seterrno (ASM_E_DUPLSYM);
- /* Note that we can free the entry since there must be no
- reference in the string table to the string. We can only
- fail to insert the symbol into the symbol table if there
- is already a symbol with this name. In this case the
- ebl_strtabadd function would use the previously provided
- name. */
- free (result);
- result = NULL;
- }
- else if (name != tempsym && asm_emit_symbol_p (name))
- /* Only count non-private symbols. */
- ++asmscn->ctx->nsymbol_tab;
- }
-
- rwlock_unlock (asmscn->ctx->lock);
-
- return result;
-}
diff --git a/src/libasm/asm_scngrp_newsignature.c b/src/libasm/asm_scngrp_newsignature.c
deleted file mode 100644
index d87f4a4e..00000000
--- a/src/libasm/asm_scngrp_newsignature.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Update signature of section group.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libasmP.h"
-
-
-int
-asm_scngrp_newsignature (grp, signature)
- AsmScnGrp_t *grp;
- AsmSym_t *signature;
-{
- if (grp == NULL || signature == NULL)
- return 1;
-
- grp->signature = signature;
-
- return 0;
-}
diff --git a/src/libasm/disasm_begin.c b/src/libasm/disasm_begin.c
deleted file mode 100644
index d00852b7..00000000
--- a/src/libasm/disasm_begin.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Create context descriptor for disassembler.
- Copyright (C) 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-
-#include "libasmP.h"
-#include "../libebl/libeblP.h"
-
-
-DisasmCtx_t *
-disasm_begin (Ebl *ebl, Elf *elf, DisasmGetSymCB_t symcb)
-{
- if (ebl == NULL)
- return NULL;
-
- if (ebl->disasm == NULL)
- {
- __libasm_seterrno (ASM_E_ENOSUP);
- return NULL;
- }
-
- DisasmCtx_t *ctx = (DisasmCtx_t *) malloc (sizeof (DisasmCtx_t));
- if (ctx == NULL)
- {
- __libasm_seterrno (ASM_E_NOMEM);
- return NULL;
- }
-
- ctx->ebl = ebl;
- ctx->elf = elf;
- ctx->symcb = symcb;
-
- return ctx;
-}
diff --git a/src/libasm/disasm_cb.c b/src/libasm/disasm_cb.c
deleted file mode 100644
index eb3689c7..00000000
--- a/src/libasm/disasm_cb.c
+++ /dev/null
@@ -1,179 +0,0 @@
-/* Copyright (C) 2005, 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#include "libasmP.h"
-#include "../libebl/libeblP.h"
-
-
-struct symtoken
-{
- DisasmCtx_t *ctx;
- void *symcbarg;
-};
-
-
-static int
-default_elf_getsym (GElf_Addr addr, Elf32_Word scnndx, GElf_Addr value,
- char **buf, size_t *buflen, void *arg)
-{
- struct symtoken *symtoken = (struct symtoken *) arg;
-
- /* First try the user provided function. */
- if (symtoken->ctx->symcb != NULL)
- {
- int res = symtoken->ctx->symcb (addr, scnndx, value, buf, buflen,
- symtoken->symcbarg);
- if (res >= 0)
- return res;
- }
-
- // XXX Look up in ELF file.
-
- return -1;
-}
-
-
-struct symaddrpair
-{
- GElf_Addr addr;
- const char *name;
-};
-
-
-static void
-read_symtab_exec (DisasmCtx_t *ctx)
-{
- /* We simply use all we can get our hands on. This will produce
- some duplicate information but this is no problem, we simply
- ignore the latter definitions. */
- Elf_Scn *scn= NULL;
- while ((scn = elf_nextscn (ctx->elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- Elf_Data *data;
- if (shdr == NULL || shdr->sh_type != SHT_SYMTAB
- || (data = elf_getdata (scn, NULL)) == NULL)
- continue;
-
- int xndxscnidx = elf_scnshndx (scn);
- Elf_Data *xndxdata = NULL;
- if (xndxscnidx > 0)
- xndxdata = elf_getdata (elf_getscn (ctx->elf, xndxscnidx), NULL);
-
- /* Iterate over all symbols. Add all defined symbols. */
- int nsyms = shdr->sh_size / shdr->sh_entsize;
- for (int cnt = 1; cnt < nsyms; ++cnt)
- {
- Elf32_Word xshndx;
- GElf_Sym sym_mem;
- GElf_Sym *sym = gelf_getsymshndx (data, xndxdata, cnt, &sym_mem,
- &xshndx);
- if (sym == NULL)
- continue;
-
- /* Undefined symbols are useless here. */
- if (sym->st_shndx == SHN_UNDEF)
- continue;
-
-
- }
- }
-}
-
-
-static void
-read_symtab (DisasmCtx_t *ctx)
-{
- /* Find the symbol table(s). */
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr = gelf_getehdr (ctx->elf, &ehdr_mem);
- if (ehdr == NULL)
- return;
-
- switch (ehdr->e_type)
- {
- case ET_EXEC:
- case ET_DYN:
- read_symtab_exec (ctx);
- break;
-
- case ET_REL:
- // XXX Handle
- break;
-
- default:
- break;
- }
-}
-
-
-static int
-null_elf_getsym (GElf_Addr addr __attribute__ ((unused)),
- Elf32_Word scnndx __attribute__ ((unused)),
- GElf_Addr value __attribute__ ((unused)),
- char **buf __attribute__ ((unused)),
- size_t *buflen __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
- return -1;
-}
-
-
-int
-disasm_cb (DisasmCtx_t *ctx, const uint8_t **startp, const uint8_t *end,
- GElf_Addr addr, const char *fmt, DisasmOutputCB_t outcb,
- void *outcbarg, void *symcbarg)
-{
- struct symtoken symtoken;
- DisasmGetSymCB_t getsym = ctx->symcb ?: null_elf_getsym;
-
- if (ctx->elf != NULL)
- {
- /* Read all symbols of the ELF file and stuff them into a hash
- table. The key is the address and the section index. */
- read_symtab (ctx);
-
- symtoken.ctx = ctx;
- symtoken.symcbarg = symcbarg;
-
- symcbarg = &symtoken;
-
- getsym = default_elf_getsym;
- }
-
- return ctx->ebl->disasm (startp, end, addr, fmt, outcb, getsym, outcbarg,
- symcbarg);
-}
-INTDEF (disasm_cb)
diff --git a/src/libasm/disasm_end.c b/src/libasm/disasm_end.c
deleted file mode 100644
index 68780308..00000000
--- a/src/libasm/disasm_end.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Release descriptor for disassembler.
- Copyright (C) 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-
-#include "libasmP.h"
-
-
-int
-disasm_end (DisasmCtx_t *ctx)
-{
- free (ctx);
-
- return 0;
-}
diff --git a/src/libasm/disasm_str.c b/src/libasm/disasm_str.c
deleted file mode 100644
index 5b0bb299..00000000
--- a/src/libasm/disasm_str.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Copyright (C) 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2007.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#include "libasmP.h"
-
-
-struct buffer
-{
- char *buf;
- size_t len;
-};
-
-
-static int
-buffer_cb (char *str, size_t len, void *arg)
-{
- struct buffer *buffer = (struct buffer *) arg;
-
- if (len > buffer->len)
- /* Return additional needed space. */
- return len - buffer->len;
-
- buffer->buf = mempcpy (buffer->buf, str, len);
- buffer->len = len;
-
- return 0;
-}
-
-
-int
-disasm_str (DisasmCtx_t *ctx, const uint8_t **startp, const uint8_t *end,
- GElf_Addr addr, const char *fmt, char **bufp, size_t len,
- void *symcbarg)
-{
- struct buffer buffer = { .buf = *bufp, .len = len };
-
- int res = INTUSE(disasm_cb) (ctx, startp, end, addr, fmt, buffer_cb, &buffer,
- symcbarg);
- *bufp = buffer.buf;
- return res;
-}
diff --git a/src/libasm/libasm.h b/src/libasm/libasm.h
deleted file mode 100644
index 5c612243..00000000
--- a/src/libasm/libasm.h
+++ /dev/null
@@ -1,202 +0,0 @@
-/* Interface for libasm.
- Copyright (C) 2002, 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBASM_H
-#define _LIBASM_H 1
-
-#include <stdbool.h>
-#include <stdint.h>
-
-#include <libebl.h>
-
-
-/* Opaque type for the assembler context descriptor. */
-typedef struct AsmCtx AsmCtx_t;
-
-/* Opaque type for a section. */
-typedef struct AsmScn AsmScn_t;
-
-/* Opaque type for a section group. */
-typedef struct AsmScnGrp AsmScnGrp_t;
-
-/* Opaque type for a symbol. */
-typedef struct AsmSym AsmSym_t;
-
-
-/* Opaque type for the disassembler context descriptor. */
-typedef struct DisasmCtx DisasmCtx_t;
-
-/* Type used for callback functions to retrieve symbol name. The
- symbol reference is in the section designated by the second parameter
- at an offset described by the first parameter. The value is the
- third parameter. */
-typedef int (*DisasmGetSymCB_t) (GElf_Addr, Elf32_Word, GElf_Addr, char **,
- size_t *, void *);
-
-/* Output function callback. */
-typedef int (*DisasmOutputCB_t) (char *, size_t, void *);
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Create output file and return descriptor for assembler context. If
- TEXTP is true the output is an assembler format text file.
- Otherwise an object file is created. The MACHINE parameter
- corresponds to an EM_ constant from <elf.h>, KLASS specifies the
- class (32- or 64-bit), and DATA specifies the byte order (little or
- big endian). */
-extern AsmCtx_t *asm_begin (const char *fname, Ebl *ebl, bool textp);
-
-/* Abort the operation on the assembler context and free all resources. */
-extern int asm_abort (AsmCtx_t *ctx);
-
-/* Finalize output file and free all resources. */
-extern int asm_end (AsmCtx_t *ctx);
-
-
-/* Return handle for the named section. If it was not used before
- create it. */
-extern AsmScn_t *asm_newscn (AsmCtx_t *ctx, const char *scnname,
- GElf_Word type, GElf_Xword flags);
-
-
-/* Similar to 'asm_newscn', but make it part of section group GRP. */
-extern AsmScn_t *asm_newscn_ingrp (AsmCtx_t *ctx, const char *scnname,
- GElf_Word type, GElf_Xword flags,
- AsmScnGrp_t *grp);
-
-/* Create new subsection NR in the given section. */
-extern AsmScn_t *asm_newsubscn (AsmScn_t *asmscn, unsigned int nr);
-
-
-/* Return handle for new section group. The signature symbol can be
- set later. */
-extern AsmScnGrp_t *asm_newscngrp (AsmCtx_t *ctx, const char *grpname,
- AsmSym_t *signature, Elf32_Word flags);
-
-/* Set or overwrite signature symbol for group. */
-extern int asm_scngrp_newsignature (AsmScnGrp_t *grp, AsmSym_t *signature);
-
-
-/* Add zero terminated string STR of size LEN to (sub)section ASMSCN. */
-extern int asm_addstrz (AsmScn_t *asmscn, const char *str, size_t len);
-
-/* Add 8-bit signed integer NUM to (sub)section ASMSCN. */
-extern int asm_addint8 (AsmScn_t *asmscn, int8_t num);
-
-/* Add 8-bit unsigned integer NUM to (sub)section ASMSCN. */
-extern int asm_adduint8 (AsmScn_t *asmscn, uint8_t num);
-
-/* Add 16-bit signed integer NUM to (sub)section ASMSCN. */
-extern int asm_addint16 (AsmScn_t *asmscn, int16_t num);
-
-/* Add 16-bit unsigned integer NUM to (sub)section ASMSCN. */
-extern int asm_adduint16 (AsmScn_t *asmscn, uint16_t num);
-
-/* Add 32-bit signed integer NUM to (sub)section ASMSCN. */
-extern int asm_addint32 (AsmScn_t *asmscn, int32_t num);
-
-/* Add 32-bit unsigned integer NUM to (sub)section ASMSCN. */
-extern int asm_adduint32 (AsmScn_t *asmscn, uint32_t num);
-
-/* Add 64-bit signed integer NUM to (sub)section ASMSCN. */
-extern int asm_addint64 (AsmScn_t *asmscn, int64_t num);
-
-/* Add 64-bit unsigned integer NUM to (sub)section ASMSCN. */
-extern int asm_adduint64 (AsmScn_t *asmscn, uint64_t num);
-
-
-/* Add signed little endian base 128 integer NUM to (sub)section ASMSCN. */
-extern int asm_addsleb128 (AsmScn_t *asmscn, int32_t num);
-
-/* Add unsigned little endian base 128 integer NUM to (sub)section ASMSCN. */
-extern int asm_adduleb128 (AsmScn_t *asmscn, uint32_t num);
-
-
-/* Define new symbol NAME for current position in given section ASMSCN. */
-extern AsmSym_t *asm_newsym (AsmScn_t *asmscn, const char *name,
- GElf_Xword size, int type, int binding);
-
-
-/* Define new common symbol NAME with given SIZE and alignment. */
-extern AsmSym_t *asm_newcomsym (AsmCtx_t *ctx, const char *name,
- GElf_Xword size, GElf_Addr align);
-
-/* Define new common symbol NAME with given SIZE, VALUE, TYPE, and BINDING. */
-extern AsmSym_t *asm_newabssym (AsmCtx_t *ctx, const char *name,
- GElf_Xword size, GElf_Addr value,
- int type, int binding);
-
-
-/* Align (sub)section offset according to VALUE. */
-extern int asm_align (AsmScn_t *asmscn, GElf_Word value);
-
-/* Set the byte pattern used to fill gaps created by alignment. */
-extern int asm_fill (AsmScn_t *asmscn, void *bytes, size_t len);
-
-
-/* Return ELF descriptor created for the output file of the given context. */
-extern Elf *asm_getelf (AsmCtx_t *ctx);
-
-
-/* Return error code of last failing function call. This value is kept
- separately for each thread. */
-extern int asm_errno (void);
-
-/* Return error string for ERROR. If ERROR is zero, return error string
- for most recent error or NULL is none occurred. If ERROR is -1 the
- behaviour is similar to the last case except that not NULL but a legal
- string is returned. */
-extern const char *asm_errmsg (int __error);
-
-
-/* Create context descriptor for disassembler. */
-extern DisasmCtx_t *disasm_begin (Ebl *ebl, Elf *elf, DisasmGetSymCB_t symcb);
-
-/* Release descriptor for disassembler. */
-extern int disasm_end (DisasmCtx_t *ctx);
-
-/* Produce of disassembly output for given memory, store text in
- provided buffer. */
-extern int disasm_str (DisasmCtx_t *ctx, const uint8_t **startp,
- const uint8_t *end, GElf_Addr addr, const char *fmt,
- char **bufp, size_t len, void *symcbarg);
-
-/* Produce disassembly output for given memory and output it using the
- given callback functions. */
-extern int disasm_cb (DisasmCtx_t *ctx, const uint8_t **startp,
- const uint8_t *end, GElf_Addr addr, const char *fmt,
- DisasmOutputCB_t outcb, void *outcbarg, void *symcbarg);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* libasm.h */
diff --git a/src/libasm/libasm.map b/src/libasm/libasm.map
deleted file mode 100644
index a36cdbfe..00000000
--- a/src/libasm/libasm.map
+++ /dev/null
@@ -1,38 +0,0 @@
-ELFUTILS_1.0 {
- global:
- asm_abort;
- asm_addint16;
- asm_addint32;
- asm_addint64;
- asm_addint8;
- asm_addsleb128;
- asm_addstrz;
- asm_adduint16;
- asm_adduint32;
- asm_adduint64;
- asm_adduint8;
- asm_adduleb128;
- asm_align;
- asm_begin;
- asm_end;
- asm_errmsg;
- asm_errno;
- asm_fill;
- asm_getelf;
- asm_newabssym;
- asm_newcomsym;
- asm_newscn;
- asm_newscn_ingrp;
- asm_newscngrp;
- asm_newsubscn;
- asm_newsym;
- asm_scngrp_newsignature;
-
- disasm_begin;
- disasm_cb;
- disasm_end;
- disasm_str;
-
- local:
- *;
-};
diff --git a/src/libasm/libasmP.h b/src/libasm/libasmP.h
deleted file mode 100644
index 49b64846..00000000
--- a/src/libasm/libasmP.h
+++ /dev/null
@@ -1,307 +0,0 @@
-/* Internal definitions for libasm.
- Copyright (C) 2002, 2004, 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBASMP_H
-#define _LIBASMP_H 1
-
-#include <stdio.h>
-
-#include <libasm.h>
-
-/* gettext helper macros. */
-#define _(Str) dgettext ("elfutils", Str)
-
-
-/* Known error codes. */
-enum
- {
- ASM_E_NOERROR,
- ASM_E_NOMEM, /* No more memory. */
- ASM_E_CANNOT_CREATE, /* Output file cannot be created. */
- ASM_E_INVALID, /* Invalid parameters. */
- ASM_E_CANNOT_CHMOD, /* Cannot change mode of output file. */
- ASM_E_CANNOT_RENAME, /* Cannot rename output file. */
- ASM_E_DUPLSYM, /* Duplicate symbol definition. */
- ASM_E_LIBELF, /* Refer to error in libelf. */
- ASM_E_TYPE, /* Invalid section type for operation. */
- ASM_E_IOERROR, /* Error during output of data. */
- ASM_E_ENOSUP, /* No backend support. */
- ASM_E_NUM /* Keep this entry as the last. */
- };
-
-
-/* Special sections. */
-#define ASM_ABS_SCN ((Elf_Scn *) 1)
-#define ASM_COM_SCN ((Elf_Scn *) 2)
-
-
-/* And the hash table for symbols. */
-#include <symbolhash.h>
-
-
-/* Descriptor for a section. */
-struct AsmScn
-{
- /* The underlying assembler context. */
- AsmCtx_t *ctx;
-
- /* Subsection ID. */
- unsigned int subsection_id;
-
- /* Section type. */
- GElf_Word type;
-
- union
- {
- /* Data only stored in the record for subsection zero. */
- struct
- {
- /* The ELF section. */
- Elf_Scn *scn;
-
- /* Entry in the section header string table. */
- struct Ebl_Strent *strent;
-
- /* Next member of group. */
- struct AsmScn *next_in_group;
- } main;
-
- /* Pointer to the record for subsection zero. */
- AsmScn_t *up;
- } data;
-
- /* Current offset in the (sub)section. */
- GElf_Off offset;
- /* Maximum alignment of the section so far. */
- GElf_Word max_align;
-
- /* Section content. */
- struct AsmData
- {
- /* Currently used number of bytes in the block. */
- size_t len;
-
- /* Number of bytes allocated. */
- size_t maxlen;
-
- /* Pointer to the next block. */
- struct AsmData *next;
-
- /* The actual data. */
- char data[flexarr_size];
- } *content;
-
- /* Fill pattern. */
- struct FillPattern
- {
- size_t len;
- char bytes[flexarr_size];
- } *pattern;
-
- /* Next subsection. */
- AsmScn_t *subnext;
-
- /* List of all allocated sections. */
- AsmScn_t *allnext;
-
- /* Name of the section. */
- char name[flexarr_size];
-};
-
-
-/* Descriptor used for the assembling session. */
-struct AsmCtx
-{
- /* File descriptor of the temporary file. */
- int fd;
-
- /* True if text output is wanted. */
- bool textp;
-
- /* Output file handle. */
- union
- {
- /* ELF descriptor of the temporary file. */
- Elf *elf;
- /* I/O stream for text output. */
- FILE *file;
- } out;
-
-
- /* List with defined sections. */
- AsmScn_t *section_list;
- /* Section header string table. */
- struct Ebl_Strtab *section_strtab;
-
- /* Table with defined symbols. */
- asm_symbol_tab symbol_tab;
- /* Number of symbols in the table. */
- unsigned int nsymbol_tab;
- /* Symbol string table. */
- struct Ebl_Strtab *symbol_strtab;
-
- /* List of section groups. */
- struct AsmScnGrp *groups;
- /* Number of section groups. */
- size_t ngroups;
-
- /* Current required alignment for common symbols. */
- GElf_Word common_align;
-
- /* Lock to handle multithreaded programs. */
- rwlock_define (,lock);
-
- /* Counter for temporary symbols. */
- unsigned int tempsym_count;
-
- /* Name of the output file. */
- char *fname;
- /* The name of the temporary file. */
- char tmp_fname[flexarr_size];
-};
-
-
-/* Descriptor for a symbol. */
-struct AsmSym
-{
- /* Reference to the section which contains the symbol. */
- AsmScn_t *scn;
-
- /* Type of the symbol. */
- int8_t type;
- /* Binding of the symbol. */
- int8_t binding;
-
- /* Size of the symbol. */
- GElf_Xword size;
-
- /* Offset in the section. */
- GElf_Off offset;
-
- /* Symbol table index of the symbol in the symbol table. */
- size_t symidx;
-
- /* Reference to name of the symbol. */
- struct Ebl_Strent *strent;
-};
-
-
-/* Descriptor for section group. */
-struct AsmScnGrp
-{
- /* Entry in the section header string table. */
- struct Ebl_Strent *strent;
-
- /* The ELF section. */
- Elf_Scn *scn;
-
- /* The signature. */
- struct AsmSym *signature;
-
- /* First member. */
- struct AsmScn *members;
- /* Number of members. */
- size_t nmembers;
-
- /* Flags. */
- Elf32_Word flags;
-
- /* Next group. */
- struct AsmScnGrp *next;
-
- /* Name of the section group. */
- char name[flexarr_size];
-};
-
-
-/* Descriptor for disassembler. */
-struct DisasmCtx
-{
- /* Handle for the backend library with the disassembler routine. */
- Ebl *ebl;
-
- /* ELF file containing all the data passed to the function. This
- allows to look up symbols. */
- Elf *elf;
-
- /* Callback function to determine symbol names. */
- DisasmGetSymCB_t symcb;
-};
-
-
-/* The default fill pattern: one zero byte. */
-extern const struct FillPattern *__libasm_default_pattern
- attribute_hidden;
-
-
-/* Ensure there are at least LEN bytes available in the output buffer
- for ASMSCN. */
-extern int __libasm_ensure_section_space (AsmScn_t *asmscn, size_t len)
- internal_function;
-
-/* Free all resources associated with the assembler context. */
-extern void __libasm_finictx (AsmCtx_t *ctx) internal_function;
-
-/* Set error code. */
-extern void __libasm_seterrno (int err) internal_function;
-
-/* Return handle for the named section. If it was not used before
- create it. */
-extern AsmScn_t *__asm_newscn_internal (AsmCtx_t *ctx, const char *scnname,
- GElf_Word type, GElf_Xword flags)
- attribute_hidden;
-
-
-/* Internal aliases of the asm_addintXX functions. */
-extern int __asm_addint8_internal (AsmScn_t *asmscn, int8_t num)
- attribute_hidden;
-extern int __asm_addint16_internal (AsmScn_t *asmscn, int16_t num)
- attribute_hidden;
-extern int __asm_addint32_internal (AsmScn_t *asmscn, int32_t num)
- attribute_hidden;
-extern int __asm_addint64_internal (AsmScn_t *asmscn, int64_t num)
- attribute_hidden;
-
-
-/* Produce disassembly output for given memory and output it using the
- given callback functions. */
-extern int __disasm_cb_internal (DisasmCtx_t *ctx, const uint8_t **startp,
- const uint8_t *end, GElf_Addr addr,
- const char *fmt, DisasmOutputCB_t outcb,
- void *outcbarp, void *symcbarg)
- attribute_hidden;
-
-
-/* Test whether given symbol is an internal symbol and if yes, whether
- we should nevertheless emit it in the symbol table. */
-// XXX The second part should probably be controlled by an option which
-// isn't implemented yet
-// XXX Also, the format will change with the backend.
-#define asm_emit_symbol_p(name) (strncmp (name, ".L", 2) != 0)
-
-#endif /* libasmP.h */
diff --git a/src/libasm/symbolhash.c b/src/libasm/symbolhash.c
deleted file mode 100644
index 1c954182..00000000
--- a/src/libasm/symbolhash.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Symbol hash table implementation.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-
-#include <libasmP.h>
-#include <libebl.h>
-
-/* Definitions for the symbol hash table. */
-#define TYPE AsmSym_t *
-#define NAME asm_symbol_tab
-#define ITERATE 1
-#define REVERSE 1
-#define COMPARE(a, b) \
- strcmp (ebl_string ((a)->strent), ebl_string ((b)->strent))
-
-#define next_prime __libasm_next_prime
-extern size_t next_prime (size_t) attribute_hidden;
-
-#include "../lib/dynamicsizehash.c"
-
-#undef next_prime
-#define next_prime attribute_hidden __libasm_next_prime
-#include "../lib/next_prime.c"
diff --git a/src/libasm/symbolhash.h b/src/libasm/symbolhash.h
deleted file mode 100644
index a5bceffb..00000000
--- a/src/libasm/symbolhash.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef SYMBOLHASH_H
-#define SYMBOLHASH_H 1
-
-/* Definitions for the symbol hash table. */
-#define TYPE AsmSym_t *
-#define NAME asm_symbol_tab
-#define ITERATE 1
-#define COMPARE(a, b) \
- strcmp (ebl_string ((a)->strent), ebl_string ((b)->strent))
-#include <dynamicsizehash.h>
-
-#endif /* symbolhash.h */
diff --git a/src/libcpu/ChangeLog b/src/libcpu/ChangeLog
deleted file mode 100644
index a20f4407..00000000
--- a/src/libcpu/ChangeLog
+++ /dev/null
@@ -1,393 +0,0 @@
-2014-04-13 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (i386_gendis_LDADD): Remove libmudflap.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2012-10-10 Roland McGrath <roland@hack.frob.com>
-
- * Makefile.am (%_defs, $(srcdir)/%_dis.h): Redirect to temp file,
- mv into place with separate command.
-
-2012-06-26 Roland McGrath <roland@hack.frob.com>
-
- * Makefile.am [!MAINTAINER_MODE] ($(srcdir)/%_dis.h): New rule.
-
-2012-02-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (CLEANFILES): Move %_dis.h to...
- (MAINTAINERCLEANFILES): here.
-
-2012-01-21 Ulrich Drepper <drepper@gmail.com>
-
- * i386_disasm.c (ADD_NSTRING): Define.
- (i386_disasm): Print color codes in the appropriate places.
-
-2011-10-16 Roland McGrath <roland@hack.frob.com>
-
- * Makefile.am (libcpu_i386_a_SOURCES): Add i386_dis.h.
- (libcpu_x86_64_a_SOURCES): Add x86_64_dis.h.
- (i386_disasm.o, x86_64_disasm.o): Depend on those in $(srcdir).
- (%_dis.h): Renamed target pattern to ...
- ($(srcdir)/%_dis.h): ... this.
- (noinst_HEADERS, noinst_PROGRAMS): Put under [MAINTAINER_MODE].
-
-2010-08-16 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (%_defs): New pattern rule.
- (%_dis.h, %.mnemonics): Define as pattern rules using %_defs input.
- (CLEANFILES): Include all those files.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
-2009-04-14 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Add -fdollars-in-identifiers; it is not the
- default on every machine.
-
-2009-01-23 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (i386_parse_CFLAGS): Use quotes around command
- substitution that can produce leading whitespace.
-
-2009-01-01 Ulrich Drepper <drepper@redhat.com>
-
- * i386_parse.y (instrtable_out): Optimize match_data table by not
- emitting 0xff masks for leading bytes.
- * i386_disasm.c (i386_disasm): Adjust reader of match_data.
-
- * i386_disasm.c (i386_disasm): Reset bufcnt when not matched. We
- don't expect snprintf to fail.
-
-2008-12-31 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Add dppd, dpps, insertps, movntdqa, mpsadbw, packusdw,
- pblendvb, pblendw, pcmpeqq, pcmpestri, pcmpestrm, pcmpistri, pcmpistrm,
- pcmpgtq, phminposuw, pinsrb, pinsrd, pmaxsb, pmaxsd, pmaxud, pmaxuw,
- pminsb, pminsd, pminud, pminuw, pmovsxbw, pmovsxbd, pmovsxbq, pmovsxwd,
- pmovsxwq, pmovsxdq, pmovzxbw, pmovzxbd, pmovzxbq, pmovzxwd, pmovzxwq,
- pmovzxdq, pmuldq, pmulld, popcnt, ptest, roundss, roundps, roundpd,
- and roundsd opcodes.
-
- * i386_disasm.c (i386_disasm): Correct resizing of buffer.
-
- * i386_parse.y (struct argstring): Add off element.
- (off_op_str): New global variable.
- (print_op_str): Print strings as concatenated strings. Keep track
- of index and length. Update ->off element.
- (print_op_str_idx): New function.
- (instrtable_out): Mark op%d_fct as const.
- Emit two tables for the strings: the string itself (op%d_str) and the
- index table (op%d_str_idx).
- * i386_disasm.c (i386_disasm): Adjust for new op%d_str definition.
-
- * i386_disasm.c [X86_64] (i386_disasm): Handle rex prefix when
- printing only prefix.
-
- * i386_disasm.c (i386_disasm): Minor optimizations.
-
- * i386_parse.y (instrtable_out): No need to emit index, the reader can
- keep track.
- * i386_disasm.c (i386_disasm): The index is not emitted anymore, no
- need to skip it.
-
- * i386_disasm.c (amd3dnow): Mark as const.
-
- * defs/i386: Add blendvpd and blendvps opcodes.
-
-2008-12-30 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Add blendpd and blendps opcodes.
-
-2008-12-19 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Add entry for AMD 3DNOW.
- * i386_disasm.c: Implement AMD 3DNOW disassembly.
-
-2008-12-17 Ulrich Drepper <drepper@redhat.com>
-
- * i386_disasm.c (i386_disasm): If instruction matches prefix,
- undoing the prefix match finishes the instruction.
-
-2008-01-21 Roland McGrath <roland@redhat.com>
-
- * defs/i386: Fix typo in comment.
- * i386_disasm.c (i386_disasm): Handle cltq, cqto.
-
- * i386_parse.y: Add sanity check for NMNES macro value.
- * Makefile.am (i386_parse.o): Fix target in dependency rule.
- (i386_parse.h): New target with empty commands.
- (i386_lex.o): Depend on it in place of i386_parse.c.
-
-2008-01-21 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Remove defs/x86_64.
-
-2008-01-14 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Add fixes for opcodes with register number in opcode,
- 64-bit immediate forms, nop with rex.B.
- * i386_data.h [X86_64] (FCT_imm64$w): New function.
- (FCT_oreg): New function.
- (FCT_oreg$w): New function.
- * i386_disasm.c (i386_disasm): Reinitialize fmt always before
- starting the loop to process the string. Handle 0x90 special for
- x86-64.
- * i386_parse.y (fillin_arg): Expand synonyms before concatening to
- form the function name.
-
-2008-01-11 Ulrich Drepper <drepper@redhat.com>
-
- * i386_disasm.c (struct output_buffer): Remove symcb and symcbarg.
- (i386_disasm): Remove appropriate initializers.
- Use symcb to lookup symbol strings.
-
- * i386_disasm.c (struct output_buffer): Add labelbuf, labelbufsize,
- symaddr_use, and symaddr fields.
- (i386_disasm): Remove labelbuf and labelbufsize variables.
- Add back %e format. Implement %a and %l formats.
-
- * i386_data.h (general_mod$r_m): Set symaddr_use and symaddr for %rip
- base addressing.
-
- * i386_disasm.c (i386_disasm): Resize output buffer if necessary.
- Optimize output_data initialization. Free buffers before return.
- (struct output_data): Remove op1str field. Adjust code.
- (i386_disasm): Store final NUL btye at end of functions.
-
-2008-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * i386_data.h (FCT_crdb): New function.
- (FCT_ccc): Use FCT_crdb.
- (FCT_ddd): Likewise.
-
- * defs/i386: Fix a few instructions with immediate arguments.
-
- * i386_disasm.c: Rewrite interface to callback functions for operands
- to take a single pointer to a structure.
- * i386_data.h: Adjust all functions.
-
-2008-01-08 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Enable x86-64 again.
- * defs/i386: Lots of changes for x86-64.
- * i386_data.h: Add support for use in x86-64 disassembler.
- * i386_disasm.c: Likewise.
- * i386_parse.y: Likewise.
- * defs/x86_64: Removed.
-
-2008-01-04 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Cleanups, remove masks which are not needed.
- Add remaining Intel opcodes.
- * i386_data.h (FCT_imm8): Check for input buffer overrun.
- * i386_disasm.c (i386_disasm): Likewise.
- * i386_parse.y: Remove suffixes which are not needed anymore.
-
-2008-01-03 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Add yet more SSE instructions.
-
-2008-01-02 Ulrich Drepper <drepper@redhat.com>
-
- * i386_disasm.c (i386_disasm): Extend matcher to allow tables to
- contain instructions with prefixes.
- * defs/i386: Use for many SSE operations.
- * i386_data.h (FCT_mmxreg2): Removed.
-
-2008-01-01 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: More 0f prefix support.
- * i386_data.h (FCT_mmxreg): Implement.
- (FCT_mmxreg2): Implement.
- (FCT_mmreg): Remove.
- * i386_disasm.c (i386_disasm): More special instructions.
- Fix tttn suffix for cmov.
- * i386_parse.y: Simplify test for mod/r_m mode.
-
-2007-12-31 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Fix order or arguments for mov of control/debug registers.
- * i386_data.h (FCT_ccc): Implement
- (FCT_ddd): Implement
-
-2007-12-30 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Fix 0f groups 6 and 7.
- * i386_data.c (FCT_mod$16r_m): Implement.
- * i386_disasm.c (i386_disasm): Third parameter can also have string.
-
-2007-12-29 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Add lots of floating point ops.
- * i386_data.h (FCT_fmod$fr_m): Removed.
- (FCT_freg): Implement.
- * i386_disasm.c (i386_disasm): Implement suffix_D.
- * i386_parse.y: Emit suffix_D.
-
- * defs/i386: Use rel instead of dispA.
- Fix lcall, dec, div, idiv, imul, inc, jmp, ljmp, mul, neg, not, push,
- test.
-
- * i386_data.h (FCT_dispA): Removed.
- (FCT_ds_xx): Add test for end of input buffer.
- * i386_disasm.c (ABORT_ENTRY): Removed.
- (i386_disasm): Fix handling of SIB. Pass correct address value to
- operand callbacks.
-
- * Makefile.am (*.mnemonics): Filter out INVALID entry.
- * defs/i386: Define imms8 and use in appropriate places.
- Add INVALID entries for special opcodes with special mnemonics.
- Fix int3. Fix typo in shl. Correct xlat.
- * i386_data.h (FCT_ds_xx): New function.
- (FCT_ds_si): Use it.
- (FCT_ds_bx): New function.
- (FCT_imms8): New function.
- * i386_disasm.c (MNE_INVALID): Define.
- (i386_disasm): Handle invalid opcodes in mnemonics printing, not
- separately. Fix address value passed to operand handlers.
- * i386_parse.y (bx_reg): Define.
- (instrtable_out): Handle INVALID entries differently, just use
- MNE_INVALID value for .mnemonic.
-
-2007-12-28 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Fix shift and mov immediate instructions.
- * i386_data.h (FCT_imm16): Implement.
-
- * defs/i386: Use absval instead of abs of lcall and ljmp.
- Add parameters for cmps. Fix test and mov immediate.
- * i386_data.h: Implement FCT_absval.
- * i386_disasm.c: Handle data16 for suffix_w and FCT_imm.
-
- * defs/i386: Move entries with 0x9b prefix together.
- * i386_disasm.c (i386_disasm): Fix recognizing insufficient bytes in
- input. Handle data16 with suffix_W.
-
- * i386_data.h (FCT_*): Add end parameter to all functions. Check
- before using more bytes.
- (FCT_sel): Implement.
- * i386_disasm.c (i386_disasm): Better handle end of input buffer.
- Specal opcode 0x99.
-
- * Makefile.am: Use m4 to preprocess defs/* files.
- * defs/i386: Adjust appropriately.
- * i386_data.c (FCT_ax): Implement.
- (FCT_ax$w): Use FCT_ax.
- * i386_disasm.c (ADD_STRING): Use _len instead of len.
- (i386_disasm): If no instruction can be matched because of lack of
- input and prefixes have been matched, print prefixes.
- Recognize abort entries.
- Handle special cases.
- * i386_gendis.c: Recognize - input file name.
- * i386_lex.c: Recognize INVALID token.
- * i386_parse.y: Handle INVALID token input.
-
- * defs/i386: Fix mov, pop.
- * i386_data.h (FCT_sreg3): Implement.
-
-2007-12-27 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Fix adc, add, cmp, or, sbb, sub, xchg, xor.
- * i386_data.h (FCT_imms): New function.
- (FCT_imm$s): Use FCT_imms for handling of signed values.
- (FCT_imm8): Sign extend values.
- * i386_disasm.c (i386_disasm): Implement suffix_w0.
- * i386_parse.y: Emit suffix w0.
-
- * i386_data.h (FCT_disp8): Add 0x prefix.
- (FCT_ds_si): Implement.
- * i386_disasm.c (i386_disasm): Increment addr for invalid prefixes.
- Implement tttn suffix.
- * i386_parse.y: Emit tttn suffix definition.
-
-2007-12-26 Ulrich Drepper <drepper@redhat.com>
-
- * i386_data.h (struct instr_enc): Use suffix field.
- (FCT_dx): Fill in body.
- (FCT_es_di): Likewise.
- (FCT_imm$s): Sign-extended byte values.
- * i386_disasm.c: Protect ADD_CHAR and ADD_STRING macros. Adjust uses.
- (i386_disasm): Handle suffix.
- * i386_parse.y: Emit suffix information.
- * defs/i386: Remove unnecessary suffixes.
-
- * Makefile.am: Disable building x86-64 version for now.
-
- * defs/i386: Fix and, bound, cmp, or, pop, sbb, sub, xor.
- * i386_data.h: Pass pointer to prefix to functions. If not prefixes
- are consumed this means invalid input.
- * i386_disasm.c: Fix prefix printing. Adjust function calls for
- parameter change.
- * i386_parse.y: Recognize moda prefix.
-
-2007-12-21 Ulrich Drepper <drepper@redhat.com>
-
- * i386_data.h: Fix SIB handling.
- * i386_disasm.c: Likewise.
-
-2007-12-19 Ulrich Drepper <drepper@redhat.com>
-
- * defs/i386: Fix up 'and' opcode.
-
-2007-10-31 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Add dependencies of the generated files on the source
- files.
- (i386_lex_CFLAGS): Add -Wno-sign-compare.
-
- * defs/i386: A lot more data.
- * defs/x86_64: Likewise.
- * i386_data.h (struct instr_enc): Add off1_3, off2_3, and off3_3
- fields.
- (opfct_t): Add parameter for third operand.
- (FCT_*): Likewise.
- (data_prefix): New function.
- (FCT_abs): Implement.
- (FCT_ax): Renamed to FCT_ax$w amd implement.
- (FCT_disp8): Implement.
- (FCT_dispA): Implement.
- (FCT_imm): Implement.
- (FCT_imm$w): Implement.
- (FCT_imm$s): Don't zero-pad numbers.
- (FCT_imm8): Likewise.
- (FCT_rel): Likewise.
- (general_mod$r_m): New function.
- (FCT_mod$r_m): Use it.
- (FCT_mod$r_m$w): New function.
- (FCT_mod$8r_m): New function.
- (FCT_reg): Correctly handle 16-bit registers.
- (FCT_reg$w): New function.
- * i386_disasm.c (i386_disasm): Handle prefixes better.
- Pass third parameter to operand functions.
- * i386_parse.y (struct instruction): Add off3 field.
- Handle third operand throughout.
-
-2007-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * i386_disasm.c: New file.
- * i386_data.h: New file.
- * i386_gendis.c: New file.
- * i386_lex.l: New file.
- * i386_parse.y: New file.
- * memory-access.h: New file.
- * x86_64_disasm.c: New file.
- * defs/i386: New file.
- * defs/i386.doc: New file.
- * defs/x86_64: New file.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Define, instead of adding things to DEFS.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/libcpu/Makefile b/src/libcpu/Makefile
deleted file mode 100644
index 1d74028a..00000000
--- a/src/libcpu/Makefile
+++ /dev/null
@@ -1,672 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# libcpu/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am i386_lex.c i386_parse.c \
- $(top_srcdir)/config/depcomp $(top_srcdir)/config/ylwrap \
- $(am__noinst_HEADERS_DIST) ChangeLog
-#noinst_PROGRAMS = i386_gendis$(EXEEXT)
-subdir = libcpu
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libcpu_i386_a_AR = $(AR) $(ARFLAGS)
-libcpu_i386_a_LIBADD =
-am_libcpu_i386_a_OBJECTS = i386_disasm.$(OBJEXT)
-libcpu_i386_a_OBJECTS = $(am_libcpu_i386_a_OBJECTS)
-libcpu_x86_64_a_AR = $(AR) $(ARFLAGS)
-libcpu_x86_64_a_LIBADD =
-am_libcpu_x86_64_a_OBJECTS = x86_64_disasm.$(OBJEXT)
-libcpu_x86_64_a_OBJECTS = $(am_libcpu_x86_64_a_OBJECTS)
-PROGRAMS = $(noinst_PROGRAMS)
-am_i386_gendis_OBJECTS = i386_gendis.$(OBJEXT) i386_lex.$(OBJEXT) \
- i386_parse.$(OBJEXT)
-i386_gendis_OBJECTS = $(am_i386_gendis_OBJECTS)
-i386_gendis_DEPENDENCIES = $(libeu)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-am__skiplex = test -f $@ ||
-AM_V_LEX = $(am__v_LEX_$(V))
-am__v_LEX_ = $(am__v_LEX_$(AM_DEFAULT_VERBOSITY))
-am__v_LEX_0 = @echo " LEX " $@;
-am__v_LEX_1 =
-YLWRAP = $(top_srcdir)/config/ylwrap
-am__skipyacc = test -f $@ ||
-am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \
- -e s/c++$$/h++/ -e s/c$$/h/
-YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS)
-AM_V_YACC = $(am__v_YACC_$(V))
-am__v_YACC_ = $(am__v_YACC_$(AM_DEFAULT_VERBOSITY))
-am__v_YACC_0 = @echo " YACC " $@;
-am__v_YACC_1 =
-SOURCES = $(libcpu_i386_a_SOURCES) $(libcpu_x86_64_a_SOURCES) \
- $(i386_gendis_SOURCES)
-DIST_SOURCES = $(libcpu_i386_a_SOURCES) $(libcpu_x86_64_a_SOURCES) \
- $(i386_gendis_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__noinst_HEADERS_DIST = memory-access.h i386_parse.h i386_data.h
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.$(<F:lex.l=)
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 0.161
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/libcpu
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/libcpu
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libasm
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic \
- -fdollars-in-identifiers
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(foreach P,i386 x86_64,$P_defs \
- $P.mnemonics)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS) -P$(<F:lex.l=)
-AM_YFLAGS = -p$(<F:parse.y=)
-noinst_LIBRARIES = libcpu_i386.a libcpu_x86_64.a
-libcpu_i386_a_SOURCES = i386_disasm.c i386_dis.h
-libcpu_x86_64_a_SOURCES = x86_64_disasm.c x86_64_dis.h
-i386_gendis_SOURCES = i386_gendis.c i386_lex.l i386_parse.y
-#noinst_HEADERS = memory-access.h i386_parse.h i386_data.h
-i386_lex_no_Werror = yes
-libeu = ../lib/libeu.a
-i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare
-i386_parse_CFLAGS = -DNMNES="`wc -l < i386.mnemonics`"
-i386_gendis_LDADD = $(libeu) -lm
-EXTRA_DIST = defs/i386
-MAINTAINERCLEANFILES = $(foreach P,i386 x86_64, $P_dis.h)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .l .o .obj .y
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libcpu/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libcpu/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libcpu_i386.a: $(libcpu_i386_a_OBJECTS) $(libcpu_i386_a_DEPENDENCIES) $(EXTRA_libcpu_i386_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libcpu_i386.a
- $(AM_V_AR)$(libcpu_i386_a_AR) libcpu_i386.a $(libcpu_i386_a_OBJECTS) $(libcpu_i386_a_LIBADD)
- $(AM_V_at)$(RANLIB) libcpu_i386.a
-
-libcpu_x86_64.a: $(libcpu_x86_64_a_OBJECTS) $(libcpu_x86_64_a_DEPENDENCIES) $(EXTRA_libcpu_x86_64_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libcpu_x86_64.a
- $(AM_V_AR)$(libcpu_x86_64_a_AR) libcpu_x86_64.a $(libcpu_x86_64_a_OBJECTS) $(libcpu_x86_64_a_LIBADD)
- $(AM_V_at)$(RANLIB) libcpu_x86_64.a
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-i386_gendis$(EXEEXT): $(i386_gendis_OBJECTS) $(i386_gendis_DEPENDENCIES) $(EXTRA_i386_gendis_DEPENDENCIES)
- @rm -f i386_gendis$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(i386_gendis_OBJECTS) $(i386_gendis_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/i386_disasm.Po
-include ./$(DEPDIR)/i386_gendis.Po
-include ./$(DEPDIR)/i386_lex.Po
-include ./$(DEPDIR)/i386_parse.Po
-include ./$(DEPDIR)/x86_64_disasm.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.l.c:
- $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
-
-.y.c:
- $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -rm -f i386_lex.c
- -rm -f i386_parse.c
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES clean-noinstPROGRAMS \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES clean-noinstPROGRAMS cscopelist-am ctags \
- ctags-am distclean distclean-compile distclean-generic \
- distclean-tags distdir dvi dvi-am html html-am info info-am \
- install install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
- tags tags-am uninstall uninstall-am
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-i386_disasm.o: i386.mnemonics $(srcdir)/i386_dis.h
-x86_64_disasm.o: x86_64.mnemonics $(srcdir)/x86_64_dis.h
-
-%_defs: $(srcdir)/defs/i386
- m4 -D$* -DDISASSEMBLER $< > $@T
- mv -f $@T $@
-
-#$(srcdir)/%_dis.h: %_defs i386_gendis
-# ./i386_gendis $< > $@T
-# mv -f $@T $@
-
-$(srcdir)/%_dis.h:
- @echo '*** missing $@; configure with --enable-maintainer-mode'
- @false
-
-%.mnemonics: %_defs
- sed '1,/^%%/d;/^#/d;/^[[:space:]]*$$/d;s/[^:]*:\([^[:space:]]*\).*/MNE(\1)/;s/{[^}]*}//g;/INVALID/d' \
- $< | sort -u > $@
-i386_parse.o: i386_parse.c i386.mnemonics
-i386_lex.o: i386_parse.h
-
-i386_parse.h: i386_parse.c ;
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libcpu/Makefile.am b/src/libcpu/Makefile.am
deleted file mode 100644
index 3beccf34..00000000
--- a/src/libcpu/Makefile.am
+++ /dev/null
@@ -1,88 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 2002-2012 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libasm
-AM_CFLAGS += -fpic -fdollars-in-identifiers
-LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS) -P$(<F:lex.l=)
-LEX_OUTPUT_ROOT = lex.$(<F:lex.l=)
-AM_YFLAGS = -p$(<F:parse.y=)
-
-noinst_LIBRARIES = libcpu_i386.a libcpu_x86_64.a
-
-libcpu_i386_a_SOURCES = i386_disasm.c i386_dis.h
-libcpu_x86_64_a_SOURCES = x86_64_disasm.c x86_64_dis.h
-
-i386_gendis_SOURCES = i386_gendis.c i386_lex.l i386_parse.y
-
-i386_disasm.o: i386.mnemonics $(srcdir)/i386_dis.h
-x86_64_disasm.o: x86_64.mnemonics $(srcdir)/x86_64_dis.h
-
-%_defs: $(srcdir)/defs/i386
- m4 -D$* -DDISASSEMBLER $< > $@T
- mv -f $@T $@
-
-if MAINTAINER_MODE
-noinst_HEADERS = memory-access.h i386_parse.h i386_data.h
-
-noinst_PROGRAMS = i386_gendis
-
-$(srcdir)/%_dis.h: %_defs i386_gendis
- ./i386_gendis $< > $@T
- mv -f $@T $@
-
-else
-
-$(srcdir)/%_dis.h:
- @echo '*** missing $@; configure with --enable-maintainer-mode'
- @false
-
-endif
-
-%.mnemonics: %_defs
- sed '1,/^%%/d;/^#/d;/^[[:space:]]*$$/d;s/[^:]*:\([^[:space:]]*\).*/MNE(\1)/;s/{[^}]*}//g;/INVALID/d' \
- $< | sort -u > $@
-
-i386_lex_no_Werror = yes
-
-libeu = ../lib/libeu.a
-
-i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare
-i386_parse.o: i386_parse.c i386.mnemonics
-i386_parse_CFLAGS = -DNMNES="`wc -l < i386.mnemonics`"
-i386_lex.o: i386_parse.h
-i386_gendis_LDADD = $(libeu) -lm
-
-i386_parse.h: i386_parse.c ;
-
-EXTRA_DIST = defs/i386
-
-CLEANFILES += $(foreach P,i386 x86_64,$P_defs $P.mnemonics)
-MAINTAINERCLEANFILES = $(foreach P,i386 x86_64, $P_dis.h)
diff --git a/src/libcpu/Makefile.in b/src/libcpu/Makefile.in
deleted file mode 100644
index 3c90e34e..00000000
--- a/src/libcpu/Makefile.in
+++ /dev/null
@@ -1,672 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am i386_lex.c i386_parse.c \
- $(top_srcdir)/config/depcomp $(top_srcdir)/config/ylwrap \
- $(am__noinst_HEADERS_DIST) ChangeLog
-@MAINTAINER_MODE_TRUE@noinst_PROGRAMS = i386_gendis$(EXEEXT)
-subdir = libcpu
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libcpu_i386_a_AR = $(AR) $(ARFLAGS)
-libcpu_i386_a_LIBADD =
-am_libcpu_i386_a_OBJECTS = i386_disasm.$(OBJEXT)
-libcpu_i386_a_OBJECTS = $(am_libcpu_i386_a_OBJECTS)
-libcpu_x86_64_a_AR = $(AR) $(ARFLAGS)
-libcpu_x86_64_a_LIBADD =
-am_libcpu_x86_64_a_OBJECTS = x86_64_disasm.$(OBJEXT)
-libcpu_x86_64_a_OBJECTS = $(am_libcpu_x86_64_a_OBJECTS)
-PROGRAMS = $(noinst_PROGRAMS)
-am_i386_gendis_OBJECTS = i386_gendis.$(OBJEXT) i386_lex.$(OBJEXT) \
- i386_parse.$(OBJEXT)
-i386_gendis_OBJECTS = $(am_i386_gendis_OBJECTS)
-i386_gendis_DEPENDENCIES = $(libeu)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-@MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
-AM_V_LEX = $(am__v_LEX_@AM_V@)
-am__v_LEX_ = $(am__v_LEX_@AM_DEFAULT_V@)
-am__v_LEX_0 = @echo " LEX " $@;
-am__v_LEX_1 =
-YLWRAP = $(top_srcdir)/config/ylwrap
-@MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
-am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \
- -e s/c++$$/h++/ -e s/c$$/h/
-YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS)
-AM_V_YACC = $(am__v_YACC_@AM_V@)
-am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@)
-am__v_YACC_0 = @echo " YACC " $@;
-am__v_YACC_1 =
-SOURCES = $(libcpu_i386_a_SOURCES) $(libcpu_x86_64_a_SOURCES) \
- $(i386_gendis_SOURCES)
-DIST_SOURCES = $(libcpu_i386_a_SOURCES) $(libcpu_x86_64_a_SOURCES) \
- $(i386_gendis_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__noinst_HEADERS_DIST = memory-access.h i386_parse.h i386_data.h
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = lex.$(<F:lex.l=)
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libasm
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic \
- -fdollars-in-identifiers
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(foreach P,i386 x86_64,$P_defs \
- $P.mnemonics)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS) -P$(<F:lex.l=)
-AM_YFLAGS = -p$(<F:parse.y=)
-noinst_LIBRARIES = libcpu_i386.a libcpu_x86_64.a
-libcpu_i386_a_SOURCES = i386_disasm.c i386_dis.h
-libcpu_x86_64_a_SOURCES = x86_64_disasm.c x86_64_dis.h
-i386_gendis_SOURCES = i386_gendis.c i386_lex.l i386_parse.y
-@MAINTAINER_MODE_TRUE@noinst_HEADERS = memory-access.h i386_parse.h i386_data.h
-i386_lex_no_Werror = yes
-libeu = ../lib/libeu.a
-i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare
-i386_parse_CFLAGS = -DNMNES="`wc -l < i386.mnemonics`"
-i386_gendis_LDADD = $(libeu) -lm
-EXTRA_DIST = defs/i386
-MAINTAINERCLEANFILES = $(foreach P,i386 x86_64, $P_dis.h)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .l .o .obj .y
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libcpu/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libcpu/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libcpu_i386.a: $(libcpu_i386_a_OBJECTS) $(libcpu_i386_a_DEPENDENCIES) $(EXTRA_libcpu_i386_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libcpu_i386.a
- $(AM_V_AR)$(libcpu_i386_a_AR) libcpu_i386.a $(libcpu_i386_a_OBJECTS) $(libcpu_i386_a_LIBADD)
- $(AM_V_at)$(RANLIB) libcpu_i386.a
-
-libcpu_x86_64.a: $(libcpu_x86_64_a_OBJECTS) $(libcpu_x86_64_a_DEPENDENCIES) $(EXTRA_libcpu_x86_64_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libcpu_x86_64.a
- $(AM_V_AR)$(libcpu_x86_64_a_AR) libcpu_x86_64.a $(libcpu_x86_64_a_OBJECTS) $(libcpu_x86_64_a_LIBADD)
- $(AM_V_at)$(RANLIB) libcpu_x86_64.a
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-i386_gendis$(EXEEXT): $(i386_gendis_OBJECTS) $(i386_gendis_DEPENDENCIES) $(EXTRA_i386_gendis_DEPENDENCIES)
- @rm -f i386_gendis$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(i386_gendis_OBJECTS) $(i386_gendis_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_disasm.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_gendis.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_lex.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_parse.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x86_64_disasm.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.l.c:
- $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
-
-.y.c:
- $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -rm -f i386_lex.c
- -rm -f i386_parse.c
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES clean-noinstPROGRAMS \
- mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES clean-noinstPROGRAMS cscopelist-am ctags \
- ctags-am distclean distclean-compile distclean-generic \
- distclean-tags distdir dvi dvi-am html html-am info info-am \
- install install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
- tags tags-am uninstall uninstall-am
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-i386_disasm.o: i386.mnemonics $(srcdir)/i386_dis.h
-x86_64_disasm.o: x86_64.mnemonics $(srcdir)/x86_64_dis.h
-
-%_defs: $(srcdir)/defs/i386
- m4 -D$* -DDISASSEMBLER $< > $@T
- mv -f $@T $@
-
-@MAINTAINER_MODE_TRUE@$(srcdir)/%_dis.h: %_defs i386_gendis
-@MAINTAINER_MODE_TRUE@ ./i386_gendis $< > $@T
-@MAINTAINER_MODE_TRUE@ mv -f $@T $@
-
-@MAINTAINER_MODE_FALSE@$(srcdir)/%_dis.h:
-@MAINTAINER_MODE_FALSE@ @echo '*** missing $@; configure with --enable-maintainer-mode'
-@MAINTAINER_MODE_FALSE@ @false
-
-%.mnemonics: %_defs
- sed '1,/^%%/d;/^#/d;/^[[:space:]]*$$/d;s/[^:]*:\([^[:space:]]*\).*/MNE(\1)/;s/{[^}]*}//g;/INVALID/d' \
- $< | sort -u > $@
-i386_parse.o: i386_parse.c i386.mnemonics
-i386_lex.o: i386_parse.h
-
-i386_parse.h: i386_parse.c ;
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libcpu/defs/i386 b/src/libcpu/defs/i386
deleted file mode 100644
index e0db28dc..00000000
--- a/src/libcpu/defs/i386
+++ /dev/null
@@ -1,970 +0,0 @@
-%mask {s} 1
-%mask {w} 1
-%mask {w1} 1
-%mask {W1} 1
-%mask {W2} 1
-dnl floating point reg suffix
-%mask {D} 1
-%mask {imm8} 8
-%mask {imms8} 8
-%mask {imm16} 16
-%mask {reg} 3
-%mask {oreg} 3
-%mask {reg16} 3
-%mask {reg64} 3
-%mask {tttn} 4
-%mask {mod} 2
-%mask {moda} 2
-%mask {MOD} 2
-%mask {r_m} 3
-dnl like {r_m} but referencing byte register
-%mask {8r_m} 3
-dnl like {r_m} but referencing 16-bit register
-%mask {16r_m} 3
-dnl like {r_m} but referencing 32- or 64-bit register
-%mask {64r_m} 3
-%mask {disp8} 8
-dnl imm really is 8/16/32 bit depending on the situation.
-%mask {imm} 8
-%mask {imm64} 8
-%mask {imms} 8
-%mask {rel} 32
-%mask {abs} 32
-%mask {absval} 32
-%mask {sel} 16
-%mask {imm32} 32
-%mask {ccc} 3
-%mask {ddd} 3
-%mask {sreg3} 3
-%mask {sreg2} 2
-%mask {mmxreg} 3
-%mask {R_M} 3
-%mask {Mod} 2
-%mask {xmmreg} 3
-%mask {R_m} 3
-%mask {xmmreg1} 3
-%mask {xmmreg2} 3
-%mask {mmxreg1} 3
-%mask {mmxreg2} 3
-%mask {predps} 8
-%mask {freg} 3
-%mask {fmod} 2
-%mask {fr_m} 3
-%prefix {R}
-%prefix {RE}
-%suffix {W}
-%suffix {w0}
-%synonym {xmmreg1} {xmmreg}
-%synonym {xmmreg2} {xmmreg}
-%synonym {mmxreg1} {mmxreg}
-%synonym {mmxreg2} {mmxreg}
-ifdef(`i386',
-`%synonym {oreg} {reg}
-%synonym {imm64} {imm}
-')dnl
-
-%%
-ifdef(`i386',
-`00110111:aaa
-11010101,00001010:aad
-11010100,00001010:aam
-00111111:aas
-')dnl
-0001010{w},{imm}:adc {imm}{w},{ax}{w}
-1000000{w},{mod}010{r_m},{imm}:adc{w} {imm}{w},{mod}{r_m}{w}
-1000001{w},{mod}010{r_m},{imms8}:adc{w} {imms8},{mod}{r_m}
-0001000{w},{mod}{reg}{r_m}:adc {reg}{w},{mod}{r_m}{w}
-0001001{w},{mod}{reg}{r_m}:adc {mod}{r_m}{w},{reg}{w}
-0000010{w},{imm}:add {imm}{w},{ax}{w}
-1000000{w},{mod}000{r_m},{imm}:add{w} {imm}{w},{mod}{r_m}{w}
-10000011,{mod}000{r_m},{imms8}:add{w} {imms8},{mod}{r_m}
-0000000{w},{mod}{reg}{r_m}:add {reg}{w},{mod}{r_m}{w}
-0000001{w},{mod}{reg}{r_m}:add {mod}{r_m}{w},{reg}{w}
-01100110,00001111,11010000,{Mod}{xmmreg}{R_m}:addsubpd {Mod}{R_m},{xmmreg}
-11110010,00001111,11010000,{Mod}{xmmreg}{R_m}:addsubps {Mod}{R_m},{xmmreg}
-0010010{w},{imm}:and {imm}{w},{ax}{w}
-1000000{w},{mod}100{r_m},{imm}:and{w} {imm}{w},{mod}{r_m}{w}
-1000001{w},{mod}100{r_m},{imms8}:and{w} {imms8},{mod}{r_m}
-0010000{w},{mod}{reg}{r_m}:and {reg}{w},{mod}{r_m}{w}
-0010001{w},{mod}{reg}{r_m}:and {mod}{r_m}{w},{reg}{w}
-01100110,00001111,01010100,{Mod}{xmmreg}{R_m}:andpd {Mod}{R_m},{xmmreg}
-00001111,01010100,{Mod}{xmmreg}{R_m}:andps {Mod}{R_m},{xmmreg}
-01100110,00001111,01010101,{Mod}{xmmreg}{R_m}:andnpd {Mod}{R_m},{xmmreg}
-00001111,01010101,{Mod}{xmmreg}{R_m}:andnps {Mod}{R_m},{xmmreg}
-ifdef(`i386',
-`01100011,{mod}{reg16}{r_m}:arpl {reg16},{mod}{r_m}
-01100010,{moda}{reg}{r_m}:bound {reg},{moda}{r_m}
-',
-`01100011,{mod}{reg64}{r_m}:movslq {mod}{r_m},{reg64}
-')dnl
-00001111,10111100,{mod}{reg}{r_m}:bsf {mod}{r_m},{reg}
-00001111,10111101,{mod}{reg}{r_m}:bsr {mod}{r_m},{reg}
-00001111,11001{reg}:bswap {reg}
-00001111,10100011,{mod}{reg}{r_m}:bt {reg},{mod}{r_m}
-00001111,10111010,{mod}100{r_m},{imm8}:bt{w} {imm8},{mod}{r_m}
-00001111,10111011,{mod}{reg}{r_m}:btc {reg},{mod}{r_m}
-00001111,10111010,{mod}111{r_m},{imm8}:btc{w} {imm8},{mod}{r_m}
-00001111,10110011,{mod}{reg}{r_m}:btr {reg},{mod}{r_m}
-00001111,10111010,{mod}110{r_m},{imm8}:btr{w} {imm8},{mod}{r_m}
-00001111,10101011,{mod}{reg}{r_m}:bts {reg},{mod}{r_m}
-00001111,10111010,{mod}101{r_m},{imm8}:bts{w} {imm8},{mod}{r_m}
-11101000,{rel}:call{W} {rel}
-11111111,{mod}010{64r_m}:call{W} *{mod}{64r_m}
-ifdef(`i386',
-`10011010,{absval},{sel}:lcall {sel},{absval}
-')dnl
-11111111,{mod}011{64r_m}:lcall{W} *{mod}{64r_m}
-# SPECIAL 10011000:[{rex.w}?cltq:{dpfx}?cbtw:cwtl]
-10011000:INVALID
-# SPECIAL 10011001:[{rex.w}?cqto:{dpfx}?cltd:cwtd]
-10011001:INVALID
-11111000:clc
-11111100:cld
-11111010:cli
-00001111,00000101:syscall
-00001111,00000110:clts
-00001111,00000111:sysret
-00001111,00110100:sysenter
-00001111,00110101:sysexit
-11110101:cmc
-00001111,0100{tttn},{mod}{reg}{r_m}:cmov{tttn} {mod}{r_m},{reg}
-0011110{w},{imm}:cmp {imm}{w},{ax}{w}
-1000000{w},{mod}111{r_m},{imm}:cmp{w} {imm}{w},{mod}{r_m}{w}
-10000011,{mod}111{r_m},{imms8}:cmp{w} {imms8},{mod}{r_m}
-0011100{w},{mod}{reg}{r_m}:cmp {reg}{w},{mod}{r_m}{w}
-0011101{w},{mod}{reg}{r_m}:cmp {mod}{r_m}{w},{reg}{w}
-ifdef(`ASSEMBLER',
-`11110010,00001111,11000010,{Mod}{xmmreg}{R_m},{imm8}:cmpsd {imm8},{Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},{imm8}:cmpss {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,11000010,{Mod}{xmmreg}{R_m},{imm8}:cmppd {imm8},{Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},{imm8}:cmpps {imm8},{Mod}{R_m},{xmmreg}
-',
-`11110010,00001111,11000010,{Mod}{xmmreg}{R_m},{imm8}:INVALID {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},{imm8}:INVALID {Mod}{R_m},{xmmreg}
-01100110,00001111,11000010,{Mod}{xmmreg}{R_m},{imm8}:INVALID {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},{imm8}:INVALID {Mod}{R_m},{xmmreg}
-')dnl
-1010011{w}:{RE}cmps{w} {es_di},{ds_si}
-00001111,1011000{w},{mod}{reg}{r_m}:cmpxchg {reg}{w},{mod}{r_m}{w}
-ifdef(`i386',
-`00001111,11000111,{mod}001{r_m}:cmpxchg8b {mod}{r_m}
-',
-`# SPECIAL 00001111,11000111,{mod}001{r_m}:[{rex.w}?cmpxchg16b:cmpxchg8b] {reg},{mod}{r_m}
-00001111,11000111,{mod}001{r_m}:INVALID {mod}{r_m}
-')dnl
-00001111,10100010:cpuid
-11110011,00001111,11100110,{Mod}{xmmreg}{R_m}:cvtdq2pd {Mod}{R_m},{xmmreg}
-11110010,00001111,11100110,{Mod}{xmmreg}{R_m}:cvtpd2dq {Mod}{R_m},{xmmreg}
-01100110,00001111,11100110,{Mod}{xmmreg}{R_m}:cvttpd2dq {Mod}{R_m},{xmmreg}
-ifdef(`i386',
-`00100111:daa
-00101111:das
-')dnl
-1111111{w},{mod}001{r_m}:dec{w} {mod}{r_m}{w}
-ifdef(`i386',
-`01001{reg}:dec {reg}
-')dnl
-1111011{w},{mod}110{r_m}:div{w} {mod}{r_m}{w}
-00001111,01110111:emms
-11001000,{imm16},{imm8}:enter{W} {imm16},{imm8}
-11011001,11010000:fnop
-11011001,11100000:fchs
-11011001,11100001:fabs
-11011001,11100100:ftst
-11011001,11100101:fxam
-11011001,11101000:fld1
-11011001,11101001:fldl2t
-11011001,11101010:fldl2e
-11011001,11101011:fldpi
-11011001,11101100:fldlg2
-11011001,11101101:fldln2
-11011001,11101110:fldz
-11011001,11110000:f2xm1
-11011001,11110001:fyl2x
-11011001,11110010:fptan
-11011001,11110011:fpatan
-11011001,11110100:fxtract
-11011001,11110101:fprem1
-11011001,11110110:fdecstp
-11011001,11110111:fincstp
-11011001,11111000:fprem
-11011001,11111001:fyl2xp1
-11011001,11111010:fsqrt
-11011001,11111011:fsincos
-11011001,11111100:frndint
-11011001,11111101:fscale
-11011001,11111110:fsin
-11011001,11111111:fcos
-# ORDER
-11011000,11000{freg}:fadd {freg},%st
-11011100,11000{freg}:fadd %st,{freg}
-11011{D}00,{mod}000{r_m}:fadd{D} {mod}{r_m}
-# ORDER END
-# ORDER
-11011000,11001{freg}:fmul {freg},%st
-11011100,11001{freg}:fmul %st,{freg}
-11011{D}00,{mod}001{r_m}:fmul{D} {mod}{r_m}
-# ORDER END
-# ORDER
-11011000,11100{freg}:fsub {freg},%st
-11011100,11100{freg}:fsub %st,{freg}
-11011{D}00,{mod}100{r_m}:fsub{D} {mod}{r_m}
-# ORDER END
-# ORDER
-11011000,11101{freg}:fsubr {freg},%st
-11011100,11101{freg}:fsubr %st,{freg}
-11011{D}00,{mod}101{r_m}:fsubr{D} {mod}{r_m}
-# ORDER END
-# ORDER
-11011101,11010{freg}:fst {freg}
-11011{D}01,{mod}010{r_m}:fst{D} {mod}{r_m}
-# ORDER END
-# ORDER
-11011101,11011{freg}:fstp {freg}
-11011{D}01,{mod}011{r_m}:fstp{D} {mod}{r_m}
-# ORDER END
-11011001,{mod}100{r_m}:fldenv {mod}{r_m}
-11011001,{mod}101{r_m}:fldcw {mod}{r_m}
-11011001,{mod}110{r_m}:fnstenv {mod}{r_m}
-11011001,{mod}111{r_m}:fnstcw {mod}{r_m}
-11011001,11001{freg}:fxch {freg}
-# ORDER
-11011110,11000{freg}:faddp %st,{freg}
-ifdef(`ASSEMBLER',
-`11011110,11000001:faddp
-')dnl
-# ORDER
-11011010,11000{freg}:fcmovb {freg},%st
-11011{w1}10,{mod}000{r_m}:fiadd{w1} {mod}{r_m}
-# ORDER END
-# ORDER
-11011010,11001{freg}:fcmove {freg},%st
-11011110,11001{freg}:fmulp %st,{freg}
-11011{w1}10,{mod}001{r_m}:fimul{w1} {mod}{r_m}
-# ORDER END
-# ORDER
-11011110,11100{freg}:fsubp %st,{freg}
-11011{w1}10,{mod}100{r_m}:fisub{w1} {mod}{r_m}
-# ORDER END
-# ORDER
-11011110,11101{freg}:fsubrp %st,{freg}
-11011{w1}10,{mod}101{r_m}:fisubr{w1} {mod}{r_m}
-# ORDER END
-# ORDER
-11011111,11100000:fnstsw %ax
-11011111,{mod}100{r_m}:fbld {mod}{r_m}
-# ORDER END
-# ORDER
-11011111,11110{freg}:fcomip {freg},%st
-11011111,{mod}110{r_m}:fbstp {mod}{r_m}
-# ORDER END
-11011001,11100000:fchs
-# ORDER
-10011011,11011011,11100010:fclex
-10011011,11011011,11100011:finit
-10011011:fwait
-# END ORDER
-11011011,11100010:fnclex
-11011010,11000{freg}:fcmovb {freg},%st
-11011010,11001{freg}:fcmove {freg},%st
-11011010,11010{freg}:fcmovbe {freg},%st
-11011010,11011{freg}:fcmovu {freg},%st
-11011011,11000{freg}:fcmovnb {freg},%st
-11011011,11001{freg}:fcmovne {freg},%st
-11011011,11010{freg}:fcmovnbe {freg},%st
-11011011,11011{freg}:fcmovnu {freg},%st
-# ORDER
-11011000,11010{freg}:fcom {freg}
-ifdef(`ASSEMBLER',
-`11011000,11010001:fcom
-')dnl
-11011{D}00,{mod}010{r_m}:fcom{D} {mod}{r_m}
-# END ORDER
-# ORDER
-11011000,11011{freg}:fcomp {freg}
-ifdef(`ASSEMBLER',
-`11011000,11011001:fcomp
-')dnl
-11011{D}00,{mod}011{r_m}:fcomp{D} {mod}{r_m}
-# END ORDER
-11011110,11011001:fcompp
-11011011,11110{freg}:fcomi {freg},%st
-11011111,11110{freg}:fcomip {freg},%st
-11011011,11101{freg}:fucomi {freg},%st
-11011111,11101{freg}:fucomip {freg},%st
-11011001,11111111:fcos
-11011001,11110110:fdecstp
-# ORDER
-11011000,11110{freg}:fdiv {freg},%st
-11011100,11110{freg}:fdiv %st,{freg}
-11011{D}00,{mod}110{r_m}:fdiv{D} {mod}{r_m}
-# END ORDER
-11011010,{mod}110{r_m}:fidivl {mod}{r_m}
-# ORDER
-11011110,11110{freg}:fdivp %st,{freg}
-11011110,{mod}110{r_m}:fidiv {mod}{r_m}
-# END ORDER
-11011110,11111{freg}:fdivrp %st,{freg}
-ifdef(`ASSEMBLER',
-`11011110,11111001:fdivp
-')dnl
-# ORDER
-11011000,11111{freg}:fdivr {freg},%st
-11011100,11111{freg}:fdivr %st,{freg}
-11011{D}00,{mod}111{r_m}:fdivr{D} {mod}{r_m}
-# END ORDER
-11011010,{mod}111{r_m}:fidivrl {mod}{r_m}
-11011110,{mod}111{r_m}:fidivr {mod}{r_m}
-11011110,11110{freg}:fdivrp %st,{freg}
-ifdef(`ASSEMBLER',
-`11011110,11110001:fdivrp
-')dnl
-11011101,11000{freg}:ffree {freg}
-11011010,11010{freg}:fcmovbe {freg}
-11011{w1}10,{mod}010{r_m}:ficom{w1} {mod}{r_m}
-11011010,11011{freg}:fcmovu {freg}
-11011{w1}10,{mod}011{r_m}:ficomp{w1} {mod}{r_m}
-11011111,{mod}000{r_m}:fild {mod}{r_m}
-11011011,{mod}000{r_m}:fildl {mod}{r_m}
-11011111,{mod}101{r_m}:fildll {mod}{r_m}
-11011001,11110111:fincstp
-11011011,11100011:fninit
-11011{w1}11,{mod}010{r_m}:fist{w1} {mod}{r_m}
-11011{w1}11,{mod}011{r_m}:fistp{w1} {mod}{r_m}
-11011111,{mod}111{r_m}:fistpll {mod}{r_m}
-11011{w1}11,{mod}001{r_m}:fisttp{w1} {mod}{r_m}
-11011101,{mod}001{r_m}:fisttpll {mod}{r_m}
-11011011,{mod}101{r_m}:fldt {mod}{r_m}
-11011011,{mod}111{r_m}:fstpt {mod}{r_m}
-# ORDER
-11011001,11000{freg}:fld {freg}
-11011{D}01,{mod}000{r_m}:fld{D} {mod}{r_m}
-# ORDER END
-# ORDER
-11011101,11100{freg}:fucom {freg}
-11011101,{mod}100{r_m}:frstor {mod}{r_m}
-# ORDER END
-11011101,11101{freg}:fucomp {freg}
-11011101,{mod}110{r_m}:fnsave {mod}{r_m}
-11011101,{mod}111{r_m}:fnstsw {mod}{r_m}
-#
-#
-#
-11110100:hlt
-1111011{w},{mod}111{r_m}:idiv{w} {mod}{r_m}{w}
-1111011{w},{mod}101{r_m}:imul{w} {mod}{r_m}{w}
-00001111,10101111,{mod}{reg}{r_m}:imul {mod}{r_m},{reg}
-011010{s}1,{mod}{reg}{r_m},{imm}:imul {imm}{s},{mod}{r_m},{reg}
-1110010{w},{imm8}:in {imm8},{ax}{w}
-1110110{w}:in {dx},{ax}{w}
-1111111{w},{mod}000{r_m}:inc{w} {mod}{r_m}{w}
-ifdef(`i386',
-`01000{reg}:inc {reg}
-')dnl
-0110110{w}:{R}ins{w} {dx},{es_di}
-11001101,{imm8}:int {imm8}
-11001100:int3
-ifdef(`i386',
-`11001110:into
-')dnl
-00001111,00001000:invd
-# ORDER
-00001111,00000001,11111000:swapgs
-00001111,00000001,{mod}111{r_m}:invlpg {mod}{r_m}
-# ORDER END
-11001111:iret{W1}
-0111{tttn},{disp8}:j{tttn} {disp8}
-00001111,1000{tttn},{rel}:j{tttn} {rel}
-00001111,1001{tttn},{mod}000{8r_m}:set{tttn} {mod}{8r_m}
-# SPECIAL 11100011,{disp8}:[{dpfx}?jcxz:jecxz] {disp8}
-11100011,{disp8}:INVALID {disp8}
-11101011,{disp8}:jmp {disp8}
-11101001,{rel}:jmp{W} {rel}
-11111111,{mod}100{64r_m}:jmp{W} *{mod}{64r_m}
-11101010,{absval},{sel}:ljmp {sel},{absval}
-11111111,{mod}101{64r_m}:ljmp{W} *{mod}{64r_m}
-10011111:lahf
-00001111,00000010,{mod}{reg}{16r_m}:lar {mod}{16r_m},{reg}
-ifdef(`i386',
-`11000101,{mod}{reg}{r_m}:lds {mod}{r_m},{reg}
-')dnl
-10001101,{mod}{reg}{r_m}:lea {mod}{r_m},{reg}
-11001001:leave{W}
-ifdef(`i386',
-`11000100,{mod}{reg}{r_m}:les {mod}{r_m},{reg}
-')dnl
-00001111,10110100,{mod}{reg}{r_m}:lfs {mod}{r_m},{reg}
-00001111,10110101,{mod}{reg}{r_m}:lgs {mod}{r_m},{reg}
-ifdef(`i386',
-`00001111,00000001,{mod}010{r_m}:lgdt{w0} {mod}{r_m}
-00001111,00000001,{mod}011{r_m}:lidt{w0} {mod}{r_m}
-',
-`00001111,00000001,{mod}010{r_m}:lgdt {mod}{r_m}
-00001111,00000001,{mod}011{r_m}:lidt {mod}{r_m}
-')dnl
-00001111,00000000,{mod}010{16r_m}:lldt {mod}{16r_m}
-00001111,00000001,{mod}110{16r_m}:lmsw {mod}{16r_m}
-11110000:lock
-1010110{w}:{R}lods {ds_si},{ax}{w}
-11100010,{disp8}:loop {disp8}
-11100001,{disp8}:loope {disp8}
-11100000,{disp8}:loopne {disp8}
-00001111,00000011,{mod}{reg}{16r_m}:lsl {mod}{16r_m},{reg}
-00001111,10110010,{mod}{reg}{r_m}:lss {mod}{r_m},{reg}
-00001111,00000000,{mod}011{16r_m}:ltr {mod}{16r_m}
-1000100{w},{mod}{reg}{r_m}:mov {reg}{w},{mod}{r_m}{w}
-1000101{w},{mod}{reg}{r_m}:mov {mod}{r_m}{w},{reg}{w}
-1100011{w},{mod}000{r_m},{imm}:mov{w} {imm}{w},{mod}{r_m}{w}
-1011{w}{oreg},{imm64}:mov {imm64}{w},{oreg}{w}
-1010000{w},{abs}:mov {abs},{ax}{w}
-1010001{w},{abs}:mov {ax}{w},{abs}
-00001111,00100000,11{ccc}{reg64}:mov {ccc},{reg64}
-00001111,00100010,11{ccc}{reg64}:mov {reg64},{ccc}
-00001111,00100001,11{ddd}{reg64}:mov {ddd},{reg64}
-00001111,00100011,11{ddd}{reg64}:mov {reg64},{ddd}
-10001100,{mod}{sreg3}{r_m}:mov {sreg3},{mod}{r_m}
-10001110,{mod}{sreg3}{r_m}:mov {mod}{r_m},{sreg3}
-1010010{w}:{R}movs{w} {ds_si},{es_di}
-00001111,10111110,{mod}{reg}{8r_m}:movsbl {mod}{8r_m},{reg}
-00001111,10111111,{mod}{reg}{16r_m}:movswl {mod}{16r_m},{reg}
-00001111,10110110,{mod}{reg}{8r_m}:movzbl {mod}{8r_m},{reg}
-00001111,10110111,{mod}{reg}{16r_m}:movzwl {mod}{16r_m},{reg}
-1111011{w},{mod}100{r_m}:mul{w} {mod}{r_m}{w}
-1111011{w},{mod}011{r_m}:neg{w} {mod}{r_m}{w}
-11110011,10010000:pause
-ifdef(`i386',
-`10010000:nop
-',
-`10010000:INVALID
-')dnl
-# ORDER before out
-11110011,00001111,10111000,{mod}{reg}{r_m}:popcnt {mod}{r_m},{reg}
-# END ORDER
-1111011{w},{mod}010{r_m}:not{w} {mod}{r_m}{w}
-0000100{w},{mod}{reg}{r_m}:or {reg}{w},{mod}{r_m}{w}
-0000101{w},{mod}{reg}{r_m}:or {mod}{r_m}{w},{reg}{w}
-1000000{w},{mod}001{r_m},{imm}:or{w} {imm}{w},{mod}{r_m}{w}
-1000001{w},{mod}001{r_m},{imms8}:or{w} {imms8},{mod}{r_m}{w}
-0000110{w},{imm}:or {imm}{w},{ax}{w}
-1110011{w},{imm8}:out {ax}{w},{imm8}
-1110111{w}:out {ax}{w},{dx}
-0110111{w}:{R}outs{w} {ds_si},{dx}
-ifdef(`i386',
-`10001111,{mod}000{r_m}:pop{w} {mod}{r_m}
-',
-# XXX This is not the cleanest way...
-`10001111,11000{reg64}:pop {reg64}
-10001111,{mod}000{r_m}:pop{W} {mod}{r_m}
-')dnl
-00001111,10{sreg3}001:pop{W} {sreg3}
-10011101:popf{W}
-# XXX This is not the cleanest way...
-ifdef(`i386',
-`11111111,{mod}110{r_m}:push{w} {mod}{r_m}
-',
-`11111111,11110{reg64}:push {reg64}
-11111111,{mod}110{r_m}:pushq {mod}{r_m}
-')dnl
-ifdef(`i386',
-`01010{reg}:push {reg}
-01011{reg}:pop {reg}
-',
-`01010{reg64}:push {reg64}
-01011{reg64}:pop {reg64}
-')dnl
-011010{s}0,{imm}:push{W} {imm}{s}
-000{sreg2}110:push {sreg2}
-00001111,10{sreg3}000:push{W} {sreg3}
-ifdef(`i386',
-`01100000:pusha{W}
-01100001:popa{W}
-')dnl
-10011100:pushf{W}
-1101000{w},{mod}010{r_m}:rcl{w} {mod}{r_m}{w}
-1101001{w},{mod}010{r_m}:rcl{w} %cl,{mod}{r_m}{w}
-1100000{w},{mod}010{r_m},{imm8}:rcl{w} {imm8},{mod}{r_m}{w}
-1101000{w},{mod}011{r_m}:rcr{w} {mod}{r_m}{w}
-1101001{w},{mod}011{r_m}:rcr{w} %cl,{mod}{r_m}{w}
-1100000{w},{mod}011{r_m},{imm8}:rcr{w} {imm8},{mod}{r_m}{w}
-00001111,00110010:rdmsr
-00001111,00110011:rdpmc
-00001111,00110001:rdtsc
-11000011:ret{W}
-11000010,{imm16}:ret{W} {imm16}
-11001011:lret
-11001010,{imm16}:lret {imm16}
-1101000{w},{mod}000{r_m}:rol{w} {mod}{r_m}{w}
-1101001{w},{mod}000{r_m}:rol{w} %cl,{mod}{r_m}{w}
-1100000{w},{mod}000{r_m},{imm8}:rol{w} {imm8},{mod}{r_m}{w}
-1101000{w},{mod}001{r_m}:ror{w} {mod}{r_m}{w}
-1101001{w},{mod}001{r_m}:ror{w} %cl,{mod}{r_m}{w}
-1100000{w},{mod}001{r_m},{imm8}:ror{w} {imm8},{mod}{r_m}{w}
-00001111,10101010:rsm
-10011110:sahf
-1101000{w},{mod}111{r_m}:sar{w} {mod}{r_m}{w}
-1101001{w},{mod}111{r_m}:sar{w} %cl,{mod}{r_m}{w}
-1100000{w},{mod}111{r_m},{imm8}:sar{w} {imm8},{mod}{r_m}{w}
-0001100{w},{mod}{reg}{r_m}:sbb {reg}{w},{mod}{r_m}{w}
-0001101{w},{mod}{reg}{r_m}:sbb {mod}{r_m}{w},{reg}{w}
-0001110{w},{imm}:sbb {imm}{w},{ax}{w}
-1000000{w},{mod}011{r_m},{imm}:sbb{w} {imm}{w},{mod}{r_m}{w}
-1000001{w},{mod}011{r_m},{imms8}:sbb{w} {imms8},{mod}{r_m}
-1010111{w}:{RE}scas {es_di},{ax}{w}
-00001111,1001{tttn},{mod}000{r_m}:set{tttn} {mod}{r_m}
-1101000{w},{mod}100{r_m}:shl{w} {mod}{r_m}{w}
-1101001{w},{mod}100{r_m}:shl{w} %cl,{mod}{r_m}{w}
-1100000{w},{mod}100{r_m},{imm8}:shl{w} {imm8},{mod}{r_m}{w}
-1101000{w},{mod}101{r_m}:shr{w} {mod}{r_m}{w}
-00001111,10100100,{mod}{reg}{r_m},{imm8}:shld {imm8},{reg},{mod}{r_m}
-00001111,10100101,{mod}{reg}{r_m}:shld %cl,{reg},{mod}{r_m}
-1101001{w},{mod}101{r_m}:shr{w} %cl,{mod}{r_m}{w}
-1100000{w},{mod}101{r_m},{imm8}:shr{w} {imm8},{mod}{r_m}{w}
-00001111,10101100,{mod}{reg}{r_m},{imm8}:shrd {imm8},{reg},{mod}{r_m}
-00001111,10101101,{mod}{reg}{r_m}:shrd %cl,{reg},{mod}{r_m}
-# ORDER
-00001111,00000001,11000001:vmcall
-00001111,00000001,11000010:vmlaunch
-00001111,00000001,11000011:vmresume
-00001111,00000001,11000100:vmxoff
-00001111,01111000,{mod}{reg64}{64r_m}:vmread {reg64},{mod}{64r_m}
-00001111,01111001,{mod}{reg64}{64r_m}:vmwrite {mod}{64r_m},{reg64}
-ifdef(`i386',
-`00001111,00000001,{mod}000{r_m}:sgdtl {mod}{r_m}
-',
-`00001111,00000001,{mod}000{r_m}:sgdt {mod}{r_m}
-')dnl
-# ORDER END
-# ORDER
-ifdef(`i386',
-`00001111,00000001,11001000:monitor %eax,%ecx,%edx
-00001111,00000001,11001001:mwait %eax,%ecx
-',
-`00001111,00000001,11001000:monitor %rax,%rcx,%rdx
-00001111,00000001,11001001:mwait %rax,%rcx
-')dnl
-ifdef(`i386',
-`00001111,00000001,{mod}001{r_m}:sidtl {mod}{r_m}
-',
-`00001111,00000001,{mod}001{r_m}:sidt {mod}{r_m}
-')dnl
-# ORDER END
-00001111,00000000,{mod}000{r_m}:sldt {mod}{r_m}
-00001111,00000001,{mod}100{r_m}:smsw {mod}{r_m}
-11111001:stc
-11111101:std
-11111011:sti
-1010101{w}:{R}stos {ax}{w},{es_di}
-00001111,00000000,{mod}001{r_m}:str {mod}{r_m}
-0010100{w},{mod}{reg}{r_m}:sub {reg}{w},{mod}{r_m}{w}
-0010101{w},{mod}{reg}{r_m}:sub {mod}{r_m}{w},{reg}{w}
-0010110{w},{imm}:sub {imm}{w},{ax}{w}
-1000000{w},{mod}101{r_m},{imm}:sub{w} {imm}{w},{mod}{r_m}{w}
-1000001{w},{mod}101{r_m},{imms8}:sub{w} {imms8},{mod}{r_m}
-1000010{w},{mod}{reg}{r_m}:test {reg}{w},{mod}{r_m}{w}
-1010100{w},{imm}:test {imm}{w},{ax}{w}
-1111011{w},{mod}000{r_m},{imm}:test{w} {imm}{w},{mod}{r_m}{w}
-00001111,00001011:ud2a
-00001111,00000000,{mod}100{16r_m}:verr {mod}{16r_m}
-00001111,00000000,{mod}101{16r_m}:verw {mod}{16r_m}
-00001111,00001001:wbinvd
-00001111,00001101,{mod}000{8r_m}:prefetch {mod}{8r_m}
-00001111,00001101,{mod}001{8r_m}:prefetchw {mod}{8r_m}
-00001111,00011000,{mod}000{r_m}:prefetchnta {mod}{r_m}
-00001111,00011000,{mod}001{r_m}:prefetcht0 {mod}{r_m}
-00001111,00011000,{mod}010{r_m}:prefetcht1 {mod}{r_m}
-00001111,00011000,{mod}011{r_m}:prefetcht2 {mod}{r_m}
-00001111,00011111,{mod}{reg}{r_m}:nop{w} {mod}{r_m}
-00001111,00110000:wrmsr
-00001111,1100000{w},{mod}{reg}{r_m}:xadd {reg}{w},{mod}{r_m}{w}
-1000011{w},{mod}{reg}{r_m}:xchg {reg}{w},{mod}{r_m}{w}
-10010{oreg}:xchg {ax},{oreg}
-11010111:xlat {ds_bx}
-0011000{w},{mod}{reg}{r_m}:xor {reg}{w},{mod}{r_m}{w}
-0011001{w},{mod}{reg}{r_m}:xor {mod}{r_m}{w},{reg}{w}
-0011010{w},{imm}:xor {imm}{w},{ax}{w}
-1000000{w},{mod}110{r_m},{imm}:xor{w} {imm}{w},{mod}{r_m}{w}
-1000001{w},{mod}110{r_m},{imms8}:xor{w} {imms8},{mod}{r_m}
-00001111,01110111:emms
-01100110,00001111,11011011,{Mod}{xmmreg}{R_m}:pand {Mod}{R_m},{xmmreg}
-00001111,11011011,{MOD}{mmxreg}{R_M}:pand {MOD}{R_M},{mmxreg}
-01100110,00001111,11011111,{Mod}{xmmreg}{R_m}:pandn {Mod}{R_m},{xmmreg}
-00001111,11011111,{MOD}{mmxreg}{R_M}:pandn {MOD}{R_M},{mmxreg}
-01100110,00001111,11110101,{Mod}{xmmreg}{R_m}:pmaddwd {Mod}{R_m},{xmmreg}
-00001111,11110101,{MOD}{mmxreg}{R_M}:pmaddwd {MOD}{R_M},{mmxreg}
-01100110,00001111,11101011,{Mod}{xmmreg}{R_m}:por {Mod}{R_m},{xmmreg}
-00001111,11101011,{MOD}{mmxreg}{R_M}:por {MOD}{R_M},{mmxreg}
-01100110,00001111,11101111,{Mod}{xmmreg}{R_m}:pxor {Mod}{R_m},{xmmreg}
-00001111,11101111,{MOD}{mmxreg}{R_M}:pxor {MOD}{R_M},{mmxreg}
-00001111,01010101,{Mod}{xmmreg}{R_m}:andnps {Mod}{R_m},{xmmreg}
-00001111,01010100,{Mod}{xmmreg}{R_m}:andps {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},00000000:cmpeqps {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},00000001:cmpltps {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},00000010:cmpleps {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},00000011:cmpunordps {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},00000100:cmpneqps {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},00000101:cmpnltps {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},00000110:cmpnleps {Mod}{R_m},{xmmreg}
-00001111,11000010,{Mod}{xmmreg}{R_m},00000111:cmpordps {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},00000000:cmpeqss {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},00000001:cmpltss {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},00000010:cmpless {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},00000011:cmpunordss {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},00000100:cmpneqss {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},00000101:cmpnltss {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},00000110:cmpnless {Mod}{R_m},{xmmreg}
-11110011,00001111,11000010,{Mod}{xmmreg}{R_m},00000111:cmpordss {Mod}{R_m},{xmmreg}
-00001111,10101110,{mod}001{r_m}:fxrstor {mod}{r_m}
-00001111,10101110,{mod}000{r_m}:fxsave {mod}{r_m}
-00001111,10101110,{mod}010{r_m}:ldmxcsr {mod}{r_m}
-00001111,10101110,{mod}011{r_m}:stmxcsr {mod}{r_m}
-11110010,00001111,00010000,{Mod}{xmmreg}{R_m}:movsd {Mod}{R_m},{xmmreg}
-11110011,00001111,00010000,{Mod}{xmmreg}{R_m}:movss {Mod}{R_m},{xmmreg}
-01100110,00001111,00010000,{Mod}{xmmreg}{R_m}:movupd {Mod}{R_m},{xmmreg}
-00001111,00010000,{Mod}{xmmreg}{R_m}:movups {Mod}{R_m},{xmmreg}
-11110010,00001111,00010001,{Mod}{xmmreg}{R_m}:movsd {xmmreg},{Mod}{R_m}
-11110011,00001111,00010001,{Mod}{xmmreg}{R_m}:movss {xmmreg},{Mod}{R_m}
-01100110,00001111,00010001,{Mod}{xmmreg}{R_m}:movupd {xmmreg},{Mod}{R_m}
-00001111,00010001,{Mod}{xmmreg}{R_m}:movups {xmmreg},{Mod}{R_m}
-11110010,00001111,00010010,{Mod}{xmmreg}{R_m}:movddup {Mod}{R_m},{xmmreg}
-11110011,00001111,00010010,{Mod}{xmmreg}{R_m}:movsldup {Mod}{R_m},{xmmreg}
-01100110,00001111,00010010,{Mod}{xmmreg}{R_m}:movlpd {Mod}{R_m},{xmmreg}
-00001111,00010010,11{xmmreg1}{xmmreg2}:movhlps {xmmreg2},{xmmreg1}
-00001111,00010010,{Mod}{xmmreg}{R_m}:movlps {Mod}{R_m},{xmmreg}
-01100110,00001111,00010011,11{xmmreg1}{xmmreg2}:movhlpd {xmmreg1},{xmmreg2}
-00001111,00010011,11{xmmreg1}{xmmreg2}:movhlps {xmmreg1},{xmmreg2}
-01100110,00001111,00010011,{Mod}{xmmreg}{R_m}:movlpd {xmmreg},{Mod}{R_m}
-00001111,00010011,{Mod}{xmmreg}{R_m}:movlps {xmmreg},{Mod}{R_m}
-01100110,00001111,00010100,{Mod}{xmmreg}{R_m}:unpcklpd {Mod}{R_m},{xmmreg}
-00001111,00010100,{Mod}{xmmreg}{R_m}:unpcklps {Mod}{R_m},{xmmreg}
-01100110,00001111,00010101,{Mod}{xmmreg}{R_m}:unpckhpd {Mod}{R_m},{xmmreg}
-00001111,00010101,{Mod}{xmmreg}{R_m}:unpckhps {Mod}{R_m},{xmmreg}
-11110011,00001111,00010110,{Mod}{xmmreg}{R_m}:movshdup {Mod}{R_m},{xmmreg}
-01100110,00001111,00010110,{Mod}{xmmreg}{R_m}:movhpd {Mod}{R_m},{xmmreg}
-00001111,00010110,11{xmmreg1}{xmmreg2}:movlhps {xmmreg2},{xmmreg1}
-00001111,00010110,{Mod}{xmmreg}{R_m}:movhps {Mod}{R_m},{xmmreg}
-01100110,00001111,00010111,11{xmmreg1}{xmmreg2}:movlhpd {xmmreg1},{xmmreg2}
-00001111,00010111,11{xmmreg1}{xmmreg2}:movlhps {xmmreg1},{xmmreg2}
-01100110,00001111,00010111,{Mod}{xmmreg}{R_m}:movhpd {xmmreg},{Mod}{R_m}
-00001111,00010111,{Mod}{xmmreg}{R_m}:movhps {xmmreg},{Mod}{R_m}
-01100110,00001111,00101000,{Mod}{xmmreg}{R_m}:movapd {Mod}{R_m},{xmmreg}
-00001111,00101000,{Mod}{xmmreg}{R_m}:movaps {Mod}{R_m},{xmmreg}
-01100110,00001111,00101001,{Mod}{xmmreg}{R_m}:movapd {xmmreg},{Mod}{R_m}
-00001111,00101001,{Mod}{xmmreg}{R_m}:movaps {xmmreg},{Mod}{R_m}
-11110010,00001111,00101010,{mod}{xmmreg}{r_m}:cvtsi2sd {mod}{r_m},{xmmreg}
-11110011,00001111,00101010,{mod}{xmmreg}{r_m}:cvtsi2ss {mod}{r_m},{xmmreg}
-01100110,00001111,00101010,{MOD}{xmmreg}{R_M}:cvtpi2pd {MOD}{R_M},{xmmreg}
-00001111,00101010,{MOD}{xmmreg}{R_M}:cvtpi2ps {MOD}{R_M},{xmmreg}
-01100110,00001111,00101011,{mod}{xmmreg}{r_m}:movntpd {xmmreg},{mod}{r_m}
-00001111,00101011,{mod}{xmmreg}{r_m}:movntps {xmmreg},{mod}{r_m}
-11110010,00001111,00101100,{Mod}{reg}{R_m}:cvttsd2si {Mod}{R_m},{reg}
-11110011,00001111,00101100,{Mod}{reg}{R_m}:cvttss2si {Mod}{R_m},{reg}
-01100110,00001111,00101100,{Mod}{mmxreg}{R_m}:cvttpd2pi {Mod}{R_m},{mmxreg}
-00001111,00101100,{Mod}{mmxreg}{R_m}:cvttps2pi {Mod}{R_m},{mmxreg}
-01100110,00001111,00101101,{Mod}{mmxreg}{R_m}:cvtpd2pi {Mod}{R_m},{mmxreg}
-11110010,00001111,00101101,{Mod}{reg}{R_m}:cvtsd2si {Mod}{R_m},{reg}
-11110011,00001111,00101101,{Mod}{reg}{R_m}:cvtss2si {Mod}{R_m},{reg}
-00001111,00101101,{Mod}{mmxreg}{R_m}:cvtps2pi {Mod}{R_m},{mmxreg}
-01100110,00001111,00101110,{Mod}{xmmreg}{R_m}:ucomisd {Mod}{R_m},{xmmreg}
-00001111,00101110,{Mod}{xmmreg}{R_m}:ucomiss {Mod}{R_m},{xmmreg}
-01100110,00001111,00101111,{Mod}{xmmreg}{R_m}:comisd {Mod}{R_m},{xmmreg}
-00001111,00101111,{Mod}{xmmreg}{R_m}:comiss {Mod}{R_m},{xmmreg}
-00001111,00110111:getsec
-01100110,00001111,01010000,11{reg}{xmmreg}:movmskpd {xmmreg},{reg}
-00001111,01010000,11{reg}{xmmreg}:movmskps {xmmreg},{reg}
-01100110,00001111,01010001,{Mod}{xmmreg}{R_m}:sqrtpd {Mod}{R_m},{xmmreg}
-11110010,00001111,01010001,{Mod}{xmmreg}{R_m}:sqrtsd {Mod}{R_m},{xmmreg}
-11110011,00001111,01010001,{Mod}{xmmreg}{R_m}:sqrtss {Mod}{R_m},{xmmreg}
-00001111,01010001,{Mod}{xmmreg}{R_m}:sqrtps {Mod}{R_m},{xmmreg}
-11110011,00001111,01010010,{Mod}{xmmreg}{R_m}:rsqrtss {Mod}{R_m},{xmmreg}
-00001111,01010010,{Mod}{xmmreg}{R_m}:rsqrtps {Mod}{R_m},{xmmreg}
-11110011,00001111,01010011,{Mod}{xmmreg}{R_m}:rcpss {Mod}{R_m},{xmmreg}
-00001111,01010011,{Mod}{xmmreg}{R_m}:rcpps {Mod}{R_m},{xmmreg}
-01100110,00001111,01010100,{Mod}{xmmreg}{R_m}:andpd {Mod}{R_m},{xmmreg}
-00001111,01010100,{Mod}{xmmreg}{R_m}:andps {Mod}{R_m},{xmmreg}
-01100110,00001111,01010101,{Mod}{xmmreg}{R_m}:andnpd {Mod}{R_m},{xmmreg}
-00001111,01010101,{Mod}{xmmreg}{R_m}:andnps {Mod}{R_m},{xmmreg}
-01100110,00001111,01010110,{Mod}{xmmreg}{R_m}:orpd {Mod}{R_m},{xmmreg}
-00001111,01010110,{Mod}{xmmreg}{R_m}:orps {Mod}{R_m},{xmmreg}
-01100110,00001111,01010111,{Mod}{xmmreg}{R_m}:xorpd {Mod}{R_m},{xmmreg}
-00001111,01010111,{Mod}{xmmreg}{R_m}:xorps {Mod}{R_m},{xmmreg}
-11110010,00001111,01011000,{Mod}{xmmreg}{R_m}:addsd {Mod}{R_m},{xmmreg}
-11110011,00001111,01011000,{Mod}{xmmreg}{R_m}:addss {Mod}{R_m},{xmmreg}
-01100110,00001111,01011000,{Mod}{xmmreg}{R_m}:addpd {Mod}{R_m},{xmmreg}
-00001111,01011000,{Mod}{xmmreg}{R_m}:addps {Mod}{R_m},{xmmreg}
-11110010,00001111,01011001,{Mod}{xmmreg}{R_m}:mulsd {Mod}{R_m},{xmmreg}
-11110011,00001111,01011001,{Mod}{xmmreg}{R_m}:mulss {Mod}{R_m},{xmmreg}
-01100110,00001111,01011001,{Mod}{xmmreg}{R_m}:mulpd {Mod}{R_m},{xmmreg}
-00001111,01011001,{Mod}{xmmreg}{R_m}:mulps {Mod}{R_m},{xmmreg}
-11110010,00001111,01011010,{Mod}{xmmreg}{R_m}:cvtsd2ss {Mod}{R_m},{xmmreg}
-11110011,00001111,01011010,{Mod}{xmmreg}{R_m}:cvtss2sd {Mod}{R_m},{xmmreg}
-01100110,00001111,01011010,{Mod}{xmmreg}{R_m}:cvtpd2ps {Mod}{R_m},{xmmreg}
-00001111,01011010,{Mod}{xmmreg}{R_m}:cvtps2pd {Mod}{R_m},{xmmreg}
-01100110,00001111,01011011,{Mod}{xmmreg}{R_m}:cvtps2dq {Mod}{R_m},{xmmreg}
-11110011,00001111,01011011,{Mod}{xmmreg}{R_m}:cvttps2dq {Mod}{R_m},{xmmreg}
-00001111,01011011,{Mod}{xmmreg}{R_m}:cvtdq2ps {Mod}{R_m},{xmmreg}
-11110010,00001111,01011100,{Mod}{xmmreg}{R_m}:subsd {Mod}{R_m},{xmmreg}
-11110011,00001111,01011100,{Mod}{xmmreg}{R_m}:subss {Mod}{R_m},{xmmreg}
-01100110,00001111,01011100,{Mod}{xmmreg}{R_m}:subpd {Mod}{R_m},{xmmreg}
-00001111,01011100,{Mod}{xmmreg}{R_m}:subps {Mod}{R_m},{xmmreg}
-11110010,00001111,01011101,{Mod}{xmmreg}{R_m}:minsd {Mod}{R_m},{xmmreg}
-11110011,00001111,01011101,{Mod}{xmmreg}{R_m}:minss {Mod}{R_m},{xmmreg}
-01100110,00001111,01011101,{Mod}{xmmreg}{R_m}:minpd {Mod}{R_m},{xmmreg}
-00001111,01011101,{Mod}{xmmreg}{R_m}:minps {Mod}{R_m},{xmmreg}
-11110010,00001111,01011110,{Mod}{xmmreg}{R_m}:divsd {Mod}{R_m},{xmmreg}
-11110011,00001111,01011110,{Mod}{xmmreg}{R_m}:divss {Mod}{R_m},{xmmreg}
-01100110,00001111,01011110,{Mod}{xmmreg}{R_m}:divpd {Mod}{R_m},{xmmreg}
-00001111,01011110,{Mod}{xmmreg}{R_m}:divps {Mod}{R_m},{xmmreg}
-11110010,00001111,01011111,{Mod}{xmmreg}{R_m}:maxsd {Mod}{R_m},{xmmreg}
-11110011,00001111,01011111,{Mod}{xmmreg}{R_m}:maxss {Mod}{R_m},{xmmreg}
-01100110,00001111,01011111,{Mod}{xmmreg}{R_m}:maxpd {Mod}{R_m},{xmmreg}
-00001111,01011111,{Mod}{xmmreg}{R_m}:maxps {Mod}{R_m},{xmmreg}
-01100110,00001111,01100000,{Mod}{xmmreg}{R_m}:punpcklbw {Mod}{R_m},{xmmreg}
-00001111,01100000,{MOD}{mmxreg}{R_M}:punpcklbw {MOD}{R_M},{mmxreg}
-01100110,00001111,01100001,{Mod}{xmmreg}{R_m}:punpcklwd {Mod}{R_m},{xmmreg}
-00001111,01100001,{MOD}{mmxreg}{R_M}:punpcklwd {MOD}{R_M},{mmxreg}
-01100110,00001111,01100010,{Mod}{xmmreg}{R_m}:punpckldq {Mod}{R_m},{xmmreg}
-00001111,01100010,{MOD}{mmxreg}{R_M}:punpckldq {MOD}{R_M},{mmxreg}
-01100110,00001111,01100011,{Mod}{xmmreg}{R_m}:packsswb {Mod}{R_m},{xmmreg}
-00001111,01100011,{MOD}{mmxreg}{R_M}:packsswb {MOD}{R_M},{mmxreg}
-01100110,00001111,01100100,{Mod}{xmmreg}{R_m}:pcmpgtb {Mod}{R_m},{xmmreg}
-00001111,01100100,{MOD}{mmxreg}{R_M}:pcmpgtb {MOD}{R_M},{mmxreg}
-01100110,00001111,01100101,{Mod}{xmmreg}{R_m}:pcmpgtw {Mod}{R_m},{xmmreg}
-00001111,01100101,{MOD}{mmxreg}{R_M}:pcmpgtw {MOD}{R_M},{mmxreg}
-01100110,00001111,01100110,{Mod}{xmmreg}{R_m}:pcmpgtd {Mod}{R_m},{xmmreg}
-00001111,01100110,{MOD}{mmxreg}{R_M}:pcmpgtd {MOD}{R_M},{mmxreg}
-01100110,00001111,01100111,{Mod}{xmmreg}{R_m}:packuswb {Mod}{R_m},{xmmreg}
-00001111,01100111,{MOD}{mmxreg}{R_M}:packuswb {MOD}{R_M},{mmxreg}
-01100110,00001111,01101000,{Mod}{xmmreg}{R_m}:punpckhbw {Mod}{R_m},{xmmreg}
-00001111,01101000,{MOD}{mmxreg}{R_M}:punpckhbw {MOD}{R_M},{mmxreg}
-01100110,00001111,01101001,{Mod}{xmmreg}{R_m}:punpckhwd {Mod}{R_m},{xmmreg}
-00001111,01101001,{MOD}{mmxreg}{R_M}:punpckhwd {MOD}{R_M},{mmxreg}
-01100110,00001111,01101010,{Mod}{xmmreg}{R_m}:punpckhdq {Mod}{R_m},{xmmreg}
-00001111,01101010,{MOD}{mmxreg}{R_M}:punpckhdq {MOD}{R_M},{mmxreg}
-01100110,00001111,01101011,{Mod}{xmmreg}{R_m}:packssdw {Mod}{R_m},{xmmreg}
-00001111,01101011,{MOD}{mmxreg}{R_M}:packssdw {MOD}{R_M},{mmxreg}
-01100110,00001111,01101100,{Mod}{xmmreg}{R_m}:punpcklqdq {Mod}{R_m},{xmmreg}
-01100110,00001111,01101101,{Mod}{xmmreg}{R_m}:punpckhqdq {Mod}{R_m},{xmmreg}
-01100110,00001111,01101110,{mod}{xmmreg}{r_m}:movd {mod}{r_m},{xmmreg}
-00001111,01101110,{mod}{mmxreg}{r_m}:movd {mod}{r_m},{mmxreg}
-01100110,00001111,01101111,{Mod}{xmmreg}{R_m}:movdqa {Mod}{R_m},{xmmreg}
-11110011,00001111,01101111,{Mod}{xmmreg}{R_m}:movdqu {Mod}{R_m},{xmmreg}
-00001111,01101111,{MOD}{mmxreg}{R_M}:movq {MOD}{R_M},{mmxreg}
-01100110,00001111,01110000,{Mod}{xmmreg}{R_m},{imm8}:pshufd {imm8},{Mod}{R_m},{xmmreg}
-11110010,00001111,01110000,{Mod}{xmmreg}{R_m},{imm8}:pshuflw {imm8},{Mod}{R_m},{xmmreg}
-11110011,00001111,01110000,{Mod}{xmmreg}{R_m},{imm8}:pshufhw {imm8},{Mod}{R_m},{xmmreg}
-00001111,01110000,{MOD}{mmxreg}{R_M},{imm8}:pshufw {imm8},{MOD}{R_M},{mmxreg}
-01100110,00001111,01110100,{Mod}{xmmreg}{R_m}:pcmpeqb {Mod}{R_m},{xmmreg}
-00001111,01110100,{MOD}{mmxreg}{R_M}:pcmpeqb {MOD}{R_M},{mmxreg}
-01100110,00001111,01110101,{Mod}{xmmreg}{R_m}:pcmpeqw {Mod}{R_m},{xmmreg}
-00001111,01110101,{MOD}{mmxreg}{R_M}:pcmpeqw {MOD}{R_M},{mmxreg}
-01100110,00001111,01110110,{Mod}{xmmreg}{R_m}:pcmpeqd {Mod}{R_m},{xmmreg}
-00001111,01110110,{MOD}{mmxreg}{R_M}:pcmpeqd {MOD}{R_M},{mmxreg}
-01100110,00001111,01111100,{Mod}{xmmreg}{R_m}:haddpd {Mod}{R_m},{xmmreg}
-11110010,00001111,01111100,{Mod}{xmmreg}{R_m}:haddps {Mod}{R_m},{xmmreg}
-01100110,00001111,01111101,{Mod}{xmmreg}{R_m}:hsubpd {Mod}{R_m},{xmmreg}
-11110010,00001111,01111101,{Mod}{xmmreg}{R_m}:hsubps {Mod}{R_m},{xmmreg}
-01100110,00001111,01111110,{mod}{xmmreg}{r_m}:movd {xmmreg},{mod}{r_m}
-11110011,00001111,01111110,{Mod}{xmmreg}{R_m}:movq {Mod}{R_m},{xmmreg}
-00001111,01111110,{mod}{mmxreg}{r_m}:movd {mmxreg},{mod}{r_m}
-01100110,00001111,01111111,{Mod}{xmmreg}{R_m}:movdqa {xmmreg},{Mod}{R_m}
-11110011,00001111,01111111,{Mod}{xmmreg}{R_m}:movdqu {xmmreg},{Mod}{R_m}
-00001111,01111111,{MOD}{mmxreg}{R_M}:movq {mmxreg},{MOD}{R_M}
-00001111,11000011,{mod}{reg}{r_m}:movnti {reg},{mod}{r_m}
-01100110,00001111,11000100,{mod}{xmmreg}{r_m},{imm8}:pinsrw {imm8},{mod}{r_m},{xmmreg}
-00001111,11000100,{mod}{mmxreg}{r_m},{imm8}:pinsrw {imm8},{mod}{r_m},{mmxreg}
-01100110,00001111,11000101,11{reg}{xmmreg},{imm8}:pextrw {imm8},{xmmreg},{reg}
-00001111,11000101,11{reg}{mmxreg},{imm8}:pextrw {imm8},{mmxreg},{reg}
-01100110,00001111,11000110,{Mod}{xmmreg}{R_m},{imm8}:shufpd {imm8},{Mod}{R_m},{xmmreg}
-00001111,11000110,{Mod}{xmmreg}{R_m},{imm8}:shufps {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,11010001,{Mod}{xmmreg}{R_m}:psrlw {Mod}{R_m},{xmmreg}
-00001111,11010001,{MOD}{mmxreg}{R_M}:psrlw {MOD}{R_M},{mmxreg}
-01100110,00001111,11010010,{Mod}{xmmreg}{R_m}:psrld {Mod}{R_m},{xmmreg}
-00001111,11010010,{MOD}{mmxreg}{R_M}:psrld {MOD}{R_M},{mmxreg}
-01100110,00001111,11010011,{Mod}{xmmreg}{R_m}:psrlq {Mod}{R_m},{xmmreg}
-00001111,11010011,{MOD}{mmxreg}{R_M}:psrlq {MOD}{R_M},{mmxreg}
-01100110,00001111,11010100,{Mod}{xmmreg}{R_m}:paddq {Mod}{R_m},{xmmreg}
-00001111,11010100,{MOD}{mmxreg}{R_M}:paddq {MOD}{R_M},{mmxreg}
-01100110,00001111,11010101,{Mod}{xmmreg}{R_m}:pmullw {Mod}{R_m},{xmmreg}
-00001111,11010101,{MOD}{mmxreg}{R_M}:pmullw {MOD}{R_M},{mmxreg}
-01100110,00001111,11010110,{Mod}{xmmreg}{R_m}:movq {xmmreg},{Mod}{R_m}
-11110010,00001111,11010110,11{mmxreg}{xmmreg}:movdq2q {xmmreg},{mmxreg}
-11110011,00001111,11010110,11{xmmreg}{mmxreg}:movq2dq {mmxreg},{xmmreg}
-01100110,00001111,11010111,11{reg}{xmmreg}:pmovmskb {xmmreg},{reg}
-00001111,11010111,11{reg}{mmxreg}:pmovmskb {mmxreg},{reg}
-01100110,00001111,11011000,{Mod}{xmmreg}{R_m}:psubusb {Mod}{R_m},{xmmreg}
-00001111,11011000,{MOD}{mmxreg}{R_M}:psubusb {MOD}{R_M},{mmxreg}
-01100110,00001111,11011001,{Mod}{xmmreg}{R_m}:psubusw {Mod}{R_m},{xmmreg}
-00001111,11011001,{MOD}{mmxreg}{R_M}:psubusw {MOD}{R_M},{mmxreg}
-01100110,00001111,11011010,{Mod}{xmmreg}{R_m}:pminub {Mod}{R_m},{xmmreg}
-00001111,11011010,{MOD}{mmxreg}{R_M}:pminub {MOD}{R_M},{mmxreg}
-01100110,00001111,11011100,{Mod}{xmmreg}{R_m}:paddusb {Mod}{R_m},{xmmreg}
-00001111,11011100,{MOD}{mmxreg}{R_M}:paddusb {MOD}{R_M},{mmxreg}
-01100110,00001111,11011101,{Mod}{xmmreg}{R_m}:paddusw {Mod}{R_m},{xmmreg}
-00001111,11011101,{MOD}{mmxreg}{R_M}:paddusw {MOD}{R_M},{mmxreg}
-01100110,00001111,11011110,{Mod}{xmmreg}{R_m}:pmaxub {Mod}{R_m},{xmmreg}
-00001111,11011110,{MOD}{mmxreg}{R_M}:pmaxub {MOD}{R_M},{mmxreg}
-01100110,00001111,11100000,{Mod}{xmmreg}{R_m}:pavgb {Mod}{R_m},{xmmreg}
-00001111,11100000,{MOD}{mmxreg}{R_M}:pavgb {MOD}{R_M},{mmxreg}
-01100110,00001111,11100001,{Mod}{xmmreg}{R_m}:psraw {Mod}{R_m},{xmmreg}
-00001111,11100001,{MOD}{mmxreg}{R_M}:psraw {MOD}{R_M},{mmxreg}
-01100110,00001111,11100010,{Mod}{xmmreg}{R_m}:psrad {Mod}{R_m},{xmmreg}
-00001111,11100010,{MOD}{mmxreg}{R_M}:psrad {MOD}{R_M},{mmxreg}
-01100110,00001111,11100011,{Mod}{xmmreg}{R_m}:pavgw {Mod}{R_m},{xmmreg}
-00001111,11100011,{MOD}{mmxreg}{R_M}:pavgw {MOD}{R_M},{mmxreg}
-01100110,00001111,11100100,{Mod}{xmmreg}{R_m}:pmulhuw {Mod}{R_m},{xmmreg}
-00001111,11100100,{MOD}{mmxreg}{R_M}:pmulhuw {MOD}{R_M},{mmxreg}
-01100110,00001111,11100101,{Mod}{xmmreg}{R_m}:pmulhw {Mod}{R_m},{xmmreg}
-00001111,11100101,{MOD}{mmxreg}{R_M}:pmulhw {MOD}{R_M},{mmxreg}
-01100110,00001111,11100111,{Mod}{xmmreg}{R_m}:movntdq {xmmreg},{Mod}{R_m}
-00001111,11100111,{MOD}{mmxreg}{R_M}:movntq {mmxreg},{MOD}{R_M}
-01100110,00001111,11101000,{Mod}{xmmreg}{R_m}:psubsb {Mod}{R_m},{xmmreg}
-00001111,11101000,{MOD}{mmxreg}{R_M}:psubsb {MOD}{R_M},{mmxreg}
-01100110,00001111,11101001,{Mod}{xmmreg}{R_m}:psubsw {Mod}{R_m},{xmmreg}
-00001111,11101001,{MOD}{mmxreg}{R_M}:psubsw {MOD}{R_M},{mmxreg}
-01100110,00001111,11101010,{Mod}{xmmreg}{R_m}:pminsw {Mod}{R_m},{xmmreg}
-00001111,11101010,{MOD}{mmxreg}{R_M}:pminsw {MOD}{R_M},{mmxreg}
-01100110,00001111,11101100,{Mod}{xmmreg}{R_m}:paddsb {Mod}{R_m},{xmmreg}
-00001111,11101100,{MOD}{mmxreg}{R_M}:paddsb {MOD}{R_M},{mmxreg}
-01100110,00001111,11101101,{Mod}{xmmreg}{R_m}:paddsw {Mod}{R_m},{xmmreg}
-00001111,11101101,{MOD}{mmxreg}{R_M}:paddsw {MOD}{R_M},{mmxreg}
-01100110,00001111,11101110,{Mod}{xmmreg}{R_m}:pmaxsw {Mod}{R_m},{xmmreg}
-00001111,11101110,{MOD}{mmxreg}{R_M}:pmaxsw {MOD}{R_M},{mmxreg}
-11110010,00001111,11110000,{mod}{xmmreg}{r_m}:lddqu {mod}{r_m},{xmmreg}
-01100110,00001111,11110001,{Mod}{xmmreg}{R_m}:psllw {Mod}{R_m},{xmmreg}
-00001111,11110001,{MOD}{mmxreg}{R_M}:psllw {MOD}{R_M},{mmxreg}
-01100110,00001111,11110010,{Mod}{xmmreg}{R_m}:pslld {Mod}{R_m},{xmmreg}
-00001111,11110010,{MOD}{mmxreg}{R_M}:pslld {MOD}{R_M},{mmxreg}
-01100110,00001111,11110011,{Mod}{xmmreg}{R_m}:psllq {Mod}{R_m},{xmmreg}
-00001111,11110011,{MOD}{mmxreg}{R_M}:psllq {MOD}{R_M},{mmxreg}
-01100110,00001111,11110100,{Mod}{xmmreg}{R_m}:pmuludq {Mod}{R_m},{xmmreg}
-00001111,11110100,{MOD}{mmxreg}{R_M}:pmuludq {MOD}{R_M},{mmxreg}
-01100110,00001111,11110110,{Mod}{xmmreg}{R_m}:psadbw {Mod}{R_m},{xmmreg}
-00001111,11110110,{MOD}{mmxreg}{R_M}:psadbw {MOD}{R_M},{mmxreg}
-01100110,00001111,11110111,11{xmmreg1}{xmmreg2}:maskmovdqu {xmmreg2},{xmmreg1}
-00001111,11110111,11{mmxreg1}{mmxreg2}:maskmovq {mmxreg2},{mmxreg1}
-01100110,00001111,11111000,{Mod}{xmmreg}{R_m}:psubb {Mod}{R_m},{xmmreg}
-00001111,11111000,{MOD}{mmxreg}{R_M}:psubb {MOD}{R_M},{mmxreg}
-01100110,00001111,11111001,{Mod}{xmmreg}{R_m}:psubw {Mod}{R_m},{xmmreg}
-00001111,11111001,{MOD}{mmxreg}{R_M}:psubw {MOD}{R_M},{mmxreg}
-01100110,00001111,11111010,{Mod}{xmmreg}{R_m}:psubd {Mod}{R_m},{xmmreg}
-00001111,11111010,{MOD}{mmxreg}{R_M}:psubd {MOD}{R_M},{mmxreg}
-01100110,00001111,11111011,{Mod}{xmmreg}{R_m}:psubq {Mod}{R_m},{xmmreg}
-00001111,11111011,{MOD}{mmxreg}{R_M}:psubq {MOD}{R_M},{mmxreg}
-01100110,00001111,11111100,{Mod}{xmmreg}{R_m}:paddb {Mod}{R_m},{xmmreg}
-00001111,11111100,{MOD}{mmxreg}{R_M}:paddb {MOD}{R_M},{mmxreg}
-01100110,00001111,11111101,{Mod}{xmmreg}{R_m}:paddw {Mod}{R_m},{xmmreg}
-00001111,11111101,{MOD}{mmxreg}{R_M}:paddw {MOD}{R_M},{mmxreg}
-01100110,00001111,11111110,{Mod}{xmmreg}{R_m}:paddd {Mod}{R_m},{xmmreg}
-00001111,11111110,{MOD}{mmxreg}{R_M}:paddd {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00000000,{Mod}{xmmreg}{R_m}:pshufb {Mod}{R_m},{xmmreg}
-00001111,00111000,00000000,{MOD}{mmxreg}{R_M}:pshufb {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00000001,{Mod}{xmmreg}{R_m}:phaddw {Mod}{R_m},{xmmreg}
-00001111,00111000,00000001,{MOD}{mmxreg}{R_M}:phaddw {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00000010,{Mod}{xmmreg}{R_m}:phaddd {Mod}{R_m},{xmmreg}
-00001111,00111000,00000010,{MOD}{mmxreg}{R_M}:phaddd {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00000011,{Mod}{xmmreg}{R_m}:phaddsw {Mod}{R_m},{xmmreg}
-00001111,00111000,00000011,{MOD}{mmxreg}{R_M}:phaddsw {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00000100,{Mod}{xmmreg}{R_m}:pmaddubsw {Mod}{R_m},{xmmreg}
-00001111,00111000,00000100,{MOD}{mmxreg}{R_M}:pmaddubsw {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00000101,{Mod}{xmmreg}{R_m}:phsubw {Mod}{R_m},{xmmreg}
-00001111,00111000,00000101,{MOD}{mmxreg}{R_M}:phsubw {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00000110,{Mod}{xmmreg}{R_m}:phsubd {Mod}{R_m},{xmmreg}
-00001111,00111000,00000110,{MOD}{mmxreg}{R_M}:phsubd {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00000111,{Mod}{xmmreg}{R_m}:phsubsw {Mod}{R_m},{xmmreg}
-00001111,00111000,00000111,{MOD}{mmxreg}{R_M}:phsubsw {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00001000,{Mod}{xmmreg}{R_m}:psignb {Mod}{R_m},{xmmreg}
-00001111,00111000,00001000,{MOD}{mmxreg}{R_M}:psignb {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00001001,{Mod}{xmmreg}{R_m}:psignw {Mod}{R_m},{xmmreg}
-00001111,00111000,00001001,{MOD}{mmxreg}{R_M}:psignw {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00001010,{Mod}{xmmreg}{R_m}:psignd {Mod}{R_m},{xmmreg}
-00001111,00111000,00001010,{MOD}{mmxreg}{R_M}:psignd {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00001011,{Mod}{xmmreg}{R_m}:pmulhrsw {Mod}{R_m},{xmmreg}
-00001111,00111000,00001011,{MOD}{mmxreg}{R_M}:pmulhrsw {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00011100,{Mod}{xmmreg}{R_m}:pabsb {Mod}{R_m},{xmmreg}
-00001111,00111000,00011100,{MOD}{mmxreg}{R_M}:pabsb {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00011101,{Mod}{xmmreg}{R_m}:pabsw {Mod}{R_m},{xmmreg}
-00001111,00111000,00011101,{MOD}{mmxreg}{R_M}:pabsw {MOD}{R_M},{mmxreg}
-01100110,00001111,00111000,00011110,{Mod}{xmmreg}{R_m}:pabsd {Mod}{R_m},{xmmreg}
-00001111,00111000,00011110,{MOD}{mmxreg}{R_M}:pabsd {MOD}{R_M},{mmxreg}
-01100110,00001111,00111010,00001111,{Mod}{xmmreg}{R_m},{imm8}:palignr {imm8},{Mod}{R_m},{xmmreg}
-00001111,00111010,00001111,{MOD}{mmxreg}{R_M},{imm8}:palignr {imm8},{MOD}{R_M},{mmxreg}
-01100110,00001111,11000111,{mod}110{r_m}:vmclear {mod}{r_m}
-11110011,00001111,11000111,{mod}110{r_m}:vmxon {mod}{r_m}
-00001111,11000111,{mod}110{r_m}:vmptrld {mod}{r_m}
-00001111,11000111,{mod}111{r_m}:vmptrst {mod}{r_m}
-01100110,00001111,01110001,11010{xmmreg},{imm8}:psrlw {imm8},{xmmreg}
-00001111,01110001,11010{mmxreg},{imm8}:psrlw {imm8},{mmxreg}
-01100110,00001111,01110001,11100{xmmreg},{imm8}:psraw {imm8},{xmmreg}
-00001111,01110001,11100{mmxreg},{imm8}:psraw {imm8},{mmxreg}
-01100110,00001111,01110001,11110{xmmreg},{imm8}:psllw {imm8},{xmmreg}
-00001111,01110001,11110{mmxreg},{imm8}:psllw {imm8},{mmxreg}
-01100110,00001111,01110010,11010{xmmreg},{imm8}:psrld {imm8},{xmmreg}
-00001111,01110010,11010{mmxreg},{imm8}:psrld {imm8},{mmxreg}
-01100110,00001111,01110010,11100{xmmreg},{imm8}:psrad {imm8},{xmmreg}
-00001111,01110010,11100{mmxreg},{imm8}:psrad {imm8},{mmxreg}
-01100110,00001111,01110010,11110{xmmreg},{imm8}:pslld {imm8},{xmmreg}
-00001111,01110010,11110{mmxreg},{imm8}:pslld {imm8},{mmxreg}
-01100110,00001111,01110011,11010{xmmreg},{imm8}:psrlq {imm8},{xmmreg}
-00001111,01110011,11010{mmxreg},{imm8}:psrlq {imm8},{mmxreg}
-01100110,00001111,01110011,11011{xmmreg},{imm8}:psrldq {imm8},{xmmreg}
-01100110,00001111,01110011,11110{xmmreg},{imm8}:psllq {imm8},{xmmreg}
-00001111,01110011,11110{mmxreg},{imm8}:psllq {imm8},{mmxreg}
-01100110,00001111,01110011,11111{xmmreg},{imm8}:pslldq {imm8},{xmmreg}
-00001111,10101110,11101000:lfence
-00001111,10101110,11110000:mfence
-00001111,10101110,11111000:sfence
-00001111,10101110,{mod}111{r_m}:clflush {mod}{r_m}
-00001111,00001111,{MOD}{mmxreg}{R_M}:INVALID {MOD}{R_M},{mmxreg}
-01100110,00001111,00111010,00001100,{Mod}{xmmreg}{R_m},{imm8}:blendps {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,00001101,{Mod}{xmmreg}{R_m},{imm8}:blendpd {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00010100,{Mod}{xmmreg}{R_m}:blendvps %xmm0,{Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00010101,{Mod}{xmmreg}{R_m}:blendvpd %xmm0,{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,01000000,{Mod}{xmmreg}{R_m},{imm8}:dpps {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,01000001,{Mod}{xmmreg}{R_m},{imm8}:dppd {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,00100001,{Mod}{xmmreg}{R_m},{imm8}:insertps {imm8},{Mod}{R_m},{xmmreg}
-# Mod == 11 is not valid
-01100110,00001111,00111000,00101010,{Mod}{xmmreg}{R_m}:movntdqa {Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,01000010,{Mod}{xmmreg}{R_m},{imm8}:mpsadbw {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00101011,{Mod}{xmmreg}{R_m}:packusdw {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00010000,{Mod}{xmmreg}{R_m}:pblendvb %xmm0,{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,00001110,{Mod}{xmmreg}{R_m},{imm8}:pblendw {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00101001,{Mod}{xmmreg}{R_m}:pcmpeqq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,01100001,{Mod}{xmmreg}{R_m},{imm8}:pcmpestri {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,01100000,{Mod}{xmmreg}{R_m},{imm8}:pcmpestrm {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,01100011,{Mod}{xmmreg}{R_m},{imm8}:pcmpistri {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,01100010,{Mod}{xmmreg}{R_m},{imm8}:pcmpistrm {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00110111,{Mod}{xmmreg}{R_m}:pcmpgtq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,01000001,{Mod}{xmmreg}{R_m}:phminposuw {Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,00100000,{mod}{xmmreg}{r_m},{imm8}:pinsrb {imm8},{mod}{r_m},{xmmreg}
-01100110,00001111,00111010,00100010,{mod}{xmmreg}{r_m},{imm8}:pinsrd {imm8},{mod}{r_m},{xmmreg}
-01100110,00001111,00111000,00111100,{Mod}{xmmreg}{R_m}:pmaxsb {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00111101,{Mod}{xmmreg}{R_m}:pmaxsd {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00111111,{Mod}{xmmreg}{R_m}:pmaxud {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00111110,{Mod}{xmmreg}{R_m}:pmaxuw {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00111000,{Mod}{xmmreg}{R_m}:pminsb {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00111001,{Mod}{xmmreg}{R_m}:pminsd {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00111011,{Mod}{xmmreg}{R_m}:pminud {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00111010,{Mod}{xmmreg}{R_m}:pminuw {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00100000,{Mod}{xmmreg}{R_m}:pmovsxbw {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00100001,{Mod}{xmmreg}{R_m}:pmovsxbd {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00100010,{Mod}{xmmreg}{R_m}:pmovsxbq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00100011,{Mod}{xmmreg}{R_m}:pmovsxwd {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00100100,{Mod}{xmmreg}{R_m}:pmovsxwq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00100101,{Mod}{xmmreg}{R_m}:pmovsxdq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00110000,{Mod}{xmmreg}{R_m}:pmovzxbw {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00110001,{Mod}{xmmreg}{R_m}:pmovzxbd {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00110010,{Mod}{xmmreg}{R_m}:pmovzxbq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00110011,{Mod}{xmmreg}{R_m}:pmovzxwd {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00110100,{Mod}{xmmreg}{R_m}:pmovzxwq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00110101,{Mod}{xmmreg}{R_m}:pmovzxdq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00101000,{Mod}{xmmreg}{R_m}:pmuldq {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,01000000,{Mod}{xmmreg}{R_m}:pmulld {Mod}{R_m},{xmmreg}
-01100110,00001111,00111000,00010111,{Mod}{xmmreg}{R_m}:ptest {Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,00001000,{Mod}{xmmreg}{R_m},{imm8}:roundps {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,00001001,{Mod}{xmmreg}{R_m},{imm8}:roundpd {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,00001010,{Mod}{xmmreg}{R_m},{imm8}:roundss {imm8},{Mod}{R_m},{xmmreg}
-01100110,00001111,00111010,00001011,{Mod}{xmmreg}{R_m},{imm8}:roundsd {imm8},{Mod}{R_m},{xmmreg}
-# ORDER:
-dnl Many previous entries depend on this being last.
-000{sreg2}111:pop {sreg2}
-# ORDER END:
diff --git a/src/libcpu/i386_data.h b/src/libcpu/i386_data.h
deleted file mode 100644
index b8a34c3e..00000000
--- a/src/libcpu/i386_data.h
+++ /dev/null
@@ -1,1418 +0,0 @@
-/* Helper routines for disassembler for x86/x86-64.
- Copyright (C) 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2007.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <inttypes.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <libasm.h>
-
-struct instr_enc
-{
- /* The mnemonic. Especially encoded for the optimized table. */
- unsigned int mnemonic : MNEMONIC_BITS;
-
- /* The rep/repe prefixes. */
- unsigned int rep : 1;
- unsigned int repe : 1;
-
- /* Mnemonic suffix. */
- unsigned int suffix : SUFFIX_BITS;
-
- /* Nonzero if the instruction uses modr/m. */
- unsigned int modrm : 1;
-
- /* 1st parameter. */
- unsigned int fct1 : FCT1_BITS;
-#ifdef STR1_BITS
- unsigned int str1 : STR1_BITS;
-#endif
- unsigned int off1_1 : OFF1_1_BITS;
- unsigned int off1_2 : OFF1_2_BITS;
- unsigned int off1_3 : OFF1_3_BITS;
-
- /* 2nd parameter. */
- unsigned int fct2 : FCT2_BITS;
-#ifdef STR2_BITS
- unsigned int str2 : STR2_BITS;
-#endif
- unsigned int off2_1 : OFF2_1_BITS;
- unsigned int off2_2 : OFF2_2_BITS;
- unsigned int off2_3 : OFF2_3_BITS;
-
- /* 3rd parameter. */
- unsigned int fct3 : FCT3_BITS;
-#ifdef STR3_BITS
- unsigned int str3 : STR3_BITS;
-#endif
- unsigned int off3_1 : OFF3_1_BITS;
-#ifdef OFF3_2_BITS
- unsigned int off3_2 : OFF3_2_BITS;
-#endif
-#ifdef OFF3_3_BITS
- unsigned int off3_3 : OFF3_3_BITS;
-#endif
-};
-
-
-typedef int (*opfct_t) (struct output_data *);
-
-
-static int
-data_prefix (struct output_data *d)
-{
- char ch = '\0';
- if (*d->prefixes & has_cs)
- {
- ch = 'c';
- *d->prefixes &= ~has_cs;
- }
- else if (*d->prefixes & has_ds)
- {
- ch = 'd';
- *d->prefixes &= ~has_ds;
- }
- else if (*d->prefixes & has_es)
- {
- ch = 'e';
- *d->prefixes &= ~has_es;
- }
- else if (*d->prefixes & has_fs)
- {
- ch = 'f';
- *d->prefixes &= ~has_fs;
- }
- else if (*d->prefixes & has_gs)
- {
- ch = 'g';
- *d->prefixes &= ~has_gs;
- }
- else if (*d->prefixes & has_ss)
- {
- ch = 's';
- *d->prefixes &= ~has_ss;
- }
- else
- return 0;
-
- if (*d->bufcntp + 4 > d->bufsize)
- return *d->bufcntp + 4 - d->bufsize;
-
- d->bufp[(*d->bufcntp)++] = '%';
- d->bufp[(*d->bufcntp)++] = ch;
- d->bufp[(*d->bufcntp)++] = 's';
- d->bufp[(*d->bufcntp)++] = ':';
-
- return 0;
-}
-
-#ifdef X86_64
-static const char hiregs[8][4] =
- {
- "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
- };
-static const char aregs[8][4] =
- {
- "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi"
- };
-static const char dregs[8][4] =
- {
- "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi"
- };
-#else
-static const char aregs[8][4] =
- {
- "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi"
- };
-# define dregs aregs
-#endif
-
-static int
-general_mod$r_m (struct output_data *d)
-{
- int r = data_prefix (d);
- if (r != 0)
- return r;
-
- int prefixes = *d->prefixes;
- const uint8_t *data = &d->data[d->opoff1 / 8];
- char *bufp = d->bufp;
- size_t *bufcntp = d->bufcntp;
- size_t bufsize = d->bufsize;
-
- uint_fast8_t modrm = data[0];
-#ifndef X86_64
- if (unlikely ((prefixes & has_addr16) != 0))
- {
- int16_t disp = 0;
- bool nodisp = false;
-
- if ((modrm & 0xc7) == 6 || (modrm & 0xc0) == 0x80)
- /* 16 bit displacement. */
- disp = read_2sbyte_unaligned (&data[1]);
- else if ((modrm & 0xc0) == 0x40)
- /* 8 bit displacement. */
- disp = *(const int8_t *) &data[1];
- else if ((modrm & 0xc0) == 0)
- nodisp = true;
-
- char tmpbuf[sizeof ("-0x1234(%rr,%rr)")];
- int n;
- if ((modrm & 0xc7) == 6)
- n = snprintf (tmpbuf, sizeof (tmpbuf), "0x%" PRIx16, disp);
- else
- {
- n = 0;
- if (!nodisp)
- n = snprintf (tmpbuf, sizeof (tmpbuf), "%s0x%" PRIx16,
- disp < 0 ? "-" : "", disp < 0 ? -disp : disp);
-
- if ((modrm & 0x4) == 0)
- n += snprintf (tmpbuf + n, sizeof (tmpbuf) - n, "(%%b%c,%%%ci)",
- "xp"[(modrm >> 1) & 1], "sd"[modrm & 1]);
- else
- n += snprintf (tmpbuf + n, sizeof (tmpbuf) - n, "(%%%s)",
- ((const char [4][3]) { "si", "di", "bp", "bx" })[modrm & 3]);
- }
-
- if (*bufcntp + n + 1 > bufsize)
- return *bufcntp + n + 1 - bufsize;
-
- memcpy (&bufp[*bufcntp], tmpbuf, n + 1);
- *bufcntp += n;
- }
- else
-#endif
- {
- if ((modrm & 7) != 4)
- {
- int32_t disp = 0;
- bool nodisp = false;
-
- if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80)
- /* 32 bit displacement. */
- disp = read_4sbyte_unaligned (&data[1]);
- else if ((modrm & 0xc0) == 0x40)
- /* 8 bit displacement. */
- disp = *(const int8_t *) &data[1];
- else if ((modrm & 0xc0) == 0)
- nodisp = true;
-
- char tmpbuf[sizeof ("-0x12345678(%rrrr)")];
- int n;
- if (nodisp)
- {
- n = snprintf (tmpbuf, sizeof (tmpbuf), "(%%%s)",
-#ifdef X86_64
- (prefixes & has_rex_b) ? hiregs[modrm & 7] :
-#endif
- aregs[modrm & 7]);
-#ifdef X86_64
- if (prefixes & has_addr16)
- {
- if (prefixes & has_rex_b)
- tmpbuf[n++] = 'd';
- else
- tmpbuf[2] = 'e';
- }
-#endif
- }
- else if ((modrm & 0xc7) != 5)
- {
- int p;
- n = snprintf (tmpbuf, sizeof (tmpbuf), "%s0x%" PRIx32 "(%%%n%s)",
- disp < 0 ? "-" : "", disp < 0 ? -disp : disp, &p,
-#ifdef X86_64
- (prefixes & has_rex_b) ? hiregs[modrm & 7] :
-#endif
- aregs[modrm & 7]);
-#ifdef X86_64
- if (prefixes & has_addr16)
- {
- if (prefixes & has_rex_b)
- tmpbuf[n++] = 'd';
- else
- tmpbuf[p] = 'e';
- }
-#endif
- }
- else
- {
-#ifdef X86_64
- n = snprintf (tmpbuf, sizeof (tmpbuf), "%s0x%" PRIx32 "(%%rip)",
- disp < 0 ? "-" : "", disp < 0 ? -disp : disp);
-
- d->symaddr_use = addr_rel_always;
- d->symaddr = disp;
-#else
- n = snprintf (tmpbuf, sizeof (tmpbuf), "0x%" PRIx32, disp);
-#endif
- }
-
- if (*bufcntp + n + 1 > bufsize)
- return *bufcntp + n + 1 - bufsize;
-
- memcpy (&bufp[*bufcntp], tmpbuf, n + 1);
- *bufcntp += n;
- }
- else
- {
- /* SIB */
- uint_fast8_t sib = data[1];
- int32_t disp = 0;
- bool nodisp = false;
-
- if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80
- || ((modrm & 0xc7) == 0x4 && (sib & 0x7) == 0x5))
- /* 32 bit displacement. */
- disp = read_4sbyte_unaligned (&data[2]);
- else if ((modrm & 0xc0) == 0x40)
- /* 8 bit displacement. */
- disp = *(const int8_t *) &data[2];
- else
- nodisp = true;
-
- char tmpbuf[sizeof ("-0x12345678(%rrrr,%rrrr,N)")];
- char *cp = tmpbuf;
- int n;
- if ((modrm & 0xc0) != 0 || (sib & 0x3f) != 0x25
-#ifdef X86_64
- || (prefixes & has_rex_x) != 0
-#endif
- )
- {
- if (!nodisp)
- {
- n = snprintf (cp, sizeof (tmpbuf), "%s0x%" PRIx32,
- disp < 0 ? "-" : "", disp < 0 ? -disp : disp);
- cp += n;
- }
-
- *cp++ = '(';
-
- if ((modrm & 0xc7) != 0x4 || (sib & 0x7) != 0x5)
- {
- *cp++ = '%';
- cp = stpcpy (cp,
-#ifdef X86_64
- (prefixes & has_rex_b) ? hiregs[sib & 7] :
- (prefixes & has_addr16) ? dregs[sib & 7] :
-#endif
- aregs[sib & 7]);
-#ifdef X86_64
- if ((prefixes & (has_rex_b | has_addr16))
- == (has_rex_b | has_addr16))
- *cp++ = 'd';
-#endif
- }
-
- if ((sib & 0x38) != 0x20
-#ifdef X86_64
- || (prefixes & has_rex_x) != 0
-#endif
- )
- {
- *cp++ = ',';
- *cp++ = '%';
- cp = stpcpy (cp,
-#ifdef X86_64
- (prefixes & has_rex_x)
- ? hiregs[(sib >> 3) & 7] :
- (prefixes & has_addr16)
- ? dregs[(sib >> 3) & 7] :
-#endif
- aregs[(sib >> 3) & 7]);
-#ifdef X86_64
- if ((prefixes & (has_rex_b | has_addr16))
- == (has_rex_b | has_addr16))
- *cp++ = 'd';
-#endif
-
- *cp++ = ',';
- *cp++ = '0' + (1 << (sib >> 6));
- }
-
- *cp++ = ')';
- }
- else
- {
- assert (! nodisp);
-#ifdef X86_64
- if ((prefixes & has_addr16) == 0)
- n = snprintf (cp, sizeof (tmpbuf), "0x%" PRIx64,
- (int64_t) disp);
- else
-#endif
- n = snprintf (cp, sizeof (tmpbuf), "0x%" PRIx32, disp);
- cp += n;
- }
-
- if (*bufcntp + (cp - tmpbuf) > bufsize)
- return *bufcntp + (cp - tmpbuf) - bufsize;
-
- memcpy (&bufp[*bufcntp], tmpbuf, cp - tmpbuf);
- *bufcntp += cp - tmpbuf;
- }
- }
- return 0;
-}
-
-
-static int
-FCT_MOD$R_M (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- uint_fast8_t modrm = d->data[d->opoff1 / 8];
- if ((modrm & 0xc0) == 0xc0)
- {
- assert (d->opoff1 / 8 == d->opoff2 / 8);
- assert (d->opoff2 % 8 == 5);
- //uint_fast8_t byte = d->data[d->opoff2 / 8] & 7;
- uint_fast8_t byte = modrm & 7;
-
- size_t *bufcntp = d->bufcntp;
- char *buf = d->bufp + *bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed;
- if (*d->prefixes & (has_rep | has_repne))
- needed = snprintf (buf, avail, "%%%s", dregs[byte]);
- else
- needed = snprintf (buf, avail, "%%mm%" PRIxFAST8, byte);
- if ((size_t) needed > avail)
- return needed - avail;
- *bufcntp += needed;
- return 0;
- }
-
- return general_mod$r_m (d);
-}
-
-
-static int
-FCT_Mod$R_m (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- uint_fast8_t modrm = d->data[d->opoff1 / 8];
- if ((modrm & 0xc0) == 0xc0)
- {
- assert (d->opoff1 / 8 == d->opoff2 / 8);
- assert (d->opoff2 % 8 == 5);
- //uint_fast8_t byte = data[opoff2 / 8] & 7;
- uint_fast8_t byte = modrm & 7;
-
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "%%xmm%" PRIxFAST8,
- byte);
- if ((size_t) needed > avail)
- return needed - avail;
- *d->bufcntp += needed;
- return 0;
- }
-
- return general_mod$r_m (d);
-}
-
-static int
-generic_abs (struct output_data *d, const char *absstring
-#ifdef X86_64
- , int abslen
-#else
-# define abslen 4
-#endif
- )
-{
- int r = data_prefix (d);
- if (r != 0)
- return r;
-
- assert (d->opoff1 % 8 == 0);
- assert (d->opoff1 / 8 == 1);
- if (*d->param_start + abslen > d->end)
- return -1;
- *d->param_start += abslen;
-#ifndef X86_64
- uint32_t absval;
-# define ABSPRIFMT PRIx32
-#else
- uint64_t absval;
-# define ABSPRIFMT PRIx64
- if (abslen == 8)
- absval = read_8ubyte_unaligned (&d->data[1]);
- else
-#endif
- absval = read_4ubyte_unaligned (&d->data[1]);
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "%s0x%" ABSPRIFMT,
- absstring, absval);
- if ((size_t) needed > avail)
- return needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_absval (struct output_data *d)
-{
- return generic_abs (d, "$"
-#ifdef X86_64
- , 4
-#endif
- );
-}
-
-static int
-FCT_abs (struct output_data *d)
-{
- return generic_abs (d, ""
-#ifdef X86_64
- , 8
-#endif
- );
-}
-
-static int
-FCT_ax (struct output_data *d)
-{
- int is_16bit = (*d->prefixes & has_data16) != 0;
-
- size_t *bufcntp = d->bufcntp;
- char *bufp = d->bufp;
- size_t bufsize = d->bufsize;
-
- if (*bufcntp + 4 - is_16bit > bufsize)
- return *bufcntp + 4 - is_16bit - bufsize;
-
- bufp[(*bufcntp)++] = '%';
- if (! is_16bit)
- bufp[(*bufcntp)++] = (
-#ifdef X86_64
- (*d->prefixes & has_rex_w) ? 'r' :
-#endif
- 'e');
- bufp[(*bufcntp)++] = 'a';
- bufp[(*bufcntp)++] = 'x';
-
- return 0;
-}
-
-
-static int
-FCT_ax$w (struct output_data *d)
-{
- if ((d->data[d->opoff2 / 8] & (1 << (7 - (d->opoff2 & 7)))) != 0)
- return FCT_ax (d);
-
- size_t *bufcntp = d->bufcntp;
- char *bufp = d->bufp;
- size_t bufsize = d->bufsize;
-
- if (*bufcntp + 3 > bufsize)
- return *bufcntp + 3 - bufsize;
-
- bufp[(*bufcntp)++] = '%';
- bufp[(*bufcntp)++] = 'a';
- bufp[(*bufcntp)++] = 'l';
-
- return 0;
-}
-
-
-static int
-__attribute__ ((noinline))
-FCT_crdb (struct output_data *d, const char *regstr)
-{
- if (*d->prefixes & has_data16)
- return -1;
-
- size_t *bufcntp = d->bufcntp;
-
- // XXX If this assert is true, use absolute offset below
- assert (d->opoff1 / 8 == 2);
- assert (d->opoff1 % 8 == 2);
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "%%%s%" PRIx32,
- regstr, (uint32_t) (d->data[d->opoff1 / 8] >> 3) & 7);
- if ((size_t) needed > avail)
- return needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_ccc (struct output_data *d)
-{
- return FCT_crdb (d, "cr");
-}
-
-
-static int
-FCT_ddd (struct output_data *d)
-{
- return FCT_crdb (d, "db");
-}
-
-
-static int
-FCT_disp8 (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- if (*d->param_start >= d->end)
- return -1;
- int32_t offset = *(const int8_t *) (*d->param_start)++;
-
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx32,
- (uint32_t) (d->addr + (*d->param_start - d->data)
- + offset));
- if ((size_t) needed > avail)
- return needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-__attribute__ ((noinline))
-FCT_ds_xx (struct output_data *d, const char *reg)
-{
- int prefix = *d->prefixes & SEGMENT_PREFIXES;
-
- if (prefix == 0)
- *d->prefixes |= prefix = has_ds;
- /* Make sure only one bit is set. */
- else if ((prefix - 1) & prefix)
- return -1;
-
- int r = data_prefix (d);
-
- assert ((*d->prefixes & prefix) == 0);
-
- if (r != 0)
- return r;
-
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "(%%%s%s)",
-#ifdef X86_64
- *d->prefixes & idx_addr16 ? "e" : "r",
-#else
- *d->prefixes & idx_addr16 ? "" : "e",
-#endif
- reg);
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
-
- return 0;
-}
-
-
-static int
-FCT_ds_bx (struct output_data *d)
-{
- return FCT_ds_xx (d, "bx");
-}
-
-
-static int
-FCT_ds_si (struct output_data *d)
-{
- return FCT_ds_xx (d, "si");
-}
-
-
-static int
-FCT_dx (struct output_data *d)
-{
- size_t *bufcntp = d->bufcntp;
-
- if (*bufcntp + 7 > d->bufsize)
- return *bufcntp + 7 - d->bufsize;
-
- memcpy (&d->bufp[*bufcntp], "(%dx)", 5);
- *bufcntp += 5;
-
- return 0;
-}
-
-
-static int
-FCT_es_di (struct output_data *d)
-{
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "%%es:(%%%sdi)",
-#ifdef X86_64
- *d->prefixes & idx_addr16 ? "e" : "r"
-#else
- *d->prefixes & idx_addr16 ? "" : "e"
-#endif
- );
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
-
- return 0;
-}
-
-
-static int
-FCT_imm (struct output_data *d)
-{
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed;
- if (*d->prefixes & has_data16)
- {
- if (*d->param_start + 2 > d->end)
- return -1;
- uint16_t word = read_2ubyte_unaligned_inc (*d->param_start);
- needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word);
- }
- else
- {
- if (*d->param_start + 4 > d->end)
- return -1;
- int32_t word = read_4sbyte_unaligned_inc (*d->param_start);
-#ifdef X86_64
- if (*d->prefixes & has_rex_w)
- needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64,
- (int64_t) word);
- else
-#endif
- needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word);
- }
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_imm$w (struct output_data *d)
-{
- if ((d->data[d->opoff2 / 8] & (1 << (7 - (d->opoff2 & 7)))) != 0)
- return FCT_imm (d);
-
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- if (*d->param_start>= d->end)
- return -1;
- uint_fast8_t word = *(*d->param_start)++;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIxFAST8, word);
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-#ifdef X86_64
-static int
-FCT_imm64$w (struct output_data *d)
-{
- if ((d->data[d->opoff2 / 8] & (1 << (7 - (d->opoff2 & 7)))) == 0
- || (*d->prefixes & has_data16) != 0)
- return FCT_imm$w (d);
-
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed;
- if (*d->prefixes & has_rex_w)
- {
- if (*d->param_start + 8 > d->end)
- return -1;
- uint64_t word = read_8ubyte_unaligned_inc (*d->param_start);
- needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64, word);
- }
- else
- {
- if (*d->param_start + 4 > d->end)
- return -1;
- int32_t word = read_4sbyte_unaligned_inc (*d->param_start);
- needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word);
- }
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-#endif
-
-
-static int
-FCT_imms (struct output_data *d)
-{
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- if (*d->param_start>= d->end)
- return -1;
- int8_t byte = *(*d->param_start)++;
-#ifdef X86_64
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64,
- (int64_t) byte);
-#else
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32,
- (int32_t) byte);
-#endif
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_imm$s (struct output_data *d)
-{
- uint_fast8_t opcode = d->data[d->opoff2 / 8];
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- if ((opcode & 2) != 0)
- return FCT_imms (d);
-
- if ((*d->prefixes & has_data16) == 0)
- {
- if (*d->param_start + 4 > d->end)
- return -1;
- int32_t word = read_4sbyte_unaligned_inc (*d->param_start);
-#ifdef X86_64
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64,
- (int64_t) word);
-#else
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32, word);
-#endif
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- }
- else
- {
- if (*d->param_start + 2 > d->end)
- return -1;
- uint16_t word = read_2ubyte_unaligned_inc (*d->param_start);
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word);
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- }
- return 0;
-}
-
-
-static int
-FCT_imm16 (struct output_data *d)
-{
- if (*d->param_start + 2 > d->end)
- return -1;
- uint16_t word = read_2ubyte_unaligned_inc (*d->param_start);
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, word);
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_imms8 (struct output_data *d)
-{
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- if (*d->param_start >= d->end)
- return -1;
- int_fast8_t byte = *(*d->param_start)++;
- int needed;
-#ifdef X86_64
- if (*d->prefixes & has_rex_w)
- needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx64,
- (int64_t) byte);
- else
-#endif
- needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32,
- (int32_t) byte);
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_imm8 (struct output_data *d)
-{
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- if (*d->param_start >= d->end)
- return -1;
- uint_fast8_t byte = *(*d->param_start)++;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx32,
- (uint32_t) byte);
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_rel (struct output_data *d)
-{
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- if (*d->param_start + 4 > d->end)
- return -1;
- int32_t rel = read_4sbyte_unaligned_inc (*d->param_start);
-#ifdef X86_64
- int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx64,
- (uint64_t) (d->addr + rel
- + (*d->param_start - d->data)));
-#else
- int needed = snprintf (&d->bufp[*bufcntp], avail, "0x%" PRIx32,
- (uint32_t) (d->addr + rel
- + (*d->param_start - d->data)));
-#endif
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_mmxreg (struct output_data *d)
-{
- uint_fast8_t byte = d->data[d->opoff1 / 8];
- assert (d->opoff1 % 8 == 2 || d->opoff1 % 8 == 5);
- byte = (byte >> (5 - d->opoff1 % 8)) & 7;
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "%%mm%" PRIxFAST8, byte);
- if ((size_t) needed > avail)
- return needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_mod$r_m (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- uint_fast8_t modrm = d->data[d->opoff1 / 8];
- if ((modrm & 0xc0) == 0xc0)
- {
- int prefixes = *d->prefixes;
- if (prefixes & has_addr16)
- return -1;
-
- int is_16bit = (prefixes & has_data16) != 0;
-
- size_t *bufcntp = d->bufcntp;
- char *bufp = d->bufp;
- if (*bufcntp + 5 - is_16bit > d->bufsize)
- return *bufcntp + 5 - is_16bit - d->bufsize;
- bufp[(*bufcntp)++] = '%';
-
- char *cp;
-#ifdef X86_64
- if ((prefixes & has_rex_b) != 0 && !is_16bit)
- {
- cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]);
- if ((prefixes & has_rex_w) == 0)
- *cp++ = 'd';
- }
- else
-#endif
- {
- cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit);
-#ifdef X86_64
- if ((prefixes & has_rex_w) != 0)
- bufp[*bufcntp] = 'r';
-#endif
- }
- *bufcntp = cp - bufp;
- return 0;
- }
-
- return general_mod$r_m (d);
-}
-
-
-#ifndef X86_64
-static int
-FCT_moda$r_m (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- uint_fast8_t modrm = d->data[d->opoff1 / 8];
- if ((modrm & 0xc0) == 0xc0)
- {
- if (*d->prefixes & has_addr16)
- return -1;
-
- size_t *bufcntp = d->bufcntp;
- if (*bufcntp + 3 > d->bufsize)
- return *bufcntp + 3 - d->bufsize;
-
- memcpy (&d->bufp[*bufcntp], "???", 3);
- *bufcntp += 3;
-
- return 0;
- }
-
- return general_mod$r_m (d);
-}
-#endif
-
-
-#ifdef X86_64
-static const char rex_8bit[8][3] =
- {
- [0] = "a", [1] = "c", [2] = "d", [3] = "b",
- [4] = "sp", [5] = "bp", [6] = "si", [7] = "di"
- };
-#endif
-
-
-static int
-FCT_mod$r_m$w (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- const uint8_t *data = d->data;
- uint_fast8_t modrm = data[d->opoff1 / 8];
- if ((modrm & 0xc0) == 0xc0)
- {
- int prefixes = *d->prefixes;
-
- if (prefixes & has_addr16)
- return -1;
-
- size_t *bufcntp = d->bufcntp;
- char *bufp = d->bufp;
- if (*bufcntp + 5 > d->bufsize)
- return *bufcntp + 5 - d->bufsize;
-
- if ((data[d->opoff3 / 8] & (1 << (7 - (d->opoff3 & 7)))) == 0)
- {
- bufp[(*bufcntp)++] = '%';
-
-#ifdef X86_64
- if (prefixes & has_rex)
- {
- if (prefixes & has_rex_r)
- *bufcntp += snprintf (bufp + *bufcntp, d->bufsize - *bufcntp,
- "r%db", 8 + (modrm & 7));
- else
- {
- char *cp = stpcpy (bufp + *bufcntp, hiregs[modrm & 7]);
- *cp++ = 'l';
- *bufcntp = cp - bufp;
- }
- }
- else
-#endif
- {
- bufp[(*bufcntp)++] = "acdb"[modrm & 3];
- bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2];
- }
- }
- else
- {
- int is_16bit = (prefixes & has_data16) != 0;
-
- bufp[(*bufcntp)++] = '%';
-
- char *cp;
-#ifdef X86_64
- if ((prefixes & has_rex_b) != 0 && !is_16bit)
- {
- cp = stpcpy (&bufp[*bufcntp], hiregs[modrm & 7]);
- if ((prefixes & has_rex_w) == 0)
- *cp++ = 'd';
- }
- else
-#endif
- {
- cp = stpcpy (&bufp[*bufcntp], dregs[modrm & 7] + is_16bit);
-#ifdef X86_64
- if ((prefixes & has_rex_w) != 0)
- bufp[*bufcntp] = 'r';
-#endif
- }
- *bufcntp = cp - bufp;
- }
- return 0;
- }
-
- return general_mod$r_m (d);
-}
-
-
-static int
-FCT_mod$8r_m (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- uint_fast8_t modrm = d->data[d->opoff1 / 8];
- if ((modrm & 0xc0) == 0xc0)
- {
- size_t *bufcntp = d->bufcntp;
- char *bufp = d->bufp;
- if (*bufcntp + 3 > d->bufsize)
- return *bufcntp + 3 - d->bufsize;
- bufp[(*bufcntp)++] = '%';
- bufp[(*bufcntp)++] = "acdb"[modrm & 3];
- bufp[(*bufcntp)++] = "lh"[(modrm & 4) >> 2];
- return 0;
- }
-
- return general_mod$r_m (d);
-}
-
-
-static int
-FCT_mod$16r_m (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- uint_fast8_t modrm = d->data[d->opoff1 / 8];
- if ((modrm & 0xc0) == 0xc0)
- {
- assert (d->opoff1 / 8 == d->opoff2 / 8);
- //uint_fast8_t byte = data[opoff2 / 8] & 7;
- uint_fast8_t byte = modrm & 7;
-
- size_t *bufcntp = d->bufcntp;
- if (*bufcntp + 3 > d->bufsize)
- return *bufcntp + 3 - d->bufsize;
- d->bufp[(*bufcntp)++] = '%';
- memcpy (&d->bufp[*bufcntp], dregs[byte] + 1, sizeof (dregs[0]) - 1);
- *bufcntp += 2;
- return 0;
- }
-
- return general_mod$r_m (d);
-}
-
-
-#ifdef X86_64
-static int
-FCT_mod$64r_m (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- uint_fast8_t modrm = d->data[d->opoff1 / 8];
- if ((modrm & 0xc0) == 0xc0)
- {
- assert (d->opoff1 / 8 == d->opoff2 / 8);
- //uint_fast8_t byte = data[opoff2 / 8] & 7;
- uint_fast8_t byte = modrm & 7;
-
- size_t *bufcntp = d->bufcntp;
- if (*bufcntp + 4 > d->bufsize)
- return *bufcntp + 4 - d->bufsize;
- char *cp = &d->bufp[*bufcntp];
- *cp++ = '%';
- cp = stpcpy (cp,
- (*d->prefixes & has_rex_b) ? hiregs[byte] : aregs[byte]);
- *bufcntp = cp - d->bufp;
- return 0;
- }
-
- return general_mod$r_m (d);
-}
-#else
-static typeof (FCT_mod$r_m) FCT_mod$64r_m __attribute__ ((alias ("FCT_mod$r_m")));
-#endif
-
-
-static int
-FCT_reg (struct output_data *d)
-{
- uint_fast8_t byte = d->data[d->opoff1 / 8];
- assert (d->opoff1 % 8 + 3 <= 8);
- byte >>= 8 - (d->opoff1 % 8 + 3);
- byte &= 7;
- int is_16bit = (*d->prefixes & has_data16) != 0;
- size_t *bufcntp = d->bufcntp;
- if (*bufcntp + 5 > d->bufsize)
- return *bufcntp + 5 - d->bufsize;
- d->bufp[(*bufcntp)++] = '%';
-#ifdef X86_64
- if ((*d->prefixes & has_rex_r) != 0 && !is_16bit)
- {
- *bufcntp += snprintf (&d->bufp[*bufcntp], d->bufsize - *bufcntp, "r%d",
- 8 + byte);
- if ((*d->prefixes & has_rex_w) == 0)
- d->bufp[(*bufcntp)++] = 'd';
- }
- else
-#endif
- {
- memcpy (&d->bufp[*bufcntp], dregs[byte] + is_16bit, 3 - is_16bit);
-#ifdef X86_64
- if ((*d->prefixes & has_rex_w) != 0 && !is_16bit)
- d->bufp[*bufcntp] = 'r';
-#endif
- *bufcntp += 3 - is_16bit;
- }
- return 0;
-}
-
-
-#ifdef X86_64
-static int
-FCT_oreg (struct output_data *d)
-{
- /* Special form where register comes from opcode. The rex.B bit is used,
- rex.R and rex.X are ignored. */
- int save_prefixes = *d->prefixes;
-
- *d->prefixes = ((save_prefixes & ~has_rex_r)
- | ((save_prefixes & has_rex_b) << (idx_rex_r - idx_rex_b)));
-
- int r = FCT_reg (d);
-
- *d->prefixes = save_prefixes;
-
- return r;
-}
-#endif
-
-
-static int
-FCT_reg64 (struct output_data *d)
-{
- uint_fast8_t byte = d->data[d->opoff1 / 8];
- assert (d->opoff1 % 8 + 3 <= 8);
- byte >>= 8 - (d->opoff1 % 8 + 3);
- byte &= 7;
- if ((*d->prefixes & has_data16) != 0)
- return -1;
- size_t *bufcntp = d->bufcntp;
- if (*bufcntp + 5 > d->bufsize)
- return *bufcntp + 5 - d->bufsize;
- d->bufp[(*bufcntp)++] = '%';
-#ifdef X86_64
- if ((*d->prefixes & has_rex_r) != 0)
- {
- *bufcntp += snprintf (&d->bufp[*bufcntp], d->bufsize - *bufcntp, "r%d",
- 8 + byte);
- if ((*d->prefixes & has_rex_w) == 0)
- d->bufp[(*bufcntp)++] = 'd';
- }
- else
-#endif
- {
- memcpy (&d->bufp[*bufcntp], aregs[byte], 3);
- *bufcntp += 3;
- }
- return 0;
-}
-
-
-static int
-FCT_reg$w (struct output_data *d)
-{
- if (d->data[d->opoff2 / 8] & (1 << (7 - (d->opoff2 & 7))))
- return FCT_reg (d);
-
- uint_fast8_t byte = d->data[d->opoff1 / 8];
- assert (d->opoff1 % 8 + 3 <= 8);
- byte >>= 8 - (d->opoff1 % 8 + 3);
- byte &= 7;
-
- size_t *bufcntp = d->bufcntp;
- if (*bufcntp + 4 > d->bufsize)
- return *bufcntp + 4 - d->bufsize;
-
- d->bufp[(*bufcntp)++] = '%';
-
-#ifdef X86_64
- if (*d->prefixes & has_rex)
- {
- if (*d->prefixes & has_rex_r)
- *bufcntp += snprintf (d->bufp + *bufcntp, d->bufsize - *bufcntp,
- "r%db", 8 + byte);
- else
- {
- char* cp = stpcpy (d->bufp + *bufcntp, rex_8bit[byte]);
- *cp++ = 'l';
- *bufcntp = cp - d->bufp;
- }
- }
- else
-#endif
- {
- d->bufp[(*bufcntp)++] = "acdb"[byte & 3];
- d->bufp[(*bufcntp)++] = "lh"[byte >> 2];
- }
- return 0;
-}
-
-
-#ifdef X86_64
-static int
-FCT_oreg$w (struct output_data *d)
-{
- /* Special form where register comes from opcode. The rex.B bit is used,
- rex.R and rex.X are ignored. */
- int save_prefixes = *d->prefixes;
-
- *d->prefixes = ((save_prefixes & ~has_rex_r)
- | ((save_prefixes & has_rex_b) << (idx_rex_r - idx_rex_b)));
-
- int r = FCT_reg$w (d);
-
- *d->prefixes = save_prefixes;
-
- return r;
-}
-#endif
-
-
-static int
-FCT_freg (struct output_data *d)
-{
- assert (d->opoff1 / 8 == 1);
- assert (d->opoff1 % 8 == 5);
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "%%st(%" PRIx32 ")",
- (uint32_t) (d->data[1] & 7));
- if ((size_t) needed > avail)
- return (size_t) needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-#ifndef X86_64
-static int
-FCT_reg16 (struct output_data *d)
-{
- if (*d->prefixes & has_data16)
- return -1;
-
- *d->prefixes |= has_data16;
- return FCT_reg (d);
-}
-#endif
-
-
-static int
-FCT_sel (struct output_data *d)
-{
- assert (d->opoff1 % 8 == 0);
- assert (d->opoff1 / 8 == 5);
- if (*d->param_start + 2 > d->end)
- return -1;
- *d->param_start += 2;
- uint16_t absval = read_2ubyte_unaligned (&d->data[5]);
-
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "$0x%" PRIx16, absval);
- if ((size_t) needed > avail)
- return needed - avail;
- *bufcntp += needed;
- return 0;
-}
-
-
-static int
-FCT_sreg2 (struct output_data *d)
-{
- uint_fast8_t byte = d->data[d->opoff1 / 8];
- assert (d->opoff1 % 8 + 3 <= 8);
- byte >>= 8 - (d->opoff1 % 8 + 2);
-
- size_t *bufcntp = d->bufcntp;
- char *bufp = d->bufp;
- if (*bufcntp + 3 > d->bufsize)
- return *bufcntp + 3 - d->bufsize;
-
- bufp[(*bufcntp)++] = '%';
- bufp[(*bufcntp)++] = "ecsd"[byte & 3];
- bufp[(*bufcntp)++] = 's';
-
- return 0;
-}
-
-
-static int
-FCT_sreg3 (struct output_data *d)
-{
- uint_fast8_t byte = d->data[d->opoff1 / 8];
- assert (d->opoff1 % 8 + 4 <= 8);
- byte >>= 8 - (d->opoff1 % 8 + 3);
-
- if ((byte & 7) >= 6)
- return -1;
-
- size_t *bufcntp = d->bufcntp;
- char *bufp = d->bufp;
- if (*bufcntp + 3 > d->bufsize)
- return *bufcntp + 3 - d->bufsize;
-
- bufp[(*bufcntp)++] = '%';
- bufp[(*bufcntp)++] = "ecsdfg"[byte & 7];
- bufp[(*bufcntp)++] = 's';
-
- return 0;
-}
-
-
-static int
-FCT_string (struct output_data *d __attribute__ ((unused)))
-{
- return 0;
-}
-
-
-static int
-FCT_xmmreg (struct output_data *d)
-{
- uint_fast8_t byte = d->data[d->opoff1 / 8];
- assert (d->opoff1 % 8 == 2 || d->opoff1 % 8 == 5);
- byte = (byte >> (5 - d->opoff1 % 8)) & 7;
-
- size_t *bufcntp = d->bufcntp;
- size_t avail = d->bufsize - *bufcntp;
- int needed = snprintf (&d->bufp[*bufcntp], avail, "%%xmm%" PRIxFAST8, byte);
- if ((size_t) needed > avail)
- return needed - avail;
- *bufcntp += needed;
- return 0;
-}
diff --git a/src/libcpu/i386_dis.h b/src/libcpu/i386_dis.h
deleted file mode 100644
index a5cc01f9..00000000
--- a/src/libcpu/i386_dis.h
+++ /dev/null
@@ -1,1657 +0,0 @@
-#define MNEMONIC_BITS 10
-#define SUFFIX_BITS 3
-#define FCT1_BITS 7
-#define STR1_BITS 4
-#define OFF1_1_BITS 7
-#define OFF1_1_BIAS 3
-#define OFF1_2_BITS 7
-#define OFF1_2_BIAS 4
-#define OFF1_3_BITS 1
-#define OFF1_3_BIAS 7
-#define FCT2_BITS 6
-#define STR2_BITS 2
-#define OFF2_1_BITS 7
-#define OFF2_1_BIAS 5
-#define OFF2_2_BITS 7
-#define OFF2_2_BIAS 4
-#define OFF2_3_BITS 4
-#define OFF2_3_BIAS 7
-#define FCT3_BITS 4
-#define STR3_BITS 1
-#define OFF3_1_BITS 6
-#define OFF3_1_BIAS 10
-#define OFF3_2_BITS 1
-#define OFF3_2_BIAS 21
-
-#include <i386_data.h>
-
-#define suffix_none 0
-#define suffix_w 1
-#define suffix_w0 2
-#define suffix_W 3
-#define suffix_tttn 4
-#define suffix_D 7
-#define suffix_w1 5
-#define suffix_W1 6
-
-static const opfct_t op1_fct[] =
-{
- NULL,
- FCT_MOD$R_M,
- FCT_Mod$R_m,
- FCT_abs,
- FCT_ax,
- FCT_ax$w,
- FCT_ccc,
- FCT_ddd,
- FCT_disp8,
- FCT_ds_bx,
- FCT_ds_si,
- FCT_dx,
- FCT_es_di,
- FCT_freg,
- FCT_imm$s,
- FCT_imm$w,
- FCT_imm16,
- FCT_imm8,
- FCT_imms8,
- FCT_mmxreg,
- FCT_mod$16r_m,
- FCT_mod$64r_m,
- FCT_mod$8r_m,
- FCT_mod$r_m,
- FCT_mod$r_m$w,
- FCT_reg,
- FCT_reg$w,
- FCT_reg16,
- FCT_reg64,
- FCT_rel,
- FCT_sel,
- FCT_sreg2,
- FCT_sreg3,
- FCT_string,
- FCT_xmmreg,
-};
-static const char op1_str[] =
- "%ax\0"
- "%cl\0"
- "%eax\0"
- "%st\0"
- "%xmm0\0"
- "*";
-static const uint8_t op1_str_idx[] = {
- 0,
- 4,
- 8,
- 13,
- 17,
- 23,
-};
-static const opfct_t op2_fct[] =
-{
- NULL,
- FCT_MOD$R_M,
- FCT_Mod$R_m,
- FCT_abs,
- FCT_absval,
- FCT_ax$w,
- FCT_ccc,
- FCT_ddd,
- FCT_ds_si,
- FCT_dx,
- FCT_es_di,
- FCT_freg,
- FCT_imm8,
- FCT_mmxreg,
- FCT_mod$64r_m,
- FCT_mod$r_m,
- FCT_mod$r_m$w,
- FCT_moda$r_m,
- FCT_reg,
- FCT_reg$w,
- FCT_reg64,
- FCT_sreg3,
- FCT_string,
- FCT_xmmreg,
-};
-static const char op2_str[] =
- "%ecx\0"
- "%st";
-static const uint8_t op2_str_idx[] = {
- 0,
- 5,
-};
-static const opfct_t op3_fct[] =
-{
- NULL,
- FCT_mmxreg,
- FCT_mod$r_m,
- FCT_reg,
- FCT_string,
- FCT_xmmreg,
-};
-static const char op3_str[] =
- "%edx";
-static const uint8_t op3_str_idx[] = {
- 0,
-};
-static const struct instr_enc instrtab[] =
-{
- { .mnemonic = MNE_aaa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_aad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_aam, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_aas, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addsubpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addsubps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_arpl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bound, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 7, .off1_2 = 0, .off1_3 = 0, .fct2 = 17, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bsf, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bswap, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 25, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bt, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_btc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_btc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_btr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_btr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bts, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bts, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_call, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 29, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_call, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 21, .str1 = 6, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lcall, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 30, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 4, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lcall, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 21, .str1 = 6, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_clc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cli, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_syscall, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_clts, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sysret, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sysenter, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sysexit, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmov, .rep = 0, .repe = 0, .suffix = 4, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmps, .rep = 0, .repe = 1, .suffix = 1, .modrm = 0, .fct1 = 12, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 8, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpxchg, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 15, .off1_2 = 11, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 8, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpxchg8b, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cpuid, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtdq2pd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpd2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttpd2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_daa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_das, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_dec, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_dec, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 25, .str1 = 0, .off1_1 = 2, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_div, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_emms, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_enter, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 16, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 12, .str2 = 0, .off2_1 = 19, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fchs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fabs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ftst, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxam, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fld1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldl2t, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldl2e, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldpi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldlg2, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldln2, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldz, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_f2xm1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fyl2x, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fptan, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fpatan, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxtract, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fprem1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdecstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fincstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fprem, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fyl2xp1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsqrt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsincos, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_frndint, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fscale, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsin, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcos, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fadd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fadd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fadd, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fmul, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fmul, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fmul, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsub, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubr, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fst, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fst, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fstp, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldenv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldcw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnstenv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnstcw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxch, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_faddp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fiadd, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmove, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fmulp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fimul, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fisub, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubrp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fisubr, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnstsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 1, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fbld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomip, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fbstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fchs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fclex, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_finit, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fwait, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnclex, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmove, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovbe, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovnb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovne, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovnbe, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovnu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcom, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcom, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomp, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcompp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomip, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fucomi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fucomip, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcos, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdecstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdiv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdiv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdiv, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fidivl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fidiv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivrp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivr, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fidivrl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fidivr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivrp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ffree, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovbe, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ficom, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ficomp, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fild, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fildl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fildll, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fincstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fninit, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fist, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fistp, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fistpll, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fisttp, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fisttpll, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fstpt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fld, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fucom, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_frstor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fucomp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnsave, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnstsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_hlt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_idiv, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_imul, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_imul, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_imul, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 14, .str1 = 0, .off1_1 = 13, .off1_2 = 2, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 3, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_in, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_in, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 11, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 3, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_inc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_inc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 25, .str1 = 0, .off1_1 = 2, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ins, .rep = 1, .repe = 0, .suffix = 1, .modrm = 0, .fct1 = 11, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 10, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_int, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_int3, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_into, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_invd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_swapgs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_invlpg, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_iret, .rep = 0, .repe = 0, .suffix = 6, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_j, .rep = 0, .repe = 0, .suffix = 4, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_j, .rep = 0, .repe = 0, .suffix = 4, .modrm = 0, .fct1 = 29, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_set, .rep = 0, .repe = 0, .suffix = 4, .modrm = 1, .fct1 = 22, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_jmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_jmp, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 29, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_jmp, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 21, .str1 = 6, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ljmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 30, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 4, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ljmp, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 21, .str1 = 6, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lahf, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lar, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lds, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 5, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lea, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 5, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_leave, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_les, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 5, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lfs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lgs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lgdt, .rep = 0, .repe = 0, .suffix = 2, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lidt, .rep = 0, .repe = 0, .suffix = 2, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lldt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lmsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lock, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lods, .rep = 1, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 10, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 3, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_loop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_loope, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_loopne, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lsl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ltr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 3, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 35, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 5, .str1 = 0, .off1_1 = 37, .off1_2 = 3, .off1_3 = 0, .fct2 = 3, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 6, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 28, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 6, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 7, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 28, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 7, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 32, .str1 = 0, .off1_1 = 7, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 21, .str2 = 0, .off2_1 = 5, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movs, .rep = 1, .repe = 0, .suffix = 1, .modrm = 0, .fct1 = 10, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 10, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movsbl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 22, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movswl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movzbl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 22, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movzwl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mul, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_neg, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pause, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_nop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_popcnt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_not, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_out, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 5, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 12, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_out, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 5, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 9, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_outs, .rep = 1, .repe = 0, .suffix = 1, .modrm = 0, .fct1 = 10, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 9, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 32, .str1 = 0, .off1_1 = 7, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_popf, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 25, .str1 = 0, .off1_1 = 2, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 25, .str1 = 0, .off1_1 = 2, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 14, .str1 = 0, .off1_1 = 5, .off1_2 = 2, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 31, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 32, .str1 = 0, .off1_1 = 7, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pusha, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_popa, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pushf, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rdmsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rdpmc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rdtsc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ret, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ret, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 16, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lret, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lret, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 16, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rol, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rol, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rol, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ror, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ror, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ror, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rsm, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sahf, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sar, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sar, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sar, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_scas, .rep = 0, .repe = 1, .suffix = 0, .modrm = 0, .fct1 = 12, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 3, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_set, .rep = 0, .repe = 0, .suffix = 4, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 2, .str3 = 0, .off3_1 = 6, .off3_2 = 0, },
- { .mnemonic = MNE_shld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 2, .str3 = 0, .off3_1 = 6, .off3_2 = 0, },
- { .mnemonic = MNE_shr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shrd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 2, .str3 = 0, .off3_1 = 6, .off3_2 = 0, },
- { .mnemonic = MNE_shrd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 2, .str3 = 0, .off3_1 = 6, .off3_2 = 0, },
- { .mnemonic = MNE_vmcall, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmlaunch, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmresume, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmxoff, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmread, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 28, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 14, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmwrite, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sgdtl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_monitor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 3, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 1, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 4, .str3 = 1, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mwait, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 3, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 22, .str2 = 1, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sidtl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sldt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_smsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_stc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_std, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sti, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_stos, .rep = 1, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 5, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 10, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_str, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_test, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_test, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_test, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ud2a, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_verr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_verw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_wbinvd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetch, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 22, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetchw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 22, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetchnta, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetcht0, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetcht1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetcht2, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_nop, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_wrmsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xadd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 15, .off1_2 = 11, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 8, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xchg, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xchg, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 4, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xlat, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 9, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_emms, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pand, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pand, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pandn, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pandn, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaddwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaddwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_por, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_por, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pxor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pxor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpeqps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpltps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpleps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpunordps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpneqps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpnltps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpnleps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpordps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpeqss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpltss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpless, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpunordss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpneqss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpnltss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpnless, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpordss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxrstor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxsave, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ldmxcsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_stmxcsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movupd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movups, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movupd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movups, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movddup, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movsldup, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhlps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhlpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhlps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_unpcklpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_unpcklps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_unpckhpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_unpckhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movshdup, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlhpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movapd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movaps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movapd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movaps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtsi2sd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtsi2ss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpi2pd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpi2ps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movntpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movntps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttsd2si, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttss2si, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttpd2pi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttps2pi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpd2pi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtsd2si, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtss2si, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtps2pi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ucomisd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ucomiss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_comisd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_comiss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_getsec, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movmskpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movmskps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sqrtpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sqrtsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sqrtss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sqrtps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rsqrtss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rsqrtps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcpss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcpps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_orpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_orps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xorpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xorps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mulsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mulss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mulpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mulps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtsd2ss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtss2sd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpd2ps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtps2pd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtps2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttps2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtdq2ps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_subsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_subss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_subpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_subps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_minsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_minss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_minpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_minps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_divsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_divss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_divpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_divps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maxsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maxss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maxpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maxps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packsswb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packsswb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packuswb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packuswb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packssdw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packssdw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklqdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhqdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdqa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdqu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pshufd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pshuflw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pshufhw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pshufw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 1, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 1, .str3 = 0, .off3_1 = 8, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_haddpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_haddps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_hsubpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_hsubps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdqa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdqu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 1, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movnti, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pinsrw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pinsrw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 1, .str3 = 0, .off3_1 = 8, .off3_2 = 0, },
- { .mnemonic = MNE_pextrw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 3, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pextrw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 3, .str3 = 0, .off3_1 = 8, .off3_2 = 0, },
- { .mnemonic = MNE_shufpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_shufps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 8, .off3_2 = 0, },
- { .mnemonic = MNE_psrlw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmullw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmullw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdq2q, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 19, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovmskb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovmskb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 19, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubusb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubusb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubusw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubusw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddusb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddusb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddusw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddusw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pavgb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pavgb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psraw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psraw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pavgw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pavgw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movntdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movntq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 1, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lddqu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmuludq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmuludq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psadbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psadbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maskmovdqu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maskmovq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 19, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pshufb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pshufb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaddubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaddubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhrsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhrsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_palignr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_palignr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 1, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 1, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_vmclear, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmxon, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmptrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmptrst, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psraw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psraw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lfence, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mfence, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sfence, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_clflush, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_blendps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_blendpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_blendvps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 5, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_blendvpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 5, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_dpps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_dppd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_insertps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_movntdqa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mpsadbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_packusdw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pblendvb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 5, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pblendw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpestri, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpestrm, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpistri, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpistrm, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phminposuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pinsrb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pinsrd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxud, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminud, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxbd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxbq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxwq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxbd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxbq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxwq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmuldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ptest, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 23, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_roundps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_roundpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_roundss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_roundsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 17, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 31, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
-};
-static const uint8_t match_data[] =
-{
- 0x11, 0x37,
- 0x22, 0xd5, 0xa,
- 0x22, 0xd4, 0xa,
- 0x11, 0x3f,
- 0x1, 0xfe, 0x14,
- 0x2, 0xfe, 0x80, 0x38, 0x10,
- 0x2, 0xfe, 0x82, 0x38, 0x10,
- 0x2, 0xfe, 0x10, 0, 0,
- 0x2, 0xfe, 0x12, 0, 0,
- 0x1, 0xfe, 0x4,
- 0x2, 0xfe, 0x80, 0x38, 0,
- 0x12, 0x83, 0x38, 0,
- 0x2, 0xfe, 0, 0, 0,
- 0x2, 0xfe, 0x2, 0, 0,
- 0x34, 0x66, 0xf, 0xd0, 0, 0,
- 0x34, 0xf2, 0xf, 0xd0, 0, 0,
- 0x1, 0xfe, 0x24,
- 0x2, 0xfe, 0x80, 0x38, 0x20,
- 0x2, 0xfe, 0x82, 0x38, 0x20,
- 0x2, 0xfe, 0x20, 0, 0,
- 0x2, 0xfe, 0x22, 0, 0,
- 0x34, 0x66, 0xf, 0x54, 0, 0,
- 0x23, 0xf, 0x54, 0, 0,
- 0x34, 0x66, 0xf, 0x55, 0, 0,
- 0x23, 0xf, 0x55, 0, 0,
- 0x12, 0x63, 0, 0,
- 0x12, 0x62, 0, 0,
- 0x23, 0xf, 0xbc, 0, 0,
- 0x23, 0xf, 0xbd, 0, 0,
- 0x12, 0xf, 0xf8, 0xc8,
- 0x23, 0xf, 0xa3, 0, 0,
- 0x23, 0xf, 0xba, 0x38, 0x20,
- 0x23, 0xf, 0xbb, 0, 0,
- 0x23, 0xf, 0xba, 0x38, 0x38,
- 0x23, 0xf, 0xb3, 0, 0,
- 0x23, 0xf, 0xba, 0x38, 0x30,
- 0x23, 0xf, 0xab, 0, 0,
- 0x23, 0xf, 0xba, 0x38, 0x28,
- 0x11, 0xe8,
- 0x12, 0xff, 0x38, 0x10,
- 0x11, 0x9a,
- 0x12, 0xff, 0x38, 0x18,
- 0x11, 0x98,
- 0x11, 0x99,
- 0x11, 0xf8,
- 0x11, 0xfc,
- 0x11, 0xfa,
- 0x22, 0xf, 0x5,
- 0x22, 0xf, 0x6,
- 0x22, 0xf, 0x7,
- 0x22, 0xf, 0x34,
- 0x22, 0xf, 0x35,
- 0x11, 0xf5,
- 0x13, 0xf, 0xf0, 0x40, 0, 0,
- 0x1, 0xfe, 0x3c,
- 0x2, 0xfe, 0x80, 0x38, 0x38,
- 0x12, 0x83, 0x38, 0x38,
- 0x2, 0xfe, 0x38, 0, 0,
- 0x2, 0xfe, 0x3a, 0, 0,
- 0x34, 0xf2, 0xf, 0xc2, 0, 0,
- 0x34, 0xf3, 0xf, 0xc2, 0, 0,
- 0x34, 0x66, 0xf, 0xc2, 0, 0,
- 0x23, 0xf, 0xc2, 0, 0,
- 0x1, 0xfe, 0xa6,
- 0x13, 0xf, 0xfe, 0xb0, 0, 0,
- 0x23, 0xf, 0xc7, 0x38, 0x8,
- 0x22, 0xf, 0xa2,
- 0x34, 0xf3, 0xf, 0xe6, 0, 0,
- 0x34, 0xf2, 0xf, 0xe6, 0, 0,
- 0x34, 0x66, 0xf, 0xe6, 0, 0,
- 0x11, 0x27,
- 0x11, 0x2f,
- 0x2, 0xfe, 0xfe, 0x38, 0x8,
- 0x1, 0xf8, 0x48,
- 0x2, 0xfe, 0xf6, 0x38, 0x30,
- 0x22, 0xf, 0x77,
- 0x11, 0xc8,
- 0x22, 0xd9, 0xd0,
- 0x22, 0xd9, 0xe0,
- 0x22, 0xd9, 0xe1,
- 0x22, 0xd9, 0xe4,
- 0x22, 0xd9, 0xe5,
- 0x22, 0xd9, 0xe8,
- 0x22, 0xd9, 0xe9,
- 0x22, 0xd9, 0xea,
- 0x22, 0xd9, 0xeb,
- 0x22, 0xd9, 0xec,
- 0x22, 0xd9, 0xed,
- 0x22, 0xd9, 0xee,
- 0x22, 0xd9, 0xf0,
- 0x22, 0xd9, 0xf1,
- 0x22, 0xd9, 0xf2,
- 0x22, 0xd9, 0xf3,
- 0x22, 0xd9, 0xf4,
- 0x22, 0xd9, 0xf5,
- 0x22, 0xd9, 0xf6,
- 0x22, 0xd9, 0xf7,
- 0x22, 0xd9, 0xf8,
- 0x22, 0xd9, 0xf9,
- 0x22, 0xd9, 0xfa,
- 0x22, 0xd9, 0xfb,
- 0x22, 0xd9, 0xfc,
- 0x22, 0xd9, 0xfd,
- 0x22, 0xd9, 0xfe,
- 0x22, 0xd9, 0xff,
- 0x12, 0xd8, 0xf8, 0xc0,
- 0x12, 0xdc, 0xf8, 0xc0,
- 0x2, 0xfb, 0xd8, 0x38, 0,
- 0x12, 0xd8, 0xf8, 0xc8,
- 0x12, 0xdc, 0xf8, 0xc8,
- 0x2, 0xfb, 0xd8, 0x38, 0x8,
- 0x12, 0xd8, 0xf8, 0xe0,
- 0x12, 0xdc, 0xf8, 0xe0,
- 0x2, 0xfb, 0xd8, 0x38, 0x20,
- 0x12, 0xd8, 0xf8, 0xe8,
- 0x12, 0xdc, 0xf8, 0xe8,
- 0x2, 0xfb, 0xd8, 0x38, 0x28,
- 0x12, 0xdd, 0xf8, 0xd0,
- 0x2, 0xfb, 0xd9, 0x38, 0x10,
- 0x12, 0xdd, 0xf8, 0xd8,
- 0x2, 0xfb, 0xd9, 0x38, 0x18,
- 0x12, 0xd9, 0x38, 0x20,
- 0x12, 0xd9, 0x38, 0x28,
- 0x12, 0xd9, 0x38, 0x30,
- 0x12, 0xd9, 0x38, 0x38,
- 0x12, 0xd9, 0xf8, 0xc8,
- 0x12, 0xde, 0xf8, 0xc0,
- 0x12, 0xda, 0xf8, 0xc0,
- 0x2, 0xfb, 0xda, 0x38, 0,
- 0x12, 0xda, 0xf8, 0xc8,
- 0x12, 0xde, 0xf8, 0xc8,
- 0x2, 0xfb, 0xda, 0x38, 0x8,
- 0x12, 0xde, 0xf8, 0xe0,
- 0x2, 0xfb, 0xda, 0x38, 0x20,
- 0x12, 0xde, 0xf8, 0xe8,
- 0x2, 0xfb, 0xda, 0x38, 0x28,
- 0x22, 0xdf, 0xe0,
- 0x12, 0xdf, 0x38, 0x20,
- 0x12, 0xdf, 0xf8, 0xf0,
- 0x12, 0xdf, 0x38, 0x30,
- 0x22, 0xd9, 0xe0,
- 0x33, 0x9b, 0xdb, 0xe2,
- 0x33, 0x9b, 0xdb, 0xe3,
- 0x11, 0x9b,
- 0x22, 0xdb, 0xe2,
- 0x12, 0xda, 0xf8, 0xc0,
- 0x12, 0xda, 0xf8, 0xc8,
- 0x12, 0xda, 0xf8, 0xd0,
- 0x12, 0xda, 0xf8, 0xd8,
- 0x12, 0xdb, 0xf8, 0xc0,
- 0x12, 0xdb, 0xf8, 0xc8,
- 0x12, 0xdb, 0xf8, 0xd0,
- 0x12, 0xdb, 0xf8, 0xd8,
- 0x12, 0xd8, 0xf8, 0xd0,
- 0x2, 0xfb, 0xd8, 0x38, 0x10,
- 0x12, 0xd8, 0xf8, 0xd8,
- 0x2, 0xfb, 0xd8, 0x38, 0x18,
- 0x22, 0xde, 0xd9,
- 0x12, 0xdb, 0xf8, 0xf0,
- 0x12, 0xdf, 0xf8, 0xf0,
- 0x12, 0xdb, 0xf8, 0xe8,
- 0x12, 0xdf, 0xf8, 0xe8,
- 0x22, 0xd9, 0xff,
- 0x22, 0xd9, 0xf6,
- 0x12, 0xd8, 0xf8, 0xf0,
- 0x12, 0xdc, 0xf8, 0xf0,
- 0x2, 0xfb, 0xd8, 0x38, 0x30,
- 0x12, 0xda, 0x38, 0x30,
- 0x12, 0xde, 0xf8, 0xf0,
- 0x12, 0xde, 0x38, 0x30,
- 0x12, 0xde, 0xf8, 0xf8,
- 0x12, 0xd8, 0xf8, 0xf8,
- 0x12, 0xdc, 0xf8, 0xf8,
- 0x2, 0xfb, 0xd8, 0x38, 0x38,
- 0x12, 0xda, 0x38, 0x38,
- 0x12, 0xde, 0x38, 0x38,
- 0x12, 0xde, 0xf8, 0xf0,
- 0x12, 0xdd, 0xf8, 0xc0,
- 0x12, 0xda, 0xf8, 0xd0,
- 0x2, 0xfb, 0xda, 0x38, 0x10,
- 0x12, 0xda, 0xf8, 0xd8,
- 0x2, 0xfb, 0xda, 0x38, 0x18,
- 0x12, 0xdf, 0x38, 0,
- 0x12, 0xdb, 0x38, 0,
- 0x12, 0xdf, 0x38, 0x28,
- 0x22, 0xd9, 0xf7,
- 0x22, 0xdb, 0xe3,
- 0x2, 0xfb, 0xdb, 0x38, 0x10,
- 0x2, 0xfb, 0xdb, 0x38, 0x18,
- 0x12, 0xdf, 0x38, 0x38,
- 0x2, 0xfb, 0xdb, 0x38, 0x8,
- 0x12, 0xdd, 0x38, 0x8,
- 0x12, 0xdb, 0x38, 0x28,
- 0x12, 0xdb, 0x38, 0x38,
- 0x12, 0xd9, 0xf8, 0xc0,
- 0x2, 0xfb, 0xd9, 0x38, 0,
- 0x12, 0xdd, 0xf8, 0xe0,
- 0x12, 0xdd, 0x38, 0x20,
- 0x12, 0xdd, 0xf8, 0xe8,
- 0x12, 0xdd, 0x38, 0x30,
- 0x12, 0xdd, 0x38, 0x38,
- 0x11, 0xf4,
- 0x2, 0xfe, 0xf6, 0x38, 0x38,
- 0x2, 0xfe, 0xf6, 0x38, 0x28,
- 0x23, 0xf, 0xaf, 0, 0,
- 0x2, 0xfd, 0x69, 0, 0,
- 0x1, 0xfe, 0xe4,
- 0x1, 0xfe, 0xec,
- 0x2, 0xfe, 0xfe, 0x38, 0,
- 0x1, 0xf8, 0x40,
- 0x1, 0xfe, 0x6c,
- 0x11, 0xcd,
- 0x11, 0xcc,
- 0x11, 0xce,
- 0x22, 0xf, 0x8,
- 0x33, 0xf, 0x1, 0xf8,
- 0x23, 0xf, 0x1, 0x38, 0x38,
- 0x11, 0xcf,
- 0x1, 0xf0, 0x70,
- 0x12, 0xf, 0xf0, 0x80,
- 0x13, 0xf, 0xf0, 0x90, 0x38, 0,
- 0x11, 0xe3,
- 0x11, 0xeb,
- 0x11, 0xe9,
- 0x12, 0xff, 0x38, 0x20,
- 0x11, 0xea,
- 0x12, 0xff, 0x38, 0x28,
- 0x11, 0x9f,
- 0x23, 0xf, 0x2, 0, 0,
- 0x12, 0xc5, 0, 0,
- 0x12, 0x8d, 0, 0,
- 0x11, 0xc9,
- 0x12, 0xc4, 0, 0,
- 0x23, 0xf, 0xb4, 0, 0,
- 0x23, 0xf, 0xb5, 0, 0,
- 0x23, 0xf, 0x1, 0x38, 0x10,
- 0x23, 0xf, 0x1, 0x38, 0x18,
- 0x23, 0xf, 0, 0x38, 0x10,
- 0x23, 0xf, 0x1, 0x38, 0x30,
- 0x11, 0xf0,
- 0x1, 0xfe, 0xac,
- 0x11, 0xe2,
- 0x11, 0xe1,
- 0x11, 0xe0,
- 0x23, 0xf, 0x3, 0, 0,
- 0x23, 0xf, 0xb2, 0, 0,
- 0x23, 0xf, 0, 0x38, 0x18,
- 0x2, 0xfe, 0x88, 0, 0,
- 0x2, 0xfe, 0x8a, 0, 0,
- 0x2, 0xfe, 0xc6, 0x38, 0,
- 0x1, 0xf0, 0xb0,
- 0x1, 0xfe, 0xa0,
- 0x1, 0xfe, 0xa2,
- 0x23, 0xf, 0x20, 0xc0, 0xc0,
- 0x23, 0xf, 0x22, 0xc0, 0xc0,
- 0x23, 0xf, 0x21, 0xc0, 0xc0,
- 0x23, 0xf, 0x23, 0xc0, 0xc0,
- 0x12, 0x8c, 0, 0,
- 0x12, 0x8e, 0, 0,
- 0x1, 0xfe, 0xa4,
- 0x23, 0xf, 0xbe, 0, 0,
- 0x23, 0xf, 0xbf, 0, 0,
- 0x23, 0xf, 0xb6, 0, 0,
- 0x23, 0xf, 0xb7, 0, 0,
- 0x2, 0xfe, 0xf6, 0x38, 0x20,
- 0x2, 0xfe, 0xf6, 0x38, 0x18,
- 0x22, 0xf3, 0x90,
- 0x11, 0x90,
- 0x34, 0xf3, 0xf, 0xb8, 0, 0,
- 0x2, 0xfe, 0xf6, 0x38, 0x10,
- 0x2, 0xfe, 0x8, 0, 0,
- 0x2, 0xfe, 0xa, 0, 0,
- 0x2, 0xfe, 0x80, 0x38, 0x8,
- 0x2, 0xfe, 0x82, 0x38, 0x8,
- 0x1, 0xfe, 0xc,
- 0x1, 0xfe, 0xe6,
- 0x1, 0xfe, 0xee,
- 0x1, 0xfe, 0x6e,
- 0x12, 0x8f, 0x38, 0,
- 0x12, 0xf, 0xc7, 0x81,
- 0x11, 0x9d,
- 0x12, 0xff, 0x38, 0x30,
- 0x1, 0xf8, 0x50,
- 0x1, 0xf8, 0x58,
- 0x1, 0xfd, 0x68,
- 0x1, 0xe7, 0x6,
- 0x12, 0xf, 0xc7, 0x80,
- 0x11, 0x60,
- 0x11, 0x61,
- 0x11, 0x9c,
- 0x2, 0xfe, 0xd0, 0x38, 0x10,
- 0x2, 0xfe, 0xd2, 0x38, 0x10,
- 0x2, 0xfe, 0xc0, 0x38, 0x10,
- 0x2, 0xfe, 0xd0, 0x38, 0x18,
- 0x2, 0xfe, 0xd2, 0x38, 0x18,
- 0x2, 0xfe, 0xc0, 0x38, 0x18,
- 0x22, 0xf, 0x32,
- 0x22, 0xf, 0x33,
- 0x22, 0xf, 0x31,
- 0x11, 0xc3,
- 0x11, 0xc2,
- 0x11, 0xcb,
- 0x11, 0xca,
- 0x2, 0xfe, 0xd0, 0x38, 0,
- 0x2, 0xfe, 0xd2, 0x38, 0,
- 0x2, 0xfe, 0xc0, 0x38, 0,
- 0x2, 0xfe, 0xd0, 0x38, 0x8,
- 0x2, 0xfe, 0xd2, 0x38, 0x8,
- 0x2, 0xfe, 0xc0, 0x38, 0x8,
- 0x22, 0xf, 0xaa,
- 0x11, 0x9e,
- 0x2, 0xfe, 0xd0, 0x38, 0x38,
- 0x2, 0xfe, 0xd2, 0x38, 0x38,
- 0x2, 0xfe, 0xc0, 0x38, 0x38,
- 0x2, 0xfe, 0x18, 0, 0,
- 0x2, 0xfe, 0x1a, 0, 0,
- 0x1, 0xfe, 0x1c,
- 0x2, 0xfe, 0x80, 0x38, 0x18,
- 0x2, 0xfe, 0x82, 0x38, 0x18,
- 0x1, 0xfe, 0xae,
- 0x13, 0xf, 0xf0, 0x90, 0x38, 0,
- 0x2, 0xfe, 0xd0, 0x38, 0x20,
- 0x2, 0xfe, 0xd2, 0x38, 0x20,
- 0x2, 0xfe, 0xc0, 0x38, 0x20,
- 0x2, 0xfe, 0xd0, 0x38, 0x28,
- 0x23, 0xf, 0xa4, 0, 0,
- 0x23, 0xf, 0xa5, 0, 0,
- 0x2, 0xfe, 0xd2, 0x38, 0x28,
- 0x2, 0xfe, 0xc0, 0x38, 0x28,
- 0x23, 0xf, 0xac, 0, 0,
- 0x23, 0xf, 0xad, 0, 0,
- 0x33, 0xf, 0x1, 0xc1,
- 0x33, 0xf, 0x1, 0xc2,
- 0x33, 0xf, 0x1, 0xc3,
- 0x33, 0xf, 0x1, 0xc4,
- 0x23, 0xf, 0x78, 0, 0,
- 0x23, 0xf, 0x79, 0, 0,
- 0x23, 0xf, 0x1, 0x38, 0,
- 0x33, 0xf, 0x1, 0xc8,
- 0x33, 0xf, 0x1, 0xc9,
- 0x23, 0xf, 0x1, 0x38, 0x8,
- 0x23, 0xf, 0, 0x38, 0,
- 0x23, 0xf, 0x1, 0x38, 0x20,
- 0x11, 0xf9,
- 0x11, 0xfd,
- 0x11, 0xfb,
- 0x1, 0xfe, 0xaa,
- 0x23, 0xf, 0, 0x38, 0x8,
- 0x2, 0xfe, 0x28, 0, 0,
- 0x2, 0xfe, 0x2a, 0, 0,
- 0x1, 0xfe, 0x2c,
- 0x2, 0xfe, 0x80, 0x38, 0x28,
- 0x2, 0xfe, 0x82, 0x38, 0x28,
- 0x2, 0xfe, 0x84, 0, 0,
- 0x1, 0xfe, 0xa8,
- 0x2, 0xfe, 0xf6, 0x38, 0,
- 0x22, 0xf, 0xb,
- 0x23, 0xf, 0, 0x38, 0x20,
- 0x23, 0xf, 0, 0x38, 0x28,
- 0x22, 0xf, 0x9,
- 0x23, 0xf, 0xd, 0x38, 0,
- 0x23, 0xf, 0xd, 0x38, 0x8,
- 0x23, 0xf, 0x18, 0x38, 0,
- 0x23, 0xf, 0x18, 0x38, 0x8,
- 0x23, 0xf, 0x18, 0x38, 0x10,
- 0x23, 0xf, 0x18, 0x38, 0x18,
- 0x23, 0xf, 0x1f, 0, 0,
- 0x22, 0xf, 0x30,
- 0x13, 0xf, 0xfe, 0xc0, 0, 0,
- 0x2, 0xfe, 0x86, 0, 0,
- 0x1, 0xf8, 0x90,
- 0x11, 0xd7,
- 0x2, 0xfe, 0x30, 0, 0,
- 0x2, 0xfe, 0x32, 0, 0,
- 0x1, 0xfe, 0x34,
- 0x2, 0xfe, 0x80, 0x38, 0x30,
- 0x2, 0xfe, 0x82, 0x38, 0x30,
- 0x22, 0xf, 0x77,
- 0x34, 0x66, 0xf, 0xdb, 0, 0,
- 0x23, 0xf, 0xdb, 0, 0,
- 0x34, 0x66, 0xf, 0xdf, 0, 0,
- 0x23, 0xf, 0xdf, 0, 0,
- 0x34, 0x66, 0xf, 0xf5, 0, 0,
- 0x23, 0xf, 0xf5, 0, 0,
- 0x34, 0x66, 0xf, 0xeb, 0, 0,
- 0x23, 0xf, 0xeb, 0, 0,
- 0x34, 0x66, 0xf, 0xef, 0, 0,
- 0x23, 0xf, 0xef, 0, 0,
- 0x23, 0xf, 0x55, 0, 0,
- 0x23, 0xf, 0x54, 0, 0,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x1,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x2,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x3,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x4,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x5,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x6,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x7,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x1,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x2,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x3,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x4,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x5,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x6,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x7,
- 0x23, 0xf, 0xae, 0x38, 0x8,
- 0x23, 0xf, 0xae, 0x38, 0,
- 0x23, 0xf, 0xae, 0x38, 0x10,
- 0x23, 0xf, 0xae, 0x38, 0x18,
- 0x34, 0xf2, 0xf, 0x10, 0, 0,
- 0x34, 0xf3, 0xf, 0x10, 0, 0,
- 0x34, 0x66, 0xf, 0x10, 0, 0,
- 0x23, 0xf, 0x10, 0, 0,
- 0x34, 0xf2, 0xf, 0x11, 0, 0,
- 0x34, 0xf3, 0xf, 0x11, 0, 0,
- 0x34, 0x66, 0xf, 0x11, 0, 0,
- 0x23, 0xf, 0x11, 0, 0,
- 0x34, 0xf2, 0xf, 0x12, 0, 0,
- 0x34, 0xf3, 0xf, 0x12, 0, 0,
- 0x34, 0x66, 0xf, 0x12, 0, 0,
- 0x23, 0xf, 0x12, 0xc0, 0xc0,
- 0x23, 0xf, 0x12, 0, 0,
- 0x34, 0x66, 0xf, 0x13, 0xc0, 0xc0,
- 0x23, 0xf, 0x13, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0x13, 0, 0,
- 0x23, 0xf, 0x13, 0, 0,
- 0x34, 0x66, 0xf, 0x14, 0, 0,
- 0x23, 0xf, 0x14, 0, 0,
- 0x34, 0x66, 0xf, 0x15, 0, 0,
- 0x23, 0xf, 0x15, 0, 0,
- 0x34, 0xf3, 0xf, 0x16, 0, 0,
- 0x34, 0x66, 0xf, 0x16, 0, 0,
- 0x23, 0xf, 0x16, 0xc0, 0xc0,
- 0x23, 0xf, 0x16, 0, 0,
- 0x34, 0x66, 0xf, 0x17, 0xc0, 0xc0,
- 0x23, 0xf, 0x17, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0x17, 0, 0,
- 0x23, 0xf, 0x17, 0, 0,
- 0x34, 0x66, 0xf, 0x28, 0, 0,
- 0x23, 0xf, 0x28, 0, 0,
- 0x34, 0x66, 0xf, 0x29, 0, 0,
- 0x23, 0xf, 0x29, 0, 0,
- 0x34, 0xf2, 0xf, 0x2a, 0, 0,
- 0x34, 0xf3, 0xf, 0x2a, 0, 0,
- 0x34, 0x66, 0xf, 0x2a, 0, 0,
- 0x23, 0xf, 0x2a, 0, 0,
- 0x34, 0x66, 0xf, 0x2b, 0, 0,
- 0x23, 0xf, 0x2b, 0, 0,
- 0x34, 0xf2, 0xf, 0x2c, 0, 0,
- 0x34, 0xf3, 0xf, 0x2c, 0, 0,
- 0x34, 0x66, 0xf, 0x2c, 0, 0,
- 0x23, 0xf, 0x2c, 0, 0,
- 0x34, 0x66, 0xf, 0x2d, 0, 0,
- 0x34, 0xf2, 0xf, 0x2d, 0, 0,
- 0x34, 0xf3, 0xf, 0x2d, 0, 0,
- 0x23, 0xf, 0x2d, 0, 0,
- 0x34, 0x66, 0xf, 0x2e, 0, 0,
- 0x23, 0xf, 0x2e, 0, 0,
- 0x34, 0x66, 0xf, 0x2f, 0, 0,
- 0x23, 0xf, 0x2f, 0, 0,
- 0x22, 0xf, 0x37,
- 0x34, 0x66, 0xf, 0x50, 0xc0, 0xc0,
- 0x23, 0xf, 0x50, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0x51, 0, 0,
- 0x34, 0xf2, 0xf, 0x51, 0, 0,
- 0x34, 0xf3, 0xf, 0x51, 0, 0,
- 0x23, 0xf, 0x51, 0, 0,
- 0x34, 0xf3, 0xf, 0x52, 0, 0,
- 0x23, 0xf, 0x52, 0, 0,
- 0x34, 0xf3, 0xf, 0x53, 0, 0,
- 0x23, 0xf, 0x53, 0, 0,
- 0x34, 0x66, 0xf, 0x54, 0, 0,
- 0x23, 0xf, 0x54, 0, 0,
- 0x34, 0x66, 0xf, 0x55, 0, 0,
- 0x23, 0xf, 0x55, 0, 0,
- 0x34, 0x66, 0xf, 0x56, 0, 0,
- 0x23, 0xf, 0x56, 0, 0,
- 0x34, 0x66, 0xf, 0x57, 0, 0,
- 0x23, 0xf, 0x57, 0, 0,
- 0x34, 0xf2, 0xf, 0x58, 0, 0,
- 0x34, 0xf3, 0xf, 0x58, 0, 0,
- 0x34, 0x66, 0xf, 0x58, 0, 0,
- 0x23, 0xf, 0x58, 0, 0,
- 0x34, 0xf2, 0xf, 0x59, 0, 0,
- 0x34, 0xf3, 0xf, 0x59, 0, 0,
- 0x34, 0x66, 0xf, 0x59, 0, 0,
- 0x23, 0xf, 0x59, 0, 0,
- 0x34, 0xf2, 0xf, 0x5a, 0, 0,
- 0x34, 0xf3, 0xf, 0x5a, 0, 0,
- 0x34, 0x66, 0xf, 0x5a, 0, 0,
- 0x23, 0xf, 0x5a, 0, 0,
- 0x34, 0x66, 0xf, 0x5b, 0, 0,
- 0x34, 0xf3, 0xf, 0x5b, 0, 0,
- 0x23, 0xf, 0x5b, 0, 0,
- 0x34, 0xf2, 0xf, 0x5c, 0, 0,
- 0x34, 0xf3, 0xf, 0x5c, 0, 0,
- 0x34, 0x66, 0xf, 0x5c, 0, 0,
- 0x23, 0xf, 0x5c, 0, 0,
- 0x34, 0xf2, 0xf, 0x5d, 0, 0,
- 0x34, 0xf3, 0xf, 0x5d, 0, 0,
- 0x34, 0x66, 0xf, 0x5d, 0, 0,
- 0x23, 0xf, 0x5d, 0, 0,
- 0x34, 0xf2, 0xf, 0x5e, 0, 0,
- 0x34, 0xf3, 0xf, 0x5e, 0, 0,
- 0x34, 0x66, 0xf, 0x5e, 0, 0,
- 0x23, 0xf, 0x5e, 0, 0,
- 0x34, 0xf2, 0xf, 0x5f, 0, 0,
- 0x34, 0xf3, 0xf, 0x5f, 0, 0,
- 0x34, 0x66, 0xf, 0x5f, 0, 0,
- 0x23, 0xf, 0x5f, 0, 0,
- 0x34, 0x66, 0xf, 0x60, 0, 0,
- 0x23, 0xf, 0x60, 0, 0,
- 0x34, 0x66, 0xf, 0x61, 0, 0,
- 0x23, 0xf, 0x61, 0, 0,
- 0x34, 0x66, 0xf, 0x62, 0, 0,
- 0x23, 0xf, 0x62, 0, 0,
- 0x34, 0x66, 0xf, 0x63, 0, 0,
- 0x23, 0xf, 0x63, 0, 0,
- 0x34, 0x66, 0xf, 0x64, 0, 0,
- 0x23, 0xf, 0x64, 0, 0,
- 0x34, 0x66, 0xf, 0x65, 0, 0,
- 0x23, 0xf, 0x65, 0, 0,
- 0x34, 0x66, 0xf, 0x66, 0, 0,
- 0x23, 0xf, 0x66, 0, 0,
- 0x34, 0x66, 0xf, 0x67, 0, 0,
- 0x23, 0xf, 0x67, 0, 0,
- 0x34, 0x66, 0xf, 0x68, 0, 0,
- 0x23, 0xf, 0x68, 0, 0,
- 0x34, 0x66, 0xf, 0x69, 0, 0,
- 0x23, 0xf, 0x69, 0, 0,
- 0x34, 0x66, 0xf, 0x6a, 0, 0,
- 0x23, 0xf, 0x6a, 0, 0,
- 0x34, 0x66, 0xf, 0x6b, 0, 0,
- 0x23, 0xf, 0x6b, 0, 0,
- 0x34, 0x66, 0xf, 0x6c, 0, 0,
- 0x34, 0x66, 0xf, 0x6d, 0, 0,
- 0x34, 0x66, 0xf, 0x6e, 0, 0,
- 0x23, 0xf, 0x6e, 0, 0,
- 0x34, 0x66, 0xf, 0x6f, 0, 0,
- 0x34, 0xf3, 0xf, 0x6f, 0, 0,
- 0x23, 0xf, 0x6f, 0, 0,
- 0x34, 0x66, 0xf, 0x70, 0, 0,
- 0x34, 0xf2, 0xf, 0x70, 0, 0,
- 0x34, 0xf3, 0xf, 0x70, 0, 0,
- 0x23, 0xf, 0x70, 0, 0,
- 0x34, 0x66, 0xf, 0x74, 0, 0,
- 0x23, 0xf, 0x74, 0, 0,
- 0x34, 0x66, 0xf, 0x75, 0, 0,
- 0x23, 0xf, 0x75, 0, 0,
- 0x34, 0x66, 0xf, 0x76, 0, 0,
- 0x23, 0xf, 0x76, 0, 0,
- 0x34, 0x66, 0xf, 0x7c, 0, 0,
- 0x34, 0xf2, 0xf, 0x7c, 0, 0,
- 0x34, 0x66, 0xf, 0x7d, 0, 0,
- 0x34, 0xf2, 0xf, 0x7d, 0, 0,
- 0x34, 0x66, 0xf, 0x7e, 0, 0,
- 0x34, 0xf3, 0xf, 0x7e, 0, 0,
- 0x23, 0xf, 0x7e, 0, 0,
- 0x34, 0x66, 0xf, 0x7f, 0, 0,
- 0x34, 0xf3, 0xf, 0x7f, 0, 0,
- 0x23, 0xf, 0x7f, 0, 0,
- 0x23, 0xf, 0xc3, 0, 0,
- 0x34, 0x66, 0xf, 0xc4, 0, 0,
- 0x23, 0xf, 0xc4, 0, 0,
- 0x34, 0x66, 0xf, 0xc5, 0xc0, 0xc0,
- 0x23, 0xf, 0xc5, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0xc6, 0, 0,
- 0x23, 0xf, 0xc6, 0, 0,
- 0x34, 0x66, 0xf, 0xd1, 0, 0,
- 0x23, 0xf, 0xd1, 0, 0,
- 0x34, 0x66, 0xf, 0xd2, 0, 0,
- 0x23, 0xf, 0xd2, 0, 0,
- 0x34, 0x66, 0xf, 0xd3, 0, 0,
- 0x23, 0xf, 0xd3, 0, 0,
- 0x34, 0x66, 0xf, 0xd4, 0, 0,
- 0x23, 0xf, 0xd4, 0, 0,
- 0x34, 0x66, 0xf, 0xd5, 0, 0,
- 0x23, 0xf, 0xd5, 0, 0,
- 0x34, 0x66, 0xf, 0xd6, 0, 0,
- 0x34, 0xf2, 0xf, 0xd6, 0xc0, 0xc0,
- 0x34, 0xf3, 0xf, 0xd6, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0xd7, 0xc0, 0xc0,
- 0x23, 0xf, 0xd7, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0xd8, 0, 0,
- 0x23, 0xf, 0xd8, 0, 0,
- 0x34, 0x66, 0xf, 0xd9, 0, 0,
- 0x23, 0xf, 0xd9, 0, 0,
- 0x34, 0x66, 0xf, 0xda, 0, 0,
- 0x23, 0xf, 0xda, 0, 0,
- 0x34, 0x66, 0xf, 0xdc, 0, 0,
- 0x23, 0xf, 0xdc, 0, 0,
- 0x34, 0x66, 0xf, 0xdd, 0, 0,
- 0x23, 0xf, 0xdd, 0, 0,
- 0x34, 0x66, 0xf, 0xde, 0, 0,
- 0x23, 0xf, 0xde, 0, 0,
- 0x34, 0x66, 0xf, 0xe0, 0, 0,
- 0x23, 0xf, 0xe0, 0, 0,
- 0x34, 0x66, 0xf, 0xe1, 0, 0,
- 0x23, 0xf, 0xe1, 0, 0,
- 0x34, 0x66, 0xf, 0xe2, 0, 0,
- 0x23, 0xf, 0xe2, 0, 0,
- 0x34, 0x66, 0xf, 0xe3, 0, 0,
- 0x23, 0xf, 0xe3, 0, 0,
- 0x34, 0x66, 0xf, 0xe4, 0, 0,
- 0x23, 0xf, 0xe4, 0, 0,
- 0x34, 0x66, 0xf, 0xe5, 0, 0,
- 0x23, 0xf, 0xe5, 0, 0,
- 0x34, 0x66, 0xf, 0xe7, 0, 0,
- 0x23, 0xf, 0xe7, 0, 0,
- 0x34, 0x66, 0xf, 0xe8, 0, 0,
- 0x23, 0xf, 0xe8, 0, 0,
- 0x34, 0x66, 0xf, 0xe9, 0, 0,
- 0x23, 0xf, 0xe9, 0, 0,
- 0x34, 0x66, 0xf, 0xea, 0, 0,
- 0x23, 0xf, 0xea, 0, 0,
- 0x34, 0x66, 0xf, 0xec, 0, 0,
- 0x23, 0xf, 0xec, 0, 0,
- 0x34, 0x66, 0xf, 0xed, 0, 0,
- 0x23, 0xf, 0xed, 0, 0,
- 0x34, 0x66, 0xf, 0xee, 0, 0,
- 0x23, 0xf, 0xee, 0, 0,
- 0x34, 0xf2, 0xf, 0xf0, 0, 0,
- 0x34, 0x66, 0xf, 0xf1, 0, 0,
- 0x23, 0xf, 0xf1, 0, 0,
- 0x34, 0x66, 0xf, 0xf2, 0, 0,
- 0x23, 0xf, 0xf2, 0, 0,
- 0x34, 0x66, 0xf, 0xf3, 0, 0,
- 0x23, 0xf, 0xf3, 0, 0,
- 0x34, 0x66, 0xf, 0xf4, 0, 0,
- 0x23, 0xf, 0xf4, 0, 0,
- 0x34, 0x66, 0xf, 0xf6, 0, 0,
- 0x23, 0xf, 0xf6, 0, 0,
- 0x34, 0x66, 0xf, 0xf7, 0xc0, 0xc0,
- 0x23, 0xf, 0xf7, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0xf8, 0, 0,
- 0x23, 0xf, 0xf8, 0, 0,
- 0x34, 0x66, 0xf, 0xf9, 0, 0,
- 0x23, 0xf, 0xf9, 0, 0,
- 0x34, 0x66, 0xf, 0xfa, 0, 0,
- 0x23, 0xf, 0xfa, 0, 0,
- 0x34, 0x66, 0xf, 0xfb, 0, 0,
- 0x23, 0xf, 0xfb, 0, 0,
- 0x34, 0x66, 0xf, 0xfc, 0, 0,
- 0x23, 0xf, 0xfc, 0, 0,
- 0x34, 0x66, 0xf, 0xfd, 0, 0,
- 0x23, 0xf, 0xfd, 0, 0,
- 0x34, 0x66, 0xf, 0xfe, 0, 0,
- 0x23, 0xf, 0xfe, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0, 0, 0,
- 0x34, 0xf, 0x38, 0, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x1, 0, 0,
- 0x34, 0xf, 0x38, 0x1, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x2, 0, 0,
- 0x34, 0xf, 0x38, 0x2, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3, 0, 0,
- 0x34, 0xf, 0x38, 0x3, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x4, 0, 0,
- 0x34, 0xf, 0x38, 0x4, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x5, 0, 0,
- 0x34, 0xf, 0x38, 0x5, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x6, 0, 0,
- 0x34, 0xf, 0x38, 0x6, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x7, 0, 0,
- 0x34, 0xf, 0x38, 0x7, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x8, 0, 0,
- 0x34, 0xf, 0x38, 0x8, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x9, 0, 0,
- 0x34, 0xf, 0x38, 0x9, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0xa, 0, 0,
- 0x34, 0xf, 0x38, 0xa, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0xb, 0, 0,
- 0x34, 0xf, 0x38, 0xb, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x1c, 0, 0,
- 0x34, 0xf, 0x38, 0x1c, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x1d, 0, 0,
- 0x34, 0xf, 0x38, 0x1d, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x1e, 0, 0,
- 0x34, 0xf, 0x38, 0x1e, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xf, 0, 0,
- 0x34, 0xf, 0x3a, 0xf, 0, 0,
- 0x34, 0x66, 0xf, 0xc7, 0x38, 0x30,
- 0x34, 0xf3, 0xf, 0xc7, 0x38, 0x30,
- 0x23, 0xf, 0xc7, 0x38, 0x30,
- 0x23, 0xf, 0xc7, 0x38, 0x38,
- 0x34, 0x66, 0xf, 0x71, 0xf8, 0xd0,
- 0x23, 0xf, 0x71, 0xf8, 0xd0,
- 0x34, 0x66, 0xf, 0x71, 0xf8, 0xe0,
- 0x23, 0xf, 0x71, 0xf8, 0xe0,
- 0x34, 0x66, 0xf, 0x71, 0xf8, 0xf0,
- 0x23, 0xf, 0x71, 0xf8, 0xf0,
- 0x34, 0x66, 0xf, 0x72, 0xf8, 0xd0,
- 0x23, 0xf, 0x72, 0xf8, 0xd0,
- 0x34, 0x66, 0xf, 0x72, 0xf8, 0xe0,
- 0x23, 0xf, 0x72, 0xf8, 0xe0,
- 0x34, 0x66, 0xf, 0x72, 0xf8, 0xf0,
- 0x23, 0xf, 0x72, 0xf8, 0xf0,
- 0x34, 0x66, 0xf, 0x73, 0xf8, 0xd0,
- 0x23, 0xf, 0x73, 0xf8, 0xd0,
- 0x34, 0x66, 0xf, 0x73, 0xf8, 0xd8,
- 0x34, 0x66, 0xf, 0x73, 0xf8, 0xf0,
- 0x23, 0xf, 0x73, 0xf8, 0xf0,
- 0x34, 0x66, 0xf, 0x73, 0xf8, 0xf8,
- 0x33, 0xf, 0xae, 0xe8,
- 0x33, 0xf, 0xae, 0xf0,
- 0x33, 0xf, 0xae, 0xf8,
- 0x23, 0xf, 0xae, 0x38, 0x38,
- 0x23, 0xf, 0xf, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xc, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xd, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x14, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x15, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x40, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x41, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x21, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x2a, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x42, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x2b, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x10, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xe, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x29, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x61, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x60, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x63, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x62, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x37, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x41, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x20, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x22, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3c, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3d, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3f, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3e, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x38, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x39, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3b, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3a, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x20, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x21, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x22, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x23, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x24, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x25, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x30, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x31, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x32, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x33, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x34, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x35, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x28, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x40, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x17, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x8, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x9, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xa, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xb, 0, 0,
- 0x1, 0xe7, 0x7,
-};
diff --git a/src/libcpu/i386_disasm.c b/src/libcpu/i386_disasm.c
deleted file mode 100644
index 832241f2..00000000
--- a/src/libcpu/i386_disasm.c
+++ /dev/null
@@ -1,1149 +0,0 @@
-/* Disassembler for x86.
- Copyright (C) 2007, 2008, 2009, 2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2007.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <config.h>
-#include <ctype.h>
-#include <endian.h>
-#include <errno.h>
-#include <gelf.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/param.h>
-
-#include "../libebl/libeblP.h"
-
-#define MACHINE_ENCODING __LITTLE_ENDIAN
-#include "memory-access.h"
-
-
-#ifndef MNEFILE
-# define MNEFILE "i386.mnemonics"
-#endif
-
-#define MNESTRFIELD(line) MNESTRFIELD1 (line)
-#define MNESTRFIELD1(line) str##line
-static const union mnestr_t
-{
- struct
- {
-#define MNE(name) char MNESTRFIELD (__LINE__)[sizeof (#name)];
-#include MNEFILE
-#undef MNE
- };
- char str[0];
-} mnestr =
- {
- {
-#define MNE(name) #name,
-#include MNEFILE
-#undef MNE
- }
- };
-
-/* The index can be stored in the instrtab. */
-enum
- {
-#define MNE(name) MNE_##name,
-#include MNEFILE
-#undef MNE
- MNE_INVALID
- };
-
-static const unsigned short int mneidx[] =
- {
-#define MNE(name) \
- [MNE_##name] = offsetof (union mnestr_t, MNESTRFIELD (__LINE__)),
-#include MNEFILE
-#undef MNE
- };
-
-
-enum
- {
- idx_rex_b = 0,
- idx_rex_x,
- idx_rex_r,
- idx_rex_w,
- idx_rex,
- idx_cs,
- idx_ds,
- idx_es,
- idx_fs,
- idx_gs,
- idx_ss,
- idx_data16,
- idx_addr16,
- idx_rep,
- idx_repne,
- idx_lock
- };
-
-enum
- {
-#define prefbit(pref) has_##pref = 1 << idx_##pref
- prefbit (rex_b),
- prefbit (rex_x),
- prefbit (rex_r),
- prefbit (rex_w),
- prefbit (rex),
- prefbit (cs),
- prefbit (ds),
- prefbit (es),
- prefbit (fs),
- prefbit (gs),
- prefbit (ss),
- prefbit (data16),
- prefbit (addr16),
- prefbit (rep),
- prefbit (repne),
- prefbit (lock)
-#undef prefbit
- };
-#define SEGMENT_PREFIXES \
- (has_cs | has_ds | has_es | has_fs | has_gs | has_ss)
-
-#define prefix_cs 0x2e
-#define prefix_ds 0x3e
-#define prefix_es 0x26
-#define prefix_fs 0x64
-#define prefix_gs 0x65
-#define prefix_ss 0x36
-#define prefix_data16 0x66
-#define prefix_addr16 0x67
-#define prefix_rep 0xf3
-#define prefix_repne 0xf2
-#define prefix_lock 0xf0
-
-
-static const uint8_t known_prefixes[] =
- {
-#define newpref(pref) [idx_##pref] = prefix_##pref
- newpref (cs),
- newpref (ds),
- newpref (es),
- newpref (fs),
- newpref (gs),
- newpref (ss),
- newpref (data16),
- newpref (addr16),
- newpref (rep),
- newpref (repne),
- newpref (lock)
-#undef newpref
- };
-#define nknown_prefixes (sizeof (known_prefixes) / sizeof (known_prefixes[0]))
-
-
-#if 0
-static const char *prefix_str[] =
- {
-#define newpref(pref) [idx_##pref] = #pref
- newpref (cs),
- newpref (ds),
- newpref (es),
- newpref (fs),
- newpref (gs),
- newpref (ss),
- newpref (data16),
- newpref (addr16),
- newpref (rep),
- newpref (repne),
- newpref (lock)
-#undef newpref
- };
-#endif
-
-
-static const char amd3dnowstr[] =
-#define MNE_3DNOW_PAVGUSB 1
- "pavgusb\0"
-#define MNE_3DNOW_PFADD (MNE_3DNOW_PAVGUSB + 8)
- "pfadd\0"
-#define MNE_3DNOW_PFSUB (MNE_3DNOW_PFADD + 6)
- "pfsub\0"
-#define MNE_3DNOW_PFSUBR (MNE_3DNOW_PFSUB + 6)
- "pfsubr\0"
-#define MNE_3DNOW_PFACC (MNE_3DNOW_PFSUBR + 7)
- "pfacc\0"
-#define MNE_3DNOW_PFCMPGE (MNE_3DNOW_PFACC + 6)
- "pfcmpge\0"
-#define MNE_3DNOW_PFCMPGT (MNE_3DNOW_PFCMPGE + 8)
- "pfcmpgt\0"
-#define MNE_3DNOW_PFCMPEQ (MNE_3DNOW_PFCMPGT + 8)
- "pfcmpeq\0"
-#define MNE_3DNOW_PFMIN (MNE_3DNOW_PFCMPEQ + 8)
- "pfmin\0"
-#define MNE_3DNOW_PFMAX (MNE_3DNOW_PFMIN + 6)
- "pfmax\0"
-#define MNE_3DNOW_PI2FD (MNE_3DNOW_PFMAX + 6)
- "pi2fd\0"
-#define MNE_3DNOW_PF2ID (MNE_3DNOW_PI2FD + 6)
- "pf2id\0"
-#define MNE_3DNOW_PFRCP (MNE_3DNOW_PF2ID + 6)
- "pfrcp\0"
-#define MNE_3DNOW_PFRSQRT (MNE_3DNOW_PFRCP + 6)
- "pfrsqrt\0"
-#define MNE_3DNOW_PFMUL (MNE_3DNOW_PFRSQRT + 8)
- "pfmul\0"
-#define MNE_3DNOW_PFRCPIT1 (MNE_3DNOW_PFMUL + 6)
- "pfrcpit1\0"
-#define MNE_3DNOW_PFRSQIT1 (MNE_3DNOW_PFRCPIT1 + 9)
- "pfrsqit1\0"
-#define MNE_3DNOW_PFRCPIT2 (MNE_3DNOW_PFRSQIT1 + 9)
- "pfrcpit2\0"
-#define MNE_3DNOW_PMULHRW (MNE_3DNOW_PFRCPIT2 + 9)
- "pmulhrw";
-
-#define AMD3DNOW_LOW_IDX 0x0d
-#define AMD3DNOW_HIGH_IDX (sizeof (amd3dnow) + AMD3DNOW_LOW_IDX - 1)
-#define AMD3DNOW_IDX(val) ((val) - AMD3DNOW_LOW_IDX)
-static const unsigned char amd3dnow[] =
- {
- [AMD3DNOW_IDX (0xbf)] = MNE_3DNOW_PAVGUSB,
- [AMD3DNOW_IDX (0x9e)] = MNE_3DNOW_PFADD,
- [AMD3DNOW_IDX (0x9a)] = MNE_3DNOW_PFSUB,
- [AMD3DNOW_IDX (0xaa)] = MNE_3DNOW_PFSUBR,
- [AMD3DNOW_IDX (0xae)] = MNE_3DNOW_PFACC,
- [AMD3DNOW_IDX (0x90)] = MNE_3DNOW_PFCMPGE,
- [AMD3DNOW_IDX (0xa0)] = MNE_3DNOW_PFCMPGT,
- [AMD3DNOW_IDX (0xb0)] = MNE_3DNOW_PFCMPEQ,
- [AMD3DNOW_IDX (0x94)] = MNE_3DNOW_PFMIN,
- [AMD3DNOW_IDX (0xa4)] = MNE_3DNOW_PFMAX,
- [AMD3DNOW_IDX (0x0d)] = MNE_3DNOW_PI2FD,
- [AMD3DNOW_IDX (0x1d)] = MNE_3DNOW_PF2ID,
- [AMD3DNOW_IDX (0x96)] = MNE_3DNOW_PFRCP,
- [AMD3DNOW_IDX (0x97)] = MNE_3DNOW_PFRSQRT,
- [AMD3DNOW_IDX (0xb4)] = MNE_3DNOW_PFMUL,
- [AMD3DNOW_IDX (0xa6)] = MNE_3DNOW_PFRCPIT1,
- [AMD3DNOW_IDX (0xa7)] = MNE_3DNOW_PFRSQIT1,
- [AMD3DNOW_IDX (0xb6)] = MNE_3DNOW_PFRCPIT2,
- [AMD3DNOW_IDX (0xb7)] = MNE_3DNOW_PMULHRW
- };
-
-
-struct output_data
-{
- GElf_Addr addr;
- int *prefixes;
- size_t opoff1;
- size_t opoff2;
- size_t opoff3;
- char *bufp;
- size_t *bufcntp;
- size_t bufsize;
- const uint8_t *data;
- const uint8_t **param_start;
- const uint8_t *end;
- char *labelbuf;
- size_t labelbufsize;
- enum
- {
- addr_none = 0,
- addr_abs_symbolic,
- addr_abs_always,
- addr_rel_symbolic,
- addr_rel_always
- } symaddr_use;
- GElf_Addr symaddr;
-};
-
-
-#ifndef DISFILE
-# define DISFILE "i386_dis.h"
-#endif
-#include DISFILE
-
-
-#define ADD_CHAR(ch) \
- do { \
- if (unlikely (bufcnt == bufsize)) \
- goto enomem; \
- buf[bufcnt++] = (ch); \
- } while (0)
-
-#define ADD_STRING(str) \
- do { \
- const char *_str0 = (str); \
- size_t _len0 = strlen (_str0); \
- ADD_NSTRING (_str0, _len0); \
- } while (0)
-
-#define ADD_NSTRING(str, len) \
- do { \
- const char *_str = (str); \
- size_t _len = (len); \
- if (unlikely (bufcnt + _len > bufsize)) \
- goto enomem; \
- memcpy (buf + bufcnt, _str, _len); \
- bufcnt += _len; \
- } while (0)
-
-
-int
-i386_disasm (const uint8_t **startp, const uint8_t *end, GElf_Addr addr,
- const char *fmt, DisasmOutputCB_t outcb, DisasmGetSymCB_t symcb,
- void *outcbarg, void *symcbarg)
-{
- const char *save_fmt = fmt;
-
-#define BUFSIZE 512
- char initbuf[BUFSIZE];
- int prefixes;
- size_t bufcnt;
- size_t bufsize = BUFSIZE;
- char *buf = initbuf;
- const uint8_t *param_start;
-
- struct output_data output_data =
- {
- .prefixes = &prefixes,
- .bufp = buf,
- .bufsize = bufsize,
- .bufcntp = &bufcnt,
- .param_start = &param_start,
- .end = end
- };
-
- int retval = 0;
- while (1)
- {
- prefixes = 0;
-
- const uint8_t *data = *startp;
- const uint8_t *begin = data;
-
- /* Recognize all prefixes. */
- int last_prefix_bit = 0;
- while (data < end)
- {
- unsigned int i;
- for (i = idx_cs; i < nknown_prefixes; ++i)
- if (known_prefixes[i] == *data)
- break;
- if (i == nknown_prefixes)
- break;
-
- prefixes |= last_prefix_bit = 1 << i;
-
- ++data;
- }
-
-#ifdef X86_64
- if (data < end && (*data & 0xf0) == 0x40)
- prefixes |= ((*data++) & 0xf) | has_rex;
-#endif
-
- bufcnt = 0;
- size_t cnt = 0;
-
- const uint8_t *curr = match_data;
- const uint8_t *const match_end = match_data + sizeof (match_data);
-
- assert (data <= end);
- if (data == end)
- {
- if (prefixes != 0)
- goto print_prefix;
-
- retval = -1;
- goto do_ret;
- }
-
- next_match:
- while (curr < match_end)
- {
- uint_fast8_t len = *curr++;
- uint_fast8_t clen = len >> 4;
- len &= 0xf;
- const uint8_t *next_curr = curr + clen + (len - clen) * 2;
-
- assert (len > 0);
- assert (curr + clen + 2 * (len - clen) <= match_end);
-
- const uint8_t *codep = data;
- int correct_prefix = 0;
- int opoff = 0;
-
- if (data > begin && codep[-1] == *curr && clen > 0)
- {
- /* We match a prefix byte. This is exactly one byte and
- is matched exactly, without a mask. */
- --len;
- --clen;
- opoff = 8;
-
- ++curr;
-
- assert (last_prefix_bit != 0);
- correct_prefix = last_prefix_bit;
- }
-
- size_t avail = len;
- while (clen > 0)
- {
- if (*codep++ != *curr++)
- goto not;
- --avail;
- --clen;
- if (codep == end && avail > 0)
- goto do_ret;
- }
-
- while (avail > 0)
- {
- uint_fast8_t masked = *codep++ & *curr++;
- if (masked != *curr++)
- {
- not:
- curr = next_curr;
- ++cnt;
- bufcnt = 0;
- goto next_match;
- }
-
- --avail;
- if (codep == end && avail > 0)
- goto do_ret;
- }
-
- if (len > end - data)
- /* There is not enough data for the entire instruction. The
- caller can figure this out by looking at the pointer into
- the input data. */
- goto do_ret;
-
- assert (correct_prefix == 0
- || (prefixes & correct_prefix) != 0);
- prefixes ^= correct_prefix;
-
- if (0)
- {
- /* Resize the buffer. */
- char *oldbuf;
- enomem:
- oldbuf = buf;
- if (buf == initbuf)
- buf = malloc (2 * bufsize);
- else
- buf = realloc (buf, 2 * bufsize);
- if (buf == NULL)
- {
- buf = oldbuf;
- retval = ENOMEM;
- goto do_ret;
- }
- bufsize *= 2;
-
- output_data.bufp = buf;
- output_data.bufsize = bufsize;
- bufcnt = 0;
-
- if (data == end)
- {
- assert (prefixes != 0);
- goto print_prefix;
- }
-
- /* gcc is not clever enough to see the following variables
- are not used uninitialized. */
- asm (""
- : "=mr" (opoff), "=mr" (correct_prefix), "=mr" (codep),
- "=mr" (next_curr), "=mr" (len));
- }
-
- size_t prefix_size = 0;
-
- // XXXonly print as prefix if valid?
- if ((prefixes & has_lock) != 0)
- {
- ADD_STRING ("lock ");
- prefix_size += 5;
- }
-
- if (instrtab[cnt].rep)
- {
- if ((prefixes & has_rep) != 0)
- {
- ADD_STRING ("rep ");
- prefix_size += 4;
- }
- }
- else if (instrtab[cnt].repe
- && (prefixes & (has_rep | has_repne)) != 0)
- {
- if ((prefixes & has_repne) != 0)
- {
- ADD_STRING ("repne ");
- prefix_size += 6;
- }
- else if ((prefixes & has_rep) != 0)
- {
- ADD_STRING ("repe ");
- prefix_size += 5;
- }
- }
- else if ((prefixes & (has_rep | has_repne)) != 0)
- {
- uint_fast8_t byte;
- print_prefix:
- bufcnt = 0;
- byte = *begin;
- /* This is a prefix byte. Print it. */
- switch (byte)
- {
- case prefix_rep:
- ADD_STRING ("rep");
- break;
- case prefix_repne:
- ADD_STRING ("repne");
- break;
- case prefix_cs:
- ADD_STRING ("cs");
- break;
- case prefix_ds:
- ADD_STRING ("ds");
- break;
- case prefix_es:
- ADD_STRING ("es");
- break;
- case prefix_fs:
- ADD_STRING ("fs");
- break;
- case prefix_gs:
- ADD_STRING ("gs");
- break;
- case prefix_ss:
- ADD_STRING ("ss");
- break;
- case prefix_data16:
- ADD_STRING ("data16");
- break;
- case prefix_addr16:
- ADD_STRING ("addr16");
- break;
- case prefix_lock:
- ADD_STRING ("lock");
- break;
-#ifdef X86_64
- case 0x40 ... 0x4f:
- ADD_STRING ("rex");
- if (byte != 0x40)
- {
- ADD_CHAR ('.');
- if (byte & 0x8)
- ADD_CHAR ('w');
- if (byte & 0x4)
- ADD_CHAR ('r');
- if (byte & 0x3)
- ADD_CHAR ('x');
- if (byte & 0x1)
- ADD_CHAR ('b');
- }
- break;
-#endif
- default:
- /* Cannot happen. */
- puts ("unknown prefix");
- abort ();
- }
- data = begin + 1;
- ++addr;
-
- goto out;
- }
-
- /* We have a match. First determine how many bytes are
- needed for the adressing mode. */
- param_start = codep;
- if (instrtab[cnt].modrm)
- {
- uint_fast8_t modrm = codep[-1];
-
-#ifndef X86_64
- if (likely ((prefixes & has_addr16) != 0))
- {
- /* Account for displacement. */
- if ((modrm & 0xc7) == 6 || (modrm & 0xc0) == 0x80)
- param_start += 2;
- else if ((modrm & 0xc0) == 0x40)
- param_start += 1;
- }
- else
-#endif
- {
- /* Account for SIB. */
- if ((modrm & 0xc0) != 0xc0 && (modrm & 0x7) == 0x4)
- param_start += 1;
-
- /* Account for displacement. */
- if ((modrm & 0xc7) == 5 || (modrm & 0xc0) == 0x80
- || ((modrm & 0xc7) == 0x4 && (codep[0] & 0x7) == 0x5))
- param_start += 4;
- else if ((modrm & 0xc0) == 0x40)
- param_start += 1;
- }
-
- if (unlikely (param_start > end))
- goto not;
- }
-
- output_data.addr = addr + (data - begin);
- output_data.data = data;
-
- unsigned long string_end_idx = 0;
- fmt = save_fmt;
- const char *deferred_start = NULL;
- size_t deferred_len = 0;
- // XXX Can we get this from color.c?
- static const char color_off[] = "\e[0m";
- while (*fmt != '\0')
- {
- if (*fmt != '%')
- {
- char ch = *fmt++;
- if (ch == '\\')
- {
- switch ((ch = *fmt++))
- {
- case '0' ... '7':
- {
- int val = ch - '0';
- ch = *fmt;
- if (ch >= '0' && ch <= '7')
- {
- val *= 8;
- val += ch - '0';
- ch = *++fmt;
- if (ch >= '0' && ch <= '7' && val < 32)
- {
- val *= 8;
- val += ch - '0';
- ++fmt;
- }
- }
- ch = val;
- }
- break;
-
- case 'n':
- ch = '\n';
- break;
-
- case 't':
- ch = '\t';
- break;
-
- default:
- retval = EINVAL;
- goto do_ret;
- }
- }
- else if (ch == '\e' && *fmt == '[')
- {
- deferred_start = fmt - 1;
- do
- ++fmt;
- while (*fmt != 'm' && *fmt != '\0');
-
- if (*fmt == 'm')
- {
- deferred_len = ++fmt - deferred_start;
- continue;
- }
-
- fmt = deferred_start + 1;
- deferred_start = NULL;
- }
- ADD_CHAR (ch);
- continue;
- }
- ++fmt;
-
- int width = 0;
- while (isdigit (*fmt))
- width = width * 10 + (*fmt++ - '0');
-
- int prec = 0;
- if (*fmt == '.')
- while (isdigit (*++fmt))
- prec = prec * 10 + (*fmt - '0');
-
- size_t start_idx = bufcnt;
- size_t non_printing = 0;
- switch (*fmt++)
- {
- char mnebuf[16];
- const char *str;
-
- case 'm':
- /* Mnemonic. */
-
- if (unlikely (instrtab[cnt].mnemonic == MNE_INVALID))
- {
- switch (*data)
- {
-#ifdef X86_64
- case 0x90:
- if (prefixes & has_rex_b)
- goto not;
- str = "nop";
- break;
-#endif
-
- case 0x98:
-#ifdef X86_64
- if (prefixes == (has_rex_w | has_rex))
- {
- str = "cltq";
- break;
- }
-#endif
- if (prefixes & ~has_data16)
- goto print_prefix;
- str = prefixes & has_data16 ? "cbtw" : "cwtl";
- break;
-
- case 0x99:
-#ifdef X86_64
- if (prefixes == (has_rex_w | has_rex))
- {
- str = "cqto";
- break;
- }
-#endif
- if (prefixes & ~has_data16)
- goto print_prefix;
- str = prefixes & has_data16 ? "cwtd" : "cltd";
- break;
-
- case 0xe3:
- if (prefixes & ~has_addr16)
- goto print_prefix;
-#ifdef X86_64
- str = prefixes & has_addr16 ? "jecxz" : "jrcxz";
-#else
- str = prefixes & has_addr16 ? "jcxz" : "jecxz";
-#endif
- break;
-
- case 0x0f:
- if (data[1] == 0x0f)
- {
- /* AMD 3DNOW. We need one more byte. */
- if (param_start >= end)
- goto not;
- if (*param_start < AMD3DNOW_LOW_IDX
- || *param_start > AMD3DNOW_HIGH_IDX)
- goto not;
- unsigned int idx
- = amd3dnow[AMD3DNOW_IDX (*param_start)];
- if (idx == 0)
- goto not;
- str = amd3dnowstr + idx - 1;
- /* Eat the immediate byte indicating the
- operation. */
- ++param_start;
- break;
- }
-#ifdef X86_64
- if (data[1] == 0xc7)
- {
- str = ((prefixes & has_rex_w)
- ? "cmpxchg16b" : "cmpxchg8b");
- break;
- }
-#endif
- if (data[1] == 0xc2)
- {
- if (param_start >= end)
- goto not;
- if (*param_start > 7)
- goto not;
- static const char cmpops[][9] =
- {
- [0] = "cmpeq",
- [1] = "cmplt",
- [2] = "cmple",
- [3] = "cmpunord",
- [4] = "cmpneq",
- [5] = "cmpnlt",
- [6] = "cmpnle",
- [7] = "cmpord"
- };
- char *cp = stpcpy (mnebuf, cmpops[*param_start]);
- if (correct_prefix & (has_rep | has_repne))
- *cp++ = 's';
- else
- *cp++ = 'p';
- if (correct_prefix & (has_data16 | has_repne))
- *cp++ = 'd';
- else
- *cp++ = 's';
- *cp = '\0';
- str = mnebuf;
- /* Eat the immediate byte indicating the
- operation. */
- ++param_start;
- break;
- }
-
- default:
- assert (! "INVALID not handled");
- }
- }
- else
- str = mnestr.str + mneidx[instrtab[cnt].mnemonic];
-
- if (deferred_start != NULL)
- {
- ADD_NSTRING (deferred_start, deferred_len);
- non_printing += deferred_len;
- }
-
- ADD_STRING (str);
-
- switch (instrtab[cnt].suffix)
- {
- case suffix_none:
- break;
-
- case suffix_w:
- if ((codep[-1] & 0xc0) != 0xc0)
- {
- char ch;
-
- if (data[0] & 1)
- {
- if (prefixes & has_data16)
- ch = 'w';
-#ifdef X86_64
- else if (prefixes & has_rex_w)
- ch = 'q';
-#endif
- else
- ch = 'l';
- }
- else
- ch = 'b';
-
- ADD_CHAR (ch);
- }
- break;
-
- case suffix_w0:
- if ((codep[-1] & 0xc0) != 0xc0)
- ADD_CHAR ('l');
- break;
-
- case suffix_w1:
- if ((data[0] & 0x4) == 0)
- ADD_CHAR ('l');
- break;
-
- case suffix_W:
- if (prefixes & has_data16)
- {
- ADD_CHAR ('w');
- prefixes &= ~has_data16;
- }
-#ifdef X86_64
- else
- ADD_CHAR ('q');
-#endif
- break;
-
- case suffix_W1:
- if (prefixes & has_data16)
- {
- ADD_CHAR ('w');
- prefixes &= ~has_data16;
- }
-#ifdef X86_64
- else if (prefixes & has_rex_w)
- ADD_CHAR ('q');
-#endif
- break;
-
- case suffix_tttn:;
- static const char tttn[16][3] =
- {
- "o", "no", "b", "ae", "e", "ne", "be", "a",
- "s", "ns", "p", "np", "l", "ge", "le", "g"
- };
- ADD_STRING (tttn[codep[-1 - instrtab[cnt].modrm] & 0x0f]);
- break;
-
- case suffix_D:
- if ((codep[-1] & 0xc0) != 0xc0)
- ADD_CHAR ((data[0] & 0x04) == 0 ? 's' : 'l');
- break;
-
- default:
- printf("unknown suffix %d\n", instrtab[cnt].suffix);
- abort ();
- }
-
- if (deferred_start != NULL)
- {
- ADD_STRING (color_off);
- non_printing += strlen (color_off);
- }
-
- string_end_idx = bufcnt;
- break;
-
- case 'o':
- if (prec == 1 && instrtab[cnt].fct1 != 0)
- {
- /* First parameter. */
- if (deferred_start != NULL)
- {
- ADD_NSTRING (deferred_start, deferred_len);
- non_printing += deferred_len;
- }
-
- if (instrtab[cnt].str1 != 0)
- ADD_STRING (op1_str
- + op1_str_idx[instrtab[cnt].str1 - 1]);
-
- output_data.opoff1 = (instrtab[cnt].off1_1
- + OFF1_1_BIAS - opoff);
- output_data.opoff2 = (instrtab[cnt].off1_2
- + OFF1_2_BIAS - opoff);
- output_data.opoff3 = (instrtab[cnt].off1_3
- + OFF1_3_BIAS - opoff);
- int r = op1_fct[instrtab[cnt].fct1] (&output_data);
- if (r < 0)
- goto not;
- if (r > 0)
- goto enomem;
-
- if (deferred_start != NULL)
- {
- ADD_STRING (color_off);
- non_printing += strlen (color_off);
- }
-
- string_end_idx = bufcnt;
- }
- else if (prec == 2 && instrtab[cnt].fct2 != 0)
- {
- /* Second parameter. */
- if (deferred_start != NULL)
- {
- ADD_NSTRING (deferred_start, deferred_len);
- non_printing += deferred_len;
- }
-
- if (instrtab[cnt].str2 != 0)
- ADD_STRING (op2_str
- + op2_str_idx[instrtab[cnt].str2 - 1]);
-
- output_data.opoff1 = (instrtab[cnt].off2_1
- + OFF2_1_BIAS - opoff);
- output_data.opoff2 = (instrtab[cnt].off2_2
- + OFF2_2_BIAS - opoff);
- output_data.opoff3 = (instrtab[cnt].off2_3
- + OFF2_3_BIAS - opoff);
- int r = op2_fct[instrtab[cnt].fct2] (&output_data);
- if (r < 0)
- goto not;
- if (r > 0)
- goto enomem;
-
- if (deferred_start != NULL)
- {
- ADD_STRING (color_off);
- non_printing += strlen (color_off);
- }
-
- string_end_idx = bufcnt;
- }
- else if (prec == 3 && instrtab[cnt].fct3 != 0)
- {
- /* Third parameter. */
- if (deferred_start != NULL)
- {
- ADD_NSTRING (deferred_start, deferred_len);
- non_printing += deferred_len;
- }
-
- if (instrtab[cnt].str3 != 0)
- ADD_STRING (op3_str
- + op3_str_idx[instrtab[cnt].str3 - 1]);
-
- output_data.opoff1 = (instrtab[cnt].off3_1
- + OFF3_1_BIAS - opoff);
- output_data.opoff2 = (instrtab[cnt].off3_2
- + OFF3_2_BIAS - opoff);
-#ifdef OFF3_3_BITS
- output_data.opoff3 = (instrtab[cnt].off3_3
- + OFF3_3_BIAS - opoff);
-#else
- output_data.opoff3 = 0;
-#endif
- int r = op3_fct[instrtab[cnt].fct3] (&output_data);
- if (r < 0)
- goto not;
- if (r > 0)
- goto enomem;
-
- if (deferred_start != NULL)
- {
- ADD_STRING (color_off);
- non_printing += strlen (color_off);
- }
-
- string_end_idx = bufcnt;
- }
- else
- bufcnt = string_end_idx;
- break;
-
- case 'e':
- string_end_idx = bufcnt;
- break;
-
- case 'a':
- /* Pad to requested column. */
- while (bufcnt - non_printing < (size_t) width)
- ADD_CHAR (' ');
- width = 0;
- break;
-
- case 'l':
- if (deferred_start != NULL)
- {
- ADD_NSTRING (deferred_start, deferred_len);
- non_printing += deferred_len;
- }
-
- if (output_data.labelbuf != NULL
- && output_data.labelbuf[0] != '\0')
- {
- ADD_STRING (output_data.labelbuf);
- output_data.labelbuf[0] = '\0';
- string_end_idx = bufcnt;
- }
- else if (output_data.symaddr_use != addr_none)
- {
- GElf_Addr symaddr = output_data.symaddr;
- if (output_data.symaddr_use >= addr_rel_symbolic)
- symaddr += addr + param_start - begin;
-
- // XXX Lookup symbol based on symaddr
- const char *symstr = NULL;
- if (symcb != NULL
- && symcb (0 /* XXX */, 0 /* XXX */, symaddr,
- &output_data.labelbuf,
- &output_data.labelbufsize, symcbarg) == 0)
- symstr = output_data.labelbuf;
-
- size_t bufavail = bufsize - bufcnt;
- int r = 0;
- if (symstr != NULL)
- r = snprintf (&buf[bufcnt], bufavail, "# <%s>",
- symstr);
- else if (output_data.symaddr_use == addr_abs_always
- || output_data.symaddr_use == addr_rel_always)
- r = snprintf (&buf[bufcnt], bufavail, "# %#" PRIx64,
- (uint64_t) symaddr);
-
- assert (r >= 0);
- if ((size_t) r >= bufavail)
- goto enomem;
- bufcnt += r;
- string_end_idx = bufcnt;
-
- output_data.symaddr_use = addr_none;
- }
- if (deferred_start != NULL)
- {
- ADD_STRING (color_off);
- non_printing += strlen (color_off);
- }
- break;
-
- default:
- abort ();
- }
-
- deferred_start = NULL;
-
- /* Pad according to the specified width. */
- while (bufcnt + prefix_size - non_printing < start_idx + width)
- ADD_CHAR (' ');
- prefix_size = 0;
- }
-
- if ((prefixes & SEGMENT_PREFIXES) != 0)
- goto print_prefix;
-
- assert (string_end_idx != ~0ul);
- bufcnt = string_end_idx;
-
- addr += param_start - begin;
- data = param_start;
-
- goto out;
- }
-
- /* Invalid (or at least unhandled) opcode. */
- if (prefixes != 0)
- goto print_prefix;
- assert (*startp == data);
- ++data;
- ADD_STRING ("(bad)");
- addr += data - begin;
-
- out:
- if (bufcnt == bufsize)
- goto enomem;
- buf[bufcnt] = '\0';
-
- *startp = data;
- retval = outcb (buf, bufcnt, outcbarg);
- if (retval != 0)
- goto do_ret;
- }
-
- do_ret:
- free (output_data.labelbuf);
- if (buf != initbuf)
- free (buf);
-
- return retval;
-}
diff --git a/src/libcpu/i386_gendis.c b/src/libcpu/i386_gendis.c
deleted file mode 100644
index aae5eae6..00000000
--- a/src/libcpu/i386_gendis.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Generate tables for x86 disassembler.
- Copyright (C) 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2007.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <error.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-extern int i386_parse (void);
-
-
-extern FILE *i386_in;
-extern int i386_debug;
-char *infname;
-
-FILE *outfile;
-
-int
-main (int argc, char *argv[argc])
-{
- outfile = stdout;
-
- if (argc == 1)
- error (EXIT_FAILURE, 0, "usage: %s <MNEDEFFILE>", argv[0]);
-
- //i386_debug = 1;
- infname = argv[1];
- if (strcmp (infname, "-") == 0)
- i386_in = stdin;
- else
- {
- i386_in = fopen (infname, "r");
- if (i386_in == NULL)
- error (EXIT_FAILURE, errno, "cannot open %s", argv[1]);
- }
-
- i386_parse ();
-
- return error_message_count != 0;
-}
diff --git a/src/libcpu/i386_lex.c b/src/libcpu/i386_lex.c
deleted file mode 100644
index cb0be8de..00000000
--- a/src/libcpu/i386_lex.c
+++ /dev/null
@@ -1,2015 +0,0 @@
-
-#line 3 "i386_lex.c"
-
-#define YY_INT_ALIGNED short int
-
-/* A lexical scanner generated by flex */
-
-#define yy_create_buffer i386__create_buffer
-#define yy_delete_buffer i386__delete_buffer
-#define yy_flex_debug i386__flex_debug
-#define yy_init_buffer i386__init_buffer
-#define yy_flush_buffer i386__flush_buffer
-#define yy_load_buffer_state i386__load_buffer_state
-#define yy_switch_to_buffer i386__switch_to_buffer
-#define yyin i386_in
-#define yyleng i386_leng
-#define yylex i386_lex
-#define yylineno i386_lineno
-#define yyout i386_out
-#define yyrestart i386_restart
-#define yytext i386_text
-#define yywrap i386_wrap
-#define yyalloc i386_alloc
-#define yyrealloc i386_realloc
-#define yyfree i386_free
-
-#define FLEX_SCANNER
-#define YY_FLEX_MAJOR_VERSION 2
-#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 37
-#if YY_FLEX_SUBMINOR_VERSION > 0
-#define FLEX_BETA
-#endif
-
-/* First, we deal with platform-specific or compiler-specific issues. */
-
-/* begin standard C headers. */
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <stdlib.h>
-
-/* end standard C headers. */
-
-/* flex integer type definitions */
-
-#ifndef FLEXINT_H
-#define FLEXINT_H
-
-/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
-
-#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
-
-/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
- * if you want the limit (max/min) macros for int types.
- */
-#ifndef __STDC_LIMIT_MACROS
-#define __STDC_LIMIT_MACROS 1
-#endif
-
-#include <inttypes.h>
-typedef int8_t flex_int8_t;
-typedef uint8_t flex_uint8_t;
-typedef int16_t flex_int16_t;
-typedef uint16_t flex_uint16_t;
-typedef int32_t flex_int32_t;
-typedef uint32_t flex_uint32_t;
-#else
-typedef signed char flex_int8_t;
-typedef short int flex_int16_t;
-typedef int flex_int32_t;
-typedef unsigned char flex_uint8_t;
-typedef unsigned short int flex_uint16_t;
-typedef unsigned int flex_uint32_t;
-
-/* Limits of integral types. */
-#ifndef INT8_MIN
-#define INT8_MIN (-128)
-#endif
-#ifndef INT16_MIN
-#define INT16_MIN (-32767-1)
-#endif
-#ifndef INT32_MIN
-#define INT32_MIN (-2147483647-1)
-#endif
-#ifndef INT8_MAX
-#define INT8_MAX (127)
-#endif
-#ifndef INT16_MAX
-#define INT16_MAX (32767)
-#endif
-#ifndef INT32_MAX
-#define INT32_MAX (2147483647)
-#endif
-#ifndef UINT8_MAX
-#define UINT8_MAX (255U)
-#endif
-#ifndef UINT16_MAX
-#define UINT16_MAX (65535U)
-#endif
-#ifndef UINT32_MAX
-#define UINT32_MAX (4294967295U)
-#endif
-
-#endif /* ! C99 */
-
-#endif /* ! FLEXINT_H */
-
-#ifdef __cplusplus
-
-/* The "const" storage-class-modifier is valid. */
-#define YY_USE_CONST
-
-#else /* ! __cplusplus */
-
-/* C99 requires __STDC__ to be defined as 1. */
-#if defined (__STDC__)
-
-#define YY_USE_CONST
-
-#endif /* defined (__STDC__) */
-#endif /* ! __cplusplus */
-
-#ifdef YY_USE_CONST
-#define yyconst const
-#else
-#define yyconst
-#endif
-
-/* Returned upon end-of-file. */
-#define YY_NULL 0
-
-/* Promotes a possibly negative, possibly signed char to an unsigned
- * integer for use as an array index. If the signed char is negative,
- * we want to instead treat it as an 8-bit unsigned char, hence the
- * double cast.
- */
-#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
-
-/* Enter a start condition. This macro really ought to take a parameter,
- * but we do it the disgusting crufty way forced on us by the ()-less
- * definition of BEGIN.
- */
-#define BEGIN (yy_start) = 1 + 2 *
-
-/* Translate the current start state into a value that can be later handed
- * to BEGIN to return to the state. The YYSTATE alias is for lex
- * compatibility.
- */
-#define YY_START (((yy_start) - 1) / 2)
-#define YYSTATE YY_START
-
-/* Action number for EOF rule of a given start state. */
-#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
-
-/* Special action meaning "start processing a new file". */
-#define YY_NEW_FILE i386_restart(i386_in )
-
-#define YY_END_OF_BUFFER_CHAR 0
-
-/* Size of default input buffer. */
-#ifndef YY_BUF_SIZE
-#define YY_BUF_SIZE 16384
-#endif
-
-/* The state buf must be large enough to hold one state per character in the main buffer.
- */
-#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
-
-#ifndef YY_TYPEDEF_YY_BUFFER_STATE
-#define YY_TYPEDEF_YY_BUFFER_STATE
-typedef struct yy_buffer_state *YY_BUFFER_STATE;
-#endif
-
-#ifndef YY_TYPEDEF_YY_SIZE_T
-#define YY_TYPEDEF_YY_SIZE_T
-typedef size_t yy_size_t;
-#endif
-
-extern yy_size_t i386_leng;
-
-extern FILE *i386_in, *i386_out;
-
-#define EOB_ACT_CONTINUE_SCAN 0
-#define EOB_ACT_END_OF_FILE 1
-#define EOB_ACT_LAST_MATCH 2
-
- /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
- * access to the local variable yy_act. Since yyless() is a macro, it would break
- * existing scanners that call yyless() from OUTSIDE i386_lex.
- * One obvious solution it to make yy_act a global. I tried that, and saw
- * a 5% performance hit in a non-i386_lineno scanner, because yy_act is
- * normally declared as a register variable-- so it is not worth it.
- */
- #define YY_LESS_LINENO(n) \
- do { \
- int yyl;\
- for ( yyl = n; yyl < i386_leng; ++yyl )\
- if ( i386_text[yyl] == '\n' )\
- --i386_lineno;\
- }while(0)
-
-/* Return all but the first "n" matched characters back to the input stream. */
-#define yyless(n) \
- do \
- { \
- /* Undo effects of setting up i386_text. */ \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg);\
- *yy_cp = (yy_hold_char); \
- YY_RESTORE_YY_MORE_OFFSET \
- (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
- YY_DO_BEFORE_ACTION; /* set up i386_text again */ \
- } \
- while ( 0 )
-
-#define unput(c) yyunput( c, (yytext_ptr) )
-
-#ifndef YY_STRUCT_YY_BUFFER_STATE
-#define YY_STRUCT_YY_BUFFER_STATE
-struct yy_buffer_state
- {
- FILE *yy_input_file;
-
- char *yy_ch_buf; /* input buffer */
- char *yy_buf_pos; /* current position in input buffer */
-
- /* Size of input buffer in bytes, not including room for EOB
- * characters.
- */
- yy_size_t yy_buf_size;
-
- /* Number of characters read into yy_ch_buf, not including EOB
- * characters.
- */
- yy_size_t yy_n_chars;
-
- /* Whether we "own" the buffer - i.e., we know we created it,
- * and can realloc() it to grow it, and should free() it to
- * delete it.
- */
- int yy_is_our_buffer;
-
- /* Whether this is an "interactive" input source; if so, and
- * if we're using stdio for input, then we want to use getc()
- * instead of fread(), to make sure we stop fetching input after
- * each newline.
- */
- int yy_is_interactive;
-
- /* Whether we're considered to be at the beginning of a line.
- * If so, '^' rules will be active on the next match, otherwise
- * not.
- */
- int yy_at_bol;
-
- int yy_bs_lineno; /**< The line count. */
- int yy_bs_column; /**< The column count. */
-
- /* Whether to try to fill the input buffer when we reach the
- * end of it.
- */
- int yy_fill_buffer;
-
- int yy_buffer_status;
-
-#define YY_BUFFER_NEW 0
-#define YY_BUFFER_NORMAL 1
- /* When an EOF's been seen but there's still some text to process
- * then we mark the buffer as YY_EOF_PENDING, to indicate that we
- * shouldn't try reading from the input source any more. We might
- * still have a bunch of tokens to match, though, because of
- * possible backing-up.
- *
- * When we actually see the EOF, we change the status to "new"
- * (via i386_restart()), so that the user can continue scanning by
- * just pointing i386_in at a new input file.
- */
-#define YY_BUFFER_EOF_PENDING 2
-
- };
-#endif /* !YY_STRUCT_YY_BUFFER_STATE */
-
-/* Stack of input buffers. */
-static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
-static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
-static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
-
-/* We provide macros for accessing buffer states in case in the
- * future we want to put the buffer states in a more general
- * "scanner state".
- *
- * Returns the top of the stack, or NULL.
- */
-#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
- ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
- : NULL)
-
-/* Same as previous macro, but useful when we know that the buffer stack is not
- * NULL or when we need an lvalue. For internal use only.
- */
-#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
-
-/* yy_hold_char holds the character lost when i386_text is formed. */
-static char yy_hold_char;
-static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
-yy_size_t i386_leng;
-
-/* Points to current character in buffer. */
-static char *yy_c_buf_p = (char *) 0;
-static int yy_init = 0; /* whether we need to initialize */
-static int yy_start = 0; /* start state number */
-
-/* Flag which is used to allow i386_wrap()'s to do buffer switches
- * instead of setting up a fresh i386_in. A bit of a hack ...
- */
-static int yy_did_buffer_switch_on_eof;
-
-void i386_restart (FILE *input_file );
-void i386__switch_to_buffer (YY_BUFFER_STATE new_buffer );
-YY_BUFFER_STATE i386__create_buffer (FILE *file,int size );
-void i386__delete_buffer (YY_BUFFER_STATE b );
-void i386__flush_buffer (YY_BUFFER_STATE b );
-void i386_push_buffer_state (YY_BUFFER_STATE new_buffer );
-void i386_pop_buffer_state (void );
-
-static void i386_ensure_buffer_stack (void );
-static void i386__load_buffer_state (void );
-static void i386__init_buffer (YY_BUFFER_STATE b,FILE *file );
-
-#define YY_FLUSH_BUFFER i386__flush_buffer(YY_CURRENT_BUFFER )
-
-YY_BUFFER_STATE i386__scan_buffer (char *base,yy_size_t size );
-YY_BUFFER_STATE i386__scan_string (yyconst char *yy_str );
-YY_BUFFER_STATE i386__scan_bytes (yyconst char *bytes,yy_size_t len );
-
-void *i386_alloc (yy_size_t );
-void *i386_realloc (void *,yy_size_t );
-void i386_free (void * );
-
-#define yy_new_buffer i386__create_buffer
-
-#define yy_set_interactive(is_interactive) \
- { \
- if ( ! YY_CURRENT_BUFFER ){ \
- i386_ensure_buffer_stack (); \
- YY_CURRENT_BUFFER_LVALUE = \
- i386__create_buffer(i386_in,YY_BUF_SIZE ); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
- }
-
-#define yy_set_bol(at_bol) \
- { \
- if ( ! YY_CURRENT_BUFFER ){\
- i386_ensure_buffer_stack (); \
- YY_CURRENT_BUFFER_LVALUE = \
- i386__create_buffer(i386_in,YY_BUF_SIZE ); \
- } \
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
- }
-
-#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
-
-/* Begin user sect3 */
-
-#define i386_wrap() 1
-#define YY_SKIP_YYWRAP
-
-typedef unsigned char YY_CHAR;
-
-FILE *i386_in = (FILE *) 0, *i386_out = (FILE *) 0;
-
-typedef int yy_state_type;
-
-extern int i386_lineno;
-
-int i386_lineno = 1;
-
-extern char *i386_text;
-#define yytext_ptr i386_text
-
-static yy_state_type yy_get_previous_state (void );
-static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
-static int yy_get_next_buffer (void );
-static void yy_fatal_error (yyconst char msg[] );
-
-/* Done after the current pattern has been matched and before the
- * corresponding action - sets up i386_text.
- */
-#define YY_DO_BEFORE_ACTION \
- (yytext_ptr) = yy_bp; \
- i386_leng = (size_t) (yy_cp - yy_bp); \
- (yy_hold_char) = *yy_cp; \
- *yy_cp = '\0'; \
- (yy_c_buf_p) = yy_cp;
-
-#define YY_NUM_RULES 21
-#define YY_END_OF_BUFFER 22
-/* This struct is not used in this scanner,
- but its presence is necessary. */
-struct yy_trans_info
- {
- flex_int32_t yy_verify;
- flex_int32_t yy_nxt;
- };
-static yyconst flex_int16_t yy_accept[62] =
- { 0,
- 0, 0, 0, 0, 22, 20, 17, 15, 20, 5,
- 20, 14, 16, 19, 18, 15, 12, 7, 8, 13,
- 11, 11, 19, 14, 16, 17, 6, 0, 0, 0,
- 5, 0, 9, 18, 11, 11, 0, 0, 0, 0,
- 11, 0, 0, 0, 0, 11, 1, 0, 0, 0,
- 11, 0, 0, 0, 11, 2, 3, 0, 10, 4,
- 0
- } ;
-
-static yyconst flex_int32_t yy_ec[256] =
- { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
- 2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 2, 1, 1, 4, 1, 5, 1, 1, 1,
- 1, 1, 1, 6, 1, 1, 7, 8, 9, 10,
- 10, 10, 10, 10, 10, 10, 10, 11, 1, 1,
- 1, 1, 1, 1, 12, 13, 13, 14, 13, 13,
- 13, 13, 15, 13, 13, 16, 13, 17, 13, 13,
- 13, 13, 13, 13, 13, 18, 13, 13, 13, 13,
- 1, 1, 1, 1, 13, 1, 19, 13, 13, 13,
-
- 20, 21, 13, 13, 22, 13, 23, 13, 24, 25,
- 26, 27, 13, 28, 29, 13, 30, 13, 13, 31,
- 32, 13, 33, 1, 34, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1
- } ;
-
-static yyconst flex_int32_t yy_meta[35] =
- { 0,
- 1, 1, 1, 1, 1, 1, 2, 2, 2, 2,
- 3, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 1, 3
- } ;
-
-static yyconst flex_int16_t yy_base[65] =
- { 0,
- 0, 32, 65, 3, 113, 114, 9, 11, 19, 7,
- 78, 16, 114, 114, 18, 20, 114, 114, 114, 114,
- 0, 94, 76, 23, 114, 25, 114, 90, 80, 0,
- 41, 73, 114, 36, 0, 88, 76, 44, 42, 37,
- 49, 37, 38, 37, 31, 40, 114, 33, 32, 28,
- 37, 16, 14, 12, 17, 114, 114, 5, 0, 114,
- 114, 99, 101, 2
- } ;
-
-static yyconst flex_int16_t yy_def[65] =
- { 0,
- 62, 62, 61, 3, 61, 61, 61, 61, 61, 61,
- 63, 61, 61, 61, 61, 61, 61, 61, 61, 61,
- 64, 64, 63, 61, 61, 61, 61, 61, 61, 61,
- 61, 63, 61, 61, 64, 64, 61, 61, 61, 61,
- 64, 61, 61, 61, 61, 64, 61, 61, 61, 61,
- 64, 61, 61, 61, 64, 61, 61, 61, 64, 61,
- 0, 61, 61, 61
- } ;
-
-static yyconst flex_int16_t yy_nxt[149] =
- { 0,
- 61, 7, 8, 35, 9, 24, 25, 10, 10, 10,
- 26, 26, 26, 26, 31, 31, 31, 26, 26, 34,
- 34, 34, 34, 27, 34, 34, 26, 26, 60, 39,
- 59, 40, 11, 7, 12, 13, 9, 34, 34, 10,
- 10, 10, 28, 58, 57, 29, 56, 30, 31, 31,
- 31, 55, 54, 53, 52, 51, 50, 49, 48, 47,
- 46, 45, 44, 43, 11, 14, 15, 16, 14, 14,
- 17, 14, 18, 19, 14, 20, 21, 21, 21, 22,
- 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
- 21, 21, 21, 21, 21, 21, 21, 23, 14, 6,
-
- 6, 6, 32, 32, 42, 41, 33, 38, 37, 33,
- 36, 33, 61, 5, 61, 61, 61, 61, 61, 61,
- 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
- 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
- 61, 61, 61, 61, 61, 61, 61, 61
- } ;
-
-static yyconst flex_int16_t yy_chk[149] =
- { 0,
- 0, 1, 1, 64, 1, 4, 4, 1, 1, 1,
- 7, 7, 8, 8, 10, 10, 10, 12, 12, 15,
- 15, 16, 16, 9, 24, 24, 26, 26, 58, 30,
- 55, 30, 1, 2, 2, 2, 2, 34, 34, 2,
- 2, 2, 9, 54, 53, 9, 52, 9, 31, 31,
- 31, 51, 50, 49, 48, 46, 45, 44, 43, 42,
- 41, 40, 39, 38, 2, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 62,
-
- 62, 62, 63, 63, 37, 36, 32, 29, 28, 23,
- 22, 11, 5, 61, 61, 61, 61, 61, 61, 61,
- 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
- 61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
- 61, 61, 61, 61, 61, 61, 61, 61
- } ;
-
-/* Table of booleans, true if rule could match eol. */
-static yyconst flex_int32_t yy_rule_can_match_eol[22] =
- { 0,
-0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0,
- 0, 0, };
-
-static yy_state_type yy_last_accepting_state;
-static char *yy_last_accepting_cpos;
-
-extern int i386__flex_debug;
-int i386__flex_debug = 0;
-
-/* The intent behind this definition is that it'll catch
- * any uses of REJECT which flex missed.
- */
-#define REJECT reject_used_but_not_detected
-#define yymore() yymore_used_but_not_detected
-#define YY_MORE_ADJ 0
-#define YY_RESTORE_YY_MORE_OFFSET
-char *i386_text;
-#line 1 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-#line 2 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-/* Copyright (C) 2004, 2005, 2007, 2008 Red Hat, Inc.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <ctype.h>
-#include <error.h>
-#include <libintl.h>
-
-#include <system.h>
-#include "i386_parse.h"
-
-
-static void eat_to_eol (void);
-static void invalid_char (int ch);
-
-#line 585 "i386_lex.c"
-
-#define INITIAL 0
-#define MAIN 1
-
-#ifndef YY_NO_UNISTD_H
-/* Special case for "unistd.h", since it is non-ANSI. We include it way
- * down here because we want the user's section 1 to have been scanned first.
- * The user has a chance to override it with an option.
- */
-#include <unistd.h>
-#endif
-
-#ifndef YY_EXTRA_TYPE
-#define YY_EXTRA_TYPE void *
-#endif
-
-static int yy_init_globals (void );
-
-/* Accessor methods to globals.
- These are made visible to non-reentrant scanners for convenience. */
-
-int i386_lex_destroy (void );
-
-int i386_get_debug (void );
-
-void i386_set_debug (int debug_flag );
-
-YY_EXTRA_TYPE i386_get_extra (void );
-
-void i386_set_extra (YY_EXTRA_TYPE user_defined );
-
-FILE *i386_get_in (void );
-
-void i386_set_in (FILE * in_str );
-
-FILE *i386_get_out (void );
-
-void i386_set_out (FILE * out_str );
-
-yy_size_t i386_get_leng (void );
-
-char *i386_get_text (void );
-
-int i386_get_lineno (void );
-
-void i386_set_lineno (int line_number );
-
-/* Macros after this point can all be overridden by user definitions in
- * section 1.
- */
-
-#ifndef YY_SKIP_YYWRAP
-#ifdef __cplusplus
-extern "C" int i386_wrap (void );
-#else
-extern int i386_wrap (void );
-#endif
-#endif
-
- static void yyunput (int c,char *buf_ptr );
-
-#ifndef yytext_ptr
-static void yy_flex_strncpy (char *,yyconst char *,int );
-#endif
-
-#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * );
-#endif
-
-#ifndef YY_NO_INPUT
-
-#ifdef __cplusplus
-static int yyinput (void );
-#else
-static int input (void );
-#endif
-
-#endif
-
-/* Amount of stuff to slurp up with each read. */
-#ifndef YY_READ_BUF_SIZE
-#define YY_READ_BUF_SIZE 8192
-#endif
-
-/* Copy whatever the last rule matched to the standard output. */
-#ifndef ECHO
-/* This used to be an fputs(), but since the string might contain NUL's,
- * we now use fwrite().
- */
-#define ECHO do { if (fwrite( i386_text, i386_leng, 1, i386_out )) {} } while (0)
-#endif
-
-/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
- * is returned in "result".
- */
-#ifndef YY_INPUT
-#define YY_INPUT(buf,result,max_size) \
- if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
- { \
- int c = '*'; \
- size_t n; \
- for ( n = 0; n < max_size && \
- (c = getc( i386_in )) != EOF && c != '\n'; ++n ) \
- buf[n] = (char) c; \
- if ( c == '\n' ) \
- buf[n++] = (char) c; \
- if ( c == EOF && ferror( i386_in ) ) \
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
- result = n; \
- } \
- else \
- { \
- errno=0; \
- while ( (result = fread(buf, 1, max_size, i386_in))==0 && ferror(i386_in)) \
- { \
- if( errno != EINTR) \
- { \
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
- break; \
- } \
- errno=0; \
- clearerr(i386_in); \
- } \
- }\
-\
-
-#endif
-
-/* No semi-colon after return; correct usage is to write "yyterminate();" -
- * we don't want an extra ';' after the "return" because that will cause
- * some compilers to complain about unreachable statements.
- */
-#ifndef yyterminate
-#define yyterminate() return YY_NULL
-#endif
-
-/* Number of entries by which start-condition stack grows. */
-#ifndef YY_START_STACK_INCR
-#define YY_START_STACK_INCR 25
-#endif
-
-/* Report a fatal error. */
-#ifndef YY_FATAL_ERROR
-#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
-#endif
-
-/* end tables serialization structures and prototypes */
-
-/* Default declaration of generated scanner - a define so the user can
- * easily add parameters.
- */
-#ifndef YY_DECL
-#define YY_DECL_IS_OURS 1
-
-extern int i386_lex (void);
-
-#define YY_DECL int i386_lex (void)
-#endif /* !YY_DECL */
-
-/* Code executed at the beginning of each rule, after i386_text and i386_leng
- * have been set up.
- */
-#ifndef YY_USER_ACTION
-#define YY_USER_ACTION
-#endif
-
-/* Code executed at the end of each rule. */
-#ifndef YY_BREAK
-#define YY_BREAK break;
-#endif
-
-#define YY_RULE_SETUP \
- if ( i386_leng > 0 ) \
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
- (i386_text[i386_leng - 1] == '\n'); \
- YY_USER_ACTION
-
-/** The main scanner function which does all the work.
- */
-YY_DECL
-{
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
-
-#line 57 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-
-
-#line 774 "i386_lex.c"
-
- if ( !(yy_init) )
- {
- (yy_init) = 1;
-
-#ifdef YY_USER_INIT
- YY_USER_INIT;
-#endif
-
- if ( ! (yy_start) )
- (yy_start) = 1; /* first start state */
-
- if ( ! i386_in )
- i386_in = stdin;
-
- if ( ! i386_out )
- i386_out = stdout;
-
- if ( ! YY_CURRENT_BUFFER ) {
- i386_ensure_buffer_stack ();
- YY_CURRENT_BUFFER_LVALUE =
- i386__create_buffer(i386_in,YY_BUF_SIZE );
- }
-
- i386__load_buffer_state( );
- }
-
- while ( 1 ) /* loops until end-of-file is reached */
- {
- yy_cp = (yy_c_buf_p);
-
- /* Support of i386_text. */
- *yy_cp = (yy_hold_char);
-
- /* yy_bp points to the position in yy_ch_buf of the start of
- * the current run.
- */
- yy_bp = yy_cp;
-
- yy_current_state = (yy_start);
- yy_current_state += YY_AT_BOL();
-yy_match:
- do
- {
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
- if ( yy_accept[yy_current_state] )
- {
- (yy_last_accepting_state) = yy_current_state;
- (yy_last_accepting_cpos) = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 62 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- ++yy_cp;
- }
- while ( yy_current_state != 61 );
- yy_cp = (yy_last_accepting_cpos);
- yy_current_state = (yy_last_accepting_state);
-
-yy_find_action:
- yy_act = yy_accept[yy_current_state];
-
- YY_DO_BEFORE_ACTION;
-
- if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
- {
- yy_size_t yyl;
- for ( yyl = 0; yyl < i386_leng; ++yyl )
- if ( i386_text[yyl] == '\n' )
-
- i386_lineno++;
-;
- }
-
-do_action: /* This label is used only to access EOF actions. */
-
- switch ( yy_act )
- { /* beginning of action switch */
- case 0: /* must back up */
- /* undo the effects of YY_DO_BEFORE_ACTION */
- *yy_cp = (yy_hold_char);
- yy_cp = (yy_last_accepting_cpos);
- yy_current_state = (yy_last_accepting_state);
- goto yy_find_action;
-
-case 1:
-YY_RULE_SETUP
-#line 59 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return kMASK; }
- YY_BREAK
-case 2:
-YY_RULE_SETUP
-#line 61 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return kPREFIX; }
- YY_BREAK
-case 3:
-YY_RULE_SETUP
-#line 62 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return kSUFFIX; }
- YY_BREAK
-case 4:
-YY_RULE_SETUP
-#line 64 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return kSYNONYM; }
- YY_BREAK
-case 5:
-YY_RULE_SETUP
-#line 66 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ i386_lval.num = strtoul (i386_text, NULL, 10);
- return kNUMBER; }
- YY_BREAK
-case 6:
-YY_RULE_SETUP
-#line 69 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ BEGIN (MAIN); return kPERCPERC; }
- YY_BREAK
-case 7:
-YY_RULE_SETUP
-#line 72 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return '0'; }
- YY_BREAK
-case 8:
-YY_RULE_SETUP
-#line 73 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return '1'; }
- YY_BREAK
-case 9:
-YY_RULE_SETUP
-#line 75 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ i386_lval.str = xstrndup (i386_text + 1,
- i386_leng - 2);
- return kBITFIELD; }
- YY_BREAK
-case 10:
-YY_RULE_SETUP
-#line 79 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ i386_lval.str = (void *) -1l;
- return kID; }
- YY_BREAK
-case 11:
-YY_RULE_SETUP
-#line 82 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ i386_lval.str = xstrndup (i386_text, i386_leng);
- return kID; }
- YY_BREAK
-case 12:
-YY_RULE_SETUP
-#line 85 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return ','; }
- YY_BREAK
-case 13:
-YY_RULE_SETUP
-#line 87 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return ':'; }
- YY_BREAK
-case 14:
-/* rule 14 can match eol */
-YY_RULE_SETUP
-#line 89 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ /* IGNORE */ }
- YY_BREAK
-case 15:
-/* rule 15 can match eol */
-YY_RULE_SETUP
-#line 91 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return '\n'; }
- YY_BREAK
-case 16:
-YY_RULE_SETUP
-#line 93 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ eat_to_eol (); }
- YY_BREAK
-case 17:
-/* rule 17 can match eol */
-YY_RULE_SETUP
-#line 95 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ /* IGNORE */ }
- YY_BREAK
-case 18:
-/* rule 18 can match eol */
-YY_RULE_SETUP
-#line 97 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ return kSPACE; }
- YY_BREAK
-case 19:
-YY_RULE_SETUP
-#line 99 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ i386_lval.ch = *i386_text; return kCHAR; }
- YY_BREAK
-case 20:
-YY_RULE_SETUP
-#line 101 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-{ invalid_char (*i386_text); }
- YY_BREAK
-case 21:
-YY_RULE_SETUP
-#line 104 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-ECHO;
- YY_BREAK
-#line 978 "i386_lex.c"
-case YY_STATE_EOF(INITIAL):
-case YY_STATE_EOF(MAIN):
- yyterminate();
-
- case YY_END_OF_BUFFER:
- {
- /* Amount of text matched not including the EOB char. */
- int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
-
- /* Undo the effects of YY_DO_BEFORE_ACTION. */
- *yy_cp = (yy_hold_char);
- YY_RESTORE_YY_MORE_OFFSET
-
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
- {
- /* We're scanning a new file or input source. It's
- * possible that this happened because the user
- * just pointed i386_in at a new source and called
- * i386_lex(). If so, then we have to assure
- * consistency between YY_CURRENT_BUFFER and our
- * globals. Here is the right place to do so, because
- * this is the first action (other than possibly a
- * back-up) that will match for the new input source.
- */
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- YY_CURRENT_BUFFER_LVALUE->yy_input_file = i386_in;
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
- }
-
- /* Note that here we test for yy_c_buf_p "<=" to the position
- * of the first EOB in the buffer, since yy_c_buf_p will
- * already have been incremented past the NUL character
- * (since all states make transitions on EOB to the
- * end-of-buffer state). Contrast this with the test
- * in input().
- */
- if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
- { /* This was really a NUL. */
- yy_state_type yy_next_state;
-
- (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
-
- yy_current_state = yy_get_previous_state( );
-
- /* Okay, we're now positioned to make the NUL
- * transition. We couldn't have
- * yy_get_previous_state() go ahead and do it
- * for us because it doesn't know how to deal
- * with the possibility of jamming (and we don't
- * want to build jamming into it because then it
- * will run more slowly).
- */
-
- yy_next_state = yy_try_NUL_trans( yy_current_state );
-
- yy_bp = (yytext_ptr) + YY_MORE_ADJ;
-
- if ( yy_next_state )
- {
- /* Consume the NUL. */
- yy_cp = ++(yy_c_buf_p);
- yy_current_state = yy_next_state;
- goto yy_match;
- }
-
- else
- {
- yy_cp = (yy_last_accepting_cpos);
- yy_current_state = (yy_last_accepting_state);
- goto yy_find_action;
- }
- }
-
- else switch ( yy_get_next_buffer( ) )
- {
- case EOB_ACT_END_OF_FILE:
- {
- (yy_did_buffer_switch_on_eof) = 0;
-
- if ( i386_wrap( ) )
- {
- /* Note: because we've taken care in
- * yy_get_next_buffer() to have set up
- * i386_text, we can now set up
- * yy_c_buf_p so that if some total
- * hoser (like flex itself) wants to
- * call the scanner after we return the
- * YY_NULL, it'll still work - another
- * YY_NULL will get returned.
- */
- (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
-
- yy_act = YY_STATE_EOF(YY_START);
- goto do_action;
- }
-
- else
- {
- if ( ! (yy_did_buffer_switch_on_eof) )
- YY_NEW_FILE;
- }
- break;
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- (yy_c_buf_p) =
- (yytext_ptr) + yy_amount_of_matched_text;
-
- yy_current_state = yy_get_previous_state( );
-
- yy_cp = (yy_c_buf_p);
- yy_bp = (yytext_ptr) + YY_MORE_ADJ;
- goto yy_match;
-
- case EOB_ACT_LAST_MATCH:
- (yy_c_buf_p) =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
-
- yy_current_state = yy_get_previous_state( );
-
- yy_cp = (yy_c_buf_p);
- yy_bp = (yytext_ptr) + YY_MORE_ADJ;
- goto yy_find_action;
- }
- break;
- }
-
- default:
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--no action found" );
- } /* end of action switch */
- } /* end of scanning one token */
-} /* end of i386_lex */
-
-/* yy_get_next_buffer - try to read in a new buffer
- *
- * Returns a code representing an action:
- * EOB_ACT_LAST_MATCH -
- * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
- * EOB_ACT_END_OF_FILE - end of file
- */
-static int yy_get_next_buffer (void)
-{
- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
- register char *source = (yytext_ptr);
- register int number_to_move, i;
- int ret_val;
-
- if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
- YY_FATAL_ERROR(
- "fatal flex scanner internal error--end of buffer missed" );
-
- if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
- { /* Don't try to fill the buffer, so this is an EOF. */
- if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
- {
- /* We matched a single character, the EOB, so
- * treat this as a final EOF.
- */
- return EOB_ACT_END_OF_FILE;
- }
-
- else
- {
- /* We matched some text prior to the EOB, first
- * process it.
- */
- return EOB_ACT_LAST_MATCH;
- }
- }
-
- /* Try to read more data. */
-
- /* First move last chars to start of buffer. */
- number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
-
- for ( i = 0; i < number_to_move; ++i )
- *(dest++) = *(source++);
-
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
- /* don't do the read, it's not guaranteed to return an EOF,
- * just force an EOF
- */
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
-
- else
- {
- yy_size_t num_to_read =
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
-
- while ( num_to_read <= 0 )
- { /* Not enough room in the buffer - grow it. */
-
- /* just a shorter name for the current buffer */
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
-
- int yy_c_buf_p_offset =
- (int) ((yy_c_buf_p) - b->yy_ch_buf);
-
- if ( b->yy_is_our_buffer )
- {
- yy_size_t new_size = b->yy_buf_size * 2;
-
- if ( new_size <= 0 )
- b->yy_buf_size += b->yy_buf_size / 8;
- else
- b->yy_buf_size *= 2;
-
- b->yy_ch_buf = (char *)
- /* Include room in for 2 EOB chars. */
- i386_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
- }
- else
- /* Can't grow it, we don't own it. */
- b->yy_ch_buf = 0;
-
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR(
- "fatal error - scanner input buffer overflow" );
-
- (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
-
- num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
- number_to_move - 1;
-
- }
-
- if ( num_to_read > YY_READ_BUF_SIZE )
- num_to_read = YY_READ_BUF_SIZE;
-
- /* Read in more data. */
- YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- (yy_n_chars), num_to_read );
-
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
- }
-
- if ( (yy_n_chars) == 0 )
- {
- if ( number_to_move == YY_MORE_ADJ )
- {
- ret_val = EOB_ACT_END_OF_FILE;
- i386_restart(i386_in );
- }
-
- else
- {
- ret_val = EOB_ACT_LAST_MATCH;
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
- YY_BUFFER_EOF_PENDING;
- }
- }
-
- else
- ret_val = EOB_ACT_CONTINUE_SCAN;
-
- if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
- /* Extend the array by 50%, plus the number we really need. */
- yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) i386_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
- if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
- }
-
- (yy_n_chars) += number_to_move;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
-
- (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
-
- return ret_val;
-}
-
-/* yy_get_previous_state - get the state just before the EOB char was reached */
-
- static yy_state_type yy_get_previous_state (void)
-{
- register yy_state_type yy_current_state;
- register char *yy_cp;
-
- yy_current_state = (yy_start);
- yy_current_state += YY_AT_BOL();
-
- for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
- {
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
- if ( yy_accept[yy_current_state] )
- {
- (yy_last_accepting_state) = yy_current_state;
- (yy_last_accepting_cpos) = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 62 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- }
-
- return yy_current_state;
-}
-
-/* yy_try_NUL_trans - try to make a transition on the NUL character
- *
- * synopsis
- * next_state = yy_try_NUL_trans( current_state );
- */
- static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
-{
- register int yy_is_jam;
- register char *yy_cp = (yy_c_buf_p);
-
- register YY_CHAR yy_c = 1;
- if ( yy_accept[yy_current_state] )
- {
- (yy_last_accepting_state) = yy_current_state;
- (yy_last_accepting_cpos) = yy_cp;
- }
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
- {
- yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 62 )
- yy_c = yy_meta[(unsigned int) yy_c];
- }
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- yy_is_jam = (yy_current_state == 61);
-
- return yy_is_jam ? 0 : yy_current_state;
-}
-
- static void yyunput (int c, register char * yy_bp )
-{
- register char *yy_cp;
-
- yy_cp = (yy_c_buf_p);
-
- /* undo effects of setting up i386_text */
- *yy_cp = (yy_hold_char);
-
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
- { /* need to shift things up to make room */
- /* +2 for EOB chars. */
- register yy_size_t number_to_move = (yy_n_chars) + 2;
- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
- register char *source =
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
-
- while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
- *--dest = *--source;
-
- yy_cp += (int) (dest - source);
- yy_bp += (int) (dest - source);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
-
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
- YY_FATAL_ERROR( "flex scanner push-back overflow" );
- }
-
- *--yy_cp = (char) c;
-
- if ( c == '\n' ){
- --i386_lineno;
- }
-
- (yytext_ptr) = yy_bp;
- (yy_hold_char) = *yy_cp;
- (yy_c_buf_p) = yy_cp;
-}
-
-#ifndef YY_NO_INPUT
-#ifdef __cplusplus
- static int yyinput (void)
-#else
- static int input (void)
-#endif
-
-{
- int c;
-
- *(yy_c_buf_p) = (yy_hold_char);
-
- if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
- {
- /* yy_c_buf_p now points to the character we want to return.
- * If this occurs *before* the EOB characters, then it's a
- * valid NUL; if not, then we've hit the end of the buffer.
- */
- if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
- /* This was really a NUL. */
- *(yy_c_buf_p) = '\0';
-
- else
- { /* need more input */
- yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
- ++(yy_c_buf_p);
-
- switch ( yy_get_next_buffer( ) )
- {
- case EOB_ACT_LAST_MATCH:
- /* This happens because yy_g_n_b()
- * sees that we've accumulated a
- * token and flags that we need to
- * try matching the token before
- * proceeding. But for input(),
- * there's no matching to consider.
- * So convert the EOB_ACT_LAST_MATCH
- * to EOB_ACT_END_OF_FILE.
- */
-
- /* Reset buffer status. */
- i386_restart(i386_in );
-
- /*FALLTHROUGH*/
-
- case EOB_ACT_END_OF_FILE:
- {
- if ( i386_wrap( ) )
- return EOF;
-
- if ( ! (yy_did_buffer_switch_on_eof) )
- YY_NEW_FILE;
-#ifdef __cplusplus
- return yyinput();
-#else
- return input();
-#endif
- }
-
- case EOB_ACT_CONTINUE_SCAN:
- (yy_c_buf_p) = (yytext_ptr) + offset;
- break;
- }
- }
- }
-
- c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
- *(yy_c_buf_p) = '\0'; /* preserve i386_text */
- (yy_hold_char) = *++(yy_c_buf_p);
-
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
- if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol )
-
- i386_lineno++;
-;
-
- return c;
-}
-#endif /* ifndef YY_NO_INPUT */
-
-/** Immediately switch to a different input stream.
- * @param input_file A readable stream.
- *
- * @note This function does not reset the start condition to @c INITIAL .
- */
- void i386_restart (FILE * input_file )
-{
-
- if ( ! YY_CURRENT_BUFFER ){
- i386_ensure_buffer_stack ();
- YY_CURRENT_BUFFER_LVALUE =
- i386__create_buffer(i386_in,YY_BUF_SIZE );
- }
-
- i386__init_buffer(YY_CURRENT_BUFFER,input_file );
- i386__load_buffer_state( );
-}
-
-/** Switch to a different input buffer.
- * @param new_buffer The new input buffer.
- *
- */
- void i386__switch_to_buffer (YY_BUFFER_STATE new_buffer )
-{
-
- /* TODO. We should be able to replace this entire function body
- * with
- * i386_pop_buffer_state();
- * i386_push_buffer_state(new_buffer);
- */
- i386_ensure_buffer_stack ();
- if ( YY_CURRENT_BUFFER == new_buffer )
- return;
-
- if ( YY_CURRENT_BUFFER )
- {
- /* Flush out information for old buffer. */
- *(yy_c_buf_p) = (yy_hold_char);
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
- }
-
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
- i386__load_buffer_state( );
-
- /* We don't actually know whether we did this switch during
- * EOF (i386_wrap()) processing, but the only time this flag
- * is looked at is after i386_wrap() is called, so it's safe
- * to go ahead and always set it.
- */
- (yy_did_buffer_switch_on_eof) = 1;
-}
-
-static void i386__load_buffer_state (void)
-{
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
- (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
- i386_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
- (yy_hold_char) = *(yy_c_buf_p);
-}
-
-/** Allocate and initialize an input buffer state.
- * @param file A readable stream.
- * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
- *
- * @return the allocated buffer state.
- */
- YY_BUFFER_STATE i386__create_buffer (FILE * file, int size )
-{
- YY_BUFFER_STATE b;
-
- b = (YY_BUFFER_STATE) i386_alloc(sizeof( struct yy_buffer_state ) );
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in i386__create_buffer()" );
-
- b->yy_buf_size = size;
-
- /* yy_ch_buf has to be 2 characters longer than the size given because
- * we need to put in 2 end-of-buffer characters.
- */
- b->yy_ch_buf = (char *) i386_alloc(b->yy_buf_size + 2 );
- if ( ! b->yy_ch_buf )
- YY_FATAL_ERROR( "out of dynamic memory in i386__create_buffer()" );
-
- b->yy_is_our_buffer = 1;
-
- i386__init_buffer(b,file );
-
- return b;
-}
-
-/** Destroy the buffer.
- * @param b a buffer created with i386__create_buffer()
- *
- */
- void i386__delete_buffer (YY_BUFFER_STATE b )
-{
-
- if ( ! b )
- return;
-
- if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
- YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
-
- if ( b->yy_is_our_buffer )
- i386_free((void *) b->yy_ch_buf );
-
- i386_free((void *) b );
-}
-
-/* Initializes or reinitializes a buffer.
- * This function is sometimes called more than once on the same buffer,
- * such as during a i386_restart() or at EOF.
- */
- static void i386__init_buffer (YY_BUFFER_STATE b, FILE * file )
-
-{
- int oerrno = errno;
-
- i386__flush_buffer(b );
-
- b->yy_input_file = file;
- b->yy_fill_buffer = 1;
-
- /* If b is the current buffer, then i386__init_buffer was _probably_
- * called from i386_restart() or through yy_get_next_buffer.
- * In that case, we don't want to reset the lineno or column.
- */
- if (b != YY_CURRENT_BUFFER){
- b->yy_bs_lineno = 1;
- b->yy_bs_column = 0;
- }
-
- b->yy_is_interactive = 0;
-
- errno = oerrno;
-}
-
-/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
- * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
- *
- */
- void i386__flush_buffer (YY_BUFFER_STATE b )
-{
- if ( ! b )
- return;
-
- b->yy_n_chars = 0;
-
- /* We always need two end-of-buffer characters. The first causes
- * a transition to the end-of-buffer state. The second causes
- * a jam in that state.
- */
- b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
- b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
-
- b->yy_buf_pos = &b->yy_ch_buf[0];
-
- b->yy_at_bol = 1;
- b->yy_buffer_status = YY_BUFFER_NEW;
-
- if ( b == YY_CURRENT_BUFFER )
- i386__load_buffer_state( );
-}
-
-/** Pushes the new state onto the stack. The new state becomes
- * the current state. This function will allocate the stack
- * if necessary.
- * @param new_buffer The new state.
- *
- */
-void i386_push_buffer_state (YY_BUFFER_STATE new_buffer )
-{
- if (new_buffer == NULL)
- return;
-
- i386_ensure_buffer_stack();
-
- /* This block is copied from i386__switch_to_buffer. */
- if ( YY_CURRENT_BUFFER )
- {
- /* Flush out information for old buffer. */
- *(yy_c_buf_p) = (yy_hold_char);
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
- }
-
- /* Only push if top exists. Otherwise, replace top. */
- if (YY_CURRENT_BUFFER)
- (yy_buffer_stack_top)++;
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
-
- /* copied from i386__switch_to_buffer. */
- i386__load_buffer_state( );
- (yy_did_buffer_switch_on_eof) = 1;
-}
-
-/** Removes and deletes the top of the stack, if present.
- * The next element becomes the new top.
- *
- */
-void i386_pop_buffer_state (void)
-{
- if (!YY_CURRENT_BUFFER)
- return;
-
- i386__delete_buffer(YY_CURRENT_BUFFER );
- YY_CURRENT_BUFFER_LVALUE = NULL;
- if ((yy_buffer_stack_top) > 0)
- --(yy_buffer_stack_top);
-
- if (YY_CURRENT_BUFFER) {
- i386__load_buffer_state( );
- (yy_did_buffer_switch_on_eof) = 1;
- }
-}
-
-/* Allocates the stack if it does not exist.
- * Guarantees space for at least one push.
- */
-static void i386_ensure_buffer_stack (void)
-{
- yy_size_t num_to_alloc;
-
- if (!(yy_buffer_stack)) {
-
- /* First allocation is just for 2 elements, since we don't know if this
- * scanner will even need a stack. We use 2 instead of 1 to avoid an
- * immediate realloc on the next call.
- */
- num_to_alloc = 1;
- (yy_buffer_stack) = (struct yy_buffer_state**)i386_alloc
- (num_to_alloc * sizeof(struct yy_buffer_state*)
- );
- if ( ! (yy_buffer_stack) )
- YY_FATAL_ERROR( "out of dynamic memory in i386_ensure_buffer_stack()" );
-
- memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
-
- (yy_buffer_stack_max) = num_to_alloc;
- (yy_buffer_stack_top) = 0;
- return;
- }
-
- if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
-
- /* Increase the buffer to prepare for a possible push. */
- int grow_size = 8 /* arbitrary grow size */;
-
- num_to_alloc = (yy_buffer_stack_max) + grow_size;
- (yy_buffer_stack) = (struct yy_buffer_state**)i386_realloc
- ((yy_buffer_stack),
- num_to_alloc * sizeof(struct yy_buffer_state*)
- );
- if ( ! (yy_buffer_stack) )
- YY_FATAL_ERROR( "out of dynamic memory in i386_ensure_buffer_stack()" );
-
- /* zero only the new slots.*/
- memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
- (yy_buffer_stack_max) = num_to_alloc;
- }
-}
-
-/** Setup the input buffer state to scan directly from a user-specified character buffer.
- * @param base the character buffer
- * @param size the size in bytes of the character buffer
- *
- * @return the newly allocated buffer state object.
- */
-YY_BUFFER_STATE i386__scan_buffer (char * base, yy_size_t size )
-{
- YY_BUFFER_STATE b;
-
- if ( size < 2 ||
- base[size-2] != YY_END_OF_BUFFER_CHAR ||
- base[size-1] != YY_END_OF_BUFFER_CHAR )
- /* They forgot to leave room for the EOB's. */
- return 0;
-
- b = (YY_BUFFER_STATE) i386_alloc(sizeof( struct yy_buffer_state ) );
- if ( ! b )
- YY_FATAL_ERROR( "out of dynamic memory in i386__scan_buffer()" );
-
- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
- b->yy_buf_pos = b->yy_ch_buf = base;
- b->yy_is_our_buffer = 0;
- b->yy_input_file = 0;
- b->yy_n_chars = b->yy_buf_size;
- b->yy_is_interactive = 0;
- b->yy_at_bol = 1;
- b->yy_fill_buffer = 0;
- b->yy_buffer_status = YY_BUFFER_NEW;
-
- i386__switch_to_buffer(b );
-
- return b;
-}
-
-/** Setup the input buffer state to scan a string. The next call to i386_lex() will
- * scan from a @e copy of @a str.
- * @param yystr a NUL-terminated string to scan
- *
- * @return the newly allocated buffer state object.
- * @note If you want to scan bytes that may contain NUL values, then use
- * i386__scan_bytes() instead.
- */
-YY_BUFFER_STATE i386__scan_string (yyconst char * yystr )
-{
-
- return i386__scan_bytes(yystr,strlen(yystr) );
-}
-
-/** Setup the input buffer state to scan the given bytes. The next call to i386_lex() will
- * scan from a @e copy of @a bytes.
- * @param yybytes the byte buffer to scan
- * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
- *
- * @return the newly allocated buffer state object.
- */
-YY_BUFFER_STATE i386__scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
-{
- YY_BUFFER_STATE b;
- char *buf;
- yy_size_t n;
- yy_size_t i;
-
- /* Get memory for full buffer, including space for trailing EOB's. */
- n = _yybytes_len + 2;
- buf = (char *) i386_alloc(n );
- if ( ! buf )
- YY_FATAL_ERROR( "out of dynamic memory in i386__scan_bytes()" );
-
- for ( i = 0; i < _yybytes_len; ++i )
- buf[i] = yybytes[i];
-
- buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
-
- b = i386__scan_buffer(buf,n );
- if ( ! b )
- YY_FATAL_ERROR( "bad buffer in i386__scan_bytes()" );
-
- /* It's okay to grow etc. this buffer, and we should throw it
- * away when we're done.
- */
- b->yy_is_our_buffer = 1;
-
- return b;
-}
-
-#ifndef YY_EXIT_FAILURE
-#define YY_EXIT_FAILURE 2
-#endif
-
-static void yy_fatal_error (yyconst char* msg )
-{
- (void) fprintf( stderr, "%s\n", msg );
- exit( YY_EXIT_FAILURE );
-}
-
-/* Redefine yyless() so it works in section 3 code. */
-
-#undef yyless
-#define yyless(n) \
- do \
- { \
- /* Undo effects of setting up i386_text. */ \
- int yyless_macro_arg = (n); \
- YY_LESS_LINENO(yyless_macro_arg);\
- i386_text[i386_leng] = (yy_hold_char); \
- (yy_c_buf_p) = i386_text + yyless_macro_arg; \
- (yy_hold_char) = *(yy_c_buf_p); \
- *(yy_c_buf_p) = '\0'; \
- i386_leng = yyless_macro_arg; \
- } \
- while ( 0 )
-
-/* Accessor methods (get/set functions) to struct members. */
-
-/** Get the current line number.
- *
- */
-int i386_get_lineno (void)
-{
-
- return i386_lineno;
-}
-
-/** Get the input stream.
- *
- */
-FILE *i386_get_in (void)
-{
- return i386_in;
-}
-
-/** Get the output stream.
- *
- */
-FILE *i386_get_out (void)
-{
- return i386_out;
-}
-
-/** Get the length of the current token.
- *
- */
-yy_size_t i386_get_leng (void)
-{
- return i386_leng;
-}
-
-/** Get the current token.
- *
- */
-
-char *i386_get_text (void)
-{
- return i386_text;
-}
-
-/** Set the current line number.
- * @param line_number
- *
- */
-void i386_set_lineno (int line_number )
-{
-
- i386_lineno = line_number;
-}
-
-/** Set the input stream. This does not discard the current
- * input buffer.
- * @param in_str A readable stream.
- *
- * @see i386__switch_to_buffer
- */
-void i386_set_in (FILE * in_str )
-{
- i386_in = in_str ;
-}
-
-void i386_set_out (FILE * out_str )
-{
- i386_out = out_str ;
-}
-
-int i386_get_debug (void)
-{
- return i386__flex_debug;
-}
-
-void i386_set_debug (int bdebug )
-{
- i386__flex_debug = bdebug ;
-}
-
-static int yy_init_globals (void)
-{
- /* Initialization is the same as for the non-reentrant scanner.
- * This function is called from i386_lex_destroy(), so don't allocate here.
- */
-
- /* We do not touch i386_lineno unless the option is enabled. */
- i386_lineno = 1;
-
- (yy_buffer_stack) = 0;
- (yy_buffer_stack_top) = 0;
- (yy_buffer_stack_max) = 0;
- (yy_c_buf_p) = (char *) 0;
- (yy_init) = 0;
- (yy_start) = 0;
-
-/* Defined in main.c */
-#ifdef YY_STDINIT
- i386_in = stdin;
- i386_out = stdout;
-#else
- i386_in = (FILE *) 0;
- i386_out = (FILE *) 0;
-#endif
-
- /* For future reference: Set errno on error, since we are called by
- * i386_lex_init()
- */
- return 0;
-}
-
-/* i386_lex_destroy is for both reentrant and non-reentrant scanners. */
-int i386_lex_destroy (void)
-{
-
- /* Pop the buffer stack, destroying each element. */
- while(YY_CURRENT_BUFFER){
- i386__delete_buffer(YY_CURRENT_BUFFER );
- YY_CURRENT_BUFFER_LVALUE = NULL;
- i386_pop_buffer_state();
- }
-
- /* Destroy the stack itself. */
- i386_free((yy_buffer_stack) );
- (yy_buffer_stack) = NULL;
-
- /* Reset the globals. This is important in a non-reentrant scanner so the next time
- * i386_lex() is called, initialization will occur. */
- yy_init_globals( );
-
- return 0;
-}
-
-/*
- * Internal utility routines.
- */
-
-#ifndef yytext_ptr
-static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
-{
- register int i;
- for ( i = 0; i < n; ++i )
- s1[i] = s2[i];
-}
-#endif
-
-#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * s )
-{
- register int n;
- for ( n = 0; s[n]; ++n )
- ;
-
- return n;
-}
-#endif
-
-void *i386_alloc (yy_size_t size )
-{
- return (void *) malloc( size );
-}
-
-void *i386_realloc (void * ptr, yy_size_t size )
-{
- /* The cast to (char *) in the following accommodates both
- * implementations that use char* generic pointers, and those
- * that use void* generic pointers. It works with the latter
- * because both ANSI C and C++ allow castless assignment from
- * any pointer type to void*, and deal with argument conversions
- * as though doing an assignment.
- */
- return (void *) realloc( (char *) ptr, size );
-}
-
-void i386_free (void * ptr )
-{
- free( (char *) ptr ); /* see i386_realloc() for (char *) cast */
-}
-
-#define YYTABLES_NAME "yytables"
-
-#line 104 "/home/mark/src/elfutils/libcpu/i386_lex.l"
-
-
-
-static void
-eat_to_eol (void)
-{
- while (1)
- {
- int c = input ();
-
- if (c == EOF || c == '\n')
- break;
- }
-}
-
-static void
-invalid_char (int ch)
-{
- error (0, 0, (isascii (ch)
- ? gettext ("invalid character '%c' at line %d; ignored")
- : gettext ("invalid character '\\%o' at line %d; ignored")),
- ch, i386_lineno);
-}
-
-// Local Variables:
-// mode: C
-// End:
-
diff --git a/src/libcpu/i386_lex.l b/src/libcpu/i386_lex.l
deleted file mode 100644
index 1e10dd76..00000000
--- a/src/libcpu/i386_lex.l
+++ /dev/null
@@ -1,129 +0,0 @@
-%{
-/* Copyright (C) 2004, 2005, 2007, 2008 Red Hat, Inc.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <ctype.h>
-#include <error.h>
-#include <libintl.h>
-
-#include <system.h>
-#include "i386_parse.h"
-
-
-static void eat_to_eol (void);
-static void invalid_char (int ch);
-%}
-
-ID [a-zA-Z_][a-zA-Z0-9_/]*
-ID2 [a-zA-Z0-9_:/]*
-NUMBER [0-9]+
-WHITE [[:space:]]+
-
-%option yylineno
-%option never-interactive
-%option noyywrap
-
-
-%x MAIN
-
-%%
-
-"%mask" { return kMASK; }
-
-"%prefix" { return kPREFIX; }
-"%suffix" { return kSUFFIX; }
-
-"%synonym" { return kSYNONYM; }
-
-{NUMBER} { i386_lval.num = strtoul (yytext, NULL, 10);
- return kNUMBER; }
-
-"%%" { BEGIN (MAIN); return kPERCPERC; }
-
-
-<MAIN>"0" { return '0'; }
-<MAIN>"1" { return '1'; }
-
-<INITIAL,MAIN>"{"{ID2}"}" { i386_lval.str = xstrndup (yytext + 1,
- yyleng - 2);
- return kBITFIELD; }
-
-<MAIN>"INVALID" { i386_lval.str = (void *) -1l;
- return kID; }
-
-<MAIN>{ID} { i386_lval.str = xstrndup (yytext, yyleng);
- return kID; }
-
-<MAIN>"," { return ','; }
-
-<MAIN>":" { return ':'; }
-
-<INITIAL,MAIN>^"\n" { /* IGNORE */ }
-
-<INITIAL,MAIN>"\n" { return '\n'; }
-
-<INITIAL,MAIN>^"#" { eat_to_eol (); }
-
-{WHITE} { /* IGNORE */ }
-
-<MAIN>{WHITE} { return kSPACE; }
-
-<MAIN>. { i386_lval.ch = *yytext; return kCHAR; }
-
-. { invalid_char (*yytext); }
-
-
-%%
-
-static void
-eat_to_eol (void)
-{
- while (1)
- {
- int c = input ();
-
- if (c == EOF || c == '\n')
- break;
- }
-}
-
-static void
-invalid_char (int ch)
-{
- error (0, 0, (isascii (ch)
- ? gettext ("invalid character '%c' at line %d; ignored")
- : gettext ("invalid character '\\%o' at line %d; ignored")),
- ch, yylineno);
-}
-
-// Local Variables:
-// mode: C
-// End:
diff --git a/src/libcpu/i386_parse.c b/src/libcpu/i386_parse.c
deleted file mode 100644
index cf8fe259..00000000
--- a/src/libcpu/i386_parse.c
+++ /dev/null
@@ -1,3358 +0,0 @@
-/* A Bison parser, made by GNU Bison 2.7. */
-
-/* Bison implementation for Yacc-like parsers in C
-
- Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-/* As a special exception, you may create a larger work that contains
- part or all of the Bison parser skeleton and distribute that work
- under terms of your choice, so long as that work isn't itself a
- parser generator using the skeleton or a modified version thereof
- as a parser skeleton. Alternatively, if you modify or redistribute
- the parser skeleton itself, you may (at your option) remove this
- special exception, which will cause the skeleton and the resulting
- Bison output files to be licensed under the GNU General Public
- License without this special exception.
-
- This special exception was added by the Free Software Foundation in
- version 2.2 of Bison. */
-
-/* C LALR(1) parser skeleton written by Richard Stallman, by
- simplifying the original so-called "semantic" parser. */
-
-/* All symbols defined below should begin with yy or YY, to avoid
- infringing on user name space. This should be done even for local
- variables, as they might otherwise be expanded by user macros.
- There are some unavoidable exceptions within include files to
- define necessary library symbols; they are noted "INFRINGES ON
- USER NAME SPACE" below. */
-
-/* Identify Bison output. */
-#define YYBISON 1
-
-/* Bison version. */
-#define YYBISON_VERSION "2.7"
-
-/* Skeleton name. */
-#define YYSKELETON_NAME "yacc.c"
-
-/* Pure parsers. */
-#define YYPURE 0
-
-/* Push parsers. */
-#define YYPUSH 0
-
-/* Pull parsers. */
-#define YYPULL 1
-
-
-/* Substitute the variable and function names. */
-#define yyparse i386_parse
-#define yylex i386_lex
-#define yyerror i386_error
-#define yylval i386_lval
-#define yychar i386_char
-#define yydebug i386_debug
-#define yynerrs i386_nerrs
-
-/* Copy the first part of user declarations. */
-/* Line 371 of yacc.c */
-#line 1 "/home/mark/src/elfutils/libcpu/i386_parse.y"
-
-/* Parser for i386 CPU description.
- Copyright (C) 2004, 2005, 2007, 2008, 2009 Red Hat, Inc.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <ctype.h>
-#include <errno.h>
-#include <error.h>
-#include <inttypes.h>
-#include <libintl.h>
-#include <math.h>
-#include <obstack.h>
-#include <search.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/param.h>
-
-#include <system.h>
-
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
-/* The error handler. */
-static void yyerror (const char *s);
-
-extern int yylex (void);
-extern int i386_lineno;
-extern char *infname;
-
-
-struct known_bitfield
-{
- char *name;
- unsigned long int bits;
- int tmp;
-};
-
-
-struct bitvalue
-{
- enum bittype { zeroone, field, failure } type;
- union
- {
- unsigned int value;
- struct known_bitfield *field;
- };
- struct bitvalue *next;
-};
-
-
-struct argname
-{
- enum nametype { string, nfield } type;
- union
- {
- char *str;
- struct known_bitfield *field;
- };
- struct argname *next;
-};
-
-
-struct argument
-{
- struct argname *name;
- struct argument *next;
-};
-
-
-struct instruction
-{
- /* The byte encoding. */
- struct bitvalue *bytes;
-
- /* Prefix possible. */
- int repe;
- int rep;
-
- /* Mnemonic. */
- char *mnemonic;
-
- /* Suffix. */
- enum { suffix_none = 0, suffix_w, suffix_w0, suffix_W, suffix_tttn,
- suffix_w1, suffix_W1, suffix_D } suffix;
-
- /* Flag set if modr/m is used. */
- int modrm;
-
- /* Operands. */
- struct operand
- {
- char *fct;
- char *str;
- int off1;
- int off2;
- int off3;
- } operands[3];
-
- struct instruction *next;
-};
-
-
-struct synonym
-{
- char *from;
- char *to;
-};
-
-
-struct suffix
-{
- char *name;
- int idx;
-};
-
-
-struct argstring
-{
- char *str;
- int idx;
- int off;
-};
-
-
-static struct known_bitfield ax_reg =
- {
- .name = "ax", .bits = 0, .tmp = 0
- };
-
-static struct known_bitfield dx_reg =
- {
- .name = "dx", .bits = 0, .tmp = 0
- };
-
-static struct known_bitfield di_reg =
- {
- .name = "es_di", .bits = 0, .tmp = 0
- };
-
-static struct known_bitfield si_reg =
- {
- .name = "ds_si", .bits = 0, .tmp = 0
- };
-
-static struct known_bitfield bx_reg =
- {
- .name = "ds_bx", .bits = 0, .tmp = 0
- };
-
-
-static int bitfield_compare (const void *p1, const void *p2);
-static void new_bitfield (char *name, unsigned long int num);
-static void check_bits (struct bitvalue *value);
-static int check_duplicates (struct bitvalue *val);
-static int check_argsdef (struct bitvalue *bitval, struct argument *args);
-static int check_bitsused (struct bitvalue *bitval,
- struct known_bitfield *suffix,
- struct argument *args);
-static struct argname *combine (struct argname *name);
-static void fillin_arg (struct bitvalue *bytes, struct argname *name,
- struct instruction *instr, int n);
-static void find_numbers (void);
-static int compare_syn (const void *p1, const void *p2);
-static int compare_suf (const void *p1, const void *p2);
-static void instrtable_out (void);
-#if 0
-static void create_mnemonic_table (void);
-#endif
-
-static void *bitfields;
-static struct instruction *instructions;
-static size_t ninstructions;
-static void *synonyms;
-static void *suffixes;
-static int nsuffixes;
-static void *mnemonics;
-size_t nmnemonics;
-extern FILE *outfile;
-
-/* Number of bits used mnemonics. */
-#if 0
-static size_t best_mnemonic_bits;
-#endif
-
-/* Line 371 of yacc.c */
-#line 291 "i386_parse.c"
-
-# ifndef YY_NULL
-# if defined __cplusplus && 201103L <= __cplusplus
-# define YY_NULL nullptr
-# else
-# define YY_NULL 0
-# endif
-# endif
-
-/* Enabling verbose error messages. */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
-#else
-# define YYERROR_VERBOSE 0
-#endif
-
-/* In a future release of Bison, this section will be replaced
- by #include "y.tab.h". */
-#ifndef YY_I386_I_PARSE_H_INCLUDED
-# define YY_I386_I_PARSE_H_INCLUDED
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 0
-#endif
-#if YYDEBUG
-extern int i386_debug;
-#endif
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- kMASK = 258,
- kPREFIX = 259,
- kSUFFIX = 260,
- kSYNONYM = 261,
- kID = 262,
- kNUMBER = 263,
- kPERCPERC = 264,
- kBITFIELD = 265,
- kCHAR = 266,
- kSPACE = 267
- };
-#endif
-/* Tokens. */
-#define kMASK 258
-#define kPREFIX 259
-#define kSUFFIX 260
-#define kSYNONYM 261
-#define kID 262
-#define kNUMBER 263
-#define kPERCPERC 264
-#define kBITFIELD 265
-#define kCHAR 266
-#define kSPACE 267
-
-
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-{
-/* Line 387 of yacc.c */
-#line 217 "/home/mark/src/elfutils/libcpu/i386_parse.y"
-
- unsigned long int num;
- char *str;
- char ch;
- struct known_bitfield *field;
- struct bitvalue *bit;
- struct argname *name;
- struct argument *arg;
-
-
-/* Line 387 of yacc.c */
-#line 369 "i386_parse.c"
-} YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-#endif
-
-extern YYSTYPE i386_lval;
-
-#ifdef YYPARSE_PARAM
-#if defined __STDC__ || defined __cplusplus
-int i386_parse (void *YYPARSE_PARAM);
-#else
-int i386_parse ();
-#endif
-#else /* ! YYPARSE_PARAM */
-#if defined __STDC__ || defined __cplusplus
-int i386_parse (void);
-#else
-int i386_parse ();
-#endif
-#endif /* ! YYPARSE_PARAM */
-
-#endif /* !YY_I386_I_PARSE_H_INCLUDED */
-
-/* Copy the second part of user declarations. */
-
-/* Line 390 of yacc.c */
-#line 397 "i386_parse.c"
-
-#ifdef short
-# undef short
-#endif
-
-#ifdef YYTYPE_UINT8
-typedef YYTYPE_UINT8 yytype_uint8;
-#else
-typedef unsigned char yytype_uint8;
-#endif
-
-#ifdef YYTYPE_INT8
-typedef YYTYPE_INT8 yytype_int8;
-#elif (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-typedef signed char yytype_int8;
-#else
-typedef short int yytype_int8;
-#endif
-
-#ifdef YYTYPE_UINT16
-typedef YYTYPE_UINT16 yytype_uint16;
-#else
-typedef unsigned short int yytype_uint16;
-#endif
-
-#ifdef YYTYPE_INT16
-typedef YYTYPE_INT16 yytype_int16;
-#else
-typedef short int yytype_int16;
-#endif
-
-#ifndef YYSIZE_T
-# ifdef __SIZE_TYPE__
-# define YYSIZE_T __SIZE_TYPE__
-# elif defined size_t
-# define YYSIZE_T size_t
-# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-# else
-# define YYSIZE_T unsigned int
-# endif
-#endif
-
-#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
-
-#ifndef YY_
-# if defined YYENABLE_NLS && YYENABLE_NLS
-# if ENABLE_NLS
-# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
-# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
-# endif
-# endif
-# ifndef YY_
-# define YY_(Msgid) Msgid
-# endif
-#endif
-
-/* Suppress unused-variable warnings by "using" E. */
-#if ! defined lint || defined __GNUC__
-# define YYUSE(E) ((void) (E))
-#else
-# define YYUSE(E) /* empty */
-#endif
-
-/* Identity function, used to suppress warnings about constant conditions. */
-#ifndef lint
-# define YYID(N) (N)
-#else
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int yyi)
-#else
-static int
-YYID (yyi)
- int yyi;
-#endif
-{
- return yyi;
-}
-#endif
-
-#if ! defined yyoverflow || YYERROR_VERBOSE
-
-/* The parser invokes alloca or malloc; define the necessary symbols. */
-
-# ifdef YYSTACK_USE_ALLOCA
-# if YYSTACK_USE_ALLOCA
-# ifdef __GNUC__
-# define YYSTACK_ALLOC __builtin_alloca
-# elif defined __BUILTIN_VA_ARG_INCR
-# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
-# elif defined _AIX
-# define YYSTACK_ALLOC __alloca
-# elif defined _MSC_VER
-# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
-# define alloca _alloca
-# else
-# define YYSTACK_ALLOC alloca
-# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
- /* Use EXIT_SUCCESS as a witness for stdlib.h. */
-# ifndef EXIT_SUCCESS
-# define EXIT_SUCCESS 0
-# endif
-# endif
-# endif
-# endif
-# endif
-
-# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
-# ifndef YYSTACK_ALLOC_MAXIMUM
- /* The OS might guarantee only one guard page at the bottom of the stack,
- and a page size can be as small as 4096 bytes. So we cannot safely
- invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
- to allow for a few compiler-allocated temporary stack slots. */
-# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
-# endif
-# else
-# define YYSTACK_ALLOC YYMALLOC
-# define YYSTACK_FREE YYFREE
-# ifndef YYSTACK_ALLOC_MAXIMUM
-# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
-# endif
-# if (defined __cplusplus && ! defined EXIT_SUCCESS \
- && ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef EXIT_SUCCESS
-# define EXIT_SUCCESS 0
-# endif
-# endif
-# ifndef YYMALLOC
-# define YYMALLOC malloc
-# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifndef YYFREE
-# define YYFREE free
-# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-void free (void *); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# endif
-#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-
-
-#if (! defined yyoverflow \
- && (! defined __cplusplus \
- || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
-
-/* A type that is properly aligned for any stack member. */
-union yyalloc
-{
- yytype_int16 yyss_alloc;
- YYSTYPE yyvs_alloc;
-};
-
-/* The size of the maximum gap between one aligned stack and the next. */
-# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
-
-/* The size of an array large to enough to hold all stacks, each with
- N elements. */
-# define YYSTACK_BYTES(N) \
- ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
- + YYSTACK_GAP_MAXIMUM)
-
-# define YYCOPY_NEEDED 1
-
-/* Relocate STACK from its old location to the new one. The
- local variables YYSIZE and YYSTACKSIZE give the old and new number of
- elements in the stack, and YYPTR gives the new location of the
- stack. Advance YYPTR to a properly aligned location for the next
- stack. */
-# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
- Stack = &yyptr->Stack_alloc; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
-
-#endif
-
-#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
-/* Copy COUNT objects from SRC to DST. The source and destination do
- not overlap. */
-# ifndef YYCOPY
-# if defined __GNUC__ && 1 < __GNUC__
-# define YYCOPY(Dst, Src, Count) \
- __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
-# else
-# define YYCOPY(Dst, Src, Count) \
- do \
- { \
- YYSIZE_T yyi; \
- for (yyi = 0; yyi < (Count); yyi++) \
- (Dst)[yyi] = (Src)[yyi]; \
- } \
- while (YYID (0))
-# endif
-# endif
-#endif /* !YYCOPY_NEEDED */
-
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 12
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 37
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 18
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 14
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 32
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 49
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 267
-
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
-static const yytype_uint8 yytranslate[] =
-{
- 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 13, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 15, 2, 2, 2, 16, 17,
- 2, 2, 2, 2, 2, 2, 2, 2, 14, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
- 5, 6, 7, 8, 9, 10, 11, 12
-};
-
-#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint8 yyprhs[] =
-{
- 0, 0, 3, 8, 12, 14, 18, 21, 24, 28,
- 29, 33, 35, 42, 43, 45, 46, 50, 52, 55,
- 57, 59, 61, 63, 66, 67, 71, 73, 76, 78,
- 80, 82, 84
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int8 yyrhs[] =
-{
- 19, 0, -1, 20, 9, 13, 22, -1, 20, 13,
- 21, -1, 21, -1, 3, 10, 8, -1, 4, 10,
- -1, 5, 10, -1, 6, 10, 10, -1, -1, 22,
- 13, 23, -1, 23, -1, 25, 14, 24, 7, 24,
- 28, -1, -1, 10, -1, -1, 25, 15, 26, -1,
- 26, -1, 26, 27, -1, 27, -1, 16, -1, 17,
- -1, 10, -1, 12, 29, -1, -1, 29, 15, 30,
- -1, 30, -1, 30, 31, -1, 31, -1, 10, -1,
- 11, -1, 7, -1, 14, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const yytype_uint16 yyrline[] =
-{
- 0, 247, 247, 257, 258, 261, 263, 265, 267, 279,
- 282, 283, 286, 369, 372, 388, 391, 401, 408, 416,
- 420, 427, 434, 456, 459, 462, 472, 480, 488, 491,
- 523, 532, 539
-};
-#endif
-
-#if YYDEBUG || YYERROR_VERBOSE || 0
-/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
- First, the terminals, then, starting at YYNTOKENS, nonterminals. */
-static const char *const yytname[] =
-{
- "$end", "error", "$undefined", "kMASK", "kPREFIX", "kSUFFIX",
- "kSYNONYM", "kID", "kNUMBER", "kPERCPERC", "kBITFIELD", "kCHAR",
- "kSPACE", "'\\n'", "':'", "','", "'0'", "'1'", "$accept", "spec",
- "masks", "mask", "instrs", "instr", "bitfieldopt", "bytes", "byte",
- "bit", "optargs", "args", "arg", "argcomp", YY_NULL
-};
-#endif
-
-# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
-static const yytype_uint16 yytoknum[] =
-{
- 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
- 265, 266, 267, 10, 58, 44, 48, 49
-};
-# endif
-
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 18, 19, 20, 20, 21, 21, 21, 21, 21,
- 22, 22, 23, 23, 24, 24, 25, 25, 26, 26,
- 27, 27, 27, 28, 28, 29, 29, 30, 30, 31,
- 31, 31, 31
-};
-
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
-{
- 0, 2, 4, 3, 1, 3, 2, 2, 3, 0,
- 3, 1, 6, 0, 1, 0, 3, 1, 2, 1,
- 1, 1, 1, 2, 0, 3, 1, 2, 1, 1,
- 1, 1, 1
-};
-
-/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
- Performed when YYTABLE doesn't specify something else to do. Zero
- means the default is an error. */
-static const yytype_uint8 yydefact[] =
-{
- 9, 0, 0, 0, 0, 0, 0, 4, 0, 6,
- 7, 0, 1, 0, 9, 5, 8, 13, 3, 22,
- 20, 21, 2, 11, 0, 17, 19, 13, 15, 0,
- 18, 10, 14, 0, 16, 15, 24, 0, 12, 31,
- 29, 30, 32, 23, 26, 28, 0, 27, 25
-};
-
-/* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int8 yydefgoto[] =
-{
- -1, 5, 6, 7, 22, 23, 33, 24, 25, 26,
- 38, 43, 44, 45
-};
-
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -35
-static const yytype_int8 yypact[] =
-{
- 12, 9, 10, 11, 13, 22, -2, -35, 16, -35,
- -35, 15, -35, 14, 12, -35, -35, -4, -35, -35,
- -35, -35, 17, -35, -12, -4, -35, -4, 18, -4,
- -35, -35, -35, 19, -4, 18, 20, -6, -35, -35,
- -35, -35, -35, 21, -6, -35, -6, -35, -6
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int8 yypgoto[] =
-{
- -35, -35, -35, 23, -35, 2, -1, -35, 4, -25,
- -35, -35, -15, -34
-};
-
-/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule which
- number is the opposite. If YYTABLE_NINF, syntax error. */
-#define YYTABLE_NINF -1
-static const yytype_uint8 yytable[] =
-{
- 30, 39, 28, 29, 40, 41, 19, 13, 42, 30,
- 47, 14, 20, 21, 47, 1, 2, 3, 4, 8,
- 9, 10, 12, 11, 15, 16, 35, 17, 32, 31,
- 27, 48, 37, 34, 36, 0, 46, 18
-};
-
-#define yypact_value_is_default(Yystate) \
- (!!((Yystate) == (-35)))
-
-#define yytable_value_is_error(Yytable_value) \
- YYID (0)
-
-static const yytype_int8 yycheck[] =
-{
- 25, 7, 14, 15, 10, 11, 10, 9, 14, 34,
- 44, 13, 16, 17, 48, 3, 4, 5, 6, 10,
- 10, 10, 0, 10, 8, 10, 7, 13, 10, 27,
- 13, 46, 12, 29, 35, -1, 15, 14
-};
-
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
-static const yytype_uint8 yystos[] =
-{
- 0, 3, 4, 5, 6, 19, 20, 21, 10, 10,
- 10, 10, 0, 9, 13, 8, 10, 13, 21, 10,
- 16, 17, 22, 23, 25, 26, 27, 13, 14, 15,
- 27, 23, 10, 24, 26, 7, 24, 12, 28, 7,
- 10, 11, 14, 29, 30, 31, 15, 31, 30
-};
-
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
-
-
-/* Like YYERROR except do call yyerror. This remains here temporarily
- to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. However,
- YYFAIL appears to be in use. Nevertheless, it is formally deprecated
- in Bison 2.4.2's NEWS entry, where a plan to phase it out is
- discussed. */
-
-#define YYFAIL goto yyerrlab
-#if defined YYFAIL
- /* This is here to suppress warnings from the GCC cpp's
- -Wunused-macros. Normally we don't worry about that warning, but
- some users do, and we want to make it easy for users to remove
- YYFAIL uses, which will produce warnings from Bison 2.5. */
-#endif
-
-#define YYRECOVERING() (!!yyerrstatus)
-
-#define YYBACKUP(Token, Value) \
-do \
- if (yychar == YYEMPTY) \
- { \
- yychar = (Token); \
- yylval = (Value); \
- YYPOPSTACK (yylen); \
- yystate = *yyssp; \
- goto yybackup; \
- } \
- else \
- { \
- yyerror (YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
-while (YYID (0))
-
-/* Error token number */
-#define YYTERROR 1
-#define YYERRCODE 256
-
-
-/* This macro is provided for backward compatibility. */
-#ifndef YY_LOCATION_PRINT
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
-#endif
-
-
-/* YYLEX -- calling `yylex' with the right arguments. */
-#ifdef YYLEX_PARAM
-# define YYLEX yylex (YYLEX_PARAM)
-#else
-# define YYLEX yylex ()
-#endif
-
-/* Enable debugging if requested. */
-#if YYDEBUG
-
-# ifndef YYFPRINTF
-# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
-# define YYFPRINTF fprintf
-# endif
-
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (YYID (0))
-
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yy_symbol_print (stderr, \
- Type, Value); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (YYID (0))
-
-
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
-static void
-yy_symbol_value_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
-#endif
-{
- FILE *yyo = yyoutput;
- YYUSE (yyo);
- if (!yyvaluep)
- return;
-# ifdef YYPRINT
- if (yytype < YYNTOKENS)
- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# else
- YYUSE (yyoutput);
-# endif
- switch (yytype)
- {
- default:
- break;
- }
-}
-
-
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
-static void
-yy_symbol_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
-#endif
-{
- if (yytype < YYNTOKENS)
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
- else
- YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
-
- yy_symbol_value_print (yyoutput, yytype, yyvaluep);
- YYFPRINTF (yyoutput, ")");
-}
-
-/*------------------------------------------------------------------.
-| yy_stack_print -- Print the state stack from its BOTTOM up to its |
-| TOP (included). |
-`------------------------------------------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
-#else
-static void
-yy_stack_print (yybottom, yytop)
- yytype_int16 *yybottom;
- yytype_int16 *yytop;
-#endif
-{
- YYFPRINTF (stderr, "Stack now");
- for (; yybottom <= yytop; yybottom++)
- {
- int yybot = *yybottom;
- YYFPRINTF (stderr, " %d", yybot);
- }
- YYFPRINTF (stderr, "\n");
-}
-
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (YYID (0))
-
-
-/*------------------------------------------------.
-| Report that the YYRULE is going to be reduced. |
-`------------------------------------------------*/
-
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
-#else
-static void
-yy_reduce_print (yyvsp, yyrule)
- YYSTYPE *yyvsp;
- int yyrule;
-#endif
-{
- int yynrhs = yyr2[yyrule];
- int yyi;
- unsigned long int yylno = yyrline[yyrule];
- YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
- yyrule - 1, yylno);
- /* The symbols being reduced. */
- for (yyi = 0; yyi < yynrhs; yyi++)
- {
- YYFPRINTF (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
- &(yyvsp[(yyi + 1) - (yynrhs)])
- );
- YYFPRINTF (stderr, "\n");
- }
-}
-
-# define YY_REDUCE_PRINT(Rule) \
-do { \
- if (yydebug) \
- yy_reduce_print (yyvsp, Rule); \
-} while (YYID (0))
-
-/* Nonzero means print parse trace. It is left uninitialized so that
- multiple parsers can coexist. */
-int yydebug;
-#else /* !YYDEBUG */
-# define YYDPRINTF(Args)
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
-# define YY_STACK_PRINT(Bottom, Top)
-# define YY_REDUCE_PRINT(Rule)
-#endif /* !YYDEBUG */
-
-
-/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
-# define YYINITDEPTH 200
-#endif
-
-/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
- if the built-in stack extension method is used).
-
- Do not make this value too large; the results are undefined if
- YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
- evaluated with infinite-precision integer arithmetic. */
-
-#ifndef YYMAXDEPTH
-# define YYMAXDEPTH 10000
-#endif
-
-
-#if YYERROR_VERBOSE
-
-# ifndef yystrlen
-# if defined __GLIBC__ && defined _STRING_H
-# define yystrlen strlen
-# else
-/* Return the length of YYSTR. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static YYSIZE_T
-yystrlen (const char *yystr)
-#else
-static YYSIZE_T
-yystrlen (yystr)
- const char *yystr;
-#endif
-{
- YYSIZE_T yylen;
- for (yylen = 0; yystr[yylen]; yylen++)
- continue;
- return yylen;
-}
-# endif
-# endif
-
-# ifndef yystpcpy
-# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
-# define yystpcpy stpcpy
-# else
-/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
- YYDEST. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static char *
-yystpcpy (char *yydest, const char *yysrc)
-#else
-static char *
-yystpcpy (yydest, yysrc)
- char *yydest;
- const char *yysrc;
-#endif
-{
- char *yyd = yydest;
- const char *yys = yysrc;
-
- while ((*yyd++ = *yys++) != '\0')
- continue;
-
- return yyd - 1;
-}
-# endif
-# endif
-
-# ifndef yytnamerr
-/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
- quotes and backslashes, so that it's suitable for yyerror. The
- heuristic is that double-quoting is unnecessary unless the string
- contains an apostrophe, a comma, or backslash (other than
- backslash-backslash). YYSTR is taken from yytname. If YYRES is
- null, do not copy; instead, return the length of what the result
- would have been. */
-static YYSIZE_T
-yytnamerr (char *yyres, const char *yystr)
-{
- if (*yystr == '"')
- {
- YYSIZE_T yyn = 0;
- char const *yyp = yystr;
-
- for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- /* Fall through. */
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
- do_not_strip_quotes: ;
- }
-
- if (! yyres)
- return yystrlen (yystr);
-
- return yystpcpy (yyres, yystr) - yyres;
-}
-# endif
-
-/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
- about the unexpected token YYTOKEN for the state stack whose top is
- YYSSP.
-
- Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
- not large enough to hold the message. In that case, also set
- *YYMSG_ALLOC to the required number of bytes. Return 2 if the
- required number of bytes is too large to store. */
-static int
-yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
- yytype_int16 *yyssp, int yytoken)
-{
- YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
- YYSIZE_T yysize = yysize0;
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
- /* Internationalized format string. */
- const char *yyformat = YY_NULL;
- /* Arguments of yyformat. */
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
- /* Number of reported tokens (one for the "unexpected", one per
- "expected"). */
- int yycount = 0;
-
- /* There are many possibilities here to consider:
- - Assume YYFAIL is not used. It's too flawed to consider. See
- <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
- for details. YYERROR is fine as it does not invoke this
- function.
- - If this state is a consistent state with a default action, then
- the only way this function was invoked is if the default action
- is an error action. In that case, don't check for expected
- tokens because there are none.
- - The only way there can be no lookahead present (in yychar) is if
- this state is a consistent state with a default action. Thus,
- detecting the absence of a lookahead is sufficient to determine
- that there is no unexpected or expected token to report. In that
- case, just report a simple "syntax error".
- - Don't assume there isn't a lookahead just because this state is a
- consistent state with a default action. There might have been a
- previous inconsistent state, consistent state with a non-default
- action, or user semantic action that manipulated yychar.
- - Of course, the expected token list depends on states to have
- correct lookahead information, and it depends on the parser not
- to perform extra reductions after fetching a lookahead from the
- scanner and before detecting a syntax error. Thus, state merging
- (from LALR or IELR) and default reductions corrupt the expected
- token list. However, the list is correct for canonical LR with
- one exception: it will still contain any token that will not be
- accepted due to an error action in a later state.
- */
- if (yytoken != YYEMPTY)
- {
- int yyn = yypact[*yyssp];
- yyarg[yycount++] = yytname[yytoken];
- if (!yypact_value_is_default (yyn))
- {
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. In other words, skip the first -YYN actions for
- this state because they are default actions. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
- /* Stay within bounds of both yycheck and yytname. */
- int yychecklim = YYLAST - yyn + 1;
- int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
- int yyx;
-
- for (yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
- && !yytable_value_is_error (yytable[yyx + yyn]))
- {
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
- {
- yycount = 1;
- yysize = yysize0;
- break;
- }
- yyarg[yycount++] = yytname[yyx];
- {
- YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
- if (! (yysize <= yysize1
- && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
- return 2;
- yysize = yysize1;
- }
- }
- }
- }
-
- switch (yycount)
- {
-# define YYCASE_(N, S) \
- case N: \
- yyformat = S; \
- break
- YYCASE_(0, YY_("syntax error"));
- YYCASE_(1, YY_("syntax error, unexpected %s"));
- YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
- YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
- YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
- YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
-# undef YYCASE_
- }
-
- {
- YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
- if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
- return 2;
- yysize = yysize1;
- }
-
- if (*yymsg_alloc < yysize)
- {
- *yymsg_alloc = 2 * yysize;
- if (! (yysize <= *yymsg_alloc
- && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
- *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
- return 1;
- }
-
- /* Avoid sprintf, as that infringes on the user's name space.
- Don't have undefined behavior even if the translation
- produced a string with the wrong number of "%s"s. */
- {
- char *yyp = *yymsg;
- int yyi = 0;
- while ((*yyp = *yyformat) != '\0')
- if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
- {
- yyp += yytnamerr (yyp, yyarg[yyi++]);
- yyformat += 2;
- }
- else
- {
- yyp++;
- yyformat++;
- }
- }
- return 0;
-}
-#endif /* YYERROR_VERBOSE */
-
-/*-----------------------------------------------.
-| Release the memory associated to this symbol. |
-`-----------------------------------------------*/
-
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
-#else
-static void
-yydestruct (yymsg, yytype, yyvaluep)
- const char *yymsg;
- int yytype;
- YYSTYPE *yyvaluep;
-#endif
-{
- YYUSE (yyvaluep);
-
- if (!yymsg)
- yymsg = "Deleting";
- YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
-
- switch (yytype)
- {
-
- default:
- break;
- }
-}
-
-
-
-
-/* The lookahead symbol. */
-int yychar;
-
-
-#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-# define YY_IGNORE_MAYBE_UNINITIALIZED_END
-#endif
-#ifndef YY_INITIAL_VALUE
-# define YY_INITIAL_VALUE(Value) /* Nothing. */
-#endif
-
-/* The semantic value of the lookahead symbol. */
-YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
-
-/* Number of syntax errors so far. */
-int yynerrs;
-
-
-/*----------.
-| yyparse. |
-`----------*/
-
-#ifdef YYPARSE_PARAM
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void *YYPARSE_PARAM)
-#else
-int
-yyparse (YYPARSE_PARAM)
- void *YYPARSE_PARAM;
-#endif
-#else /* ! YYPARSE_PARAM */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void)
-#else
-int
-yyparse ()
-
-#endif
-#endif
-{
- int yystate;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
-
- /* The stacks and their tools:
- `yyss': related to states.
- `yyvs': related to semantic values.
-
- Refer to the stacks through separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
-
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss;
- yytype_int16 *yyssp;
-
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs;
- YYSTYPE *yyvsp;
-
- YYSIZE_T yystacksize;
-
- int yyn;
- int yyresult;
- /* Lookahead token as an internal (translated) token number. */
- int yytoken = 0;
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
-
-#if YYERROR_VERBOSE
- /* Buffer for error messages, and its allocated size. */
- char yymsgbuf[128];
- char *yymsg = yymsgbuf;
- YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
-
-#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
-
- /* The number of symbols on the RHS of the reduced rule.
- Keep to zero when no symbol should be popped. */
- int yylen = 0;
-
- yyssp = yyss = yyssa;
- yyvsp = yyvs = yyvsa;
- yystacksize = YYINITDEPTH;
-
- YYDPRINTF ((stderr, "Starting parse\n"));
-
- yystate = 0;
- yyerrstatus = 0;
- yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
- goto yysetstate;
-
-/*------------------------------------------------------------.
-| yynewstate -- Push a new state, which is found in yystate. |
-`------------------------------------------------------------*/
- yynewstate:
- /* In all cases, when you get here, the value and location stacks
- have just been pushed. So pushing a state here evens the stacks. */
- yyssp++;
-
- yysetstate:
- *yyssp = yystate;
-
- if (yyss + yystacksize - 1 <= yyssp)
- {
- /* Get the current used size of the three stacks, in elements. */
- YYSIZE_T yysize = yyssp - yyss + 1;
-
-#ifdef yyoverflow
- {
- /* Give user a chance to reallocate the stack. Use copies of
- these so that the &'s don't force the real ones into
- memory. */
- YYSTYPE *yyvs1 = yyvs;
- yytype_int16 *yyss1 = yyss;
-
- /* Each stack pointer address is followed by the size of the
- data in use in that stack, in bytes. This used to be a
- conditional around just the two extra args, but that might
- be undefined if yyoverflow is a macro. */
- yyoverflow (YY_("memory exhausted"),
- &yyss1, yysize * sizeof (*yyssp),
- &yyvs1, yysize * sizeof (*yyvsp),
- &yystacksize);
-
- yyss = yyss1;
- yyvs = yyvs1;
- }
-#else /* no yyoverflow */
-# ifndef YYSTACK_RELOCATE
- goto yyexhaustedlab;
-# else
- /* Extend the stack our own way. */
- if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
- yystacksize *= 2;
- if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
-
- {
- yytype_int16 *yyss1 = yyss;
- union yyalloc *yyptr =
- (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
- if (! yyptr)
- goto yyexhaustedlab;
- YYSTACK_RELOCATE (yyss_alloc, yyss);
- YYSTACK_RELOCATE (yyvs_alloc, yyvs);
-# undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE (yyss1);
- }
-# endif
-#endif /* no yyoverflow */
-
- yyssp = yyss + yysize - 1;
- yyvsp = yyvs + yysize - 1;
-
- YYDPRINTF ((stderr, "Stack size increased to %lu\n",
- (unsigned long int) yystacksize));
-
- if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
- }
-
- YYDPRINTF ((stderr, "Entering state %d\n", yystate));
-
- if (yystate == YYFINAL)
- YYACCEPT;
-
- goto yybackup;
-
-/*-----------.
-| yybackup. |
-`-----------*/
-yybackup:
-
- /* Do appropriate processing given the current state. Read a
- lookahead token if we need one and don't already have one. */
-
- /* First try to decide what to do without reference to lookahead token. */
- yyn = yypact[yystate];
- if (yypact_value_is_default (yyn))
- goto yydefault;
-
- /* Not known => get a lookahead token if don't already have one. */
-
- /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
- if (yychar == YYEMPTY)
- {
- YYDPRINTF ((stderr, "Reading a token: "));
- yychar = YYLEX;
- }
-
- if (yychar <= YYEOF)
- {
- yychar = yytoken = YYEOF;
- YYDPRINTF ((stderr, "Now at end of input.\n"));
- }
- else
- {
- yytoken = YYTRANSLATE (yychar);
- YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
- }
-
- /* If the proper action on seeing token YYTOKEN is to reduce or to
- detect an error, take that action. */
- yyn += yytoken;
- if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
- goto yydefault;
- yyn = yytable[yyn];
- if (yyn <= 0)
- {
- if (yytable_value_is_error (yyn))
- goto yyerrlab;
- yyn = -yyn;
- goto yyreduce;
- }
-
- /* Count tokens shifted since error; after three, turn off error
- status. */
- if (yyerrstatus)
- yyerrstatus--;
-
- /* Shift the lookahead token. */
- YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
-
- /* Discard the shifted token. */
- yychar = YYEMPTY;
-
- yystate = yyn;
- YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
- *++yyvsp = yylval;
- YY_IGNORE_MAYBE_UNINITIALIZED_END
-
- goto yynewstate;
-
-
-/*-----------------------------------------------------------.
-| yydefault -- do the default action for the current state. |
-`-----------------------------------------------------------*/
-yydefault:
- yyn = yydefact[yystate];
- if (yyn == 0)
- goto yyerrlab;
- goto yyreduce;
-
-
-/*-----------------------------.
-| yyreduce -- Do a reduction. |
-`-----------------------------*/
-yyreduce:
- /* yyn is the number of a rule to reduce with. */
- yylen = yyr2[yyn];
-
- /* If YYLEN is nonzero, implement the default value of the action:
- `$$ = $1'.
-
- Otherwise, the following line sets YYVAL to garbage.
- This behavior is undocumented and Bison
- users should not rely upon it. Assigning to YYVAL
- unconditionally makes the parser a bit smaller, and it avoids a
- GCC warning that YYVAL may be used uninitialized. */
- yyval = yyvsp[1-yylen];
-
-
- YY_REDUCE_PRINT (yyn);
- switch (yyn)
- {
- case 2:
-/* Line 1792 of yacc.c */
-#line 248 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- if (error_message_count != 0)
- error (EXIT_FAILURE, 0,
- "terminated due to previous error");
-
- instrtable_out ();
- }
- break;
-
- case 5:
-/* Line 1792 of yacc.c */
-#line 262 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- { new_bitfield ((yyvsp[(2) - (3)].str), (yyvsp[(3) - (3)].num)); }
- break;
-
- case 6:
-/* Line 1792 of yacc.c */
-#line 264 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- { new_bitfield ((yyvsp[(2) - (2)].str), -1); }
- break;
-
- case 7:
-/* Line 1792 of yacc.c */
-#line 266 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- { new_bitfield ((yyvsp[(2) - (2)].str), -2); }
- break;
-
- case 8:
-/* Line 1792 of yacc.c */
-#line 268 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- struct synonym *newp = xmalloc (sizeof (*newp));
- newp->from = (yyvsp[(2) - (3)].str);
- newp->to = (yyvsp[(3) - (3)].str);
- if (tfind (newp, &synonyms, compare_syn) != NULL)
- error (0, 0,
- "%d: duplicate definition for synonym '%s'",
- i386_lineno, (yyvsp[(2) - (3)].str));
- else if (tsearch ( newp, &synonyms, compare_syn) == NULL)
- error (EXIT_FAILURE, 0, "tsearch");
- }
- break;
-
- case 12:
-/* Line 1792 of yacc.c */
-#line 287 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- if ((yyvsp[(3) - (6)].field) != NULL && strcmp ((yyvsp[(3) - (6)].field)->name, "RE") != 0
- && strcmp ((yyvsp[(3) - (6)].field)->name, "R") != 0)
- {
- error (0, 0, "%d: only 'R' and 'RE' prefix allowed",
- i386_lineno - 1);
- }
- if (check_duplicates ((yyvsp[(1) - (6)].bit)) == 0
- && check_argsdef ((yyvsp[(1) - (6)].bit), (yyvsp[(6) - (6)].arg)) == 0
- && check_bitsused ((yyvsp[(1) - (6)].bit), (yyvsp[(5) - (6)].field), (yyvsp[(6) - (6)].arg)) == 0)
- {
- struct instruction *newp = xcalloc (sizeof (*newp),
- 1);
- if ((yyvsp[(3) - (6)].field) != NULL)
- {
- if (strcmp ((yyvsp[(3) - (6)].field)->name, "RE") == 0)
- newp->repe = 1;
- else if (strcmp ((yyvsp[(3) - (6)].field)->name, "R") == 0)
- newp->rep = 1;
- }
-
- newp->bytes = (yyvsp[(1) - (6)].bit);
- newp->mnemonic = (yyvsp[(4) - (6)].str);
- if (newp->mnemonic != (void *) -1l
- && tfind ((yyvsp[(4) - (6)].str), &mnemonics,
- (comparison_fn_t) strcmp) == NULL)
- {
- if (tsearch ((yyvsp[(4) - (6)].str), &mnemonics,
- (comparison_fn_t) strcmp) == NULL)
- error (EXIT_FAILURE, errno, "tsearch");
- ++nmnemonics;
- }
-
- if ((yyvsp[(5) - (6)].field) != NULL)
- {
- if (strcmp ((yyvsp[(5) - (6)].field)->name, "w") == 0)
- newp->suffix = suffix_w;
- else if (strcmp ((yyvsp[(5) - (6)].field)->name, "w0") == 0)
- newp->suffix = suffix_w0;
- else if (strcmp ((yyvsp[(5) - (6)].field)->name, "tttn") == 0)
- newp->suffix = suffix_tttn;
- else if (strcmp ((yyvsp[(5) - (6)].field)->name, "w1") == 0)
- newp->suffix = suffix_w1;
- else if (strcmp ((yyvsp[(5) - (6)].field)->name, "W") == 0)
- newp->suffix = suffix_W;
- else if (strcmp ((yyvsp[(5) - (6)].field)->name, "W1") == 0)
- newp->suffix = suffix_W1;
- else if (strcmp ((yyvsp[(5) - (6)].field)->name, "D") == 0)
- newp->suffix = suffix_D;
- else
- error (EXIT_FAILURE, 0,
- "%s: %d: unknown suffix '%s'",
- infname, i386_lineno - 1, (yyvsp[(5) - (6)].field)->name);
-
- struct suffix search = { .name = (yyvsp[(5) - (6)].field)->name };
- if (tfind (&search, &suffixes, compare_suf)
- == NULL)
- {
- struct suffix *ns = xmalloc (sizeof (*ns));
- ns->name = (yyvsp[(5) - (6)].field)->name;
- ns->idx = ++nsuffixes;
- if (tsearch (ns, &suffixes, compare_suf)
- == NULL)
- error (EXIT_FAILURE, errno, "tsearch");
- }
- }
-
- struct argument *args = (yyvsp[(6) - (6)].arg);
- int n = 0;
- while (args != NULL)
- {
- fillin_arg ((yyvsp[(1) - (6)].bit), args->name, newp, n);
-
- args = args->next;
- ++n;
- }
-
- newp->next = instructions;
- instructions = newp;
- ++ninstructions;
- }
- }
- break;
-
- case 14:
-/* Line 1792 of yacc.c */
-#line 373 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- struct known_bitfield search;
- search.name = (yyvsp[(1) - (1)].str);
- struct known_bitfield **res;
- res = tfind (&search, &bitfields, bitfield_compare);
- if (res == NULL)
- {
- error (0, 0, "%d: unknown bitfield '%s'",
- i386_lineno, search.name);
- (yyval.field) = NULL;
- }
- else
- (yyval.field) = *res;
- }
- break;
-
- case 15:
-/* Line 1792 of yacc.c */
-#line 388 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- { (yyval.field) = NULL; }
- break;
-
- case 16:
-/* Line 1792 of yacc.c */
-#line 392 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- check_bits ((yyvsp[(3) - (3)].bit));
-
- struct bitvalue *runp = (yyvsp[(1) - (3)].bit);
- while (runp->next != NULL)
- runp = runp->next;
- runp->next = (yyvsp[(3) - (3)].bit);
- (yyval.bit) = (yyvsp[(1) - (3)].bit);
- }
- break;
-
- case 17:
-/* Line 1792 of yacc.c */
-#line 402 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- check_bits ((yyvsp[(1) - (1)].bit));
- (yyval.bit) = (yyvsp[(1) - (1)].bit);
- }
- break;
-
- case 18:
-/* Line 1792 of yacc.c */
-#line 409 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- struct bitvalue *runp = (yyvsp[(1) - (2)].bit);
- while (runp->next != NULL)
- runp = runp->next;
- runp->next = (yyvsp[(2) - (2)].bit);
- (yyval.bit) = (yyvsp[(1) - (2)].bit);
- }
- break;
-
- case 19:
-/* Line 1792 of yacc.c */
-#line 417 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- { (yyval.bit) = (yyvsp[(1) - (1)].bit); }
- break;
-
- case 20:
-/* Line 1792 of yacc.c */
-#line 421 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- (yyval.bit) = xmalloc (sizeof (struct bitvalue));
- (yyval.bit)->type = zeroone;
- (yyval.bit)->value = 0;
- (yyval.bit)->next = NULL;
- }
- break;
-
- case 21:
-/* Line 1792 of yacc.c */
-#line 428 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- (yyval.bit) = xmalloc (sizeof (struct bitvalue));
- (yyval.bit)->type = zeroone;
- (yyval.bit)->value = 1;
- (yyval.bit)->next = NULL;
- }
- break;
-
- case 22:
-/* Line 1792 of yacc.c */
-#line 435 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- (yyval.bit) = xmalloc (sizeof (struct bitvalue));
- struct known_bitfield search;
- search.name = (yyvsp[(1) - (1)].str);
- struct known_bitfield **res;
- res = tfind (&search, &bitfields, bitfield_compare);
- if (res == NULL)
- {
- error (0, 0, "%d: unknown bitfield '%s'",
- i386_lineno, search.name);
- (yyval.bit)->type = failure;
- }
- else
- {
- (yyval.bit)->type = field;
- (yyval.bit)->field = *res;
- }
- (yyval.bit)->next = NULL;
- }
- break;
-
- case 23:
-/* Line 1792 of yacc.c */
-#line 457 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- { (yyval.arg) = (yyvsp[(2) - (2)].arg); }
- break;
-
- case 24:
-/* Line 1792 of yacc.c */
-#line 459 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- { (yyval.arg) = NULL; }
- break;
-
- case 25:
-/* Line 1792 of yacc.c */
-#line 463 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- struct argument *runp = (yyvsp[(1) - (3)].arg);
- while (runp->next != NULL)
- runp = runp->next;
- runp->next = xmalloc (sizeof (struct argument));
- runp->next->name = combine ((yyvsp[(3) - (3)].name));
- runp->next->next = NULL;
- (yyval.arg) = (yyvsp[(1) - (3)].arg);
- }
- break;
-
- case 26:
-/* Line 1792 of yacc.c */
-#line 473 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- (yyval.arg) = xmalloc (sizeof (struct argument));
- (yyval.arg)->name = combine ((yyvsp[(1) - (1)].name));
- (yyval.arg)->next = NULL;
- }
- break;
-
- case 27:
-/* Line 1792 of yacc.c */
-#line 481 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- struct argname *runp = (yyvsp[(1) - (2)].name);
- while (runp->next != NULL)
- runp = runp->next;
- runp->next = (yyvsp[(2) - (2)].name);
- (yyval.name) = (yyvsp[(1) - (2)].name);
- }
- break;
-
- case 28:
-/* Line 1792 of yacc.c */
-#line 489 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- { (yyval.name) = (yyvsp[(1) - (1)].name); }
- break;
-
- case 29:
-/* Line 1792 of yacc.c */
-#line 492 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- (yyval.name) = xmalloc (sizeof (struct argname));
- (yyval.name)->type = nfield;
- (yyval.name)->next = NULL;
-
- struct known_bitfield search;
- search.name = (yyvsp[(1) - (1)].str);
- struct known_bitfield **res;
- res = tfind (&search, &bitfields, bitfield_compare);
- if (res == NULL)
- {
- if (strcmp ((yyvsp[(1) - (1)].str), "ax") == 0)
- (yyval.name)->field = &ax_reg;
- else if (strcmp ((yyvsp[(1) - (1)].str), "dx") == 0)
- (yyval.name)->field = &dx_reg;
- else if (strcmp ((yyvsp[(1) - (1)].str), "es_di") == 0)
- (yyval.name)->field = &di_reg;
- else if (strcmp ((yyvsp[(1) - (1)].str), "ds_si") == 0)
- (yyval.name)->field = &si_reg;
- else if (strcmp ((yyvsp[(1) - (1)].str), "ds_bx") == 0)
- (yyval.name)->field = &bx_reg;
- else
- {
- error (0, 0, "%d: unknown bitfield '%s'",
- i386_lineno, search.name);
- (yyval.name)->field = NULL;
- }
- }
- else
- (yyval.name)->field = *res;
- }
- break;
-
- case 30:
-/* Line 1792 of yacc.c */
-#line 524 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- (yyval.name) = xmalloc (sizeof (struct argname));
- (yyval.name)->type = string;
- (yyval.name)->next = NULL;
- (yyval.name)->str = xmalloc (2);
- (yyval.name)->str[0] = (yyvsp[(1) - (1)].ch);
- (yyval.name)->str[1] = '\0';
- }
- break;
-
- case 31:
-/* Line 1792 of yacc.c */
-#line 533 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- (yyval.name) = xmalloc (sizeof (struct argname));
- (yyval.name)->type = string;
- (yyval.name)->next = NULL;
- (yyval.name)->str = (yyvsp[(1) - (1)].str);
- }
- break;
-
- case 32:
-/* Line 1792 of yacc.c */
-#line 540 "/home/mark/src/elfutils/libcpu/i386_parse.y"
- {
- (yyval.name) = xmalloc (sizeof (struct argname));
- (yyval.name)->type = string;
- (yyval.name)->next = NULL;
- (yyval.name)->str = xmalloc (2);
- (yyval.name)->str[0] = ':';
- (yyval.name)->str[1] = '\0';
- }
- break;
-
-
-/* Line 1792 of yacc.c */
-#line 1989 "i386_parse.c"
- default: break;
- }
- /* User semantic actions sometimes alter yychar, and that requires
- that yytoken be updated with the new translation. We take the
- approach of translating immediately before every use of yytoken.
- One alternative is translating here after every semantic action,
- but that translation would be missed if the semantic action invokes
- YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
- if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
- incorrect destructor might then be invoked immediately. In the
- case of YYERROR or YYBACKUP, subsequent parser actions might lead
- to an incorrect destructor call or verbose syntax error message
- before the lookahead is translated. */
- YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
-
- YYPOPSTACK (yylen);
- yylen = 0;
- YY_STACK_PRINT (yyss, yyssp);
-
- *++yyvsp = yyval;
-
- /* Now `shift' the result of the reduction. Determine what state
- that goes to, based on the state we popped back to and the rule
- number reduced by. */
-
- yyn = yyr1[yyn];
-
- yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
- if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
- yystate = yytable[yystate];
- else
- yystate = yydefgoto[yyn - YYNTOKENS];
-
- goto yynewstate;
-
-
-/*------------------------------------.
-| yyerrlab -- here on detecting error |
-`------------------------------------*/
-yyerrlab:
- /* Make sure we have latest lookahead translation. See comments at
- user semantic actions for why this is necessary. */
- yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
-
- /* If not already recovering from an error, report this error. */
- if (!yyerrstatus)
- {
- ++yynerrs;
-#if ! YYERROR_VERBOSE
- yyerror (YY_("syntax error"));
-#else
-# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
- yyssp, yytoken)
- {
- char const *yymsgp = YY_("syntax error");
- int yysyntax_error_status;
- yysyntax_error_status = YYSYNTAX_ERROR;
- if (yysyntax_error_status == 0)
- yymsgp = yymsg;
- else if (yysyntax_error_status == 1)
- {
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
- yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
- if (!yymsg)
- {
- yymsg = yymsgbuf;
- yymsg_alloc = sizeof yymsgbuf;
- yysyntax_error_status = 2;
- }
- else
- {
- yysyntax_error_status = YYSYNTAX_ERROR;
- yymsgp = yymsg;
- }
- }
- yyerror (yymsgp);
- if (yysyntax_error_status == 2)
- goto yyexhaustedlab;
- }
-# undef YYSYNTAX_ERROR
-#endif
- }
-
-
-
- if (yyerrstatus == 3)
- {
- /* If just tried and failed to reuse lookahead token after an
- error, discard it. */
-
- if (yychar <= YYEOF)
- {
- /* Return failure if at end of input. */
- if (yychar == YYEOF)
- YYABORT;
- }
- else
- {
- yydestruct ("Error: discarding",
- yytoken, &yylval);
- yychar = YYEMPTY;
- }
- }
-
- /* Else will try to reuse lookahead token after shifting the error
- token. */
- goto yyerrlab1;
-
-
-/*---------------------------------------------------.
-| yyerrorlab -- error raised explicitly by YYERROR. |
-`---------------------------------------------------*/
-yyerrorlab:
-
- /* Pacify compilers like GCC when the user code never invokes
- YYERROR and the label yyerrorlab therefore never appears in user
- code. */
- if (/*CONSTCOND*/ 0)
- goto yyerrorlab;
-
- /* Do not reclaim the symbols of the rule which action triggered
- this YYERROR. */
- YYPOPSTACK (yylen);
- yylen = 0;
- YY_STACK_PRINT (yyss, yyssp);
- yystate = *yyssp;
- goto yyerrlab1;
-
-
-/*-------------------------------------------------------------.
-| yyerrlab1 -- common code for both syntax error and YYERROR. |
-`-------------------------------------------------------------*/
-yyerrlab1:
- yyerrstatus = 3; /* Each real token shifted decrements this. */
-
- for (;;)
- {
- yyn = yypact[yystate];
- if (!yypact_value_is_default (yyn))
- {
- yyn += YYTERROR;
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
- {
- yyn = yytable[yyn];
- if (0 < yyn)
- break;
- }
- }
-
- /* Pop the current state because it cannot handle the error token. */
- if (yyssp == yyss)
- YYABORT;
-
-
- yydestruct ("Error: popping",
- yystos[yystate], yyvsp);
- YYPOPSTACK (1);
- yystate = *yyssp;
- YY_STACK_PRINT (yyss, yyssp);
- }
-
- YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
- *++yyvsp = yylval;
- YY_IGNORE_MAYBE_UNINITIALIZED_END
-
-
- /* Shift the error token. */
- YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
-
- yystate = yyn;
- goto yynewstate;
-
-
-/*-------------------------------------.
-| yyacceptlab -- YYACCEPT comes here. |
-`-------------------------------------*/
-yyacceptlab:
- yyresult = 0;
- goto yyreturn;
-
-/*-----------------------------------.
-| yyabortlab -- YYABORT comes here. |
-`-----------------------------------*/
-yyabortlab:
- yyresult = 1;
- goto yyreturn;
-
-#if !defined yyoverflow || YYERROR_VERBOSE
-/*-------------------------------------------------.
-| yyexhaustedlab -- memory exhaustion comes here. |
-`-------------------------------------------------*/
-yyexhaustedlab:
- yyerror (YY_("memory exhausted"));
- yyresult = 2;
- /* Fall through. */
-#endif
-
-yyreturn:
- if (yychar != YYEMPTY)
- {
- /* Make sure we have latest lookahead translation. See comments at
- user semantic actions for why this is necessary. */
- yytoken = YYTRANSLATE (yychar);
- yydestruct ("Cleanup: discarding lookahead",
- yytoken, &yylval);
- }
- /* Do not reclaim the symbols of the rule which action triggered
- this YYABORT or YYACCEPT. */
- YYPOPSTACK (yylen);
- YY_STACK_PRINT (yyss, yyssp);
- while (yyssp != yyss)
- {
- yydestruct ("Cleanup: popping",
- yystos[*yyssp], yyvsp);
- YYPOPSTACK (1);
- }
-#ifndef yyoverflow
- if (yyss != yyssa)
- YYSTACK_FREE (yyss);
-#endif
-#if YYERROR_VERBOSE
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
-#endif
- /* Make sure YYID is used. */
- return YYID (yyresult);
-}
-
-
-/* Line 2055 of yacc.c */
-#line 550 "/home/mark/src/elfutils/libcpu/i386_parse.y"
-
-
-static void
-yyerror (const char *s)
-{
- error (0, 0, gettext ("while reading i386 CPU description: %s at line %d"),
- gettext (s), i386_lineno);
-}
-
-
-static int
-bitfield_compare (const void *p1, const void *p2)
-{
- struct known_bitfield *f1 = (struct known_bitfield *) p1;
- struct known_bitfield *f2 = (struct known_bitfield *) p2;
-
- return strcmp (f1->name, f2->name);
-}
-
-
-static void
-new_bitfield (char *name, unsigned long int num)
-{
- struct known_bitfield *newp = xmalloc (sizeof (struct known_bitfield));
- newp->name = name;
- newp->bits = num;
- newp->tmp = 0;
-
- if (tfind (newp, &bitfields, bitfield_compare) != NULL)
- {
- error (0, 0, "%d: duplicated definition of bitfield '%s'",
- i386_lineno, name);
- free (name);
- return;
- }
-
- if (tsearch (newp, &bitfields, bitfield_compare) == NULL)
- error (EXIT_FAILURE, errno, "%d: cannot insert new bitfield '%s'",
- i386_lineno, name);
-}
-
-
-/* Check that the number of bits is a multiple of 8. */
-static void
-check_bits (struct bitvalue *val)
-{
- struct bitvalue *runp = val;
- unsigned int total = 0;
-
- while (runp != NULL)
- {
- if (runp->type == zeroone)
- ++total;
- else if (runp->field == NULL)
- /* No sense doing anything, the field is not known. */
- return;
- else
- total += runp->field->bits;
-
- runp = runp->next;
- }
-
- if (total % 8 != 0)
- {
- struct obstack os;
- obstack_init (&os);
-
- while (val != NULL)
- {
- if (val->type == zeroone)
- obstack_printf (&os, "%u", val->value);
- else
- obstack_printf (&os, "{%s}", val->field->name);
- val = val->next;
- }
- obstack_1grow (&os, '\0');
-
- error (0, 0, "%d: field '%s' not a multiple of 8 bits in size",
- i386_lineno, (char *) obstack_finish (&os));
-
- obstack_free (&os, NULL);
- }
-}
-
-
-static int
-check_duplicates (struct bitvalue *val)
-{
- static int testcnt;
- ++testcnt;
-
- int result = 0;
- while (val != NULL)
- {
- if (val->type == field && val->field != NULL)
- {
- if (val->field->tmp == testcnt)
- {
- error (0, 0, "%d: bitfield '%s' used more than once",
- i386_lineno - 1, val->field->name);
- result = 1;
- }
- val->field->tmp = testcnt;
- }
-
- val = val->next;
- }
-
- return result;
-}
-
-
-static int
-check_argsdef (struct bitvalue *bitval, struct argument *args)
-{
- int result = 0;
-
- while (args != NULL)
- {
- for (struct argname *name = args->name; name != NULL; name = name->next)
- if (name->type == nfield && name->field != NULL
- && name->field != &ax_reg && name->field != &dx_reg
- && name->field != &di_reg && name->field != &si_reg
- && name->field != &bx_reg)
- {
- struct bitvalue *runp = bitval;
-
- while (runp != NULL)
- if (runp->type == field && runp->field == name->field)
- break;
- else
- runp = runp->next;
-
- if (runp == NULL)
- {
- error (0, 0, "%d: unknown bitfield '%s' used in output format",
- i386_lineno - 1, name->field->name);
- result = 1;
- }
- }
-
- args = args->next;
- }
-
- return result;
-}
-
-
-static int
-check_bitsused (struct bitvalue *bitval, struct known_bitfield *suffix,
- struct argument *args)
-{
- int result = 0;
-
- while (bitval != NULL)
- {
- if (bitval->type == field && bitval->field != NULL
- && bitval->field != suffix
- /* {w} is handled special. */
- && strcmp (bitval->field->name, "w") != 0)
- {
- struct argument *runp;
- for (runp = args; runp != NULL; runp = runp->next)
- {
- struct argname *name = runp->name;
-
- while (name != NULL)
- if (name->type == nfield && name->field == bitval->field)
- break;
- else
- name = name->next;
-
- if (name != NULL)
- break;
- }
-
-#if 0
- if (runp == NULL)
- {
- error (0, 0, "%d: bitfield '%s' not used",
- i386_lineno - 1, bitval->field->name);
- result = 1;
- }
-#endif
- }
-
- bitval = bitval->next;
- }
-
- return result;
-}
-
-
-static struct argname *
-combine (struct argname *name)
-{
- struct argname *last_str = NULL;
- for (struct argname *runp = name; runp != NULL; runp = runp->next)
- {
- if (runp->type == string)
- {
- if (last_str == NULL)
- last_str = runp;
- else
- {
- last_str->str = xrealloc (last_str->str,
- strlen (last_str->str)
- + strlen (runp->str) + 1);
- strcat (last_str->str, runp->str);
- last_str->next = runp->next;
- }
- }
- else
- last_str = NULL;
- }
- return name;
-}
-
-
-#define obstack_grow_str(ob, str) obstack_grow (ob, str, strlen (str))
-
-
-static void
-fillin_arg (struct bitvalue *bytes, struct argname *name,
- struct instruction *instr, int n)
-{
- static struct obstack ob;
- static int initialized;
- if (! initialized)
- {
- initialized = 1;
- obstack_init (&ob);
- }
-
- struct argname *runp = name;
- int cnt = 0;
- while (runp != NULL)
- {
- /* We ignore strings in the function name. */
- if (runp->type == string)
- {
- if (instr->operands[n].str != NULL)
- error (EXIT_FAILURE, 0,
- "%d: cannot have more than one string parameter",
- i386_lineno - 1);
-
- instr->operands[n].str = runp->str;
- }
- else
- {
- assert (runp->type == nfield);
-
- /* Construct the function name. */
- if (cnt++ > 0)
- obstack_1grow (&ob, '$');
-
- if (runp->field == NULL)
- /* Add some string which contains invalid characters. */
- obstack_grow_str (&ob, "!!!INVALID!!!");
- else
- {
- char *fieldname = runp->field->name;
-
- struct synonym search = { .from = fieldname };
-
- struct synonym **res = tfind (&search, &synonyms, compare_syn);
- if (res != NULL)
- fieldname = (*res)->to;
-
- obstack_grow_str (&ob, fieldname);
- }
-
- /* Now compute the bit offset of the field. */
- struct bitvalue *b = bytes;
- int bitoff = 0;
- if (runp->field != NULL)
- while (b != NULL)
- {
- if (b->type == field && b->field != NULL)
- {
- if (strcmp (b->field->name, runp->field->name) == 0)
- break;
- bitoff += b->field->bits;
- }
- else
- ++bitoff;
-
- b = b->next;
- }
- if (instr->operands[n].off1 == 0)
- instr->operands[n].off1 = bitoff;
- else if (instr->operands[n].off2 == 0)
- instr->operands[n].off2 = bitoff;
- else if (instr->operands[n].off3 == 0)
- instr->operands[n].off3 = bitoff;
- else
- error (EXIT_FAILURE, 0,
- "%d: cannot have more than three fields in parameter",
- i386_lineno - 1);
-
- if (runp->field != NULL
- && strncasecmp (runp->field->name, "mod", 3) == 0)
- instr->modrm = 1;
- }
-
- runp = runp->next;
- }
- if (obstack_object_size (&ob) == 0)
- obstack_grow_str (&ob, "string");
- obstack_1grow (&ob, '\0');
- char *fct = obstack_finish (&ob);
-
- instr->operands[n].fct = fct;
-}
-
-
-#if 0
-static void
-nameout (const void *nodep, VISIT value, int level)
-{
- if (value == leaf || value == postorder)
- printf (" %s\n", *(const char **) nodep);
-}
-#endif
-
-
-static int
-compare_argstring (const void *p1, const void *p2)
-{
- const struct argstring *a1 = (const struct argstring *) p1;
- const struct argstring *a2 = (const struct argstring *) p2;
-
- return strcmp (a1->str, a2->str);
-}
-
-
-static int maxoff[3][3];
-static int minoff[3][3] = { { 1000, 1000, 1000 },
- { 1000, 1000, 1000 },
- { 1000, 1000, 1000 } };
-static int nbitoff[3][3];
-static void *fct_names[3];
-static int nbitfct[3];
-static int nbitsuf;
-static void *strs[3];
-static int nbitstr[3];
-static int total_bits = 2; // Already counted the rep/repe bits.
-
-static void
-find_numbers (void)
-{
- int nfct_names[3] = { 0, 0, 0 };
- int nstrs[3] = { 0, 0, 0 };
-
- /* We reverse the order of the instruction list while processing it.
- Later phases need it in the order in which the input file has
- them. */
- struct instruction *reversed = NULL;
-
- struct instruction *runp = instructions;
- while (runp != NULL)
- {
- for (int i = 0; i < 3; ++i)
- if (runp->operands[i].fct != NULL)
- {
- struct argstring search = { .str = runp->operands[i].fct };
- if (tfind (&search, &fct_names[i], compare_argstring) == NULL)
- {
- struct argstring *newp = xmalloc (sizeof (*newp));
- newp->str = runp->operands[i].fct;
- newp->idx = 0;
- if (tsearch (newp, &fct_names[i], compare_argstring) == NULL)
- error (EXIT_FAILURE, errno, "tsearch");
- ++nfct_names[i];
- }
-
- if (runp->operands[i].str != NULL)
- {
- search.str = runp->operands[i].str;
- if (tfind (&search, &strs[i], compare_argstring) == NULL)
- {
- struct argstring *newp = xmalloc (sizeof (*newp));
- newp->str = runp->operands[i].str;
- newp->idx = 0;
- if (tsearch (newp, &strs[i], compare_argstring) == NULL)
- error (EXIT_FAILURE, errno, "tsearch");
- ++nstrs[i];
- }
- }
-
- maxoff[i][0] = MAX (maxoff[i][0], runp->operands[i].off1);
- maxoff[i][1] = MAX (maxoff[i][1], runp->operands[i].off2);
- maxoff[i][2] = MAX (maxoff[i][2], runp->operands[i].off3);
-
- if (runp->operands[i].off1 > 0)
- minoff[i][0] = MIN (minoff[i][0], runp->operands[i].off1);
- if (runp->operands[i].off2 > 0)
- minoff[i][1] = MIN (minoff[i][1], runp->operands[i].off2);
- if (runp->operands[i].off3 > 0)
- minoff[i][2] = MIN (minoff[i][2], runp->operands[i].off3);
- }
-
- struct instruction *old = runp;
- runp = runp->next;
-
- old->next = reversed;
- reversed = old;
- }
- instructions = reversed;
-
- int d;
- int c;
- for (int i = 0; i < 3; ++i)
- {
- // printf ("min1 = %d, min2 = %d, min3 = %d\n", minoff[i][0], minoff[i][1], minoff[i][2]);
- // printf ("max1 = %d, max2 = %d, max3 = %d\n", maxoff[i][0], maxoff[i][1], maxoff[i][2]);
-
- if (minoff[i][0] == 1000)
- nbitoff[i][0] = 0;
- else
- {
- nbitoff[i][0] = 1;
- d = maxoff[i][0] - minoff[i][0];
- c = 1;
- while (c < d)
- {
- ++nbitoff[i][0];
- c *= 2;
- }
- total_bits += nbitoff[i][0];
- }
-
- if (minoff[i][1] == 1000)
- nbitoff[i][1] = 0;
- else
- {
- nbitoff[i][1] = 1;
- d = maxoff[i][1] - minoff[i][1];
- c = 1;
- while (c < d)
- {
- ++nbitoff[i][1];
- c *= 2;
- }
- total_bits += nbitoff[i][1];
- }
-
- if (minoff[i][2] == 1000)
- nbitoff[i][2] = 0;
- else
- {
- nbitoff[i][2] = 1;
- d = maxoff[i][2] - minoff[i][2];
- c = 1;
- while (c < d)
- {
- ++nbitoff[i][2];
- c *= 2;
- }
- total_bits += nbitoff[i][2];
- }
- // printf ("off1 = %d, off2 = %d, off3 = %d\n", nbitoff[i][0], nbitoff[i][1], nbitoff[i][2]);
-
- nbitfct[i] = 1;
- d = nfct_names[i];
- c = 1;
- while (c < d)
- {
- ++nbitfct[i];
- c *= 2;
- }
- total_bits += nbitfct[i];
- // printf ("%d fct[%d], %d bits\n", nfct_names[i], i, nbitfct[i]);
-
- if (nstrs[i] != 0)
- {
- nbitstr[i] = 1;
- d = nstrs[i];
- c = 1;
- while (c < d)
- {
- ++nbitstr[i];
- c *= 2;
- }
- total_bits += nbitstr[i];
- }
-
- // twalk (fct_names[i], nameout);
- }
-
- nbitsuf = 0;
- d = nsuffixes;
- c = 1;
- while (c < d)
- {
- ++nbitsuf;
- c *= 2;
- }
- total_bits += nbitsuf;
- // printf ("%d suffixes, %d bits\n", nsuffixes, nbitsuf);
-}
-
-
-static int
-compare_syn (const void *p1, const void *p2)
-{
- const struct synonym *s1 = (const struct synonym *) p1;
- const struct synonym *s2 = (const struct synonym *) p2;
-
- return strcmp (s1->from, s2->from);
-}
-
-
-static int
-compare_suf (const void *p1, const void *p2)
-{
- const struct suffix *s1 = (const struct suffix *) p1;
- const struct suffix *s2 = (const struct suffix *) p2;
-
- return strcmp (s1->name, s2->name);
-}
-
-
-static int count_op_str;
-static int off_op_str;
-static void
-print_op_str (const void *nodep, VISIT value,
- int level __attribute__ ((unused)))
-{
- if (value == leaf || value == postorder)
- {
- const char *str = (*(struct argstring **) nodep)->str;
- fprintf (outfile, "%s\n \"%s",
- count_op_str == 0 ? "" : "\\0\"", str);
- (*(struct argstring **) nodep)->idx = ++count_op_str;
- (*(struct argstring **) nodep)->off = off_op_str;
- off_op_str += strlen (str) + 1;
- }
-}
-
-
-static void
-print_op_str_idx (const void *nodep, VISIT value,
- int level __attribute__ ((unused)))
-{
- if (value == leaf || value == postorder)
- printf (" %d,\n", (*(struct argstring **) nodep)->off);
-}
-
-
-static void
-print_op_fct (const void *nodep, VISIT value,
- int level __attribute__ ((unused)))
-{
- if (value == leaf || value == postorder)
- {
- fprintf (outfile, " FCT_%s,\n", (*(struct argstring **) nodep)->str);
- (*(struct argstring **) nodep)->idx = ++count_op_str;
- }
-}
-
-
-#if NMNES < 2
-# error "bogus NMNES value"
-#endif
-
-static void
-instrtable_out (void)
-{
- find_numbers ();
-
-#if 0
- create_mnemonic_table ();
-
- fprintf (outfile, "#define MNEMONIC_BITS %zu\n", best_mnemonic_bits);
-#else
- fprintf (outfile, "#define MNEMONIC_BITS %ld\n",
- lrint (ceil (log2 (NMNES))));
-#endif
- fprintf (outfile, "#define SUFFIX_BITS %d\n", nbitsuf);
- for (int i = 0; i < 3; ++i)
- {
- fprintf (outfile, "#define FCT%d_BITS %d\n", i + 1, nbitfct[i]);
- if (nbitstr[i] != 0)
- fprintf (outfile, "#define STR%d_BITS %d\n", i + 1, nbitstr[i]);
- fprintf (outfile, "#define OFF%d_1_BITS %d\n", i + 1, nbitoff[i][0]);
- fprintf (outfile, "#define OFF%d_1_BIAS %d\n", i + 1, minoff[i][0]);
- if (nbitoff[i][1] != 0)
- {
- fprintf (outfile, "#define OFF%d_2_BITS %d\n", i + 1, nbitoff[i][1]);
- fprintf (outfile, "#define OFF%d_2_BIAS %d\n", i + 1, minoff[i][1]);
- }
- if (nbitoff[i][2] != 0)
- {
- fprintf (outfile, "#define OFF%d_3_BITS %d\n", i + 1, nbitoff[i][2]);
- fprintf (outfile, "#define OFF%d_3_BIAS %d\n", i + 1, minoff[i][2]);
- }
- }
-
- fputs ("\n#include <i386_data.h>\n\n", outfile);
-
-
-#define APPEND(a, b) APPEND_ (a, b)
-#define APPEND_(a, b) a##b
-#define EMIT_SUFFIX(suf) \
- fprintf (outfile, "#define suffix_%s %d\n", #suf, APPEND (suffix_, suf))
- EMIT_SUFFIX (none);
- EMIT_SUFFIX (w);
- EMIT_SUFFIX (w0);
- EMIT_SUFFIX (W);
- EMIT_SUFFIX (tttn);
- EMIT_SUFFIX (D);
- EMIT_SUFFIX (w1);
- EMIT_SUFFIX (W1);
-
- fputc_unlocked ('\n', outfile);
-
- for (int i = 0; i < 3; ++i)
- {
- /* Functions. */
- count_op_str = 0;
- fprintf (outfile, "static const opfct_t op%d_fct[] =\n{\n NULL,\n",
- i + 1);
- twalk (fct_names[i], print_op_fct);
- fputs ("};\n", outfile);
-
- /* The operand strings. */
- if (nbitstr[i] != 0)
- {
- count_op_str = 0;
- off_op_str = 0;
- fprintf (outfile, "static const char op%d_str[] =", i + 1);
- twalk (strs[i], print_op_str);
- fputs ("\";\n", outfile);
-
- fprintf (outfile, "static const uint8_t op%d_str_idx[] = {\n",
- i + 1);
- twalk (strs[i], print_op_str_idx);
- fputs ("};\n", outfile);
- }
- }
-
-
- fputs ("static const struct instr_enc instrtab[] =\n{\n", outfile);
- struct instruction *instr;
- for (instr = instructions; instr != NULL; instr = instr->next)
- {
- fputs (" {", outfile);
- if (instr->mnemonic == (void *) -1l)
- fputs (" .mnemonic = MNE_INVALID,", outfile);
- else
- fprintf (outfile, " .mnemonic = MNE_%s,", instr->mnemonic);
- fprintf (outfile, " .rep = %d,", instr->rep);
- fprintf (outfile, " .repe = %d,", instr->repe);
- fprintf (outfile, " .suffix = %d,", instr->suffix);
- fprintf (outfile, " .modrm = %d,", instr->modrm);
-
- for (int i = 0; i < 3; ++i)
- {
- int idx = 0;
- if (instr->operands[i].fct != NULL)
- {
- struct argstring search = { .str = instr->operands[i].fct };
- struct argstring **res = tfind (&search, &fct_names[i],
- compare_argstring);
- assert (res != NULL);
- idx = (*res)->idx;
- }
- fprintf (outfile, " .fct%d = %d,", i + 1, idx);
-
- idx = 0;
- if (instr->operands[i].str != NULL)
- {
- struct argstring search = { .str = instr->operands[i].str };
- struct argstring **res = tfind (&search, &strs[i],
- compare_argstring);
- assert (res != NULL);
- idx = (*res)->idx;
- }
- if (nbitstr[i] != 0)
- fprintf (outfile, " .str%d = %d,", i + 1, idx);
-
- fprintf (outfile, " .off%d_1 = %d,", i + 1,
- MAX (0, instr->operands[i].off1 - minoff[i][0]));
-
- if (nbitoff[i][1] != 0)
- fprintf (outfile, " .off%d_2 = %d,", i + 1,
- MAX (0, instr->operands[i].off2 - minoff[i][1]));
-
- if (nbitoff[i][2] != 0)
- fprintf (outfile, " .off%d_3 = %d,", i + 1,
- MAX (0, instr->operands[i].off3 - minoff[i][2]));
- }
-
- fputs (" },\n", outfile);
- }
- fputs ("};\n", outfile);
-
- fputs ("static const uint8_t match_data[] =\n{\n", outfile);
- size_t cnt = 0;
- for (instr = instructions; instr != NULL; instr = instr->next, ++cnt)
- {
- /* First count the number of bytes. */
- size_t totalbits = 0;
- size_t zerobits = 0;
- bool leading_p = true;
- size_t leadingbits = 0;
- struct bitvalue *b = instr->bytes;
- while (b != NULL)
- {
- if (b->type == zeroone)
- {
- ++totalbits;
- zerobits = 0;
- if (leading_p)
- ++leadingbits;
- }
- else
- {
- totalbits += b->field->bits;
- /* We must always count the mod/rm byte. */
- if (strncasecmp (b->field->name, "mod", 3) == 0)
- zerobits = 0;
- else
- zerobits += b->field->bits;
- leading_p = false;
- }
- b = b->next;
- }
- size_t nbytes = (totalbits - zerobits + 7) / 8;
- assert (nbytes > 0);
- size_t leadingbytes = leadingbits / 8;
-
- fprintf (outfile, " %#zx,", nbytes | (leadingbytes << 4));
-
- /* Now create the mask and byte values. */
- uint8_t byte = 0;
- uint8_t mask = 0;
- int nbits = 0;
- b = instr->bytes;
- while (b != NULL)
- {
- if (b->type == zeroone)
- {
- byte = (byte << 1) | b->value;
- mask = (mask << 1) | 1;
- if (++nbits == 8)
- {
- if (leadingbytes > 0)
- {
- assert (mask == 0xff);
- fprintf (outfile, " %#" PRIx8 ",", byte);
- --leadingbytes;
- }
- else
- fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
- mask, byte);
- byte = mask = nbits = 0;
- if (--nbytes == 0)
- break;
- }
- }
- else
- {
- assert (leadingbytes == 0);
-
- unsigned long int remaining = b->field->bits;
- while (nbits + remaining > 8)
- {
- fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
- mask << (8 - nbits), byte << (8 - nbits));
- remaining = nbits + remaining - 8;
- byte = mask = nbits = 0;
- if (--nbytes == 0)
- break;
- }
- byte <<= remaining;
- mask <<= remaining;
- nbits += remaining;
- if (nbits == 8)
- {
- fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
- byte = mask = nbits = 0;
- if (--nbytes == 0)
- break;
- }
- }
- b = b->next;
- }
-
- fputc_unlocked ('\n', outfile);
- }
- fputs ("};\n", outfile);
-}
-
-
-#if 0
-static size_t mnemonic_maxlen;
-static size_t mnemonic_minlen;
-static size_t
-which_chars (const char *str[], size_t nstr)
-{
- char used_char[256];
- memset (used_char, '\0', sizeof (used_char));
- mnemonic_maxlen = 0;
- mnemonic_minlen = 10000;
- for (size_t cnt = 0; cnt < nstr; ++cnt)
- {
- const unsigned char *cp = (const unsigned char *) str[cnt];
- mnemonic_maxlen = MAX (mnemonic_maxlen, strlen ((char *) cp));
- mnemonic_minlen = MIN (mnemonic_minlen, strlen ((char *) cp));
- do
- used_char[*cp++] = 1;
- while (*cp != '\0');
- }
- size_t nused_char = 0;
- for (size_t cnt = 0; cnt < 256; ++cnt)
- if (used_char[cnt] != 0)
- ++nused_char;
- return nused_char;
-}
-
-
-static const char **mnemonic_strs;
-static size_t nmnemonic_strs;
-static void
-add_mnemonics (const void *nodep, VISIT value,
- int level __attribute__ ((unused)))
-{
- if (value == leaf || value == postorder)
- mnemonic_strs[nmnemonic_strs++] = *(const char **) nodep;
-}
-
-
-struct charfreq
-{
- char ch;
- int freq;
-};
-static struct charfreq pfxfreq[256];
-static struct charfreq sfxfreq[256];
-
-
-static int
-compare_freq (const void *p1, const void *p2)
-{
- const struct charfreq *c1 = (const struct charfreq *) p1;
- const struct charfreq *c2 = (const struct charfreq *) p2;
-
- if (c1->freq > c2->freq)
- return -1;
- if (c1->freq < c2->freq)
- return 1;
- return 0;
-}
-
-
-static size_t
-compute_pfxfreq (const char *str[], size_t nstr)
-{
- memset (pfxfreq, '\0', sizeof (pfxfreq));
-
- for (size_t i = 0; i < nstr; ++i)
- pfxfreq[i].ch = i;
-
- for (size_t i = 0; i < nstr; ++i)
- ++pfxfreq[*((const unsigned char *) str[i])].freq;
-
- qsort (pfxfreq, 256, sizeof (struct charfreq), compare_freq);
-
- size_t n = 0;
- while (n < 256 && pfxfreq[n].freq != 0)
- ++n;
- return n;
-}
-
-
-struct strsnlen
-{
- const char *str;
- size_t len;
-};
-
-static size_t
-compute_sfxfreq (size_t nstr, struct strsnlen *strsnlen)
-{
- memset (sfxfreq, '\0', sizeof (sfxfreq));
-
- for (size_t i = 0; i < nstr; ++i)
- sfxfreq[i].ch = i;
-
- for (size_t i = 0; i < nstr; ++i)
- ++sfxfreq[((const unsigned char *) strchrnul (strsnlen[i].str, '\0'))[-1]].freq;
-
- qsort (sfxfreq, 256, sizeof (struct charfreq), compare_freq);
-
- size_t n = 0;
- while (n < 256 && sfxfreq[n].freq != 0)
- ++n;
- return n;
-}
-
-
-static void
-create_mnemonic_table (void)
-{
- mnemonic_strs = xmalloc (nmnemonics * sizeof (char *));
-
- twalk (mnemonics, add_mnemonics);
-
- (void) which_chars (mnemonic_strs, nmnemonic_strs);
-
- size_t best_so_far = 100000000;
- char *best_prefix = NULL;
- char *best_suffix = NULL;
- char *best_table = NULL;
- size_t best_table_size = 0;
- size_t best_table_bits = 0;
- size_t best_prefix_bits = 0;
-
- /* We can precompute the prefix characters. */
- size_t npfx_char = compute_pfxfreq (mnemonic_strs, nmnemonic_strs);
-
- /* Compute best size for string representation including explicit NUL. */
- for (size_t pfxbits = 0; (1u << pfxbits) < 2 * npfx_char; ++pfxbits)
- {
- char prefix[1 << pfxbits];
- size_t i;
- for (i = 0; i < (1u << pfxbits) - 1; ++i)
- prefix[i] = pfxfreq[i].ch;
- prefix[i] = '\0';
-
- struct strsnlen strsnlen[nmnemonic_strs];
-
- for (i = 0; i < nmnemonic_strs; ++i)
- {
- if (strchr (prefix, *mnemonic_strs[i]) != NULL)
- strsnlen[i].str = mnemonic_strs[i] + 1;
- else
- strsnlen[i].str = mnemonic_strs[i];
- strsnlen[i].len = strlen (strsnlen[i].str);
- }
-
- /* With the prefixes gone, try to combine strings. */
- size_t nstrsnlen = 1;
- for (i = 1; i < nmnemonic_strs; ++i)
- {
- size_t j;
- for (j = 0; j < nstrsnlen; ++j)
- if (strsnlen[i].len > strsnlen[j].len
- && strcmp (strsnlen[j].str,
- strsnlen[i].str + (strsnlen[i].len
- - strsnlen[j].len)) == 0)
- {
- strsnlen[j] = strsnlen[i];
- break;
- }
- else if (strsnlen[i].len < strsnlen[j].len
- && strcmp (strsnlen[i].str,
- strsnlen[j].str + (strsnlen[j].len
- - strsnlen[i].len)) == 0)
- break;
-;
- if (j == nstrsnlen)
- strsnlen[nstrsnlen++] = strsnlen[i];
- }
-
- size_t nsfx_char = compute_sfxfreq (nstrsnlen, strsnlen);
-
- for (size_t sfxbits = 0; (1u << sfxbits) < 2 * nsfx_char; ++sfxbits)
- {
- char suffix[1 << sfxbits];
-
- for (i = 0; i < (1u << sfxbits) - 1; ++i)
- suffix[i] = sfxfreq[i].ch;
- suffix[i] = '\0';
-
- size_t newlen[nstrsnlen];
-
- for (i = 0; i < nstrsnlen; ++i)
- if (strchr (suffix, strsnlen[i].str[strsnlen[i].len - 1]) != NULL)
- newlen[i] = strsnlen[i].len - 1;
- else
- newlen[i] = strsnlen[i].len;
-
- char charused[256];
- memset (charused, '\0', sizeof (charused));
- size_t ncharused = 0;
-
- const char *tablestr[nstrsnlen];
- size_t ntablestr = 1;
- tablestr[0] = strsnlen[0].str;
- size_t table = newlen[0] + 1;
- for (i = 1; i < nstrsnlen; ++i)
- {
- size_t j;
- for (j = 0; j < ntablestr; ++j)
- if (newlen[i] > newlen[j]
- && memcmp (tablestr[j],
- strsnlen[i].str + (newlen[i] - newlen[j]),
- newlen[j]) == 0)
- {
- table += newlen[i] - newlen[j];
- tablestr[j] = strsnlen[i].str;
- newlen[j] = newlen[i];
- break;
- }
- else if (newlen[i] < newlen[j]
- && memcmp (strsnlen[i].str,
- tablestr[j] + (newlen[j] - newlen[i]),
- newlen[i]) == 0)
- break;
-
- if (j == ntablestr)
- {
- table += newlen[i] + 1;
- tablestr[ntablestr] = strsnlen[i].str;
- newlen[ntablestr] = newlen[i];
-
- ++ntablestr;
- }
-
- for (size_t x = 0; x < newlen[j]; ++x)
- if (charused[((const unsigned char *) tablestr[j])[x]]++ == 0)
- ++ncharused;
- }
-
- size_t ncharused_bits = 0;
- i = 1;
- while (i < ncharused)
- {
- i *= 2;
- ++ncharused_bits;
- }
-
- size_t table_bits = 0;
- i = 1;
- while (i < table)
- {
- i *= 2;
- ++table_bits;
- }
-
- size_t mnemonic_bits = table_bits + pfxbits + sfxbits;
- size_t new_total = (((table + 7) / 8) * ncharused_bits + ncharused
- + (pfxbits == 0 ? 0 : (1 << pfxbits) - 1)
- + (sfxbits == 0 ? 0 : (1 << sfxbits) - 1)
- + (((total_bits + mnemonic_bits + 7) / 8)
- * ninstructions));
-
- if (new_total < best_so_far)
- {
- best_so_far = new_total;
- best_mnemonic_bits = mnemonic_bits;
-
- free (best_suffix);
- best_suffix = xstrdup (suffix);
-
- free (best_prefix);
- best_prefix = xstrdup (prefix);
- best_prefix_bits = pfxbits;
-
- best_table_size = table;
- best_table_bits = table_bits;
- char *cp = best_table = xrealloc (best_table, table);
- for (i = 0; i < ntablestr; ++i)
- {
- assert (cp + newlen[i] + 1 <= best_table + table);
- cp = mempcpy (cp, tablestr[i], newlen[i]);
- *cp++ = '\0';
- }
- assert (cp == best_table + table);
- }
- }
- }
-
- fputs ("static const char mnemonic_table[] =\n\"", outfile);
- for (size_t i = 0; i < best_table_size; ++i)
- {
- if (((i + 1) % 60) == 0)
- fputs ("\"\n\"", outfile);
- if (!isascii (best_table[i]) || !isprint (best_table[i]))
- fprintf (outfile, "\\%03o", best_table[i]);
- else
- fputc (best_table[i], outfile);
- }
- fputs ("\";\n", outfile);
-
- if (best_prefix[0] != '\0')
- fprintf (outfile,
- "static const char prefix[%zu] = \"%s\";\n"
- "#define PREFIXCHAR_BITS %zu\n",
- strlen (best_prefix), best_prefix, best_prefix_bits);
- else
- fputs ("#define NO_PREFIX\n", outfile);
-
- if (best_suffix[0] != '\0')
- fprintf (outfile, "static const char suffix[%zu] = \"%s\";\n",
- strlen (best_suffix), best_suffix);
- else
- fputs ("#define NO_SUFFIX\n", outfile);
-
- for (size_t i = 0; i < nmnemonic_strs; ++i)
- {
- const char *mne = mnemonic_strs[i];
-
- size_t pfxval = 0;
- char *cp = strchr (best_prefix, *mne);
- if (cp != NULL)
- {
- pfxval = 1 + (cp - best_prefix);
- ++mne;
- }
-
- size_t l = strlen (mne);
-
- size_t sfxval = 0;
- cp = strchr (best_suffix, mne[l - 1]);
- if (cp != NULL)
- {
- sfxval = 1 + (cp - best_suffix);
- --l;
- }
-
- char *off = memmem (best_table, best_table_size, mne, l);
- while (off[l] != '\0')
- {
- off = memmem (off + 1, best_table_size, mne, l);
- assert (off != NULL);
- }
-
- fprintf (outfile, "#define MNE_%s %#zx\n",
- mnemonic_strs[i],
- (off - best_table)
- + ((pfxval + (sfxval << best_prefix_bits)) << best_table_bits));
- }
-}
-#endif
diff --git a/src/libcpu/i386_parse.h b/src/libcpu/i386_parse.h
deleted file mode 100644
index 320e2da9..00000000
--- a/src/libcpu/i386_parse.h
+++ /dev/null
@@ -1,114 +0,0 @@
-/* A Bison parser, made by GNU Bison 2.7. */
-
-/* Bison interface for Yacc-like parsers in C
-
- Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-/* As a special exception, you may create a larger work that contains
- part or all of the Bison parser skeleton and distribute that work
- under terms of your choice, so long as that work isn't itself a
- parser generator using the skeleton or a modified version thereof
- as a parser skeleton. Alternatively, if you modify or redistribute
- the parser skeleton itself, you may (at your option) remove this
- special exception, which will cause the skeleton and the resulting
- Bison output files to be licensed under the GNU General Public
- License without this special exception.
-
- This special exception was added by the Free Software Foundation in
- version 2.2 of Bison. */
-
-#ifndef YY_I386_I_PARSE_H_INCLUDED
-# define YY_I386_I_PARSE_H_INCLUDED
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 0
-#endif
-#if YYDEBUG
-extern int i386_debug;
-#endif
-
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- kMASK = 258,
- kPREFIX = 259,
- kSUFFIX = 260,
- kSYNONYM = 261,
- kID = 262,
- kNUMBER = 263,
- kPERCPERC = 264,
- kBITFIELD = 265,
- kCHAR = 266,
- kSPACE = 267
- };
-#endif
-/* Tokens. */
-#define kMASK 258
-#define kPREFIX 259
-#define kSUFFIX 260
-#define kSYNONYM 261
-#define kID 262
-#define kNUMBER 263
-#define kPERCPERC 264
-#define kBITFIELD 265
-#define kCHAR 266
-#define kSPACE 267
-
-
-
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-{
-/* Line 2058 of yacc.c */
-#line 217 "/home/mark/src/elfutils/libcpu/i386_parse.y"
-
- unsigned long int num;
- char *str;
- char ch;
- struct known_bitfield *field;
- struct bitvalue *bit;
- struct argname *name;
- struct argument *arg;
-
-
-/* Line 2058 of yacc.c */
-#line 92 "i386_parse.h"
-} YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-#endif
-
-extern YYSTYPE i386_lval;
-
-#ifdef YYPARSE_PARAM
-#if defined __STDC__ || defined __cplusplus
-int i386_parse (void *YYPARSE_PARAM);
-#else
-int i386_parse ();
-#endif
-#else /* ! YYPARSE_PARAM */
-#if defined __STDC__ || defined __cplusplus
-int i386_parse (void);
-#else
-int i386_parse ();
-#endif
-#endif /* ! YYPARSE_PARAM */
-
-#endif /* !YY_I386_I_PARSE_H_INCLUDED */
diff --git a/src/libcpu/i386_parse.y b/src/libcpu/i386_parse.y
deleted file mode 100644
index 689ba222..00000000
--- a/src/libcpu/i386_parse.y
+++ /dev/null
@@ -1,1687 +0,0 @@
-%{
-/* Parser for i386 CPU description.
- Copyright (C) 2004, 2005, 2007, 2008, 2009 Red Hat, Inc.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <ctype.h>
-#include <errno.h>
-#include <error.h>
-#include <inttypes.h>
-#include <libintl.h>
-#include <math.h>
-#include <obstack.h>
-#include <search.h>
-#include <stdbool.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/param.h>
-
-#include <system.h>
-
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free
-
-/* The error handler. */
-static void yyerror (const char *s);
-
-extern int yylex (void);
-extern int i386_lineno;
-extern char *infname;
-
-
-struct known_bitfield
-{
- char *name;
- unsigned long int bits;
- int tmp;
-};
-
-
-struct bitvalue
-{
- enum bittype { zeroone, field, failure } type;
- union
- {
- unsigned int value;
- struct known_bitfield *field;
- };
- struct bitvalue *next;
-};
-
-
-struct argname
-{
- enum nametype { string, nfield } type;
- union
- {
- char *str;
- struct known_bitfield *field;
- };
- struct argname *next;
-};
-
-
-struct argument
-{
- struct argname *name;
- struct argument *next;
-};
-
-
-struct instruction
-{
- /* The byte encoding. */
- struct bitvalue *bytes;
-
- /* Prefix possible. */
- int repe;
- int rep;
-
- /* Mnemonic. */
- char *mnemonic;
-
- /* Suffix. */
- enum { suffix_none = 0, suffix_w, suffix_w0, suffix_W, suffix_tttn,
- suffix_w1, suffix_W1, suffix_D } suffix;
-
- /* Flag set if modr/m is used. */
- int modrm;
-
- /* Operands. */
- struct operand
- {
- char *fct;
- char *str;
- int off1;
- int off2;
- int off3;
- } operands[3];
-
- struct instruction *next;
-};
-
-
-struct synonym
-{
- char *from;
- char *to;
-};
-
-
-struct suffix
-{
- char *name;
- int idx;
-};
-
-
-struct argstring
-{
- char *str;
- int idx;
- int off;
-};
-
-
-static struct known_bitfield ax_reg =
- {
- .name = "ax", .bits = 0, .tmp = 0
- };
-
-static struct known_bitfield dx_reg =
- {
- .name = "dx", .bits = 0, .tmp = 0
- };
-
-static struct known_bitfield di_reg =
- {
- .name = "es_di", .bits = 0, .tmp = 0
- };
-
-static struct known_bitfield si_reg =
- {
- .name = "ds_si", .bits = 0, .tmp = 0
- };
-
-static struct known_bitfield bx_reg =
- {
- .name = "ds_bx", .bits = 0, .tmp = 0
- };
-
-
-static int bitfield_compare (const void *p1, const void *p2);
-static void new_bitfield (char *name, unsigned long int num);
-static void check_bits (struct bitvalue *value);
-static int check_duplicates (struct bitvalue *val);
-static int check_argsdef (struct bitvalue *bitval, struct argument *args);
-static int check_bitsused (struct bitvalue *bitval,
- struct known_bitfield *suffix,
- struct argument *args);
-static struct argname *combine (struct argname *name);
-static void fillin_arg (struct bitvalue *bytes, struct argname *name,
- struct instruction *instr, int n);
-static void find_numbers (void);
-static int compare_syn (const void *p1, const void *p2);
-static int compare_suf (const void *p1, const void *p2);
-static void instrtable_out (void);
-#if 0
-static void create_mnemonic_table (void);
-#endif
-
-static void *bitfields;
-static struct instruction *instructions;
-static size_t ninstructions;
-static void *synonyms;
-static void *suffixes;
-static int nsuffixes;
-static void *mnemonics;
-size_t nmnemonics;
-extern FILE *outfile;
-
-/* Number of bits used mnemonics. */
-#if 0
-static size_t best_mnemonic_bits;
-#endif
-%}
-
-%union {
- unsigned long int num;
- char *str;
- char ch;
- struct known_bitfield *field;
- struct bitvalue *bit;
- struct argname *name;
- struct argument *arg;
-}
-
-%token kMASK
-%token kPREFIX
-%token kSUFFIX
-%token kSYNONYM
-%token <str> kID
-%token <num> kNUMBER
-%token kPERCPERC
-%token <str> kBITFIELD
-%token <ch> kCHAR
-%token kSPACE
-
-%type <bit> bit byte bytes
-%type <field> bitfieldopt
-%type <name> argcomp arg
-%type <arg> args optargs
-
-%defines
-
-%%
-
-spec: masks kPERCPERC '\n' instrs
- {
- if (error_message_count != 0)
- error (EXIT_FAILURE, 0,
- "terminated due to previous error");
-
- instrtable_out ();
- }
- ;
-
-masks: masks '\n' mask
- | mask
- ;
-
-mask: kMASK kBITFIELD kNUMBER
- { new_bitfield ($2, $3); }
- | kPREFIX kBITFIELD
- { new_bitfield ($2, -1); }
- | kSUFFIX kBITFIELD
- { new_bitfield ($2, -2); }
- | kSYNONYM kBITFIELD kBITFIELD
- {
- struct synonym *newp = xmalloc (sizeof (*newp));
- newp->from = $2;
- newp->to = $3;
- if (tfind (newp, &synonyms, compare_syn) != NULL)
- error (0, 0,
- "%d: duplicate definition for synonym '%s'",
- i386_lineno, $2);
- else if (tsearch ( newp, &synonyms, compare_syn) == NULL)
- error (EXIT_FAILURE, 0, "tsearch");
- }
- |
- ;
-
-instrs: instrs '\n' instr
- | instr
- ;
-
-instr: bytes ':' bitfieldopt kID bitfieldopt optargs
- {
- if ($3 != NULL && strcmp ($3->name, "RE") != 0
- && strcmp ($3->name, "R") != 0)
- {
- error (0, 0, "%d: only 'R' and 'RE' prefix allowed",
- i386_lineno - 1);
- }
- if (check_duplicates ($1) == 0
- && check_argsdef ($1, $6) == 0
- && check_bitsused ($1, $5, $6) == 0)
- {
- struct instruction *newp = xcalloc (sizeof (*newp),
- 1);
- if ($3 != NULL)
- {
- if (strcmp ($3->name, "RE") == 0)
- newp->repe = 1;
- else if (strcmp ($3->name, "R") == 0)
- newp->rep = 1;
- }
-
- newp->bytes = $1;
- newp->mnemonic = $4;
- if (newp->mnemonic != (void *) -1l
- && tfind ($4, &mnemonics,
- (comparison_fn_t) strcmp) == NULL)
- {
- if (tsearch ($4, &mnemonics,
- (comparison_fn_t) strcmp) == NULL)
- error (EXIT_FAILURE, errno, "tsearch");
- ++nmnemonics;
- }
-
- if ($5 != NULL)
- {
- if (strcmp ($5->name, "w") == 0)
- newp->suffix = suffix_w;
- else if (strcmp ($5->name, "w0") == 0)
- newp->suffix = suffix_w0;
- else if (strcmp ($5->name, "tttn") == 0)
- newp->suffix = suffix_tttn;
- else if (strcmp ($5->name, "w1") == 0)
- newp->suffix = suffix_w1;
- else if (strcmp ($5->name, "W") == 0)
- newp->suffix = suffix_W;
- else if (strcmp ($5->name, "W1") == 0)
- newp->suffix = suffix_W1;
- else if (strcmp ($5->name, "D") == 0)
- newp->suffix = suffix_D;
- else
- error (EXIT_FAILURE, 0,
- "%s: %d: unknown suffix '%s'",
- infname, i386_lineno - 1, $5->name);
-
- struct suffix search = { .name = $5->name };
- if (tfind (&search, &suffixes, compare_suf)
- == NULL)
- {
- struct suffix *ns = xmalloc (sizeof (*ns));
- ns->name = $5->name;
- ns->idx = ++nsuffixes;
- if (tsearch (ns, &suffixes, compare_suf)
- == NULL)
- error (EXIT_FAILURE, errno, "tsearch");
- }
- }
-
- struct argument *args = $6;
- int n = 0;
- while (args != NULL)
- {
- fillin_arg ($1, args->name, newp, n);
-
- args = args->next;
- ++n;
- }
-
- newp->next = instructions;
- instructions = newp;
- ++ninstructions;
- }
- }
- |
- ;
-
-bitfieldopt: kBITFIELD
- {
- struct known_bitfield search;
- search.name = $1;
- struct known_bitfield **res;
- res = tfind (&search, &bitfields, bitfield_compare);
- if (res == NULL)
- {
- error (0, 0, "%d: unknown bitfield '%s'",
- i386_lineno, search.name);
- $$ = NULL;
- }
- else
- $$ = *res;
- }
- |
- { $$ = NULL; }
- ;
-
-bytes: bytes ',' byte
- {
- check_bits ($3);
-
- struct bitvalue *runp = $1;
- while (runp->next != NULL)
- runp = runp->next;
- runp->next = $3;
- $$ = $1;
- }
- | byte
- {
- check_bits ($1);
- $$ = $1;
- }
- ;
-
-byte: byte bit
- {
- struct bitvalue *runp = $1;
- while (runp->next != NULL)
- runp = runp->next;
- runp->next = $2;
- $$ = $1;
- }
- | bit
- { $$ = $1; }
- ;
-
-bit: '0'
- {
- $$ = xmalloc (sizeof (struct bitvalue));
- $$->type = zeroone;
- $$->value = 0;
- $$->next = NULL;
- }
- | '1'
- {
- $$ = xmalloc (sizeof (struct bitvalue));
- $$->type = zeroone;
- $$->value = 1;
- $$->next = NULL;
- }
- | kBITFIELD
- {
- $$ = xmalloc (sizeof (struct bitvalue));
- struct known_bitfield search;
- search.name = $1;
- struct known_bitfield **res;
- res = tfind (&search, &bitfields, bitfield_compare);
- if (res == NULL)
- {
- error (0, 0, "%d: unknown bitfield '%s'",
- i386_lineno, search.name);
- $$->type = failure;
- }
- else
- {
- $$->type = field;
- $$->field = *res;
- }
- $$->next = NULL;
- }
- ;
-
-optargs: kSPACE args
- { $$ = $2; }
- |
- { $$ = NULL; }
- ;
-
-args: args ',' arg
- {
- struct argument *runp = $1;
- while (runp->next != NULL)
- runp = runp->next;
- runp->next = xmalloc (sizeof (struct argument));
- runp->next->name = combine ($3);
- runp->next->next = NULL;
- $$ = $1;
- }
- | arg
- {
- $$ = xmalloc (sizeof (struct argument));
- $$->name = combine ($1);
- $$->next = NULL;
- }
- ;
-
-arg: arg argcomp
- {
- struct argname *runp = $1;
- while (runp->next != NULL)
- runp = runp->next;
- runp->next = $2;
- $$ = $1;
- }
- | argcomp
- { $$ = $1; }
- ;
-argcomp: kBITFIELD
- {
- $$ = xmalloc (sizeof (struct argname));
- $$->type = nfield;
- $$->next = NULL;
-
- struct known_bitfield search;
- search.name = $1;
- struct known_bitfield **res;
- res = tfind (&search, &bitfields, bitfield_compare);
- if (res == NULL)
- {
- if (strcmp ($1, "ax") == 0)
- $$->field = &ax_reg;
- else if (strcmp ($1, "dx") == 0)
- $$->field = &dx_reg;
- else if (strcmp ($1, "es_di") == 0)
- $$->field = &di_reg;
- else if (strcmp ($1, "ds_si") == 0)
- $$->field = &si_reg;
- else if (strcmp ($1, "ds_bx") == 0)
- $$->field = &bx_reg;
- else
- {
- error (0, 0, "%d: unknown bitfield '%s'",
- i386_lineno, search.name);
- $$->field = NULL;
- }
- }
- else
- $$->field = *res;
- }
- | kCHAR
- {
- $$ = xmalloc (sizeof (struct argname));
- $$->type = string;
- $$->next = NULL;
- $$->str = xmalloc (2);
- $$->str[0] = $1;
- $$->str[1] = '\0';
- }
- | kID
- {
- $$ = xmalloc (sizeof (struct argname));
- $$->type = string;
- $$->next = NULL;
- $$->str = $1;
- }
- | ':'
- {
- $$ = xmalloc (sizeof (struct argname));
- $$->type = string;
- $$->next = NULL;
- $$->str = xmalloc (2);
- $$->str[0] = ':';
- $$->str[1] = '\0';
- }
- ;
-
-%%
-
-static void
-yyerror (const char *s)
-{
- error (0, 0, gettext ("while reading i386 CPU description: %s at line %d"),
- gettext (s), i386_lineno);
-}
-
-
-static int
-bitfield_compare (const void *p1, const void *p2)
-{
- struct known_bitfield *f1 = (struct known_bitfield *) p1;
- struct known_bitfield *f2 = (struct known_bitfield *) p2;
-
- return strcmp (f1->name, f2->name);
-}
-
-
-static void
-new_bitfield (char *name, unsigned long int num)
-{
- struct known_bitfield *newp = xmalloc (sizeof (struct known_bitfield));
- newp->name = name;
- newp->bits = num;
- newp->tmp = 0;
-
- if (tfind (newp, &bitfields, bitfield_compare) != NULL)
- {
- error (0, 0, "%d: duplicated definition of bitfield '%s'",
- i386_lineno, name);
- free (name);
- return;
- }
-
- if (tsearch (newp, &bitfields, bitfield_compare) == NULL)
- error (EXIT_FAILURE, errno, "%d: cannot insert new bitfield '%s'",
- i386_lineno, name);
-}
-
-
-/* Check that the number of bits is a multiple of 8. */
-static void
-check_bits (struct bitvalue *val)
-{
- struct bitvalue *runp = val;
- unsigned int total = 0;
-
- while (runp != NULL)
- {
- if (runp->type == zeroone)
- ++total;
- else if (runp->field == NULL)
- /* No sense doing anything, the field is not known. */
- return;
- else
- total += runp->field->bits;
-
- runp = runp->next;
- }
-
- if (total % 8 != 0)
- {
- struct obstack os;
- obstack_init (&os);
-
- while (val != NULL)
- {
- if (val->type == zeroone)
- obstack_printf (&os, "%u", val->value);
- else
- obstack_printf (&os, "{%s}", val->field->name);
- val = val->next;
- }
- obstack_1grow (&os, '\0');
-
- error (0, 0, "%d: field '%s' not a multiple of 8 bits in size",
- i386_lineno, (char *) obstack_finish (&os));
-
- obstack_free (&os, NULL);
- }
-}
-
-
-static int
-check_duplicates (struct bitvalue *val)
-{
- static int testcnt;
- ++testcnt;
-
- int result = 0;
- while (val != NULL)
- {
- if (val->type == field && val->field != NULL)
- {
- if (val->field->tmp == testcnt)
- {
- error (0, 0, "%d: bitfield '%s' used more than once",
- i386_lineno - 1, val->field->name);
- result = 1;
- }
- val->field->tmp = testcnt;
- }
-
- val = val->next;
- }
-
- return result;
-}
-
-
-static int
-check_argsdef (struct bitvalue *bitval, struct argument *args)
-{
- int result = 0;
-
- while (args != NULL)
- {
- for (struct argname *name = args->name; name != NULL; name = name->next)
- if (name->type == nfield && name->field != NULL
- && name->field != &ax_reg && name->field != &dx_reg
- && name->field != &di_reg && name->field != &si_reg
- && name->field != &bx_reg)
- {
- struct bitvalue *runp = bitval;
-
- while (runp != NULL)
- if (runp->type == field && runp->field == name->field)
- break;
- else
- runp = runp->next;
-
- if (runp == NULL)
- {
- error (0, 0, "%d: unknown bitfield '%s' used in output format",
- i386_lineno - 1, name->field->name);
- result = 1;
- }
- }
-
- args = args->next;
- }
-
- return result;
-}
-
-
-static int
-check_bitsused (struct bitvalue *bitval, struct known_bitfield *suffix,
- struct argument *args)
-{
- int result = 0;
-
- while (bitval != NULL)
- {
- if (bitval->type == field && bitval->field != NULL
- && bitval->field != suffix
- /* {w} is handled special. */
- && strcmp (bitval->field->name, "w") != 0)
- {
- struct argument *runp;
- for (runp = args; runp != NULL; runp = runp->next)
- {
- struct argname *name = runp->name;
-
- while (name != NULL)
- if (name->type == nfield && name->field == bitval->field)
- break;
- else
- name = name->next;
-
- if (name != NULL)
- break;
- }
-
-#if 0
- if (runp == NULL)
- {
- error (0, 0, "%d: bitfield '%s' not used",
- i386_lineno - 1, bitval->field->name);
- result = 1;
- }
-#endif
- }
-
- bitval = bitval->next;
- }
-
- return result;
-}
-
-
-static struct argname *
-combine (struct argname *name)
-{
- struct argname *last_str = NULL;
- for (struct argname *runp = name; runp != NULL; runp = runp->next)
- {
- if (runp->type == string)
- {
- if (last_str == NULL)
- last_str = runp;
- else
- {
- last_str->str = xrealloc (last_str->str,
- strlen (last_str->str)
- + strlen (runp->str) + 1);
- strcat (last_str->str, runp->str);
- last_str->next = runp->next;
- }
- }
- else
- last_str = NULL;
- }
- return name;
-}
-
-
-#define obstack_grow_str(ob, str) obstack_grow (ob, str, strlen (str))
-
-
-static void
-fillin_arg (struct bitvalue *bytes, struct argname *name,
- struct instruction *instr, int n)
-{
- static struct obstack ob;
- static int initialized;
- if (! initialized)
- {
- initialized = 1;
- obstack_init (&ob);
- }
-
- struct argname *runp = name;
- int cnt = 0;
- while (runp != NULL)
- {
- /* We ignore strings in the function name. */
- if (runp->type == string)
- {
- if (instr->operands[n].str != NULL)
- error (EXIT_FAILURE, 0,
- "%d: cannot have more than one string parameter",
- i386_lineno - 1);
-
- instr->operands[n].str = runp->str;
- }
- else
- {
- assert (runp->type == nfield);
-
- /* Construct the function name. */
- if (cnt++ > 0)
- obstack_1grow (&ob, '$');
-
- if (runp->field == NULL)
- /* Add some string which contains invalid characters. */
- obstack_grow_str (&ob, "!!!INVALID!!!");
- else
- {
- char *fieldname = runp->field->name;
-
- struct synonym search = { .from = fieldname };
-
- struct synonym **res = tfind (&search, &synonyms, compare_syn);
- if (res != NULL)
- fieldname = (*res)->to;
-
- obstack_grow_str (&ob, fieldname);
- }
-
- /* Now compute the bit offset of the field. */
- struct bitvalue *b = bytes;
- int bitoff = 0;
- if (runp->field != NULL)
- while (b != NULL)
- {
- if (b->type == field && b->field != NULL)
- {
- if (strcmp (b->field->name, runp->field->name) == 0)
- break;
- bitoff += b->field->bits;
- }
- else
- ++bitoff;
-
- b = b->next;
- }
- if (instr->operands[n].off1 == 0)
- instr->operands[n].off1 = bitoff;
- else if (instr->operands[n].off2 == 0)
- instr->operands[n].off2 = bitoff;
- else if (instr->operands[n].off3 == 0)
- instr->operands[n].off3 = bitoff;
- else
- error (EXIT_FAILURE, 0,
- "%d: cannot have more than three fields in parameter",
- i386_lineno - 1);
-
- if (runp->field != NULL
- && strncasecmp (runp->field->name, "mod", 3) == 0)
- instr->modrm = 1;
- }
-
- runp = runp->next;
- }
- if (obstack_object_size (&ob) == 0)
- obstack_grow_str (&ob, "string");
- obstack_1grow (&ob, '\0');
- char *fct = obstack_finish (&ob);
-
- instr->operands[n].fct = fct;
-}
-
-
-#if 0
-static void
-nameout (const void *nodep, VISIT value, int level)
-{
- if (value == leaf || value == postorder)
- printf (" %s\n", *(const char **) nodep);
-}
-#endif
-
-
-static int
-compare_argstring (const void *p1, const void *p2)
-{
- const struct argstring *a1 = (const struct argstring *) p1;
- const struct argstring *a2 = (const struct argstring *) p2;
-
- return strcmp (a1->str, a2->str);
-}
-
-
-static int maxoff[3][3];
-static int minoff[3][3] = { { 1000, 1000, 1000 },
- { 1000, 1000, 1000 },
- { 1000, 1000, 1000 } };
-static int nbitoff[3][3];
-static void *fct_names[3];
-static int nbitfct[3];
-static int nbitsuf;
-static void *strs[3];
-static int nbitstr[3];
-static int total_bits = 2; // Already counted the rep/repe bits.
-
-static void
-find_numbers (void)
-{
- int nfct_names[3] = { 0, 0, 0 };
- int nstrs[3] = { 0, 0, 0 };
-
- /* We reverse the order of the instruction list while processing it.
- Later phases need it in the order in which the input file has
- them. */
- struct instruction *reversed = NULL;
-
- struct instruction *runp = instructions;
- while (runp != NULL)
- {
- for (int i = 0; i < 3; ++i)
- if (runp->operands[i].fct != NULL)
- {
- struct argstring search = { .str = runp->operands[i].fct };
- if (tfind (&search, &fct_names[i], compare_argstring) == NULL)
- {
- struct argstring *newp = xmalloc (sizeof (*newp));
- newp->str = runp->operands[i].fct;
- newp->idx = 0;
- if (tsearch (newp, &fct_names[i], compare_argstring) == NULL)
- error (EXIT_FAILURE, errno, "tsearch");
- ++nfct_names[i];
- }
-
- if (runp->operands[i].str != NULL)
- {
- search.str = runp->operands[i].str;
- if (tfind (&search, &strs[i], compare_argstring) == NULL)
- {
- struct argstring *newp = xmalloc (sizeof (*newp));
- newp->str = runp->operands[i].str;
- newp->idx = 0;
- if (tsearch (newp, &strs[i], compare_argstring) == NULL)
- error (EXIT_FAILURE, errno, "tsearch");
- ++nstrs[i];
- }
- }
-
- maxoff[i][0] = MAX (maxoff[i][0], runp->operands[i].off1);
- maxoff[i][1] = MAX (maxoff[i][1], runp->operands[i].off2);
- maxoff[i][2] = MAX (maxoff[i][2], runp->operands[i].off3);
-
- if (runp->operands[i].off1 > 0)
- minoff[i][0] = MIN (minoff[i][0], runp->operands[i].off1);
- if (runp->operands[i].off2 > 0)
- minoff[i][1] = MIN (minoff[i][1], runp->operands[i].off2);
- if (runp->operands[i].off3 > 0)
- minoff[i][2] = MIN (minoff[i][2], runp->operands[i].off3);
- }
-
- struct instruction *old = runp;
- runp = runp->next;
-
- old->next = reversed;
- reversed = old;
- }
- instructions = reversed;
-
- int d;
- int c;
- for (int i = 0; i < 3; ++i)
- {
- // printf ("min1 = %d, min2 = %d, min3 = %d\n", minoff[i][0], minoff[i][1], minoff[i][2]);
- // printf ("max1 = %d, max2 = %d, max3 = %d\n", maxoff[i][0], maxoff[i][1], maxoff[i][2]);
-
- if (minoff[i][0] == 1000)
- nbitoff[i][0] = 0;
- else
- {
- nbitoff[i][0] = 1;
- d = maxoff[i][0] - minoff[i][0];
- c = 1;
- while (c < d)
- {
- ++nbitoff[i][0];
- c *= 2;
- }
- total_bits += nbitoff[i][0];
- }
-
- if (minoff[i][1] == 1000)
- nbitoff[i][1] = 0;
- else
- {
- nbitoff[i][1] = 1;
- d = maxoff[i][1] - minoff[i][1];
- c = 1;
- while (c < d)
- {
- ++nbitoff[i][1];
- c *= 2;
- }
- total_bits += nbitoff[i][1];
- }
-
- if (minoff[i][2] == 1000)
- nbitoff[i][2] = 0;
- else
- {
- nbitoff[i][2] = 1;
- d = maxoff[i][2] - minoff[i][2];
- c = 1;
- while (c < d)
- {
- ++nbitoff[i][2];
- c *= 2;
- }
- total_bits += nbitoff[i][2];
- }
- // printf ("off1 = %d, off2 = %d, off3 = %d\n", nbitoff[i][0], nbitoff[i][1], nbitoff[i][2]);
-
- nbitfct[i] = 1;
- d = nfct_names[i];
- c = 1;
- while (c < d)
- {
- ++nbitfct[i];
- c *= 2;
- }
- total_bits += nbitfct[i];
- // printf ("%d fct[%d], %d bits\n", nfct_names[i], i, nbitfct[i]);
-
- if (nstrs[i] != 0)
- {
- nbitstr[i] = 1;
- d = nstrs[i];
- c = 1;
- while (c < d)
- {
- ++nbitstr[i];
- c *= 2;
- }
- total_bits += nbitstr[i];
- }
-
- // twalk (fct_names[i], nameout);
- }
-
- nbitsuf = 0;
- d = nsuffixes;
- c = 1;
- while (c < d)
- {
- ++nbitsuf;
- c *= 2;
- }
- total_bits += nbitsuf;
- // printf ("%d suffixes, %d bits\n", nsuffixes, nbitsuf);
-}
-
-
-static int
-compare_syn (const void *p1, const void *p2)
-{
- const struct synonym *s1 = (const struct synonym *) p1;
- const struct synonym *s2 = (const struct synonym *) p2;
-
- return strcmp (s1->from, s2->from);
-}
-
-
-static int
-compare_suf (const void *p1, const void *p2)
-{
- const struct suffix *s1 = (const struct suffix *) p1;
- const struct suffix *s2 = (const struct suffix *) p2;
-
- return strcmp (s1->name, s2->name);
-}
-
-
-static int count_op_str;
-static int off_op_str;
-static void
-print_op_str (const void *nodep, VISIT value,
- int level __attribute__ ((unused)))
-{
- if (value == leaf || value == postorder)
- {
- const char *str = (*(struct argstring **) nodep)->str;
- fprintf (outfile, "%s\n \"%s",
- count_op_str == 0 ? "" : "\\0\"", str);
- (*(struct argstring **) nodep)->idx = ++count_op_str;
- (*(struct argstring **) nodep)->off = off_op_str;
- off_op_str += strlen (str) + 1;
- }
-}
-
-
-static void
-print_op_str_idx (const void *nodep, VISIT value,
- int level __attribute__ ((unused)))
-{
- if (value == leaf || value == postorder)
- printf (" %d,\n", (*(struct argstring **) nodep)->off);
-}
-
-
-static void
-print_op_fct (const void *nodep, VISIT value,
- int level __attribute__ ((unused)))
-{
- if (value == leaf || value == postorder)
- {
- fprintf (outfile, " FCT_%s,\n", (*(struct argstring **) nodep)->str);
- (*(struct argstring **) nodep)->idx = ++count_op_str;
- }
-}
-
-
-#if NMNES < 2
-# error "bogus NMNES value"
-#endif
-
-static void
-instrtable_out (void)
-{
- find_numbers ();
-
-#if 0
- create_mnemonic_table ();
-
- fprintf (outfile, "#define MNEMONIC_BITS %zu\n", best_mnemonic_bits);
-#else
- fprintf (outfile, "#define MNEMONIC_BITS %ld\n",
- lrint (ceil (log2 (NMNES))));
-#endif
- fprintf (outfile, "#define SUFFIX_BITS %d\n", nbitsuf);
- for (int i = 0; i < 3; ++i)
- {
- fprintf (outfile, "#define FCT%d_BITS %d\n", i + 1, nbitfct[i]);
- if (nbitstr[i] != 0)
- fprintf (outfile, "#define STR%d_BITS %d\n", i + 1, nbitstr[i]);
- fprintf (outfile, "#define OFF%d_1_BITS %d\n", i + 1, nbitoff[i][0]);
- fprintf (outfile, "#define OFF%d_1_BIAS %d\n", i + 1, minoff[i][0]);
- if (nbitoff[i][1] != 0)
- {
- fprintf (outfile, "#define OFF%d_2_BITS %d\n", i + 1, nbitoff[i][1]);
- fprintf (outfile, "#define OFF%d_2_BIAS %d\n", i + 1, minoff[i][1]);
- }
- if (nbitoff[i][2] != 0)
- {
- fprintf (outfile, "#define OFF%d_3_BITS %d\n", i + 1, nbitoff[i][2]);
- fprintf (outfile, "#define OFF%d_3_BIAS %d\n", i + 1, minoff[i][2]);
- }
- }
-
- fputs ("\n#include <i386_data.h>\n\n", outfile);
-
-
-#define APPEND(a, b) APPEND_ (a, b)
-#define APPEND_(a, b) a##b
-#define EMIT_SUFFIX(suf) \
- fprintf (outfile, "#define suffix_%s %d\n", #suf, APPEND (suffix_, suf))
- EMIT_SUFFIX (none);
- EMIT_SUFFIX (w);
- EMIT_SUFFIX (w0);
- EMIT_SUFFIX (W);
- EMIT_SUFFIX (tttn);
- EMIT_SUFFIX (D);
- EMIT_SUFFIX (w1);
- EMIT_SUFFIX (W1);
-
- fputc_unlocked ('\n', outfile);
-
- for (int i = 0; i < 3; ++i)
- {
- /* Functions. */
- count_op_str = 0;
- fprintf (outfile, "static const opfct_t op%d_fct[] =\n{\n NULL,\n",
- i + 1);
- twalk (fct_names[i], print_op_fct);
- fputs ("};\n", outfile);
-
- /* The operand strings. */
- if (nbitstr[i] != 0)
- {
- count_op_str = 0;
- off_op_str = 0;
- fprintf (outfile, "static const char op%d_str[] =", i + 1);
- twalk (strs[i], print_op_str);
- fputs ("\";\n", outfile);
-
- fprintf (outfile, "static const uint8_t op%d_str_idx[] = {\n",
- i + 1);
- twalk (strs[i], print_op_str_idx);
- fputs ("};\n", outfile);
- }
- }
-
-
- fputs ("static const struct instr_enc instrtab[] =\n{\n", outfile);
- struct instruction *instr;
- for (instr = instructions; instr != NULL; instr = instr->next)
- {
- fputs (" {", outfile);
- if (instr->mnemonic == (void *) -1l)
- fputs (" .mnemonic = MNE_INVALID,", outfile);
- else
- fprintf (outfile, " .mnemonic = MNE_%s,", instr->mnemonic);
- fprintf (outfile, " .rep = %d,", instr->rep);
- fprintf (outfile, " .repe = %d,", instr->repe);
- fprintf (outfile, " .suffix = %d,", instr->suffix);
- fprintf (outfile, " .modrm = %d,", instr->modrm);
-
- for (int i = 0; i < 3; ++i)
- {
- int idx = 0;
- if (instr->operands[i].fct != NULL)
- {
- struct argstring search = { .str = instr->operands[i].fct };
- struct argstring **res = tfind (&search, &fct_names[i],
- compare_argstring);
- assert (res != NULL);
- idx = (*res)->idx;
- }
- fprintf (outfile, " .fct%d = %d,", i + 1, idx);
-
- idx = 0;
- if (instr->operands[i].str != NULL)
- {
- struct argstring search = { .str = instr->operands[i].str };
- struct argstring **res = tfind (&search, &strs[i],
- compare_argstring);
- assert (res != NULL);
- idx = (*res)->idx;
- }
- if (nbitstr[i] != 0)
- fprintf (outfile, " .str%d = %d,", i + 1, idx);
-
- fprintf (outfile, " .off%d_1 = %d,", i + 1,
- MAX (0, instr->operands[i].off1 - minoff[i][0]));
-
- if (nbitoff[i][1] != 0)
- fprintf (outfile, " .off%d_2 = %d,", i + 1,
- MAX (0, instr->operands[i].off2 - minoff[i][1]));
-
- if (nbitoff[i][2] != 0)
- fprintf (outfile, " .off%d_3 = %d,", i + 1,
- MAX (0, instr->operands[i].off3 - minoff[i][2]));
- }
-
- fputs (" },\n", outfile);
- }
- fputs ("};\n", outfile);
-
- fputs ("static const uint8_t match_data[] =\n{\n", outfile);
- size_t cnt = 0;
- for (instr = instructions; instr != NULL; instr = instr->next, ++cnt)
- {
- /* First count the number of bytes. */
- size_t totalbits = 0;
- size_t zerobits = 0;
- bool leading_p = true;
- size_t leadingbits = 0;
- struct bitvalue *b = instr->bytes;
- while (b != NULL)
- {
- if (b->type == zeroone)
- {
- ++totalbits;
- zerobits = 0;
- if (leading_p)
- ++leadingbits;
- }
- else
- {
- totalbits += b->field->bits;
- /* We must always count the mod/rm byte. */
- if (strncasecmp (b->field->name, "mod", 3) == 0)
- zerobits = 0;
- else
- zerobits += b->field->bits;
- leading_p = false;
- }
- b = b->next;
- }
- size_t nbytes = (totalbits - zerobits + 7) / 8;
- assert (nbytes > 0);
- size_t leadingbytes = leadingbits / 8;
-
- fprintf (outfile, " %#zx,", nbytes | (leadingbytes << 4));
-
- /* Now create the mask and byte values. */
- uint8_t byte = 0;
- uint8_t mask = 0;
- int nbits = 0;
- b = instr->bytes;
- while (b != NULL)
- {
- if (b->type == zeroone)
- {
- byte = (byte << 1) | b->value;
- mask = (mask << 1) | 1;
- if (++nbits == 8)
- {
- if (leadingbytes > 0)
- {
- assert (mask == 0xff);
- fprintf (outfile, " %#" PRIx8 ",", byte);
- --leadingbytes;
- }
- else
- fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
- mask, byte);
- byte = mask = nbits = 0;
- if (--nbytes == 0)
- break;
- }
- }
- else
- {
- assert (leadingbytes == 0);
-
- unsigned long int remaining = b->field->bits;
- while (nbits + remaining > 8)
- {
- fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",",
- mask << (8 - nbits), byte << (8 - nbits));
- remaining = nbits + remaining - 8;
- byte = mask = nbits = 0;
- if (--nbytes == 0)
- break;
- }
- byte <<= remaining;
- mask <<= remaining;
- nbits += remaining;
- if (nbits == 8)
- {
- fprintf (outfile, " %#" PRIx8 ", %#" PRIx8 ",", mask, byte);
- byte = mask = nbits = 0;
- if (--nbytes == 0)
- break;
- }
- }
- b = b->next;
- }
-
- fputc_unlocked ('\n', outfile);
- }
- fputs ("};\n", outfile);
-}
-
-
-#if 0
-static size_t mnemonic_maxlen;
-static size_t mnemonic_minlen;
-static size_t
-which_chars (const char *str[], size_t nstr)
-{
- char used_char[256];
- memset (used_char, '\0', sizeof (used_char));
- mnemonic_maxlen = 0;
- mnemonic_minlen = 10000;
- for (size_t cnt = 0; cnt < nstr; ++cnt)
- {
- const unsigned char *cp = (const unsigned char *) str[cnt];
- mnemonic_maxlen = MAX (mnemonic_maxlen, strlen ((char *) cp));
- mnemonic_minlen = MIN (mnemonic_minlen, strlen ((char *) cp));
- do
- used_char[*cp++] = 1;
- while (*cp != '\0');
- }
- size_t nused_char = 0;
- for (size_t cnt = 0; cnt < 256; ++cnt)
- if (used_char[cnt] != 0)
- ++nused_char;
- return nused_char;
-}
-
-
-static const char **mnemonic_strs;
-static size_t nmnemonic_strs;
-static void
-add_mnemonics (const void *nodep, VISIT value,
- int level __attribute__ ((unused)))
-{
- if (value == leaf || value == postorder)
- mnemonic_strs[nmnemonic_strs++] = *(const char **) nodep;
-}
-
-
-struct charfreq
-{
- char ch;
- int freq;
-};
-static struct charfreq pfxfreq[256];
-static struct charfreq sfxfreq[256];
-
-
-static int
-compare_freq (const void *p1, const void *p2)
-{
- const struct charfreq *c1 = (const struct charfreq *) p1;
- const struct charfreq *c2 = (const struct charfreq *) p2;
-
- if (c1->freq > c2->freq)
- return -1;
- if (c1->freq < c2->freq)
- return 1;
- return 0;
-}
-
-
-static size_t
-compute_pfxfreq (const char *str[], size_t nstr)
-{
- memset (pfxfreq, '\0', sizeof (pfxfreq));
-
- for (size_t i = 0; i < nstr; ++i)
- pfxfreq[i].ch = i;
-
- for (size_t i = 0; i < nstr; ++i)
- ++pfxfreq[*((const unsigned char *) str[i])].freq;
-
- qsort (pfxfreq, 256, sizeof (struct charfreq), compare_freq);
-
- size_t n = 0;
- while (n < 256 && pfxfreq[n].freq != 0)
- ++n;
- return n;
-}
-
-
-struct strsnlen
-{
- const char *str;
- size_t len;
-};
-
-static size_t
-compute_sfxfreq (size_t nstr, struct strsnlen *strsnlen)
-{
- memset (sfxfreq, '\0', sizeof (sfxfreq));
-
- for (size_t i = 0; i < nstr; ++i)
- sfxfreq[i].ch = i;
-
- for (size_t i = 0; i < nstr; ++i)
- ++sfxfreq[((const unsigned char *) strchrnul (strsnlen[i].str, '\0'))[-1]].freq;
-
- qsort (sfxfreq, 256, sizeof (struct charfreq), compare_freq);
-
- size_t n = 0;
- while (n < 256 && sfxfreq[n].freq != 0)
- ++n;
- return n;
-}
-
-
-static void
-create_mnemonic_table (void)
-{
- mnemonic_strs = xmalloc (nmnemonics * sizeof (char *));
-
- twalk (mnemonics, add_mnemonics);
-
- (void) which_chars (mnemonic_strs, nmnemonic_strs);
-
- size_t best_so_far = 100000000;
- char *best_prefix = NULL;
- char *best_suffix = NULL;
- char *best_table = NULL;
- size_t best_table_size = 0;
- size_t best_table_bits = 0;
- size_t best_prefix_bits = 0;
-
- /* We can precompute the prefix characters. */
- size_t npfx_char = compute_pfxfreq (mnemonic_strs, nmnemonic_strs);
-
- /* Compute best size for string representation including explicit NUL. */
- for (size_t pfxbits = 0; (1u << pfxbits) < 2 * npfx_char; ++pfxbits)
- {
- char prefix[1 << pfxbits];
- size_t i;
- for (i = 0; i < (1u << pfxbits) - 1; ++i)
- prefix[i] = pfxfreq[i].ch;
- prefix[i] = '\0';
-
- struct strsnlen strsnlen[nmnemonic_strs];
-
- for (i = 0; i < nmnemonic_strs; ++i)
- {
- if (strchr (prefix, *mnemonic_strs[i]) != NULL)
- strsnlen[i].str = mnemonic_strs[i] + 1;
- else
- strsnlen[i].str = mnemonic_strs[i];
- strsnlen[i].len = strlen (strsnlen[i].str);
- }
-
- /* With the prefixes gone, try to combine strings. */
- size_t nstrsnlen = 1;
- for (i = 1; i < nmnemonic_strs; ++i)
- {
- size_t j;
- for (j = 0; j < nstrsnlen; ++j)
- if (strsnlen[i].len > strsnlen[j].len
- && strcmp (strsnlen[j].str,
- strsnlen[i].str + (strsnlen[i].len
- - strsnlen[j].len)) == 0)
- {
- strsnlen[j] = strsnlen[i];
- break;
- }
- else if (strsnlen[i].len < strsnlen[j].len
- && strcmp (strsnlen[i].str,
- strsnlen[j].str + (strsnlen[j].len
- - strsnlen[i].len)) == 0)
- break;
-;
- if (j == nstrsnlen)
- strsnlen[nstrsnlen++] = strsnlen[i];
- }
-
- size_t nsfx_char = compute_sfxfreq (nstrsnlen, strsnlen);
-
- for (size_t sfxbits = 0; (1u << sfxbits) < 2 * nsfx_char; ++sfxbits)
- {
- char suffix[1 << sfxbits];
-
- for (i = 0; i < (1u << sfxbits) - 1; ++i)
- suffix[i] = sfxfreq[i].ch;
- suffix[i] = '\0';
-
- size_t newlen[nstrsnlen];
-
- for (i = 0; i < nstrsnlen; ++i)
- if (strchr (suffix, strsnlen[i].str[strsnlen[i].len - 1]) != NULL)
- newlen[i] = strsnlen[i].len - 1;
- else
- newlen[i] = strsnlen[i].len;
-
- char charused[256];
- memset (charused, '\0', sizeof (charused));
- size_t ncharused = 0;
-
- const char *tablestr[nstrsnlen];
- size_t ntablestr = 1;
- tablestr[0] = strsnlen[0].str;
- size_t table = newlen[0] + 1;
- for (i = 1; i < nstrsnlen; ++i)
- {
- size_t j;
- for (j = 0; j < ntablestr; ++j)
- if (newlen[i] > newlen[j]
- && memcmp (tablestr[j],
- strsnlen[i].str + (newlen[i] - newlen[j]),
- newlen[j]) == 0)
- {
- table += newlen[i] - newlen[j];
- tablestr[j] = strsnlen[i].str;
- newlen[j] = newlen[i];
- break;
- }
- else if (newlen[i] < newlen[j]
- && memcmp (strsnlen[i].str,
- tablestr[j] + (newlen[j] - newlen[i]),
- newlen[i]) == 0)
- break;
-
- if (j == ntablestr)
- {
- table += newlen[i] + 1;
- tablestr[ntablestr] = strsnlen[i].str;
- newlen[ntablestr] = newlen[i];
-
- ++ntablestr;
- }
-
- for (size_t x = 0; x < newlen[j]; ++x)
- if (charused[((const unsigned char *) tablestr[j])[x]]++ == 0)
- ++ncharused;
- }
-
- size_t ncharused_bits = 0;
- i = 1;
- while (i < ncharused)
- {
- i *= 2;
- ++ncharused_bits;
- }
-
- size_t table_bits = 0;
- i = 1;
- while (i < table)
- {
- i *= 2;
- ++table_bits;
- }
-
- size_t mnemonic_bits = table_bits + pfxbits + sfxbits;
- size_t new_total = (((table + 7) / 8) * ncharused_bits + ncharused
- + (pfxbits == 0 ? 0 : (1 << pfxbits) - 1)
- + (sfxbits == 0 ? 0 : (1 << sfxbits) - 1)
- + (((total_bits + mnemonic_bits + 7) / 8)
- * ninstructions));
-
- if (new_total < best_so_far)
- {
- best_so_far = new_total;
- best_mnemonic_bits = mnemonic_bits;
-
- free (best_suffix);
- best_suffix = xstrdup (suffix);
-
- free (best_prefix);
- best_prefix = xstrdup (prefix);
- best_prefix_bits = pfxbits;
-
- best_table_size = table;
- best_table_bits = table_bits;
- char *cp = best_table = xrealloc (best_table, table);
- for (i = 0; i < ntablestr; ++i)
- {
- assert (cp + newlen[i] + 1 <= best_table + table);
- cp = mempcpy (cp, tablestr[i], newlen[i]);
- *cp++ = '\0';
- }
- assert (cp == best_table + table);
- }
- }
- }
-
- fputs ("static const char mnemonic_table[] =\n\"", outfile);
- for (size_t i = 0; i < best_table_size; ++i)
- {
- if (((i + 1) % 60) == 0)
- fputs ("\"\n\"", outfile);
- if (!isascii (best_table[i]) || !isprint (best_table[i]))
- fprintf (outfile, "\\%03o", best_table[i]);
- else
- fputc (best_table[i], outfile);
- }
- fputs ("\";\n", outfile);
-
- if (best_prefix[0] != '\0')
- fprintf (outfile,
- "static const char prefix[%zu] = \"%s\";\n"
- "#define PREFIXCHAR_BITS %zu\n",
- strlen (best_prefix), best_prefix, best_prefix_bits);
- else
- fputs ("#define NO_PREFIX\n", outfile);
-
- if (best_suffix[0] != '\0')
- fprintf (outfile, "static const char suffix[%zu] = \"%s\";\n",
- strlen (best_suffix), best_suffix);
- else
- fputs ("#define NO_SUFFIX\n", outfile);
-
- for (size_t i = 0; i < nmnemonic_strs; ++i)
- {
- const char *mne = mnemonic_strs[i];
-
- size_t pfxval = 0;
- char *cp = strchr (best_prefix, *mne);
- if (cp != NULL)
- {
- pfxval = 1 + (cp - best_prefix);
- ++mne;
- }
-
- size_t l = strlen (mne);
-
- size_t sfxval = 0;
- cp = strchr (best_suffix, mne[l - 1]);
- if (cp != NULL)
- {
- sfxval = 1 + (cp - best_suffix);
- --l;
- }
-
- char *off = memmem (best_table, best_table_size, mne, l);
- while (off[l] != '\0')
- {
- off = memmem (off + 1, best_table_size, mne, l);
- assert (off != NULL);
- }
-
- fprintf (outfile, "#define MNE_%s %#zx\n",
- mnemonic_strs[i],
- (off - best_table)
- + ((pfxval + (sfxval << best_prefix_bits)) << best_table_bits));
- }
-}
-#endif
diff --git a/src/libcpu/memory-access.h b/src/libcpu/memory-access.h
deleted file mode 100644
index 44210e2f..00000000
--- a/src/libcpu/memory-access.h
+++ /dev/null
@@ -1,182 +0,0 @@
-/* Unaligned memory access functionality.
- Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008 Red Hat, Inc.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _MEMORY_ACCESS_H
-#define _MEMORY_ACCESS_H 1
-
-#include <byteswap.h>
-#include <endian.h>
-#include <limits.h>
-#include <stdint.h>
-
-
-/* When loading this file we require the macro MACHINE_ENCODING to be
- defined to signal the endianness of the architecture which is
- defined. */
-#ifndef MACHINE_ENCODING
-# error "MACHINE_ENCODING needs to be defined"
-#endif
-#if MACHINE_ENCODING != __BIG_ENDIAN && MACHINE_ENCODING != __LITTLE_ENDIAN
-# error "MACHINE_ENCODING must signal either big or little endian"
-#endif
-
-
-/* We use simple memory access functions in case the hardware allows it.
- The caller has to make sure we don't have alias problems. */
-#if ALLOW_UNALIGNED
-
-# define read_2ubyte_unaligned(Addr) \
- (unlikely (MACHINE_ENCODING != __BYTE_ORDER) \
- ? bswap_16 (*((const uint16_t *) (Addr))) \
- : *((const uint16_t *) (Addr)))
-# define read_2sbyte_unaligned(Addr) \
- (unlikely (MACHINE_ENCODING != __BYTE_ORDER) \
- ? (int16_t) bswap_16 (*((const int16_t *) (Addr))) \
- : *((const int16_t *) (Addr)))
-
-# define read_4ubyte_unaligned_noncvt(Addr) \
- *((const uint32_t *) (Addr))
-# define read_4ubyte_unaligned(Addr) \
- (unlikely (MACHINE_ENCODING != __BYTE_ORDER) \
- ? bswap_32 (*((const uint32_t *) (Addr))) \
- : *((const uint32_t *) (Addr)))
-# define read_4sbyte_unaligned(Addr) \
- (unlikely (MACHINE_ENCODING != __BYTE_ORDER) \
- ? (int32_t) bswap_32 (*((const int32_t *) (Addr))) \
- : *((const int32_t *) (Addr)))
-
-# define read_8ubyte_unaligned(Addr) \
- (unlikely (MACHINE_ENCODING != __BYTE_ORDER) \
- ? bswap_64 (*((const uint64_t *) (Addr))) \
- : *((const uint64_t *) (Addr)))
-# define read_8sbyte_unaligned(Addr) \
- (unlikely (MACHINE_ENCODING != __BYTE_ORDER) \
- ? (int64_t) bswap_64 (*((const int64_t *) (Addr))) \
- : *((const int64_t *) (Addr)))
-
-#else
-
-union unaligned
- {
- void *p;
- uint16_t u2;
- uint32_t u4;
- uint64_t u8;
- int16_t s2;
- int32_t s4;
- int64_t s8;
- } __attribute__ ((packed));
-
-static inline uint16_t
-read_2ubyte_unaligned (const void *p)
-{
- const union unaligned *up = p;
- if (MACHINE_ENCODING != __BYTE_ORDER)
- return bswap_16 (up->u2);
- return up->u2;
-}
-static inline int16_t
-read_2sbyte_unaligned (const void *p)
-{
- const union unaligned *up = p;
- if (MACHINE_ENCODING != __BYTE_ORDER)
- return (int16_t) bswap_16 (up->u2);
- return up->s2;
-}
-
-static inline uint32_t
-read_4ubyte_unaligned_noncvt (const void *p)
-{
- const union unaligned *up = p;
- return up->u4;
-}
-static inline uint32_t
-read_4ubyte_unaligned (const void *p)
-{
- const union unaligned *up = p;
- if (MACHINE_ENCODING != __BYTE_ORDER)
- return bswap_32 (up->u4);
- return up->u4;
-}
-static inline int32_t
-read_4sbyte_unaligned (const void *p)
-{
- const union unaligned *up = p;
- if (MACHINE_ENCODING != __BYTE_ORDER)
- return (int32_t) bswap_32 (up->u4);
- return up->s4;
-}
-
-static inline uint64_t
-read_8ubyte_unaligned (const void *p)
-{
- const union unaligned *up = p;
- if (MACHINE_ENCODING != __BYTE_ORDER)
- return bswap_64 (up->u8);
- return up->u8;
-}
-static inline int64_t
-read_8sbyte_unaligned (const void *p)
-{
- const union unaligned *up = p;
- if (MACHINE_ENCODING != __BYTE_ORDER)
- return (int64_t) bswap_64 (up->u8);
- return up->s8;
-}
-
-#endif /* allow unaligned */
-
-
-#define read_2ubyte_unaligned_inc(Addr) \
- ({ uint16_t t_ = read_2ubyte_unaligned (Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 2); \
- t_; })
-#define read_2sbyte_unaligned_inc(Addr) \
- ({ int16_t t_ = read_2sbyte_unaligned (Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 2); \
- t_; })
-
-#define read_4ubyte_unaligned_inc(Addr) \
- ({ uint32_t t_ = read_4ubyte_unaligned (Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 4); \
- t_; })
-#define read_4sbyte_unaligned_inc(Addr) \
- ({ int32_t t_ = read_4sbyte_unaligned (Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 4); \
- t_; })
-
-#define read_8ubyte_unaligned_inc(Addr) \
- ({ uint64_t t_ = read_8ubyte_unaligned (Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 8); \
- t_; })
-#define read_8sbyte_unaligned_inc(Addr) \
- ({ int64_t t_ = read_8sbyte_unaligned (Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 8); \
- t_; })
-
-#endif /* memory-access.h */
diff --git a/src/libcpu/x86_64_dis.h b/src/libcpu/x86_64_dis.h
deleted file mode 100644
index a0198bed..00000000
--- a/src/libcpu/x86_64_dis.h
+++ /dev/null
@@ -1,1632 +0,0 @@
-#define MNEMONIC_BITS 10
-#define SUFFIX_BITS 3
-#define FCT1_BITS 7
-#define STR1_BITS 4
-#define OFF1_1_BITS 7
-#define OFF1_1_BIAS 3
-#define OFF1_2_BITS 7
-#define OFF1_2_BIAS 4
-#define OFF1_3_BITS 1
-#define OFF1_3_BIAS 7
-#define FCT2_BITS 6
-#define STR2_BITS 2
-#define OFF2_1_BITS 7
-#define OFF2_1_BIAS 5
-#define OFF2_2_BITS 7
-#define OFF2_2_BIAS 4
-#define OFF2_3_BITS 4
-#define OFF2_3_BIAS 7
-#define FCT3_BITS 4
-#define STR3_BITS 1
-#define OFF3_1_BITS 6
-#define OFF3_1_BIAS 10
-#define OFF3_2_BITS 1
-#define OFF3_2_BIAS 21
-
-#include <i386_data.h>
-
-#define suffix_none 0
-#define suffix_w 1
-#define suffix_w0 2
-#define suffix_W 3
-#define suffix_tttn 4
-#define suffix_D 7
-#define suffix_w1 5
-#define suffix_W1 6
-
-static const opfct_t op1_fct[] =
-{
- NULL,
- FCT_MOD$R_M,
- FCT_Mod$R_m,
- FCT_abs,
- FCT_ax,
- FCT_ax$w,
- FCT_ccc,
- FCT_ddd,
- FCT_disp8,
- FCT_ds_bx,
- FCT_ds_si,
- FCT_dx,
- FCT_es_di,
- FCT_freg,
- FCT_imm$s,
- FCT_imm$w,
- FCT_imm16,
- FCT_imm64$w,
- FCT_imm8,
- FCT_imms8,
- FCT_mmxreg,
- FCT_mod$16r_m,
- FCT_mod$64r_m,
- FCT_mod$8r_m,
- FCT_mod$r_m,
- FCT_mod$r_m$w,
- FCT_reg,
- FCT_reg$w,
- FCT_reg64,
- FCT_rel,
- FCT_sel,
- FCT_sreg2,
- FCT_sreg3,
- FCT_string,
- FCT_xmmreg,
-};
-static const char op1_str[] =
- "%ax\0"
- "%cl\0"
- "%rax\0"
- "%st\0"
- "%xmm0\0"
- "*";
-static const uint8_t op1_str_idx[] = {
- 0,
- 4,
- 8,
- 13,
- 17,
- 23,
-};
-static const opfct_t op2_fct[] =
-{
- NULL,
- FCT_MOD$R_M,
- FCT_Mod$R_m,
- FCT_abs,
- FCT_absval,
- FCT_ax$w,
- FCT_ccc,
- FCT_ddd,
- FCT_ds_si,
- FCT_dx,
- FCT_es_di,
- FCT_freg,
- FCT_imm8,
- FCT_mmxreg,
- FCT_mod$64r_m,
- FCT_mod$r_m,
- FCT_mod$r_m$w,
- FCT_oreg,
- FCT_oreg$w,
- FCT_reg,
- FCT_reg$w,
- FCT_reg64,
- FCT_sreg3,
- FCT_string,
- FCT_xmmreg,
-};
-static const char op2_str[] =
- "%rcx\0"
- "%st";
-static const uint8_t op2_str_idx[] = {
- 0,
- 5,
-};
-static const opfct_t op3_fct[] =
-{
- NULL,
- FCT_mmxreg,
- FCT_mod$r_m,
- FCT_reg,
- FCT_string,
- FCT_xmmreg,
-};
-static const char op3_str[] =
- "%rdx";
-static const uint8_t op3_str_idx[] = {
- 0,
-};
-static const struct instr_enc instrtab[] =
-{
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_adc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_add, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addsubpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addsubps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_and, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movslq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 21, .str2 = 0, .off2_1 = 5, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bsf, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bswap, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 26, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bt, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_btc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_btc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_btr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_btr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bts, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_bts, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_call, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 29, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_call, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 22, .str1 = 6, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lcall, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 22, .str1 = 6, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_clc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cli, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_syscall, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_clts, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sysret, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sysenter, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sysexit, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmov, .rep = 0, .repe = 0, .suffix = 4, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmps, .rep = 0, .repe = 1, .suffix = 1, .modrm = 0, .fct1 = 12, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 8, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpxchg, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 15, .off1_2 = 11, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 8, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cpuid, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtdq2pd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpd2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttpd2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_dec, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_div, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_emms, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_enter, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 16, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 12, .str2 = 0, .off2_1 = 19, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fchs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fabs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ftst, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxam, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fld1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldl2t, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldl2e, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldpi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldlg2, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldln2, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldz, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_f2xm1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fyl2x, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fptan, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fpatan, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxtract, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fprem1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdecstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fincstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fprem, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fyl2xp1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsqrt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsincos, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_frndint, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fscale, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsin, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcos, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fadd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fadd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fadd, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fmul, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fmul, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fmul, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsub, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubr, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fst, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fst, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fstp, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldenv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldcw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnstenv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnstcw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxch, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_faddp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fiadd, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmove, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fmulp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fimul, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fisub, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fsubrp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fisubr, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnstsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 1, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fbld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomip, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fbstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fchs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fclex, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_finit, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fwait, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnclex, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmove, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovbe, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovnb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovne, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovnbe, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovnu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcom, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcom, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomp, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcompp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcomip, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fucomi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fucomip, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcos, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdecstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdiv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdiv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdiv, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fidivl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fidiv, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivrp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 2, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivr, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fidivrl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fidivr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fdivrp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 4, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 11, .str2 = 0, .off2_1 = 8, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ffree, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovbe, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ficom, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fcmovu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ficomp, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fild, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fildl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fildll, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fincstp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fninit, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fist, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fistp, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fistpll, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fisttp, .rep = 0, .repe = 0, .suffix = 5, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fisttpll, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fldt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fstpt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fld, .rep = 0, .repe = 0, .suffix = 7, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fucom, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_frstor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fucomp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 13, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnsave, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fnstsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_hlt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_idiv, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_imul, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_imul, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_imul, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 14, .str1 = 0, .off1_1 = 13, .off1_2 = 2, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 3, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_in, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_in, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 11, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 3, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_inc, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ins, .rep = 1, .repe = 0, .suffix = 1, .modrm = 0, .fct1 = 11, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 10, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_int, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_int3, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_invd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_swapgs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_invlpg, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_iret, .rep = 0, .repe = 0, .suffix = 6, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_j, .rep = 0, .repe = 0, .suffix = 4, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_j, .rep = 0, .repe = 0, .suffix = 4, .modrm = 0, .fct1 = 29, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_set, .rep = 0, .repe = 0, .suffix = 4, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_jmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_jmp, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 29, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_jmp, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 22, .str1 = 6, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ljmp, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 30, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 4, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ljmp, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 22, .str1 = 6, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lahf, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lar, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lea, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 5, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_leave, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lfs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lgs, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lgdt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lidt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lldt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lmsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lock, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lods, .rep = 1, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 10, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 3, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_loop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_loope, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_loopne, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 8, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lsl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ltr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 17, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 18, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 3, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 35, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 5, .str1 = 0, .off1_1 = 37, .off1_2 = 3, .off1_3 = 0, .fct2 = 3, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 6, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 21, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 28, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 6, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 7, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 21, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 28, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 7, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 32, .str1 = 0, .off1_1 = 7, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mov, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 22, .str2 = 0, .off2_1 = 5, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movs, .rep = 1, .repe = 0, .suffix = 1, .modrm = 0, .fct1 = 10, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 10, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movsbl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movswl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movzbl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movzwl, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mul, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_neg, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pause, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_popcnt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_not, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_or, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_out, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 5, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 12, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_out, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 5, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 9, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_outs, .rep = 1, .repe = 0, .suffix = 1, .modrm = 0, .fct1 = 10, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 9, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 28, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 3, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 32, .str1 = 0, .off1_1 = 7, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_popf, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 28, .str1 = 0, .off1_1 = 10, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pushq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 28, .str1 = 0, .off1_1 = 2, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 28, .str1 = 0, .off1_1 = 2, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 14, .str1 = 0, .off1_1 = 5, .off1_2 = 2, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 31, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_push, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 32, .str1 = 0, .off1_1 = 7, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pushf, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rdmsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rdpmc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rdtsc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ret, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ret, .rep = 0, .repe = 0, .suffix = 3, .modrm = 0, .fct1 = 16, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lret, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lret, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 16, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rol, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rol, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rol, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ror, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ror, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ror, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rsm, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sahf, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sar, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sar, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sar, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sbb, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_scas, .rep = 0, .repe = 1, .suffix = 0, .modrm = 0, .fct1 = 12, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 3, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_set, .rep = 0, .repe = 0, .suffix = 4, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shl, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 2, .str3 = 0, .off3_1 = 6, .off3_2 = 0, },
- { .mnemonic = MNE_shld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 2, .str3 = 0, .off3_1 = 6, .off3_2 = 0, },
- { .mnemonic = MNE_shr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shr, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_shrd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 2, .str3 = 0, .off3_1 = 6, .off3_2 = 0, },
- { .mnemonic = MNE_shrd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 2, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 2, .str3 = 0, .off3_1 = 6, .off3_2 = 0, },
- { .mnemonic = MNE_vmcall, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmlaunch, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmresume, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmxoff, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmread, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 28, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 14, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmwrite, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 22, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 21, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sgdt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_monitor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 3, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 1, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 4, .str3 = 1, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mwait, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 33, .str1 = 3, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 23, .str2 = 1, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sidt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sldt, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_smsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_stc, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_std, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sti, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_stos, .rep = 1, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 5, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 10, .str2 = 0, .off2_1 = 3, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_str, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sub, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_test, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_test, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_test, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ud2a, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_verr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_verw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 21, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_wbinvd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetch, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetchw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 23, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetchnta, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetcht0, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetcht1, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_prefetcht2, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_nop, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_wrmsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xadd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 15, .off1_2 = 11, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 8, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xchg, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xchg, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 4, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 17, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xlat, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 9, .str1 = 0, .off1_1 = 5, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 27, .str1 = 0, .off1_1 = 7, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 25, .str1 = 0, .off1_1 = 5, .off1_2 = 9, .off1_3 = 0, .fct2 = 20, .str2 = 0, .off2_1 = 5, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 15, .str1 = 0, .off1_1 = 5, .off1_2 = 3, .off1_3 = 0, .fct2 = 5, .str2 = 0, .off2_1 = 11, .off2_2 = 3, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 15, .str1 = 0, .off1_1 = 13, .off1_2 = 3, .off1_3 = 0, .fct2 = 16, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xor, .rep = 0, .repe = 0, .suffix = 1, .modrm = 1, .fct1 = 19, .str1 = 0, .off1_1 = 13, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 3, .off2_2 = 9, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_emms, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pand, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pand, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pandn, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pandn, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaddwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaddwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_por, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_por, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pxor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pxor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpeqps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpltps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpleps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpunordps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpneqps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpnltps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpnleps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpordps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpeqss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpltss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpless, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpunordss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpneqss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpnltss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpnless, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cmpordss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxrstor, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_fxsave, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ldmxcsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_stmxcsr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movupd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movups, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movupd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movups, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movddup, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movsldup, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhlps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhlpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhlps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_unpcklpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_unpcklps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_unpckhpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_unpckhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movshdup, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlhpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movlhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movhps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movapd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movaps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movapd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movaps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtsi2sd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtsi2ss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpi2pd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpi2ps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movntpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movntps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttsd2si, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttss2si, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttpd2pi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttps2pi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpd2pi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtsd2si, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtss2si, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtps2pi, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ucomisd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ucomiss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_comisd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_comiss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_getsec, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movmskpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movmskps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sqrtpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sqrtsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sqrtss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sqrtps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rsqrtss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rsqrtps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcpss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_rcpps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_andnps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_orpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_orps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xorpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_xorps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_addps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mulsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mulss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mulpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mulps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtsd2ss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtss2sd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtpd2ps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtps2pd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtps2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvttps2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_cvtdq2ps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_subsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_subss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_subpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_subps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_minsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_minss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_minpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_minps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_divsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_divss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_divpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_divps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maxsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maxss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maxpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maxps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packsswb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packsswb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packuswb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packuswb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packssdw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_packssdw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpcklqdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_punpckhqdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdqa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdqu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pshufd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pshuflw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pshufhw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pshufw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 1, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 1, .str3 = 0, .off3_1 = 8, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_haddpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_haddps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_hsubpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_hsubps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdqa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdqu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 1, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movnti, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 26, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pinsrw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pinsrw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 1, .str3 = 0, .off3_1 = 8, .off3_2 = 0, },
- { .mnemonic = MNE_pextrw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 3, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_pextrw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 3, .str3 = 0, .off3_1 = 8, .off3_2 = 0, },
- { .mnemonic = MNE_shufpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_shufps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 8, .off3_2 = 0, },
- { .mnemonic = MNE_psrlw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmullw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmullw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movdq2q, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movq2dq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 20, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovmskb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovmskb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 20, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 19, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubusb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubusb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubusw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubusw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddusb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddusb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddusw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddusw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxub, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pavgb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pavgb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psraw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psraw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pavgw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pavgw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movntdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 34, .str1 = 0, .off1_1 = 23, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_movntq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 20, .str1 = 0, .off1_1 = 15, .off1_2 = 0, .off1_3 = 0, .fct2 = 1, .str2 = 0, .off2_1 = 11, .off2_2 = 17, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lddqu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmuludq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmuludq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psadbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psadbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maskmovdqu, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 34, .str1 = 0, .off1_1 = 26, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_maskmovq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 20, .str1 = 0, .off1_1 = 18, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psubq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_paddd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pshufb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pshufb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phaddsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaddubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaddubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phsubsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psignd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhrsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulhrsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pabsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 21, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_palignr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_palignr, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 1, .str2 = 0, .off2_1 = 19, .off2_2 = 25, .off2_3 = 0, .fct3 = 1, .str3 = 0, .off3_1 = 16, .off3_2 = 0, },
- { .mnemonic = MNE_vmclear, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmxon, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 21, .off1_2 = 25, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmptrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_vmptrst, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psraw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psraw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrad, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrlq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psrldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_psllq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 21, .off1_2 = 0, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 16, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pslldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 18, .str1 = 0, .off1_1 = 29, .off1_2 = 0, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 24, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_lfence, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mfence, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_sfence, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 0, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_clflush, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 24, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_INVALID, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 1, .str1 = 0, .off1_1 = 13, .off1_2 = 17, .off1_3 = 0, .fct2 = 13, .str2 = 0, .off2_1 = 13, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_blendps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_blendpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_blendvps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 5, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_blendvpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 5, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_dpps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_dppd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_insertps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_movntdqa, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_mpsadbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_packusdw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pblendvb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 33, .str1 = 5, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pblendw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpeqq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpestri, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpestrm, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpistri, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpistrm, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pcmpgtq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_phminposuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pinsrb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pinsrd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 15, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxud, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmaxuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminsb, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminud, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pminuw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxbd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxbq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxwq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovsxdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxbw, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxbd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxbq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxwd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxwq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmovzxdq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmuldq, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_pmulld, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_ptest, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 2, .str1 = 0, .off1_1 = 29, .off1_2 = 33, .off1_3 = 0, .fct2 = 24, .str2 = 0, .off2_1 = 29, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
- { .mnemonic = MNE_roundps, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_roundpd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_roundss, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_roundsd, .rep = 0, .repe = 0, .suffix = 0, .modrm = 1, .fct1 = 18, .str1 = 0, .off1_1 = 37, .off1_2 = 0, .off1_3 = 0, .fct2 = 2, .str2 = 0, .off2_1 = 27, .off2_2 = 33, .off2_3 = 0, .fct3 = 5, .str3 = 0, .off3_1 = 24, .off3_2 = 0, },
- { .mnemonic = MNE_pop, .rep = 0, .repe = 0, .suffix = 0, .modrm = 0, .fct1 = 31, .str1 = 0, .off1_1 = 0, .off1_2 = 0, .off1_3 = 0, .fct2 = 0, .str2 = 0, .off2_1 = 0, .off2_2 = 0, .off2_3 = 0, .fct3 = 0, .str3 = 0, .off3_1 = 0, .off3_2 = 0, },
-};
-static const uint8_t match_data[] =
-{
- 0x1, 0xfe, 0x14,
- 0x2, 0xfe, 0x80, 0x38, 0x10,
- 0x2, 0xfe, 0x82, 0x38, 0x10,
- 0x2, 0xfe, 0x10, 0, 0,
- 0x2, 0xfe, 0x12, 0, 0,
- 0x1, 0xfe, 0x4,
- 0x2, 0xfe, 0x80, 0x38, 0,
- 0x12, 0x83, 0x38, 0,
- 0x2, 0xfe, 0, 0, 0,
- 0x2, 0xfe, 0x2, 0, 0,
- 0x34, 0x66, 0xf, 0xd0, 0, 0,
- 0x34, 0xf2, 0xf, 0xd0, 0, 0,
- 0x1, 0xfe, 0x24,
- 0x2, 0xfe, 0x80, 0x38, 0x20,
- 0x2, 0xfe, 0x82, 0x38, 0x20,
- 0x2, 0xfe, 0x20, 0, 0,
- 0x2, 0xfe, 0x22, 0, 0,
- 0x34, 0x66, 0xf, 0x54, 0, 0,
- 0x23, 0xf, 0x54, 0, 0,
- 0x34, 0x66, 0xf, 0x55, 0, 0,
- 0x23, 0xf, 0x55, 0, 0,
- 0x12, 0x63, 0, 0,
- 0x23, 0xf, 0xbc, 0, 0,
- 0x23, 0xf, 0xbd, 0, 0,
- 0x12, 0xf, 0xf8, 0xc8,
- 0x23, 0xf, 0xa3, 0, 0,
- 0x23, 0xf, 0xba, 0x38, 0x20,
- 0x23, 0xf, 0xbb, 0, 0,
- 0x23, 0xf, 0xba, 0x38, 0x38,
- 0x23, 0xf, 0xb3, 0, 0,
- 0x23, 0xf, 0xba, 0x38, 0x30,
- 0x23, 0xf, 0xab, 0, 0,
- 0x23, 0xf, 0xba, 0x38, 0x28,
- 0x11, 0xe8,
- 0x12, 0xff, 0x38, 0x10,
- 0x12, 0xff, 0x38, 0x18,
- 0x11, 0x98,
- 0x11, 0x99,
- 0x11, 0xf8,
- 0x11, 0xfc,
- 0x11, 0xfa,
- 0x22, 0xf, 0x5,
- 0x22, 0xf, 0x6,
- 0x22, 0xf, 0x7,
- 0x22, 0xf, 0x34,
- 0x22, 0xf, 0x35,
- 0x11, 0xf5,
- 0x13, 0xf, 0xf0, 0x40, 0, 0,
- 0x1, 0xfe, 0x3c,
- 0x2, 0xfe, 0x80, 0x38, 0x38,
- 0x12, 0x83, 0x38, 0x38,
- 0x2, 0xfe, 0x38, 0, 0,
- 0x2, 0xfe, 0x3a, 0, 0,
- 0x34, 0xf2, 0xf, 0xc2, 0, 0,
- 0x34, 0xf3, 0xf, 0xc2, 0, 0,
- 0x34, 0x66, 0xf, 0xc2, 0, 0,
- 0x23, 0xf, 0xc2, 0, 0,
- 0x1, 0xfe, 0xa6,
- 0x13, 0xf, 0xfe, 0xb0, 0, 0,
- 0x23, 0xf, 0xc7, 0x38, 0x8,
- 0x22, 0xf, 0xa2,
- 0x34, 0xf3, 0xf, 0xe6, 0, 0,
- 0x34, 0xf2, 0xf, 0xe6, 0, 0,
- 0x34, 0x66, 0xf, 0xe6, 0, 0,
- 0x2, 0xfe, 0xfe, 0x38, 0x8,
- 0x2, 0xfe, 0xf6, 0x38, 0x30,
- 0x22, 0xf, 0x77,
- 0x11, 0xc8,
- 0x22, 0xd9, 0xd0,
- 0x22, 0xd9, 0xe0,
- 0x22, 0xd9, 0xe1,
- 0x22, 0xd9, 0xe4,
- 0x22, 0xd9, 0xe5,
- 0x22, 0xd9, 0xe8,
- 0x22, 0xd9, 0xe9,
- 0x22, 0xd9, 0xea,
- 0x22, 0xd9, 0xeb,
- 0x22, 0xd9, 0xec,
- 0x22, 0xd9, 0xed,
- 0x22, 0xd9, 0xee,
- 0x22, 0xd9, 0xf0,
- 0x22, 0xd9, 0xf1,
- 0x22, 0xd9, 0xf2,
- 0x22, 0xd9, 0xf3,
- 0x22, 0xd9, 0xf4,
- 0x22, 0xd9, 0xf5,
- 0x22, 0xd9, 0xf6,
- 0x22, 0xd9, 0xf7,
- 0x22, 0xd9, 0xf8,
- 0x22, 0xd9, 0xf9,
- 0x22, 0xd9, 0xfa,
- 0x22, 0xd9, 0xfb,
- 0x22, 0xd9, 0xfc,
- 0x22, 0xd9, 0xfd,
- 0x22, 0xd9, 0xfe,
- 0x22, 0xd9, 0xff,
- 0x12, 0xd8, 0xf8, 0xc0,
- 0x12, 0xdc, 0xf8, 0xc0,
- 0x2, 0xfb, 0xd8, 0x38, 0,
- 0x12, 0xd8, 0xf8, 0xc8,
- 0x12, 0xdc, 0xf8, 0xc8,
- 0x2, 0xfb, 0xd8, 0x38, 0x8,
- 0x12, 0xd8, 0xf8, 0xe0,
- 0x12, 0xdc, 0xf8, 0xe0,
- 0x2, 0xfb, 0xd8, 0x38, 0x20,
- 0x12, 0xd8, 0xf8, 0xe8,
- 0x12, 0xdc, 0xf8, 0xe8,
- 0x2, 0xfb, 0xd8, 0x38, 0x28,
- 0x12, 0xdd, 0xf8, 0xd0,
- 0x2, 0xfb, 0xd9, 0x38, 0x10,
- 0x12, 0xdd, 0xf8, 0xd8,
- 0x2, 0xfb, 0xd9, 0x38, 0x18,
- 0x12, 0xd9, 0x38, 0x20,
- 0x12, 0xd9, 0x38, 0x28,
- 0x12, 0xd9, 0x38, 0x30,
- 0x12, 0xd9, 0x38, 0x38,
- 0x12, 0xd9, 0xf8, 0xc8,
- 0x12, 0xde, 0xf8, 0xc0,
- 0x12, 0xda, 0xf8, 0xc0,
- 0x2, 0xfb, 0xda, 0x38, 0,
- 0x12, 0xda, 0xf8, 0xc8,
- 0x12, 0xde, 0xf8, 0xc8,
- 0x2, 0xfb, 0xda, 0x38, 0x8,
- 0x12, 0xde, 0xf8, 0xe0,
- 0x2, 0xfb, 0xda, 0x38, 0x20,
- 0x12, 0xde, 0xf8, 0xe8,
- 0x2, 0xfb, 0xda, 0x38, 0x28,
- 0x22, 0xdf, 0xe0,
- 0x12, 0xdf, 0x38, 0x20,
- 0x12, 0xdf, 0xf8, 0xf0,
- 0x12, 0xdf, 0x38, 0x30,
- 0x22, 0xd9, 0xe0,
- 0x33, 0x9b, 0xdb, 0xe2,
- 0x33, 0x9b, 0xdb, 0xe3,
- 0x11, 0x9b,
- 0x22, 0xdb, 0xe2,
- 0x12, 0xda, 0xf8, 0xc0,
- 0x12, 0xda, 0xf8, 0xc8,
- 0x12, 0xda, 0xf8, 0xd0,
- 0x12, 0xda, 0xf8, 0xd8,
- 0x12, 0xdb, 0xf8, 0xc0,
- 0x12, 0xdb, 0xf8, 0xc8,
- 0x12, 0xdb, 0xf8, 0xd0,
- 0x12, 0xdb, 0xf8, 0xd8,
- 0x12, 0xd8, 0xf8, 0xd0,
- 0x2, 0xfb, 0xd8, 0x38, 0x10,
- 0x12, 0xd8, 0xf8, 0xd8,
- 0x2, 0xfb, 0xd8, 0x38, 0x18,
- 0x22, 0xde, 0xd9,
- 0x12, 0xdb, 0xf8, 0xf0,
- 0x12, 0xdf, 0xf8, 0xf0,
- 0x12, 0xdb, 0xf8, 0xe8,
- 0x12, 0xdf, 0xf8, 0xe8,
- 0x22, 0xd9, 0xff,
- 0x22, 0xd9, 0xf6,
- 0x12, 0xd8, 0xf8, 0xf0,
- 0x12, 0xdc, 0xf8, 0xf0,
- 0x2, 0xfb, 0xd8, 0x38, 0x30,
- 0x12, 0xda, 0x38, 0x30,
- 0x12, 0xde, 0xf8, 0xf0,
- 0x12, 0xde, 0x38, 0x30,
- 0x12, 0xde, 0xf8, 0xf8,
- 0x12, 0xd8, 0xf8, 0xf8,
- 0x12, 0xdc, 0xf8, 0xf8,
- 0x2, 0xfb, 0xd8, 0x38, 0x38,
- 0x12, 0xda, 0x38, 0x38,
- 0x12, 0xde, 0x38, 0x38,
- 0x12, 0xde, 0xf8, 0xf0,
- 0x12, 0xdd, 0xf8, 0xc0,
- 0x12, 0xda, 0xf8, 0xd0,
- 0x2, 0xfb, 0xda, 0x38, 0x10,
- 0x12, 0xda, 0xf8, 0xd8,
- 0x2, 0xfb, 0xda, 0x38, 0x18,
- 0x12, 0xdf, 0x38, 0,
- 0x12, 0xdb, 0x38, 0,
- 0x12, 0xdf, 0x38, 0x28,
- 0x22, 0xd9, 0xf7,
- 0x22, 0xdb, 0xe3,
- 0x2, 0xfb, 0xdb, 0x38, 0x10,
- 0x2, 0xfb, 0xdb, 0x38, 0x18,
- 0x12, 0xdf, 0x38, 0x38,
- 0x2, 0xfb, 0xdb, 0x38, 0x8,
- 0x12, 0xdd, 0x38, 0x8,
- 0x12, 0xdb, 0x38, 0x28,
- 0x12, 0xdb, 0x38, 0x38,
- 0x12, 0xd9, 0xf8, 0xc0,
- 0x2, 0xfb, 0xd9, 0x38, 0,
- 0x12, 0xdd, 0xf8, 0xe0,
- 0x12, 0xdd, 0x38, 0x20,
- 0x12, 0xdd, 0xf8, 0xe8,
- 0x12, 0xdd, 0x38, 0x30,
- 0x12, 0xdd, 0x38, 0x38,
- 0x11, 0xf4,
- 0x2, 0xfe, 0xf6, 0x38, 0x38,
- 0x2, 0xfe, 0xf6, 0x38, 0x28,
- 0x23, 0xf, 0xaf, 0, 0,
- 0x2, 0xfd, 0x69, 0, 0,
- 0x1, 0xfe, 0xe4,
- 0x1, 0xfe, 0xec,
- 0x2, 0xfe, 0xfe, 0x38, 0,
- 0x1, 0xfe, 0x6c,
- 0x11, 0xcd,
- 0x11, 0xcc,
- 0x22, 0xf, 0x8,
- 0x33, 0xf, 0x1, 0xf8,
- 0x23, 0xf, 0x1, 0x38, 0x38,
- 0x11, 0xcf,
- 0x1, 0xf0, 0x70,
- 0x12, 0xf, 0xf0, 0x80,
- 0x13, 0xf, 0xf0, 0x90, 0x38, 0,
- 0x11, 0xe3,
- 0x11, 0xeb,
- 0x11, 0xe9,
- 0x12, 0xff, 0x38, 0x20,
- 0x11, 0xea,
- 0x12, 0xff, 0x38, 0x28,
- 0x11, 0x9f,
- 0x23, 0xf, 0x2, 0, 0,
- 0x12, 0x8d, 0, 0,
- 0x11, 0xc9,
- 0x23, 0xf, 0xb4, 0, 0,
- 0x23, 0xf, 0xb5, 0, 0,
- 0x23, 0xf, 0x1, 0x38, 0x10,
- 0x23, 0xf, 0x1, 0x38, 0x18,
- 0x23, 0xf, 0, 0x38, 0x10,
- 0x23, 0xf, 0x1, 0x38, 0x30,
- 0x11, 0xf0,
- 0x1, 0xfe, 0xac,
- 0x11, 0xe2,
- 0x11, 0xe1,
- 0x11, 0xe0,
- 0x23, 0xf, 0x3, 0, 0,
- 0x23, 0xf, 0xb2, 0, 0,
- 0x23, 0xf, 0, 0x38, 0x18,
- 0x2, 0xfe, 0x88, 0, 0,
- 0x2, 0xfe, 0x8a, 0, 0,
- 0x2, 0xfe, 0xc6, 0x38, 0,
- 0x1, 0xf0, 0xb0,
- 0x1, 0xfe, 0xa0,
- 0x1, 0xfe, 0xa2,
- 0x23, 0xf, 0x20, 0xc0, 0xc0,
- 0x23, 0xf, 0x22, 0xc0, 0xc0,
- 0x23, 0xf, 0x21, 0xc0, 0xc0,
- 0x23, 0xf, 0x23, 0xc0, 0xc0,
- 0x12, 0x8c, 0, 0,
- 0x12, 0x8e, 0, 0,
- 0x1, 0xfe, 0xa4,
- 0x23, 0xf, 0xbe, 0, 0,
- 0x23, 0xf, 0xbf, 0, 0,
- 0x23, 0xf, 0xb6, 0, 0,
- 0x23, 0xf, 0xb7, 0, 0,
- 0x2, 0xfe, 0xf6, 0x38, 0x20,
- 0x2, 0xfe, 0xf6, 0x38, 0x18,
- 0x22, 0xf3, 0x90,
- 0x11, 0x90,
- 0x34, 0xf3, 0xf, 0xb8, 0, 0,
- 0x2, 0xfe, 0xf6, 0x38, 0x10,
- 0x2, 0xfe, 0x8, 0, 0,
- 0x2, 0xfe, 0xa, 0, 0,
- 0x2, 0xfe, 0x80, 0x38, 0x8,
- 0x2, 0xfe, 0x82, 0x38, 0x8,
- 0x1, 0xfe, 0xc,
- 0x1, 0xfe, 0xe6,
- 0x1, 0xfe, 0xee,
- 0x1, 0xfe, 0x6e,
- 0x12, 0x8f, 0xf8, 0xc0,
- 0x12, 0x8f, 0x38, 0,
- 0x12, 0xf, 0xc7, 0x81,
- 0x11, 0x9d,
- 0x12, 0xff, 0xf8, 0xf0,
- 0x12, 0xff, 0x38, 0x30,
- 0x1, 0xf8, 0x50,
- 0x1, 0xf8, 0x58,
- 0x1, 0xfd, 0x68,
- 0x1, 0xe7, 0x6,
- 0x12, 0xf, 0xc7, 0x80,
- 0x11, 0x9c,
- 0x2, 0xfe, 0xd0, 0x38, 0x10,
- 0x2, 0xfe, 0xd2, 0x38, 0x10,
- 0x2, 0xfe, 0xc0, 0x38, 0x10,
- 0x2, 0xfe, 0xd0, 0x38, 0x18,
- 0x2, 0xfe, 0xd2, 0x38, 0x18,
- 0x2, 0xfe, 0xc0, 0x38, 0x18,
- 0x22, 0xf, 0x32,
- 0x22, 0xf, 0x33,
- 0x22, 0xf, 0x31,
- 0x11, 0xc3,
- 0x11, 0xc2,
- 0x11, 0xcb,
- 0x11, 0xca,
- 0x2, 0xfe, 0xd0, 0x38, 0,
- 0x2, 0xfe, 0xd2, 0x38, 0,
- 0x2, 0xfe, 0xc0, 0x38, 0,
- 0x2, 0xfe, 0xd0, 0x38, 0x8,
- 0x2, 0xfe, 0xd2, 0x38, 0x8,
- 0x2, 0xfe, 0xc0, 0x38, 0x8,
- 0x22, 0xf, 0xaa,
- 0x11, 0x9e,
- 0x2, 0xfe, 0xd0, 0x38, 0x38,
- 0x2, 0xfe, 0xd2, 0x38, 0x38,
- 0x2, 0xfe, 0xc0, 0x38, 0x38,
- 0x2, 0xfe, 0x18, 0, 0,
- 0x2, 0xfe, 0x1a, 0, 0,
- 0x1, 0xfe, 0x1c,
- 0x2, 0xfe, 0x80, 0x38, 0x18,
- 0x2, 0xfe, 0x82, 0x38, 0x18,
- 0x1, 0xfe, 0xae,
- 0x13, 0xf, 0xf0, 0x90, 0x38, 0,
- 0x2, 0xfe, 0xd0, 0x38, 0x20,
- 0x2, 0xfe, 0xd2, 0x38, 0x20,
- 0x2, 0xfe, 0xc0, 0x38, 0x20,
- 0x2, 0xfe, 0xd0, 0x38, 0x28,
- 0x23, 0xf, 0xa4, 0, 0,
- 0x23, 0xf, 0xa5, 0, 0,
- 0x2, 0xfe, 0xd2, 0x38, 0x28,
- 0x2, 0xfe, 0xc0, 0x38, 0x28,
- 0x23, 0xf, 0xac, 0, 0,
- 0x23, 0xf, 0xad, 0, 0,
- 0x33, 0xf, 0x1, 0xc1,
- 0x33, 0xf, 0x1, 0xc2,
- 0x33, 0xf, 0x1, 0xc3,
- 0x33, 0xf, 0x1, 0xc4,
- 0x23, 0xf, 0x78, 0, 0,
- 0x23, 0xf, 0x79, 0, 0,
- 0x23, 0xf, 0x1, 0x38, 0,
- 0x33, 0xf, 0x1, 0xc8,
- 0x33, 0xf, 0x1, 0xc9,
- 0x23, 0xf, 0x1, 0x38, 0x8,
- 0x23, 0xf, 0, 0x38, 0,
- 0x23, 0xf, 0x1, 0x38, 0x20,
- 0x11, 0xf9,
- 0x11, 0xfd,
- 0x11, 0xfb,
- 0x1, 0xfe, 0xaa,
- 0x23, 0xf, 0, 0x38, 0x8,
- 0x2, 0xfe, 0x28, 0, 0,
- 0x2, 0xfe, 0x2a, 0, 0,
- 0x1, 0xfe, 0x2c,
- 0x2, 0xfe, 0x80, 0x38, 0x28,
- 0x2, 0xfe, 0x82, 0x38, 0x28,
- 0x2, 0xfe, 0x84, 0, 0,
- 0x1, 0xfe, 0xa8,
- 0x2, 0xfe, 0xf6, 0x38, 0,
- 0x22, 0xf, 0xb,
- 0x23, 0xf, 0, 0x38, 0x20,
- 0x23, 0xf, 0, 0x38, 0x28,
- 0x22, 0xf, 0x9,
- 0x23, 0xf, 0xd, 0x38, 0,
- 0x23, 0xf, 0xd, 0x38, 0x8,
- 0x23, 0xf, 0x18, 0x38, 0,
- 0x23, 0xf, 0x18, 0x38, 0x8,
- 0x23, 0xf, 0x18, 0x38, 0x10,
- 0x23, 0xf, 0x18, 0x38, 0x18,
- 0x23, 0xf, 0x1f, 0, 0,
- 0x22, 0xf, 0x30,
- 0x13, 0xf, 0xfe, 0xc0, 0, 0,
- 0x2, 0xfe, 0x86, 0, 0,
- 0x1, 0xf8, 0x90,
- 0x11, 0xd7,
- 0x2, 0xfe, 0x30, 0, 0,
- 0x2, 0xfe, 0x32, 0, 0,
- 0x1, 0xfe, 0x34,
- 0x2, 0xfe, 0x80, 0x38, 0x30,
- 0x2, 0xfe, 0x82, 0x38, 0x30,
- 0x22, 0xf, 0x77,
- 0x34, 0x66, 0xf, 0xdb, 0, 0,
- 0x23, 0xf, 0xdb, 0, 0,
- 0x34, 0x66, 0xf, 0xdf, 0, 0,
- 0x23, 0xf, 0xdf, 0, 0,
- 0x34, 0x66, 0xf, 0xf5, 0, 0,
- 0x23, 0xf, 0xf5, 0, 0,
- 0x34, 0x66, 0xf, 0xeb, 0, 0,
- 0x23, 0xf, 0xeb, 0, 0,
- 0x34, 0x66, 0xf, 0xef, 0, 0,
- 0x23, 0xf, 0xef, 0, 0,
- 0x23, 0xf, 0x55, 0, 0,
- 0x23, 0xf, 0x54, 0, 0,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x1,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x2,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x3,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x4,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x5,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x6,
- 0x24, 0xf, 0xc2, 0, 0, 0xff, 0x7,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x1,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x2,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x3,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x4,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x5,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x6,
- 0x35, 0xf3, 0xf, 0xc2, 0, 0, 0xff, 0x7,
- 0x23, 0xf, 0xae, 0x38, 0x8,
- 0x23, 0xf, 0xae, 0x38, 0,
- 0x23, 0xf, 0xae, 0x38, 0x10,
- 0x23, 0xf, 0xae, 0x38, 0x18,
- 0x34, 0xf2, 0xf, 0x10, 0, 0,
- 0x34, 0xf3, 0xf, 0x10, 0, 0,
- 0x34, 0x66, 0xf, 0x10, 0, 0,
- 0x23, 0xf, 0x10, 0, 0,
- 0x34, 0xf2, 0xf, 0x11, 0, 0,
- 0x34, 0xf3, 0xf, 0x11, 0, 0,
- 0x34, 0x66, 0xf, 0x11, 0, 0,
- 0x23, 0xf, 0x11, 0, 0,
- 0x34, 0xf2, 0xf, 0x12, 0, 0,
- 0x34, 0xf3, 0xf, 0x12, 0, 0,
- 0x34, 0x66, 0xf, 0x12, 0, 0,
- 0x23, 0xf, 0x12, 0xc0, 0xc0,
- 0x23, 0xf, 0x12, 0, 0,
- 0x34, 0x66, 0xf, 0x13, 0xc0, 0xc0,
- 0x23, 0xf, 0x13, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0x13, 0, 0,
- 0x23, 0xf, 0x13, 0, 0,
- 0x34, 0x66, 0xf, 0x14, 0, 0,
- 0x23, 0xf, 0x14, 0, 0,
- 0x34, 0x66, 0xf, 0x15, 0, 0,
- 0x23, 0xf, 0x15, 0, 0,
- 0x34, 0xf3, 0xf, 0x16, 0, 0,
- 0x34, 0x66, 0xf, 0x16, 0, 0,
- 0x23, 0xf, 0x16, 0xc0, 0xc0,
- 0x23, 0xf, 0x16, 0, 0,
- 0x34, 0x66, 0xf, 0x17, 0xc0, 0xc0,
- 0x23, 0xf, 0x17, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0x17, 0, 0,
- 0x23, 0xf, 0x17, 0, 0,
- 0x34, 0x66, 0xf, 0x28, 0, 0,
- 0x23, 0xf, 0x28, 0, 0,
- 0x34, 0x66, 0xf, 0x29, 0, 0,
- 0x23, 0xf, 0x29, 0, 0,
- 0x34, 0xf2, 0xf, 0x2a, 0, 0,
- 0x34, 0xf3, 0xf, 0x2a, 0, 0,
- 0x34, 0x66, 0xf, 0x2a, 0, 0,
- 0x23, 0xf, 0x2a, 0, 0,
- 0x34, 0x66, 0xf, 0x2b, 0, 0,
- 0x23, 0xf, 0x2b, 0, 0,
- 0x34, 0xf2, 0xf, 0x2c, 0, 0,
- 0x34, 0xf3, 0xf, 0x2c, 0, 0,
- 0x34, 0x66, 0xf, 0x2c, 0, 0,
- 0x23, 0xf, 0x2c, 0, 0,
- 0x34, 0x66, 0xf, 0x2d, 0, 0,
- 0x34, 0xf2, 0xf, 0x2d, 0, 0,
- 0x34, 0xf3, 0xf, 0x2d, 0, 0,
- 0x23, 0xf, 0x2d, 0, 0,
- 0x34, 0x66, 0xf, 0x2e, 0, 0,
- 0x23, 0xf, 0x2e, 0, 0,
- 0x34, 0x66, 0xf, 0x2f, 0, 0,
- 0x23, 0xf, 0x2f, 0, 0,
- 0x22, 0xf, 0x37,
- 0x34, 0x66, 0xf, 0x50, 0xc0, 0xc0,
- 0x23, 0xf, 0x50, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0x51, 0, 0,
- 0x34, 0xf2, 0xf, 0x51, 0, 0,
- 0x34, 0xf3, 0xf, 0x51, 0, 0,
- 0x23, 0xf, 0x51, 0, 0,
- 0x34, 0xf3, 0xf, 0x52, 0, 0,
- 0x23, 0xf, 0x52, 0, 0,
- 0x34, 0xf3, 0xf, 0x53, 0, 0,
- 0x23, 0xf, 0x53, 0, 0,
- 0x34, 0x66, 0xf, 0x54, 0, 0,
- 0x23, 0xf, 0x54, 0, 0,
- 0x34, 0x66, 0xf, 0x55, 0, 0,
- 0x23, 0xf, 0x55, 0, 0,
- 0x34, 0x66, 0xf, 0x56, 0, 0,
- 0x23, 0xf, 0x56, 0, 0,
- 0x34, 0x66, 0xf, 0x57, 0, 0,
- 0x23, 0xf, 0x57, 0, 0,
- 0x34, 0xf2, 0xf, 0x58, 0, 0,
- 0x34, 0xf3, 0xf, 0x58, 0, 0,
- 0x34, 0x66, 0xf, 0x58, 0, 0,
- 0x23, 0xf, 0x58, 0, 0,
- 0x34, 0xf2, 0xf, 0x59, 0, 0,
- 0x34, 0xf3, 0xf, 0x59, 0, 0,
- 0x34, 0x66, 0xf, 0x59, 0, 0,
- 0x23, 0xf, 0x59, 0, 0,
- 0x34, 0xf2, 0xf, 0x5a, 0, 0,
- 0x34, 0xf3, 0xf, 0x5a, 0, 0,
- 0x34, 0x66, 0xf, 0x5a, 0, 0,
- 0x23, 0xf, 0x5a, 0, 0,
- 0x34, 0x66, 0xf, 0x5b, 0, 0,
- 0x34, 0xf3, 0xf, 0x5b, 0, 0,
- 0x23, 0xf, 0x5b, 0, 0,
- 0x34, 0xf2, 0xf, 0x5c, 0, 0,
- 0x34, 0xf3, 0xf, 0x5c, 0, 0,
- 0x34, 0x66, 0xf, 0x5c, 0, 0,
- 0x23, 0xf, 0x5c, 0, 0,
- 0x34, 0xf2, 0xf, 0x5d, 0, 0,
- 0x34, 0xf3, 0xf, 0x5d, 0, 0,
- 0x34, 0x66, 0xf, 0x5d, 0, 0,
- 0x23, 0xf, 0x5d, 0, 0,
- 0x34, 0xf2, 0xf, 0x5e, 0, 0,
- 0x34, 0xf3, 0xf, 0x5e, 0, 0,
- 0x34, 0x66, 0xf, 0x5e, 0, 0,
- 0x23, 0xf, 0x5e, 0, 0,
- 0x34, 0xf2, 0xf, 0x5f, 0, 0,
- 0x34, 0xf3, 0xf, 0x5f, 0, 0,
- 0x34, 0x66, 0xf, 0x5f, 0, 0,
- 0x23, 0xf, 0x5f, 0, 0,
- 0x34, 0x66, 0xf, 0x60, 0, 0,
- 0x23, 0xf, 0x60, 0, 0,
- 0x34, 0x66, 0xf, 0x61, 0, 0,
- 0x23, 0xf, 0x61, 0, 0,
- 0x34, 0x66, 0xf, 0x62, 0, 0,
- 0x23, 0xf, 0x62, 0, 0,
- 0x34, 0x66, 0xf, 0x63, 0, 0,
- 0x23, 0xf, 0x63, 0, 0,
- 0x34, 0x66, 0xf, 0x64, 0, 0,
- 0x23, 0xf, 0x64, 0, 0,
- 0x34, 0x66, 0xf, 0x65, 0, 0,
- 0x23, 0xf, 0x65, 0, 0,
- 0x34, 0x66, 0xf, 0x66, 0, 0,
- 0x23, 0xf, 0x66, 0, 0,
- 0x34, 0x66, 0xf, 0x67, 0, 0,
- 0x23, 0xf, 0x67, 0, 0,
- 0x34, 0x66, 0xf, 0x68, 0, 0,
- 0x23, 0xf, 0x68, 0, 0,
- 0x34, 0x66, 0xf, 0x69, 0, 0,
- 0x23, 0xf, 0x69, 0, 0,
- 0x34, 0x66, 0xf, 0x6a, 0, 0,
- 0x23, 0xf, 0x6a, 0, 0,
- 0x34, 0x66, 0xf, 0x6b, 0, 0,
- 0x23, 0xf, 0x6b, 0, 0,
- 0x34, 0x66, 0xf, 0x6c, 0, 0,
- 0x34, 0x66, 0xf, 0x6d, 0, 0,
- 0x34, 0x66, 0xf, 0x6e, 0, 0,
- 0x23, 0xf, 0x6e, 0, 0,
- 0x34, 0x66, 0xf, 0x6f, 0, 0,
- 0x34, 0xf3, 0xf, 0x6f, 0, 0,
- 0x23, 0xf, 0x6f, 0, 0,
- 0x34, 0x66, 0xf, 0x70, 0, 0,
- 0x34, 0xf2, 0xf, 0x70, 0, 0,
- 0x34, 0xf3, 0xf, 0x70, 0, 0,
- 0x23, 0xf, 0x70, 0, 0,
- 0x34, 0x66, 0xf, 0x74, 0, 0,
- 0x23, 0xf, 0x74, 0, 0,
- 0x34, 0x66, 0xf, 0x75, 0, 0,
- 0x23, 0xf, 0x75, 0, 0,
- 0x34, 0x66, 0xf, 0x76, 0, 0,
- 0x23, 0xf, 0x76, 0, 0,
- 0x34, 0x66, 0xf, 0x7c, 0, 0,
- 0x34, 0xf2, 0xf, 0x7c, 0, 0,
- 0x34, 0x66, 0xf, 0x7d, 0, 0,
- 0x34, 0xf2, 0xf, 0x7d, 0, 0,
- 0x34, 0x66, 0xf, 0x7e, 0, 0,
- 0x34, 0xf3, 0xf, 0x7e, 0, 0,
- 0x23, 0xf, 0x7e, 0, 0,
- 0x34, 0x66, 0xf, 0x7f, 0, 0,
- 0x34, 0xf3, 0xf, 0x7f, 0, 0,
- 0x23, 0xf, 0x7f, 0, 0,
- 0x23, 0xf, 0xc3, 0, 0,
- 0x34, 0x66, 0xf, 0xc4, 0, 0,
- 0x23, 0xf, 0xc4, 0, 0,
- 0x34, 0x66, 0xf, 0xc5, 0xc0, 0xc0,
- 0x23, 0xf, 0xc5, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0xc6, 0, 0,
- 0x23, 0xf, 0xc6, 0, 0,
- 0x34, 0x66, 0xf, 0xd1, 0, 0,
- 0x23, 0xf, 0xd1, 0, 0,
- 0x34, 0x66, 0xf, 0xd2, 0, 0,
- 0x23, 0xf, 0xd2, 0, 0,
- 0x34, 0x66, 0xf, 0xd3, 0, 0,
- 0x23, 0xf, 0xd3, 0, 0,
- 0x34, 0x66, 0xf, 0xd4, 0, 0,
- 0x23, 0xf, 0xd4, 0, 0,
- 0x34, 0x66, 0xf, 0xd5, 0, 0,
- 0x23, 0xf, 0xd5, 0, 0,
- 0x34, 0x66, 0xf, 0xd6, 0, 0,
- 0x34, 0xf2, 0xf, 0xd6, 0xc0, 0xc0,
- 0x34, 0xf3, 0xf, 0xd6, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0xd7, 0xc0, 0xc0,
- 0x23, 0xf, 0xd7, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0xd8, 0, 0,
- 0x23, 0xf, 0xd8, 0, 0,
- 0x34, 0x66, 0xf, 0xd9, 0, 0,
- 0x23, 0xf, 0xd9, 0, 0,
- 0x34, 0x66, 0xf, 0xda, 0, 0,
- 0x23, 0xf, 0xda, 0, 0,
- 0x34, 0x66, 0xf, 0xdc, 0, 0,
- 0x23, 0xf, 0xdc, 0, 0,
- 0x34, 0x66, 0xf, 0xdd, 0, 0,
- 0x23, 0xf, 0xdd, 0, 0,
- 0x34, 0x66, 0xf, 0xde, 0, 0,
- 0x23, 0xf, 0xde, 0, 0,
- 0x34, 0x66, 0xf, 0xe0, 0, 0,
- 0x23, 0xf, 0xe0, 0, 0,
- 0x34, 0x66, 0xf, 0xe1, 0, 0,
- 0x23, 0xf, 0xe1, 0, 0,
- 0x34, 0x66, 0xf, 0xe2, 0, 0,
- 0x23, 0xf, 0xe2, 0, 0,
- 0x34, 0x66, 0xf, 0xe3, 0, 0,
- 0x23, 0xf, 0xe3, 0, 0,
- 0x34, 0x66, 0xf, 0xe4, 0, 0,
- 0x23, 0xf, 0xe4, 0, 0,
- 0x34, 0x66, 0xf, 0xe5, 0, 0,
- 0x23, 0xf, 0xe5, 0, 0,
- 0x34, 0x66, 0xf, 0xe7, 0, 0,
- 0x23, 0xf, 0xe7, 0, 0,
- 0x34, 0x66, 0xf, 0xe8, 0, 0,
- 0x23, 0xf, 0xe8, 0, 0,
- 0x34, 0x66, 0xf, 0xe9, 0, 0,
- 0x23, 0xf, 0xe9, 0, 0,
- 0x34, 0x66, 0xf, 0xea, 0, 0,
- 0x23, 0xf, 0xea, 0, 0,
- 0x34, 0x66, 0xf, 0xec, 0, 0,
- 0x23, 0xf, 0xec, 0, 0,
- 0x34, 0x66, 0xf, 0xed, 0, 0,
- 0x23, 0xf, 0xed, 0, 0,
- 0x34, 0x66, 0xf, 0xee, 0, 0,
- 0x23, 0xf, 0xee, 0, 0,
- 0x34, 0xf2, 0xf, 0xf0, 0, 0,
- 0x34, 0x66, 0xf, 0xf1, 0, 0,
- 0x23, 0xf, 0xf1, 0, 0,
- 0x34, 0x66, 0xf, 0xf2, 0, 0,
- 0x23, 0xf, 0xf2, 0, 0,
- 0x34, 0x66, 0xf, 0xf3, 0, 0,
- 0x23, 0xf, 0xf3, 0, 0,
- 0x34, 0x66, 0xf, 0xf4, 0, 0,
- 0x23, 0xf, 0xf4, 0, 0,
- 0x34, 0x66, 0xf, 0xf6, 0, 0,
- 0x23, 0xf, 0xf6, 0, 0,
- 0x34, 0x66, 0xf, 0xf7, 0xc0, 0xc0,
- 0x23, 0xf, 0xf7, 0xc0, 0xc0,
- 0x34, 0x66, 0xf, 0xf8, 0, 0,
- 0x23, 0xf, 0xf8, 0, 0,
- 0x34, 0x66, 0xf, 0xf9, 0, 0,
- 0x23, 0xf, 0xf9, 0, 0,
- 0x34, 0x66, 0xf, 0xfa, 0, 0,
- 0x23, 0xf, 0xfa, 0, 0,
- 0x34, 0x66, 0xf, 0xfb, 0, 0,
- 0x23, 0xf, 0xfb, 0, 0,
- 0x34, 0x66, 0xf, 0xfc, 0, 0,
- 0x23, 0xf, 0xfc, 0, 0,
- 0x34, 0x66, 0xf, 0xfd, 0, 0,
- 0x23, 0xf, 0xfd, 0, 0,
- 0x34, 0x66, 0xf, 0xfe, 0, 0,
- 0x23, 0xf, 0xfe, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0, 0, 0,
- 0x34, 0xf, 0x38, 0, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x1, 0, 0,
- 0x34, 0xf, 0x38, 0x1, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x2, 0, 0,
- 0x34, 0xf, 0x38, 0x2, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3, 0, 0,
- 0x34, 0xf, 0x38, 0x3, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x4, 0, 0,
- 0x34, 0xf, 0x38, 0x4, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x5, 0, 0,
- 0x34, 0xf, 0x38, 0x5, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x6, 0, 0,
- 0x34, 0xf, 0x38, 0x6, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x7, 0, 0,
- 0x34, 0xf, 0x38, 0x7, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x8, 0, 0,
- 0x34, 0xf, 0x38, 0x8, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x9, 0, 0,
- 0x34, 0xf, 0x38, 0x9, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0xa, 0, 0,
- 0x34, 0xf, 0x38, 0xa, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0xb, 0, 0,
- 0x34, 0xf, 0x38, 0xb, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x1c, 0, 0,
- 0x34, 0xf, 0x38, 0x1c, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x1d, 0, 0,
- 0x34, 0xf, 0x38, 0x1d, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x1e, 0, 0,
- 0x34, 0xf, 0x38, 0x1e, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xf, 0, 0,
- 0x34, 0xf, 0x3a, 0xf, 0, 0,
- 0x34, 0x66, 0xf, 0xc7, 0x38, 0x30,
- 0x34, 0xf3, 0xf, 0xc7, 0x38, 0x30,
- 0x23, 0xf, 0xc7, 0x38, 0x30,
- 0x23, 0xf, 0xc7, 0x38, 0x38,
- 0x34, 0x66, 0xf, 0x71, 0xf8, 0xd0,
- 0x23, 0xf, 0x71, 0xf8, 0xd0,
- 0x34, 0x66, 0xf, 0x71, 0xf8, 0xe0,
- 0x23, 0xf, 0x71, 0xf8, 0xe0,
- 0x34, 0x66, 0xf, 0x71, 0xf8, 0xf0,
- 0x23, 0xf, 0x71, 0xf8, 0xf0,
- 0x34, 0x66, 0xf, 0x72, 0xf8, 0xd0,
- 0x23, 0xf, 0x72, 0xf8, 0xd0,
- 0x34, 0x66, 0xf, 0x72, 0xf8, 0xe0,
- 0x23, 0xf, 0x72, 0xf8, 0xe0,
- 0x34, 0x66, 0xf, 0x72, 0xf8, 0xf0,
- 0x23, 0xf, 0x72, 0xf8, 0xf0,
- 0x34, 0x66, 0xf, 0x73, 0xf8, 0xd0,
- 0x23, 0xf, 0x73, 0xf8, 0xd0,
- 0x34, 0x66, 0xf, 0x73, 0xf8, 0xd8,
- 0x34, 0x66, 0xf, 0x73, 0xf8, 0xf0,
- 0x23, 0xf, 0x73, 0xf8, 0xf0,
- 0x34, 0x66, 0xf, 0x73, 0xf8, 0xf8,
- 0x33, 0xf, 0xae, 0xe8,
- 0x33, 0xf, 0xae, 0xf0,
- 0x33, 0xf, 0xae, 0xf8,
- 0x23, 0xf, 0xae, 0x38, 0x38,
- 0x23, 0xf, 0xf, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xc, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xd, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x14, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x15, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x40, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x41, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x21, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x2a, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x42, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x2b, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x10, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xe, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x29, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x61, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x60, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x63, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x62, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x37, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x41, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x20, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x22, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3c, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3d, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3f, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3e, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x38, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x39, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3b, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x3a, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x20, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x21, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x22, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x23, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x24, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x25, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x30, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x31, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x32, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x33, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x34, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x35, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x28, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x40, 0, 0,
- 0x45, 0x66, 0xf, 0x38, 0x17, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x8, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0x9, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xa, 0, 0,
- 0x45, 0x66, 0xf, 0x3a, 0xb, 0, 0,
- 0x1, 0xe7, 0x7,
-};
diff --git a/src/libcpu/x86_64_disasm.c b/src/libcpu/x86_64_disasm.c
deleted file mode 100644
index 947bc94e..00000000
--- a/src/libcpu/x86_64_disasm.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/* Disassembler for x86-64.
- Copyright (C) 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2007.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define i386_disasm x86_64_disasm
-#define DISFILE "x86_64_dis.h"
-#define MNEFILE "x86_64.mnemonics"
-#define X86_64
-#include "i386_disasm.c"
diff --git a/src/libdw/Android.mk b/src/libdw/Android.mk
deleted file mode 100755
index b0a1c99f..00000000
--- a/src/libdw/Android.mk
+++ /dev/null
@@ -1,206 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-LOCAL_PATH := $(call my-dir)
-
-LIBDW_SRC_FILES := \
- cfi.c \
- cie.c \
- dwarf_abbrevhaschildren.c \
- dwarf_abbrev_hash.c \
- dwarf_addrdie.c \
- dwarf_aggregate_size.c \
- dwarf_arrayorder.c \
- dwarf_attr.c \
- dwarf_attr_integrate.c \
- dwarf_begin.c \
- dwarf_begin_elf.c \
- dwarf_bitoffset.c \
- dwarf_bitsize.c \
- dwarf_bytesize.c \
- dwarf_cfi_addrframe.c \
- dwarf_cfi_end.c \
- dwarf_child.c \
- dwarf_cu_die.c \
- dwarf_cu_getdwarf.c \
- dwarf_cuoffset.c \
- dwarf_decl_column.c \
- dwarf_decl_file.c \
- dwarf_decl_line.c \
- dwarf_diecu.c \
- dwarf_diename.c \
- dwarf_dieoffset.c \
- dwarf_end.c \
- dwarf_entry_breakpoints.c \
- dwarf_entrypc.c \
- dwarf_error.c \
- dwarf_filesrc.c \
- dwarf_formaddr.c \
- dwarf_formblock.c \
- dwarf_formflag.c \
- dwarf_formref.c \
- dwarf_formref_die.c \
- dwarf_formsdata.c \
- dwarf_formstring.c \
- dwarf_formudata.c \
- dwarf_frame_cfa.c \
- dwarf_frame_info.c \
- dwarf_frame_register.c \
- dwarf_func_inline.c \
- dwarf_getabbrevattr.c \
- dwarf_getabbrev.c \
- dwarf_getabbrevcode.c \
- dwarf_getabbrevtag.c \
- dwarf_getalt.c \
- dwarf_getarange_addr.c \
- dwarf_getarangeinfo.c \
- dwarf_getaranges.c \
- dwarf_getattrcnt.c \
- dwarf_getattrs.c \
- dwarf_getcfi.c \
- dwarf_getcfi_elf.c \
- dwarf_getelf.c \
- dwarf_getfuncs.c \
- dwarf_getlocation_attr.c \
- dwarf_getlocation.c \
- dwarf_getlocation_die.c \
- dwarf_getlocation_implicit_pointer.c \
- dwarf_getmacros.c \
- dwarf_getpubnames.c \
- dwarf_getscopes.c \
- dwarf_getscopes_die.c \
- dwarf_getscopevar.c \
- dwarf_getsrc_die.c \
- dwarf_getsrcdirs.c \
- dwarf_getsrc_file.c \
- dwarf_getsrcfiles.c \
- dwarf_getsrclines.c \
- dwarf_getstring.c \
- dwarf_hasattr.c \
- dwarf_hasattr_integrate.c \
- dwarf_haschildren.c \
- dwarf_hasform.c \
- dwarf_haspc.c \
- dwarf_highpc.c \
- dwarf_lineaddr.c \
- dwarf_linebeginstatement.c \
- dwarf_lineblock.c \
- dwarf_linecol.c \
- dwarf_linediscriminator.c \
- dwarf_lineendsequence.c \
- dwarf_lineepiloguebegin.c \
- dwarf_lineisa.c \
- dwarf_lineno.c \
- dwarf_lineop_index.c \
- dwarf_lineprologueend.c \
- dwarf_linesrc.c \
- dwarf_lowpc.c \
- dwarf_macro_getparamcnt.c \
- dwarf_macro_getsrcfiles.c \
- dwarf_macro_opcode.c \
- dwarf_macro_param1.c \
- dwarf_macro_param2.c \
- dwarf_macro_param.c \
- dwarf_next_cfi.c \
- dwarf_nextcu.c \
- dwarf_offabbrev.c \
- dwarf_offdie.c \
- dwarf_onearange.c \
- dwarf_onesrcline.c \
- dwarf_peel_type.c \
- dwarf_ranges.c \
- dwarf_setalt.c \
- dwarf_siblingof.c \
- dwarf_sig8_hash.c \
- dwarf_srclang.c \
- dwarf_tag.c \
- dwarf_whatattr.c \
- dwarf_whatform.c \
- fde.c \
- frame-cache.c \
- libdw_alloc.c \
- libdw_findcu.c \
- libdw_form.c \
- libdw_visit_scopes.c \
-
-
-ifeq ($(HOST_OS),linux)
-
-#
-# host libdw
-#
-
-include $(CLEAR_VARS)
-
-# Clang has no nested functions.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBDW_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
- $(LOCAL_PATH)/../libdw \
- $(LOCAL_PATH)/../libelf
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE -D_BSD_SOURCE -DIS_LIBDW
-
-# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
-LOCAL_CFLAGS += -Wno-pointer-arith
-
-LOCAL_MODULE:= libdw
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-LOCAL_STATIC_LIBRARIES := libz
-
-include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif # linux
-
-#
-# target libdw
-#
-
-include $(CLEAR_VARS)
-
-# Clang has no nested functions.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBDW_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
- $(LOCAL_PATH)/../libdw \
- $(LOCAL_PATH)/../libelf
-
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../bionic-fixup
-
-LOCAL_CFLAGS += -include $(LOCAL_PATH)/../../bionic-fixup/AndroidFixup.h
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE -D_BSD_SOURCE -DIS_LIBDW -Werror
-
-# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
-LOCAL_CFLAGS += -Wno-pointer-arith
-
-LOCAL_MODULE_TAGS := eng
-
-LOCAL_MODULE:= libdw
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-LOCAL_STATIC_LIBRARIES := libz
-
-include $(BUILD_STATIC_LIBRARY)
diff --git a/src/libdw/ChangeLog b/src/libdw/ChangeLog
deleted file mode 100644
index abc2d71a..00000000
--- a/src/libdw/ChangeLog
+++ /dev/null
@@ -1,2312 +0,0 @@
-2014-12-18 Ulrich Drepper <drepper@gmail.com>
-
- * Makefile.am: Suppress output of textrel_check command.
-
-2014-12-16 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getsrclines.c (read_srclines): Check diridx is valid under
- DW_LNE_define_file.
-
-2014-12-16 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getpubnames.c (dwarf_getpubnames): Make sure there is enough
- space to read die offset.
-
-2014-12-16 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getsrclines.c (read_srclines): Correct overflow check for
- unit_length.
-
-2014-12-15 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getpubnames.c (get_offsets): Make sure whole unit fall inside
- section data. Set error to DWARF_E_NO_ENTRY if cnt is zero.
- (dwarf_getpubnames): Make sure section data contains string zero
- terminator.
-
-2014-12-16 Mark Wielaard <mjw@redhat.com>
-
- * memory-access.h (__libdw_get_sleb128): Unroll the first step to help
- the compiler optimize for the common single-byte case.
-
-2014-12-15 Josh Stone <jistone@redhat.com>
-
- * memory-access.h (__libdw_max_len_leb128): New.
- (__libdw_get_uleb128): Use __libdw_max_len_leb128.
- (__libdw_get_sleb128): Likewise.
-
-2014-12-14 Mark Wielaard <mjw@redhat.com>
-
- * cfi.c (execute_cfi): Add program bounds checks.
- * dwarf_child.c (__libdw_find_attr): Add attrp bounds checks.
- * dwarf_formblock.c (dwarf_formblock): Call get_uleb128 with endp.
- * dwarf_formref.c (__libdw_formref): Add datap bounds checks.
- * dwarf_formsdata.c (dwarf_formsdata): Likewise.
- * dwarf_formudata.c (dwarf_formudata): Likewise.
- * dwarf_frame_register.c (dwarf_frame_register): Call get_uleb128
- with end of data buf.
- * dwarf_getabbrev.c (__libdw_getabbrev): Add abbrevp bounds checks.
- * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Assume get_uleb128
- call gets enough data.
- * dwarf_getattrs,c (dwarf_getattrs): Call get_uleb128 with endp.
- * dwarf_getlocation.c (store_implicit_value): Call get_uleb128
- with enough data.
- (__libdw_intern_expression): Call get_uleb128/get_sleb128 with
- end_data.
- * dwarf_getmacros.c (get_table_for_offset): Add nforms bounds check.
- * dwarf_getsrclines.c (read_srclines): Bounds check linep and call
- get_uleb128 with lineendp.
- * dwarf_hasattr.c (dwarf_hasattr): Bounds check attrp and call
- get_uleb128 with endp.
- * dwarf_next_cfi.c (dwarf_next_cfi): Bounds check bytes and call
- get_uleb128/get_sleb128 with limit.
- * encoded-value.h (read_encoded_value): Assume get_uleb128 and
- get_sleb128 get called with enough data.
- * fde.c (intern_fde): Call get_uleb128 with instructions_end.
- * libdwP.h (__libdw_dieabbrev): Call get_uleb128 with die->cu->endp.
- * libdw_form.c (__libdw_form_val_compute_len): Call get_uleb128 with
- endp.
- * memory-access.h (__libdw_get_uleb128): Take an extra endp.
- Don't call get_uleb128_step if out of data.
- (__libdw_get_sleb128): Likewise for get_sleb128_step.
-
-2014-12-12 Mark Wielaard <mjw@redhat.com>
-
- * libdwP.h (struct Dwarf): Add fake_loc_cu.
- (cu_data): Removed.
- (DIE_OFFSET_FROM_CU_OFFSET): Don't use cu_data, use cu_sec_idx.
- (__libdw_form_val_compute_len): Drop dbg and endp arguments.
- (__libdw_form_val_len): Likewise.
- * libdw_form.c (__libdw_form_val_compute_len): Likewise.
- * libdw_findcu.c (__libdw_intern_next_unit): Don't use cu_data, use
- the already found data buffer directly.
- * dwarf_begin_elf.c (valid_p): Setup fake_loc_cu.
- * dwarf_end.c (dwarf_end): Free fake_loc_cu.
- * dwarf_child.c (__libdw_find_attr): Call __libdw_form_val_len with
- just cu.
- * dwarf_getattrs.c (dwarf_getattrs): Likewise.
- * dwarf_formblock.c (dwarf_formblock): Add bounds checking.
- * dwarf_getlocation_attr.c (attr_form_cu): New function.
- (dwarf_getlocation_attr): Use attr_form_cu to set result->cu.
- (getlocation): Handle empty blocks immediately.
- * dwarf_getlocation_implicit_pointer.c (empty_cu): New static var.
- (__libdw_empty_loc_attr): Drop cu argument, use empty_cu.
- (dwarf_getlocation_implicit_pointer): Call __libdw_empty_loc_attr with
- one argument.
- * dwarf_getmacros.c (read_macros): Also setup startp and endp for
- fake_cu. Call __libdw_form_val_len with just fake_cu.
- * dwarf_formref_die.c (dwarf_formref_die): Don't use cu_data, get
- datap and size directly from cu startp and endp.
-
-2014-12-11 Mark Wielaard <mjw@redhat.com>
-
- * libdw_findcu.c (__libdw_intern_next_unit): Sanity check offset.
-
-2014-12-13 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getaranges.c (compare_aranges): Make sure Dwarf_Addr
- difference doesn't wrap around before returning as int.
-
-2014-12-11 Josh Stone <jistone@redhat.com>
-
- * dwarf_getsrclines.c (struct linelist): Add sequence.
- (compare_lines): Take linelists, and break ties by sequence.
- (read_srclines): Use linelists for sorting.
- (read_srclines::add_new_line): Set sequence.
-
-2014-12-10 Josh Stone <jistone@redhat.com>
-
- * libdwP.h (Dwarf_CU): Add startp and endp boundaries.
- * libdw_findcu.c (__libdw_intern_next_unit): Set startp and endp.
- * dwarf_child.c (dwarf_child): Use cu->endp.
- * dwarf_cuoffset.c (dwarf_cuoffset): Use cu->startp.
- * dwarf_dieoffset.c (dwarf_dieoffset): Use cu->startp.
- * dwarf_siblingof.c (dwarf_siblingof): Use both.
-
-2014-12-10 Josh Stone <jistone@redhat.com>
-
- * dwarf_hasattr.c (dwarf_hasattr): Just walk abbrev for presence.
-
-2014-12-10 Josh Stone <jistone@redhat.com>
-
- * libdwP.h (__libdw_dieabbrev): New die->abbrev lookup function.
- * dwarf_child.c (__libdw_find_attr, dwarf_child): Use it.
- * dwarf_getattrs.c (dwarf_getattrs): Likewise.
- * dwarf_haschildren.c (dwarf_haschildren): Likewise.
- * dwarf_tag.c (dwarf_tag): Likewise.
-
-2014-12-04 Mark Wielaard <mjw@redhat.com>
-
- * libdwP.h (__libdw_form_val_compute_len): Add endp argument.
- (__libdw_form_val_len): Likewise and check len doesn't overflow.
- * libdw_form.c (__libdw_form_val_compute_len): Likewise.
- * dwarf_child.c (__libdw_find_attr): Call __libdw_form_val_len
- with endp.
- * dwarf_getattrs.c (dwarf_getattrs): Likewise.
- * dwarf_getmacros.c (read_macros): Likewise and check for errors.
-
-2014-12-02 Petr Machata <pmachata@redhat.com>
-
- * dwarf_getmacros.c (token_from_offset, offset_from_token): New
- helper functions.
- (do_dwarf_getmacros_die): Merge into dwarf_getmacros.
- * libdw.h (DWARF_GETMACROS_START): New macro.
-
-2014-11-27 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (libdw.so): Use textrel_check.
-
-2014-11-27 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getcfi_elf.c (getcfi_gnu_eh_frame): Initialize
- search_table_entries and search_table_encoding.
-
-2014-11-24 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getsrclines.c (read_srclines): Check line_range is not zero
- before usage.
-
-2014-11-23 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_attr.c (dwarf_attr): Check __libdw_find_attr return value.
- * dwarf_hasattr.c (dwarf_hasattr): Likewise.
- * dwarf_siblingof.c (dwarf_siblingof): Likewise.
-
-2014-11-23 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getabbrev.c (__libdw_getabbrev): Don't assert on bad DWARF.
- Set libdw errno and return NULL.
-
-2014-11-24 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h (DW_LANG_C_plus_plus_11): Added.
- (DW_LANG_C11): Likewise.
- (DW_LANG_C_plus_plus_14): Likewise.
- * dwarf_aggregate_size.c (array_size): Handle DW_LANG_C11,
- DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14 and DW_LANG_Go
- lower bound.
- * dwarf_getfuncs.c (dwarf_getfuncs): Set c_cu to true for
- DW_LANG_C11.
-
-2014-11-26 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h (DW_AT_noreturn): Added.
-
-2014-11-11 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getsrclines.c (read_srclines): Do address_size comparison
- explicitly as uint8_t.
- (__libdw_getsrclines): Add internal_function to declaration.
-
-2014-09-10 Petr Machata <pmachata@redhat.com>
-
- * dwarf_macro_getparamcnt.c: New file.
- * dwarf_macro_param.c: New file.
- * dwarf_macro_getsrcfiles.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add the new files.
- * libdwP.h (struct files_lines_s): New structure.
- (DWARF_E_INVALID_OPCODE): New enumerator.
- (struct Dwarf): New fields macro_ops, files_lines.
- (Dwarf_Macro_Op_Proto, Dwarf_Macro_Op_Table): New structures for
- keeping macro opcode prototypes in.
- (Dwarf_Macro_s): Redefine from scratch.
- (__libdw_getsrclines, __libdw_getcompdir, libdw_macro_nforms): New
- internal interfaces.
- * dwarf_error.c (errmsgs): Add a message for
- DWARF_E_INVALID_OPCODE.
- * dwarf_end.c (dwarf_end): Destroy struct Dwarf.macro_ops and
- files_lines.
- * libdw.h (dwarf_getmacros_off, dwarf_macro_getparamcnt)
- (dwarf_macro_getsrcfiles, dwarf_macro_param): New public
- interfaces.
- * dwarf_getmacros.c (dwarf_getmacros_off): New function,
- (get_offset_from, macro_op_compare, build_table)
- (init_macinfo_table, get_macinfo_table, get_table_for_offset)
- (cache_op_table, read_macros, gnu_macros_getmacros_off)
- (macro_info_getmacros_off, do_dwarf_getmacros_die): New helper
- functions.
- (dwarf_getmacros): Adjust to dispatch to the new interfaces.
- * dwarf_getsrclines.c (read_srclines): New function with guts
- taken from dwarf_getsrclines.
- (__libdw_getsrclines): Likewise.
- (__libdw_getcompdir, files_lines_compare): New functions.
- (dwarf_getsrclines): Make it dispatch to the new interfaces.
- * dwarf_macro_param1.c (dwarf_macro_param1): Adjust to dispatch to
- the new interfaces.
- * dwarf_macro_param2.c (dwarf_macro_param2): Likewise.
- * libdw.map (ELFUTILS_0.161): New. Add dwarf_getmacros_off,
- dwarf_macro_getsrcfiles, dwarf_macro_getparamcnt, dwarf_macro_param.
-
-2014-10-06 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (libdw_a_SOURCES): Add dwarf_peel_type.c.
- * dwarf_aggregate_size.c (get_type): Use dwarf_peel_type.
- (aggregate_size): Likewise. Add old and new version.
- * dwarf_peel_type.c: New file.
- * libdw.h (dwarf_peel_type): New function declaration.
- * libdwP.h (dwarf_peel_type): New internal declaration.
- * libdw.map (ELFUTILS_0.161): New section.
-
-2014-10-15 Petr Machata <pmachata@redhat.com>
-
- * libdwP.h (struct Dwarf_Files_s.cu): Drop field.
- * dwarf_getsrclines.c (dwarf_getsrclines): Don't set it.
-
-2014-10-05 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Add DW_AT_GNU_deleted.
-
-2014-10-02 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_aggregate_size.c (aggregate_size): Return CU address_size
- for sizeless DW_TAG_pointer_type, DW_TAG_reference_type or
- DW_TAG_rvalue_reference_type.
-
-2014-09-12 Petr Machata <pmachata@redhat.com>
-
- * memory-access.h (read_ubyte_unaligned_inc): Allow only 4- and
- 8-byte quantities. Consequently, rename to...
- (read_addr_unaligned_inc): ... this.
- (read_sbyte_unaligned_inc, read_ubyte_unaligned): Drop.
- (read_sbyte_unaligned): Drop.
-
-2014-09-10 Petr Machata <pmachata@redhat.com>
-
- * dwarf_getlocation.c (attr_ok): Also accept
- DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value,
- DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered.
-
-2014-08-15 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_cu_die.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_cu_die.c.
- * libdw.h (dwarf_cu_die): New function declaration.
- * libdw.map (ELFUTILS_0.160): Add dwarf_cu_die.
-
-2014-08-15 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_cu_getdwarf.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_cu_getdwarf.c.
- * libdw.h (Dwarf_CU): New typedef.
- (dwarf_cu_getdwarf): New function declaration.
- * libdw.map (ELFUTILS_0.160): New. Add dwarf_cu_getdwarf.
-
-2014-06-18 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Remove DW_TAG_mutable_type.
-
-2014-05-02 Mark Wielaard <mjw@redhat.com>
-
- * libdwP.h (__check_build_id): Removed now unused.
-
-2014-05-01 Mark Wielaard <mjw@redhat.com>
-
- * libdwP.h (struct Dwarf): Remove free_alt.
- * dwarf_end.c (dwarf_end): Don't check free_alt, don't end alt_dwarf.
- * dwarf_setalt.c (dwarf_setalt): Don't check or set free_alt.
-
-2014-04-30 Mark Wielaard <mjw@redhat.com>
-
- * libdw.map (ELFUTILS_0.159): Add dwelf_elf_gnu_build_id.
-
-2014-04-15 Florian Weimer <fweimer@redhat.com>
-
- * dwarf_begin_elf.c (__check_build_id, try_debugaltlink)
- (open_debugaltlink): Move to libdwfl.
- (check_section): Do not locate alternate debuginfo.
-
-2014-04-24 Florian Weimer <fweimer@redhat.com>
-
- * libdw.map (ELFUTILS_0.159): Export dwelf_dwarf_gnu_debugaltlink.
-
-2014-04-22 Florian Weimer <fweimer@redhat.com>
-
- * dwarf_getalt.c, dwarf_setalt.c: New files.
- * Makefile.am (libdw_a_SOURCES): Add them.
- * libdw.h (dwarf_getalt, dwarf_setalt): Add function declarations.
- * libdwP.h (dwarf_getalt, dwarf_setalt): Add internal function
- declarations.
- * libdw.map (ELFUTILS_0.159): Export the two new functions.
-
-2014-04-15 Florian Weimer <fweimer@redhat.com>
-
- * libdwP.h (enum IDX_gnu_debugaltlink): New.
- * dwarf_begin_elf.c (dwarf_scnnames): Increase string size and add
- .gnu_debugaltlink.
- (check_section): Obtain .gnu_debugaltlink section from the
- setiondata array.
-
-2014-04-11 Mark Wielaard <mjw@redhat.com>
-
- * libdw.map (ELFUTILS_0.159): New. Add dwelf_elf_gnu_debuglink.
- * Makefile.am (libdw.so): Depend on libdwelf_pic.a.
- (libdwelf_objects): New variable.
- (libdw_a_LIBADD): Add libdwelf objects.
-
-2014-04-22 Mark Wielaard <mjw@redhat.com>
-
- * memory-access.h (get_sleb128_step): Remove undefined behavior
- of left shifting a signed value. Replace it with a multiplication.
-
-2014-04-13 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Remove !MUDFLAP conditions.
-
-2014-04-09 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_begin_elf.c (check_section): Check for unsigned overflow
- before calling malloc to uncompress data.
-
-2014-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix abort() on missing section headers.
- * dwarf_begin_elf.c (check_section): Replace abort call by goto err.
- New label err to return NULL.
-
-2014-02-05 Josh Stone <jistone@redhat.com>
-
- * dwarf_decl_file.c (dwarf_decl_file): Read the idx as unsigned.
- * dwarf_decl_line.c (__libdw_attr_intval): Read the line/column as
- unsigned. Change the range assert to DWARF_E_INVALID_DWARF.
-
-2013-12-30 Mark Wielaard <mjw@redhat.com>
-
- * libdw.map (ELFUTILS_0.158): Add dwfl_core_file_attach and
- dwfl_linux_proc_attach.
-
-2013-12-20 Mark Wielaard <mjw@redhat.com>
-
- * libdw.map (ELFUTILS_0.158): Add dwfl_getthread_frames.
-
-2013-12-18 Mark Wielaard <mjw@redhat.com>
-
- * libdw.map (ELFUTILS_0.158): Remove dwfl_module_addrsym_elf and
- dwfl_module_getsym_elf. Add dwfl_module_addrinfo and
- dwfl_module_getsym_info.
-
-2013-12-16 Mark Wielaard <mjw@redhat.com>
-
- * libdw.map (ELFUTILS_0.158): Add dwfl_module_getsymtab_first_global.
-
-2013-12-10 Josh Stone <jistone@redhat.com>
-
- * memory-access.h (get_uleb128_rest_return): Removed.
- (get_sleb128_rest_return): Removed.
- (get_uleb128_step): Make this a self-contained block.
- (get_sleb128_step): Ditto, and use a bitfield to extend signs.
- (get_uleb128): Make this wholly implemented by __libdw_get_uleb128.
- (get_sleb128): Make this wholly implemented by __libdw_get_sleb128.
- (__libdw_get_uleb128): Simplify and inline for all callers.
- (__libdw_get_sleb128): Ditto.
- * dwarf_getlocation.c (store_implicit_value): Void the unused uleb128.
- * memory-access.c: Delete file.
- * Makefile.am (libdw_a_SOURCES): Remove it.
- (DEFS): Remove the now unused -DIS_LIBDW.
-
-2013-12-09 Josh Stone <jistone@redhat.com>
-
- * libdw_form.c (__libdw_form_val_compute_len): Renamed function from
- __libdw_form_val_len, now handling only non-constant form lengths.
- * libdwP.h (__libdw_form_val_len): New inlined function.
-
-2013-12-09 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getlocation.c (__libdw_intern_expression): Handle empty
- location expressions.
- * dwarf_getlocation_attr.c (dwarf_getlocation_attr): When no
- location found, return empty location expression.
- * dwarf_getlocation_implicit_pointer.c
- (dwarf_getlocation_implicit_pointer): Likewise.
- (__libdw_empty_loc_attr): New internal function.
- * libdwP.h (__libdw_empty_loc_attr): Define.
-
-2013-11-27 Mark Wielaard <mjw@redhat.com>
-
- * libdw.map (ELFUTILS_0.158): Add dwfl_module_addrsym_elf and
- dwfl_module_getsym_elf.
-
-2013-11-26 Mark Wielaard <mjw@redhat.com>
-
- * libdw.map (ELFUTILS_0.156): Move dwfl_attach_state, dwfl_pid,
- dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
- dwfl_thread_state_registers, dwfl_thread_state_register_pc,
- dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc to ...
- (ELFUTILS_0.158): ... here.
-
-2013-11-09 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getaranges.c (dwarf_getaranges): Read segment_size and
- check that it is zero.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * cfi.h (struct Dwarf_Frame_s): Make the comment more specific.
- * libdw.map (ELFUTILS_0.156): Add dwfl_attach_state, dwfl_pid,
- dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
- dwfl_thread_state_registers, dwfl_thread_state_register_pc,
- dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc.
-
-2013-11-01 Michael Forney <mforney@mforney.org>
-
- * Makefile.am (libdwfl_objects): New definition.
- (libdw_a_LIBADD): Use libdwfl_objects.
-
-2013-11-01 Michael Forney <mforney@mforney.org>
-
- * Makefile.am: Use READELF.
-
-2013-10-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * libdw.map (ELFUTILS_0.158): New.
-
-2013-10-10 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getfuncs.c (struct visitor_info): Rename start_offset to
- start_addr and rename last_offset to last_addr. Now both void *.
- (tree_visitor): Use start_add and die_addr instead of start_offset
- and die_offset.
- (dwarf_getfuncs): Use last_addr instead of last_offset.
-
-2013-10-06 Mark Wielaard <mjw@redhat.com>
-
- * cfi.c (execute_cfi): Make sure DW_CFA_expression and
- DW_CFA_val_expression are not used with abi_cfi.
-
-2013-10-03 Josh Stone <jistone@redhat.com>
-
- * dwarf_formref_die.c (dwarf_formref_die): Don't hash the sig8 here.
- * libdw_findcu.c (__libdw_intern_next_unit): Since this never revisits
- a unit, make sure to always hash the sig8 here, so none are missed.
-
-2013-09-29 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getlocation.c (store_implicit_value): Cast op->number2 to
- uintptr_t before casting to char *.
- (__libdw_intern_expression): Cast data to uintptr_t before casting
- to Dwarf_Word.
- * dwarf_getlocation_attr.c (dwarf_getlocation_attr): Cast
- op->number2 to uintptr_t before casting to char *.
-
-2013-09-24 Josh Stone <jistone@redhat.com>
-
- * libdw_visit_scopes.c (classify_die): Removed.
- (may_have_scopes): New function to replace classify_die. There's no
- need for full classification; just find tags that may contain scopes.
- (__libdw_visit_scopes): Use a direct tag comparison for imported
- units, and use may_have_scopes to test if recursion is needed.
-
-2013-09-20 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getfuncs.c (visitor_info): New struct.
- (tree_visitor): New function.
- (dwarf_getfuncs): Use __libdw_visit_scopes with tree_visitor.
- * libdw.h (dwarf_getfuncs): Expand function documentation.
-
-2013-09-12 Mark Wielaard <mjw@redhat.com>
-
- * fde.c (intern_fde): Free fde and set libdw errno when start
- or end could not be read.
-
-2013-08-24 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getlocation.c (store_implicit_value): Don't take data
- as argument, get block data from op number2. Return false when
- block data length and op number don't match up.
- (__libdw_intern_expression): Store start of block for
- DW_OP_implicit_value and DW_OP_GNU_entry_value instead of
- relative data offset. Also store block start (including length)
- for DW_OP_GNU_const_type. Don't pass data to store_implicit_value.
- * dwarf_getlocation_attr.c: New file.
- * dwarf_getlocation_die.c: Likewise.
- * libdw.h (dwarf_getlocation_die): New function definition.
- (dwarf_getlocation_attr): Likewise.
- * libdwP.h: Declare internal dwarf_getlocation_die.
- * libdw.map (ELFUTILS_0.157): Add dwarf_getlocation_die and
- dwarf_getlocation_attr.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getlocation_die.c and
- dwarf_getlocation_attr.c.
-
-2013-08-23 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getlocation.c (attr_ok): Also accept DW_AT_segment.
- (attr_base_address): New function.
- (initial_offset_base): New function.
- (getlocations_addr): New function. Taken from...
- (dwarf_getlocation_addr): here. Use new initial_offset_base and
- getlocations_addr.
- (dwarf_getlocations): New function.
- * libdw.h (dwarf_getlocations): New function definition.
- * libdw.map (ELFUTILS_0.157): New.
-
-2013-07-02 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getsrclines.c (dwarf_getsrclines): Add new stack allocation
- limit MAX_STACK_ALLOC. After MAX_STACK_ALLOC lines use malloc in
- NEW_LINE macro. Free malloced line records if any at the end.
-
-2013-07-02 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getcfi_elf.c (getcfi_shdr): Check sh_type == SHT_PROGBITS.
-
-2013-06-26 Mark Wielaard <mjw@redhat.com>
-
- * libdw_visit_scopes.c (__libdw_visit_scopes): Don't reject root
- DIEs without children. Return an error whenever dwarf_child or
- dwarf_siblingof return an error. Don't call recurse and increase
- the depth for an imported unit. Walk the children of an imported
- unit as if they are logical children of the parent root DIE.
-
-2013-05-03 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getsrclines.c (dwarf_getsrclines): Only set end_sequence
- when nlinelist > 0.
-
-2013-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * libdw.map (ELFUTILS_0.156): New.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2013-04-10 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_formref_die.c (dwarf_formref_die): Reference size is only
- equal to address size when we have a DW_FORM_ref_addr for DWARF
- version 2.
-
-2013-03-25 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getsrclines.c (dwarf_getsrclines): Mark highest address as
- end_sequence.
-
-2013-03-12 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Allow DW_TAG_partial_unit.
- * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
-
-2013-02-15 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_formstring.c (dwarf_formstring): Check dbg_ret->sectiondata,
- not dbg->sectiondata.
-
-2013-01-07 Roland McGrath <roland@hack.frob.com>
-
- * memory-access.h
- [ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New macro.
- [!ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New inline function.
-
-2012-12-18 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_begin_elf.c (valid_p): Call Dwarf_Sig8_Hash_free if invalid.
- (check_section): Likewise on error.
- (scngrp_read): Likewise.
- (dwarf_begin_elf): Likewise.
-
-2012-10-09 Petr Machata <pmachata@redhat.com>
-
- * dwarf_getlocation.c (__libdw_intern_expression): Handle
- DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret,
- DW_OP_GNU_regval_type, DW_OP_GNU_entry_value,
- DW_OP_GNU_deref_type, DW_OP_GNU_const_type.
-
-2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * cfi.c: New include system.h.
- (execute_cfi) (enough_registers): Clear new memory after realloc.
-
-2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * fde.c (__libdw_find_fde): Change <fde != NULL> to likely. Return
- DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for
- searched PC.
-
-2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new
- loclist element DW_OP_call_frame_cfa before decoding the opcodes.
- Remove the later DW_OP_call_frame_cfa push to RESULT.
-
-2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code cleanup.
- * fde.c (binary_search_fde): Remove always true <address >= start>
- conditional. Move L initialization upwards.
-
-2012-08-24 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_begin_elf.c (check_section): Only probe for dwz multi files
- when ENABLE_DWZ is defined.
- * libdwP.h (__check_build_id): Only declare when ENABLE_DWZ is
- defined.
-
-2012-08-16 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add known-dwarf.h.
- * dwarf.h (DW_LANG_Go): Update comment.
- (DW_LANG_Mips_Assembler): Likewise.
-
-2012-06-27 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Add DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
- * dwarf_begin.c (dwarf_begin): Add INTDEF.
- * dwarf_begin_elf.c (__check_build_id): New internal_function.
- (try_debugaltlink): New function.
- (open_debugaltlink): Likewise.
- (check_section): Try open_debugaltlink for .gnu_debugaltlink.
- * dwarf_end.c (dwarf_end): Free the alternative Dwarf descriptor if
- necessary.
- * dwarf_error.c (errmsgs): Add DWARF_E_NO_ALT_DEBUGLINK.
- * dwarf_formref.c (__libdw_formref): Using DW_FORM_GNU_ref_alt
- is an error here.
- * dwarf_formref_die.c (dwarf_formref_die): Handle DW_FORM_GNU_ref_alt.
- * dwarf_formstring.c (dwarf_formstring): Handle DW_FORM_GNU_strp_alt.
- * dwarf_formudata.c (__libdw_formptr): Adjust __libdw_read_offset
- calls.
- * dwarf_getpubnames.c (get_offsets): Adjust __libdw_read_offset call.
- * libdwP.h: Add DWARF_E_NO_ALT_DEBUGLINK.
- (struct Dwarf): Add alt_dwarf and free_alt fields.
- (__libdw_read_offset): Add dbg_ret argument, use to check with
- __libdw_offset_in_section.
- (__check_build_id): New function declaration.
- (dwarf_begin): Define as INTDECL.
- * libdw_form.c (__libdw_form_val_len): Handle DW_FORM_GNU_ref_alt
- and DW_FORM_GNU_strp_alt.
-
-2012-07-19 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Add DW_OP_GNU_parameter_ref.
-
-2012-07-24 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Correct spelling of DW_LANG_ObjC.
- * dwarf_aggregate_size.c (array_size): Use correct spelling of
- DW_LANG_ObjC.
-
-2012-07-24 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Add DW_ATE_UTF.
-
-2012-06-27 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
-
-2012-06-26 Mark Wielaard <mjw@redhat.com>
-
- * libdwP.h: Add IDX_debug_macro.
- * dwarf.h: Add DW_AT_GNU_macros.
- * dwarf_begin_elf.c (dwarf_scnnames): Add .debug_macro.
- * dwarf_formudata.c (dwarf_formudata): Recognize DW_AT_GNU_macros.
-
-2012-04-27 Mark Wielaard <mjw@redhat.com>
-
- * libdw/dwarf_highpc.c (dwarf_highpc): Handle DW_AT_high_pc being
- a constant offset from DW_AT_low_pc.
-
-2012-03-19 Tom Tromey <tromey@redhat.com>
-
- * libdw_findcu.c (findcu_cb): Move earlier.
- (__libdw_intern_next_unit): Add new CU to search tree here...
- (__libdw_findcu): ... not here.
-
-2012-01-31 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_formudata.c (dwarf_formudata): Handle DW_FORM_sec_offset.
-
-2011-11-31 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
-
-2011-07-14 Mark Wielaard <mjw@redhat.com>
-
- * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
-
-2011-05-16 Jakub Jelinek <jakub@redhat.com>
-
- * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
- DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
- New.
-
-2011-04-26 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_child (dwarf_child): Sanity check end of section against
- cu_data () of die->cu.
-
-2011-03-22 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Add DW_TAG_GNU_call_site,
- DW_TAG_GNU_call_site_parameter,
- DW_AT_GNU_call_site_value,
- DW_AT_GNU_call_site_data_value,
- DW_AT_GNU_call_site_target,
- DW_AT_GNU_call_site_target_clobbered,
- DW_AT_GNU_tail_call,
- DW_AT_GNU_all_tail_call_sites,
- DW_AT_GNU_all_call_sites,
- DW_AT_GNU_all_source_call_sites,
- and DW_OP_GNU_entry_value.
-
-2011-03-10 Petr Machata <pmachata@redhat.com>
-
- * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
- abbreviation with code 0.
-
-2011-03-09 Petr Machata <pmachata@redhat.com>
-
- * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
-
-2011-02-23 Roland McGrath <roland@redhat.com>
-
- * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
- Declare __libdw_free_zdata.
- * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
- (dwarf_end): Call it.
-
- * dwarf_begin_elf.c (valid_p): Likewise.
- (check_section, scngrp_read): Likewise.
- (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
-
-2010-10-13 Roland McGrath <roland@redhat.com>
-
- * dwarf.h: Add DW_LANG_Go.
-
-2010-10-05 Roland McGrath <roland@redhat.com>
-
- * dwarf_getaranges.c: Use malloc rather than alloca,
- since the total number of elements can be quite huge.
-
-2010-07-26 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation_implicit_pointer.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.map (ELFUTILS_0.149): New set.
- Add dwarf_getlocation_implicit_pointer.
- * libdw.h: Declare it.
-
- * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
- (dwarf_offdie, dwarf_offdie_types): Update callers.
- * libdwP.h: Declare it.
-
- * dwarf.h: Add DW_OP_GNU_implicit_pointer.
- * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
-
-2010-08-24 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line.
-
-2010-07-27 Roland McGrath <roland@redhat.com>
-
- * dwarf_formref_die.c: Fix sig8 hash insertion.
-
-2010-06-23 Roland McGrath <roland@redhat.com>
-
- * cfi.c (dwarf_cfi_validate_fde): Function removed.
- * libdw.h: Remove it.
- * libdw.map: Likewise.
-
-2010-06-22 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
-
- * dwarf_getsrclines.c: Fix signed comparison warning in extended
- opcode parsing.
-
-2010-06-21 Roland McGrath <roland@redhat.com>
-
- * dwarf.h: Add DW_TAG_GNU_* constants.
-
- * memory-access.h (get_sleb128_rest_return): Fix sign extension for
- 10-byte case.
-
-2010-06-20 Roland McGrath <roland@redhat.com>
-
- * libdw_findcu.c (__libdw_findcu): Take new flag argument,
- to search TUs instead of CUs.
- * libdwP.h: Update decl.
- (struct Dwarf): New member tu_tree.
- * dwarf_end.c (dwarf_end): Clean up tu_tree.
- * dwarf_offdie.c (do_offdie): New function, broken out of ...
- (dwarf_offdie): ... here.
- (dwarf_offdie_types): New function.
- * libdw.h: Declare it.
- * libdw.map (ELFUTILS_0.148): Add it.
-
- * libdwP.h (CUDIE): Use cu_data.
- * dwarf_formblock.c: Likewise.
- * dwarf_formref_die.c: Likewise.
- * dwarf_diecu.c: Use CUDIE macro.
- * dwarf_formaddr.c: Use cu_sec_idx.
-
-2010-06-16 Roland McGrath <roland@redhat.com>
-
- * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
- we don't repeat a CU lookup we've already done. Handle
- DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
-
- * libdw_findcu.c (__libdw_intern_next_unit): New function,
- broken out of ...
- (__libdw_findcu): ... here. Call it.
- * libdwP.h: Declare it.
- (struct Dwarf): New member next_tu_offset.
-
- * dwarf_sig8_hash.c: New file.
- * dwarf_sig8_hash.h: New file.
- * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
- * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
- defining NO_UNDEF.
- * libdwP.h (struct Dwarf): New member sig8_hash.
- * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
- * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
-
- * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
- (dwarf_nextcu): ... here. Call it.
- * libdw.h: Declare it.
- * libdwP.h: Add INTDECL.
- * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
- * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
-
- * libdwP.h (cu_sec_idx, cu_data): New functions.
- Use .debug_types when CU is a TU.
- * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
- * dwarf_siblingof.c: Likewise.
- * dwarf_formstring.c: Likewise.
- * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
- * dwarf_getlocation.c (dwarf_getlocation): Likewise.
- (dwarf_getlocation_addr): Likewise.
-
- * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
- (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
- .debug_types header size instead of .debug_info header size.
- (CUDIE): Use it.
- * dwarf_diecu.c: Update caller.
- * dwarf_getaranges.c: Likewise.
- * dwarf_nextcu.c: Likewise.
- * libdw_findcu.c (__libdw_findcu): Initialize new members.
-
- * fde.c (fde_by_offset): Renamed to ...
- (__libdw_fde_by_offset): ... this, made global and internal_function.
- Don't take ADDRESS argument.
- (__libdw_find_fde): Update caller. Do address sanity check here.
- * cfi.h: Declare __libdw_fde_by_offset.
- * cfi.c (dwarf_cfi_validate_fde): New function.
- * libdw.h: Declare it.
- * libdw.map (ELFUTILS_0.148): Add it.
-
- * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
- either DW_EH_PE_udata8 or DW_EH_PE_udata4.
-
- * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
- Don't assume DW_EH_PE_aligned refers to native address size.
-
- * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
- address.
-
-2010-06-17 Roland McGrath <roland@redhat.com>
-
- * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
- op_index.
- * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
- into an inner inline function. Set new fields. Check all fields for
- overflow when setting.
- * dwarf_lineisa.c: New file.
- * dwarf_linediscriminator.c: New file.
- * dwarf_lineop_index.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add them.
- * libdw.map (ELFUTILS_0.148): Add them.
- * libdw.h: Declare them.
-
-2010-06-16 Roland McGrath <roland@redhat.com>
-
- * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
-
- * fde.c (fde_by_offset): Renamed to ...
- (__libdw_fde_by_offset): ... this, made global and internal_function.
- Don't take ADDRESS argument.
- (__libdw_find_fde): Update caller. Do address sanity check here.
- * cfi.h: Declare __libdw_fde_by_offset.
- * cfi.c (dwarf_cfi_validate_fde): New function.
- * libdw.h: Declare it.
- * libdw.map (ELFUTILS_0.148): Add it.
-
- * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
- either DW_EH_PE_udata8 or DW_EH_PE_udata4.
-
- * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
- Don't assume DW_EH_PE_aligned refers to native address size.
-
- * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
- address.
-
-2010-06-15 Roland McGrath <roland@redhat.com>
-
- * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
- DW_FORM_ref_addr.
- * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
- here, since we don't support it yet.
-
- * dwarf_next_cfi.c: Handle version 4 format.
-
- * dwarf_getsrclines.c: Handle version 4 format.
-
-2010-06-01 Roland McGrath <roland@redhat.com>
-
- * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
- * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
-
- * libdwP.h (CIE_VERSION): Remove unused macro.
-
- * dwarf_getsrclines.c: Fix version field test.
- * libdwP.h (DWARF_VERSION): Remove useless macro.
-
- * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
-
- * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
-
- * libdw_findcu.c (__libdw_findcu): Accept version 4.
-
-2010-05-31 Mark Wielaard <mjw@redhat.com>
-
- * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
- * libdw.h (dwarf_cfi_cie_p): ... here.
-
-2010-05-31 Mark Wielaard <mjw@redhat.com>
-
- * dwarf.h: Fix DW_LANG_Python constant.
-
-2010-05-28 Eduardo Santiago <santiago@redhat.com>
-
- * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
- thing.
-
-2010-05-27 Roland McGrath <roland@redhat.com>
-
- * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
- DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
-
-2010-05-08 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
- REF_SIZE. Use that to handle DW_OP_call_ref correctly.
- (getlocation): Update caller.
- * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
- * dwarf_frame_register.c (dwarf_frame_register): Likewise.
- * libdwP.h: Update decl.
-
-2010-04-26 Roland McGrath <roland@redhat.com>
-
- * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
- * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
- DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
- * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
-
- * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
- Prepend DW_OP_call_frame_cfa if true.
- (getlocation): Update caller.
- * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
- * dwarf_frame_register.c (dwarf_frame_register): Likewise.
- * libdwP.h: Update decl.
-
-2010-04-22 Roland McGrath <roland@redhat.com>
-
- * cfi.c (execute_cfi): Never return without cleanup.
- Free FS on failure.
- (cie_cache_initial_state): Adjust caller to expect that free.
- (__libdw_frame_at_address): Likewise.
-
-2010-03-10 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
-2010-02-02 Mark Wielaard <mjw@redhat.com>
-
- * fde.c (intern_fde): Fix length check for sized_augmentation_data.
-
-2010-01-07 Roland McGrath <roland@redhat.com>
-
- * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
-
-2010-01-05 Roland McGrath <roland@redhat.com>
-
- * dwarf_aggregate_size.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare it.
- * libdwP.h: Add INTDECL.
- * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
-
- * dwarf_srclang.c: Add INTDEF.
- * libdwP.h: Add INTDECL.
-
- * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
-
- * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
-
-2009-11-21 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c (check_constant_offset): Return 1 for all
- non-constant forms.
-
-2009-10-15 Roland McGrath <roland@redhat.com>
-
- * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
- DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
-
-2009-09-17 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
- argument a pointer to const.
- * libdw.h: Update decl.
-
-2009-09-10 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c (store_implicit_value): New function.
- (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
- (dwarf_getlocation_implicit_value): New function.
- * libdw.h: Declare it.
- * libdw.map (ELFUTILS_0.143): Add it.
-
-2009-09-09 Mark Wielaard <mjw@redhat.com>
-
- * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
-
-2009-08-21 Josh Stone <jistone@redhat.com>
-
- * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
-
-2009-08-10 Roland McGrath <roland@redhat.com>
-
- * dwarf_getscopevar.c: Use dwarf_diename.
-
-2009-08-09 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.143): New version set,
- inherits from ELFUTILS_0.142.
- * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
- alias in the ELFUTILS_0.122 version set and the default in the new set.
- * dwarf_srclang.c: Likewise.
- * dwarf_decl_file.c: Likewise.
- * dwarf_decl_line.c: Likewise.
- * dwarf_decl_column.c: Likewise.
- * dwarf_bytesize.c: Likewise.
- * dwarf_bitsize.c: Likewise.
- * dwarf_bitoffset.c: Likewise.
-
-2009-08-07 Roland McGrath <roland@redhat.com>
-
- * dwarf_arrayorder.c: Use dwarf_attr_integrate.
- * dwarf_srclang.c: Likewise.
- * dwarf_decl_file.c: Likewise.
- * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
- * dwarf_bytesize.c: Likewise.
- * dwarf_bitsize.c: Likewise.
- * dwarf_bitoffset.c: Likewise.
-
-2009-07-22 Roland McGrath <roland@redhat.com>
-
- * dwarf_frame_cfa.c: Change calling convention.
- * libdw.h: Update decl.
-
- * dwarf_frame_register.c: Change calling/return-value convention for
- value-only results and undefined/same_value.
- * libdw.h: Update decl.
-
- * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
- argument, append DW_OP_stack_value if set. Don't take NOPS argument,
- return that value instead.
- (getlocation): Update caller.
- * dwarf_frame_cfa.c: Likewise.
- * libdwP.h: Update decl.
-
-2009-07-21 Roland McGrath <roland@redhat.com>
-
- * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
- Fix loop iteration after skipping a bogus or useless CU.
-
- * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
- absence, not DWARF_E_NO_DEBUG_LINE.
-
-2009-07-20 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c (__libdw_intern_expression):
- Handle DW_OP_stack_value.
-
-2009-07-16 Roland McGrath <roland@redhat.com>
-
- * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
- reject others when CU's version > 3.
-
- * dwarf_formflag.c: Handle DW_FORM_flag_present.
-
- * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
- Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
- Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
- and DW_AT_const_expr.
- Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
- and DW_FORM_ref_sig8.
-
-2009-07-15 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
- DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
-
-2009-07-13 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
-
-2009-07-08 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
- dwfl_module_eh_cfi.
-
- * libdwP.h (struct Dwarf): Add member `cfi'.
- * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
- * dwarf_getcfi.c: New file.
- * dwarf_getcfi_elf.c: New file.
- * dwarf_cfi_end.c: New file.
- * dwarf_cfi_addrframe.c: New file.
- * dwarf_frame_cfa.c: New file.
- * dwarf_frame_register.c: New file.
- * dwarf_frame_return_address_register.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add them.
- * unwind.h: Declare those functions.
- * libdw.map (ELFUTILS_0.142): Export them.
-
- * dwarf_getlocation.c (__libdw_intern_expression): New function,
- broken out of ...
- (getlocation): ... here, call it.
- * libdwP.h: Declare it.
-
- * cie.c: New file.
- * fde.c: New file.
- * frame-cache.c: New file.
- * cfi.c: New file.
- * cfi.h: New file.
- * encoded-value.h: New file.
- * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
- * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
- * dwarf_error.c (errmsgs): Add element for it.
-
- * dwarf_next_cfi.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
- Declare dwarf_next_cfi.
- * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
- Add dwarf_next_cfi.
-
- * memory-access.h [! ALLOW_UNALIGNED]
- (read_2ubyte_unaligned): Renamed to ...
- (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
- (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
- (read_2sbyte_unaligned): Likewise.
- (read_4ubyte_unaligned): Likewise.
- (read_4sbyte_unaligned): Likewise.
- (read_8ubyte_unaligned): Likewise.
- (read_8sbyte_unaligned): Likewise.
-
- * libdwP.h (IDX_eh_frame): Remove it.
- * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
-
-2009-07-08 Roland McGrath <roland@redhat.com>
-
- * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
-
- * dwarf_getlocation.c (check_constant_offset): New function.
- (dwarf_getlocation, dwarf_getlocation_addr): Call it to
- handle DW_AT_data_member_location of data[48] as constant offset.
-
-2009-06-18 Roland McGrath <roland@redhat.com>
-
- * libdwP.h (__libdw_read_address_inc): Constify.
- (__libdw_read_offset_inc): Likewise.
- * dwarf_getaranges.c: Likewise.
- * dwarf_getlocation.c: Likewise.
- * dwarf_getsrclines.c: Likewise.
- * dwarf_nextcu.c: Likewise.
-
-2009-05-05 Petr Machata <pmachata@redhat.com>
-
- * libdwP.h (__libdw_formptr): Declare new function.
- * dwarf_formudata.c: Implement it here.
- * dwarf_getlocation.c (dwarf_getlocation_addr):
- Call it instead of hand-rolled offset handling code.
- * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
- * dwarf_ranges.c (dwarf_ranges): Likewise.
-
-2009-05-04 Petr Machata <pmachata@redhat.com>
-
- * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
- * dwarf_ranges.c: Implement it here.
- (dwarf_ranges): Call it.
- * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
-
-2009-04-23 Petr Machata <pmachata@redhat.com>
-
- * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
- of read_*ubyte_unaligned.
- * dwarf_formref_die.c (dwarf_formref_die): Likewise.
- * dwarf_formstring.c (dwarf_formstring): Likewise.
- * dwarf_formudate.c (dwarf_formudata): Likewise.
- * dwarf_getaranges.c (dwarf_getaranges): Likewise.
- * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
- * dwarf_getpubnames.c (get_offsets): Likewise.
- * dwarf_nextcu.c (dwarf_nextcu): Likewise.
-
-2009-04-23 Petr Machata <pmachata@redhat.com>
-
- * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
- __libdw_read_addr, __libdw_read_off): Add four new internal
- functions.
-
-2009-05-07 Roland McGrath <roland@redhat.com>
-
- * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
- return value and OFFSET argument, not CU-relative. Only fetch the
- attribute data when called with OFFSET of 0.
-
-2009-05-07 Petr Machata <pmachata@redhat.com>
-
- * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
- DW_AT_macro_info attribute of CU DIE.
-
-2009-04-15 Roland McGrath <roland@redhat.com>
-
- * dwarf.h (DW_CIE_ID): Removed.
- (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
-
-2009-04-01 Roland McGrath <roland@redhat.com>
-
- * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
-
-2009-01-28 Roland McGrath <roland@redhat.com>
-
- * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
- defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
-
- * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
-
-2009-01-26 Roland McGrath <roland@redhat.com>
-
- * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
-
-2009-01-25 Roland McGrath <roland@redhat.com>
-
- * dwarf_getattrs.c: Correctly skip attribute values when restarting.
-
-2009-01-23 Roland McGrath <roland@redhat.com>
-
- * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
- Put these rules under if MAINTAINER_MODE.
-
-2009-01-22 Roland McGrath <roland@redhat.com>
-
- * dwarf.h: Add DW_OP_GNU_encoded_addr.
-
-2009-01-21 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (CLEANFILES): Renamed to ...
- (MOSTLYCLEANFILES): ... here.
- (CLEANFILES): New variable, add known-dwarf.h.
-
-2009-01-17 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
- Make it unconditional.
- (BUILT_SOURCES): Updated.
-
- * dwarf.h: Add description comments for DW_LANG_* values.
-
- * Makefile.am [MAINTAINER_MODE]
- ($(srcdir)/known-dwarf.h): New target.
- (BUILT_SOURCES): Add it.
-
- * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
-
-2009-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
-
-2009-01-08 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
-
-2008-01-06 Roland McGrath <roland@redhat.com>
-
- * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
- Reorder members.
- * dwarf_haschildren.c: Return -1 for error case, not 0.
-
- * Makefile.am (libdw.so): Link in $(zip_LIBS).
-
-2009-01-06 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf.h: Add definition for unwind and call frame information.
-
- * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
- read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
-
-2008-08-15 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.136): New version set, inherits from
- ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
-
-2008-01-21 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_child.c: Minor optimizations.
- * dwarf_getattrs.c: Likewise.
- * dwarf_getpubnames.c: Likewise.
- * dwarf_siblingof.c: Likewise.
- * dwarf_tag.c: Likewise.
-
-2008-01-18 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
- of DWARF_VERSION comparison, just fail if the file's version is newer.
-
-2008-01-17 Nick Clifton <nickc@redhat.com>
-
- * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
- (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
- (DWARF3_LENGTH_64_BIT): New define.
- * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
- * dwarf_getpubnames: Include dwarf.h.
- (get_offsets): Use the new definitions.
- * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
- * dwarf_nextcu.c: Include dwarf.h. Correct comment.
- (dwarf_nextcu): Use the new definitions.
-
- * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
- * dwarf_diecu.c (dwarf_diecu): Use the new macro.
- * dwarf_getaranges (dwarf_getaranges): Use the new macro.
- * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
-
- * dwarf_getpubnames (get_offsets): Replace assertion with test and
- error return.
-
- * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
-
- * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
- Set the address in the return structure to the address of the next
- non-sibling die, if there is no sibling and the return pointer is
- not the same as the die pointer.
- * libdw.h: Expand the description of the dwarf_siblingof prototype.
-
- * dwarf_child.c: Fix typo in comment.
-
- * libdwP.h (DWARF_VERSION): Change to 3.
-
- * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
- not have a initialised valp pointer.
-
- * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
- the end of the attributes is reached. When the callback fails,
- return the address of the failing attribute, not the address of
- its successor.
- * libdw.h: Expand the description of the dwarf_getattrs prototype.
-
- * dwarf_child.c (__libdw_find_attr): Use the new definition.
- (dwarf_child): Likewise.
- * dwarf_tag.c (__libdw_findabbrev): Likewise.
- (dwarf_tag): Likewise.
-
-2008-01-08 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (euinclude): Variable removed.
- (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
- (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
-
-2007-10-17 Roland McGrath <roland@redhat.com>
-
- * libdw.h (__deprecated_attribute__): New macro.
- (dwarf_formref): Mark it deprecated.
- * dwarf_formref.c (__libdw_formref): New function, broken out of ...
- (dwarf_formref): ... here. Call it. Remove INTDEF.
- * libdwP.h: Remove INTDECL.
- Declare __libdw_formref.
- * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
- * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
-
- * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
- needs to check CU->version.
-
- * libdwP.h (struct Dwarf_CU): New member `version'.
- * libdw_findcu.c (__libdw_findcu): Initialize it.
-
- * dwarf_child.c: Return 1 for null entry as first child.
-
-2007-10-05 Roland McGrath <roland@redhat.com>
-
- * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
-
- * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
- [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
-
-2007-10-03 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
- and dwfl_build_id_find_debuginfo.
-
- * libdw.map (ELFUTILS_0.130): New version set, inherits from
- ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
-
-2007-10-02 Roland McGrath <roland@redhat.com>
-
- * libdw_visit_scopes.c (classify_die): Return walk for class_type and
- structure_type.
-
-2007-08-07 Roland McGrath <roland@redhat.com>
-
- * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
- error code is DWARF_E_NOERROR (0).
-
- * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
- Fix typo in __libdw_visit_scopes argument.
-
- * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
- swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
-
-2007-07-03 Roland McGrath <roland@redhat.com>
-
- * libdw.h (__extern_inline): New macro.
- [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
-
-2007-04-16 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
-
-2007-04-05 Roland McGrath <roland@redhat.com>
-
- * dwarf_getsrcdirs.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_getsrcdirs.
- * libdw.map (ELFUTILS_0.127): Add it.
-
- * libdwP.h (struct Dwarf_Files_s): New member ndirs.
- * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
- zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
- Save DIRARRAY in the Dwarf_Files.
-
- * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
- address to check for all-ones base address entry. Check directly.
- Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
-
-2007-03-25 Roland McGrath <roland@redhat.com>
-
- * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
- Return NULL when freeing RESULT on error.
- (global_read, scngrp_read): Check return value from check_section,
- break out of loop after it has freed RESULT.
- (valid_p): Handle null argument.
-
-2007-03-12 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
-
-2007-03-04 Roland McGrath <roland@redhat.com>
-
- * libdw.map (ELFUTILS_0.127): New version set, inherits from
- ELFUTILS_0.126. Add dwfl_module_addrsym.
-
-2007-02-10 Roland McGrath <roland@redhat.com>
-
- * dwarf.h (DW_OP_fbreg): Comment fix.
-
-2007-02-03 Roland McGrath <roland@redhat.com>
-
- * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
- * libdw.map (ELFUTILS_0.126): New version set, inherits from
- ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
- exported in the past.
-
-2006-12-17 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
- address when the CU is missing attributes due to buggy GCC.
-
-2006-08-29 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
-
- * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
- (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
-
- * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
- result is aligned. Adjust NEWP->remaining here for this allocation.
- * libdwP.h: Update decl.
- (libdw_alloc): Update caller.
-
-2006-07-12 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_child.c: Adjust for internal_function_def removal.
- * dwarf_getabbrev.c: Likewise.
- * dwarf_tag.c: Likewise.
- * libdw_form.c: Likewise.
- * memory-access.c: Likewise.
-
-2006-06-28 Roland McGrath <roland@redhat.com>
-
- * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
-
- * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
- dwfl_module_getsym.
-
-2006-05-27 Ulrich Drepper <drepper@redhat.com>
-
- * libdw.h: Add extern "C".
-
-2006-05-22 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getaranges.c (dwarf_getaranges): Handle files without
- aranges information.
-
-2006-05-21 Ulrich Drepper <drepper@redhat.com>
-
- * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
- dwarf_haschildren.
-
-2006-02-28 Roland McGrath <roland@redhat.com>
-
- * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
- DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
- values from DWARF 3.0.
-
-2006-02-22 Roland McGrath <roland@redhat.com>
-
- * libdw.map: Bump to 0.120; export dwfl_version.
-
-2005-12-22 Roland McGrath <roland@redhat.com>
-
- * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
-
-2005-12-12 Roland McGrath <roland@redhat.com>
-
- * dwarf_ranges.c: Copy CU base address-finding code from
- dwarf_getlocation.
-
-2005-12-09 Roland McGrath <roland@redhat.com>
-
- * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
- Delay CU base lookup until it's needed.
- If CU base lookup fails with no error, flag invalid DWARF.
-
-2005-11-25 Roland McGrath <roland@redhat.com>
-
- * libdw.map: Bump to 0.118; export dwfl_module_register_names.
-
-2005-11-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
-
-2005-11-13 Roland McGrath <roland@redhat.com>
-
- * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
-
-2005-10-27 Roland McGrath <roland@redhat.com>
-
- * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
- don't match end_sequence markers.
-
- * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
- before normal records at the same address.
- * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
- marker.
-
-2005-10-26 Roland McGrath <roland@redhat.com>
-
- * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
- * dwarf_func_file.c: Renamed to ...
- * dwarf_decl_file.c: ... here.
- * dwarf_func_col.c: Renamed to ...
- * dwarf_decl_column.c: ... here.
- * dwarf_func_line.c: Renamed to ...
- * dwarf_decl_line.c: ... here.
- (dwarf_func_line): Renamed to ...
- (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
- (__libdw_func_intval): Renamed __libdw_attr_intval.
- * dwarf_func_name.c: File removed.
- * dwarf_func_lowpc.c: File removed.
- * dwarf_func_highpc.c: File removed.
- * dwarf_func_entrypc.c: File removed.
- * dwarf_func_die.c: File removed.
- * Makefile.am (libdw_a_SOURCES): Updated.
- * libdw.h: Update decls.
- (Dwarf_Func): Type removed.
- * libdwP.h: Update decls.
- (struct Dwarf_Func_s): Type removed.
- * libdw.map: Updated.
-
- * libdwP.h (CUDIE): New macro.
- * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
- * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
- * dwarf_ranges.c (dwarf_ranges): Likewise.
-
- * dwarf_getloclist.c: Renamed to ...
- * dwarf_getlocation.c: ... here.
- (getloclist): Renamed to getlocation.
- (dwarf_getloclist): Renamed to dwarf_getlocation.
- (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
- * Makefile.am (libdw_a_SOURCES): Updated.
- * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
- (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
- (Dwarf_Loc): Renamed Dwarf_Op.
- * libdwP.h (struct loc_s): Update use.
- * libdw.map: Update map.
-
- * dwarf_entry_breakpoints.c: Use the second line record within the
- function, regardless of its source location data.
-
-2005-10-25 Roland McGrath <roland@redhat.com>
-
- * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
-
- * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
-
-2005-10-14 Roland McGrath <roland@redhat.com>
-
- * dwarf_diecu.c (dwarf_diecu): New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_diecu.
- * libdw.map: Export it.
-
- * libdw.map: Bump to 0.116; export dwarf_ranges.
-
-2005-09-20 Roland McGrath <roland@redhat.com>
-
- * dwarf_haspc.c: Use dwarf_ranges.
- * dwarf_entry_breakpoints.c: Likewise.
-
- * dwarf_ranges.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_ranges.
- * libdwP.h: Add INTDECL.
-
-2005-09-14 Roland McGrath <roland@redhat.com>
-
- * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
- prologue_end marker scanning loop.
-
-2005-09-11 Roland McGrath <roland@redhat.com>
-
- * dwarf.h: Comment typo fix.
-
-2005-09-07 Roland McGrath <roland@redhat.com>
-
- * dwarf_entry_breakpoints.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_entry_breakpoints.
-
- * dwarf_entrypc.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_entrypc.
- * libdwP.h: Add INTDECL.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
- (%.os): Use COMPILE.os.
- (COMPILE.os): Filter out gconv options.
-
-2005-08-27 Roland McGrath <roland@redhat.com>
-
- * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
- __libdw_visit_scopes.
-
- * dwarf_getscopes_die.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_getscopes_die.
- * libdw.map: Bump to 0.115 and add it.
-
- * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
- containing a DIE and its parent pointer, instead of just Dwarf_Die.
- Take two functions for both preorder and postorder visitors.
- * libdwP.h: Update decl.
- (struct Dwarf_Die_Chain): New type.
- * dwarf_func_inline.c: Update uses.
-
- * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
- Add INTDEF.
- * libdwP.h: Add INTDECL.
- * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
-
-2005-08-23 Roland McGrath <roland@redhat.com>
-
- * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
- DW_AT_specification the same as DW_AT_abstract_origin.
-
-2005-08-20 Roland McGrath <roland@redhat.com>
-
- * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
- Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
- and dwfl_report_offline.
-
-2005-08-19 Roland McGrath <roland@redhat.com>
-
- * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
- Add dwfl_module_relocate_address, dwfl_module_relocations,
- dwfl_module_relocation_info.
-
-2005-08-18 Roland McGrath <roland@redhat.com>
-
- * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
- outermost scope in the results.
-
-2005-08-15 Roland McGrath <roland@redhat.com>
-
- * dwarf_func_inline.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
- * libdw.map: Add them.
-
- * dwarf_func_die.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_func_die.
- * libdw.map: Add it. Bump version to ELFUTILS_0.114.
-
-2005-08-10 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
- of DW_LNS_set_epilog_begin.
-
-2005-08-09 Roland McGrath <roland@redhat.com>
-
- * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
-
- * dwarf_end.c: Add INTDEF.
- * dwarf_error.c (dwarf_errmsg): Likewise.
- * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
-
-2005-08-01 Roland McGrath <roland@redhat.com>
-
- * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
- * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
-
-2005-07-28 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (libdw.so): No need to link with libeu.a anymore.
- (libdw_a_LIBADD): Add all files from libdwfl.a.
-
-2005-07-27 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
- along with ../libebl/libebl.a and ../lib/libeu.a;
- depend on ../libelf/libelf.so.
- (libdw_so_LDADD): New variable.
- * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
-
- * libdw.map: Define an empty base version and move all symbols to
- version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
-
-2005-07-23 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_error.c: Add internal alias for dwarf_errno.
- * libdwP.h: Declare __dwarf_errno_internal.
- * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
-
- * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
- global_error.
-
-2005-06-01 Roland McGrath <roland@redhat.com>
-
- * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
- * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
-
-2005-06-08 Roland McGrath <roland@redhat.com>
-
- * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
- (get_sleb128_step, get_sleb128): Likewise.
- * dwarf_getattrs.c (dwarf_getattrs): Add consts.
- * dwarf_getloclist.c (getloclist): Likewise.
- * dwarf_formblock.c (dwarf_formblock): Likewise.
- * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
- * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
- * dwarf_formref.c (dwarf_formref): Likewise.
- * dwarf_formsdata.c (dwarf_formsdata): Likewise.
- * dwarf_formudata.c (dwarf_formudata): Likewise.
- * dwarf_haschildren.c (dwarf_haschildren): Likewise.
- * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
- * dwarf_tag.c (dwarf_tag): Likewise.
- * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
- * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
- * libdw_form.c (__libdw_form_val_len): Likewise.
- * libdwP.h: Update decl.
-
-2005-06-04 Roland McGrath <roland@redhat.com>
-
- * memory-access.h (get_uleb128_rest_return): New macro.
- [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
- (get_sleb128_rest_return): New macro.
- [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
- * memory-access.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- (DEFS): Add -DIS_LIBDW.
-
-2005-05-31 Roland McGrath <roland@redhat.com>
-
- * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
- formref offset.
-
-2005-05-30 Roland McGrath <roland@redhat.com>
-
- * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
- address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
-
- * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
- BEGIN value. Instead, match base address entries separately for
- 32/64 size cases.
-
-2005-05-28 Roland McGrath <roland@redhat.com>
-
- * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
- past location expression contents.
-
-2005-05-23 Roland McGrath <roland@redhat.com>
-
- * dwarf_getsrclines.c: Comment typo fix.
-
- * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
- * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
-
-2005-05-22 Ulrich Drepper <drepper@redhat.com>
-
- * libdwP.h: Only use INTDECL for alias prototypes.
-
-2005-05-19 Roland McGrath <roland@redhat.com>
-
- * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
-
- * dwarf_getscopevar.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_getscopevar.
-
- * dwarf_getsrcfiles.c: Add INTDEF.
- * dwarf_haschildren.c: Likewise.
- * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
-
- * dwarf_getscopes.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h: Declare dwarf_getscopes.
- * libdw.map: Add it.
-
-2005-05-18 Roland McGrath <roland@redhat.com>
-
- * libdwP.h (IDX_debug_ranges): New enum constant.
- * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
- * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
- * dwarf_error.c (errmsgs): Add it.
- * dwarf_haspc.c: New file.
- * libdw.h: Declare dwarf_haspc.
- * libdw.map: Add it.
- * libdwP.h: Add INTDECL.
-
- * dwarf_attr_integrate.c: New file.
- * dwarf_hasattr_integrate.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add them.
- * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
- * libdw.map: Add them.
-
- * dwarf_hasattr.c: Add INTDEF.
- * libdwP.h: Add INTDECL for it.
-
- * dwarf_formref_die.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add it.
- * libdw.h (dwarf_formref_die): Declare it.
- * libdwP.h (dwarf_formref_die): Add INTDECL.
- * libdw.map: Add it.
-
- * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
- of ...
- (dwarf_getloclist): ... here. Call them.
- (dwarf_addrloclists): New function.
- * libdw.h: Declare it.
- * libdw.map: Add it.
-
- * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
- DW_MACINFO_end_file. Recognize type 0 as terminator.
-
-2005-05-05 Roland McGrath <roland@redhat.com>
-
- * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
-
- * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
- the line program does not produce all entries in ascending order.
-
-2005-04-25 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
- occurences (e.g., inlines) better.
-
-2005-04-24 Ulrich Drepper <drepper@redhat.com>
-
- * libdw.h (DWARF_END_ABBREV): Define.
- * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
- end is reached.
- * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
- of records reached.
- * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
- as error of __libdw_getabbrev.
-
-2005-04-04 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
-
- * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
- results back to caller.
-
-2005-04-04 Roland McGrath <roland@redhat.com>
-
- * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
-
- * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
- defn.
-
-2005-04-04 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
-
- * dwarf_getsrc_file.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
- * libdw.h: Declare dwarf_getsrc_file.
- * libdw.map: Add dwarf_getsrc_file.
-
-2005-04-02 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_func_entrypc.c: New file.
- * dwarf_func_col.c: New file.
- * dwarf_func_line.c: New file.
- * dwarf_func_file.c: New file.
- * libdw.h: Add prototypes for new functions.
- * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
- dwarf_func_file.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
- dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
- * libdwP.h (struct Dwarf_Func_s): Add cudie element.
- Declare __libdw_func_intval and __dwarf_formsdata_internal.
- * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
- * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
-
- * dwarf.h: Add some DWARF3 definitions.
-
-2005-04-01 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getfuncs.c: New file.
- * dwarf_func_highpc.c: New file.
- * dwarf_func_lowpc.c: New file.
- * dwarf_func_name.c: New file.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
- dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
- * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
- and dwarf_func_name.
- * libdw.h: Add prototypes for new functions.
- * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
- * dwarf_siblingof.c: Likewise.
- * dwarf_dieoffset.c: Likewise.
- * dwarf_highpc.c: Likewise.
- * dwarf_lowpc.c: Likewise.
- * libdwP.h: Add prototypes for internal functions.
- Define Dwarf_Func_s structure.
-
-2005-03-29 Ulrich Drepper <drepper@redhat.com>
-
- * libdw.h: Add padding in Dwarf_die.
-
- * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
- * dwarf_attr.c: Likewise.
- * dwarf_begin.c: Likewise.
- * dwarf_begin_elf.c: Likewise.
- * dwarf_bitoffset.c: Likewise.
- * dwarf_bitsize.c: Likewise.
- * dwarf_bytesize.c: Likewise.
- * dwarf_diename.c: Likewise.
- * dwarf_formaddr.c: Likewise.
- * dwarf_formblock.c: Likewise.
- * dwarf_formref.c: Likewise.
- * dwarf_formstring.c: Likewise.
- * dwarf_formudata.c: Likewise.
- * dwarf_getarange_addr.c: Likewise.
- * dwarf_getarangeinfo.c: Likewise.
- * dwarf_getaranges.c: Likewise.
- * dwarf_getloclist.c: Likewise.
- * dwarf_getmacros.c: Likewise.
- * dwarf_getsrc_die.c: Likewise.
- * dwarf_getsrcfiles.c: Likewise.
- * dwarf_getsrclines.c: Likewise.
- * dwarf_highpc.c: Likewise.
- * dwarf_lowpc.c: Likewise.
- * dwarf_nextcu.c: Likewise.
- * dwarf_offdie.c: Likewise.
- * dwarf_siblingof.c: Likewise.
- * dwarf_srclang.c: Likewise.
- * dwarf_tag.c: Likewise.
- * libdw_findcu.c: Likewise.
- * libdwP.h: Add prototypes for internal functions.
-
- * dwarf_addrdie.c: New file.
- * dwarf_macro_opcode.c: New file.
- * dwarf_macro_param1.c: New file.
- * dwarf_macro_param2.c: New file.
- * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
- * libdwP.h: Remove Dwarf_Macro definition.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
- dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
- * libdw.map: Add entries for new functions.
-
-2005-03-21 Ulrich Drepper <drepper@redhat.com>
-
- * libdw.h: Handle broken gcc < 4.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
-
- * dwarf_begin_elf.c: Fix warnings.
- * dwarf_dieoffset.c: Likewise.
- * dwarf_end.c: Likewise.
- * dwarf_error.c: Likewise.
- * dwarf_getpubnames.c: Likewise.
-
- * libdwP.h: Add new error values.
- * dwarf_error.c: Support new error values.
- * dwarf_getpubnames.c: Check parameter value.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Check for text relocations in constructed DSO.
-
- * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
-
-2005-02-04 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
- checks to not read over buffer boundaries for ill-formed DWARF data.
-
-2004-09-25 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_child.c: Make compile with gcc 4.0.
- * dwarf_error.c: Likewise.
- * dwarf_formblock.c: Likewise.
- * dwarf_getabbrev.c: Likewise.
- * dwarf_getattrs.c: Likewise.
- * dwarf_getsrclines.c: Likewise.
- * dwarf_tag.c: Likewise.
- * libdw_form.c: Likewise.
-
-2004-01-20 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
- * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
- * dwarf_getsrclines.c: Likewise.
- * dwarf_memory-access.h: Likewise.
-
-2004-01-19 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getsrcfiles.c: Third parameter can be NULL.
-
- * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
- Third parameter of dwarf_getsrcfiles can be NULL.
-
- * libdw.map: Add dwarf_getmacros.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
- * dwarf_getmacros.c: New file.
-
-2004-01-18 Ulrich Drepper <drepper@redhat.com>
-
- * libdw.h: Second parameter of dwarf_getaranges can be NULL.
-
- * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
-
- * dwarf_getsrclines.c:
- Use read_2ubyte_unaligned_inc instead of _inc-less variant.
-
- * dwarf_getaranges.c: Allow naranges parameter to be NULL.
-
- * libdwP.h (_): Use elfutils domain.
-
- * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
-
- * dwarf_getsrclines.c: Fix typo in comment.
-
-2004-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
-2004-01-16 Ulrich Drepper <drepper@redhat.com>
-
- * memory-access.h: Add lots of const in case a pointer passed is const.
-
- * dwarf_formflag.c: New file.
- * dwarf_getattrs.c: New file.
- * dwarf_error.c: Add new error value.
- * libdw.h: Add prototypes for new functions. Adjust prototype for
- dwarf_getpubnames.
- * libdw.map: Add new functions.
- * dwarf_getpubnames.c: Change type of return value and fourth parameter
- to ptrdiff_t.
- * libdwP.h: Add new error value.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
- dwarf_formflag.c.
-
- * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
-
-2004-01-12 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getarange_addr.c: New file
- * dwarf_getarangeinfo.c: New file.
- * dwarf_getaranges.c: New file.
- * dwarf_onerange.c: New file.
- * libdw.h: Declare new functions. Define Dwarf_Arange and
- Dwarf_Aranges.
- * libdw.map: Add new functions.
- * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
- Define Dwarf_Aranges_s and Dwarf_Arange_s.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
- dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
- * dwarf_error.c: Add new message.
-
-2004-01-11 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
- dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
- dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
- * dwarf_error.c: Add another message.
- * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
- introduction.
- * dwarf_filesrc.c: Likewise.
- * dwarf_getsrcfiles.c: Likewise.
- * dwarf_getsrclines.c: Likewise.
- * dwarf_lineaddr.c: New file.
- * dwarf_linebeginstatement.c: New file.
- * dwarf_lineblock.c: New file.
- * dwarf_linecol.c: New file.
- * dwarf_lineendsequence.c: New file.
- * dwarf_lineepiloguebegin.c: New file.
- * dwarf_lineno.c: New file.
- * dwarf_lineprologueend.c: New file.
- * dwarf_onesrcline.c: New file.
- * dwarf_lineno.c: Change interface to store result in object pointed
- to by second parameter.
- * libdw.h: Add prototypes for new functions. Change dwarf_lineno
- prototype. Define Dwarf_Files and Dwarf_Lines.
- * libdw.map: Add new functions.
- * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
- * libdw_findcu.c: Don't initialize nlines field.
-
- * dwarf_siblingof: Little optimization.
-
- * dwarf_begin.c: Remember that the ELF descriptor must be closed.
- * dwarf_end.c: Close ELF descriptor if free_elf is set.
- * libdwP.h (struct Dwarf): Add free_elf field.
-
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
- dwarf_offabbrev.c.
- * dwarf_getstring.c: New file.
- * dwarf_offabbrev.c: New file.
- * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
- * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
- parameters. Don't allocate memory if not necessary and don't lookup
- previous results if no CU given.
- (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
- * dwarf_tag.c: Adjust call to __libdw_getabbrev.
- * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
- * libdwP.h: Change prototype for __libdw_getabbrev.
-
- * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
- returning if this is wanted.
-
-2004-01-09 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
- with offset_size value.
- * libdw.h: Adjust dwarf_nextcu prototype.
- * libdwP.h (struct Dwarf_CU): Add offset_size member.
- * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
- member of new CU struct.
- * dwarf_formstring.c: Depend on offset_size not address_size for
- DW_FORM_strp handling.
- * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
-
- * dwarf_tag.c (__libdw_findabbrev): Return correct value for
- failing lookup.
- (dwarf_tag): Correctly recognize failed lookup.
-
- * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
- function noop_free.
- * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
- * dwarf_formblock.c: New file.
- * dwarf_getloclist.c: Rewrite to handle a single block.
- * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
- Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
- dwarf_getloclistent declaration.
- * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
- * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
- Add locs member to struct Dwarf_CU.
- * libdw_fundcu.c: Initialize locs member of new CU.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
- Remove dwarf_getloclistent.c.
-
-2004-01-07 Ulrich Drepper <drepper@redhat.com>
-
- * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
- * libdwP.h: Likewise.
-
- * dwarf_getloclist.c: New file.
- * dwarf_getloclistent.c: New file.
- * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
- Declare dwarf_getloclistent and dwarf_getloclist.
- * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
- * libdwP.h: Define DWARF_E_NO_LOCLIST.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
- dwarf_getloclist.c.
-
- * dwarf_error.c: More error messages.
-
-2004-01-06 Ulrich Drepper <drepper@redhat.com>
-
- * dwarf_getsrclines.c: Remove debugging support.
-
- * dwarf_getsrcfiles.c: New file.
- * dwarf_filesrc.c: New file.
- * libdw.h: Declare these functions. Define Dwarf_File.
- * libdwP.c: Adjust Dwarf_File_s definition.
- * libdw.map: Add these functions.
- * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
- dwarf_filesrc.c.
- * dwarf_getsrclines.c: Initialize cu->files.
-
-2004-01-05 Ulrich Drepper <drepper@redhat.com>
-
- * libdw.h: Add more nonnull function attributes.
-
- * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
- * dwarf_end.c (cu_free): New function.
- (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
- * dwarf_error.c (errmsgs): Add new messages.
- * dwarf_getsrc_die.c: New file.
- * dwarf_getsrclines.c: New file.
- * dwarf_lineno.c: New file.
- * dwarf_linesrc.c: New file.
- * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
- instead of the *_inc-less variants.
- * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
- dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
- * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
- and dwarf_linesrc.
- * libdwP.h: Add more error codes.
- (struct Dwarf): Remove mem_tail.next member.
- (Dwarf_File): Define type.
- (struct Dwarf_Line_s): Define type.
- (struct Dwarf_CU): Add lines and nlines members.
- (libdw_alloc): Define local variable _tail and use it.
- Add some function attributes.
- * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
- * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
- * memory-access.h: Add unlikely for the endian conversion paths.
- * Makefile.am (AM_CFLAGS): Add -std parameter.
- (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
- dwarf_lineno, and dwarf_linesrc.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/libdw/Makefile b/src/libdw/Makefile
deleted file mode 100644
index 4c1acaa5..00000000
--- a/src/libdw/Makefile
+++ /dev/null
@@ -1,986 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# libdw/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS) \
- ChangeLog
-#am__append_1 = -fpic
-noinst_PROGRAMS = $(am__EXEEXT_1)
-subdir = libdw
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" \
- "$(DESTDIR)$(pkgincludedir)"
-LIBRARIES = $(lib_LIBRARIES) $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libdw_a_AR = $(AR) $(ARFLAGS)
-libdw_a_DEPENDENCIES = $(addprefix ../libdwfl/,$(libdwfl_objects)) \
- $(addprefix ../libdwelf/,$(libdwelf_objects))
-am_libdw_a_OBJECTS = dwarf_begin.$(OBJEXT) dwarf_begin_elf.$(OBJEXT) \
- dwarf_end.$(OBJEXT) dwarf_getelf.$(OBJEXT) \
- dwarf_getpubnames.$(OBJEXT) dwarf_getabbrev.$(OBJEXT) \
- dwarf_tag.$(OBJEXT) dwarf_error.$(OBJEXT) \
- dwarf_nextcu.$(OBJEXT) dwarf_diename.$(OBJEXT) \
- dwarf_offdie.$(OBJEXT) dwarf_attr.$(OBJEXT) \
- dwarf_formstring.$(OBJEXT) dwarf_abbrev_hash.$(OBJEXT) \
- dwarf_sig8_hash.$(OBJEXT) dwarf_attr_integrate.$(OBJEXT) \
- dwarf_hasattr_integrate.$(OBJEXT) dwarf_child.$(OBJEXT) \
- dwarf_haschildren.$(OBJEXT) dwarf_formaddr.$(OBJEXT) \
- dwarf_formudata.$(OBJEXT) dwarf_formsdata.$(OBJEXT) \
- dwarf_lowpc.$(OBJEXT) dwarf_entrypc.$(OBJEXT) \
- dwarf_haspc.$(OBJEXT) dwarf_highpc.$(OBJEXT) \
- dwarf_ranges.$(OBJEXT) dwarf_formref.$(OBJEXT) \
- dwarf_formref_die.$(OBJEXT) dwarf_siblingof.$(OBJEXT) \
- dwarf_dieoffset.$(OBJEXT) dwarf_cuoffset.$(OBJEXT) \
- dwarf_diecu.$(OBJEXT) dwarf_hasattr.$(OBJEXT) \
- dwarf_hasform.$(OBJEXT) dwarf_whatform.$(OBJEXT) \
- dwarf_whatattr.$(OBJEXT) dwarf_bytesize.$(OBJEXT) \
- dwarf_arrayorder.$(OBJEXT) dwarf_bitsize.$(OBJEXT) \
- dwarf_bitoffset.$(OBJEXT) dwarf_srclang.$(OBJEXT) \
- dwarf_getabbrevtag.$(OBJEXT) dwarf_getabbrevcode.$(OBJEXT) \
- dwarf_abbrevhaschildren.$(OBJEXT) dwarf_getattrcnt.$(OBJEXT) \
- dwarf_getabbrevattr.$(OBJEXT) dwarf_getsrclines.$(OBJEXT) \
- dwarf_getsrc_die.$(OBJEXT) dwarf_getscopes.$(OBJEXT) \
- dwarf_getscopes_die.$(OBJEXT) dwarf_getscopevar.$(OBJEXT) \
- dwarf_linesrc.$(OBJEXT) dwarf_lineno.$(OBJEXT) \
- dwarf_lineaddr.$(OBJEXT) dwarf_linecol.$(OBJEXT) \
- dwarf_linebeginstatement.$(OBJEXT) \
- dwarf_lineendsequence.$(OBJEXT) dwarf_lineblock.$(OBJEXT) \
- dwarf_lineprologueend.$(OBJEXT) \
- dwarf_lineepiloguebegin.$(OBJEXT) dwarf_lineisa.$(OBJEXT) \
- dwarf_linediscriminator.$(OBJEXT) dwarf_lineop_index.$(OBJEXT) \
- dwarf_onesrcline.$(OBJEXT) dwarf_formblock.$(OBJEXT) \
- dwarf_getsrcfiles.$(OBJEXT) dwarf_filesrc.$(OBJEXT) \
- dwarf_getsrcdirs.$(OBJEXT) dwarf_getlocation.$(OBJEXT) \
- dwarf_getstring.$(OBJEXT) dwarf_offabbrev.$(OBJEXT) \
- dwarf_getaranges.$(OBJEXT) dwarf_onearange.$(OBJEXT) \
- dwarf_getarangeinfo.$(OBJEXT) dwarf_getarange_addr.$(OBJEXT) \
- dwarf_getattrs.$(OBJEXT) dwarf_formflag.$(OBJEXT) \
- dwarf_getmacros.$(OBJEXT) dwarf_macro_getparamcnt.$(OBJEXT) \
- dwarf_macro_opcode.$(OBJEXT) dwarf_macro_param.$(OBJEXT) \
- dwarf_macro_param1.$(OBJEXT) dwarf_macro_param2.$(OBJEXT) \
- dwarf_macro_getsrcfiles.$(OBJEXT) dwarf_addrdie.$(OBJEXT) \
- dwarf_getfuncs.$(OBJEXT) dwarf_decl_file.$(OBJEXT) \
- dwarf_decl_line.$(OBJEXT) dwarf_decl_column.$(OBJEXT) \
- dwarf_func_inline.$(OBJEXT) dwarf_getsrc_file.$(OBJEXT) \
- libdw_findcu.$(OBJEXT) libdw_form.$(OBJEXT) \
- libdw_alloc.$(OBJEXT) libdw_visit_scopes.$(OBJEXT) \
- dwarf_entry_breakpoints.$(OBJEXT) dwarf_next_cfi.$(OBJEXT) \
- cie.$(OBJEXT) fde.$(OBJEXT) cfi.$(OBJEXT) \
- frame-cache.$(OBJEXT) dwarf_frame_info.$(OBJEXT) \
- dwarf_frame_cfa.$(OBJEXT) dwarf_frame_register.$(OBJEXT) \
- dwarf_cfi_addrframe.$(OBJEXT) dwarf_getcfi.$(OBJEXT) \
- dwarf_getcfi_elf.$(OBJEXT) dwarf_cfi_end.$(OBJEXT) \
- dwarf_aggregate_size.$(OBJEXT) \
- dwarf_getlocation_implicit_pointer.$(OBJEXT) \
- dwarf_getlocation_die.$(OBJEXT) \
- dwarf_getlocation_attr.$(OBJEXT) dwarf_getalt.$(OBJEXT) \
- dwarf_setalt.$(OBJEXT) dwarf_cu_getdwarf.$(OBJEXT) \
- dwarf_cu_die.$(OBJEXT) dwarf_peel_type.$(OBJEXT)
-libdw_a_OBJECTS = $(am_libdw_a_OBJECTS)
-libdw_pic_a_AR = $(AR) $(ARFLAGS)
-libdw_pic_a_LIBADD =
-libdw_pic_a_OBJECTS = $(am_libdw_pic_a_OBJECTS)
-am__EXEEXT_1 = libdw.so$(EXEEXT)
-PROGRAMS = $(noinst_PROGRAMS)
-am_libdw_so_OBJECTS =
-libdw_so_OBJECTS = $(am_libdw_so_OBJECTS)
-libdw_so_LDADD = $(LDADD)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libdw_a_SOURCES) $(libdw_pic_a_SOURCES) \
- $(libdw_so_SOURCES)
-DIST_SOURCES = $(libdw_a_SOURCES) $(libdw_pic_a_SOURCES) \
- $(libdw_so_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 1
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/libdw
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/libdw
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) \
- $(am__append_1)
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-lib_LIBRARIES = libdw.a
-noinst_LIBRARIES = libdw_pic.a
-include_HEADERS = dwarf.h
-pkginclude_HEADERS = libdw.h
-libdw_a_SOURCES = dwarf_begin.c dwarf_begin_elf.c dwarf_end.c dwarf_getelf.c \
- dwarf_getpubnames.c dwarf_getabbrev.c dwarf_tag.c \
- dwarf_error.c dwarf_nextcu.c dwarf_diename.c dwarf_offdie.c \
- dwarf_attr.c dwarf_formstring.c \
- dwarf_abbrev_hash.c dwarf_sig8_hash.c \
- dwarf_attr_integrate.c dwarf_hasattr_integrate.c \
- dwarf_child.c dwarf_haschildren.c dwarf_formaddr.c \
- dwarf_formudata.c dwarf_formsdata.c dwarf_lowpc.c \
- dwarf_entrypc.c dwarf_haspc.c dwarf_highpc.c dwarf_ranges.c \
- dwarf_formref.c dwarf_formref_die.c dwarf_siblingof.c \
- dwarf_dieoffset.c dwarf_cuoffset.c dwarf_diecu.c \
- dwarf_hasattr.c dwarf_hasform.c \
- dwarf_whatform.c dwarf_whatattr.c \
- dwarf_bytesize.c dwarf_arrayorder.c dwarf_bitsize.c \
- dwarf_bitoffset.c dwarf_srclang.c dwarf_getabbrevtag.c \
- dwarf_getabbrevcode.c dwarf_abbrevhaschildren.c \
- dwarf_getattrcnt.c dwarf_getabbrevattr.c \
- dwarf_getsrclines.c dwarf_getsrc_die.c \
- dwarf_getscopes.c dwarf_getscopes_die.c dwarf_getscopevar.c \
- dwarf_linesrc.c dwarf_lineno.c dwarf_lineaddr.c \
- dwarf_linecol.c dwarf_linebeginstatement.c \
- dwarf_lineendsequence.c dwarf_lineblock.c \
- dwarf_lineprologueend.c dwarf_lineepiloguebegin.c \
- dwarf_lineisa.c dwarf_linediscriminator.c \
- dwarf_lineop_index.c \
- dwarf_onesrcline.c dwarf_formblock.c \
- dwarf_getsrcfiles.c dwarf_filesrc.c dwarf_getsrcdirs.c \
- dwarf_getlocation.c dwarf_getstring.c dwarf_offabbrev.c \
- dwarf_getaranges.c dwarf_onearange.c dwarf_getarangeinfo.c \
- dwarf_getarange_addr.c dwarf_getattrs.c dwarf_formflag.c \
- dwarf_getmacros.c dwarf_macro_getparamcnt.c \
- dwarf_macro_opcode.c dwarf_macro_param.c \
- dwarf_macro_param1.c dwarf_macro_param2.c \
- dwarf_macro_getsrcfiles.c \
- dwarf_addrdie.c dwarf_getfuncs.c \
- dwarf_decl_file.c dwarf_decl_line.c dwarf_decl_column.c \
- dwarf_func_inline.c dwarf_getsrc_file.c \
- libdw_findcu.c libdw_form.c libdw_alloc.c \
- libdw_visit_scopes.c \
- dwarf_entry_breakpoints.c \
- dwarf_next_cfi.c \
- cie.c fde.c cfi.c frame-cache.c \
- dwarf_frame_info.c dwarf_frame_cfa.c dwarf_frame_register.c \
- dwarf_cfi_addrframe.c \
- dwarf_getcfi.c dwarf_getcfi_elf.c dwarf_cfi_end.c \
- dwarf_aggregate_size.c dwarf_getlocation_implicit_pointer.c \
- dwarf_getlocation_die.c dwarf_getlocation_attr.c \
- dwarf_getalt.c dwarf_setalt.c dwarf_cu_getdwarf.c \
- dwarf_cu_die.c dwarf_peel_type.c
-
-#BUILT_SOURCES = $(srcdir)/known-dwarf.h
-#MAINTAINERCLEANFILES = $(srcdir)/known-dwarf.h
-libdw_pic_a_SOURCES =
-am_libdw_pic_a_OBJECTS = $(libdw_a_SOURCES:.c=.os)
-libdw_so_SOURCES =
-libdwfl_objects = $(shell $(AR) t ../libdwfl/libdwfl.a)
-libdw_a_LIBADD = $(addprefix ../libdwfl/,$(libdwfl_objects)) \
- $(addprefix ../libdwelf/,$(libdwelf_objects))
-libdwelf_objects = $(shell $(AR) t ../libdwelf/libdwelf.a)
-noinst_HEADERS = libdwP.h memory-access.h dwarf_abbrev_hash.h \
- dwarf_sig8_hash.h cfi.h encoded-value.h
-
-EXTRA_DIST = libdw.map known-dwarf.h
-MOSTLYCLEANFILES = $(am_libdw_pic_a_OBJECTS) libdw.so.$(VERSION)
-all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libdw/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libdw/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- if test -f $$p; then \
- $(am__strip_dir) \
- echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
- ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir)
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libdw.a: $(libdw_a_OBJECTS) $(libdw_a_DEPENDENCIES) $(EXTRA_libdw_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdw.a
- $(AM_V_AR)$(libdw_a_AR) libdw.a $(libdw_a_OBJECTS) $(libdw_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdw.a
-
-libdw_pic.a: $(libdw_pic_a_OBJECTS) $(libdw_pic_a_DEPENDENCIES) $(EXTRA_libdw_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdw_pic.a
- $(AM_V_AR)$(libdw_pic_a_AR) libdw_pic.a $(libdw_pic_a_OBJECTS) $(libdw_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdw_pic.a
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/cfi.Po
-include ./$(DEPDIR)/cie.Po
-include ./$(DEPDIR)/dwarf_abbrev_hash.Po
-include ./$(DEPDIR)/dwarf_abbrevhaschildren.Po
-include ./$(DEPDIR)/dwarf_addrdie.Po
-include ./$(DEPDIR)/dwarf_aggregate_size.Po
-include ./$(DEPDIR)/dwarf_arrayorder.Po
-include ./$(DEPDIR)/dwarf_attr.Po
-include ./$(DEPDIR)/dwarf_attr_integrate.Po
-include ./$(DEPDIR)/dwarf_begin.Po
-include ./$(DEPDIR)/dwarf_begin_elf.Po
-include ./$(DEPDIR)/dwarf_bitoffset.Po
-include ./$(DEPDIR)/dwarf_bitsize.Po
-include ./$(DEPDIR)/dwarf_bytesize.Po
-include ./$(DEPDIR)/dwarf_cfi_addrframe.Po
-include ./$(DEPDIR)/dwarf_cfi_end.Po
-include ./$(DEPDIR)/dwarf_child.Po
-include ./$(DEPDIR)/dwarf_cu_die.Po
-include ./$(DEPDIR)/dwarf_cu_getdwarf.Po
-include ./$(DEPDIR)/dwarf_cuoffset.Po
-include ./$(DEPDIR)/dwarf_decl_column.Po
-include ./$(DEPDIR)/dwarf_decl_file.Po
-include ./$(DEPDIR)/dwarf_decl_line.Po
-include ./$(DEPDIR)/dwarf_diecu.Po
-include ./$(DEPDIR)/dwarf_diename.Po
-include ./$(DEPDIR)/dwarf_dieoffset.Po
-include ./$(DEPDIR)/dwarf_end.Po
-include ./$(DEPDIR)/dwarf_entry_breakpoints.Po
-include ./$(DEPDIR)/dwarf_entrypc.Po
-include ./$(DEPDIR)/dwarf_error.Po
-include ./$(DEPDIR)/dwarf_filesrc.Po
-include ./$(DEPDIR)/dwarf_formaddr.Po
-include ./$(DEPDIR)/dwarf_formblock.Po
-include ./$(DEPDIR)/dwarf_formflag.Po
-include ./$(DEPDIR)/dwarf_formref.Po
-include ./$(DEPDIR)/dwarf_formref_die.Po
-include ./$(DEPDIR)/dwarf_formsdata.Po
-include ./$(DEPDIR)/dwarf_formstring.Po
-include ./$(DEPDIR)/dwarf_formudata.Po
-include ./$(DEPDIR)/dwarf_frame_cfa.Po
-include ./$(DEPDIR)/dwarf_frame_info.Po
-include ./$(DEPDIR)/dwarf_frame_register.Po
-include ./$(DEPDIR)/dwarf_func_inline.Po
-include ./$(DEPDIR)/dwarf_getabbrev.Po
-include ./$(DEPDIR)/dwarf_getabbrevattr.Po
-include ./$(DEPDIR)/dwarf_getabbrevcode.Po
-include ./$(DEPDIR)/dwarf_getabbrevtag.Po
-include ./$(DEPDIR)/dwarf_getalt.Po
-include ./$(DEPDIR)/dwarf_getarange_addr.Po
-include ./$(DEPDIR)/dwarf_getarangeinfo.Po
-include ./$(DEPDIR)/dwarf_getaranges.Po
-include ./$(DEPDIR)/dwarf_getattrcnt.Po
-include ./$(DEPDIR)/dwarf_getattrs.Po
-include ./$(DEPDIR)/dwarf_getcfi.Po
-include ./$(DEPDIR)/dwarf_getcfi_elf.Po
-include ./$(DEPDIR)/dwarf_getelf.Po
-include ./$(DEPDIR)/dwarf_getfuncs.Po
-include ./$(DEPDIR)/dwarf_getlocation.Po
-include ./$(DEPDIR)/dwarf_getlocation_attr.Po
-include ./$(DEPDIR)/dwarf_getlocation_die.Po
-include ./$(DEPDIR)/dwarf_getlocation_implicit_pointer.Po
-include ./$(DEPDIR)/dwarf_getmacros.Po
-include ./$(DEPDIR)/dwarf_getpubnames.Po
-include ./$(DEPDIR)/dwarf_getscopes.Po
-include ./$(DEPDIR)/dwarf_getscopes_die.Po
-include ./$(DEPDIR)/dwarf_getscopevar.Po
-include ./$(DEPDIR)/dwarf_getsrc_die.Po
-include ./$(DEPDIR)/dwarf_getsrc_file.Po
-include ./$(DEPDIR)/dwarf_getsrcdirs.Po
-include ./$(DEPDIR)/dwarf_getsrcfiles.Po
-include ./$(DEPDIR)/dwarf_getsrclines.Po
-include ./$(DEPDIR)/dwarf_getstring.Po
-include ./$(DEPDIR)/dwarf_hasattr.Po
-include ./$(DEPDIR)/dwarf_hasattr_integrate.Po
-include ./$(DEPDIR)/dwarf_haschildren.Po
-include ./$(DEPDIR)/dwarf_hasform.Po
-include ./$(DEPDIR)/dwarf_haspc.Po
-include ./$(DEPDIR)/dwarf_highpc.Po
-include ./$(DEPDIR)/dwarf_lineaddr.Po
-include ./$(DEPDIR)/dwarf_linebeginstatement.Po
-include ./$(DEPDIR)/dwarf_lineblock.Po
-include ./$(DEPDIR)/dwarf_linecol.Po
-include ./$(DEPDIR)/dwarf_linediscriminator.Po
-include ./$(DEPDIR)/dwarf_lineendsequence.Po
-include ./$(DEPDIR)/dwarf_lineepiloguebegin.Po
-include ./$(DEPDIR)/dwarf_lineisa.Po
-include ./$(DEPDIR)/dwarf_lineno.Po
-include ./$(DEPDIR)/dwarf_lineop_index.Po
-include ./$(DEPDIR)/dwarf_lineprologueend.Po
-include ./$(DEPDIR)/dwarf_linesrc.Po
-include ./$(DEPDIR)/dwarf_lowpc.Po
-include ./$(DEPDIR)/dwarf_macro_getparamcnt.Po
-include ./$(DEPDIR)/dwarf_macro_getsrcfiles.Po
-include ./$(DEPDIR)/dwarf_macro_opcode.Po
-include ./$(DEPDIR)/dwarf_macro_param.Po
-include ./$(DEPDIR)/dwarf_macro_param1.Po
-include ./$(DEPDIR)/dwarf_macro_param2.Po
-include ./$(DEPDIR)/dwarf_next_cfi.Po
-include ./$(DEPDIR)/dwarf_nextcu.Po
-include ./$(DEPDIR)/dwarf_offabbrev.Po
-include ./$(DEPDIR)/dwarf_offdie.Po
-include ./$(DEPDIR)/dwarf_onearange.Po
-include ./$(DEPDIR)/dwarf_onesrcline.Po
-include ./$(DEPDIR)/dwarf_peel_type.Po
-include ./$(DEPDIR)/dwarf_ranges.Po
-include ./$(DEPDIR)/dwarf_setalt.Po
-include ./$(DEPDIR)/dwarf_siblingof.Po
-include ./$(DEPDIR)/dwarf_sig8_hash.Po
-include ./$(DEPDIR)/dwarf_srclang.Po
-include ./$(DEPDIR)/dwarf_tag.Po
-include ./$(DEPDIR)/dwarf_whatattr.Po
-include ./$(DEPDIR)/dwarf_whatform.Po
-include ./$(DEPDIR)/fde.Po
-include ./$(DEPDIR)/frame-cache.Po
-include ./$(DEPDIR)/libdw_alloc.Po
-include ./$(DEPDIR)/libdw_findcu.Po
-include ./$(DEPDIR)/libdw_form.Po
-include ./$(DEPDIR)/libdw_visit_scopes.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-includeHEADERS: $(include_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
- done
-
-uninstall-includeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install-exec: install-exec-am
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libLIBRARIES clean-noinstLIBRARIES \
- clean-noinstPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-includeHEADERS install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-libLIBRARIES
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-includeHEADERS uninstall-libLIBRARIES \
- uninstall-pkgincludeHEADERS
-
-.MAKE: all check install install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-libLIBRARIES clean-noinstLIBRARIES clean-noinstPROGRAMS \
- cscopelist-am ctags ctags-am distclean distclean-compile \
- distclean-generic distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am \
- install-includeHEADERS install-info install-info-am \
- install-libLIBRARIES install-man install-pdf install-pdf-am \
- install-pkgincludeHEADERS install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
- tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
- uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-#$(srcdir)/known-dwarf.h: $(top_srcdir)/config/known-dwarf.awk $(srcdir)/dwarf.h
-# gawk -f $^ > $@.new
-# mv -f $@.new $@
-libdw.so$(EXEEXT): $(srcdir)/libdw.map libdw_pic.a ../libdwelf/libdwelf_pic.a \
- ../libdwfl/libdwfl_pic.a ../libebl/libebl.a \
- ../libelf/libelf.so
-# The rpath is necessary for libebl because its $ORIGIN use will
-# not fly in a setuid executable that links in libdw.
- $(LINK) -shared -o $@ -Wl,--soname,$@.$(VERSION),-z,defs \
- -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \
- -Wl,--version-script,$<,--no-undefined \
- -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\
- -ldl $(zip_LIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libdw.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libdw.so $(DESTDIR)$(libdir)/libdw-$(PACKAGE_VERSION).so
- ln -fs libdw-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libdw.so.$(VERSION)
- ln -fs libdw.so.$(VERSION) $(DESTDIR)$(libdir)/libdw.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libdw-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libdw.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libdw.so
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir)/elfutils
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libdw/Makefile.am b/src/libdw/Makefile.am
deleted file mode 100644
index 887da6b0..00000000
--- a/src/libdw/Makefile.am
+++ /dev/null
@@ -1,142 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 2002-2010, 2012, 2014 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-if BUILD_STATIC
-AM_CFLAGS += -fpic
-endif
-AM_CPPFLAGS += -I$(srcdir)/../libelf
-VERSION = 1
-
-lib_LIBRARIES = libdw.a
-noinst_LIBRARIES = libdw_pic.a
-noinst_PROGRAMS = $(noinst_LIBRARIES:_pic.a=.so)
-
-include_HEADERS = dwarf.h
-pkginclude_HEADERS = libdw.h
-
-libdw_a_SOURCES = dwarf_begin.c dwarf_begin_elf.c dwarf_end.c dwarf_getelf.c \
- dwarf_getpubnames.c dwarf_getabbrev.c dwarf_tag.c \
- dwarf_error.c dwarf_nextcu.c dwarf_diename.c dwarf_offdie.c \
- dwarf_attr.c dwarf_formstring.c \
- dwarf_abbrev_hash.c dwarf_sig8_hash.c \
- dwarf_attr_integrate.c dwarf_hasattr_integrate.c \
- dwarf_child.c dwarf_haschildren.c dwarf_formaddr.c \
- dwarf_formudata.c dwarf_formsdata.c dwarf_lowpc.c \
- dwarf_entrypc.c dwarf_haspc.c dwarf_highpc.c dwarf_ranges.c \
- dwarf_formref.c dwarf_formref_die.c dwarf_siblingof.c \
- dwarf_dieoffset.c dwarf_cuoffset.c dwarf_diecu.c \
- dwarf_hasattr.c dwarf_hasform.c \
- dwarf_whatform.c dwarf_whatattr.c \
- dwarf_bytesize.c dwarf_arrayorder.c dwarf_bitsize.c \
- dwarf_bitoffset.c dwarf_srclang.c dwarf_getabbrevtag.c \
- dwarf_getabbrevcode.c dwarf_abbrevhaschildren.c \
- dwarf_getattrcnt.c dwarf_getabbrevattr.c \
- dwarf_getsrclines.c dwarf_getsrc_die.c \
- dwarf_getscopes.c dwarf_getscopes_die.c dwarf_getscopevar.c \
- dwarf_linesrc.c dwarf_lineno.c dwarf_lineaddr.c \
- dwarf_linecol.c dwarf_linebeginstatement.c \
- dwarf_lineendsequence.c dwarf_lineblock.c \
- dwarf_lineprologueend.c dwarf_lineepiloguebegin.c \
- dwarf_lineisa.c dwarf_linediscriminator.c \
- dwarf_lineop_index.c \
- dwarf_onesrcline.c dwarf_formblock.c \
- dwarf_getsrcfiles.c dwarf_filesrc.c dwarf_getsrcdirs.c \
- dwarf_getlocation.c dwarf_getstring.c dwarf_offabbrev.c \
- dwarf_getaranges.c dwarf_onearange.c dwarf_getarangeinfo.c \
- dwarf_getarange_addr.c dwarf_getattrs.c dwarf_formflag.c \
- dwarf_getmacros.c dwarf_macro_getparamcnt.c \
- dwarf_macro_opcode.c dwarf_macro_param.c \
- dwarf_macro_param1.c dwarf_macro_param2.c \
- dwarf_macro_getsrcfiles.c \
- dwarf_addrdie.c dwarf_getfuncs.c \
- dwarf_decl_file.c dwarf_decl_line.c dwarf_decl_column.c \
- dwarf_func_inline.c dwarf_getsrc_file.c \
- libdw_findcu.c libdw_form.c libdw_alloc.c \
- libdw_visit_scopes.c \
- dwarf_entry_breakpoints.c \
- dwarf_next_cfi.c \
- cie.c fde.c cfi.c frame-cache.c \
- dwarf_frame_info.c dwarf_frame_cfa.c dwarf_frame_register.c \
- dwarf_cfi_addrframe.c \
- dwarf_getcfi.c dwarf_getcfi_elf.c dwarf_cfi_end.c \
- dwarf_aggregate_size.c dwarf_getlocation_implicit_pointer.c \
- dwarf_getlocation_die.c dwarf_getlocation_attr.c \
- dwarf_getalt.c dwarf_setalt.c dwarf_cu_getdwarf.c \
- dwarf_cu_die.c dwarf_peel_type.c
-
-if MAINTAINER_MODE
-BUILT_SOURCES = $(srcdir)/known-dwarf.h
-MAINTAINERCLEANFILES = $(srcdir)/known-dwarf.h
-$(srcdir)/known-dwarf.h: $(top_srcdir)/config/known-dwarf.awk $(srcdir)/dwarf.h
- gawk -f $^ > $@.new
- mv -f $@.new $@
-endif
-
-libdw_pic_a_SOURCES =
-am_libdw_pic_a_OBJECTS = $(libdw_a_SOURCES:.c=.os)
-
-libdw_so_SOURCES =
-libdw.so$(EXEEXT): $(srcdir)/libdw.map libdw_pic.a ../libdwelf/libdwelf_pic.a \
- ../libdwfl/libdwfl_pic.a ../libebl/libebl.a \
- ../libelf/libelf.so
-# The rpath is necessary for libebl because its $ORIGIN use will
-# not fly in a setuid executable that links in libdw.
- $(LINK) -shared -o $@ -Wl,--soname,$@.$(VERSION),-z,defs \
- -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \
- -Wl,--version-script,$<,--no-undefined \
- -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\
- -ldl $(zip_LIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libdw.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libdw.so $(DESTDIR)$(libdir)/libdw-$(PACKAGE_VERSION).so
- ln -fs libdw-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libdw.so.$(VERSION)
- ln -fs libdw.so.$(VERSION) $(DESTDIR)$(libdir)/libdw.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libdw-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libdw.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libdw.so
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir)/elfutils
-
-libdwfl_objects = $(shell $(AR) t ../libdwfl/libdwfl.a)
-libdw_a_LIBADD = $(addprefix ../libdwfl/,$(libdwfl_objects))
-
-libdwelf_objects = $(shell $(AR) t ../libdwelf/libdwelf.a)
-libdw_a_LIBADD += $(addprefix ../libdwelf/,$(libdwelf_objects))
-
-noinst_HEADERS = libdwP.h memory-access.h dwarf_abbrev_hash.h \
- dwarf_sig8_hash.h cfi.h encoded-value.h
-
-EXTRA_DIST = libdw.map known-dwarf.h
-
-MOSTLYCLEANFILES = $(am_libdw_pic_a_OBJECTS) libdw.so.$(VERSION)
diff --git a/src/libdw/Makefile.in b/src/libdw/Makefile.in
deleted file mode 100644
index 5e348ebe..00000000
--- a/src/libdw/Makefile.in
+++ /dev/null
@@ -1,986 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS) \
- ChangeLog
-@BUILD_STATIC_TRUE@am__append_1 = -fpic
-noinst_PROGRAMS = $(am__EXEEXT_1)
-subdir = libdw
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" \
- "$(DESTDIR)$(pkgincludedir)"
-LIBRARIES = $(lib_LIBRARIES) $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libdw_a_AR = $(AR) $(ARFLAGS)
-libdw_a_DEPENDENCIES = $(addprefix ../libdwfl/,$(libdwfl_objects)) \
- $(addprefix ../libdwelf/,$(libdwelf_objects))
-am_libdw_a_OBJECTS = dwarf_begin.$(OBJEXT) dwarf_begin_elf.$(OBJEXT) \
- dwarf_end.$(OBJEXT) dwarf_getelf.$(OBJEXT) \
- dwarf_getpubnames.$(OBJEXT) dwarf_getabbrev.$(OBJEXT) \
- dwarf_tag.$(OBJEXT) dwarf_error.$(OBJEXT) \
- dwarf_nextcu.$(OBJEXT) dwarf_diename.$(OBJEXT) \
- dwarf_offdie.$(OBJEXT) dwarf_attr.$(OBJEXT) \
- dwarf_formstring.$(OBJEXT) dwarf_abbrev_hash.$(OBJEXT) \
- dwarf_sig8_hash.$(OBJEXT) dwarf_attr_integrate.$(OBJEXT) \
- dwarf_hasattr_integrate.$(OBJEXT) dwarf_child.$(OBJEXT) \
- dwarf_haschildren.$(OBJEXT) dwarf_formaddr.$(OBJEXT) \
- dwarf_formudata.$(OBJEXT) dwarf_formsdata.$(OBJEXT) \
- dwarf_lowpc.$(OBJEXT) dwarf_entrypc.$(OBJEXT) \
- dwarf_haspc.$(OBJEXT) dwarf_highpc.$(OBJEXT) \
- dwarf_ranges.$(OBJEXT) dwarf_formref.$(OBJEXT) \
- dwarf_formref_die.$(OBJEXT) dwarf_siblingof.$(OBJEXT) \
- dwarf_dieoffset.$(OBJEXT) dwarf_cuoffset.$(OBJEXT) \
- dwarf_diecu.$(OBJEXT) dwarf_hasattr.$(OBJEXT) \
- dwarf_hasform.$(OBJEXT) dwarf_whatform.$(OBJEXT) \
- dwarf_whatattr.$(OBJEXT) dwarf_bytesize.$(OBJEXT) \
- dwarf_arrayorder.$(OBJEXT) dwarf_bitsize.$(OBJEXT) \
- dwarf_bitoffset.$(OBJEXT) dwarf_srclang.$(OBJEXT) \
- dwarf_getabbrevtag.$(OBJEXT) dwarf_getabbrevcode.$(OBJEXT) \
- dwarf_abbrevhaschildren.$(OBJEXT) dwarf_getattrcnt.$(OBJEXT) \
- dwarf_getabbrevattr.$(OBJEXT) dwarf_getsrclines.$(OBJEXT) \
- dwarf_getsrc_die.$(OBJEXT) dwarf_getscopes.$(OBJEXT) \
- dwarf_getscopes_die.$(OBJEXT) dwarf_getscopevar.$(OBJEXT) \
- dwarf_linesrc.$(OBJEXT) dwarf_lineno.$(OBJEXT) \
- dwarf_lineaddr.$(OBJEXT) dwarf_linecol.$(OBJEXT) \
- dwarf_linebeginstatement.$(OBJEXT) \
- dwarf_lineendsequence.$(OBJEXT) dwarf_lineblock.$(OBJEXT) \
- dwarf_lineprologueend.$(OBJEXT) \
- dwarf_lineepiloguebegin.$(OBJEXT) dwarf_lineisa.$(OBJEXT) \
- dwarf_linediscriminator.$(OBJEXT) dwarf_lineop_index.$(OBJEXT) \
- dwarf_onesrcline.$(OBJEXT) dwarf_formblock.$(OBJEXT) \
- dwarf_getsrcfiles.$(OBJEXT) dwarf_filesrc.$(OBJEXT) \
- dwarf_getsrcdirs.$(OBJEXT) dwarf_getlocation.$(OBJEXT) \
- dwarf_getstring.$(OBJEXT) dwarf_offabbrev.$(OBJEXT) \
- dwarf_getaranges.$(OBJEXT) dwarf_onearange.$(OBJEXT) \
- dwarf_getarangeinfo.$(OBJEXT) dwarf_getarange_addr.$(OBJEXT) \
- dwarf_getattrs.$(OBJEXT) dwarf_formflag.$(OBJEXT) \
- dwarf_getmacros.$(OBJEXT) dwarf_macro_getparamcnt.$(OBJEXT) \
- dwarf_macro_opcode.$(OBJEXT) dwarf_macro_param.$(OBJEXT) \
- dwarf_macro_param1.$(OBJEXT) dwarf_macro_param2.$(OBJEXT) \
- dwarf_macro_getsrcfiles.$(OBJEXT) dwarf_addrdie.$(OBJEXT) \
- dwarf_getfuncs.$(OBJEXT) dwarf_decl_file.$(OBJEXT) \
- dwarf_decl_line.$(OBJEXT) dwarf_decl_column.$(OBJEXT) \
- dwarf_func_inline.$(OBJEXT) dwarf_getsrc_file.$(OBJEXT) \
- libdw_findcu.$(OBJEXT) libdw_form.$(OBJEXT) \
- libdw_alloc.$(OBJEXT) libdw_visit_scopes.$(OBJEXT) \
- dwarf_entry_breakpoints.$(OBJEXT) dwarf_next_cfi.$(OBJEXT) \
- cie.$(OBJEXT) fde.$(OBJEXT) cfi.$(OBJEXT) \
- frame-cache.$(OBJEXT) dwarf_frame_info.$(OBJEXT) \
- dwarf_frame_cfa.$(OBJEXT) dwarf_frame_register.$(OBJEXT) \
- dwarf_cfi_addrframe.$(OBJEXT) dwarf_getcfi.$(OBJEXT) \
- dwarf_getcfi_elf.$(OBJEXT) dwarf_cfi_end.$(OBJEXT) \
- dwarf_aggregate_size.$(OBJEXT) \
- dwarf_getlocation_implicit_pointer.$(OBJEXT) \
- dwarf_getlocation_die.$(OBJEXT) \
- dwarf_getlocation_attr.$(OBJEXT) dwarf_getalt.$(OBJEXT) \
- dwarf_setalt.$(OBJEXT) dwarf_cu_getdwarf.$(OBJEXT) \
- dwarf_cu_die.$(OBJEXT) dwarf_peel_type.$(OBJEXT)
-libdw_a_OBJECTS = $(am_libdw_a_OBJECTS)
-libdw_pic_a_AR = $(AR) $(ARFLAGS)
-libdw_pic_a_LIBADD =
-libdw_pic_a_OBJECTS = $(am_libdw_pic_a_OBJECTS)
-am__EXEEXT_1 = libdw.so$(EXEEXT)
-PROGRAMS = $(noinst_PROGRAMS)
-am_libdw_so_OBJECTS =
-libdw_so_OBJECTS = $(am_libdw_so_OBJECTS)
-libdw_so_LDADD = $(LDADD)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libdw_a_SOURCES) $(libdw_pic_a_SOURCES) \
- $(libdw_so_SOURCES)
-DIST_SOURCES = $(libdw_a_SOURCES) $(libdw_pic_a_SOURCES) \
- $(libdw_so_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = 1
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) \
- $(am__append_1)
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-lib_LIBRARIES = libdw.a
-noinst_LIBRARIES = libdw_pic.a
-include_HEADERS = dwarf.h
-pkginclude_HEADERS = libdw.h
-libdw_a_SOURCES = dwarf_begin.c dwarf_begin_elf.c dwarf_end.c dwarf_getelf.c \
- dwarf_getpubnames.c dwarf_getabbrev.c dwarf_tag.c \
- dwarf_error.c dwarf_nextcu.c dwarf_diename.c dwarf_offdie.c \
- dwarf_attr.c dwarf_formstring.c \
- dwarf_abbrev_hash.c dwarf_sig8_hash.c \
- dwarf_attr_integrate.c dwarf_hasattr_integrate.c \
- dwarf_child.c dwarf_haschildren.c dwarf_formaddr.c \
- dwarf_formudata.c dwarf_formsdata.c dwarf_lowpc.c \
- dwarf_entrypc.c dwarf_haspc.c dwarf_highpc.c dwarf_ranges.c \
- dwarf_formref.c dwarf_formref_die.c dwarf_siblingof.c \
- dwarf_dieoffset.c dwarf_cuoffset.c dwarf_diecu.c \
- dwarf_hasattr.c dwarf_hasform.c \
- dwarf_whatform.c dwarf_whatattr.c \
- dwarf_bytesize.c dwarf_arrayorder.c dwarf_bitsize.c \
- dwarf_bitoffset.c dwarf_srclang.c dwarf_getabbrevtag.c \
- dwarf_getabbrevcode.c dwarf_abbrevhaschildren.c \
- dwarf_getattrcnt.c dwarf_getabbrevattr.c \
- dwarf_getsrclines.c dwarf_getsrc_die.c \
- dwarf_getscopes.c dwarf_getscopes_die.c dwarf_getscopevar.c \
- dwarf_linesrc.c dwarf_lineno.c dwarf_lineaddr.c \
- dwarf_linecol.c dwarf_linebeginstatement.c \
- dwarf_lineendsequence.c dwarf_lineblock.c \
- dwarf_lineprologueend.c dwarf_lineepiloguebegin.c \
- dwarf_lineisa.c dwarf_linediscriminator.c \
- dwarf_lineop_index.c \
- dwarf_onesrcline.c dwarf_formblock.c \
- dwarf_getsrcfiles.c dwarf_filesrc.c dwarf_getsrcdirs.c \
- dwarf_getlocation.c dwarf_getstring.c dwarf_offabbrev.c \
- dwarf_getaranges.c dwarf_onearange.c dwarf_getarangeinfo.c \
- dwarf_getarange_addr.c dwarf_getattrs.c dwarf_formflag.c \
- dwarf_getmacros.c dwarf_macro_getparamcnt.c \
- dwarf_macro_opcode.c dwarf_macro_param.c \
- dwarf_macro_param1.c dwarf_macro_param2.c \
- dwarf_macro_getsrcfiles.c \
- dwarf_addrdie.c dwarf_getfuncs.c \
- dwarf_decl_file.c dwarf_decl_line.c dwarf_decl_column.c \
- dwarf_func_inline.c dwarf_getsrc_file.c \
- libdw_findcu.c libdw_form.c libdw_alloc.c \
- libdw_visit_scopes.c \
- dwarf_entry_breakpoints.c \
- dwarf_next_cfi.c \
- cie.c fde.c cfi.c frame-cache.c \
- dwarf_frame_info.c dwarf_frame_cfa.c dwarf_frame_register.c \
- dwarf_cfi_addrframe.c \
- dwarf_getcfi.c dwarf_getcfi_elf.c dwarf_cfi_end.c \
- dwarf_aggregate_size.c dwarf_getlocation_implicit_pointer.c \
- dwarf_getlocation_die.c dwarf_getlocation_attr.c \
- dwarf_getalt.c dwarf_setalt.c dwarf_cu_getdwarf.c \
- dwarf_cu_die.c dwarf_peel_type.c
-
-@MAINTAINER_MODE_TRUE@BUILT_SOURCES = $(srcdir)/known-dwarf.h
-@MAINTAINER_MODE_TRUE@MAINTAINERCLEANFILES = $(srcdir)/known-dwarf.h
-libdw_pic_a_SOURCES =
-am_libdw_pic_a_OBJECTS = $(libdw_a_SOURCES:.c=.os)
-libdw_so_SOURCES =
-libdwfl_objects = $(shell $(AR) t ../libdwfl/libdwfl.a)
-libdw_a_LIBADD = $(addprefix ../libdwfl/,$(libdwfl_objects)) \
- $(addprefix ../libdwelf/,$(libdwelf_objects))
-libdwelf_objects = $(shell $(AR) t ../libdwelf/libdwelf.a)
-noinst_HEADERS = libdwP.h memory-access.h dwarf_abbrev_hash.h \
- dwarf_sig8_hash.h cfi.h encoded-value.h
-
-EXTRA_DIST = libdw.map known-dwarf.h
-MOSTLYCLEANFILES = $(am_libdw_pic_a_OBJECTS) libdw.so.$(VERSION)
-all: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libdw/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libdw/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- if test -f $$p; then \
- $(am__strip_dir) \
- echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
- ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir)
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libdw.a: $(libdw_a_OBJECTS) $(libdw_a_DEPENDENCIES) $(EXTRA_libdw_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdw.a
- $(AM_V_AR)$(libdw_a_AR) libdw.a $(libdw_a_OBJECTS) $(libdw_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdw.a
-
-libdw_pic.a: $(libdw_pic_a_OBJECTS) $(libdw_pic_a_DEPENDENCIES) $(EXTRA_libdw_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdw_pic.a
- $(AM_V_AR)$(libdw_pic_a_AR) libdw_pic.a $(libdw_pic_a_OBJECTS) $(libdw_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdw_pic.a
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cie.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_abbrev_hash.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_abbrevhaschildren.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_addrdie.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_aggregate_size.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_arrayorder.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_attr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_attr_integrate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_begin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_begin_elf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_bitoffset.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_bitsize.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_bytesize.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_cfi_addrframe.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_cfi_end.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_child.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_cu_die.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_cu_getdwarf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_cuoffset.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_decl_column.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_decl_file.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_decl_line.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_diecu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_diename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_dieoffset.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_end.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_entry_breakpoints.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_entrypc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_error.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_filesrc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_formaddr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_formblock.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_formflag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_formref.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_formref_die.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_formsdata.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_formstring.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_formudata.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_frame_cfa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_frame_info.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_frame_register.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_func_inline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getabbrev.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getabbrevattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getabbrevcode.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getabbrevtag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getalt.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getarange_addr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getarangeinfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getaranges.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getattrcnt.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getattrs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getcfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getcfi_elf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getelf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getfuncs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getlocation.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getlocation_attr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getlocation_die.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getlocation_implicit_pointer.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getmacros.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getpubnames.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getscopes.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getscopes_die.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getscopevar.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getsrc_die.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getsrc_file.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getsrcdirs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getsrcfiles.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getsrclines.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_getstring.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_hasattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_hasattr_integrate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_haschildren.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_hasform.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_haspc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_highpc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lineaddr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_linebeginstatement.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lineblock.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_linecol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_linediscriminator.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lineendsequence.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lineepiloguebegin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lineisa.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lineno.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lineop_index.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lineprologueend.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_linesrc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_lowpc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_macro_getparamcnt.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_macro_getsrcfiles.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_macro_opcode.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_macro_param.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_macro_param1.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_macro_param2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_next_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_nextcu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_offabbrev.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_offdie.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_onearange.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_onesrcline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_peel_type.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_ranges.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_setalt.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_siblingof.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_sig8_hash.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_srclang.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_tag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_whatattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_whatform.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fde.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frame-cache.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdw_alloc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdw_findcu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdw_form.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdw_visit_scopes.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-includeHEADERS: $(include_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
- done
-
-uninstall-includeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install-exec: install-exec-am
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic clean-libLIBRARIES clean-noinstLIBRARIES \
- clean-noinstPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-includeHEADERS install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-libLIBRARIES
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-includeHEADERS uninstall-libLIBRARIES \
- uninstall-pkgincludeHEADERS
-
-.MAKE: all check install install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-libLIBRARIES clean-noinstLIBRARIES clean-noinstPROGRAMS \
- cscopelist-am ctags ctags-am distclean distclean-compile \
- distclean-generic distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am \
- install-includeHEADERS install-info install-info-am \
- install-libLIBRARIES install-man install-pdf install-pdf-am \
- install-pkgincludeHEADERS install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
- tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
- uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-@MAINTAINER_MODE_TRUE@$(srcdir)/known-dwarf.h: $(top_srcdir)/config/known-dwarf.awk $(srcdir)/dwarf.h
-@MAINTAINER_MODE_TRUE@ gawk -f $^ > $@.new
-@MAINTAINER_MODE_TRUE@ mv -f $@.new $@
-libdw.so$(EXEEXT): $(srcdir)/libdw.map libdw_pic.a ../libdwelf/libdwelf_pic.a \
- ../libdwfl/libdwfl_pic.a ../libebl/libebl.a \
- ../libelf/libelf.so
-# The rpath is necessary for libebl because its $ORIGIN use will
-# not fly in a setuid executable that links in libdw.
- $(LINK) -shared -o $@ -Wl,--soname,$@.$(VERSION),-z,defs \
- -Wl,--enable-new-dtags,-rpath,$(pkglibdir) \
- -Wl,--version-script,$<,--no-undefined \
- -Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\
- -ldl $(zip_LIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libdw.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libdw.so $(DESTDIR)$(libdir)/libdw-$(PACKAGE_VERSION).so
- ln -fs libdw-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libdw.so.$(VERSION)
- ln -fs libdw.so.$(VERSION) $(DESTDIR)$(libdir)/libdw.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libdw-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libdw.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libdw.so
- rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir)/elfutils
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libdw/cfi.c b/src/libdw/cfi.c
deleted file mode 100644
index 632e91d3..00000000
--- a/src/libdw/cfi.c
+++ /dev/null
@@ -1,504 +0,0 @@
-/* CFI program execution.
- Copyright (C) 2009-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "../libebl/libebl.h"
-#include "cfi.h"
-#include "memory-access.h"
-#include "encoded-value.h"
-#include "system.h"
-#include <assert.h>
-#include <stdlib.h>
-#include <string.h>
-
-#define CFI_PRIMARY_MAX 0x3f
-
-static Dwarf_Frame *
-duplicate_frame_state (const Dwarf_Frame *original,
- Dwarf_Frame *prev)
-{
- size_t size = offsetof (Dwarf_Frame, regs[original->nregs]);
- Dwarf_Frame *copy = malloc (size);
- if (likely (copy != NULL))
- {
- memcpy (copy, original, size);
- copy->prev = prev;
- }
- return copy;
-}
-
-/* Returns a DWARF_E_* error code, usually NOERROR or INVALID_CFI.
- Frees *STATE on failure. */
-static int
-execute_cfi (Dwarf_CFI *cache,
- const struct dwarf_cie *cie,
- Dwarf_Frame **state,
- const uint8_t *program, const uint8_t *const end, bool abi_cfi,
- Dwarf_Addr loc, Dwarf_Addr find_pc)
-{
- /* The caller should not give us anything out of range. */
- assert (loc <= find_pc);
-
- int result = DWARF_E_NOERROR;
-
-#define cfi_assert(ok) do { \
- if (likely (ok)) break; \
- result = DWARF_E_INVALID_CFI; \
- goto out; \
- } while (0)
-
- Dwarf_Frame *fs = *state;
- inline bool enough_registers (Dwarf_Word reg)
- {
- if (fs->nregs <= reg)
- {
- size_t size = offsetof (Dwarf_Frame, regs[reg + 1]);
- Dwarf_Frame *bigger = realloc (fs, size);
- if (unlikely (bigger == NULL))
- {
- result = DWARF_E_NOMEM;
- return false;
- }
- else
- {
- eu_static_assert (reg_unspecified == 0);
- memset (bigger->regs + bigger->nregs, 0,
- (reg + 1 - bigger->nregs) * sizeof bigger->regs[0]);
- bigger->nregs = reg + 1;
- fs = bigger;
- }
- }
- return true;
- }
-
- inline void require_cfa_offset (void)
- {
- if (unlikely (fs->cfa_rule != cfa_offset))
- fs->cfa_rule = cfa_invalid;
- }
-
-#define register_rule(regno, r_rule, r_value) do { \
- if (unlikely (! enough_registers (regno))) \
- goto out; \
- fs->regs[regno].rule = reg_##r_rule; \
- fs->regs[regno].value = (r_value); \
- } while (0)
-
- while (program < end)
- {
- uint8_t opcode = *program++;
- Dwarf_Word regno;
- Dwarf_Word offset;
- Dwarf_Word sf_offset;
- Dwarf_Word operand = opcode & CFI_PRIMARY_MAX;
- switch (opcode)
- {
- /* These cases move LOC, i.e. "create a new table row". */
-
- case DW_CFA_advance_loc1:
- operand = *program++;
- case DW_CFA_advance_loc + 0 ... DW_CFA_advance_loc + CFI_PRIMARY_MAX:
- advance_loc:
- loc += operand * cie->code_alignment_factor;
- break;
-
- case DW_CFA_advance_loc2:
- cfi_assert (program + 2 <= end);
- operand = read_2ubyte_unaligned_inc (cache, program);
- goto advance_loc;
- case DW_CFA_advance_loc4:
- cfi_assert (program + 4 <= end);
- operand = read_4ubyte_unaligned_inc (cache, program);
- goto advance_loc;
- case DW_CFA_MIPS_advance_loc8:
- cfi_assert (program + 8 <= end);
- operand = read_8ubyte_unaligned_inc (cache, program);
- goto advance_loc;
-
- case DW_CFA_set_loc:
- if (likely (!read_encoded_value (cache, cie->fde_encoding,
- &program, &loc)))
- break;
- result = INTUSE(dwarf_errno) ();
- goto out;
-
- /* Now all following cases affect this row, but do not touch LOC.
- These cases end with 'continue'. We only get out of the
- switch block for the row-copying (LOC-moving) cases above. */
-
- case DW_CFA_def_cfa:
- get_uleb128 (operand, program, end);
- cfi_assert (program < end);
- get_uleb128 (offset, program, end);
- def_cfa:
- fs->cfa_rule = cfa_offset;
- fs->cfa_val_reg = operand;
- fs->cfa_val_offset = offset;
- /* Prime the rest of the Dwarf_Op so dwarf_frame_cfa can use it. */
- fs->cfa_data.offset.atom = DW_OP_bregx;
- fs->cfa_data.offset.offset = 0;
- continue;
-
- case DW_CFA_def_cfa_register:
- get_uleb128 (regno, program, end);
- require_cfa_offset ();
- fs->cfa_val_reg = regno;
- continue;
-
- case DW_CFA_def_cfa_sf:
- get_uleb128 (operand, program, end);
- cfi_assert (program < end);
- get_sleb128 (sf_offset, program, end);
- offset = sf_offset * cie->data_alignment_factor;
- goto def_cfa;
-
- case DW_CFA_def_cfa_offset:
- get_uleb128 (offset, program, end);
- def_cfa_offset:
- require_cfa_offset ();
- fs->cfa_val_offset = offset;
- continue;
-
- case DW_CFA_def_cfa_offset_sf:
- get_sleb128 (sf_offset, program, end);
- offset = sf_offset * cie->data_alignment_factor;
- goto def_cfa_offset;
-
- case DW_CFA_def_cfa_expression:
- /* DW_FORM_block is a ULEB128 length followed by that many bytes. */
- get_uleb128 (operand, program, end);
- cfi_assert (operand <= (Dwarf_Word) (end - program));
- fs->cfa_rule = cfa_expr;
- fs->cfa_data.expr.data = (unsigned char *) program;
- fs->cfa_data.expr.length = operand;
- program += operand;
- continue;
-
- case DW_CFA_undefined:
- get_uleb128 (regno, program, end);
- register_rule (regno, undefined, 0);
- continue;
-
- case DW_CFA_same_value:
- get_uleb128 (regno, program, end);
- register_rule (regno, same_value, 0);
- continue;
-
- case DW_CFA_offset_extended:
- get_uleb128 (operand, program, end);
- cfi_assert (program < end);
- case DW_CFA_offset + 0 ... DW_CFA_offset + CFI_PRIMARY_MAX:
- get_uleb128 (offset, program, end);
- offset *= cie->data_alignment_factor;
- offset_extended:
- register_rule (operand, offset, offset);
- continue;
-
- case DW_CFA_offset_extended_sf:
- get_uleb128 (operand, program, end);
- get_sleb128 (sf_offset, program, end);
- offset_extended_sf:
- offset = sf_offset * cie->data_alignment_factor;
- goto offset_extended;
-
- case DW_CFA_GNU_negative_offset_extended:
- /* GNU extension obsoleted by DW_CFA_offset_extended_sf. */
- get_uleb128 (operand, program, end);
- cfi_assert (program < end);
- get_uleb128 (offset, program, end);
- sf_offset = -offset;
- goto offset_extended_sf;
-
- case DW_CFA_val_offset:
- get_uleb128 (operand, program, end);
- cfi_assert (program < end);
- get_uleb128 (offset, program, end);
- offset *= cie->data_alignment_factor;
- val_offset:
- register_rule (operand, val_offset, offset);
- continue;
-
- case DW_CFA_val_offset_sf:
- get_uleb128 (operand, program, end);
- cfi_assert (program < end);
- get_sleb128 (sf_offset, program, end);
- offset = sf_offset * cie->data_alignment_factor;
- goto val_offset;
-
- case DW_CFA_register:
- get_uleb128 (regno, program, end);
- cfi_assert (program < end);
- get_uleb128 (operand, program, end);
- register_rule (regno, register, operand);
- continue;
-
- case DW_CFA_expression:
- /* Expression rule relies on section data, abi_cfi cannot use it. */
- assert (! abi_cfi);
- get_uleb128 (regno, program, end);
- offset = program - (const uint8_t *) cache->data->d.d_buf;
- /* DW_FORM_block is a ULEB128 length followed by that many bytes. */
- cfi_assert (program < end);
- get_uleb128 (operand, program, end);
- cfi_assert (operand <= (Dwarf_Word) (end - program));
- program += operand;
- register_rule (regno, expression, offset);
- continue;
-
- case DW_CFA_val_expression:
- /* Expression rule relies on section data, abi_cfi cannot use it. */
- assert (! abi_cfi);
- get_uleb128 (regno, program, end);
- /* DW_FORM_block is a ULEB128 length followed by that many bytes. */
- offset = program - (const uint8_t *) cache->data->d.d_buf;
- get_uleb128 (operand, program, end);
- cfi_assert (operand <= (Dwarf_Word) (end - program));
- program += operand;
- register_rule (regno, val_expression, offset);
- continue;
-
- case DW_CFA_restore_extended:
- get_uleb128 (operand, program, end);
- case DW_CFA_restore + 0 ... DW_CFA_restore + CFI_PRIMARY_MAX:
-
- if (unlikely (abi_cfi) && likely (opcode == DW_CFA_restore))
- {
- /* Special case hack to give backend abi_cfi a shorthand. */
- cache->default_same_value = true;
- continue;
- }
-
- /* This can't be used in the CIE's own initial instructions. */
- cfi_assert (cie->initial_state != NULL);
-
- /* Restore the CIE's initial rule for this register. */
- if (unlikely (! enough_registers (operand)))
- goto out;
- if (cie->initial_state->nregs > operand)
- fs->regs[operand] = cie->initial_state->regs[operand];
- else
- fs->regs[operand].rule = reg_unspecified;
- continue;
-
- case DW_CFA_remember_state:
- {
- /* Duplicate the state and chain the copy on. */
- Dwarf_Frame *copy = duplicate_frame_state (fs, fs);
- if (unlikely (copy == NULL))
- {
- result = DWARF_E_NOMEM;
- goto out;
- }
- fs = copy;
- continue;
- }
-
- case DW_CFA_restore_state:
- {
- /* Pop the current state off and use the old one instead. */
- Dwarf_Frame *prev = fs->prev;
- cfi_assert (prev != NULL);
- free (fs);
- fs = prev;
- continue;
- }
-
- case DW_CFA_nop:
- continue;
-
- case DW_CFA_GNU_window_save:
- /* This is magic shorthand used only by SPARC. It's equivalent
- to a bunch of DW_CFA_register and DW_CFA_offset operations. */
- if (unlikely (! enough_registers (31)))
- goto out;
- for (regno = 8; regno < 16; ++regno)
- {
- /* Find each %oN in %iN. */
- fs->regs[regno].rule = reg_register;
- fs->regs[regno].value = regno + 16;
- }
- unsigned int address_size = (cache->e_ident[EI_CLASS] == ELFCLASS32
- ? 4 : 8);
- for (; regno < 32; ++regno)
- {
- /* Find %l0..%l7 and %i0..%i7 in a block at the CFA. */
- fs->regs[regno].rule = reg_offset;
- fs->regs[regno].value = (regno - 16) * address_size;
- }
- continue;
-
- case DW_CFA_GNU_args_size:
- /* XXX is this useful for anything? */
- get_uleb128 (operand, program, end);
- continue;
-
- default:
- cfi_assert (false);
- continue;
- }
-
- /* We get here only for the cases that have just moved LOC. */
- cfi_assert (cie->initial_state != NULL);
- if (find_pc >= loc)
- /* This advance has not yet reached FIND_PC. */
- fs->start = loc;
- else
- {
- /* We have just advanced past the address we're looking for.
- The state currently described is what we want to see. */
- fs->end = loc;
- break;
- }
- }
-
- /* "The end of the instruction stream can be thought of as a
- DW_CFA_set_loc (initial_location + address_range) instruction."
- (DWARF 3.0 Section 6.4.3)
-
- When we fall off the end of the program without an advance_loc/set_loc
- that put us past FIND_PC, the final state left by the FDE program
- applies to this address (the caller ensured it was inside the FDE).
- This address (FDE->end) is already in FS->end as set by the caller. */
-
-#undef register_rule
-#undef cfi_assert
-
- out:
-
- /* Pop any remembered states left on the stack. */
- while (fs->prev != NULL)
- {
- Dwarf_Frame *prev = fs->prev;
- fs->prev = prev->prev;
- free (prev);
- }
-
- if (likely (result == DWARF_E_NOERROR))
- *state = fs;
- else
- free (fs);
-
- return result;
-}
-
-static int
-cie_cache_initial_state (Dwarf_CFI *cache, struct dwarf_cie *cie)
-{
- int result = DWARF_E_NOERROR;
-
- if (likely (cie->initial_state != NULL))
- return result;
-
- /* This CIE has not been used before. Play out its initial
- instructions and cache the initial state that results.
- First we'll let the backend fill in the default initial
- state for this machine's ABI. */
-
- Dwarf_CIE abi_info = { DW_CIE_ID_64, NULL, NULL, 1, 1, -1, "", NULL, 0, 0 };
-
- /* Make sure we have a backend handle cached. */
- if (unlikely (cache->ebl == NULL))
- {
- cache->ebl = ebl_openbackend (cache->data->s->elf);
- if (unlikely (cache->ebl == NULL))
- cache->ebl = (void *) -1l;
- }
-
- /* Fetch the ABI's default CFI program. */
- if (likely (cache->ebl != (void *) -1l)
- && unlikely (ebl_abi_cfi (cache->ebl, &abi_info) < 0))
- return DWARF_E_UNKNOWN_ERROR;
-
- Dwarf_Frame *cie_fs = calloc (1, sizeof (Dwarf_Frame));
- if (unlikely (cie_fs == NULL))
- return DWARF_E_NOMEM;
-
- /* If the default state of any register is not "undefined"
- (i.e. call-clobbered), then the backend supplies instructions
- for the standard initial state. */
- if (abi_info.initial_instructions_end > abi_info.initial_instructions)
- {
- /* Dummy CIE for backend's instructions. */
- struct dwarf_cie abi_cie =
- {
- .code_alignment_factor = abi_info.code_alignment_factor,
- .data_alignment_factor = abi_info.data_alignment_factor,
- };
- result = execute_cfi (cache, &abi_cie, &cie_fs,
- abi_info.initial_instructions,
- abi_info.initial_instructions_end, true,
- 0, (Dwarf_Addr) -1l);
- }
-
- /* Now run the CIE's initial instructions. */
- if (cie->initial_instructions_end > cie->initial_instructions
- && likely (result == DWARF_E_NOERROR))
- result = execute_cfi (cache, cie, &cie_fs,
- cie->initial_instructions,
- cie->initial_instructions_end, false,
- 0, (Dwarf_Addr) -1l);
-
- if (likely (result == DWARF_E_NOERROR))
- {
- /* Now we have the initial state of things that all
- FDEs using this CIE will start from. */
- cie_fs->cache = cache;
- cie->initial_state = cie_fs;
- }
-
- return result;
-}
-
-int
-internal_function
-__libdw_frame_at_address (Dwarf_CFI *cache, struct dwarf_fde *fde,
- Dwarf_Addr address, Dwarf_Frame **frame)
-{
- int result = cie_cache_initial_state (cache, fde->cie);
- if (likely (result == DWARF_E_NOERROR))
- {
- Dwarf_Frame *fs = duplicate_frame_state (fde->cie->initial_state, NULL);
- if (unlikely (fs == NULL))
- return DWARF_E_NOMEM;
-
- fs->fde = fde;
- fs->start = fde->start;
- fs->end = fde->end;
-
- result = execute_cfi (cache, fde->cie, &fs,
- fde->instructions, fde->instructions_end, false,
- fde->start, address);
- if (likely (result == DWARF_E_NOERROR))
- *frame = fs;
- }
- return result;
-}
diff --git a/src/libdw/cfi.h b/src/libdw/cfi.h
deleted file mode 100644
index 98ac6cfa..00000000
--- a/src/libdw/cfi.h
+++ /dev/null
@@ -1,235 +0,0 @@
-/* Internal definitions for libdw CFI interpreter.
- Copyright (C) 2009-2010, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _UNWINDP_H
-#define _UNWINDP_H 1
-
-#include "libdwP.h"
-#include "libelfP.h"
-struct ebl;
-
-/* Cached CIE representation. */
-struct dwarf_cie
-{
- Dwarf_Off offset; /* Our position, as seen in FDEs' CIE_pointer. */
-
- Dwarf_Word code_alignment_factor;
- Dwarf_Sword data_alignment_factor;
- Dwarf_Word return_address_register;
-
- size_t fde_augmentation_data_size;
-
- // play out to initial state
- const uint8_t *initial_instructions;
- const uint8_t *initial_instructions_end;
-
- const Dwarf_Frame *initial_state;
-
- uint8_t fde_encoding; /* DW_EH_PE_* for addresses in FDEs. */
- uint8_t lsda_encoding; /* DW_EH_PE_* for LSDA in FDE augmentation. */
-
- bool sized_augmentation_data; /* Saw 'z': FDEs have self-sized data. */
- bool signal_frame; /* Saw 'S': FDE is for a signal frame. */
-};
-
-/* Cached FDE representation. */
-struct dwarf_fde
-{
- struct dwarf_cie *cie;
-
- /* This FDE describes PC values in [start, end). */
- Dwarf_Addr start;
- Dwarf_Addr end;
-
- const uint8_t *instructions;
- const uint8_t *instructions_end;
-};
-
-/* This holds everything we cache about the CFI from each ELF file's
- .debug_frame or .eh_frame section. */
-struct Dwarf_CFI_s
-{
- /* Dwarf handle we came from. If null, this is .eh_frame data. */
- Dwarf *dbg;
-#define CFI_IS_EH(cfi) ((cfi)->dbg == NULL)
-
- /* Data of the .debug_frame or .eh_frame section. */
- Elf_Data_Scn *data;
- const unsigned char *e_ident; /* For EI_DATA and EI_CLASS. */
-
- Dwarf_Addr frame_vaddr; /* DW_EH_PE_pcrel, address of frame section. */
- Dwarf_Addr textrel; /* DW_EH_PE_textrel base address. */
- Dwarf_Addr datarel; /* DW_EH_PE_datarel base address. */
-
- /* Location of next unread entry in the section. */
- Dwarf_Off next_offset;
-
- /* Search tree for the CIEs, indexed by CIE_pointer (section offset). */
- void *cie_tree;
-
- /* Search tree for the FDEs, indexed by PC address. */
- void *fde_tree;
-
- /* Search tree for parsed DWARF expressions, indexed by raw pointer. */
- void *expr_tree;
-
- /* Backend hook. */
- struct ebl *ebl;
-
- /* Binary search table in .eh_frame_hdr section. */
- const uint8_t *search_table;
- Dwarf_Addr search_table_vaddr;
- size_t search_table_entries;
- uint8_t search_table_encoding;
-
- /* True if the file has a byte order different from the host. */
- bool other_byte_order;
-
- /* Default rule for registers not previously mentioned
- is same_value, not undefined. */
- bool default_same_value;
-};
-
-
-enum dwarf_frame_rule
- {
- reg_unspecified, /* Uninitialized state. */
- reg_undefined, /* DW_CFA_undefined */
- reg_same_value, /* DW_CFA_same_value */
- reg_offset, /* DW_CFA_offset_extended et al */
- reg_val_offset, /* DW_CFA_val_offset et al */
- reg_register, /* DW_CFA_register */
- reg_expression, /* DW_CFA_expression */
- reg_val_expression, /* DW_CFA_val_expression */
- };
-
-/* This describes what we know about an individual register. */
-struct dwarf_frame_register
-{
- enum dwarf_frame_rule rule:3;
-
- /* The meaning of the value bits depends on the rule:
-
- Rule Value
- ---- -----
- undefined unused
- same_value unused
- offset(N) N (register saved at CFA + value)
- val_offset(N) N (register = CFA + value)
- register(R) R (register = register #value)
- expression(E) section offset of DW_FORM_block containing E
- (register saved at address E computes)
- val_expression(E) section offset of DW_FORM_block containing E
- (register = value E computes)
- */
- Dwarf_Sword value:(sizeof (Dwarf_Sword) * 8 - 3);
-};
-
-/* This holds instructions for unwinding frame at a particular PC location
- described by an FDE. */
-struct Dwarf_Frame_s
-{
- /* This frame description covers PC values in [start, end). */
- Dwarf_Addr start;
- Dwarf_Addr end;
-
- Dwarf_CFI *cache;
-
- /* Previous state saved by DW_CFA_remember_state, or .cie->initial_state,
- or NULL in an initial_state pseudo-frame. */
- Dwarf_Frame *prev;
-
- /* The FDE that generated this frame state. This points to its CIE,
- which has the return_address_register and signal_frame flag. */
- struct dwarf_fde *fde;
-
- /* The CFA is unknown, is R+N, or is computed by a DWARF expression.
- A bogon in the CFI can indicate an invalid/incalculable rule.
- We store that as cfa_invalid rather than barfing when processing it,
- so callers can ignore the bogon unless they really need that CFA. */
- enum { cfa_undefined, cfa_offset, cfa_expr, cfa_invalid } cfa_rule;
- union
- {
- Dwarf_Op offset;
- Dwarf_Block expr;
- } cfa_data;
- /* We store an offset rule as a DW_OP_bregx operation. */
-#define cfa_val_reg cfa_data.offset.number
-#define cfa_val_offset cfa_data.offset.number2
-
- size_t nregs;
- struct dwarf_frame_register regs[];
-};
-
-
-/* Clean up the data structure and all it points to. */
-extern void __libdw_destroy_frame_cache (Dwarf_CFI *cache)
- __nonnull_attribute__ (1) internal_function;
-
-/* Enter a CIE encountered while reading through for FDEs. */
-extern void __libdw_intern_cie (Dwarf_CFI *cache, Dwarf_Off offset,
- const Dwarf_CIE *info)
- __nonnull_attribute__ (1, 3) internal_function;
-
-/* Look up a CIE_pointer for random access. */
-extern struct dwarf_cie *__libdw_find_cie (Dwarf_CFI *cache, Dwarf_Off offset)
- __nonnull_attribute__ (1) internal_function;
-
-
-/* Look for an FDE covering the given PC address. */
-extern struct dwarf_fde *__libdw_find_fde (Dwarf_CFI *cache,
- Dwarf_Addr address)
- __nonnull_attribute__ (1) internal_function;
-
-/* Look for an FDE by its offset in the section. */
-extern struct dwarf_fde *__libdw_fde_by_offset (Dwarf_CFI *cache,
- Dwarf_Off offset)
- __nonnull_attribute__ (1) internal_function;
-
-/* Process the FDE that contains the given PC address,
- to yield the frame state when stopped there.
- The return value is a DWARF_E_* error code. */
-extern int __libdw_frame_at_address (Dwarf_CFI *cache, struct dwarf_fde *fde,
- Dwarf_Addr address, Dwarf_Frame **frame)
- __nonnull_attribute__ (1, 2, 4) internal_function;
-
-
-/* Dummy struct for memory-access.h macros. */
-#define BYTE_ORDER_DUMMY(var, e_ident) \
- const struct { bool other_byte_order; } var = \
- { ((BYTE_ORDER == LITTLE_ENDIAN && e_ident[EI_DATA] == ELFDATA2MSB) \
- || (BYTE_ORDER == BIG_ENDIAN && e_ident[EI_DATA] == ELFDATA2LSB)) }
-
-
-INTDECL (dwarf_next_cfi)
-INTDECL (dwarf_getcfi)
-INTDECL (dwarf_getcfi_elf)
-INTDECL (dwarf_cfi_end)
-INTDECL (dwarf_cfi_addrframe)
-
-#endif /* unwindP.h */
diff --git a/src/libdw/cie.c b/src/libdw/cie.c
deleted file mode 100644
index 1b0aae7c..00000000
--- a/src/libdw/cie.c
+++ /dev/null
@@ -1,196 +0,0 @@
-/* CIE reading.
- Copyright (C) 2009-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-#include "encoded-value.h"
-#include <assert.h>
-#include <search.h>
-#include <stdlib.h>
-
-
-static int
-compare_cie (const void *a, const void *b)
-{
- const struct dwarf_cie *cie1 = a;
- const struct dwarf_cie *cie2 = b;
- if (cie1->offset < cie2->offset)
- return -1;
- if (cie1->offset > cie2->offset)
- return 1;
- return 0;
-}
-
-/* There is no CIE at OFFSET in the tree. Add it. */
-static struct dwarf_cie *
-intern_new_cie (Dwarf_CFI *cache, Dwarf_Off offset, const Dwarf_CIE *info)
-{
- struct dwarf_cie *cie = malloc (sizeof (struct dwarf_cie));
- if (cie == NULL)
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- return NULL;
- }
-
- cie->offset = offset;
- cie->code_alignment_factor = info->code_alignment_factor;
- cie->data_alignment_factor = info->data_alignment_factor;
- cie->return_address_register = info->return_address_register;
-
- cie->fde_augmentation_data_size = 0;
- cie->sized_augmentation_data = false;
- cie->signal_frame = false;
-
- cie->fde_encoding = DW_EH_PE_absptr;
- cie->lsda_encoding = DW_EH_PE_omit;
-
- /* Grok the augmentation string and its data. */
- const uint8_t *data = info->augmentation_data;
- for (const char *ap = info->augmentation; *ap != '\0'; ++ap)
- {
- uint8_t encoding;
- switch (*ap)
- {
- case 'z':
- cie->sized_augmentation_data = true;
- continue;
-
- case 'S':
- cie->signal_frame = true;
- continue;
-
- case 'L': /* LSDA pointer encoding byte. */
- cie->lsda_encoding = *data++;
- if (!cie->sized_augmentation_data)
- cie->fde_augmentation_data_size
- += encoded_value_size (&cache->data->d, cache->e_ident,
- cie->lsda_encoding, NULL);
- continue;
-
- case 'R': /* FDE address encoding byte. */
- cie->fde_encoding = *data++;
- continue;
-
- case 'P': /* Skip personality routine. */
- encoding = *data++;
- data += encoded_value_size (&cache->data->d, cache->e_ident,
- encoding, data);
- continue;
-
- default:
- /* Unknown augmentation string. If we have 'z' we can ignore it,
- otherwise we must bail out. */
- if (cie->sized_augmentation_data)
- continue;
- }
- /* We only get here when we need to bail out. */
- break;
- }
-
- if ((cie->fde_encoding & 0x0f) == DW_EH_PE_absptr)
- {
- /* Canonicalize encoding to a specific size. */
- assert (DW_EH_PE_absptr == 0);
-
- /* XXX should get from dwarf_next_cfi with v4 header. */
- uint_fast8_t address_size
- = cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
- switch (address_size)
- {
- case 8:
- cie->fde_encoding |= DW_EH_PE_udata8;
- break;
- case 4:
- cie->fde_encoding |= DW_EH_PE_udata4;
- break;
- default:
- free (cie);
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
- }
-
- /* Save the initial instructions to be played out into initial state. */
- cie->initial_instructions = info->initial_instructions;
- cie->initial_instructions_end = info->initial_instructions_end;
- cie->initial_state = NULL;
-
- /* Add the new entry to the search tree. */
- if (tsearch (cie, &cache->cie_tree, &compare_cie) == NULL)
- {
- free (cie);
- __libdw_seterrno (DWARF_E_NOMEM);
- return NULL;
- }
-
- return cie;
-}
-
-/* Look up a CIE_pointer for random access. */
-struct dwarf_cie *
-internal_function
-__libdw_find_cie (Dwarf_CFI *cache, Dwarf_Off offset)
-{
- const struct dwarf_cie cie_key = { .offset = offset };
- struct dwarf_cie **found = tfind (&cie_key, &cache->cie_tree, &compare_cie);
- if (found != NULL)
- return *found;
-
- /* We have not read this CIE yet. Go find it. */
- Dwarf_Off next_offset = offset;
- Dwarf_CFI_Entry entry;
- int result = INTUSE(dwarf_next_cfi) (cache->e_ident,
- &cache->data->d, CFI_IS_EH (cache),
- offset, &next_offset, &entry);
- if (result != 0 || entry.cie.CIE_id != DW_CIE_ID_64)
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- /* If this happened to be what we would have read next, notice it. */
- if (cache->next_offset == offset)
- cache->next_offset = next_offset;
-
- return intern_new_cie (cache, offset, &entry.cie);
-}
-
-/* Enter a CIE encountered while reading through for FDEs. */
-void
-internal_function
-__libdw_intern_cie (Dwarf_CFI *cache, Dwarf_Off offset, const Dwarf_CIE *info)
-{
- const struct dwarf_cie cie_key = { .offset = offset };
- struct dwarf_cie **found = tfind (&cie_key, &cache->cie_tree, &compare_cie);
- if (found == NULL)
- /* We have not read this CIE yet. Enter it. */
- (void) intern_new_cie (cache, offset, info);
-}
diff --git a/src/libdw/dwarf.h b/src/libdw/dwarf.h
deleted file mode 100644
index da8cf3a6..00000000
--- a/src/libdw/dwarf.h
+++ /dev/null
@@ -1,798 +0,0 @@
-/* This file defines standard DWARF types, structures, and macros.
- Copyright (C) 2000-2011, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _DWARF_H
-#define _DWARF_H 1
-
-/* DWARF tags. */
-enum
- {
- DW_TAG_array_type = 0x01,
- DW_TAG_class_type = 0x02,
- DW_TAG_entry_point = 0x03,
- DW_TAG_enumeration_type = 0x04,
- DW_TAG_formal_parameter = 0x05,
- DW_TAG_imported_declaration = 0x08,
- DW_TAG_label = 0x0a,
- DW_TAG_lexical_block = 0x0b,
- DW_TAG_member = 0x0d,
- DW_TAG_pointer_type = 0x0f,
- DW_TAG_reference_type = 0x10,
- DW_TAG_compile_unit = 0x11,
- DW_TAG_string_type = 0x12,
- DW_TAG_structure_type = 0x13,
- DW_TAG_subroutine_type = 0x15,
- DW_TAG_typedef = 0x16,
- DW_TAG_union_type = 0x17,
- DW_TAG_unspecified_parameters = 0x18,
- DW_TAG_variant = 0x19,
- DW_TAG_common_block = 0x1a,
- DW_TAG_common_inclusion = 0x1b,
- DW_TAG_inheritance = 0x1c,
- DW_TAG_inlined_subroutine = 0x1d,
- DW_TAG_module = 0x1e,
- DW_TAG_ptr_to_member_type = 0x1f,
- DW_TAG_set_type = 0x20,
- DW_TAG_subrange_type = 0x21,
- DW_TAG_with_stmt = 0x22,
- DW_TAG_access_declaration = 0x23,
- DW_TAG_base_type = 0x24,
- DW_TAG_catch_block = 0x25,
- DW_TAG_const_type = 0x26,
- DW_TAG_constant = 0x27,
- DW_TAG_enumerator = 0x28,
- DW_TAG_file_type = 0x29,
- DW_TAG_friend = 0x2a,
- DW_TAG_namelist = 0x2b,
- DW_TAG_namelist_item = 0x2c,
- DW_TAG_packed_type = 0x2d,
- DW_TAG_subprogram = 0x2e,
- DW_TAG_template_type_parameter = 0x2f,
- DW_TAG_template_value_parameter = 0x30,
- DW_TAG_thrown_type = 0x31,
- DW_TAG_try_block = 0x32,
- DW_TAG_variant_part = 0x33,
- DW_TAG_variable = 0x34,
- DW_TAG_volatile_type = 0x35,
- DW_TAG_dwarf_procedure = 0x36,
- DW_TAG_restrict_type = 0x37,
- DW_TAG_interface_type = 0x38,
- DW_TAG_namespace = 0x39,
- DW_TAG_imported_module = 0x3a,
- DW_TAG_unspecified_type = 0x3b,
- DW_TAG_partial_unit = 0x3c,
- DW_TAG_imported_unit = 0x3d,
- /* 0x3e reserved. */
- DW_TAG_condition = 0x3f,
- DW_TAG_shared_type = 0x40,
- DW_TAG_type_unit = 0x41,
- DW_TAG_rvalue_reference_type = 0x42,
- DW_TAG_template_alias = 0x43,
-
- DW_TAG_lo_user = 0x4080,
-
- DW_TAG_MIPS_loop = 0x4081,
- DW_TAG_format_label = 0x4101,
- DW_TAG_function_template = 0x4102,
- DW_TAG_class_template = 0x4103,
-
- DW_TAG_GNU_BINCL = 0x4104,
- DW_TAG_GNU_EINCL = 0x4105,
-
- DW_TAG_GNU_template_template_param = 0x4106,
- DW_TAG_GNU_template_parameter_pack = 0x4107,
- DW_TAG_GNU_formal_parameter_pack = 0x4108,
- DW_TAG_GNU_call_site = 0x4109,
- DW_TAG_GNU_call_site_parameter = 0x410a,
-
- DW_TAG_hi_user = 0xffff
- };
-
-
-/* Children determination encodings. */
-enum
- {
- DW_CHILDREN_no = 0,
- DW_CHILDREN_yes = 1
- };
-
-
-/* DWARF attributes encodings. */
-enum
- {
- DW_AT_sibling = 0x01,
- DW_AT_location = 0x02,
- DW_AT_name = 0x03,
- DW_AT_ordering = 0x09,
- DW_AT_subscr_data = 0x0a,
- DW_AT_byte_size = 0x0b,
- DW_AT_bit_offset = 0x0c,
- DW_AT_bit_size = 0x0d,
- DW_AT_element_list = 0x0f,
- DW_AT_stmt_list = 0x10,
- DW_AT_low_pc = 0x11,
- DW_AT_high_pc = 0x12,
- DW_AT_language = 0x13,
- DW_AT_member = 0x14,
- DW_AT_discr = 0x15,
- DW_AT_discr_value = 0x16,
- DW_AT_visibility = 0x17,
- DW_AT_import = 0x18,
- DW_AT_string_length = 0x19,
- DW_AT_common_reference = 0x1a,
- DW_AT_comp_dir = 0x1b,
- DW_AT_const_value = 0x1c,
- DW_AT_containing_type = 0x1d,
- DW_AT_default_value = 0x1e,
- DW_AT_inline = 0x20,
- DW_AT_is_optional = 0x21,
- DW_AT_lower_bound = 0x22,
- DW_AT_producer = 0x25,
- DW_AT_prototyped = 0x27,
- DW_AT_return_addr = 0x2a,
- DW_AT_start_scope = 0x2c,
- DW_AT_bit_stride = 0x2e,
- DW_AT_upper_bound = 0x2f,
- DW_AT_abstract_origin = 0x31,
- DW_AT_accessibility = 0x32,
- DW_AT_address_class = 0x33,
- DW_AT_artificial = 0x34,
- DW_AT_base_types = 0x35,
- DW_AT_calling_convention = 0x36,
- DW_AT_count = 0x37,
- DW_AT_data_member_location = 0x38,
- DW_AT_decl_column = 0x39,
- DW_AT_decl_file = 0x3a,
- DW_AT_decl_line = 0x3b,
- DW_AT_declaration = 0x3c,
- DW_AT_discr_list = 0x3d,
- DW_AT_encoding = 0x3e,
- DW_AT_external = 0x3f,
- DW_AT_frame_base = 0x40,
- DW_AT_friend = 0x41,
- DW_AT_identifier_case = 0x42,
- DW_AT_macro_info = 0x43,
- DW_AT_namelist_item = 0x44,
- DW_AT_priority = 0x45,
- DW_AT_segment = 0x46,
- DW_AT_specification = 0x47,
- DW_AT_static_link = 0x48,
- DW_AT_type = 0x49,
- DW_AT_use_location = 0x4a,
- DW_AT_variable_parameter = 0x4b,
- DW_AT_virtuality = 0x4c,
- DW_AT_vtable_elem_location = 0x4d,
- DW_AT_allocated = 0x4e,
- DW_AT_associated = 0x4f,
- DW_AT_data_location = 0x50,
- DW_AT_byte_stride = 0x51,
- DW_AT_entry_pc = 0x52,
- DW_AT_use_UTF8 = 0x53,
- DW_AT_extension = 0x54,
- DW_AT_ranges = 0x55,
- DW_AT_trampoline = 0x56,
- DW_AT_call_column = 0x57,
- DW_AT_call_file = 0x58,
- DW_AT_call_line = 0x59,
- DW_AT_description = 0x5a,
- DW_AT_binary_scale = 0x5b,
- DW_AT_decimal_scale = 0x5c,
- DW_AT_small = 0x5d,
- DW_AT_decimal_sign = 0x5e,
- DW_AT_digit_count = 0x5f,
- DW_AT_picture_string = 0x60,
- DW_AT_mutable = 0x61,
- DW_AT_threads_scaled = 0x62,
- DW_AT_explicit = 0x63,
- DW_AT_object_pointer = 0x64,
- DW_AT_endianity = 0x65,
- DW_AT_elemental = 0x66,
- DW_AT_pure = 0x67,
- DW_AT_recursive = 0x68,
- DW_AT_signature = 0x69,
- DW_AT_main_subprogram = 0x6a,
- DW_AT_data_bit_offset = 0x6b,
- DW_AT_const_expr = 0x6c,
- DW_AT_enum_class = 0x6d,
- DW_AT_linkage_name = 0x6e,
-
- /* DWARF5 attribute values. */
- DW_AT_noreturn = 0x87,
-
- DW_AT_lo_user = 0x2000,
-
- DW_AT_MIPS_fde = 0x2001,
- DW_AT_MIPS_loop_begin = 0x2002,
- DW_AT_MIPS_tail_loop_begin = 0x2003,
- DW_AT_MIPS_epilog_begin = 0x2004,
- DW_AT_MIPS_loop_unroll_factor = 0x2005,
- DW_AT_MIPS_software_pipeline_depth = 0x2006,
- DW_AT_MIPS_linkage_name = 0x2007,
- DW_AT_MIPS_stride = 0x2008,
- DW_AT_MIPS_abstract_name = 0x2009,
- DW_AT_MIPS_clone_origin = 0x200a,
- DW_AT_MIPS_has_inlines = 0x200b,
- DW_AT_MIPS_stride_byte = 0x200c,
- DW_AT_MIPS_stride_elem = 0x200d,
- DW_AT_MIPS_ptr_dopetype = 0x200e,
- DW_AT_MIPS_allocatable_dopetype = 0x200f,
- DW_AT_MIPS_assumed_shape_dopetype = 0x2010,
- DW_AT_MIPS_assumed_size = 0x2011,
-
- /* GNU extensions. */
- DW_AT_sf_names = 0x2101,
- DW_AT_src_info = 0x2102,
- DW_AT_mac_info = 0x2103,
- DW_AT_src_coords = 0x2104,
- DW_AT_body_begin = 0x2105,
- DW_AT_body_end = 0x2106,
- DW_AT_GNU_vector = 0x2107,
- DW_AT_GNU_guarded_by = 0x2108,
- DW_AT_GNU_pt_guarded_by = 0x2109,
- DW_AT_GNU_guarded = 0x210a,
- DW_AT_GNU_pt_guarded = 0x210b,
- DW_AT_GNU_locks_excluded = 0x210c,
- DW_AT_GNU_exclusive_locks_required = 0x210d,
- DW_AT_GNU_shared_locks_required = 0x210e,
- DW_AT_GNU_odr_signature = 0x210f,
- DW_AT_GNU_template_name = 0x2110,
- DW_AT_GNU_call_site_value = 0x2111,
- DW_AT_GNU_call_site_data_value = 0x2112,
- DW_AT_GNU_call_site_target = 0x2113,
- DW_AT_GNU_call_site_target_clobbered = 0x2114,
- DW_AT_GNU_tail_call = 0x2115,
- DW_AT_GNU_all_tail_call_sites = 0x2116,
- DW_AT_GNU_all_call_sites = 0x2117,
- DW_AT_GNU_all_source_call_sites = 0x2118,
- DW_AT_GNU_macros = 0x2119,
- DW_AT_GNU_deleted = 0x211a,
-
- DW_AT_hi_user = 0x3fff
- };
-
-
-/* DWARF form encodings. */
-enum
- {
- DW_FORM_addr = 0x01,
- DW_FORM_block2 = 0x03,
- DW_FORM_block4 = 0x04,
- DW_FORM_data2 = 0x05,
- DW_FORM_data4 = 0x06,
- DW_FORM_data8 = 0x07,
- DW_FORM_string = 0x08,
- DW_FORM_block = 0x09,
- DW_FORM_block1 = 0x0a,
- DW_FORM_data1 = 0x0b,
- DW_FORM_flag = 0x0c,
- DW_FORM_sdata = 0x0d,
- DW_FORM_strp = 0x0e,
- DW_FORM_udata = 0x0f,
- DW_FORM_ref_addr = 0x10,
- DW_FORM_ref1 = 0x11,
- DW_FORM_ref2 = 0x12,
- DW_FORM_ref4 = 0x13,
- DW_FORM_ref8 = 0x14,
- DW_FORM_ref_udata = 0x15,
- DW_FORM_indirect = 0x16,
- DW_FORM_sec_offset = 0x17,
- DW_FORM_exprloc = 0x18,
- DW_FORM_flag_present = 0x19,
- DW_FORM_ref_sig8 = 0x20,
-
- DW_FORM_GNU_ref_alt = 0x1f20, /* offset in alternate .debuginfo. */
- DW_FORM_GNU_strp_alt = 0x1f21 /* offset in alternate .debug_str. */
- };
-
-
-/* DWARF location operation encodings. */
-enum
- {
- DW_OP_addr = 0x03, /* Constant address. */
- DW_OP_deref = 0x06,
- DW_OP_const1u = 0x08, /* Unsigned 1-byte constant. */
- DW_OP_const1s = 0x09, /* Signed 1-byte constant. */
- DW_OP_const2u = 0x0a, /* Unsigned 2-byte constant. */
- DW_OP_const2s = 0x0b, /* Signed 2-byte constant. */
- DW_OP_const4u = 0x0c, /* Unsigned 4-byte constant. */
- DW_OP_const4s = 0x0d, /* Signed 4-byte constant. */
- DW_OP_const8u = 0x0e, /* Unsigned 8-byte constant. */
- DW_OP_const8s = 0x0f, /* Signed 8-byte constant. */
- DW_OP_constu = 0x10, /* Unsigned LEB128 constant. */
- DW_OP_consts = 0x11, /* Signed LEB128 constant. */
- DW_OP_dup = 0x12,
- DW_OP_drop = 0x13,
- DW_OP_over = 0x14,
- DW_OP_pick = 0x15, /* 1-byte stack index. */
- DW_OP_swap = 0x16,
- DW_OP_rot = 0x17,
- DW_OP_xderef = 0x18,
- DW_OP_abs = 0x19,
- DW_OP_and = 0x1a,
- DW_OP_div = 0x1b,
- DW_OP_minus = 0x1c,
- DW_OP_mod = 0x1d,
- DW_OP_mul = 0x1e,
- DW_OP_neg = 0x1f,
- DW_OP_not = 0x20,
- DW_OP_or = 0x21,
- DW_OP_plus = 0x22,
- DW_OP_plus_uconst = 0x23, /* Unsigned LEB128 addend. */
- DW_OP_shl = 0x24,
- DW_OP_shr = 0x25,
- DW_OP_shra = 0x26,
- DW_OP_xor = 0x27,
- DW_OP_bra = 0x28, /* Signed 2-byte constant. */
- DW_OP_eq = 0x29,
- DW_OP_ge = 0x2a,
- DW_OP_gt = 0x2b,
- DW_OP_le = 0x2c,
- DW_OP_lt = 0x2d,
- DW_OP_ne = 0x2e,
- DW_OP_skip = 0x2f, /* Signed 2-byte constant. */
- DW_OP_lit0 = 0x30, /* Literal 0. */
- DW_OP_lit1 = 0x31, /* Literal 1. */
- DW_OP_lit2 = 0x32, /* Literal 2. */
- DW_OP_lit3 = 0x33, /* Literal 3. */
- DW_OP_lit4 = 0x34, /* Literal 4. */
- DW_OP_lit5 = 0x35, /* Literal 5. */
- DW_OP_lit6 = 0x36, /* Literal 6. */
- DW_OP_lit7 = 0x37, /* Literal 7. */
- DW_OP_lit8 = 0x38, /* Literal 8. */
- DW_OP_lit9 = 0x39, /* Literal 9. */
- DW_OP_lit10 = 0x3a, /* Literal 10. */
- DW_OP_lit11 = 0x3b, /* Literal 11. */
- DW_OP_lit12 = 0x3c, /* Literal 12. */
- DW_OP_lit13 = 0x3d, /* Literal 13. */
- DW_OP_lit14 = 0x3e, /* Literal 14. */
- DW_OP_lit15 = 0x3f, /* Literal 15. */
- DW_OP_lit16 = 0x40, /* Literal 16. */
- DW_OP_lit17 = 0x41, /* Literal 17. */
- DW_OP_lit18 = 0x42, /* Literal 18. */
- DW_OP_lit19 = 0x43, /* Literal 19. */
- DW_OP_lit20 = 0x44, /* Literal 20. */
- DW_OP_lit21 = 0x45, /* Literal 21. */
- DW_OP_lit22 = 0x46, /* Literal 22. */
- DW_OP_lit23 = 0x47, /* Literal 23. */
- DW_OP_lit24 = 0x48, /* Literal 24. */
- DW_OP_lit25 = 0x49, /* Literal 25. */
- DW_OP_lit26 = 0x4a, /* Literal 26. */
- DW_OP_lit27 = 0x4b, /* Literal 27. */
- DW_OP_lit28 = 0x4c, /* Literal 28. */
- DW_OP_lit29 = 0x4d, /* Literal 29. */
- DW_OP_lit30 = 0x4e, /* Literal 30. */
- DW_OP_lit31 = 0x4f, /* Literal 31. */
- DW_OP_reg0 = 0x50, /* Register 0. */
- DW_OP_reg1 = 0x51, /* Register 1. */
- DW_OP_reg2 = 0x52, /* Register 2. */
- DW_OP_reg3 = 0x53, /* Register 3. */
- DW_OP_reg4 = 0x54, /* Register 4. */
- DW_OP_reg5 = 0x55, /* Register 5. */
- DW_OP_reg6 = 0x56, /* Register 6. */
- DW_OP_reg7 = 0x57, /* Register 7. */
- DW_OP_reg8 = 0x58, /* Register 8. */
- DW_OP_reg9 = 0x59, /* Register 9. */
- DW_OP_reg10 = 0x5a, /* Register 10. */
- DW_OP_reg11 = 0x5b, /* Register 11. */
- DW_OP_reg12 = 0x5c, /* Register 12. */
- DW_OP_reg13 = 0x5d, /* Register 13. */
- DW_OP_reg14 = 0x5e, /* Register 14. */
- DW_OP_reg15 = 0x5f, /* Register 15. */
- DW_OP_reg16 = 0x60, /* Register 16. */
- DW_OP_reg17 = 0x61, /* Register 17. */
- DW_OP_reg18 = 0x62, /* Register 18. */
- DW_OP_reg19 = 0x63, /* Register 19. */
- DW_OP_reg20 = 0x64, /* Register 20. */
- DW_OP_reg21 = 0x65, /* Register 21. */
- DW_OP_reg22 = 0x66, /* Register 22. */
- DW_OP_reg23 = 0x67, /* Register 24. */
- DW_OP_reg24 = 0x68, /* Register 24. */
- DW_OP_reg25 = 0x69, /* Register 25. */
- DW_OP_reg26 = 0x6a, /* Register 26. */
- DW_OP_reg27 = 0x6b, /* Register 27. */
- DW_OP_reg28 = 0x6c, /* Register 28. */
- DW_OP_reg29 = 0x6d, /* Register 29. */
- DW_OP_reg30 = 0x6e, /* Register 30. */
- DW_OP_reg31 = 0x6f, /* Register 31. */
- DW_OP_breg0 = 0x70, /* Base register 0. */
- DW_OP_breg1 = 0x71, /* Base register 1. */
- DW_OP_breg2 = 0x72, /* Base register 2. */
- DW_OP_breg3 = 0x73, /* Base register 3. */
- DW_OP_breg4 = 0x74, /* Base register 4. */
- DW_OP_breg5 = 0x75, /* Base register 5. */
- DW_OP_breg6 = 0x76, /* Base register 6. */
- DW_OP_breg7 = 0x77, /* Base register 7. */
- DW_OP_breg8 = 0x78, /* Base register 8. */
- DW_OP_breg9 = 0x79, /* Base register 9. */
- DW_OP_breg10 = 0x7a, /* Base register 10. */
- DW_OP_breg11 = 0x7b, /* Base register 11. */
- DW_OP_breg12 = 0x7c, /* Base register 12. */
- DW_OP_breg13 = 0x7d, /* Base register 13. */
- DW_OP_breg14 = 0x7e, /* Base register 14. */
- DW_OP_breg15 = 0x7f, /* Base register 15. */
- DW_OP_breg16 = 0x80, /* Base register 16. */
- DW_OP_breg17 = 0x81, /* Base register 17. */
- DW_OP_breg18 = 0x82, /* Base register 18. */
- DW_OP_breg19 = 0x83, /* Base register 19. */
- DW_OP_breg20 = 0x84, /* Base register 20. */
- DW_OP_breg21 = 0x85, /* Base register 21. */
- DW_OP_breg22 = 0x86, /* Base register 22. */
- DW_OP_breg23 = 0x87, /* Base register 23. */
- DW_OP_breg24 = 0x88, /* Base register 24. */
- DW_OP_breg25 = 0x89, /* Base register 25. */
- DW_OP_breg26 = 0x8a, /* Base register 26. */
- DW_OP_breg27 = 0x8b, /* Base register 27. */
- DW_OP_breg28 = 0x8c, /* Base register 28. */
- DW_OP_breg29 = 0x8d, /* Base register 29. */
- DW_OP_breg30 = 0x8e, /* Base register 30. */
- DW_OP_breg31 = 0x8f, /* Base register 31. */
- DW_OP_regx = 0x90, /* Unsigned LEB128 register. */
- DW_OP_fbreg = 0x91, /* Signed LEB128 offset. */
- DW_OP_bregx = 0x92, /* ULEB128 register followed by SLEB128 off. */
- DW_OP_piece = 0x93, /* ULEB128 size of piece addressed. */
- DW_OP_deref_size = 0x94, /* 1-byte size of data retrieved. */
- DW_OP_xderef_size = 0x95, /* 1-byte size of data retrieved. */
- DW_OP_nop = 0x96,
- DW_OP_push_object_address = 0x97,
- DW_OP_call2 = 0x98,
- DW_OP_call4 = 0x99,
- DW_OP_call_ref = 0x9a,
- DW_OP_form_tls_address = 0x9b,/* TLS offset to address in current thread */
- DW_OP_call_frame_cfa = 0x9c,/* CFA as determined by CFI. */
- DW_OP_bit_piece = 0x9d, /* ULEB128 size and ULEB128 offset in bits. */
- DW_OP_implicit_value = 0x9e, /* DW_FORM_block follows opcode. */
- DW_OP_stack_value = 0x9f, /* No operands, special like DW_OP_piece. */
-
- /* GNU extensions. */
- DW_OP_GNU_push_tls_address = 0xe0,
- DW_OP_GNU_uninit = 0xf0,
- DW_OP_GNU_encoded_addr = 0xf1,
- DW_OP_GNU_implicit_pointer = 0xf2,
- DW_OP_GNU_entry_value = 0xf3,
- DW_OP_GNU_const_type = 0xf4,
- DW_OP_GNU_regval_type = 0xf5,
- DW_OP_GNU_deref_type = 0xf6,
- DW_OP_GNU_convert = 0xf7,
- DW_OP_GNU_reinterpret = 0xf9,
- DW_OP_GNU_parameter_ref = 0xfa,
-
- DW_OP_lo_user = 0xe0, /* Implementation-defined range start. */
- DW_OP_hi_user = 0xff /* Implementation-defined range end. */
- };
-
-
-/* DWARF base type encodings. */
-enum
- {
- DW_ATE_void = 0x0,
- DW_ATE_address = 0x1,
- DW_ATE_boolean = 0x2,
- DW_ATE_complex_float = 0x3,
- DW_ATE_float = 0x4,
- DW_ATE_signed = 0x5,
- DW_ATE_signed_char = 0x6,
- DW_ATE_unsigned = 0x7,
- DW_ATE_unsigned_char = 0x8,
- DW_ATE_imaginary_float = 0x9,
- DW_ATE_packed_decimal = 0xa,
- DW_ATE_numeric_string = 0xb,
- DW_ATE_edited = 0xc,
- DW_ATE_signed_fixed = 0xd,
- DW_ATE_unsigned_fixed = 0xe,
- DW_ATE_decimal_float = 0xf,
- DW_ATE_UTF = 0x10,
-
- DW_ATE_lo_user = 0x80,
- DW_ATE_hi_user = 0xff
- };
-
-
-/* DWARF decimal sign encodings. */
-enum
- {
- DW_DS_unsigned = 1,
- DW_DS_leading_overpunch = 2,
- DW_DS_trailing_overpunch = 3,
- DW_DS_leading_separate = 4,
- DW_DS_trailing_separate = 5,
- };
-
-
-/* DWARF endianity encodings. */
-enum
- {
- DW_END_default = 0,
- DW_END_big = 1,
- DW_END_little = 2,
-
- DW_END_lo_user = 0x40,
- DW_END_hi_user = 0xff
- };
-
-
-/* DWARF accessibility encodings. */
-enum
- {
- DW_ACCESS_public = 1,
- DW_ACCESS_protected = 2,
- DW_ACCESS_private = 3
- };
-
-
-/* DWARF visibility encodings. */
-enum
- {
- DW_VIS_local = 1,
- DW_VIS_exported = 2,
- DW_VIS_qualified = 3
- };
-
-
-/* DWARF virtuality encodings. */
-enum
- {
- DW_VIRTUALITY_none = 0,
- DW_VIRTUALITY_virtual = 1,
- DW_VIRTUALITY_pure_virtual = 2
- };
-
-
-/* DWARF language encodings. */
-enum
- {
- DW_LANG_C89 = 0x0001, /* ISO C:1989 */
- DW_LANG_C = 0x0002, /* C */
- DW_LANG_Ada83 = 0x0003, /* ISO Ada:1983 */
- DW_LANG_C_plus_plus = 0x0004, /* ISO C++:1998 */
- DW_LANG_Cobol74 = 0x0005, /* ISO Cobol:1974 */
- DW_LANG_Cobol85 = 0x0006, /* ISO Cobol:1985 */
- DW_LANG_Fortran77 = 0x0007, /* ISO FORTRAN 77 */
- DW_LANG_Fortran90 = 0x0008, /* ISO Fortran 90 */
- DW_LANG_Pascal83 = 0x0009, /* ISO Pascal:1983 */
- DW_LANG_Modula2 = 0x000a, /* ISO Modula-2:1996 */
- DW_LANG_Java = 0x000b, /* Java */
- DW_LANG_C99 = 0x000c, /* ISO C:1999 */
- DW_LANG_Ada95 = 0x000d, /* ISO Ada:1995 */
- DW_LANG_Fortran95 = 0x000e, /* ISO Fortran 95 */
- DW_LANG_PL1 = 0x000f, /* ISO PL/1:1976 */
- DW_LANG_ObjC = 0x0010, /* Objective-C */
- DW_LANG_ObjC_plus_plus = 0x0011, /* Objective-C++ */
- DW_LANG_UPC = 0x0012, /* Unified Parallel C */
- DW_LANG_D = 0x0013, /* D */
- DW_LANG_Python = 0x0014, /* Python */
- DW_LANG_Go = 0x0016, /* Go */
- DW_LANG_C_plus_plus_11 = 0x001a, /* ISO C++:2011 */
- DW_LANG_C11 = 0x001d, /* ISO C:2011 */
- DW_LANG_C_plus_plus_14 = 0x0021, /* ISO C++:2014 */
-
-
- DW_LANG_lo_user = 0x8000,
- DW_LANG_Mips_Assembler = 0x8001, /* Assembler */
- DW_LANG_hi_user = 0xffff
- };
-
-
-/* DWARF identifier case encodings. */
-enum
- {
- DW_ID_case_sensitive = 0,
- DW_ID_up_case = 1,
- DW_ID_down_case = 2,
- DW_ID_case_insensitive = 3
- };
-
-
-/* DWARF calling conventions encodings. */
-enum
- {
- DW_CC_normal = 0x1,
- DW_CC_program = 0x2,
- DW_CC_nocall = 0x3,
- DW_CC_lo_user = 0x40,
- DW_CC_hi_user = 0xff
- };
-
-
-/* DWARF inline encodings. */
-enum
- {
- DW_INL_not_inlined = 0,
- DW_INL_inlined = 1,
- DW_INL_declared_not_inlined = 2,
- DW_INL_declared_inlined = 3
- };
-
-
-/* DWARF ordering encodings. */
-enum
- {
- DW_ORD_row_major = 0,
- DW_ORD_col_major = 1
- };
-
-
-/* DWARF discriminant descriptor encodings. */
-enum
- {
- DW_DSC_label = 0,
- DW_DSC_range = 1
- };
-
-
-/* DWARF standard opcode encodings. */
-enum
- {
- DW_LNS_copy = 1,
- DW_LNS_advance_pc = 2,
- DW_LNS_advance_line = 3,
- DW_LNS_set_file = 4,
- DW_LNS_set_column = 5,
- DW_LNS_negate_stmt = 6,
- DW_LNS_set_basic_block = 7,
- DW_LNS_const_add_pc = 8,
- DW_LNS_fixed_advance_pc = 9,
- DW_LNS_set_prologue_end = 10,
- DW_LNS_set_epilogue_begin = 11,
- DW_LNS_set_isa = 12
- };
-
-
-/* DWARF extended opcode encodings. */
-enum
- {
- DW_LNE_end_sequence = 1,
- DW_LNE_set_address = 2,
- DW_LNE_define_file = 3,
- DW_LNE_set_discriminator = 4,
-
- DW_LNE_lo_user = 128,
- DW_LNE_hi_user = 255
- };
-
-
-/* DWARF macinfo type encodings. */
-enum
- {
- DW_MACINFO_define = 1,
- DW_MACINFO_undef = 2,
- DW_MACINFO_start_file = 3,
- DW_MACINFO_end_file = 4,
- DW_MACINFO_vendor_ext = 255
- };
-
-
-/* DWARF debug_macro type encodings. GNU/DWARF5 extension. */
-enum
- {
- DW_MACRO_GNU_define = 0x01,
- DW_MACRO_GNU_undef = 0x02,
- DW_MACRO_GNU_start_file = 0x03,
- DW_MACRO_GNU_end_file = 0x04,
- DW_MACRO_GNU_define_indirect = 0x05,
- DW_MACRO_GNU_undef_indirect = 0x06,
- DW_MACRO_GNU_transparent_include = 0x07,
- DW_MACRO_GNU_lo_user = 0xe0,
- DW_MACRO_GNU_hi_user = 0xff
- };
-
-
-/* DWARF call frame instruction encodings. */
-enum
- {
- DW_CFA_advance_loc = 0x40,
- DW_CFA_offset = 0x80,
- DW_CFA_restore = 0xc0,
- DW_CFA_extended = 0,
-
- DW_CFA_nop = 0x00,
- DW_CFA_set_loc = 0x01,
- DW_CFA_advance_loc1 = 0x02,
- DW_CFA_advance_loc2 = 0x03,
- DW_CFA_advance_loc4 = 0x04,
- DW_CFA_offset_extended = 0x05,
- DW_CFA_restore_extended = 0x06,
- DW_CFA_undefined = 0x07,
- DW_CFA_same_value = 0x08,
- DW_CFA_register = 0x09,
- DW_CFA_remember_state = 0x0a,
- DW_CFA_restore_state = 0x0b,
- DW_CFA_def_cfa = 0x0c,
- DW_CFA_def_cfa_register = 0x0d,
- DW_CFA_def_cfa_offset = 0x0e,
- DW_CFA_def_cfa_expression = 0x0f,
- DW_CFA_expression = 0x10,
- DW_CFA_offset_extended_sf = 0x11,
- DW_CFA_def_cfa_sf = 0x12,
- DW_CFA_def_cfa_offset_sf = 0x13,
- DW_CFA_val_offset = 0x14,
- DW_CFA_val_offset_sf = 0x15,
- DW_CFA_val_expression = 0x16,
-
- DW_CFA_low_user = 0x1c,
- DW_CFA_MIPS_advance_loc8 = 0x1d,
- DW_CFA_GNU_window_save = 0x2d,
- DW_CFA_GNU_args_size = 0x2e,
- DW_CFA_GNU_negative_offset_extended = 0x2f,
- DW_CFA_high_user = 0x3f
- };
-
-/* ID indicating CIE as opposed to FDE in .debug_frame. */
-enum
- {
- DW_CIE_ID_32 = 0xffffffffU, /* In 32-bit format CIE header. */
- DW_CIE_ID_64 = 0xffffffffffffffffULL /* In 64-bit format CIE header. */
- };
-
-
-/* Information for GNU unwind information. */
-enum
- {
- DW_EH_PE_absptr = 0x00,
- DW_EH_PE_omit = 0xff,
-
- /* FDE data encoding. */
- DW_EH_PE_uleb128 = 0x01,
- DW_EH_PE_udata2 = 0x02,
- DW_EH_PE_udata4 = 0x03,
- DW_EH_PE_udata8 = 0x04,
- DW_EH_PE_sleb128 = 0x09,
- DW_EH_PE_sdata2 = 0x0a,
- DW_EH_PE_sdata4 = 0x0b,
- DW_EH_PE_sdata8 = 0x0c,
- DW_EH_PE_signed = 0x08,
-
- /* FDE flags. */
- DW_EH_PE_pcrel = 0x10,
- DW_EH_PE_textrel = 0x20,
- DW_EH_PE_datarel = 0x30,
- DW_EH_PE_funcrel = 0x40,
- DW_EH_PE_aligned = 0x50,
-
- DW_EH_PE_indirect = 0x80
- };
-
-
-/* DWARF XXX. */
-#define DW_ADDR_none 0
-
-/* Section 7.2.2 of the DWARF3 specification defines a range of escape
- codes that can appear in the length field of certain DWARF structures.
-
- These defines enumerate the minium and maximum values of this range.
- Currently only the maximum value is used (to indicate that 64-bit
- values are going to be used in the dwarf data that accompanies the
- structure). The other values are reserved.
-
- Note: There is a typo in DWARF3 spec (published Dec 20, 2005). In
- sections 7.4, 7.5.1, 7.19, 7.20 the minimum escape code is referred to
- as 0xffffff00 whereas in fact it should be 0xfffffff0. */
-#define DWARF3_LENGTH_MIN_ESCAPE_CODE 0xfffffff0u
-#define DWARF3_LENGTH_MAX_ESCAPE_CODE 0xffffffffu
-#define DWARF3_LENGTH_64_BIT DWARF3_LENGTH_MAX_ESCAPE_CODE
-
-#endif /* dwarf.h */
diff --git a/src/libdw/dwarf_abbrev_hash.c b/src/libdw/dwarf_abbrev_hash.c
deleted file mode 100644
index f52f5ad5..00000000
--- a/src/libdw/dwarf_abbrev_hash.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Implementation of hash table for DWARF .debug_abbrev section content.
- Copyright (C) 2000-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "dwarf_sig8_hash.h"
-#define NO_UNDEF
-#include "libdwP.h"
-
-#define next_prime __libdwarf_next_prime
-extern size_t next_prime (size_t) attribute_hidden;
-
-#include <dynamicsizehash.c>
-
-#undef next_prime
-#define next_prime attribute_hidden __libdwarf_next_prime
-#include "../lib/next_prime.c"
diff --git a/src/libdw/dwarf_abbrev_hash.h b/src/libdw/dwarf_abbrev_hash.h
deleted file mode 100644
index d2f02ccc..00000000
--- a/src/libdw/dwarf_abbrev_hash.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Hash table for DWARF .debug_abbrev section content.
- Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _DWARF_ABBREV_HASH_H
-#define _DWARF_ABBREV_HASH_H 1
-
-#define NAME Dwarf_Abbrev_Hash
-#define TYPE Dwarf_Abbrev *
-#define COMPARE(a, b) (0)
-
-#include <dynamicsizehash.h>
-
-#endif /* dwarf_abbrev_hash.h */
diff --git a/src/libdw/dwarf_abbrevhaschildren.c b/src/libdw/dwarf_abbrevhaschildren.c
deleted file mode 100644
index 4a83e31d..00000000
--- a/src/libdw/dwarf_abbrevhaschildren.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Return true if abbreviation is children flag set.
- Copyright (C) 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_abbrevhaschildren (abbrev)
- Dwarf_Abbrev *abbrev;
-{
- return abbrev == NULL ? -1 : abbrev->has_children;
-}
diff --git a/src/libdw/dwarf_addrdie.c b/src/libdw/dwarf_addrdie.c
deleted file mode 100644
index 94eb1480..00000000
--- a/src/libdw/dwarf_addrdie.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Return CU DIE containing given address.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-Dwarf_Die *
-dwarf_addrdie (dbg, addr, result)
- Dwarf *dbg;
- Dwarf_Addr addr;
- Dwarf_Die *result;
-{
- Dwarf_Aranges *aranges;
- size_t naranges;
- Dwarf_Off off;
-
- if (INTUSE(dwarf_getaranges) (dbg, &aranges, &naranges) != 0
- || INTUSE(dwarf_getarangeinfo) (INTUSE(dwarf_getarange_addr) (aranges,
- addr),
- NULL, NULL, &off) != 0)
- return NULL;
-
- return INTUSE(dwarf_offdie) (dbg, off, result);
-}
diff --git a/src/libdw/dwarf_aggregate_size.c b/src/libdw/dwarf_aggregate_size.c
deleted file mode 100644
index 667c2743..00000000
--- a/src/libdw/dwarf_aggregate_size.c
+++ /dev/null
@@ -1,244 +0,0 @@
-/* Compute size of an aggregate type from DWARF.
- Copyright (C) 2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-static Dwarf_Die *
-get_type (Dwarf_Die *die, Dwarf_Attribute *attr_mem, Dwarf_Die *type_mem)
-{
- Dwarf_Die *type = INTUSE(dwarf_formref_die)
- (INTUSE(dwarf_attr_integrate) (die, DW_AT_type, attr_mem), type_mem);
-
- if (INTUSE(dwarf_peel_type) (type, type) != 0)
- return NULL;
-
- return type;
-}
-
-static int
-array_size (Dwarf_Die *die, Dwarf_Word *size,
- Dwarf_Attribute *attr_mem, Dwarf_Die *type_mem)
-{
- Dwarf_Word eltsize;
- if (INTUSE(dwarf_aggregate_size) (get_type (die, attr_mem, type_mem),
- &eltsize) != 0)
- return -1;
-
- /* An array can have DW_TAG_subrange_type or DW_TAG_enumeration_type
- children instead that give the size of each dimension. */
-
- Dwarf_Die child;
- if (INTUSE(dwarf_child) (die, &child) != 0)
- return -1;
-
- bool any = false;
- Dwarf_Word total = 0;
- do
- {
- Dwarf_Word count;
- switch (INTUSE(dwarf_tag) (&child))
- {
- case DW_TAG_subrange_type:
- /* This has either DW_AT_count or DW_AT_upper_bound. */
- if (INTUSE(dwarf_attr_integrate) (&child, DW_AT_count,
- attr_mem) != NULL)
- {
- if (INTUSE(dwarf_formudata) (attr_mem, &count) != 0)
- return -1;
- }
- else
- {
- Dwarf_Sword upper;
- Dwarf_Sword lower;
- if (INTUSE(dwarf_formsdata) (INTUSE(dwarf_attr_integrate)
- (&child, DW_AT_upper_bound,
- attr_mem), &upper) != 0)
- return -1;
-
- /* Having DW_AT_lower_bound is optional. */
- if (INTUSE(dwarf_attr_integrate) (&child, DW_AT_lower_bound,
- attr_mem) != NULL)
- {
- if (INTUSE(dwarf_formsdata) (attr_mem, &lower) != 0)
- return -1;
- }
- else
- {
- /* Determine default lower bound from language,
- as per "4.12 Subrange Type Entries". */
- Dwarf_Die cu = CUDIE (die->cu);
- switch (INTUSE(dwarf_srclang) (&cu))
- {
- case DW_LANG_C:
- case DW_LANG_C89:
- case DW_LANG_C99:
- case DW_LANG_C11:
- case DW_LANG_C_plus_plus:
- case DW_LANG_C_plus_plus_11:
- case DW_LANG_C_plus_plus_14:
- case DW_LANG_ObjC:
- case DW_LANG_ObjC_plus_plus:
- case DW_LANG_Java:
- case DW_LANG_D:
- case DW_LANG_UPC:
- case DW_LANG_Go:
- lower = 0;
- break;
-
- case DW_LANG_Ada83:
- case DW_LANG_Ada95:
- case DW_LANG_Cobol74:
- case DW_LANG_Cobol85:
- case DW_LANG_Fortran77:
- case DW_LANG_Fortran90:
- case DW_LANG_Fortran95:
- case DW_LANG_Pascal83:
- case DW_LANG_Modula2:
- case DW_LANG_PL1:
- lower = 1;
- break;
-
- default:
- return -1;
- }
- }
- if (unlikely (lower > upper))
- return -1;
- count = upper - lower + 1;
- }
- break;
-
- case DW_TAG_enumeration_type:
- /* We have to find the DW_TAG_enumerator child with the
- highest value to know the array's element count. */
- count = 0;
- Dwarf_Die enum_child;
- int has_children = INTUSE(dwarf_child) (die, &enum_child);
- if (has_children < 0)
- return -1;
- if (has_children > 0)
- do
- if (INTUSE(dwarf_tag) (&enum_child) == DW_TAG_enumerator)
- {
- Dwarf_Word value;
- if (INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
- (&enum_child, DW_AT_const_value,
- attr_mem), &value) != 0)
- return -1;
- if (value >= count)
- count = value + 1;
- }
- while (INTUSE(dwarf_siblingof) (&enum_child, &enum_child) > 0);
- break;
-
- default:
- continue;
- }
-
- /* This is a subrange_type or enumeration_type and we've set COUNT.
- Now determine the stride for this array dimension. */
- Dwarf_Word stride = eltsize;
- if (INTUSE(dwarf_attr_integrate) (&child, DW_AT_byte_stride,
- attr_mem) != NULL)
- {
- if (INTUSE(dwarf_formudata) (attr_mem, &stride) != 0)
- return -1;
- }
- else if (INTUSE(dwarf_attr_integrate) (&child, DW_AT_bit_stride,
- attr_mem) != NULL)
- {
- if (INTUSE(dwarf_formudata) (attr_mem, &stride) != 0)
- return -1;
- if (stride % 8) /* XXX maybe compute in bits? */
- return -1;
- stride /= 8;
- }
-
- any = true;
- total += stride * count;
- }
- while (INTUSE(dwarf_siblingof) (&child, &child) == 0);
-
- if (!any)
- return -1;
-
- *size = total;
- return 0;
-}
-
-static int
-aggregate_size (Dwarf_Die *die, Dwarf_Word *size, Dwarf_Die *type_mem)
-{
- Dwarf_Attribute attr_mem;
-
- if (INTUSE(dwarf_attr_integrate) (die, DW_AT_byte_size, &attr_mem) != NULL)
- return INTUSE(dwarf_formudata) (&attr_mem, size);
-
- switch (INTUSE(dwarf_tag) (die))
- {
- case DW_TAG_subrange_type:
- return aggregate_size (get_type (die, &attr_mem, type_mem),
- size, type_mem); /* Tail call. */
-
- case DW_TAG_array_type:
- return array_size (die, size, &attr_mem, type_mem);
-
- /* Assume references and pointers have pointer size if not given an
- explicit DW_AT_byte_size. */
- case DW_TAG_pointer_type:
- case DW_TAG_reference_type:
- case DW_TAG_rvalue_reference_type:
- *size = die->cu->address_size;
- return 0;
- }
-
- /* Most types must give their size directly. */
- return -1;
-}
-
-int
-dwarf_aggregate_size (die, size)
- Dwarf_Die *die;
- Dwarf_Word *size;
-{
- Dwarf_Die type_mem;
-
- if (INTUSE (dwarf_peel_type) (die, die) != 0)
- return -1;
-
- return aggregate_size (die, size, &type_mem);
-}
-INTDEF (dwarf_aggregate_size)
-OLD_VERSION (dwarf_aggregate_size, ELFUTILS_0.144)
-NEW_VERSION (dwarf_aggregate_size, ELFUTILS_0.161)
diff --git a/src/libdw/dwarf_arrayorder.c b/src/libdw/dwarf_arrayorder.c
deleted file mode 100644
index 759fa4d8..00000000
--- a/src/libdw/dwarf_arrayorder.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Return array order attribute of DIE.
- Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_arrayorder (die)
- Dwarf_Die *die;
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Word value;
-
- return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
- (die, DW_AT_ordering, &attr_mem),
- &value) == 0 ? (int) value : -1;
-}
-OLD_VERSION (dwarf_arrayorder, ELFUTILS_0.122)
-NEW_VERSION (dwarf_arrayorder, ELFUTILS_0.143)
diff --git a/src/libdw/dwarf_attr.c b/src/libdw/dwarf_attr.c
deleted file mode 100644
index f247c1af..00000000
--- a/src/libdw/dwarf_attr.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Return specific DWARF attribute of a DIE.
- Copyright (C) 2003, 2005, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-Dwarf_Attribute *
-dwarf_attr (die, search_name, result)
- Dwarf_Die *die;
- unsigned int search_name;
- Dwarf_Attribute *result;
-{
- if (die == NULL)
- return NULL;
-
- /* Search for the attribute with the given name. */
- result->valp = __libdw_find_attr (die, search_name, &result->code,
- &result->form);
- /* Always fill in the CU information. */
- result->cu = die->cu;
-
- return result->valp != NULL && result->code == search_name ? result : NULL;
-}
-INTDEF(dwarf_attr)
diff --git a/src/libdw/dwarf_attr_integrate.c b/src/libdw/dwarf_attr_integrate.c
deleted file mode 100644
index 812d74b9..00000000
--- a/src/libdw/dwarf_attr_integrate.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Return specific DWARF attribute of a DIE, integrating indirections.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-Dwarf_Attribute *
-dwarf_attr_integrate (Dwarf_Die *die, unsigned int search_name,
- Dwarf_Attribute *result)
-{
- Dwarf_Die die_mem;
-
- do
- {
- Dwarf_Attribute *attr = INTUSE(dwarf_attr) (die, search_name, result);
- if (attr != NULL)
- return attr;
-
- attr = INTUSE(dwarf_attr) (die, DW_AT_abstract_origin, result);
- if (attr == NULL)
- attr = INTUSE(dwarf_attr) (die, DW_AT_specification, result);
- if (attr == NULL)
- break;
-
- die = INTUSE(dwarf_formref_die) (attr, &die_mem);
- }
- while (die != NULL);
-
- return NULL;
-}
-INTDEF (dwarf_attr_integrate)
diff --git a/src/libdw/dwarf_begin.c b/src/libdw/dwarf_begin.c
deleted file mode 100644
index 9f3050fd..00000000
--- a/src/libdw/dwarf_begin.c
+++ /dev/null
@@ -1,101 +0,0 @@
-/* Create descriptor from file descriptor for processing file.
- Copyright (C) 2002, 2003, 2004, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <stddef.h>
-#include <sys/stat.h>
-
-#include <libdwP.h>
-
-
-Dwarf *
-dwarf_begin (fd, cmd)
- int fd;
- Dwarf_Cmd cmd;
-{
- Elf *elf;
- Elf_Cmd elfcmd;
- Dwarf *result = NULL;
-
- switch (cmd)
- {
- case DWARF_C_READ:
- elfcmd = ELF_C_READ_MMAP;
- break;
- case DWARF_C_WRITE:
- elfcmd = ELF_C_WRITE;
- break;
- case DWARF_C_RDWR:
- elfcmd = ELF_C_RDWR;
- break;
- default:
- /* No valid mode. */
- __libdw_seterrno (DWARF_E_INVALID_CMD);
- return NULL;
- }
-
- /* We have to call `elf_version' here since the user might have not
- done it or initialized libelf with a different version. This
- would break libdwarf since we are using the ELF data structures
- in a certain way. */
- elf_version (EV_CURRENT);
-
- /* Get an ELF descriptor. */
- elf = elf_begin (fd, elfcmd, NULL);
- if (elf == NULL)
- {
- /* Test why the `elf_begin" call failed. */
- struct stat64 st;
-
- if (fstat64 (fd, &st) == 0 && ! S_ISREG (st.st_mode))
- __libdw_seterrno (DWARF_E_NO_REGFILE);
- else if (errno == EBADF)
- __libdw_seterrno (DWARF_E_INVALID_FILE);
- else
- __libdw_seterrno (DWARF_E_IO_ERROR);
- }
- else
- {
- /* Do the real work now that we have an ELF descriptor. */
- result = INTUSE(dwarf_begin_elf) (elf, cmd, NULL);
-
- /* If this failed, free the resources. */
- if (result == NULL)
- elf_end (elf);
- else
- result->free_elf = true;
- }
-
- return result;
-}
-INTDEF(dwarf_begin)
diff --git a/src/libdw/dwarf_begin_elf.c b/src/libdw/dwarf_begin_elf.c
deleted file mode 100644
index 4c49ce21..00000000
--- a/src/libdw/dwarf_begin_elf.c
+++ /dev/null
@@ -1,395 +0,0 @@
-/* Create descriptor from ELF descriptor for processing file.
- Copyright (C) 2002-2011, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-#include "libdwP.h"
-
-#if USE_ZLIB
-# include <endian.h>
-# define crc32 loser_crc32
-# include <zlib.h>
-# undef crc32
-#endif
-
-
-/* Section names. */
-static const char dwarf_scnnames[IDX_last][18] =
-{
- [IDX_debug_info] = ".debug_info",
- [IDX_debug_types] = ".debug_types",
- [IDX_debug_abbrev] = ".debug_abbrev",
- [IDX_debug_aranges] = ".debug_aranges",
- [IDX_debug_line] = ".debug_line",
- [IDX_debug_frame] = ".debug_frame",
- [IDX_debug_loc] = ".debug_loc",
- [IDX_debug_pubnames] = ".debug_pubnames",
- [IDX_debug_str] = ".debug_str",
- [IDX_debug_macinfo] = ".debug_macinfo",
- [IDX_debug_macro] = ".debug_macro",
- [IDX_debug_ranges] = ".debug_ranges",
- [IDX_gnu_debugaltlink] = ".gnu_debugaltlink"
-};
-#define ndwarf_scnnames (sizeof (dwarf_scnnames) / sizeof (dwarf_scnnames[0]))
-
-static Dwarf *
-check_section (Dwarf *result, GElf_Ehdr *ehdr, Elf_Scn *scn, bool inscngrp)
-{
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
-
- /* Get the section header data. */
- shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- /* We may read /proc/PID/mem with only program headers mapped and section
- headers out of the mapped pages. */
- goto err;
-
- /* Ignore any SHT_NOBITS sections. Debugging sections should not
- have been stripped, but in case of a corrupt file we won't try
- to look at the missing data. */
- if (unlikely (shdr->sh_type == SHT_NOBITS))
- return result;
-
- /* Make sure the section is part of a section group only iff we
- really need it. If we are looking for the global (= non-section
- group debug info) we have to ignore all the info in section
- groups. If we are looking into a section group we cannot look at
- a section which isn't part of the section group. */
- if (! inscngrp && (shdr->sh_flags & SHF_GROUP) != 0)
- /* Ignore the section. */
- return result;
-
-
- /* We recognize the DWARF section by their names. This is not very
- safe and stable but the best we can do. */
- const char *scnname = elf_strptr (result->elf, ehdr->e_shstrndx,
- shdr->sh_name);
- if (scnname == NULL)
- {
- /* The section name must be valid. Otherwise is the ELF file
- invalid. */
- err:
- __libdw_free_zdata (result);
- Dwarf_Sig8_Hash_free (&result->sig8_hash);
- __libdw_seterrno (DWARF_E_INVALID_ELF);
- free (result);
- return NULL;
- }
-
- /* Recognize the various sections. Most names start with .debug_. */
- size_t cnt;
- for (cnt = 0; cnt < ndwarf_scnnames; ++cnt)
- if (strcmp (scnname, dwarf_scnnames[cnt]) == 0)
- {
- /* Found it. Remember where the data is. */
- if (unlikely (result->sectiondata[cnt] != NULL))
- /* A section appears twice. That's bad. We ignore the section. */
- break;
-
- /* Get the section data. */
- Elf_Data *data = elf_getdata (scn, NULL);
- if (data != NULL && data->d_size != 0)
- /* Yep, there is actually data available. */
- result->sectiondata[cnt] = data;
-
- break;
- }
-#if USE_ZLIB
- else if (scnname[0] == '.' && scnname[1] == 'z'
- && strcmp (&scnname[2], &dwarf_scnnames[cnt][1]) == 0)
- {
- /* A compressed section. */
-
- if (unlikely (result->sectiondata[cnt] != NULL))
- /* A section appears twice. That's bad. We ignore the section. */
- break;
-
- /* Get the section data. */
- Elf_Data *data = elf_getdata (scn, NULL);
- if (data != NULL && data->d_size != 0)
- {
- /* There is a 12-byte header of "ZLIB" followed by
- an 8-byte big-endian size. */
-
- if (unlikely (data->d_size < 4 + 8)
- || unlikely (memcmp (data->d_buf, "ZLIB", 4) != 0))
- break;
-
- uint64_t size;
- memcpy (&size, data->d_buf + 4, sizeof size);
- size = be64toh (size);
-
- /* Check for unsigned overflow so malloc always allocated
- enough memory for both the Elf_Data header and the
- uncompressed section data. */
- if (unlikely (sizeof (Elf_Data) + size < size))
- break;
-
- Elf_Data *zdata = malloc (sizeof (Elf_Data) + size);
- if (unlikely (zdata == NULL))
- break;
-
- zdata->d_buf = &zdata[1];
- zdata->d_type = ELF_T_BYTE;
- zdata->d_version = EV_CURRENT;
- zdata->d_size = size;
- zdata->d_off = 0;
- zdata->d_align = 1;
-
- z_stream z =
- {
- .next_in = data->d_buf + 4 + 8,
- .avail_in = data->d_size - 4 - 8,
- .next_out = zdata->d_buf,
- .avail_out = zdata->d_size
- };
- int zrc = inflateInit (&z);
- while (z.avail_in > 0 && likely (zrc == Z_OK))
- {
- z.next_out = zdata->d_buf + (zdata->d_size - z.avail_out);
- zrc = inflate (&z, Z_FINISH);
- if (unlikely (zrc != Z_STREAM_END))
- {
- zrc = Z_DATA_ERROR;
- break;
- }
- zrc = inflateReset (&z);
- }
- if (likely (zrc == Z_OK))
- zrc = inflateEnd (&z);
-
- if (unlikely (zrc != Z_OK) || unlikely (z.avail_out != 0))
- free (zdata);
- else
- {
- result->sectiondata[cnt] = zdata;
- result->sectiondata_gzip_mask |= 1U << cnt;
- }
- }
-
- break;
- }
-#endif
-
- return result;
-}
-
-
-/* Check whether all the necessary DWARF information is available. */
-static Dwarf *
-valid_p (Dwarf *result)
-{
- /* We looked at all the sections. Now determine whether all the
- sections with debugging information we need are there.
-
- XXX Which sections are absolutely necessary? Add tests if
- necessary. For now we require only .debug_info. Hopefully this
- is correct. */
- if (likely (result != NULL)
- && unlikely (result->sectiondata[IDX_debug_info] == NULL))
- {
- __libdw_free_zdata (result);
- Dwarf_Sig8_Hash_free (&result->sig8_hash);
- __libdw_seterrno (DWARF_E_NO_DWARF);
- free (result);
- result = NULL;
- }
-
- if (result != NULL && result->sectiondata[IDX_debug_loc] != NULL)
- {
- result->fake_loc_cu = (Dwarf_CU *) calloc (1, sizeof (Dwarf_CU));
- if (unlikely (result->fake_loc_cu == NULL))
- {
- __libdw_free_zdata (result);
- Dwarf_Sig8_Hash_free (&result->sig8_hash);
- __libdw_seterrno (DWARF_E_NOMEM);
- free (result);
- result = NULL;
- }
- else
- {
- result->fake_loc_cu->dbg = result;
- result->fake_loc_cu->startp
- = result->sectiondata[IDX_debug_loc]->d_buf;
- result->fake_loc_cu->endp
- = (result->sectiondata[IDX_debug_loc]->d_buf
- + result->sectiondata[IDX_debug_loc]->d_size);
- }
- }
-
- return result;
-}
-
-
-static Dwarf *
-global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr)
-{
- Elf_Scn *scn = NULL;
-
- while (result != NULL && (scn = elf_nextscn (elf, scn)) != NULL)
- result = check_section (result, ehdr, scn, false);
-
- return valid_p (result);
-}
-
-
-static Dwarf *
-scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp)
-{
- /* SCNGRP is the section descriptor for a section group which might
- contain debug sections. */
- Elf_Data *data = elf_getdata (scngrp, NULL);
- if (data == NULL)
- {
- /* We cannot read the section content. Fail! */
- __libdw_free_zdata (result);
- Dwarf_Sig8_Hash_free (&result->sig8_hash);
- free (result);
- return NULL;
- }
-
- /* The content of the section is a number of 32-bit words which
- represent section indices. The first word is a flag word. */
- Elf32_Word *scnidx = (Elf32_Word *) data->d_buf;
- size_t cnt;
- for (cnt = 1; cnt * sizeof (Elf32_Word) <= data->d_size; ++cnt)
- {
- Elf_Scn *scn = elf_getscn (elf, scnidx[cnt]);
- if (scn == NULL)
- {
- /* A section group refers to a non-existing section. Should
- never happen. */
- __libdw_free_zdata (result);
- Dwarf_Sig8_Hash_free (&result->sig8_hash);
- __libdw_seterrno (DWARF_E_INVALID_ELF);
- free (result);
- return NULL;
- }
-
- result = check_section (result, ehdr, scn, true);
- if (result == NULL)
- break;
- }
-
- return valid_p (result);
-}
-
-
-Dwarf *
-dwarf_begin_elf (elf, cmd, scngrp)
- Elf *elf;
- Dwarf_Cmd cmd;
- Elf_Scn *scngrp;
-{
- GElf_Ehdr *ehdr;
- GElf_Ehdr ehdr_mem;
-
- /* Get the ELF header of the file. We need various pieces of
- information from it. */
- ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- if (elf_kind (elf) != ELF_K_ELF)
- __libdw_seterrno (DWARF_E_NOELF);
- else
- __libdw_seterrno (DWARF_E_GETEHDR_ERROR);
-
- return NULL;
- }
-
-
- /* Default memory allocation size. */
- size_t mem_default_size = sysconf (_SC_PAGESIZE) - 4 * sizeof (void *);
-
- /* Allocate the data structure. */
- Dwarf *result = (Dwarf *) calloc (1, sizeof (Dwarf) + mem_default_size);
- if (unlikely (result == NULL)
- || unlikely (Dwarf_Sig8_Hash_init (&result->sig8_hash, 11) < 0))
- {
- free (result);
- __libdw_seterrno (DWARF_E_NOMEM);
- return NULL;
- }
-
- /* Fill in some values. */
- if ((BYTE_ORDER == LITTLE_ENDIAN && ehdr->e_ident[EI_DATA] == ELFDATA2MSB)
- || (BYTE_ORDER == BIG_ENDIAN && ehdr->e_ident[EI_DATA] == ELFDATA2LSB))
- result->other_byte_order = true;
-
- result->elf = elf;
-
- /* Initialize the memory handling. */
- result->mem_default_size = mem_default_size;
- result->oom_handler = __libdw_oom;
- result->mem_tail = (struct libdw_memblock *) (result + 1);
- result->mem_tail->size = (result->mem_default_size
- - offsetof (struct libdw_memblock, mem));
- result->mem_tail->remaining = result->mem_tail->size;
- result->mem_tail->prev = NULL;
-
- if (cmd == DWARF_C_READ || cmd == DWARF_C_RDWR)
- {
- /* If the caller provides a section group we get the DWARF
- sections only from this setion group. Otherwise we search
- for the first section with the required name. Further
- sections with the name are ignored. The DWARF specification
- does not really say this is allowed. */
- if (scngrp == NULL)
- return global_read (result, elf, ehdr);
- else
- return scngrp_read (result, elf, ehdr, scngrp);
- }
- else if (cmd == DWARF_C_WRITE)
- {
- Dwarf_Sig8_Hash_free (&result->sig8_hash);
- __libdw_seterrno (DWARF_E_UNIMPL);
- free (result);
- return NULL;
- }
-
- Dwarf_Sig8_Hash_free (&result->sig8_hash);
- __libdw_seterrno (DWARF_E_INVALID_CMD);
- free (result);
- return NULL;
-}
-INTDEF(dwarf_begin_elf)
diff --git a/src/libdw/dwarf_bitoffset.c b/src/libdw/dwarf_bitoffset.c
deleted file mode 100644
index 1648ecd7..00000000
--- a/src/libdw/dwarf_bitoffset.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Return bit offset attribute of DIE.
- Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_bitoffset (die)
- Dwarf_Die *die;
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Word value;
-
- return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
- (die, DW_AT_bit_offset, &attr_mem),
- &value) == 0 ? (int) value : -1;
-}
-OLD_VERSION (dwarf_bitoffset, ELFUTILS_0.122)
-NEW_VERSION (dwarf_bitoffset, ELFUTILS_0.143)
diff --git a/src/libdw/dwarf_bitsize.c b/src/libdw/dwarf_bitsize.c
deleted file mode 100644
index ea9946b8..00000000
--- a/src/libdw/dwarf_bitsize.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Return bit size attribute of DIE.
- Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_bitsize (die)
- Dwarf_Die *die;
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Word value;
-
- return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
- (die, DW_AT_bit_size, &attr_mem),
- &value) == 0 ? (int) value : -1;
-}
-OLD_VERSION (dwarf_bitsize, ELFUTILS_0.122)
-NEW_VERSION (dwarf_bitsize, ELFUTILS_0.143)
diff --git a/src/libdw/dwarf_bytesize.c b/src/libdw/dwarf_bytesize.c
deleted file mode 100644
index 6499a0ae..00000000
--- a/src/libdw/dwarf_bytesize.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Return byte size attribute of DIE.
- Copyright (C) 2003, 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_bytesize (die)
- Dwarf_Die *die;
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Word value;
-
- return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
- (die, DW_AT_byte_size, &attr_mem),
- &value) == 0 ? (int) value : -1;
-}
-OLD_VERSION (dwarf_bytesize, ELFUTILS_0.122)
-NEW_VERSION (dwarf_bytesize, ELFUTILS_0.143)
diff --git a/src/libdw/dwarf_cfi_addrframe.c b/src/libdw/dwarf_cfi_addrframe.c
deleted file mode 100644
index 1c0da03e..00000000
--- a/src/libdw/dwarf_cfi_addrframe.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* Compute frame state at PC.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-
-int
-dwarf_cfi_addrframe (cache, address, frame)
- Dwarf_CFI *cache;
- Dwarf_Addr address;
- Dwarf_Frame **frame;
-{
- /* Maybe there was a previous error. */
- if (cache == NULL)
- return -1;
-
- struct dwarf_fde *fde = __libdw_find_fde (cache, address);
- if (fde == NULL)
- return -1;
-
- int error = __libdw_frame_at_address (cache, fde, address, frame);
- if (error != DWARF_E_NOERROR)
- {
- __libdw_seterrno (error);
- return -1;
- }
- return 0;
-}
-INTDEF (dwarf_cfi_addrframe)
diff --git a/src/libdw/dwarf_cfi_end.c b/src/libdw/dwarf_cfi_end.c
deleted file mode 100644
index 6eb2ade8..00000000
--- a/src/libdw/dwarf_cfi_end.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Clean up Dwarf_CFI structure.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include "cfi.h"
-#include <stdlib.h>
-
-int
-dwarf_cfi_end (cache)
- Dwarf_CFI *cache;
-{
- if (cache != NULL)
- {
- __libdw_destroy_frame_cache (cache);
- free (cache);
- }
-
- return 0;
-}
-INTDEF (dwarf_cfi_end)
diff --git a/src/libdw/dwarf_child.c b/src/libdw/dwarf_child.c
deleted file mode 100644
index 58a438b5..00000000
--- a/src/libdw/dwarf_child.c
+++ /dev/null
@@ -1,176 +0,0 @@
-/* Return child of current DIE.
- Copyright (C) 2003-2011, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <string.h>
-
-/* Some arbitrary value not conflicting with any existing code. */
-#define INVALID 0xffffe444
-
-
-unsigned char *
-internal_function
-__libdw_find_attr (Dwarf_Die *die, unsigned int search_name,
- unsigned int *codep, unsigned int *formp)
-{
- Dwarf *dbg = die->cu->dbg;
- const unsigned char *readp;
-
- /* Find the abbreviation entry. */
- Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, &readp);
- if (unlikely (abbrevp == DWARF_END_ABBREV))
- {
- invalid_dwarf:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- /* Search the name attribute. */
- unsigned char *const endp
- = ((unsigned char *) dbg->sectiondata[IDX_debug_abbrev]->d_buf
- + dbg->sectiondata[IDX_debug_abbrev]->d_size);
-
- const unsigned char *attrp = abbrevp->attrp;
- while (1)
- {
- /* Get attribute name and form. */
- if (unlikely (attrp >= endp))
- goto invalid_dwarf;
- unsigned int attr_name;
- get_uleb128 (attr_name, attrp, endp);
-
- if (unlikely (attrp >= endp))
- goto invalid_dwarf;
- unsigned int attr_form;
- get_uleb128 (attr_form, attrp, endp);
-
- /* We can stop if we found the attribute with value zero. */
- if (attr_name == 0 && attr_form == 0)
- break;
-
- /* Is this the name attribute? */
- if (attr_name == search_name && search_name != INVALID)
- {
- if (codep != NULL)
- *codep = attr_name;
- if (formp != NULL)
- *formp = attr_form;
-
- return (unsigned char *) readp;
- }
-
- /* Skip over the rest of this attribute (if there is any). */
- if (attr_form != 0)
- {
- size_t len = __libdw_form_val_len (die->cu, attr_form, readp);
- if (unlikely (len == (size_t) -1l))
- {
- readp = NULL;
- break;
- }
-
- // __libdw_form_val_len will have done a bounds check.
- readp += len;
- }
- }
-
- // XXX Do we need other values?
- if (codep != NULL)
- *codep = INVALID;
- if (formp != NULL)
- *formp = INVALID;
-
- return (unsigned char *) readp;
-}
-
-
-int
-dwarf_child (die, result)
- Dwarf_Die *die;
- Dwarf_Die *result;
-{
- /* Ignore previous errors. */
- if (die == NULL)
- return -1;
-
- /* Find the abbreviation entry. */
- Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, NULL);
- if (unlikely (abbrevp == DWARF_END_ABBREV))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- /* If there are no children, do not search. */
- if (! abbrevp->has_children)
- return 1;
-
- /* Skip past the last attribute. */
- void *addr = __libdw_find_attr (die, INVALID, NULL, NULL);
-
- if (addr == NULL)
- return -1;
-
- /* RESULT can be the same as DIE. So preserve what we need. */
- struct Dwarf_CU *cu = die->cu;
-
- /* It's kosher (just suboptimal) to have a null entry first thing (7.5.3).
- So if this starts with ULEB128 of 0 (even with silly encoding of 0),
- it is a kosher null entry and we do not really have any children. */
- const unsigned char *code = addr;
- const unsigned char *endp = cu->endp;
- while (1)
- {
- if (unlikely (code >= endp)) /* Truncated section. */
- return 1;
- if (unlikely (*code == 0x80))
- ++code;
- else
- break;
- }
- if (unlikely (*code == '\0'))
- return 1;
-
- /* Clear the entire DIE structure. This signals we have not yet
- determined any of the information. */
- memset (result, '\0', sizeof (Dwarf_Die));
-
- /* We have the address. */
- result->addr = addr;
-
- /* Same CU as the parent. */
- result->cu = cu;
-
- return 0;
-}
-INTDEF(dwarf_child)
diff --git a/src/libdw/dwarf_cu_die.c b/src/libdw/dwarf_cu_die.c
deleted file mode 100644
index 48f4176f..00000000
--- a/src/libdw/dwarf_cu_die.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Internal definitions for libdwarf.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stddef.h>
-#include "libdwP.h"
-
-
-Dwarf_Die *
-dwarf_cu_die (cu, result, versionp, abbrev_offsetp, address_sizep,
- offset_sizep, type_signaturep, type_offsetp)
- Dwarf_CU *cu;
- Dwarf_Die *result;
- Dwarf_Half *versionp;
- Dwarf_Off *abbrev_offsetp;
- uint8_t *address_sizep;
- uint8_t *offset_sizep;
- uint64_t *type_signaturep;
- Dwarf_Off *type_offsetp;
-{
- if (cu == NULL)
- return NULL;
-
- *result = CUDIE (cu);
-
- if (versionp != NULL)
- *versionp = cu->version;
- if (abbrev_offsetp != NULL)
- *abbrev_offsetp = cu->orig_abbrev_offset;
- if (address_sizep != NULL)
- *address_sizep = cu->address_size;
- if (offset_sizep != NULL)
- *offset_sizep = cu->offset_size;
- if (type_signaturep != NULL)
- *type_signaturep = cu->type_sig8;
- if (type_offsetp != NULL)
- *type_offsetp = cu->type_offset;
-
- return result;
-}
diff --git a/src/libdw/dwarf_cu_getdwarf.c b/src/libdw/dwarf_cu_getdwarf.c
deleted file mode 100644
index f8a2e9b9..00000000
--- a/src/libdw/dwarf_cu_getdwarf.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Retrieve Dwarf descriptor underlying a Dwarf_CU.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stddef.h>
-
-#include "libdwP.h"
-
-
-Dwarf *
-dwarf_cu_getdwarf (cu)
- Dwarf_CU *cu;
-{
- if (cu == NULL)
- /* Some error occurred before. */
- return NULL;
-
- return cu->dbg;
-}
diff --git a/src/libdw/dwarf_cuoffset.c b/src/libdw/dwarf_cuoffset.c
deleted file mode 100644
index 3ceffdb0..00000000
--- a/src/libdw/dwarf_cuoffset.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Return offset of DIE in CU.
- Copyright (C) 2003-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-Dwarf_Off
-dwarf_cuoffset (die)
- Dwarf_Die *die;
-{
- return (die == NULL
- ? (Dwarf_Off) -1l
- : (Dwarf_Off) (die->addr - die->cu->startp));
-}
diff --git a/src/libdw/dwarf_decl_column.c b/src/libdw/dwarf_decl_column.c
deleted file mode 100644
index 08d36b87..00000000
--- a/src/libdw/dwarf_decl_column.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Get column number of beginning of given declaration.
- Copyright (C) 2005-2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_decl_column (Dwarf_Die *decl, int *colp)
-{
- return __libdw_attr_intval (decl, colp, DW_AT_decl_column);
-}
-OLD_VERSION (dwarf_decl_column, ELFUTILS_0.122)
-NEW_VERSION (dwarf_decl_column, ELFUTILS_0.143)
diff --git a/src/libdw/dwarf_decl_file.c b/src/libdw/dwarf_decl_file.c
deleted file mode 100644
index 5657132f..00000000
--- a/src/libdw/dwarf_decl_file.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/* Return file name containing definition of the given function.
- Copyright (C) 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-const char *
-dwarf_decl_file (Dwarf_Die *die)
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Word idx = 0;
-
- if (INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
- (die, DW_AT_decl_file, &attr_mem),
- &idx) != 0)
- return NULL;
-
- /* Zero means no source file information available. */
- if (idx == 0)
- {
- __libdw_seterrno (DWARF_E_NO_ENTRY);
- return NULL;
- }
-
- /* Get the array of source files for the CU. */
- struct Dwarf_CU *cu = die->cu;
- if (cu->lines == NULL)
- {
- Dwarf_Lines *lines;
- size_t nlines;
-
- /* Let the more generic function do the work. It'll create more
- data but that will be needed in an real program anyway. */
- (void) INTUSE(dwarf_getsrclines) (&CUDIE (cu), &lines, &nlines);
- assert (cu->lines != NULL);
- }
-
- if (cu->lines == (void *) -1l)
- {
- /* If the file index is not zero, there must be file information
- available. */
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- assert (cu->files != NULL && cu->files != (void *) -1l);
-
- if (idx >= cu->files->nfiles)
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- return cu->files->info[idx].name;
-}
-OLD_VERSION (dwarf_decl_file, ELFUTILS_0.122)
-NEW_VERSION (dwarf_decl_file, ELFUTILS_0.143)
diff --git a/src/libdw/dwarf_decl_line.c b/src/libdw/dwarf_decl_line.c
deleted file mode 100644
index 80fae6c9..00000000
--- a/src/libdw/dwarf_decl_line.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* Get line number of beginning of given function.
- Copyright (C) 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include <limits.h>
-#include "libdwP.h"
-
-
-int
-dwarf_decl_line (Dwarf_Die *func, int *linep)
-{
- return __libdw_attr_intval (func, linep, DW_AT_decl_line);
-}
-OLD_VERSION (dwarf_decl_line, ELFUTILS_0.122)
-NEW_VERSION (dwarf_decl_line, ELFUTILS_0.143)
-
-
-int internal_function
-__libdw_attr_intval (Dwarf_Die *die, int *linep, int attval)
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Word line;
-
- int res = INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
- (die, attval, &attr_mem),
- &line);
- if (res == 0)
- {
- if (line > INT_MAX)
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- res = -1;
- }
- else
- *linep = line;
- }
-
- return res;
-}
diff --git a/src/libdw/dwarf_diecu.c b/src/libdw/dwarf_diecu.c
deleted file mode 100644
index bd9a37ae..00000000
--- a/src/libdw/dwarf_diecu.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Return CU DIE containing given DIE.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include "libdwP.h"
-
-
-Dwarf_Die *
-dwarf_diecu (die, result, address_sizep, offset_sizep)
- Dwarf_Die *die;
- Dwarf_Die *result;
- uint8_t *address_sizep;
- uint8_t *offset_sizep;
-{
- if (die == NULL)
- return NULL;
-
- *result = CUDIE (die->cu);
-
- if (address_sizep != NULL)
- *address_sizep = die->cu->address_size;
- if (offset_sizep != NULL)
- *offset_sizep = die->cu->offset_size;
-
- return result;
-}
diff --git a/src/libdw/dwarf_diename.c b/src/libdw/dwarf_diename.c
deleted file mode 100644
index 050d8f1d..00000000
--- a/src/libdw/dwarf_diename.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Return string in name attribute of DIE.
- Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-const char *
-dwarf_diename (die)
- Dwarf_Die *die;
-{
- Dwarf_Attribute attr_mem;
-
- return INTUSE(dwarf_formstring) (INTUSE(dwarf_attr_integrate) (die,
- DW_AT_name,
- &attr_mem));
-}
-INTDEF (dwarf_diename)
diff --git a/src/libdw/dwarf_dieoffset.c b/src/libdw/dwarf_dieoffset.c
deleted file mode 100644
index 965b2c8d..00000000
--- a/src/libdw/dwarf_dieoffset.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return offset of DIE.
- Copyright (C) 2003-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-Dwarf_Off
-dwarf_dieoffset (die)
- Dwarf_Die *die;
-{
- return (die == NULL
- ? ~0ul
- : (Dwarf_Off) (die->addr - die->cu->startp + die->cu->start));
-}
-INTDEF(dwarf_dieoffset)
diff --git a/src/libdw/dwarf_end.c b/src/libdw/dwarf_end.c
deleted file mode 100644
index 922dc8f3..00000000
--- a/src/libdw/dwarf_end.c
+++ /dev/null
@@ -1,129 +0,0 @@
-/* Release debugging handling context.
- Copyright (C) 2002-2011, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <search.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <string.h>
-
-#include "libdwP.h"
-#include "cfi.h"
-
-
-static void
-noop_free (void *arg __attribute__ ((unused)))
-{
-}
-
-
-static void
-cu_free (void *arg)
-{
- struct Dwarf_CU *p = (struct Dwarf_CU *) arg;
-
- Dwarf_Abbrev_Hash_free (&p->abbrev_hash);
-
- tdestroy (p->locs, noop_free);
-}
-
-
-#if USE_ZLIB
-void
-internal_function
-__libdw_free_zdata (Dwarf *dwarf)
-{
- unsigned int gzip_mask = dwarf->sectiondata_gzip_mask;
- while (gzip_mask != 0)
- {
- int i = ffs (gzip_mask);
- assert (i > 0);
- --i;
- assert (i < IDX_last);
- free (dwarf->sectiondata[i]);
- gzip_mask &= ~(1U << i);
- }
-}
-#endif
-
-int
-dwarf_end (dwarf)
- Dwarf *dwarf;
-{
- if (dwarf != NULL)
- {
- if (dwarf->cfi != NULL)
- /* Clean up the CFI cache. */
- __libdw_destroy_frame_cache (dwarf->cfi);
-
- Dwarf_Sig8_Hash_free (&dwarf->sig8_hash);
-
- /* The search tree for the CUs. NB: the CU data itself is
- allocated separately, but the abbreviation hash tables need
- to be handled. */
- tdestroy (dwarf->cu_tree, cu_free);
- tdestroy (dwarf->tu_tree, cu_free);
-
- /* Search tree for macro opcode tables. */
- tdestroy (dwarf->macro_ops, noop_free);
-
- /* Search tree for decoded .debug_lines units. */
- tdestroy (dwarf->files_lines, noop_free);
-
- struct libdw_memblock *memp = dwarf->mem_tail;
- /* The first block is allocated together with the Dwarf object. */
- while (memp->prev != NULL)
- {
- struct libdw_memblock *prevp = memp->prev;
- free (memp);
- memp = prevp;
- }
-
- /* Free the pubnames helper structure. */
- free (dwarf->pubnames_sets);
-
- __libdw_free_zdata (dwarf);
-
- /* Free the ELF descriptor if necessary. */
- if (dwarf->free_elf)
- elf_end (dwarf->elf);
-
- /* Free the fake location list CU. */
- free (dwarf->fake_loc_cu);
-
- /* Free the context descriptor. */
- free (dwarf);
- }
-
- return 0;
-}
-INTDEF(dwarf_end)
diff --git a/src/libdw/dwarf_entry_breakpoints.c b/src/libdw/dwarf_entry_breakpoints.c
deleted file mode 100644
index ffd51697..00000000
--- a/src/libdw/dwarf_entry_breakpoints.c
+++ /dev/null
@@ -1,157 +0,0 @@
-/* Find entry breakpoint locations for a function.
- Copyright (C) 2005-2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "libdwP.h"
-#include <dwarf.h>
-#include <stdlib.h>
-
-
-int
-dwarf_entry_breakpoints (die, bkpts)
- Dwarf_Die *die;
- Dwarf_Addr **bkpts;
-{
- int nbkpts = 0;
- *bkpts = NULL;
-
- /* Add one breakpoint location to the result vector. */
- inline int add_bkpt (Dwarf_Addr pc)
- {
- Dwarf_Addr *newlist = realloc (*bkpts, ++nbkpts * sizeof newlist[0]);
- if (newlist == NULL)
- {
- free (*bkpts);
- *bkpts = NULL;
- __libdw_seterrno (DWARF_E_NOMEM);
- return -1;
- }
- newlist[nbkpts - 1] = pc;
- *bkpts = newlist;
- return nbkpts;
- }
-
- /* Fallback result, break at the entrypc/lowpc value. */
- inline int entrypc_bkpt (void)
- {
- Dwarf_Addr pc;
- return INTUSE(dwarf_entrypc) (die, &pc) < 0 ? -1 : add_bkpt (pc);
- }
-
- /* Fetch the CU's line records to look for this DIE's addresses. */
- Dwarf_Die cudie = CUDIE (die->cu);
- Dwarf_Lines *lines;
- size_t nlines;
- if (INTUSE(dwarf_getsrclines) (&cudie, &lines, &nlines) < 0)
- {
- int error = INTUSE (dwarf_errno) ();
- if (error == 0) /* CU has no DW_AT_stmt_list. */
- return entrypc_bkpt ();
- __libdw_seterrno (error);
- return -1;
- }
-
- /* Search a contiguous PC range for prologue-end markers.
- If DWARF, look for proper markers.
- Failing that, if ADHOC, look for the ad hoc convention. */
- inline int search_range (Dwarf_Addr low, Dwarf_Addr high,
- bool dwarf, bool adhoc)
- {
- size_t l = 0, u = nlines;
- while (l < u)
- {
- size_t idx = (l + u) / 2;
- if (lines->info[idx].addr < low)
- l = idx + 1;
- else if (lines->info[idx].addr > low)
- u = idx;
- else if (lines->info[idx].end_sequence)
- l = idx + 1;
- else
- {
- l = idx;
- break;
- }
- }
- if (l < u)
- {
- if (dwarf)
- for (size_t i = l; i < u && lines->info[i].addr < high; ++i)
- if (lines->info[i].prologue_end
- && add_bkpt (lines->info[i].addr) < 0)
- return -1;
- if (adhoc && nbkpts == 0)
- while (++l < nlines && lines->info[l].addr < high)
- if (!lines->info[l].end_sequence)
- return add_bkpt (lines->info[l].addr);
- return nbkpts;
- }
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- /* Search each contiguous address range for DWARF prologue_end markers. */
-
- Dwarf_Addr base;
- Dwarf_Addr begin;
- Dwarf_Addr end;
- ptrdiff_t offset = INTUSE(dwarf_ranges) (die, 0, &base, &begin, &end);
- if (offset < 0)
- return -1;
-
- /* Most often there is a single contiguous PC range for the DIE. */
- if (offset == 1)
- return search_range (begin, end, true, true) ?: entrypc_bkpt ();
-
- Dwarf_Addr lowpc = (Dwarf_Addr) -1l;
- Dwarf_Addr highpc = (Dwarf_Addr) -1l;
- while (offset > 0)
- {
- /* We have an address range entry. */
- if (search_range (begin, end, true, false) < 0)
- return -1;
-
- if (begin < lowpc)
- {
- lowpc = begin;
- highpc = end;
- }
-
- offset = INTUSE(dwarf_ranges) (die, offset, &base, &begin, &end);
- }
-
- /* If we didn't find any proper DWARF markers, then look in the
- lowest-addressed range for an ad hoc marker. Failing that,
- fall back to just using the entrypc value. */
- return (nbkpts
- ?: (lowpc == (Dwarf_Addr) -1l ? 0
- : search_range (lowpc, highpc, false, true))
- ?: entrypc_bkpt ());
-}
diff --git a/src/libdw/dwarf_entrypc.c b/src/libdw/dwarf_entrypc.c
deleted file mode 100644
index 8eb39dbc..00000000
--- a/src/libdw/dwarf_entrypc.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Return entry PC attribute of DIE.
- Copyright (C) 2003, 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_entrypc (die, return_addr)
- Dwarf_Die *die;
- Dwarf_Addr *return_addr;
-{
- Dwarf_Attribute attr_mem;
-
- return INTUSE(dwarf_formaddr) (INTUSE(dwarf_attr) (die, DW_AT_entry_pc,
- &attr_mem)
- ?: INTUSE(dwarf_attr) (die, DW_AT_low_pc,
- &attr_mem),
- return_addr);
-}
-INTDEF(dwarf_entrypc)
diff --git a/src/libdw/dwarf_error.c b/src/libdw/dwarf_error.c
deleted file mode 100644
index 08b691aa..00000000
--- a/src/libdw/dwarf_error.c
+++ /dev/null
@@ -1,122 +0,0 @@
-/* Retrieve ELF descriptor used for DWARF access.
- Copyright (C) 2002, 2003, 2004, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stddef.h>
-
-#include "libdwP.h"
-
-
-/* The error number. */
-static __thread int global_error;
-
-
-int
-dwarf_errno (void)
-{
- int result = global_error;
- global_error = DWARF_E_NOERROR;
- return result;
-}
-INTDEF(dwarf_errno)
-
-
-/* XXX For now we use string pointers. Once the table stablelizes
- make it more DSO-friendly. */
-static const char *errmsgs[] =
- {
- [DWARF_E_NOERROR] = N_("no error"),
- [DWARF_E_UNKNOWN_ERROR] = N_("unknown error"),
- [DWARF_E_INVALID_ACCESS] = N_("invalid access"),
- [DWARF_E_NO_REGFILE] = N_("no regular file"),
- [DWARF_E_IO_ERROR] = N_("I/O error"),
- [DWARF_E_INVALID_ELF] = N_("invalid ELF file"),
- [DWARF_E_NO_DWARF] = N_("no DWARF information"),
- [DWARF_E_NOELF] = N_("no ELF file"),
- [DWARF_E_GETEHDR_ERROR] = N_("cannot get ELF header"),
- [DWARF_E_NOMEM] = N_("out of memory"),
- [DWARF_E_UNIMPL] = N_("not implemented"),
- [DWARF_E_INVALID_CMD] = N_("invalid command"),
- [DWARF_E_INVALID_VERSION] = N_("invalid version"),
- [DWARF_E_INVALID_FILE] = N_("invalid file"),
- [DWARF_E_NO_ENTRY] = N_("no entries found"),
- [DWARF_E_INVALID_DWARF] = N_("invalid DWARF"),
- [DWARF_E_NO_STRING] = N_("no string data"),
- [DWARF_E_NO_ADDR] = N_("no address value"),
- [DWARF_E_NO_CONSTANT] = N_("no constant value"),
- [DWARF_E_NO_REFERENCE] = N_("no reference value"),
- [DWARF_E_INVALID_REFERENCE] = N_("invalid reference value"),
- [DWARF_E_NO_DEBUG_LINE] = N_(".debug_line section missing"),
- [DWARF_E_INVALID_DEBUG_LINE] = N_("invalid .debug_line section"),
- [DWARF_E_TOO_BIG] = N_("debug information too big"),
- [DWARF_E_VERSION] = N_("invalid DWARF version"),
- [DWARF_E_INVALID_DIR_IDX] = N_("invalid directory index"),
- [DWARF_E_ADDR_OUTOFRANGE] = N_("address out of range"),
- [DWARF_E_NO_LOCLIST] = N_("no location list value"),
- [DWARF_E_NO_BLOCK] = N_("no block data"),
- [DWARF_E_INVALID_LINE_IDX] = N_("invalid line index"),
- [DWARF_E_INVALID_ARANGE_IDX] = N_("invalid address range index"),
- [DWARF_E_NO_MATCH] = N_("no matching address range"),
- [DWARF_E_NO_FLAG] = N_("no flag value"),
- [DWARF_E_INVALID_OFFSET] = N_("invalid offset"),
- [DWARF_E_NO_DEBUG_RANGES] = N_(".debug_ranges section missing"),
- [DWARF_E_INVALID_CFI] = N_("invalid CFI section"),
- [DWARF_E_NO_ALT_DEBUGLINK] = N_("no alternative debug link found"),
- [DWARF_E_INVALID_OPCODE] = N_("invalid opcode"),
- };
-#define nerrmsgs (sizeof (errmsgs) / sizeof (errmsgs[0]))
-
-
-void
-__libdw_seterrno (value)
- int value;
-{
- global_error = (value >= 0 && value < (int) nerrmsgs
- ? value : DWARF_E_UNKNOWN_ERROR);
-}
-
-
-const char *
-dwarf_errmsg (error)
- int error;
-{
- int last_error = global_error;
-
- if (error == 0)
- return last_error != 0 ? _(errmsgs[last_error]) : NULL;
- else if (error < -1 || error >= (int) nerrmsgs)
- return _(errmsgs[DWARF_E_UNKNOWN_ERROR]);
-
- return _(errmsgs[error == -1 ? last_error : error]);
-}
-INTDEF(dwarf_errmsg)
diff --git a/src/libdw/dwarf_filesrc.c b/src/libdw/dwarf_filesrc.c
deleted file mode 100644
index d866ce72..00000000
--- a/src/libdw/dwarf_filesrc.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Find source file information.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-const char *
-dwarf_filesrc (Dwarf_Files *file, size_t idx, Dwarf_Word *mtime,
- Dwarf_Word *length)
-{
- if (file == NULL || idx >= file->nfiles)
- return NULL;
-
- if (mtime != NULL)
- *mtime = file->info[idx].mtime;
-
- if (length != NULL)
- *length = file->info[idx].length;
-
- return file->info[idx].name;
-}
diff --git a/src/libdw/dwarf_formaddr.c b/src/libdw/dwarf_formaddr.c
deleted file mode 100644
index 9d4a3887..00000000
--- a/src/libdw/dwarf_formaddr.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Return address represented by attribute.
- Copyright (C) 2003-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_formaddr (attr, return_addr)
- Dwarf_Attribute *attr;
- Dwarf_Addr *return_addr;
-{
- if (attr == NULL)
- return -1;
-
- if (unlikely (attr->form != DW_FORM_addr))
- {
- __libdw_seterrno (DWARF_E_NO_ADDR);
- return -1;
- }
-
- if (__libdw_read_address (attr->cu->dbg,
- cu_sec_idx (attr->cu), attr->valp,
- attr->cu->address_size, return_addr))
- return -1;
-
- return 0;
-}
-INTDEF(dwarf_formaddr)
diff --git a/src/libdw/dwarf_formblock.c b/src/libdw/dwarf_formblock.c
deleted file mode 100644
index 3d56f222..00000000
--- a/src/libdw/dwarf_formblock.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Return block represented by attribute.
- Copyright (C) 2004-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_formblock (attr, return_block)
- Dwarf_Attribute *attr;
- Dwarf_Block *return_block;
-{
- if (attr == NULL)
- return -1;
-
- const unsigned char *datap = attr->valp;
- const unsigned char *endp = attr->cu->endp;
-
- switch (attr->form)
- {
- case DW_FORM_block1:
- if (unlikely (endp - datap < 1))
- goto invalid;
- return_block->length = *(uint8_t *) attr->valp;
- return_block->data = attr->valp + 1;
- break;
-
- case DW_FORM_block2:
- if (unlikely (endp - datap < 2))
- goto invalid;
- return_block->length = read_2ubyte_unaligned (attr->cu->dbg, attr->valp);
- return_block->data = attr->valp + 2;
- break;
-
- case DW_FORM_block4:
- if (unlikely (endp - datap < 4))
- goto invalid;
- return_block->length = read_4ubyte_unaligned (attr->cu->dbg, attr->valp);
- return_block->data = attr->valp + 4;
- break;
-
- case DW_FORM_block:
- case DW_FORM_exprloc:
- if (unlikely (endp - datap < 1))
- goto invalid;
- get_uleb128 (return_block->length, datap, endp);
- return_block->data = (unsigned char *) datap;
- break;
-
- default:
- __libdw_seterrno (DWARF_E_NO_BLOCK);
- return -1;
- }
-
- if (unlikely (return_block->length > (size_t) (endp - return_block->data)))
- {
- /* Block does not fit. */
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- return 0;
-}
-INTDEF(dwarf_formblock)
diff --git a/src/libdw/dwarf_formflag.c b/src/libdw/dwarf_formflag.c
deleted file mode 100644
index bdc2267a..00000000
--- a/src/libdw/dwarf_formflag.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* Return flag represented by attribute.
- Copyright (C) 2004-2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_formflag (attr, return_bool)
- Dwarf_Attribute *attr;
- bool *return_bool;
-{
- if (attr == NULL)
- return -1;
-
- if (attr->form == DW_FORM_flag_present)
- {
- *return_bool = true;
- return 0;
- }
-
- if (unlikely (attr->form != DW_FORM_flag))
- {
- __libdw_seterrno (DWARF_E_NO_FLAG);
- return -1;
- }
-
- *return_bool = *attr->valp != 0;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_formref.c b/src/libdw/dwarf_formref.c
deleted file mode 100644
index 25924371..00000000
--- a/src/libdw/dwarf_formref.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/* Return reference offset represented by attribute.
- Copyright (C) 2003-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-int
-__libdw_formref (attr, return_offset)
- Dwarf_Attribute *attr;
- Dwarf_Off *return_offset;
-{
- const unsigned char *datap = attr->valp;
- const unsigned char *endp = attr->cu->endp;
-
- if (attr->valp == NULL)
- {
- __libdw_seterrno (DWARF_E_INVALID_REFERENCE);
- return -1;
- }
-
- switch (attr->form)
- {
- case DW_FORM_ref1:
- if (datap + 1 > endp)
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
- *return_offset = *attr->valp;
- break;
-
- case DW_FORM_ref2:
- if (datap + 2 > endp)
- goto invalid;
- *return_offset = read_2ubyte_unaligned (attr->cu->dbg, attr->valp);
- break;
-
- case DW_FORM_ref4:
- if (datap + 4 > endp)
- goto invalid;
- *return_offset = read_4ubyte_unaligned (attr->cu->dbg, attr->valp);
- break;
-
- case DW_FORM_ref8:
- if (datap + 8 > endp)
- goto invalid;
- *return_offset = read_8ubyte_unaligned (attr->cu->dbg, attr->valp);
- break;
-
- case DW_FORM_ref_udata:
- if (datap + 1 > endp)
- goto invalid;
- get_uleb128 (*return_offset, datap, endp);
- break;
-
- case DW_FORM_ref_addr:
- case DW_FORM_ref_sig8:
- case DW_FORM_GNU_ref_alt:
- /* These aren't handled by dwarf_formref, only by dwarf_formref_die. */
- __libdw_seterrno (DWARF_E_INVALID_REFERENCE);
- return -1;
-
- default:
- __libdw_seterrno (DWARF_E_NO_REFERENCE);
- return -1;
- }
-
- return 0;
-}
-
-/* This is the old public entry point.
- It is now deprecated in favor of dwarf_formref_die. */
-int
-dwarf_formref (attr, return_offset)
- Dwarf_Attribute *attr;
- Dwarf_Off *return_offset;
-{
- if (attr == NULL)
- return -1;
-
- return __libdw_formref (attr, return_offset);
-}
diff --git a/src/libdw/dwarf_formref_die.c b/src/libdw/dwarf_formref_die.c
deleted file mode 100644
index 63f66971..00000000
--- a/src/libdw/dwarf_formref_die.c
+++ /dev/null
@@ -1,121 +0,0 @@
-/* Look up the DIE in a reference-form attribute.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include "libdwP.h"
-#include <dwarf.h>
-
-
-Dwarf_Die *
-dwarf_formref_die (attr, result)
- Dwarf_Attribute *attr;
- Dwarf_Die *result;
-{
- if (attr == NULL)
- return NULL;
-
- struct Dwarf_CU *cu = attr->cu;
-
- Dwarf_Off offset;
- if (attr->form == DW_FORM_ref_addr || attr->form == DW_FORM_GNU_ref_alt)
- {
- /* This has an absolute offset. */
-
- uint8_t ref_size = (cu->version == 2 && attr->form == DW_FORM_ref_addr
- ? cu->address_size
- : cu->offset_size);
-
- Dwarf *dbg_ret = (attr->form == DW_FORM_GNU_ref_alt
- ? cu->dbg->alt_dwarf : cu->dbg);
-
- if (dbg_ret == NULL)
- {
- __libdw_seterrno (DWARF_E_NO_ALT_DEBUGLINK);
- return NULL;
- }
-
- if (__libdw_read_offset (cu->dbg, dbg_ret, IDX_debug_info, attr->valp,
- ref_size, &offset, IDX_debug_info, 0))
- return NULL;
-
- return INTUSE(dwarf_offdie) (dbg_ret, offset, result);
- }
-
- const unsigned char *datap;
- size_t size;
- if (attr->form == DW_FORM_ref_sig8)
- {
- /* This doesn't have an offset, but instead a value we
- have to match in the .debug_types type unit headers. */
-
- uint64_t sig = read_8ubyte_unaligned (cu->dbg, attr->valp);
- cu = Dwarf_Sig8_Hash_find (&cu->dbg->sig8_hash, sig, NULL);
- if (cu == NULL)
- /* Not seen before. We have to scan through the type units. */
- do
- {
- cu = __libdw_intern_next_unit (attr->cu->dbg, true);
- if (cu == NULL)
- {
- __libdw_seterrno (INTUSE(dwarf_errno) ()
- ?: DWARF_E_INVALID_REFERENCE);
- return NULL;
- }
- }
- while (cu->type_sig8 != sig);
-
- datap = cu->dbg->sectiondata[IDX_debug_types]->d_buf;
- size = cu->dbg->sectiondata[IDX_debug_types]->d_size;
- offset = cu->type_offset;
- }
- else
- {
- /* Other forms produce an offset from the CU. */
- if (unlikely (__libdw_formref (attr, &offset) != 0))
- return NULL;
-
- datap = cu->startp;
- size = cu->endp - cu->startp;
- }
-
- if (unlikely (offset >= size))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- memset (result, '\0', sizeof (Dwarf_Die));
- result->addr = (char *) datap + offset;
- result->cu = cu;
- return result;
-}
-INTDEF (dwarf_formref_die)
diff --git a/src/libdw/dwarf_formsdata.c b/src/libdw/dwarf_formsdata.c
deleted file mode 100644
index 2380bf43..00000000
--- a/src/libdw/dwarf_formsdata.c
+++ /dev/null
@@ -1,98 +0,0 @@
-/* Return signed constant represented by attribute.
- Copyright (C) 2003, 2005, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_formsdata (attr, return_sval)
- Dwarf_Attribute *attr;
- Dwarf_Sword *return_sval;
-{
- if (attr == NULL)
- return -1;
-
- const unsigned char *datap = attr->valp;
- const unsigned char *endp = attr->cu->endp;
-
- switch (attr->form)
- {
- case DW_FORM_data1:
- if (datap + 1 > endp)
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
- *return_sval = *attr->valp;
- break;
-
- case DW_FORM_data2:
- if (datap + 2 > endp)
- goto invalid;
- *return_sval = read_2ubyte_unaligned (attr->cu->dbg, attr->valp);
- break;
-
- case DW_FORM_data4:
- if (datap + 4 > endp)
- goto invalid;
- *return_sval = read_4ubyte_unaligned (attr->cu->dbg, attr->valp);
- break;
-
- case DW_FORM_data8:
- if (datap + 8 > endp)
- goto invalid;
- *return_sval = read_8ubyte_unaligned (attr->cu->dbg, attr->valp);
- break;
-
- case DW_FORM_sdata:
- if (datap + 1 > endp)
- goto invalid;
- get_sleb128 (*return_sval, datap, endp);
- break;
-
- case DW_FORM_udata:
- if (datap + 1 > endp)
- goto invalid;
- get_uleb128 (*return_sval, datap, endp);
- break;
-
- default:
- __libdw_seterrno (DWARF_E_NO_CONSTANT);
- return -1;
- }
-
- return 0;
-}
-INTDEF(dwarf_formsdata)
diff --git a/src/libdw/dwarf_formstring.c b/src/libdw/dwarf_formstring.c
deleted file mode 100644
index 02b56d4a..00000000
--- a/src/libdw/dwarf_formstring.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Return string associated with given attribute.
- Copyright (C) 2003-2010, 2013 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-const char *
-dwarf_formstring (attrp)
- Dwarf_Attribute *attrp;
-{
- /* Ignore earlier errors. */
- if (attrp == NULL)
- return NULL;
-
- /* We found it. Now determine where the string is stored. */
- if (attrp->form == DW_FORM_string)
- /* A simple inlined string. */
- return (const char *) attrp->valp;
-
- Dwarf *dbg = attrp->cu->dbg;
- Dwarf *dbg_ret = attrp->form == DW_FORM_GNU_strp_alt ? dbg->alt_dwarf : dbg;
-
- if (unlikely (dbg_ret == NULL))
- {
- __libdw_seterrno (DWARF_E_NO_ALT_DEBUGLINK);
- return NULL;
- }
-
-
- if (unlikely (attrp->form != DW_FORM_strp
- && attrp->form != DW_FORM_GNU_strp_alt)
- || dbg_ret->sectiondata[IDX_debug_str] == NULL)
- {
- __libdw_seterrno (DWARF_E_NO_STRING);
- return NULL;
- }
-
- uint64_t off;
- if (__libdw_read_offset (dbg, dbg_ret, cu_sec_idx (attrp->cu), attrp->valp,
- attrp->cu->offset_size, &off, IDX_debug_str, 1))
- return NULL;
-
- return (const char *) dbg_ret->sectiondata[IDX_debug_str]->d_buf + off;
-}
-INTDEF(dwarf_formstring)
diff --git a/src/libdw/dwarf_formudata.c b/src/libdw/dwarf_formudata.c
deleted file mode 100644
index a01ff312..00000000
--- a/src/libdw/dwarf_formudata.c
+++ /dev/null
@@ -1,233 +0,0 @@
-/* Return unsigned constant represented by attribute.
- Copyright (C) 2003-2012, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-internal_function unsigned char *
-__libdw_formptr (Dwarf_Attribute *attr, int sec_index,
- int err_nodata, unsigned char **endpp,
- Dwarf_Off *offsetp)
-{
- if (attr == NULL)
- return NULL;
-
- const Elf_Data *d = attr->cu->dbg->sectiondata[sec_index];
- if (unlikely (d == NULL))
- {
- __libdw_seterrno (err_nodata);
- return NULL;
- }
-
- Dwarf_Word offset;
- if (attr->form == DW_FORM_sec_offset)
- {
- if (__libdw_read_offset (attr->cu->dbg, attr->cu->dbg,
- cu_sec_idx (attr->cu), attr->valp,
- attr->cu->offset_size, &offset, sec_index, 0))
- return NULL;
- }
- else if (attr->cu->version > 3)
- goto invalid;
- else
- switch (attr->form)
- {
- case DW_FORM_data4:
- case DW_FORM_data8:
- if (__libdw_read_offset (attr->cu->dbg, attr->cu->dbg,
- cu_sec_idx (attr->cu),
- attr->valp,
- attr->form == DW_FORM_data4 ? 4 : 8,
- &offset, sec_index, 0))
- return NULL;
- break;
-
- default:
- if (INTUSE(dwarf_formudata) (attr, &offset))
- return NULL;
- };
-
- unsigned char *readp = d->d_buf + offset;
- unsigned char *endp = d->d_buf + d->d_size;
- if (unlikely (readp >= endp))
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- if (endpp != NULL)
- *endpp = endp;
- if (offsetp != NULL)
- *offsetp = offset;
- return readp;
-}
-
-int
-dwarf_formudata (attr, return_uval)
- Dwarf_Attribute *attr;
- Dwarf_Word *return_uval;
-{
- if (attr == NULL)
- return -1;
-
- const unsigned char *datap = attr->valp;
- const unsigned char *endp = attr->cu->endp;
-
- switch (attr->form)
- {
- case DW_FORM_data1:
- if (datap + 1 > endp)
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
- *return_uval = *attr->valp;
- break;
-
- case DW_FORM_data2:
- if (datap + 2 > endp)
- goto invalid;
- *return_uval = read_2ubyte_unaligned (attr->cu->dbg, attr->valp);
- break;
-
- case DW_FORM_data4:
- case DW_FORM_data8:
- case DW_FORM_sec_offset:
- /* Before DWARF4 data4 and data8 are pure constants unless the
- attribute also allows offsets (*ptr classes), since DWARF4
- they are always just constants (start_scope is special though,
- since it only could express a rangelist since DWARF4). */
- if (attr->form == DW_FORM_sec_offset
- || (attr->cu->version < 4 && attr->code != DW_AT_start_scope))
- {
- switch (attr->code)
- {
- case DW_AT_data_member_location:
- case DW_AT_frame_base:
- case DW_AT_location:
- case DW_AT_return_addr:
- case DW_AT_segment:
- case DW_AT_static_link:
- case DW_AT_string_length:
- case DW_AT_use_location:
- case DW_AT_vtable_elem_location:
- /* loclistptr */
- if (__libdw_formptr (attr, IDX_debug_loc,
- DWARF_E_NO_LOCLIST, NULL,
- return_uval) == NULL)
- return -1;
- break;
-
- case DW_AT_macro_info:
- /* macptr into .debug_macinfo */
- if (__libdw_formptr (attr, IDX_debug_macinfo,
- DWARF_E_NO_ENTRY, NULL,
- return_uval) == NULL)
- return -1;
- break;
-
- case DW_AT_GNU_macros:
- /* macptr into .debug_macro */
- if (__libdw_formptr (attr, IDX_debug_macro,
- DWARF_E_NO_ENTRY, NULL,
- return_uval) == NULL)
- return -1;
- break;
-
- case DW_AT_ranges:
- case DW_AT_start_scope:
- /* rangelistptr */
- if (__libdw_formptr (attr, IDX_debug_ranges,
- DWARF_E_NO_DEBUG_RANGES, NULL,
- return_uval) == NULL)
- return -1;
- break;
-
- case DW_AT_stmt_list:
- /* lineptr */
- if (__libdw_formptr (attr, IDX_debug_line,
- DWARF_E_NO_DEBUG_LINE, NULL,
- return_uval) == NULL)
- return -1;
- break;
-
- default:
- /* sec_offset can only be used by one of the above attrs. */
- if (attr->form == DW_FORM_sec_offset)
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- /* Not one of the special attributes, just a constant. */
- if (__libdw_read_address (attr->cu->dbg, cu_sec_idx (attr->cu),
- attr->valp,
- attr->form == DW_FORM_data4 ? 4 : 8,
- return_uval))
- return -1;
- break;
- }
- }
- else
- {
- /* We are dealing with a constant data4 or data8. */
- if (__libdw_read_address (attr->cu->dbg, cu_sec_idx (attr->cu),
- attr->valp,
- attr->form == DW_FORM_data4 ? 4 : 8,
- return_uval))
- return -1;
- }
- break;
-
- case DW_FORM_sdata:
- if (datap + 1 > endp)
- goto invalid;
- get_sleb128 (*return_uval, datap, endp);
- break;
-
- case DW_FORM_udata:
- if (datap + 1 > endp)
- goto invalid;
- get_uleb128 (*return_uval, datap, endp);
- break;
-
- default:
- __libdw_seterrno (DWARF_E_NO_CONSTANT);
- return -1;
- }
-
- return 0;
-}
-INTDEF(dwarf_formudata)
diff --git a/src/libdw/dwarf_frame_cfa.c b/src/libdw/dwarf_frame_cfa.c
deleted file mode 100644
index a9ae7e73..00000000
--- a/src/libdw/dwarf_frame_cfa.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Get CFA expression for frame.
- Copyright (C) 2009-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-#include <dwarf.h>
-#include <stdlib.h>
-
-int
-dwarf_frame_cfa (fs, ops, nops)
- Dwarf_Frame *fs;
- Dwarf_Op **ops;
- size_t *nops;
-{
- /* Maybe there was a previous error. */
- if (fs == NULL)
- return -1;
-
- int result = 0;
- switch (fs->cfa_rule)
- {
- case cfa_undefined:
- *ops = NULL;
- *nops = 0;
- break;
-
- case cfa_offset:
- /* The Dwarf_Op was already fully initialized by execute_cfi. */
- *ops = &fs->cfa_data.offset;
- *nops = 1;
- break;
-
- case cfa_expr:
- /* Parse the expression into internal form. */
- result = __libdw_intern_expression
- (NULL, fs->cache->other_byte_order,
- fs->cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8, 4,
- &fs->cache->expr_tree, &fs->cfa_data.expr, false, false,
- ops, nops, IDX_debug_frame);
- break;
-
- case cfa_invalid:
- __libdw_seterrno (DWARF_E_INVALID_CFI);
- result = -1;
- break;
-
- default:
- abort ();
- }
-
- return result;
-}
diff --git a/src/libdw/dwarf_frame_info.c b/src/libdw/dwarf_frame_info.c
deleted file mode 100644
index 7da46fb0..00000000
--- a/src/libdw/dwarf_frame_info.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Get return address register for frame.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-
-int
-dwarf_frame_info (fs, start, end, signalp)
- Dwarf_Frame *fs;
- Dwarf_Addr *start;
- Dwarf_Addr *end;
- bool *signalp;
-{
- /* Maybe there was a previous error. */
- if (fs == NULL)
- return -1;
-
- if (start != NULL)
- *start = fs->start;
- if (end != NULL)
- *end = fs->end;
- if (signalp != NULL)
- *signalp = fs->fde->cie->signal_frame;
- return fs->fde->cie->return_address_register;
-}
diff --git a/src/libdw/dwarf_frame_register.c b/src/libdw/dwarf_frame_register.c
deleted file mode 100644
index 10d2fe49..00000000
--- a/src/libdw/dwarf_frame_register.c
+++ /dev/null
@@ -1,123 +0,0 @@
-/* Get register location expression for frame.
- Copyright (C) 2009-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-#include <dwarf.h>
-
-int
-dwarf_frame_register (fs, regno, ops_mem, ops, nops)
- Dwarf_Frame *fs;
- int regno;
- Dwarf_Op ops_mem[3];
- Dwarf_Op **ops;
- size_t *nops;
-{
- /* Maybe there was a previous error. */
- if (fs == NULL)
- return -1;
-
- if (unlikely (regno < 0))
- {
- __libdw_seterrno (DWARF_E_INVALID_ACCESS);
- return -1;
- }
-
- *ops = ops_mem;
- *nops = 0;
-
- if (unlikely ((size_t) regno >= fs->nregs))
- goto default_rule;
-
- const struct dwarf_frame_register *reg = &fs->regs[regno];
-
- switch (reg->rule)
- {
- case reg_unspecified:
- default_rule:
- /* Use the default rule for registers not yet mentioned in CFI. */
- if (fs->cache->default_same_value)
- goto same_value;
- /*FALLTHROUGH*/
- case reg_undefined:
- /* The value is known to be unavailable. */
- break;
-
- case reg_same_value:
- same_value:
- /* The location is not known here, but the caller might know it. */
- *ops = NULL;
- break;
-
- case reg_offset:
- case reg_val_offset:
- ops_mem[(*nops)++] = (Dwarf_Op) { .atom = DW_OP_call_frame_cfa };
- if (reg->value != 0)
- ops_mem[(*nops)++] = (Dwarf_Op) { .atom = DW_OP_plus_uconst,
- .number = reg->value };
- if (reg->rule == reg_val_offset)
- /* A value, not a location. */
- ops_mem[(*nops)++] = (Dwarf_Op) { .atom = DW_OP_stack_value };
- *ops = ops_mem;
- break;
-
- case reg_register:
- ops_mem[(*nops)++] = (Dwarf_Op) { .atom = DW_OP_regx,
- .number = reg->value };
- break;
-
- case reg_val_expression:
- case reg_expression:
- {
- unsigned int address_size = (fs->cache->e_ident[EI_CLASS] == ELFCLASS32
- ? 4 : 8);
-
- Dwarf_Block block;
- const uint8_t *p = fs->cache->data->d.d_buf + reg->value;
- const uint8_t *end = (fs->cache->data->d.d_buf
- + fs->cache->data->d.d_size);
- get_uleb128 (block.length, p, end);
- block.data = (void *) p;
-
- /* Parse the expression into internal form. */
- if (__libdw_intern_expression (NULL,
- fs->cache->other_byte_order,
- address_size, 4,
- &fs->cache->expr_tree, &block,
- true, reg->rule == reg_val_expression,
- ops, nops, IDX_debug_frame) < 0)
- return -1;
- break;
- }
- }
-
- return 0;
-}
diff --git a/src/libdw/dwarf_func_inline.c b/src/libdw/dwarf_func_inline.c
deleted file mode 100644
index bc9db1cf..00000000
--- a/src/libdw/dwarf_func_inline.c
+++ /dev/null
@@ -1,101 +0,0 @@
-/* Convenience functions for handling DWARF descriptions of inline functions.
- Copyright (C) 2005,2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <dwarf.h>
-
-struct visitor_info
-{
- void *die_addr;
- int (*callback) (Dwarf_Die *, void *);
- void *arg;
-};
-
-static int
-scope_visitor (unsigned int depth __attribute__ ((unused)),
- struct Dwarf_Die_Chain *die, void *arg)
-{
- struct visitor_info *const v = arg;
-
- if (INTUSE(dwarf_tag) (&die->die) != DW_TAG_inlined_subroutine)
- return DWARF_CB_OK;
-
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = INTUSE(dwarf_attr) (&die->die, DW_AT_abstract_origin,
- &attr_mem);
- if (attr == NULL)
- return DWARF_CB_OK;
-
- Dwarf_Die origin_mem;
- Dwarf_Die *origin = INTUSE(dwarf_formref_die) (attr, &origin_mem);
- if (origin == NULL)
- return DWARF_CB_ABORT;
-
- if (origin->addr != v->die_addr)
- return DWARF_CB_OK;
-
- return (*v->callback) (&die->die, v->arg);
-}
-
-int
-dwarf_func_inline (Dwarf_Die *func)
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Word val;
- if (INTUSE(dwarf_formudata) (INTUSE(dwarf_attr) (func, DW_AT_inline,
- &attr_mem),
- &val) == 0)
- switch (val)
- {
- case DW_INL_not_inlined:
- return 0;
-
- case DW_INL_declared_not_inlined:
- return -1;
-
- case DW_INL_inlined:
- case DW_INL_declared_inlined:
- return 1;
- }
-
- return 0;
-}
-
-int
-dwarf_func_inline_instances (Dwarf_Die *func,
- int (*callback) (Dwarf_Die *, void *),
- void *arg)
-{
- struct visitor_info v = { func->addr, callback, arg };
- struct Dwarf_Die_Chain cu = { .die = CUDIE (func->cu), .parent = NULL };
- return __libdw_visit_scopes (0, &cu, &scope_visitor, NULL, &v);
-}
diff --git a/src/libdw/dwarf_getabbrev.c b/src/libdw/dwarf_getabbrev.c
deleted file mode 100644
index 0efde45b..00000000
--- a/src/libdw/dwarf_getabbrev.c
+++ /dev/null
@@ -1,165 +0,0 @@
-/* Get abbreviation at given offset.
- Copyright (C) 2003, 2004, 2005, 2006, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-Dwarf_Abbrev *
-internal_function
-__libdw_getabbrev (dbg, cu, offset, lengthp, result)
- Dwarf *dbg;
- struct Dwarf_CU *cu;
- Dwarf_Off offset;
- size_t *lengthp;
- Dwarf_Abbrev *result;
-{
- /* Don't fail if there is not .debug_abbrev section. */
- if (dbg->sectiondata[IDX_debug_abbrev] == NULL)
- return NULL;
-
- if (offset >= dbg->sectiondata[IDX_debug_abbrev]->d_size)
- {
- __libdw_seterrno (DWARF_E_INVALID_OFFSET);
- return NULL;
- }
-
- const unsigned char *abbrevp
- = (unsigned char *) dbg->sectiondata[IDX_debug_abbrev]->d_buf + offset;
-
- if (*abbrevp == '\0')
- /* We are past the last entry. */
- return DWARF_END_ABBREV;
-
- /* 7.5.3 Abbreviations Tables
-
- [...] Each declaration begins with an unsigned LEB128 number
- representing the abbreviation code itself. [...] The
- abbreviation code is followed by another unsigned LEB128
- number that encodes the entry's tag. [...]
-
- [...] Following the tag encoding is a 1-byte value that
- determines whether a debugging information entry using this
- abbreviation has child entries or not. [...]
-
- [...] Finally, the child encoding is followed by a series of
- attribute specifications. Each attribute specification
- consists of two parts. The first part is an unsigned LEB128
- number representing the attribute's name. The second part is
- an unsigned LEB128 number representing the attribute's form. */
- const unsigned char *end = (dbg->sectiondata[IDX_debug_abbrev]->d_buf
- + dbg->sectiondata[IDX_debug_abbrev]->d_size);
- const unsigned char *start_abbrevp = abbrevp;
- unsigned int code;
- get_uleb128 (code, abbrevp, end);
-
- /* Check whether this code is already in the hash table. */
- bool foundit = false;
- Dwarf_Abbrev *abb = NULL;
- if (cu == NULL
- || (abb = Dwarf_Abbrev_Hash_find (&cu->abbrev_hash, code, NULL)) == NULL)
- {
- if (result == NULL)
- abb = libdw_typed_alloc (dbg, Dwarf_Abbrev);
- else
- abb = result;
- }
- else
- {
- foundit = true;
-
- if (unlikely (abb->offset != offset))
- {
- /* A duplicate abbrev code at a different offset,
- that should never happen. */
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- /* If the caller doesn't need the length we are done. */
- if (lengthp == NULL)
- goto out;
- }
-
- /* If there is already a value in the hash table we are going to
- overwrite its content. This must not be a problem, since the
- content better be the same. */
- abb->code = code;
- if (abbrevp >= end)
- goto invalid;
- get_uleb128 (abb->tag, abbrevp, end);
- if (abbrevp + 1 >= end)
- goto invalid;
- abb->has_children = *abbrevp++ == DW_CHILDREN_yes;
- abb->attrp = (unsigned char *) abbrevp;
- abb->offset = offset;
-
- /* Skip over all the attributes and count them while doing so. */
- abb->attrcnt = 0;
- unsigned int attrname;
- unsigned int attrform;
- do
- {
- if (abbrevp >= end)
- goto invalid;
- get_uleb128 (attrname, abbrevp, end);
- if (abbrevp >= end)
- goto invalid;
- get_uleb128 (attrform, abbrevp, end);
- }
- while (attrname != 0 && attrform != 0 && ++abb->attrcnt);
-
- /* Return the length to the caller if she asked for it. */
- if (lengthp != NULL)
- *lengthp = abbrevp - start_abbrevp;
-
- /* Add the entry to the hash table. */
- if (cu != NULL && ! foundit)
- (void) Dwarf_Abbrev_Hash_insert (&cu->abbrev_hash, abb->code, abb);
-
- out:
- return abb;
-}
-
-
-Dwarf_Abbrev *
-dwarf_getabbrev (die, offset, lengthp)
- Dwarf_Die *die;
- Dwarf_Off offset;
- size_t *lengthp;
-{
- return __libdw_getabbrev (die->cu->dbg, die->cu,
- die->cu->orig_abbrev_offset + offset, lengthp,
- NULL);
-}
diff --git a/src/libdw/dwarf_getabbrevattr.c b/src/libdw/dwarf_getabbrevattr.c
deleted file mode 100644
index 574467ce..00000000
--- a/src/libdw/dwarf_getabbrevattr.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Get specific attribute of abbreviation.
- Copyright (C) 2003, 2004, 2005, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_getabbrevattr (abbrev, idx, namep, formp, offsetp)
- Dwarf_Abbrev *abbrev;
- size_t idx;
- unsigned int *namep;
- unsigned int *formp;
- Dwarf_Off *offsetp;
-{
- if (abbrev == NULL)
- return -1;
-
- size_t cnt = 0;
- const unsigned char *attrp = abbrev->attrp;
- const unsigned char *start_attrp;
- unsigned int name;
- unsigned int form;
-
- do
- {
- start_attrp = attrp;
-
- /* Attribute code and form are encoded as ULEB128 values.i
- XXX We have no way to bounds check. */
- get_uleb128 (name, attrp, attrp + len_leb128 (name));
- get_uleb128 (form, attrp, attrp + len_leb128 (form));
-
- /* If both values are zero the index is out of range. */
- if (name == 0 && form == 0)
- return -1;
- }
- while (cnt++ < idx);
-
- /* Store the result if requested. */
- if (namep != NULL)
- *namep = name;
- if (formp != NULL)
- *formp = form;
- if (offsetp != NULL)
- *offsetp = (start_attrp - abbrev->attrp) + abbrev->offset;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_getabbrevcode.c b/src/libdw/dwarf_getabbrevcode.c
deleted file mode 100644
index 0df90649..00000000
--- a/src/libdw/dwarf_getabbrevcode.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Get abbreviation code.
- Copyright (C) 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-unsigned int
-dwarf_getabbrevcode (abbrev)
- Dwarf_Abbrev *abbrev;
-{
- return abbrev == NULL ? 0 : abbrev->code;
-}
diff --git a/src/libdw/dwarf_getabbrevtag.c b/src/libdw/dwarf_getabbrevtag.c
deleted file mode 100644
index 36a5262d..00000000
--- a/src/libdw/dwarf_getabbrevtag.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Get abbreviation tag.
- Copyright (C) 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-unsigned int
-dwarf_getabbrevtag (abbrev)
- Dwarf_Abbrev *abbrev;
-{
- return abbrev == NULL ? 0 : abbrev->tag;
-}
diff --git a/src/libdw/dwarf_getalt.c b/src/libdw/dwarf_getalt.c
deleted file mode 100644
index cc434f03..00000000
--- a/src/libdw/dwarf_getalt.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Retrieves the DWARF descriptor for debugaltlink data.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-Dwarf *
-dwarf_getalt (Dwarf *main)
-{
- if (main == NULL)
- return NULL;
- return main->alt_dwarf;
-}
-INTDEF (dwarf_getalt)
diff --git a/src/libdw/dwarf_getarange_addr.c b/src/libdw/dwarf_getarange_addr.c
deleted file mode 100644
index fc143de9..00000000
--- a/src/libdw/dwarf_getarange_addr.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Get address range which includes given address.
- Copyright (C) 2004, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libdwP.h>
-
-
-Dwarf_Arange *
-dwarf_getarange_addr (aranges, addr)
- Dwarf_Aranges *aranges;
- Dwarf_Addr addr;
-{
- if (aranges == NULL)
- return NULL;
-
- /* The ranges are sorted by address, so we can use binary search. */
- size_t l = 0, u = aranges->naranges;
- while (l < u)
- {
- size_t idx = (l + u) / 2;
- if (addr < aranges->info[idx].addr)
- u = idx;
- else if (addr > aranges->info[idx].addr
- && addr - aranges->info[idx].addr >= aranges->info[idx].length)
- l = idx + 1;
- else
- return &aranges->info[idx];
- }
-
- __libdw_seterrno (DWARF_E_NO_MATCH);
- return NULL;
-}
-INTDEF(dwarf_getarange_addr)
diff --git a/src/libdw/dwarf_getarangeinfo.c b/src/libdw/dwarf_getarangeinfo.c
deleted file mode 100644
index 67b6e671..00000000
--- a/src/libdw/dwarf_getarangeinfo.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Return list address ranges.
- Copyright (C) 2000, 2001, 2002, 2004, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libdwP.h>
-
-
-int
-dwarf_getarangeinfo (Dwarf_Arange *arange, Dwarf_Addr *addrp,
- Dwarf_Word *lengthp, Dwarf_Off *offsetp)
-{
- if (arange == NULL)
- return -1;
-
- if (addrp != NULL)
- *addrp = arange->addr;
- if (lengthp != NULL)
- *lengthp = arange->length;
- if (offsetp != NULL)
- *offsetp = arange->offset;
-
- return 0;
-}
-INTDEF(dwarf_getarangeinfo)
diff --git a/src/libdw/dwarf_getaranges.c b/src/libdw/dwarf_getaranges.c
deleted file mode 100644
index 4953af53..00000000
--- a/src/libdw/dwarf_getaranges.c
+++ /dev/null
@@ -1,265 +0,0 @@
-/* Return list address ranges.
- Copyright (C) 2000-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <assert.h>
-#include "libdwP.h"
-#include <dwarf.h>
-
-struct arangelist
-{
- Dwarf_Arange arange;
- struct arangelist *next;
-};
-
-/* Compare by Dwarf_Arange.addr, given pointers into an array of pointeers. */
-static int
-compare_aranges (const void *a, const void *b)
-{
- struct arangelist *const *p1 = a, *const *p2 = b;
- struct arangelist *l1 = *p1, *l2 = *p2;
- if (l1->arange.addr != l2->arange.addr)
- return (l1->arange.addr < l2->arange.addr) ? -1 : 1;
- return 0;
-}
-
-int
-dwarf_getaranges (dbg, aranges, naranges)
- Dwarf *dbg;
- Dwarf_Aranges **aranges;
- size_t *naranges;
-{
- if (dbg == NULL)
- return -1;
-
- if (dbg->aranges != NULL)
- {
- *aranges = dbg->aranges;
- if (naranges != NULL)
- *naranges = dbg->aranges->naranges;
- return 0;
- }
-
- if (dbg->sectiondata[IDX_debug_aranges] == NULL)
- {
- /* No such section. */
- *aranges = NULL;
- if (naranges != NULL)
- *naranges = 0;
- return 0;
- }
-
- if (dbg->sectiondata[IDX_debug_aranges]->d_buf == NULL)
- return -1;
-
- struct arangelist *arangelist = NULL;
- unsigned int narangelist = 0;
-
- const unsigned char *readp = dbg->sectiondata[IDX_debug_aranges]->d_buf;
- const unsigned char *readendp
- = readp + dbg->sectiondata[IDX_debug_aranges]->d_size;
-
- while (readp < readendp)
- {
- const unsigned char *hdrstart = readp;
-
- /* Each entry starts with a header:
-
- 1. A 4-byte or 12-byte length containing the length of the
- set of entries for this compilation unit, not including the
- length field itself. [...]
-
- 2. A 2-byte version identifier containing the value 2 for
- DWARF Version 2.1.
-
- 3. A 4-byte or 8-byte offset into the .debug_info section. [...]
-
- 4. A 1-byte unsigned integer containing the size in bytes of
- an address (or the offset portion of an address for segmented
- addressing) on the target system.
-
- 5. A 1-byte unsigned integer containing the size in bytes of
- a segment descriptor on the target system. */
- Dwarf_Word length = read_4ubyte_unaligned_inc (dbg, readp);
- unsigned int length_bytes = 4;
- if (length == DWARF3_LENGTH_64_BIT)
- {
- length = read_8ubyte_unaligned_inc (dbg, readp);
- length_bytes = 8;
- }
- else if (unlikely (length >= DWARF3_LENGTH_MIN_ESCAPE_CODE
- && length <= DWARF3_LENGTH_MAX_ESCAPE_CODE))
- goto invalid;
-
- unsigned int version = read_2ubyte_unaligned_inc (dbg, readp);
- if (version != 2)
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- fail:
- while (arangelist != NULL)
- {
- struct arangelist *next = arangelist->next;
- free (arangelist);
- arangelist = next;
- }
- return -1;
- }
-
- Dwarf_Word offset;
- if (__libdw_read_offset_inc (dbg,
- IDX_debug_aranges, &readp,
- length_bytes, &offset, IDX_debug_info, 4))
- goto fail;
-
- unsigned int address_size = *readp++;
- if (address_size != 4 && address_size != 8)
- goto invalid;
-
- /* We don't actually support segment selectors. */
- unsigned int segment_size = *readp++;
- if (segment_size != 0)
- goto invalid;
-
- /* Round the address to the next multiple of 2*address_size. */
- readp += ((2 * address_size - ((readp - hdrstart) % (2 * address_size)))
- % (2 * address_size));
-
- while (1)
- {
- Dwarf_Word range_address;
- Dwarf_Word range_length;
-
- if (__libdw_read_address_inc (dbg, IDX_debug_aranges, &readp,
- address_size, &range_address))
- goto fail;
-
- if (address_size == 4)
- range_length = read_4ubyte_unaligned_inc (dbg, readp);
- else
- range_length = read_8ubyte_unaligned_inc (dbg, readp);
-
- /* Two zero values mark the end. */
- if (range_address == 0 && range_length == 0)
- break;
-
- /* We don't use alloca for these temporary structures because
- the total number of them can be quite large. */
- struct arangelist *new_arange = malloc (sizeof *new_arange);
- if (unlikely (new_arange == NULL))
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- goto fail;
- }
-
- new_arange->arange.addr = range_address;
- new_arange->arange.length = range_length;
-
- /* We store the actual CU DIE offset, not the CU header offset. */
- const char *cu_header = (dbg->sectiondata[IDX_debug_info]->d_buf
- + offset);
- unsigned int offset_size;
- if (read_4ubyte_unaligned_noncvt (cu_header) == DWARF3_LENGTH_64_BIT)
- offset_size = 8;
- else
- offset_size = 4;
- new_arange->arange.offset = DIE_OFFSET_FROM_CU_OFFSET (offset,
- offset_size,
- false);
-
- new_arange->next = arangelist;
- arangelist = new_arange;
- ++narangelist;
-
- /* Sanity-check the data. */
- if (unlikely (new_arange->arange.offset
- >= dbg->sectiondata[IDX_debug_info]->d_size))
- goto invalid;
- }
- }
-
- if (narangelist == 0)
- {
- assert (arangelist == NULL);
- if (naranges != NULL)
- *naranges = 0;
- *aranges = NULL;
- return 0;
- }
-
- /* Allocate the array for the result. */
- void *buf = libdw_alloc (dbg, Dwarf_Aranges,
- sizeof (Dwarf_Aranges)
- + narangelist * sizeof (Dwarf_Arange), 1);
-
- /* First use the buffer for the pointers, and sort the entries.
- We'll write the pointers in the end of the buffer, and then
- copy into the buffer from the beginning so the overlap works. */
- assert (sizeof (Dwarf_Arange) >= sizeof (Dwarf_Arange *));
- struct arangelist **sortaranges
- = (buf + sizeof (Dwarf_Aranges)
- + ((sizeof (Dwarf_Arange) - sizeof sortaranges[0]) * narangelist));
-
- /* The list is in LIFO order and usually they come in clumps with
- ascending addresses. So fill from the back to probably start with
- runs already in order before we sort. */
- unsigned int i = narangelist;
- while (i-- > 0)
- {
- sortaranges[i] = arangelist;
- arangelist = arangelist->next;
- }
- assert (arangelist == NULL);
-
- /* Sort by ascending address. */
- qsort (sortaranges, narangelist, sizeof sortaranges[0], &compare_aranges);
-
- /* Now that they are sorted, put them in the final array.
- The buffers overlap, so we've clobbered the early elements
- of SORTARANGES by the time we're reading the later ones. */
- *aranges = buf;
- (*aranges)->dbg = dbg;
- (*aranges)->naranges = narangelist;
- dbg->aranges = *aranges;
- if (naranges != NULL)
- *naranges = narangelist;
- for (i = 0; i < narangelist; ++i)
- {
- struct arangelist *elt = sortaranges[i];
- (*aranges)->info[i] = elt->arange;
- free (elt);
- }
-
- return 0;
-}
-INTDEF(dwarf_getaranges)
diff --git a/src/libdw/dwarf_getattrcnt.c b/src/libdw/dwarf_getattrcnt.c
deleted file mode 100644
index 72be766e..00000000
--- a/src/libdw/dwarf_getattrcnt.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Get number of attributes of abbreviation.
- Copyright (C) 2003, 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_getattrcnt (abbrev, attrcntp)
- Dwarf_Abbrev *abbrev;
- size_t *attrcntp;
-{
- if (abbrev == NULL)
- return -1;
-
- *attrcntp = abbrev->attrcnt;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_getattrs.c b/src/libdw/dwarf_getattrs.c
deleted file mode 100644
index 0da8b5ba..00000000
--- a/src/libdw/dwarf_getattrs.c
+++ /dev/null
@@ -1,120 +0,0 @@
-/* Get attributes of the DIE.
- Copyright (C) 2004, 2005, 2008, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-ptrdiff_t
-dwarf_getattrs (Dwarf_Die *die, int (*callback) (Dwarf_Attribute *, void *),
- void *arg, ptrdiff_t offset)
-{
- if (die == NULL)
- return -1l;
-
- if (unlikely (offset == 1))
- return 1;
-
- const unsigned char *die_addr;
-
- /* Find the abbreviation entry. */
- Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, &die_addr);
-
- if (unlikely (abbrevp == DWARF_END_ABBREV))
- {
- invalid_dwarf:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1l;
- }
-
- /* This is where the attributes start. */
- const unsigned char *attrp = abbrevp->attrp;
- const unsigned char *const offset_attrp = abbrevp->attrp + offset;
-
- /* Go over the list of attributes. */
- Dwarf *dbg = die->cu->dbg;
- const unsigned char *endp;
- endp = ((const unsigned char *) dbg->sectiondata[IDX_debug_abbrev]->d_buf
- + dbg->sectiondata[IDX_debug_abbrev]->d_size);
- while (1)
- {
- /* Are we still in bounds? */
- if (unlikely (attrp >= endp))
- goto invalid_dwarf;
-
- /* Get attribute name and form. */
- Dwarf_Attribute attr;
- const unsigned char *remembered_attrp = attrp;
-
- get_uleb128 (attr.code, attrp, endp);
- if (unlikely (attrp >= endp))
- goto invalid_dwarf;
- get_uleb128 (attr.form, attrp, endp);
-
- /* We can stop if we found the attribute with value zero. */
- if (attr.code == 0 && attr.form == 0)
- /* Do not return 0 here - there would be no way to
- distinguish this value from the attribute at offset 0.
- Instead we return +1 which would never be a valid
- offset of an attribute. */
- return 1l;
-
- /* If we are not to OFFSET_ATTRP yet, we just have to skip
- the values of the intervening attributes. */
- if (remembered_attrp >= offset_attrp)
- {
- /* Fill in the rest. */
- attr.valp = (unsigned char *) die_addr;
- attr.cu = die->cu;
-
- /* Now call the callback function. */
- if (callback (&attr, arg) != DWARF_CB_OK)
- /* Return the offset of the start of the attribute, so that
- dwarf_getattrs() can be restarted from this point if the
- caller so desires. */
- return remembered_attrp - abbrevp->attrp;
- }
-
- /* Skip over the rest of this attribute (if there is any). */
- if (attr.form != 0)
- {
- size_t len = __libdw_form_val_len (die->cu, attr.form, die_addr);
- if (unlikely (len == (size_t) -1l))
- /* Something wrong with the file. */
- return -1l;
-
- // __libdw_form_val_len will have done a bounds check.
- die_addr += len;
- }
- }
- /* NOTREACHED */
-}
diff --git a/src/libdw/dwarf_getcfi.c b/src/libdw/dwarf_getcfi.c
deleted file mode 100644
index a49a9f06..00000000
--- a/src/libdw/dwarf_getcfi.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* Get CFI from DWARF file.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include "cfi.h"
-#include <dwarf.h>
-
-Dwarf_CFI *
-dwarf_getcfi (dbg)
- Dwarf *dbg;
-{
- if (dbg == NULL)
- return NULL;
-
- if (dbg->cfi == NULL && dbg->sectiondata[IDX_debug_frame] != NULL)
- {
- Dwarf_CFI *cfi = libdw_typed_alloc (dbg, Dwarf_CFI);
-
- cfi->dbg = dbg;
- cfi->data = (Elf_Data_Scn *) dbg->sectiondata[IDX_debug_frame];
-
- cfi->search_table = NULL;
- cfi->search_table_vaddr = 0;
- cfi->search_table_entries = 0;
- cfi->search_table_encoding = DW_EH_PE_omit;
-
- cfi->frame_vaddr = 0;
- cfi->textrel = 0;
- cfi->datarel = 0;
-
- cfi->e_ident = (unsigned char *) elf_getident (dbg->elf, NULL);
- cfi->other_byte_order = dbg->other_byte_order;
-
- cfi->next_offset = 0;
- cfi->cie_tree = cfi->fde_tree = cfi->expr_tree = NULL;
-
- cfi->ebl = NULL;
-
- dbg->cfi = cfi;
- }
-
- return dbg->cfi;
-}
-INTDEF (dwarf_getcfi)
diff --git a/src/libdw/dwarf_getcfi_elf.c b/src/libdw/dwarf_getcfi_elf.c
deleted file mode 100644
index 61ca60de..00000000
--- a/src/libdw/dwarf_getcfi_elf.c
+++ /dev/null
@@ -1,320 +0,0 @@
-/* Get CFI from ELF file's exception-handling info.
- Copyright (C) 2009-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <assert.h>
-
-#include "libdwP.h"
-#include "cfi.h"
-#include "encoded-value.h"
-#include <dwarf.h>
-
-
-static Dwarf_CFI *
-allocate_cfi (Elf *elf, GElf_Addr vaddr)
-{
- Dwarf_CFI *cfi = calloc (1, sizeof *cfi);
- if (cfi == NULL)
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- return NULL;
- }
-
- cfi->e_ident = (unsigned char *) elf_getident (elf, NULL);
- if (cfi->e_ident == NULL)
- {
- free (cfi);
- __libdw_seterrno (DWARF_E_GETEHDR_ERROR);
- return NULL;
- }
-
- if ((BYTE_ORDER == LITTLE_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2MSB)
- || (BYTE_ORDER == BIG_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2LSB))
- cfi->other_byte_order = true;
-
- cfi->frame_vaddr = vaddr;
- cfi->textrel = 0; /* XXX ? */
- cfi->datarel = 0; /* XXX ? */
-
- return cfi;
-}
-
-static const uint8_t *
-parse_eh_frame_hdr (const uint8_t *hdr, size_t hdr_size, GElf_Addr hdr_vaddr,
- const GElf_Ehdr *ehdr, GElf_Addr *eh_frame_vaddr,
- size_t *table_entries, uint8_t *table_encoding)
-{
- const uint8_t *h = hdr;
-
- if (*h++ != 1) /* version */
- return (void *) -1l;
-
- uint8_t eh_frame_ptr_encoding = *h++;
- uint8_t fde_count_encoding = *h++;
- uint8_t fde_table_encoding = *h++;
-
- if (eh_frame_ptr_encoding == DW_EH_PE_omit)
- return (void *) -1l;
-
- /* Dummy used by read_encoded_value. */
- Elf_Data_Scn dummy_cfi_hdr_data =
- {
- .d = { .d_buf = (void *) hdr, .d_size = hdr_size }
- };
- Dwarf_CFI dummy_cfi =
- {
- .e_ident = ehdr->e_ident,
- .datarel = hdr_vaddr,
- .frame_vaddr = hdr_vaddr,
- .data = &dummy_cfi_hdr_data,
- };
-
- if (unlikely (read_encoded_value (&dummy_cfi, eh_frame_ptr_encoding, &h,
- eh_frame_vaddr)))
- return (void *) -1l;
-
- if (fde_count_encoding != DW_EH_PE_omit)
- {
- Dwarf_Word fde_count;
- if (unlikely (read_encoded_value (&dummy_cfi, fde_count_encoding, &h,
- &fde_count)))
- return (void *) -1l;
- if (fde_count != 0 && (size_t) fde_count == fde_count
- && fde_table_encoding != DW_EH_PE_omit
- && (fde_table_encoding &~ DW_EH_PE_signed) != DW_EH_PE_uleb128)
- {
- *table_entries = fde_count;
- *table_encoding = fde_table_encoding;
- return h;
- }
- }
-
- return NULL;
-}
-
-static Dwarf_CFI *
-getcfi_gnu_eh_frame (Elf *elf, const GElf_Ehdr *ehdr, const GElf_Phdr *phdr)
-{
- if (unlikely (phdr->p_filesz < 4))
- goto invalid;
-
- Elf_Data *data = elf_getdata_rawchunk (elf, phdr->p_offset, phdr->p_filesz,
- ELF_T_BYTE);
- if (data == NULL)
- {
- invalid_hdr:
- invalid:
- /* XXX might be read error or corrupt phdr */
- __libdw_seterrno (DWARF_E_INVALID_CFI);
- return NULL;
- }
-
- Dwarf_Addr eh_frame_ptr;
- size_t search_table_entries = 0;
- uint8_t search_table_encoding = 0;
- const uint8_t *search_table = parse_eh_frame_hdr (data->d_buf, phdr->p_filesz,
- phdr->p_vaddr, ehdr,
- &eh_frame_ptr,
- &search_table_entries,
- &search_table_encoding);
- if (search_table == (void *) -1l)
- goto invalid_hdr;
-
- Dwarf_Off eh_frame_offset = eh_frame_ptr - phdr->p_vaddr + phdr->p_offset;
- Dwarf_Word eh_frame_size = 0;
-
- /* XXX we have no way without section headers to know the size
- of the .eh_frame data. Calculate the largest it might possibly be.
- This won't be wasteful if the file is already mmap'd, but if it isn't
- it might be quite excessive. */
- size_t filesize;
- if (elf_rawfile (elf, &filesize) != NULL)
- eh_frame_size = filesize - eh_frame_offset;
-
- data = elf_getdata_rawchunk (elf, eh_frame_offset, eh_frame_size, ELF_T_BYTE);
- if (data == NULL)
- {
- __libdw_seterrno (DWARF_E_INVALID_ELF); /* XXX might be read error */
- return NULL;
- }
- Dwarf_CFI *cfi = allocate_cfi (elf, eh_frame_ptr);
- if (cfi != NULL)
- {
- cfi->data = (Elf_Data_Scn *) data;
-
- if (search_table != NULL)
- {
- cfi->search_table = search_table;
- cfi->search_table_vaddr = phdr->p_vaddr;
- cfi->search_table_encoding = search_table_encoding;
- cfi->search_table_entries = search_table_entries;
- }
- }
- return cfi;
-}
-
-/* Search the phdrs for PT_GNU_EH_FRAME. */
-static Dwarf_CFI *
-getcfi_phdr (Elf *elf, const GElf_Ehdr *ehdr)
-{
- size_t phnum;
- if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
- return NULL;
-
- for (size_t i = 0; i < phnum; ++i)
- {
- GElf_Phdr phdr_mem;
- GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
- if (unlikely (phdr == NULL))
- return NULL;
- if (phdr->p_type == PT_GNU_EH_FRAME)
- return getcfi_gnu_eh_frame (elf, ehdr, phdr);
- }
-
- __libdw_seterrno (DWARF_E_NO_DWARF);
- return NULL;
-}
-
-static Dwarf_CFI *
-getcfi_scn_eh_frame (Elf *elf, const GElf_Ehdr *ehdr,
- Elf_Scn *scn, GElf_Shdr *shdr,
- Elf_Scn *hdr_scn, GElf_Addr hdr_vaddr)
-{
- Elf_Data *data = elf_rawdata (scn, NULL);
- if (data == NULL)
- {
- __libdw_seterrno (DWARF_E_INVALID_ELF);
- return NULL;
- }
- Dwarf_CFI *cfi = allocate_cfi (elf, shdr->sh_addr);
- if (cfi != NULL)
- {
- cfi->data = (Elf_Data_Scn *) data;
- if (hdr_scn != NULL)
- {
- Elf_Data *hdr_data = elf_rawdata (hdr_scn, NULL);
- if (hdr_data != NULL)
- {
- GElf_Addr eh_frame_vaddr;
- cfi->search_table_vaddr = hdr_vaddr;
- cfi->search_table
- = parse_eh_frame_hdr (hdr_data->d_buf, hdr_data->d_size,
- hdr_vaddr, ehdr, &eh_frame_vaddr,
- &cfi->search_table_entries,
- &cfi->search_table_encoding);
- if (cfi->search_table == (void *) -1l)
- {
- free (cfi);
- /* XXX might be read error or corrupt phdr */
- __libdw_seterrno (DWARF_E_INVALID_CFI);
- return NULL;
- }
-
- /* Sanity check. */
- if (unlikely (eh_frame_vaddr != shdr->sh_addr))
- cfi->search_table = NULL;
- }
- }
- }
- return cfi;
-}
-
-/* Search for the sections named ".eh_frame" and ".eh_frame_hdr". */
-static Dwarf_CFI *
-getcfi_shdr (Elf *elf, const GElf_Ehdr *ehdr)
-{
- size_t shstrndx;
- if (elf_getshdrstrndx (elf, &shstrndx) != 0)
- {
- __libdw_seterrno (DWARF_E_GETEHDR_ERROR);
- return NULL;
- }
-
- if (shstrndx != 0)
- {
- Elf_Scn *hdr_scn = NULL;
- GElf_Addr hdr_vaddr = 0;
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- continue;
- const char *name = elf_strptr (elf, shstrndx, shdr->sh_name);
- if (name == NULL)
- continue;
- if (!strcmp (name, ".eh_frame_hdr"))
- {
- hdr_scn = scn;
- hdr_vaddr = shdr->sh_addr;
- }
- else if (!strcmp (name, ".eh_frame"))
- {
- if (shdr->sh_type == SHT_PROGBITS)
- return getcfi_scn_eh_frame (elf, ehdr, scn, shdr,
- hdr_scn, hdr_vaddr);
- else
- return NULL;
- }
- }
- }
-
- return (void *) -1l;
-}
-
-Dwarf_CFI *
-dwarf_getcfi_elf (elf)
- Elf *elf;
-{
- if (elf_kind (elf) != ELF_K_ELF)
- {
- __libdw_seterrno (DWARF_E_NOELF);
- return NULL;
- }
-
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (unlikely (ehdr == NULL))
- {
- __libdw_seterrno (DWARF_E_INVALID_ELF);
- return NULL;
- }
-
- Dwarf_CFI *result = getcfi_shdr (elf, ehdr);
- if (result == (void *) -1l)
- result = getcfi_phdr (elf, ehdr);
-
- return result;
-}
-INTDEF (dwarf_getcfi_elf)
diff --git a/src/libdw/dwarf_getelf.c b/src/libdw/dwarf_getelf.c
deleted file mode 100644
index ecd18592..00000000
--- a/src/libdw/dwarf_getelf.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Retrieve ELF descriptor used for DWARF access.
- Copyright (C) 2002, 2004, 2007 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stddef.h>
-
-#include "libdwP.h"
-
-
-Elf *
-dwarf_getelf (dwarf)
- Dwarf *dwarf;
-{
- if (dwarf == NULL)
- /* Some error occurred before. */
- return NULL;
-
- return dwarf->elf;
-}
diff --git a/src/libdw/dwarf_getfuncs.c b/src/libdw/dwarf_getfuncs.c
deleted file mode 100644
index f79b0a79..00000000
--- a/src/libdw/dwarf_getfuncs.c
+++ /dev/null
@@ -1,118 +0,0 @@
-/* Get function information.
- Copyright (C) 2005, 2013 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-struct visitor_info
-{
- /* The user callback of dwarf_getfuncs. */
- int (*callback) (Dwarf_Die *, void *);
-
- /* The user arg value to dwarf_getfuncs. */
- void *arg;
-
- /* Addr of the DIE offset where to (re)start the search. Zero for all. */
- void *start_addr;
-
- /* Last subprogram DIE addr seen. */
- void *last_addr;
-
- /* The CU only contains C functions. Allows pruning of most subtrees. */
- bool c_cu;
-};
-
-static int
-tree_visitor (unsigned int depth __attribute__ ((unused)),
- struct Dwarf_Die_Chain *chain, void *arg)
-{
- struct visitor_info *const v = arg;
- Dwarf_Die *die = &chain->die;
- void *start_addr = v->start_addr;
- void *die_addr = die->addr;
-
- /* Pure C CUs can only contain defining subprogram DIEs as direct
- children of the CU DIE or as nested function inside a normal C
- code constructs. */
- int tag = INTUSE(dwarf_tag) (die);
- if (v->c_cu
- && tag != DW_TAG_subprogram
- && tag != DW_TAG_lexical_block
- && tag != DW_TAG_inlined_subroutine)
- {
- chain->prune = true;
- return DWARF_CB_OK;
- }
-
- /* Skip all DIEs till we found the (re)start addr. */
- if (start_addr != NULL)
- {
- if (die_addr == start_addr)
- v->start_addr = NULL;
- return DWARF_CB_OK;
- }
-
- /* If this isn't a (defining) subprogram entity, skip DIE. */
- if (tag != DW_TAG_subprogram
- || INTUSE(dwarf_hasattr) (die, DW_AT_declaration))
- return DWARF_CB_OK;
-
- v->last_addr = die_addr;
- return (*v->callback) (die, v->arg);
-}
-
-ptrdiff_t
-dwarf_getfuncs (Dwarf_Die *cudie, int (*callback) (Dwarf_Die *, void *),
- void *arg, ptrdiff_t offset)
-{
- if (unlikely (cudie == NULL
- || INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit))
- return -1;
-
- int lang = INTUSE(dwarf_srclang) (cudie);
- bool c_cu = (lang == DW_LANG_C89
- || lang == DW_LANG_C
- || lang == DW_LANG_C99
- || lang == DW_LANG_C11);
-
- struct visitor_info v = { callback, arg, (void *) offset, NULL, c_cu };
- struct Dwarf_Die_Chain chain = { .die = CUDIE (cudie->cu),
- .parent = NULL };
- int res = __libdw_visit_scopes (0, &chain, &tree_visitor, NULL, &v);
-
- if (res == DWARF_CB_ABORT)
- return (ptrdiff_t) v.last_addr;
- else
- return res;
-}
diff --git a/src/libdw/dwarf_getlocation.c b/src/libdw/dwarf_getlocation.c
deleted file mode 100644
index 068f3853..00000000
--- a/src/libdw/dwarf_getlocation.c
+++ /dev/null
@@ -1,853 +0,0 @@
-/* Return location expression list.
- Copyright (C) 2000-2010, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include <search.h>
-#include <stdlib.h>
-#include <assert.h>
-
-#include <libdwP.h>
-
-
-static bool
-attr_ok (Dwarf_Attribute *attr)
-{
- if (attr == NULL)
- return false;
-
- /* Must be one of the attributes listed below. */
- switch (attr->code)
- {
- case DW_AT_location:
- case DW_AT_data_member_location:
- case DW_AT_vtable_elem_location:
- case DW_AT_string_length:
- case DW_AT_use_location:
- case DW_AT_frame_base:
- case DW_AT_return_addr:
- case DW_AT_static_link:
- case DW_AT_segment:
- case DW_AT_GNU_call_site_value:
- case DW_AT_GNU_call_site_data_value:
- case DW_AT_GNU_call_site_target:
- case DW_AT_GNU_call_site_target_clobbered:
- break;
-
- default:
- __libdw_seterrno (DWARF_E_NO_LOCLIST);
- return false;
- }
-
- return true;
-}
-
-
-struct loclist
-{
- uint8_t atom;
- Dwarf_Word number;
- Dwarf_Word number2;
- Dwarf_Word offset;
- struct loclist *next;
-};
-
-
-static int
-loc_compare (const void *p1, const void *p2)
-{
- const struct loc_s *l1 = (const struct loc_s *) p1;
- const struct loc_s *l2 = (const struct loc_s *) p2;
-
- if ((uintptr_t) l1->addr < (uintptr_t) l2->addr)
- return -1;
- if ((uintptr_t) l1->addr > (uintptr_t) l2->addr)
- return 1;
-
- return 0;
-}
-
-/* For each DW_OP_implicit_value, we store a special entry in the cache.
- This points us directly to the block data for later fetching. */
-static void
-store_implicit_value (Dwarf *dbg, void **cache, Dwarf_Op *op)
-{
- struct loc_block_s *block = libdw_alloc (dbg, struct loc_block_s,
- sizeof (struct loc_block_s), 1);
- const unsigned char *data = (const unsigned char *) (uintptr_t) op->number2;
- // Ignored, equal to op->number. And data length already checked.
- (void) __libdw_get_uleb128 (&data, data + len_leb128 (Dwarf_Word));
- block->addr = op;
- block->data = (unsigned char *) data;
- block->length = op->number;
- (void) tsearch (block, cache, loc_compare);
-}
-
-int
-dwarf_getlocation_implicit_value (attr, op, return_block)
- Dwarf_Attribute *attr;
- const Dwarf_Op *op;
- Dwarf_Block *return_block;
-{
- if (attr == NULL)
- return -1;
-
- struct loc_block_s fake = { .addr = (void *) op };
- struct loc_block_s **found = tfind (&fake, &attr->cu->locs, loc_compare);
- if (unlikely (found == NULL))
- {
- __libdw_seterrno (DWARF_E_NO_BLOCK);
- return -1;
- }
-
- return_block->length = (*found)->length;
- return_block->data = (*found)->data;
- return 0;
-}
-
-/* DW_AT_data_member_location can be a constant as well as a loclistptr.
- Only data[48] indicate a loclistptr. */
-static int
-check_constant_offset (Dwarf_Attribute *attr,
- Dwarf_Op **llbuf, size_t *listlen)
-{
- if (attr->code != DW_AT_data_member_location)
- return 1;
-
- switch (attr->form)
- {
- /* Punt for any non-constant form. */
- default:
- return 1;
-
- case DW_FORM_data1:
- case DW_FORM_data2:
- case DW_FORM_data4:
- case DW_FORM_data8:
- case DW_FORM_sdata:
- case DW_FORM_udata:
- break;
- }
-
- /* Check whether we already cached this location. */
- struct loc_s fake = { .addr = attr->valp };
- struct loc_s **found = tfind (&fake, &attr->cu->locs, loc_compare);
-
- if (found == NULL)
- {
- Dwarf_Word offset;
- if (INTUSE(dwarf_formudata) (attr, &offset) != 0)
- return -1;
-
- Dwarf_Op *result = libdw_alloc (attr->cu->dbg,
- Dwarf_Op, sizeof (Dwarf_Op), 1);
-
- result->atom = DW_OP_plus_uconst;
- result->number = offset;
- result->number2 = 0;
- result->offset = 0;
-
- /* Insert a record in the search tree so we can find it again later. */
- struct loc_s *newp = libdw_alloc (attr->cu->dbg,
- struct loc_s, sizeof (struct loc_s),
- 1);
- newp->addr = attr->valp;
- newp->loc = result;
- newp->nloc = 1;
-
- found = tsearch (newp, &attr->cu->locs, loc_compare);
- }
-
- assert ((*found)->nloc == 1);
-
- if (llbuf != NULL)
- {
- *llbuf = (*found)->loc;
- *listlen = 1;
- }
-
- return 0;
-}
-
-int
-internal_function
-__libdw_intern_expression (Dwarf *dbg, bool other_byte_order,
- unsigned int address_size, unsigned int ref_size,
- void **cache, const Dwarf_Block *block,
- bool cfap, bool valuep,
- Dwarf_Op **llbuf, size_t *listlen, int sec_index)
-{
- /* Empty location expressions don't have any ops to intern. */
- if (block->length == 0)
- {
- *listlen = 0;
- return 0;
- }
-
- /* Check whether we already looked at this list. */
- struct loc_s fake = { .addr = block->data };
- struct loc_s **found = tfind (&fake, cache, loc_compare);
- if (found != NULL)
- {
- /* We already saw it. */
- *llbuf = (*found)->loc;
- *listlen = (*found)->nloc;
-
- if (valuep)
- {
- assert (*listlen > 1);
- assert ((*llbuf)[*listlen - 1].atom == DW_OP_stack_value);
- }
-
- return 0;
- }
-
- const unsigned char *data = block->data;
- const unsigned char *const end_data = data + block->length;
-
- const struct { bool other_byte_order; } bo = { other_byte_order };
-
- struct loclist *loclist = NULL;
- unsigned int n = 0;
-
- if (cfap)
- {
- /* Synthesize the operation to push the CFA before the expression. */
- struct loclist *newloc;
- newloc = (struct loclist *) alloca (sizeof (struct loclist));
- newloc->atom = DW_OP_call_frame_cfa;
- newloc->number = 0;
- newloc->number2 = 0;
- newloc->offset = -1;
- newloc->next = loclist;
- loclist = newloc;
- ++n;
- }
-
- /* Decode the opcodes. It is possible in some situations to have a
- block of size zero. */
- while (data < end_data)
- {
- struct loclist *newloc;
- newloc = (struct loclist *) alloca (sizeof (struct loclist));
- newloc->number = 0;
- newloc->number2 = 0;
- newloc->offset = data - block->data;
- newloc->next = loclist;
- loclist = newloc;
- ++n;
-
- switch ((newloc->atom = *data++))
- {
- case DW_OP_addr:
- /* Address, depends on address size of CU. */
- if (__libdw_read_address_inc (dbg, sec_index, &data,
- address_size, &newloc->number))
- return -1;
- break;
-
- case DW_OP_call_ref:
- /* DW_FORM_ref_addr, depends on offset size of CU. */
- if (__libdw_read_offset_inc (dbg, sec_index, &data, ref_size,
- &newloc->number, IDX_debug_info, 0))
- return -1;
- break;
-
- case DW_OP_deref:
- case DW_OP_dup:
- case DW_OP_drop:
- case DW_OP_over:
- case DW_OP_swap:
- case DW_OP_rot:
- case DW_OP_xderef:
- case DW_OP_abs:
- case DW_OP_and:
- case DW_OP_div:
- case DW_OP_minus:
- case DW_OP_mod:
- case DW_OP_mul:
- case DW_OP_neg:
- case DW_OP_not:
- case DW_OP_or:
- case DW_OP_plus:
- case DW_OP_shl:
- case DW_OP_shr:
- case DW_OP_shra:
- case DW_OP_xor:
- case DW_OP_eq:
- case DW_OP_ge:
- case DW_OP_gt:
- case DW_OP_le:
- case DW_OP_lt:
- case DW_OP_ne:
- case DW_OP_lit0 ... DW_OP_lit31:
- case DW_OP_reg0 ... DW_OP_reg31:
- case DW_OP_nop:
- case DW_OP_push_object_address:
- case DW_OP_call_frame_cfa:
- case DW_OP_form_tls_address:
- case DW_OP_GNU_push_tls_address:
- case DW_OP_stack_value:
- /* No operand. */
- break;
-
- case DW_OP_const1u:
- case DW_OP_pick:
- case DW_OP_deref_size:
- case DW_OP_xderef_size:
- if (unlikely (data >= end_data))
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- newloc->number = *data++;
- break;
-
- case DW_OP_const1s:
- if (unlikely (data >= end_data))
- goto invalid;
-
- newloc->number = *((int8_t *) data);
- ++data;
- break;
-
- case DW_OP_const2u:
- if (unlikely (data + 2 > end_data))
- goto invalid;
-
- newloc->number = read_2ubyte_unaligned_inc (&bo, data);
- break;
-
- case DW_OP_const2s:
- case DW_OP_skip:
- case DW_OP_bra:
- case DW_OP_call2:
- if (unlikely (data + 2 > end_data))
- goto invalid;
-
- newloc->number = read_2sbyte_unaligned_inc (&bo, data);
- break;
-
- case DW_OP_const4u:
- if (unlikely (data + 4 > end_data))
- goto invalid;
-
- newloc->number = read_4ubyte_unaligned_inc (&bo, data);
- break;
-
- case DW_OP_const4s:
- case DW_OP_call4:
- case DW_OP_GNU_parameter_ref:
- if (unlikely (data + 4 > end_data))
- goto invalid;
-
- newloc->number = read_4sbyte_unaligned_inc (&bo, data);
- break;
-
- case DW_OP_const8u:
- if (unlikely (data + 8 > end_data))
- goto invalid;
-
- newloc->number = read_8ubyte_unaligned_inc (&bo, data);
- break;
-
- case DW_OP_const8s:
- if (unlikely (data + 8 > end_data))
- goto invalid;
-
- newloc->number = read_8sbyte_unaligned_inc (&bo, data);
- break;
-
- case DW_OP_constu:
- case DW_OP_plus_uconst:
- case DW_OP_regx:
- case DW_OP_piece:
- case DW_OP_GNU_convert:
- case DW_OP_GNU_reinterpret:
- get_uleb128 (newloc->number, data, end_data);
- break;
-
- case DW_OP_consts:
- case DW_OP_breg0 ... DW_OP_breg31:
- case DW_OP_fbreg:
- get_sleb128 (newloc->number, data, end_data);
- break;
-
- case DW_OP_bregx:
- get_uleb128 (newloc->number, data, end_data);
- if (unlikely (data >= end_data))
- goto invalid;
- get_sleb128 (newloc->number2, data, end_data);
- break;
-
- case DW_OP_bit_piece:
- case DW_OP_GNU_regval_type:
- get_uleb128 (newloc->number, data, end_data);
- if (unlikely (data >= end_data))
- goto invalid;
- get_uleb128 (newloc->number2, data, end_data);
- break;
-
- case DW_OP_implicit_value:
- case DW_OP_GNU_entry_value:
- /* This cannot be used in a CFI expression. */
- if (unlikely (dbg == NULL))
- goto invalid;
-
- /* start of block inc. len. */
- newloc->number2 = (Dwarf_Word) (uintptr_t) data;
- get_uleb128 (newloc->number, data, end_data); /* Block length. */
- if (unlikely ((Dwarf_Word) (end_data - data) < newloc->number))
- goto invalid;
- data += newloc->number; /* Skip the block. */
- break;
-
- case DW_OP_GNU_implicit_pointer:
- /* DW_FORM_ref_addr, depends on offset size of CU. */
- if (__libdw_read_offset_inc (dbg, sec_index, &data, ref_size,
- &newloc->number, IDX_debug_info, 0))
- return -1;
- if (unlikely (data >= end_data))
- goto invalid;
- get_uleb128 (newloc->number2, data, end_data); /* Byte offset. */
- break;
-
- case DW_OP_GNU_deref_type:
- if (unlikely (data + 1 >= end_data))
- goto invalid;
- newloc->number = *data++;
- get_uleb128 (newloc->number2, data, end_data);
- break;
-
- case DW_OP_GNU_const_type:
- {
- size_t size;
- get_uleb128 (newloc->number, data, end_data);
- if (unlikely (data >= end_data))
- goto invalid;
-
- /* start of block inc. len. */
- newloc->number2 = (Dwarf_Word) (uintptr_t) data;
- size = *data++;
- if (unlikely ((Dwarf_Word) (end_data - data) < size))
- goto invalid;
- data += size; /* Skip the block. */
- }
- break;
-
- default:
- goto invalid;
- }
- }
-
- if (unlikely (n == 0))
- {
- /* This is not allowed.
- It would mean an empty location expression, which we handled
- already as a special case above. */
- goto invalid;
- }
-
- if (valuep)
- {
- struct loclist *newloc;
- newloc = (struct loclist *) alloca (sizeof (struct loclist));
- newloc->atom = DW_OP_stack_value;
- newloc->number = 0;
- newloc->number2 = 0;
- newloc->offset = data - block->data;
- newloc->next = loclist;
- loclist = newloc;
- ++n;
- }
-
- /* Allocate the array. */
- Dwarf_Op *result;
- if (dbg != NULL)
- result = libdw_alloc (dbg, Dwarf_Op, sizeof (Dwarf_Op), n);
- else
- {
- result = malloc (sizeof *result * n);
- if (result == NULL)
- {
- nomem:
- __libdw_seterrno (DWARF_E_NOMEM);
- return -1;
- }
- }
-
- /* Store the result. */
- *llbuf = result;
- *listlen = n;
-
- do
- {
- /* We populate the array from the back since the list is backwards. */
- --n;
- result[n].atom = loclist->atom;
- result[n].number = loclist->number;
- result[n].number2 = loclist->number2;
- result[n].offset = loclist->offset;
-
- if (result[n].atom == DW_OP_implicit_value)
- store_implicit_value (dbg, cache, &result[n]);
-
- loclist = loclist->next;
- }
- while (n > 0);
-
- /* Insert a record in the search tree so that we can find it again later. */
- struct loc_s *newp;
- if (dbg != NULL)
- newp = libdw_alloc (dbg, struct loc_s, sizeof (struct loc_s), 1);
- else
- {
- newp = malloc (sizeof *newp);
- if (newp == NULL)
- {
- free (result);
- goto nomem;
- }
- }
-
- newp->addr = block->data;
- newp->loc = result;
- newp->nloc = *listlen;
- (void) tsearch (newp, cache, loc_compare);
-
- /* We did it. */
- return 0;
-}
-
-static int
-getlocation (struct Dwarf_CU *cu, const Dwarf_Block *block,
- Dwarf_Op **llbuf, size_t *listlen, int sec_index)
-{
- /* Empty location expressions don't have any ops to intern.
- Note that synthetic empty_cu doesn't have an associated DWARF dbg. */
- if (block->length == 0)
- {
- *listlen = 0;
- return 0;
- }
-
- return __libdw_intern_expression (cu->dbg, cu->dbg->other_byte_order,
- cu->address_size, (cu->version == 2
- ? cu->address_size
- : cu->offset_size),
- &cu->locs, block,
- false, false,
- llbuf, listlen, sec_index);
-}
-
-int
-dwarf_getlocation (attr, llbuf, listlen)
- Dwarf_Attribute *attr;
- Dwarf_Op **llbuf;
- size_t *listlen;
-{
- if (! attr_ok (attr))
- return -1;
-
- int result = check_constant_offset (attr, llbuf, listlen);
- if (result != 1)
- return result;
-
- /* If it has a block form, it's a single location expression. */
- Dwarf_Block block;
- if (INTUSE(dwarf_formblock) (attr, &block) != 0)
- return -1;
-
- return getlocation (attr->cu, &block, llbuf, listlen, cu_sec_idx (attr->cu));
-}
-
-static int
-attr_base_address (attr, basep)
- Dwarf_Attribute *attr;
- Dwarf_Addr *basep;
-{
- /* Fetch the CU's base address. */
- Dwarf_Die cudie = CUDIE (attr->cu);
-
- /* Find the base address of the compilation unit. It will
- normally be specified by DW_AT_low_pc. In DWARF-3 draft 4,
- the base address could be overridden by DW_AT_entry_pc. It's
- been removed, but GCC emits DW_AT_entry_pc and not DW_AT_lowpc
- for compilation units with discontinuous ranges. */
- Dwarf_Attribute attr_mem;
- if (unlikely (INTUSE(dwarf_lowpc) (&cudie, basep) != 0)
- && INTUSE(dwarf_formaddr) (INTUSE(dwarf_attr) (&cudie,
- DW_AT_entry_pc,
- &attr_mem),
- basep) != 0)
- {
- if (INTUSE(dwarf_errno) () != 0)
- return -1;
-
- /* The compiler provided no base address when it should
- have. Buggy GCC does this when it used absolute
- addresses in the location list and no DW_AT_ranges. */
- *basep = 0;
- }
- return 0;
-}
-
-static int
-initial_offset_base (attr, offset, basep)
- Dwarf_Attribute *attr;
- ptrdiff_t *offset;
- Dwarf_Addr *basep;
-{
- if (attr_base_address (attr, basep) != 0)
- return -1;
-
- Dwarf_Word start_offset;
- if (__libdw_formptr (attr, IDX_debug_loc,
- DWARF_E_NO_LOCLIST,
- NULL, &start_offset) == NULL)
- return -1;
-
- *offset = start_offset;
- return 0;
-}
-
-static ptrdiff_t
-getlocations_addr (attr, offset, basep, startp, endp, address,
- locs, expr, exprlen)
- Dwarf_Attribute *attr;
- ptrdiff_t offset;
- Dwarf_Addr *basep;
- Dwarf_Addr *startp;
- Dwarf_Addr *endp;
- Dwarf_Addr address;
- Elf_Data *locs;
- Dwarf_Op **expr;
- size_t *exprlen;
-{
- unsigned char *readp = locs->d_buf + offset;
- unsigned char *readendp = locs->d_buf + locs->d_size;
-
- next:
- if (readendp - readp < attr->cu->address_size * 2)
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- Dwarf_Addr begin;
- Dwarf_Addr end;
-
- switch (__libdw_read_begin_end_pair_inc (attr->cu->dbg, IDX_debug_loc,
- &readp, attr->cu->address_size,
- &begin, &end, basep))
- {
- case 0: /* got location range. */
- break;
- case 1: /* base address setup. */
- goto next;
- case 2: /* end of loclist */
- return 0;
- default: /* error */
- return -1;
- }
-
- if (readendp - readp < 2)
- goto invalid;
-
- /* We have a location expression. */
- Dwarf_Block block;
- block.length = read_2ubyte_unaligned_inc (attr->cu->dbg, readp);
- block.data = readp;
- if (readendp - readp < (ptrdiff_t) block.length)
- goto invalid;
- readp += block.length;
-
- *startp = *basep + begin;
- *endp = *basep + end;
-
- /* If address is minus one we want them all, otherwise only matching. */
- if (address != (Dwarf_Word) -1 && (address < *startp || address >= *endp))
- goto next;
-
- if (getlocation (attr->cu, &block, expr, exprlen, IDX_debug_loc) != 0)
- return -1;
-
- return readp - (unsigned char *) locs->d_buf;
-}
-
-int
-dwarf_getlocation_addr (attr, address, llbufs, listlens, maxlocs)
- Dwarf_Attribute *attr;
- Dwarf_Addr address;
- Dwarf_Op **llbufs;
- size_t *listlens;
- size_t maxlocs;
-{
- if (! attr_ok (attr))
- return -1;
-
- if (llbufs == NULL)
- maxlocs = SIZE_MAX;
-
- /* If it has a block form, it's a single location expression. */
- Dwarf_Block block;
- if (INTUSE(dwarf_formblock) (attr, &block) == 0)
- {
- if (maxlocs == 0)
- return 0;
- if (llbufs != NULL &&
- getlocation (attr->cu, &block, &llbufs[0], &listlens[0],
- cu_sec_idx (attr->cu)) != 0)
- return -1;
- return listlens[0] == 0 ? 0 : 1;
- }
-
- int error = INTUSE(dwarf_errno) ();
- if (unlikely (error != DWARF_E_NO_BLOCK))
- {
- __libdw_seterrno (error);
- return -1;
- }
-
- int result = check_constant_offset (attr, &llbufs[0], &listlens[0]);
- if (result != 1)
- return result ?: 1;
-
- Dwarf_Addr base, start, end;
- Dwarf_Op *expr;
- size_t expr_len;
- ptrdiff_t off = 0;
- size_t got = 0;
-
- /* This is a true loclistptr, fetch the initial base address and offset. */
- if (initial_offset_base (attr, &off, &base) != 0)
- return -1;
-
- const Elf_Data *d = attr->cu->dbg->sectiondata[IDX_debug_loc];
- if (d == NULL)
- {
- __libdw_seterrno (DWARF_E_NO_LOCLIST);
- return -1;
- }
-
- while (got < maxlocs
- && (off = getlocations_addr (attr, off, &base, &start, &end,
- address, d, &expr, &expr_len)) > 0)
- {
- /* This one matches the address. */
- if (llbufs != NULL)
- {
- llbufs[got] = expr;
- listlens[got] = expr_len;
- }
- ++got;
- }
-
- /* We might stop early, so off can be zero or positive on success. */
- if (off < 0)
- return -1;
-
- return got;
-}
-
-ptrdiff_t
-dwarf_getlocations (attr, offset, basep, startp, endp, expr, exprlen)
- Dwarf_Attribute *attr;
- ptrdiff_t offset;
- Dwarf_Addr *basep;
- Dwarf_Addr *startp;
- Dwarf_Addr *endp;
- Dwarf_Op **expr;
- size_t *exprlen;
-{
- if (! attr_ok (attr))
- return -1;
-
- /* 1 is an invalid offset, meaning no more locations. */
- if (offset == 1)
- return 0;
-
- if (offset == 0)
- {
- /* If it has a block form, it's a single location expression. */
- Dwarf_Block block;
- if (INTUSE(dwarf_formblock) (attr, &block) == 0)
- {
- if (getlocation (attr->cu, &block, expr, exprlen,
- cu_sec_idx (attr->cu)) != 0)
- return -1;
-
- /* This is the one and only location covering everything. */
- *startp = 0;
- *endp = -1;
- return 1;
- }
-
- int error = INTUSE(dwarf_errno) ();
- if (unlikely (error != DWARF_E_NO_BLOCK))
- {
- __libdw_seterrno (error);
- return -1;
- }
-
- int result = check_constant_offset (attr, expr, exprlen);
- if (result != 1)
- {
- if (result == 0)
- {
- /* This is the one and only location covering everything. */
- *startp = 0;
- *endp = -1;
- return 1;
- }
- return result;
- }
-
- /* We must be looking at a true loclistptr, fetch the initial
- base address and offset. */
- if (initial_offset_base (attr, &offset, basep) != 0)
- return -1;
- }
-
- const Elf_Data *d = attr->cu->dbg->sectiondata[IDX_debug_loc];
- if (d == NULL)
- {
- __libdw_seterrno (DWARF_E_NO_LOCLIST);
- return -1;
- }
-
- return getlocations_addr (attr, offset, basep, startp, endp,
- (Dwarf_Word) -1, d, expr, exprlen);
-}
diff --git a/src/libdw/dwarf_getlocation_attr.c b/src/libdw/dwarf_getlocation_attr.c
deleted file mode 100644
index 3229baf6..00000000
--- a/src/libdw/dwarf_getlocation_attr.c
+++ /dev/null
@@ -1,122 +0,0 @@
-/* Return DWARF attribute associated with a location expression op.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include <libdwP.h>
-
-static Dwarf_CU *
-attr_form_cu (Dwarf_Attribute *attr)
-{
- /* If the attribute has block/expr form the data comes from the
- .debug_info from the same cu as the attr. Otherwise it comes from
- the .debug_loc data section. */
- switch (attr->form)
- {
- case DW_FORM_block1:
- case DW_FORM_block2:
- case DW_FORM_block4:
- case DW_FORM_block:
- case DW_FORM_exprloc:
- return attr->cu;
- default:
- return attr->cu->dbg->fake_loc_cu;
- }
-}
-
-int
-dwarf_getlocation_attr (attr, op, result)
- Dwarf_Attribute *attr;
- const Dwarf_Op *op;
- Dwarf_Attribute *result;
-{
- if (attr == NULL)
- return -1;
-
- switch (op->atom)
- {
- case DW_OP_implicit_value:
- result->code = DW_AT_const_value;
- result->form = DW_FORM_block;
- result->valp = (unsigned char *) (uintptr_t) op->number2;
- result->cu = attr_form_cu (attr);
- break;
-
- case DW_OP_GNU_entry_value:
- result->code = DW_AT_location;
- result->form = DW_FORM_exprloc;
- result->valp = (unsigned char *) (uintptr_t) op->number2;
- result->cu = attr_form_cu (attr);
- break;
-
- case DW_OP_GNU_const_type:
- result->code = DW_AT_const_value;
- result->form = DW_FORM_block1;
- result->valp = (unsigned char *) (uintptr_t) op->number2;
- result->cu = attr_form_cu (attr);
- break;
-
- case DW_OP_call2:
- case DW_OP_call4:
- case DW_OP_call_ref:
- {
- Dwarf_Die die;
- if (INTUSE(dwarf_getlocation_die) (attr, op, &die) != 0)
- return -1;
- if (INTUSE(dwarf_attr) (&die, DW_AT_location, result) == NULL)
- {
- __libdw_empty_loc_attr (result);
- return 0;
- }
- }
- break;
-
- case DW_OP_GNU_implicit_pointer:
- {
- Dwarf_Die die;
- if (INTUSE(dwarf_getlocation_die) (attr, op, &die) != 0)
- return -1;
- if (INTUSE(dwarf_attr) (&die, DW_AT_location, result) == NULL
- && INTUSE(dwarf_attr) (&die, DW_AT_const_value, result) == NULL)
- {
- __libdw_empty_loc_attr (result);
- return 0;
- }
- }
- break;
-
- default:
- __libdw_seterrno (DWARF_E_INVALID_ACCESS);
- return -1;
- }
-
- return 0;
-}
diff --git a/src/libdw/dwarf_getlocation_die.c b/src/libdw/dwarf_getlocation_die.c
deleted file mode 100644
index fa03aac2..00000000
--- a/src/libdw/dwarf_getlocation_die.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Return DIE associated with a location expression op.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include <libdwP.h>
-
-int
-dwarf_getlocation_die (attr, op, result)
- Dwarf_Attribute *attr;
- const Dwarf_Op *op;
- Dwarf_Die *result;
-{
- if (attr == NULL)
- return -1;
-
- Dwarf_Off dieoff;
- switch (op->atom)
- {
- case DW_OP_GNU_implicit_pointer:
- case DW_OP_call_ref:
- dieoff = op->number;
- break;
-
- case DW_OP_GNU_parameter_ref:
- case DW_OP_GNU_convert:
- case DW_OP_GNU_reinterpret:
- case DW_OP_GNU_const_type:
- case DW_OP_call2:
- case DW_OP_call4:
- dieoff = attr->cu->start + op->number;
- break;
-
- case DW_OP_GNU_regval_type:
- case DW_OP_GNU_deref_type:
- dieoff = attr->cu->start + op->number2;
- break;
-
- default:
- __libdw_seterrno (DWARF_E_INVALID_ACCESS);
- return -1;
- }
-
- if (__libdw_offdie (attr->cu->dbg, dieoff, result,
- attr->cu->type_offset != 0) == NULL)
- return -1;
-
- return 0;
-}
-INTDEF(dwarf_getlocation_die);
diff --git a/src/libdw/dwarf_getlocation_implicit_pointer.c b/src/libdw/dwarf_getlocation_implicit_pointer.c
deleted file mode 100644
index f1c16be7..00000000
--- a/src/libdw/dwarf_getlocation_implicit_pointer.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* Return associated attribute for DW_OP_GNU_implicit_pointer.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <dwarf.h>
-
-
-static unsigned char empty_exprloc = 0;
-static Dwarf_CU empty_cu = { .startp = &empty_exprloc,
- .endp = &empty_exprloc + 1 };
-
-void
-internal_function
-__libdw_empty_loc_attr (Dwarf_Attribute *attr)
-{
- attr->code = DW_AT_location;
- attr->form = DW_FORM_exprloc;
- attr->valp = &empty_exprloc;
- attr->cu = &empty_cu;
-}
-
-int
-dwarf_getlocation_implicit_pointer (attr, op, result)
- Dwarf_Attribute *attr;
- const Dwarf_Op *op;
- Dwarf_Attribute *result;
-{
- if (attr == NULL)
- return -1;
-
- if (unlikely (op->atom != DW_OP_GNU_implicit_pointer))
- {
- __libdw_seterrno (DWARF_E_INVALID_ACCESS);
- return -1;
- }
-
- Dwarf_Die die;
- if (__libdw_offdie (attr->cu->dbg, op->number, &die,
- attr->cu->type_offset != 0) == NULL)
- return -1;
-
- if (INTUSE(dwarf_attr) (&die, DW_AT_location, result) == NULL
- && INTUSE(dwarf_attr) (&die, DW_AT_const_value, result) == NULL)
- {
- __libdw_empty_loc_attr (result);
- return 0;
- }
-
- return 0;
-}
diff --git a/src/libdw/dwarf_getmacros.c b/src/libdw/dwarf_getmacros.c
deleted file mode 100644
index f9f29961..00000000
--- a/src/libdw/dwarf_getmacros.c
+++ /dev/null
@@ -1,548 +0,0 @@
-/* Get macro information.
- Copyright (C) 2002-2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include <search.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <libdwP.h>
-
-static int
-get_offset_from (Dwarf_Die *die, int name, Dwarf_Word *retp)
-{
- /* Get the appropriate attribute. */
- Dwarf_Attribute attr;
- if (INTUSE(dwarf_attr) (die, name, &attr) == NULL)
- return -1;
-
- /* Offset into the corresponding section. */
- return INTUSE(dwarf_formudata) (&attr, retp);
-}
-
-static int
-macro_op_compare (const void *p1, const void *p2)
-{
- const Dwarf_Macro_Op_Table *t1 = (const Dwarf_Macro_Op_Table *) p1;
- const Dwarf_Macro_Op_Table *t2 = (const Dwarf_Macro_Op_Table *) p2;
-
- if (t1->offset < t2->offset)
- return -1;
- if (t1->offset > t2->offset)
- return 1;
-
- if (t1->sec_index < t2->sec_index)
- return -1;
- if (t1->sec_index > t2->sec_index)
- return 1;
-
- return 0;
-}
-
-static void
-build_table (Dwarf_Macro_Op_Table *table,
- Dwarf_Macro_Op_Proto op_protos[static 255])
-{
- unsigned ct = 0;
- for (unsigned i = 1; i < 256; ++i)
- if (op_protos[i - 1].forms != NULL)
- table->table[table->opcodes[i - 1] = ct++] = op_protos[i - 1];
- else
- table->opcodes[i - 1] = 0xff;
-}
-
-#define MACRO_PROTO(NAME, ...) \
- Dwarf_Macro_Op_Proto NAME = ({ \
- static const uint8_t proto[] = {__VA_ARGS__}; \
- (Dwarf_Macro_Op_Proto) {sizeof proto, proto}; \
- })
-
-enum { macinfo_data_size = offsetof (Dwarf_Macro_Op_Table, table[5]) };
-static unsigned char macinfo_data[macinfo_data_size]
- __attribute__ ((aligned (__alignof (Dwarf_Macro_Op_Table))));
-
-static __attribute__ ((constructor)) void
-init_macinfo_table (void)
-{
- MACRO_PROTO (p_udata_str, DW_FORM_udata, DW_FORM_string);
- MACRO_PROTO (p_udata_udata, DW_FORM_udata, DW_FORM_udata);
- MACRO_PROTO (p_none);
-
- Dwarf_Macro_Op_Proto op_protos[255] =
- {
- [DW_MACINFO_define - 1] = p_udata_str,
- [DW_MACINFO_undef - 1] = p_udata_str,
- [DW_MACINFO_vendor_ext - 1] = p_udata_str,
- [DW_MACINFO_start_file - 1] = p_udata_udata,
- [DW_MACINFO_end_file - 1] = p_none,
- /* If you are adding more elements to this array, increase
- MACINFO_DATA_SIZE above. */
- };
-
- Dwarf_Macro_Op_Table *macinfo_table = (void *) macinfo_data;
- memset (macinfo_table, 0, sizeof macinfo_data);
- build_table (macinfo_table, op_protos);
- macinfo_table->sec_index = IDX_debug_macinfo;
-}
-
-static Dwarf_Macro_Op_Table *
-get_macinfo_table (Dwarf *dbg, Dwarf_Word macoff, Dwarf_Die *cudie)
-{
- assert (cudie != NULL);
-
- Dwarf_Attribute attr_mem, *attr
- = INTUSE(dwarf_attr) (cudie, DW_AT_stmt_list, &attr_mem);
- Dwarf_Off line_offset = (Dwarf_Off) -1;
- if (attr != NULL)
- INTUSE(dwarf_formudata) (attr, &line_offset);
-
- Dwarf_Macro_Op_Table *table = libdw_alloc (dbg, Dwarf_Macro_Op_Table,
- macinfo_data_size, 1);
- memcpy (table, macinfo_data, macinfo_data_size);
-
- table->offset = macoff;
- table->sec_index = IDX_debug_macinfo;
- table->line_offset = line_offset;
- table->is_64bit = cudie->cu->address_size == 8;
- table->comp_dir = __libdw_getcompdir (cudie);
-
- return table;
-}
-
-static Dwarf_Macro_Op_Table *
-get_table_for_offset (Dwarf *dbg, Dwarf_Word macoff,
- const unsigned char *readp,
- const unsigned char *const endp,
- Dwarf_Die *cudie)
-{
- const unsigned char *startp = readp;
-
- /* Request at least 3 bytes for header. */
- if (readp + 3 > endp)
- {
- invalid_dwarf:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- uint16_t version = read_2ubyte_unaligned_inc (dbg, readp);
- if (version != 4)
- {
- __libdw_seterrno (DWARF_E_INVALID_VERSION);
- return NULL;
- }
-
- uint8_t flags = *readp++;
- bool is_64bit = (flags & 0x1) != 0;
-
- Dwarf_Off line_offset = (Dwarf_Off) -1;
- if ((flags & 0x2) != 0)
- {
- line_offset = read_addr_unaligned_inc (is_64bit ? 8 : 4, dbg, readp);
- if (readp > endp)
- goto invalid_dwarf;
- }
- else if (cudie != NULL)
- {
- Dwarf_Attribute attr_mem, *attr
- = INTUSE(dwarf_attr) (cudie, DW_AT_stmt_list, &attr_mem);
- if (attr != NULL)
- INTUSE(dwarf_formudata) (attr, &line_offset);
- }
-
- /* """The macinfo entry types defined in this standard may, but
- might not, be described in the table""".
-
- I.e. these may be present. It's tempting to simply skip them,
- but it's probably more correct to tolerate that a producer tweaks
- the way certain opcodes are encoded, for whatever reasons. */
-
- MACRO_PROTO (p_udata_str, DW_FORM_udata, DW_FORM_string);
- MACRO_PROTO (p_udata_strp, DW_FORM_udata, DW_FORM_strp);
- MACRO_PROTO (p_udata_udata, DW_FORM_udata, DW_FORM_udata);
- MACRO_PROTO (p_secoffset, DW_FORM_sec_offset);
- MACRO_PROTO (p_none);
-
- Dwarf_Macro_Op_Proto op_protos[255] =
- {
- [DW_MACRO_GNU_define - 1] = p_udata_str,
- [DW_MACRO_GNU_undef - 1] = p_udata_str,
- [DW_MACRO_GNU_define_indirect - 1] = p_udata_strp,
- [DW_MACRO_GNU_undef_indirect - 1] = p_udata_strp,
- [DW_MACRO_GNU_start_file - 1] = p_udata_udata,
- [DW_MACRO_GNU_end_file - 1] = p_none,
- [DW_MACRO_GNU_transparent_include - 1] = p_secoffset,
- /* N.B. DW_MACRO_undef_indirectx, DW_MACRO_define_indirectx
- should be added when 130313.1 is supported. */
- };
-
- if ((flags & 0x4) != 0)
- {
- unsigned count = *readp++;
- for (unsigned i = 0; i < count; ++i)
- {
- unsigned opcode = *readp++;
-
- Dwarf_Macro_Op_Proto e;
- if (readp >= endp)
- goto invalid;
- get_uleb128 (e.nforms, readp, endp);
- e.forms = readp;
- op_protos[opcode - 1] = e;
-
- readp += e.nforms;
- if (readp > endp)
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
- }
- }
-
- size_t ct = 0;
- for (unsigned i = 1; i < 256; ++i)
- if (op_protos[i - 1].forms != NULL)
- ++ct;
-
- /* We support at most 0xfe opcodes defined in the table, as 0xff is
- a value that means that given opcode is not stored at all. But
- that should be fine, as opcode 0 is not allocated. */
- assert (ct < 0xff);
-
- size_t macop_table_size = offsetof (Dwarf_Macro_Op_Table, table[ct]);
-
- Dwarf_Macro_Op_Table *table = libdw_alloc (dbg, Dwarf_Macro_Op_Table,
- macop_table_size, 1);
-
- *table = (Dwarf_Macro_Op_Table) {
- .offset = macoff,
- .sec_index = IDX_debug_macro,
- .line_offset = line_offset,
- .header_len = readp - startp,
- .version = version,
- .is_64bit = is_64bit,
-
- /* NULL if CUDIE is NULL or DW_AT_comp_dir is absent. */
- .comp_dir = __libdw_getcompdir (cudie),
- };
- build_table (table, op_protos);
-
- return table;
-}
-
-static Dwarf_Macro_Op_Table *
-cache_op_table (Dwarf *dbg, int sec_index, Dwarf_Off macoff,
- const unsigned char *startp,
- const unsigned char *const endp,
- Dwarf_Die *cudie)
-{
- Dwarf_Macro_Op_Table fake = { .offset = macoff, .sec_index = sec_index };
- Dwarf_Macro_Op_Table **found = tfind (&fake, &dbg->macro_ops,
- macro_op_compare);
- if (found != NULL)
- return *found;
-
- Dwarf_Macro_Op_Table *table = sec_index == IDX_debug_macro
- ? get_table_for_offset (dbg, macoff, startp, endp, cudie)
- : get_macinfo_table (dbg, macoff, cudie);
-
- if (table == NULL)
- return NULL;
-
- Dwarf_Macro_Op_Table **ret = tsearch (table, &dbg->macro_ops,
- macro_op_compare);
- if (unlikely (ret == NULL))
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- return NULL;
- }
-
- return *ret;
-}
-
-static ptrdiff_t
-read_macros (Dwarf *dbg, int sec_index,
- Dwarf_Off macoff, int (*callback) (Dwarf_Macro *, void *),
- void *arg, ptrdiff_t offset, bool accept_0xff,
- Dwarf_Die *cudie)
-{
- Elf_Data *d = dbg->sectiondata[sec_index];
- if (unlikely (d == NULL || d->d_buf == NULL))
- {
- __libdw_seterrno (DWARF_E_NO_ENTRY);
- return -1;
- }
-
- if (unlikely (macoff >= d->d_size))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- const unsigned char *const startp = d->d_buf + macoff;
- const unsigned char *const endp = d->d_buf + d->d_size;
-
- Dwarf_Macro_Op_Table *table = cache_op_table (dbg, sec_index, macoff,
- startp, endp, cudie);
- if (table == NULL)
- return -1;
-
- if (offset == 0)
- offset = table->header_len;
-
- assert (offset >= 0);
- assert (offset < endp - startp);
- const unsigned char *readp = startp + offset;
-
- while (readp < endp)
- {
- unsigned int opcode = *readp++;
- if (opcode == 0)
- /* Nothing more to do. */
- return 0;
-
- if (unlikely (opcode == 0xff && ! accept_0xff))
- {
- /* See comment below at dwarf_getmacros for explanation of
- why we are doing this. */
- __libdw_seterrno (DWARF_E_INVALID_OPCODE);
- return -1;
- }
-
- unsigned int idx = table->opcodes[opcode - 1];
- if (idx == 0xff)
- {
- __libdw_seterrno (DWARF_E_INVALID_OPCODE);
- return -1;
- }
-
- Dwarf_Macro_Op_Proto *proto = &table->table[idx];
-
- /* A fake CU with bare minimum data to fool dwarf_formX into
- doing the right thing with the attributes that we put out.
- We arbitrarily pretend it's version 4. */
- Dwarf_CU fake_cu = {
- .dbg = dbg,
- .version = 4,
- .offset_size = table->is_64bit ? 8 : 4,
- .startp = (void *) startp + offset,
- .endp = (void *) endp,
- };
-
- Dwarf_Attribute attributes[proto->nforms];
- for (Dwarf_Word i = 0; i < proto->nforms; ++i)
- {
- /* We pretend this is a DW_AT_GNU_macros attribute so that
- DW_FORM_sec_offset forms get correctly interpreted as
- offset into .debug_macro. */
- attributes[i].code = DW_AT_GNU_macros;
- attributes[i].form = proto->forms[i];
- attributes[i].valp = (void *) readp;
- attributes[i].cu = &fake_cu;
-
- size_t len = __libdw_form_val_len (&fake_cu, proto->forms[i], readp);
- if (len == (size_t) -1)
- return -1;
-
- readp += len;
- }
-
- Dwarf_Macro macro = {
- .table = table,
- .opcode = opcode,
- .attributes = attributes,
- };
-
- if (callback (&macro, arg) != DWARF_CB_OK)
- return readp - startp;
- }
-
- return 0;
-}
-
-/* Token layout:
-
- - The highest bit is used for distinguishing between callers that
- know that opcode 0xff may have one of two incompatible meanings.
- The mask that we use for selecting this bit is
- DWARF_GETMACROS_START.
-
- - The rest of the token (31 or 63 bits) encodes address inside the
- macro unit.
-
- Besides, token value of 0 signals end of iteration and -1 is
- reserved for signaling errors. That means it's impossible to
- represent maximum offset of a .debug_macro unit to new-style
- callers (which in practice decreases the permissible macro unit
- size by another 1 byte). */
-
-static ptrdiff_t
-token_from_offset (ptrdiff_t offset, bool accept_0xff)
-{
- if (offset == -1 || offset == 0)
- return offset;
-
- /* Make sure the offset didn't overflow into the flag bit. */
- if ((offset & DWARF_GETMACROS_START) != 0)
- {
- __libdw_seterrno (DWARF_E_TOO_BIG);
- return -1;
- }
-
- if (accept_0xff)
- offset |= DWARF_GETMACROS_START;
-
- return offset;
-}
-
-static ptrdiff_t
-offset_from_token (ptrdiff_t token, bool *accept_0xffp)
-{
- *accept_0xffp = (token & DWARF_GETMACROS_START) != 0;
- token &= ~DWARF_GETMACROS_START;
-
- return token;
-}
-
-static ptrdiff_t
-gnu_macros_getmacros_off (Dwarf *dbg, Dwarf_Off macoff,
- int (*callback) (Dwarf_Macro *, void *),
- void *arg, ptrdiff_t offset, bool accept_0xff,
- Dwarf_Die *cudie)
-{
- assert (offset >= 0);
-
- if (macoff >= dbg->sectiondata[IDX_debug_macro]->d_size)
- {
- __libdw_seterrno (DWARF_E_INVALID_OFFSET);
- return -1;
- }
-
- return read_macros (dbg, IDX_debug_macro, macoff,
- callback, arg, offset, accept_0xff, cudie);
-}
-
-static ptrdiff_t
-macro_info_getmacros_off (Dwarf *dbg, Dwarf_Off macoff,
- int (*callback) (Dwarf_Macro *, void *),
- void *arg, ptrdiff_t offset, Dwarf_Die *cudie)
-{
- assert (offset >= 0);
-
- return read_macros (dbg, IDX_debug_macinfo, macoff,
- callback, arg, offset, true, cudie);
-}
-
-ptrdiff_t
-dwarf_getmacros_off (Dwarf *dbg, Dwarf_Off macoff,
- int (*callback) (Dwarf_Macro *, void *),
- void *arg, ptrdiff_t token)
-{
- if (dbg == NULL)
- {
- __libdw_seterrno (DWARF_E_NO_DWARF);
- return -1;
- }
-
- bool accept_0xff;
- ptrdiff_t offset = offset_from_token (token, &accept_0xff);
- assert (accept_0xff);
-
- offset = gnu_macros_getmacros_off (dbg, macoff, callback, arg, offset,
- accept_0xff, NULL);
-
- return token_from_offset (offset, accept_0xff);
-}
-
-ptrdiff_t
-dwarf_getmacros (cudie, callback, arg, token)
- Dwarf_Die *cudie;
- int (*callback) (Dwarf_Macro *, void *);
- void *arg;
- ptrdiff_t token;
-{
- if (cudie == NULL)
- {
- __libdw_seterrno (DWARF_E_NO_DWARF);
- return -1;
- }
-
- /* This function might be called from a code that expects to see
- DW_MACINFO_* opcodes, not DW_MACRO_{GNU_,}* ones. It is fine to
- serve most DW_MACRO_{GNU_,}* opcodes to such code, because those
- whose values are the same as DW_MACINFO_* ones also have the same
- behavior. It is not very likely that a .debug_macro section
- would only use the part of opcode space that it shares with
- .debug_macinfo, but it is possible. Serving the opcodes that are
- only valid in DW_MACRO_{GNU_,}* domain is OK as well, because
- clients in general need to be ready that newer standards define
- more opcodes, and have coping mechanisms for unfamiliar opcodes.
-
- The one exception to the above rule is opcode 0xff, which has
- concrete semantics in .debug_macinfo, but falls into vendor block
- in .debug_macro, and can be assigned to do whatever. There is
- some small probability that the two opcodes would look
- superficially similar enough that a client would be confused and
- misbehave as a result. For this reason, we refuse to serve
- through this interface 0xff's originating from .debug_macro
- unless the TOKEN that we obtained indicates the call originates
- from a new-style caller. See above for details on what
- information is encoded into tokens. */
-
- bool accept_0xff;
- ptrdiff_t offset = offset_from_token (token, &accept_0xff);
-
- /* DW_AT_macro_info */
- if (dwarf_hasattr (cudie, DW_AT_macro_info))
- {
- Dwarf_Word macoff;
- if (get_offset_from (cudie, DW_AT_macro_info, &macoff) != 0)
- return -1;
- offset = macro_info_getmacros_off (cudie->cu->dbg, macoff,
- callback, arg, offset, cudie);
- }
- else
- {
- /* DW_AT_GNU_macros, DW_AT_macros */
- Dwarf_Word macoff;
- if (get_offset_from (cudie, DW_AT_GNU_macros, &macoff) != 0)
- return -1;
- offset = gnu_macros_getmacros_off (cudie->cu->dbg, macoff,
- callback, arg, offset, accept_0xff,
- cudie);
- }
-
- return token_from_offset (offset, accept_0xff);
-}
diff --git a/src/libdw/dwarf_getpubnames.c b/src/libdw/dwarf_getpubnames.c
deleted file mode 100644
index 19f4eae1..00000000
--- a/src/libdw/dwarf_getpubnames.c
+++ /dev/null
@@ -1,245 +0,0 @@
-/* Get public symbol information.
- Copyright (C) 2002, 2003, 2004, 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/param.h>
-
-#include <libdwP.h>
-#include <dwarf.h>
-
-
-static int
-get_offsets (Dwarf *dbg)
-{
- size_t allocated = 0;
- size_t cnt = 0;
- struct pubnames_s *mem = NULL;
- const size_t entsize = sizeof (struct pubnames_s);
- unsigned char *const startp = dbg->sectiondata[IDX_debug_pubnames]->d_buf;
- unsigned char *readp = startp;
- unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size;
-
- while (readp + 14 < endp)
- {
- /* If necessary, allocate more entries. */
- if (cnt >= allocated)
- {
- allocated = MAX (10, 2 * allocated);
- struct pubnames_s *newmem
- = (struct pubnames_s *) realloc (mem, allocated * entsize);
- if (newmem == NULL)
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- err_return:
- free (mem);
- return -1;
- }
-
- mem = newmem;
- }
-
- /* Read the set header. */
- int len_bytes = 4;
- Dwarf_Off len = read_4ubyte_unaligned_inc (dbg, readp);
- if (len == DWARF3_LENGTH_64_BIT)
- {
- len = read_8ubyte_unaligned_inc (dbg, readp);
- len_bytes = 8;
- }
- else if (unlikely (len >= DWARF3_LENGTH_MIN_ESCAPE_CODE
- && len <= DWARF3_LENGTH_MAX_ESCAPE_CODE))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- goto err_return;
- }
-
- /* Now we know the offset of the first offset/name pair. */
- mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp;
- mem[cnt].address_len = len_bytes;
- size_t max_size = dbg->sectiondata[IDX_debug_pubnames]->d_size;
- if (mem[cnt].set_start >= max_size
- || len - (2 + 2 * len_bytes) > max_size - mem[cnt].set_start)
- /* Something wrong, the first entry is beyond the end of
- the section. Or the length of the whole unit is too big. */
- break;
-
- /* Read the version. It better be two for now. */
- uint16_t version = read_2ubyte_unaligned (dbg, readp);
- if (unlikely (version != 2))
- {
- __libdw_seterrno (DWARF_E_INVALID_VERSION);
- goto err_return;
- }
-
- /* Get the CU offset. */
- if (__libdw_read_offset (dbg, dbg, IDX_debug_pubnames,
- readp + 2, len_bytes,
- &mem[cnt].cu_offset, IDX_debug_info, 3))
- /* Error has been already set in reader. */
- goto err_return;
-
- /* Determine the size of the CU header. */
- unsigned char *infop
- = ((unsigned char *) dbg->sectiondata[IDX_debug_info]->d_buf
- + mem[cnt].cu_offset);
- if (read_4ubyte_unaligned_noncvt (infop) == DWARF3_LENGTH_64_BIT)
- mem[cnt].cu_header_size = 23;
- else
- mem[cnt].cu_header_size = 11;
-
- ++cnt;
-
- /* Advance to the next set. */
- readp += len;
- }
-
- if (mem == NULL || cnt == 0)
- {
- __libdw_seterrno (DWARF_E_NO_ENTRY);
- return -1;
- }
-
- dbg->pubnames_sets = (struct pubnames_s *) realloc (mem, cnt * entsize);
- dbg->pubnames_nsets = cnt;
-
- return 0;
-}
-
-
-ptrdiff_t
-dwarf_getpubnames (dbg, callback, arg, offset)
- Dwarf *dbg;
- int (*callback) (Dwarf *, Dwarf_Global *, void *);
- void *arg;
- ptrdiff_t offset;
-{
- if (dbg == NULL)
- return -1l;
-
- if (unlikely (offset < 0))
- {
- __libdw_seterrno (DWARF_E_INVALID_OFFSET);
- return -1l;
- }
-
- /* Make sure it is a valid offset. */
- if (unlikely (dbg->sectiondata[IDX_debug_pubnames] == NULL
- || ((size_t) offset
- >= dbg->sectiondata[IDX_debug_pubnames]->d_size)))
- /* No (more) entry. */
- return 0;
-
- /* If necessary read the set information. */
- if (dbg->pubnames_nsets == 0 && unlikely (get_offsets (dbg) != 0))
- return -1l;
-
- /* Find the place where to start. */
- size_t cnt;
- if (offset == 0)
- {
- cnt = 0;
- offset = dbg->pubnames_sets[0].set_start;
- }
- else
- {
- for (cnt = 0; cnt + 1 < dbg->pubnames_nsets; ++cnt)
- if ((Dwarf_Off) offset >= dbg->pubnames_sets[cnt].set_start)
- {
- assert ((Dwarf_Off) offset
- < dbg->pubnames_sets[cnt + 1].set_start);
- break;
- }
- assert (cnt + 1 < dbg->pubnames_nsets);
- }
-
- unsigned char *startp
- = (unsigned char *) dbg->sectiondata[IDX_debug_pubnames]->d_buf;
- unsigned char *endp
- = startp + dbg->sectiondata[IDX_debug_pubnames]->d_size;
- unsigned char *readp = startp + offset;
- while (1)
- {
- Dwarf_Global gl;
-
- gl.cu_offset = (dbg->pubnames_sets[cnt].cu_offset
- + dbg->pubnames_sets[cnt].cu_header_size);
-
- while (1)
- {
- /* READP points to the next offset/name pair. */
- if (readp + dbg->pubnames_sets[cnt].address_len > endp)
- goto invalid_dwarf;
- if (dbg->pubnames_sets[cnt].address_len == 4)
- gl.die_offset = read_4ubyte_unaligned_inc (dbg, readp);
- else
- gl.die_offset = read_8ubyte_unaligned_inc (dbg, readp);
-
- /* If the offset is zero we reached the end of the set. */
- if (gl.die_offset == 0)
- break;
-
- /* Add the CU offset. */
- gl.die_offset += dbg->pubnames_sets[cnt].cu_offset;
-
- gl.name = (char *) readp;
- readp = (unsigned char *) memchr (gl.name, '\0', endp - readp);
- if (unlikely (readp == NULL))
- {
- invalid_dwarf:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1l;
- }
- readp++;
-
- /* We found name and DIE offset. Report it. */
- if (callback (dbg, &gl, arg) != DWARF_CB_OK)
- {
- /* The user wants us to stop. Return the offset of the
- next entry. */
- return readp - startp;
- }
- }
-
- if (++cnt == dbg->pubnames_nsets)
- /* This was the last set. */
- break;
-
- startp = (unsigned char *) dbg->sectiondata[IDX_debug_pubnames]->d_buf;
- readp = startp + dbg->pubnames_sets[cnt].set_start;
- }
-
- /* We are done. No more entries. */
- return 0;
-}
diff --git a/src/libdw/dwarf_getscopes.c b/src/libdw/dwarf_getscopes.c
deleted file mode 100644
index 0ca6da0b..00000000
--- a/src/libdw/dwarf_getscopes.c
+++ /dev/null
@@ -1,201 +0,0 @@
-/* Return scope DIEs containing PC address.
- Copyright (C) 2005, 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stdlib.h>
-#include "libdwP.h"
-#include <dwarf.h>
-
-
-struct args
-{
- Dwarf_Addr pc;
- Dwarf_Die *scopes;
- unsigned int inlined, nscopes;
- Dwarf_Die inlined_origin;
-};
-
-/* Preorder visitor: prune the traversal if this DIE does not contain PC. */
-static int
-pc_match (unsigned int depth, struct Dwarf_Die_Chain *die, void *arg)
-{
- struct args *a = arg;
-
- if (a->scopes != NULL)
- die->prune = true;
- else
- {
- /* dwarf_haspc returns an error if there are no appropriate attributes.
- But we use it indiscriminantly instead of presuming which tags can
- have PC attributes. So when it fails for that reason, treat it just
- as a nonmatching return. */
- int result = INTUSE(dwarf_haspc) (&die->die, a->pc);
- if (result < 0)
- {
- int error = INTUSE(dwarf_errno) ();
- if (error != DWARF_E_NOERROR && error != DWARF_E_NO_DEBUG_RANGES)
- {
- __libdw_seterrno (error);
- return -1;
- }
- result = 0;
- }
- if (result == 0)
- die->prune = true;
-
- if (!die->prune
- && INTUSE (dwarf_tag) (&die->die) == DW_TAG_inlined_subroutine)
- a->inlined = depth;
- }
-
- return 0;
-}
-
-/* Preorder visitor for second partial traversal after finding a
- concrete inlined instance. */
-static int
-origin_match (unsigned int depth, struct Dwarf_Die_Chain *die, void *arg)
-{
- struct args *a = arg;
-
- if (die->die.addr != a->inlined_origin.addr)
- return 0;
-
- /* We have a winner! This is the abstract definition of the inline
- function of which A->scopes[A->nscopes - 1] is a concrete instance.
- */
-
- unsigned int nscopes = a->nscopes + depth;
- Dwarf_Die *scopes = realloc (a->scopes, nscopes * sizeof scopes[0]);
- if (scopes == NULL)
- {
- free (a->scopes);
- __libdw_seterrno (DWARF_E_NOMEM);
- return -1;
- }
-
- a->scopes = scopes;
- do
- {
- die = die->parent;
- scopes[a->nscopes++] = die->die;
- }
- while (a->nscopes < nscopes);
- assert (die->parent == NULL);
- return a->nscopes;
-}
-
-/* Postorder visitor: first (innermost) call wins. */
-static int
-pc_record (unsigned int depth, struct Dwarf_Die_Chain *die, void *arg)
-{
- struct args *a = arg;
-
- if (die->prune)
- return 0;
-
- if (a->scopes == NULL)
- {
- /* We have hit the innermost DIE that contains the target PC. */
-
- a->nscopes = depth + 1 - a->inlined;
- a->scopes = malloc (a->nscopes * sizeof a->scopes[0]);
- if (a->scopes == NULL)
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- return -1;
- }
-
- for (unsigned int i = 0; i < a->nscopes; ++i)
- {
- a->scopes[i] = die->die;
- die = die->parent;
- }
-
- if (a->inlined == 0)
- {
- assert (die == NULL);
- return a->nscopes;
- }
-
- /* This is the concrete inlined instance itself.
- Record its abstract_origin pointer. */
- Dwarf_Die *const inlinedie = &a->scopes[depth - a->inlined];
-
- assert (INTUSE (dwarf_tag) (inlinedie) == DW_TAG_inlined_subroutine);
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = INTUSE (dwarf_attr) (inlinedie,
- DW_AT_abstract_origin,
- &attr_mem);
- if (INTUSE (dwarf_formref_die) (attr, &a->inlined_origin) == NULL)
- return -1;
- return 0;
- }
-
-
- /* We've recorded the scopes back to one that is a concrete inlined
- instance. Now return out of the traversal back to the scope
- containing that instance. */
-
- assert (a->inlined);
- if (depth >= a->inlined)
- /* Not there yet. */
- return 0;
-
- /* Now we are in a scope that contains the concrete inlined instance.
- Search it for the inline function's abstract definition.
- If we don't find it, return to search the containing scope.
- If we do find it, the nonzero return value will bail us out
- of the postorder traversal. */
- return __libdw_visit_scopes (depth, die, &origin_match, NULL, a);
-}
-
-
-int
-dwarf_getscopes (Dwarf_Die *cudie, Dwarf_Addr pc, Dwarf_Die **scopes)
-{
- if (cudie == NULL)
- return -1;
-
- struct Dwarf_Die_Chain cu = { .parent = NULL, .die = *cudie };
- struct args a = { .pc = pc };
-
- int result = __libdw_visit_scopes (0, &cu, &pc_match, &pc_record, &a);
-
- if (result == 0 && a.scopes != NULL)
- result = __libdw_visit_scopes (0, &cu, &origin_match, NULL, &a);
-
- if (result > 0)
- *scopes = a.scopes;
-
- return result;
-}
diff --git a/src/libdw/dwarf_getscopes_die.c b/src/libdw/dwarf_getscopes_die.c
deleted file mode 100644
index d3615852..00000000
--- a/src/libdw/dwarf_getscopes_die.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Return scope DIEs containing given DIE.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#include "libdwP.h"
-#include <assert.h>
-#include <stdlib.h>
-
-static int
-scope_visitor (unsigned int depth, struct Dwarf_Die_Chain *die, void *arg)
-{
- if (die->die.addr != *(void **) arg)
- return 0;
-
- Dwarf_Die *scopes = malloc (depth * sizeof scopes[0]);
- if (scopes == NULL)
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- return -1;
- }
-
- unsigned int i = 0;
- do
- {
- scopes[i++] = die->die;
- die = die->parent;
- }
- while (die != NULL);
- assert (i == depth);
-
- *(void **) arg = scopes;
- return depth;
-}
-
-int
-dwarf_getscopes_die (Dwarf_Die *die, Dwarf_Die **scopes)
-{
- if (die == NULL)
- return -1;
-
- struct Dwarf_Die_Chain cu = { .die = CUDIE (die->cu), .parent = NULL };
- void *info = die->addr;
- int result = __libdw_visit_scopes (1, &cu, &scope_visitor, NULL, &info);
- if (result > 0)
- *scopes = info;
- return result;
-}
diff --git a/src/libdw/dwarf_getscopevar.c b/src/libdw/dwarf_getscopevar.c
deleted file mode 100644
index eb50c0ad..00000000
--- a/src/libdw/dwarf_getscopevar.c
+++ /dev/null
@@ -1,154 +0,0 @@
-/* Find a named variable or parameter within given scopes.
- Copyright (C) 2005-2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdbool.h>
-#include <string.h>
-#include "libdwP.h"
-#include <dwarf.h>
-
-
-/* Find the containing CU's files. */
-static int
-getfiles (Dwarf_Die *die, Dwarf_Files **files)
-{
- return INTUSE(dwarf_getsrcfiles) (&CUDIE (die->cu), files, NULL);
-}
-
-/* Fetch an attribute that should have a constant integer form. */
-static int
-getattr (Dwarf_Die *die, int search_name, Dwarf_Word *value)
-{
- Dwarf_Attribute attr_mem;
- return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr) (die, search_name,
- &attr_mem), value);
-}
-
-/* Search SCOPES[0..NSCOPES-1] for a variable called NAME.
- Ignore the first SKIP_SHADOWS scopes that match the name.
- If MATCH_FILE is not null, accept only declaration in that source file;
- if MATCH_LINENO or MATCH_LINECOL are also nonzero, accept only declaration
- at that line and column.
-
- If successful, fill in *RESULT with the DIE of the variable found,
- and return N where SCOPES[N] is the scope defining the variable.
- Return -1 for errors or -2 for no matching variable found. */
-
-int
-dwarf_getscopevar (Dwarf_Die *scopes, int nscopes,
- const char *name, int skip_shadows,
- const char *match_file, int match_lineno, int match_linecol,
- Dwarf_Die *result)
-{
- /* Match against the given file name. */
- size_t match_file_len = match_file == NULL ? 0 : strlen (match_file);
- bool lastfile_matches = false;
- const char *lastfile = NULL;
- inline bool file_matches (Dwarf_Files *files, size_t idx)
- {
- if (idx >= files->nfiles)
- return false;
-
- const char *file = files->info[idx].name;
- if (file != lastfile)
- {
- size_t len = strlen (file);
- lastfile_matches = (len >= match_file_len
- && !memcmp (match_file, file, match_file_len)
- && (len == match_file_len
- || file[len - match_file_len - 1] == '/'));
- }
- return lastfile_matches;
- }
-
- /* Start with the innermost scope and move out. */
- for (int out = 0; out < nscopes; ++out)
- if (INTUSE(dwarf_haschildren) (&scopes[out]))
- {
- if (INTUSE(dwarf_child) (&scopes[out], result) != 0)
- return -1;
- do
- {
- switch (INTUSE(dwarf_tag) (result))
- {
- case DW_TAG_variable:
- case DW_TAG_formal_parameter:
- break;
-
- default:
- continue;
- }
-
- /* Only get here for a variable or parameter. Check the name. */
- const char *diename = INTUSE(dwarf_diename) (result);
- if (diename != NULL && !strcmp (name, diename))
- {
- /* We have a matching name. */
-
- if (skip_shadows > 0)
- {
- /* Punt this scope for the one it shadows. */
- --skip_shadows;
- break;
- }
-
- if (match_file != NULL)
- {
- /* Check its decl_file. */
-
- Dwarf_Word i;
- Dwarf_Files *files;
- if (getattr (result, DW_AT_decl_file, &i) != 0
- || getfiles (&scopes[out], &files) != 0)
- break;
-
- if (!file_matches (files, i))
- break;
-
- if (match_lineno > 0
- && (getattr (result, DW_AT_decl_line, &i) != 0
- || (int) i != match_lineno))
- break;
- if (match_linecol > 0
- && (getattr (result, DW_AT_decl_column, &i) != 0
- || (int) i != match_linecol))
- break;
- }
-
- /* We have a winner! */
- return out;
- }
- }
- while (INTUSE(dwarf_siblingof) (result, result) == 0);
- }
-
- return -2;
-}
diff --git a/src/libdw/dwarf_getsrc_die.c b/src/libdw/dwarf_getsrc_die.c
deleted file mode 100644
index 1914cdf7..00000000
--- a/src/libdw/dwarf_getsrc_die.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Find line information for address.
- Copyright (C) 2004, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <assert.h>
-
-
-Dwarf_Line *
-dwarf_getsrc_die (Dwarf_Die *cudie, Dwarf_Addr addr)
-{
- Dwarf_Lines *lines;
- size_t nlines;
-
- if (INTUSE(dwarf_getsrclines) (cudie, &lines, &nlines) != 0)
- return NULL;
-
- /* The lines are sorted by address, so we can use binary search. */
- size_t l = 0, u = nlines;
- while (l < u)
- {
- size_t idx = (l + u) / 2;
- if (addr < lines->info[idx].addr)
- u = idx;
- else if (addr > lines->info[idx].addr || lines->info[idx].end_sequence)
- l = idx + 1;
- else
- return &lines->info[idx];
- }
-
- if (nlines > 0)
- assert (lines->info[nlines - 1].end_sequence);
-
- /* If none were equal, the closest one below is what we want. We
- never want the last one, because it's the end-sequence marker
- with an address at the high bound of the CU's code. If the debug
- information is faulty and no end-sequence marker is present, we
- still ignore it. */
- if (u > 0 && u < nlines && addr > lines->info[u - 1].addr)
- {
- while (lines->info[u - 1].end_sequence && u > 0)
- --u;
- if (u > 0)
- return &lines->info[u - 1];
- }
-
- __libdw_seterrno (DWARF_E_ADDR_OUTOFRANGE);
- return NULL;
-}
diff --git a/src/libdw/dwarf_getsrc_file.c b/src/libdw/dwarf_getsrc_file.c
deleted file mode 100644
index 5289c7da..00000000
--- a/src/libdw/dwarf_getsrc_file.c
+++ /dev/null
@@ -1,178 +0,0 @@
-/* Find line information for given file/line/column triple.
- Copyright (C) 2005-2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <limits.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libdwP.h"
-
-
-int
-dwarf_getsrc_file (Dwarf *dbg, const char *fname, int lineno, int column,
- Dwarf_Line ***srcsp, size_t *nsrcs)
-{
- if (dbg == NULL)
- return -1;
-
- bool is_basename = strchr (fname, '/') == NULL;
-
- size_t max_match = *nsrcs ?: ~0u;
- size_t act_match = *nsrcs;
- size_t cur_match = 0;
- Dwarf_Line **match = *nsrcs == 0 ? NULL : *srcsp;
-
- size_t cuhl;
- Dwarf_Off noff;
- for (Dwarf_Off off = 0;
- INTUSE(dwarf_nextcu) (dbg, off, &noff, &cuhl, NULL, NULL, NULL) == 0;
- off = noff)
- {
- Dwarf_Die cudie_mem;
- Dwarf_Die *cudie = INTUSE(dwarf_offdie) (dbg, off + cuhl, &cudie_mem);
- if (cudie == NULL)
- continue;
-
- /* Get the line number information for this file. */
- Dwarf_Lines *lines;
- size_t nlines;
- if (INTUSE(dwarf_getsrclines) (cudie, &lines, &nlines) != 0)
- {
- /* Ignore a CU that just has no DW_AT_stmt_list at all. */
- int error = INTUSE(dwarf_errno) ();
- if (error == 0)
- continue;
- __libdw_seterrno (error);
- return -1;
- }
-
- /* Search through all the line number records for a matching
- file and line/column number. If any of the numbers is zero,
- no match is performed. */
- unsigned int lastfile = UINT_MAX;
- bool lastmatch = false;
- for (size_t cnt = 0; cnt < nlines; ++cnt)
- {
- Dwarf_Line *line = &lines->info[cnt];
-
- if (lastfile != line->file)
- {
- lastfile = line->file;
- if (lastfile >= line->files->nfiles)
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- /* Match the name with the name the user provided. */
- const char *fname2 = line->files->info[lastfile].name;
- if (is_basename)
- lastmatch = strcmp (basename (fname2), fname) == 0;
- else
- lastmatch = strcmp (fname2, fname) == 0;
- }
- if (!lastmatch)
- continue;
-
- /* See whether line and possibly column match. */
- if (lineno != 0
- && (lineno > line->line
- || (column != 0 && column > line->column)))
- /* Cannot match. */
- continue;
-
- /* Determine whether this is the best match so far. */
- size_t inner;
- for (inner = 0; inner < cur_match; ++inner)
- if (match[inner]->files == line->files
- && match[inner]->file == line->file)
- break;
- if (inner < cur_match
- && (match[inner]->line != line->line
- || match[inner]->line != lineno
- || (column != 0
- && (match[inner]->column != line->column
- || match[inner]->column != column))))
- {
- /* We know about this file already. If this is a better
- match for the line number, use it. */
- if (match[inner]->line >= line->line
- && (match[inner]->line != line->line
- || match[inner]->column >= line->column))
- /* Use the new line. Otherwise the old one. */
- match[inner] = line;
- continue;
- }
-
- if (cur_match < max_match)
- {
- if (cur_match == act_match)
- {
- /* Enlarge the array for the results. */
- act_match += 10;
- Dwarf_Line **newp = realloc (match,
- act_match
- * sizeof (Dwarf_Line *));
- if (newp == NULL)
- {
- free (match);
- __libdw_seterrno (DWARF_E_NOMEM);
- return -1;
- }
- match = newp;
- }
-
- match[cur_match++] = line;
- }
- }
-
- /* If we managed to find as many matches as the user requested
- already, there is no need to go on to the next CU. */
- if (cur_match == max_match)
- break;
- }
-
- if (cur_match > 0)
- {
- assert (*nsrcs == 0 || *srcsp == match);
-
- *nsrcs = cur_match;
- *srcsp = match;
-
- return 0;
- }
-
- __libdw_seterrno (DWARF_E_NO_MATCH);
- return -1;
-}
diff --git a/src/libdw/dwarf_getsrcdirs.c b/src/libdw/dwarf_getsrcdirs.c
deleted file mode 100644
index 47283ec2..00000000
--- a/src/libdw/dwarf_getsrcdirs.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Find include directories in source file information.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_getsrcdirs (files, result, ndirs)
- Dwarf_Files *files;
- const char *const **result;
- size_t *ndirs;
-{
- if (files == NULL)
- return -1;
-
- *result = (void *) &files->info[files->nfiles];
- *ndirs = files->ndirs;
- return 0;
-}
diff --git a/src/libdw/dwarf_getsrcfiles.c b/src/libdw/dwarf_getsrcfiles.c
deleted file mode 100644
index 4bfc34b8..00000000
--- a/src/libdw/dwarf_getsrcfiles.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/* Return source file information of CU.
- Copyright (C) 2004, 2005, 2013 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_getsrcfiles (Dwarf_Die *cudie, Dwarf_Files **files, size_t *nfiles)
-{
- if (unlikely (cudie == NULL
- || (INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit
- && INTUSE(dwarf_tag) (cudie) != DW_TAG_partial_unit)))
- return -1;
-
- int res = -1;
-
- /* Get the information if it is not already known. */
- struct Dwarf_CU *const cu = cudie->cu;
- if (cu->lines == NULL)
- {
- Dwarf_Lines *lines;
- size_t nlines;
-
- /* Let the more generic function do the work. It'll create more
- data but that will be needed in an real program anyway. */
- res = INTUSE(dwarf_getsrclines) (cudie, &lines, &nlines);
- }
- else if (cu->files != (void *) -1l)
- /* We already have the information. */
- res = 0;
-
- if (likely (res == 0))
- {
- assert (cu->files != NULL && cu->files != (void *) -1l);
- *files = cu->files;
- if (nfiles != NULL)
- *nfiles = cu->files->nfiles;
- }
-
- // XXX Eventually: unlocking here.
-
- return res;
-}
-INTDEF (dwarf_getsrcfiles)
diff --git a/src/libdw/dwarf_getsrclines.c b/src/libdw/dwarf_getsrclines.c
deleted file mode 100644
index 053b30f2..00000000
--- a/src/libdw/dwarf_getsrclines.c
+++ /dev/null
@@ -1,881 +0,0 @@
-/* Return line number information of CU.
- Copyright (C) 2004-2010, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stdlib.h>
-#include <string.h>
-#include <search.h>
-
-#include "dwarf.h"
-#include "libdwP.h"
-
-
-struct filelist
-{
- Dwarf_Fileinfo info;
- struct filelist *next;
-};
-
-struct linelist
-{
- Dwarf_Line line;
- struct linelist *next;
- size_t sequence;
-};
-
-
-/* Compare by Dwarf_Line.addr, given pointers into an array of pointers. */
-static int
-compare_lines (const void *a, const void *b)
-{
- struct linelist *const *p1 = a;
- struct linelist *const *p2 = b;
- struct linelist *list1 = *p1;
- struct linelist *list2 = *p2;
- Dwarf_Line *line1 = &list1->line;
- Dwarf_Line *line2 = &list2->line;
-
- if (line1->addr != line2->addr)
- return (line1->addr < line2->addr) ? -1 : 1;
-
- /* An end_sequence marker precedes a normal record at the same address. */
- if (line1->end_sequence != line2->end_sequence)
- return line2->end_sequence - line1->end_sequence;
-
- /* Otherwise, the linelist sequence maintains a stable sort. */
- return (list1->sequence < list2->sequence) ? -1
- : (list1->sequence > list2->sequence) ? 1
- : 0;
-}
-
-static int
-read_srclines (Dwarf *dbg,
- const unsigned char *linep, const unsigned char *lineendp,
- const char *comp_dir, unsigned address_size,
- Dwarf_Lines **linesp, Dwarf_Files **filesp)
-{
- int res = -1;
-
- struct linelist *linelist = NULL;
- size_t nlinelist = 0;
-
- /* If there are a large number of lines don't blow up the stack.
- Keep track of the last malloced linelist record and free them
- through the next pointer at the end. */
-#define MAX_STACK_ALLOC 4096
- struct linelist *malloc_linelist = NULL;
-
- if (unlikely (linep + 4 > lineendp))
- {
- invalid_data:
- __libdw_seterrno (DWARF_E_INVALID_DEBUG_LINE);
- goto out;
- }
-
- Dwarf_Word unit_length = read_4ubyte_unaligned_inc (dbg, linep);
- unsigned int length = 4;
- if (unlikely (unit_length == DWARF3_LENGTH_64_BIT))
- {
- if (unlikely (linep + 8 > lineendp))
- goto invalid_data;
- unit_length = read_8ubyte_unaligned_inc (dbg, linep);
- length = 8;
- }
-
- /* Check whether we have enough room in the section. */
- if (unlikely (unit_length > (size_t) (lineendp - linep)
- || unit_length < 2 + length + 5 * 1))
- goto invalid_data;
- lineendp = linep + unit_length;
-
- /* The next element of the header is the version identifier. */
- uint_fast16_t version = read_2ubyte_unaligned_inc (dbg, linep);
- if (unlikely (version < 2) || unlikely (version > 4))
- {
- __libdw_seterrno (DWARF_E_VERSION);
- goto out;
- }
-
- /* Next comes the header length. */
- Dwarf_Word header_length;
- if (length == 4)
- header_length = read_4ubyte_unaligned_inc (dbg, linep);
- else
- header_length = read_8ubyte_unaligned_inc (dbg, linep);
- const unsigned char *header_start = linep;
-
- /* Next the minimum instruction length. */
- uint_fast8_t minimum_instr_len = *linep++;
-
- /* Next the maximum operations per instruction, in version 4 format. */
- uint_fast8_t max_ops_per_instr = 1;
- if (version >= 4)
- {
- if (unlikely (lineendp - linep < 5))
- goto invalid_data;
- max_ops_per_instr = *linep++;
- if (unlikely (max_ops_per_instr == 0))
- goto invalid_data;
- }
-
- /* Then the flag determining the default value of the is_stmt
- register. */
- uint_fast8_t default_is_stmt = *linep++;
-
- /* Now the line base. */
- int_fast8_t line_base = (int8_t) *linep++;
-
- /* And the line range. */
- uint_fast8_t line_range = *linep++;
-
- /* The opcode base. */
- uint_fast8_t opcode_base = *linep++;
-
- /* Remember array with the standard opcode length (-1 to account for
- the opcode with value zero not being mentioned). */
- const uint8_t *standard_opcode_lengths = linep - 1;
- if (unlikely (lineendp - linep < opcode_base - 1))
- goto invalid_data;
- linep += opcode_base - 1;
-
- /* First comes the list of directories. Add the compilation
- directory first since the index zero is used for it. */
- struct dirlist
- {
- const char *dir;
- size_t len;
- struct dirlist *next;
- } comp_dir_elem =
- {
- .dir = comp_dir,
- .len = comp_dir ? strlen (comp_dir) : 0,
- .next = NULL
- };
- struct dirlist *dirlist = &comp_dir_elem;
- unsigned int ndirlist = 1;
-
- // XXX Directly construct array to conserve memory?
- while (*linep != 0)
- {
- struct dirlist *new_dir =
- (struct dirlist *) alloca (sizeof (*new_dir));
-
- new_dir->dir = (char *) linep;
- uint8_t *endp = memchr (linep, '\0', lineendp - linep);
- if (endp == NULL)
- goto invalid_data;
- new_dir->len = endp - linep;
- new_dir->next = dirlist;
- dirlist = new_dir;
- ++ndirlist;
- linep = endp + 1;
- }
- /* Skip the final NUL byte. */
- ++linep;
-
- /* Rearrange the list in array form. */
- struct dirlist **dirarray
- = (struct dirlist **) alloca (ndirlist * sizeof (*dirarray));
- for (unsigned int n = ndirlist; n-- > 0; dirlist = dirlist->next)
- dirarray[n] = dirlist;
-
- /* Now read the files. */
- struct filelist null_file =
- {
- .info =
- {
- .name = "???",
- .mtime = 0,
- .length = 0
- },
- .next = NULL
- };
- struct filelist *filelist = &null_file;
- unsigned int nfilelist = 1;
-
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- while (*linep != 0)
- {
- struct filelist *new_file =
- (struct filelist *) alloca (sizeof (*new_file));
-
- /* First comes the file name. */
- char *fname = (char *) linep;
- uint8_t *endp = memchr (fname, '\0', lineendp - linep);
- if (endp == NULL)
- goto invalid_data;
- size_t fnamelen = endp - (uint8_t *) fname;
- linep = endp + 1;
-
- /* Then the index. */
- Dwarf_Word diridx;
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (diridx, linep, lineendp);
- if (unlikely (diridx >= ndirlist))
- {
- __libdw_seterrno (DWARF_E_INVALID_DIR_IDX);
- goto out;
- }
-
- if (*fname == '/')
- /* It's an absolute path. */
- new_file->info.name = fname;
- else
- {
- new_file->info.name = libdw_alloc (dbg, char, 1,
- dirarray[diridx]->len + 1
- + fnamelen + 1);
- char *cp = new_file->info.name;
-
- if (dirarray[diridx]->dir != NULL)
- {
- /* This value could be NULL in case the DW_AT_comp_dir
- was not present. We cannot do much in this case.
- The easiest thing is to convert the path in an
- absolute path. */
- cp = stpcpy (cp, dirarray[diridx]->dir);
- }
- *cp++ = '/';
- strcpy (cp, fname);
- assert (strlen (new_file->info.name)
- < dirarray[diridx]->len + 1 + fnamelen + 1);
- }
-
- /* Next comes the modification time. */
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (new_file->info.mtime, linep, lineendp);
-
- /* Finally the length of the file. */
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (new_file->info.length, linep, lineendp);
-
- new_file->next = filelist;
- filelist = new_file;
- ++nfilelist;
- }
- /* Skip the final NUL byte. */
- ++linep;
-
- /* Consistency check. */
- if (unlikely (linep != header_start + header_length))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- goto out;
- }
-
- /* We are about to process the statement program. Initialize the
- state machine registers (see 6.2.2 in the v2.1 specification). */
- Dwarf_Word addr = 0;
- unsigned int op_index = 0;
- unsigned int file = 1;
- int line = 1;
- unsigned int column = 0;
- uint_fast8_t is_stmt = default_is_stmt;
- bool basic_block = false;
- bool prologue_end = false;
- bool epilogue_begin = false;
- unsigned int isa = 0;
- unsigned int discriminator = 0;
-
- /* Apply the "operation advance" from a special opcode or
- DW_LNS_advance_pc (as per DWARF4 6.2.5.1). */
- inline void advance_pc (unsigned int op_advance)
- {
- addr += minimum_instr_len * ((op_index + op_advance)
- / max_ops_per_instr);
- op_index = (op_index + op_advance) % max_ops_per_instr;
- }
-
- /* Process the instructions. */
-
- /* Adds a new line to the matrix.
- We cannot simply define a function because we want to use alloca. */
-#define NEW_LINE(end_seq) \
- do { \
- struct linelist *ll = (nlinelist < MAX_STACK_ALLOC \
- ? alloca (sizeof (struct linelist)) \
- : malloc (sizeof (struct linelist))); \
- if (nlinelist >= MAX_STACK_ALLOC) \
- malloc_linelist = ll; \
- if (unlikely (add_new_line (ll, end_seq))) \
- goto invalid_data; \
- } while (0)
-
- inline bool add_new_line (struct linelist *new_line, bool end_sequence)
- {
- new_line->next = linelist;
- new_line->sequence = nlinelist;
- linelist = new_line;
- ++nlinelist;
-
- /* Set the line information. For some fields we use bitfields,
- so we would lose information if the encoded values are too large.
- Check just for paranoia, and call the data "invalid" if it
- violates our assumptions on reasonable limits for the values. */
-#define SET(field) \
- do { \
- new_line->line.field = field; \
- if (unlikely (new_line->line.field != field)) \
- return true; \
- } while (0)
-
- SET (addr);
- SET (op_index);
- SET (file);
- SET (line);
- SET (column);
- SET (is_stmt);
- SET (basic_block);
- SET (end_sequence);
- SET (prologue_end);
- SET (epilogue_begin);
- SET (isa);
- SET (discriminator);
-
-#undef SET
-
- return false;
- }
-
- while (linep < lineendp)
- {
- unsigned int opcode;
- unsigned int u128;
- int s128;
-
- /* Read the opcode. */
- opcode = *linep++;
-
- /* Is this a special opcode? */
- if (likely (opcode >= opcode_base))
- {
- if (unlikely (line_range == 0))
- goto invalid_data;
-
- /* Yes. Handling this is quite easy since the opcode value
- is computed with
-
- opcode = (desired line increment - line_base)
- + (line_range * address advance) + opcode_base
- */
- int line_increment = (line_base
- + (opcode - opcode_base) % line_range);
-
- /* Perform the increments. */
- line += line_increment;
- advance_pc ((opcode - opcode_base) / line_range);
-
- /* Add a new line with the current state machine values. */
- NEW_LINE (0);
-
- /* Reset the flags. */
- basic_block = false;
- prologue_end = false;
- epilogue_begin = false;
- discriminator = 0;
- }
- else if (opcode == 0)
- {
- /* This an extended opcode. */
- if (unlikely (lineendp - linep < 2))
- goto invalid_data;
-
- /* The length. */
- uint_fast8_t len = *linep++;
-
- if (unlikely ((size_t) (lineendp - linep) < len))
- goto invalid_data;
-
- /* The sub-opcode. */
- opcode = *linep++;
-
- switch (opcode)
- {
- case DW_LNE_end_sequence:
- /* Add a new line with the current state machine values.
- The is the end of the sequence. */
- NEW_LINE (1);
-
- /* Reset the registers. */
- addr = 0;
- op_index = 0;
- file = 1;
- line = 1;
- column = 0;
- is_stmt = default_is_stmt;
- basic_block = false;
- prologue_end = false;
- epilogue_begin = false;
- isa = 0;
- discriminator = 0;
- break;
-
- case DW_LNE_set_address:
- /* The value is an address. The size is defined as
- apporiate for the target machine. We use the
- address size field from the CU header. */
- op_index = 0;
- if (unlikely (lineendp - linep < (uint8_t) address_size))
- goto invalid_data;
- if (__libdw_read_address_inc (dbg, IDX_debug_line, &linep,
- address_size, &addr))
- goto out;
- break;
-
- case DW_LNE_define_file:
- {
- char *fname = (char *) linep;
- uint8_t *endp = memchr (linep, '\0', lineendp - linep);
- if (endp == NULL)
- goto invalid_data;
- size_t fnamelen = endp - linep;
- linep = endp + 1;
-
- unsigned int diridx;
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (diridx, linep, lineendp);
- if (unlikely (diridx >= ndirlist))
- {
- __libdw_seterrno (DWARF_E_INVALID_DIR_IDX);
- goto invalid_data;
- }
- Dwarf_Word mtime;
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (mtime, linep, lineendp);
- Dwarf_Word filelength;
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (filelength, linep, lineendp);
-
- struct filelist *new_file =
- (struct filelist *) alloca (sizeof (*new_file));
- if (fname[0] == '/')
- new_file->info.name = fname;
- else
- {
- new_file->info.name =
- libdw_alloc (dbg, char, 1, (dirarray[diridx]->len + 1
- + fnamelen + 1));
- char *cp = new_file->info.name;
-
- if (dirarray[diridx]->dir != NULL)
- /* This value could be NULL in case the
- DW_AT_comp_dir was not present. We
- cannot do much in this case. The easiest
- thing is to convert the path in an
- absolute path. */
- cp = stpcpy (cp, dirarray[diridx]->dir);
- *cp++ = '/';
- strcpy (cp, fname);
- }
-
- new_file->info.mtime = mtime;
- new_file->info.length = filelength;
- new_file->next = filelist;
- filelist = new_file;
- ++nfilelist;
- }
- break;
-
- case DW_LNE_set_discriminator:
- /* Takes one ULEB128 parameter, the discriminator. */
- if (unlikely (standard_opcode_lengths[opcode] != 1))
- goto invalid_data;
-
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (discriminator, linep, lineendp);
- break;
-
- default:
- /* Unknown, ignore it. */
- if (unlikely ((size_t) (lineendp - (linep - 1)) < len))
- goto invalid_data;
- linep += len - 1;
- break;
- }
- }
- else if (opcode <= DW_LNS_set_isa)
- {
- /* This is a known standard opcode. */
- switch (opcode)
- {
- case DW_LNS_copy:
- /* Takes no argument. */
- if (unlikely (standard_opcode_lengths[opcode] != 0))
- goto invalid_data;
-
- /* Add a new line with the current state machine values. */
- NEW_LINE (0);
-
- /* Reset the flags. */
- basic_block = false;
- prologue_end = false;
- epilogue_begin = false;
- discriminator = 0;
- break;
-
- case DW_LNS_advance_pc:
- /* Takes one uleb128 parameter which is added to the
- address. */
- if (unlikely (standard_opcode_lengths[opcode] != 1))
- goto invalid_data;
-
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (u128, linep, lineendp);
- advance_pc (u128);
- break;
-
- case DW_LNS_advance_line:
- /* Takes one sleb128 parameter which is added to the
- line. */
- if (unlikely (standard_opcode_lengths[opcode] != 1))
- goto invalid_data;
-
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_sleb128 (s128, linep, lineendp);
- line += s128;
- break;
-
- case DW_LNS_set_file:
- /* Takes one uleb128 parameter which is stored in file. */
- if (unlikely (standard_opcode_lengths[opcode] != 1))
- goto invalid_data;
-
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (u128, linep, lineendp);
- file = u128;
- break;
-
- case DW_LNS_set_column:
- /* Takes one uleb128 parameter which is stored in column. */
- if (unlikely (standard_opcode_lengths[opcode] != 1))
- goto invalid_data;
-
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (u128, linep, lineendp);
- column = u128;
- break;
-
- case DW_LNS_negate_stmt:
- /* Takes no argument. */
- if (unlikely (standard_opcode_lengths[opcode] != 0))
- goto invalid_data;
-
- is_stmt = 1 - is_stmt;
- break;
-
- case DW_LNS_set_basic_block:
- /* Takes no argument. */
- if (unlikely (standard_opcode_lengths[opcode] != 0))
- goto invalid_data;
-
- basic_block = true;
- break;
-
- case DW_LNS_const_add_pc:
- /* Takes no argument. */
- if (unlikely (standard_opcode_lengths[opcode] != 0))
- goto invalid_data;
-
- if (unlikely (line_range == 0))
- goto invalid_data;
-
- advance_pc ((255 - opcode_base) / line_range);
- break;
-
- case DW_LNS_fixed_advance_pc:
- /* Takes one 16 bit parameter which is added to the
- address. */
- if (unlikely (standard_opcode_lengths[opcode] != 1)
- || unlikely (lineendp - linep < 2))
- goto invalid_data;
-
- addr += read_2ubyte_unaligned_inc (dbg, linep);
- op_index = 0;
- break;
-
- case DW_LNS_set_prologue_end:
- /* Takes no argument. */
- if (unlikely (standard_opcode_lengths[opcode] != 0))
- goto invalid_data;
-
- prologue_end = true;
- break;
-
- case DW_LNS_set_epilogue_begin:
- /* Takes no argument. */
- if (unlikely (standard_opcode_lengths[opcode] != 0))
- goto invalid_data;
-
- epilogue_begin = true;
- break;
-
- case DW_LNS_set_isa:
- /* Takes one uleb128 parameter which is stored in isa. */
- if (unlikely (standard_opcode_lengths[opcode] != 1))
- goto invalid_data;
-
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (isa, linep, lineendp);
- break;
- }
- }
- else
- {
- /* This is a new opcode the generator but not we know about.
- Read the parameters associated with it but then discard
- everything. Read all the parameters for this opcode. */
- for (int n = standard_opcode_lengths[opcode]; n > 0; --n)
- {
- if (unlikely (linep >= lineendp))
- goto invalid_data;
- get_uleb128 (u128, linep, lineendp);
- }
-
- /* Next round, ignore this opcode. */
- continue;
- }
- }
-
- /* Put all the files in an array. */
- Dwarf_Files *files = libdw_alloc (dbg, Dwarf_Files,
- sizeof (Dwarf_Files)
- + nfilelist * sizeof (Dwarf_Fileinfo)
- + (ndirlist + 1) * sizeof (char *),
- 1);
- const char **dirs = (void *) &files->info[nfilelist];
-
- files->nfiles = nfilelist;
- while (nfilelist-- > 0)
- {
- files->info[nfilelist] = filelist->info;
- filelist = filelist->next;
- }
- assert (filelist == NULL);
-
- /* Put all the directory strings in an array. */
- files->ndirs = ndirlist;
- for (unsigned int i = 0; i < ndirlist; ++i)
- dirs[i] = dirarray[i]->dir;
- dirs[ndirlist] = NULL;
-
- /* Pass the file data structure to the caller. */
- if (filesp != NULL)
- *filesp = files;
-
- size_t buf_size = (sizeof (Dwarf_Lines) + (sizeof (Dwarf_Line) * nlinelist));
- void *buf = libdw_alloc (dbg, Dwarf_Lines, buf_size, 1);
-
- /* First use the buffer for the pointers, and sort the entries.
- We'll write the pointers in the end of the buffer, and then
- copy into the buffer from the beginning so the overlap works. */
- assert (sizeof (Dwarf_Line) >= sizeof (struct linelist *));
- struct linelist **sortlines = (buf + buf_size
- - sizeof (struct linelist **) * nlinelist);
-
- /* The list is in LIFO order and usually they come in clumps with
- ascending addresses. So fill from the back to probably start with
- runs already in order before we sort. */
- for (size_t i = nlinelist; i-- > 0; )
- {
- sortlines[i] = linelist;
- linelist = linelist->next;
- }
- assert (linelist == NULL);
-
- /* Sort by ascending address. */
- qsort (sortlines, nlinelist, sizeof sortlines[0], &compare_lines);
-
- /* Now that they are sorted, put them in the final array.
- The buffers overlap, so we've clobbered the early elements
- of SORTLINES by the time we're reading the later ones. */
- Dwarf_Lines *lines = buf;
- lines->nlines = nlinelist;
- for (size_t i = 0; i < nlinelist; ++i)
- {
- lines->info[i] = sortlines[i]->line;
- lines->info[i].files = files;
- }
-
- /* Make sure the highest address for the CU is marked as end_sequence.
- This is required by the DWARF spec, but some compilers forget and
- dwfl_module_getsrc depends on it. */
- if (nlinelist > 0)
- lines->info[nlinelist - 1].end_sequence = 1;
-
- /* Pass the line structure back to the caller. */
- if (linesp != NULL)
- *linesp = lines;
-
- /* Success. */
- res = 0;
-
- out:
- /* Free malloced line records, if any. */
- for (size_t i = MAX_STACK_ALLOC; i < nlinelist; i++)
- {
- struct linelist *ll = malloc_linelist->next;
- free (malloc_linelist);
- malloc_linelist = ll;
- }
-
- return res;
-}
-
-static int
-files_lines_compare (const void *p1, const void *p2)
-{
- const struct files_lines_s *t1 = p1;
- const struct files_lines_s *t2 = p2;
-
- if (t1->debug_line_offset < t2->debug_line_offset)
- return -1;
- if (t1->debug_line_offset > t2->debug_line_offset)
- return 1;
-
- return 0;
-}
-
-int
-internal_function
-__libdw_getsrclines (Dwarf *dbg, Dwarf_Off debug_line_offset,
- const char *comp_dir, unsigned address_size,
- Dwarf_Lines **linesp, Dwarf_Files **filesp)
-{
- struct files_lines_s fake = { .debug_line_offset = debug_line_offset };
- struct files_lines_s **found = tfind (&fake, &dbg->files_lines,
- files_lines_compare);
- if (found == NULL)
- {
- Elf_Data *data = __libdw_checked_get_data (dbg, IDX_debug_line);
- if (data == NULL
- || __libdw_offset_in_section (dbg, IDX_debug_line,
- debug_line_offset, 1) != 0)
- return -1;
-
- const unsigned char *linep = data->d_buf + debug_line_offset;
- const unsigned char *lineendp = data->d_buf + data->d_size;
-
- struct files_lines_s *node = libdw_alloc (dbg, struct files_lines_s,
- sizeof *node, 1);
-
- if (read_srclines (dbg, linep, lineendp, comp_dir, address_size,
- &node->lines, &node->files) != 0)
- return -1;
-
- node->debug_line_offset = debug_line_offset;
-
- found = tsearch (node, &dbg->files_lines, files_lines_compare);
- if (found == NULL)
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- return -1;
- }
- }
-
- if (linesp != NULL)
- *linesp = (*found)->lines;
-
- if (filesp != NULL)
- *filesp = (*found)->files;
-
- return 0;
-}
-
-/* Get the compilation directory, if any is set. */
-const char *
-__libdw_getcompdir (Dwarf_Die *cudie)
-{
- Dwarf_Attribute compdir_attr_mem;
- Dwarf_Attribute *compdir_attr = INTUSE(dwarf_attr) (cudie,
- DW_AT_comp_dir,
- &compdir_attr_mem);
- return INTUSE(dwarf_formstring) (compdir_attr);
-}
-
-int
-dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines, size_t *nlines)
-{
- if (unlikely (cudie == NULL
- || (INTUSE(dwarf_tag) (cudie) != DW_TAG_compile_unit
- && INTUSE(dwarf_tag) (cudie) != DW_TAG_partial_unit)))
- return -1;
-
- /* Get the information if it is not already known. */
- struct Dwarf_CU *const cu = cudie->cu;
- if (cu->lines == NULL)
- {
- /* Failsafe mode: no data found. */
- cu->lines = (void *) -1l;
- cu->files = (void *) -1l;
-
- /* The die must have a statement list associated. */
- Dwarf_Attribute stmt_list_mem;
- Dwarf_Attribute *stmt_list = INTUSE(dwarf_attr) (cudie, DW_AT_stmt_list,
- &stmt_list_mem);
-
- /* Get the offset into the .debug_line section. NB: this call
- also checks whether the previous dwarf_attr call failed. */
- Dwarf_Off debug_line_offset;
- if (__libdw_formptr (stmt_list, IDX_debug_line, DWARF_E_NO_DEBUG_LINE,
- NULL, &debug_line_offset) == NULL)
- return -1;
-
- if (__libdw_getsrclines (cu->dbg, debug_line_offset,
- __libdw_getcompdir (cudie),
- cu->address_size, &cu->lines, &cu->files) < 0)
- return -1;
- }
- else if (cu->lines == (void *) -1l)
- return -1;
-
- *lines = cu->lines;
- *nlines = cu->lines->nlines;
-
- // XXX Eventually: unlocking here.
-
- return 0;
-}
-INTDEF(dwarf_getsrclines)
diff --git a/src/libdw/dwarf_getstring.c b/src/libdw/dwarf_getstring.c
deleted file mode 100644
index 672bb27e..00000000
--- a/src/libdw/dwarf_getstring.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Get string.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include "libdwP.h"
-
-
-const char *
-dwarf_getstring (dbg, offset, lenp)
- Dwarf *dbg;
- Dwarf_Off offset;
- size_t *lenp;
-{
- if (dbg == NULL)
- return NULL;
-
- if (dbg->sectiondata[IDX_debug_str] == NULL
- || offset >= dbg->sectiondata[IDX_debug_str]->d_size)
- {
- no_string:
- __libdw_seterrno (DWARF_E_NO_STRING);
- return NULL;
- }
-
- const char *result = ((const char *) dbg->sectiondata[IDX_debug_str]->d_buf
- + offset);
- const char *endp = memchr (result, '\0',
- dbg->sectiondata[IDX_debug_str]->d_size - offset);
- if (endp == NULL)
- goto no_string;
-
- if (lenp != NULL)
- *lenp = endp - result;
-
- return result;
-}
diff --git a/src/libdw/dwarf_hasattr.c b/src/libdw/dwarf_hasattr.c
deleted file mode 100644
index 812c09bc..00000000
--- a/src/libdw/dwarf_hasattr.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/* Check whether given DIE has specific attribute.
- Copyright (C) 2003, 2005, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_hasattr (die, search_name)
- Dwarf_Die *die;
- unsigned int search_name;
-{
- if (die == NULL)
- return 0;
-
- /* Find the abbreviation entry. */
- Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, NULL);
- if (unlikely (abbrevp == DWARF_END_ABBREV))
- {
- invalid_dwarf:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return 0;
- }
-
- Dwarf *dbg = die->cu->dbg;
-
- /* Search the name attribute. */
- unsigned char *const endp
- = ((unsigned char *) dbg->sectiondata[IDX_debug_abbrev]->d_buf
- + dbg->sectiondata[IDX_debug_abbrev]->d_size);
-
- const unsigned char *attrp = abbrevp->attrp;
- while (1)
- {
- /* Are we still in bounds? This test needs to be refined. */
- if (unlikely (attrp >= endp))
- goto invalid_dwarf;
-
- /* Get attribute name and form. */
- unsigned int attr_name;
- get_uleb128 (attr_name, attrp, endp);
- unsigned int attr_form;
- if (unlikely (attrp >= endp))
- goto invalid_dwarf;
- get_uleb128 (attr_form, attrp, endp);
-
- /* We can stop if we found the attribute with value zero. */
- if (attr_name == 0 || attr_form == 0)
- return 0;
-
- if (attr_name == search_name)
- return 1;
- }
-}
-INTDEF (dwarf_hasattr)
diff --git a/src/libdw/dwarf_hasattr_integrate.c b/src/libdw/dwarf_hasattr_integrate.c
deleted file mode 100644
index 2d5348cf..00000000
--- a/src/libdw/dwarf_hasattr_integrate.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Check whether DIE has specific attribute, integrating DW_AT_abstract_origin.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-int
-dwarf_hasattr_integrate (Dwarf_Die *die, unsigned int search_name)
-{
- Dwarf_Die die_mem;
-
- do
- {
- if (INTUSE(dwarf_hasattr) (die, search_name))
- return 1;
-
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = INTUSE(dwarf_attr) (die, DW_AT_abstract_origin,
- &attr_mem);
- if (attr == NULL)
- attr = INTUSE(dwarf_attr) (die, DW_AT_specification, &attr_mem);
- if (attr == NULL)
- break;
-
- die = INTUSE(dwarf_formref_die) (attr, &die_mem);
- }
- while (die != NULL);
-
- return 0;
-}
diff --git a/src/libdw/dwarf_haschildren.c b/src/libdw/dwarf_haschildren.c
deleted file mode 100644
index d0ce51ea..00000000
--- a/src/libdw/dwarf_haschildren.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Return string associated with given attribute.
- Copyright (C) 2003, 2005, 2008, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <string.h>
-
-
-int
-dwarf_haschildren (die)
- Dwarf_Die *die;
-{
- /* Find the abbreviation entry. */
- Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, NULL);
- if (unlikely (abbrevp == DWARF_END_ABBREV))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- return abbrevp->has_children;
-}
-INTDEF (dwarf_haschildren)
diff --git a/src/libdw/dwarf_hasform.c b/src/libdw/dwarf_hasform.c
deleted file mode 100644
index a95ca9ea..00000000
--- a/src/libdw/dwarf_hasform.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Check whether given attribute has specific form.
- Copyright (C) 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_hasform (attr, search_form)
- Dwarf_Attribute *attr;
- unsigned int search_form;
-{
- if (attr == NULL)
- return 0;
-
- return attr->form == search_form;
-}
diff --git a/src/libdw/dwarf_haspc.c b/src/libdw/dwarf_haspc.c
deleted file mode 100644
index 47e2b055..00000000
--- a/src/libdw/dwarf_haspc.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Determine whether a DIE covers a PC address.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <dwarf.h>
-
-
-int
-dwarf_haspc (Dwarf_Die *die, Dwarf_Addr pc)
-{
- if (die == NULL)
- return -1;
-
- Dwarf_Addr base;
- Dwarf_Addr begin;
- Dwarf_Addr end;
- ptrdiff_t offset = 0;
- while ((offset = INTUSE(dwarf_ranges) (die, offset, &base,
- &begin, &end)) > 0)
- if (pc >= begin && pc < end)
- return 1;
-
- return offset;
-}
-INTDEF (dwarf_haspc)
diff --git a/src/libdw/dwarf_highpc.c b/src/libdw/dwarf_highpc.c
deleted file mode 100644
index 8bf93f03..00000000
--- a/src/libdw/dwarf_highpc.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Return high PC attribute of DIE.
- Copyright (C) 2003, 2005, 2012 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_highpc (die, return_addr)
- Dwarf_Die *die;
- Dwarf_Addr *return_addr;
-{
- Dwarf_Attribute attr_high_mem;
- Dwarf_Attribute *attr_high = INTUSE(dwarf_attr) (die, DW_AT_high_pc,
- &attr_high_mem);
- if (attr_high == NULL)
- return -1;
-
- if (attr_high->form == DW_FORM_addr)
- return INTUSE(dwarf_formaddr) (attr_high, return_addr);
-
- /* DWARF 4 allows high_pc to be a constant offset from low_pc. */
- Dwarf_Attribute attr_low_mem;
- if (INTUSE(dwarf_formaddr) (INTUSE(dwarf_attr) (die, DW_AT_low_pc,
- &attr_low_mem),
- return_addr) == 0)
- {
- Dwarf_Word uval;
- if (INTUSE(dwarf_formudata) (attr_high, &uval) == 0)
- {
- *return_addr += uval;
- return 0;
- }
- __libdw_seterrno (DWARF_E_NO_ADDR);
- }
- return -1;
-}
-INTDEF(dwarf_highpc)
diff --git a/src/libdw/dwarf_lineaddr.c b/src/libdw/dwarf_lineaddr.c
deleted file mode 100644
index 4e1952d3..00000000
--- a/src/libdw/dwarf_lineaddr.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return line address.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_lineaddr (Dwarf_Line *line, Dwarf_Addr *addrp)
-{
- if (line == NULL)
- return -1;
-
- *addrp = line->addr;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_linebeginstatement.c b/src/libdw/dwarf_linebeginstatement.c
deleted file mode 100644
index 4854c56b..00000000
--- a/src/libdw/dwarf_linebeginstatement.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return true if record is for beginning of a statement.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_linebeginstatement (Dwarf_Line *line, bool *flagp)
-{
- if (line == NULL)
- return -1;
-
- *flagp = line->is_stmt;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_lineblock.c b/src/libdw/dwarf_lineblock.c
deleted file mode 100644
index e3c7f41a..00000000
--- a/src/libdw/dwarf_lineblock.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return true if record is for beginning of a basic block.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_lineblock (Dwarf_Line *line, bool *flagp)
-{
- if (line == NULL)
- return -1;
-
- *flagp = line->basic_block;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_linecol.c b/src/libdw/dwarf_linecol.c
deleted file mode 100644
index c667b1b4..00000000
--- a/src/libdw/dwarf_linecol.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return column in line.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_linecol (Dwarf_Line *line, int *colp)
-{
- if (line == NULL)
- return -1;
-
- *colp = line->column;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_linediscriminator.c b/src/libdw/dwarf_linediscriminator.c
deleted file mode 100644
index 552205a7..00000000
--- a/src/libdw/dwarf_linediscriminator.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Return code path discriminator in line record.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_linediscriminator (Dwarf_Line *line, unsigned int *discp)
-{
- if (line == NULL)
- return -1;
-
- *discp = line->discriminator;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_lineendsequence.c b/src/libdw/dwarf_lineendsequence.c
deleted file mode 100644
index 61bde935..00000000
--- a/src/libdw/dwarf_lineendsequence.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return true if record is for end of sequence.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_lineendsequence (Dwarf_Line *line, bool *flagp)
-{
- if (line == NULL)
- return -1;
-
- *flagp = line->end_sequence;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_lineepiloguebegin.c b/src/libdw/dwarf_lineepiloguebegin.c
deleted file mode 100644
index b9147872..00000000
--- a/src/libdw/dwarf_lineepiloguebegin.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return true if record is for beginning of epilogue.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_lineepiloguebegin (Dwarf_Line *line, bool *flagp)
-{
- if (line == NULL)
- return -1;
-
- *flagp = line->epilogue_begin;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_lineisa.c b/src/libdw/dwarf_lineisa.c
deleted file mode 100644
index 30181fc5..00000000
--- a/src/libdw/dwarf_lineisa.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Return ISA in line.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_lineisa (Dwarf_Line *line, unsigned int *isap)
-{
- if (line == NULL)
- return -1;
-
- *isap = line->isa;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_lineno.c b/src/libdw/dwarf_lineno.c
deleted file mode 100644
index 009999c2..00000000
--- a/src/libdw/dwarf_lineno.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return line number.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_lineno (Dwarf_Line *line, int *linep)
-{
- if (line == NULL)
- return -1;
-
- *linep = line->line;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_lineop_index.c b/src/libdw/dwarf_lineop_index.c
deleted file mode 100644
index 9ea4ef4d..00000000
--- a/src/libdw/dwarf_lineop_index.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Return line VLIW operation index.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_lineop_index (Dwarf_Line *line, unsigned int *idxp)
-{
- if (line == NULL)
- return -1;
-
- *idxp = line->op_index;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_lineprologueend.c b/src/libdw/dwarf_lineprologueend.c
deleted file mode 100644
index 6ba8be2f..00000000
--- a/src/libdw/dwarf_lineprologueend.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return true if record is for end of prologue.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_lineprologueend (Dwarf_Line *line, bool *flagp)
-{
- if (line == NULL)
- return -1;
-
- *flagp = line->prologue_end;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_linesrc.c b/src/libdw/dwarf_linesrc.c
deleted file mode 100644
index 27b59903..00000000
--- a/src/libdw/dwarf_linesrc.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Find line information for address.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-const char *
-dwarf_linesrc (Dwarf_Line *line, Dwarf_Word *mtime, Dwarf_Word *length)
-{
- if (line == NULL)
- return NULL;
-
- if (line->file >= line->files->nfiles)
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- if (mtime != NULL)
- *mtime = line->files->info[line->file].mtime;
-
- if (length != NULL)
- *length = line->files->info[line->file].length;
-
- return line->files->info[line->file].name;
-}
diff --git a/src/libdw/dwarf_lowpc.c b/src/libdw/dwarf_lowpc.c
deleted file mode 100644
index 4677aed8..00000000
--- a/src/libdw/dwarf_lowpc.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Return low PC attribute of DIE.
- Copyright (C) 2003, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_lowpc (die, return_addr)
- Dwarf_Die *die;
- Dwarf_Addr *return_addr;
-{
- Dwarf_Attribute attr_mem;
-
- return INTUSE(dwarf_formaddr) (INTUSE(dwarf_attr) (die, DW_AT_low_pc,
- &attr_mem),
- return_addr);
-}
-INTDEF(dwarf_lowpc)
diff --git a/src/libdw/dwarf_macro_getparamcnt.c b/src/libdw/dwarf_macro_getparamcnt.c
deleted file mode 100644
index e218eb1d..00000000
--- a/src/libdw/dwarf_macro_getparamcnt.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Return number of parameters of a macro.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-int
-dwarf_macro_getparamcnt (Dwarf_Macro *macro, size_t *paramcntp)
-{
- if (macro == NULL)
- return -1;
-
- *paramcntp = libdw_macro_nforms (macro);
- return 0;
-}
diff --git a/src/libdw/dwarf_macro_getsrcfiles.c b/src/libdw/dwarf_macro_getsrcfiles.c
deleted file mode 100644
index cc190437..00000000
--- a/src/libdw/dwarf_macro_getsrcfiles.c
+++ /dev/null
@@ -1,88 +0,0 @@
-/* Find line information for a given macro.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-int
-dwarf_macro_getsrcfiles (Dwarf *dbg, Dwarf_Macro *macro,
- Dwarf_Files **files, size_t *nfiles)
-{
- if (macro == NULL)
- return -1;
-
- Dwarf_Macro_Op_Table *const table = macro->table;
- if (table->files == NULL)
- {
- Dwarf_Off line_offset = table->line_offset;
- if (line_offset == (Dwarf_Off) -1)
- {
- *files = NULL;
- *nfiles = 0;
- return 0;
- }
-
- /* If TABLE->comp_dir is NULL that could mean any of the
- following:
-
- - The macro unit is not bound to a CU. It's an auxiliary
- unit used purely for import from other units. In that case
- there's actually no COMP_DIR value that we could use.
-
- - The macro unit is bound to a CU, but there's no
- DW_AT_comp_dir attribute at the CU DIE.
-
- - The macro unit is bound to a CU, but we don't know that,
- likely because its iteration was requested through
- dwarf_getmacros_off interface. This might be legitimate if
- one macro unit imports another CU's macro unit, but that is
- unlikely to happen in practice. Most probably this is not
- legitimate use of the interfaces.
-
- So when the interfaces are used correctly, COMP_DIR value is
- always right. That means that we can cache the parsed
- .debug_line unit without fear that later on someone requests
- the same unit through dwarf_getsrcfiles, and the file names
- will be broken. */
-
- if (__libdw_getsrclines (dbg, line_offset, table->comp_dir,
- table->is_64bit ? 8 : 4,
- NULL, &table->files) < 0)
- table->files = (void *) -1;
- }
-
- if (table->files == (void *) -1)
- return -1;
-
- *files = table->files;
- *nfiles = table->files->nfiles;
- return 0;
-}
diff --git a/src/libdw/dwarf_macro_opcode.c b/src/libdw/dwarf_macro_opcode.c
deleted file mode 100644
index 8607777f..00000000
--- a/src/libdw/dwarf_macro_opcode.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return macro opcode.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_macro_opcode (Dwarf_Macro *macro, unsigned int *opcodep)
-{
- if (macro == NULL)
- return -1;
-
- *opcodep = macro->opcode;
-
- return 0;
-}
diff --git a/src/libdw/dwarf_macro_param.c b/src/libdw/dwarf_macro_param.c
deleted file mode 100644
index bd846a7f..00000000
--- a/src/libdw/dwarf_macro_param.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Return a given parameter of a macro.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-int
-dwarf_macro_param (Dwarf_Macro *macro, size_t idx, Dwarf_Attribute *ret)
-{
- if (macro == NULL)
- return -1;
-
- if (idx >= libdw_macro_nforms (macro))
- return -1;
-
- *ret = macro->attributes[idx];
- return 0;
-}
diff --git a/src/libdw/dwarf_macro_param1.c b/src/libdw/dwarf_macro_param1.c
deleted file mode 100644
index 87ce0035..00000000
--- a/src/libdw/dwarf_macro_param1.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Return first macro parameter.
- Copyright (C) 2005, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_macro_param1 (Dwarf_Macro *macro, Dwarf_Word *paramp)
-{
- if (macro == NULL)
- return -1;
-
- Dwarf_Attribute param;
- if (dwarf_macro_param (macro, 0, &param) != 0)
- return -1;
-
- return dwarf_formudata (&param, paramp);
-}
diff --git a/src/libdw/dwarf_macro_param2.c b/src/libdw/dwarf_macro_param2.c
deleted file mode 100644
index cc902c99..00000000
--- a/src/libdw/dwarf_macro_param2.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Return second macro parameter.
- Copyright (C) 2005, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_macro_param2 (Dwarf_Macro *macro, Dwarf_Word *paramp, const char **strp)
-{
- if (macro == NULL)
- return -1;
-
- Dwarf_Attribute param;
- if (dwarf_macro_param (macro, 1, &param) != 0)
- return -1;
-
- if (param.form == DW_FORM_string
- || param.form == DW_FORM_strp)
- {
- *strp = dwarf_formstring (&param);
- return 0;
- }
- else
- return dwarf_formudata (&param, paramp);
-}
diff --git a/src/libdw/dwarf_next_cfi.c b/src/libdw/dwarf_next_cfi.c
deleted file mode 100644
index b5af49e3..00000000
--- a/src/libdw/dwarf_next_cfi.c
+++ /dev/null
@@ -1,246 +0,0 @@
-/* Advance to next CFI entry.
- Copyright (C) 2009-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-#include "encoded-value.h"
-
-#include <string.h>
-
-
-int
-dwarf_next_cfi (e_ident, data, eh_frame_p, off, next_off, entry)
- const unsigned char e_ident[];
- Elf_Data *data;
- bool eh_frame_p;
- Dwarf_Off off;
- Dwarf_Off *next_off;
- Dwarf_CFI_Entry *entry;
-{
- /* Dummy struct for memory-access.h macros. */
- BYTE_ORDER_DUMMY (dw, e_ident);
-
- /* If we reached the end before don't do anything. */
- if (off == (Dwarf_Off) -1l
- /* Make sure there is enough space in the .debug_frame section
- for at least the initial word. We cannot test the rest since
- we don't know yet whether this is a 64-bit object or not. */
- || unlikely (off + 4 >= data->d_size))
- {
- *next_off = (Dwarf_Off) -1l;
- return 1;
- }
-
- /* This points into the .debug_frame section at the start of the entry. */
- const uint8_t *bytes = data->d_buf + off;
- const uint8_t *limit = data->d_buf + data->d_size;
-
- /* The format of a CFI entry is described in DWARF3 6.4.1:
- */
-
- uint64_t length = read_4ubyte_unaligned_inc (&dw, bytes);
- size_t offset_size = 4;
- if (length == DWARF3_LENGTH_64_BIT)
- {
- /* This is the 64-bit DWARF format. */
- offset_size = 8;
- if (unlikely (limit - bytes < 8))
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
- length = read_8ubyte_unaligned_inc (&dw, bytes);
- }
- if (unlikely ((uint64_t) (limit - bytes) < length)
- || unlikely (length < offset_size + 1))
- goto invalid;
-
- /* Now we know how large the entry is. Note the trick in the
- computation. If the offset_size is 4 the '- 4' term undoes the
- '2 *'. If offset_size is 8 this term computes the size of the
- escape value plus the 8 byte offset. */
- *next_off = off + (2 * offset_size - 4) + length;
-
- limit = bytes + length;
-
- const uint8_t *const cie_pointer_start = bytes;
- if (offset_size == 8)
- entry->cie.CIE_id = read_8ubyte_unaligned_inc (&dw, bytes);
- else
- {
- entry->cie.CIE_id = read_4ubyte_unaligned_inc (&dw, bytes);
- /* Canonicalize the 32-bit CIE_ID value to 64 bits. */
- if (!eh_frame_p && entry->cie.CIE_id == DW_CIE_ID_32)
- entry->cie.CIE_id = DW_CIE_ID_64;
- }
- if (eh_frame_p)
- {
- /* Canonicalize the .eh_frame CIE pointer to .debug_frame format. */
- if (entry->cie.CIE_id == 0)
- entry->cie.CIE_id = DW_CIE_ID_64;
- else
- {
- /* In .eh_frame format, a CIE pointer is the distance from where
- it appears back to the beginning of the CIE. */
- ptrdiff_t pos = cie_pointer_start - (const uint8_t *) data->d_buf;
- if (unlikely (entry->cie.CIE_id > (Dwarf_Off) pos)
- || unlikely (pos <= (ptrdiff_t) offset_size))
- goto invalid;
- entry->cie.CIE_id = pos - entry->cie.CIE_id;
- }
- }
-
- if (entry->cie.CIE_id == DW_CIE_ID_64)
- {
- /* Read the version stamp. Always an 8-bit value. */
- uint8_t version = *bytes++;
-
- if (version != 1 && (unlikely (version < 3) || unlikely (version > 4)))
- goto invalid;
-
- entry->cie.augmentation = (const char *) bytes;
-
- bytes = memchr (bytes, '\0', limit - bytes);
- if (unlikely (bytes == NULL))
- goto invalid;
- ++bytes;
-
- /* The address size for CFI is implicit in the ELF class. */
- uint_fast8_t address_size = e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
- uint_fast8_t segment_size = 0;
- if (version >= 4)
- {
- if (unlikely (limit - bytes < 5))
- goto invalid;
- /* XXX We don't actually support address_size not matching the class.
- To do so, we'd have to return it here so that intern_new_cie
- could use it choose a specific fde_encoding. */
- if (unlikely (*bytes != address_size))
- {
- __libdw_seterrno (DWARF_E_VERSION);
- return -1;
- }
- address_size = *bytes++;
- segment_size = *bytes++;
- /* We don't actually support segment selectors. We'd have to
- roll this into the fde_encoding bits or something. */
- if (unlikely (segment_size != 0))
- {
- __libdw_seterrno (DWARF_E_VERSION);
- return -1;
- }
- }
-
- const char *ap = entry->cie.augmentation;
-
- /* g++ v2 "eh" has pointer immediately following augmentation string,
- so it must be handled first. */
- if (unlikely (ap[0] == 'e' && ap[1] == 'h'))
- {
- ap += 2;
- bytes += address_size;
- }
-
- if (bytes >= limit)
- goto invalid;
- get_uleb128 (entry->cie.code_alignment_factor, bytes, limit);
-
- if (bytes >= limit)
- goto invalid;
- get_sleb128 (entry->cie.data_alignment_factor, bytes, limit);
-
- if (bytes >= limit)
- goto invalid;
-
- if (version >= 3) /* DWARF 3+ */
- get_uleb128 (entry->cie.return_address_register, bytes, limit);
- else /* DWARF 2 */
- entry->cie.return_address_register = *bytes++;
-
- /* If we have sized augmentation data,
- we don't need to grok it all. */
- entry->cie.fde_augmentation_data_size = 0;
- bool sized_augmentation = *ap == 'z';
- if (sized_augmentation)
- {
- if (bytes >= limit)
- goto invalid;
- get_uleb128 (entry->cie.augmentation_data_size, bytes, limit);
- if ((Dwarf_Word) (limit - bytes) < entry->cie.augmentation_data_size)
- goto invalid;
- entry->cie.augmentation_data = bytes;
- bytes += entry->cie.augmentation_data_size;
- }
- else
- {
- entry->cie.augmentation_data = bytes;
-
- for (; *ap != '\0'; ++ap)
- {
- uint8_t encoding;
- switch (*ap)
- {
- case 'L': /* Skip LSDA pointer encoding byte. */
- case 'R': /* Skip FDE address encoding byte. */
- encoding = *bytes++;
- entry->cie.fde_augmentation_data_size
- += encoded_value_size (data, e_ident, encoding, NULL);
- continue;
- case 'P': /* Skip encoded personality routine pointer. */
- encoding = *bytes++;
- bytes += encoded_value_size (data, e_ident, encoding, bytes);
- continue;
- case 'S': /* Skip signal-frame flag. */
- continue;
- default:
- /* Unknown augmentation string. initial_instructions might
- actually start with some augmentation data. */
- break;
- }
- break;
- }
- entry->cie.augmentation_data_size
- = bytes - entry->cie.augmentation_data;
- }
-
- entry->cie.initial_instructions = bytes;
- entry->cie.initial_instructions_end = limit;
- }
- else
- {
- entry->fde.start = bytes;
- entry->fde.end = limit;
- }
-
- return 0;
-}
-INTDEF (dwarf_next_cfi)
diff --git a/src/libdw/dwarf_nextcu.c b/src/libdw/dwarf_nextcu.c
deleted file mode 100644
index 875d8694..00000000
--- a/src/libdw/dwarf_nextcu.c
+++ /dev/null
@@ -1,199 +0,0 @@
-/* Advance to next CU header.
- Copyright (C) 2002-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libdwP.h>
-#include <dwarf.h>
-
-
-int
-dwarf_next_unit (dwarf, off, next_off, header_sizep, versionp, abbrev_offsetp,
- address_sizep, offset_sizep, type_signaturep, type_offsetp)
- Dwarf *dwarf;
- Dwarf_Off off;
- Dwarf_Off *next_off;
- size_t *header_sizep;
- Dwarf_Half *versionp;
- Dwarf_Off *abbrev_offsetp;
- uint8_t *address_sizep;
- uint8_t *offset_sizep;
- uint64_t *type_signaturep;
- Dwarf_Off *type_offsetp;
-{
- const bool debug_types = type_signaturep != NULL;
- const size_t sec_idx = debug_types ? IDX_debug_types : IDX_debug_info;
-
- /* Maybe there has been an error before. */
- if (dwarf == NULL)
- return -1;
-
- /* If we reached the end before don't do anything. */
- if (off == (Dwarf_Off) -1l
- || unlikely (dwarf->sectiondata[sec_idx] == NULL)
- /* Make sure there is enough space in the .debug_info section
- for at least the initial word. We cannot test the rest since
- we don't know yet whether this is a 64-bit object or not. */
- || unlikely (off + 4 >= dwarf->sectiondata[sec_idx]->d_size))
- {
- *next_off = (Dwarf_Off) -1l;
- return 1;
- }
-
- /* This points into the .debug_info section to the beginning of the
- CU entry. */
- const unsigned char *data = dwarf->sectiondata[sec_idx]->d_buf;
- const unsigned char *bytes = data + off;
-
- /* The format of the CU header is described in dwarf2p1 7.5.1:
-
- 1. A 4-byte or 12-byte unsigned integer representing the length
- of the .debug_info contribution for that compilation unit, not
- including the length field itself. In the 32-bit DWARF format,
- this is a 4-byte unsigned integer (which must be less than
- 0xfffffff0); in the 64-bit DWARF format, this consists of the
- 4-byte value 0xffffffff followed by an 8-byte unsigned integer
- that gives the actual length (see Section 7.2.2).
-
- 2. A 2-byte unsigned integer representing the version of the
- DWARF information for that compilation unit. For DWARF Version
- 2.1, the value in this field is 2.
-
- 3. A 4-byte or 8-byte unsigned offset into the .debug_abbrev
- section. This offset associates the compilation unit with a
- particular set of debugging information entry abbreviations. In
- the 32-bit DWARF format, this is a 4-byte unsigned length; in
- the 64-bit DWARF format, this is an 8-byte unsigned length (see
- Section 7.4).
-
- 4. A 1-byte unsigned integer representing the size in bytes of
- an address on the target architecture. If the system uses
- segmented addressing, this value represents the size of the
- offset portion of an address. */
- uint64_t length = read_4ubyte_unaligned_inc (dwarf, bytes);
- size_t offset_size = 4;
- /* Lengths of 0xfffffff0 - 0xffffffff are escape codes. Oxffffffff is
- used to indicate that 64-bit dwarf information is being used, the
- other values are currently reserved. */
- if (length == DWARF3_LENGTH_64_BIT)
- offset_size = 8;
- else if (unlikely (length >= DWARF3_LENGTH_MIN_ESCAPE_CODE
- && length <= DWARF3_LENGTH_MAX_ESCAPE_CODE))
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- /* Now we know how large the header is. */
- if (unlikely (DIE_OFFSET_FROM_CU_OFFSET (off, offset_size, debug_types)
- >= dwarf->sectiondata[sec_idx]->d_size))
- {
- *next_off = -1;
- return 1;
- }
-
- if (length == DWARF3_LENGTH_64_BIT)
- /* This is a 64-bit DWARF format. */
- length = read_8ubyte_unaligned_inc (dwarf, bytes);
-
- /* Read the version stamp. Always a 16-bit value. */
- uint_fast16_t version = read_2ubyte_unaligned_inc (dwarf, bytes);
-
- /* Get offset in .debug_abbrev. Note that the size of the entry
- depends on whether this is a 32-bit or 64-bit DWARF definition. */
- uint64_t abbrev_offset;
- if (__libdw_read_offset_inc (dwarf, sec_idx, &bytes, offset_size,
- &abbrev_offset, IDX_debug_abbrev, 0))
- return -1;
-
- /* The address size. Always an 8-bit value. */
- uint8_t address_size = *bytes++;
-
- if (debug_types)
- {
- uint64_t type_sig8 = read_8ubyte_unaligned_inc (dwarf, bytes);
-
- Dwarf_Off type_offset;
- if (__libdw_read_offset_inc (dwarf, sec_idx, &bytes, offset_size,
- &type_offset, sec_idx, 0))
- return -1;
-
- /* Validate that the TYPE_OFFSET points past the header. */
- if (unlikely (type_offset < (size_t) (bytes - (data + off))))
- goto invalid;
-
- *type_signaturep = type_sig8;
- if (type_offsetp != NULL)
- *type_offsetp = type_offset;
- }
-
- /* Store the header length. */
- if (header_sizep != NULL)
- *header_sizep = bytes - (data + off);
-
- if (versionp != NULL)
- *versionp = version;
-
- if (abbrev_offsetp != NULL)
- *abbrev_offsetp = abbrev_offset;
-
- if (address_sizep != NULL)
- *address_sizep = address_size;
-
- /* Store the offset size. */
- if (offset_sizep != NULL)
- *offset_sizep = offset_size;
-
- /* See definition of DIE_OFFSET_FROM_CU_OFFSET macro
- for an explanation of the trick in this expression. */
- *next_off = off + 2 * offset_size - 4 + length;
-
- return 0;
-}
-INTDEF(dwarf_next_unit)
-
-int
-dwarf_nextcu (dwarf, off, next_off, header_sizep, abbrev_offsetp,
- address_sizep, offset_sizep)
- Dwarf *dwarf;
- Dwarf_Off off;
- Dwarf_Off *next_off;
- size_t *header_sizep;
- Dwarf_Off *abbrev_offsetp;
- uint8_t *address_sizep;
- uint8_t *offset_sizep;
-{
- return INTUSE(dwarf_next_unit) (dwarf, off, next_off, header_sizep, NULL,
- abbrev_offsetp, address_sizep, offset_sizep,
- NULL, NULL);
-}
-INTDEF(dwarf_nextcu)
diff --git a/src/libdw/dwarf_offabbrev.c b/src/libdw/dwarf_offabbrev.c
deleted file mode 100644
index 27cdad64..00000000
--- a/src/libdw/dwarf_offabbrev.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Get abbreviation at given offset.
- Copyright (C) 2004, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-int
-dwarf_offabbrev (Dwarf *dbg, Dwarf_Off offset, size_t *lengthp,
- Dwarf_Abbrev *abbrevp)
-{
- if (dbg == NULL)
- return -1;
-
- Dwarf_Abbrev *abbrev = __libdw_getabbrev (dbg, NULL, offset, lengthp,
- abbrevp);
-
- if (abbrev == NULL)
- return -1;
-
- return abbrev == DWARF_END_ABBREV ? 1 : 0;
-}
diff --git a/src/libdw/dwarf_offdie.c b/src/libdw/dwarf_offdie.c
deleted file mode 100644
index b5dd405d..00000000
--- a/src/libdw/dwarf_offdie.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* Return DIE at given offset.
- Copyright (C) 2002-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include "libdwP.h"
-
-
-Dwarf_Die *
-internal_function
-__libdw_offdie (Dwarf *dbg, Dwarf_Off offset, Dwarf_Die *result,
- bool debug_types)
-{
- if (dbg == NULL)
- return NULL;
-
- Elf_Data *const data = dbg->sectiondata[debug_types ? IDX_debug_types
- : IDX_debug_info];
- if (offset >= data->d_size)
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- /* Clear the entire DIE structure. This signals we have not yet
- determined any of the information. */
- memset (result, '\0', sizeof (Dwarf_Die));
-
- result->addr = (char *) data->d_buf + offset;
-
- /* Get the CU. */
- result->cu = __libdw_findcu (dbg, offset, debug_types);
- if (result->cu == NULL)
- {
- /* This should never happen. The input file is malformed. */
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- result = NULL;
- }
-
- return result;
-}
-
-
-Dwarf_Die *
-dwarf_offdie (dbg, offset, result)
- Dwarf *dbg;
- Dwarf_Off offset;
- Dwarf_Die *result;
-{
- return __libdw_offdie (dbg, offset, result, false);
-}
-INTDEF(dwarf_offdie)
-
-Dwarf_Die *
-dwarf_offdie_types (dbg, offset, result)
- Dwarf *dbg;
- Dwarf_Off offset;
- Dwarf_Die *result;
-{
- return __libdw_offdie (dbg, offset, result, true);
-}
diff --git a/src/libdw/dwarf_onearange.c b/src/libdw/dwarf_onearange.c
deleted file mode 100644
index de49f6c1..00000000
--- a/src/libdw/dwarf_onearange.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Return one of the address range entries.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-Dwarf_Arange *
-dwarf_onearange (Dwarf_Aranges *aranges, size_t idx)
-{
- if (aranges == NULL)
- return NULL;
-
- if (idx >= aranges->naranges)
- {
- __libdw_seterrno (DWARF_E_INVALID_ARANGE_IDX);
- return NULL;
- }
-
- return &aranges->info[idx];
-}
diff --git a/src/libdw/dwarf_onesrcline.c b/src/libdw/dwarf_onesrcline.c
deleted file mode 100644
index 5d3c3ded..00000000
--- a/src/libdw/dwarf_onesrcline.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Return one of the sources lines of a CU.
- Copyright (C) 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-Dwarf_Line *
-dwarf_onesrcline (Dwarf_Lines *lines, size_t idx)
-{
- if (lines == NULL)
- return NULL;
-
- if (idx >= lines->nlines)
- {
- __libdw_seterrno (DWARF_E_INVALID_LINE_IDX);
- return NULL;
- }
-
- return &lines->info[idx];
-}
diff --git a/src/libdw/dwarf_peel_type.c b/src/libdw/dwarf_peel_type.c
deleted file mode 100644
index a110bc54..00000000
--- a/src/libdw/dwarf_peel_type.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Peel type aliases and qualifier tags from a type DIE.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <dwarf.h>
-#include <string.h>
-
-
-int
-dwarf_peel_type (die, result)
- Dwarf_Die *die;
- Dwarf_Die *result;
-{
- int tag;
-
- /* Ignore previous errors. */
- if (die == NULL)
- return -1;
-
- *result = *die;
- tag = INTUSE (dwarf_tag) (result);
- while (tag == DW_TAG_typedef
- || tag == DW_TAG_const_type
- || tag == DW_TAG_volatile_type
- || tag == DW_TAG_restrict_type)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = INTUSE (dwarf_attr_integrate) (die, DW_AT_type,
- &attr_mem);
- if (attr == NULL)
- return 1;
-
- result = INTUSE (dwarf_formref_die) (attr, result);
- if (result == NULL)
- return -1;
-
- tag = INTUSE (dwarf_tag) (result);
- }
-
- if (tag == DW_TAG_invalid)
- return -1;
-
- return 0;
-}
-INTDEF(dwarf_peel_type)
diff --git a/src/libdw/dwarf_ranges.c b/src/libdw/dwarf_ranges.c
deleted file mode 100644
index d9b7293d..00000000
--- a/src/libdw/dwarf_ranges.c
+++ /dev/null
@@ -1,190 +0,0 @@
-/* Enumerate the PC ranges covered by a DIE.
- Copyright (C) 2005, 2007, 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <dwarf.h>
-#include <assert.h>
-
-/* Read up begin/end pair and increment read pointer.
- - If it's normal range record, set up `*beginp' and `*endp' and return 0.
- - If it's base address selection record, set up `*basep' and return 1.
- - If it's end of rangelist, don't set anything and return 2
- - If an error occurs, don't set anything and return -1. */
-internal_function int
-__libdw_read_begin_end_pair_inc (Dwarf *dbg, int sec_index,
- unsigned char **addrp, int width,
- Dwarf_Addr *beginp, Dwarf_Addr *endp,
- Dwarf_Addr *basep)
-{
- Dwarf_Addr escape = (width == 8 ? (Elf64_Addr) -1
- : (Elf64_Addr) (Elf32_Addr) -1);
- Dwarf_Addr begin;
- Dwarf_Addr end;
-
- unsigned char *addr = *addrp;
- bool begin_relocated = READ_AND_RELOCATE (__libdw_relocate_address, begin);
- bool end_relocated = READ_AND_RELOCATE (__libdw_relocate_address, end);
- *addrp = addr;
-
- /* Unrelocated escape for begin means base address selection. */
- if (begin == escape && !begin_relocated)
- {
- if (unlikely (end == escape))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
-
- if (basep != NULL)
- *basep = end;
- return 1;
- }
-
- /* Unrelocated pair of zeroes means end of range list. */
- if (begin == 0 && end == 0 && !begin_relocated && !end_relocated)
- return 2;
-
- /* Don't check for begin_relocated == end_relocated. Serve the data
- to the client even though it may be buggy. */
- *beginp = begin;
- *endp = end;
-
- return 0;
-}
-
-ptrdiff_t
-dwarf_ranges (Dwarf_Die *die, ptrdiff_t offset, Dwarf_Addr *basep,
- Dwarf_Addr *startp, Dwarf_Addr *endp)
-{
- if (die == NULL)
- return -1;
-
- if (offset == 0
- /* Usually there is a single contiguous range. */
- && INTUSE(dwarf_highpc) (die, endp) == 0
- && INTUSE(dwarf_lowpc) (die, startp) == 0)
- /* A offset into .debug_ranges will never be 1, it must be at least a
- multiple of 4. So we can return 1 as a special case value to mark
- there are no ranges to look for on the next call. */
- return 1;
-
- if (offset == 1)
- return 0;
-
- /* We have to look for a noncontiguous range. */
-
- const Elf_Data *d = die->cu->dbg->sectiondata[IDX_debug_ranges];
- if (d == NULL && offset != 0)
- {
- __libdw_seterrno (DWARF_E_NO_DEBUG_RANGES);
- return -1;
- }
-
- unsigned char *readp;
- unsigned char *readendp;
- if (offset == 0)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = INTUSE(dwarf_attr) (die, DW_AT_ranges,
- &attr_mem);
- if (attr == NULL)
- /* No PC attributes in this DIE at all, so an empty range list. */
- return 0;
-
- Dwarf_Word start_offset;
- if ((readp = __libdw_formptr (attr, IDX_debug_ranges,
- DWARF_E_NO_DEBUG_RANGES,
- &readendp, &start_offset)) == NULL)
- return -1;
-
- offset = start_offset;
- assert ((Dwarf_Word) offset == start_offset);
-
- /* Fetch the CU's base address. */
- Dwarf_Die cudie = CUDIE (attr->cu);
-
- /* Find the base address of the compilation unit. It will
- normally be specified by DW_AT_low_pc. In DWARF-3 draft 4,
- the base address could be overridden by DW_AT_entry_pc. It's
- been removed, but GCC emits DW_AT_entry_pc and not DW_AT_lowpc
- for compilation units with discontinuous ranges. */
- if (unlikely (INTUSE(dwarf_lowpc) (&cudie, basep) != 0)
- && INTUSE(dwarf_formaddr) (INTUSE(dwarf_attr) (&cudie,
- DW_AT_entry_pc,
- &attr_mem),
- basep) != 0)
- {
- if (INTUSE(dwarf_errno) () == 0)
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- }
- return -1;
- }
- }
- else
- {
- if (__libdw_offset_in_section (die->cu->dbg,
- IDX_debug_ranges, offset, 1))
- return -1l;
-
- readp = d->d_buf + offset;
- readendp = d->d_buf + d->d_size;
- }
-
- next:
- if (readendp - readp < die->cu->address_size * 2)
- goto invalid;
-
- Dwarf_Addr begin;
- Dwarf_Addr end;
-
- switch (__libdw_read_begin_end_pair_inc (die->cu->dbg, IDX_debug_ranges,
- &readp, die->cu->address_size,
- &begin, &end, basep))
- {
- case 0:
- break;
- case 1:
- goto next;
- case 2:
- return 0;
- default:
- return -1l;
- }
-
- /* We have an address range entry. */
- *startp = *basep + begin;
- *endp = *basep + end;
- return readp - (unsigned char *) d->d_buf;
-}
-INTDEF (dwarf_ranges)
diff --git a/src/libdw/dwarf_setalt.c b/src/libdw/dwarf_setalt.c
deleted file mode 100644
index 9bd566ff..00000000
--- a/src/libdw/dwarf_setalt.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Provides the data referenced by the .gnu_debugaltlink section.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-void
-dwarf_setalt (Dwarf *main, Dwarf *alt)
-{
- main->alt_dwarf = alt;
-}
-INTDEF (dwarf_setalt)
diff --git a/src/libdw/dwarf_siblingof.c b/src/libdw/dwarf_siblingof.c
deleted file mode 100644
index 27830ea4..00000000
--- a/src/libdw/dwarf_siblingof.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/* Return sibling of given DIE.
- Copyright (C) 2003-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <dwarf.h>
-#include <string.h>
-
-
-int
-dwarf_siblingof (die, result)
- Dwarf_Die *die;
- Dwarf_Die *result;
-{
- /* Ignore previous errors. */
- if (die == NULL)
- return -1;
-
- if (result == NULL)
- return -1;
-
- if (result != die)
- result->addr = NULL;
-
- unsigned int level = 0;
-
- /* Copy of the current DIE. */
- Dwarf_Die this_die = *die;
- /* Temporary attributes we create. */
- Dwarf_Attribute sibattr;
- /* Copy of the CU in the request. */
- sibattr.cu = this_die.cu;
- /* That's the address we start looking. */
- unsigned char *addr = this_die.addr;
- /* End of the buffer. */
- unsigned char *endp = sibattr.cu->endp;
-
- /* Search for the beginning of the next die on this level. We
- must not return the dies for children of the given die. */
- do
- {
- /* Find the end of the DIE or the sibling attribute. */
- addr = __libdw_find_attr (&this_die, DW_AT_sibling, &sibattr.code,
- &sibattr.form);
- if (addr != NULL && sibattr.code == DW_AT_sibling)
- {
- Dwarf_Off offset;
- sibattr.valp = addr;
- if (unlikely (__libdw_formref (&sibattr, &offset) != 0))
- /* Something went wrong. */
- return -1;
-
- /* Compute the next address. */
- addr = sibattr.cu->startp + offset;
- }
- else if (unlikely (addr == NULL)
- || unlikely (this_die.abbrev == DWARF_END_ABBREV))
- return -1;
- else if (this_die.abbrev->has_children)
- /* This abbreviation has children. */
- ++level;
-
-
- while (1)
- {
- /* Make sure we are still in range. Some producers might skip
- the trailing NUL bytes. */
- if (addr >= endp)
- return 1;
-
- if (*addr != '\0')
- break;
-
- if (level-- == 0)
- {
- if (result != die)
- result->addr = addr;
- /* No more sibling at all. */
- return 1;
- }
-
- ++addr;
- }
-
- /* Initialize the 'current DIE'. */
- this_die.addr = addr;
- this_die.abbrev = NULL;
- }
- while (level > 0);
-
- /* Maybe we reached the end of the CU. */
- if (addr >= endp)
- return 1;
-
- /* Clear the entire DIE structure. This signals we have not yet
- determined any of the information. */
- memset (result, '\0', sizeof (Dwarf_Die));
-
- /* We have the address. */
- result->addr = addr;
-
- /* Same CU as the parent. */
- result->cu = sibattr.cu;
-
- return 0;
-}
-INTDEF(dwarf_siblingof)
diff --git a/src/libdw/dwarf_sig8_hash.c b/src/libdw/dwarf_sig8_hash.c
deleted file mode 100644
index 043cac78..00000000
--- a/src/libdw/dwarf_sig8_hash.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Implementation of hash table for DWARF .debug_types section content.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define NO_UNDEF
-#include "dwarf_sig8_hash.h"
-#undef NO_UNDEF
-
-/* This is defined in dwarf_abbrev_hash.c, we can just use it here. */
-#define next_prime __libdwarf_next_prime
-extern size_t next_prime (size_t) attribute_hidden;
-
-#include <dynamicsizehash.c>
diff --git a/src/libdw/dwarf_sig8_hash.h b/src/libdw/dwarf_sig8_hash.h
deleted file mode 100644
index 705ffbcd..00000000
--- a/src/libdw/dwarf_sig8_hash.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Hash table for DWARF .debug_types section content.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _DWARF_SIG8_HASH_H
-#define _DWARF_SIG8_HASH_H 1
-
-#define NAME Dwarf_Sig8_Hash
-#define TYPE struct Dwarf_CU *
-#define COMPARE(a, b) (0)
-
-#include <dynamicsizehash.h>
-
-#endif /* dwarf_sig8_hash.h */
diff --git a/src/libdw/dwarf_srclang.c b/src/libdw/dwarf_srclang.c
deleted file mode 100644
index 6cc06ffb..00000000
--- a/src/libdw/dwarf_srclang.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Return source language attribute of DIE.
- Copyright (C) 2003-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-int
-dwarf_srclang (die)
- Dwarf_Die *die;
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Word value;
-
- return INTUSE(dwarf_formudata) (INTUSE(dwarf_attr_integrate)
- (die, DW_AT_language, &attr_mem),
- &value) == 0 ? (int) value : -1;
-}
-INTDEF (dwarf_srclang)
-OLD_VERSION (dwarf_srclang, ELFUTILS_0.122)
-NEW_VERSION (dwarf_srclang, ELFUTILS_0.143)
diff --git a/src/libdw/dwarf_tag.c b/src/libdw/dwarf_tag.c
deleted file mode 100644
index 0b1a4b08..00000000
--- a/src/libdw/dwarf_tag.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Return tag of given DIE.
- Copyright (C) 2003-2011, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-
-
-Dwarf_Abbrev *
-internal_function
-__libdw_findabbrev (struct Dwarf_CU *cu, unsigned int code)
-{
- Dwarf_Abbrev *abb;
-
- /* Abbreviation code can never have a value of 0. */
- if (unlikely (code == 0))
- return DWARF_END_ABBREV;
-
- /* See whether the entry is already in the hash table. */
- abb = Dwarf_Abbrev_Hash_find (&cu->abbrev_hash, code, NULL);
- if (abb == NULL)
- while (cu->last_abbrev_offset != (size_t) -1l)
- {
- size_t length;
-
- /* Find the next entry. It gets automatically added to the
- hash table. */
- abb = __libdw_getabbrev (cu->dbg, cu, cu->last_abbrev_offset, &length,
- NULL);
- if (abb == NULL || abb == DWARF_END_ABBREV)
- {
- /* Make sure we do not try to search for it again. */
- cu->last_abbrev_offset = (size_t) -1l;
- return DWARF_END_ABBREV;
- }
-
- cu->last_abbrev_offset += length;
-
- /* Is this the code we are looking for? */
- if (abb->code == code)
- break;
- }
-
- /* This is our second (or third, etc.) call to __libdw_findabbrev
- and the code is invalid. */
- if (unlikely (abb == NULL))
- abb = DWARF_END_ABBREV;
-
- return abb;
-}
-
-
-int
-dwarf_tag (die)
- Dwarf_Die *die;
-{
- /* Find the abbreviation entry. */
- Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, NULL);
- if (unlikely (abbrevp == DWARF_END_ABBREV))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return DW_TAG_invalid;
- }
-
- return abbrevp->tag;
-}
-INTDEF(dwarf_tag)
diff --git a/src/libdw/dwarf_whatattr.c b/src/libdw/dwarf_whatattr.c
deleted file mode 100644
index 8fe5535b..00000000
--- a/src/libdw/dwarf_whatattr.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Return attribute code of given attribute.
- Copyright (C) 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-unsigned int
-dwarf_whatattr (attr)
- Dwarf_Attribute *attr;
-{
- return attr == NULL ? 0 : attr->code;
-}
diff --git a/src/libdw/dwarf_whatform.c b/src/libdw/dwarf_whatform.c
deleted file mode 100644
index 1d0d14b0..00000000
--- a/src/libdw/dwarf_whatform.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Return form code of given attribute.
- Copyright (C) 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include "libdwP.h"
-
-
-unsigned int
-dwarf_whatform (attr)
- Dwarf_Attribute *attr;
-{
- return attr == NULL ? 0 : attr->form;
-}
diff --git a/src/libdw/encoded-value.h b/src/libdw/encoded-value.h
deleted file mode 100644
index ae9a38f9..00000000
--- a/src/libdw/encoded-value.h
+++ /dev/null
@@ -1,197 +0,0 @@
-/* DW_EH_PE_* support for libdw unwinder.
- Copyright (C) 2009-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _ENCODED_VALUE_H
-#define _ENCODED_VALUE_H 1
-
-#include <dwarf.h>
-#include <stdlib.h>
-#include "libdwP.h"
-
-
-static size_t __attribute__ ((unused))
-encoded_value_size (const Elf_Data *data, const unsigned char e_ident[],
- uint8_t encoding, const uint8_t *p)
-{
- if (encoding == DW_EH_PE_omit)
- return 0;
-
- switch (encoding & 0x07)
- {
- case DW_EH_PE_udata2:
- return 2;
- case DW_EH_PE_udata4:
- return 4;
- case DW_EH_PE_udata8:
- return 8;
-
- case DW_EH_PE_absptr:
- return e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
-
- case DW_EH_PE_uleb128:
- if (p != NULL)
- {
- const uint8_t *end = p;
- while (end < (uint8_t *) data->d_buf + data->d_size)
- if (*end++ & 0x80u)
- return end - p;
- }
-
- default:
- abort ();
- return 0;
- }
-}
-
-static inline int __attribute__ ((unused))
-__libdw_cfi_read_address_inc (const Dwarf_CFI *cache,
- const unsigned char **addrp,
- int width, Dwarf_Addr *ret)
-{
- width = width ?: cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8;
-
- if (cache->dbg != NULL)
- return __libdw_read_address_inc (cache->dbg, IDX_debug_frame,
- addrp, width, ret);
-
- /* Only .debug_frame might have relocation to consider.
- Read plain values from .eh_frame data. */
-
- if (width == 4)
- *ret = read_4ubyte_unaligned_inc (cache, *addrp);
- else
- *ret = read_8ubyte_unaligned_inc (cache, *addrp);
- return 0;
-}
-
-static bool __attribute__ ((unused))
-read_encoded_value (const Dwarf_CFI *cache, uint8_t encoding, const uint8_t **p,
- Dwarf_Addr *result)
-{
- *result = 0;
- switch (encoding & 0x70)
- {
- case DW_EH_PE_absptr:
- break;
- case DW_EH_PE_pcrel:
- *result = (cache->frame_vaddr
- + (*p - (const uint8_t *) cache->data->d.d_buf));
- break;
- case DW_EH_PE_textrel:
- // ia64: segrel
- *result = cache->textrel;
- break;
- case DW_EH_PE_datarel:
- // i386: GOTOFF
- // ia64: gprel
- *result = cache->datarel;
- break;
- case DW_EH_PE_funcrel: /* XXX */
- break;
- case DW_EH_PE_aligned:
- {
- const size_t size = encoded_value_size (&cache->data->d, cache->e_ident,
- encoding, *p);
- size_t align = ((cache->frame_vaddr
- + (*p - (const uint8_t *) cache->data->d.d_buf))
- & (size - 1));
- if (align != 0)
- *p += size - align;
- break;
- }
-
- default:
- abort ();
- }
-
- Dwarf_Addr value;
- switch (encoding & 0x0f)
- {
- case DW_EH_PE_udata2:
- value = read_2ubyte_unaligned_inc (cache, *p);
- break;
-
- case DW_EH_PE_sdata2:
- value = read_2sbyte_unaligned_inc (cache, *p);
- break;
-
- case DW_EH_PE_udata4:
- if (__libdw_cfi_read_address_inc (cache, p, 4, &value))
- return true;
- break;
-
- case DW_EH_PE_sdata4:
- if (__libdw_cfi_read_address_inc (cache, p, 4, &value))
- return true;
- value = (Dwarf_Sword) (Elf32_Sword) value; /* Sign-extend. */
- break;
-
- case DW_EH_PE_udata8:
- case DW_EH_PE_sdata8:
- if (__libdw_cfi_read_address_inc (cache, p, 8, &value))
- return true;
- break;
-
- case DW_EH_PE_absptr:
- if (__libdw_cfi_read_address_inc (cache, p, 0, &value))
- return true;
- break;
-
- case DW_EH_PE_uleb128:
- // XXX we trust there is enough data.
- get_uleb128 (value, *p, *p + len_leb128 (Dwarf_Addr));
- break;
-
- case DW_EH_PE_sleb128:
- // XXX we trust there is enough data.
- get_sleb128 (value, *p, *p + len_leb128 (Dwarf_Addr));
- break;
-
- default:
- abort ();
- }
-
- *result += value;
-
- if (encoding & DW_EH_PE_indirect)
- {
- if (unlikely (*result < cache->frame_vaddr))
- return true;
- *result -= cache->frame_vaddr;
- if (unlikely (*result > (cache->data->d.d_size
- - encoded_value_size (NULL, cache->e_ident,
- DW_EH_PE_absptr, NULL))))
- return true;
- const uint8_t *ptr = cache->data->d.d_buf + *result;
- return __libdw_cfi_read_address_inc (cache, &ptr, 0, result);
- }
-
- return false;
-}
-
-#endif /* encoded-value.h */
diff --git a/src/libdw/fde.c b/src/libdw/fde.c
deleted file mode 100644
index 18a522bd..00000000
--- a/src/libdw/fde.c
+++ /dev/null
@@ -1,297 +0,0 @@
-/* FDE reading.
- Copyright (C) 2009-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-#include <search.h>
-#include <stdlib.h>
-
-#include "encoded-value.h"
-
-static int
-compare_fde (const void *a, const void *b)
-{
- const struct dwarf_fde *fde1 = a;
- const struct dwarf_fde *fde2 = b;
-
- /* Find out which of the two arguments is the search value.
- It has end offset 0. */
- if (fde1->end == 0)
- {
- if (fde1->start < fde2->start)
- return -1;
- if (fde1->start >= fde2->end)
- return 1;
- }
- else
- {
- if (fde2->start < fde1->start)
- return 1;
- if (fde2->start >= fde1->end)
- return -1;
- }
-
- return 0;
-}
-
-static struct dwarf_fde *
-intern_fde (Dwarf_CFI *cache, const Dwarf_FDE *entry)
-{
- /* Look up the new entry's CIE. */
- struct dwarf_cie *cie = __libdw_find_cie (cache, entry->CIE_pointer);
- if (cie == NULL)
- return (void *) -1l;
-
- struct dwarf_fde *fde = malloc (sizeof (struct dwarf_fde));
- if (fde == NULL)
- {
- __libdw_seterrno (DWARF_E_NOMEM);
- return NULL;
- }
-
- fde->instructions = entry->start;
- fde->instructions_end = entry->end;
- if (unlikely (read_encoded_value (cache, cie->fde_encoding,
- &fde->instructions, &fde->start))
- || unlikely (read_encoded_value (cache, cie->fde_encoding & 0x0f,
- &fde->instructions, &fde->end)))
- {
- free (fde);
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
- fde->end += fde->start;
-
- fde->cie = cie;
-
- if (cie->sized_augmentation_data)
- {
- /* The CIE augmentation says the FDE has a DW_FORM_block
- before its actual instruction stream. */
- Dwarf_Word len;
- get_uleb128 (len, fde->instructions, fde->instructions_end);
- if ((Dwarf_Word) (fde->instructions_end - fde->instructions) < len)
- {
- free (fde);
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
- fde->instructions += len;
- }
- else
- /* We had to understand all of the CIE augmentation string.
- We've recorded the number of data bytes in FDEs. */
- fde->instructions += cie->fde_augmentation_data_size;
-
- /* Add the new entry to the search tree. */
- if (tsearch (fde, &cache->fde_tree, &compare_fde) == NULL)
- {
- free (fde);
- __libdw_seterrno (DWARF_E_NOMEM);
- return NULL;
- }
-
- return fde;
-}
-
-struct dwarf_fde *
-internal_function
-__libdw_fde_by_offset (Dwarf_CFI *cache, Dwarf_Off offset)
-{
- Dwarf_CFI_Entry entry;
- Dwarf_Off next_offset;
- int result = INTUSE(dwarf_next_cfi) (cache->e_ident,
- &cache->data->d, CFI_IS_EH (cache),
- offset, &next_offset, &entry);
- if (result != 0)
- {
- if (result > 0)
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- if (unlikely (dwarf_cfi_cie_p (&entry)))
- goto invalid;
-
- /* We have a new FDE to consider. */
- struct dwarf_fde *fde = intern_fde (cache, &entry.fde);
- if (fde == (void *) -1l || fde == NULL)
- return NULL;
-
- /* If this happened to be what we would have read next, notice it. */
- if (cache->next_offset == offset)
- cache->next_offset = next_offset;
-
- return fde;
-}
-
-/* Use a binary search table in .eh_frame_hdr format, yield an FDE offset. */
-static Dwarf_Off
-binary_search_fde (Dwarf_CFI *cache, Dwarf_Addr address)
-{
- const size_t size = 2 * encoded_value_size (&cache->data->d, cache->e_ident,
- cache->search_table_encoding,
- NULL);
-
- /* Dummy used by read_encoded_value. */
- Dwarf_CFI dummy_cfi =
- {
- .e_ident = cache->e_ident,
- .datarel = cache->search_table_vaddr,
- .frame_vaddr = cache->search_table_vaddr,
- };
-
- size_t l = 0, u = cache->search_table_entries;
- while (l < u)
- {
- size_t idx = (l + u) / 2;
-
- const uint8_t *p = &cache->search_table[idx * size];
- Dwarf_Addr start;
- if (unlikely (read_encoded_value (&dummy_cfi,
- cache->search_table_encoding, &p,
- &start)))
- break;
- if (address < start)
- u = idx;
- else
- {
- l = idx + 1;
-
- Dwarf_Addr fde;
- if (unlikely (read_encoded_value (&dummy_cfi,
- cache->search_table_encoding, &p,
- &fde)))
- break;
-
- /* If this is the last entry, its upper bound is assumed to be
- the end of the module.
- XXX really should be end of containing PT_LOAD segment */
- if (l < cache->search_table_entries)
- {
- /* Look at the start address in the following entry. */
- Dwarf_Addr end;
- if (unlikely (read_encoded_value
- (&dummy_cfi, cache->search_table_encoding, &p,
- &end)))
- break;
- if (address >= end)
- continue;
- }
-
- return fde - cache->frame_vaddr;
- }
- }
-
- return (Dwarf_Off) -1l;
-}
-
-struct dwarf_fde *
-internal_function
-__libdw_find_fde (Dwarf_CFI *cache, Dwarf_Addr address)
-{
- /* Look for a cached FDE covering this address. */
-
- const struct dwarf_fde fde_key = { .start = address, .end = 0 };
- struct dwarf_fde **found = tfind (&fde_key, &cache->fde_tree, &compare_fde);
- if (found != NULL)
- return *found;
-
- /* Use .eh_frame_hdr binary search table if possible. */
- if (cache->search_table != NULL)
- {
- Dwarf_Off offset = binary_search_fde (cache, address);
- if (offset == (Dwarf_Off) -1l)
- goto no_match;
- struct dwarf_fde *fde = __libdw_fde_by_offset (cache, offset);
- if (likely (fde != NULL))
- {
- /* Sanity check the address range. */
- if (unlikely (address < fde->start))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
- /* .eh_frame_hdr does not indicate length covered by FDE. */
- if (unlikely (address >= fde->end))
- goto no_match;
- }
- return fde;
- }
-
- /* It's not there. Read more CFI entries until we find it. */
- while (1)
- {
- Dwarf_Off last_offset = cache->next_offset;
- Dwarf_CFI_Entry entry;
- int result = INTUSE(dwarf_next_cfi) (cache->e_ident,
- &cache->data->d, CFI_IS_EH (cache),
- last_offset, &cache->next_offset,
- &entry);
- if (result > 0)
- break;
- if (result < 0)
- {
- if (cache->next_offset == last_offset)
- /* We couldn't progress past the bogus FDE. */
- break;
- /* Skip the loser and look at the next entry. */
- continue;
- }
-
- if (dwarf_cfi_cie_p (&entry))
- {
- /* This is a CIE, not an FDE. We eagerly intern these
- because the next FDE will usually refer to this CIE. */
- __libdw_intern_cie (cache, last_offset, &entry.cie);
- continue;
- }
-
- /* We have a new FDE to consider. */
- struct dwarf_fde *fde = intern_fde (cache, &entry.fde);
-
- if (fde == (void *) -1l) /* Bad FDE, but we can keep looking. */
- continue;
-
- if (fde == NULL) /* Bad data. */
- return NULL;
-
- /* Is this the one we're looking for? */
- if (fde->start <= address && fde->end > address)
- return fde;
- }
-
- no_match:
- /* We found no FDE covering this address. */
- __libdw_seterrno (DWARF_E_NO_MATCH);
- return NULL;
-}
diff --git a/src/libdw/frame-cache.c b/src/libdw/frame-cache.c
deleted file mode 100644
index 54a1cc9a..00000000
--- a/src/libdw/frame-cache.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Frame cache handling.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-#include <search.h>
-#include <stdlib.h>
-
-
-static void
-free_cie (void *arg)
-{
- struct dwarf_cie *cie = arg;
-
- free ((Dwarf_Frame *) cie->initial_state);
- free (cie);
-}
-
-#define free_fde free
-
-static void
-free_expr (void *arg)
-{
- struct loc_s *loc = arg;
-
- free (loc->loc);
- free (loc);
-}
-
-void
-internal_function
-__libdw_destroy_frame_cache (Dwarf_CFI *cache)
-{
- /* Most of the data is in our two search trees. */
- tdestroy (cache->fde_tree, free_fde);
- tdestroy (cache->cie_tree, free_cie);
- tdestroy (cache->expr_tree, free_expr);
-}
diff --git a/src/libdw/known-dwarf.h b/src/libdw/known-dwarf.h
deleted file mode 100644
index 2aeada9b..00000000
--- a/src/libdw/known-dwarf.h
+++ /dev/null
@@ -1,629 +0,0 @@
-/* Generated by config/known-dwarf.awk from libdw/dwarf.h contents. */
-
-#define ALL_KNOWN_DW_ACCESS \
- ONE_KNOWN_DW_ACCESS (private, DW_ACCESS_private) \
- ONE_KNOWN_DW_ACCESS (protected, DW_ACCESS_protected) \
- ONE_KNOWN_DW_ACCESS (public, DW_ACCESS_public) \
- /* End of DW_ACCESS_*. */
-
-#define ALL_KNOWN_DW_AT \
- ONE_KNOWN_DW_AT (GNU_all_call_sites, DW_AT_GNU_all_call_sites) \
- ONE_KNOWN_DW_AT (GNU_all_source_call_sites, DW_AT_GNU_all_source_call_sites) \
- ONE_KNOWN_DW_AT (GNU_all_tail_call_sites, DW_AT_GNU_all_tail_call_sites) \
- ONE_KNOWN_DW_AT (GNU_call_site_data_value, DW_AT_GNU_call_site_data_value) \
- ONE_KNOWN_DW_AT (GNU_call_site_target, DW_AT_GNU_call_site_target) \
- ONE_KNOWN_DW_AT (GNU_call_site_target_clobbered, DW_AT_GNU_call_site_target_clobbered) \
- ONE_KNOWN_DW_AT (GNU_call_site_value, DW_AT_GNU_call_site_value) \
- ONE_KNOWN_DW_AT (GNU_deleted, DW_AT_GNU_deleted) \
- ONE_KNOWN_DW_AT (GNU_exclusive_locks_required, DW_AT_GNU_exclusive_locks_required) \
- ONE_KNOWN_DW_AT (GNU_guarded, DW_AT_GNU_guarded) \
- ONE_KNOWN_DW_AT (GNU_guarded_by, DW_AT_GNU_guarded_by) \
- ONE_KNOWN_DW_AT (GNU_locks_excluded, DW_AT_GNU_locks_excluded) \
- ONE_KNOWN_DW_AT (GNU_macros, DW_AT_GNU_macros) \
- ONE_KNOWN_DW_AT (GNU_odr_signature, DW_AT_GNU_odr_signature) \
- ONE_KNOWN_DW_AT (GNU_pt_guarded, DW_AT_GNU_pt_guarded) \
- ONE_KNOWN_DW_AT (GNU_pt_guarded_by, DW_AT_GNU_pt_guarded_by) \
- ONE_KNOWN_DW_AT (GNU_shared_locks_required, DW_AT_GNU_shared_locks_required) \
- ONE_KNOWN_DW_AT (GNU_tail_call, DW_AT_GNU_tail_call) \
- ONE_KNOWN_DW_AT (GNU_template_name, DW_AT_GNU_template_name) \
- ONE_KNOWN_DW_AT (GNU_vector, DW_AT_GNU_vector) \
- ONE_KNOWN_DW_AT (MIPS_abstract_name, DW_AT_MIPS_abstract_name) \
- ONE_KNOWN_DW_AT (MIPS_allocatable_dopetype, DW_AT_MIPS_allocatable_dopetype) \
- ONE_KNOWN_DW_AT (MIPS_assumed_shape_dopetype, DW_AT_MIPS_assumed_shape_dopetype) \
- ONE_KNOWN_DW_AT (MIPS_assumed_size, DW_AT_MIPS_assumed_size) \
- ONE_KNOWN_DW_AT (MIPS_clone_origin, DW_AT_MIPS_clone_origin) \
- ONE_KNOWN_DW_AT (MIPS_epilog_begin, DW_AT_MIPS_epilog_begin) \
- ONE_KNOWN_DW_AT (MIPS_fde, DW_AT_MIPS_fde) \
- ONE_KNOWN_DW_AT (MIPS_has_inlines, DW_AT_MIPS_has_inlines) \
- ONE_KNOWN_DW_AT (MIPS_linkage_name, DW_AT_MIPS_linkage_name) \
- ONE_KNOWN_DW_AT (MIPS_loop_begin, DW_AT_MIPS_loop_begin) \
- ONE_KNOWN_DW_AT (MIPS_loop_unroll_factor, DW_AT_MIPS_loop_unroll_factor) \
- ONE_KNOWN_DW_AT (MIPS_ptr_dopetype, DW_AT_MIPS_ptr_dopetype) \
- ONE_KNOWN_DW_AT (MIPS_software_pipeline_depth, DW_AT_MIPS_software_pipeline_depth) \
- ONE_KNOWN_DW_AT (MIPS_stride, DW_AT_MIPS_stride) \
- ONE_KNOWN_DW_AT (MIPS_stride_byte, DW_AT_MIPS_stride_byte) \
- ONE_KNOWN_DW_AT (MIPS_stride_elem, DW_AT_MIPS_stride_elem) \
- ONE_KNOWN_DW_AT (MIPS_tail_loop_begin, DW_AT_MIPS_tail_loop_begin) \
- ONE_KNOWN_DW_AT (abstract_origin, DW_AT_abstract_origin) \
- ONE_KNOWN_DW_AT (accessibility, DW_AT_accessibility) \
- ONE_KNOWN_DW_AT (address_class, DW_AT_address_class) \
- ONE_KNOWN_DW_AT (allocated, DW_AT_allocated) \
- ONE_KNOWN_DW_AT (artificial, DW_AT_artificial) \
- ONE_KNOWN_DW_AT (associated, DW_AT_associated) \
- ONE_KNOWN_DW_AT (base_types, DW_AT_base_types) \
- ONE_KNOWN_DW_AT (binary_scale, DW_AT_binary_scale) \
- ONE_KNOWN_DW_AT (bit_offset, DW_AT_bit_offset) \
- ONE_KNOWN_DW_AT (bit_size, DW_AT_bit_size) \
- ONE_KNOWN_DW_AT (bit_stride, DW_AT_bit_stride) \
- ONE_KNOWN_DW_AT (body_begin, DW_AT_body_begin) \
- ONE_KNOWN_DW_AT (body_end, DW_AT_body_end) \
- ONE_KNOWN_DW_AT (byte_size, DW_AT_byte_size) \
- ONE_KNOWN_DW_AT (byte_stride, DW_AT_byte_stride) \
- ONE_KNOWN_DW_AT (call_column, DW_AT_call_column) \
- ONE_KNOWN_DW_AT (call_file, DW_AT_call_file) \
- ONE_KNOWN_DW_AT (call_line, DW_AT_call_line) \
- ONE_KNOWN_DW_AT (calling_convention, DW_AT_calling_convention) \
- ONE_KNOWN_DW_AT (common_reference, DW_AT_common_reference) \
- ONE_KNOWN_DW_AT (comp_dir, DW_AT_comp_dir) \
- ONE_KNOWN_DW_AT (const_expr, DW_AT_const_expr) \
- ONE_KNOWN_DW_AT (const_value, DW_AT_const_value) \
- ONE_KNOWN_DW_AT (containing_type, DW_AT_containing_type) \
- ONE_KNOWN_DW_AT (count, DW_AT_count) \
- ONE_KNOWN_DW_AT (data_bit_offset, DW_AT_data_bit_offset) \
- ONE_KNOWN_DW_AT (data_location, DW_AT_data_location) \
- ONE_KNOWN_DW_AT (data_member_location, DW_AT_data_member_location) \
- ONE_KNOWN_DW_AT (decimal_scale, DW_AT_decimal_scale) \
- ONE_KNOWN_DW_AT (decimal_sign, DW_AT_decimal_sign) \
- ONE_KNOWN_DW_AT (decl_column, DW_AT_decl_column) \
- ONE_KNOWN_DW_AT (decl_file, DW_AT_decl_file) \
- ONE_KNOWN_DW_AT (decl_line, DW_AT_decl_line) \
- ONE_KNOWN_DW_AT (declaration, DW_AT_declaration) \
- ONE_KNOWN_DW_AT (default_value, DW_AT_default_value) \
- ONE_KNOWN_DW_AT (description, DW_AT_description) \
- ONE_KNOWN_DW_AT (digit_count, DW_AT_digit_count) \
- ONE_KNOWN_DW_AT (discr, DW_AT_discr) \
- ONE_KNOWN_DW_AT (discr_list, DW_AT_discr_list) \
- ONE_KNOWN_DW_AT (discr_value, DW_AT_discr_value) \
- ONE_KNOWN_DW_AT (element_list, DW_AT_element_list) \
- ONE_KNOWN_DW_AT (elemental, DW_AT_elemental) \
- ONE_KNOWN_DW_AT (encoding, DW_AT_encoding) \
- ONE_KNOWN_DW_AT (endianity, DW_AT_endianity) \
- ONE_KNOWN_DW_AT (entry_pc, DW_AT_entry_pc) \
- ONE_KNOWN_DW_AT (enum_class, DW_AT_enum_class) \
- ONE_KNOWN_DW_AT (explicit, DW_AT_explicit) \
- ONE_KNOWN_DW_AT (extension, DW_AT_extension) \
- ONE_KNOWN_DW_AT (external, DW_AT_external) \
- ONE_KNOWN_DW_AT (frame_base, DW_AT_frame_base) \
- ONE_KNOWN_DW_AT (friend, DW_AT_friend) \
- ONE_KNOWN_DW_AT (high_pc, DW_AT_high_pc) \
- ONE_KNOWN_DW_AT (identifier_case, DW_AT_identifier_case) \
- ONE_KNOWN_DW_AT (import, DW_AT_import) \
- ONE_KNOWN_DW_AT (inline, DW_AT_inline) \
- ONE_KNOWN_DW_AT (is_optional, DW_AT_is_optional) \
- ONE_KNOWN_DW_AT (language, DW_AT_language) \
- ONE_KNOWN_DW_AT (linkage_name, DW_AT_linkage_name) \
- ONE_KNOWN_DW_AT (location, DW_AT_location) \
- ONE_KNOWN_DW_AT (low_pc, DW_AT_low_pc) \
- ONE_KNOWN_DW_AT (lower_bound, DW_AT_lower_bound) \
- ONE_KNOWN_DW_AT (mac_info, DW_AT_mac_info) \
- ONE_KNOWN_DW_AT (macro_info, DW_AT_macro_info) \
- ONE_KNOWN_DW_AT (main_subprogram, DW_AT_main_subprogram) \
- ONE_KNOWN_DW_AT (member, DW_AT_member) \
- ONE_KNOWN_DW_AT (mutable, DW_AT_mutable) \
- ONE_KNOWN_DW_AT (name, DW_AT_name) \
- ONE_KNOWN_DW_AT (namelist_item, DW_AT_namelist_item) \
- ONE_KNOWN_DW_AT (noreturn, DW_AT_noreturn) \
- ONE_KNOWN_DW_AT (object_pointer, DW_AT_object_pointer) \
- ONE_KNOWN_DW_AT (ordering, DW_AT_ordering) \
- ONE_KNOWN_DW_AT (picture_string, DW_AT_picture_string) \
- ONE_KNOWN_DW_AT (priority, DW_AT_priority) \
- ONE_KNOWN_DW_AT (producer, DW_AT_producer) \
- ONE_KNOWN_DW_AT (prototyped, DW_AT_prototyped) \
- ONE_KNOWN_DW_AT (pure, DW_AT_pure) \
- ONE_KNOWN_DW_AT (ranges, DW_AT_ranges) \
- ONE_KNOWN_DW_AT (recursive, DW_AT_recursive) \
- ONE_KNOWN_DW_AT (return_addr, DW_AT_return_addr) \
- ONE_KNOWN_DW_AT (segment, DW_AT_segment) \
- ONE_KNOWN_DW_AT (sf_names, DW_AT_sf_names) \
- ONE_KNOWN_DW_AT (sibling, DW_AT_sibling) \
- ONE_KNOWN_DW_AT (signature, DW_AT_signature) \
- ONE_KNOWN_DW_AT (small, DW_AT_small) \
- ONE_KNOWN_DW_AT (specification, DW_AT_specification) \
- ONE_KNOWN_DW_AT (src_coords, DW_AT_src_coords) \
- ONE_KNOWN_DW_AT (src_info, DW_AT_src_info) \
- ONE_KNOWN_DW_AT (start_scope, DW_AT_start_scope) \
- ONE_KNOWN_DW_AT (static_link, DW_AT_static_link) \
- ONE_KNOWN_DW_AT (stmt_list, DW_AT_stmt_list) \
- ONE_KNOWN_DW_AT (string_length, DW_AT_string_length) \
- ONE_KNOWN_DW_AT (subscr_data, DW_AT_subscr_data) \
- ONE_KNOWN_DW_AT (threads_scaled, DW_AT_threads_scaled) \
- ONE_KNOWN_DW_AT (trampoline, DW_AT_trampoline) \
- ONE_KNOWN_DW_AT (type, DW_AT_type) \
- ONE_KNOWN_DW_AT (upper_bound, DW_AT_upper_bound) \
- ONE_KNOWN_DW_AT (use_UTF8, DW_AT_use_UTF8) \
- ONE_KNOWN_DW_AT (use_location, DW_AT_use_location) \
- ONE_KNOWN_DW_AT (variable_parameter, DW_AT_variable_parameter) \
- ONE_KNOWN_DW_AT (virtuality, DW_AT_virtuality) \
- ONE_KNOWN_DW_AT (visibility, DW_AT_visibility) \
- ONE_KNOWN_DW_AT (vtable_elem_location, DW_AT_vtable_elem_location) \
- /* End of DW_AT_*. */
-
-#define ALL_KNOWN_DW_ATE \
- ONE_KNOWN_DW_ATE (UTF, DW_ATE_UTF) \
- ONE_KNOWN_DW_ATE (address, DW_ATE_address) \
- ONE_KNOWN_DW_ATE (boolean, DW_ATE_boolean) \
- ONE_KNOWN_DW_ATE (complex_float, DW_ATE_complex_float) \
- ONE_KNOWN_DW_ATE (decimal_float, DW_ATE_decimal_float) \
- ONE_KNOWN_DW_ATE (edited, DW_ATE_edited) \
- ONE_KNOWN_DW_ATE (float, DW_ATE_float) \
- ONE_KNOWN_DW_ATE (imaginary_float, DW_ATE_imaginary_float) \
- ONE_KNOWN_DW_ATE (numeric_string, DW_ATE_numeric_string) \
- ONE_KNOWN_DW_ATE (packed_decimal, DW_ATE_packed_decimal) \
- ONE_KNOWN_DW_ATE (signed, DW_ATE_signed) \
- ONE_KNOWN_DW_ATE (signed_char, DW_ATE_signed_char) \
- ONE_KNOWN_DW_ATE (signed_fixed, DW_ATE_signed_fixed) \
- ONE_KNOWN_DW_ATE (unsigned, DW_ATE_unsigned) \
- ONE_KNOWN_DW_ATE (unsigned_char, DW_ATE_unsigned_char) \
- ONE_KNOWN_DW_ATE (unsigned_fixed, DW_ATE_unsigned_fixed) \
- ONE_KNOWN_DW_ATE (void, DW_ATE_void) \
- /* End of DW_ATE_*. */
-
-#define ALL_KNOWN_DW_CC \
- ONE_KNOWN_DW_CC (nocall, DW_CC_nocall) \
- ONE_KNOWN_DW_CC (normal, DW_CC_normal) \
- ONE_KNOWN_DW_CC (program, DW_CC_program) \
- /* End of DW_CC_*. */
-
-#define ALL_KNOWN_DW_CFA \
- ONE_KNOWN_DW_CFA (GNU_args_size, DW_CFA_GNU_args_size) \
- ONE_KNOWN_DW_CFA (GNU_negative_offset_extended, DW_CFA_GNU_negative_offset_extended) \
- ONE_KNOWN_DW_CFA (GNU_window_save, DW_CFA_GNU_window_save) \
- ONE_KNOWN_DW_CFA (MIPS_advance_loc8, DW_CFA_MIPS_advance_loc8) \
- ONE_KNOWN_DW_CFA (advance_loc, DW_CFA_advance_loc) \
- ONE_KNOWN_DW_CFA (advance_loc1, DW_CFA_advance_loc1) \
- ONE_KNOWN_DW_CFA (advance_loc2, DW_CFA_advance_loc2) \
- ONE_KNOWN_DW_CFA (advance_loc4, DW_CFA_advance_loc4) \
- ONE_KNOWN_DW_CFA (def_cfa, DW_CFA_def_cfa) \
- ONE_KNOWN_DW_CFA (def_cfa_expression, DW_CFA_def_cfa_expression) \
- ONE_KNOWN_DW_CFA (def_cfa_offset, DW_CFA_def_cfa_offset) \
- ONE_KNOWN_DW_CFA (def_cfa_offset_sf, DW_CFA_def_cfa_offset_sf) \
- ONE_KNOWN_DW_CFA (def_cfa_register, DW_CFA_def_cfa_register) \
- ONE_KNOWN_DW_CFA (def_cfa_sf, DW_CFA_def_cfa_sf) \
- ONE_KNOWN_DW_CFA (expression, DW_CFA_expression) \
- ONE_KNOWN_DW_CFA (extended, DW_CFA_extended) \
- ONE_KNOWN_DW_CFA (nop, DW_CFA_nop) \
- ONE_KNOWN_DW_CFA (offset, DW_CFA_offset) \
- ONE_KNOWN_DW_CFA (offset_extended, DW_CFA_offset_extended) \
- ONE_KNOWN_DW_CFA (offset_extended_sf, DW_CFA_offset_extended_sf) \
- ONE_KNOWN_DW_CFA (register, DW_CFA_register) \
- ONE_KNOWN_DW_CFA (remember_state, DW_CFA_remember_state) \
- ONE_KNOWN_DW_CFA (restore, DW_CFA_restore) \
- ONE_KNOWN_DW_CFA (restore_extended, DW_CFA_restore_extended) \
- ONE_KNOWN_DW_CFA (restore_state, DW_CFA_restore_state) \
- ONE_KNOWN_DW_CFA (same_value, DW_CFA_same_value) \
- ONE_KNOWN_DW_CFA (set_loc, DW_CFA_set_loc) \
- ONE_KNOWN_DW_CFA (undefined, DW_CFA_undefined) \
- ONE_KNOWN_DW_CFA (val_expression, DW_CFA_val_expression) \
- ONE_KNOWN_DW_CFA (val_offset, DW_CFA_val_offset) \
- ONE_KNOWN_DW_CFA (val_offset_sf, DW_CFA_val_offset_sf) \
- /* End of DW_CFA_*. */
-
-#define ALL_KNOWN_DW_CHILDREN \
- ONE_KNOWN_DW_CHILDREN (no, DW_CHILDREN_no) \
- ONE_KNOWN_DW_CHILDREN (yes, DW_CHILDREN_yes) \
- /* End of DW_CHILDREN_*. */
-
-#define ALL_KNOWN_DW_CIE_ID \
- ONE_KNOWN_DW_CIE_ID_DESC (32, DW_CIE_ID_32, "In 32-bit format CIE header.") \
- ONE_KNOWN_DW_CIE_ID_DESC (64, DW_CIE_ID_64, "In 64-bit format CIE header.") \
- /* End of DW_CIE_ID_*. */
-
-#define ALL_KNOWN_DW_DS \
- ONE_KNOWN_DW_DS (leading_overpunch, DW_DS_leading_overpunch) \
- ONE_KNOWN_DW_DS (leading_separate, DW_DS_leading_separate) \
- ONE_KNOWN_DW_DS (trailing_overpunch, DW_DS_trailing_overpunch) \
- ONE_KNOWN_DW_DS (trailing_separate, DW_DS_trailing_separate) \
- ONE_KNOWN_DW_DS (unsigned, DW_DS_unsigned) \
- /* End of DW_DS_*. */
-
-#define ALL_KNOWN_DW_DSC \
- ONE_KNOWN_DW_DSC (label, DW_DSC_label) \
- ONE_KNOWN_DW_DSC (range, DW_DSC_range) \
- /* End of DW_DSC_*. */
-
-#define ALL_KNOWN_DW_EH_PE \
- ONE_KNOWN_DW_EH_PE (absptr, DW_EH_PE_absptr) \
- ONE_KNOWN_DW_EH_PE (aligned, DW_EH_PE_aligned) \
- ONE_KNOWN_DW_EH_PE (datarel, DW_EH_PE_datarel) \
- ONE_KNOWN_DW_EH_PE (funcrel, DW_EH_PE_funcrel) \
- ONE_KNOWN_DW_EH_PE (indirect, DW_EH_PE_indirect) \
- ONE_KNOWN_DW_EH_PE (omit, DW_EH_PE_omit) \
- ONE_KNOWN_DW_EH_PE (pcrel, DW_EH_PE_pcrel) \
- ONE_KNOWN_DW_EH_PE (sdata2, DW_EH_PE_sdata2) \
- ONE_KNOWN_DW_EH_PE (sdata4, DW_EH_PE_sdata4) \
- ONE_KNOWN_DW_EH_PE (sdata8, DW_EH_PE_sdata8) \
- ONE_KNOWN_DW_EH_PE (signed, DW_EH_PE_signed) \
- ONE_KNOWN_DW_EH_PE (sleb128, DW_EH_PE_sleb128) \
- ONE_KNOWN_DW_EH_PE (textrel, DW_EH_PE_textrel) \
- ONE_KNOWN_DW_EH_PE (udata2, DW_EH_PE_udata2) \
- ONE_KNOWN_DW_EH_PE (udata4, DW_EH_PE_udata4) \
- ONE_KNOWN_DW_EH_PE (udata8, DW_EH_PE_udata8) \
- ONE_KNOWN_DW_EH_PE (uleb128, DW_EH_PE_uleb128) \
- /* End of DW_EH_PE_*. */
-
-#define ALL_KNOWN_DW_END \
- ONE_KNOWN_DW_END (big, DW_END_big) \
- ONE_KNOWN_DW_END (default, DW_END_default) \
- ONE_KNOWN_DW_END (little, DW_END_little) \
- /* End of DW_END_*. */
-
-#define ALL_KNOWN_DW_FORM \
- ONE_KNOWN_DW_FORM_DESC (GNU_ref_alt, DW_FORM_GNU_ref_alt, "offset in alternate .debuginfo.") \
- ONE_KNOWN_DW_FORM_DESC (GNU_strp_alt, DW_FORM_GNU_strp_alt, "offset in alternate .debug_str.") \
- ONE_KNOWN_DW_FORM (addr, DW_FORM_addr) \
- ONE_KNOWN_DW_FORM (block, DW_FORM_block) \
- ONE_KNOWN_DW_FORM (block1, DW_FORM_block1) \
- ONE_KNOWN_DW_FORM (block2, DW_FORM_block2) \
- ONE_KNOWN_DW_FORM (block4, DW_FORM_block4) \
- ONE_KNOWN_DW_FORM (data1, DW_FORM_data1) \
- ONE_KNOWN_DW_FORM (data2, DW_FORM_data2) \
- ONE_KNOWN_DW_FORM (data4, DW_FORM_data4) \
- ONE_KNOWN_DW_FORM (data8, DW_FORM_data8) \
- ONE_KNOWN_DW_FORM (exprloc, DW_FORM_exprloc) \
- ONE_KNOWN_DW_FORM (flag, DW_FORM_flag) \
- ONE_KNOWN_DW_FORM (flag_present, DW_FORM_flag_present) \
- ONE_KNOWN_DW_FORM (indirect, DW_FORM_indirect) \
- ONE_KNOWN_DW_FORM (ref1, DW_FORM_ref1) \
- ONE_KNOWN_DW_FORM (ref2, DW_FORM_ref2) \
- ONE_KNOWN_DW_FORM (ref4, DW_FORM_ref4) \
- ONE_KNOWN_DW_FORM (ref8, DW_FORM_ref8) \
- ONE_KNOWN_DW_FORM (ref_addr, DW_FORM_ref_addr) \
- ONE_KNOWN_DW_FORM (ref_sig8, DW_FORM_ref_sig8) \
- ONE_KNOWN_DW_FORM (ref_udata, DW_FORM_ref_udata) \
- ONE_KNOWN_DW_FORM (sdata, DW_FORM_sdata) \
- ONE_KNOWN_DW_FORM (sec_offset, DW_FORM_sec_offset) \
- ONE_KNOWN_DW_FORM (string, DW_FORM_string) \
- ONE_KNOWN_DW_FORM (strp, DW_FORM_strp) \
- ONE_KNOWN_DW_FORM (udata, DW_FORM_udata) \
- /* End of DW_FORM_*. */
-
-#define ALL_KNOWN_DW_ID \
- ONE_KNOWN_DW_ID (case_insensitive, DW_ID_case_insensitive) \
- ONE_KNOWN_DW_ID (case_sensitive, DW_ID_case_sensitive) \
- ONE_KNOWN_DW_ID (down_case, DW_ID_down_case) \
- ONE_KNOWN_DW_ID (up_case, DW_ID_up_case) \
- /* End of DW_ID_*. */
-
-#define ALL_KNOWN_DW_INL \
- ONE_KNOWN_DW_INL (declared_inlined, DW_INL_declared_inlined) \
- ONE_KNOWN_DW_INL (declared_not_inlined, DW_INL_declared_not_inlined) \
- ONE_KNOWN_DW_INL (inlined, DW_INL_inlined) \
- ONE_KNOWN_DW_INL (not_inlined, DW_INL_not_inlined) \
- /* End of DW_INL_*. */
-
-#define ALL_KNOWN_DW_LANG \
- ONE_KNOWN_DW_LANG_DESC (Ada83, DW_LANG_Ada83, "ISO Ada:1983") \
- ONE_KNOWN_DW_LANG_DESC (Ada95, DW_LANG_Ada95, "ISO Ada:1995") \
- ONE_KNOWN_DW_LANG_DESC (C, DW_LANG_C, "C") \
- ONE_KNOWN_DW_LANG_DESC (C11, DW_LANG_C11, "ISO C:2011") \
- ONE_KNOWN_DW_LANG_DESC (C89, DW_LANG_C89, "ISO C:1989") \
- ONE_KNOWN_DW_LANG_DESC (C99, DW_LANG_C99, "ISO C:1999") \
- ONE_KNOWN_DW_LANG_DESC (C_plus_plus, DW_LANG_C_plus_plus, "ISO C++:1998") \
- ONE_KNOWN_DW_LANG_DESC (C_plus_plus_11, DW_LANG_C_plus_plus_11, "ISO C++:2011") \
- ONE_KNOWN_DW_LANG_DESC (C_plus_plus_14, DW_LANG_C_plus_plus_14, "ISO C++:2014") \
- ONE_KNOWN_DW_LANG_DESC (Cobol74, DW_LANG_Cobol74, "ISO Cobol:1974") \
- ONE_KNOWN_DW_LANG_DESC (Cobol85, DW_LANG_Cobol85, "ISO Cobol:1985") \
- ONE_KNOWN_DW_LANG_DESC (D, DW_LANG_D, "D") \
- ONE_KNOWN_DW_LANG_DESC (Fortran77, DW_LANG_Fortran77, "ISO FORTRAN 77") \
- ONE_KNOWN_DW_LANG_DESC (Fortran90, DW_LANG_Fortran90, "ISO Fortran 90") \
- ONE_KNOWN_DW_LANG_DESC (Fortran95, DW_LANG_Fortran95, "ISO Fortran 95") \
- ONE_KNOWN_DW_LANG_DESC (Go, DW_LANG_Go, "Go") \
- ONE_KNOWN_DW_LANG_DESC (Java, DW_LANG_Java, "Java") \
- ONE_KNOWN_DW_LANG_DESC (Mips_Assembler, DW_LANG_Mips_Assembler, "Assembler") \
- ONE_KNOWN_DW_LANG_DESC (Modula2, DW_LANG_Modula2, "ISO Modula-2:1996") \
- ONE_KNOWN_DW_LANG_DESC (ObjC, DW_LANG_ObjC, "Objective-C") \
- ONE_KNOWN_DW_LANG_DESC (ObjC_plus_plus, DW_LANG_ObjC_plus_plus, "Objective-C++") \
- ONE_KNOWN_DW_LANG_DESC (PL1, DW_LANG_PL1, "ISO PL/1:1976") \
- ONE_KNOWN_DW_LANG_DESC (Pascal83, DW_LANG_Pascal83, "ISO Pascal:1983") \
- ONE_KNOWN_DW_LANG_DESC (Python, DW_LANG_Python, "Python") \
- ONE_KNOWN_DW_LANG_DESC (UPC, DW_LANG_UPC, "Unified Parallel C") \
- /* End of DW_LANG_*. */
-
-#define ALL_KNOWN_DW_LNE \
- ONE_KNOWN_DW_LNE (define_file, DW_LNE_define_file) \
- ONE_KNOWN_DW_LNE (end_sequence, DW_LNE_end_sequence) \
- ONE_KNOWN_DW_LNE (set_address, DW_LNE_set_address) \
- ONE_KNOWN_DW_LNE (set_discriminator, DW_LNE_set_discriminator) \
- /* End of DW_LNE_*. */
-
-#define ALL_KNOWN_DW_LNS \
- ONE_KNOWN_DW_LNS (advance_line, DW_LNS_advance_line) \
- ONE_KNOWN_DW_LNS (advance_pc, DW_LNS_advance_pc) \
- ONE_KNOWN_DW_LNS (const_add_pc, DW_LNS_const_add_pc) \
- ONE_KNOWN_DW_LNS (copy, DW_LNS_copy) \
- ONE_KNOWN_DW_LNS (fixed_advance_pc, DW_LNS_fixed_advance_pc) \
- ONE_KNOWN_DW_LNS (negate_stmt, DW_LNS_negate_stmt) \
- ONE_KNOWN_DW_LNS (set_basic_block, DW_LNS_set_basic_block) \
- ONE_KNOWN_DW_LNS (set_column, DW_LNS_set_column) \
- ONE_KNOWN_DW_LNS (set_epilogue_begin, DW_LNS_set_epilogue_begin) \
- ONE_KNOWN_DW_LNS (set_file, DW_LNS_set_file) \
- ONE_KNOWN_DW_LNS (set_isa, DW_LNS_set_isa) \
- ONE_KNOWN_DW_LNS (set_prologue_end, DW_LNS_set_prologue_end) \
- /* End of DW_LNS_*. */
-
-#define ALL_KNOWN_DW_MACINFO \
- ONE_KNOWN_DW_MACINFO (define, DW_MACINFO_define) \
- ONE_KNOWN_DW_MACINFO (end_file, DW_MACINFO_end_file) \
- ONE_KNOWN_DW_MACINFO (start_file, DW_MACINFO_start_file) \
- ONE_KNOWN_DW_MACINFO (undef, DW_MACINFO_undef) \
- ONE_KNOWN_DW_MACINFO (vendor_ext, DW_MACINFO_vendor_ext) \
- /* End of DW_MACINFO_*. */
-
-#define ALL_KNOWN_DW_MACRO_GNU \
- ONE_KNOWN_DW_MACRO_GNU (define, DW_MACRO_GNU_define) \
- ONE_KNOWN_DW_MACRO_GNU (define_indirect, DW_MACRO_GNU_define_indirect) \
- ONE_KNOWN_DW_MACRO_GNU (end_file, DW_MACRO_GNU_end_file) \
- ONE_KNOWN_DW_MACRO_GNU (start_file, DW_MACRO_GNU_start_file) \
- ONE_KNOWN_DW_MACRO_GNU (transparent_include, DW_MACRO_GNU_transparent_include) \
- ONE_KNOWN_DW_MACRO_GNU (undef, DW_MACRO_GNU_undef) \
- ONE_KNOWN_DW_MACRO_GNU (undef_indirect, DW_MACRO_GNU_undef_indirect) \
- /* End of DW_MACRO_GNU_*. */
-
-#define ALL_KNOWN_DW_OP \
- ONE_KNOWN_DW_OP (GNU_const_type, DW_OP_GNU_const_type) \
- ONE_KNOWN_DW_OP (GNU_convert, DW_OP_GNU_convert) \
- ONE_KNOWN_DW_OP (GNU_deref_type, DW_OP_GNU_deref_type) \
- ONE_KNOWN_DW_OP (GNU_encoded_addr, DW_OP_GNU_encoded_addr) \
- ONE_KNOWN_DW_OP (GNU_entry_value, DW_OP_GNU_entry_value) \
- ONE_KNOWN_DW_OP (GNU_implicit_pointer, DW_OP_GNU_implicit_pointer) \
- ONE_KNOWN_DW_OP (GNU_parameter_ref, DW_OP_GNU_parameter_ref) \
- ONE_KNOWN_DW_OP (GNU_push_tls_address, DW_OP_GNU_push_tls_address) \
- ONE_KNOWN_DW_OP (GNU_regval_type, DW_OP_GNU_regval_type) \
- ONE_KNOWN_DW_OP (GNU_reinterpret, DW_OP_GNU_reinterpret) \
- ONE_KNOWN_DW_OP (GNU_uninit, DW_OP_GNU_uninit) \
- ONE_KNOWN_DW_OP (abs, DW_OP_abs) \
- ONE_KNOWN_DW_OP_DESC (addr, DW_OP_addr, "Constant address.") \
- ONE_KNOWN_DW_OP (and, DW_OP_and) \
- ONE_KNOWN_DW_OP_DESC (bit_piece, DW_OP_bit_piece, "ULEB128 size and ULEB128 offset in bits.") \
- ONE_KNOWN_DW_OP_DESC (bra, DW_OP_bra, "Signed 2-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (breg0, DW_OP_breg0, "Base register 0.") \
- ONE_KNOWN_DW_OP_DESC (breg1, DW_OP_breg1, "Base register 1.") \
- ONE_KNOWN_DW_OP_DESC (breg10, DW_OP_breg10, "Base register 10.") \
- ONE_KNOWN_DW_OP_DESC (breg11, DW_OP_breg11, "Base register 11.") \
- ONE_KNOWN_DW_OP_DESC (breg12, DW_OP_breg12, "Base register 12.") \
- ONE_KNOWN_DW_OP_DESC (breg13, DW_OP_breg13, "Base register 13.") \
- ONE_KNOWN_DW_OP_DESC (breg14, DW_OP_breg14, "Base register 14.") \
- ONE_KNOWN_DW_OP_DESC (breg15, DW_OP_breg15, "Base register 15.") \
- ONE_KNOWN_DW_OP_DESC (breg16, DW_OP_breg16, "Base register 16.") \
- ONE_KNOWN_DW_OP_DESC (breg17, DW_OP_breg17, "Base register 17.") \
- ONE_KNOWN_DW_OP_DESC (breg18, DW_OP_breg18, "Base register 18.") \
- ONE_KNOWN_DW_OP_DESC (breg19, DW_OP_breg19, "Base register 19.") \
- ONE_KNOWN_DW_OP_DESC (breg2, DW_OP_breg2, "Base register 2.") \
- ONE_KNOWN_DW_OP_DESC (breg20, DW_OP_breg20, "Base register 20.") \
- ONE_KNOWN_DW_OP_DESC (breg21, DW_OP_breg21, "Base register 21.") \
- ONE_KNOWN_DW_OP_DESC (breg22, DW_OP_breg22, "Base register 22.") \
- ONE_KNOWN_DW_OP_DESC (breg23, DW_OP_breg23, "Base register 23.") \
- ONE_KNOWN_DW_OP_DESC (breg24, DW_OP_breg24, "Base register 24.") \
- ONE_KNOWN_DW_OP_DESC (breg25, DW_OP_breg25, "Base register 25.") \
- ONE_KNOWN_DW_OP_DESC (breg26, DW_OP_breg26, "Base register 26.") \
- ONE_KNOWN_DW_OP_DESC (breg27, DW_OP_breg27, "Base register 27.") \
- ONE_KNOWN_DW_OP_DESC (breg28, DW_OP_breg28, "Base register 28.") \
- ONE_KNOWN_DW_OP_DESC (breg29, DW_OP_breg29, "Base register 29.") \
- ONE_KNOWN_DW_OP_DESC (breg3, DW_OP_breg3, "Base register 3.") \
- ONE_KNOWN_DW_OP_DESC (breg30, DW_OP_breg30, "Base register 30.") \
- ONE_KNOWN_DW_OP_DESC (breg31, DW_OP_breg31, "Base register 31.") \
- ONE_KNOWN_DW_OP_DESC (breg4, DW_OP_breg4, "Base register 4.") \
- ONE_KNOWN_DW_OP_DESC (breg5, DW_OP_breg5, "Base register 5.") \
- ONE_KNOWN_DW_OP_DESC (breg6, DW_OP_breg6, "Base register 6.") \
- ONE_KNOWN_DW_OP_DESC (breg7, DW_OP_breg7, "Base register 7.") \
- ONE_KNOWN_DW_OP_DESC (breg8, DW_OP_breg8, "Base register 8.") \
- ONE_KNOWN_DW_OP_DESC (breg9, DW_OP_breg9, "Base register 9.") \
- ONE_KNOWN_DW_OP_DESC (bregx, DW_OP_bregx, "ULEB128 register followed by SLEB128 off.") \
- ONE_KNOWN_DW_OP (call2, DW_OP_call2) \
- ONE_KNOWN_DW_OP (call4, DW_OP_call4) \
- ONE_KNOWN_DW_OP (call_frame_cfa, DW_OP_call_frame_cfa) \
- ONE_KNOWN_DW_OP (call_ref, DW_OP_call_ref) \
- ONE_KNOWN_DW_OP_DESC (const1s, DW_OP_const1s, "Signed 1-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (const1u, DW_OP_const1u, "Unsigned 1-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (const2s, DW_OP_const2s, "Signed 2-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (const2u, DW_OP_const2u, "Unsigned 2-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (const4s, DW_OP_const4s, "Signed 4-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (const4u, DW_OP_const4u, "Unsigned 4-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (const8s, DW_OP_const8s, "Signed 8-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (const8u, DW_OP_const8u, "Unsigned 8-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (consts, DW_OP_consts, "Signed LEB128 constant.") \
- ONE_KNOWN_DW_OP_DESC (constu, DW_OP_constu, "Unsigned LEB128 constant.") \
- ONE_KNOWN_DW_OP (deref, DW_OP_deref) \
- ONE_KNOWN_DW_OP_DESC (deref_size, DW_OP_deref_size, "1-byte size of data retrieved.") \
- ONE_KNOWN_DW_OP (div, DW_OP_div) \
- ONE_KNOWN_DW_OP (drop, DW_OP_drop) \
- ONE_KNOWN_DW_OP (dup, DW_OP_dup) \
- ONE_KNOWN_DW_OP (eq, DW_OP_eq) \
- ONE_KNOWN_DW_OP_DESC (fbreg, DW_OP_fbreg, "Signed LEB128 offset.") \
- ONE_KNOWN_DW_OP (form_tls_address, DW_OP_form_tls_address) \
- ONE_KNOWN_DW_OP (ge, DW_OP_ge) \
- ONE_KNOWN_DW_OP (gt, DW_OP_gt) \
- ONE_KNOWN_DW_OP_DESC (implicit_value, DW_OP_implicit_value, "DW_FORM_block follows opcode.") \
- ONE_KNOWN_DW_OP (le, DW_OP_le) \
- ONE_KNOWN_DW_OP_DESC (lit0, DW_OP_lit0, "Literal 0.") \
- ONE_KNOWN_DW_OP_DESC (lit1, DW_OP_lit1, "Literal 1.") \
- ONE_KNOWN_DW_OP_DESC (lit10, DW_OP_lit10, "Literal 10.") \
- ONE_KNOWN_DW_OP_DESC (lit11, DW_OP_lit11, "Literal 11.") \
- ONE_KNOWN_DW_OP_DESC (lit12, DW_OP_lit12, "Literal 12.") \
- ONE_KNOWN_DW_OP_DESC (lit13, DW_OP_lit13, "Literal 13.") \
- ONE_KNOWN_DW_OP_DESC (lit14, DW_OP_lit14, "Literal 14.") \
- ONE_KNOWN_DW_OP_DESC (lit15, DW_OP_lit15, "Literal 15.") \
- ONE_KNOWN_DW_OP_DESC (lit16, DW_OP_lit16, "Literal 16.") \
- ONE_KNOWN_DW_OP_DESC (lit17, DW_OP_lit17, "Literal 17.") \
- ONE_KNOWN_DW_OP_DESC (lit18, DW_OP_lit18, "Literal 18.") \
- ONE_KNOWN_DW_OP_DESC (lit19, DW_OP_lit19, "Literal 19.") \
- ONE_KNOWN_DW_OP_DESC (lit2, DW_OP_lit2, "Literal 2.") \
- ONE_KNOWN_DW_OP_DESC (lit20, DW_OP_lit20, "Literal 20.") \
- ONE_KNOWN_DW_OP_DESC (lit21, DW_OP_lit21, "Literal 21.") \
- ONE_KNOWN_DW_OP_DESC (lit22, DW_OP_lit22, "Literal 22.") \
- ONE_KNOWN_DW_OP_DESC (lit23, DW_OP_lit23, "Literal 23.") \
- ONE_KNOWN_DW_OP_DESC (lit24, DW_OP_lit24, "Literal 24.") \
- ONE_KNOWN_DW_OP_DESC (lit25, DW_OP_lit25, "Literal 25.") \
- ONE_KNOWN_DW_OP_DESC (lit26, DW_OP_lit26, "Literal 26.") \
- ONE_KNOWN_DW_OP_DESC (lit27, DW_OP_lit27, "Literal 27.") \
- ONE_KNOWN_DW_OP_DESC (lit28, DW_OP_lit28, "Literal 28.") \
- ONE_KNOWN_DW_OP_DESC (lit29, DW_OP_lit29, "Literal 29.") \
- ONE_KNOWN_DW_OP_DESC (lit3, DW_OP_lit3, "Literal 3.") \
- ONE_KNOWN_DW_OP_DESC (lit30, DW_OP_lit30, "Literal 30.") \
- ONE_KNOWN_DW_OP_DESC (lit31, DW_OP_lit31, "Literal 31.") \
- ONE_KNOWN_DW_OP_DESC (lit4, DW_OP_lit4, "Literal 4.") \
- ONE_KNOWN_DW_OP_DESC (lit5, DW_OP_lit5, "Literal 5.") \
- ONE_KNOWN_DW_OP_DESC (lit6, DW_OP_lit6, "Literal 6.") \
- ONE_KNOWN_DW_OP_DESC (lit7, DW_OP_lit7, "Literal 7.") \
- ONE_KNOWN_DW_OP_DESC (lit8, DW_OP_lit8, "Literal 8.") \
- ONE_KNOWN_DW_OP_DESC (lit9, DW_OP_lit9, "Literal 9.") \
- ONE_KNOWN_DW_OP (lt, DW_OP_lt) \
- ONE_KNOWN_DW_OP (minus, DW_OP_minus) \
- ONE_KNOWN_DW_OP (mod, DW_OP_mod) \
- ONE_KNOWN_DW_OP (mul, DW_OP_mul) \
- ONE_KNOWN_DW_OP (ne, DW_OP_ne) \
- ONE_KNOWN_DW_OP (neg, DW_OP_neg) \
- ONE_KNOWN_DW_OP (nop, DW_OP_nop) \
- ONE_KNOWN_DW_OP (not, DW_OP_not) \
- ONE_KNOWN_DW_OP (or, DW_OP_or) \
- ONE_KNOWN_DW_OP (over, DW_OP_over) \
- ONE_KNOWN_DW_OP_DESC (pick, DW_OP_pick, "1-byte stack index.") \
- ONE_KNOWN_DW_OP_DESC (piece, DW_OP_piece, "ULEB128 size of piece addressed.") \
- ONE_KNOWN_DW_OP (plus, DW_OP_plus) \
- ONE_KNOWN_DW_OP_DESC (plus_uconst, DW_OP_plus_uconst, "Unsigned LEB128 addend.") \
- ONE_KNOWN_DW_OP (push_object_address, DW_OP_push_object_address) \
- ONE_KNOWN_DW_OP_DESC (reg0, DW_OP_reg0, "Register 0.") \
- ONE_KNOWN_DW_OP_DESC (reg1, DW_OP_reg1, "Register 1.") \
- ONE_KNOWN_DW_OP_DESC (reg10, DW_OP_reg10, "Register 10.") \
- ONE_KNOWN_DW_OP_DESC (reg11, DW_OP_reg11, "Register 11.") \
- ONE_KNOWN_DW_OP_DESC (reg12, DW_OP_reg12, "Register 12.") \
- ONE_KNOWN_DW_OP_DESC (reg13, DW_OP_reg13, "Register 13.") \
- ONE_KNOWN_DW_OP_DESC (reg14, DW_OP_reg14, "Register 14.") \
- ONE_KNOWN_DW_OP_DESC (reg15, DW_OP_reg15, "Register 15.") \
- ONE_KNOWN_DW_OP_DESC (reg16, DW_OP_reg16, "Register 16.") \
- ONE_KNOWN_DW_OP_DESC (reg17, DW_OP_reg17, "Register 17.") \
- ONE_KNOWN_DW_OP_DESC (reg18, DW_OP_reg18, "Register 18.") \
- ONE_KNOWN_DW_OP_DESC (reg19, DW_OP_reg19, "Register 19.") \
- ONE_KNOWN_DW_OP_DESC (reg2, DW_OP_reg2, "Register 2.") \
- ONE_KNOWN_DW_OP_DESC (reg20, DW_OP_reg20, "Register 20.") \
- ONE_KNOWN_DW_OP_DESC (reg21, DW_OP_reg21, "Register 21.") \
- ONE_KNOWN_DW_OP_DESC (reg22, DW_OP_reg22, "Register 22.") \
- ONE_KNOWN_DW_OP_DESC (reg23, DW_OP_reg23, "Register 24.") \
- ONE_KNOWN_DW_OP_DESC (reg24, DW_OP_reg24, "Register 24.") \
- ONE_KNOWN_DW_OP_DESC (reg25, DW_OP_reg25, "Register 25.") \
- ONE_KNOWN_DW_OP_DESC (reg26, DW_OP_reg26, "Register 26.") \
- ONE_KNOWN_DW_OP_DESC (reg27, DW_OP_reg27, "Register 27.") \
- ONE_KNOWN_DW_OP_DESC (reg28, DW_OP_reg28, "Register 28.") \
- ONE_KNOWN_DW_OP_DESC (reg29, DW_OP_reg29, "Register 29.") \
- ONE_KNOWN_DW_OP_DESC (reg3, DW_OP_reg3, "Register 3.") \
- ONE_KNOWN_DW_OP_DESC (reg30, DW_OP_reg30, "Register 30.") \
- ONE_KNOWN_DW_OP_DESC (reg31, DW_OP_reg31, "Register 31.") \
- ONE_KNOWN_DW_OP_DESC (reg4, DW_OP_reg4, "Register 4.") \
- ONE_KNOWN_DW_OP_DESC (reg5, DW_OP_reg5, "Register 5.") \
- ONE_KNOWN_DW_OP_DESC (reg6, DW_OP_reg6, "Register 6.") \
- ONE_KNOWN_DW_OP_DESC (reg7, DW_OP_reg7, "Register 7.") \
- ONE_KNOWN_DW_OP_DESC (reg8, DW_OP_reg8, "Register 8.") \
- ONE_KNOWN_DW_OP_DESC (reg9, DW_OP_reg9, "Register 9.") \
- ONE_KNOWN_DW_OP_DESC (regx, DW_OP_regx, "Unsigned LEB128 register.") \
- ONE_KNOWN_DW_OP (rot, DW_OP_rot) \
- ONE_KNOWN_DW_OP (shl, DW_OP_shl) \
- ONE_KNOWN_DW_OP (shr, DW_OP_shr) \
- ONE_KNOWN_DW_OP (shra, DW_OP_shra) \
- ONE_KNOWN_DW_OP_DESC (skip, DW_OP_skip, "Signed 2-byte constant.") \
- ONE_KNOWN_DW_OP_DESC (stack_value, DW_OP_stack_value, "No operands, special like DW_OP_piece.") \
- ONE_KNOWN_DW_OP (swap, DW_OP_swap) \
- ONE_KNOWN_DW_OP (xderef, DW_OP_xderef) \
- ONE_KNOWN_DW_OP_DESC (xderef_size, DW_OP_xderef_size, "1-byte size of data retrieved.") \
- ONE_KNOWN_DW_OP (xor, DW_OP_xor) \
- /* End of DW_OP_*. */
-
-#define ALL_KNOWN_DW_ORD \
- ONE_KNOWN_DW_ORD (col_major, DW_ORD_col_major) \
- ONE_KNOWN_DW_ORD (row_major, DW_ORD_row_major) \
- /* End of DW_ORD_*. */
-
-#define ALL_KNOWN_DW_TAG \
- ONE_KNOWN_DW_TAG (GNU_BINCL, DW_TAG_GNU_BINCL) \
- ONE_KNOWN_DW_TAG (GNU_EINCL, DW_TAG_GNU_EINCL) \
- ONE_KNOWN_DW_TAG (GNU_call_site, DW_TAG_GNU_call_site) \
- ONE_KNOWN_DW_TAG (GNU_call_site_parameter, DW_TAG_GNU_call_site_parameter) \
- ONE_KNOWN_DW_TAG (GNU_formal_parameter_pack, DW_TAG_GNU_formal_parameter_pack) \
- ONE_KNOWN_DW_TAG (GNU_template_parameter_pack, DW_TAG_GNU_template_parameter_pack) \
- ONE_KNOWN_DW_TAG (GNU_template_template_param, DW_TAG_GNU_template_template_param) \
- ONE_KNOWN_DW_TAG (MIPS_loop, DW_TAG_MIPS_loop) \
- ONE_KNOWN_DW_TAG (access_declaration, DW_TAG_access_declaration) \
- ONE_KNOWN_DW_TAG (array_type, DW_TAG_array_type) \
- ONE_KNOWN_DW_TAG (base_type, DW_TAG_base_type) \
- ONE_KNOWN_DW_TAG (catch_block, DW_TAG_catch_block) \
- ONE_KNOWN_DW_TAG (class_template, DW_TAG_class_template) \
- ONE_KNOWN_DW_TAG (class_type, DW_TAG_class_type) \
- ONE_KNOWN_DW_TAG (common_block, DW_TAG_common_block) \
- ONE_KNOWN_DW_TAG (common_inclusion, DW_TAG_common_inclusion) \
- ONE_KNOWN_DW_TAG (compile_unit, DW_TAG_compile_unit) \
- ONE_KNOWN_DW_TAG (condition, DW_TAG_condition) \
- ONE_KNOWN_DW_TAG (const_type, DW_TAG_const_type) \
- ONE_KNOWN_DW_TAG (constant, DW_TAG_constant) \
- ONE_KNOWN_DW_TAG (dwarf_procedure, DW_TAG_dwarf_procedure) \
- ONE_KNOWN_DW_TAG (entry_point, DW_TAG_entry_point) \
- ONE_KNOWN_DW_TAG (enumeration_type, DW_TAG_enumeration_type) \
- ONE_KNOWN_DW_TAG (enumerator, DW_TAG_enumerator) \
- ONE_KNOWN_DW_TAG (file_type, DW_TAG_file_type) \
- ONE_KNOWN_DW_TAG (formal_parameter, DW_TAG_formal_parameter) \
- ONE_KNOWN_DW_TAG (format_label, DW_TAG_format_label) \
- ONE_KNOWN_DW_TAG (friend, DW_TAG_friend) \
- ONE_KNOWN_DW_TAG (function_template, DW_TAG_function_template) \
- ONE_KNOWN_DW_TAG (imported_declaration, DW_TAG_imported_declaration) \
- ONE_KNOWN_DW_TAG (imported_module, DW_TAG_imported_module) \
- ONE_KNOWN_DW_TAG (imported_unit, DW_TAG_imported_unit) \
- ONE_KNOWN_DW_TAG (inheritance, DW_TAG_inheritance) \
- ONE_KNOWN_DW_TAG (inlined_subroutine, DW_TAG_inlined_subroutine) \
- ONE_KNOWN_DW_TAG (interface_type, DW_TAG_interface_type) \
- ONE_KNOWN_DW_TAG (label, DW_TAG_label) \
- ONE_KNOWN_DW_TAG (lexical_block, DW_TAG_lexical_block) \
- ONE_KNOWN_DW_TAG (member, DW_TAG_member) \
- ONE_KNOWN_DW_TAG (module, DW_TAG_module) \
- ONE_KNOWN_DW_TAG (namelist, DW_TAG_namelist) \
- ONE_KNOWN_DW_TAG (namelist_item, DW_TAG_namelist_item) \
- ONE_KNOWN_DW_TAG (namespace, DW_TAG_namespace) \
- ONE_KNOWN_DW_TAG (packed_type, DW_TAG_packed_type) \
- ONE_KNOWN_DW_TAG (partial_unit, DW_TAG_partial_unit) \
- ONE_KNOWN_DW_TAG (pointer_type, DW_TAG_pointer_type) \
- ONE_KNOWN_DW_TAG (ptr_to_member_type, DW_TAG_ptr_to_member_type) \
- ONE_KNOWN_DW_TAG (reference_type, DW_TAG_reference_type) \
- ONE_KNOWN_DW_TAG (restrict_type, DW_TAG_restrict_type) \
- ONE_KNOWN_DW_TAG (rvalue_reference_type, DW_TAG_rvalue_reference_type) \
- ONE_KNOWN_DW_TAG (set_type, DW_TAG_set_type) \
- ONE_KNOWN_DW_TAG (shared_type, DW_TAG_shared_type) \
- ONE_KNOWN_DW_TAG (string_type, DW_TAG_string_type) \
- ONE_KNOWN_DW_TAG (structure_type, DW_TAG_structure_type) \
- ONE_KNOWN_DW_TAG (subprogram, DW_TAG_subprogram) \
- ONE_KNOWN_DW_TAG (subrange_type, DW_TAG_subrange_type) \
- ONE_KNOWN_DW_TAG (subroutine_type, DW_TAG_subroutine_type) \
- ONE_KNOWN_DW_TAG (template_alias, DW_TAG_template_alias) \
- ONE_KNOWN_DW_TAG (template_type_parameter, DW_TAG_template_type_parameter) \
- ONE_KNOWN_DW_TAG (template_value_parameter, DW_TAG_template_value_parameter) \
- ONE_KNOWN_DW_TAG (thrown_type, DW_TAG_thrown_type) \
- ONE_KNOWN_DW_TAG (try_block, DW_TAG_try_block) \
- ONE_KNOWN_DW_TAG (type_unit, DW_TAG_type_unit) \
- ONE_KNOWN_DW_TAG (typedef, DW_TAG_typedef) \
- ONE_KNOWN_DW_TAG (union_type, DW_TAG_union_type) \
- ONE_KNOWN_DW_TAG (unspecified_parameters, DW_TAG_unspecified_parameters) \
- ONE_KNOWN_DW_TAG (unspecified_type, DW_TAG_unspecified_type) \
- ONE_KNOWN_DW_TAG (variable, DW_TAG_variable) \
- ONE_KNOWN_DW_TAG (variant, DW_TAG_variant) \
- ONE_KNOWN_DW_TAG (variant_part, DW_TAG_variant_part) \
- ONE_KNOWN_DW_TAG (volatile_type, DW_TAG_volatile_type) \
- ONE_KNOWN_DW_TAG (with_stmt, DW_TAG_with_stmt) \
- /* End of DW_TAG_*. */
-
-#define ALL_KNOWN_DW_VIRTUALITY \
- ONE_KNOWN_DW_VIRTUALITY (none, DW_VIRTUALITY_none) \
- ONE_KNOWN_DW_VIRTUALITY (pure_virtual, DW_VIRTUALITY_pure_virtual) \
- ONE_KNOWN_DW_VIRTUALITY (virtual, DW_VIRTUALITY_virtual) \
- /* End of DW_VIRTUALITY_*. */
-
-#define ALL_KNOWN_DW_VIS \
- ONE_KNOWN_DW_VIS (exported, DW_VIS_exported) \
- ONE_KNOWN_DW_VIS (local, DW_VIS_local) \
- ONE_KNOWN_DW_VIS (qualified, DW_VIS_qualified) \
- /* End of DW_VIS_*. */
diff --git a/src/libdw/libdw.h b/src/libdw/libdw.h
deleted file mode 100644
index b2b22828..00000000
--- a/src/libdw/libdw.h
+++ /dev/null
@@ -1,1026 +0,0 @@
-/* Interfaces for libdw.
- Copyright (C) 2002-2010, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBDW_H
-#define _LIBDW_H 1
-
-#include <gelf.h>
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-
-
-#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
-# define __nonnull_attribute__(...) __attribute__ ((__nonnull__ (__VA_ARGS__)))
-# define __deprecated_attribute__ __attribute__ ((__deprecated__))
-#else
-# define __nonnull_attribute__(args...)
-# define __deprecated_attribute__
-#endif
-
-
-#ifdef __GNUC_STDC_INLINE__
-# define __libdw_extern_inline extern __inline __attribute__ ((__gnu_inline__))
-#else
-# define __libdw_extern_inline extern __inline
-#endif
-
-
-/* Mode for the session. */
-typedef enum
- {
- DWARF_C_READ, /* Read .. */
- DWARF_C_RDWR, /* Read and write .. */
- DWARF_C_WRITE, /* Write .. */
- }
-Dwarf_Cmd;
-
-
-/* Callback results. */
-enum
-{
- DWARF_CB_OK = 0,
- DWARF_CB_ABORT
-};
-
-
-/* Error values. */
-enum
- {
- DW_TAG_invalid = 0
-#define DW_TAG_invalid DW_TAG_invalid
- };
-
-
-/* Type for offset in DWARF file. */
-typedef GElf_Off Dwarf_Off;
-
-/* Type for address in DWARF file. */
-typedef GElf_Addr Dwarf_Addr;
-
-/* Integer types. Big enough to hold any numeric value. */
-typedef GElf_Xword Dwarf_Word;
-typedef GElf_Sxword Dwarf_Sword;
-/* For the times we know we do not need that much. */
-typedef GElf_Half Dwarf_Half;
-
-
-/* DWARF abbreviation record. */
-typedef struct Dwarf_Abbrev Dwarf_Abbrev;
-
-/* Returned to show the last DIE has be returned. */
-#define DWARF_END_ABBREV ((Dwarf_Abbrev *) -1l)
-
-/* Source code line information for CU. */
-typedef struct Dwarf_Lines_s Dwarf_Lines;
-
-/* One source code line information. */
-typedef struct Dwarf_Line_s Dwarf_Line;
-
-/* Source file information. */
-typedef struct Dwarf_Files_s Dwarf_Files;
-
-/* One address range record. */
-typedef struct Dwarf_Arange_s Dwarf_Arange;
-
-/* Address ranges of a file. */
-typedef struct Dwarf_Aranges_s Dwarf_Aranges;
-
-/* CU representation. */
-struct Dwarf_CU;
-typedef struct Dwarf_CU Dwarf_CU;
-
-/* Macro information. */
-typedef struct Dwarf_Macro_s Dwarf_Macro;
-
-/* Attribute representation. */
-typedef struct
-{
- unsigned int code;
- unsigned int form;
- unsigned char *valp;
- struct Dwarf_CU *cu;
-} Dwarf_Attribute;
-
-
-/* Data block representation. */
-typedef struct
-{
- Dwarf_Word length;
- unsigned char *data;
-} Dwarf_Block;
-
-
-/* DIE information. */
-typedef struct
-{
- /* The offset can be computed from the address. */
- void *addr;
- struct Dwarf_CU *cu;
- Dwarf_Abbrev *abbrev;
- // XXX We'll see what other information will be needed.
- long int padding__;
-} Dwarf_Die;
-
-/* Returned to show the last DIE has be returned. */
-#define DWARF_END_DIE ((Dwarf_Die *) -1l)
-
-
-/* Global symbol information. */
-typedef struct
-{
- Dwarf_Off cu_offset;
- Dwarf_Off die_offset;
- const char *name;
-} Dwarf_Global;
-
-
-/* One operation in a DWARF location expression.
- A location expression is an array of these. */
-typedef struct
-{
- uint8_t atom; /* Operation */
- Dwarf_Word number; /* Operand */
- Dwarf_Word number2; /* Possible second operand */
- Dwarf_Word offset; /* Offset in location expression */
-} Dwarf_Op;
-
-
-/* This describes one Common Information Entry read from a CFI section.
- Pointers here point into the DATA->d_buf block passed to dwarf_next_cfi. */
-typedef struct
-{
- Dwarf_Off CIE_id; /* Always DW_CIE_ID_64 in Dwarf_CIE structures. */
-
- /* Instruction stream describing initial state used by FDEs. If
- we did not understand the whole augmentation string and it did
- not use 'z', then there might be more augmentation data here
- (and in FDEs) before the actual instructions. */
- const uint8_t *initial_instructions;
- const uint8_t *initial_instructions_end;
-
- Dwarf_Word code_alignment_factor;
- Dwarf_Sword data_alignment_factor;
- Dwarf_Word return_address_register;
-
- const char *augmentation; /* Augmentation string. */
-
- /* Augmentation data, might be NULL. The size is correct only if
- we understood the augmentation string sufficiently. */
- const uint8_t *augmentation_data;
- size_t augmentation_data_size;
- size_t fde_augmentation_data_size;
-} Dwarf_CIE;
-
-/* This describes one Frame Description Entry read from a CFI section.
- Pointers here point into the DATA->d_buf block passed to dwarf_next_cfi. */
-typedef struct
-{
- /* Section offset of CIE this FDE refers to. This will never be
- DW_CIE_ID_64 in an FDE. If this value is DW_CIE_ID_64, this is
- actually a Dwarf_CIE structure. */
- Dwarf_Off CIE_pointer;
-
- /* We can't really decode anything further without looking up the CIE
- and checking its augmentation string. Here follows the encoded
- initial_location and address_range, then any augmentation data,
- then the instruction stream. This FDE describes PC locations in
- the byte range [initial_location, initial_location+address_range).
- When the CIE augmentation string uses 'z', the augmentation data is
- a DW_FORM_block (self-sized). Otherwise, when we understand the
- augmentation string completely, fde_augmentation_data_size gives
- the number of bytes of augmentation data before the instructions. */
- const uint8_t *start;
- const uint8_t *end;
-} Dwarf_FDE;
-
-/* Each entry in a CFI section is either a CIE described by Dwarf_CIE or
- an FDE described by Dward_FDE. Check CIE_id to see which you have. */
-typedef union
-{
- Dwarf_Off CIE_id; /* Always DW_CIE_ID_64 in Dwarf_CIE structures. */
- Dwarf_CIE cie;
- Dwarf_FDE fde;
-} Dwarf_CFI_Entry;
-
-#define dwarf_cfi_cie_p(entry) ((entry)->cie.CIE_id == DW_CIE_ID_64)
-
-/* Opaque type representing a frame state described by CFI. */
-typedef struct Dwarf_Frame_s Dwarf_Frame;
-
-/* Opaque type representing a CFI section found in a DWARF or ELF file. */
-typedef struct Dwarf_CFI_s Dwarf_CFI;
-
-
-/* Handle for debug sessions. */
-typedef struct Dwarf Dwarf;
-
-
-/* Out-Of-Memory handler. */
-#if __GNUC__ < 4
-typedef void (*Dwarf_OOM) (void);
-#else
-typedef void (*__attribute__ ((noreturn)) Dwarf_OOM) (void);
-#endif
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Create a handle for a new debug session. */
-extern Dwarf *dwarf_begin (int fildes, Dwarf_Cmd cmd);
-
-/* Create a handle for a new debug session for an ELF file. */
-extern Dwarf *dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp);
-
-/* Retrieve ELF descriptor used for DWARF access. */
-extern Elf *dwarf_getelf (Dwarf *dwarf);
-
-/* Retieve DWARF descriptor used for a Dwarf_Die or Dwarf_Attribute.
- A Dwarf_Die or a Dwarf_Attribute is associated with a particular
- Dwarf_CU handle. This function returns the DWARF descriptor for
- that Dwarf_CU. */
-extern Dwarf *dwarf_cu_getdwarf (Dwarf_CU *cu);
-
-/* Retrieves the DWARF descriptor for debugaltlink data. Returns NULL
- if no alternate debug data has been supplied. */
-extern Dwarf *dwarf_getalt (Dwarf *main);
-
-/* Provides the data referenced by the .gnu_debugaltlink section. The
- caller should check that MAIN and ALT match (i.e., they have the
- same build ID). It is the responsibility of the caller to ensure
- that the data referenced by ALT stays valid while it is used by
- MAIN, until dwarf_setalt is called on MAIN with a different
- descriptor, or dwarf_end. */
-extern void dwarf_setalt (Dwarf *main, Dwarf *alt);
-
-/* Release debugging handling context. */
-extern int dwarf_end (Dwarf *dwarf);
-
-
-/* Get the data block for the .debug_info section. */
-extern Elf_Data *dwarf_getscn_info (Dwarf *dwarf);
-
-/* Read the header for the DWARF CU. */
-extern int dwarf_nextcu (Dwarf *dwarf, Dwarf_Off off, Dwarf_Off *next_off,
- size_t *header_sizep, Dwarf_Off *abbrev_offsetp,
- uint8_t *address_sizep, uint8_t *offset_sizep)
- __nonnull_attribute__ (3);
-
-/* Read the header of a DWARF CU or type unit. If TYPE_SIGNATUREP is not
- null, this reads a type unit from the .debug_types section; otherwise
- this reads a CU from the .debug_info section. */
-extern int dwarf_next_unit (Dwarf *dwarf, Dwarf_Off off, Dwarf_Off *next_off,
- size_t *header_sizep, Dwarf_Half *versionp,
- Dwarf_Off *abbrev_offsetp,
- uint8_t *address_sizep, uint8_t *offset_sizep,
- uint64_t *type_signaturep, Dwarf_Off *type_offsetp)
- __nonnull_attribute__ (3);
-
-
-/* Decode one DWARF CFI entry (CIE or FDE) from the raw section data.
- The E_IDENT from the originating ELF file indicates the address
- size and byte order used in the CFI section contained in DATA;
- EH_FRAME_P should be true for .eh_frame format and false for
- .debug_frame format. OFFSET is the byte position in the section
- to start at; on return *NEXT_OFFSET is filled in with the byte
- position immediately after this entry.
-
- On success, returns 0 and fills in *ENTRY; use dwarf_cfi_cie_p to
- see whether ENTRY->cie or ENTRY->fde is valid.
-
- On errors, returns -1. Some format errors will permit safely
- skipping to the next CFI entry though the current one is unusable.
- In that case, *NEXT_OFF will be updated before a -1 return.
-
- If there are no more CFI entries left in the section,
- returns 1 and sets *NEXT_OFFSET to (Dwarf_Off) -1. */
-extern int dwarf_next_cfi (const unsigned char e_ident[],
- Elf_Data *data, bool eh_frame_p,
- Dwarf_Off offset, Dwarf_Off *next_offset,
- Dwarf_CFI_Entry *entry)
- __nonnull_attribute__ (1, 2, 5, 6);
-
-/* Use the CFI in the DWARF .debug_frame section.
- Returns NULL if there is no such section (not an error).
- The pointer returned can be used until dwarf_end is called on DWARF,
- and must not be passed to dwarf_cfi_end.
- Calling this more than once returns the same pointer. */
-extern Dwarf_CFI *dwarf_getcfi (Dwarf *dwarf);
-
-/* Use the CFI in the ELF file's exception-handling data.
- Returns NULL if there is no such data.
- The pointer returned can be used until elf_end is called on ELF,
- and must be passed to dwarf_cfi_end before then.
- Calling this more than once allocates independent data structures. */
-extern Dwarf_CFI *dwarf_getcfi_elf (Elf *elf);
-
-/* Release resources allocated by dwarf_getcfi_elf. */
-extern int dwarf_cfi_end (Dwarf_CFI *cache);
-
-
-/* Return DIE at given offset in .debug_info section. */
-extern Dwarf_Die *dwarf_offdie (Dwarf *dbg, Dwarf_Off offset,
- Dwarf_Die *result) __nonnull_attribute__ (3);
-
-/* Return DIE at given offset in .debug_types section. */
-extern Dwarf_Die *dwarf_offdie_types (Dwarf *dbg, Dwarf_Off offset,
- Dwarf_Die *result)
- __nonnull_attribute__ (3);
-
-/* Return offset of DIE. */
-extern Dwarf_Off dwarf_dieoffset (Dwarf_Die *die);
-
-/* Return offset of DIE in CU. */
-extern Dwarf_Off dwarf_cuoffset (Dwarf_Die *die);
-
-/* Return CU DIE containing given DIE. */
-extern Dwarf_Die *dwarf_diecu (Dwarf_Die *die, Dwarf_Die *result,
- uint8_t *address_sizep, uint8_t *offset_sizep)
- __nonnull_attribute__ (2);
-
-/* Return the CU DIE and the header info associated with a Dwarf_Die
- or Dwarf_Attribute. A Dwarf_Die or a Dwarf_Attribute is associated
- with a particular Dwarf_CU handle. This function returns the CU or
- type unit DIE and header information for that Dwarf_CU. The
- returned DIE is either a compile_unit, partial_unit or type_unit.
- If it is a type_unit, then the type signature and type offset are
- also provided, otherwise type_offset will be set to zero. See also
- dwarf_diecu and dwarf_next_unit. */
-extern Dwarf_Die *dwarf_cu_die (Dwarf_CU *cu, Dwarf_Die *result,
- Dwarf_Half *versionp,
- Dwarf_Off *abbrev_offsetp,
- uint8_t *address_sizep,
- uint8_t *offset_sizep,
- uint64_t *type_signaturep,
- Dwarf_Off *type_offsetp)
- __nonnull_attribute__ (2);
-
-/* Return CU DIE containing given address. */
-extern Dwarf_Die *dwarf_addrdie (Dwarf *dbg, Dwarf_Addr addr,
- Dwarf_Die *result) __nonnull_attribute__ (3);
-
-/* Return child of current DIE. */
-extern int dwarf_child (Dwarf_Die *die, Dwarf_Die *result)
- __nonnull_attribute__ (2);
-
-/* Locates the first sibling of DIE and places it in RESULT.
- Returns 0 if a sibling was found, -1 if something went wrong.
- Returns 1 if no sibling could be found and, if RESULT is not
- the same as DIE, it sets RESULT->addr to the address of the
- (non-sibling) DIE that follows this one, or NULL if this DIE
- was the last one in the compilation unit. */
-extern int dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result)
- __nonnull_attribute__ (2);
-
-/* For type aliases and qualifier type DIEs follow the DW_AT_type
- attribute (recursively) and return the underlying type Dwarf_Die.
- Returns 0 when RESULT contains a Dwarf_Die (possibly equal to the
- given DIE) that isn't a type alias or qualifier type. Returns 1
- when RESULT contains a type alias or qualifier Dwarf_Die that
- couldn't be peeled further (it doesn't have a DW_TAG_type
- attribute). Returns -1 when an error occured.
-
- The current DWARF specification defines one type alias tag
- (DW_TAG_typedef) and three qualifier type tags (DW_TAG_const_type,
- DW_TAG_volatile_type, DW_TAG_restrict_type). A future version of
- this function might peel other alias or qualifier type tags if a
- future DWARF version or GNU extension defines other type aliases or
- qualifier type tags that don't modify or change the structural
- layout of the underlying type. */
-extern int dwarf_peel_type (Dwarf_Die *die, Dwarf_Die *result)
- __nonnull_attribute__ (2);
-
-/* Check whether the DIE has children. */
-extern int dwarf_haschildren (Dwarf_Die *die) __nonnull_attribute__ (1);
-
-/* Walks the attributes of DIE, starting at the one OFFSET bytes in,
- calling the CALLBACK function for each one. Stops if the callback
- function ever returns a value other than DWARF_CB_OK and returns the
- offset of the offending attribute. If the end of the attributes
- is reached 1 is returned. If something goes wrong -1 is returned and
- the dwarf error number is set. */
-extern ptrdiff_t dwarf_getattrs (Dwarf_Die *die,
- int (*callback) (Dwarf_Attribute *, void *),
- void *arg, ptrdiff_t offset)
- __nonnull_attribute__ (2);
-
-/* Return tag of given DIE. */
-extern int dwarf_tag (Dwarf_Die *die) __nonnull_attribute__ (1);
-
-
-/* Return specific attribute of DIE. */
-extern Dwarf_Attribute *dwarf_attr (Dwarf_Die *die, unsigned int search_name,
- Dwarf_Attribute *result)
- __nonnull_attribute__ (3);
-
-/* Check whether given DIE has specific attribute. */
-extern int dwarf_hasattr (Dwarf_Die *die, unsigned int search_name);
-
-/* These are the same as dwarf_attr and dwarf_hasattr, respectively,
- but they resolve an indirect attribute through DW_AT_abstract_origin. */
-extern Dwarf_Attribute *dwarf_attr_integrate (Dwarf_Die *die,
- unsigned int search_name,
- Dwarf_Attribute *result)
- __nonnull_attribute__ (3);
-extern int dwarf_hasattr_integrate (Dwarf_Die *die, unsigned int search_name);
-
-
-
-
-/* Check whether given attribute has specific form. */
-extern int dwarf_hasform (Dwarf_Attribute *attr, unsigned int search_form);
-
-/* Return attribute code of given attribute. */
-extern unsigned int dwarf_whatattr (Dwarf_Attribute *attr);
-
-/* Return form code of given attribute. */
-extern unsigned int dwarf_whatform (Dwarf_Attribute *attr);
-
-
-/* Return string associated with given attribute. */
-extern const char *dwarf_formstring (Dwarf_Attribute *attrp);
-
-/* Return unsigned constant represented by attribute. */
-extern int dwarf_formudata (Dwarf_Attribute *attr, Dwarf_Word *return_uval)
- __nonnull_attribute__ (2);
-
-/* Return signed constant represented by attribute. */
-extern int dwarf_formsdata (Dwarf_Attribute *attr, Dwarf_Sword *return_uval)
- __nonnull_attribute__ (2);
-
-/* Return address represented by attribute. */
-extern int dwarf_formaddr (Dwarf_Attribute *attr, Dwarf_Addr *return_addr)
- __nonnull_attribute__ (2);
-
-/* This function is deprecated. Always use dwarf_formref_die instead.
- Return reference offset represented by attribute. */
-extern int dwarf_formref (Dwarf_Attribute *attr, Dwarf_Off *return_offset)
- __nonnull_attribute__ (2) __deprecated_attribute__;
-
-/* Look up the DIE in a reference-form attribute. */
-extern Dwarf_Die *dwarf_formref_die (Dwarf_Attribute *attr, Dwarf_Die *die_mem)
- __nonnull_attribute__ (2);
-
-/* Return block represented by attribute. */
-extern int dwarf_formblock (Dwarf_Attribute *attr, Dwarf_Block *return_block)
- __nonnull_attribute__ (2);
-
-/* Return flag represented by attribute. */
-extern int dwarf_formflag (Dwarf_Attribute *attr, bool *return_bool)
- __nonnull_attribute__ (2);
-
-
-/* Simplified attribute value access functions. */
-
-/* Return string in name attribute of DIE. */
-extern const char *dwarf_diename (Dwarf_Die *die);
-
-/* Return high PC attribute of DIE. */
-extern int dwarf_highpc (Dwarf_Die *die, Dwarf_Addr *return_addr)
- __nonnull_attribute__ (2);
-
-/* Return low PC attribute of DIE. */
-extern int dwarf_lowpc (Dwarf_Die *die, Dwarf_Addr *return_addr)
- __nonnull_attribute__ (2);
-
-/* Return entry_pc or low_pc attribute of DIE. */
-extern int dwarf_entrypc (Dwarf_Die *die, Dwarf_Addr *return_addr)
- __nonnull_attribute__ (2);
-
-/* Return 1 if DIE's lowpc/highpc or ranges attributes match the PC address,
- 0 if not, or -1 for errors. */
-extern int dwarf_haspc (Dwarf_Die *die, Dwarf_Addr pc);
-
-/* Enumerate the PC address ranges covered by this DIE, covering all
- addresses where dwarf_haspc returns true. In the first call OFFSET
- should be zero and *BASEP need not be initialized. Returns -1 for
- errors, zero when there are no more address ranges to report, or a
- nonzero OFFSET value to pass to the next call. Each subsequent call
- must preserve *BASEP from the prior call. Successful calls fill in
- *STARTP and *ENDP with a contiguous address range. */
-extern ptrdiff_t dwarf_ranges (Dwarf_Die *die,
- ptrdiff_t offset, Dwarf_Addr *basep,
- Dwarf_Addr *startp, Dwarf_Addr *endp);
-
-
-/* Return byte size attribute of DIE. */
-extern int dwarf_bytesize (Dwarf_Die *die);
-
-/* Return bit size attribute of DIE. */
-extern int dwarf_bitsize (Dwarf_Die *die);
-
-/* Return bit offset attribute of DIE. */
-extern int dwarf_bitoffset (Dwarf_Die *die);
-
-/* Return array order attribute of DIE. */
-extern int dwarf_arrayorder (Dwarf_Die *die);
-
-/* Return source language attribute of DIE. */
-extern int dwarf_srclang (Dwarf_Die *die);
-
-
-/* Get abbreviation at given offset for given DIE. */
-extern Dwarf_Abbrev *dwarf_getabbrev (Dwarf_Die *die, Dwarf_Off offset,
- size_t *lengthp);
-
-/* Get abbreviation at given offset in .debug_abbrev section. */
-extern int dwarf_offabbrev (Dwarf *dbg, Dwarf_Off offset, size_t *lengthp,
- Dwarf_Abbrev *abbrevp)
- __nonnull_attribute__ (4);
-
-/* Get abbreviation code. */
-extern unsigned int dwarf_getabbrevcode (Dwarf_Abbrev *abbrev);
-
-/* Get abbreviation tag. */
-extern unsigned int dwarf_getabbrevtag (Dwarf_Abbrev *abbrev);
-
-/* Return true if abbreviation is children flag set. */
-extern int dwarf_abbrevhaschildren (Dwarf_Abbrev *abbrev);
-
-/* Get number of attributes of abbreviation. */
-extern int dwarf_getattrcnt (Dwarf_Abbrev *abbrev, size_t *attrcntp)
- __nonnull_attribute__ (2);
-
-/* Get specific attribute of abbreviation. */
-extern int dwarf_getabbrevattr (Dwarf_Abbrev *abbrev, size_t idx,
- unsigned int *namep, unsigned int *formp,
- Dwarf_Off *offset);
-
-
-/* Get string from-debug_str section. */
-extern const char *dwarf_getstring (Dwarf *dbg, Dwarf_Off offset,
- size_t *lenp);
-
-
-/* Get public symbol information. */
-extern ptrdiff_t dwarf_getpubnames (Dwarf *dbg,
- int (*callback) (Dwarf *, Dwarf_Global *,
- void *),
- void *arg, ptrdiff_t offset)
- __nonnull_attribute__ (2);
-
-
-/* Get source file information for CU. */
-extern int dwarf_getsrclines (Dwarf_Die *cudie, Dwarf_Lines **lines,
- size_t *nlines) __nonnull_attribute__ (2, 3);
-
-/* Return one of the source lines of the CU. */
-extern Dwarf_Line *dwarf_onesrcline (Dwarf_Lines *lines, size_t idx);
-
-/* Get the file source files used in the CU. */
-extern int dwarf_getsrcfiles (Dwarf_Die *cudie, Dwarf_Files **files,
- size_t *nfiles)
- __nonnull_attribute__ (2);
-
-
-/* Get source for address in CU. */
-extern Dwarf_Line *dwarf_getsrc_die (Dwarf_Die *cudie, Dwarf_Addr addr);
-
-/* Get source for file and line number. */
-extern int dwarf_getsrc_file (Dwarf *dbg, const char *fname, int line, int col,
- Dwarf_Line ***srcsp, size_t *nsrcs)
- __nonnull_attribute__ (2, 5, 6);
-
-
-/* Return line address. */
-extern int dwarf_lineaddr (Dwarf_Line *line, Dwarf_Addr *addrp);
-
-/* Return line VLIW operation index. */
-extern int dwarf_lineop_index (Dwarf_Line *line, unsigned int *op_indexp);
-
-/* Return line number. */
-extern int dwarf_lineno (Dwarf_Line *line, int *linep)
- __nonnull_attribute__ (2);
-
-/* Return column in line. */
-extern int dwarf_linecol (Dwarf_Line *line, int *colp)
- __nonnull_attribute__ (2);
-
-/* Return true if record is for beginning of a statement. */
-extern int dwarf_linebeginstatement (Dwarf_Line *line, bool *flagp)
- __nonnull_attribute__ (2);
-
-/* Return true if record is for end of sequence. */
-extern int dwarf_lineendsequence (Dwarf_Line *line, bool *flagp)
- __nonnull_attribute__ (2);
-
-/* Return true if record is for beginning of a basic block. */
-extern int dwarf_lineblock (Dwarf_Line *line, bool *flagp)
- __nonnull_attribute__ (2);
-
-/* Return true if record is for end of prologue. */
-extern int dwarf_lineprologueend (Dwarf_Line *line, bool *flagp)
- __nonnull_attribute__ (2);
-
-/* Return true if record is for beginning of epilogue. */
-extern int dwarf_lineepiloguebegin (Dwarf_Line *line, bool *flagp)
- __nonnull_attribute__ (2);
-
-/* Return instruction-set architecture in this record. */
-extern int dwarf_lineisa (Dwarf_Line *line, unsigned int *isap)
- __nonnull_attribute__ (2);
-
-/* Return code path discriminator in this record. */
-extern int dwarf_linediscriminator (Dwarf_Line *line, unsigned int *discp)
- __nonnull_attribute__ (2);
-
-
-/* Find line information for address. */
-extern const char *dwarf_linesrc (Dwarf_Line *line,
- Dwarf_Word *mtime, Dwarf_Word *length);
-
-/* Return file information. */
-extern const char *dwarf_filesrc (Dwarf_Files *file, size_t idx,
- Dwarf_Word *mtime, Dwarf_Word *length);
-
-/* Return the directory list used in the file information extracted.
- (*RESULT)[0] is the CU's DW_AT_comp_dir value, and may be null.
- (*RESULT)[0..*NDIRS-1] are the compile-time include directory path
- encoded by the compiler. */
-extern int dwarf_getsrcdirs (Dwarf_Files *files,
- const char *const **result, size_t *ndirs)
- __nonnull_attribute__ (2, 3);
-
-
-/* Return location expression, decoded as a list of operations. */
-extern int dwarf_getlocation (Dwarf_Attribute *attr, Dwarf_Op **expr,
- size_t *exprlen) __nonnull_attribute__ (2, 3);
-
-/* Return location expressions. If the attribute uses a location list,
- ADDRESS selects the relevant location expressions from the list.
- There can be multiple matches, resulting in multiple expressions to
- return. EXPRS and EXPRLENS are parallel arrays of NLOCS slots to
- fill in. Returns the number of locations filled in, or -1 for
- errors. If EXPRS is a null pointer, stores nothing and returns the
- total number of locations. A return value of zero means that the
- location list indicated no value is accessible. */
-extern int dwarf_getlocation_addr (Dwarf_Attribute *attr, Dwarf_Addr address,
- Dwarf_Op **exprs, size_t *exprlens,
- size_t nlocs);
-
-/* Enumerate the locations ranges and descriptions covered by the
- given attribute. In the first call OFFSET should be zero and
- *BASEP need not be initialized. Returns -1 for errors, zero when
- there are no more locations to report, or a nonzero OFFSET
- value to pass to the next call. Each subsequent call must preserve
- *BASEP from the prior call. Successful calls fill in *STARTP and
- *ENDP with a contiguous address range and *EXPR with a pointer to
- an array of operations with length *EXPRLEN. If the attribute
- describes a single location description and not a location list the
- first call (with OFFSET zero) will return the location description
- in *EXPR with *STARTP set to zero and *ENDP set to minus one. */
-extern ptrdiff_t dwarf_getlocations (Dwarf_Attribute *attr,
- ptrdiff_t offset, Dwarf_Addr *basep,
- Dwarf_Addr *startp, Dwarf_Addr *endp,
- Dwarf_Op **expr, size_t *exprlen);
-
-/* Return the block associated with a DW_OP_implicit_value operation.
- The OP pointer must point into an expression that dwarf_getlocation
- or dwarf_getlocation_addr has returned given the same ATTR. */
-extern int dwarf_getlocation_implicit_value (Dwarf_Attribute *attr,
- const Dwarf_Op *op,
- Dwarf_Block *return_block)
- __nonnull_attribute__ (2, 3);
-
-/* Return the attribute indicated by a DW_OP_GNU_implicit_pointer operation.
- The OP pointer must point into an expression that dwarf_getlocation
- or dwarf_getlocation_addr has returned given the same ATTR.
- The result is the DW_AT_location or DW_AT_const_value attribute
- of the OP->number DIE. */
-extern int dwarf_getlocation_implicit_pointer (Dwarf_Attribute *attr,
- const Dwarf_Op *op,
- Dwarf_Attribute *result)
- __nonnull_attribute__ (2, 3);
-
-/* Return the DIE associated with an operation such as
- DW_OP_GNU_implicit_pointer, DW_OP_GNU_parameter_ref, DW_OP_GNU_convert,
- DW_OP_GNU_reinterpret, DW_OP_GNU_const_type, DW_OP_GNU_regval_type or
- DW_OP_GNU_deref_type. The OP pointer must point into an expression that
- dwarf_getlocation or dwarf_getlocation_addr has returned given the same
- ATTR. The RESULT is a DIE that expresses a type or value needed by the
- given OP. */
-extern int dwarf_getlocation_die (Dwarf_Attribute *attr,
- const Dwarf_Op *op,
- Dwarf_Die *result)
- __nonnull_attribute__ (2, 3);
-
-/* Return the attribute expressing a value associated with an operation such
- as DW_OP_implicit_value, DW_OP_GNU_entry_value or DW_OP_GNU_const_type.
- The OP pointer must point into an expression that dwarf_getlocation
- or dwarf_getlocation_addr has returned given the same ATTR.
- The RESULT is a value expressed by an attribute such as DW_AT_location
- or DW_AT_const_value. */
-extern int dwarf_getlocation_attr (Dwarf_Attribute *attr,
- const Dwarf_Op *op,
- Dwarf_Attribute *result)
- __nonnull_attribute__ (2, 3);
-
-
-/* Compute the byte-size of a type DIE according to DWARF rules.
- For most types, this is just DW_AT_byte_size.
- For DW_TAG_array_type it can apply much more complex rules. */
-extern int dwarf_aggregate_size (Dwarf_Die *die, Dwarf_Word *size);
-
-
-/* Return scope DIEs containing PC address.
- Sets *SCOPES to a malloc'd array of Dwarf_Die structures,
- and returns the number of elements in the array.
- (*SCOPES)[0] is the DIE for the innermost scope containing PC,
- (*SCOPES)[1] is the DIE for the scope containing that scope, and so on.
- Returns -1 for errors or 0 if no scopes match PC. */
-extern int dwarf_getscopes (Dwarf_Die *cudie, Dwarf_Addr pc,
- Dwarf_Die **scopes);
-
-/* Return scope DIEs containing the given DIE.
- Sets *SCOPES to a malloc'd array of Dwarf_Die structures,
- and returns the number of elements in the array.
- (*SCOPES)[0] is a copy of DIE.
- (*SCOPES)[1] is the DIE for the scope containing that scope, and so on.
- Returns -1 for errors or 0 if DIE is not found in any scope entry. */
-extern int dwarf_getscopes_die (Dwarf_Die *die, Dwarf_Die **scopes);
-
-
-/* Search SCOPES[0..NSCOPES-1] for a variable called NAME.
- Ignore the first SKIP_SHADOWS scopes that match the name.
- If MATCH_FILE is not null, accept only declaration in that source file;
- if MATCH_LINENO or MATCH_LINECOL are also nonzero, accept only declaration
- at that line and column.
-
- If successful, fill in *RESULT with the DIE of the variable found,
- and return N where SCOPES[N] is the scope defining the variable.
- Return -1 for errors or -2 for no matching variable found. */
-extern int dwarf_getscopevar (Dwarf_Die *scopes, int nscopes,
- const char *name, int skip_shadows,
- const char *match_file,
- int match_lineno, int match_linecol,
- Dwarf_Die *result);
-
-
-
-/* Return list address ranges. */
-extern int dwarf_getaranges (Dwarf *dbg, Dwarf_Aranges **aranges,
- size_t *naranges)
- __nonnull_attribute__ (2);
-
-/* Return one of the address range entries. */
-extern Dwarf_Arange *dwarf_onearange (Dwarf_Aranges *aranges, size_t idx);
-
-/* Return information in address range record. */
-extern int dwarf_getarangeinfo (Dwarf_Arange *arange, Dwarf_Addr *addrp,
- Dwarf_Word *lengthp, Dwarf_Off *offsetp);
-
-/* Get address range which includes given address. */
-extern Dwarf_Arange *dwarf_getarange_addr (Dwarf_Aranges *aranges,
- Dwarf_Addr addr);
-
-
-
-/* Get functions in CUDIE. The given callback will be called for all
- defining DW_TAG_subprograms in the CU DIE tree. If the callback
- returns DWARF_CB_ABORT the return value can be used as offset argument
- to resume the function to find all remaining functions (this is not
- really recommended, since it needs to rewalk the CU DIE tree first till
- that offset is found again). If the callback returns DWARF_CB_OK
- dwarf_getfuncs will not return but keep calling the callback for each
- function DIE it finds. Pass zero for offset on the first call to walk
- the full CU DIE tree. If no more functions can be found and the callback
- returned DWARF_CB_OK then the function returns zero. */
-extern ptrdiff_t dwarf_getfuncs (Dwarf_Die *cudie,
- int (*callback) (Dwarf_Die *, void *),
- void *arg, ptrdiff_t offset);
-
-
-/* Return file name containing definition of the given declaration. */
-extern const char *dwarf_decl_file (Dwarf_Die *decl);
-
-/* Get line number of beginning of given declaration. */
-extern int dwarf_decl_line (Dwarf_Die *decl, int *linep)
- __nonnull_attribute__ (2);
-
-/* Get column number of beginning of given declaration. */
-extern int dwarf_decl_column (Dwarf_Die *decl, int *colp)
- __nonnull_attribute__ (2);
-
-
-/* Return nonzero if given function is an abstract inline definition. */
-extern int dwarf_func_inline (Dwarf_Die *func);
-
-/* Find each concrete inlined instance of the abstract inline definition. */
-extern int dwarf_func_inline_instances (Dwarf_Die *func,
- int (*callback) (Dwarf_Die *, void *),
- void *arg);
-
-
-/* Find the appropriate PC location or locations for function entry
- breakpoints for the given DW_TAG_subprogram DIE. Returns -1 for errors.
- On success, returns the number of breakpoint locations (never zero)
- and sets *BKPTS to a malloc'd vector of addresses. */
-extern int dwarf_entry_breakpoints (Dwarf_Die *die, Dwarf_Addr **bkpts);
-
-
-/* Iterate through the macro unit referenced by CUDIE and call
- CALLBACK for each macro information entry. To start the iteration,
- one would pass DWARF_GETMACROS_START for TOKEN.
-
- The iteration continues while CALLBACK returns DWARF_CB_OK. If the
- callback returns DWARF_CB_ABORT, the iteration stops and a
- continuation token is returned, which can be used to restart the
- iteration at the point where it ended. Returns -1 for errors or 0
- if there are no more macro entries.
-
- Note that the Dwarf_Macro pointer passed to the callback is only
- valid for the duration of the callback invocation.
-
- For backward compatibility, a token of 0 is accepted for starting
- the iteration as well, but in that case this interface will refuse
- to serve opcode 0xff from .debug_macro sections. Such opcode would
- be considered invalid and would cause dwarf_getmacros to return
- with error. */
-#define DWARF_GETMACROS_START PTRDIFF_MIN
-extern ptrdiff_t dwarf_getmacros (Dwarf_Die *cudie,
- int (*callback) (Dwarf_Macro *, void *),
- void *arg, ptrdiff_t token)
- __nonnull_attribute__ (2);
-
-/* This is similar in operation to dwarf_getmacros, but selects the
- unit to iterate through by offset instead of by CU, and always
- iterates .debug_macro. This can be used for handling
- DW_MACRO_GNU_transparent_include's or similar opcodes.
-
- TOKEN value of DWARF_GETMACROS_START can be used to start the
- iteration.
-
- It is not appropriate to obtain macro unit offset by hand from a CU
- DIE and then request iteration through this interface. The reason
- for this is that if a dwarf_macro_getsrcfiles is later called,
- there would be no way to figure out what DW_AT_comp_dir was present
- on the CU DIE, and file names referenced in either the macro unit
- itself, or the .debug_line unit that it references, might be wrong.
- Use dwarf_getmacros. */
-extern ptrdiff_t dwarf_getmacros_off (Dwarf *dbg, Dwarf_Off macoff,
- int (*callback) (Dwarf_Macro *, void *),
- void *arg, ptrdiff_t token)
- __nonnull_attribute__ (3);
-
-/* Get the source files used by the macro entry. You shouldn't assume
- that Dwarf_Files references will remain valid after MACRO becomes
- invalid. (Which is to say it's only valid within the
- dwarf_getmacros* callback.) Returns 0 for success or a negative
- value in case of an error. */
-extern int dwarf_macro_getsrcfiles (Dwarf *dbg, Dwarf_Macro *macro,
- Dwarf_Files **files, size_t *nfiles)
- __nonnull_attribute__ (2, 3, 4);
-
-/* Return macro opcode. That's a constant that can be either from
- DW_MACINFO_* domain or DW_MACRO_GNU_* domain. The two domains have
- compatible values, so it's OK to use either of them for
- comparisons. The only differences is 0xff, which could be either
- DW_MACINFO_vendor_ext or a vendor-defined DW_MACRO_* constant. One
- would need to look if the CU DIE which the iteration was requested
- for has attribute DW_AT_macro_info, or either of DW_AT_GNU_macros
- or DW_AT_macros to differentiate the two interpretations. */
-extern int dwarf_macro_opcode (Dwarf_Macro *macro, unsigned int *opcodep)
- __nonnull_attribute__ (2);
-
-/* Get number of parameters of MACRO and store it to *PARAMCNTP. */
-extern int dwarf_macro_getparamcnt (Dwarf_Macro *macro, size_t *paramcntp);
-
-/* Get IDX-th parameter of MACRO (numbered from zero), and stores it
- to *ATTRIBUTE. Returns 0 on success or -1 for errors.
-
- After a successful call, you can query ATTRIBUTE by dwarf_whatform
- to determine which of the dwarf_formX calls to make to get actual
- value out of ATTRIBUTE. Note that calling dwarf_whatattr is not
- meaningful for pseudo-attributes formed this way. */
-extern int dwarf_macro_param (Dwarf_Macro *macro, size_t idx,
- Dwarf_Attribute *attribute);
-
-/* Return macro parameter with index 0. This will return -1 if the
- parameter is not an integral value. Use dwarf_macro_param for more
- general access. */
-extern int dwarf_macro_param1 (Dwarf_Macro *macro, Dwarf_Word *paramp)
- __nonnull_attribute__ (2);
-
-/* Return macro parameter with index 1. This will return -1 if the
- parameter is not an integral or string value. Use
- dwarf_macro_param for more general access. */
-extern int dwarf_macro_param2 (Dwarf_Macro *macro, Dwarf_Word *paramp,
- const char **strp);
-
-/* Compute what's known about a call frame when the PC is at ADDRESS.
- Returns 0 for success or -1 for errors.
- On success, *FRAME is a malloc'd pointer. */
-extern int dwarf_cfi_addrframe (Dwarf_CFI *cache,
- Dwarf_Addr address, Dwarf_Frame **frame)
- __nonnull_attribute__ (3);
-
-/* Return the DWARF register number used in FRAME to denote
- the return address in FRAME's caller frame. The remaining
- arguments can be non-null to fill in more information.
-
- Fill [*START, *END) with the PC range to which FRAME's information applies.
- Fill in *SIGNALP to indicate whether this is a signal-handling frame.
- If true, this is the implicit call frame that calls a signal handler.
- This frame's "caller" is actually the interrupted state, not a call;
- its return address is an exact PC, not a PC after a call instruction. */
-extern int dwarf_frame_info (Dwarf_Frame *frame,
- Dwarf_Addr *start, Dwarf_Addr *end, bool *signalp);
-
-/* Return a DWARF expression that yields the Canonical Frame Address at
- this frame state. Returns -1 for errors, or zero for success, with
- *NOPS set to the number of operations stored at *OPS. That pointer
- can be used only as long as FRAME is alive and unchanged. *NOPS is
- zero if the CFA cannot be determined here. Note that if nonempty,
- *OPS is a DWARF expression, not a location description--append
- DW_OP_stack_value to a get a location description for the CFA. */
-extern int dwarf_frame_cfa (Dwarf_Frame *frame, Dwarf_Op **ops, size_t *nops)
- __nonnull_attribute__ (2);
-
-/* Deliver a DWARF location description that yields the location or
- value of DWARF register number REGNO in the state described by FRAME.
-
- Returns -1 for errors or zero for success, setting *NOPS to the
- number of operations in the array stored at *OPS. Note the last
- operation is DW_OP_stack_value if there is no mutable location but
- only a computable value.
-
- *NOPS zero with *OPS set to OPS_MEM means CFI says the caller's
- REGNO is "undefined", i.e. it's call-clobbered and cannot be recovered.
-
- *NOPS zero with *OPS set to a null pointer means CFI says the
- caller's REGNO is "same_value", i.e. this frame did not change it;
- ask the caller frame where to find it.
-
- For common simple expressions *OPS is OPS_MEM. For arbitrary DWARF
- expressions in the CFI, *OPS is an internal pointer that can be used as
- long as the Dwarf_CFI used to create FRAME remains alive. */
-extern int dwarf_frame_register (Dwarf_Frame *frame, int regno,
- Dwarf_Op ops_mem[3],
- Dwarf_Op **ops, size_t *nops)
- __nonnull_attribute__ (3, 4, 5);
-
-
-/* Return error code of last failing function call. This value is kept
- separately for each thread. */
-extern int dwarf_errno (void);
-
-/* Return error string for ERROR. If ERROR is zero, return error string
- for most recent error or NULL is none occurred. If ERROR is -1 the
- behaviour is similar to the last case except that not NULL but a legal
- string is returned. */
-extern const char *dwarf_errmsg (int err);
-
-
-/* Register new Out-Of-Memory handler. The old handler is returned. */
-extern Dwarf_OOM dwarf_new_oom_handler (Dwarf *dbg, Dwarf_OOM handler);
-
-
-/* Inline optimizations. */
-#ifdef __OPTIMIZE__
-/* Return attribute code of given attribute. */
-__libdw_extern_inline unsigned int
-dwarf_whatattr (Dwarf_Attribute *attr)
-{
- return attr == NULL ? 0 : attr->code;
-}
-
-/* Return attribute code of given attribute. */
-__libdw_extern_inline unsigned int
-dwarf_whatform (Dwarf_Attribute *attr)
-{
- return attr == NULL ? 0 : attr->form;
-}
-#endif /* Optimize. */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* libdw.h */
diff --git a/src/libdw/libdw.map b/src/libdw/libdw.map
deleted file mode 100644
index 1d4cbb0c..00000000
--- a/src/libdw/libdw.map
+++ /dev/null
@@ -1,324 +0,0 @@
-ELFUTILS_0 { };
-ELFUTILS_0.122 {
- global:
- dwarf_abbrevhaschildren;
- dwarf_addrdie;
- dwarf_arrayorder;
- dwarf_attr;
- dwarf_attr_integrate;
- dwarf_begin;
- dwarf_begin_elf;
- dwarf_bitoffset;
- dwarf_bitsize;
- dwarf_bytesize;
- dwarf_child;
- dwarf_cuoffset;
- dwarf_decl_column;
- dwarf_decl_file;
- dwarf_decl_line;
- dwarf_diecu;
- dwarf_diename;
- dwarf_dieoffset;
- dwarf_end;
- dwarf_entry_breakpoints;
- dwarf_entrypc;
- dwarf_errmsg;
- dwarf_errno;
- dwarf_filesrc;
- dwarf_formaddr;
- dwarf_formblock;
- dwarf_formflag;
- dwarf_formref;
- dwarf_formref_die;
- dwarf_formsdata;
- dwarf_formstring;
- dwarf_formudata;
- dwarf_func_inline;
- dwarf_func_inline_instances;
- dwarf_getabbrev;
- dwarf_getabbrevattr;
- dwarf_getabbrevcode;
- dwarf_getabbrevtag;
- dwarf_getarange_addr;
- dwarf_getarangeinfo;
- dwarf_getaranges;
- dwarf_getattrcnt;
- dwarf_getattrs;
- dwarf_getfuncs;
- dwarf_getlocation;
- dwarf_getlocation_addr;
- dwarf_getmacros;
- dwarf_getpubnames;
- dwarf_getscn_info;
- dwarf_getscopes;
- dwarf_getscopes_die;
- dwarf_getscopevar;
- dwarf_getsrc_die;
- dwarf_getsrc_file;
- dwarf_getsrcfiles;
- dwarf_getsrclines;
- dwarf_getstring;
- dwarf_hasattr;
- dwarf_hasattr_integrate;
- dwarf_haschildren;
- dwarf_hasform;
- dwarf_haspc;
- dwarf_highpc;
- dwarf_lineaddr;
- dwarf_linebeginstatement;
- dwarf_lineblock;
- dwarf_linecol;
- dwarf_lineendsequence;
- dwarf_lineepiloguebegin;
- dwarf_lineno;
- dwarf_lineprologueend;
- dwarf_linesrc;
- dwarf_lowpc;
- dwarf_macro_opcode;
- dwarf_macro_param1;
- dwarf_macro_param2;
- dwarf_new_oom_handler;
- dwarf_nextcu;
- dwarf_offabbrev;
- dwarf_offdie;
- dwarf_onearange;
- dwarf_onesrcline;
- dwarf_ranges;
- dwarf_siblingof;
- dwarf_srclang;
- dwarf_tag;
- dwarf_whatattr;
- dwarf_whatform;
-
- # libdwfl_pic.a contributes these symbols.
- dwfl_addrdie;
- dwfl_addrdwarf;
- dwfl_addrmodule;
- dwfl_begin;
- dwfl_cumodule;
- dwfl_end;
- dwfl_errmsg;
- dwfl_errno;
- dwfl_getdwarf;
- dwfl_getmodules;
- dwfl_getsrc;
- dwfl_getsrclines;
- dwfl_line_comp_dir;
- dwfl_linecu;
- dwfl_lineinfo;
- dwfl_linemodule;
- dwfl_linux_kernel_find_elf;
- dwfl_linux_kernel_module_section_address;
- dwfl_linux_kernel_report_kernel;
- dwfl_linux_kernel_report_modules;
- dwfl_linux_kernel_report_offline;
- dwfl_linux_proc_find_elf;
- dwfl_linux_proc_maps_report;
- dwfl_linux_proc_report;
- dwfl_module_addrdie;
- dwfl_module_addrname;
- dwfl_module_getdwarf;
- dwfl_module_getelf;
- dwfl_module_getsrc;
- dwfl_module_getsrc_file;
- dwfl_module_getsym;
- dwfl_module_getsymtab;
- dwfl_module_info;
- dwfl_module_nextcu;
- dwfl_module_register_names;
- dwfl_module_relocate_address;
- dwfl_module_relocation_info;
- dwfl_module_relocations;
- dwfl_module_return_value_location;
- dwfl_nextcu;
- dwfl_offline_section_address;
- dwfl_onesrcline;
- dwfl_report_begin;
- dwfl_report_elf;
- dwfl_report_end;
- dwfl_report_module;
- dwfl_report_offline;
- dwfl_standard_argp;
- dwfl_standard_find_debuginfo;
- dwfl_version;
-
- local:
- *;
-} ELFUTILS_0;
-
-ELFUTILS_0.126 {
- global:
- dwarf_getelf;
-
- local:
- *;
-} ELFUTILS_0.122;
-
-ELFUTILS_0.127 {
- global:
- dwarf_getsrcdirs;
-
- dwfl_module_addrsym;
- dwfl_report_begin_add;
- dwfl_module_address_section;
-
- local:
- *;
-} ELFUTILS_0.126;
-
-ELFUTILS_0.130 {
- global:
- dwfl_build_id_find_elf;
- dwfl_build_id_find_debuginfo;
- dwfl_module_build_id;
- dwfl_module_report_build_id;
-
- local:
- *;
-} ELFUTILS_0.127;
-
-ELFUTILS_0.136 {
- global:
- dwfl_addrsegment;
- dwfl_report_segment;
-
- local:
- *;
-} ELFUTILS_0.130;
-
-ELFUTILS_0.138 {
- global:
- # Replaced ELFUTILS_0.130 version, which has bug-compatibility wrapper.
- dwfl_module_build_id;
-
- local:
- *;
-} ELFUTILS_0.136;
-
-ELFUTILS_0.142 {
- global:
- dwarf_next_cfi;
- dwarf_getcfi;
- dwarf_getcfi_elf;
- dwarf_cfi_addrframe;
- dwarf_cfi_end;
- dwarf_frame_cfa;
- dwarf_frame_register;
- dwarf_frame_info;
-
- dwfl_module_dwarf_cfi;
- dwfl_module_eh_cfi;
-} ELFUTILS_0.138;
-
-ELFUTILS_0.143 {
- global:
- dwarf_getlocation_implicit_value;
-
- # Replaced ELFUTILS_0.122 versions. Both versions point to the
- # same implementation, but users of the new symbol version can
- # presume that they use dwarf_attr_integrate properly.
- dwarf_arrayorder;
- dwarf_bitoffset;
- dwarf_bitsize;
- dwarf_bytesize;
- dwarf_decl_column;
- dwarf_decl_file;
- dwarf_decl_line;
- dwarf_srclang;
-
-} ELFUTILS_0.142;
-
-ELFUTILS_0.144 {
- global:
- dwarf_aggregate_size;
-} ELFUTILS_0.143;
-
-ELFUTILS_0.146 {
- global:
- dwfl_core_file_report;
-} ELFUTILS_0.144;
-
-ELFUTILS_0.148 {
- global:
- dwarf_lineisa;
- dwarf_linediscriminator;
- dwarf_lineop_index;
-
- dwarf_next_unit;
- dwarf_offdie_types;
-} ELFUTILS_0.146;
-
-ELFUTILS_0.149 {
- global:
- dwarf_getlocation_implicit_pointer;
-
- dwfl_dwarf_line;
-} ELFUTILS_0.148;
-
-ELFUTILS_0.156 {
- global:
- # Replaced ELFUTILS_0.122 version, which has a wrapper without add_p_vaddr.
- dwfl_report_elf;
-} ELFUTILS_0.149;
-
-ELFUTILS_0.157 {
- global:
- dwarf_getlocations;
- dwarf_getlocation_die;
- dwarf_getlocation_attr;
-} ELFUTILS_0.156;
-
-ELFUTILS_0.158 {
- global:
- # Replaced ELFUTILS_0.146 version, which has a wrapper without executable.
- dwfl_core_file_report;
-
- dwfl_attach_state;
- dwfl_pid;
- dwfl_thread_dwfl;
- dwfl_thread_tid;
- dwfl_frame_thread;
- dwfl_thread_state_registers;
- dwfl_thread_state_register_pc;
- dwfl_getthread_frames;
- dwfl_getthreads;
- dwfl_thread_getframes;
- dwfl_frame_pc;
-
- dwfl_module_getsymtab_first_global;
- dwfl_module_addrinfo;
- dwfl_module_getsym_info;
-
- dwfl_core_file_attach;
- dwfl_linux_proc_attach;
-} ELFUTILS_0.157;
-
-ELFUTILS_0.159 {
- global:
- dwarf_getalt;
- dwarf_setalt;
- dwelf_dwarf_gnu_debugaltlink;
- dwelf_elf_gnu_debuglink;
- dwelf_elf_gnu_build_id;
-} ELFUTILS_0.158;
-
-ELFUTILS_0.160 {
- global:
- dwarf_cu_getdwarf;
- dwarf_cu_die;
-} ELFUTILS_0.159;
-
-ELFUTILS_0.161 {
- global:
- dwarf_peel_type;
-
- # Replaced ELFUTILS_0.144 version. Both versions point to the
- # same implementation, but users of the new symbol version can
- # presume that it uses dwarf_peel_type.
- dwarf_aggregate_size;
-
- dwarf_getmacros_off;
- dwarf_macro_getsrcfiles;
- dwarf_macro_getparamcnt;
- dwarf_macro_param;
-} ELFUTILS_0.160;
diff --git a/src/libdw/libdwP.h b/src/libdw/libdwP.h
deleted file mode 100644
index 5ab72194..00000000
--- a/src/libdw/libdwP.h
+++ /dev/null
@@ -1,802 +0,0 @@
-/* Internal definitions for libdwarf.
- Copyright (C) 2002-2011, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBDWP_H
-#define _LIBDWP_H 1
-
-#include <libintl.h>
-#include <stdbool.h>
-
-#include <libdw.h>
-#include <dwarf.h>
-
-
-/* gettext helper macros. */
-#define _(Str) dgettext ("elfutils", Str)
-
-
-/* Known location expressions already decoded. */
-struct loc_s
-{
- void *addr;
- Dwarf_Op *loc;
- size_t nloc;
-};
-
-/* Known DW_OP_implicit_value blocks already decoded.
- This overlaps struct loc_s exactly, but only the
- first member really has to match. */
-struct loc_block_s
-{
- void *addr;
- unsigned char *data;
- size_t length;
-};
-
-/* Already decoded .debug_line units. */
-struct files_lines_s
-{
- Dwarf_Off debug_line_offset;
- Dwarf_Files *files;
- Dwarf_Lines *lines;
-};
-
-/* Valid indeces for the section data. */
-enum
- {
- IDX_debug_info = 0,
- IDX_debug_types,
- IDX_debug_abbrev,
- IDX_debug_aranges,
- IDX_debug_line,
- IDX_debug_frame,
- IDX_debug_loc,
- IDX_debug_pubnames,
- IDX_debug_str,
- IDX_debug_macinfo,
- IDX_debug_macro,
- IDX_debug_ranges,
- IDX_gnu_debugaltlink,
- IDX_last
- };
-
-
-/* Error values. */
-enum
-{
- DWARF_E_NOERROR = 0,
- DWARF_E_UNKNOWN_ERROR,
- DWARF_E_INVALID_ACCESS,
- DWARF_E_NO_REGFILE,
- DWARF_E_IO_ERROR,
- DWARF_E_INVALID_ELF,
- DWARF_E_NO_DWARF,
- DWARF_E_NOELF,
- DWARF_E_GETEHDR_ERROR,
- DWARF_E_NOMEM,
- DWARF_E_UNIMPL,
- DWARF_E_INVALID_CMD,
- DWARF_E_INVALID_VERSION,
- DWARF_E_INVALID_FILE,
- DWARF_E_NO_ENTRY,
- DWARF_E_INVALID_DWARF,
- DWARF_E_NO_STRING,
- DWARF_E_NO_ADDR,
- DWARF_E_NO_CONSTANT,
- DWARF_E_NO_REFERENCE,
- DWARF_E_INVALID_REFERENCE,
- DWARF_E_NO_DEBUG_LINE,
- DWARF_E_INVALID_DEBUG_LINE,
- DWARF_E_TOO_BIG,
- DWARF_E_VERSION,
- DWARF_E_INVALID_DIR_IDX,
- DWARF_E_ADDR_OUTOFRANGE,
- DWARF_E_NO_LOCLIST,
- DWARF_E_NO_BLOCK,
- DWARF_E_INVALID_LINE_IDX,
- DWARF_E_INVALID_ARANGE_IDX,
- DWARF_E_NO_MATCH,
- DWARF_E_NO_FLAG,
- DWARF_E_INVALID_OFFSET,
- DWARF_E_NO_DEBUG_RANGES,
- DWARF_E_INVALID_CFI,
- DWARF_E_NO_ALT_DEBUGLINK,
- DWARF_E_INVALID_OPCODE,
-};
-
-
-#include "dwarf_sig8_hash.h"
-
-/* This is the structure representing the debugging state. */
-struct Dwarf
-{
- /* The underlying ELF file. */
- Elf *elf;
-
- /* dwz alternate DWARF file. */
- Dwarf *alt_dwarf;
-
- /* The section data. */
- Elf_Data *sectiondata[IDX_last];
-
-#if USE_ZLIB
- /* The 1 << N bit is set if sectiondata[N] is malloc'd decompressed data. */
- unsigned int sectiondata_gzip_mask:IDX_last;
-#endif
-
- /* True if the file has a byte order different from the host. */
- bool other_byte_order;
-
- /* If true, we allocated the ELF descriptor ourselves. */
- bool free_elf;
-
- /* Information for traversing the .debug_pubnames section. This is
- an array and separately allocated with malloc. */
- struct pubnames_s
- {
- Dwarf_Off cu_offset;
- Dwarf_Off set_start;
- unsigned int cu_header_size;
- int address_len;
- } *pubnames_sets;
- size_t pubnames_nsets;
-
- /* Search tree for the CUs. */
- void *cu_tree;
- Dwarf_Off next_cu_offset;
-
- /* Search tree and sig8 hash table for .debug_types type units. */
- void *tu_tree;
- Dwarf_Off next_tu_offset;
- Dwarf_Sig8_Hash sig8_hash;
-
- /* Search tree for .debug_macro operator tables. */
- void *macro_ops;
-
- /* Search tree for decoded .debug_line units. */
- void *files_lines;
-
- /* Address ranges. */
- Dwarf_Aranges *aranges;
-
- /* Cached info from the CFI section. */
- struct Dwarf_CFI_s *cfi;
-
- /* Fake loc CU. Used when synthesizing attributes for Dwarf_Ops that
- came from a location list entry in dwarf_getlocation_attr. */
- struct Dwarf_CU *fake_loc_cu;
-
- /* Internal memory handling. This is basically a simplified
- reimplementation of obstacks. Unfortunately the standard obstack
- implementation is not usable in libraries. */
- struct libdw_memblock
- {
- size_t size;
- size_t remaining;
- struct libdw_memblock *prev;
- char mem[0];
- } *mem_tail;
-
- /* Default size of allocated memory blocks. */
- size_t mem_default_size;
-
- /* Registered OOM handler. */
- Dwarf_OOM oom_handler;
-};
-
-
-/* Abbreviation representation. */
-struct Dwarf_Abbrev
-{
- Dwarf_Off offset;
- unsigned char *attrp;
- unsigned int attrcnt;
- unsigned int code;
- unsigned int tag;
- bool has_children;
-};
-
-#include "dwarf_abbrev_hash.h"
-
-
-/* Files in line information records. */
-struct Dwarf_Files_s
- {
- unsigned int ndirs;
- unsigned int nfiles;
- struct Dwarf_Fileinfo_s
- {
- char *name;
- Dwarf_Word mtime;
- Dwarf_Word length;
- } info[0];
- /* nfiles of those, followed by char *[ndirs]. */
- };
-typedef struct Dwarf_Fileinfo_s Dwarf_Fileinfo;
-
-
-/* Representation of a row in the line table. */
-
-struct Dwarf_Line_s
-{
- Dwarf_Files *files;
-
- Dwarf_Addr addr;
- unsigned int file;
- int line;
- unsigned short int column;
- unsigned int is_stmt:1;
- unsigned int basic_block:1;
- unsigned int end_sequence:1;
- unsigned int prologue_end:1;
- unsigned int epilogue_begin:1;
- /* The remaining bit fields are not flags, but hold values presumed to be
- small. All the flags and other bit fields should add up to 48 bits
- to give the whole struct a nice round size. */
- unsigned int op_index:8;
- unsigned int isa:8;
- unsigned int discriminator:24;
-};
-
-struct Dwarf_Lines_s
-{
- size_t nlines;
- struct Dwarf_Line_s info[0];
-};
-
-/* Representation of address ranges. */
-struct Dwarf_Aranges_s
-{
- Dwarf *dbg;
- size_t naranges;
-
- struct Dwarf_Arange_s
- {
- Dwarf_Addr addr;
- Dwarf_Word length;
- Dwarf_Off offset;
- } info[0];
-};
-
-
-/* CU representation. */
-struct Dwarf_CU
-{
- Dwarf *dbg;
- Dwarf_Off start;
- Dwarf_Off end;
- uint8_t address_size;
- uint8_t offset_size;
- uint16_t version;
-
- /* Zero if this is a normal CU. Nonzero if it is a type unit. */
- size_t type_offset;
- uint64_t type_sig8;
-
- /* Hash table for the abbreviations. */
- Dwarf_Abbrev_Hash abbrev_hash;
- /* Offset of the first abbreviation. */
- size_t orig_abbrev_offset;
- /* Offset past last read abbreviation. */
- size_t last_abbrev_offset;
-
- /* The srcline information. */
- Dwarf_Lines *lines;
-
- /* The source file information. */
- Dwarf_Files *files;
-
- /* Known location lists. */
- void *locs;
-
- /* Memory boundaries of this CU. */
- void *startp;
- void *endp;
-};
-
-/* Compute the offset of a CU's first DIE from its offset. This
- is either:
- LEN VER OFFSET ADDR
- 4-bytes + 2-bytes + 4-bytes + 1-byte for 32-bit dwarf
- 12-bytes + 2-bytes + 8-bytes + 1-byte for 64-bit dwarf
- or in .debug_types, SIGNATURE TYPE-OFFSET
- 4-bytes + 2-bytes + 4-bytes + 1-byte + 8-bytes + 4-bytes for 32-bit
- 12-bytes + 2-bytes + 8-bytes + 1-byte + 8-bytes + 8-bytes for 64-bit
-
- Note the trick in the computation. If the offset_size is 4
- the '- 4' term changes the '3 *' into a '2 *'. If the
- offset_size is 8 it accounts for the 4-byte escape value
- used at the start of the length. */
-#define DIE_OFFSET_FROM_CU_OFFSET(cu_offset, offset_size, type_unit) \
- ((type_unit) ? ((cu_offset) + 4 * (offset_size) - 4 + 3 + 8) \
- : ((cu_offset) + 3 * (offset_size) - 4 + 3))
-
-#define CUDIE(fromcu) \
- ((Dwarf_Die) \
- { \
- .cu = (fromcu), \
- .addr = ((char *) fromcu->dbg->sectiondata[cu_sec_idx (fromcu)]->d_buf \
- + DIE_OFFSET_FROM_CU_OFFSET ((fromcu)->start, \
- (fromcu)->offset_size, \
- (fromcu)->type_offset != 0)) \
- }) \
-
-
-/* Prototype of a single .debug_macro operator. */
-typedef struct
-{
- Dwarf_Word nforms;
- unsigned char const *forms;
-} Dwarf_Macro_Op_Proto;
-
-/* Prototype table. */
-typedef struct
-{
- /* Offset of .debug_macro section. */
- Dwarf_Off offset;
-
- /* Offset of associated .debug_line section. */
- Dwarf_Off line_offset;
-
- /* The source file information. */
- Dwarf_Files *files;
-
- /* If this macro unit was opened through dwarf_getmacros or
- dwarf_getmacros_die, this caches value of DW_AT_comp_dir, if
- present. */
- const char *comp_dir;
-
- /* Header length. */
- Dwarf_Half header_len;
-
- uint16_t version;
- bool is_64bit;
- uint8_t sec_index; /* IDX_debug_macro or IDX_debug_macinfo. */
-
- /* Shows where in TABLE each opcode is defined. Since opcode 0 is
- never used, it stores index of opcode X in X-1'th element. The
- value of 0xff means not stored at all. */
- unsigned char opcodes[255];
-
- /* Individual opcode prototypes. */
- Dwarf_Macro_Op_Proto table[];
-} Dwarf_Macro_Op_Table;
-
-struct Dwarf_Macro_s
-{
- Dwarf_Macro_Op_Table *table;
- Dwarf_Attribute *attributes;
- uint8_t opcode;
-};
-
-static inline Dwarf_Word
-libdw_macro_nforms (Dwarf_Macro *macro)
-{
- return macro->table->table[macro->table->opcodes[macro->opcode - 1]].nforms;
-}
-
-/* We have to include the file at this point because the inline
- functions access internals of the Dwarf structure. */
-#include "memory-access.h"
-
-
-/* Set error value. */
-extern void __libdw_seterrno (int value) internal_function;
-
-
-/* Memory handling, the easy parts. This macro does not do any locking. */
-#define libdw_alloc(dbg, type, tsize, cnt) \
- ({ struct libdw_memblock *_tail = (dbg)->mem_tail; \
- size_t _required = (tsize) * (cnt); \
- type *_result = (type *) (_tail->mem + (_tail->size - _tail->remaining));\
- size_t _padding = ((__alignof (type) \
- - ((uintptr_t) _result & (__alignof (type) - 1))) \
- & (__alignof (type) - 1)); \
- if (unlikely (_tail->remaining < _required + _padding)) \
- _result = (type *) __libdw_allocate (dbg, _required, __alignof (type));\
- else \
- { \
- _required += _padding; \
- _result = (type *) ((char *) _result + _padding); \
- _tail->remaining -= _required; \
- } \
- _result; })
-
-#define libdw_typed_alloc(dbg, type) \
- libdw_alloc (dbg, type, sizeof (type), 1)
-
-/* Callback to allocate more. */
-extern void *__libdw_allocate (Dwarf *dbg, size_t minsize, size_t align)
- __attribute__ ((__malloc__)) __nonnull_attribute__ (1);
-
-/* Default OOM handler. */
-extern void __libdw_oom (void) __attribute ((noreturn, visibility ("hidden")));
-
-#if USE_ZLIB
-extern void __libdw_free_zdata (Dwarf *dwarf) internal_function;
-#else
-# define __libdw_free_zdata(dwarf) ((void) (dwarf))
-#endif
-
-/* Allocate the internal data for a unit not seen before. */
-extern struct Dwarf_CU *__libdw_intern_next_unit (Dwarf *dbg, bool debug_types)
- __nonnull_attribute__ (1) internal_function;
-
-/* Find CU for given offset. */
-extern struct Dwarf_CU *__libdw_findcu (Dwarf *dbg, Dwarf_Off offset, bool tu)
- __nonnull_attribute__ (1) internal_function;
-
-/* Get abbreviation with given code. */
-extern Dwarf_Abbrev *__libdw_findabbrev (struct Dwarf_CU *cu,
- unsigned int code)
- __nonnull_attribute__ (1) internal_function;
-
-/* Get abbreviation at given offset. */
-extern Dwarf_Abbrev *__libdw_getabbrev (Dwarf *dbg, struct Dwarf_CU *cu,
- Dwarf_Off offset, size_t *lengthp,
- Dwarf_Abbrev *result)
- __nonnull_attribute__ (1) internal_function;
-
-/* Get abbreviation of given DIE, and optionally set *READP to the DIE memory
- just past the abbreviation code. */
-static inline Dwarf_Abbrev *
-__nonnull_attribute__ (1)
-__libdw_dieabbrev (Dwarf_Die *die, const unsigned char **readp)
-{
- /* Do we need to get the abbreviation, or need to read after the code? */
- if (die->abbrev == NULL || readp != NULL)
- {
- /* Get the abbreviation code. */
- unsigned int code;
- const unsigned char *addr = die->addr;
- get_uleb128 (code, addr, die->cu->endp);
- if (readp != NULL)
- *readp = addr;
-
- /* Find the abbreviation. */
- if (die->abbrev == NULL)
- die->abbrev = __libdw_findabbrev (die->cu, code);
- }
- return die->abbrev;
-}
-
-/* Helper functions for form handling. */
-extern size_t __libdw_form_val_compute_len (struct Dwarf_CU *cu,
- unsigned int form,
- const unsigned char *valp)
- __nonnull_attribute__ (1, 3) internal_function;
-
-/* Find the length of a form attribute. */
-static inline size_t
-__nonnull_attribute__ (1, 3)
-__libdw_form_val_len (struct Dwarf_CU *cu, unsigned int form,
- const unsigned char *valp)
-{
- /* Small lookup table of forms with fixed lengths. Absent indexes are
- initialized 0, so any truly desired 0 is set to 0x80 and masked. */
- static const uint8_t form_lengths[] =
- {
- [DW_FORM_flag_present] = 0x80,
- [DW_FORM_data1] = 1, [DW_FORM_ref1] = 1, [DW_FORM_flag] = 1,
- [DW_FORM_data2] = 2, [DW_FORM_ref2] = 2,
- [DW_FORM_data4] = 4, [DW_FORM_ref4] = 4,
- [DW_FORM_data8] = 8, [DW_FORM_ref8] = 8, [DW_FORM_ref_sig8] = 8,
- };
-
- /* Return immediately for forms with fixed lengths. */
- if (form < sizeof form_lengths / sizeof form_lengths[0])
- {
- uint8_t len = form_lengths[form];
- if (len != 0)
- {
- const unsigned char *endp = cu->endp;
- len &= 0x7f; /* Mask to allow 0x80 -> 0. */
- if (unlikely (len > (size_t) (endp - valp)))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return -1;
- }
- return len;
- }
- }
-
- /* Other forms require some computation. */
- return __libdw_form_val_compute_len (cu, form, valp);
-}
-
-/* Helper function for DW_FORM_ref* handling. */
-extern int __libdw_formref (Dwarf_Attribute *attr, Dwarf_Off *return_offset)
- __nonnull_attribute__ (1, 2) internal_function;
-
-
-/* Helper function to locate attribute. */
-extern unsigned char *__libdw_find_attr (Dwarf_Die *die,
- unsigned int search_name,
- unsigned int *codep,
- unsigned int *formp)
- __nonnull_attribute__ (1) internal_function;
-
-/* Helper function to access integer attribute. */
-extern int __libdw_attr_intval (Dwarf_Die *die, int *valp, int attval)
- __nonnull_attribute__ (1, 2) internal_function;
-
-/* Helper function to walk scopes. */
-struct Dwarf_Die_Chain
-{
- Dwarf_Die die;
- struct Dwarf_Die_Chain *parent;
- bool prune; /* The PREVISIT function can set this. */
-};
-extern int __libdw_visit_scopes (unsigned int depth,
- struct Dwarf_Die_Chain *root,
- int (*previsit) (unsigned int depth,
- struct Dwarf_Die_Chain *,
- void *arg),
- int (*postvisit) (unsigned int depth,
- struct Dwarf_Die_Chain *,
- void *arg),
- void *arg)
- __nonnull_attribute__ (2, 3) internal_function;
-
-/* Parse a DWARF Dwarf_Block into an array of Dwarf_Op's,
- and cache the result (via tsearch). */
-extern int __libdw_intern_expression (Dwarf *dbg,
- bool other_byte_order,
- unsigned int address_size,
- unsigned int ref_size,
- void **cache, const Dwarf_Block *block,
- bool cfap, bool valuep,
- Dwarf_Op **llbuf, size_t *listlen,
- int sec_index)
- __nonnull_attribute__ (5, 6, 9, 10) internal_function;
-
-extern Dwarf_Die *__libdw_offdie (Dwarf *dbg, Dwarf_Off offset,
- Dwarf_Die *result, bool debug_types)
- internal_function;
-
-
-/* Return error code of last failing function call. This value is kept
- separately for each thread. */
-extern int __dwarf_errno_internal (void);
-
-
-/* Reader hooks. */
-
-/* Relocation hooks return -1 on error (in that case the error code
- must already have been set), 0 if there is no relocation and 1 if a
- relocation was present.*/
-
-static inline int
-__libdw_relocate_address (Dwarf *dbg __attribute__ ((unused)),
- int sec_index __attribute__ ((unused)),
- const void *addr __attribute__ ((unused)),
- int width __attribute__ ((unused)),
- Dwarf_Addr *val __attribute__ ((unused)))
-{
- return 0;
-}
-
-static inline int
-__libdw_relocate_offset (Dwarf *dbg __attribute__ ((unused)),
- int sec_index __attribute__ ((unused)),
- const void *addr __attribute__ ((unused)),
- int width __attribute__ ((unused)),
- Dwarf_Off *val __attribute__ ((unused)))
-{
- return 0;
-}
-
-static inline Elf_Data *
-__libdw_checked_get_data (Dwarf *dbg, int sec_index)
-{
- Elf_Data *data = dbg->sectiondata[sec_index];
- if (unlikely (data == NULL)
- || unlikely (data->d_buf == NULL))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
- return data;
-}
-
-static inline int
-__libdw_offset_in_section (Dwarf *dbg, int sec_index,
- Dwarf_Off offset, size_t size)
-{
- Elf_Data *data = __libdw_checked_get_data (dbg, sec_index);
- if (data == NULL)
- return -1;
- if (unlikely (offset > data->d_size)
- || unlikely (data->d_size - offset < size))
- {
- __libdw_seterrno (DWARF_E_INVALID_OFFSET);
- return -1;
- }
-
- return 0;
-}
-
-static inline bool
-__libdw_in_section (Dwarf *dbg, int sec_index,
- const void *addr, size_t size)
-{
- Elf_Data *data = __libdw_checked_get_data (dbg, sec_index);
- if (data == NULL)
- return false;
- if (unlikely (addr < data->d_buf)
- || unlikely (data->d_size - (addr - data->d_buf) < size))
- {
- __libdw_seterrno (DWARF_E_INVALID_OFFSET);
- return false;
- }
-
- return true;
-}
-
-#define READ_AND_RELOCATE(RELOC_HOOK, VAL) \
- ({ \
- if (!__libdw_in_section (dbg, sec_index, addr, width)) \
- return -1; \
- \
- const unsigned char *orig_addr = addr; \
- if (width == 4) \
- VAL = read_4ubyte_unaligned_inc (dbg, addr); \
- else \
- VAL = read_8ubyte_unaligned_inc (dbg, addr); \
- \
- int status = RELOC_HOOK (dbg, sec_index, orig_addr, width, &VAL); \
- if (status < 0) \
- return status; \
- status > 0; \
- })
-
-static inline int
-__libdw_read_address_inc (Dwarf *dbg,
- int sec_index, const unsigned char **addrp,
- int width, Dwarf_Addr *ret)
-{
- const unsigned char *addr = *addrp;
- READ_AND_RELOCATE (__libdw_relocate_address, (*ret));
- *addrp = addr;
- return 0;
-}
-
-static inline int
-__libdw_read_address (Dwarf *dbg,
- int sec_index, const unsigned char *addr,
- int width, Dwarf_Addr *ret)
-{
- READ_AND_RELOCATE (__libdw_relocate_address, (*ret));
- return 0;
-}
-
-static inline int
-__libdw_read_offset_inc (Dwarf *dbg,
- int sec_index, const unsigned char **addrp,
- int width, Dwarf_Off *ret, int sec_ret,
- size_t size)
-{
- const unsigned char *addr = *addrp;
- READ_AND_RELOCATE (__libdw_relocate_offset, (*ret));
- *addrp = addr;
- return __libdw_offset_in_section (dbg, sec_ret, *ret, size);
-}
-
-static inline int
-__libdw_read_offset (Dwarf *dbg, Dwarf *dbg_ret,
- int sec_index, const unsigned char *addr,
- int width, Dwarf_Off *ret, int sec_ret,
- size_t size)
-{
- READ_AND_RELOCATE (__libdw_relocate_offset, (*ret));
- return __libdw_offset_in_section (dbg_ret, sec_ret, *ret, size);
-}
-
-static inline size_t
-cu_sec_idx (struct Dwarf_CU *cu)
-{
- return cu->type_offset == 0 ? IDX_debug_info : IDX_debug_types;
-}
-
-/* Read up begin/end pair and increment read pointer.
- - If it's normal range record, set up *BEGINP and *ENDP and return 0.
- - If it's base address selection record, set up *BASEP and return 1.
- - If it's end of rangelist, don't set anything and return 2
- - If an error occurs, don't set anything and return <0. */
-int __libdw_read_begin_end_pair_inc (Dwarf *dbg, int sec_index,
- unsigned char **addr, int width,
- Dwarf_Addr *beginp, Dwarf_Addr *endp,
- Dwarf_Addr *basep)
- internal_function;
-
-unsigned char * __libdw_formptr (Dwarf_Attribute *attr, int sec_index,
- int err_nodata, unsigned char **endpp,
- Dwarf_Off *offsetp)
- internal_function;
-
-/* Fills in the given attribute to point at an empty location expression. */
-void __libdw_empty_loc_attr (Dwarf_Attribute *attr)
- internal_function;
-
-/* Load .debug_line unit at DEBUG_LINE_OFFSET. COMP_DIR is a value of
- DW_AT_comp_dir or NULL if that attribute is not available. Caches
- the loaded unit and optionally set *LINESP and/or *FILESP (if not
- NULL) with loaded information. Returns 0 for success or a negative
- value for failure. */
-int __libdw_getsrclines (Dwarf *dbg, Dwarf_Off debug_line_offset,
- const char *comp_dir, unsigned address_size,
- Dwarf_Lines **linesp, Dwarf_Files **filesp)
- internal_function
- __nonnull_attribute__ (1);
-
-/* Load and return value of DW_AT_comp_dir from CUDIE. */
-const char *__libdw_getcompdir (Dwarf_Die *cudie);
-
-
-/* Aliases to avoid PLTs. */
-INTDECL (dwarf_aggregate_size)
-INTDECL (dwarf_attr)
-INTDECL (dwarf_attr_integrate)
-INTDECL (dwarf_begin)
-INTDECL (dwarf_begin_elf)
-INTDECL (dwarf_child)
-INTDECL (dwarf_dieoffset)
-INTDECL (dwarf_diename)
-INTDECL (dwarf_end)
-INTDECL (dwarf_entrypc)
-INTDECL (dwarf_errmsg)
-INTDECL (dwarf_formaddr)
-INTDECL (dwarf_formblock)
-INTDECL (dwarf_formref_die)
-INTDECL (dwarf_formsdata)
-INTDECL (dwarf_formstring)
-INTDECL (dwarf_formudata)
-INTDECL (dwarf_getalt)
-INTDECL (dwarf_getarange_addr)
-INTDECL (dwarf_getarangeinfo)
-INTDECL (dwarf_getaranges)
-INTDECL (dwarf_getlocation_die)
-INTDECL (dwarf_getsrcfiles)
-INTDECL (dwarf_getsrclines)
-INTDECL (dwarf_hasattr)
-INTDECL (dwarf_haschildren)
-INTDECL (dwarf_haspc)
-INTDECL (dwarf_highpc)
-INTDECL (dwarf_lowpc)
-INTDECL (dwarf_nextcu)
-INTDECL (dwarf_next_unit)
-INTDECL (dwarf_offdie)
-INTDECL (dwarf_peel_type)
-INTDECL (dwarf_ranges)
-INTDECL (dwarf_setalt)
-INTDECL (dwarf_siblingof)
-INTDECL (dwarf_srclang)
-INTDECL (dwarf_tag)
-
-#endif /* libdwP.h */
diff --git a/src/libdw/libdw_alloc.c b/src/libdw/libdw_alloc.c
deleted file mode 100644
index a3b7958f..00000000
--- a/src/libdw/libdw_alloc.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Memory handling for libdw.
- Copyright (C) 2003, 2004, 2006 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <error.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <sys/param.h>
-#include "libdwP.h"
-
-
-void *
-__libdw_allocate (Dwarf *dbg, size_t minsize, size_t align)
-{
- size_t size = MAX (dbg->mem_default_size,
- (align - 1 +
- 2 * minsize + offsetof (struct libdw_memblock, mem)));
- struct libdw_memblock *newp = malloc (size);
- if (newp == NULL)
- dbg->oom_handler ();
-
- uintptr_t result = ((uintptr_t) newp->mem + align - 1) & ~(align - 1);
-
- newp->size = size - offsetof (struct libdw_memblock, mem);
- newp->remaining = (uintptr_t) newp + size - (result + minsize);
-
- newp->prev = dbg->mem_tail;
- dbg->mem_tail = newp;
-
- return (void *) result;
-}
-
-
-Dwarf_OOM
-dwarf_new_oom_handler (Dwarf *dbg, Dwarf_OOM handler)
-{
- Dwarf_OOM old = dbg->oom_handler;
- dbg->oom_handler = handler;
- return old;
-}
-
-
-void
-__attribute ((noreturn, visibility ("hidden")))
-__libdw_oom (void)
-{
- while (1)
- error (EXIT_FAILURE, ENOMEM, "libdw");
-}
diff --git a/src/libdw/libdw_findcu.c b/src/libdw/libdw_findcu.c
deleted file mode 100644
index d8da2e38..00000000
--- a/src/libdw/libdw_findcu.c
+++ /dev/null
@@ -1,172 +0,0 @@
-/* Find CU for given offset.
- Copyright (C) 2003-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <search.h>
-#include "libdwP.h"
-
-static int
-findcu_cb (const void *arg1, const void *arg2)
-{
- struct Dwarf_CU *cu1 = (struct Dwarf_CU *) arg1;
- struct Dwarf_CU *cu2 = (struct Dwarf_CU *) arg2;
-
- /* Find out which of the two arguments is the search value. It has
- end offset 0. */
- if (cu1->end == 0)
- {
- if (cu1->start < cu2->start)
- return -1;
- if (cu1->start >= cu2->end)
- return 1;
- }
- else
- {
- if (cu2->start < cu1->start)
- return 1;
- if (cu2->start >= cu1->end)
- return -1;
- }
-
- return 0;
-}
-
-struct Dwarf_CU *
-internal_function
-__libdw_intern_next_unit (dbg, debug_types)
- Dwarf *dbg;
- bool debug_types;
-{
- Dwarf_Off *const offsetp
- = debug_types ? &dbg->next_tu_offset : &dbg->next_cu_offset;
- void **tree = debug_types ? &dbg->tu_tree : &dbg->cu_tree;
-
- Dwarf_Off oldoff = *offsetp;
- uint16_t version;
- uint8_t address_size;
- uint8_t offset_size;
- Dwarf_Off abbrev_offset;
- uint64_t type_sig8 = 0;
- Dwarf_Off type_offset = 0;
-
- if (INTUSE(dwarf_next_unit) (dbg, oldoff, offsetp, NULL,
- &version, &abbrev_offset,
- &address_size, &offset_size,
- debug_types ? &type_sig8 : NULL,
- debug_types ? &type_offset : NULL) != 0)
- /* No more entries. */
- return NULL;
-
- /* We only know how to handle the DWARF version 2 through 4 formats. */
- if (unlikely (version < 2) || unlikely (version > 4))
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- /* Invalid or truncated debug section data? */
- Elf_Data *data = dbg->sectiondata[debug_types
- ? IDX_debug_types : IDX_debug_info];
- if (unlikely (*offsetp > data->d_size))
- *offsetp = data->d_size;
-
- /* Create an entry for this CU. */
- struct Dwarf_CU *newp = libdw_typed_alloc (dbg, struct Dwarf_CU);
-
- newp->dbg = dbg;
- newp->start = oldoff;
- newp->end = *offsetp;
- newp->address_size = address_size;
- newp->offset_size = offset_size;
- newp->version = version;
- newp->type_sig8 = type_sig8;
- newp->type_offset = type_offset;
- Dwarf_Abbrev_Hash_init (&newp->abbrev_hash, 41);
- newp->orig_abbrev_offset = newp->last_abbrev_offset = abbrev_offset;
- newp->lines = NULL;
- newp->locs = NULL;
-
- if (debug_types)
- Dwarf_Sig8_Hash_insert (&dbg->sig8_hash, type_sig8, newp);
-
- newp->startp = data->d_buf + newp->start;
- newp->endp = data->d_buf + newp->end;
-
- /* Add the new entry to the search tree. */
- if (tsearch (newp, tree, findcu_cb) == NULL)
- {
- /* Something went wrong. Undo the operation. */
- *offsetp = oldoff;
- __libdw_seterrno (DWARF_E_NOMEM);
- return NULL;
- }
-
- return newp;
-}
-
-struct Dwarf_CU *
-__libdw_findcu (dbg, start, debug_types)
- Dwarf *dbg;
- Dwarf_Off start;
- bool debug_types;
-{
- void **tree = debug_types ? &dbg->tu_tree : &dbg->cu_tree;
- Dwarf_Off *next_offset
- = debug_types ? &dbg->next_tu_offset : &dbg->next_cu_offset;
-
- /* Maybe we already know that CU. */
- struct Dwarf_CU fake = { .start = start, .end = 0 };
- struct Dwarf_CU **found = tfind (&fake, tree, findcu_cb);
- if (found != NULL)
- return *found;
-
- if (start < *next_offset)
- {
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- return NULL;
- }
-
- /* No. Then read more CUs. */
- while (1)
- {
- struct Dwarf_CU *newp = __libdw_intern_next_unit (dbg, debug_types);
- if (newp == NULL)
- return NULL;
-
- /* Is this the one we are looking for? */
- if (start < *next_offset)
- // XXX Match exact offset.
- return newp;
- }
- /* NOTREACHED */
-}
diff --git a/src/libdw/libdw_form.c b/src/libdw/libdw_form.c
deleted file mode 100644
index 72e2390c..00000000
--- a/src/libdw/libdw_form.c
+++ /dev/null
@@ -1,132 +0,0 @@
-/* Helper functions for form handling.
- Copyright (C) 2003-2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dwarf.h>
-#include <string.h>
-
-#include "libdwP.h"
-
-
-size_t
-internal_function
-__libdw_form_val_compute_len (struct Dwarf_CU *cu, unsigned int form,
- const unsigned char *valp)
-{
- const unsigned char *startp = valp;
- const unsigned char *endp = cu->endp;
- Dwarf_Word u128;
- size_t result;
-
- /* NB: This doesn't cover constant form lengths, which are
- already handled by the inlined __libdw_form_val_len. */
- switch (form)
- {
- case DW_FORM_addr:
- result = cu->address_size;
- break;
-
- case DW_FORM_ref_addr:
- result = cu->version == 2 ? cu->address_size : cu->offset_size;
- break;
-
- case DW_FORM_strp:
- case DW_FORM_sec_offset:
- case DW_FORM_GNU_ref_alt:
- case DW_FORM_GNU_strp_alt:
- result = cu->offset_size;
- break;
-
- case DW_FORM_block1:
- if (unlikely ((size_t) (endp - startp) < 1))
- goto invalid;
- result = *valp + 1;
- break;
-
- case DW_FORM_block2:
- if (unlikely ((size_t) (endp - startp) < 2))
- goto invalid;
- result = read_2ubyte_unaligned (cu->dbg, valp) + 2;
- break;
-
- case DW_FORM_block4:
- if (unlikely ((size_t) (endp - startp) < 4))
- goto invalid;
- result = read_4ubyte_unaligned (cu->dbg, valp) + 4;
- break;
-
- case DW_FORM_block:
- case DW_FORM_exprloc:
- get_uleb128 (u128, valp, endp);
- result = u128 + (valp - startp);
- break;
-
- case DW_FORM_string:
- {
- const unsigned char *endstrp = memchr (valp, '\0',
- (size_t) (endp - startp));
- if (unlikely (endstrp == NULL))
- goto invalid;
- result = (size_t) (endstrp - startp) + 1;
- break;
- }
-
- case DW_FORM_sdata:
- case DW_FORM_udata:
- case DW_FORM_ref_udata:
- get_uleb128 (u128, valp, endp);
- result = valp - startp;
- break;
-
- case DW_FORM_indirect:
- get_uleb128 (u128, valp, endp);
- // XXX Is this really correct?
- result = __libdw_form_val_len (cu, u128, valp);
- if (result != (size_t) -1)
- result += valp - startp;
- else
- return (size_t) -1;
- break;
-
- default:
- goto invalid;
- }
-
- if (unlikely (result > (size_t) (endp - startp)))
- {
- invalid:
- __libdw_seterrno (DWARF_E_INVALID_DWARF);
- result = (size_t) -1;
- }
-
- return result;
-}
diff --git a/src/libdw/libdw_visit_scopes.c b/src/libdw/libdw_visit_scopes.c
deleted file mode 100644
index 487375dc..00000000
--- a/src/libdw/libdw_visit_scopes.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/* Helper functions to descend DWARF scope trees.
- Copyright (C) 2005,2006,2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwP.h"
-#include <dwarf.h>
-
-
-static bool
-may_have_scopes (Dwarf_Die *die)
-{
- switch (INTUSE(dwarf_tag) (die))
- {
- /* DIEs with addresses we can try to match. */
- case DW_TAG_compile_unit:
- case DW_TAG_module:
- case DW_TAG_lexical_block:
- case DW_TAG_with_stmt:
- case DW_TAG_catch_block:
- case DW_TAG_try_block:
- case DW_TAG_entry_point:
- case DW_TAG_inlined_subroutine:
- case DW_TAG_subprogram:
- return true;
-
- /* DIEs without addresses that can own DIEs with addresses. */
- case DW_TAG_namespace:
- case DW_TAG_class_type:
- case DW_TAG_structure_type:
- return true;
-
- /* Other DIEs we have no reason to descend. */
- default:
- break;
- }
- return false;
-}
-
-int
-__libdw_visit_scopes (depth, root, previsit, postvisit, arg)
- unsigned int depth;
- struct Dwarf_Die_Chain *root;
- int (*previsit) (unsigned int depth, struct Dwarf_Die_Chain *, void *);
- int (*postvisit) (unsigned int depth, struct Dwarf_Die_Chain *, void *);
- void *arg;
-{
- struct Dwarf_Die_Chain child;
- int ret;
-
- child.parent = root;
- if ((ret = INTUSE(dwarf_child) (&root->die, &child.die)) != 0)
- return ret < 0 ? -1 : 0; // Having zero children is legal.
-
- inline int recurse (void)
- {
- return __libdw_visit_scopes (depth + 1, &child,
- previsit, postvisit, arg);
- }
-
- inline int walk_children ()
- {
- do
- {
- /* For an imported unit, it is logically as if the children of
- that unit are siblings of the other children. So don't do
- a full recursion into the imported unit, but just walk the
- children in place before moving to the next real child. */
- while (INTUSE(dwarf_tag) (&child.die) == DW_TAG_imported_unit)
- {
- Dwarf_Die orig_child_die = child.die;
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = INTUSE(dwarf_attr) (&child.die,
- DW_AT_import,
- &attr_mem);
- if (INTUSE(dwarf_formref_die) (attr, &child.die) != NULL
- && INTUSE(dwarf_child) (&child.die, &child.die) == 0)
- {
- int result = walk_children ();
- if (result != DWARF_CB_OK)
- return result;
- }
-
- /* Any "real" children left? */
- if ((ret = INTUSE(dwarf_siblingof) (&orig_child_die,
- &child.die)) != 0)
- return ret < 0 ? -1 : 0;
- };
-
- child.prune = false;
-
- if (previsit != NULL)
- {
- int result = (*previsit) (depth + 1, &child, arg);
- if (result != DWARF_CB_OK)
- return result;
- }
-
- if (!child.prune && may_have_scopes (&child.die)
- && INTUSE(dwarf_haschildren) (&child.die))
- {
- int result = recurse ();
- if (result != DWARF_CB_OK)
- return result;
- }
-
- if (postvisit != NULL)
- {
- int result = (*postvisit) (depth + 1, &child, arg);
- if (result != DWARF_CB_OK)
- return result;
- }
- }
- while ((ret = INTUSE(dwarf_siblingof) (&child.die, &child.die)) == 0);
-
- return ret < 0 ? -1 : 0;
- }
-
- return walk_children ();
-}
diff --git a/src/libdw/memory-access.h b/src/libdw/memory-access.h
deleted file mode 100644
index a53f7912..00000000
--- a/src/libdw/memory-access.h
+++ /dev/null
@@ -1,272 +0,0 @@
-/* Unaligned memory access functionality.
- Copyright (C) 2000-2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _MEMORY_ACCESS_H
-#define _MEMORY_ACCESS_H 1
-
-#include <byteswap.h>
-#include <limits.h>
-#include <stdint.h>
-
-
-/* Number decoding macros. See 7.6 Variable Length Data. */
-
-#define len_leb128(var) ((8 * sizeof (var) + 6) / 7)
-
-static inline size_t
-__libdw_max_len_leb128 (const unsigned char *addr, const unsigned char *end)
-{
- const size_t type_len = len_leb128 (uint64_t);
- const size_t pointer_len = likely (addr < end) ? end - addr : 0;
- return likely (type_len <= pointer_len) ? type_len : pointer_len;
-}
-
-#define get_uleb128_step(var, addr, nth) \
- do { \
- unsigned char __b = *(addr)++; \
- (var) |= (typeof (var)) (__b & 0x7f) << ((nth) * 7); \
- if (likely ((__b & 0x80) == 0)) \
- return (var); \
- } while (0)
-
-static inline uint64_t
-__libdw_get_uleb128 (const unsigned char **addrp, const unsigned char *end)
-{
- uint64_t acc = 0;
-
- /* Unroll the first step to help the compiler optimize
- for the common single-byte case. */
- get_uleb128_step (acc, *addrp, 0);
-
- const size_t max = __libdw_max_len_leb128 (*addrp - 1, end);
- for (size_t i = 1; i < max; ++i)
- get_uleb128_step (acc, *addrp, i);
- /* Other implementations set VALUE to UINT_MAX in this
- case. So we better do this as well. */
- return UINT64_MAX;
-}
-
-/* Note, addr needs to me smaller than end. */
-#define get_uleb128(var, addr, end) ((var) = __libdw_get_uleb128 (&(addr), end))
-
-/* The signed case is similar, but we sign-extend the result. */
-
-#define get_sleb128_step(var, addr, nth) \
- do { \
- unsigned char __b = *(addr)++; \
- if (likely ((__b & 0x80) == 0)) \
- { \
- struct { signed int i:7; } __s = { .i = __b }; \
- (var) |= (typeof (var)) __s.i * ((typeof (var)) 1 << ((nth) * 7)); \
- return (var); \
- } \
- (var) |= (typeof (var)) (__b & 0x7f) << ((nth) * 7); \
- } while (0)
-
-static inline int64_t
-__libdw_get_sleb128 (const unsigned char **addrp, const unsigned char *end)
-{
- int64_t acc = 0;
-
- /* Unroll the first step to help the compiler optimize
- for the common single-byte case. */
- get_sleb128_step (acc, *addrp, 0);
-
- const size_t max = __libdw_max_len_leb128 (*addrp - 1, end);
- for (size_t i = 1; i < max; ++i)
- get_sleb128_step (acc, *addrp, i);
- /* Other implementations set VALUE to INT_MAX in this
- case. So we better do this as well. */
- return INT64_MAX;
-}
-
-#define get_sleb128(var, addr, end) ((var) = __libdw_get_sleb128 (&(addr), end))
-
-
-/* We use simple memory access functions in case the hardware allows it.
- The caller has to make sure we don't have alias problems. */
-#if ALLOW_UNALIGNED
-
-# define read_2ubyte_unaligned(Dbg, Addr) \
- (unlikely ((Dbg)->other_byte_order) \
- ? bswap_16 (*((const uint16_t *) (Addr))) \
- : *((const uint16_t *) (Addr)))
-# define read_2sbyte_unaligned(Dbg, Addr) \
- (unlikely ((Dbg)->other_byte_order) \
- ? (int16_t) bswap_16 (*((const int16_t *) (Addr))) \
- : *((const int16_t *) (Addr)))
-
-# define read_4ubyte_unaligned_noncvt(Addr) \
- *((const uint32_t *) (Addr))
-# define read_4ubyte_unaligned(Dbg, Addr) \
- (unlikely ((Dbg)->other_byte_order) \
- ? bswap_32 (*((const uint32_t *) (Addr))) \
- : *((const uint32_t *) (Addr)))
-# define read_4sbyte_unaligned(Dbg, Addr) \
- (unlikely ((Dbg)->other_byte_order) \
- ? (int32_t) bswap_32 (*((const int32_t *) (Addr))) \
- : *((const int32_t *) (Addr)))
-
-# define read_8ubyte_unaligned_noncvt(Addr) \
- *((const uint64_t *) (Addr))
-# define read_8ubyte_unaligned(Dbg, Addr) \
- (unlikely ((Dbg)->other_byte_order) \
- ? bswap_64 (*((const uint64_t *) (Addr))) \
- : *((const uint64_t *) (Addr)))
-# define read_8sbyte_unaligned(Dbg, Addr) \
- (unlikely ((Dbg)->other_byte_order) \
- ? (int64_t) bswap_64 (*((const int64_t *) (Addr))) \
- : *((const int64_t *) (Addr)))
-
-#else
-
-union unaligned
- {
- void *p;
- uint16_t u2;
- uint32_t u4;
- uint64_t u8;
- int16_t s2;
- int32_t s4;
- int64_t s8;
- } __attribute__ ((packed));
-
-# define read_2ubyte_unaligned(Dbg, Addr) \
- read_2ubyte_unaligned_1 ((Dbg)->other_byte_order, (Addr))
-# define read_2sbyte_unaligned(Dbg, Addr) \
- read_2sbyte_unaligned_1 ((Dbg)->other_byte_order, (Addr))
-# define read_4ubyte_unaligned(Dbg, Addr) \
- read_4ubyte_unaligned_1 ((Dbg)->other_byte_order, (Addr))
-# define read_4sbyte_unaligned(Dbg, Addr) \
- read_4sbyte_unaligned_1 ((Dbg)->other_byte_order, (Addr))
-# define read_8ubyte_unaligned(Dbg, Addr) \
- read_8ubyte_unaligned_1 ((Dbg)->other_byte_order, (Addr))
-# define read_8sbyte_unaligned(Dbg, Addr) \
- read_8sbyte_unaligned_1 ((Dbg)->other_byte_order, (Addr))
-
-static inline uint16_t
-read_2ubyte_unaligned_1 (bool other_byte_order, const void *p)
-{
- const union unaligned *up = p;
- if (unlikely (other_byte_order))
- return bswap_16 (up->u2);
- return up->u2;
-}
-static inline int16_t
-read_2sbyte_unaligned_1 (bool other_byte_order, const void *p)
-{
- const union unaligned *up = p;
- if (unlikely (other_byte_order))
- return (int16_t) bswap_16 (up->u2);
- return up->s2;
-}
-
-static inline uint32_t
-read_4ubyte_unaligned_noncvt (const void *p)
-{
- const union unaligned *up = p;
- return up->u4;
-}
-static inline uint32_t
-read_4ubyte_unaligned_1 (bool other_byte_order, const void *p)
-{
- const union unaligned *up = p;
- if (unlikely (other_byte_order))
- return bswap_32 (up->u4);
- return up->u4;
-}
-static inline int32_t
-read_4sbyte_unaligned_1 (bool other_byte_order, const void *p)
-{
- const union unaligned *up = p;
- if (unlikely (other_byte_order))
- return (int32_t) bswap_32 (up->u4);
- return up->s4;
-}
-
-static inline uint64_t
-read_8ubyte_unaligned_noncvt (const void *p)
-{
- const union unaligned *up = p;
- return up->u8;
-}
-static inline uint64_t
-read_8ubyte_unaligned_1 (bool other_byte_order, const void *p)
-{
- const union unaligned *up = p;
- if (unlikely (other_byte_order))
- return bswap_64 (up->u8);
- return up->u8;
-}
-static inline int64_t
-read_8sbyte_unaligned_1 (bool other_byte_order, const void *p)
-{
- const union unaligned *up = p;
- if (unlikely (other_byte_order))
- return (int64_t) bswap_64 (up->u8);
- return up->s8;
-}
-
-#endif /* allow unaligned */
-
-
-#define read_2ubyte_unaligned_inc(Dbg, Addr) \
- ({ uint16_t t_ = read_2ubyte_unaligned (Dbg, Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 2); \
- t_; })
-#define read_2sbyte_unaligned_inc(Dbg, Addr) \
- ({ int16_t t_ = read_2sbyte_unaligned (Dbg, Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 2); \
- t_; })
-
-#define read_4ubyte_unaligned_inc(Dbg, Addr) \
- ({ uint32_t t_ = read_4ubyte_unaligned (Dbg, Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 4); \
- t_; })
-#define read_4sbyte_unaligned_inc(Dbg, Addr) \
- ({ int32_t t_ = read_4sbyte_unaligned (Dbg, Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 4); \
- t_; })
-
-#define read_8ubyte_unaligned_inc(Dbg, Addr) \
- ({ uint64_t t_ = read_8ubyte_unaligned (Dbg, Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 8); \
- t_; })
-#define read_8sbyte_unaligned_inc(Dbg, Addr) \
- ({ int64_t t_ = read_8sbyte_unaligned (Dbg, Addr); \
- Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 8); \
- t_; })
-
-
-#define read_addr_unaligned_inc(Nbytes, Dbg, Addr) \
- (assert ((Nbytes) == 4 || (Nbytes) == 8), \
- ((Nbytes) == 4 ? read_4ubyte_unaligned_inc (Dbg, Addr) \
- : read_8ubyte_unaligned_inc (Dbg, Addr)))
-
-#endif /* memory-access.h */
diff --git a/src/libdwelf/Android.mk b/src/libdwelf/Android.mk
deleted file mode 100755
index a91aa87e..00000000
--- a/src/libdwelf/Android.mk
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright (C) 2015 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-LOCAL_PATH := $(call my-dir)
-
-LIBDWELF_SRC_FILES := \
- dwelf_dwarf_gnu_debugaltlink.c \
- dwelf_elf_gnu_build_id.c \
- dwelf_elf_gnu_debuglink.c \
-
-
-ifeq ($(HOST_OS),linux)
-
-#
-# host libdwelf
-#
-
-include $(CLEAR_VARS)
-
-# Clang has no nested functions.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBDWELF_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
- $(LOCAL_PATH)/../libdw \
- $(LOCAL_PATH)/../libdwfl \
- $(LOCAL_PATH)/../libebl \
- $(LOCAL_PATH)/../libelf
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE -D_BSD_SOURCE
-
-# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
-LOCAL_CFLAGS += -Wno-pointer-arith
-
-LOCAL_MODULE:= libdwelf
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-LOCAL_STATIC_LIBRARIES := libz
-
-include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif # linux
-
-#
-# target libdwelf
-#
-
-include $(CLEAR_VARS)
-
-# Clang has no nested functions.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBDWELF_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
- $(LOCAL_PATH)/../libdw \
- $(LOCAL_PATH)/../libdwfl \
- $(LOCAL_PATH)/../libebl \
- $(LOCAL_PATH)/../libelf
-
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../bionic-fixup
-
-LOCAL_CFLAGS += -include $(LOCAL_PATH)/../../bionic-fixup/AndroidFixup.h
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE -D_BSD_SOURCE -Werror
-
-# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
-LOCAL_CFLAGS += -Wno-pointer-arith
-
-LOCAL_MODULE_TAGS := eng
-
-LOCAL_MODULE:= libdwelf
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-LOCAL_STATIC_LIBRARIES := libz
-
-include $(BUILD_STATIC_LIBRARY)
diff --git a/src/libdwelf/ChangeLog b/src/libdwelf/ChangeLog
deleted file mode 100644
index 342cb9cf..00000000
--- a/src/libdwelf/ChangeLog
+++ /dev/null
@@ -1,28 +0,0 @@
-2014-11-14 Mark Wielaard <mjw@redhat.com>
-
- * dwelf_elf_gnu_debuglink.c (dwelf_elf_gnu_debuglink): Check d_buf
- is not NULL.
-
-2014-04-30 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (AM_CPPFLAGS): Add libdwfl and libebl include dirs.
- (libdwelf_a_SOURCES): Add dwelf_elf_gnu_build_id.c
- * dwelf_elf_gnu_build_id.c: New file. Moved libdwfl function
- __libdwfl_find_elf_build_id here.
- * libdwelf.h (dwelf_elf_gnu_build_id): Declare new function.
- * libdwelfP.h (dwelf_elf_gnu_build_id): Add internal declaration.
-
-2014-04-24 Florian Weimer <fweimer@redhat.com>
-
- * dwelf_dwarf_gnu_debugaltlink.c: New file.
- * Makefile.am (libdwelf_a_SOURCES): Add it.
- * libdwelf.h (dwelf_dwarf_gnu_debugaltlink): Declare new function.
- * libdwelfP.h (dwelf_dwarf_gnu_debugaltlink): Add internal
- declaration.
-
-2014-04-11 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: New file.
- * libdwelf.h: Likewise.
- * libdwelfP.h: Likewise.
- * dwelf_elf_gnu_debuglink.c: Likewise.
diff --git a/src/libdwelf/Makefile b/src/libdwelf/Makefile
deleted file mode 100644
index 3cb510ac..00000000
--- a/src/libdwelf/Makefile
+++ /dev/null
@@ -1,658 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# libdwelf/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog
-subdir = libdwelf
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libdwelf_a_AR = $(AR) $(ARFLAGS)
-libdwelf_a_LIBADD =
-am_libdwelf_a_OBJECTS = dwelf_elf_gnu_debuglink.$(OBJEXT) \
- dwelf_dwarf_gnu_debugaltlink.$(OBJEXT) \
- dwelf_elf_gnu_build_id.$(OBJEXT)
-libdwelf_a_OBJECTS = $(am_libdwelf_a_OBJECTS)
-libdwelf_pic_a_AR = $(AR) $(ARFLAGS)
-libdwelf_pic_a_LIBADD =
-libdwelf_pic_a_OBJECTS = $(am_libdwelf_pic_a_OBJECTS)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libdwelf_a_SOURCES) $(libdwelf_pic_a_SOURCES)
-DIST_SOURCES = $(libdwelf_a_SOURCES) $(libdwelf_pic_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(pkgincludedir)"
-HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 1
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/libdwelf
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/libdwelf
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf -I$(srcdir)/../libdw \
- -I$(srcdir)/../libdwfl -I$(srcdir)/../libebl
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libdwelf_pic_a_OBJECTS)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-noinst_LIBRARIES = libdwelf.a libdwelf_pic.a
-pkginclude_HEADERS = libdwelf.h
-noinst_HEADERS = libdwelfP.h
-libdwelf_a_SOURCES = dwelf_elf_gnu_debuglink.c dwelf_dwarf_gnu_debugaltlink.c \
- dwelf_elf_gnu_build_id.c
-
-libdwelf = $(libdw)
-libdw = ../libdw/libdw.so
-libelf = ../libelf/libelf.so
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-libdwelf_pic_a_SOURCES =
-am_libdwelf_pic_a_OBJECTS = $(libdwelf_a_SOURCES:.c=.os)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libdwelf/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libdwelf/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libdwelf.a: $(libdwelf_a_OBJECTS) $(libdwelf_a_DEPENDENCIES) $(EXTRA_libdwelf_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdwelf.a
- $(AM_V_AR)$(libdwelf_a_AR) libdwelf.a $(libdwelf_a_OBJECTS) $(libdwelf_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdwelf.a
-
-libdwelf_pic.a: $(libdwelf_pic_a_OBJECTS) $(libdwelf_pic_a_DEPENDENCIES) $(EXTRA_libdwelf_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdwelf_pic.a
- $(AM_V_AR)$(libdwelf_pic_a_AR) libdwelf_pic.a $(libdwelf_pic_a_OBJECTS) $(libdwelf_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdwelf_pic.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/dwelf_dwarf_gnu_debugaltlink.Po
-include ./$(DEPDIR)/dwelf_elf_gnu_build_id.Po
-include ./$(DEPDIR)/dwelf_elf_gnu_debuglink.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-pkgincludeHEADERS install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libdwelf/Makefile.am b/src/libdwelf/Makefile.am
deleted file mode 100644
index cd4b7ddf..00000000
--- a/src/libdwelf/Makefile.am
+++ /dev/null
@@ -1,55 +0,0 @@
-## Makefile.am for libdwelf library subdirectory in elfutils.
-##
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 2014 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libdw \
- -I$(srcdir)/../libdwfl -I$(srcdir)/../libebl
-VERSION = 1
-
-noinst_LIBRARIES = libdwelf.a libdwelf_pic.a
-
-pkginclude_HEADERS = libdwelf.h
-noinst_HEADERS = libdwelfP.h
-
-libdwelf_a_SOURCES = dwelf_elf_gnu_debuglink.c dwelf_dwarf_gnu_debugaltlink.c \
- dwelf_elf_gnu_build_id.c
-
-libdwelf = $(libdw)
-
-libdw = ../libdw/libdw.so
-libelf = ../libelf/libelf.so
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-
-libdwelf_pic_a_SOURCES =
-am_libdwelf_pic_a_OBJECTS = $(libdwelf_a_SOURCES:.c=.os)
-
-CLEANFILES += $(am_libdwelf_pic_a_OBJECTS)
diff --git a/src/libdwelf/Makefile.in b/src/libdwelf/Makefile.in
deleted file mode 100644
index fc3e76ad..00000000
--- a/src/libdwelf/Makefile.in
+++ /dev/null
@@ -1,658 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog
-subdir = libdwelf
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libdwelf_a_AR = $(AR) $(ARFLAGS)
-libdwelf_a_LIBADD =
-am_libdwelf_a_OBJECTS = dwelf_elf_gnu_debuglink.$(OBJEXT) \
- dwelf_dwarf_gnu_debugaltlink.$(OBJEXT) \
- dwelf_elf_gnu_build_id.$(OBJEXT)
-libdwelf_a_OBJECTS = $(am_libdwelf_a_OBJECTS)
-libdwelf_pic_a_AR = $(AR) $(ARFLAGS)
-libdwelf_pic_a_LIBADD =
-libdwelf_pic_a_OBJECTS = $(am_libdwelf_pic_a_OBJECTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libdwelf_a_SOURCES) $(libdwelf_pic_a_SOURCES)
-DIST_SOURCES = $(libdwelf_a_SOURCES) $(libdwelf_pic_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(pkgincludedir)"
-HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = 1
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf -I$(srcdir)/../libdw \
- -I$(srcdir)/../libdwfl -I$(srcdir)/../libebl
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libdwelf_pic_a_OBJECTS)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-noinst_LIBRARIES = libdwelf.a libdwelf_pic.a
-pkginclude_HEADERS = libdwelf.h
-noinst_HEADERS = libdwelfP.h
-libdwelf_a_SOURCES = dwelf_elf_gnu_debuglink.c dwelf_dwarf_gnu_debugaltlink.c \
- dwelf_elf_gnu_build_id.c
-
-libdwelf = $(libdw)
-libdw = ../libdw/libdw.so
-libelf = ../libelf/libelf.so
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-libdwelf_pic_a_SOURCES =
-am_libdwelf_pic_a_OBJECTS = $(libdwelf_a_SOURCES:.c=.os)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libdwelf/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libdwelf/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libdwelf.a: $(libdwelf_a_OBJECTS) $(libdwelf_a_DEPENDENCIES) $(EXTRA_libdwelf_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdwelf.a
- $(AM_V_AR)$(libdwelf_a_AR) libdwelf.a $(libdwelf_a_OBJECTS) $(libdwelf_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdwelf.a
-
-libdwelf_pic.a: $(libdwelf_pic_a_OBJECTS) $(libdwelf_pic_a_DEPENDENCIES) $(EXTRA_libdwelf_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdwelf_pic.a
- $(AM_V_AR)$(libdwelf_pic_a_AR) libdwelf_pic.a $(libdwelf_pic_a_OBJECTS) $(libdwelf_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdwelf_pic.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwelf_dwarf_gnu_debugaltlink.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwelf_elf_gnu_build_id.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwelf_elf_gnu_debuglink.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-pkgincludeHEADERS install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libdwelf/dwelf_dwarf_gnu_debugaltlink.c b/src/libdwelf/dwelf_dwarf_gnu_debugaltlink.c
deleted file mode 100644
index b8285d09..00000000
--- a/src/libdwelf/dwelf_dwarf_gnu_debugaltlink.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Returns the file name and build ID stored in the .gnu_altdebuglink if found.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwelfP.h"
-
-ssize_t
-dwelf_dwarf_gnu_debugaltlink (Dwarf *dwarf,
- const char **name_p,
- const void **build_idp)
-{
- Elf_Data *data = dwarf->sectiondata[IDX_gnu_debugaltlink];
- if (data == NULL)
- {
- return 0;
- }
-
- const void *ptr = memchr (data->d_buf, '\0', data->d_size);
- if (ptr == NULL)
- {
- __libdw_seterrno (DWARF_E_INVALID_ELF);
- return -1;
- }
- size_t build_id_len = data->d_size - (ptr - data->d_buf + 1);
- if (build_id_len == 0 || (size_t) (ssize_t) build_id_len != build_id_len)
- {
- __libdw_seterrno (DWARF_E_INVALID_ELF);
- return -1;
- }
- *name_p = data->d_buf;
- *build_idp = ptr + 1;
- return build_id_len;
-}
-INTDEF(dwelf_dwarf_gnu_debugaltlink)
diff --git a/src/libdwelf/dwelf_elf_gnu_build_id.c b/src/libdwelf/dwelf_elf_gnu_build_id.c
deleted file mode 100644
index 1ed501d9..00000000
--- a/src/libdwelf/dwelf_elf_gnu_build_id.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/* Returns the build id if found in a NT_GNU_BUILD_ID note.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwelfP.h"
-#include "libdwflP.h"
-
-#define NO_VADDR ((GElf_Addr) -1l)
-
-/* Defined here for reuse. The dwelf interface doesn't care about the
- address of the note, but libdwfl does. */
-static int
-find_elf_build_id (Dwfl_Module *mod, int e_type, Elf *elf,
- const void **build_id_bits, GElf_Addr *build_id_elfaddr,
- int *build_id_len)
-{
- int check_notes (Elf_Data *data, GElf_Addr data_elfaddr)
- {
- size_t pos = 0;
- GElf_Nhdr nhdr;
- size_t name_pos;
- size_t desc_pos;
- while ((pos = gelf_getnote (data, pos, &nhdr, &name_pos, &desc_pos)) > 0)
- if (nhdr.n_type == NT_GNU_BUILD_ID
- && nhdr.n_namesz == sizeof "GNU" && !memcmp (data->d_buf + name_pos,
- "GNU", sizeof "GNU"))
- {
- *build_id_bits = data->d_buf + desc_pos;
- *build_id_elfaddr = (data_elfaddr == NO_VADDR
- ? 0 : data_elfaddr + desc_pos);
- *build_id_len = nhdr.n_descsz;
- return 1;
- }
- return 0;
- }
-
- size_t shstrndx = SHN_UNDEF;
- int result = 0;
-
- Elf_Scn *scn = elf_nextscn (elf, NULL);
-
- if (scn == NULL)
- {
- /* No sections, have to look for phdrs. */
- size_t phnum;
- if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
- {
- if (mod != NULL)
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return -1;
- }
- for (size_t i = 0; result == 0 && i < phnum; ++i)
- {
- GElf_Phdr phdr_mem;
- GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
- if (likely (phdr != NULL) && phdr->p_type == PT_NOTE)
- result = check_notes (elf_getdata_rawchunk (elf,
- phdr->p_offset,
- phdr->p_filesz,
- ELF_T_NHDR),
- phdr->p_vaddr);
- }
- }
- else
- do
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (likely (shdr != NULL) && shdr->sh_type == SHT_NOTE)
- {
- /* Determine the right sh_addr in this module. */
- GElf_Addr vaddr = 0;
- if (!(shdr->sh_flags & SHF_ALLOC))
- vaddr = NO_VADDR;
- else if (mod == NULL || e_type != ET_REL)
- vaddr = shdr->sh_addr;
- else if (__libdwfl_relocate_value (mod, elf, &shstrndx,
- elf_ndxscn (scn), &vaddr))
- vaddr = NO_VADDR;
- result = check_notes (elf_getdata (scn, NULL), vaddr);
- }
- }
- while (result == 0 && (scn = elf_nextscn (elf, scn)) != NULL);
-
- return result;
-}
-
-int
-internal_function
-__libdwfl_find_elf_build_id (Dwfl_Module *mod, Elf *elf,
- const void **build_id_bits,
- GElf_Addr *build_id_elfaddr, int *build_id_len)
-{
- GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (unlikely (ehdr == NULL))
- {
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return -1;
- }
- // MOD->E_TYPE is zero here.
- assert (ehdr->e_type != ET_REL || mod != NULL);
-
- return find_elf_build_id (mod, ehdr->e_type, elf,
- build_id_bits, build_id_elfaddr, build_id_len);
-}
-
-ssize_t
-dwelf_elf_gnu_build_id (Elf *elf, const void **build_idp)
-{
- GElf_Addr build_id_elfaddr;
- int build_id_len;
- int result = find_elf_build_id (NULL, ET_NONE, elf, build_idp,
- &build_id_elfaddr, &build_id_len);
- if (result > 0)
- return build_id_len;
-
- return result;
-}
-INTDEF(dwelf_elf_gnu_build_id)
diff --git a/src/libdwelf/dwelf_elf_gnu_debuglink.c b/src/libdwelf/dwelf_elf_gnu_debuglink.c
deleted file mode 100644
index 6e22cf67..00000000
--- a/src/libdwelf/dwelf_elf_gnu_debuglink.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Returns the file name and crc stored in the .gnu_debuglink if found.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwelfP.h"
-
-const char *
-dwelf_elf_gnu_debuglink (Elf *elf, GElf_Word *crc)
-{
- size_t shstrndx;
- if (elf_getshdrstrndx (elf, &shstrndx) < 0)
- return NULL;
-
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- return NULL;
-
- const char *name = elf_strptr (elf, shstrndx, shdr->sh_name);
- if (name == NULL)
- return NULL;
-
- if (!strcmp (name, ".gnu_debuglink"))
- break;
- }
-
- if (scn == NULL)
- return NULL;
-
- /* Found the .gnu_debuglink section. Extract its contents. */
- Elf_Data *rawdata = elf_rawdata (scn, NULL);
- if (rawdata == NULL || rawdata->d_buf == NULL)
- return NULL;
-
- /* The CRC comes after the zero-terminated file name,
- (aligned up to 4 bytes) at the end of the section data. */
- if (rawdata->d_size <= sizeof *crc
- || memchr (rawdata->d_buf, '\0', rawdata->d_size - sizeof *crc) == NULL)
- return NULL;
-
- Elf_Data crcdata =
- {
- .d_type = ELF_T_WORD,
- .d_buf = crc,
- .d_size = sizeof *crc,
- .d_version = EV_CURRENT,
- };
- Elf_Data conv =
- {
- .d_type = ELF_T_WORD,
- .d_buf = rawdata->d_buf + rawdata->d_size - sizeof *crc,
- .d_size = sizeof *crc,
- .d_version = EV_CURRENT,
- };
-
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- return NULL;
-
- Elf_Data *d = gelf_xlatetom (elf, &crcdata, &conv, ehdr->e_ident[EI_DATA]);
- if (d == NULL)
- return NULL;
- assert (d == &crcdata);
-
- return rawdata->d_buf;
-}
-INTDEF(dwelf_elf_gnu_debuglink)
diff --git a/src/libdwelf/libdwelf.h b/src/libdwelf/libdwelf.h
deleted file mode 100644
index e16dc0f3..00000000
--- a/src/libdwelf/libdwelf.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Interfaces for libdwelf. DWARF ELF Low-level Functions.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBDWELF_H
-#define _LIBDWELF_H 1
-
-#include "libdw.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* DWARF ELF Low-level Functions (dwelf).
- Functions starting with dwelf_elf will take a (libelf) Elf object as
- first argument and might set elf_errno on error. Functions starting
- with dwelf_dwarf will take a (libdw) Dwarf object as first argument
- and might set dwarf_errno on error. */
-
-/* Returns the name and the CRC32 of the separate debug file from the
- .gnu_debuglink section if found in the ELF. Return NULL if the ELF
- file didn't have a .gnu_debuglink section, had malformed data in the
- section or some other error occured. */
-extern const char *dwelf_elf_gnu_debuglink (Elf *elf, GElf_Word *crc);
-
-/* Returns the name and build ID from the .gnu_debugaltlink section if
- found in the ELF. On success, pointers to the name and build ID
- are written to *NAMEP and *BUILDID_P, and the positive length of
- the build ID is returned. Returns 0 if the ELF lacks a
- .gnu_debugaltlink section. Returns -1 in case of malformed data or
- other errors. */
-extern ssize_t dwelf_dwarf_gnu_debugaltlink (Dwarf *dwarf,
- const char **namep,
- const void **build_idp);
-
-/* Returns the build ID as found in a NT_GNU_BUILD_ID note from either
- a SHT_NOTE section or from a PT_NOTE segment if the ELF file
- doesn't contain any section headers. On success a pointer to the
- build ID is written to *BUILDID_P, and the positive length of the
- build ID is returned. Returns 0 if the ELF lacks a NT_GNU_BUILD_ID
- note. Returns -1 in case of malformed data or other errors. */
-extern ssize_t dwelf_elf_gnu_build_id (Elf *elf, const void **build_idp);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* libdwelf.h */
diff --git a/src/libdwelf/libdwelfP.h b/src/libdwelf/libdwelfP.h
deleted file mode 100644
index d83c759a..00000000
--- a/src/libdwelf/libdwelfP.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Internal definitions for libdwelf. DWARF ELF Low-level Functions.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBDWELFP_H
-#define _LIBDWELFP_H 1
-
-#include <libdwelf.h>
-#include "../libdw/libdwP.h" /* We need its INTDECLs. */
-#include <assert.h>
-#include <string.h>
-
-/* Avoid PLT entries. */
-INTDECL (dwelf_elf_gnu_debuglink)
-INTDECL (dwelf_dwarf_gnu_debugaltlink)
-INTDECL (dwelf_elf_gnu_build_id)
-
-#endif /* libdwelfP.h */
diff --git a/src/libdwfl/Android.mk b/src/libdwfl/Android.mk
deleted file mode 100755
index 377b58a3..00000000
--- a/src/libdwfl/Android.mk
+++ /dev/null
@@ -1,167 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-LOCAL_PATH := $(call my-dir)
-
-LIBDWFL_SRC_FILES := \
- core-file.c \
- cu.c \
- derelocate.c \
- dwfl_addrdie.c \
- dwfl_addrdwarf.c \
- dwfl_addrmodule.c \
- dwfl_begin.c \
- dwfl_build_id_find_debuginfo.c \
- dwfl_build_id_find_elf.c \
- dwfl_cumodule.c \
- dwfl_dwarf_line.c \
- dwfl_end.c \
- dwfl_error.c \
- dwfl_frame.c \
- dwfl_frame_pc.c \
- dwfl_frame_regs.c \
- dwfl_getdwarf.c \
- dwfl_getmodules.c \
- dwfl_getsrc.c \
- dwfl_getsrclines.c \
- dwfl_line_comp_dir.c \
- dwfl_linecu.c \
- dwfl_lineinfo.c \
- dwfl_linemodule.c \
- dwfl_module_addrdie.c \
- dwfl_module_addrname.c \
- dwfl_module_addrsym.c \
- dwfl_module_build_id.c \
- dwfl_module.c \
- dwfl_module_dwarf_cfi.c \
- dwfl_module_eh_cfi.c \
- dwfl_module_getdwarf.c \
- dwfl_module_getelf.c \
- dwfl_module_getsrc.c \
- dwfl_module_getsrc_file.c \
- dwfl_module_getsym.c \
- dwfl_module_info.c \
- dwfl_module_nextcu.c \
- dwfl_module_register_names.c \
- dwfl_module_report_build_id.c \
- dwfl_module_return_value_location.c \
- dwfl_nextcu.c \
- dwfl_onesrcline.c \
- dwfl_report_elf.c \
- dwfl_segment_report_module.c \
- dwfl_validate_address.c \
- dwfl_version.c \
- elf-from-memory.c \
- find-debuginfo.c \
- frame_unwind.c \
- gzip.c \
- image-header.c \
- libdwfl_crc32.c \
- libdwfl_crc32_file.c \
- lines.c \
- link_map.c \
- linux-core-attach.c \
- linux-kernel-modules.c \
- linux-pid-attach.c \
- linux-proc-maps.c \
- offline.c \
- open.c \
- relocate.c \
- segment.c \
-
-
-ifeq ($(HOST_OS),linux)
-
-#
-# host libdwfl
-#
-
-include $(CLEAR_VARS)
-
-# Clang has no nested functions.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBDWFL_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
- $(LOCAL_PATH)/../libdwelf \
- $(LOCAL_PATH)/../libdwfl \
- $(LOCAL_PATH)/../libebl \
- $(LOCAL_PATH)/../libdw \
- $(LOCAL_PATH)/../libelf
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE
-
-# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
-LOCAL_CFLAGS += -Wno-pointer-arith
-
-# Asserts are not compiled, so some debug variables appear unused. Rather than
-# fix, we prefer to turn off the warning locally.
-LOCAL_CFLAGS += -Wno-unused-but-set-variable
-
-# Similar to the above. To stay in line with upstream, ignore the warning.
-LOCAL_CFLAGS += -Wno-unused-variable
-
-LOCAL_MODULE:= libdwfl
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-LOCAL_STATIC_LIBRARIES := libz
-
-include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif # linux
-
-#
-# target libdwfl
-#
-
-include $(CLEAR_VARS)
-
-# Clang has no nested functions.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBDWFL_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
- $(LOCAL_PATH)/../libdwelf \
- $(LOCAL_PATH)/../libdwfl \
- $(LOCAL_PATH)/../libebl \
- $(LOCAL_PATH)/../libdw \
- $(LOCAL_PATH)/../libelf
-
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../bionic-fixup
-
-LOCAL_CFLAGS += -include $(LOCAL_PATH)/../../bionic-fixup/AndroidFixup.h
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE -Werror
-
-# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
-LOCAL_CFLAGS += -Wno-pointer-arith
-
-# See above.
-LOCAL_CFLAGS += -Wno-unused-but-set-variable
-LOCAL_CFLAGS += -Wno-unused-variable
-
-LOCAL_MODULE:= libdwfl
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-LOCAL_STATIC_LIBRARIES := libz
-
-include $(BUILD_STATIC_LIBRARY)
diff --git a/src/libdwfl/ChangeLog b/src/libdwfl/ChangeLog
deleted file mode 100644
index 69e59a6f..00000000
--- a/src/libdwfl/ChangeLog
+++ /dev/null
@@ -1,2345 +0,0 @@
-2014-12-19 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_getdwarf.c (find_symtab): Always try find_dynsym last.
-
-2014-12-19 Mark Wielaard <mjw@redhat.com>
-
- * elf-from-memory.c (handle_segment): Remove palign sanity check.
-
-2014-12-18 Mark Wielaard <mjw@redhat.com>
-
- * relocate.c (resolve_symbol): Make sure symstrdata->d_buf != NULL.
-
-2014-12-13 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_getdwarf.c (find_dynsym): elf_getdata_rawchunk takes
- a size_t, make sure it doesn't overflow.
-
-2014-12-13 Mark Wielaard <mjw@redhat.com>
-
- * cu.c (cudie_offset): Make sure Dwarf_Off difference doesn't
- wrap around before returning as int.
-
-2014-12-11 Josh Stone <jistone@redhat.com>
-
- * dwfl_module_getsrc.c (dwfl_module_getsrc): Return the *last* line
- record <= addr, rather than returning immediately on matches.
-
-2014-12-09 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_segment_report_module.c (handle_file_note): Check count doesn't
- overflow.
-
-2014-12-07 Mark Wielaard <mjw@redhat.com>
-
- * relocate.c (relocate_section): Sanity check section overlap against
- actually used ehsize, shentsize and phentsize.
-
-2014-12-07 Mark Wielaard <mjw@redhat.com>
-
- * offline.c (dwfl_offline_section_address): Assert shndx is not zero.
- * relocate.c (__libdwfl_relocate_value): Don't relocate against
- section zero.
-
-2014-11-29 Mark Wielaard <mjw@redhat.com>
-
- * relocate.c (relocate_section): Check relocation section and target
- section data don't overlap any of the ELF headers.
- (relocate): Check for offset + size overflow.
-
-2014-11-22 Mark Wielaard <mjw@redhat.com>
-
- * link_map.c (consider_executable): Use elf_getphdrnum.
- (dwfl_link_map_report): Likewise.
-
-2014-11-18 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_getdwarf.c (find_symtab): Sanity check the data buffer,
- number of symbols and first_global before use.
-
-2014-11-14 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_getdwarf.c (load_symtab): Don't use tables which have
- a zero sh_entsize.
-
-2014-11-10 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_getdwarf.c (find_dynsym): New inner function
- translate_offs that takes an adjust argument. Try finding
- the symbol table with and without adjusting to main_bias.
-
-2014-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Support NT_FILE for locating files.
- * core-file.c (dwfl_core_file_report): New variables note_file and
- note_file_size, set them and pass them to dwfl_segment_report_module.
- * dwfl_segment_report_module.c: Include common.h and fcntl.h.
- (buf_has_data, buf_read_ulong, handle_file_note): New functions.
- (invalid_elf): New function from code of dwfl_segment_report_module.
- (dwfl_segment_report_module): Add parameters note_file and
- note_file_size. New variables elf and fd, clean them up in finish.
- Move some code to invalid_elf. Call handle_file_note, if it found
- a name verify the file by invalid_elf. Protect elf and fd against
- cleanup by finish if we found the file for new Dwfl_Module.
- * libdwflP.h (dwfl_segment_report_module): Add parameters note_file and
- note_file_size.
-
-2014-09-23 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_segment_report_module.c (dwfl_segment_report_module):
- Extract ei_class, ei_data and e_type early and use the result.
-
-2014-09-18 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_build_id_find_elf.c (dwfl_build_id_find_elf): Use IS_EXECUTABLE.
- * dwfl_segment_report_module.c (dwfl_segment_report_module): Set
- IS_EXECUTABLE.
- * libdwflP.h (struct Dwfl_Module): New field is_executable.
-
-2014-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_module_getdwarf.c (find_offsets): Add parameter main_bias, use
- it.
- (find_dynsym): Pass the new parameter main_bias.
-
-2014-08-14 Mark Wielaard <mjw@redhat.com>
-
- * linux-kernel-modules.c (check-suffix): Also TRY .ko.xz.
-
-2014-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix report_r_debug for prelinked libraries.
- * link_map.c (report_r_debug): Comment out variable l_addr.
- Use instead new variable base recalculated from l_ld.
-
-2014-06-24 Kurt Roeckx <kurt@roeckx.be>
-
- * linux-pid-attach.c: Make it build on non linux hosts.
-
-2014-06-17 Mark Wielaard <mjw@redhat.com>
-
- * frame_unwind.c (handle_cfi): Use ebl_func_addr_mask.
- * dwfl_module_getsym.c (__libdwfl_getsym): Likewise.
-
-2014-06-15 Mark Wielaard <mjw@redhat.com>
-
- * linux-core-attach.c (core_memory_read): Use libdw/memory-access.h
- macros read_4ubyte_unaligned_noncvt and read_8ubyte_unaligned_noncvt
- to read possibly unaligned data.
- (core_next_thread): Likewise.
- (core_set_initial_registers): Likewise.
- (dwfl_core_file_attach): Likewise.
-
-2014-06-11 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_frame.c (__libdwfl_process_free): Reset dwfl->attacherr.
- (dwfl_attach_state): Set dwfl->attacherr.
- (dwfl_pid): Check and return dwfl->attacherr if set.
- (dwfl_getthreads): Likewise.
- (getthread): Likewise.
- * libdwflP.h: Add DWFL_E_NO_CORE_FILE.
- (struct Dwfl): Add attacherr field.
- * linux-core-attach.c (dwfl_core_file_attach): Set dwfl->attacherr.
- Don't assert if ELF file is not ET_CORE, just return error.
- * linux-pid-attach.c (dwfl_linux_proc_attach): Set dwfl->attacherr.
-
-2014-06-10 Mark Wielaard <mjw@redhat.com>
-
- * argp-std.c (parse_opt): Ignore errors from dwfl_core_file_attach
- or dwfl_linux_proc_attach.
-
-2014-05-15 Mark Wielaard <mjw@redhat.com>
-
- * linux-proc-maps.c (grovel_auxv): Close fd on error.
-
-2014-05-02 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_getdwarf: Remove ENABLE_DWZ ifdefs so find_debug_altlink
- is always called.
-
-2014-05-01 Mark Wielaard <mjw@redhat.com>
-
- * libdwflP.h (struct Dwfl_Module): Add alt, alt_fd and alt_elf fields.
- (__libdwfl_open_mod_by_build_id): Renamed __libdwfl_open_by_build_id.
- (__libdwfl_open_by_build_id): New declaration that takes an explicit
- build-id.
- * dwfl_build_id_find_debuginfo.c (dwfl_build_id_find_debuginfo): If
- we already have the Dwarf then look for the alt dwz multi file by
- build-id.
- * dwfl_build_id_find_elf.c (__libdwfl_open_by_build_id): Add the
- build-id we are looking for as argument.
- (__libdwfl_open_mod_by_build_id): New function, calls
- __libdwfl_open_by_build_id.
- (dwfl_build_id_find_elf): Call __libdwfl_open_mod_by_build_id.
- * dwfl_module.c (__libdwfl_module_free): Release alt, alt_elf and
- close alt_fd if necessary.
- * dwfl_module_getdwarf.c (__check_build_id): Removed.
- (try_debugaltlink): Removed.
- (open_debugaltlink): Removed.
- (open_elf_file): First half of open_elf that just opens the elf
- file but doesn't setup the load address.
- (open_elf): Call open_elf_file.
- (find_debug_altlink): New function.
- (load_dw): Remove loading of dwz multifile.
- (find_dw): Call find_debug_altlink.
- * find-debuginfo.c (validate): Handle alt debug case using
- dwelf_dwarf_gnu_debugaltlink and mod->alt_elf.
- (find_debuginfo_in_path): Handle alt debug files possibly in .dwz
- subdirs.
- * linux-kernel-modules.c (try_kernel_name): Use fakemod.debug.name
- to store name to find by dwfl_standard_find_debuginfo instead of
- allocating an extra variable on stack.
-
-2014-04-30 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_build_id.c (__libdwfl_find_elf_build_id): Moved to
- dwelf_elf_gnu_build_id.c.
- (__libdwfl_find_build_id): Add assert to make sure mod is never NULL.
- * dwfl_segment_report_module.c (dwfl_segment_report_module): Call
- dwelf_elf_gnu_build_id directly instead of __libdwfl_find_build_id.
- * dwfl_module_getdwarf.c (__check_build_id): Implement using
- dwelf_elf_gnu_build_id.
-
-2014-04-15 Florian Weimer <fweimer@redhat.com>
-
- * dwfl_module_getdwarf.c (__check_build_id): Moved from libdw.
- (try_debugaltlink): Likewise.
- (open_debugaltlink): Likewise.
- (load_dw): Locate alternate debug information using
- dwelf_dwarf_gnu_debugaltlink and call open_debugaltlink.
-
-2014-04-11 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (AM_CPPFLAGS): Add libdwelf.
- * libdwflP.h: Include libdwelfP.h.
- * dwfl_module_getdwarf.c (find_debuglink): Moved to libdwelf.
- (find_debuginfo): Use dwelf_elf_gnu_debuglink.
-
-2014-04-22 Mark Wielaard <mjw@redhat.com>
-
- * frame_unwind.c (__libdwfl_frame_reg_get): Use uint64_t when
- checking bits.
- (__libdwfl_frame_reg_set): Likewise.
-
-2014-04-22 Kurt Roeckx <kurt@roeckx.be>
-
- * linux-pid-attach.c: Make linux only.
-
-2014-03-14 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Remove !MUDFLAP and MUDFLAP conditions.
- Remove libelf and libdw definitions when MUDFLAP is defined.
- * argp-std.c (__libdwfl_argp_mudflap_options): Removed.
-
-2014-03-03 Mark Wielaard <mjw@redhat.com>
-
- * elf-from-memory.c (elf_from_remote_memory): Keep track of
- segments_end_mem. Pass memsz to first handle_segment pass. Only
- extend contents_size and use shdrs if only file bits are in
- segment.
-
-2014-03-11 Josh Stone <jistone@redhat.com>
-
- * dwfl_module_getdwarf.c (open_elf): Only explicitly set
- mod->e_type when processing the main ELF file.
-
-2014-03-04 Mark Wielaard <mjw@redhat.com>
-
- * libdwflP.h (struct __libdwfl_pid_arg): Moved here and renamed from
- linux-pid-attach.c (struct pid_arg).
- (__libdwfl_get_pid_arg): New internal function declaration.
- (__libdwfl_ptrace_attach): Likewise.
- (__libdwfl_ptrace_detach): Likewise.
- * dwfl_frame.c (dwfl_attach_state): Add "(deleted)" files to the
- special exception modules that cannot be checked at this point.
- * linux-pid-attach.c (struct pid_arg): Moved to libdwflP.h
- (ptrace_attach): Renamed to...
- (__libdwfl_ptrace_attach): New internal function.
- (__libdwfl_ptrace_detach): Likewise. Extracted from ...
- (pid_thread_detach): Call __libdwfl_ptrace_detach now.
- (__libdwfl_get_pid_arg): New internal function.
- * linux-proc-maps.c (dwfl_linux_proc_find_elf): Check if special
- module name contains "(deleted)" and dwfl_pid gives an attached
- pid. If pid is set and try to (re)use ptrace attach state of
- process before reading memory.
-
-2014-03-03 Mark Wielaard <mjw@redhat.com>
-
- * elf-from-memory.c (elf_from_remote_memory): Take pagesize as
- argument. Free buffer when detecting bad elf. Check PT_LOAD
- alignment requirements on first handle_segment pass. Calculate
- loadbase, start and end of segment using pagesize, not p_align.
- * linux-proc-maps.c (dwfl_linux_proc_find_elf): Provide pagesize
- to elf_from_remote_memory.
-
-2014-02-26 Mark Wielaard <mjw@redhat.com>
-
- * linux-proc-maps.c (proc_maps_report): Don't assert on bad input.
-
-2014-02-26 Mark Wielaard <mjw@redhat.com>
-
- * elf-from-memory.c (elf_from_remote_memory): Check against p64
- p_type in case ELFCLASS64, not against p32 p_type.
-
-2014-01-17 Petr Machata <pmachata@redhat.com>
-
- * relocate.c (relocate_section): Use gelf_fsize instead of relying
- on shdr->sh_entsize.
-
-2014-01-05 Mark Wielaard <mjw@redhat.com>
-
- * frame_unwind.c (handle_cfi): Only skip resetting return register
- if the regno is not the actual CIE return address register.
-
-2014-01-02 Mark Wielaard <mjw@redhat.com>
-
- * linux-pid-attach.c (dwfl_linux_proc_attach): Use strtol, not atoi.
-
-2013-12-30 Mark Wielaard <mjw@redhat.com>
-
- * argp-std.c (parse_opt): Call dwfl_linux_proc_attach and
- dwfl_core_file_attach explicitly.
- * core-file.c (dwfl_core_file_report): Don't call
- __libdwfl_attach_state_for_core implicitly.
- * dwfl_begin.c (dwfl_begin): Remove setting of process_attach_error.
- * dwfl_frame.c (dwfl_pid): Set errno to DWFL_E_NO_ATTACH_STATE, not
- process_attach_error.
- (dwfl_getthreads): Likewise.
- (getthread): Likewise.
- * libdwfl.h (dwfl_core_file_report): Update documentation.
- (dwfl_linux_proc_report): Likewise.
- (dwfl_core_file_attach): New function declaration.
- (dwfl_linux_proc_attach): Likewise.
- * libdwflP.h (struct Dwfl): Remove process_attach_error.
- (__libdwfl_attach_state_for_pid): Removed declaration.
- (__libdwfl_attach_state_for_core): Likewise.
- (dwfl_core_file_attach): New internal declaration.
- (dwfl_linux_proc_attach): Likewise.
- (attach_state_for_core): Renamed to...
- (dwfl_core_file_attach): ...this. Change return type.
- (__libdwfl_attach_state_for_core): Removed.
- * linux-pid-attach.c (struct pid_arg): Add assume_ptrace_stopped.
- (pid_set_initial_registers): Check assume_ptrace_stopped before
- calling ptrace.
- (pid_thread_detach): Likewise.
- (__libdwfl_attach_state_for_pid): Renamed to...
- (dwfl_linux_proc_attach): ...this. Adjust return type.
- * linux-proc-maps.c (dwfl_linux_proc_report): Don't call
- __libdwfl_attach_state_for_pid implicitly.
-
-2013-12-28 Mark Wielaard <mjw@redhat.com>
-
- * linux-proc-maps.c (dwfl_linux_proc_find_elf): Don't return special
- character device files, only regular files.
-
-2013-12-24 Mark Wielaard <mjw@redhat.com>
-
- * linux-core-attach.c (core_next_thread): Check whether thread_argp
- is NULL. Reset core_arg->thread_note_offset and malloc a thread_arg
- in that case. Free thread_arg if there are no more threads.
-
-2013-12-23 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_segment_report_module.c (dwfl_segment_report_module): Free
- build_id before returning early.
-
-2013-12-23 Mark Wielaard <mjw@redhat.com>
-
- * linux-pid-attach.c (__libdwfl_attach_state_for_pid): Report actual
- pid (thread group leader) to dwfl_attach_state.
-
-2013-12-21 Mark Wielaard <mjw@redhat.com>
-
- * frame_unwind.c (handle_cfi): Track whether the return register
- has been set and only allow it to be set once.
-
-2013-12-20 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_frame.c (one_arg): New struct.
- (get_one_thread_cb): New function.
- (dwfl_getthread): Likewise.
- (one_thread): New struct.
- (get_one_thread_frames_cb): New function.
- (dwfl_getthread_frames): Likewise.
- * libdwfl.h (Dwfl_Thread_Callbacks): Add get_thread function.
- (dwfl_getthread_frames): Likewise.
- * libdwflP.h (dwfl_getthread_frames): New internal function declaration.
- * linux-core-attach.c (core_thread_callbacks): Initialize get_thread
- to NULL.
- * linux-pid-attach.c (pid_getthread): New function.
- (pid_thread_callbacks): Initialize get_thread to pid_getthread.
-
-2013-12-20 Mark Wielaard <mjw@redhat.com>
-
- * linux-kernel-modules.c (report_kernel_archive): Correct nested
- asprintf result check for debug.a.
-
-2013-12-18 Mark Wielaard <mjw@redhat.com>
-
- * derelocate.c (__libdwfl_find_section_ndx): New internal function.
- * dwfl_module_addrname.c (dwfl_module_addrname): Use
- dwfl_module_addrinfo.
- * dwfl_module_addrsym.c (dwfl_module_addrsym_elf): Replace with...
- (__libdwfl_addrsym): ...this. Use __libdwfl_getsym, use value
- for comparisons, not st_value. Fill in off. Search for both value
- and the (adjusted) sym.st_value when different.
- (dwfl_module_addrsym): Implement using __libdwfl_addrsym.
- (dwfl_module_addrinfo): New function.
- * dwfl_module_getsym.c (dwfl_module_getsym_elf): Replace with...
- (__libdwfl_getsym): ...this. Use ebl_resolve_sym_value if requested
- and possible. Adjust sym->st_value only when requested. Fill in addr
- if available.
- (dwfl_module_getsym_info): New function.
- (dwfl_module_getsym): Use __libdwfl_getsym.
- * libdwfl.h (dwfl_module_getsym_elf): Removed.
- (dwfl_module_getsym_info): New function declaration.
- (dwfl_module_addrinfo): Likewise.
- (dwfl_module_addrsym): Add documentation describing differences
- with addrinfo variants.
- (dwfl_module_addrsym_elf): Removed.
- * libdwflP.h (__libdwfl_getsym): New internal function declaration.
- (__libdwfl_addrsym): Likewise.
- (__libdwfl_find_section_ndx): Likewise.
- (dwfl_module_addrinfo): New internal declaration.
- (dwfl_module_getsym_info): Likewise.
- (dwfl_module_addrsym_elf): Removed.
- (dwfl_module_getsym_elf): Likewise.
-
-2013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * argp-std.c (offline_find_elf): Remove.
- (offline_callbacks): Use dwfl_build_id_find_elf instead.
- * dwfl_build_id_find_elf.c (dwfl_build_id_find_elf): Move here the code
- removed above.
-
-2013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- unwinder: s390 and s390x
- * dwfl_frame_pc.c (dwfl_frame_pc): Call ebl_normalize_pc.
- * frame_unwind.c (new_unwound): New function from ...
- (handle_cfi): ... here. Call it.
- (setfunc, getfunc, readfunc): New functions.
- (__libdwfl_frame_unwind): Call ebl_unwind with those functions.
- * linux-core-attach.c (core_set_initial_registers): Always iterate
- through the Ebl_Register_Location loop. Call
- dwfl_thread_state_register_pc there.
-
-2013-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * frame_unwind.c (handle_cfi): Call ebl_dwarf_to_regno for RA.
-
-2013-12-17 Mark Wielaard <mjw@redhat.com>
-
- * linux-pid-attach.c (pid_next_thread): Call rewinddir on first
- traversal.
-
-2013-12-16 Mark Wielaard <mjw@redhat.com>
-
- * libdwfl.h (dwfl_module_getsymtab_first_global): New function
- definition.
- * dwfl_module_getdwarf.c (dwfl_module_getsymtab_first_global): New
- function.
- * libdwflP.h (dwfl_module_getsymtab_first_global): New internal
- function definition.
- * dwfl_module_addrsym.c (dwfl_module_addrsym_elf): Use new function.
-
-2013-12-14 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module.c (__libdwfl_module_free): Free mod->reloc_info if
- allocated. Call dwarf_cfi_end on mod->eh_cfi if necessary.
- * frame_unwind.c (handle_cfi): Free frame result from
- dwarf_cfi_addrframe when done.
-
-2013-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- unwinder: ppc and ppc64
- * frame_unwind.c (__libdwfl_frame_reg_get, __libdwfl_frame_reg_set):
- Call ebl_dwarf_to_regno.
- * linux-core-attach.c (core_set_initial_registers): Implement
- pc_register support.
- * linux-pid-attach.c (pid_thread_state_registers_cb): Implement
- FIRSTREG -1.
-
-2013-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Introduce process_attach_error.
- * dwfl_begin.c (dwfl_begin): Initialize process_attach_error.
- * dwfl_frame.c (dwfl_pid, dwfl_getthreads): Use PROCESS_ATTACH_ERROR if
- PROCESS is NULL.
- * libdwflP.h (struct Dwfl): New field process_attach_error.
- * linux-core-attach.c (__libdwfl_attach_state_for_core): Rename to ...
- (attach_state_for_core): ... here, make it static, change return type,
- no longer use __libdwfl_seterrno.
- (__libdwfl_attach_state_for_core): New wrapper for it.
-
-2013-11-27 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_addrsym.c (dwfl_module_addrsym): Rename to and call...
- (dwfl_module_addrsym_elf): this. Add elfp and biasp arguments,
- keep track of symelf, addr_symelf, closest_elf and sizeless_elf
- instead of tracking dwfl_files.
- * dwfl_module_getsym.c (__libdwfl_module_getsym): Renamed to...
- (dwfl_module_getsym_elf): ...this. Remove dwfl_file argument, add
- new elfp and biasp arguments. Track elf instead of file.
- (dwfl_module_getsym): Call dwfl_module_getsym_elf.
- dwfl_module_info.c (dwfl_module_info): Pass elf to
- dwfl_adjusted_st_value.
- * libdwfl.h (dwfl_module_getsym): Document limitations of shndx.
- (dwfl_module_getsym_elf): New function declaration.
- (dwfl_module_addrsym_elf): Likewise.
- * libdwflP.h (dwfl_module_addrsym_elf): INTDECL.
- (dwfl_module_getsym_elf): Likewise.
- (dwfl_adjusted_st_value): Take and check elf not dwfl_file.
- (dwfl_deadjust_st_value): Likewise.
- (__libdwfl_module_getsym): Removed.
- * relocate.c (resolve_symbol): Pass elf to dwfl_adjusted_st_value.
-
-2013-11-21 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix non-build-id core files on build-id system.
- * link_map.c (report_r_debug): Remove valid clearing if build-id cannot
- be read from memory.
-
-2013-11-21 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_segment_report_module.c (dwfl_segment_report_module): New
- variable close_elf. Call __libdwfl_find_elf_build_id and compare the
- content, if possible.
-
-2013-11-21 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- link_map: Use proper bias, not l_addr.
- * core-file.c (dynamic_vaddr_get): Rename to ...
- (__libdwfl_dynamic_vaddr_get): ... here, make it global,
- internal_function.
- (dwfl_core_file_report): Update name in the caller.
- * libdwflP.h (__libdwfl_dynamic_vaddr_get): New declaration.
- * link_map.c (report_r_debug): New variable elf_dynamic_vaddr. Call
- __libdwfl_dynamic_vaddr_get for it. Remove L_ADDR FIXME comment.
- Use ELF_DYNAMIC_VADDR instead of L_ADDR.
-
-2013-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Compatibility with older kernels such as RHEL-6.
- * linux-pid-attach.c (struct pid_arg): New field tid_was_stopped.
- (ptrace_attach): New parameter tid_was_stoppedp. Set it.
- (pid_set_initial_registers): Pass tid_was_stopped.
- (pid_thread_detach): Use tid_was_stopped.
-
-2013-11-18 Josh Stone <jistone@redhat.com>
-
- * dwfl_module_getdwarf.c (find_aux_address_sync): New function.
- (find_aux_sym): Use it.
-
-2013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code cleanup: Remove const in prototype
- * dwfl_frame_regs.c (dwfl_thread_state_registers): Remove const from
- firstreg.
- * libdwfl.h (dwfl_thread_state_registers): Likewise.
- * linux-pid-attach.c (pid_thread_state_registers_cb): Likewise.
-
-2013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix dwfl_attach_state machine->elf.
- * dwfl_frame.c (dwfl_attach_state): Change parameter machine to elf.
- Call ebl_openbackend instead of ebl_openbackend_machine.
- * libdwfl.h (dwfl_attach_state): Change parameter machine to elf.
- Update the function description.
- * linux-core-attach.c (__libdwfl_attach_state_for_core): Pass CORE to
- dwfl_attach_state.
- * linux-pid-attach.c (__libdwfl_attach_state_for_pid): Pass NULL to
- dwfl_attach_state.
-
-2013-11-06 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Provide __libdwfl_module_getsym to get dwfl_file *.
- * dwfl_module_addrsym.c (dwfl_module_addrsym) (i_to_symfile): Remove.
- (dwfl_module_addrsym) (search_table): New variable file. Use
- __libdwfl_module_getsym. Use file.
- * dwfl_module_getsym.c (dwfl_module_getsym): Rename to ...
- (__libdwfl_module_getsym): ... here. Add parameter filep. Set it.
- (dwfl_module_getsym): New wrapper.
- * libdwflP.h (__libdwfl_module_getsym): New declaration.
-
-2013-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix dwfl_module_addrsym for minidebuginfo.
- * dwfl_module_addrsym.c (dwfl_module_addrsym): New variable
- addr_symfile.
- (dwfl_module_addrsym) (same_section): Use it.
- (dwfl_module_addrsym) (i_to_symfile): New function.
- (dwfl_module_addrsym) (search_table): Use it.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
- Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (libdwfl_a_SOURCES): Add dwfl_frame.c, frame_unwind.c,
- dwfl_frame_pc.c, linux-pid-attach.c, linux-core-attach.c and
- dwfl_frame_regs.c.
- * core-file.c (dwfl_core_file_report): Call
- __libdwfl_attach_state_for_core.
- * dwfl_end.c (dwfl_end): Call __libdwfl_process_free.
- * dwfl_frame.c: New file.
- * frame_unwind.c: New file.
- * dwfl_frame_pc.c: New file.
- * linux-pid-attach.c: New file.
- * linux-core-attach.c: New file.
- * dwfl_frame_regs.c: New file.
- * libdwfl.h (Dwfl_Thread, Dwfl_Frame): New typedefs.
- (dwfl_core_file_report, dwfl_linux_proc_report): Extend comments.
- (Dwfl_Thread_Callbacks): New definition.
- (struct ebl, dwfl_attach_state, dwfl_pid, dwfl_thread_dwfl)
- (dwfl_thread_tid, dwfl_frame_thread, dwfl_thread_state_registers)
- (dwfl_thread_state_register_pc, dwfl_getthreads, dwfl_thread_getframes)
- (dwfl_frame_pc): New declarations.
- * libdwflP.h (Dwfl_Process): New typedef.
- (LIBEBL_BAD, CORE_MISSING, INVALID_REGISTER, PROCESS_MEMORY_READ)
- (PROCESS_NO_ARCH, PARSE_PROC, INVALID_DWARF, UNSUPPORTED_DWARF)
- (NEXT_THREAD_FAIL, ATTACH_STATE_CONFLICT, NO_ATTACH_STATE, NO_UNWIND)
- (INVALID_ARGUMENT): New DWFL_ERROR entries.
- (struct Dwfl): New entry process.
- (struct Dwfl_Process, struct Dwfl_Thread, struct Dwfl_Frame)
- (__libdwfl_frame_reg_get, __libdwfl_frame_reg_set)
- (__libdwfl_process_free, __libdwfl_frame_unwind)
- (__libdwfl_attach_state_for_pid, __libdwfl_attach_state_for_core)
- (__libdwfl_segment_start, __libdwfl_segment_end): New declarations.
- (dwfl_attach_state, dwfl_pid, dwfl_thread_dwfl, dwfl_thread_tid)
- (dwfl_frame_thread, dwfl_thread_state_registers)
- (dwfl_thread_state_register_pc, dwfl_getthreads, dwfl_thread_getframes)
- (dwfl_frame_pc): New INTDECL entries.
- * linux-proc-maps.c (dwfl_linux_proc_report): Call
- __libdwfl_attach_state_for_pid.
- * segment.c (segment_start): Rename to ...
- (__libdwfl_segment_start): ... here and make it internal_function.
- (segment_end): Rename to ...
- (__libdwfl_segment_end): ... here and make it internal_function.
- (reify_segments, dwfl_report_segment): Rename them at the callers.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * core-file.c (dwfl_core_file_report): Remove the use of MAX.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * core-file.c (dwfl_core_file_report): Replaced variable sniffed by
- retval. Fix one forgotten LISTED increase.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix core files for re-prelink-ed files.
- * core-file.c (dynamic_vaddr_get): New function.
- (dwfl_core_file_report): New variable file_dynamic_vaddr. Call
- dynamic_vaddr_get instead of using L_ADDR.
- * libdwflP.h (struct r_debug_info_module): Remove field l_addr.
- * link_map.c (report_r_debug): Do not initialize l_addr.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code cleanup.
- * core-file.c (dwfl_core_file_report): Reindent block of code by
- continue keyword.
-
-2013-10-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * argp-std.c (parse_opt): Use executable parameter of
- dwfl_core_file_report.
- * core-file.c (dwfl_core_file_report): Add parameter executable. Set
- it to DWFL. Add NEW_VERSION for it.
- (_compat_without_executable_dwfl_core_file_report): New. Twice.
- * libdwfl.h (dwfl_core_file_report): Add parameter executable, update
- the function comment.
-
-2013-10-15 Mark Wielaard <mjw@redhat.com>
-
- * linux-proc-maps.c (proc_maps_report): Ignore non-absolute file
- mappings.
- (dwfl_linux_proc_find_elf): Don't abort, just return failure.
-
-2013-09-12 Mark Wielaard <mjw@redhat.com>
-
- * cu.c (intern_cu): If dwarf_offdie fails free cu.
-
-2013-09-12 Mark Wielaard <mjw@redhat.com>
-
- * linux-proc-maps.c (proc_maps_report): Don't fclose FILE in
- bad_report.
-
-2013-09-12 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_getdwarf.c (find_symtab): Call elf_getdata with
- aux_xndxscn, not xndxscn, for aux_symxndxdata.
-
-2013-08-25 Mark Wielaard <mjw@redhat.com>
-
- * linux-kernel-modules.c (report_kernel): Pass add_p_vaddr as true
- to dwfl_report_elf.
-
-2013-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_segment_report_module.c (dwfl_segment_report_module): Check for
- conflicts all the modules, not just the first one. Compare L_LD if it
- is equal, not if it is in a module address range.
-
-2013-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * libdwflP.h (__libdwfl_elf_address_range): Add internal_function.
-
-2013-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * core-file.c (clear_r_debug_info): Close also ELF and FD.
- (dwfl_core_file_report): Call __libdwfl_report_elf for
- R_DEBUG_INFO.MODULE.
- * dwfl_report_elf.c (__libdwfl_elf_address_range): New function from
- code of ...
- (__libdwfl_report_elf): ... this function. Call it.
- * dwfl_segment_report_module.c: Include unistd.h.
- (dwfl_segment_report_module): Use basename for MODULE->NAME.
- Clear MODULE if it has no build-id and we have segment with build-id.
- Ignore this segment only if MODULE still contains valid ELF.
- * libdwflP.h (__libdwfl_elf_address_range): New declaration.
- (struct r_debug_info_module): New fields fd, elf, l_addr, start, end
- and disk_file_has_build_id.
- (dwfl_link_map_report): Extend the comment.
- * link_map.c (report_r_debug): Extend the comment. Always fill in new
- r_debug_info_module. Initialize also the new r_debug_info_module
- fields. Remove one FIXME comment. Call __libdwfl_elf_address_range
- instead of __libdwfl_report_elf when R_DEBUG_INFO is not NULL.
-
-2013-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * libdwflP.h (__libdwfl_find_elf_build_id): Add internal_function.
-
-2013-07-02 Mark Wielaard <mjw@redhat.com>
-
- * relocate.c (__libdwfl_relocate_value): Remove mod->e_type assert.
-
-2013-06-05 Mark Wielaard <mjw@redhat.com>
-
- * link_map.c (report_r_debug): Always call release_buffer after
- memory_callback succeeded reading build_id.
-
-2013-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * argp-std.c (parse_opt) <ARGP_KEY_SUCCESS> <opt->core> <opt->e>: Set
- executable_for_core before calling dwfl_core_file_report.
- * core-file.c (clear_r_debug_info): New function.
- (dwfl_core_file_report): Move raw segments reporting lower. New
- variable r_debug_info, pass it to dwfl_segment_report_module. Call
- clear_r_debug_info in the end. Return sum of LISTED and SNIFFED.
- * dwfl_module_build_id.c (check_notes): Move into
- __libdwfl_find_elf_build_id.
- (__libdwfl_find_build_id): Rename to ...
- (__libdwfl_find_elf_build_id): ... here. Add parameters build_id_bits,
- build_id_elfaddr and build_id_len. Verify MOD vs. ELF.
- (__libdwfl_find_elf_build_id) (check_notes): Remove parameters mod and
- set, rename data_vaddr to data_elfaddr. Do not call found_build_id.
- (__libdwfl_find_elf_build_id): Update the check_notes caller, do not
- adjust its data_elfaddr parameter.
- (__libdwfl_find_build_id): New wrapper of __libdwfl_find_elf_build_id.
- * dwfl_segment_report_module.c (dwfl_segment_report_module): New
- parameter r_debug_info. New variable name_is_final. Adjust addresses
- according to R_DEBUG_INFO->MODULE. Check conflicts against DWFL.
- Do not overwrite NAME by SONAME if NAME_IS_FINAL.
- * libdwflP.h (__libdwfl_find_elf_build_id): New declaration.
- (struct r_debug_info_module, struct r_debug_info): New definitions.
- (dwfl_segment_report_module, dwfl_link_map_report): Add parameter
- r_debug_info.
- * link_map.c: Include fcntl.h.
- (report_r_debug): Add parameter r_debug_info, describe it in the
- function comment. Delete dwfl_addrmodule call and its dependent code.
- Verify build-id before calling dwfl_report_elf, also supply
- executable_for_core to it. Store r_debug_info->module info when
- appropriate.
- (dwfl_link_map_report): Add parameter r_debug_info. New variable
- in_ok. Try to read IN from EXECUTABLE_FOR_CORE. Update report_r_debug
- caller parameters.
-
-2013-04-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Add parameter add_p_vaddr.
- Set it to true for ET_EXEC and ET_CORE. Provide alternative
- setup of START and BIAS if !ADD_P_VADDR. Set END from BIAS, not BASE.
- (dwfl_report_elf): Add parameter add_p_vaddr. Pass it down. Add
- NEW_VERSION.
- (_compat_without_add_p_vaddr_dwfl_report_elf) <SHARED>: New, with
- COMPAT_VERSION.
- * libdwfl.h (dwfl_report_elf): Add parameter add_p_vaddr. Describe it.
- * libdwflP.h (__libdwfl_report_elf): Add parameter add_p_vaddr.
- * link_map.c (report_r_debug): Use true add_p_vaddr for dwfl_report_elf.
- * linux-kernel-modules.c (report_kernel): Use false add_p_vaddr for
- dwfl_report_elf.
- * offline.c (process_elf): Use true add_p_vaddr for dwfl_report_elf.
-
-2013-04-27 Mark Wielaard <mjw@redhat.com>
-
- * link_map.c: #include system.h.
-
-2013-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * link_map.c (BE32, BE64, LE32, LE64): Delete the definitions, move
- them to lib/system.h.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Remove BASE aligning.
-
-2013-03-12 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_getsrclines.c (dwfl_getsrclines): Return 0 on success.
-
-2013-02-22 Mark Wielaard <mjw@redhat.com>
-
- * open.c (__libdw_gunzip,__libdw_bunzip2,__libdw_unlzma): Define
- as DWFL_E_BADELF when not used.
-
-2013-02-10 Mark Wielaard <mjw@redhat.com>
-
- * argp-std.c (parse_opt): Use opt->core and opt->e explicitly in
- failure messages When handling ARGP_KEY_SUCCESS because arg will
- not have been set.
-
-2013-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * linux-proc-maps.c: Include system.h.
- (PROCEXEFMT, get_pid_class): New.
- (grovel_auxv): Detect 32-bit vs. 64-bit auxv, possibly call
- get_pid_class.
-
-2013-01-23 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_getdwarf.c (find_aux_sym): Don't substract one
- from aux_syments by default.
- (find_symtab): Also succeed when only aux_symdata is found.
- When no symtab is found always try to load auxiliary table.
- (dwfl_module_getsymtab): Substract one from result when both
- tables have symbols.
- * dwfl_module_getsym.c (dwfl_module_getsym): Only skip auxiliary
- zero entry when both tables have symbols.
- * dwfl_module_addrsym.c (dwfl_module_addrsym): Only substract
- one from first_global when both tables have symbols.
-
-2013-01-16 Mark Wielaard <mjw@redhat.com>
-
- * libdwflP.h (struct Dwfl_Module): Add aux_sym, aux_symdata,
- aux_syments, aux_symstrdata, aux_symxndxdata and aux_first_global.
- (dwfl_adjusted_aux_sym_addr): New function.
- (dwfl_deadjust_aux_sym_addr): Likewise.
- (dwfl_adjusted_st_value): Take and check symfile argument.
- (dwfl_deadjust_st_value): Likewise.
- * dwfl_module_getdwarf.c (find_prelink_address_sync): Take and
- use dwfl_file as argument to set address_sync.
- (find_debuginfo): Call find_prelink_address_sync with debug file.
- (find_aux_sym): New function.
- (find_symtab): Use find_aux_sym if all we have is the dynsym table
- and fill in aux DwflModule fields.
- (dwfl_module_getsymtab): Return syments plus aux_syments.
- (load_symtab): Always set first_global.
- * dwfl_module_addrsym.c (dwfl_module_addrsym): Check symfile
- when using same_section. Calculate first_global based on both
- mod->first_global and mod->aux_first_global.
- * dwfl_module.c (__libdwfl_module_free): Free aux_sym.
- * dwfl_module_getsym.c (dwfl_module_getsym): Use auxsym table
- to retrieve symbol and name if necessary, making sure all locals
- from any table come before any globals.
- * dwfl_module_info.c (dwfl_module_info): Call dwfl_adjusted_st_value
- with symfile.
- * relocate.c (resolve_symbol): Likewise.
-
-2013-01-07 Roland McGrath <roland@hack.frob.com>
-
- * link_map.c (auxv_format_probe): Handle unaligned 64-bit data, but
- still assume the data is at least 32-bit aligned anyway.
- (dwfl_link_map_report): Handle unaligned auxv data.
-
-2012-12-11 Mark Wielaard <mjw@redhat.com>
-
- * linux-kernel-modules.c (report_kernel): Only free fname if
- find_kernel_elf succeeds and allocates it.
- (report_kernel_archive): Fix brackets around unlikely expression.
-
-2012-11-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * argp-std.c: Update Copyright year.
- (offline_find_elf): New function.
- (offline_callbacks): Use it for find_elf.
- (struct parse_opt): New.
- (parse_opt): New key ARGP_KEY_INIT. In other make hook struct
- parse_opt pointer from former Dwfl pointer. Delay 'e and OPT_COREFILE
- processing till ARGP_KEY_SUCCESS. Initialize state->input already from
- ARGP_KEY_SUCCESS. Modify the cleanup in ARGP_KEY_ERROR. Make the
- final state->input initialization optional.
- * dwfl_end.c: Update Copyright year.
- (dwfl_end): Free executable_for_core.
- * libdwflP.h: Update Copyright year.
- (struct Dwfl): New field executable_for_core.
-
-2012-11-20 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Simplify START and BIAS
- calculation.
-
-2012-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_module_getdwarf.c (mod_verify_build_id): New function with code
- from ...
- (__libdwfl_getelf): ... here. Call it.
-
-2012-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__.
-
-2012-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_segment_report_module.c (dwfl_segment_report_module):
- Initialize mod->MAIN_BIAS.
-
-2012-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl_module_addrsym.c (dwfl_module_addrsym): New function
- binding_value. Use it for both zero and non-zero size symbols
- comparisons.
-
-2012-10-01 Mark Wielaard <mjw@redhat.com>
-
- * cu.c (cudie_offset): Don't use type_sig8, it might not be
- initialized and these are always real CUs, never TUs.
-
-2012-10-01 Mark Wielaard <mjw@redhat.com>
-
- * derelocate.c (find_section): Check next section exists before
- accessing it.
-
-2012-08-01 Petr Machata <pmachata@redhat.com>
-
- * offline.c (process_archive_member): Ignore entry "/SYM64/".
-
-2012-03-28 Roland McGrath <roland@hack.frob.com>
-
- * dwfl_segment_report_module.c
- (dwfl_segment_report_module: read_portion): Don't use existing buffer
- when FILESZ is zero (string mode) and available portion doesn't hold
- a terminated string.
-
-2011-12-02 Roland McGrath <roland@hack.frob.com>
-
- * elf-from-memory.c (elf_from_remote_memory): Fix ELFCLASS64 case
- to use elf64_xlatetom and PHDRS.p64.
- Reported by Serge Pavlov <serge.pavlov.at.gnu@gmail.com>.
-
-2011-11-31 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_addrsym.c (dwfl_module_addrsym): First search all
- global symbols. Then only when that doesn't provide a match search
- all local symbols too.
- * dwfl_module_getdwarf.c (load_symtab): Take first_global int arg
- and fill it in.
- (find_symtab): Initialize mod->first_global and pass it to load_symtab.
- * libdwfl/libdwflP.h (Dwfl_Module): Add first_global field.
-
-2011-11-31 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_addrsym.c (dwfl_module_addrsym): Only update
- sizeless_sym if needed and closer to desired addr.
-
-2011-10-20 Mark Wielaard <mjw@redhat.com>
-
- * derelocate.c (cache_sections): Intern mod->reloc_info check.
- (dwfl_module_relocations): Don't check mod->reloc_info.
- (dwfl_module_relocation_info): Likewise.
- (find_section): Likewise.
-
-2011-07-09 Roland McGrath <roland@hack.frob.com>
-
- * image-header.c (LE32): Macro removed (now in lib/system.h).
-
-2011-04-11 Mark Wielaard <mjw@redhat.com>
-
- * linux-kernel-modules.c (vmlinux_suffixes): Guard definition
- by check for zlib, bzlib or lzma defines to check it isn't empty.
- (try_kernel_name): Use same guard for use of vmlinux_suffixes.
-
-2011-03-08 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (open_elf): Clear errno before CBFAIL.
- Reported by Kurt Roeckx <kurt@roeckx.be>.
-
-2011-02-11 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (try_kernel_name): Try .gz, .bz2, .xz
- suffixes if corresponding decompression support is enabled.
-
-2011-02-01 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (find_prelink_address_sync): Use the
- section-end address as the synchronization point, rather than sh_addr.
-
- * dwfl_module_getdwarf.c (find_prelink_address_sync): Discover
- PT_INTERP p_vaddr separately from main phdrs and undo phdrs.
-
- * dwfl_module_getdwarf.c (find_prelink_address_sync): Fix pasto in
- last change, so we recognize PT_INTERP in ELFCLASS64 correctly.
-
-2011-01-11 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (open_elf): Remove section-based
- address_sync fixup from here.
- (find_prelink_address_sync): New function.
- (find_debuginfo): Call it.
- * libdwflP.h (DWFL_ERRORS): Add BAD_PRELINK error.
-
-2011-01-04 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (open_elf): Enhance address_sync calculation
- logic to consider section addresses, the better to survive all the
- possible prelink machinations.
- * libdwflP.h (struct dwfl_file): Comment change.
-
-2010-11-30 Roland McGrath <roland@redhat.com>
-
- * derelocate.c (dwfl_module_relocations): Remove over-eager assert.
-
-2010-11-12 Roland McGrath <roland@redhat.com>
-
- * libdwflP.h (struct Dwfl_Module): New member main_bias.
- (dwfl_adjusted_address, dwfl_deadjust_address): Use it.
- * dwfl_module_getdwarf.c (__libdwfl_getelf): Initialize it.
-
- * libdwflP.h (dwfl_deadjust_address): New function.
- (dwfl_deadjust_dwarf_addr, dwfl_deadjust_st_value): New functions.
- * cu.c (addrarange): Use dwfl_deadjust_dwarf_addr.
- * dwfl_module_addrsym.c: Use dwfl_deadjust_st_value.
-
-2010-11-11 Roland McGrath <roland@redhat.com>
-
- * libdwflP.h (struct dwfl_file): Remove bias member.
- Add vaddr and address_sync members instead.
- (dwfl_adjusted_address): Calculate using vaddr.
- (dwfl_adjusted_dwarf_addr): Calculate using address_sync and call that.
- (dwfl_adjusted_st_value): Use one of those calls.
- * dwfl_module_getdwarf.c (open_elf): Initialize vaddr and address_sync.
- * dwfl_segment_report_module.c (dwfl_segment_report_module): Likewise.
- * derelocate.c (dwfl_module_relocations): Update ET_EXEC assertions.
- * link_map.c (consider_executable): Adjust only MOD->low_addr for
- detected PIE bias change.
-
- * libdwflP.h (dwfl_adjusted_dwarf_addr): New function.
- * dwfl_module_info.c: Use it.
- * cu.c (addrarange): Likewise.
- * dwfl_dwarf_line.c: Likewise.
- * dwfl_module_dwarf_cfi.c: Likewise.
- * dwfl_lineinfo.c: Likewise.
- * dwfl_nextcu.c: Likewise.
- * dwfl_module_getdwarf.c (dwfl_module_getdwarf): Likewise.
-
- * libdwflP.h (dwfl_adjusted_st_value): New function.
- * relocate.c (resolve_symbol): Use it.
- * dwfl_module_getsym.c: Likewise.
- * dwfl_module_addrsym.c: Likewise.
- * dwfl_module_info.c: Likewise.
-
- * libdwflP.h (dwfl_adjusted_address): New function.
- * dwfl_module_build_id.c (__libdwfl_find_build_id): Use it.
- * relocate.c (__libdwfl_relocate_value): Likewise.
- * derelocate.c (cache_sections): Likewise.
- (dwfl_module_address_section): Likewise.
- * dwfl_module_getelf.c: Likewise.
- * dwfl_module_eh_cfi.c: Likewise.
- * link_map.c (consider_executable): Likewise.
-
-2010-08-24 Roland McGrath <roland@redhat.com>
-
- * dwfl_dwarf_line.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
-
-2010-08-18 Roland McGrath <roland@redhat.com>
-
- * link_map.c (report_r_debug): Use found name if we have no name,
- even if we already have an Elf handle.
-
-2010-06-30 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_find_elf): Don't be
- confused by -1 return from dwfl_build_id_find_elf after it opened
- the Elf handle.
- * find-debuginfo.c (dwfl_standard_find_debuginfo): Likewise for
- dwfl_build_id_find_debuginfo.
-
-2010-06-16 Roland McGrath <roland@redhat.com>
-
- * cu.c (cudie_offset): Use DIE_OFFSET_FROM_CU_OFFSET macro.
-
-2010-06-14 Roland McGrath <roland@redhat.com>
-
- * find-debuginfo.c (try_open): Take new arg MAIN_STAT. Compare
- candidate file to that st_dev/st_ino and pretend it didn't exist
- if they match.
- (find_debuginfo_in_path): Update caller, pass main file's info.
-
-2010-05-20 Roland McGrath <roland@redhat.com>
-
- * linux-proc-maps.c (find_sysinfo_ehdr): Renamed to ...
- (grovel_auxv): ... this. Take DWFL argument.
- (dwfl_linux_proc_report): Update caller.
-
- * dwfl_module_getdwarf.c (open_elf): Calculate alignment for bias
- based on dwfl->segment_align or manifest alignment of MOD->low_addr.
-
-2010-05-19 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (intuit_kernel_bounds): Rewritten.
-
-2010-05-06 Roland McGrath <roland@redhat.com>
-
- * segment.c (insert): Clear inserted elements of DWFL->lookup_module.
-
- * libdwflP.h (DWFL_ERRORS): Add WRONG_ID_ELF.
- * dwfl_build_id_find_elf.c: Set MOD->main.valid when there is a build
- ID but we didn't find a file.
- * dwfl_module_getdwarf.c (__libdwfl_getelf): When that's set, check
- and refuse any fallback file-by-name if it lacks the matching ID.
-
- * dwfl_error.c (dwfl_errno): Add INTDEF.
- * libdwflP.h: Add INTDECL.
-
- * dwfl_module_getdwarf.c (open_elf): Do elf_end and clear FILE->elf in
- failure cases.
-
-2010-05-04 Roland McGrath <roland@redhat.com>
-
- * dwfl_segment_report_module.c: Use "[pie]" rather than "[dso]" for an
- ET_DYN that has a DT_DEBUG.
-
- * dwfl_segment_report_module.c: Fix jump-start of NDX-finding loop.
-
- * segment.c (insert): Fix moving of values following insertion.
- (reify_segments): Fix up MOD->segment backpointer indices after
- later insertions in the main loop invalidate them.
-
- * link_map.c (dwfl_link_map_report): Detect bias of embedded phdrs and
- apply it to PT_DYNAMIC p_vaddr so we handle a PIE correctly.
-
- * core-file.c (dwfl_core_file_report): Return any nonzero count of
- modules reported, even if link_map grovelling failed and only sniffing
- found anything.
-
-2010-04-26 Roland McGrath <roland@redhat.com>
-
- * relocate.c (relocate_section): Treat R_*_NONE reloc as no reloc.
- Works around probably-wrong ld -r behavior for case of a DWARF address
- constant that refers to a discarded SHF_ALLOC section.
-
-2010-04-14 Roland McGrath <roland@redhat.com>
-
- * link_map.c (report_r_debug): Limit iterations on the l_next chain to
- an upper bound on sane possible number of elements.
-
-2010-03-11 Roland McGrath <roland@redhat.com>
-
- * link_map.c (auxv_format_probe): Fix scanning loop, so we really scan
- the second half for 32-bit matches.
-
-2010-03-10 Roland McGrath <roland@redhat.com>
-
- * core-file.c (dwfl_core_file_report): Punt EHDR argument.
- * argp-std.c (parse_opt): Update caller.
- * libdwfl.h: Declare dwfl_core_file_report.
- * libdwflP.h: Don't.
-
-2010-02-17 Roland McGrath <roland@redhat.com>
-
- * dwfl_segment_report_module.c (addr_segndx): Take new flag argument.
- If set, find the first index not below ADDR.
- (dwfl_segment_report_module): Update callers.
- Pass true when calculating return value.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
- * find-debuginfo.c (find_debuginfo_in_path): Fix uninitialized
- variable in failure path.
-
-2010-02-02 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_module_dwarf_cfi.c (dwfl_module_dwarf_cfi): Always set bias.
- * dwfl_module_eh_cfi.c (dwfl_module_eh_cfi): Likewise
-
-2010-01-07 Roland McGrath <roland@redhat.com>
-
- * core-file.c (dwfl_core_file_report): Use elf_getphdrnum.
- * dwfl_module_build_id.c (__libdwfl_find_build_id): Likewise.
- * dwfl_module_getdwarf.c (open_elf, find_dynsym): Likewise.
- * dwfl_report_elf.c (__libdwfl_report_elf): Likewise.
-
-2010-01-06 Roland McGrath <roland@redhat.com>
-
- * relocate.c (relocate_getsym): For SHN_COMMON, zero st_value.
- (relocate_section): Let unresolved SHN_COMMON symbol stay 0.
-
-2009-11-16 Roland McGrath <roland@redhat.com>
-
- * relocate.c (relocate_section): Skip SHT_NOBITS or empty target scn.
-
-2009-11-12 Petr Machata <pmachata@redhat.com>
-
- * core-file.c (dwfl_elf_phdr_memory_callback): Only load ahead if
- the chunk is both offset-contiguous and vaddr-contiguous.
-
-2009-11-05 Roland McGrath <roland@redhat.com>
-
- * link_map.c (report_r_debug): Skip entries with l_ld==0.
- Use dwfl_addrmodule for l_ld lookup, don't bail on lookup failure.
-
-2009-09-04 Roland McGrath <roland@redhat.com>
-
- * image-header.c (__libdw_image_header): Fix tranposed comparison.
-
-2009-08-27 Roland McGrath <roland@redhat.com>
-
- * image-header.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwflP.h: Declare __libdw_image_header.
- * open.c (decompress): Don't consume ELF on failure.
- (what_kind): New function, broken out of ...
- (__libdw_open_file): ... here. Call it.
- If it fails, try __libdw_image_header and then try what_kind again.
-
- * gzip.c (unzip): Reuse *WHOLE as first INPUT_BUFFER,
- leave it behind for next decompressor.
- * open.c (decompress): Free BUFFER on failure.
-
-2009-08-26 Roland McGrath <roland@redhat.com>
-
- * gzip.c (find_zImage_payload): New function, broken out of ...
- (mapped_zImage): ... here. Call it.
- (find_zImage_payload) [LZMA]: Match LZMA-compressed kernels with
- stupid method of just trying the decoder.
-
- * open.c [USE_LZMA]: Try __libdw_unlzma.
- * libdwflP.h: Declare it.
- (DWFL_ERRORS): Add DWFL_E_LZMA.
- * gzip.c [LZMA]: Implement liblzma version for XZ file format.
- * lzma.c: New file.
- * Makefile.am [LZMA] (libdwfl_a_SOURCES): Add it.
-
- * gzip.c (mapped_zImage): Limit scan to 32kb.
- Make this unconditional, support bzip2 kernel images too.
- (unzip): Use direct inflate method for non-mmap case too.
- Only zlib uses the stream method.
-
-2009-08-09 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_build_id.c: Use new macros for versioned definitions.
-
-2009-07-08 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_dwarf_cfi.c: New file.
- * dwfl_module_eh_cfi.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add them.
- * libdwflP.h (struct Dwfl_Module): New members `dwarf_cfi', `eh_cfi.
- Add INTDECL for dwfl_module_eh_cfi, dwfl_module_dwarf_cfi.
-
-2009-07-08 Roland McGrath <roland@redhat.com>
-
- * libdwflP.h (struct Dwfl_Module): Reorder members to pack better.
-
-2009-06-18 Mark Wielaard <mjw@redhat.com>
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Return NULL on overlap.
-
-2009-06-13 Ulrich Drepper <drepper@redhat.com>
-
- * derelocate.c: Don't use deprecated libelf functions.
- * dwfl_module_getdwarf.c: Likewise.
- * relocate.c: Likewise.
-
-2009-04-23 Ulrich Drepper <drepper@redhat.com>
-
- * dwfl_module_build_id.c: Define versioned symbols only if SHARED is
- defined. Otherwise just define the latest version.
-
-2009-04-22 Roland McGrath <roland@redhat.com>
-
- * relocate.c (resolve_symbol): Apply correct bias to st_value found in
- a non-ET_REL module.
-
- * dwfl_module_build_id.c (__libdwfl_find_build_id): Fix last change to
- adjust properly for non-ET_REL.
-
-2009-04-21 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getsym.c: Apply non-ET_REL bias only if SHF_ALLOC.
-
- * relocate.c (__libdwfl_relocate_value): Assert that MOD is ET_REL.
- * derelocate.c (cache_sections): Call __libdwfl_relocate_value only
- for ET_REL.
- * dwfl_module_build_id.c (__libdwfl_find_build_id): Likewise.
-
-2009-04-20 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (__libdwfl_getelf): Add internal_function.
-
-2009-04-19 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (find_file): Renamed to ...
- (__libdwfl_getelf): ... this. Make it global.
- (find_symtab, find_dw): Update callers.
- (dwfl_module_getelf): Functions moved ...
- * dwfl_module_getelf.c: ... here, new file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwflP.h: Declare __libdwfl_getelf.
-
-2009-04-14 Roland McGrath <roland@redhat.com>
-
- * dwfl_segment_report_module.c: Handle DT_STRTAB value being either
- absolute (already adjusted in place) or needing load bias adjustment.
-
- * core-file.c (dwfl_elf_phdr_memory_callback): Fix return value for
- gelf_getphdr failure. Fix file size limit checks.
-
- * dwfl_segment_report_module.c: Fix underflow in DYNSTRSZ check.
-
-2009-04-08 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getsym.c: Don't adjust for bias again after
- __libdwfl_relocate_value.
-
- * relocate.c (__libdwfl_relocate_value): Don't adjust a value from
- a non-SHF_ALLOC section.
- (relocate_getsym): Test st_shndx for SHN_* values, not *SHNDX.
- * dwfl_module_getsym.c (dwfl_module_getsym): Likewise.
-
-2009-03-09 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_build_id.c (__libdwfl_find_build_id): Move SHSTRNDX
- variable to outer scope, so we cache it for the loop.
-
- * relocate.c (__libdwfl_relocate_value): Add MOD->main.bias to sh_addr.
-
-2009-02-12 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_build_id.c (__libdwfl_find_build_id): Use
- __libdwfl_relocate_value to find correct sh_addr value.
-
-2009-02-10 Roland McGrath <roland@redhat.com>
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Take new arg SANITY.
- If false, don't fail for NO_PHDR.
- (dwfl_report_elf): Update caller.
- * libdwflP.h: Update decl.
- * offline.c (process_elf): Call it with false, so we don't refuse
- dubiously-formed objects here.
-
- * link_map.c (consider_executable): Don't assert dwfl_addrsegment
- finds our module. We shouldn't crash when we confuse some guesses.
-
-2009-02-10 Ulrich Drepper <drepper@redhat.com>
-
- * open.c (decompress): Avoid crash with empty input file.
-
-2009-01-27 Roland McGrath <roland@redhat.com>
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Ignore trailing PT_LOAD
- with zero vaddr and memsz.
-
-2009-01-22 Roland McGrath <roland@redhat.com>
-
- * open.c (decompress): Move BUFFER, SIZE decls outside #if.
-
- * dwfl_segment_report_module.c (addr_segndx): Remove bogus adjustments
- after address-matching loop.
-
- * segment.c (lookup): Fix fencepost in checking for HINT match.
-
-2009-01-14 Roland McGrath <roland@redhat.com>
-
- * gzip.c [!BZLIB] (mapped_zImage): New function.
- (unzip) [!BZLIB]: Grok Linux kernel zImage format.
-
-2009-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * dwfl_error.c: Always use __thread. Remove all !USE_TLS code.
-
-2009-01-08 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_report_offline):
- Skip subdirectory named "source".
- (dwfl_linux_kernel_find_elf): Likewise.
-
-2009-01-06 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (check_suffix): New function.
- Match ".ko", ".ko.gz", and ".ko.bz2" suffixes.
- (dwfl_linux_kernel_report_offline): Use it.
- (dwfl_linux_kernel_find_elf): Likewise.
-
-2009-01-05 Roland McGrath <roland@redhat.com>
-
- * argp-std.c (parse_opt): Use __libdw_open_file for core file.
- * dwfl_build_id_find_debuginfo.c: Use it to open the file.
- * dwfl_build_id_find_elf.c: Likewise.
- * dwfl_module_getdwarf.c (open_elf): Likewise.
- * dwfl_report_elf.c: Likewise.
- * find-debuginfo.c (validate): Likewise.
- * offline.c (__libdwfl_report_offline): Likewise.
-
- * libdwflP.h: Declare __libdw_open_file.
- * open.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
-
- * gzip.c: New file.
- * Makefile.am [ZLIB] (libdwfl_a_SOURCES): Add it.
- * bzip2.c: New file.
- * Makefile.am [BZLIB] (libdwfl_a_SOURCES): Add it.
- * libdwflP.h: Declare __libdw_gunzip, __libdw_bunzip2.
-
-2008-12-16 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_build_id.c (dwfl_module_build_id): Define with alias and
- symver magic to bind to ELFUTILS_0.138.
- (_BUG_COMPAT_dwfl_module_build_id): New function, bug compatible
- wrapper for ELFUTILS_0.130 version set.
-
-2008-12-18 Roland McGrath <roland@redhat.com>
-
- * derelocate.c (dwfl_module_relocate_address): Fix last fix: ET_DYN
- addresses are taken as relative to MOD->low_addr.
-
-2008-12-15 Roland McGrath <roland@redhat.com>
-
- * derelocate.c (dwfl_module_relocate_address): Apply main.bias, not
- debug.bias.
-
-2008-12-11 Roland McGrath <roland@redhat.com>
-
- * offline.c (process_archive): Don't call elf_end and close if
- returning NULL. Check first elf_begin call and set error code
- specially for empty archive.
- Fixes RHBZ#465878.
-
-2008-12-02 Roland McGrath <roland@redhat.com>
-
- * dwfl_getmodules.c (dwfl_getmodules): Typo fix in last change.
-
-2008-11-26 Roland McGrath <roland@redhat.com>
-
- * dwfl_getmodules.c (dwfl_getmodules): Encode iteration style in
- return value, and interpret encoded OFFSET argument.
-
-2008-10-07 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_build_id.c (check_notes): Fix typo in vaddr calculation.
-
-2008-09-29 Roland McGrath <roland@redhat.com>
-
- * segment.c (insert): Must realloc DWFL->lookup_module here too.
- (dwfl_report_segment): Clear DWFL->lookup_module before insert calls.
-
-2008-08-28 Roland McGrath <roland@redhat.com>
-
- * segment.c (reify_segments): Fix last change.
-
-2008-08-27 Roland McGrath <roland@redhat.com>
-
- * linux-proc-maps.c (read_proc_memory): Return 0 for EINVAL or EPERM
- failure from pread64.
-
-2008-08-26 Roland McGrath <roland@redhat.com>
-
- * segment.c (reify_segments): Insert a trailing segment for a module
- end that is above the highest current segment.
-
-2008-08-25 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (open_elf): Extract elf_errno () for
- coded return value, not plain DWFL_E_LIBELF. Return DWFL_E_BADELF
- if FILE->elf is not ELF_K_ELF.
-
- * dwfl_segment_report_module.c: Add a cast.
-
-2008-08-21 Denys Vlasenko <dvlasenk@redhat.com>
-
- * dwfl_module_addrsym.c (dwfl_module_addrsym): Improve logic
- which decides which symbol is "closest" to a given address.
-
-2008-08-15 Roland McGrath <roland@redhat.com>
-
- * argp-std.c (offline_callbacks): Use dwfl_build_id_find_elf.
- (options, parse_opt): Handle --core.
-
- * core-file.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwflP.h (dwfl_core_file_report): Declare it.
-
- * link_map.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwflP.h (dwfl_link_map_report): Declare it.
-
- * libdwflP.h (MIN, MAX): New macros.
- (Dwfl_Memory_Callback): New typedef.
- (Dwfl_Module_Callback): New typedef.
- (dwfl_segment_report_module): Declare it.
- * dwfl_segment_report_module.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
-
- * derelocate.c (dwfl_module_address_section): Add INTDEF.
- * libdwflP.h: Add INTDECL.
-
- * segment.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_addrsegment, dwfl_report_segment.
- * libdwflP.h (struct Dwfl): New members lookup_elts, lookup_alloc,
- lookup_addr, lookup_module, lookup_segndx, replace removed members
- modules, nmodules.
- (struct Dwfl_Module): New member segment.
- * dwfl_end.c (dwfl_end): Free the new ones. Iterate via modulelist
- to each free module.
- * dwfl_module.c (dwfl_report_begin_add): Do nothing.
- (dwfl_report_begin): Don't call it. Truncate the segment table instead.
- (dwfl_report_module): Don't touch DWFL->nmodules.
- (dwfl_report_end): Don't touch DWFL->modules and DWFL->nmodules.
- (compare_modules): Function removed.
- * dwfl_getmodules.c: Rewritten.
- Add INTDEF.
- * libdwflP.h: Add INTDECLs.
- * dwfl_getdwarf.c: Rewritten to call dwfl_getmodules.
- * dwfl_addrmodule.c: Rewritten to just call dwfl_addrsegment.
-
-2008-08-03 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c: Include <fts.h> before <config.h>.
-
-2008-07-17 Roland McGrath <roland@redhat.com>
-
- * dwfl_build_id_find_elf.c (__libdwfl_open_by_build_id): Set errno to
- zero if the failure was only ENOENT.
-
-2008-06-03 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_addrsym.c (dwfl_module_addrsym): Exclude undefined
- symbols.
-
-2008-05-22 Petr Machata <pmachata@redhat.com>
-
- * dwfl_module_getdwarf.c (open_elf): Bias of ET_EXEC files is always 0.
-
-2008-05-06 Roland McGrath <roland@frob.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_report_offline): Use
- FTS_LOGICAL here too.
- (dwfl_linux_kernel_find_elf): Likewise.
-
-2008-04-29 Roland McGrath <roland@redhat.com>
-
- * find-debuginfo.c (dwfl_standard_find_debuginfo): Try path search
- based on canonicalize_file_name if it differs from the supplied name.
-
- * linux-kernel-modules.c (check_module_notes): Use FTS_LOGICAL so
- we accept symlinks.
-
-2008-04-27 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (report_kernel): Fix crash when
- dwfl_report_elf fails.
-
-2008-04-05 Roland McGrath <roland@redhat.com>
-
- * linux-proc-maps.c (proc_maps_report): Don't leak LAST_FILE.
-
- * dwfl_module_getdwarf.c (find_file): Always free build_id_bits.
- Clear it after freeing.
- * dwfl_module_report_build_id.c (dwfl_module_report_build_id): Likewise.
-
-2008-03-26 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (load_symtab): Don't return success for
- SHT_DYNSYM, just set *SYMSCN like the comment says.
-
- * dwfl_end.c (dwfl_end): Iterate on modulelist chain, not modules array.
-
- * argp-std.c (parse_opt): On failure, call dwfl_end before argp_failure.
-
-2008-03-19 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getsrc.c: Adjust address for module bias before search.
-
-2008-03-01 Roland McGrath <roland@redhat.com>
-
- * libdwflP.h (__libdwfl_seterrno): Remove parameter name from
- prototype to avoid older compiler's complaint about reuse of the name.
- (__libdwfl_canon_error): Likewise.
-
-2008-02-19 Roland McGrath <roland@redhat.com>
-
- * relocate.c (relocate_section): Check for an unhandled relocation
- type before resolving a reloc's symbol. Lift DWFL_E_BADRELTYPE ->
- DWFL_E_UNKNOWN_MACHINE check out of loops.
-
- * dwfl_module_getdwarf.c (load_dw): Skip relocation if
- DEBUGFILE->relocated is already set.
-
-2008-01-26 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (open_elf): Open FILE->name if it's non-null.
-
- * dwfl_build_id_find_elf.c (__libdwfl_open_by_build_id): Don't clear
- incoming *FILE_NAME at the start.
-
-2008-01-08 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (euinclude): Variable removed.
- (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
-
-2007-10-23 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (report_kernel_archive): Reorder the kernel
- module to appear first.
-
-2007-10-20 Roland McGrath <roland@redhat.com>
-
- * offline.c (process_archive_member): Take FD argument, pass it down
- to process_file. Return Elf_Cmd, not bool.
- Call elf_next here, always before elf_end.
- (process_archive): Update caller. Don't close FD here unless there
- are no member refs.
-
- * dwfl_module.c (free_file): Close fd only when elf_end returns zero.
-
- * libdwflP.h (struct dwfl_file): New bool member `relocated'.
- * dwfl_module_getdwarf.c (dwfl_module_getelf): For ET_REL, apply
- partial relocation to one or both files.
- (dwfl_module_getdwarf): For ET_REL, make sure extra sections'
- relocations have been applied to the debug file if dwfl_module_getelf
- has been used before.
-
- * relocate.c (resolve_symbol): New function.
- (relocate_section): Call it.
-
- * relocate.c (relocate_getsym): Handle null MOD->symfile.
- (relocate_section): Take new bool arg, PARTIAL. If true,
- no error for BADRELTYPE/RELUNDEF, instead just skip them
- and leave only those skipped relocs behind the reloc section.
- (__libdwfl_relocate_section): Take new arg, pass it down.
- (__libdwfl_relocate): Take new bool arg, DEBUG. If false,
- do partial relocation on all sections.
- * dwfl_module_getdwarf.c (load_dw): Update caller.
- * libdwflP.h: Update decls.
- * derelocate.c (dwfl_module_address_section): Pass new argument
- to __libdwfl_relocate_section, true.
-
- * derelocate.c (cache_sections): Don't cache reloc sections when
- section_address callback is null.
-
-2007-10-19 Roland McGrath <roland@redhat.com>
-
- * relocate.c (relocate_section): Fix fencepost error in r_offset check.
-
- * derelocate.c (struct dwfl_relocation): Add member `relocs'.
- (struct secref): Likewise.
- (cache_sections): Cache the relocation section referring to each
- section we cache, if any.
- (dwfl_module_address_section): Use __libdwfl_relocate_section as
- necessary.
-
- * relocate.c (struct reloc_symtab_cache): New type.
- (relocate_getsym): Use it instead of four arguments.
- (__libdwfl_relocate): Update caller.
- (relocate_section): New function, broken out of ...
- (__libdwfl_relocate): ... here.
- (__libdwfl_relocate_section): New function.
- * libdwflP.h: Declare it.
-
-2007-10-17 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getsym.c (dwfl_module_getsym): Apply MOD->symfile->bias
- to relocated st_value.
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Align initial BASE for
- ET_REL to 0x100.
-
-2007-10-16 Roland McGrath <roland@redhat.com>
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Readjust BASE when a later
- section has larger alignment requirements not met by the original BASE,
- rather than padding more between sections.
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Fix bias calculation.
-
- * dwfl_module_build_id.c (__libdwfl_find_build_id): Apply module bias
- to sh_addr value.
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Don't be confused by BASE
- at zero in ET_REL case. Adjust BASE to necessary alignment.
-
- * dwfl_module_build_id.c (check_notes): Take -1, not 0, as stub value
- for DATA_VADDR.
- (__libdwfl_find_build_id): Update caller.
-
- * relocate.c (__libdwfl_relocate_value): Don't use sh_offset.
- * dwfl_report_elf.c (__libdwfl_report_elf): Likewise.
- * offline.c (dwfl_offline_section_address): Bail early if there is
- separate debug file.
-
- * relocate.c (__libdwfl_relocate): Don't return DWFL_E_NO_DWARF.
-
-2007-10-09 Roland McGrath <roland@redhat.com>
-
- * dwfl_report_elf.c (__libdwfl_report_elf): Clear SHDR->sh_offset when
- caching SHDR->sh_addr = 0.
- * offline.c (dwfl_offline_section_address): Never called for sh_addr
- really at 0, don't check for it. Use MOD->debug directly, not symfile.
-
- * dwfl_module_getdwarf.c (load_symtab): Return success properly when
- we've found SHT_SYMTAB.
-
- * relocate.c (relocate_getsym): New function.
- (__libdwfl_relocate): Use it.
- (__libdwfl_relocate_value): Take new Elf * argument. Make SYMSHSTRNDX
- be a pointer instead of value; cache getshstrndx result there.
- * libdwflP.h: Update decl.
- * derelocate.c (cache_sections): Update caller.
- Always work on the main file, not the symfile.
- (dwfl_module_address_section): Likewise.
- * dwfl_module_getsym.c (dwfl_module_getsym): Update caller.
-
-2007-10-07 Roland McGrath <roland@redhat.com>
-
- * offline.c (process_archive): Initialize MOD.
-
- * linux-kernel-modules.c (get_release): New function, broken out of ...
- (report_kernel): ... here. Call it.
- (try_kernel_name): Take new arg TRY_DEBUG, only try ".debug" if set.
- (find_kernel_elf): Update caller.
- (report_kernel_archive): New function.
- (dwfl_linux_kernel_report_offline): Call it.
-
- * offline.c (process_file): Take new arg PREDICATE, pass it down.
- (process_archive): Likewise.
- (process_archive_member): Likewise. When nonnull, let the predicate
- decide whether to use this member.
- (__libdwfl_report_offline): New function, broken out of ...
- (dwfl_report_offline): ... here. Call it.
- * libdwflP.h: Declare it.
-
- * offline.c (process_archive, process_archive_member): New functions.
- (process_elf, process_file): New functions, broken out of ...
- (dwfl_report_offline): ... here. Call process_file, which recurses on
- ELF_K_AR files.
-
- * dwfl_report_elf.c (__libdwfl_report_elf): New, broken out of ...
- (dwfl_report_elf): ... here. Call it.
- * libdwflP.h: Declare it.
-
-2007-10-06 Roland McGrath <roland@redhat.com>
-
- * derelocate.c (dwfl_module_relocations): Don't call
- dwfl_module_getdwarf.
-
- * derelocate.c (find_section): Use __libdwfl_seterrno, not
- __libdw_seterrno.
-
- * relocate.c (__libdwfl_relocate_value): Abuse sh_offset, not
- SHF_ALLOC, to cache sh_addr resolved to 0.
-
- * dwfl_report_elf.c (dwfl_report_elf): When an ET_REL file has sh_addr
- values nonzero already, just use its existing layout.
-
- * relocate.c (__libdwfl_relocate): Clear size of reloc section in its
- in-core shdr after applying it.
-
-2007-10-04 Ulrich Drepper <drepper@redhat.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_report_kernel): Fake
- initialization of notes variable.
-
-2007-10-04 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (intuit_kernel_bounds): Take new arg NOTES,
- fill in with vaddr of "__start_notes" symbol if found.
- (check_notes): New function.
- (check_kernel_notes): New function.
- (dwfl_linux_kernel_report_kernel): Call it.
- (check_module_notes): New function.
- (dwfl_linux_kernel_report_modules): Call it.
-
- * linux-kernel-modules.c (dwfl_linux_kernel_find_elf):
- Try dwfl_build_id_find_elf first.
-
- * linux-kernel-modules.c (report_kernel): Don't leak FD if !REPORT.
- Set kernel module e_type to ET_DYN.
-
-2007-10-03 Roland McGrath <roland@redhat.com>
-
- * find-debuginfo.c (validate): New function, broken out of ...
- (find_debuginfo_in_path): ... here. New function, broken out of ...
- (dwfl_standard_find_debuginfo): ... here. Call it, after trying
- dwfl_build_id_find_debuginfo first.
-
- * dwfl_build_id_find_elf.c: New file.
- * dwfl_build_id_find_debuginfo.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add them.
- * libdwfl.h: Declare them.
- * libdwflP.h: Add INTDECLs.
-
- * dwfl_module_build_id.c: New file.
- * dwfl_module_report_build_id.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add them.
- * libdwfl.h: Declare them.
- * libdwflP.h (struct Dwfl_Module): New members build_id_bits,
- build_id_len, build_id_vaddr. Declare __libdwfl_find_build_id.
- * dwfl_module.c (__libdwfl_module_free): Free MOD->build_id_bits.
-
- * dwfl_module_getdwarf.c (find_offsets): New function.
- (find_dynsym): New function, calls that.
- (find_symtab): Call it.
-
-2007-09-11 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_addrsym.c: Prefer a later global symbol at the same
- address if its st_size is smaller.
-
-2007-08-13 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_addrsym.c: Add dead initializer for stupid compiler.
-
-2007-08-12 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_report_offline): Don't use
- FTS_LOGICAL.
-
- * elf-from-memory.c (elf_from_remote_memory): Don't reset LOADBASE on
- a second phdr if it happens to match EHDR_VMA exactly.
-
-2007-08-08 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_addrsym.c: Don't use STT_SECTION, STT_FILE symbols and
- those with no names. Rewrite best symbol algorithm not to assume a
- sorted table and to be smarter handling sizeless symbols.
-
-2007-07-16 Roland McGrath <roland@redhat.com>
-
- * dwfl_module.c (dwfl_report_module): Increment DWFL->nmodules when
- reviving an existing module.
-
-2007-06-08 Roland McGrath <roland@redhat.com>
-
- * libdwflP.h: Fix #ifndef for config.h to use PACKAGE_NAME.
-
-2007-05-17 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_report_offline): Look at
- whole /lib/modules/VERSION tree, not just /lib/modules/VERSION/kernel.
- (dwfl_linux_kernel_find_elf): Likewise.
-
- * linux-kernel-modules.c (dwfl_linux_kernel_report_modules): Use
- getline and sscanf instead of fscanf.
-
-2007-05-08 Roland McGrath <roland@redhat.com>
-
- * offline.c (dwfl_offline_section_address): Don't assume section
- numbers match between stripped and debuginfo files. Instead, assume
- only that the ordering among SHF_ALLOC sections matches.
-
- * linux-kernel-modules.c (report_kernel): Change RELEASE argument to
- pointer to string.
- (dwfl_linux_kernel_report_offline): Update caller.
- (dwfl_linux_kernel_report_kernel): Likewise.
-
-2007-04-23 Roland McGrath <roland@redhat.com>
-
- * argp-std.c (options): Fix group title string.
-
- * argp-std.c (parse_opt): Handle ARGP_KEY_ERROR, free the Dwfl.
- Update via STATE->input every time we set STATE->hook, not only at
- ARGP_KEY_SUCCESS.
-
- * dwfl_module.c (free_file): Free FILE->name.
-
-2007-04-16 Roland McGrath <roland@redhat.com>
-
- * derelocate.c (cache_sections): Apply bias to sh_addr.
- (compare_secrefs): Fix address comparison to avoid signed overflow.
- (find_section): New function, broken out of ...
- (dwfl_module_relocate_address): ... here, call it.
- (check_module): New function, broken out of ...
- (dwfl_module_relocate_address): ... here, call it.
- (dwfl_module_address_section): New function.
- * libdwfl.h: Declare it.
-
-2007-03-26 Roland McGrath <roland@redhat.com>
-
- * dwfl_module.c (__libdwfl_module_free): Free MOD itself.
-
-2007-03-18 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (find_debuglink): New function, broken out of
- (find_debuginfo): ... here. Call it.
- Don't return error for libelf errors finding .gnu_debuglink section.
-
-2007-03-12 Roland McGrath <roland@redhat.com>
-
- * dwfl_module.c (dwfl_report_begin_add): New function broken out of ...
- (dwfl_report_begin): ... here. Call it.
- * libdwfl.h: Declare it.
- * libdwflP.h: Add INTDECL.
-
- * elf-from-memory.c (elf_from_remote_memory): Fix 32/64 typo.
-
- * offline.c: Comment typo fix.
-
-2007-03-04 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (KERNEL_MODNAME): New macro for "kernel".
- (find_kernel_elf): New function, broken out of ...
- (report_kernel): ... here. Call it.
- (dwfl_linux_kernel_find_elf): Use it for module named KERNEL_MODNAME.
- (intuit_kernel_bounds): New function, grovel /proc/kallsyms to guess
- virtual address bounds of kernel from symbols rounded to page size.
- (dwfl_linux_kernel_report_kernel): Use that if it works, before
- resorting to report_kernel.
-
- * dwfl_module_getdwarf.c (open_elf): Set MOD->e_type to ET_DYN for an
- ET_EXEC file with nonzero bias.
-
- * dwfl_module_addrname.c (dwfl_module_addrname): Just call
- dwfl_module_addrsym. Guts moved to ...
- * dwfl_module_addrsym.c: ... here; new file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_module_addrsym.
- * libdwflP.h: Add INTDECL.
-
-2007-03-03 Roland McGrath <roland@redhat.com>
-
- * dwfl_module.c (free_file): New function, broken out of ...
- (__libdwfl_module_free): ... here. In it, close fd after elf_end.
-
- * dwfl_module_getdwarf.c (open_elf): Close fd and reset to -1
- on libelf failure.
-
-2007-03-02 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c: Fix bogus error test for asprintf call.
-
-2007-02-02 Roland McGrath <roland@redhat.com>
-
- * dwfl_addrmodule.c (dwfl_addrmodule): Match a module's high boundary
- address exactly if it's no other module's low boundary.
-
- * dwfl_module_addrname.c (dwfl_module_addrname): If no symbol's value
- and size cover the address, select the closest symbol with st_size==0
- that lies in the same section.
-
-2007-01-29 Roland McGrath <roland@redhat.com>
-
- * dwfl_version.c (dwfl_version): Return PACKAGE_VERSION,
- not PACKAGE_STRING.
-
-2007-01-20 Roland McGrath <roland@redhat.com>
-
- * relocate.c (__libdwfl_relocate_value): Treat section_address of -1
- as omitted, not 0.
- * libdwfl.h (Dwfl_Callbacks): Update comment.
- * derelocate.c (cache_sections): Don't ignore sh_addr == 0 sections.
- * linux-kernel-modules.c (dwfl_linux_kernel_module_section_address):
- For ignored missing section, use -1 instead of 0.
- * offline.c (dwfl_offline_section_address): Expect a call for 0.
-
-2007-01-19 Roland McGrath <roland@redhat.com>
-
- * argp-std.c (parse_opt): For -e, reset DWFL->offline_next_address to
- zero so a lone -e foo.so is shown without address bias.
-
-2007-01-10 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (report_kernel): Check asprintf return value
- directly instead of via side effect, to silence warn_unused_result.
- (dwfl_linux_kernel_report_offline): Likewise.
- (dwfl_linux_kernel_find_elf): Likewise.
- (dwfl_linux_kernel_module_section_address): Likewise.
- * find-debuginfo.c (try_open): Likewise.
- * linux-proc-maps.c (find_sysinfo_ehdr): Likewise.
- (dwfl_linux_proc_report): Likewise.
-
- * libdwfl.h (dwfl_begin): Require nonnull argument.
-
-2006-12-27 Roland McGrath <roland@redhat.com>
-
- * dwfl_module.c (compare_modules): Fix address comparison to avoid
- signed overflow. Patch by Frank Ch. Eigler <fche@redhat.com>.
-
-2006-10-30 Roland McGrath <roland@redhat.com>
-
- * dwfl_module.c (dwfl_report_module): Comment typo fix.
-
-2006-09-05 Roland McGrath <roland@redhat.com>
-
- * derelocate.c (cache_sections): Use alloca instead of variable-sized
- auto array, in function already using alloca.
-
-2006-08-14 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (try_kernel_name): If the call to
- dwfl_standard_find_debuginfo produces no results, try it again
- with NULL as DEBUGLINK_FILE to try *FNAME with .debug suffix.
-
- * find-debuginfo.c (DEFAULT_DEBUGINFO_PATH): Macro moved ...
- * libdwflP.h: ... to here.
- * linux-kernel-modules.c (try_kernel_name): Skip manual open if it
- repeats the first thing dwfl_standard_find_debuginfo will try.
-
- * linux-kernel-modules.c (MODULE_SECT_NAME_LEN): New macro.
- (dwfl_linux_kernel_module_section_address): If a /sys file is missing
- and the section name is >= MODULE_SECT_NAME_LEN, try truncating the
- section name.
-
-2006-07-12 Ulrich Drepper <drepper@redhat.com>
-
- * cu.c: Adjust for internal_function_def removal.
- * dwfl_error.c: Likewise.
- * dwfl_module.c: Likewise.
- * dwfl_module_getdwarf.c: Likewise.
- * lines.c: Likewise.
- * relocate.c: Likewise.
-
-2006-07-11 Ulrich Drepper <drepper@redhat.com>
-
- * dwfl_module.c (compare_modules): Don't return GElf_Sxword value,
- it can overflow the return value type.
- Patch by Tim Moore <timoore@redhat.com>.
-
-2006-06-28 Roland McGrath <roland@redhat.com>
-
- * libdwfl.h: Cosmetic changes.
-
- * dwfl_line_comp_dir.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_line_comp_dir.
-
- * dwfl_lineinfo.c (dwfl_lineinfo): Remove stray extern in defn.
-
- * dwfl_linecu.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_linecu.
-
- * libdwflP.h (dwfl_linecu_inline): Function renamed from dwfl_linecu.
- (dwfl_linecu): Define as macro.
-
- * relocate.c (__libdwfl_relocate): Use dwfl_module_getsym.
-
- * dwfl_module_getdwarf.c (dwfl_module_getsymtab): New function.
- (dwfl_module_addrname): Function moved ...
- * dwfl_module_addrname.c: ... here, new file.
- * dwfl_module_getsym.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add them.
- * libdwfl.h: Declare dwfl_module_getsymtab, dwfl_module_getsym.
- * libdwflP.h: Add INTDECLs.
-
-2006-06-27 Roland McGrath <roland@redhat.com>
-
- * dwfl_module.c (dwfl_report_end): Whitespace fix.
-
-2006-06-13 Roland McGrath <roland@redhat.com>
-
- * elf-from-memory.c (elf_from_remote_memory): Fix 32/64 typo.
- Use __libdwfl_seterrno for elf_memory failure.
-
-2006-05-22 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_return_value_location.c
- (dwfl_module_return_value_location): Use __libdwfl_module_getebl.
-
-2006-05-27 Ulrich Drepper <drepper@redhat.com>
-
- * libdwfl.h: Add extern "C".
-
-2006-05-22 Ulrich Drepper <drepper@redhat.com>
-
- * cu.c (addrarange): Handle files without aranges information.
-
-2006-05-16 Ulrich Drepper <drepper@redhat.com>
-
- * dwfl_addrmodule.c (dwfl_addrmodule): Also return NULL of
- ->modules is NULL.
-
-2006-02-26 Roland McGrath <roland@redhat.com>
-
- * dwfl_version.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_version.
-
- * offline.c (dwfl_report_offline): Account for dwfl_report_elf having
- aligned up from DWFL->offline_next_address when checking for overlap.
-
-2005-12-22 Roland McGrath <roland@redhat.com>
-
- * argp-std.c (parse_opt): Call dwfl_end in failure cases.
-
- * linux-proc-maps.c (proc_maps_report): New function, broken out of ...
- (dwfl_linux_proc_report): ... here. Call it.
- (dwfl_linux_proc_maps_report): New function.
- * libdwfl.h: Declare it.
- * libdwflP.h: Add INTDECL.
- * argp-std.c (options, parse_opt): Grok -M/--linux-process-map.
-
- * dwfl_nextcu.c (dwfl_nextcu): Don't fail when dwfl_module_getdwarf
- failed with DWFL_E_NO_DWARF.
-
-2005-11-26 Roland McGrath <roland@redhat.com>
-
- * dwfl_end.c (dwfl_end): Free the DWFL itself.
-
-2005-11-25 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getdwarf.c (__libdwfl_module_getebl): New function.
- (load_dw): Use it.
- * dwfl_module_register_names.c (dwfl_module_register_names): Likewise.
- * libdwflP.h: Declare it.
-
- * dwfl_module_register_names.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_module_register_names.
-
-2005-11-21 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_module_section_address):
- Don't leak malloc'd file name.
- If a /sys/.../sections file is missing and starts with ".init",
- try the variant with "_init" too; catches PPC64 kernel braindamage.
-
-2005-11-15 Roland McGrath <roland@redhat.com>
-
- * libdwfl.h: Comment fixes.
-
- * dwfl_module_return_value_location.c: Add unlikely for error case.
-
-2005-11-13 Roland McGrath <roland@redhat.com>
-
- * dwfl_return_value_location.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_module_return_value_location.
- * libdwflP.h (DWFL_ERRORS): Add DWFL_E_WEIRD_TYPE.
-
-2005-10-20 Roland McGrath <roland@redhat.com>
-
- * libdwflP.h (DWFL_ERRORS): New error UNKNOWN_MACHINE.
- * relocate.c (__libdwfl_relocate): Return DWFL_E_UNKNOWN_MACHINE
- instead of DWFL_E_BADRELTYPE if ebl_get_elfmachine yields EM_NONE.
-
-2005-10-01 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (report_kernel): Return ENOENT if we fail
- with errno 0.
-
-2005-09-19 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_report_modules): Use
- PRIx64 instead of PRIi64, lest addresses with high bits set overflow
- the signed integer reading; they will just have to be in hexadecimal.
- (dwfl_linux_kernel_module_section_address): Likewise.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (%.os): Use COMPILE.os.
- (COMPILE.os): Filter out gconv options.
-
-2005-08-25 Roland McGrath <roland@redhat.com>
-
- * cu.c (__libdwfl_nextcu): Return success when dwarf_nextcu hits end.
- * dwfl_nextcu.c (dwfl_nextcu): Skip modules with no dwarf info.
-
-2005-08-24 Roland McGrath <roland@redhat.com>
-
- * dwfl_lineinfo.c (dwfl_lineinfo): Add bias, don't subtract it.
-
- * argp-std.c [_MUDFLAP] (__libdwfl_argp_mudflap_options): New function,
- magic initializer to set -heur-stack-bound option.
-
-2005-08-22 Roland McGrath <roland@redhat.com>
-
- * dwfl_validate_address.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_validate_address.
-
- * derelocate.c (dwfl_module_relocate_address): Add INTDEF.
- * libdwflP.h: Add INTDECL.
-
- * dwfl_module_getdwarf.c (find_symtab): Use elf_getdata instead of
- elf_rawdata for symbol-related sections.
-
- * offline.c (dwfl_report_offline): Move offline_next_address outside
- module's range, in case it's an ET_EXEC using fixed segment locations.
- * libdwfl.h: Update comment.
-
- * dwfl_report_elf.c (dwfl_report_elf): Align BASE to first segment's
- required alignment.
-
-2005-08-20 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (report_kernel): Take new argument PREDICATE,
- function to choose whether to report.
- (dwfl_linux_kernel_report_offline): Likewise.
- * libdwfl.h: Update decl.
- * argp-std.c (parse_opt): Update caller.
-
- * dwfl_getsrclines.c: New file.
- * dwfl_onesrcline.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add them.
- * libdwfl.h: Declare dwfl_getsrclines, dwfl_onesrcline.
-
- * linux-kernel-modules.c (dwfl_linux_kernel_find_elf): Don't leak
- MODULESDIR[0]. Call fts_close on failure.
-
- * dwfl_module_getdwarf.c (load_dw): Take dwfl_file * instead of Elf *.
- Close ET_REL file descriptors after relocation.
- (find_dw): Update caller.
- * offline.c (dwfl_report_offline): Get the file into memory and close
- the file descriptor.
-
- * dwfl_module_getdwarf.c (find_debuginfo): Do nothing when
- MOD->debug.elf is already set.
-
- * find-debuginfo.c (try_open): Use TEMP_FAILURE_RETRY.
- (dwfl_standard_find_debuginfo): Fail on errors not ENOENT or ENOTDIR.
-
- * argp-std.c (options, parse_opt): Grok -K/--offline-kernel, use
- dwfl_linux_kernel_report_offline with offline_callbacks.
-
- * linux-kernel-modules.c (report_kernel): New function, broken out of
- ...
- (dwfl_linux_kernel_report_kernel): ... here. Use it.
- (dwfl_linux_kernel_report_offline): New function.
- * libdwfl.h: Declare it.
- * libdwflP.h: Add INTDECL.
-
-2005-08-19 Roland McGrath <roland@redhat.com>
-
- Use standard debuginfo search path to look for vmlinux.
- * find-debuginfo.c (dwfl_standard_find_debuginfo): Don't check CRC if
- passed zero.
- * linux-kernel-modules.c (try_kernel_name): New function, broken out
- of ...
- (dwfl_linux_kernel_report_kernel): ... here. Use it.
-
- * argp-std.c (offline_callbacks): New variable.
- (parse_opt): Use it for -e. Allow multiple -e options.
-
- * offline.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
- * libdwfl.h: Declare dwfl_offline_section_address, dwfl_report_offline.
- * libdwflP.h: Add INTDECLs.
- (OFFLINE_REDZONE): New macro.
- (struct Dwfl): New member `offline_next_address'.
- * dwfl_begin.c (dwfl_begin): Initialize it.
- * dwfl_module.c (dwfl_report_begin): Likewise.
-
- * dwfl_report_elf.c (dwfl_report_elf): Accept all types. When ET_REL,
- do a nominal absolute section layout starting at BASE.
- * libdwfl.h: Update comment.
-
-2005-08-18 Roland McGrath <roland@redhat.com>
-
- * dwfl_module_getsrc_file.c (dwfl_module_getsrc_file): Do
- dwfl_module_getdwarf if necessary.
-
- * dwfl_report_elf.c (dwfl_report_elf): Permit ET_REL with BASE==0.
- * libdwfl.h: Update comment.
-
- * derelocate.c: New file.
- * Makefile.am (libdwfl_a_SOURCES): Add it.
-
- * libdwflP.h (struct Dwfl_Module): isrel -> e_type.
- * dwfl_report_elf.c (dwfl_report_elf): Initialize it.
- * dwfl_module_getdwarf.c (open_elf): Update initialization.
- (load_dw, dwfl_module_addrname): Update uses.
- * relocate.c (__libdwfl_relocate): Likewise.
-
-2005-08-04 Roland McGrath <roland@redhat.com>
-
- * libdwfl.h (Dwfl_Callbacks.section_address): Take additional
- arguments SHNDX, SHDR.
- (dwfl_linux_kernel_module_section_address): Update prototype.
- * relocate.c (__libdwfl_relocate_value): Update caller.
- * linux-kernel-modules.c (dwfl_linux_kernel_module_section_address):
- Take the new arguments.
-
-2005-08-10 Roland McGrath <roland@redhat.com>
-
- * relocate.c (__libdwfl_relocate): Take argument DEBUGFILE,
- use it instead of MOD->debug.file.
- * libdwflP.h: Update decl.
- * dwfl_module_getdwarf.c (load_dw): Update caller.
- Fixes bug #165598.
-
-2005-08-09 Roland McGrath <roland@redhat.com>
-
- * libdwflP.h: Include ../libdw/libdwP.h for its INTDECLs.
- * cu.c: Use INTUSE on dwarf_* calls.
- * dwfl_error.c: Likewise.
- * dwfl_module.c: Likewise.
- * dwfl_module_getdwarf.c: Likewise.
- * dwfl_module_getsrc_file.c: Likewise.
- * lines.c: Likewise.
-
-2005-08-07 Roland McGrath <roland@redhat.com>
-
- * linux-kernel-modules.c (dwfl_linux_kernel_find_elf): When module
- names contain '_' or '-', look for files named either "foo-bar.ko"
- or "foo_bar.ko".
-
-2005-07-29 Roland McGrath <roland@redhat.com>
-
- * loc2c.c: File removed.
- * loc2c.h: File removed.
- * loc2c-runtime.h: File removed.
- * test2.c: File removed.
- * Makefile.am (EXTRA_DIST): Variable removed.
- (noinst_HEADERS): Remove loc2c.h from here.
-
-2005-07-28 Ulrich Drepper <drepper@redhat.com>
-
- * libdwfl.h: Add a few missing extern for function prototypes.
-
- * libdwfl_crc32.c: New file.
- * libdwfl_crc32_file.c: New file.
- * libdwflP.h: Declare the new functions.
- * Makefile.am (libdwfl_a_SOURCES): Add libdwfl_crc32.c and
- libdwfl_crc32_file.c.
- * libdwfl/find-debuginfo.c (check_crc): Use __libdwfl_crc32_file
- instead of crc32_file.
-
-2005-07-28 Roland McGrath <roland@redhat.com>
-
- * ptest.c: Moved to ../tests/dwflmodtest.c.
-
- * Makefile.am (noinst_PROGRAMS): Variable removed.
- (libdwfl_so_SOURCES, libdwfl_LIBS, libdwfl_so_LDADD): Likewise.
- (EXTRA_DIST, ptest_LDADD, test2_LDADD): Likewise.
- (libdwfl): Don't use libdwfl.so any more.
- (libdwfl.so, install, uninstall): Targets removed.
- (test2_SOURCES): Define EXTRA_DIST instead of this.
- * libdwfl.map: File removed.
-
- * libdwfl.h: Use "" for libdw.h #include.
-
-2005-07-27 Roland McGrath <roland@redhat.com>
-
- * libdwfl.map: Add dwfl_getmodules.
-
-2005-07-23 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Fix rules to allow building with mudflap.
-
-2005-07-21 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (noinst_HEADERS): Add loc2c.c.
-
- * test2.c (main): Check sscanf result to quiet warning.
-
-2005-07-20 Roland McGrath <roland@redhat.com>
-
- * libdwfl-branch merged, creating this direcotry.
diff --git a/src/libdwfl/Makefile b/src/libdwfl/Makefile
deleted file mode 100644
index 48180b24..00000000
--- a/src/libdwfl/Makefile
+++ /dev/null
@@ -1,801 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# libdwfl/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog
-am__append_1 = gzip.c
-#am__append_2 = bzip2.c
-#am__append_3 = lzma.c
-subdir = libdwfl
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libdwfl_a_AR = $(AR) $(ARFLAGS)
-libdwfl_a_LIBADD =
-am__libdwfl_a_SOURCES_DIST = dwfl_begin.c dwfl_end.c dwfl_error.c \
- dwfl_version.c dwfl_module.c dwfl_report_elf.c relocate.c \
- dwfl_module_build_id.c dwfl_module_report_build_id.c \
- derelocate.c offline.c segment.c dwfl_module_info.c \
- dwfl_getmodules.c dwfl_getdwarf.c dwfl_module_getdwarf.c \
- dwfl_module_getelf.c dwfl_validate_address.c argp-std.c \
- find-debuginfo.c dwfl_build_id_find_elf.c \
- dwfl_build_id_find_debuginfo.c linux-kernel-modules.c \
- linux-proc-maps.c dwfl_addrmodule.c dwfl_addrdwarf.c cu.c \
- dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
- dwfl_module_addrdie.c dwfl_addrdie.c lines.c dwfl_lineinfo.c \
- dwfl_line_comp_dir.c dwfl_linemodule.c dwfl_linecu.c \
- dwfl_dwarf_line.c dwfl_getsrclines.c dwfl_onesrcline.c \
- dwfl_module_getsrc.c dwfl_getsrc.c dwfl_module_getsrc_file.c \
- libdwfl_crc32.c libdwfl_crc32_file.c elf-from-memory.c \
- dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
- dwfl_module_getsym.c dwfl_module_addrname.c \
- dwfl_module_addrsym.c dwfl_module_return_value_location.c \
- dwfl_module_register_names.c dwfl_segment_report_module.c \
- link_map.c core-file.c open.c image-header.c dwfl_frame.c \
- frame_unwind.c dwfl_frame_pc.c linux-pid-attach.c \
- linux-core-attach.c dwfl_frame_regs.c gzip.c bzip2.c lzma.c
-am__objects_1 = gzip.$(OBJEXT)
-#am__objects_2 = bzip2.$(OBJEXT)
-#am__objects_3 = lzma.$(OBJEXT)
-am_libdwfl_a_OBJECTS = dwfl_begin.$(OBJEXT) dwfl_end.$(OBJEXT) \
- dwfl_error.$(OBJEXT) dwfl_version.$(OBJEXT) \
- dwfl_module.$(OBJEXT) dwfl_report_elf.$(OBJEXT) \
- relocate.$(OBJEXT) dwfl_module_build_id.$(OBJEXT) \
- dwfl_module_report_build_id.$(OBJEXT) derelocate.$(OBJEXT) \
- offline.$(OBJEXT) segment.$(OBJEXT) dwfl_module_info.$(OBJEXT) \
- dwfl_getmodules.$(OBJEXT) dwfl_getdwarf.$(OBJEXT) \
- dwfl_module_getdwarf.$(OBJEXT) dwfl_module_getelf.$(OBJEXT) \
- dwfl_validate_address.$(OBJEXT) argp-std.$(OBJEXT) \
- find-debuginfo.$(OBJEXT) dwfl_build_id_find_elf.$(OBJEXT) \
- dwfl_build_id_find_debuginfo.$(OBJEXT) \
- linux-kernel-modules.$(OBJEXT) linux-proc-maps.$(OBJEXT) \
- dwfl_addrmodule.$(OBJEXT) dwfl_addrdwarf.$(OBJEXT) \
- cu.$(OBJEXT) dwfl_module_nextcu.$(OBJEXT) \
- dwfl_nextcu.$(OBJEXT) dwfl_cumodule.$(OBJEXT) \
- dwfl_module_addrdie.$(OBJEXT) dwfl_addrdie.$(OBJEXT) \
- lines.$(OBJEXT) dwfl_lineinfo.$(OBJEXT) \
- dwfl_line_comp_dir.$(OBJEXT) dwfl_linemodule.$(OBJEXT) \
- dwfl_linecu.$(OBJEXT) dwfl_dwarf_line.$(OBJEXT) \
- dwfl_getsrclines.$(OBJEXT) dwfl_onesrcline.$(OBJEXT) \
- dwfl_module_getsrc.$(OBJEXT) dwfl_getsrc.$(OBJEXT) \
- dwfl_module_getsrc_file.$(OBJEXT) libdwfl_crc32.$(OBJEXT) \
- libdwfl_crc32_file.$(OBJEXT) elf-from-memory.$(OBJEXT) \
- dwfl_module_dwarf_cfi.$(OBJEXT) dwfl_module_eh_cfi.$(OBJEXT) \
- dwfl_module_getsym.$(OBJEXT) dwfl_module_addrname.$(OBJEXT) \
- dwfl_module_addrsym.$(OBJEXT) \
- dwfl_module_return_value_location.$(OBJEXT) \
- dwfl_module_register_names.$(OBJEXT) \
- dwfl_segment_report_module.$(OBJEXT) link_map.$(OBJEXT) \
- core-file.$(OBJEXT) open.$(OBJEXT) image-header.$(OBJEXT) \
- dwfl_frame.$(OBJEXT) frame_unwind.$(OBJEXT) \
- dwfl_frame_pc.$(OBJEXT) linux-pid-attach.$(OBJEXT) \
- linux-core-attach.$(OBJEXT) dwfl_frame_regs.$(OBJEXT) \
- $(am__objects_1) $(am__objects_2) $(am__objects_3)
-libdwfl_a_OBJECTS = $(am_libdwfl_a_OBJECTS)
-libdwfl_pic_a_AR = $(AR) $(ARFLAGS)
-libdwfl_pic_a_LIBADD =
-libdwfl_pic_a_OBJECTS = $(am_libdwfl_pic_a_OBJECTS)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libdwfl_a_SOURCES) $(libdwfl_pic_a_SOURCES)
-DIST_SOURCES = $(am__libdwfl_a_SOURCES_DIST) $(libdwfl_pic_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(pkgincludedir)"
-HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 1
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/libdwfl
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/libdwfl
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. -I$(srcdir) \
- -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libdwfl_pic_a_OBJECTS)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-noinst_LIBRARIES = libdwfl.a libdwfl_pic.a
-pkginclude_HEADERS = libdwfl.h
-libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c \
- dwfl_version.c dwfl_module.c dwfl_report_elf.c relocate.c \
- dwfl_module_build_id.c dwfl_module_report_build_id.c \
- derelocate.c offline.c segment.c dwfl_module_info.c \
- dwfl_getmodules.c dwfl_getdwarf.c dwfl_module_getdwarf.c \
- dwfl_module_getelf.c dwfl_validate_address.c argp-std.c \
- find-debuginfo.c dwfl_build_id_find_elf.c \
- dwfl_build_id_find_debuginfo.c linux-kernel-modules.c \
- linux-proc-maps.c dwfl_addrmodule.c dwfl_addrdwarf.c cu.c \
- dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
- dwfl_module_addrdie.c dwfl_addrdie.c lines.c dwfl_lineinfo.c \
- dwfl_line_comp_dir.c dwfl_linemodule.c dwfl_linecu.c \
- dwfl_dwarf_line.c dwfl_getsrclines.c dwfl_onesrcline.c \
- dwfl_module_getsrc.c dwfl_getsrc.c dwfl_module_getsrc_file.c \
- libdwfl_crc32.c libdwfl_crc32_file.c elf-from-memory.c \
- dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
- dwfl_module_getsym.c dwfl_module_addrname.c \
- dwfl_module_addrsym.c dwfl_module_return_value_location.c \
- dwfl_module_register_names.c dwfl_segment_report_module.c \
- link_map.c core-file.c open.c image-header.c dwfl_frame.c \
- frame_unwind.c dwfl_frame_pc.c linux-pid-attach.c \
- linux-core-attach.c dwfl_frame_regs.c $(am__append_1) \
- $(am__append_2) $(am__append_3)
-libdwfl = $(libdw)
-libdw = ../libdw/libdw.so
-libelf = ../libelf/libelf.so
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-libdwfl_pic_a_SOURCES =
-am_libdwfl_pic_a_OBJECTS = $(libdwfl_a_SOURCES:.c=.os)
-noinst_HEADERS = libdwflP.h
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libdwfl/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libdwfl/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libdwfl.a: $(libdwfl_a_OBJECTS) $(libdwfl_a_DEPENDENCIES) $(EXTRA_libdwfl_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdwfl.a
- $(AM_V_AR)$(libdwfl_a_AR) libdwfl.a $(libdwfl_a_OBJECTS) $(libdwfl_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdwfl.a
-
-libdwfl_pic.a: $(libdwfl_pic_a_OBJECTS) $(libdwfl_pic_a_DEPENDENCIES) $(EXTRA_libdwfl_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdwfl_pic.a
- $(AM_V_AR)$(libdwfl_pic_a_AR) libdwfl_pic.a $(libdwfl_pic_a_OBJECTS) $(libdwfl_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdwfl_pic.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/argp-std.Po
-include ./$(DEPDIR)/bzip2.Po
-include ./$(DEPDIR)/core-file.Po
-include ./$(DEPDIR)/cu.Po
-include ./$(DEPDIR)/derelocate.Po
-include ./$(DEPDIR)/dwfl_addrdie.Po
-include ./$(DEPDIR)/dwfl_addrdwarf.Po
-include ./$(DEPDIR)/dwfl_addrmodule.Po
-include ./$(DEPDIR)/dwfl_begin.Po
-include ./$(DEPDIR)/dwfl_build_id_find_debuginfo.Po
-include ./$(DEPDIR)/dwfl_build_id_find_elf.Po
-include ./$(DEPDIR)/dwfl_cumodule.Po
-include ./$(DEPDIR)/dwfl_dwarf_line.Po
-include ./$(DEPDIR)/dwfl_end.Po
-include ./$(DEPDIR)/dwfl_error.Po
-include ./$(DEPDIR)/dwfl_frame.Po
-include ./$(DEPDIR)/dwfl_frame_pc.Po
-include ./$(DEPDIR)/dwfl_frame_regs.Po
-include ./$(DEPDIR)/dwfl_getdwarf.Po
-include ./$(DEPDIR)/dwfl_getmodules.Po
-include ./$(DEPDIR)/dwfl_getsrc.Po
-include ./$(DEPDIR)/dwfl_getsrclines.Po
-include ./$(DEPDIR)/dwfl_line_comp_dir.Po
-include ./$(DEPDIR)/dwfl_linecu.Po
-include ./$(DEPDIR)/dwfl_lineinfo.Po
-include ./$(DEPDIR)/dwfl_linemodule.Po
-include ./$(DEPDIR)/dwfl_module.Po
-include ./$(DEPDIR)/dwfl_module_addrdie.Po
-include ./$(DEPDIR)/dwfl_module_addrname.Po
-include ./$(DEPDIR)/dwfl_module_addrsym.Po
-include ./$(DEPDIR)/dwfl_module_build_id.Po
-include ./$(DEPDIR)/dwfl_module_dwarf_cfi.Po
-include ./$(DEPDIR)/dwfl_module_eh_cfi.Po
-include ./$(DEPDIR)/dwfl_module_getdwarf.Po
-include ./$(DEPDIR)/dwfl_module_getelf.Po
-include ./$(DEPDIR)/dwfl_module_getsrc.Po
-include ./$(DEPDIR)/dwfl_module_getsrc_file.Po
-include ./$(DEPDIR)/dwfl_module_getsym.Po
-include ./$(DEPDIR)/dwfl_module_info.Po
-include ./$(DEPDIR)/dwfl_module_nextcu.Po
-include ./$(DEPDIR)/dwfl_module_register_names.Po
-include ./$(DEPDIR)/dwfl_module_report_build_id.Po
-include ./$(DEPDIR)/dwfl_module_return_value_location.Po
-include ./$(DEPDIR)/dwfl_nextcu.Po
-include ./$(DEPDIR)/dwfl_onesrcline.Po
-include ./$(DEPDIR)/dwfl_report_elf.Po
-include ./$(DEPDIR)/dwfl_segment_report_module.Po
-include ./$(DEPDIR)/dwfl_validate_address.Po
-include ./$(DEPDIR)/dwfl_version.Po
-include ./$(DEPDIR)/elf-from-memory.Po
-include ./$(DEPDIR)/find-debuginfo.Po
-include ./$(DEPDIR)/frame_unwind.Po
-include ./$(DEPDIR)/gzip.Po
-include ./$(DEPDIR)/image-header.Po
-include ./$(DEPDIR)/libdwfl_crc32.Po
-include ./$(DEPDIR)/libdwfl_crc32_file.Po
-include ./$(DEPDIR)/lines.Po
-include ./$(DEPDIR)/link_map.Po
-include ./$(DEPDIR)/linux-core-attach.Po
-include ./$(DEPDIR)/linux-kernel-modules.Po
-include ./$(DEPDIR)/linux-pid-attach.Po
-include ./$(DEPDIR)/linux-proc-maps.Po
-include ./$(DEPDIR)/lzma.Po
-include ./$(DEPDIR)/offline.Po
-include ./$(DEPDIR)/open.Po
-include ./$(DEPDIR)/relocate.Po
-include ./$(DEPDIR)/segment.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-pkgincludeHEADERS install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libdwfl/Makefile.am b/src/libdwfl/Makefile.am
deleted file mode 100644
index 72c980bf..00000000
--- a/src/libdwfl/Makefile.am
+++ /dev/null
@@ -1,94 +0,0 @@
-## Makefile.am for libdwfl library subdirectory in elfutils.
-##
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 2005-2010, 2013 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-AM_CPPFLAGS += -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf
-VERSION = 1
-
-noinst_LIBRARIES = libdwfl.a
-noinst_LIBRARIES += libdwfl_pic.a
-
-pkginclude_HEADERS = libdwfl.h
-
-libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \
- dwfl_module.c dwfl_report_elf.c relocate.c \
- dwfl_module_build_id.c dwfl_module_report_build_id.c \
- derelocate.c offline.c segment.c \
- dwfl_module_info.c dwfl_getmodules.c dwfl_getdwarf.c \
- dwfl_module_getdwarf.c dwfl_module_getelf.c \
- dwfl_validate_address.c \
- argp-std.c find-debuginfo.c \
- dwfl_build_id_find_elf.c \
- dwfl_build_id_find_debuginfo.c \
- linux-kernel-modules.c linux-proc-maps.c \
- dwfl_addrmodule.c dwfl_addrdwarf.c \
- cu.c dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
- dwfl_module_addrdie.c dwfl_addrdie.c \
- lines.c dwfl_lineinfo.c dwfl_line_comp_dir.c \
- dwfl_linemodule.c dwfl_linecu.c dwfl_dwarf_line.c \
- dwfl_getsrclines.c dwfl_onesrcline.c \
- dwfl_module_getsrc.c dwfl_getsrc.c \
- dwfl_module_getsrc_file.c \
- libdwfl_crc32.c libdwfl_crc32_file.c \
- elf-from-memory.c \
- dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
- dwfl_module_getsym.c \
- dwfl_module_addrname.c dwfl_module_addrsym.c \
- dwfl_module_return_value_location.c \
- dwfl_module_register_names.c \
- dwfl_segment_report_module.c \
- link_map.c core-file.c open.c image-header.c \
- dwfl_frame.c frame_unwind.c dwfl_frame_pc.c \
- linux-pid-attach.c linux-core-attach.c dwfl_frame_regs.c
-
-if ZLIB
-libdwfl_a_SOURCES += gzip.c
-endif
-if BZLIB
-libdwfl_a_SOURCES += bzip2.c
-endif
-if LZMA
-libdwfl_a_SOURCES += lzma.c
-endif
-
-libdwfl = $(libdw)
-libdw = ../libdw/libdw.so
-libelf = ../libelf/libelf.so
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-
-libdwfl_pic_a_SOURCES =
-am_libdwfl_pic_a_OBJECTS = $(libdwfl_a_SOURCES:.c=.os)
-
-noinst_HEADERS = libdwflP.h
-
-CLEANFILES += $(am_libdwfl_pic_a_OBJECTS)
diff --git a/src/libdwfl/Makefile.in b/src/libdwfl/Makefile.in
deleted file mode 100644
index f00e79e4..00000000
--- a/src/libdwfl/Makefile.in
+++ /dev/null
@@ -1,801 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog
-@ZLIB_TRUE@am__append_1 = gzip.c
-@BZLIB_TRUE@am__append_2 = bzip2.c
-@LZMA_TRUE@am__append_3 = lzma.c
-subdir = libdwfl
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libdwfl_a_AR = $(AR) $(ARFLAGS)
-libdwfl_a_LIBADD =
-am__libdwfl_a_SOURCES_DIST = dwfl_begin.c dwfl_end.c dwfl_error.c \
- dwfl_version.c dwfl_module.c dwfl_report_elf.c relocate.c \
- dwfl_module_build_id.c dwfl_module_report_build_id.c \
- derelocate.c offline.c segment.c dwfl_module_info.c \
- dwfl_getmodules.c dwfl_getdwarf.c dwfl_module_getdwarf.c \
- dwfl_module_getelf.c dwfl_validate_address.c argp-std.c \
- find-debuginfo.c dwfl_build_id_find_elf.c \
- dwfl_build_id_find_debuginfo.c linux-kernel-modules.c \
- linux-proc-maps.c dwfl_addrmodule.c dwfl_addrdwarf.c cu.c \
- dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
- dwfl_module_addrdie.c dwfl_addrdie.c lines.c dwfl_lineinfo.c \
- dwfl_line_comp_dir.c dwfl_linemodule.c dwfl_linecu.c \
- dwfl_dwarf_line.c dwfl_getsrclines.c dwfl_onesrcline.c \
- dwfl_module_getsrc.c dwfl_getsrc.c dwfl_module_getsrc_file.c \
- libdwfl_crc32.c libdwfl_crc32_file.c elf-from-memory.c \
- dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
- dwfl_module_getsym.c dwfl_module_addrname.c \
- dwfl_module_addrsym.c dwfl_module_return_value_location.c \
- dwfl_module_register_names.c dwfl_segment_report_module.c \
- link_map.c core-file.c open.c image-header.c dwfl_frame.c \
- frame_unwind.c dwfl_frame_pc.c linux-pid-attach.c \
- linux-core-attach.c dwfl_frame_regs.c gzip.c bzip2.c lzma.c
-@ZLIB_TRUE@am__objects_1 = gzip.$(OBJEXT)
-@BZLIB_TRUE@am__objects_2 = bzip2.$(OBJEXT)
-@LZMA_TRUE@am__objects_3 = lzma.$(OBJEXT)
-am_libdwfl_a_OBJECTS = dwfl_begin.$(OBJEXT) dwfl_end.$(OBJEXT) \
- dwfl_error.$(OBJEXT) dwfl_version.$(OBJEXT) \
- dwfl_module.$(OBJEXT) dwfl_report_elf.$(OBJEXT) \
- relocate.$(OBJEXT) dwfl_module_build_id.$(OBJEXT) \
- dwfl_module_report_build_id.$(OBJEXT) derelocate.$(OBJEXT) \
- offline.$(OBJEXT) segment.$(OBJEXT) dwfl_module_info.$(OBJEXT) \
- dwfl_getmodules.$(OBJEXT) dwfl_getdwarf.$(OBJEXT) \
- dwfl_module_getdwarf.$(OBJEXT) dwfl_module_getelf.$(OBJEXT) \
- dwfl_validate_address.$(OBJEXT) argp-std.$(OBJEXT) \
- find-debuginfo.$(OBJEXT) dwfl_build_id_find_elf.$(OBJEXT) \
- dwfl_build_id_find_debuginfo.$(OBJEXT) \
- linux-kernel-modules.$(OBJEXT) linux-proc-maps.$(OBJEXT) \
- dwfl_addrmodule.$(OBJEXT) dwfl_addrdwarf.$(OBJEXT) \
- cu.$(OBJEXT) dwfl_module_nextcu.$(OBJEXT) \
- dwfl_nextcu.$(OBJEXT) dwfl_cumodule.$(OBJEXT) \
- dwfl_module_addrdie.$(OBJEXT) dwfl_addrdie.$(OBJEXT) \
- lines.$(OBJEXT) dwfl_lineinfo.$(OBJEXT) \
- dwfl_line_comp_dir.$(OBJEXT) dwfl_linemodule.$(OBJEXT) \
- dwfl_linecu.$(OBJEXT) dwfl_dwarf_line.$(OBJEXT) \
- dwfl_getsrclines.$(OBJEXT) dwfl_onesrcline.$(OBJEXT) \
- dwfl_module_getsrc.$(OBJEXT) dwfl_getsrc.$(OBJEXT) \
- dwfl_module_getsrc_file.$(OBJEXT) libdwfl_crc32.$(OBJEXT) \
- libdwfl_crc32_file.$(OBJEXT) elf-from-memory.$(OBJEXT) \
- dwfl_module_dwarf_cfi.$(OBJEXT) dwfl_module_eh_cfi.$(OBJEXT) \
- dwfl_module_getsym.$(OBJEXT) dwfl_module_addrname.$(OBJEXT) \
- dwfl_module_addrsym.$(OBJEXT) \
- dwfl_module_return_value_location.$(OBJEXT) \
- dwfl_module_register_names.$(OBJEXT) \
- dwfl_segment_report_module.$(OBJEXT) link_map.$(OBJEXT) \
- core-file.$(OBJEXT) open.$(OBJEXT) image-header.$(OBJEXT) \
- dwfl_frame.$(OBJEXT) frame_unwind.$(OBJEXT) \
- dwfl_frame_pc.$(OBJEXT) linux-pid-attach.$(OBJEXT) \
- linux-core-attach.$(OBJEXT) dwfl_frame_regs.$(OBJEXT) \
- $(am__objects_1) $(am__objects_2) $(am__objects_3)
-libdwfl_a_OBJECTS = $(am_libdwfl_a_OBJECTS)
-libdwfl_pic_a_AR = $(AR) $(ARFLAGS)
-libdwfl_pic_a_LIBADD =
-libdwfl_pic_a_OBJECTS = $(am_libdwfl_pic_a_OBJECTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libdwfl_a_SOURCES) $(libdwfl_pic_a_SOURCES)
-DIST_SOURCES = $(am__libdwfl_a_SOURCES_DIST) $(libdwfl_pic_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(pkgincludedir)"
-HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = 1
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. -I$(srcdir) \
- -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libdwfl_pic_a_OBJECTS)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-noinst_LIBRARIES = libdwfl.a libdwfl_pic.a
-pkginclude_HEADERS = libdwfl.h
-libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c \
- dwfl_version.c dwfl_module.c dwfl_report_elf.c relocate.c \
- dwfl_module_build_id.c dwfl_module_report_build_id.c \
- derelocate.c offline.c segment.c dwfl_module_info.c \
- dwfl_getmodules.c dwfl_getdwarf.c dwfl_module_getdwarf.c \
- dwfl_module_getelf.c dwfl_validate_address.c argp-std.c \
- find-debuginfo.c dwfl_build_id_find_elf.c \
- dwfl_build_id_find_debuginfo.c linux-kernel-modules.c \
- linux-proc-maps.c dwfl_addrmodule.c dwfl_addrdwarf.c cu.c \
- dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
- dwfl_module_addrdie.c dwfl_addrdie.c lines.c dwfl_lineinfo.c \
- dwfl_line_comp_dir.c dwfl_linemodule.c dwfl_linecu.c \
- dwfl_dwarf_line.c dwfl_getsrclines.c dwfl_onesrcline.c \
- dwfl_module_getsrc.c dwfl_getsrc.c dwfl_module_getsrc_file.c \
- libdwfl_crc32.c libdwfl_crc32_file.c elf-from-memory.c \
- dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
- dwfl_module_getsym.c dwfl_module_addrname.c \
- dwfl_module_addrsym.c dwfl_module_return_value_location.c \
- dwfl_module_register_names.c dwfl_segment_report_module.c \
- link_map.c core-file.c open.c image-header.c dwfl_frame.c \
- frame_unwind.c dwfl_frame_pc.c linux-pid-attach.c \
- linux-core-attach.c dwfl_frame_regs.c $(am__append_1) \
- $(am__append_2) $(am__append_3)
-libdwfl = $(libdw)
-libdw = ../libdw/libdw.so
-libelf = ../libelf/libelf.so
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-libdwfl_pic_a_SOURCES =
-am_libdwfl_pic_a_OBJECTS = $(libdwfl_a_SOURCES:.c=.os)
-noinst_HEADERS = libdwflP.h
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libdwfl/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libdwfl/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libdwfl.a: $(libdwfl_a_OBJECTS) $(libdwfl_a_DEPENDENCIES) $(EXTRA_libdwfl_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdwfl.a
- $(AM_V_AR)$(libdwfl_a_AR) libdwfl.a $(libdwfl_a_OBJECTS) $(libdwfl_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdwfl.a
-
-libdwfl_pic.a: $(libdwfl_pic_a_OBJECTS) $(libdwfl_pic_a_DEPENDENCIES) $(EXTRA_libdwfl_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdwfl_pic.a
- $(AM_V_AR)$(libdwfl_pic_a_AR) libdwfl_pic.a $(libdwfl_pic_a_OBJECTS) $(libdwfl_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdwfl_pic.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/argp-std.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bzip2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/core-file.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/derelocate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_addrdie.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_addrdwarf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_addrmodule.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_begin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_build_id_find_debuginfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_build_id_find_elf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_cumodule.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_dwarf_line.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_end.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_error.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_frame.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_frame_pc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_frame_regs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_getdwarf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_getmodules.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_getsrc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_getsrclines.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_line_comp_dir.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_linecu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_lineinfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_linemodule.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_addrdie.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_addrname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_addrsym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_build_id.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_dwarf_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_eh_cfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_getdwarf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_getelf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_getsrc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_getsrc_file.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_getsym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_info.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_nextcu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_register_names.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_report_build_id.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_module_return_value_location.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_nextcu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_onesrcline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_report_elf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_segment_report_module.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_validate_address.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl_version.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf-from-memory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/find-debuginfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frame_unwind.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gzip.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/image-header.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdwfl_crc32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libdwfl_crc32_file.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lines.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_map.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-core-attach.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-kernel-modules.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-pid-attach.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-proc-maps.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lzma.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/offline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/open.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/relocate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/segment.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-pdf \
- install-pdf-am install-pkgincludeHEADERS install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am tags tags-am uninstall uninstall-am \
- uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libdwfl/argp-std.c b/src/libdwfl/argp-std.c
deleted file mode 100644
index 42b7e783..00000000
--- a/src/libdwfl/argp-std.c
+++ /dev/null
@@ -1,364 +0,0 @@
-/* Standard argp argument parsers for tools using libdwfl.
- Copyright (C) 2005-2010, 2012 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <argp.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <libintl.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-/* gettext helper macros. */
-#define _(Str) dgettext ("elfutils", Str)
-
-
-#define OPT_DEBUGINFO 0x100
-#define OPT_COREFILE 0x101
-
-static const struct argp_option options[] =
-{
- { NULL, 0, NULL, 0, N_("Input selection options:"), 0 },
- { "executable", 'e', "FILE", 0, N_("Find addresses in FILE"), 0 },
- { "core", OPT_COREFILE, "COREFILE", 0,
- N_("Find addresses from signatures found in COREFILE"), 0 },
- { "pid", 'p', "PID", 0,
- N_("Find addresses in files mapped into process PID"), 0 },
- { "linux-process-map", 'M', "FILE", 0,
- N_("Find addresses in files mapped as read from FILE"
- " in Linux /proc/PID/maps format"), 0 },
- { "kernel", 'k', NULL, 0, N_("Find addresses in the running kernel"), 0 },
- { "offline-kernel", 'K', "RELEASE", OPTION_ARG_OPTIONAL,
- N_("Kernel with all modules"), 0 },
- { "debuginfo-path", OPT_DEBUGINFO, "PATH", 0,
- N_("Search path for separate debuginfo files"), 0 },
- { NULL, 0, NULL, 0, NULL, 0 }
-};
-
-static char *debuginfo_path;
-
-static const Dwfl_Callbacks offline_callbacks =
- {
- .find_debuginfo = INTUSE(dwfl_standard_find_debuginfo),
- .debuginfo_path = &debuginfo_path,
-
- .section_address = INTUSE(dwfl_offline_section_address),
-
- /* We use this table for core files too. */
- .find_elf = INTUSE(dwfl_build_id_find_elf),
- };
-
-static const Dwfl_Callbacks proc_callbacks =
- {
- .find_debuginfo = INTUSE(dwfl_standard_find_debuginfo),
- .debuginfo_path = &debuginfo_path,
-
- .find_elf = INTUSE(dwfl_linux_proc_find_elf),
- };
-
-static const Dwfl_Callbacks kernel_callbacks =
- {
- .find_debuginfo = INTUSE(dwfl_standard_find_debuginfo),
- .debuginfo_path = &debuginfo_path,
-
- .find_elf = INTUSE(dwfl_linux_kernel_find_elf),
- .section_address = INTUSE(dwfl_linux_kernel_module_section_address),
- };
-
-/* Structure held at state->HOOK. */
-struct parse_opt
-{
- Dwfl *dwfl;
- /* The -e|--executable parameter. */
- const char *e;
- /* The --core parameter. */
- const char *core;
-};
-
-static error_t
-parse_opt (int key, char *arg, struct argp_state *state)
-{
- inline void failure (Dwfl *dwfl, int errnum, const char *msg)
- {
- if (dwfl != NULL)
- dwfl_end (dwfl);
- if (errnum == -1)
- argp_failure (state, EXIT_FAILURE, 0, "%s: %s",
- msg, INTUSE(dwfl_errmsg) (-1));
- else
- argp_failure (state, EXIT_FAILURE, errnum, "%s", msg);
- }
- inline error_t fail (Dwfl *dwfl, int errnum, const char *msg)
- {
- failure (dwfl, errnum, msg);
- return errnum == -1 ? EIO : errnum;
- }
-
- switch (key)
- {
- case ARGP_KEY_INIT:
- {
- assert (state->hook == NULL);
- struct parse_opt *opt = calloc (1, sizeof (*opt));
- if (opt == NULL)
- failure (NULL, DWFL_E_ERRNO, "calloc");
- state->hook = opt;
- }
- break;
-
- case OPT_DEBUGINFO:
- debuginfo_path = arg;
- break;
-
- case 'e':
- {
- struct parse_opt *opt = state->hook;
- Dwfl *dwfl = opt->dwfl;
- if (dwfl == NULL)
- {
- dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
- if (dwfl == NULL)
- return fail (dwfl, -1, arg);
- opt->dwfl = dwfl;
-
- /* Start at zero so if there is just one -e foo.so,
- the DSO is shown without address bias. */
- dwfl->offline_next_address = 0;
- }
- if (dwfl->callbacks != &offline_callbacks)
- {
- toomany:
- argp_error (state, "%s",
- _("only one of -e, -p, -k, -K, or --core allowed"));
- return EINVAL;
- }
- opt->e = arg;
- }
- break;
-
- case 'p':
- {
- struct parse_opt *opt = state->hook;
- if (opt->dwfl == NULL)
- {
- Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks);
- int result = INTUSE(dwfl_linux_proc_report) (dwfl, atoi (arg));
- if (result != 0)
- return fail (dwfl, result, arg);
-
- /* Non-fatal to not be able to attach to process, ignore error. */
- INTUSE(dwfl_linux_proc_attach) (dwfl, atoi (arg), false);
-
- opt->dwfl = dwfl;
- }
- else
- goto toomany;
- }
- break;
-
- case 'M':
- {
- struct parse_opt *opt = state->hook;
- if (opt->dwfl == NULL)
- {
- FILE *f = fopen (arg, "r");
- if (f == NULL)
- {
- int code = errno;
- argp_failure (state, EXIT_FAILURE, code,
- "cannot open '%s'", arg);
- return code;
- }
- Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks);
- int result = INTUSE(dwfl_linux_proc_maps_report) (dwfl, f);
- fclose (f);
- if (result != 0)
- return fail (dwfl, result, arg);
- opt->dwfl = dwfl;
- }
- else
- goto toomany;
- }
- break;
-
- case OPT_COREFILE:
- {
- struct parse_opt *opt = state->hook;
- Dwfl *dwfl = opt->dwfl;
- if (dwfl == NULL)
- opt->dwfl = dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
- /* Permit -e and --core together. */
- else if (dwfl->callbacks != &offline_callbacks)
- goto toomany;
- opt->core = arg;
- }
- break;
-
- case 'k':
- {
- struct parse_opt *opt = state->hook;
- if (opt->dwfl == NULL)
- {
- Dwfl *dwfl = INTUSE(dwfl_begin) (&kernel_callbacks);
- int result = INTUSE(dwfl_linux_kernel_report_kernel) (dwfl);
- if (result != 0)
- return fail (dwfl, result, _("cannot load kernel symbols"));
- result = INTUSE(dwfl_linux_kernel_report_modules) (dwfl);
- if (result != 0)
- /* Non-fatal to have no modules since we do have the kernel. */
- failure (dwfl, result, _("cannot find kernel modules"));
- opt->dwfl = dwfl;
- }
- else
- goto toomany;
- }
- break;
-
- case 'K':
- {
- struct parse_opt *opt = state->hook;
- if (opt->dwfl == NULL)
- {
- Dwfl *dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
- int result = INTUSE(dwfl_linux_kernel_report_offline) (dwfl, arg,
- NULL);
- if (result != 0)
- return fail (dwfl, result, _("cannot find kernel or modules"));
- opt->dwfl = dwfl;
- }
- else
- goto toomany;
- }
- break;
-
- case ARGP_KEY_SUCCESS:
- {
- struct parse_opt *opt = state->hook;
- Dwfl *dwfl = opt->dwfl;
-
- if (dwfl == NULL)
- {
- /* Default if no -e, -p, or -k, is "-e a.out". */
- arg = "a.out";
- dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
- if (INTUSE(dwfl_report_offline) (dwfl, "", arg, -1) == NULL)
- return fail (dwfl, -1, arg);
- opt->dwfl = dwfl;
- }
-
- if (opt->core)
- {
- int fd = open64 (opt->core, O_RDONLY);
- if (fd < 0)
- {
- int code = errno;
- argp_failure (state, EXIT_FAILURE, code,
- "cannot open '%s'", opt->core);
- return code;
- }
-
- Elf *core;
- Dwfl_Error error = __libdw_open_file (&fd, &core, true, false);
- if (error != DWFL_E_NOERROR)
- {
- argp_failure (state, EXIT_FAILURE, 0,
- _("cannot read ELF core file: %s"),
- INTUSE(dwfl_errmsg) (error));
- return error == DWFL_E_ERRNO ? errno : EIO;
- }
-
- int result = INTUSE(dwfl_core_file_report) (dwfl, core, opt->e);
- if (result < 0)
- {
- elf_end (core);
- close (fd);
- return fail (dwfl, result, opt->core);
- }
-
- /* Non-fatal to not be able to attach to core, ignore error. */
- INTUSE(dwfl_core_file_attach) (dwfl, core);
-
- /* From now we leak FD and CORE. */
-
- if (result == 0)
- {
- argp_failure (state, EXIT_FAILURE, 0,
- _("No modules recognized in core file"));
- return ENOENT;
- }
- }
- else if (opt->e)
- {
- if (INTUSE(dwfl_report_offline) (dwfl, "", opt->e, -1) == NULL)
- return fail (dwfl, -1, opt->e);
- }
-
- /* One of the three flavors has done dwfl_begin and some reporting
- if we got here. Tie up the Dwfl and return it to the caller of
- argp_parse. */
-
- int result = INTUSE(dwfl_report_end) (dwfl, NULL, NULL);
- assert (result == 0);
-
- /* Update the input all along, so a parent parser can see it.
- As we free OPT the update below will be no longer active. */
- *(Dwfl **) state->input = dwfl;
- free (opt);
- state->hook = NULL;
- }
- break;
-
- case ARGP_KEY_ERROR:
- {
- struct parse_opt *opt = state->hook;
- dwfl_end (opt->dwfl);
- free (opt);
- state->hook = NULL;
- }
- break;
-
- default:
- return ARGP_ERR_UNKNOWN;
- }
-
- /* Update the input all along, so a parent parser can see it. */
- struct parse_opt *opt = state->hook;
- if (opt)
- *(Dwfl **) state->input = opt->dwfl;
-
- return 0;
-}
-
-static const struct argp libdwfl_argp =
- { .options = options, .parser = parse_opt };
-
-const struct argp *
-dwfl_standard_argp (void)
-{
- return &libdwfl_argp;
-}
diff --git a/src/libdwfl/bzip2.c b/src/libdwfl/bzip2.c
deleted file mode 100644
index 8ad4ee5a..00000000
--- a/src/libdwfl/bzip2.c
+++ /dev/null
@@ -1,4 +0,0 @@
-/* bzlib is almost just like zlib. */
-
-#define BZLIB
-#include "gzip.c"
diff --git a/src/libdwfl/core-file.c b/src/libdwfl/core-file.c
deleted file mode 100644
index 50031aed..00000000
--- a/src/libdwfl/core-file.c
+++ /dev/null
@@ -1,589 +0,0 @@
-/* Core file handling.
- Copyright (C) 2008-2010, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include "../libelf/libelfP.h" /* For NOTE_ALIGN. */
-#undef _
-#include "libdwflP.h"
-#include <gelf.h>
-
-#include <sys/param.h>
-#include <unistd.h>
-#include <endian.h>
-#include <byteswap.h>
-#include "system.h"
-
-
-/* This is a prototype of what a new libelf interface might be.
- This implementation is pessimal for non-mmap cases and should
- be replaced by more diddling inside libelf internals. */
-static Elf *
-elf_begin_rand (Elf *parent, loff_t offset, loff_t size, loff_t *next)
-{
- if (parent == NULL)
- return NULL;
-
- /* On failure return, we update *NEXT to point back at OFFSET. */
- inline Elf *fail (int error)
- {
- if (next != NULL)
- *next = offset;
- //__libelf_seterrno (error);
- __libdwfl_seterrno (DWFL_E (LIBELF, error));
- return NULL;
- }
-
- loff_t min = (parent->kind == ELF_K_ELF ?
- (parent->class == ELFCLASS32
- ? sizeof (Elf32_Ehdr) : sizeof (Elf64_Ehdr))
- : parent->kind == ELF_K_AR ? SARMAG
- : 0);
-
- if (unlikely (offset < min)
- || unlikely (offset >= (loff_t) parent->maximum_size))
- return fail (ELF_E_RANGE);
-
- /* For an archive, fetch just the size field
- from the archive header to override SIZE. */
- if (parent->kind == ELF_K_AR)
- {
- struct ar_hdr h = { .ar_size = "" };
-
- if (unlikely (parent->maximum_size - offset < sizeof h))
- return fail (ELF_E_RANGE);
-
- if (parent->map_address != NULL)
- memcpy (h.ar_size, parent->map_address + parent->start_offset + offset,
- sizeof h.ar_size);
- else if (unlikely (pread_retry (parent->fildes,
- h.ar_size, sizeof (h.ar_size),
- parent->start_offset + offset
- + offsetof (struct ar_hdr, ar_size))
- != sizeof (h.ar_size)))
- return fail (ELF_E_READ_ERROR);
-
- offset += sizeof h;
-
- char *endp;
- size = strtoll (h.ar_size, &endp, 10);
- if (unlikely (endp == h.ar_size)
- || unlikely ((loff_t) parent->maximum_size - offset < size))
- return fail (ELF_E_INVALID_ARCHIVE);
- }
-
- if (unlikely ((loff_t) parent->maximum_size - offset < size))
- return fail (ELF_E_RANGE);
-
- /* Even if we fail at this point, update *NEXT to point past the file. */
- if (next != NULL)
- *next = offset + size;
-
- if (unlikely (offset == 0)
- && unlikely (size == (loff_t) parent->maximum_size))
- return elf_clone (parent, parent->cmd);
-
- /* Note the image is guaranteed live only as long as PARENT
- lives. Using elf_memory is quite suboptimal if the whole
- file is not mmap'd. We really should have something like
- a generalization of the archive support. */
- Elf_Data *data = elf_getdata_rawchunk (parent, offset, size, ELF_T_BYTE);
- if (data == NULL)
- return NULL;
- assert ((loff_t) data->d_size == size);
- return elf_memory (data->d_buf, size);
-}
-
-
-int
-dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes)
-{
- if (unlikely (dwfl == NULL))
- return -1;
-
- int result = 0;
-
- if (notes != NULL)
- notes->p_type = PT_NULL;
-
- for (size_t ndx = 0; result >= 0 && ndx < phnum; ++ndx)
- {
- GElf_Phdr phdr_mem;
- GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem);
- if (unlikely (phdr == NULL))
- {
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return -1;
- }
- switch (phdr->p_type)
- {
- case PT_LOAD:
- result = dwfl_report_segment (dwfl, ndx, phdr, 0, NULL);
- break;
-
- case PT_NOTE:
- if (notes != NULL)
- {
- *notes = *phdr;
- notes = NULL;
- }
- break;
- }
- }
-
- return result;
-}
-
-/* Never read more than this much without mmap. */
-#define MAX_EAGER_COST 8192
-
-static bool
-core_file_read_eagerly (Dwfl_Module *mod,
- void **userdata __attribute__ ((unused)),
- const char *name __attribute__ ((unused)),
- Dwarf_Addr start __attribute__ ((unused)),
- void **buffer, size_t *buffer_available,
- GElf_Off cost, GElf_Off worthwhile,
- GElf_Off whole,
- GElf_Off contiguous __attribute__ ((unused)),
- void *arg, Elf **elfp)
-{
- Elf *core = arg;
-
- if (whole <= *buffer_available)
- {
- /* All there ever was, we already have on hand. */
-
- if (core->map_address == NULL)
- {
- /* We already malloc'd the buffer. */
- *elfp = elf_memory (*buffer, whole);
- if (unlikely (*elfp == NULL))
- return false;
-
- (*elfp)->flags |= ELF_F_MALLOCED;
- *buffer = NULL;
- *buffer_available = 0;
- return true;
- }
-
- /* We can use the image inside the core file directly. */
- *elfp = elf_begin_rand (core, *buffer - core->map_address, whole, NULL);
- *buffer = NULL;
- *buffer_available = 0;
- return *elfp != NULL;
- }
-
- /* We don't have the whole file.
- Figure out if this is better than nothing. */
-
- if (worthwhile == 0)
- /* Caller doesn't think so. */
- return false;
-
- /*
- XXX would like to fall back to partial file via memory
- when build id find_elf fails
- also, link_map name may give file name from disk better than partial here
- requires find_elf hook re-doing the magic to fall back if no file found
- */
-
- if (mod->build_id_len > 0)
- /* There is a build ID that could help us find the whole file,
- which might be more useful than what we have.
- We'll just rely on that. */
- return false;
-
- if (core->map_address != NULL)
- /* It's cheap to get, so get it. */
- return true;
-
- /* Only use it if there isn't too much to be read. */
- return cost <= MAX_EAGER_COST;
-}
-
-bool
-dwfl_elf_phdr_memory_callback (Dwfl *dwfl, int ndx,
- void **buffer, size_t *buffer_available,
- GElf_Addr vaddr,
- size_t minread,
- void *arg)
-{
- Elf *elf = arg;
-
- if (ndx == -1)
- {
- /* Called for cleanup. */
- if (elf->map_address == NULL)
- free (*buffer);
- *buffer = NULL;
- *buffer_available = 0;
- return false;
- }
-
- const GElf_Off align = dwfl->segment_align ?: 1;
- GElf_Phdr phdr;
-
- do
- if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL))
- return false;
- while (phdr.p_type != PT_LOAD
- || ((phdr.p_vaddr + phdr.p_memsz + align - 1) & -align) <= vaddr);
-
- GElf_Off start = vaddr - phdr.p_vaddr + phdr.p_offset;
- GElf_Off end;
- GElf_Addr end_vaddr;
-
- inline void update_end ()
- {
- end = (phdr.p_offset + phdr.p_filesz + align - 1) & -align;
- end_vaddr = (phdr.p_vaddr + phdr.p_memsz + align - 1) & -align;
- }
-
- update_end ();
-
- /* Use following contiguous segments to get towards SIZE. */
- inline bool more (size_t size)
- {
- while (end <= start || end - start < size)
- {
- if (phdr.p_filesz < phdr.p_memsz)
- /* This segment is truncated, so no following one helps us. */
- return false;
-
- if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL))
- return false;
-
- if (phdr.p_type == PT_LOAD)
- {
- if (phdr.p_offset > end
- || phdr.p_vaddr > end_vaddr)
- /* It's discontiguous! */
- return false;
-
- update_end ();
- }
- }
- return true;
- }
-
- /* We need at least this much. */
- if (! more (minread))
- return false;
-
- /* See how much more we can get of what the caller wants. */
- (void) more (*buffer_available);
-
- /* If it's already on hand anyway, use as much as there is. */
- if (elf->map_address != NULL)
- (void) more (elf->maximum_size - start);
-
- /* Make sure we don't look past the end of the actual file,
- even if the headers tell us to. */
- if (unlikely (end > elf->maximum_size))
- end = elf->maximum_size;
-
- /* If the file is too small, there is nothing at all to get. */
- if (unlikely (start >= end))
- return false;
-
- if (elf->map_address != NULL)
- {
- void *contents = elf->map_address + elf->start_offset + start;
- size_t size = end - start;
-
- if (minread == 0) /* String mode. */
- {
- const void *eos = memchr (contents, '\0', size);
- if (unlikely (eos == NULL) || unlikely (eos == contents))
- return false;
- size = eos + 1 - contents;
- }
-
- if (*buffer == NULL)
- {
- *buffer = contents;
- *buffer_available = size;
- }
- else
- {
- *buffer_available = MIN (size, *buffer_available);
- memcpy (*buffer, contents, *buffer_available);
- }
- }
- else
- {
- void *into = *buffer;
- if (*buffer == NULL)
- {
- *buffer_available = MIN (minread ?: 512,
- MAX (4096, MIN (end - start,
- *buffer_available)));
- into = malloc (*buffer_available);
- if (unlikely (into == NULL))
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return false;
- }
- }
-
- ssize_t nread = pread_retry (elf->fildes, into, *buffer_available, start);
- if (nread < (ssize_t) minread)
- {
- if (into != *buffer)
- free (into);
- if (nread < 0)
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
- }
-
- if (minread == 0) /* String mode. */
- {
- const void *eos = memchr (into, '\0', nread);
- if (unlikely (eos == NULL) || unlikely (eos == into))
- {
- if (*buffer == NULL)
- free (into);
- return false;
- }
- nread = eos + 1 - into;
- }
-
- if (*buffer == NULL)
- *buffer = into;
- *buffer_available = nread;
- }
-
- return true;
-}
-
-/* Free the contents of R_DEBUG_INFO without the R_DEBUG_INFO memory itself. */
-
-static void
-clear_r_debug_info (struct r_debug_info *r_debug_info)
-{
- while (r_debug_info->module != NULL)
- {
- struct r_debug_info_module *module = r_debug_info->module;
- r_debug_info->module = module->next;
- elf_end (module->elf);
- if (module->fd != -1)
- close (module->fd);
- free (module);
- }
-}
-
-bool
-internal_function
-__libdwfl_dynamic_vaddr_get (Elf *elf, GElf_Addr *vaddrp)
-{
- size_t phnum;
- if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
- return false;
- for (size_t i = 0; i < phnum; ++i)
- {
- GElf_Phdr phdr_mem;
- GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
- if (unlikely (phdr == NULL))
- return false;
- if (phdr->p_type == PT_DYNAMIC)
- {
- *vaddrp = phdr->p_vaddr;
- return true;
- }
- }
- return false;
-}
-
-int
-dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable)
-{
- size_t phnum;
- if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
- {
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return -1;
- }
-
- free (dwfl->executable_for_core);
- if (executable == NULL)
- dwfl->executable_for_core = NULL;
- else
- {
- dwfl->executable_for_core = strdup (executable);
- if (dwfl->executable_for_core == NULL)
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
- }
-
- /* First report each PT_LOAD segment. */
- GElf_Phdr notes_phdr;
- int ndx = dwfl_report_core_segments (dwfl, elf, phnum, &notes_phdr);
- if (unlikely (ndx <= 0))
- return ndx;
-
- /* Next, we should follow the chain from DT_DEBUG. */
-
- const void *auxv = NULL;
- const void *note_file = NULL;
- size_t auxv_size = 0;
- size_t note_file_size = 0;
- if (likely (notes_phdr.p_type == PT_NOTE))
- {
- /* PT_NOTE -> NT_AUXV -> AT_PHDR -> PT_DYNAMIC -> DT_DEBUG */
-
- Elf_Data *notes = elf_getdata_rawchunk (elf,
- notes_phdr.p_offset,
- notes_phdr.p_filesz,
- ELF_T_NHDR);
- if (likely (notes != NULL))
- {
- size_t pos = 0;
- GElf_Nhdr nhdr;
- size_t name_pos;
- size_t desc_pos;
- while ((pos = gelf_getnote (notes, pos, &nhdr,
- &name_pos, &desc_pos)) > 0)
- if (nhdr.n_namesz == sizeof "CORE"
- && !memcmp (notes->d_buf + name_pos, "CORE", sizeof "CORE"))
- {
- if (nhdr.n_type == NT_AUXV)
- {
- auxv = notes->d_buf + desc_pos;
- auxv_size = nhdr.n_descsz;
- }
- if (nhdr.n_type == NT_FILE)
- {
- note_file = notes->d_buf + desc_pos;
- note_file_size = nhdr.n_descsz;
- }
- }
- }
- }
-
- /* Now we have NT_AUXV contents. From here on this processing could be
- used for a live process with auxv read from /proc. */
-
- struct r_debug_info r_debug_info;
- memset (&r_debug_info, 0, sizeof r_debug_info);
- int retval = dwfl_link_map_report (dwfl, auxv, auxv_size,
- dwfl_elf_phdr_memory_callback, elf,
- &r_debug_info);
- int listed = retval > 0 ? retval : 0;
-
- /* Now sniff segment contents for modules hinted by information gathered
- from DT_DEBUG. */
-
- ndx = 0;
- do
- {
- int seg = dwfl_segment_report_module (dwfl, ndx, NULL,
- &dwfl_elf_phdr_memory_callback, elf,
- core_file_read_eagerly, elf,
- note_file, note_file_size,
- &r_debug_info);
- if (unlikely (seg < 0))
- {
- clear_r_debug_info (&r_debug_info);
- return seg;
- }
- if (seg > ndx)
- {
- ndx = seg;
- ++listed;
- }
- else
- ++ndx;
- }
- while (ndx < (int) phnum);
-
- /* Now report the modules from dwfl_link_map_report which were not filtered
- out by dwfl_segment_report_module. */
-
- Dwfl_Module **lastmodp = &dwfl->modulelist;
- while (*lastmodp != NULL)
- lastmodp = &(*lastmodp)->next;
- for (struct r_debug_info_module *module = r_debug_info.module;
- module != NULL; module = module->next)
- {
- if (module->elf == NULL)
- continue;
- GElf_Addr file_dynamic_vaddr;
- if (! __libdwfl_dynamic_vaddr_get (module->elf, &file_dynamic_vaddr))
- continue;
- Dwfl_Module *mod;
- mod = __libdwfl_report_elf (dwfl, basename (module->name), module->name,
- module->fd, module->elf,
- module->l_ld - file_dynamic_vaddr,
- true, true);
- if (mod == NULL)
- continue;
- ++listed;
- module->elf = NULL;
- module->fd = -1;
- /* Move this module to the end of the list, so that we end
- up with a list in the same order as the link_map chain. */
- if (mod->next != NULL)
- {
- if (*lastmodp != mod)
- {
- lastmodp = &dwfl->modulelist;
- while (*lastmodp != mod)
- lastmodp = &(*lastmodp)->next;
- }
- *lastmodp = mod->next;
- mod->next = NULL;
- while (*lastmodp != NULL)
- lastmodp = &(*lastmodp)->next;
- *lastmodp = mod;
- }
- lastmodp = &mod->next;
- }
-
- clear_r_debug_info (&r_debug_info);
-
- /* We return the number of modules we found if we found any.
- If we found none, we return -1 instead of 0 if there was an
- error rather than just nothing found. */
- return listed > 0 ? listed : retval;
-}
-INTDEF (dwfl_core_file_report)
-NEW_VERSION (dwfl_core_file_report, ELFUTILS_0.158)
-
-#ifdef SHARED
-int _compat_without_executable_dwfl_core_file_report (Dwfl *dwfl, Elf *elf);
-COMPAT_VERSION_NEWPROTO (dwfl_core_file_report, ELFUTILS_0.146,
- without_executable)
-
-int
-_compat_without_executable_dwfl_core_file_report (Dwfl *dwfl, Elf *elf)
-{
- return dwfl_core_file_report (dwfl, elf, NULL);
-}
-#endif
diff --git a/src/libdwfl/cu.c b/src/libdwfl/cu.c
deleted file mode 100644
index 5ce531bd..00000000
--- a/src/libdwfl/cu.c
+++ /dev/null
@@ -1,312 +0,0 @@
-/* Keeping track of DWARF compilation units in libdwfl.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "../libdw/libdwP.h"
-#include "../libdw/memory-access.h"
-#include <search.h>
-
-
-static inline Dwarf_Arange *
-dwar (Dwfl_Module *mod, unsigned int idx)
-{
- return &mod->dw->aranges->info[mod->aranges[idx].arange];
-}
-
-
-static Dwfl_Error
-addrarange (Dwfl_Module *mod, Dwarf_Addr addr, struct dwfl_arange **arange)
-{
- if (mod->aranges == NULL)
- {
- struct dwfl_arange *aranges = NULL;
- Dwarf_Aranges *dwaranges = NULL;
- size_t naranges;
- if (INTUSE(dwarf_getaranges) (mod->dw, &dwaranges, &naranges) != 0)
- return DWFL_E_LIBDW;
-
- /* If the module has no aranges (when no code is included) we
- allocate nothing. */
- if (naranges != 0)
- {
- aranges = malloc (naranges * sizeof *aranges);
- if (unlikely (aranges == NULL))
- return DWFL_E_NOMEM;
-
- /* libdw has sorted its list by address, which is how we want it.
- But the sorted list is full of not-quite-contiguous runs pointing
- to the same CU. We don't care about the little gaps inside the
- module, we'll consider them part of the surrounding CU anyway.
- Collect our own array with just one record for each run of ranges
- pointing to one CU. */
-
- naranges = 0;
- Dwarf_Off lastcu = 0;
- for (size_t i = 0; i < dwaranges->naranges; ++i)
- if (i == 0 || dwaranges->info[i].offset != lastcu)
- {
- aranges[naranges].arange = i;
- aranges[naranges].cu = NULL;
- ++naranges;
- lastcu = dwaranges->info[i].offset;
- }
- }
-
- /* Store the final array, which is probably much smaller than before. */
- mod->naranges = naranges;
- mod->aranges = (realloc (aranges, naranges * sizeof aranges[0])
- ?: aranges);
- mod->lazycu += naranges;
- }
-
- /* The address must be inside the module to begin with. */
- addr = dwfl_deadjust_dwarf_addr (mod, addr);
-
- /* The ranges are sorted by address, so we can use binary search. */
- size_t l = 0, u = mod->naranges;
- while (l < u)
- {
- size_t idx = (l + u) / 2;
- Dwarf_Addr start = dwar (mod, idx)->addr;
- if (addr < start)
- {
- u = idx;
- continue;
- }
- else if (addr > start)
- {
- if (idx + 1 < mod->naranges)
- {
- if (addr >= dwar (mod, idx + 1)->addr)
- {
- l = idx + 1;
- continue;
- }
- }
- else
- {
- /* It might be in the last range. */
- const Dwarf_Arange *last
- = &mod->dw->aranges->info[mod->dw->aranges->naranges - 1];
- if (addr > last->addr + last->length)
- break;
- }
- }
-
- *arange = &mod->aranges[idx];
- return DWFL_E_NOERROR;
- }
-
- return DWFL_E_ADDR_OUTOFRANGE;
-}
-
-
-static void
-nofree (void *arg)
-{
- struct dwfl_cu *cu = arg;
- if (cu == (void *) -1l)
- return;
-
- assert (cu->mod->lazycu == 0);
-}
-
-/* One reason fewer to keep the lazy lookup table for CUs. */
-static inline void
-less_lazy (Dwfl_Module *mod)
-{
- if (--mod->lazycu > 0)
- return;
-
- /* We know about all the CUs now, we don't need this table. */
- tdestroy (mod->lazy_cu_root, nofree);
- mod->lazy_cu_root = NULL;
-}
-
-static inline Dwarf_Off
-cudie_offset (const struct dwfl_cu *cu)
-{
- /* These are real CUs, so there never is a type_sig8. Note
- initialization of dwkey.start and offset_size in intern_cu ()
- to see why this calculates the same value for both key and
- die.cu search items. */
- return DIE_OFFSET_FROM_CU_OFFSET (cu->die.cu->start, cu->die.cu->offset_size,
- 0);
-}
-
-static int
-compare_cukey (const void *a, const void *b)
-{
- Dwarf_Off a_off = cudie_offset (a);
- Dwarf_Off b_off = cudie_offset (b);
- return (a_off < b_off) ? -1 : ((a_off > b_off) ? 1 : 0);
-}
-
-/* Intern the CU if necessary. */
-static Dwfl_Error
-intern_cu (Dwfl_Module *mod, Dwarf_Off cuoff, struct dwfl_cu **result)
-{
- struct Dwarf_CU dwkey;
- struct dwfl_cu key;
- key.die.cu = &dwkey;
- dwkey.offset_size = 0;
- dwkey.start = cuoff - (3 * 0 - 4 + 3);
- struct dwfl_cu **found = tsearch (&key, &mod->lazy_cu_root, &compare_cukey);
- if (unlikely (found == NULL))
- return DWFL_E_NOMEM;
-
- if (*found == &key || *found == NULL)
- {
- if (unlikely (cuoff + 4 >= mod->dw->sectiondata[IDX_debug_info]->d_size))
- {
- /* This is the EOF marker. Now we have interned all the CUs.
- One increment in MOD->lazycu counts not having hit EOF yet. */
- *found = (void *) -1l;
- less_lazy (mod);
- }
- else
- {
- /* This is a new entry, meaning we haven't looked at this CU. */
-
- *found = NULL;
-
- struct dwfl_cu *cu = malloc (sizeof *cu);
- if (unlikely (cu == NULL))
- return DWFL_E_NOMEM;
-
- cu->mod = mod;
- cu->next = NULL;
- cu->lines = NULL;
-
- /* XXX use non-searching lookup */
- Dwarf_Die *die = INTUSE(dwarf_offdie) (mod->dw, cuoff, &cu->die);
- if (die == NULL)
- {
- free (cu);
- return DWFL_E_LIBDW;
- }
- assert (die == &cu->die);
-
- struct dwfl_cu **newvec = realloc (mod->cu, ((mod->ncu + 1)
- * sizeof (mod->cu[0])));
- if (newvec == NULL)
- {
- free (cu);
- return DWFL_E_NOMEM;
- }
- mod->cu = newvec;
-
- mod->cu[mod->ncu++] = cu;
- if (cu->die.cu->start == 0)
- mod->first_cu = cu;
-
- *found = cu;
- }
- }
-
- *result = *found;
- return DWFL_E_NOERROR;
-}
-
-
-/* Traverse all the CUs in the module. */
-
-Dwfl_Error
-internal_function
-__libdwfl_nextcu (Dwfl_Module *mod, struct dwfl_cu *lastcu,
- struct dwfl_cu **cu)
-{
- Dwarf_Off cuoff;
- struct dwfl_cu **nextp;
-
- if (lastcu == NULL)
- {
- /* Start the traversal. */
- cuoff = 0;
- nextp = &mod->first_cu;
- }
- else
- {
- /* Continue following LASTCU. */
- cuoff = lastcu->die.cu->end;
- nextp = &lastcu->next;
- }
-
- if (*nextp == NULL)
- {
- size_t cuhdrsz;
- Dwarf_Off nextoff;
- int end = INTUSE(dwarf_nextcu) (mod->dw, cuoff, &nextoff, &cuhdrsz,
- NULL, NULL, NULL);
- if (end < 0)
- return DWFL_E_LIBDW;
- if (end > 0)
- {
- *cu = NULL;
- return DWFL_E_NOERROR;
- }
-
- Dwfl_Error result = intern_cu (mod, cuoff + cuhdrsz, nextp);
- if (result != DWFL_E_NOERROR)
- return result;
-
- if ((*nextp)->next == NULL && nextoff == (Dwarf_Off) -1l)
- (*nextp)->next = (void *) -1l;
- }
-
- *cu = *nextp == (void *) -1l ? NULL : *nextp;
- return DWFL_E_NOERROR;
-}
-
-
-/* Intern the CU arange points to, if necessary. */
-
-static Dwfl_Error
-arangecu (Dwfl_Module *mod, struct dwfl_arange *arange, struct dwfl_cu **cu)
-{
- if (arange->cu == NULL)
- {
- const Dwarf_Arange *dwarange = &mod->dw->aranges->info[arange->arange];
- Dwfl_Error result = intern_cu (mod, dwarange->offset, &arange->cu);
- if (result != DWFL_E_NOERROR)
- return result;
- assert (arange->cu != NULL && arange->cu != (void *) -1l);
- less_lazy (mod); /* Each arange with null ->cu counts once. */
- }
-
- *cu = arange->cu;
- return DWFL_E_NOERROR;
-}
-
-Dwfl_Error
-internal_function
-__libdwfl_addrcu (Dwfl_Module *mod, Dwarf_Addr addr, struct dwfl_cu **cu)
-{
- struct dwfl_arange *arange;
- return addrarange (mod, addr, &arange) ?: arangecu (mod, arange, cu);
-}
diff --git a/src/libdwfl/derelocate.c b/src/libdwfl/derelocate.c
deleted file mode 100644
index da679089..00000000
--- a/src/libdwfl/derelocate.c
+++ /dev/null
@@ -1,401 +0,0 @@
-/* Recover relocatibility for addresses computed from debug information.
- Copyright (C) 2005-2010, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-struct dwfl_relocation
-{
- size_t count;
- struct
- {
- Elf_Scn *scn;
- Elf_Scn *relocs;
- const char *name;
- GElf_Addr start, end;
- } refs[0];
-};
-
-
-struct secref
-{
- struct secref *next;
- Elf_Scn *scn;
- Elf_Scn *relocs;
- const char *name;
- GElf_Addr start, end;
-};
-
-static int
-compare_secrefs (const void *a, const void *b)
-{
- struct secref *const *p1 = a;
- struct secref *const *p2 = b;
-
- /* No signed difference calculation is correct here, since the
- terms are unsigned and could be more than INT64_MAX apart. */
- if ((*p1)->start < (*p2)->start)
- return -1;
- if ((*p1)->start > (*p2)->start)
- return 1;
-
- return 0;
-}
-
-static int
-cache_sections (Dwfl_Module *mod)
-{
- if (likely (mod->reloc_info != NULL))
- return mod->reloc_info->count;
-
- struct secref *refs = NULL;
- size_t nrefs = 0;
-
- size_t shstrndx;
- if (unlikely (elf_getshdrstrndx (mod->main.elf, &shstrndx) < 0))
- {
- elf_error:
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return -1;
- }
-
- bool check_reloc_sections = false;
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- goto elf_error;
-
- if ((shdr->sh_flags & SHF_ALLOC) && shdr->sh_addr == 0
- && mod->e_type == ET_REL)
- {
- /* This section might not yet have been looked at. */
- if (__libdwfl_relocate_value (mod, mod->main.elf, &shstrndx,
- elf_ndxscn (scn),
- &shdr->sh_addr) != DWFL_E_NOERROR)
- continue;
- shdr = gelf_getshdr (scn, &shdr_mem);
- if (unlikely (shdr == NULL))
- goto elf_error;
- }
-
- if (shdr->sh_flags & SHF_ALLOC)
- {
- const char *name = elf_strptr (mod->main.elf, shstrndx,
- shdr->sh_name);
- if (unlikely (name == NULL))
- goto elf_error;
-
- struct secref *newref = alloca (sizeof *newref);
- newref->scn = scn;
- newref->relocs = NULL;
- newref->name = name;
- newref->start = dwfl_adjusted_address (mod, shdr->sh_addr);
- newref->end = newref->start + shdr->sh_size;
- newref->next = refs;
- refs = newref;
- ++nrefs;
- }
-
- if (mod->e_type == ET_REL
- && shdr->sh_size != 0
- && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)
- && mod->dwfl->callbacks->section_address != NULL)
- {
- if (shdr->sh_info < elf_ndxscn (scn))
- {
- /* We've already looked at the section these relocs apply to. */
- Elf_Scn *tscn = elf_getscn (mod->main.elf, shdr->sh_info);
- if (likely (tscn != NULL))
- for (struct secref *sec = refs; sec != NULL; sec = sec->next)
- if (sec->scn == tscn)
- {
- sec->relocs = scn;
- break;
- }
- }
- else
- /* We'll have to do a second pass. */
- check_reloc_sections = true;
- }
- }
-
- mod->reloc_info = malloc (offsetof (struct dwfl_relocation, refs[nrefs]));
- if (mod->reloc_info == NULL)
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
-
- struct secref **sortrefs = alloca (nrefs * sizeof sortrefs[0]);
- for (size_t i = nrefs; i-- > 0; refs = refs->next)
- sortrefs[i] = refs;
- assert (refs == NULL);
-
- qsort (sortrefs, nrefs, sizeof sortrefs[0], &compare_secrefs);
-
- mod->reloc_info->count = nrefs;
- for (size_t i = 0; i < nrefs; ++i)
- {
- mod->reloc_info->refs[i].name = sortrefs[i]->name;
- mod->reloc_info->refs[i].scn = sortrefs[i]->scn;
- mod->reloc_info->refs[i].relocs = sortrefs[i]->relocs;
- mod->reloc_info->refs[i].start = sortrefs[i]->start;
- mod->reloc_info->refs[i].end = sortrefs[i]->end;
- }
-
- if (unlikely (check_reloc_sections))
- {
- /* There was a reloc section that preceded its target section.
- So we have to scan again now that we have cached all the
- possible target sections we care about. */
-
- scn = NULL;
- while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- goto elf_error;
-
- if (shdr->sh_size != 0
- && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA))
- {
- Elf_Scn *tscn = elf_getscn (mod->main.elf, shdr->sh_info);
- if (likely (tscn != NULL))
- for (size_t i = 0; i < nrefs; ++i)
- if (mod->reloc_info->refs[i].scn == tscn)
- {
- mod->reloc_info->refs[i].relocs = scn;
- break;
- }
- }
- }
- }
-
- return nrefs;
-}
-
-
-int
-dwfl_module_relocations (Dwfl_Module *mod)
-{
- if (mod == NULL)
- return -1;
-
- switch (mod->e_type)
- {
- case ET_REL:
- return cache_sections (mod);
-
- case ET_DYN:
- return 1;
-
- case ET_EXEC:
- assert (mod->main.vaddr == mod->low_addr);
- break;
- }
-
- return 0;
-}
-
-const char *
-dwfl_module_relocation_info (Dwfl_Module *mod, unsigned int idx,
- Elf32_Word *shndxp)
-{
- if (mod == NULL)
- return NULL;
-
- switch (mod->e_type)
- {
- case ET_REL:
- break;
-
- case ET_DYN:
- if (idx != 0)
- return NULL;
- if (shndxp)
- *shndxp = SHN_ABS;
- return "";
-
- default:
- return NULL;
- }
-
- if (cache_sections (mod) < 0)
- return NULL;
-
- struct dwfl_relocation *sections = mod->reloc_info;
-
- if (idx >= sections->count)
- return NULL;
-
- if (shndxp)
- *shndxp = elf_ndxscn (sections->refs[idx].scn);
-
- return sections->refs[idx].name;
-}
-
-/* Check that MOD is valid and make sure its relocation has been done. */
-static bool
-check_module (Dwfl_Module *mod)
-{
- if (INTUSE(dwfl_module_getsymtab) (mod) < 0)
- {
- Dwfl_Error error = dwfl_errno ();
- if (error != DWFL_E_NO_SYMTAB)
- {
- __libdwfl_seterrno (error);
- return true;
- }
- }
-
- if (mod->dw == NULL)
- {
- Dwarf_Addr bias;
- if (INTUSE(dwfl_module_getdwarf) (mod, &bias) == NULL)
- {
- Dwfl_Error error = dwfl_errno ();
- if (error != DWFL_E_NO_DWARF)
- {
- __libdwfl_seterrno (error);
- return true;
- }
- }
- }
-
- return false;
-}
-
-/* Find the index in MOD->reloc_info.refs containing *ADDR. */
-static int
-find_section (Dwfl_Module *mod, Dwarf_Addr *addr)
-{
- if (cache_sections (mod) < 0)
- return -1;
-
- struct dwfl_relocation *sections = mod->reloc_info;
-
- /* The sections are sorted by address, so we can use binary search. */
- size_t l = 0, u = sections->count;
- while (l < u)
- {
- size_t idx = (l + u) / 2;
- if (*addr < sections->refs[idx].start)
- u = idx;
- else if (*addr > sections->refs[idx].end)
- l = idx + 1;
- else
- {
- /* Consider the limit of a section to be inside it, unless it's
- inside the next one. A section limit address can appear in
- line records. */
- if (*addr == sections->refs[idx].end
- && idx + 1 < sections->count
- && *addr == sections->refs[idx + 1].start)
- ++idx;
-
- *addr -= sections->refs[idx].start;
- return idx;
- }
- }
-
- __libdwfl_seterrno (DWFL_E (LIBDW, DWARF_E_NO_MATCH));
- return -1;
-}
-
-size_t
-internal_function
-__libdwfl_find_section_ndx (Dwfl_Module *mod, Dwarf_Addr *addr)
-{
- int idx = find_section (mod, addr);
- if (unlikely (idx == -1))
- return SHN_UNDEF;
-
- return elf_ndxscn (mod->reloc_info->refs[idx].scn);
-}
-
-int
-dwfl_module_relocate_address (Dwfl_Module *mod, Dwarf_Addr *addr)
-{
- if (unlikely (check_module (mod)))
- return -1;
-
- switch (mod->e_type)
- {
- case ET_REL:
- return find_section (mod, addr);
-
- case ET_DYN:
- /* All relative to first and only relocation base: module start. */
- *addr -= mod->low_addr;
- break;
-
- default:
- /* Already absolute, dwfl_module_relocations returned zero. We
- shouldn't really have been called, but it's a harmless no-op. */
- break;
- }
-
- return 0;
-}
-INTDEF (dwfl_module_relocate_address)
-
-Elf_Scn *
-dwfl_module_address_section (Dwfl_Module *mod, Dwarf_Addr *address,
- Dwarf_Addr *bias)
-{
- if (check_module (mod))
- return NULL;
-
- int idx = find_section (mod, address);
- if (idx < 0)
- return NULL;
-
- if (mod->reloc_info->refs[idx].relocs != NULL)
- {
- assert (mod->e_type == ET_REL);
-
- Elf_Scn *tscn = mod->reloc_info->refs[idx].scn;
- Elf_Scn *relocscn = mod->reloc_info->refs[idx].relocs;
- Dwfl_Error result = __libdwfl_relocate_section (mod, mod->main.elf,
- relocscn, tscn, true);
- if (likely (result == DWFL_E_NOERROR))
- mod->reloc_info->refs[idx].relocs = NULL;
- else
- {
- __libdwfl_seterrno (result);
- return NULL;
- }
- }
-
- *bias = dwfl_adjusted_address (mod, 0);
- return mod->reloc_info->refs[idx].scn;
-}
-INTDEF (dwfl_module_address_section)
diff --git a/src/libdwfl/dwfl_addrdie.c b/src/libdwfl/dwfl_addrdie.c
deleted file mode 100644
index 1e9b3ab6..00000000
--- a/src/libdwfl/dwfl_addrdie.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Fetch CU DIE from address.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwarf_Die *
-dwfl_addrdie (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Addr *bias)
-{
- return INTUSE(dwfl_module_addrdie) (INTUSE(dwfl_addrmodule) (dwfl, addr),
- addr, bias);
-}
diff --git a/src/libdwfl/dwfl_addrdwarf.c b/src/libdwfl/dwfl_addrdwarf.c
deleted file mode 100644
index ba412eca..00000000
--- a/src/libdwfl/dwfl_addrdwarf.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Fetch libdw handle from address.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwarf *
-dwfl_addrdwarf (Dwfl *dwfl, Dwarf_Addr address, Dwarf_Addr *bias)
-{
- return INTUSE(dwfl_module_getdwarf) (INTUSE(dwfl_addrmodule) (dwfl, address),
- bias);
-}
-INTDEF (dwfl_addrdwarf)
diff --git a/src/libdwfl/dwfl_addrmodule.c b/src/libdwfl/dwfl_addrmodule.c
deleted file mode 100644
index 9234eb71..00000000
--- a/src/libdwfl/dwfl_addrmodule.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Find module containing address.
- Copyright (C) 2005, 2006, 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwfl_Module *
-dwfl_addrmodule (Dwfl *dwfl, Dwarf_Addr address)
-{
- Dwfl_Module *mod;
- (void) INTUSE(dwfl_addrsegment) (dwfl, address, &mod);
- return mod;
-}
-INTDEF (dwfl_addrmodule)
diff --git a/src/libdwfl/dwfl_begin.c b/src/libdwfl/dwfl_begin.c
deleted file mode 100644
index 44c16a92..00000000
--- a/src/libdwfl/dwfl_begin.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Set up a session using libdwfl.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwfl *
-dwfl_begin (const Dwfl_Callbacks *callbacks)
-{
- if (elf_version (EV_CURRENT) == EV_NONE)
- {
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return NULL;
- }
-
- Dwfl *dwfl = calloc (1, sizeof *dwfl);
- if (dwfl == NULL)
- __libdwfl_seterrno (DWFL_E_NOMEM);
- else
- {
- dwfl->callbacks = callbacks;
- dwfl->offline_next_address = OFFLINE_REDZONE;
- }
-
- return dwfl;
-}
-INTDEF (dwfl_begin)
diff --git a/src/libdwfl/dwfl_build_id_find_debuginfo.c b/src/libdwfl/dwfl_build_id_find_debuginfo.c
deleted file mode 100644
index f1c64bcd..00000000
--- a/src/libdwfl/dwfl_build_id_find_debuginfo.c
+++ /dev/null
@@ -1,128 +0,0 @@
-/* Find the debuginfo file for a module from its build ID.
- Copyright (C) 2007, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <unistd.h>
-
-
-int
-dwfl_build_id_find_debuginfo (Dwfl_Module *mod,
- void **userdata __attribute__ ((unused)),
- const char *modname __attribute__ ((unused)),
- Dwarf_Addr base __attribute__ ((unused)),
- const char *file __attribute__ ((unused)),
- const char *debuglink __attribute__ ((unused)),
- GElf_Word crc __attribute__ ((unused)),
- char **debuginfo_file_name)
-{
- int fd = -1;
-
- /* Are we looking for a separate debug file for the main file or for
- an alternate (dwz multi) debug file? Alternatively we could check
- whether the dwbias == -1. */
- if (mod->dw != NULL)
- {
- const void *build_id;
- const char *altname;
- ssize_t build_id_len = INTUSE(dwelf_dwarf_gnu_debugaltlink) (mod->dw,
- &altname,
- &build_id);
- if (build_id_len > 0)
- fd = __libdwfl_open_by_build_id (mod, true, debuginfo_file_name,
- build_id_len, build_id);
-
- if (fd >= 0)
- {
- /* We need to open an Elf handle on the file so we can check its
- build ID note for validation. Backdoor the handle into the
- module data structure since we had to open it early anyway. */
- Dwfl_Error error = __libdw_open_file (&fd, &mod->alt_elf,
- true, false);
- if (error != DWFL_E_NOERROR)
- __libdwfl_seterrno (error);
- else
- {
- const void *alt_build_id;
- ssize_t alt_len = INTUSE(dwelf_elf_gnu_build_id) (mod->alt_elf,
- &alt_build_id);
- if (alt_len > 0 && alt_len == build_id_len
- && memcmp (build_id, alt_build_id, alt_len) == 0)
- return fd;
- else
- {
- /* A mismatch! */
- elf_end (mod->alt_elf);
- mod->alt_elf = NULL;
- close (fd);
- fd = -1;
- }
- free (*debuginfo_file_name);
- *debuginfo_file_name = NULL;
- errno = 0;
- }
- }
- return fd;
- }
-
- /* We don't even have the Dwarf yet and it isn't in the main file.
- Try to find separate debug file now using the module build id. */
- const unsigned char *bits;
- GElf_Addr vaddr;
-
- if (INTUSE(dwfl_module_build_id) (mod, &bits, &vaddr) > 0)
- fd = __libdwfl_open_mod_by_build_id (mod, true, debuginfo_file_name);
- if (fd >= 0)
- {
- /* We need to open an Elf handle on the file so we can check its
- build ID note for validation. Backdoor the handle into the
- module data structure since we had to open it early anyway. */
- Dwfl_Error error = __libdw_open_file (&fd, &mod->debug.elf, true, false);
- if (error != DWFL_E_NOERROR)
- __libdwfl_seterrno (error);
- else if (likely (__libdwfl_find_build_id (mod, false,
- mod->debug.elf) == 2))
- {
- /* Also backdoor the gratuitous flag. */
- mod->debug.valid = true;
- return fd;
- }
- else
- {
- /* A mismatch! */
- elf_end (mod->debug.elf);
- mod->debug.elf = NULL;
- close (fd);
- fd = -1;
- }
- free (*debuginfo_file_name);
- *debuginfo_file_name = NULL;
- errno = 0;
- }
- return fd;
-}
-INTDEF (dwfl_build_id_find_debuginfo)
diff --git a/src/libdwfl/dwfl_build_id_find_elf.c b/src/libdwfl/dwfl_build_id_find_elf.c
deleted file mode 100644
index 062aad1f..00000000
--- a/src/libdwfl/dwfl_build_id_find_elf.c
+++ /dev/null
@@ -1,174 +0,0 @@
-/* Find an ELF file for a module from its build ID.
- Copyright (C) 2007-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <inttypes.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-
-int
-internal_function
-__libdwfl_open_by_build_id (Dwfl_Module *mod, bool debug, char **file_name,
- const size_t id_len, const uint8_t *id)
-{
- /* Search debuginfo_path directories' .build-id/ subdirectories. */
-
- char id_name[sizeof "/.build-id/" + 1 + id_len * 2 + sizeof ".debug" - 1];
- strcpy (id_name, "/.build-id/");
- int n = snprintf (&id_name[sizeof "/.build-id/" - 1],
- 4, "%02" PRIx8 "/", (uint8_t) id[0]);
- assert (n == 3);
- for (size_t i = 1; i < id_len; ++i)
- {
- n = snprintf (&id_name[sizeof "/.build-id/" - 1 + 3 + (i - 1) * 2],
- 3, "%02" PRIx8, (uint8_t) id[i]);
- assert (n == 2);
- }
- if (debug)
- strcpy (&id_name[sizeof "/.build-id/" - 1 + 3 + (id_len - 1) * 2],
- ".debug");
-
- const Dwfl_Callbacks *const cb = mod->dwfl->callbacks;
- char *path = strdupa ((cb->debuginfo_path ? *cb->debuginfo_path : NULL)
- ?: DEFAULT_DEBUGINFO_PATH);
-
- int fd = -1;
- char *dir;
- while (fd < 0 && (dir = strsep (&path, ":")) != NULL)
- {
- if (dir[0] == '+' || dir[0] == '-')
- ++dir;
-
- /* Only absolute directory names are useful to us. */
- if (dir[0] != '/')
- continue;
-
- size_t dirlen = strlen (dir);
- char *name = malloc (dirlen + sizeof id_name);
- if (unlikely (name == NULL))
- break;
- memcpy (mempcpy (name, dir, dirlen), id_name, sizeof id_name);
-
- fd = TEMP_FAILURE_RETRY (open64 (name, O_RDONLY));
- if (fd >= 0)
- {
- if (*file_name != NULL)
- free (*file_name);
- *file_name = canonicalize_file_name (name);
- if (*file_name == NULL)
- {
- *file_name = name;
- name = NULL;
- }
- }
- free (name);
- }
-
- /* If we simply found nothing, clear errno. If we had some other error
- with the file, report that. Possibly this should treat other errors
- like ENOENT too. But ignoring all errors could mask some that should
- be reported. */
- if (fd < 0 && errno == ENOENT)
- errno = 0;
-
- return fd;
-}
-
-int
-internal_function
-__libdwfl_open_mod_by_build_id (Dwfl_Module *mod, bool debug, char **file_name)
-{
- /* If *FILE_NAME was primed into the module, leave it there
- as the fallback when we have nothing to offer. */
- errno = 0;
- if (mod->build_id_len <= 0)
- return -1;
-
- const size_t id_len = mod->build_id_len;
- const uint8_t *id = mod->build_id_bits;
-
- return __libdwfl_open_by_build_id (mod, debug, file_name, id_len, id);
-}
-
-int
-dwfl_build_id_find_elf (Dwfl_Module *mod,
- void **userdata __attribute__ ((unused)),
- const char *modname __attribute__ ((unused)),
- Dwarf_Addr base __attribute__ ((unused)),
- char **file_name, Elf **elfp)
-{
- *elfp = NULL;
- if (mod->is_executable && mod->dwfl->executable_for_core != NULL)
- {
- /* When dwfl_core_file_report was called with a non-NULL executable file
- name this callback will replace the Dwfl_Module main.name with the
- recorded executable file when MOD was identified as main executable
- (which then triggers opening and reporting of the executable). */
- int fd = open64 (mod->dwfl->executable_for_core, O_RDONLY);
- if (fd >= 0)
- {
- *file_name = strdup (mod->dwfl->executable_for_core);
- if (*file_name != NULL)
- return fd;
- else
- close (fd);
- }
- }
- int fd = __libdwfl_open_mod_by_build_id (mod, false, file_name);
- if (fd >= 0)
- {
- Dwfl_Error error = __libdw_open_file (&fd, elfp, true, false);
- if (error != DWFL_E_NOERROR)
- __libdwfl_seterrno (error);
- else if (__libdwfl_find_build_id (mod, false, *elfp) == 2)
- {
- /* This is a backdoor signal to short-circuit the ID refresh. */
- mod->main.valid = true;
- return fd;
- }
- else
- {
- /* This file does not contain the ID it should! */
- elf_end (*elfp);
- *elfp = NULL;
- close (fd);
- fd = -1;
- }
- free (*file_name);
- *file_name = NULL;
- }
- else if (errno == 0 && mod->build_id_len > 0)
- /* Setting this with no file yet loaded is a marker that
- the build ID is authoritative even if we also know a
- putative *FILE_NAME. */
- mod->main.valid = true;
-
- return fd;
-}
-INTDEF (dwfl_build_id_find_elf)
diff --git a/src/libdwfl/dwfl_cumodule.c b/src/libdwfl/dwfl_cumodule.c
deleted file mode 100644
index c5cf004d..00000000
--- a/src/libdwfl/dwfl_cumodule.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Find the module for a CU DIE previously returned by libdwfl.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwfl_Module *
-dwfl_cumodule (Dwarf_Die *cudie)
-{
- struct dwfl_cu *cu = (struct dwfl_cu *) cudie;
- return cu->mod;
-}
diff --git a/src/libdwfl/dwfl_dwarf_line.c b/src/libdwfl/dwfl_dwarf_line.c
deleted file mode 100644
index e96f859a..00000000
--- a/src/libdwfl/dwfl_dwarf_line.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Get information from a source line record returned by libdwfl.
- Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "../libdw/libdwP.h"
-
-Dwarf_Line *
-dwfl_dwarf_line (Dwfl_Line *line, Dwarf_Addr *bias)
-{
- if (line == NULL)
- return NULL;
-
- struct dwfl_cu *cu = dwfl_linecu (line);
- const Dwarf_Line *info = &cu->die.cu->lines->info[line->idx];
-
- *bias = dwfl_adjusted_dwarf_addr (cu->mod, 0);
- return (Dwarf_Line *) info;
-}
diff --git a/src/libdwfl/dwfl_end.c b/src/libdwfl/dwfl_end.c
deleted file mode 100644
index 33cae48c..00000000
--- a/src/libdwfl/dwfl_end.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Finish a session using libdwfl.
- Copyright (C) 2005, 2008, 2012-2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-void
-dwfl_end (Dwfl *dwfl)
-{
- if (dwfl == NULL)
- return;
-
- if (dwfl->process)
- __libdwfl_process_free (dwfl->process);
-
- free (dwfl->lookup_addr);
- free (dwfl->lookup_module);
- free (dwfl->lookup_segndx);
-
- Dwfl_Module *next = dwfl->modulelist;
- while (next != NULL)
- {
- Dwfl_Module *dead = next;
- next = dead->next;
- __libdwfl_module_free (dead);
- }
-
- free (dwfl->executable_for_core);
- free (dwfl);
-}
diff --git a/src/libdwfl/dwfl_error.c b/src/libdwfl/dwfl_error.c
deleted file mode 100644
index d9ca9e7e..00000000
--- a/src/libdwfl/dwfl_error.c
+++ /dev/null
@@ -1,159 +0,0 @@
-/* Error handling in libdwfl.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <libintl.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <errno.h>
-
-#include "libdwflP.h"
-
-
-/* The error number. */
-static __thread int global_error;
-
-
-int
-dwfl_errno (void)
-{
- int result = global_error;
- global_error = DWFL_E_NOERROR;
- return result;
-}
-INTDEF (dwfl_errno)
-
-
-static const struct msgtable
-{
-#define DWFL_ERROR(name, text) char msg_##name[sizeof text];
- DWFL_ERRORS
-#undef DWFL_ERROR
-} msgtable =
- {
-#define DWFL_ERROR(name, text) text,
- DWFL_ERRORS
-#undef DWFL_ERROR
- };
-#define msgstr (&msgtable.msg_NOERROR[0])
-
-static const uint_fast16_t msgidx[] =
-{
-#define DWFL_ERROR(name, text) \
- [DWFL_E_##name] = offsetof (struct msgtable, msg_##name),
- DWFL_ERRORS
-#undef DWFL_ERROR
-};
-#define nmsgidx (sizeof msgidx / sizeof msgidx[0])
-
-
-static inline int
-canonicalize (Dwfl_Error error)
-{
- unsigned int value;
-
- switch (error)
- {
- default:
- value = error;
- if ((value &~ 0xffff) != 0)
- break;
- assert (value < nmsgidx);
- break;
- case DWFL_E_ERRNO:
- value = DWFL_E (ERRNO, errno);
- break;
- case DWFL_E_LIBELF:
- value = DWFL_E (LIBELF, elf_errno ());
- break;
- case DWFL_E_LIBDW:
- value = DWFL_E (LIBDW, INTUSE(dwarf_errno) ());
- break;
-#if 0
- DWFL_E_LIBEBL:
- value = DWFL_E (LIBEBL, ebl_errno ());
- break;
-#endif
- }
-
- return value;
-}
-
-int
-internal_function
-__libdwfl_canon_error (Dwfl_Error error)
-{
- return canonicalize (error);
-}
-
-void
-internal_function
-__libdwfl_seterrno (Dwfl_Error error)
-{
- global_error = canonicalize (error);
-}
-
-
-const char *
-dwfl_errmsg (error)
- int error;
-{
- if (error == 0 || error == -1)
- {
- int last_error = global_error;
-
- if (error == 0 && last_error == 0)
- return NULL;
-
- error = last_error;
- global_error = DWFL_E_NOERROR;
- }
-
- switch (error &~ 0xffff)
- {
- case OTHER_ERROR (ERRNO):
- return strerror_r (error & 0xffff, "bad", 0);
- case OTHER_ERROR (LIBELF):
- return elf_errmsg (error & 0xffff);
- case OTHER_ERROR (LIBDW):
- return INTUSE(dwarf_errmsg) (error & 0xffff);
-#if 0
- case OTHER_ERROR (LIBEBL):
- return ebl_errmsg (error & 0xffff);
-#endif
- }
-
- return _(&msgstr[msgidx[(unsigned int) error < nmsgidx
- ? error : DWFL_E_UNKNOWN_ERROR]]);
-}
-INTDEF (dwfl_errmsg)
diff --git a/src/libdwfl/dwfl_frame.c b/src/libdwfl/dwfl_frame.c
deleted file mode 100644
index f6f86c0d..00000000
--- a/src/libdwfl/dwfl_frame.c
+++ /dev/null
@@ -1,474 +0,0 @@
-/* Get Dwarf Frame state for target PID or core file.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <sys/ptrace.h>
-#include <unistd.h>
-
-/* Set STATE->pc_set from STATE->regs according to the backend. Return true on
- success, false on error. */
-static bool
-state_fetch_pc (Dwfl_Frame *state)
-{
- switch (state->pc_state)
- {
- case DWFL_FRAME_STATE_PC_SET:
- return true;
- case DWFL_FRAME_STATE_PC_UNDEFINED:
- abort ();
- case DWFL_FRAME_STATE_ERROR:
- {
- Ebl *ebl = state->thread->process->ebl;
- Dwarf_CIE abi_info;
- if (ebl_abi_cfi (ebl, &abi_info) != 0)
- {
- __libdwfl_seterrno (DWFL_E_LIBEBL);
- return false;
- }
- unsigned ra = abi_info.return_address_register;
- /* dwarf_frame_state_reg_is_set is not applied here. */
- if (ra >= ebl_frame_nregs (ebl))
- {
- __libdwfl_seterrno (DWFL_E_LIBEBL_BAD);
- return false;
- }
- state->pc = state->regs[ra];
- state->pc_state = DWFL_FRAME_STATE_PC_SET;
- }
- return true;
- }
- abort ();
-}
-
-/* Do not call it on your own, to be used by thread_* functions only. */
-
-static void
-state_free (Dwfl_Frame *state)
-{
- Dwfl_Thread *thread = state->thread;
- assert (thread->unwound == state);
- thread->unwound = state->unwound;
- free (state);
-}
-
-static void
-thread_free_all_states (Dwfl_Thread *thread)
-{
- while (thread->unwound)
- state_free (thread->unwound);
-}
-
-static Dwfl_Frame *
-state_alloc (Dwfl_Thread *thread)
-{
- assert (thread->unwound == NULL);
- Ebl *ebl = thread->process->ebl;
- size_t nregs = ebl_frame_nregs (ebl);
- if (nregs == 0)
- return NULL;
- assert (nregs < sizeof (((Dwfl_Frame *) NULL)->regs_set) * 8);
- Dwfl_Frame *state = malloc (sizeof (*state) + sizeof (*state->regs) * nregs);
- if (state == NULL)
- return NULL;
- state->thread = thread;
- state->signal_frame = false;
- state->initial_frame = true;
- state->pc_state = DWFL_FRAME_STATE_ERROR;
- memset (state->regs_set, 0, sizeof (state->regs_set));
- thread->unwound = state;
- state->unwound = NULL;
- return state;
-}
-
-void
-internal_function
-__libdwfl_process_free (Dwfl_Process *process)
-{
- Dwfl *dwfl = process->dwfl;
- if (process->callbacks->detach != NULL)
- process->callbacks->detach (dwfl, process->callbacks_arg);
- assert (dwfl->process == process);
- dwfl->process = NULL;
- if (process->ebl_close)
- ebl_closebackend (process->ebl);
- free (process);
- dwfl->attacherr = DWFL_E_NOERROR;
-}
-
-/* Allocate new Dwfl_Process for DWFL. */
-static void
-process_alloc (Dwfl *dwfl)
-{
- Dwfl_Process *process = malloc (sizeof (*process));
- if (process == NULL)
- return;
- process->dwfl = dwfl;
- dwfl->process = process;
-}
-
-bool
-dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid,
- const Dwfl_Thread_Callbacks *thread_callbacks, void *arg)
-{
- if (dwfl->process != NULL)
- {
- __libdwfl_seterrno (DWFL_E_ATTACH_STATE_CONFLICT);
- return false;
- }
-
- /* Reset any previous error, we are just going to try again. */
- dwfl->attacherr = DWFL_E_NOERROR;
- if (thread_callbacks == NULL || thread_callbacks->next_thread == NULL
- || thread_callbacks->set_initial_registers == NULL)
- {
- dwfl->attacherr = DWFL_E_INVALID_ARGUMENT;
- fail:
- dwfl->attacherr = __libdwfl_canon_error (dwfl->attacherr);
- __libdwfl_seterrno (dwfl->attacherr);
- return false;
- }
-
- Ebl *ebl;
- bool ebl_close;
- if (elf != NULL)
- {
- ebl = ebl_openbackend (elf);
- ebl_close = true;
- }
- else
- {
- ebl = NULL;
- for (Dwfl_Module *mod = dwfl->modulelist; mod != NULL; mod = mod->next)
- {
- /* Reading of the vDSO or (deleted) modules may fail as
- /proc/PID/mem is unreadable without PTRACE_ATTACH and
- we may not be PTRACE_ATTACH-ed now. MOD would not be
- re-read later to unwind it when we are already
- PTRACE_ATTACH-ed to PID. This happens when this function
- is called from dwfl_linux_proc_attach with elf == NULL.
- __libdwfl_module_getebl will call __libdwfl_getelf which
- will call the find_elf callback. */
- if (strncmp (mod->name, "[vdso: ", 7) == 0
- || strcmp (strrchr (mod->name, ' ') ?: "",
- " (deleted)") == 0)
- continue;
- Dwfl_Error error = __libdwfl_module_getebl (mod);
- if (error != DWFL_E_NOERROR)
- continue;
- ebl = mod->ebl;
- break;
- }
- ebl_close = false;
- }
- if (ebl == NULL)
- {
- /* Not identified EBL from any of the modules. */
- dwfl->attacherr = DWFL_E_PROCESS_NO_ARCH;
- goto fail;
- }
- process_alloc (dwfl);
- Dwfl_Process *process = dwfl->process;
- if (process == NULL)
- {
- if (ebl_close)
- ebl_closebackend (ebl);
- dwfl->attacherr = DWFL_E_NOMEM;
- goto fail;
- }
- process->ebl = ebl;
- process->ebl_close = ebl_close;
- process->pid = pid;
- process->callbacks = thread_callbacks;
- process->callbacks_arg = arg;
- return true;
-}
-INTDEF(dwfl_attach_state)
-
-pid_t
-dwfl_pid (Dwfl *dwfl)
-{
- if (dwfl->attacherr != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (dwfl->attacherr);
- return -1;
- }
-
- if (dwfl->process == NULL)
- {
- __libdwfl_seterrno (DWFL_E_NO_ATTACH_STATE);
- return -1;
- }
- return dwfl->process->pid;
-}
-INTDEF(dwfl_pid)
-
-Dwfl *
-dwfl_thread_dwfl (Dwfl_Thread *thread)
-{
- return thread->process->dwfl;
-}
-INTDEF(dwfl_thread_dwfl)
-
-pid_t
-dwfl_thread_tid (Dwfl_Thread *thread)
-{
- return thread->tid;
-}
-INTDEF(dwfl_thread_tid)
-
-Dwfl_Thread *
-dwfl_frame_thread (Dwfl_Frame *state)
-{
- return state->thread;
-}
-INTDEF(dwfl_frame_thread)
-
-int
-dwfl_getthreads (Dwfl *dwfl, int (*callback) (Dwfl_Thread *thread, void *arg),
- void *arg)
-{
- if (dwfl->attacherr != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (dwfl->attacherr);
- return -1;
- }
-
- Dwfl_Process *process = dwfl->process;
- if (process == NULL)
- {
- __libdwfl_seterrno (DWFL_E_NO_ATTACH_STATE);
- return -1;
- }
-
- Dwfl_Thread thread;
- thread.process = process;
- thread.unwound = NULL;
- thread.callbacks_arg = NULL;
- for (;;)
- {
- thread.tid = process->callbacks->next_thread (dwfl,
- process->callbacks_arg,
- &thread.callbacks_arg);
- if (thread.tid < 0)
- {
- Dwfl_Error saved_errno = dwfl_errno ();
- thread_free_all_states (&thread);
- __libdwfl_seterrno (saved_errno);
- return -1;
- }
- if (thread.tid == 0)
- {
- thread_free_all_states (&thread);
- __libdwfl_seterrno (DWFL_E_NOERROR);
- return 0;
- }
- int err = callback (&thread, arg);
- if (err != DWARF_CB_OK)
- {
- thread_free_all_states (&thread);
- return err;
- }
- assert (thread.unwound == NULL);
- }
- /* NOTREACHED */
-}
-INTDEF(dwfl_getthreads)
-
-struct one_arg
-{
- pid_t tid;
- bool seen;
- int (*callback) (Dwfl_Thread *thread, void *arg);
- void *arg;
- int ret;
-};
-
-static int
-get_one_thread_cb (Dwfl_Thread *thread, void *arg)
-{
- struct one_arg *oa = (struct one_arg *) arg;
- if (! oa->seen && INTUSE(dwfl_thread_tid) (thread) == oa->tid)
- {
- oa->seen = true;
- oa->ret = oa->callback (thread, oa->arg);
- return DWARF_CB_ABORT;
- }
-
- return DWARF_CB_OK;
-}
-
-/* Note not currently exported, will be when there are more Dwfl_Thread
- properties to query. Use dwfl_getthread_frames for now directly. */
-static int
-getthread (Dwfl *dwfl, pid_t tid,
- int (*callback) (Dwfl_Thread *thread, void *arg),
- void *arg)
-{
- if (dwfl->attacherr != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (dwfl->attacherr);
- return -1;
- }
-
- Dwfl_Process *process = dwfl->process;
- if (process == NULL)
- {
- __libdwfl_seterrno (DWFL_E_NO_ATTACH_STATE);
- return -1;
- }
-
- if (process->callbacks->get_thread != NULL)
- {
- Dwfl_Thread thread;
- thread.process = process;
- thread.unwound = NULL;
- thread.callbacks_arg = NULL;
-
- if (process->callbacks->get_thread (dwfl, tid, process->callbacks_arg,
- &thread.callbacks_arg))
- {
- int err;
- thread.tid = tid;
- err = callback (&thread, arg);
- thread_free_all_states (&thread);
- return err;
- }
-
- return -1;
- }
-
- struct one_arg oa = { .tid = tid, .callback = callback,
- .arg = arg, .seen = false };
- int err = INTUSE(dwfl_getthreads) (dwfl, get_one_thread_cb, &oa);
-
- if (err == DWARF_CB_ABORT && oa.seen)
- return oa.ret;
-
- if (err == DWARF_CB_OK && ! oa.seen)
- {
- errno = ESRCH;
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return -1;
- }
-
- return err;
-}
-
-struct one_thread
-{
- int (*callback) (Dwfl_Frame *frame, void *arg);
- void *arg;
-};
-
-static int
-get_one_thread_frames_cb (Dwfl_Thread *thread, void *arg)
-{
- struct one_thread *ot = (struct one_thread *) arg;
- return INTUSE(dwfl_thread_getframes) (thread, ot->callback, ot->arg);
-}
-
-int
-dwfl_getthread_frames (Dwfl *dwfl, pid_t tid,
- int (*callback) (Dwfl_Frame *frame, void *arg),
- void *arg)
-{
- struct one_thread ot = { .callback = callback, .arg = arg };
- return getthread (dwfl, tid, get_one_thread_frames_cb, &ot);
-}
-INTDEF(dwfl_getthread_frames)
-
-int
-dwfl_thread_getframes (Dwfl_Thread *thread,
- int (*callback) (Dwfl_Frame *state, void *arg),
- void *arg)
-{
- if (thread->unwound != NULL)
- {
- /* We had to be called from inside CALLBACK. */
- __libdwfl_seterrno (DWFL_E_ATTACH_STATE_CONFLICT);
- return -1;
- }
- Ebl *ebl = thread->process->ebl;
- if (ebl_frame_nregs (ebl) == 0)
- {
- __libdwfl_seterrno (DWFL_E_NO_UNWIND);
- return -1;
- }
- if (state_alloc (thread) == NULL)
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
- Dwfl_Process *process = thread->process;
- if (! process->callbacks->set_initial_registers (thread,
- thread->callbacks_arg))
- {
- thread_free_all_states (thread);
- return -1;
- }
- if (! state_fetch_pc (thread->unwound))
- {
- if (process->callbacks->thread_detach)
- process->callbacks->thread_detach (thread, thread->callbacks_arg);
- thread_free_all_states (thread);
- return -1;
- }
-
- Dwfl_Frame *state;
- do
- {
- state = thread->unwound;
- int err = callback (state, arg);
- if (err != DWARF_CB_OK)
- {
- if (process->callbacks->thread_detach)
- process->callbacks->thread_detach (thread, thread->callbacks_arg);
- thread_free_all_states (thread);
- return err;
- }
- __libdwfl_frame_unwind (state);
- /* The old frame is no longer needed. */
- state_free (thread->unwound);
- state = thread->unwound;
- }
- while (state && state->pc_state == DWFL_FRAME_STATE_PC_SET);
-
- Dwfl_Error err = dwfl_errno ();
- if (process->callbacks->thread_detach)
- process->callbacks->thread_detach (thread, thread->callbacks_arg);
- if (state == NULL || state->pc_state == DWFL_FRAME_STATE_ERROR)
- {
- thread_free_all_states (thread);
- __libdwfl_seterrno (err);
- return -1;
- }
- assert (state->pc_state == DWFL_FRAME_STATE_PC_UNDEFINED);
- thread_free_all_states (thread);
- return 0;
-}
-INTDEF(dwfl_thread_getframes)
diff --git a/src/libdwfl/dwfl_frame_pc.c b/src/libdwfl/dwfl_frame_pc.c
deleted file mode 100644
index 296c815b..00000000
--- a/src/libdwfl/dwfl_frame_pc.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Get return address register value for frame.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libdwflP.h"
-
-bool
-dwfl_frame_pc (Dwfl_Frame *state, Dwarf_Addr *pc, bool *isactivation)
-{
- assert (state->pc_state == DWFL_FRAME_STATE_PC_SET);
- *pc = state->pc;
- ebl_normalize_pc (state->thread->process->ebl, pc);
- if (isactivation)
- {
- /* Bottom frame? */
- if (state->initial_frame)
- *isactivation = true;
- /* *ISACTIVATION is logical union of whether current or previous frame
- state is SIGNAL_FRAME. */
- else if (state->signal_frame)
- *isactivation = true;
- else
- {
- /* If the previous frame has unwound unsuccessfully just silently do
- not consider it could be a SIGNAL_FRAME. */
- __libdwfl_frame_unwind (state);
- if (state->unwound == NULL
- || state->unwound->pc_state != DWFL_FRAME_STATE_PC_SET)
- *isactivation = false;
- else
- *isactivation = state->unwound->signal_frame;
- }
- }
- return true;
-}
-INTDEF (dwfl_frame_pc)
diff --git a/src/libdwfl/dwfl_frame_regs.c b/src/libdwfl/dwfl_frame_regs.c
deleted file mode 100644
index 10803fe7..00000000
--- a/src/libdwfl/dwfl_frame_regs.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* Get Dwarf Frame state from modules present in DWFL.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-bool
-dwfl_thread_state_registers (Dwfl_Thread *thread, int firstreg,
- unsigned nregs, const Dwarf_Word *regs)
-{
- Dwfl_Frame *state = thread->unwound;
- assert (state && state->unwound == NULL);
- assert (state->initial_frame);
- for (unsigned regno = firstreg; regno < firstreg + nregs; regno++)
- if (! __libdwfl_frame_reg_set (state, regno, regs[regno - firstreg]))
- {
- __libdwfl_seterrno (DWFL_E_INVALID_REGISTER);
- return false;
- }
- return true;
-}
-INTDEF(dwfl_thread_state_registers)
-
-void
-dwfl_thread_state_register_pc (Dwfl_Thread *thread, Dwarf_Word pc)
-{
- Dwfl_Frame *state = thread->unwound;
- assert (state && state->unwound == NULL);
- assert (state->initial_frame);
- state->pc = pc;
- state->pc_state = DWFL_FRAME_STATE_PC_SET;
-}
-INTDEF(dwfl_thread_state_register_pc)
diff --git a/src/libdwfl/dwfl_getdwarf.c b/src/libdwfl/dwfl_getdwarf.c
deleted file mode 100644
index 8d1d9ba7..00000000
--- a/src/libdwfl/dwfl_getdwarf.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Iterate through modules to fetch Dwarf information.
- Copyright (C) 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-struct module_callback_info
-{
- int (*callback) (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- Dwarf *, Dwarf_Addr, void *);
- void *arg;
-};
-
-static int
-module_callback (Dwfl_Module *mod, void **userdata,
- const char *name, Dwarf_Addr start, void *arg)
-{
- const struct module_callback_info *info = arg;
- Dwarf_Addr bias = 0;
- Dwarf *dw = INTUSE(dwfl_module_getdwarf) (mod, &bias);
- return (*info->callback) (mod, userdata, name, start, dw, bias, info->arg);
-}
-
-ptrdiff_t
-dwfl_getdwarf (Dwfl *dwfl,
- int (*callback) (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- Dwarf *, Dwarf_Addr, void *),
- void *arg,
- ptrdiff_t offset)
-{
- struct module_callback_info info = { callback, arg };
- return INTUSE(dwfl_getmodules) (dwfl, &module_callback, &info, offset);
-}
diff --git a/src/libdwfl/dwfl_getmodules.c b/src/libdwfl/dwfl_getmodules.c
deleted file mode 100644
index eed9b4ff..00000000
--- a/src/libdwfl/dwfl_getmodules.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/* Iterate through modules.
- Copyright (C) 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-ptrdiff_t
-dwfl_getmodules (Dwfl *dwfl,
- int (*callback) (Dwfl_Module *, void **,
- const char *, Dwarf_Addr, void *),
- void *arg,
- ptrdiff_t offset)
-{
- if (dwfl == NULL)
- return -1;
-
- /* We iterate through the linked list when it's all we have.
- But continuing from an offset is slow that way. So when
- DWFL->lookup_module is populated, we can instead keep our
- place by jumping directly into the array. Since the actions
- of a callback could cause it to get populated, we must
- choose the style of place-holder when we return an offset,
- and we encode the choice in the low bits of that value. */
-
- Dwfl_Module *m = dwfl->modulelist;
-
- if ((offset & 3) == 1)
- {
- offset >>= 2;
- for (ptrdiff_t pos = 0; pos < offset; ++pos)
- if (m == NULL)
- return -1;
- else
- m = m->next;
- }
- else if (((offset & 3) == 2) && likely (dwfl->lookup_module != NULL))
- {
- offset >>= 2;
-
- if ((size_t) offset - 1 == dwfl->lookup_elts)
- return 0;
-
- if (unlikely ((size_t) offset - 1 > dwfl->lookup_elts))
- return -1;
-
- m = dwfl->lookup_module[offset - 1];
- if (unlikely (m == NULL))
- return -1;
- }
- else if (offset != 0)
- {
- __libdwfl_seterrno (DWFL_E_BADSTROFF);
- return -1;
- }
-
- while (m != NULL)
- {
- int ok = (*callback) (MODCB_ARGS (m), arg);
- ++offset;
- m = m->next;
- if (ok != DWARF_CB_OK)
- return ((dwfl->lookup_module == NULL) ? ((offset << 2) | 1)
- : (((m == NULL ? (ptrdiff_t) dwfl->lookup_elts + 1
- : m->segment + 1) << 2) | 2));
- }
- return 0;
-}
-INTDEF (dwfl_getmodules)
diff --git a/src/libdwfl/dwfl_getsrc.c b/src/libdwfl/dwfl_getsrc.c
deleted file mode 100644
index 8d4ae022..00000000
--- a/src/libdwfl/dwfl_getsrc.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Find source location for PC address.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwfl_Line *
-dwfl_getsrc (Dwfl *dwfl, Dwarf_Addr addr)
-{
- return INTUSE(dwfl_module_getsrc) (INTUSE(dwfl_addrmodule) (dwfl, addr),
- addr);
-}
diff --git a/src/libdwfl/dwfl_getsrclines.c b/src/libdwfl/dwfl_getsrclines.c
deleted file mode 100644
index bdfcf5c6..00000000
--- a/src/libdwfl/dwfl_getsrclines.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Fetch source line information for CU.
- Copyright (C) 2005, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-int
-dwfl_getsrclines (Dwarf_Die *cudie, size_t *nlines)
-{
- struct dwfl_cu *cu = (struct dwfl_cu *) cudie;
-
- if (cu->lines == NULL)
- {
- Dwfl_Error error = __libdwfl_cu_getsrclines (cu);
- if (error != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (error);
- return -1;
- }
- }
-
- *nlines = cu->die.cu->lines->nlines;
- return 0;
-}
diff --git a/src/libdwfl/dwfl_line_comp_dir.c b/src/libdwfl/dwfl_line_comp_dir.c
deleted file mode 100644
index bda09c46..00000000
--- a/src/libdwfl/dwfl_line_comp_dir.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Get information from a source line record returned by libdwfl.
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <dwarf.h>
-
-const char *
-dwfl_line_comp_dir (Dwfl_Line *line)
-{
- if (line == NULL)
- return NULL;
-
- struct dwfl_cu *cu = dwfl_linecu (line);
- Dwarf_Attribute attr_mem;
- return INTUSE(dwarf_formstring) (INTUSE(dwarf_attr) (&cu->die,
- DW_AT_comp_dir,
- &attr_mem));
-}
diff --git a/src/libdwfl/dwfl_linecu.c b/src/libdwfl/dwfl_linecu.c
deleted file mode 100644
index ce78d297..00000000
--- a/src/libdwfl/dwfl_linecu.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Fetch the module containing a source line record returned by libdwfl.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-#undef dwfl_linecu
-
-Dwarf_Die *
-dwfl_linecu (Dwfl_Line *line)
-{
- if (line == NULL)
- return NULL;
-
- struct dwfl_cu *cu = dwfl_linecu_inline (line);
- return &cu->die;
-}
diff --git a/src/libdwfl/dwfl_lineinfo.c b/src/libdwfl/dwfl_lineinfo.c
deleted file mode 100644
index dfb27d82..00000000
--- a/src/libdwfl/dwfl_lineinfo.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Get information from a source line record returned by libdwfl.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "../libdw/libdwP.h"
-
-const char *
-dwfl_lineinfo (Dwfl_Line *line, Dwarf_Addr *addr, int *linep, int *colp,
- Dwarf_Word *mtime, Dwarf_Word *length)
-{
- if (line == NULL)
- return NULL;
-
- struct dwfl_cu *cu = dwfl_linecu (line);
- const Dwarf_Line *info = &cu->die.cu->lines->info[line->idx];
-
- if (addr != NULL)
- *addr = dwfl_adjusted_dwarf_addr (cu->mod, info->addr);
- if (linep != NULL)
- *linep = info->line;
- if (colp != NULL)
- *colp = info->column;
-
- struct Dwarf_Fileinfo_s *file = &info->files->info[info->file];
- if (mtime != NULL)
- *mtime = file->mtime;
- if (length != NULL)
- *length = file->length;
- return file->name;
-}
diff --git a/src/libdwfl/dwfl_linemodule.c b/src/libdwfl/dwfl_linemodule.c
deleted file mode 100644
index e4a35e09..00000000
--- a/src/libdwfl/dwfl_linemodule.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Fetch the module containing a source line record returned by libdwfl.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwfl_Module *
-dwfl_linemodule (Dwfl_Line *line)
-{
- if (line == NULL)
- return NULL;
-
- return dwfl_linecu (line)->mod;
-}
diff --git a/src/libdwfl/dwfl_module.c b/src/libdwfl/dwfl_module.c
deleted file mode 100644
index 8efcfaa5..00000000
--- a/src/libdwfl/dwfl_module.c
+++ /dev/null
@@ -1,222 +0,0 @@
-/* Maintenance of module list in libdwfl.
- Copyright (C) 2005, 2006, 2007, 2008, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <search.h>
-#include <unistd.h>
-
-static void
-free_cu (struct dwfl_cu *cu)
-{
- if (cu->lines != NULL)
- free (cu->lines);
- free (cu);
-}
-
-static void
-nofree (void *arg __attribute__ ((unused)))
-{
-}
-
-static void
-free_file (struct dwfl_file *file)
-{
- free (file->name);
-
- /* Close the fd only on the last reference. */
- if (file->elf != NULL && elf_end (file->elf) == 0 && file->fd != -1)
- close (file->fd);
-}
-
-void
-internal_function
-__libdwfl_module_free (Dwfl_Module *mod)
-{
- if (mod->lazy_cu_root != NULL)
- tdestroy (mod->lazy_cu_root, nofree);
-
- if (mod->aranges != NULL)
- free (mod->aranges);
-
- if (mod->cu != NULL)
- {
- for (size_t i = 0; i < mod->ncu; ++i)
- free_cu (mod->cu[i]);
- free (mod->cu);
- }
-
- if (mod->dw != NULL)
- {
- INTUSE(dwarf_end) (mod->dw);
- if (mod->alt != NULL)
- {
- INTUSE(dwarf_end) (mod->alt);
- if (mod->alt_elf != NULL)
- elf_end (mod->alt_elf);
- if (mod->alt_fd != -1)
- close (mod->alt_fd);
- }
- }
-
- if (mod->ebl != NULL)
- ebl_closebackend (mod->ebl);
-
- if (mod->debug.elf != mod->main.elf)
- free_file (&mod->debug);
- free_file (&mod->main);
- free_file (&mod->aux_sym);
-
- if (mod->build_id_bits != NULL)
- free (mod->build_id_bits);
-
- if (mod->reloc_info != NULL)
- free (mod->reloc_info);
-
- if (mod->eh_cfi != NULL)
- dwarf_cfi_end (mod->eh_cfi);
-
- free (mod->name);
- free (mod);
-}
-
-void
-dwfl_report_begin_add (Dwfl *dwfl __attribute__ ((unused)))
-{
- /* The lookup table will be cleared on demand, there is nothing we need
- to do here. */
-}
-INTDEF (dwfl_report_begin_add)
-
-void
-dwfl_report_begin (Dwfl *dwfl)
-{
- /* Clear the segment lookup table. */
- dwfl->lookup_elts = 0;
-
- for (Dwfl_Module *m = dwfl->modulelist; m != NULL; m = m->next)
- m->gc = true;
-
- dwfl->offline_next_address = OFFLINE_REDZONE;
-}
-INTDEF (dwfl_report_begin)
-
-/* Report that a module called NAME spans addresses [START, END).
- Returns the module handle, either existing or newly allocated,
- or returns a null pointer for an allocation error. */
-Dwfl_Module *
-dwfl_report_module (Dwfl *dwfl, const char *name,
- GElf_Addr start, GElf_Addr end)
-{
- Dwfl_Module **tailp = &dwfl->modulelist, **prevp = tailp;
-
- inline Dwfl_Module *use (Dwfl_Module *mod)
- {
- mod->next = *tailp;
- *tailp = mod;
-
- if (unlikely (dwfl->lookup_module != NULL))
- {
- free (dwfl->lookup_module);
- dwfl->lookup_module = NULL;
- }
-
- return mod;
- }
-
- for (Dwfl_Module *m = *prevp; m != NULL; m = *(prevp = &m->next))
- {
- if (m->low_addr == start && m->high_addr == end
- && !strcmp (m->name, name))
- {
- /* This module is still here. Move it to the place in the list
- after the last module already reported. */
- *prevp = m->next;
- m->gc = false;
- return use (m);
- }
-
- if (! m->gc)
- tailp = &m->next;
- }
-
- Dwfl_Module *mod = calloc (1, sizeof *mod);
- if (mod == NULL)
- goto nomem;
-
- mod->name = strdup (name);
- if (mod->name == NULL)
- {
- free (mod);
- nomem:
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return NULL;
- }
-
- mod->low_addr = start;
- mod->high_addr = end;
- mod->dwfl = dwfl;
-
- return use (mod);
-}
-INTDEF (dwfl_report_module)
-
-
-/* Finish reporting the current set of modules to the library.
- If REMOVED is not null, it's called for each module that
- existed before but was not included in the current report.
- Returns a nonzero return value from the callback.
- DWFL cannot be used until this function has returned zero. */
-int
-dwfl_report_end (Dwfl *dwfl,
- int (*removed) (Dwfl_Module *, void *,
- const char *, Dwarf_Addr,
- void *arg),
- void *arg)
-{
- Dwfl_Module **tailp = &dwfl->modulelist;
- while (*tailp != NULL)
- {
- Dwfl_Module *m = *tailp;
- if (m->gc && removed != NULL)
- {
- int result = (*removed) (MODCB_ARGS (m), arg);
- if (result != 0)
- return result;
- }
- if (m->gc)
- {
- *tailp = m->next;
- __libdwfl_module_free (m);
- }
- else
- tailp = &m->next;
- }
-
- return 0;
-}
-INTDEF (dwfl_report_end)
diff --git a/src/libdwfl/dwfl_module_addrdie.c b/src/libdwfl/dwfl_module_addrdie.c
deleted file mode 100644
index 20d2842a..00000000
--- a/src/libdwfl/dwfl_module_addrdie.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Fetch the CU DIE for a PC address in a given module.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwarf_Die *
-dwfl_module_addrdie (Dwfl_Module *mod, Dwarf_Addr addr, Dwarf_Addr *bias)
-{
- if (INTUSE(dwfl_module_getdwarf) (mod, bias) == NULL)
- return NULL;
-
- struct dwfl_cu *cu;
- Dwfl_Error error = __libdwfl_addrcu (mod, addr, &cu);
- if (likely (error == DWFL_E_NOERROR))
- return &cu->die;
-
- __libdwfl_seterrno (error);
- return NULL;
-}
-INTDEF (dwfl_module_addrdie)
diff --git a/src/libdwfl/dwfl_module_addrname.c b/src/libdwfl/dwfl_module_addrname.c
deleted file mode 100644
index 88a8139d..00000000
--- a/src/libdwfl/dwfl_module_addrname.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Find debugging and symbol information for a module in libdwfl.
- Copyright (C) 2005, 2006, 2007, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-const char *
-dwfl_module_addrname (Dwfl_Module *mod, GElf_Addr addr)
-{
- GElf_Off off;
- GElf_Sym sym;
- return INTUSE(dwfl_module_addrinfo) (mod, addr, &off, &sym,
- NULL, NULL, NULL);
-}
diff --git a/src/libdwfl/dwfl_module_addrsym.c b/src/libdwfl/dwfl_module_addrsym.c
deleted file mode 100644
index d205832c..00000000
--- a/src/libdwfl/dwfl_module_addrsym.c
+++ /dev/null
@@ -1,289 +0,0 @@
-/* Find debugging and symbol information for a module in libdwfl.
- Copyright (C) 2005-2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-/* Returns the name of the symbol "closest" to ADDR.
- Never returns symbols at addresses above ADDR. */
-
-const char *
-internal_function
-__libdwfl_addrsym (Dwfl_Module *mod, GElf_Addr addr, GElf_Off *off,
- GElf_Sym *closest_sym, GElf_Word *shndxp,
- Elf **elfp, Dwarf_Addr *biasp, bool adjust_st_value)
-{
- int syments = INTUSE(dwfl_module_getsymtab) (mod);
- if (syments < 0)
- return NULL;
-
- /* Return true iff we consider ADDR to lie in the same section as SYM. */
- GElf_Word addr_shndx = SHN_UNDEF;
- Elf *addr_symelf = NULL;
- inline bool same_section (GElf_Addr value, Elf *symelf, GElf_Word shndx)
- {
- /* For absolute symbols and the like, only match exactly. */
- if (shndx >= SHN_LORESERVE)
- return value == addr;
-
- /* If value might not be st_value, the shndx of the symbol might
- not match the section of the value. Explicitly look both up. */
- if (! adjust_st_value)
- {
- Dwarf_Addr v;
- if (addr_shndx == SHN_UNDEF)
- {
- v = addr;
- addr_shndx = __libdwfl_find_section_ndx (mod, &v);
- }
-
- v = value;
- return addr_shndx == __libdwfl_find_section_ndx (mod, &v);
- }
-
- /* Figure out what section ADDR lies in. */
- if (addr_shndx == SHN_UNDEF || addr_symelf != symelf)
- {
- GElf_Addr mod_addr = dwfl_deadjust_st_value (mod, symelf, addr);
- Elf_Scn *scn = NULL;
- addr_shndx = SHN_ABS;
- addr_symelf = symelf;
- while ((scn = elf_nextscn (symelf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (likely (shdr != NULL)
- && mod_addr >= shdr->sh_addr
- && mod_addr < shdr->sh_addr + shdr->sh_size)
- {
- addr_shndx = elf_ndxscn (scn);
- break;
- }
- }
- }
-
- return shndx == addr_shndx && addr_symelf == symelf;
- }
-
- /* Keep track of the closest symbol we have seen so far.
- Here we store only symbols with nonzero st_size. */
- const char *closest_name = NULL;
- GElf_Addr closest_value = 0;
- GElf_Word closest_shndx = SHN_UNDEF;
- Elf *closest_elf = NULL;
-
- /* Keep track of an eligible symbol with st_size == 0 as a fallback. */
- const char *sizeless_name = NULL;
- GElf_Sym sizeless_sym = { 0, 0, 0, 0, 0, SHN_UNDEF };
- GElf_Addr sizeless_value = 0;
- GElf_Word sizeless_shndx = SHN_UNDEF;
- Elf *sizeless_elf = NULL;
-
- /* Keep track of the lowest address a relevant sizeless symbol could have. */
- GElf_Addr min_label = 0;
-
- /* Try one symbol and associated value from the search table. */
- inline void try_sym_value (GElf_Addr value, GElf_Sym *sym,
- const char *name, GElf_Word shndx,
- Elf *elf, bool resolved)
- {
- /* Even if we don't choose this symbol, its existence excludes
- any sizeless symbol (assembly label) that is below its upper
- bound. */
- if (value + sym->st_size > min_label)
- min_label = value + sym->st_size;
-
- if (sym->st_size == 0 || addr - value < sym->st_size)
- {
- /* Return GELF_ST_BIND as higher-is-better integer. */
- inline int binding_value (const GElf_Sym *symp)
- {
- switch (GELF_ST_BIND (symp->st_info))
- {
- case STB_GLOBAL:
- return 3;
- case STB_WEAK:
- return 2;
- case STB_LOCAL:
- return 1;
- default:
- return 0;
- }
- }
-
- /* This symbol is a better candidate than the current one
- if it's closer to ADDR or is global when it was local. */
- if (closest_name == NULL
- || closest_value < value
- || binding_value (closest_sym) < binding_value (sym))
- {
- if (sym->st_size != 0)
- {
- *closest_sym = *sym;
- closest_value = value;
- closest_shndx = shndx;
- closest_elf = elf;
- closest_name = name;
- }
- else if (closest_name == NULL
- && value >= min_label
- && same_section (value,
- resolved ? mod->main.elf : elf, shndx))
- {
- /* Handwritten assembly symbols sometimes have no
- st_size. If no symbol with proper size includes
- the address, we'll use the closest one that is in
- the same section as ADDR. */
- sizeless_sym = *sym;
- sizeless_value = value;
- sizeless_shndx = shndx;
- sizeless_elf = elf;
- sizeless_name = name;
- }
- }
- /* When the beginning of its range is no closer,
- the end of its range might be. Otherwise follow
- GELF_ST_BIND preference. If all are equal prefer
- the first symbol found. */
- else if (sym->st_size != 0
- && closest_value == value
- && ((closest_sym->st_size > sym->st_size
- && (binding_value (closest_sym)
- <= binding_value (sym)))
- || (closest_sym->st_size >= sym->st_size
- && (binding_value (closest_sym)
- < binding_value (sym)))))
- {
- *closest_sym = *sym;
- closest_value = value;
- closest_shndx = shndx;
- closest_elf = elf;
- closest_name = name;
- }
- }
- }
-
- /* Look through the symbol table for a matching symbol. */
- inline void search_table (int start, int end)
- {
- for (int i = start; i < end; ++i)
- {
- GElf_Sym sym;
- GElf_Addr value;
- GElf_Word shndx;
- Elf *elf;
- bool resolved;
- const char *name = __libdwfl_getsym (mod, i, &sym, &value,
- &shndx, &elf, NULL,
- &resolved, adjust_st_value);
- if (name != NULL && name[0] != '\0'
- && sym.st_shndx != SHN_UNDEF
- && value <= addr
- && GELF_ST_TYPE (sym.st_info) != STT_SECTION
- && GELF_ST_TYPE (sym.st_info) != STT_FILE
- && GELF_ST_TYPE (sym.st_info) != STT_TLS)
- {
- try_sym_value (value, &sym, name, shndx, elf, resolved);
-
- /* If this is an addrinfo variant and the value could be
- resolved then also try matching the (adjusted) st_value. */
- if (resolved && mod->e_type != ET_REL)
- {
- GElf_Addr adjusted_st_value;
- adjusted_st_value = dwfl_adjusted_st_value (mod, elf,
- sym.st_value);
- if (value != adjusted_st_value && adjusted_st_value <= addr)
- try_sym_value (adjusted_st_value, &sym, name, shndx,
- elf, false);
- }
- }
- }
- }
-
- /* First go through global symbols. mod->first_global and
- mod->aux_first_global are setup by dwfl_module_getsymtab to the
- index of the first global symbol in those symbol tables. Both
- are non-zero when the table exist, except when there is only a
- dynsym table loaded through phdrs, then first_global is zero and
- there will be no auxiliary table. All symbols with local binding
- come first in the symbol table, then all globals. The zeroth,
- null entry, in the auxiliary table is skipped if there is a main
- table. */
- int first_global = INTUSE (dwfl_module_getsymtab_first_global) (mod);
- if (first_global < 0)
- return NULL;
- search_table (first_global == 0 ? 1 : first_global, syments);
-
- /* If we found nothing searching the global symbols, then try the locals.
- Unless we have a global sizeless symbol that matches exactly. */
- if (closest_name == NULL && first_global > 1
- && (sizeless_name == NULL || sizeless_value != addr))
- search_table (1, first_global);
-
- /* If we found no proper sized symbol to use, fall back to the best
- candidate sizeless symbol we found, if any. */
- if (closest_name == NULL
- && sizeless_name != NULL && sizeless_value >= min_label)
- {
- *closest_sym = sizeless_sym;
- closest_value = sizeless_value;
- closest_shndx = sizeless_shndx;
- closest_elf = sizeless_elf;
- closest_name = sizeless_name;
- }
-
- *off = addr - closest_value;
-
- if (shndxp != NULL)
- *shndxp = closest_shndx;
- if (elfp != NULL)
- *elfp = closest_elf;
- if (biasp != NULL)
- *biasp = dwfl_adjusted_st_value (mod, closest_elf, 0);
- return closest_name;
-}
-
-
-const char *
-dwfl_module_addrsym (Dwfl_Module *mod, GElf_Addr addr,
- GElf_Sym *closest_sym, GElf_Word *shndxp)
-{
- GElf_Off off;
- return __libdwfl_addrsym (mod, addr, &off, closest_sym, shndxp,
- NULL, NULL, true);
-}
-INTDEF (dwfl_module_addrsym)
-
-const char
-*dwfl_module_addrinfo (Dwfl_Module *mod, GElf_Addr address,
- GElf_Off *offset, GElf_Sym *sym,
- GElf_Word *shndxp, Elf **elfp, Dwarf_Addr *bias)
-{
- return __libdwfl_addrsym (mod, address, offset, sym, shndxp, elfp, bias,
- false);
-}
-INTDEF (dwfl_module_addrinfo)
diff --git a/src/libdwfl/dwfl_module_build_id.c b/src/libdwfl/dwfl_module_build_id.c
deleted file mode 100644
index 350bbf83..00000000
--- a/src/libdwfl/dwfl_module_build_id.c
+++ /dev/null
@@ -1,117 +0,0 @@
-/* Return build ID information for a module.
- Copyright (C) 2007-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-static int
-found_build_id (Dwfl_Module *mod, bool set,
- const void *bits, int len, GElf_Addr vaddr)
-{
- if (!set)
- /* When checking bits, we do not compare VADDR because the
- address found in a debuginfo file may not match the main
- file as modified by prelink. */
- return 1 + (mod->build_id_len == len
- && !memcmp (bits, mod->build_id_bits, len));
-
- void *copy = malloc (len);
- if (unlikely (copy == NULL))
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
-
- mod->build_id_bits = memcpy (copy, bits, len);
- mod->build_id_vaddr = vaddr;
- mod->build_id_len = len;
- return len;
-}
-
-int
-internal_function
-__libdwfl_find_build_id (Dwfl_Module *mod, bool set, Elf *elf)
-{
- const void *build_id_bits;
- GElf_Addr build_id_elfaddr;
- int build_id_len;
-
- /* For mod == NULL use dwelf_elf_gnu_build_id directly. */
- assert (mod != NULL);
-
- int result = __libdwfl_find_elf_build_id (mod, elf, &build_id_bits,
- &build_id_elfaddr, &build_id_len);
- if (result <= 0)
- return result;
-
- GElf_Addr build_id_vaddr = build_id_elfaddr + (build_id_elfaddr != 0
- ? mod->main_bias : 0);
- return found_build_id (mod, set, build_id_bits, build_id_len, build_id_vaddr);
-}
-
-int
-dwfl_module_build_id (Dwfl_Module *mod,
- const unsigned char **bits, GElf_Addr *vaddr)
-{
- if (mod == NULL)
- return -1;
-
- if (mod->build_id_len == 0 && mod->main.elf != NULL)
- {
- /* We have the file, but have not examined it yet. */
- int result = __libdwfl_find_build_id (mod, true, mod->main.elf);
- if (result <= 0)
- {
- mod->build_id_len = -1; /* Cache negative result. */
- return result;
- }
- }
-
- if (mod->build_id_len <= 0)
- return 0;
-
- *bits = mod->build_id_bits;
- *vaddr = mod->build_id_vaddr;
- return mod->build_id_len;
-}
-INTDEF (dwfl_module_build_id)
-NEW_VERSION (dwfl_module_build_id, ELFUTILS_0.138)
-
-#ifdef SHARED
-COMPAT_VERSION (dwfl_module_build_id, ELFUTILS_0.130, vaddr_at_end)
-
-int
-_compat_vaddr_at_end_dwfl_module_build_id (Dwfl_Module *mod,
- const unsigned char **bits,
- GElf_Addr *vaddr)
-{
- int result = INTUSE(dwfl_module_build_id) (mod, bits, vaddr);
- if (result > 0)
- *vaddr += (result + 3) & -4;
- return result;
-}
-#endif
diff --git a/src/libdwfl/dwfl_module_dwarf_cfi.c b/src/libdwfl/dwfl_module_dwarf_cfi.c
deleted file mode 100644
index 5182d6a0..00000000
--- a/src/libdwfl/dwfl_module_dwarf_cfi.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* Find DWARF CFI for a module in libdwfl.
- Copyright (C) 2009-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "../libdw/cfi.h"
-
-Dwarf_CFI *
-internal_function
-__libdwfl_set_cfi (Dwfl_Module *mod, Dwarf_CFI **slot, Dwarf_CFI *cfi)
-{
- if (cfi != NULL && cfi->ebl == NULL)
- {
- Dwfl_Error error = __libdwfl_module_getebl (mod);
- if (error == DWFL_E_NOERROR)
- cfi->ebl = mod->ebl;
- else
- {
- if (slot == &mod->eh_cfi)
- INTUSE(dwarf_cfi_end) (cfi);
- __libdwfl_seterrno (error);
- return NULL;
- }
- }
-
- return *slot = cfi;
-}
-
-Dwarf_CFI *
-dwfl_module_dwarf_cfi (mod, bias)
- Dwfl_Module *mod;
- Dwarf_Addr *bias;
-{
- if (mod == NULL)
- return NULL;
-
- if (mod->dwarf_cfi != NULL)
- {
- *bias = dwfl_adjusted_dwarf_addr (mod, 0);
- return mod->dwarf_cfi;
- }
-
- return __libdwfl_set_cfi (mod, &mod->dwarf_cfi,
- INTUSE(dwarf_getcfi)
- (INTUSE(dwfl_module_getdwarf) (mod, bias)));
-}
-INTDEF (dwfl_module_dwarf_cfi)
diff --git a/src/libdwfl/dwfl_module_eh_cfi.c b/src/libdwfl/dwfl_module_eh_cfi.c
deleted file mode 100644
index da10d9fb..00000000
--- a/src/libdwfl/dwfl_module_eh_cfi.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* Find EH CFI for a module in libdwfl.
- Copyright (C) 2009-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "../libdw/cfi.h"
-
-Dwarf_CFI *
-dwfl_module_eh_cfi (mod, bias)
- Dwfl_Module *mod;
- Dwarf_Addr *bias;
-{
- if (mod == NULL)
- return NULL;
-
- if (mod->eh_cfi != NULL)
- {
- *bias = dwfl_adjusted_address (mod, 0);
- return mod->eh_cfi;
- }
-
- __libdwfl_getelf (mod);
- if (mod->elferr != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (mod->elferr);
- return NULL;
- }
-
- *bias = dwfl_adjusted_address (mod, 0);
- return __libdwfl_set_cfi (mod, &mod->eh_cfi,
- INTUSE(dwarf_getcfi_elf) (mod->main.elf));
-}
-INTDEF (dwfl_module_eh_cfi)
diff --git a/src/libdwfl/dwfl_module_getdwarf.c b/src/libdwfl/dwfl_module_getdwarf.c
deleted file mode 100644
index 494407dd..00000000
--- a/src/libdwfl/dwfl_module_getdwarf.c
+++ /dev/null
@@ -1,1358 +0,0 @@
-/* Find debugging and symbol information for a module in libdwfl.
- Copyright (C) 2005-2012, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <inttypes.h>
-#include <fcntl.h>
-#include <string.h>
-#include <unistd.h>
-#include "../libdw/libdwP.h" /* DWARF_E_* values are here. */
-#include "../libelf/libelfP.h"
-
-static inline Dwfl_Error
-open_elf_file (Elf **elf, int *fd, char **name)
-{
- if (*elf == NULL)
- {
- /* CBFAIL uses errno if it's set, so clear it first in case we don't
- set it with an open failure below. */
- errno = 0;
-
- /* If there was a pre-primed file name left that the callback left
- behind, try to open that file name. */
- if (*fd < 0 && *name != NULL)
- *fd = TEMP_FAILURE_RETRY (open64 (*name, O_RDONLY));
-
- if (*fd < 0)
- return CBFAIL;
-
- return __libdw_open_file (fd, elf, true, false);
- }
- else if (unlikely (elf_kind (*elf) != ELF_K_ELF))
- {
- elf_end (*elf);
- *elf = NULL;
- close (*fd);
- *fd = -1;
- return DWFL_E_BADELF;
- }
-
- /* Elf file already open and looks fine. */
- return DWFL_E_NOERROR;
-}
-
-/* Open libelf FILE->fd and compute the load base of ELF as loaded in MOD.
- When we return success, FILE->elf and FILE->vaddr are set up. */
-static inline Dwfl_Error
-open_elf (Dwfl_Module *mod, struct dwfl_file *file)
-{
- Dwfl_Error error = open_elf_file (&file->elf, &file->fd, &file->name);
- if (error != DWFL_E_NOERROR)
- return error;
-
- GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (file->elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- elf_error:
- elf_end (file->elf);
- file->elf = NULL;
- close (file->fd);
- file->fd = -1;
- return DWFL_E (LIBELF, elf_errno ());
- }
-
- if (ehdr->e_type != ET_REL)
- {
- /* In any non-ET_REL file, we compute the "synchronization address".
-
- We start with the address at the end of the first PT_LOAD
- segment. When prelink converts REL to RELA in an ET_DYN
- file, it expands the space between the beginning of the
- segment and the actual code/data addresses. Since that
- change wasn't made in the debug file, the distance from
- p_vaddr to an address of interest (in an st_value or DWARF
- data) now differs between the main and debug files. The
- distance from address_sync to an address of interest remains
- consistent.
-
- If there are no section headers at all (full stripping), then
- the end of the first segment is a valid synchronization address.
- This cannot happen in a prelinked file, since prelink itself
- relies on section headers for prelinking and for undoing it.
- (If you do full stripping on a prelinked file, then you get what
- you deserve--you can neither undo the prelinking, nor expect to
- line it up with a debug file separated before prelinking.)
-
- However, when prelink processes an ET_EXEC file, it can do
- something different. There it juggles the "special" sections
- (SHT_DYNSYM et al) to make space for the additional prelink
- special sections. Sometimes it will do this by moving a special
- section like .dynstr after the real program sections in the first
- PT_LOAD segment--i.e. to the end. That changes the end address of
- the segment, so it no longer lines up correctly and is not a valid
- synchronization address to use. Because of this, we need to apply
- a different prelink-savvy means to discover the synchronization
- address when there is a separate debug file and a prelinked main
- file. That is done in find_debuginfo, below. */
-
- size_t phnum;
- if (unlikely (elf_getphdrnum (file->elf, &phnum) != 0))
- goto elf_error;
-
- file->vaddr = file->address_sync = 0;
- for (size_t i = 0; i < phnum; ++i)
- {
- GElf_Phdr ph_mem;
- GElf_Phdr *ph = gelf_getphdr (file->elf, i, &ph_mem);
- if (unlikely (ph == NULL))
- goto elf_error;
- if (ph->p_type == PT_LOAD)
- {
- file->vaddr = ph->p_vaddr & -ph->p_align;
- file->address_sync = ph->p_vaddr + ph->p_memsz;
- break;
- }
- }
- }
-
- /* We only want to set the module e_type explictly once, derived from
- the main ELF file. (It might be changed for the kernel, because
- that is special - see below.) open_elf is always called first for
- the main ELF file, because both find_dw and find_symtab call
- __libdwfl_getelf first to open the main file. So don't let debug
- or aux files override the module e_type. The kernel heuristic
- below could otherwise trigger for non-kernel/non-main files, since
- their phdrs might not match the actual load addresses. */
- if (file == &mod->main)
- {
- mod->e_type = ehdr->e_type;
-
- /* Relocatable Linux kernels are ET_EXEC but act like ET_DYN. */
- if (mod->e_type == ET_EXEC && file->vaddr != mod->low_addr)
- mod->e_type = ET_DYN;
- }
- else
- assert (mod->main.elf != NULL);
-
- return DWFL_E_NOERROR;
-}
-
-/* We have an authoritative build ID for this module MOD, so don't use
- a file by name that doesn't match that ID. */
-static void
-mod_verify_build_id (Dwfl_Module *mod)
-{
- assert (mod->build_id_len > 0);
-
- switch (__builtin_expect (__libdwfl_find_build_id (mod, false,
- mod->main.elf), 2))
- {
- case 2:
- /* Build ID matches as it should. */
- return;
-
- case -1: /* ELF error. */
- mod->elferr = INTUSE(dwfl_errno) ();
- break;
-
- case 0: /* File has no build ID note. */
- case 1: /* FIle has a build ID that does not match. */
- mod->elferr = DWFL_E_WRONG_ID_ELF;
- break;
-
- default:
- abort ();
- }
-
- /* We get here when it was the right ELF file. Clear it out. */
- elf_end (mod->main.elf);
- mod->main.elf = NULL;
- if (mod->main.fd >= 0)
- {
- close (mod->main.fd);
- mod->main.fd = -1;
- }
-}
-
-/* Find the main ELF file for this module and open libelf on it.
- When we return success, MOD->main.elf and MOD->main.bias are set up. */
-void
-internal_function
-__libdwfl_getelf (Dwfl_Module *mod)
-{
- if (mod->main.elf != NULL /* Already done. */
- || mod->elferr != DWFL_E_NOERROR) /* Cached failure. */
- return;
-
- mod->main.fd = (*mod->dwfl->callbacks->find_elf) (MODCB_ARGS (mod),
- &mod->main.name,
- &mod->main.elf);
- const bool fallback = mod->main.elf == NULL && mod->main.fd < 0;
- mod->elferr = open_elf (mod, &mod->main);
- if (mod->elferr != DWFL_E_NOERROR)
- return;
-
- if (!mod->main.valid)
- {
- /* Clear any explicitly reported build ID, just in case it was wrong.
- We'll fetch it from the file when asked. */
- free (mod->build_id_bits);
- mod->build_id_bits = NULL;
- mod->build_id_len = 0;
- }
- else if (fallback)
- mod_verify_build_id (mod);
-
- mod->main_bias = mod->e_type == ET_REL ? 0 : mod->low_addr - mod->main.vaddr;
-}
-
-/* If the main file might have been prelinked, then we need to
- discover the correct synchronization address between the main and
- debug files. Because of prelink's section juggling, we cannot rely
- on the address_sync computed from PT_LOAD segments (see open_elf).
-
- We will attempt to discover a synchronization address based on the
- section headers instead. But finding a section address that is
- safe to use requires identifying which sections are SHT_PROGBITS.
- We can do that in the main file, but in the debug file all the
- allocated sections have been transformed into SHT_NOBITS so we have
- lost the means to match them up correctly.
-
- The only method left to us is to decode the .gnu.prelink_undo
- section in the prelinked main file. This shows what the sections
- looked like before prelink juggled them--when they still had a
- direct correspondence to the debug file. */
-static Dwfl_Error
-find_prelink_address_sync (Dwfl_Module *mod, struct dwfl_file *file)
-{
- /* The magic section is only identified by name. */
- size_t shstrndx;
- if (elf_getshdrstrndx (mod->main.elf, &shstrndx) < 0)
- return DWFL_E_LIBELF;
-
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (unlikely (shdr == NULL))
- return DWFL_E_LIBELF;
- if (shdr->sh_type == SHT_PROGBITS
- && !(shdr->sh_flags & SHF_ALLOC)
- && shdr->sh_name != 0)
- {
- const char *secname = elf_strptr (mod->main.elf, shstrndx,
- shdr->sh_name);
- if (unlikely (secname == NULL))
- return DWFL_E_LIBELF;
- if (!strcmp (secname, ".gnu.prelink_undo"))
- break;
- }
- }
-
- if (scn == NULL)
- /* There was no .gnu.prelink_undo section. */
- return DWFL_E_NOERROR;
-
- Elf_Data *undodata = elf_rawdata (scn, NULL);
- if (unlikely (undodata == NULL))
- return DWFL_E_LIBELF;
-
- /* Decode the section. It consists of the original ehdr, phdrs,
- and shdrs (but omits section 0). */
-
- union
- {
- Elf32_Ehdr e32;
- Elf64_Ehdr e64;
- } ehdr;
- Elf_Data dst =
- {
- .d_buf = &ehdr,
- .d_size = sizeof ehdr,
- .d_type = ELF_T_EHDR,
- .d_version = EV_CURRENT
- };
- Elf_Data src = *undodata;
- src.d_size = gelf_fsize (mod->main.elf, ELF_T_EHDR, 1, EV_CURRENT);
- src.d_type = ELF_T_EHDR;
- if (unlikely (gelf_xlatetom (mod->main.elf, &dst, &src,
- elf_getident (mod->main.elf, NULL)[EI_DATA])
- == NULL))
- return DWFL_E_LIBELF;
-
- size_t shentsize = gelf_fsize (mod->main.elf, ELF_T_SHDR, 1, EV_CURRENT);
- size_t phentsize = gelf_fsize (mod->main.elf, ELF_T_PHDR, 1, EV_CURRENT);
-
- uint_fast16_t phnum;
- uint_fast16_t shnum;
- if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
- {
- if (ehdr.e32.e_shentsize != shentsize
- || ehdr.e32.e_phentsize != phentsize)
- return DWFL_E_BAD_PRELINK;
- phnum = ehdr.e32.e_phnum;
- shnum = ehdr.e32.e_shnum;
- }
- else
- {
- if (ehdr.e64.e_shentsize != shentsize
- || ehdr.e64.e_phentsize != phentsize)
- return DWFL_E_BAD_PRELINK;
- phnum = ehdr.e64.e_phnum;
- shnum = ehdr.e64.e_shnum;
- }
-
- /* Since prelink does not store the zeroth section header in the undo
- section, it cannot support SHN_XINDEX encoding. */
- if (unlikely (shnum >= SHN_LORESERVE)
- || unlikely (undodata->d_size != (src.d_size
- + phnum * phentsize
- + (shnum - 1) * shentsize)))
- return DWFL_E_BAD_PRELINK;
-
- /* We look at the allocated SHT_PROGBITS (or SHT_NOBITS) sections. (Most
- every file will have some SHT_PROGBITS sections, but it's possible to
- have one with nothing but .bss, i.e. SHT_NOBITS.) The special sections
- that can be moved around have different sh_type values--except for
- .interp, the section that became the PT_INTERP segment. So we exclude
- the SHT_PROGBITS section whose address matches the PT_INTERP p_vaddr.
- For this reason, we must examine the phdrs first to find PT_INTERP. */
-
- GElf_Addr main_interp = 0;
- {
- size_t main_phnum;
- if (unlikely (elf_getphdrnum (mod->main.elf, &main_phnum)))
- return DWFL_E_LIBELF;
- for (size_t i = 0; i < main_phnum; ++i)
- {
- GElf_Phdr phdr;
- if (unlikely (gelf_getphdr (mod->main.elf, i, &phdr) == NULL))
- return DWFL_E_LIBELF;
- if (phdr.p_type == PT_INTERP)
- {
- main_interp = phdr.p_vaddr;
- break;
- }
- }
- }
-
- src.d_buf += src.d_size;
- src.d_type = ELF_T_PHDR;
- src.d_size = phnum * phentsize;
-
- GElf_Addr undo_interp = 0;
- {
- union
- {
- Elf32_Phdr p32[phnum];
- Elf64_Phdr p64[phnum];
- } phdr;
- dst.d_buf = &phdr;
- dst.d_size = sizeof phdr;
- if (unlikely (gelf_xlatetom (mod->main.elf, &dst, &src,
- ehdr.e32.e_ident[EI_DATA]) == NULL))
- return DWFL_E_LIBELF;
- if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
- {
- for (uint_fast16_t i = 0; i < phnum; ++i)
- if (phdr.p32[i].p_type == PT_INTERP)
- {
- undo_interp = phdr.p32[i].p_vaddr;
- break;
- }
- }
- else
- {
- for (uint_fast16_t i = 0; i < phnum; ++i)
- if (phdr.p64[i].p_type == PT_INTERP)
- {
- undo_interp = phdr.p64[i].p_vaddr;
- break;
- }
- }
- }
-
- if (unlikely ((main_interp == 0) != (undo_interp == 0)))
- return DWFL_E_BAD_PRELINK;
-
- src.d_buf += src.d_size;
- src.d_type = ELF_T_SHDR;
- src.d_size = gelf_fsize (mod->main.elf, ELF_T_SHDR, shnum - 1, EV_CURRENT);
-
- union
- {
- Elf32_Shdr s32[shnum - 1];
- Elf64_Shdr s64[shnum - 1];
- } shdr;
- dst.d_buf = &shdr;
- dst.d_size = sizeof shdr;
- if (unlikely (gelf_xlatetom (mod->main.elf, &dst, &src,
- ehdr.e32.e_ident[EI_DATA]) == NULL))
- return DWFL_E_LIBELF;
-
- /* Now we can look at the original section headers of the main file
- before it was prelinked. First we'll apply our method to the main
- file sections as they are after prelinking, to calculate the
- synchronization address of the main file. Then we'll apply that
- same method to the saved section headers, to calculate the matching
- synchronization address of the debug file.
-
- The method is to consider SHF_ALLOC sections that are either
- SHT_PROGBITS or SHT_NOBITS, excluding the section whose sh_addr
- matches the PT_INTERP p_vaddr. The special sections that can be
- moved by prelink have other types, except for .interp (which
- becomes PT_INTERP). The "real" sections cannot move as such, but
- .bss can be split into .dynbss and .bss, with the total memory
- image remaining the same but being spread across the two sections.
- So we consider the highest section end, which still matches up. */
-
- GElf_Addr highest;
-
- inline void consider_shdr (GElf_Addr interp,
- GElf_Word sh_type,
- GElf_Xword sh_flags,
- GElf_Addr sh_addr,
- GElf_Xword sh_size)
- {
- if ((sh_flags & SHF_ALLOC)
- && ((sh_type == SHT_PROGBITS && sh_addr != interp)
- || sh_type == SHT_NOBITS))
- {
- const GElf_Addr sh_end = sh_addr + sh_size;
- if (sh_end > highest)
- highest = sh_end;
- }
- }
-
- highest = 0;
- scn = NULL;
- while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
- {
- GElf_Shdr sh_mem;
- GElf_Shdr *sh = gelf_getshdr (scn, &sh_mem);
- if (unlikely (sh == NULL))
- return DWFL_E_LIBELF;
- consider_shdr (main_interp, sh->sh_type, sh->sh_flags,
- sh->sh_addr, sh->sh_size);
- }
- if (highest > mod->main.vaddr)
- {
- mod->main.address_sync = highest;
-
- highest = 0;
- if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32)
- for (size_t i = 0; i < shnum - 1; ++i)
- consider_shdr (undo_interp, shdr.s32[i].sh_type, shdr.s32[i].sh_flags,
- shdr.s32[i].sh_addr, shdr.s32[i].sh_size);
- else
- for (size_t i = 0; i < shnum - 1; ++i)
- consider_shdr (undo_interp, shdr.s64[i].sh_type, shdr.s64[i].sh_flags,
- shdr.s64[i].sh_addr, shdr.s64[i].sh_size);
-
- if (highest > file->vaddr)
- file->address_sync = highest;
- else
- return DWFL_E_BAD_PRELINK;
- }
-
- return DWFL_E_NOERROR;
-}
-
-/* Find the separate debuginfo file for this module and open libelf on it.
- When we return success, MOD->debug is set up. */
-static Dwfl_Error
-find_debuginfo (Dwfl_Module *mod)
-{
- if (mod->debug.elf != NULL)
- return DWFL_E_NOERROR;
-
- GElf_Word debuglink_crc = 0;
- const char *debuglink_file;
- debuglink_file = INTUSE(dwelf_elf_gnu_debuglink) (mod->main.elf,
- &debuglink_crc);
-
- mod->debug.fd = (*mod->dwfl->callbacks->find_debuginfo) (MODCB_ARGS (mod),
- mod->main.name,
- debuglink_file,
- debuglink_crc,
- &mod->debug.name);
- Dwfl_Error result = open_elf (mod, &mod->debug);
- if (result == DWFL_E_NOERROR && mod->debug.address_sync != 0)
- result = find_prelink_address_sync (mod, &mod->debug);
- return result;
-}
-
-/* Try to find the alternative debug link for the given DWARF and set
- it if found. Only called when mod->dw is already setup but still
- might need an alternative (dwz multi) debug file. filename is either
- the main or debug name from which the Dwarf was created. */
-static void
-find_debug_altlink (Dwfl_Module *mod, const char *filename)
-{
- assert (mod->dw != NULL);
-
- const char *altname;
- const void *build_id;
- ssize_t build_id_len = INTUSE(dwelf_dwarf_gnu_debugaltlink) (mod->dw,
- &altname,
- &build_id);
-
- if (build_id_len > 0)
- {
- /* We could store altfile in the module, but don't really need it. */
- char *altfile = NULL;
- mod->alt_fd = (*mod->dwfl->callbacks->find_debuginfo) (MODCB_ARGS (mod),
- filename,
- altname,
- 0,
- &altfile);
-
- /* The (internal) callbacks might just set mod->alt_elf directly
- because they open the Elf anyway for sanity checking.
- Otherwise open either the given file name or use the fd
- returned. */
- Dwfl_Error error = open_elf_file (&mod->alt_elf, &mod->alt_fd,
- &altfile);
- if (error == DWFL_E_NOERROR)
- {
- mod->alt = INTUSE(dwarf_begin_elf) (mod->alt_elf,
- DWARF_C_READ, NULL);
- if (mod->alt == NULL)
- {
- elf_end (mod->alt_elf);
- mod->alt_elf = NULL;
- close (mod->alt_fd);
- mod->alt_fd = -1;
- }
- else
- dwarf_setalt (mod->dw, mod->alt);
- }
-
- free (altfile); /* See above, we don't really need it. */
- }
-}
-
-/* Try to find a symbol table in FILE.
- Returns DWFL_E_NOERROR if a proper one is found.
- Returns DWFL_E_NO_SYMTAB if not, but still sets results for SHT_DYNSYM. */
-static Dwfl_Error
-load_symtab (struct dwfl_file *file, struct dwfl_file **symfile,
- Elf_Scn **symscn, Elf_Scn **xndxscn,
- size_t *syments, int *first_global, GElf_Word *strshndx)
-{
- bool symtab = false;
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (file->elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr != NULL)
- switch (shdr->sh_type)
- {
- case SHT_SYMTAB:
- if (shdr->sh_entsize == 0)
- break;
- symtab = true;
- *symscn = scn;
- *symfile = file;
- *strshndx = shdr->sh_link;
- *syments = shdr->sh_size / shdr->sh_entsize;
- *first_global = shdr->sh_info;
- if (*xndxscn != NULL)
- return DWFL_E_NOERROR;
- break;
-
- case SHT_DYNSYM:
- if (symtab)
- break;
- /* Use this if need be, but keep looking for SHT_SYMTAB. */
- if (shdr->sh_entsize == 0)
- break;
- *symscn = scn;
- *symfile = file;
- *strshndx = shdr->sh_link;
- *syments = shdr->sh_size / shdr->sh_entsize;
- *first_global = shdr->sh_info;
- break;
-
- case SHT_SYMTAB_SHNDX:
- *xndxscn = scn;
- if (symtab)
- return DWFL_E_NOERROR;
- break;
-
- default:
- break;
- }
- }
-
- if (symtab)
- /* We found one, though no SHT_SYMTAB_SHNDX to go with it. */
- return DWFL_E_NOERROR;
-
- /* We found no SHT_SYMTAB, so any SHT_SYMTAB_SHNDX was bogus.
- We might have found an SHT_DYNSYM and set *SYMSCN et al though. */
- *xndxscn = NULL;
- return DWFL_E_NO_SYMTAB;
-}
-
-
-/* Translate addresses into file offsets.
- OFFS[*] start out zero and remain zero if unresolved. */
-static void
-find_offsets (Elf *elf, GElf_Addr main_bias, size_t phnum, size_t n,
- GElf_Addr addrs[n], GElf_Off offs[n])
-{
- size_t unsolved = n;
- for (size_t i = 0; i < phnum; ++i)
- {
- GElf_Phdr phdr_mem;
- GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
- if (phdr != NULL && phdr->p_type == PT_LOAD && phdr->p_memsz > 0)
- for (size_t j = 0; j < n; ++j)
- if (offs[j] == 0
- && addrs[j] >= phdr->p_vaddr + main_bias
- && addrs[j] - (phdr->p_vaddr + main_bias) < phdr->p_filesz)
- {
- offs[j] = addrs[j] - (phdr->p_vaddr + main_bias) + phdr->p_offset;
- if (--unsolved == 0)
- break;
- }
- }
-}
-
-/* Try to find a dynamic symbol table via phdrs. */
-static void
-find_dynsym (Dwfl_Module *mod)
-{
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr = gelf_getehdr (mod->main.elf, &ehdr_mem);
-
- size_t phnum;
- if (unlikely (elf_getphdrnum (mod->main.elf, &phnum) != 0))
- return;
-
- for (size_t i = 0; i < phnum; ++i)
- {
- GElf_Phdr phdr_mem;
- GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem);
- if (phdr == NULL)
- break;
-
- if (phdr->p_type == PT_DYNAMIC)
- {
- /* Examine the dynamic section for the pointers we need. */
-
- Elf_Data *data = elf_getdata_rawchunk (mod->main.elf,
- phdr->p_offset, phdr->p_filesz,
- ELF_T_DYN);
- if (data == NULL)
- continue;
-
- enum
- {
- i_symtab,
- i_strtab,
- i_hash,
- i_gnu_hash,
- i_max
- };
- GElf_Addr addrs[i_max] = { 0, };
- GElf_Xword strsz = 0;
- size_t n = data->d_size / gelf_fsize (mod->main.elf,
- ELF_T_DYN, 1, EV_CURRENT);
- for (size_t j = 0; j < n; ++j)
- {
- GElf_Dyn dyn_mem;
- GElf_Dyn *dyn = gelf_getdyn (data, j, &dyn_mem);
- if (dyn != NULL)
- switch (dyn->d_tag)
- {
- case DT_SYMTAB:
- addrs[i_symtab] = dyn->d_un.d_ptr;
- continue;
-
- case DT_HASH:
- addrs[i_hash] = dyn->d_un.d_ptr;
- continue;
-
- case DT_GNU_HASH:
- addrs[i_gnu_hash] = dyn->d_un.d_ptr;
- continue;
-
- case DT_STRTAB:
- addrs[i_strtab] = dyn->d_un.d_ptr;
- continue;
-
- case DT_STRSZ:
- strsz = dyn->d_un.d_val;
- continue;
-
- default:
- continue;
-
- case DT_NULL:
- break;
- }
- break;
- }
-
- /* Translate pointers into file offsets. ADJUST is either zero
- in case the dynamic segment wasn't adjusted or mod->main_bias. */
- void translate_offs (GElf_Addr adjust)
- {
- GElf_Off offs[i_max] = { 0, };
- find_offsets (mod->main.elf, adjust, phnum, i_max, addrs, offs);
-
- /* Figure out the size of the symbol table. */
- if (offs[i_hash] != 0)
- {
- /* In the original format, .hash says the size of .dynsym. */
-
- size_t entsz = SH_ENTSIZE_HASH (ehdr);
- data = elf_getdata_rawchunk (mod->main.elf,
- offs[i_hash] + entsz, entsz,
- entsz == 4 ? ELF_T_WORD
- : ELF_T_XWORD);
- if (data != NULL)
- mod->syments = (entsz == 4
- ? *(const GElf_Word *) data->d_buf
- : *(const GElf_Xword *) data->d_buf);
- }
- if (offs[i_gnu_hash] != 0 && mod->syments == 0)
- {
- /* In the new format, we can derive it with some work. */
-
- const struct
- {
- Elf32_Word nbuckets;
- Elf32_Word symndx;
- Elf32_Word maskwords;
- Elf32_Word shift2;
- } *header;
-
- data = elf_getdata_rawchunk (mod->main.elf, offs[i_gnu_hash],
- sizeof *header, ELF_T_WORD);
- if (data != NULL)
- {
- header = data->d_buf;
- Elf32_Word nbuckets = header->nbuckets;
- Elf32_Word symndx = header->symndx;
- GElf_Off buckets_at = (offs[i_gnu_hash] + sizeof *header
- + (gelf_getclass (mod->main.elf)
- * sizeof (Elf32_Word)
- * header->maskwords));
-
- // elf_getdata_rawchunk takes a size_t, make sure it
- // doesn't overflow.
-#if SIZE_MAX <= UINT32_MAX
- if (nbuckets > SIZE_MAX / sizeof (Elf32_Word))
- data = NULL;
- else
-#endif
- data
- = elf_getdata_rawchunk (mod->main.elf, buckets_at,
- nbuckets * sizeof (Elf32_Word),
- ELF_T_WORD);
- if (data != NULL && symndx < nbuckets)
- {
- const Elf32_Word *const buckets = data->d_buf;
- Elf32_Word maxndx = symndx;
- for (Elf32_Word bucket = 0; bucket < nbuckets; ++bucket)
- if (buckets[bucket] > maxndx)
- maxndx = buckets[bucket];
-
- GElf_Off hasharr_at = (buckets_at
- + nbuckets * sizeof (Elf32_Word));
- hasharr_at += (maxndx - symndx) * sizeof (Elf32_Word);
- do
- {
- data = elf_getdata_rawchunk (mod->main.elf,
- hasharr_at,
- sizeof (Elf32_Word),
- ELF_T_WORD);
- if (data != NULL
- && (*(const Elf32_Word *) data->d_buf & 1u))
- {
- mod->syments = maxndx + 1;
- break;
- }
- ++maxndx;
- hasharr_at += sizeof (Elf32_Word);
- } while (data != NULL);
- }
- }
- }
- if (offs[i_strtab] > offs[i_symtab] && mod->syments == 0)
- mod->syments = ((offs[i_strtab] - offs[i_symtab])
- / gelf_fsize (mod->main.elf,
- ELF_T_SYM, 1, EV_CURRENT));
-
- if (mod->syments > 0)
- {
- mod->symdata = elf_getdata_rawchunk (mod->main.elf,
- offs[i_symtab],
- gelf_fsize (mod->main.elf,
- ELF_T_SYM,
- mod->syments,
- EV_CURRENT),
- ELF_T_SYM);
- if (mod->symdata != NULL)
- {
- mod->symstrdata = elf_getdata_rawchunk (mod->main.elf,
- offs[i_strtab],
- strsz,
- ELF_T_BYTE);
- if (mod->symstrdata == NULL)
- mod->symdata = NULL;
- }
- if (mod->symdata == NULL)
- mod->symerr = DWFL_E (LIBELF, elf_errno ());
- else
- {
- mod->symfile = &mod->main;
- mod->symerr = DWFL_E_NOERROR;
- }
- }
- }
-
- /* First try unadjusted, like ELF files from disk, vdso.
- Then try for already adjusted dynamic section, like ELF
- from remote memory. */
- translate_offs (0);
- if (mod->symfile == NULL)
- translate_offs (mod->main_bias);
-
- return;
- }
- }
-}
-
-
-#if USE_LZMA
-/* Try to find the offset between the main file and .gnu_debugdata. */
-static bool
-find_aux_address_sync (Dwfl_Module *mod)
-{
- /* Don't trust the phdrs in the minisymtab elf file to be setup correctly.
- The address_sync is equal to the main file it is embedded in at first. */
- mod->aux_sym.address_sync = mod->main.address_sync;
-
- /* Adjust address_sync for the difference in entry addresses, attempting to
- account for ELF relocation changes after aux was split. */
- GElf_Ehdr ehdr_main, ehdr_aux;
- if (unlikely (gelf_getehdr (mod->main.elf, &ehdr_main) == NULL)
- || unlikely (gelf_getehdr (mod->aux_sym.elf, &ehdr_aux) == NULL))
- return false;
- mod->aux_sym.address_sync += ehdr_aux.e_entry - ehdr_main.e_entry;
-
- /* The shdrs are setup OK to make find_prelink_address_sync () do the right
- thing, which is possibly more reliable, but it needs .gnu.prelink_undo. */
- if (mod->aux_sym.address_sync != 0)
- return find_prelink_address_sync (mod, &mod->aux_sym) == DWFL_E_NOERROR;
-
- return true;
-}
-#endif
-
-/* Try to find the auxiliary symbol table embedded in the main elf file
- section .gnu_debugdata. Only matters if the symbol information comes
- from the main file dynsym. No harm done if not found. */
-static void
-find_aux_sym (Dwfl_Module *mod __attribute__ ((unused)),
- Elf_Scn **aux_symscn __attribute__ ((unused)),
- Elf_Scn **aux_xndxscn __attribute__ ((unused)),
- GElf_Word *aux_strshndx __attribute__ ((unused)))
-{
- /* Since a .gnu_debugdata section is compressed using lzma don't do
- anything unless we have support for that. */
-#if USE_LZMA
- Elf *elf = mod->main.elf;
-
- size_t shstrndx;
- if (elf_getshdrstrndx (elf, &shstrndx) < 0)
- return;
-
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- return;
-
- const char *name = elf_strptr (elf, shstrndx, shdr->sh_name);
- if (name == NULL)
- return;
-
- if (!strcmp (name, ".gnu_debugdata"))
- break;
- }
-
- if (scn == NULL)
- return;
-
- /* Found the .gnu_debugdata section. Uncompress the lzma image and
- turn it into an ELF image. */
- Elf_Data *rawdata = elf_rawdata (scn, NULL);
- if (rawdata == NULL)
- return;
-
- Dwfl_Error error;
- void *buffer = NULL;
- size_t size = 0;
- error = __libdw_unlzma (-1, 0, rawdata->d_buf, rawdata->d_size,
- &buffer, &size);
- if (error == DWFL_E_NOERROR)
- {
- if (unlikely (size == 0))
- free (buffer);
- else
- {
- mod->aux_sym.elf = elf_memory (buffer, size);
- if (mod->aux_sym.elf == NULL)
- free (buffer);
- else
- {
- mod->aux_sym.fd = -1;
- mod->aux_sym.elf->flags |= ELF_F_MALLOCED;
- if (open_elf (mod, &mod->aux_sym) != DWFL_E_NOERROR)
- return;
- if (! find_aux_address_sync (mod))
- {
- elf_end (mod->aux_sym.elf);
- mod->aux_sym.elf = NULL;
- return;
- }
-
- /* So far, so good. Get minisymtab table data and cache it. */
- bool minisymtab = false;
- scn = NULL;
- while ((scn = elf_nextscn (mod->aux_sym.elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr != NULL)
- switch (shdr->sh_type)
- {
- case SHT_SYMTAB:
- minisymtab = true;
- *aux_symscn = scn;
- *aux_strshndx = shdr->sh_link;
- mod->aux_syments = shdr->sh_size / shdr->sh_entsize;
- mod->aux_first_global = shdr->sh_info;
- if (*aux_xndxscn != NULL)
- return;
- break;
-
- case SHT_SYMTAB_SHNDX:
- *aux_xndxscn = scn;
- if (minisymtab)
- return;
- break;
-
- default:
- break;
- }
- }
-
- if (minisymtab)
- /* We found one, though no SHT_SYMTAB_SHNDX to go with it. */
- return;
-
- /* We found no SHT_SYMTAB, so everything else is bogus. */
- *aux_xndxscn = NULL;
- *aux_strshndx = 0;
- mod->aux_syments = 0;
- elf_end (mod->aux_sym.elf);
- mod->aux_sym.elf = NULL;
- return;
- }
- }
- }
- else
- free (buffer);
-#endif
-}
-
-/* Try to find a symbol table in either MOD->main.elf or MOD->debug.elf. */
-static void
-find_symtab (Dwfl_Module *mod)
-{
- if (mod->symdata != NULL || mod->aux_symdata != NULL /* Already done. */
- || mod->symerr != DWFL_E_NOERROR) /* Cached previous failure. */
- return;
-
- __libdwfl_getelf (mod);
- mod->symerr = mod->elferr;
- if (mod->symerr != DWFL_E_NOERROR)
- return;
-
- /* First see if the main ELF file has the debugging information. */
- Elf_Scn *symscn = NULL, *xndxscn = NULL;
- Elf_Scn *aux_symscn = NULL, *aux_xndxscn = NULL;
- GElf_Word strshndx, aux_strshndx = 0;
- mod->symerr = load_symtab (&mod->main, &mod->symfile, &symscn,
- &xndxscn, &mod->syments, &mod->first_global,
- &strshndx);
- switch (mod->symerr)
- {
- default:
- return;
-
- case DWFL_E_NOERROR:
- break;
-
- case DWFL_E_NO_SYMTAB:
- /* Now we have to look for a separate debuginfo file. */
- mod->symerr = find_debuginfo (mod);
- switch (mod->symerr)
- {
- default:
- return;
-
- case DWFL_E_NOERROR:
- mod->symerr = load_symtab (&mod->debug, &mod->symfile, &symscn,
- &xndxscn, &mod->syments,
- &mod->first_global, &strshndx);
- break;
-
- case DWFL_E_CB: /* The find_debuginfo hook failed. */
- mod->symerr = DWFL_E_NO_SYMTAB;
- break;
- }
-
- switch (mod->symerr)
- {
- default:
- return;
-
- case DWFL_E_NOERROR:
- break;
-
- case DWFL_E_NO_SYMTAB:
- /* There might be an auxiliary table. */
- find_aux_sym (mod, &aux_symscn, &aux_xndxscn, &aux_strshndx);
-
- if (symscn != NULL)
- {
- /* We still have the dynamic symbol table. */
- mod->symerr = DWFL_E_NOERROR;
- break;
- }
-
- if (aux_symscn != NULL)
- {
- /* We still have the auxiliary symbol table. */
- mod->symerr = DWFL_E_NOERROR;
- goto aux_cache;
- }
-
- /* Last ditch, look for dynamic symbols without section headers. */
- find_dynsym (mod);
- return;
- }
- break;
- }
-
- /* This does some sanity checks on the string table section. */
- if (elf_strptr (mod->symfile->elf, strshndx, 0) == NULL)
- {
- elferr:
- mod->symerr = DWFL_E (LIBELF, elf_errno ());
- goto aux_cleanup; /* This cleans up some more and tries find_dynsym. */
- }
-
- /* Cache the data; MOD->syments and MOD->first_global were set above. */
-
- mod->symstrdata = elf_getdata (elf_getscn (mod->symfile->elf, strshndx),
- NULL);
- if (mod->symstrdata == NULL || mod->symstrdata->d_buf == NULL)
- goto elferr;
-
- if (xndxscn == NULL)
- mod->symxndxdata = NULL;
- else
- {
- mod->symxndxdata = elf_getdata (xndxscn, NULL);
- if (mod->symxndxdata == NULL || mod->symxndxdata->d_buf == NULL)
- goto elferr;
- }
-
- mod->symdata = elf_getdata (symscn, NULL);
- if (mod->symdata == NULL || mod->symdata->d_buf == NULL)
- goto elferr;
-
- // Sanity check number of symbols.
- GElf_Shdr shdr_mem, *shdr = gelf_getshdr (symscn, &shdr_mem);
- if (mod->syments > mod->symdata->d_size / shdr->sh_entsize
- || (size_t) mod->first_global > mod->syments)
- goto elferr;
-
- /* Cache any auxiliary symbol info, when it fails, just ignore aux_sym. */
- if (aux_symscn != NULL)
- {
- aux_cache:
- /* This does some sanity checks on the string table section. */
- if (elf_strptr (mod->aux_sym.elf, aux_strshndx, 0) == NULL)
- {
- aux_cleanup:
- mod->aux_syments = 0;
- elf_end (mod->aux_sym.elf);
- mod->aux_sym.elf = NULL;
- /* We thought we had something through shdrs, but it failed...
- Last ditch, look for dynamic symbols without section headers. */
- find_dynsym (mod);
- return;
- }
-
- mod->aux_symstrdata = elf_getdata (elf_getscn (mod->aux_sym.elf,
- aux_strshndx),
- NULL);
- if (mod->aux_symstrdata == NULL || mod->aux_symstrdata->d_buf == NULL)
- goto aux_cleanup;
-
- if (aux_xndxscn == NULL)
- mod->aux_symxndxdata = NULL;
- else
- {
- mod->aux_symxndxdata = elf_getdata (aux_xndxscn, NULL);
- if (mod->aux_symxndxdata == NULL
- || mod->aux_symxndxdata->d_buf == NULL)
- goto aux_cleanup;
- }
-
- mod->aux_symdata = elf_getdata (aux_symscn, NULL);
- if (mod->aux_symdata == NULL || mod->aux_symdata->d_buf == NULL)
- goto aux_cleanup;
-
- // Sanity check number of aux symbols.
- shdr = gelf_getshdr (aux_symscn, &shdr_mem);
- if (mod->aux_syments > mod->aux_symdata->d_size / shdr->sh_entsize
- || (size_t) mod->aux_first_global > mod->aux_syments)
- goto aux_cleanup;
- }
-}
-
-
-/* Try to open a libebl backend for MOD. */
-Dwfl_Error
-internal_function
-__libdwfl_module_getebl (Dwfl_Module *mod)
-{
- if (mod->ebl == NULL)
- {
- __libdwfl_getelf (mod);
- if (mod->elferr != DWFL_E_NOERROR)
- return mod->elferr;
-
- mod->ebl = ebl_openbackend (mod->main.elf);
- if (mod->ebl == NULL)
- return DWFL_E_LIBEBL;
- }
- return DWFL_E_NOERROR;
-}
-
-/* Try to start up libdw on DEBUGFILE. */
-static Dwfl_Error
-load_dw (Dwfl_Module *mod, struct dwfl_file *debugfile)
-{
- if (mod->e_type == ET_REL && !debugfile->relocated)
- {
- const Dwfl_Callbacks *const cb = mod->dwfl->callbacks;
-
- /* The debugging sections have to be relocated. */
- if (cb->section_address == NULL)
- return DWFL_E_NOREL;
-
- Dwfl_Error error = __libdwfl_module_getebl (mod);
- if (error != DWFL_E_NOERROR)
- return error;
-
- find_symtab (mod);
- Dwfl_Error result = mod->symerr;
- if (result == DWFL_E_NOERROR)
- result = __libdwfl_relocate (mod, debugfile->elf, true);
- if (result != DWFL_E_NOERROR)
- return result;
-
- /* Don't keep the file descriptors around. */
- if (mod->main.fd != -1 && elf_cntl (mod->main.elf, ELF_C_FDREAD) == 0)
- {
- close (mod->main.fd);
- mod->main.fd = -1;
- }
- if (debugfile->fd != -1 && elf_cntl (debugfile->elf, ELF_C_FDREAD) == 0)
- {
- close (debugfile->fd);
- debugfile->fd = -1;
- }
- }
-
- mod->dw = INTUSE(dwarf_begin_elf) (debugfile->elf, DWARF_C_READ, NULL);
- if (mod->dw == NULL)
- {
- int err = INTUSE(dwarf_errno) ();
- return err == DWARF_E_NO_DWARF ? DWFL_E_NO_DWARF : DWFL_E (LIBDW, err);
- }
-
- /* Until we have iterated through all CU's, we might do lazy lookups. */
- mod->lazycu = 1;
-
- return DWFL_E_NOERROR;
-}
-
-/* Try to start up libdw on either the main file or the debuginfo file. */
-static void
-find_dw (Dwfl_Module *mod)
-{
- if (mod->dw != NULL /* Already done. */
- || mod->dwerr != DWFL_E_NOERROR) /* Cached previous failure. */
- return;
-
- __libdwfl_getelf (mod);
- mod->dwerr = mod->elferr;
- if (mod->dwerr != DWFL_E_NOERROR)
- return;
-
- /* First see if the main ELF file has the debugging information. */
- mod->dwerr = load_dw (mod, &mod->main);
- switch (mod->dwerr)
- {
- case DWFL_E_NOERROR:
- mod->debug.elf = mod->main.elf;
- mod->debug.address_sync = mod->main.address_sync;
-
- /* The Dwarf might need an alt debug file, find that now after
- everything about the debug file has been setup (the
- find_debuginfo callback might need it). */
- find_debug_altlink (mod, mod->main.name);
- return;
-
- case DWFL_E_NO_DWARF:
- break;
-
- default:
- goto canonicalize;
- }
-
- /* Now we have to look for a separate debuginfo file. */
- mod->dwerr = find_debuginfo (mod);
- switch (mod->dwerr)
- {
- case DWFL_E_NOERROR:
- mod->dwerr = load_dw (mod, &mod->debug);
- if (mod->dwerr == DWFL_E_NOERROR)
- {
- /* The Dwarf might need an alt debug file, find that now after
- everything about the debug file has been setup (the
- find_debuginfo callback might need it). */
- find_debug_altlink (mod, mod->debug.name);
- return;
- }
-
- break;
-
- case DWFL_E_CB: /* The find_debuginfo hook failed. */
- mod->dwerr = DWFL_E_NO_DWARF;
- return;
-
- default:
- break;
- }
-
- canonicalize:
- mod->dwerr = __libdwfl_canon_error (mod->dwerr);
-}
-
-Dwarf *
-dwfl_module_getdwarf (Dwfl_Module *mod, Dwarf_Addr *bias)
-{
- if (mod == NULL)
- return NULL;
-
- find_dw (mod);
- if (mod->dwerr == DWFL_E_NOERROR)
- {
- /* If dwfl_module_getelf was used previously, then partial apply
- relocation to miscellaneous sections in the debug file too. */
- if (mod->e_type == ET_REL
- && mod->main.relocated && ! mod->debug.relocated)
- {
- mod->debug.relocated = true;
- if (mod->debug.elf != mod->main.elf)
- (void) __libdwfl_relocate (mod, mod->debug.elf, false);
- }
-
- *bias = dwfl_adjusted_dwarf_addr (mod, 0);
- return mod->dw;
- }
-
- __libdwfl_seterrno (mod->dwerr);
- return NULL;
-}
-INTDEF (dwfl_module_getdwarf)
-
-int
-dwfl_module_getsymtab (Dwfl_Module *mod)
-{
- if (mod == NULL)
- return -1;
-
- find_symtab (mod);
- if (mod->symerr == DWFL_E_NOERROR)
- /* We will skip the auxiliary zero entry if there is another one. */
- return (mod->syments + mod->aux_syments
- - (mod->syments > 0 && mod->aux_syments > 0 ? 1 : 0));
-
- __libdwfl_seterrno (mod->symerr);
- return -1;
-}
-INTDEF (dwfl_module_getsymtab)
-
-int
-dwfl_module_getsymtab_first_global (Dwfl_Module *mod)
-{
- if (mod == NULL)
- return -1;
-
- find_symtab (mod);
- if (mod->symerr == DWFL_E_NOERROR)
- {
- /* All local symbols should come before all global symbols. If
- we have an auxiliary table make sure all the main locals come
- first, then all aux locals, then all main globals and finally all
- aux globals. And skip the auxiliary table zero undefined
- entry. */
- int skip_aux_zero = (mod->syments > 0 && mod->aux_syments > 0) ? 1 : 0;
- return mod->first_global + mod->aux_first_global - skip_aux_zero;
- }
-
- __libdwfl_seterrno (mod->symerr);
- return -1;
-}
-INTDEF (dwfl_module_getsymtab_first_global)
diff --git a/src/libdwfl/dwfl_module_getelf.c b/src/libdwfl/dwfl_module_getelf.c
deleted file mode 100644
index f20fb042..00000000
--- a/src/libdwfl/dwfl_module_getelf.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Find debugging and symbol information for a module in libdwfl.
- Copyright (C) 2009-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Elf *
-dwfl_module_getelf (Dwfl_Module *mod, GElf_Addr *loadbase)
-{
- if (mod == NULL)
- return NULL;
-
- __libdwfl_getelf (mod);
- if (mod->elferr == DWFL_E_NOERROR)
- {
- if (mod->e_type == ET_REL && ! mod->main.relocated)
- {
- /* Before letting them get at the Elf handle,
- apply all the relocations we know how to. */
-
- mod->main.relocated = true;
- if (likely (__libdwfl_module_getebl (mod) == DWFL_E_NOERROR))
- {
- (void) __libdwfl_relocate (mod, mod->main.elf, false);
-
- if (mod->debug.elf == mod->main.elf)
- mod->debug.relocated = true;
- else if (mod->debug.elf != NULL && ! mod->debug.relocated)
- {
- mod->debug.relocated = true;
- (void) __libdwfl_relocate (mod, mod->debug.elf, false);
- }
- }
- }
-
- *loadbase = dwfl_adjusted_address (mod, 0);
- return mod->main.elf;
- }
-
- __libdwfl_seterrno (mod->elferr);
- return NULL;
-}
-INTDEF (dwfl_module_getelf)
diff --git a/src/libdwfl/dwfl_module_getsrc.c b/src/libdwfl/dwfl_module_getsrc.c
deleted file mode 100644
index f6d88390..00000000
--- a/src/libdwfl/dwfl_module_getsrc.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Find source location for PC address in module.
- Copyright (C) 2005, 2008, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "../libdw/libdwP.h"
-
-Dwfl_Line *
-dwfl_module_getsrc (Dwfl_Module *mod, Dwarf_Addr addr)
-{
- Dwarf_Addr bias;
- if (INTUSE(dwfl_module_getdwarf) (mod, &bias) == NULL)
- return NULL;
-
- struct dwfl_cu *cu;
- Dwfl_Error error = __libdwfl_addrcu (mod, addr, &cu);
- if (likely (error == DWFL_E_NOERROR))
- error = __libdwfl_cu_getsrclines (cu);
- if (likely (error == DWFL_E_NOERROR))
- {
- Dwarf_Lines *lines = cu->die.cu->lines;
- size_t nlines = lines->nlines;
- if (nlines > 0)
- {
- /* This is guaranteed for us by libdw read_srclines. */
- assert(lines->info[nlines - 1].end_sequence);
-
- /* Now we look at the module-relative address. */
- addr -= bias;
-
- /* The lines are sorted by address, so we can use binary search. */
- size_t l = 0, u = nlines - 1;
- while (l < u)
- {
- size_t idx = u - (u - l) / 2;
- Dwarf_Line *line = &lines->info[idx];
- if (addr < line->addr)
- u = idx - 1;
- else
- l = idx;
- }
-
- /* The last line which is less than or equal to addr is what we want,
- except with an end_sequence which can only be strictly equal. */
- Dwarf_Line *line = &lines->info[l];
- if (line->addr == addr
- || (! line->end_sequence && line->addr < addr))
- return &cu->lines->idx[l];
- }
-
- error = DWFL_E_ADDR_OUTOFRANGE;
- }
-
- __libdwfl_seterrno (error);
- return NULL;
-}
-INTDEF (dwfl_module_getsrc)
diff --git a/src/libdwfl/dwfl_module_getsrc_file.c b/src/libdwfl/dwfl_module_getsrc_file.c
deleted file mode 100644
index 20aa8a5f..00000000
--- a/src/libdwfl/dwfl_module_getsrc_file.c
+++ /dev/null
@@ -1,167 +0,0 @@
-/* Find matching source locations in a module.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "../libdw/libdwP.h"
-
-
-int
-dwfl_module_getsrc_file (Dwfl_Module *mod,
- const char *fname, int lineno, int column,
- Dwfl_Line ***srcsp, size_t *nsrcs)
-{
- if (mod == NULL)
- return -1;
-
- if (mod->dw == NULL)
- {
- Dwarf_Addr bias;
- if (INTUSE(dwfl_module_getdwarf) (mod, &bias) == NULL)
- return -1;
- }
-
- bool is_basename = strchr (fname, '/') == NULL;
-
- size_t max_match = *nsrcs ?: ~0u;
- size_t act_match = *nsrcs;
- size_t cur_match = 0;
- Dwfl_Line **match = *nsrcs == 0 ? NULL : *srcsp;
-
- struct dwfl_cu *cu = NULL;
- Dwfl_Error error;
- while ((error = __libdwfl_nextcu (mod, cu, &cu)) == DWFL_E_NOERROR
- && cu != NULL
- && (error = __libdwfl_cu_getsrclines (cu)) == DWFL_E_NOERROR)
- {
- inline const char *INTUSE(dwarf_line_file) (const Dwarf_Line *line)
- {
- return line->files->info[line->file].name;
- }
- inline Dwarf_Line *dwfl_line (const Dwfl_Line *line)
- {
- return &dwfl_linecu (line)->die.cu->lines->info[line->idx];
- }
- inline const char *dwfl_line_file (const Dwfl_Line *line)
- {
- return INTUSE(dwarf_line_file) (dwfl_line (line));
- }
-
- /* Search through all the line number records for a matching
- file and line/column number. If any of the numbers is zero,
- no match is performed. */
- const char *lastfile = NULL;
- bool lastmatch = false;
- for (size_t cnt = 0; cnt < cu->die.cu->lines->nlines; ++cnt)
- {
- Dwarf_Line *line = &cu->die.cu->lines->info[cnt];
-
- if (unlikely (line->file >= line->files->nfiles))
- {
- __libdwfl_seterrno (DWFL_E (LIBDW, DWARF_E_INVALID_DWARF));
- return -1;
- }
- else
- {
- const char *file = INTUSE(dwarf_line_file) (line);
- if (file != lastfile)
- {
- /* Match the name with the name the user provided. */
- lastfile = file;
- lastmatch = !strcmp (is_basename ? basename (file) : file,
- fname);
- }
- }
- if (!lastmatch)
- continue;
-
- /* See whether line and possibly column match. */
- if (lineno != 0
- && (lineno > line->line
- || (column != 0 && column > line->column)))
- /* Cannot match. */
- continue;
-
- /* Determine whether this is the best match so far. */
- size_t inner;
- for (inner = 0; inner < cur_match; ++inner)
- if (dwfl_line_file (match[inner])
- == INTUSE(dwarf_line_file) (line))
- break;
- if (inner < cur_match
- && (dwfl_line (match[inner])->line != line->line
- || dwfl_line (match[inner])->line != lineno
- || (column != 0
- && (dwfl_line (match[inner])->column != line->column
- || dwfl_line (match[inner])->column != column))))
- {
- /* We know about this file already. If this is a better
- match for the line number, use it. */
- if (dwfl_line (match[inner])->line >= line->line
- && (dwfl_line (match[inner])->line != line->line
- || dwfl_line (match[inner])->column >= line->column))
- /* Use the new line. Otherwise the old one. */
- match[inner] = &cu->lines->idx[cnt];
- continue;
- }
-
- if (cur_match < max_match)
- {
- if (cur_match == act_match)
- {
- /* Enlarge the array for the results. */
- act_match += 10;
- Dwfl_Line **newp = realloc (match,
- act_match
- * sizeof (Dwfl_Line *));
- if (newp == NULL)
- {
- free (match);
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
- match = newp;
- }
-
- match[cur_match++] = &cu->lines->idx[cnt];
- }
- }
- }
-
- if (cur_match > 0)
- {
- assert (*nsrcs == 0 || *srcsp == match);
-
- *nsrcs = cur_match;
- *srcsp = match;
-
- return 0;
- }
-
- __libdwfl_seterrno (DWFL_E_NO_MATCH);
- return -1;
-}
diff --git a/src/libdwfl/dwfl_module_getsym.c b/src/libdwfl/dwfl_module_getsym.c
deleted file mode 100644
index 42d2b679..00000000
--- a/src/libdwfl/dwfl_module_getsym.c
+++ /dev/null
@@ -1,216 +0,0 @@
-/* Find debugging and symbol information for a module in libdwfl.
- Copyright (C) 2006-2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-const char *
-internal_function
-__libdwfl_getsym (Dwfl_Module *mod, int ndx, GElf_Sym *sym, GElf_Addr *addr,
- GElf_Word *shndxp, Elf **elfp, Dwarf_Addr *biasp,
- bool *resolved, bool adjust_st_value)
-{
- if (unlikely (mod == NULL))
- return NULL;
-
- if (unlikely (mod->symdata == NULL))
- {
- int result = INTUSE(dwfl_module_getsymtab) (mod);
- if (result < 0)
- return NULL;
- }
-
- /* All local symbols should come before all global symbols. If we
- have an auxiliary table make sure all the main locals come first,
- then all aux locals, then all main globals and finally all aux globals.
- And skip the auxiliary table zero undefined entry. */
- GElf_Word shndx;
- int tndx = ndx;
- int skip_aux_zero = (mod->syments > 0 && mod->aux_syments > 0) ? 1 : 0;
- Elf *elf;
- Elf_Data *symdata;
- Elf_Data *symxndxdata;
- Elf_Data *symstrdata;
- if (mod->aux_symdata == NULL
- || ndx < mod->first_global)
- {
- /* main symbol table (locals). */
- tndx = ndx;
- elf = mod->symfile->elf;
- symdata = mod->symdata;
- symxndxdata = mod->symxndxdata;
- symstrdata = mod->symstrdata;
- }
- else if (ndx < mod->first_global + mod->aux_first_global - skip_aux_zero)
- {
- /* aux symbol table (locals). */
- tndx = ndx - mod->first_global + skip_aux_zero;
- elf = mod->aux_sym.elf;
- symdata = mod->aux_symdata;
- symxndxdata = mod->aux_symxndxdata;
- symstrdata = mod->aux_symstrdata;
- }
- else if ((size_t) ndx < mod->syments + mod->aux_first_global - skip_aux_zero)
- {
- /* main symbol table (globals). */
- tndx = ndx - mod->aux_first_global + skip_aux_zero;
- elf = mod->symfile->elf;
- symdata = mod->symdata;
- symxndxdata = mod->symxndxdata;
- symstrdata = mod->symstrdata;
- }
- else
- {
- /* aux symbol table (globals). */
- tndx = ndx - mod->syments + skip_aux_zero;
- elf = mod->aux_sym.elf;
- symdata = mod->aux_symdata;
- symxndxdata = mod->aux_symxndxdata;
- symstrdata = mod->aux_symstrdata;
- }
- sym = gelf_getsymshndx (symdata, symxndxdata, tndx, sym, &shndx);
-
- if (unlikely (sym == NULL))
- {
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return NULL;
- }
-
- if (sym->st_shndx != SHN_XINDEX)
- shndx = sym->st_shndx;
-
- /* Figure out whether this symbol points into an SHF_ALLOC section. */
- bool alloc = true;
- if ((shndxp != NULL || mod->e_type != ET_REL)
- && (sym->st_shndx == SHN_XINDEX
- || (sym->st_shndx < SHN_LORESERVE && sym->st_shndx != SHN_UNDEF)))
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (elf_getscn (elf, shndx), &shdr_mem);
- alloc = unlikely (shdr == NULL) || (shdr->sh_flags & SHF_ALLOC);
- }
-
- /* In case of an value in an allocated section the main Elf Ebl
- might know where the real value is (e.g. for function
- descriptors). */
-
- char *ident;
- GElf_Addr st_value = sym->st_value & ebl_func_addr_mask (mod->ebl);
- *resolved = false;
- if (! adjust_st_value && mod->e_type != ET_REL && alloc
- && (GELF_ST_TYPE (sym->st_info) == STT_FUNC
- || (GELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC
- && (ident = elf_getident (elf, NULL)) != NULL
- && ident[EI_OSABI] == ELFOSABI_LINUX)))
- {
- if (likely (__libdwfl_module_getebl (mod) == DWFL_E_NOERROR))
- {
- if (elf != mod->main.elf)
- {
- st_value = dwfl_adjusted_st_value (mod, elf, st_value);
- st_value = dwfl_deadjust_st_value (mod, mod->main.elf, st_value);
- }
-
- *resolved = ebl_resolve_sym_value (mod->ebl, &st_value);
- if (! *resolved)
- st_value = sym->st_value;
- }
- }
-
- if (shndxp != NULL)
- /* Yield -1 in case of a non-SHF_ALLOC section. */
- *shndxp = alloc ? shndx : (GElf_Word) -1;
-
- switch (sym->st_shndx)
- {
- case SHN_ABS: /* XXX sometimes should use bias?? */
- case SHN_UNDEF:
- case SHN_COMMON:
- break;
-
- default:
- if (mod->e_type == ET_REL)
- {
- /* In an ET_REL file, the symbol table values are relative
- to the section, not to the module's load base. */
- size_t symshstrndx = SHN_UNDEF;
- Dwfl_Error result = __libdwfl_relocate_value (mod, elf,
- &symshstrndx,
- shndx, &st_value);
- if (unlikely (result != DWFL_E_NOERROR))
- {
- __libdwfl_seterrno (result);
- return NULL;
- }
- }
- else if (alloc)
- /* Apply the bias to the symbol value. */
- st_value = dwfl_adjusted_st_value (mod,
- *resolved ? mod->main.elf : elf,
- st_value);
- break;
- }
-
- if (adjust_st_value)
- sym->st_value = st_value;
-
- if (addr != NULL)
- *addr = st_value;
-
- if (unlikely (sym->st_name >= symstrdata->d_size))
- {
- __libdwfl_seterrno (DWFL_E_BADSTROFF);
- return NULL;
- }
- if (elfp)
- *elfp = elf;
- if (biasp)
- *biasp = dwfl_adjusted_st_value (mod, elf, 0);
- return (const char *) symstrdata->d_buf + sym->st_name;
-}
-
-const char *
-dwfl_module_getsym_info (Dwfl_Module *mod, int ndx,
- GElf_Sym *sym, GElf_Addr *addr,
- GElf_Word *shndxp,
- Elf **elfp, Dwarf_Addr *bias)
-{
- bool resolved;
- return __libdwfl_getsym (mod, ndx, sym, addr, shndxp, elfp, bias,
- &resolved, false);
-}
-INTDEF (dwfl_module_getsym_info)
-
-const char *
-dwfl_module_getsym (Dwfl_Module *mod, int ndx,
- GElf_Sym *sym, GElf_Word *shndxp)
-{
- bool resolved;
- return __libdwfl_getsym (mod, ndx, sym, NULL, shndxp, NULL, NULL,
- &resolved, true);
-}
-INTDEF (dwfl_module_getsym)
diff --git a/src/libdwfl/dwfl_module_info.c b/src/libdwfl/dwfl_module_info.c
deleted file mode 100644
index df16be41..00000000
--- a/src/libdwfl/dwfl_module_info.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* Return information about a module.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-const char *
-dwfl_module_info (Dwfl_Module *mod, void ***userdata,
- Dwarf_Addr *start, Dwarf_Addr *end,
- Dwarf_Addr *dwbias, Dwarf_Addr *symbias,
- const char **mainfile, const char **debugfile)
-{
- if (mod == NULL)
- return NULL;
-
- if (userdata)
- *userdata = &mod->userdata;
- if (start)
- *start = mod->low_addr;
- if (end)
- *end = mod->high_addr;
-
- if (dwbias)
- *dwbias = (mod->debug.elf == NULL ? (Dwarf_Addr) -1
- : dwfl_adjusted_dwarf_addr (mod, 0));
- if (symbias)
- *symbias = (mod->symfile == NULL ? (Dwarf_Addr) -1
- : dwfl_adjusted_st_value (mod, mod->symfile->elf, 0));
-
- if (mainfile)
- *mainfile = mod->main.name;
-
- if (debugfile)
- *debugfile = mod->debug.name;
-
- return mod->name;
-}
diff --git a/src/libdwfl/dwfl_module_nextcu.c b/src/libdwfl/dwfl_module_nextcu.c
deleted file mode 100644
index 6f81f4cc..00000000
--- a/src/libdwfl/dwfl_module_nextcu.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Iterate through DWARF compilation units in a module.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwarf_Die *
-dwfl_module_nextcu (Dwfl_Module *mod, Dwarf_Die *lastcu, Dwarf_Addr *bias)
-{
- if (INTUSE(dwfl_module_getdwarf) (mod, bias) == NULL)
- return NULL;
-
- struct dwfl_cu *cu;
- Dwfl_Error error = __libdwfl_nextcu (mod, (struct dwfl_cu *) lastcu, &cu);
- if (likely (error == DWFL_E_NOERROR))
- return &cu->die; /* Same as a cast, so ok for null too. */
-
- __libdwfl_seterrno (error);
- return NULL;
-}
diff --git a/src/libdwfl/dwfl_module_register_names.c b/src/libdwfl/dwfl_module_register_names.c
deleted file mode 100644
index 2da4b539..00000000
--- a/src/libdwfl/dwfl_module_register_names.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/* Enumerate DWARF register numbers and their names.
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-
-int
-dwfl_module_register_names (mod, func, arg)
- Dwfl_Module *mod;
- int (*func) (void *, int regno, const char *setname,
- const char *prefix, const char *regname,
- int bits, int type);
- void *arg;
-{
- if (unlikely (mod == NULL))
- return -1;
-
- if (unlikely (mod->ebl == NULL))
- {
- Dwfl_Error error = __libdwfl_module_getebl (mod);
- if (error != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (error);
- return -1;
- }
- }
-
- int nregs = ebl_register_info (mod->ebl, -1, NULL, 0,
- NULL, NULL, NULL, NULL);
- int result = 0;
- for (int regno = 0; regno < nregs && likely (result == 0); ++regno)
- {
- char name[32];
- const char *setname = NULL;
- const char *prefix = NULL;
- int bits = -1;
- int type = -1;
- ssize_t len = ebl_register_info (mod->ebl, regno, name, sizeof name,
- &prefix, &setname, &bits, &type);
- if (unlikely (len < 0))
- {
- __libdwfl_seterrno (DWFL_E_LIBEBL);
- result = -1;
- break;
- }
- if (likely (len > 0))
- {
- assert (len > 1); /* Backend should never yield "". */
- result = (*func) (arg, regno, setname, prefix, name, bits, type);
- }
- }
-
- return result;
-}
diff --git a/src/libdwfl/dwfl_module_report_build_id.c b/src/libdwfl/dwfl_module_report_build_id.c
deleted file mode 100644
index b41512b4..00000000
--- a/src/libdwfl/dwfl_module_report_build_id.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Report build ID information for a module.
- Copyright (C) 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-// XXX vs report changed module: punting old file
-int
-dwfl_module_report_build_id (Dwfl_Module *mod,
- const unsigned char *bits, size_t len,
- GElf_Addr vaddr)
-{
- if (mod == NULL)
- return -1;
-
- if (mod->main.elf != NULL)
- {
- /* Once we know about a file, we won't take any lies about
- its contents. The only permissible call is a no-op. */
-
- if ((size_t) mod->build_id_len == len
- && (mod->build_id_vaddr == vaddr || vaddr == 0)
- && !memcmp (bits, mod->build_id_bits, len))
- return 0;
-
- __libdwfl_seterrno (DWFL_E_ALREADY_ELF);
- return -1;
- }
-
- if (vaddr != 0 && (vaddr < mod->low_addr || vaddr + len > mod->high_addr))
- {
- __libdwfl_seterrno (DWFL_E_ADDR_OUTOFRANGE);
- return -1;
- }
-
- void *copy = NULL;
- if (len > 0)
- {
- copy = malloc (len);
- if (unlikely (copy == NULL))
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
- memcpy (copy, bits, len);
- }
-
- free (mod->build_id_bits);
-
- mod->build_id_bits = copy;
- mod->build_id_len = len;
- mod->build_id_vaddr = vaddr;
-
- return 0;
-}
-INTDEF (dwfl_module_report_build_id)
diff --git a/src/libdwfl/dwfl_module_return_value_location.c b/src/libdwfl/dwfl_module_return_value_location.c
deleted file mode 100644
index ad83cbf9..00000000
--- a/src/libdwfl/dwfl_module_return_value_location.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Return location expression to find return value given a function type DIE.
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-
-int
-dwfl_module_return_value_location (mod, functypedie, locops)
- Dwfl_Module *mod;
- Dwarf_Die *functypedie;
- const Dwarf_Op **locops;
-{
- if (mod == NULL)
- return -1;
-
- if (mod->ebl == NULL)
- {
- Dwfl_Error error = __libdwfl_module_getebl (mod);
- if (error != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (error);
- return -1;
- }
- }
-
- int nops = ebl_return_value_location (mod->ebl, functypedie, locops);
- if (unlikely (nops < 0))
- {
- if (nops == -1)
- __libdwfl_seterrno (DWFL_E_LIBDW);
- else if (nops == -2)
- __libdwfl_seterrno (DWFL_E_WEIRD_TYPE);
- else
- __libdwfl_seterrno (DWFL_E_LIBEBL);
- nops = -1;
- }
-
- return nops;
-}
diff --git a/src/libdwfl/dwfl_nextcu.c b/src/libdwfl/dwfl_nextcu.c
deleted file mode 100644
index 9ea83881..00000000
--- a/src/libdwfl/dwfl_nextcu.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* Iterate through DWARF compilation units across all modules.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwarf_Die *
-dwfl_nextcu (Dwfl *dwfl, Dwarf_Die *lastcu, Dwarf_Addr *bias)
-{
- if (dwfl == NULL)
- return NULL;
-
- struct dwfl_cu *cu = (struct dwfl_cu *) lastcu;
- Dwfl_Module *mod;
-
- if (cu == NULL)
- {
- mod = dwfl->modulelist;
- goto nextmod;
- }
- else
- mod = cu->mod;
-
- Dwfl_Error error;
- do
- {
- error = __libdwfl_nextcu (mod, cu, &cu);
- if (error != DWFL_E_NOERROR)
- break;
-
- if (cu != NULL)
- {
- *bias = dwfl_adjusted_dwarf_addr (mod, 0);
- return &cu->die;
- }
-
- do
- {
- mod = mod->next;
-
- nextmod:
- if (mod == NULL)
- return NULL;
-
- if (mod->dwerr == DWFL_E_NOERROR
- && (mod->dw != NULL
- || INTUSE(dwfl_module_getdwarf) (mod, bias) != NULL))
- break;
- }
- while (mod->dwerr == DWFL_E_NO_DWARF);
- error = mod->dwerr;
- }
- while (error == DWFL_E_NOERROR);
-
- __libdwfl_seterrno (error);
- return NULL;
-}
-INTDEF (dwfl_nextcu)
diff --git a/src/libdwfl/dwfl_onesrcline.c b/src/libdwfl/dwfl_onesrcline.c
deleted file mode 100644
index 4c20d657..00000000
--- a/src/libdwfl/dwfl_onesrcline.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Return one of the sources lines of a CU.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-Dwfl_Line *
-dwfl_onesrcline (Dwarf_Die *cudie, size_t idx)
-{
- struct dwfl_cu *cu = (struct dwfl_cu *) cudie;
-
- if (cudie == NULL)
- return NULL;
-
- if (cu->lines == NULL)
- {
- Dwfl_Error error = __libdwfl_cu_getsrclines (cu);
- if (error != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (error);
- return NULL;
- }
- }
-
- if (idx >= cu->die.cu->lines->nlines)
- {
- __libdwfl_seterrno (DWFL_E (LIBDW, DWARF_E_INVALID_LINE_IDX));
- return NULL;
- }
-
- return &cu->lines->idx[idx];
-}
diff --git a/src/libdwfl/dwfl_report_elf.c b/src/libdwfl/dwfl_report_elf.c
deleted file mode 100644
index 3a4ae2ef..00000000
--- a/src/libdwfl/dwfl_report_elf.c
+++ /dev/null
@@ -1,338 +0,0 @@
-/* Report a module to libdwfl based on ELF program headers.
- Copyright (C) 2005-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <fcntl.h>
-#include <unistd.h>
-
-
-/* We start every ET_REL module at a moderately aligned boundary.
- This keeps the low addresses easy to read compared to a layout
- starting at 0 (as when using -e). It also makes it unlikely
- that a middle section will have a larger alignment and require
- rejiggering (see below). */
-#define REL_MIN_ALIGN ((GElf_Xword) 0x100)
-
-bool
-internal_function
-__libdwfl_elf_address_range (Elf *elf, GElf_Addr base, bool add_p_vaddr,
- bool sanity, GElf_Addr *vaddrp,
- GElf_Addr *address_syncp, GElf_Addr *startp,
- GElf_Addr *endp, GElf_Addr *biasp,
- GElf_Half *e_typep)
-{
- GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- elf_error:
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return false;
- }
-
- GElf_Addr vaddr = 0;
- GElf_Addr address_sync = 0;
- GElf_Addr start = 0, end = 0, bias = 0;
- switch (ehdr->e_type)
- {
- case ET_REL:
- /* For a relocatable object, we do an arbitrary section layout.
- By updating the section header in place, we leave the layout
- information to be found by relocation. */
-
- start = end = base = (base + REL_MIN_ALIGN - 1) & -REL_MIN_ALIGN;
-
- bool first = true;
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- if (unlikely (shdr == NULL))
- goto elf_error;
-
- if (shdr->sh_flags & SHF_ALLOC)
- {
- const GElf_Xword align = shdr->sh_addralign ?: 1;
- const GElf_Addr next = (end + align - 1) & -align;
- if (shdr->sh_addr == 0
- /* Once we've started doing layout we have to do it all,
- unless we just layed out the first section at 0 when
- it already was at 0. */
- || (bias == 0 && end > start && end != next))
- {
- shdr->sh_addr = next;
- if (end == base)
- /* This is the first section assigned a location.
- Use its aligned address as the module's base. */
- start = base = shdr->sh_addr;
- else if (unlikely (base & (align - 1)))
- {
- /* If BASE has less than the maximum alignment of
- any section, we eat more than the optimal amount
- of padding and so make the module's apparent
- size come out larger than it would when placed
- at zero. So reset the layout with a better base. */
-
- start = end = base = (base + align - 1) & -align;
- Elf_Scn *prev_scn = NULL;
- do
- {
- prev_scn = elf_nextscn (elf, prev_scn);
- GElf_Shdr prev_shdr_mem;
- GElf_Shdr *prev_shdr = gelf_getshdr (prev_scn,
- &prev_shdr_mem);
- if (unlikely (prev_shdr == NULL))
- goto elf_error;
- if (prev_shdr->sh_flags & SHF_ALLOC)
- {
- const GElf_Xword prev_align
- = prev_shdr->sh_addralign ?: 1;
-
- prev_shdr->sh_addr
- = (end + prev_align - 1) & -prev_align;
- end = prev_shdr->sh_addr + prev_shdr->sh_size;
-
- if (unlikely (! gelf_update_shdr (prev_scn,
- prev_shdr)))
- goto elf_error;
- }
- }
- while (prev_scn != scn);
- continue;
- }
-
- end = shdr->sh_addr + shdr->sh_size;
- if (likely (shdr->sh_addr != 0)
- && unlikely (! gelf_update_shdr (scn, shdr)))
- goto elf_error;
- }
- else
- {
- /* The address is already assigned. Just track it. */
- if (first || end < shdr->sh_addr + shdr->sh_size)
- end = shdr->sh_addr + shdr->sh_size;
- if (first || bias > shdr->sh_addr)
- /* This is the lowest address in the module. */
- bias = shdr->sh_addr;
-
- if ((shdr->sh_addr - bias + base) & (align - 1))
- /* This section winds up misaligned using BASE.
- Adjust BASE upwards to make it congruent to
- the lowest section address in the file modulo ALIGN. */
- base = (((base + align - 1) & -align)
- + (bias & (align - 1)));
- }
-
- first = false;
- }
- }
-
- if (bias != 0)
- {
- /* The section headers had nonzero sh_addr values. The layout
- was already done. We've just collected the total span.
- Now just compute the bias from the requested base. */
- start = base;
- end = end - bias + start;
- bias = start - bias;
- }
- break;
-
- /* Everything else has to have program headers. */
-
- case ET_EXEC:
- case ET_CORE:
- /* An assigned base address is meaningless for these. */
- base = 0;
- add_p_vaddr = true;
-
- case ET_DYN:
- default:;
- size_t phnum;
- if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
- goto elf_error;
- for (size_t i = 0; i < phnum; ++i)
- {
- GElf_Phdr phdr_mem, *ph = gelf_getphdr (elf, i, &phdr_mem);
- if (unlikely (ph == NULL))
- goto elf_error;
- if (ph->p_type == PT_LOAD)
- {
- vaddr = ph->p_vaddr & -ph->p_align;
- address_sync = ph->p_vaddr + ph->p_memsz;
- break;
- }
- }
- if (add_p_vaddr)
- {
- start = base + vaddr;
- bias = base;
- }
- else
- {
- start = base;
- bias = base - vaddr;
- }
-
- for (size_t i = phnum; i-- > 0;)
- {
- GElf_Phdr phdr_mem, *ph = gelf_getphdr (elf, i, &phdr_mem);
- if (unlikely (ph == NULL))
- goto elf_error;
- if (ph->p_type == PT_LOAD
- && ph->p_vaddr + ph->p_memsz > 0)
- {
- end = bias + (ph->p_vaddr + ph->p_memsz);
- break;
- }
- }
-
- if (end == 0 && sanity)
- {
- __libdwfl_seterrno (DWFL_E_NO_PHDR);
- return false;
- }
- break;
- }
- if (vaddrp)
- *vaddrp = vaddr;
- if (address_syncp)
- *address_syncp = address_sync;
- if (startp)
- *startp = start;
- if (endp)
- *endp = end;
- if (biasp)
- *biasp = bias;
- if (e_typep)
- *e_typep = ehdr->e_type;
- return true;
-}
-
-Dwfl_Module *
-internal_function
-__libdwfl_report_elf (Dwfl *dwfl, const char *name, const char *file_name,
- int fd, Elf *elf, GElf_Addr base, bool add_p_vaddr,
- bool sanity)
-{
- GElf_Addr vaddr, address_sync, start, end, bias;
- GElf_Half e_type;
- if (! __libdwfl_elf_address_range (elf, base, add_p_vaddr, sanity, &vaddr,
- &address_sync, &start, &end, &bias,
- &e_type))
- return NULL;
- Dwfl_Module *m = INTUSE(dwfl_report_module) (dwfl, name, start, end);
- if (m != NULL)
- {
- if (m->main.name == NULL)
- {
- m->main.name = strdup (file_name);
- m->main.fd = fd;
- }
- else if ((fd >= 0 && m->main.fd != fd)
- || strcmp (m->main.name, file_name))
- {
- overlap:
- m->gc = true;
- __libdwfl_seterrno (DWFL_E_OVERLAP);
- return NULL;
- }
-
- /* Preinstall the open ELF handle for the module. */
- if (m->main.elf == NULL)
- {
- m->main.elf = elf;
- m->main.vaddr = vaddr;
- m->main.address_sync = address_sync;
- m->main_bias = bias;
- m->e_type = e_type;
- }
- else
- {
- elf_end (elf);
- if (m->main_bias != bias
- || m->main.vaddr != vaddr || m->main.address_sync != address_sync)
- goto overlap;
- }
- }
- return m;
-}
-
-Dwfl_Module *
-dwfl_report_elf (Dwfl *dwfl, const char *name, const char *file_name, int fd,
- GElf_Addr base, bool add_p_vaddr)
-{
- bool closefd = false;
- if (fd < 0)
- {
- closefd = true;
- fd = open64 (file_name, O_RDONLY);
- if (fd < 0)
- {
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return NULL;
- }
- }
-
- Elf *elf;
- Dwfl_Error error = __libdw_open_file (&fd, &elf, closefd, false);
- if (error != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (error);
- return NULL;
- }
-
- Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name,
- fd, elf, base, add_p_vaddr, true);
- if (mod == NULL)
- {
- elf_end (elf);
- if (closefd)
- close (fd);
- }
-
- return mod;
-}
-INTDEF (dwfl_report_elf)
-NEW_VERSION (dwfl_report_elf, ELFUTILS_0.156)
-
-#ifdef SHARED
-Dwfl_Module *
- _compat_without_add_p_vaddr_dwfl_report_elf (Dwfl *dwfl, const char *name,
- const char *file_name, int fd,
- GElf_Addr base);
-COMPAT_VERSION_NEWPROTO (dwfl_report_elf, ELFUTILS_0.122, without_add_p_vaddr)
-
-Dwfl_Module *
-_compat_without_add_p_vaddr_dwfl_report_elf (Dwfl *dwfl, const char *name,
- const char *file_name, int fd,
- GElf_Addr base)
-{
- return dwfl_report_elf (dwfl, name, file_name, fd, base, true);
-}
-#endif
diff --git a/src/libdwfl/dwfl_segment_report_module.c b/src/libdwfl/dwfl_segment_report_module.c
deleted file mode 100644
index 898457f1..00000000
--- a/src/libdwfl/dwfl_segment_report_module.c
+++ /dev/null
@@ -1,922 +0,0 @@
-/* Sniff out modules from ELF headers visible in memory segments.
- Copyright (C) 2008-2012, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include "../libelf/libelfP.h" /* For NOTE_ALIGN. */
-#undef _
-#include "libdwflP.h"
-#include "common.h"
-
-#include <elf.h>
-#include <gelf.h>
-#include <inttypes.h>
-#include <sys/param.h>
-#include <alloca.h>
-#include <endian.h>
-#include <unistd.h>
-#include <fcntl.h>
-
-
-/* A good size for the initial read from memory, if it's not too costly.
- This more than covers the phdrs and note segment in the average 64-bit
- binary. */
-
-#define INITIAL_READ 1024
-
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# define MY_ELFDATA ELFDATA2LSB
-#else
-# define MY_ELFDATA ELFDATA2MSB
-#endif
-
-
-/* Return user segment index closest to ADDR but not above it.
- If NEXT, return the closest to ADDR but not below it. */
-static int
-addr_segndx (Dwfl *dwfl, size_t segment, GElf_Addr addr, bool next)
-{
- int ndx = -1;
- do
- {
- if (dwfl->lookup_segndx[segment] >= 0)
- ndx = dwfl->lookup_segndx[segment];
- if (++segment >= dwfl->lookup_elts - 1)
- return next ? ndx + 1 : ndx;
- }
- while (dwfl->lookup_addr[segment] < addr);
-
- if (next)
- {
- while (dwfl->lookup_segndx[segment] < 0)
- if (++segment >= dwfl->lookup_elts - 1)
- return ndx + 1;
- ndx = dwfl->lookup_segndx[segment];
- }
-
- return ndx;
-}
-
-/* Return whether there is SZ bytes available at PTR till END. */
-
-static bool
-buf_has_data (const void *ptr, const void *end, size_t sz)
-{
- return ptr < end && (size_t) (end - ptr) >= sz;
-}
-
-/* Read SZ bytes into *RETP from *PTRP (limited by END) in format EI_DATA.
- Function comes from src/readelf.c . */
-
-static bool
-buf_read_ulong (unsigned char ei_data, size_t sz,
- const void **ptrp, const void *end, uint64_t *retp)
-{
- if (! buf_has_data (*ptrp, end, sz))
- return false;
-
- union
- {
- uint64_t u64;
- uint32_t u32;
- } u;
-
- memcpy (&u, *ptrp, sz);
- (*ptrp) += sz;
-
- if (retp == NULL)
- return true;
-
- if (MY_ELFDATA != ei_data)
- {
- if (sz == 4)
- CONVERT (u.u32);
- else
- CONVERT (u.u64);
- }
- if (sz == 4)
- *retp = u.u32;
- else
- *retp = u.u64;
- return true;
-}
-
-/* Try to find matching entry for module from address MODULE_START to
- MODULE_END in NT_FILE note located at NOTE_FILE of NOTE_FILE_SIZE
- bytes in format EI_CLASS and EI_DATA. */
-
-static const char *
-handle_file_note (GElf_Addr module_start, GElf_Addr module_end,
- unsigned char ei_class, unsigned char ei_data,
- const void *note_file, size_t note_file_size)
-{
- if (note_file == NULL)
- return NULL;
-
- size_t sz;
- switch (ei_class)
- {
- case ELFCLASS32:
- sz = 4;
- break;
- case ELFCLASS64:
- sz = 8;
- break;
- default:
- return NULL;
- }
-
- const void *ptr = note_file;
- const void *end = note_file + note_file_size;
- uint64_t count;
- if (! buf_read_ulong (ei_data, sz, &ptr, end, &count))
- return NULL;
- if (! buf_read_ulong (ei_data, sz, &ptr, end, NULL)) // page_size
- return NULL;
-
- uint64_t maxcount = (size_t) (end - ptr) / (3 * sz);
- if (count > maxcount)
- return NULL;
-
- /* Where file names are stored. */
- const char *fptr = ptr + 3 * count * sz;
-
- ssize_t firstix = -1;
- ssize_t lastix = -1;
- for (size_t mix = 0; mix < count; mix++)
- {
- uint64_t mstart, mend, moffset;
- if (! buf_read_ulong (ei_data, sz, &ptr, fptr, &mstart)
- || ! buf_read_ulong (ei_data, sz, &ptr, fptr, &mend)
- || ! buf_read_ulong (ei_data, sz, &ptr, fptr, &moffset))
- return NULL;
- if (mstart == module_start && moffset == 0)
- firstix = lastix = mix;
- if (firstix != -1 && mstart < module_end)
- lastix = mix;
- if (mend >= module_end)
- break;
- }
- if (firstix == -1)
- return NULL;
-
- const char *retval = NULL;
- for (ssize_t mix = 0; mix <= lastix; mix++)
- {
- const char *fnext = memchr (fptr, 0, (const char *) end - fptr);
- if (fnext == NULL)
- return NULL;
- if (mix == firstix)
- retval = fptr;
- if (firstix < mix && mix <= lastix && strcmp (fptr, retval) != 0)
- return NULL;
- fptr = fnext + 1;
- }
- return retval;
-}
-
-/* Return true iff we are certain ELF cannot match BUILD_ID of
- BUILD_ID_LEN bytes. Pass DISK_FILE_HAS_BUILD_ID as false if it is
- certain ELF does not contain build-id (it is only a performance hit
- to pass it always as true). */
-
-static bool
-invalid_elf (Elf *elf, bool disk_file_has_build_id,
- const void *build_id, size_t build_id_len)
-{
- if (! disk_file_has_build_id && build_id_len > 0)
- {
- /* Module found in segments with build-id is more reliable
- than a module found via DT_DEBUG on disk without any
- build-id. */
- return true;
- }
- if (disk_file_has_build_id && build_id_len > 0)
- {
- const void *elf_build_id;
- ssize_t elf_build_id_len;
-
- /* If there is a build id in the elf file, check it. */
- elf_build_id_len = INTUSE(dwelf_elf_gnu_build_id) (elf, &elf_build_id);
- if (elf_build_id_len > 0)
- {
- if (build_id_len != (size_t) elf_build_id_len
- || memcmp (build_id, elf_build_id, build_id_len) != 0)
- return true;
- }
- }
- return false;
-}
-
-int
-dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char *name,
- Dwfl_Memory_Callback *memory_callback,
- void *memory_callback_arg,
- Dwfl_Module_Callback *read_eagerly,
- void *read_eagerly_arg,
- const void *note_file, size_t note_file_size,
- const struct r_debug_info *r_debug_info)
-{
- size_t segment = ndx;
-
- if (segment >= dwfl->lookup_elts)
- segment = dwfl->lookup_elts - 1;
-
- while (segment > 0
- && (dwfl->lookup_segndx[segment] > ndx
- || dwfl->lookup_segndx[segment] == -1))
- --segment;
-
- while (dwfl->lookup_segndx[segment] < ndx)
- if (++segment == dwfl->lookup_elts)
- return 0;
-
- GElf_Addr start = dwfl->lookup_addr[segment];
-
- inline bool segment_read (int segndx,
- void **buffer, size_t *buffer_available,
- GElf_Addr addr, size_t minread)
- {
- return ! (*memory_callback) (dwfl, segndx, buffer, buffer_available,
- addr, minread, memory_callback_arg);
- }
-
- inline void release_buffer (void **buffer, size_t *buffer_available)
- {
- if (*buffer != NULL)
- (void) segment_read (-1, buffer, buffer_available, 0, 0);
- }
-
- /* First read in the file header and check its sanity. */
-
- void *buffer = NULL;
- size_t buffer_available = INITIAL_READ;
- Elf *elf = NULL;
- int fd = -1;
-
- inline int finish (void)
- {
- release_buffer (&buffer, &buffer_available);
- if (elf != NULL)
- elf_end (elf);
- if (fd != -1)
- close (fd);
- return ndx;
- }
-
- if (segment_read (ndx, &buffer, &buffer_available,
- start, sizeof (Elf64_Ehdr))
- || memcmp (buffer, ELFMAG, SELFMAG) != 0)
- return finish ();
-
- inline bool read_portion (void **data, size_t *data_size,
- GElf_Addr vaddr, size_t filesz)
- {
- if (vaddr - start + filesz > buffer_available
- /* If we're in string mode, then don't consider the buffer we have
- sufficient unless it contains the terminator of the string. */
- || (filesz == 0 && memchr (vaddr - start + buffer, '\0',
- buffer_available - (vaddr - start)) == NULL))
- {
- *data = NULL;
- *data_size = filesz;
- return segment_read (addr_segndx (dwfl, segment, vaddr, false),
- data, data_size, vaddr, filesz);
- }
-
- /* We already have this whole note segment from our initial read. */
- *data = vaddr - start + buffer;
- *data_size = 0;
- return false;
- }
-
- inline void finish_portion (void **data, size_t *data_size)
- {
- if (*data_size != 0)
- release_buffer (data, data_size);
- }
-
- /* Extract the information we need from the file header. */
- const unsigned char *e_ident;
- unsigned char ei_class;
- unsigned char ei_data;
- uint16_t e_type;
- union
- {
- Elf32_Ehdr e32;
- Elf64_Ehdr e64;
- } ehdr;
- GElf_Off phoff;
- uint_fast16_t phnum;
- uint_fast16_t phentsize;
- GElf_Off shdrs_end;
- Elf_Data xlatefrom =
- {
- .d_type = ELF_T_EHDR,
- .d_buf = (void *) buffer,
- .d_version = EV_CURRENT,
- };
- Elf_Data xlateto =
- {
- .d_type = ELF_T_EHDR,
- .d_buf = &ehdr,
- .d_size = sizeof ehdr,
- .d_version = EV_CURRENT,
- };
- e_ident = ((const unsigned char *) buffer);
- ei_class = e_ident[EI_CLASS];
- ei_data = e_ident[EI_DATA];
- switch (ei_class)
- {
- case ELFCLASS32:
- xlatefrom.d_size = sizeof (Elf32_Ehdr);
- if (elf32_xlatetom (&xlateto, &xlatefrom, ei_data) == NULL)
- return finish ();
- e_type = ehdr.e32.e_type;
- phoff = ehdr.e32.e_phoff;
- phnum = ehdr.e32.e_phnum;
- phentsize = ehdr.e32.e_phentsize;
- if (phentsize != sizeof (Elf32_Phdr))
- return finish ();
- shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize;
- break;
-
- case ELFCLASS64:
- xlatefrom.d_size = sizeof (Elf64_Ehdr);
- if (elf64_xlatetom (&xlateto, &xlatefrom, ei_data) == NULL)
- return finish ();
- e_type = ehdr.e64.e_type;
- phoff = ehdr.e64.e_phoff;
- phnum = ehdr.e64.e_phnum;
- phentsize = ehdr.e64.e_phentsize;
- if (phentsize != sizeof (Elf64_Phdr))
- return finish ();
- shdrs_end = ehdr.e64.e_shoff + ehdr.e64.e_shnum * ehdr.e64.e_shentsize;
- break;
-
- default:
- return finish ();
- }
-
- /* The file header tells where to find the program headers.
- These are what we need to find the boundaries of the module.
- Without them, we don't have a module to report. */
-
- if (phnum == 0)
- return finish ();
-
- xlatefrom.d_type = xlateto.d_type = ELF_T_PHDR;
- xlatefrom.d_size = phnum * phentsize;
-
- void *ph_buffer = NULL;
- size_t ph_buffer_size = 0;
- if (read_portion (&ph_buffer, &ph_buffer_size,
- start + phoff, xlatefrom.d_size))
- return finish ();
-
- xlatefrom.d_buf = ph_buffer;
-
- union
- {
- Elf32_Phdr p32[phnum];
- Elf64_Phdr p64[phnum];
- } phdrs;
-
- xlateto.d_buf = &phdrs;
- xlateto.d_size = sizeof phdrs;
-
- /* Track the bounds of the file visible in memory. */
- GElf_Off file_trimmed_end = 0; /* Proper p_vaddr + p_filesz end. */
- GElf_Off file_end = 0; /* Rounded up to effective page size. */
- GElf_Off contiguous = 0; /* Visible as contiguous file from START. */
- GElf_Off total_filesz = 0; /* Total size of data to read. */
-
- /* Collect the bias between START and the containing PT_LOAD's p_vaddr. */
- GElf_Addr bias = 0;
- bool found_bias = false;
-
- /* Collect the unbiased bounds of the module here. */
- GElf_Addr module_start = -1l;
- GElf_Addr module_end = 0;
- GElf_Addr module_address_sync = 0;
-
- /* If we see PT_DYNAMIC, record it here. */
- GElf_Addr dyn_vaddr = 0;
- GElf_Xword dyn_filesz = 0;
-
- /* Collect the build ID bits here. */
- void *build_id = NULL;
- size_t build_id_len = 0;
- GElf_Addr build_id_vaddr = 0;
-
- /* Consider a PT_NOTE we've found in the image. */
- inline void consider_notes (GElf_Addr vaddr, GElf_Xword filesz)
- {
- /* If we have already seen a build ID, we don't care any more. */
- if (build_id != NULL || filesz == 0)
- return;
-
- void *data;
- size_t data_size;
- if (read_portion (&data, &data_size, vaddr, filesz))
- return;
-
- assert (sizeof (Elf32_Nhdr) == sizeof (Elf64_Nhdr));
-
- void *notes;
- if (ei_data == MY_ELFDATA)
- notes = data;
- else
- {
- notes = malloc (filesz);
- if (unlikely (notes == NULL))
- return;
- xlatefrom.d_type = xlateto.d_type = ELF_T_NHDR;
- xlatefrom.d_buf = (void *) data;
- xlatefrom.d_size = filesz;
- xlateto.d_buf = notes;
- xlateto.d_size = filesz;
- if (elf32_xlatetom (&xlateto, &xlatefrom,
- ehdr.e32.e_ident[EI_DATA]) == NULL)
- goto done;
- }
-
- const GElf_Nhdr *nh = notes;
- while ((const void *) nh < (const void *) notes + filesz)
- {
- const void *note_name = nh + 1;
- const void *note_desc = note_name + NOTE_ALIGN (nh->n_namesz);
- if (unlikely ((size_t) ((const void *) notes + filesz
- - note_desc) < nh->n_descsz))
- break;
-
- if (nh->n_type == NT_GNU_BUILD_ID
- && nh->n_descsz > 0
- && nh->n_namesz == sizeof "GNU"
- && !memcmp (note_name, "GNU", sizeof "GNU"))
- {
- build_id_vaddr = note_desc - (const void *) notes + vaddr;
- build_id_len = nh->n_descsz;
- build_id = malloc (nh->n_descsz);
- if (likely (build_id != NULL))
- memcpy (build_id, note_desc, build_id_len);
- break;
- }
-
- nh = note_desc + NOTE_ALIGN (nh->n_descsz);
- }
-
- done:
- if (notes != data)
- free (notes);
- finish_portion (&data, &data_size);
- }
-
- /* Consider each of the program headers we've read from the image. */
- inline void consider_phdr (GElf_Word type,
- GElf_Addr vaddr, GElf_Xword memsz,
- GElf_Off offset, GElf_Xword filesz,
- GElf_Xword align)
- {
- switch (type)
- {
- case PT_DYNAMIC:
- dyn_vaddr = vaddr;
- dyn_filesz = filesz;
- break;
-
- case PT_NOTE:
- /* We calculate from the p_offset of the note segment,
- because we don't yet know the bias for its p_vaddr. */
- consider_notes (start + offset, filesz);
- break;
-
- case PT_LOAD:
- align = dwfl->segment_align > 1 ? dwfl->segment_align : align ?: 1;
-
- GElf_Addr vaddr_end = (vaddr + memsz + align - 1) & -align;
- GElf_Addr filesz_vaddr = filesz < memsz ? vaddr + filesz : vaddr_end;
- GElf_Off filesz_offset = filesz_vaddr - vaddr + offset;
-
- if (file_trimmed_end < offset + filesz)
- {
- file_trimmed_end = offset + filesz;
-
- /* Trim the last segment so we don't bother with zeros
- in the last page that are off the end of the file.
- However, if the extra bit in that page includes the
- section headers, keep them. */
- if (shdrs_end <= filesz_offset && shdrs_end > file_trimmed_end)
- {
- filesz += shdrs_end - file_trimmed_end;
- file_trimmed_end = shdrs_end;
- }
- }
-
- total_filesz += filesz;
-
- if (file_end < filesz_offset)
- {
- file_end = filesz_offset;
- if (filesz_vaddr - start == filesz_offset)
- contiguous = file_end;
- }
-
- if (!found_bias && (offset & -align) == 0
- && likely (filesz_offset >= phoff + phnum * phentsize))
- {
- bias = start - vaddr;
- found_bias = true;
- }
-
- if ((vaddr & -align) < module_start)
- {
- module_start = vaddr & -align;
- module_address_sync = vaddr + memsz;
- }
-
- if (module_end < vaddr_end)
- module_end = vaddr_end;
- break;
- }
- }
- if (ei_class == ELFCLASS32)
- {
- if (elf32_xlatetom (&xlateto, &xlatefrom, ei_data) == NULL)
- found_bias = false; /* Trigger error check. */
- else
- for (uint_fast16_t i = 0; i < phnum; ++i)
- consider_phdr (phdrs.p32[i].p_type,
- phdrs.p32[i].p_vaddr, phdrs.p32[i].p_memsz,
- phdrs.p32[i].p_offset, phdrs.p32[i].p_filesz,
- phdrs.p32[i].p_align);
- }
- else
- {
- if (elf64_xlatetom (&xlateto, &xlatefrom, ei_data) == NULL)
- found_bias = false; /* Trigger error check. */
- else
- for (uint_fast16_t i = 0; i < phnum; ++i)
- consider_phdr (phdrs.p64[i].p_type,
- phdrs.p64[i].p_vaddr, phdrs.p64[i].p_memsz,
- phdrs.p64[i].p_offset, phdrs.p64[i].p_filesz,
- phdrs.p64[i].p_align);
- }
-
- finish_portion (&ph_buffer, &ph_buffer_size);
-
- /* We must have seen the segment covering offset 0, or else the ELF
- header we read at START was not produced by these program headers. */
- if (unlikely (!found_bias))
- {
- free (build_id);
- return finish ();
- }
-
- /* Now we know enough to report a module for sure: its bounds. */
- module_start += bias;
- module_end += bias;
-
- dyn_vaddr += bias;
-
- /* NAME found from link map has precedence over DT_SONAME possibly read
- below. */
- bool name_is_final = false;
-
- /* Try to match up DYN_VADDR against L_LD as found in link map.
- Segments sniffing may guess invalid address as the first read-only memory
- mapping may not be dumped to the core file (if ELF headers are not dumped)
- and the ELF header is dumped first with the read/write mapping of the same
- file at higher addresses. */
- if (r_debug_info != NULL)
- for (const struct r_debug_info_module *module = r_debug_info->module;
- module != NULL; module = module->next)
- if (module_start <= module->l_ld && module->l_ld < module_end)
- {
- /* L_LD read from link map must be right while DYN_VADDR is unsafe.
- Therefore subtract DYN_VADDR and add L_LD to get a possibly
- corrective displacement for all addresses computed so far. */
- GElf_Addr fixup = module->l_ld - dyn_vaddr;
- if ((fixup & (dwfl->segment_align - 1)) == 0
- && module_start + fixup <= module->l_ld
- && module->l_ld < module_end + fixup)
- {
- module_start += fixup;
- module_end += fixup;
- dyn_vaddr += fixup;
- bias += fixup;
- if (module->name[0] != '\0')
- {
- name = basename (module->name);
- name_is_final = true;
- }
- break;
- }
- }
-
- if (r_debug_info != NULL)
- {
- bool skip_this_module = false;
- for (struct r_debug_info_module *module = r_debug_info->module;
- module != NULL; module = module->next)
- if ((module_end > module->start && module_start < module->end)
- || dyn_vaddr == module->l_ld)
- {
- if (module->elf != NULL
- && invalid_elf (module->elf, module->disk_file_has_build_id,
- build_id, build_id_len))
- {
- elf_end (module->elf);
- close (module->fd);
- module->elf = NULL;
- module->fd = -1;
- }
- if (module->elf != NULL)
- {
- /* Ignore this found module if it would conflict in address
- space with any already existing module of DWFL. */
- skip_this_module = true;
- }
- }
- if (skip_this_module)
- {
- free (build_id);
- return finish ();
- }
- }
-
- const char *file_note_name = handle_file_note (module_start, module_end,
- ei_class, ei_data,
- note_file, note_file_size);
- if (file_note_name)
- {
- name = file_note_name;
- name_is_final = true;
- bool invalid = false;
- fd = open64 (name, O_RDONLY);
- if (fd >= 0)
- {
- Dwfl_Error error = __libdw_open_file (&fd, &elf, true, false);
- if (error == DWFL_E_NOERROR)
- invalid = invalid_elf (elf, true /* disk_file_has_build_id */,
- build_id, build_id_len);
- }
- if (invalid)
- {
- free (build_id);
- return finish ();
- }
- }
-
- /* Our return value now says to skip the segments contained
- within the module. */
- ndx = addr_segndx (dwfl, segment, module_end, true);
-
- /* Examine its .dynamic section to get more interesting details.
- If it has DT_SONAME, we'll use that as the module name.
- If it has a DT_DEBUG, then it's actually a PIE rather than a DSO.
- We need its DT_STRTAB and DT_STRSZ to decipher DT_SONAME,
- and they also tell us the essential portion of the file
- for fetching symbols. */
- GElf_Addr soname_stroff = 0;
- GElf_Addr dynstr_vaddr = 0;
- GElf_Xword dynstrsz = 0;
- bool execlike = false;
- inline bool consider_dyn (GElf_Sxword tag, GElf_Xword val)
- {
- switch (tag)
- {
- default:
- return false;
-
- case DT_DEBUG:
- execlike = true;
- break;
-
- case DT_SONAME:
- soname_stroff = val;
- break;
-
- case DT_STRTAB:
- dynstr_vaddr = val;
- break;
-
- case DT_STRSZ:
- dynstrsz = val;
- break;
- }
-
- return soname_stroff != 0 && dynstr_vaddr != 0 && dynstrsz != 0;
- }
-
- const size_t dyn_entsize = (ei_class == ELFCLASS32
- ? sizeof (Elf32_Dyn) : sizeof (Elf64_Dyn));
- void *dyn_data = NULL;
- size_t dyn_data_size = 0;
- if (dyn_filesz != 0 && dyn_filesz % dyn_entsize == 0
- && ! read_portion (&dyn_data, &dyn_data_size, dyn_vaddr, dyn_filesz))
- {
- union
- {
- Elf32_Dyn d32[dyn_filesz / sizeof (Elf32_Dyn)];
- Elf64_Dyn d64[dyn_filesz / sizeof (Elf64_Dyn)];
- } dyn;
-
- xlatefrom.d_type = xlateto.d_type = ELF_T_DYN;
- xlatefrom.d_buf = (void *) dyn_data;
- xlatefrom.d_size = dyn_filesz;
- xlateto.d_buf = &dyn;
- xlateto.d_size = sizeof dyn;
-
- if (ei_class == ELFCLASS32)
- {
- if (elf32_xlatetom (&xlateto, &xlatefrom, ei_data) != NULL)
- for (size_t i = 0; i < dyn_filesz / sizeof dyn.d32[0]; ++i)
- if (consider_dyn (dyn.d32[i].d_tag, dyn.d32[i].d_un.d_val))
- break;
- }
- else
- {
- if (elf64_xlatetom (&xlateto, &xlatefrom, ei_data) != NULL)
- for (size_t i = 0; i < dyn_filesz / sizeof dyn.d64[0]; ++i)
- if (consider_dyn (dyn.d64[i].d_tag, dyn.d64[i].d_un.d_val))
- break;
- }
- }
- finish_portion (&dyn_data, &dyn_data_size);
-
- /* We'll use the name passed in or a stupid default if not DT_SONAME. */
- if (name == NULL)
- name = e_type == ET_EXEC ? "[exe]" : execlike ? "[pie]" : "[dso]";
-
- void *soname = NULL;
- size_t soname_size = 0;
- if (! name_is_final && dynstrsz != 0 && dynstr_vaddr != 0)
- {
- /* We know the bounds of the .dynstr section.
-
- The DYNSTR_VADDR pointer comes from the .dynamic section
- (DT_STRTAB, detected above). Ordinarily the dynamic linker
- will have adjusted this pointer in place so it's now an
- absolute address. But sometimes .dynamic is read-only (in
- vDSOs and odd architectures), and sometimes the adjustment
- just hasn't happened yet in the memory image we looked at.
- So treat DYNSTR_VADDR as an absolute address if it falls
- within the module bounds, or try applying the phdr bias
- when that adjusts it to fall within the module bounds. */
-
- if ((dynstr_vaddr < module_start || dynstr_vaddr >= module_end)
- && dynstr_vaddr + bias >= module_start
- && dynstr_vaddr + bias < module_end)
- dynstr_vaddr += bias;
-
- if (unlikely (dynstr_vaddr + dynstrsz > module_end))
- dynstrsz = 0;
-
- /* Try to get the DT_SONAME string. */
- if (soname_stroff != 0 && soname_stroff + 1 < dynstrsz
- && ! read_portion (&soname, &soname_size,
- dynstr_vaddr + soname_stroff, 0))
- name = soname;
- }
-
- /* Now that we have chosen the module's name and bounds, report it.
- If we found a build ID, report that too. */
-
- Dwfl_Module *mod = INTUSE(dwfl_report_module) (dwfl, name,
- module_start, module_end);
-
- // !execlike && ET_EXEC is PIE.
- // execlike && !ET_EXEC is a static executable.
- if (mod != NULL && (execlike || ehdr.e32.e_type == ET_EXEC))
- mod->is_executable = true;
-
- if (likely (mod != NULL) && build_id != NULL
- && unlikely (INTUSE(dwfl_module_report_build_id) (mod,
- build_id,
- build_id_len,
- build_id_vaddr)))
- {
- mod->gc = true;
- mod = NULL;
- }
-
- /* At this point we do not need BUILD_ID or NAME any more.
- They have been copied. */
- free (build_id);
- finish_portion (&soname, &soname_size);
-
- if (unlikely (mod == NULL))
- {
- ndx = -1;
- return finish ();
- }
-
- /* We have reported the module. Now let the caller decide whether we
- should read the whole thing in right now. */
-
- const GElf_Off cost = (contiguous < file_trimmed_end ? total_filesz
- : buffer_available >= contiguous ? 0
- : contiguous - buffer_available);
- const GElf_Off worthwhile = ((dynstr_vaddr == 0 || dynstrsz == 0) ? 0
- : dynstr_vaddr + dynstrsz - start);
- const GElf_Off whole = MAX (file_trimmed_end, shdrs_end);
-
- if (elf == NULL
- && (*read_eagerly) (MODCB_ARGS (mod), &buffer, &buffer_available,
- cost, worthwhile, whole, contiguous,
- read_eagerly_arg, &elf)
- && elf == NULL)
- {
- /* The caller wants to read the whole file in right now, but hasn't
- done it for us. Fill in a local image of the virtual file. */
-
- void *contents = calloc (1, file_trimmed_end);
- if (unlikely (contents == NULL))
- return finish ();
-
- inline void final_read (size_t offset, GElf_Addr vaddr, size_t size)
- {
- void *into = contents + offset;
- size_t read_size = size;
- (void) segment_read (addr_segndx (dwfl, segment, vaddr, false),
- &into, &read_size, vaddr, size);
- }
-
- if (contiguous < file_trimmed_end)
- {
- /* We can't use the memory image verbatim as the file image.
- So we'll be reading into a local image of the virtual file. */
-
- inline void read_phdr (GElf_Word type, GElf_Addr vaddr,
- GElf_Off offset, GElf_Xword filesz)
- {
- if (type == PT_LOAD)
- final_read (offset, vaddr + bias, filesz);
- }
-
- if (ei_class == ELFCLASS32)
- for (uint_fast16_t i = 0; i < phnum; ++i)
- read_phdr (phdrs.p32[i].p_type, phdrs.p32[i].p_vaddr,
- phdrs.p32[i].p_offset, phdrs.p32[i].p_filesz);
- else
- for (uint_fast16_t i = 0; i < phnum; ++i)
- read_phdr (phdrs.p64[i].p_type, phdrs.p64[i].p_vaddr,
- phdrs.p64[i].p_offset, phdrs.p64[i].p_filesz);
- }
- else
- {
- /* The whole file sits contiguous in memory,
- but the caller didn't want to just do it. */
-
- const size_t have = MIN (buffer_available, file_trimmed_end);
- memcpy (contents, buffer, have);
-
- if (have < file_trimmed_end)
- final_read (have, start + have, file_trimmed_end - have);
- }
-
- elf = elf_memory (contents, file_trimmed_end);
- if (unlikely (elf == NULL))
- free (contents);
- else
- elf->flags |= ELF_F_MALLOCED;
- }
-
- if (elf != NULL)
- {
- /* Install the file in the module. */
- mod->main.elf = elf;
- elf = NULL;
- fd = -1;
- mod->main.vaddr = module_start - bias;
- mod->main.address_sync = module_address_sync;
- mod->main_bias = bias;
- }
-
- return finish ();
-}
diff --git a/src/libdwfl/dwfl_validate_address.c b/src/libdwfl/dwfl_validate_address.c
deleted file mode 100644
index 7334c3e2..00000000
--- a/src/libdwfl/dwfl_validate_address.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/* Validate an address and the relocatability of an offset from it.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-int
-dwfl_validate_address (Dwfl *dwfl, Dwarf_Addr address, Dwarf_Sword offset)
-{
- Dwfl_Module *mod = INTUSE(dwfl_addrmodule) (dwfl, address);
- if (mod == NULL)
- return -1;
-
- Dwarf_Addr relative = address;
- int idx = INTUSE(dwfl_module_relocate_address) (mod, &relative);
- if (idx < 0)
- return -1;
-
- if (offset != 0)
- {
- int offset_idx = -1;
- relative = address + offset;
- if (relative >= mod->low_addr && relative <= mod->high_addr)
- {
- offset_idx = INTUSE(dwfl_module_relocate_address) (mod, &relative);
- if (offset_idx < 0)
- return -1;
- }
- if (offset_idx != idx)
- {
- __libdwfl_seterrno (DWFL_E_ADDR_OUTOFRANGE);
- return -1;
- }
- }
-
- return 0;
-}
diff --git a/src/libdwfl/dwfl_version.c b/src/libdwfl/dwfl_version.c
deleted file mode 100644
index 9673a536..00000000
--- a/src/libdwfl/dwfl_version.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Return implementation's version string suitable for printing.
- Copyright (C) 2006, 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-const char *
-dwfl_version (dwfl)
- Dwfl *dwfl __attribute__ ((unused));
-{
- return PACKAGE_VERSION;
-}
diff --git a/src/libdwfl/elf-from-memory.c b/src/libdwfl/elf-from-memory.c
deleted file mode 100644
index b35fac71..00000000
--- a/src/libdwfl/elf-from-memory.c
+++ /dev/null
@@ -1,370 +0,0 @@
-/* Reconstruct an ELF file by reading the segments out of remote memory.
- Copyright (C) 2005-2011, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include "../libelf/libelfP.h"
-#undef _
-
-#include "libdwflP.h"
-
-#include <gelf.h>
-#include <sys/types.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
-
-/* Reconstruct an ELF file by reading the segments out of remote memory
- based on the ELF file header at EHDR_VMA and the ELF program headers it
- points to. If not null, *LOADBASEP is filled in with the difference
- between the addresses from which the segments were read, and the
- addresses the file headers put them at.
-
- The function READ_MEMORY is called to copy at least MINREAD and at most
- MAXREAD bytes from the remote memory at target address ADDRESS into the
- local buffer at DATA; it should return -1 for errors (with code in
- `errno'), 0 if it failed to read at least MINREAD bytes due to EOF, or
- the number of bytes read if >= MINREAD. ARG is passed through.
-
- PAGESIZE is the minimum page size and alignment used for the PT_LOAD
- segments. */
-
-Elf *
-elf_from_remote_memory (GElf_Addr ehdr_vma,
- GElf_Xword pagesize,
- GElf_Addr *loadbasep,
- ssize_t (*read_memory) (void *arg, void *data,
- GElf_Addr address,
- size_t minread,
- size_t maxread),
- void *arg)
-{
- /* First read in the file header and check its sanity. */
-
- const size_t initial_bufsize = 256;
- unsigned char *buffer = malloc (initial_bufsize);
- if (buffer == NULL)
- {
- no_memory:
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return NULL;
- }
-
- ssize_t nread = (*read_memory) (arg, buffer, ehdr_vma,
- sizeof (Elf32_Ehdr), initial_bufsize);
- if (nread <= 0)
- {
- read_error:
- free (buffer);
- __libdwfl_seterrno (nread < 0 ? DWFL_E_ERRNO : DWFL_E_TRUNCATED);
- return NULL;
- }
-
- if (memcmp (buffer, ELFMAG, SELFMAG) != 0)
- {
- bad_elf:
- free (buffer);
- __libdwfl_seterrno (DWFL_E_BADELF);
- return NULL;
- }
-
- /* Extract the information we need from the file header. */
-
- union
- {
- Elf32_Ehdr e32;
- Elf64_Ehdr e64;
- } ehdr;
- Elf_Data xlatefrom =
- {
- .d_type = ELF_T_EHDR,
- .d_buf = buffer,
- .d_version = EV_CURRENT,
- };
- Elf_Data xlateto =
- {
- .d_type = ELF_T_EHDR,
- .d_buf = &ehdr,
- .d_size = sizeof ehdr,
- .d_version = EV_CURRENT,
- };
-
- GElf_Off phoff;
- uint_fast16_t phnum;
- uint_fast16_t phentsize;
- GElf_Off shdrs_end;
-
- switch (buffer[EI_CLASS])
- {
- case ELFCLASS32:
- xlatefrom.d_size = sizeof (Elf32_Ehdr);
- if (elf32_xlatetom (&xlateto, &xlatefrom, buffer[EI_DATA]) == NULL)
- {
- libelf_error:
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return NULL;
- }
- phoff = ehdr.e32.e_phoff;
- phnum = ehdr.e32.e_phnum;
- phentsize = ehdr.e32.e_phentsize;
- if (phentsize != sizeof (Elf32_Phdr) || phnum == 0)
- goto bad_elf;
- shdrs_end = ehdr.e32.e_shoff + ehdr.e32.e_shnum * ehdr.e32.e_shentsize;
- break;
-
- case ELFCLASS64:
- xlatefrom.d_size = sizeof (Elf64_Ehdr);
- if (elf64_xlatetom (&xlateto, &xlatefrom, buffer[EI_DATA]) == NULL)
- goto libelf_error;
- phoff = ehdr.e64.e_phoff;
- phnum = ehdr.e64.e_phnum;
- phentsize = ehdr.e64.e_phentsize;
- if (phentsize != sizeof (Elf64_Phdr) || phnum == 0)
- goto bad_elf;
- shdrs_end = ehdr.e64.e_shoff + ehdr.e64.e_shnum * ehdr.e64.e_shentsize;
- break;
-
- default:
- goto bad_elf;
- }
-
-
- /* The file header tells where to find the program headers.
- These are what we use to actually choose what to read. */
-
- xlatefrom.d_type = xlateto.d_type = ELF_T_PHDR;
- xlatefrom.d_size = phnum * phentsize;
-
- if ((size_t) nread >= phoff + phnum * phentsize)
- /* We already have all the phdrs from the initial read. */
- xlatefrom.d_buf = buffer + phoff;
- else
- {
- /* Read in the program headers. */
-
- if (initial_bufsize < phnum * phentsize)
- {
- unsigned char *newbuf = realloc (buffer, phnum * phentsize);
- if (newbuf == NULL)
- {
- free (buffer);
- goto no_memory;
- }
- buffer = newbuf;
- }
- nread = (*read_memory) (arg, buffer, ehdr_vma + phoff,
- phnum * phentsize, phnum * phentsize);
- if (nread <= 0)
- goto read_error;
-
- xlatefrom.d_buf = buffer;
- }
-
- union
- {
- Elf32_Phdr p32[phnum];
- Elf64_Phdr p64[phnum];
- } phdrs;
-
- xlateto.d_buf = &phdrs;
- xlateto.d_size = sizeof phdrs;
-
- /* Scan for PT_LOAD segments to find the total size of the file image. */
- size_t contents_size = 0;
- GElf_Off segments_end = 0;
- GElf_Off segments_end_mem = 0;
- GElf_Addr loadbase = ehdr_vma;
- bool found_base = false;
- switch (ehdr.e32.e_ident[EI_CLASS])
- {
- /* Sanity checks segments and calculates segment_end,
- segments_end, segments_end_mem and loadbase (if not
- found_base yet). Returns true if sanity checking failed,
- false otherwise. */
- inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
- GElf_Xword filesz, GElf_Xword memsz)
- {
- /* Sanity check the segment load aligns with the pagesize. */
- if (((vaddr - offset) & (pagesize - 1)) != 0)
- return true;
-
- GElf_Off segment_end = ((offset + filesz + pagesize - 1)
- & -pagesize);
-
- if (segment_end > (GElf_Off) contents_size)
- contents_size = segment_end;
-
- if (!found_base && (offset & -pagesize) == 0)
- {
- loadbase = ehdr_vma - (vaddr & -pagesize);
- found_base = true;
- }
-
- segments_end = offset + filesz;
- segments_end_mem = offset + memsz;
- return false;
- }
-
- case ELFCLASS32:
- if (elf32_xlatetom (&xlateto, &xlatefrom,
- ehdr.e32.e_ident[EI_DATA]) == NULL)
- goto libelf_error;
- for (uint_fast16_t i = 0; i < phnum; ++i)
- if (phdrs.p32[i].p_type == PT_LOAD)
- if (handle_segment (phdrs.p32[i].p_vaddr, phdrs.p32[i].p_offset,
- phdrs.p32[i].p_filesz, phdrs.p32[i].p_memsz))
- goto bad_elf;
- break;
-
- case ELFCLASS64:
- if (elf64_xlatetom (&xlateto, &xlatefrom,
- ehdr.e64.e_ident[EI_DATA]) == NULL)
- goto libelf_error;
- for (uint_fast16_t i = 0; i < phnum; ++i)
- if (phdrs.p64[i].p_type == PT_LOAD)
- if (handle_segment (phdrs.p64[i].p_vaddr, phdrs.p64[i].p_offset,
- phdrs.p64[i].p_filesz, phdrs.p64[i].p_memsz))
- goto bad_elf;
- break;
-
- default:
- abort ();
- break;
- }
-
- /* Trim the last segment so we don't bother with zeros in the last page
- that are off the end of the file. However, if the extra bit in that
- page includes the section headers and the memory isn't extended (which
- might indicate it will have been reused otherwise), keep them. */
- if ((GElf_Off) contents_size > segments_end
- && (GElf_Off) contents_size >= shdrs_end
- && segments_end == segments_end_mem)
- {
- contents_size = segments_end;
- if ((GElf_Off) contents_size < shdrs_end)
- contents_size = shdrs_end;
- }
- else
- contents_size = segments_end;
-
- free (buffer);
-
- /* Now we know the size of the whole image we want read in. */
- buffer = calloc (1, contents_size);
- if (buffer == NULL)
- goto no_memory;
-
- switch (ehdr.e32.e_ident[EI_CLASS])
- {
- /* Reads the given segment. Returns true if reading fails,
- false otherwise. */
- inline bool handle_segment (GElf_Addr vaddr, GElf_Off offset,
- GElf_Xword filesz)
- {
- GElf_Off start = offset & -pagesize;
- GElf_Off end = (offset + filesz + pagesize - 1) & -pagesize;
- if (end > (GElf_Off) contents_size)
- end = contents_size;
- nread = (*read_memory) (arg, buffer + start,
- (loadbase + vaddr) & -pagesize,
- end - start, end - start);
- return nread <= 0;
- }
-
- case ELFCLASS32:
- for (uint_fast16_t i = 0; i < phnum; ++i)
- if (phdrs.p32[i].p_type == PT_LOAD)
- if (handle_segment (phdrs.p32[i].p_vaddr, phdrs.p32[i].p_offset,
- phdrs.p32[i].p_filesz))
- goto read_error;
-
- /* If the segments visible in memory didn't include the section
- headers, then clear them from the file header. */
- if (contents_size < shdrs_end)
- {
- ehdr.e32.e_shoff = 0;
- ehdr.e32.e_shnum = 0;
- ehdr.e32.e_shstrndx = 0;
- }
-
- /* This will normally have been in the first PT_LOAD segment. But it
- conceivably could be missing, and we might have just changed it. */
- xlatefrom.d_type = xlateto.d_type = ELF_T_EHDR;
- xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e32;
- xlatefrom.d_buf = &ehdr.e32;
- xlateto.d_buf = buffer;
- if (elf32_xlatetof (&xlateto, &xlatefrom,
- ehdr.e32.e_ident[EI_DATA]) == NULL)
- goto libelf_error;
- break;
-
- case ELFCLASS64:
- for (uint_fast16_t i = 0; i < phnum; ++i)
- if (phdrs.p64[i].p_type == PT_LOAD)
- if (handle_segment (phdrs.p64[i].p_vaddr, phdrs.p64[i].p_offset,
- phdrs.p64[i].p_filesz))
- goto read_error;
-
- /* If the segments visible in memory didn't include the section
- headers, then clear them from the file header. */
- if (contents_size < shdrs_end)
- {
- ehdr.e64.e_shoff = 0;
- ehdr.e64.e_shnum = 0;
- ehdr.e64.e_shstrndx = 0;
- }
-
- /* This will normally have been in the first PT_LOAD segment. But it
- conceivably could be missing, and we might have just changed it. */
- xlatefrom.d_type = xlateto.d_type = ELF_T_EHDR;
- xlatefrom.d_size = xlateto.d_size = sizeof ehdr.e64;
- xlatefrom.d_buf = &ehdr.e64;
- xlateto.d_buf = buffer;
- if (elf64_xlatetof (&xlateto, &xlatefrom,
- ehdr.e64.e_ident[EI_DATA]) == NULL)
- goto libelf_error;
- break;
-
- default:
- abort ();
- break;
- }
-
- /* Now we have the image. Open libelf on it. */
-
- Elf *elf = elf_memory ((char *) buffer, contents_size);
- if (elf == NULL)
- {
- free (buffer);
- goto libelf_error;
- }
-
- elf->flags |= ELF_F_MALLOCED;
- if (loadbasep != NULL)
- *loadbasep = loadbase;
- return elf;
-}
diff --git a/src/libdwfl/find-debuginfo.c b/src/libdwfl/find-debuginfo.c
deleted file mode 100644
index 3f5314ad..00000000
--- a/src/libdwfl/find-debuginfo.c
+++ /dev/null
@@ -1,351 +0,0 @@
-/* Standard find_debuginfo callback for libdwfl.
- Copyright (C) 2005-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <stdio.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include "system.h"
-
-
-/* Try to open64 [DIR/][SUBDIR/]DEBUGLINK, return file descriptor or -1.
- On success, *DEBUGINFO_FILE_NAME has the malloc'd name of the open file. */
-static int
-try_open (const struct stat64 *main_stat,
- const char *dir, const char *subdir, const char *debuglink,
- char **debuginfo_file_name)
-{
- char *fname;
- if (dir == NULL && subdir == NULL)
- {
- fname = strdup (debuglink);
- if (fname == NULL)
- return -1;
- }
- else if ((subdir == NULL ? asprintf (&fname, "%s/%s", dir, debuglink)
- : dir == NULL ? asprintf (&fname, "%s/%s", subdir, debuglink)
- : asprintf (&fname, "%s/%s/%s", dir, subdir, debuglink)) < 0)
- return -1;
-
- struct stat64 st;
- int fd = TEMP_FAILURE_RETRY (open64 (fname, O_RDONLY));
- if (fd < 0)
- free (fname);
- else if (fstat64 (fd, &st) == 0
- && st.st_ino == main_stat->st_ino
- && st.st_dev == main_stat->st_dev)
- {
- /* This is the main file by another name. Don't look at it again. */
- close (fd);
- errno = ENOENT;
- fd = -1;
- }
- else
- *debuginfo_file_name = fname;
-
- return fd;
-}
-
-/* Return true iff the FD's contents CRC matches DEBUGLINK_CRC. */
-static inline bool
-check_crc (int fd, GElf_Word debuglink_crc)
-{
- uint32_t file_crc;
- return (__libdwfl_crc32_file (fd, &file_crc) == 0
- && file_crc == debuglink_crc);
-}
-
-static bool
-validate (Dwfl_Module *mod, int fd, bool check, GElf_Word debuglink_crc)
-{
- /* For alt debug files always check the build-id from the Dwarf and alt. */
- if (mod->dw != NULL)
- {
- bool valid = false;
- const void *build_id;
- const char *altname;
- ssize_t build_id_len = INTUSE(dwelf_dwarf_gnu_debugaltlink) (mod->dw,
- &altname,
- &build_id);
- if (build_id_len > 0)
- {
- /* We need to open an Elf handle on the file so we can check its
- build ID note for validation. Backdoor the handle into the
- module data structure since we had to open it early anyway. */
- Dwfl_Error error = __libdw_open_file (&fd, &mod->alt_elf,
- false, false);
- if (error != DWFL_E_NOERROR)
- __libdwfl_seterrno (error);
- else
- {
- const void *alt_build_id;
- ssize_t alt_len = INTUSE(dwelf_elf_gnu_build_id) (mod->alt_elf,
- &alt_build_id);
- if (alt_len > 0 && alt_len == build_id_len
- && memcmp (build_id, alt_build_id, alt_len) == 0)
- valid = true;
- else
- {
- /* A mismatch! */
- elf_end (mod->alt_elf);
- mod->alt_elf = NULL;
- close (fd);
- fd = -1;
- }
- }
- }
- return valid;
- }
-
- /* If we have a build ID, check only that. */
- if (mod->build_id_len > 0)
- {
- /* We need to open an Elf handle on the file so we can check its
- build ID note for validation. Backdoor the handle into the
- module data structure since we had to open it early anyway. */
-
- mod->debug.valid = false;
- Dwfl_Error error = __libdw_open_file (&fd, &mod->debug.elf, false, false);
- if (error != DWFL_E_NOERROR)
- __libdwfl_seterrno (error);
- else if (likely (__libdwfl_find_build_id (mod, false,
- mod->debug.elf) == 2))
- /* Also backdoor the gratuitous flag. */
- mod->debug.valid = true;
- else
- {
- /* A mismatch! */
- elf_end (mod->debug.elf);
- mod->debug.elf = NULL;
- close (fd);
- fd = -1;
- }
-
- return mod->debug.valid;
- }
-
- return !check || check_crc (fd, debuglink_crc);
-}
-
-static int
-find_debuginfo_in_path (Dwfl_Module *mod, const char *file_name,
- const char *debuglink_file, GElf_Word debuglink_crc,
- char **debuginfo_file_name)
-{
- bool cancheck = debuglink_crc != (GElf_Word) 0;
-
- const char *file_basename = file_name == NULL ? NULL : basename (file_name);
- if (debuglink_file == NULL)
- {
- /* For a alt debug multi file we need a name, for a separate debug
- name we may be able to fall back on file_basename.debug. */
- if (file_basename == NULL || mod->dw != NULL)
- {
- errno = 0;
- return -1;
- }
-
- size_t len = strlen (file_basename);
- char *localname = alloca (len + sizeof ".debug");
- memcpy (localname, file_basename, len);
- memcpy (&localname[len], ".debug", sizeof ".debug");
- debuglink_file = localname;
- cancheck = false;
- }
-
- /* Look for a file named DEBUGLINK_FILE in the directories
- indicated by the debug directory path setting. */
-
- const Dwfl_Callbacks *const cb = mod->dwfl->callbacks;
- char *path = strdupa ((cb->debuginfo_path ? *cb->debuginfo_path : NULL)
- ?: DEFAULT_DEBUGINFO_PATH);
-
- /* A leading - or + in the whole path sets whether to check file CRCs. */
- bool defcheck = true;
- if (path[0] == '-' || path[0] == '+')
- {
- defcheck = path[0] == '+';
- ++path;
- }
-
- /* XXX dev/ino should be cached in struct dwfl_file. */
- struct stat64 main_stat;
- if (unlikely ((mod->main.fd != -1 ? fstat64 (mod->main.fd, &main_stat)
- : file_name != NULL ? stat64 (file_name, &main_stat)
- : -1) < 0))
- {
- main_stat.st_dev = 0;
- main_stat.st_ino = 0;
- }
-
- char *file_dirname = (file_basename == file_name ? NULL
- : strndupa (file_name, file_basename - 1 - file_name));
- char *p;
- while ((p = strsep (&path, ":")) != NULL)
- {
- /* A leading - or + says whether to check file CRCs for this element. */
- bool check = defcheck;
- if (*p == '+' || *p == '-')
- check = *p++ == '+';
- check = check && cancheck;
-
- const char *dir, *subdir, *file;
- switch (p[0])
- {
- case '\0':
- /* An empty entry says to try the main file's directory. */
- dir = file_dirname;
- subdir = NULL;
- file = debuglink_file;
- break;
- case '/':
- /* An absolute path says to look there for a subdirectory
- named by the main file's absolute directory. This cannot
- be applied to a relative file name. For alt debug files
- it means to look for the basename file in that dir or the
- .dwz subdir (see below). */
- if (mod->dw == NULL
- && (file_dirname == NULL || file_dirname[0] != '/'))
- continue;
- dir = p;
- if (mod->dw == NULL)
- {
- subdir = file_dirname + 1;
- file = debuglink_file;
- }
- else
- {
- subdir = NULL;
- file = basename (debuglink_file);
- }
- break;
- default:
- /* A relative path says to try a subdirectory of that name
- in the main file's directory. */
- dir = file_dirname;
- subdir = p;
- file = debuglink_file;
- break;
- }
-
- char *fname = NULL;
- int fd = try_open (&main_stat, dir, subdir, file, &fname);
- if (fd < 0)
- switch (errno)
- {
- case ENOENT:
- case ENOTDIR:
- /* If we are looking for the alt file also try the .dwz subdir.
- But only if this is the empty or absolute path. */
- if (mod->dw != NULL && (p[0] == '\0' || p[0] == '/'))
- {
- fd = try_open (&main_stat, dir, ".dwz",
- basename (file), &fname);
- if (fd < 0)
- {
- if (errno != ENOENT && errno != ENOTDIR)
- return -1;
- else
- continue;
- }
- break;
- }
- continue;
- default:
- return -1;
- }
- if (validate (mod, fd, check, debuglink_crc))
- {
- *debuginfo_file_name = fname;
- return fd;
- }
- free (fname);
- close (fd);
- }
-
- /* No dice. */
- errno = 0;
- return -1;
-}
-
-int
-dwfl_standard_find_debuginfo (Dwfl_Module *mod,
- void **userdata __attribute__ ((unused)),
- const char *modname __attribute__ ((unused)),
- GElf_Addr base __attribute__ ((unused)),
- const char *file_name,
- const char *debuglink_file,
- GElf_Word debuglink_crc,
- char **debuginfo_file_name)
-{
- /* First try by build ID if we have one. If that succeeds or fails
- other than just by finding nothing, that's all we do. */
- const unsigned char *bits;
- GElf_Addr vaddr;
- if (INTUSE(dwfl_module_build_id) (mod, &bits, &vaddr) > 0)
- {
- /* Dropping most arguments means we cannot rely on them in
- dwfl_build_id_find_debuginfo. But leave it that way since
- some user code out there also does this, so we'll have to
- handle it anyway. */
- int fd = INTUSE(dwfl_build_id_find_debuginfo) (mod,
- NULL, NULL, 0,
- NULL, NULL, 0,
- debuginfo_file_name);
-
- /* Did the build_id callback find something or report an error?
- Then we are done. Otherwise fallback on path based search. */
- if (fd >= 0
- || (mod->dw == NULL && mod->debug.elf != NULL)
- || (mod->dw != NULL && mod->alt_elf != NULL)
- || errno != 0)
- return fd;
- }
-
- /* Failing that, search the path by name. */
- int fd = find_debuginfo_in_path (mod, file_name,
- debuglink_file, debuglink_crc,
- debuginfo_file_name);
-
- if (fd < 0 && errno == 0)
- {
- /* If FILE_NAME is a symlink, the debug file might be associated
- with the symlink target name instead. */
-
- char *canon = canonicalize_file_name (file_name);
- if (canon != NULL && strcmp (file_name, canon))
- fd = find_debuginfo_in_path (mod, canon,
- debuglink_file, debuglink_crc,
- debuginfo_file_name);
- free (canon);
- }
-
- return fd;
-}
-INTDEF (dwfl_standard_find_debuginfo)
diff --git a/src/libdwfl/frame_unwind.c b/src/libdwfl/frame_unwind.c
deleted file mode 100644
index 16cebd08..00000000
--- a/src/libdwfl/frame_unwind.c
+++ /dev/null
@@ -1,725 +0,0 @@
-/* Get previous frame state for an existing frame state.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "cfi.h"
-#include <stdlib.h>
-#include "libdwflP.h"
-#include "../libdw/dwarf.h"
-#include <sys/ptrace.h>
-
-/* Maximum number of DWARF expression stack slots before returning an error. */
-#define DWARF_EXPR_STACK_MAX 0x100
-
-/* Maximum number of DWARF expression executed operations before returning an
- error. */
-#define DWARF_EXPR_STEPS_MAX 0x1000
-
-#ifndef MAX
-# define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
-bool
-internal_function
-__libdwfl_frame_reg_get (Dwfl_Frame *state, unsigned regno, Dwarf_Addr *val)
-{
- Ebl *ebl = state->thread->process->ebl;
- if (! ebl_dwarf_to_regno (ebl, &regno))
- return false;
- if (regno >= ebl_frame_nregs (ebl))
- return false;
- if ((state->regs_set[regno / sizeof (*state->regs_set) / 8]
- & ((uint64_t) 1U << (regno % (sizeof (*state->regs_set) * 8)))) == 0)
- return false;
- if (val)
- *val = state->regs[regno];
- return true;
-}
-
-bool
-internal_function
-__libdwfl_frame_reg_set (Dwfl_Frame *state, unsigned regno, Dwarf_Addr val)
-{
- Ebl *ebl = state->thread->process->ebl;
- if (! ebl_dwarf_to_regno (ebl, &regno))
- return false;
- if (regno >= ebl_frame_nregs (ebl))
- return false;
- /* For example i386 user_regs_struct has signed fields. */
- if (ebl_get_elfclass (ebl) == ELFCLASS32)
- val &= 0xffffffff;
- state->regs_set[regno / sizeof (*state->regs_set) / 8] |=
- ((uint64_t) 1U << (regno % (sizeof (*state->regs_set) * 8)));
- state->regs[regno] = val;
- return true;
-}
-
-static bool
-state_get_reg (Dwfl_Frame *state, unsigned regno, Dwarf_Addr *val)
-{
- if (! __libdwfl_frame_reg_get (state, regno, val))
- {
- __libdwfl_seterrno (DWFL_E_INVALID_REGISTER);
- return false;
- }
- return true;
-}
-
-static int
-bra_compar (const void *key_voidp, const void *elem_voidp)
-{
- Dwarf_Word offset = (uintptr_t) key_voidp;
- const Dwarf_Op *op = elem_voidp;
- return (offset > op->offset) - (offset < op->offset);
-}
-
-/* If FRAME is NULL is are computing CFI frame base. In such case another
- DW_OP_call_frame_cfa is no longer permitted. */
-
-static bool
-expr_eval (Dwfl_Frame *state, Dwarf_Frame *frame, const Dwarf_Op *ops,
- size_t nops, Dwarf_Addr *result, Dwarf_Addr bias)
-{
- Dwfl_Process *process = state->thread->process;
- if (nops == 0)
- {
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- Dwarf_Addr *stack = NULL;
- size_t stack_used = 0, stack_allocated = 0;
-
- bool
- push (Dwarf_Addr val)
- {
- if (stack_used >= DWARF_EXPR_STACK_MAX)
- {
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- if (stack_used == stack_allocated)
- {
- stack_allocated = MAX (stack_allocated * 2, 32);
- Dwarf_Addr *stack_new = realloc (stack, stack_allocated * sizeof (*stack));
- if (stack_new == NULL)
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return false;
- }
- stack = stack_new;
- }
- stack[stack_used++] = val;
- return true;
- }
-
- bool
- pop (Dwarf_Addr *val)
- {
- if (stack_used == 0)
- {
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- *val = stack[--stack_used];
- return true;
- }
-
- Dwarf_Addr val1, val2;
- bool is_location = false;
- size_t steps_count = 0;
- for (const Dwarf_Op *op = ops; op < ops + nops; op++)
- {
- if (++steps_count > DWARF_EXPR_STEPS_MAX)
- {
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- switch (op->atom)
- {
- /* DW_OP_* order matches libgcc/unwind-dw2.c execute_stack_op: */
- case DW_OP_lit0 ... DW_OP_lit31:
- if (! push (op->atom - DW_OP_lit0))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_addr:
- if (! push (op->number + bias))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_GNU_encoded_addr:
- /* Missing support in the rest of elfutils. */
- __libdwfl_seterrno (DWFL_E_UNSUPPORTED_DWARF);
- return false;
- case DW_OP_const1u:
- case DW_OP_const1s:
- case DW_OP_const2u:
- case DW_OP_const2s:
- case DW_OP_const4u:
- case DW_OP_const4s:
- case DW_OP_const8u:
- case DW_OP_const8s:
- case DW_OP_constu:
- case DW_OP_consts:
- if (! push (op->number))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_reg0 ... DW_OP_reg31:
- if (! state_get_reg (state, op->atom - DW_OP_reg0, &val1)
- || ! push (val1))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_regx:
- if (! state_get_reg (state, op->number, &val1) || ! push (val1))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_breg0 ... DW_OP_breg31:
- if (! state_get_reg (state, op->atom - DW_OP_breg0, &val1))
- {
- free (stack);
- return false;
- }
- val1 += op->number;
- if (! push (val1))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_bregx:
- if (! state_get_reg (state, op->number, &val1))
- {
- free (stack);
- return false;
- }
- val1 += op->number2;
- if (! push (val1))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_dup:
- if (! pop (&val1) || ! push (val1) || ! push (val1))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_drop:
- if (! pop (&val1))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_pick:
- if (stack_used <= op->number)
- {
- free (stack);
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- if (! push (stack[stack_used - 1 - op->number]))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_over:
- if (! pop (&val1) || ! pop (&val2)
- || ! push (val2) || ! push (val1) || ! push (val2))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_swap:
- if (! pop (&val1) || ! pop (&val2) || ! push (val1) || ! push (val2))
- {
- free (stack);
- return false;
- }
- break;
- case DW_OP_rot:
- {
- Dwarf_Addr val3;
- if (! pop (&val1) || ! pop (&val2) || ! pop (&val3)
- || ! push (val1) || ! push (val3) || ! push (val2))
- {
- free (stack);
- return false;
- }
- }
- break;
- case DW_OP_deref:
- case DW_OP_deref_size:
- if (process->callbacks->memory_read == NULL)
- {
- free (stack);
- __libdwfl_seterrno (DWFL_E_INVALID_ARGUMENT);
- return false;
- }
- if (! pop (&val1)
- || ! process->callbacks->memory_read (process->dwfl, val1, &val1,
- process->callbacks_arg))
- {
- free (stack);
- return false;
- }
- if (op->atom == DW_OP_deref_size)
- {
- const int elfclass = frame->cache->e_ident[EI_CLASS];
- const unsigned addr_bytes = elfclass == ELFCLASS32 ? 4 : 8;
- if (op->number > addr_bytes)
- {
- free (stack);
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
-#if BYTE_ORDER == BIG_ENDIAN
- if (op->number == 0)
- val1 = 0;
- else
- val1 >>= (addr_bytes - op->number) * 8;
-#else
- if (op->number < 8)
- val1 &= (1 << (op->number * 8)) - 1;
-#endif
- }
- if (! push (val1))
- {
- free (stack);
- return false;
- }
- break;
-#define UNOP(atom, expr) \
- case atom: \
- if (! pop (&val1) || ! push (expr)) \
- { \
- free (stack); \
- return false; \
- } \
- break;
- UNOP (DW_OP_abs, abs ((int64_t) val1))
- UNOP (DW_OP_neg, -(int64_t) val1)
- UNOP (DW_OP_not, ~val1)
-#undef UNOP
- case DW_OP_plus_uconst:
- if (! pop (&val1) || ! push (val1 + op->number))
- {
- free (stack);
- return false;
- }
- break;
-#define BINOP(atom, op) \
- case atom: \
- if (! pop (&val2) || ! pop (&val1) || ! push (val1 op val2)) \
- { \
- free (stack); \
- return false; \
- } \
- break;
-#define BINOP_SIGNED(atom, op) \
- case atom: \
- if (! pop (&val2) || ! pop (&val1) \
- || ! push ((int64_t) val1 op (int64_t) val2)) \
- { \
- free (stack); \
- return false; \
- } \
- break;
- BINOP (DW_OP_and, &)
- case DW_OP_div:
- if (! pop (&val2) || ! pop (&val1))
- {
- free (stack);
- return false;
- }
- if (val2 == 0)
- {
- free (stack);
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- if (! push ((int64_t) val1 / (int64_t) val2))
- {
- free (stack);
- return false;
- }
- break;
- BINOP (DW_OP_minus, -)
- case DW_OP_mod:
- if (! pop (&val2) || ! pop (&val1))
- {
- free (stack);
- return false;
- }
- if (val2 == 0)
- {
- free (stack);
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- if (! push (val1 % val2))
- {
- free (stack);
- return false;
- }
- break;
- BINOP (DW_OP_mul, *)
- BINOP (DW_OP_or, |)
- BINOP (DW_OP_plus, +)
- BINOP (DW_OP_shl, <<)
- BINOP (DW_OP_shr, >>)
- BINOP_SIGNED (DW_OP_shra, >>)
- BINOP (DW_OP_xor, ^)
- BINOP_SIGNED (DW_OP_le, <=)
- BINOP_SIGNED (DW_OP_ge, >=)
- BINOP_SIGNED (DW_OP_eq, ==)
- BINOP_SIGNED (DW_OP_lt, <)
- BINOP_SIGNED (DW_OP_gt, >)
- BINOP_SIGNED (DW_OP_ne, !=)
-#undef BINOP
-#undef BINOP_SIGNED
- case DW_OP_bra:
- if (! pop (&val1))
- {
- free (stack);
- return false;
- }
- if (val1 == 0)
- break;
- /* FALLTHRU */
- case DW_OP_skip:;
- Dwarf_Word offset = op->offset + 1 + 2 + (int16_t) op->number;
- const Dwarf_Op *found = bsearch ((void *) (uintptr_t) offset, ops, nops,
- sizeof (*ops), bra_compar);
- if (found == NULL)
- {
- free (stack);
- /* PPC32 vDSO has such invalid operations. */
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- /* Undo the 'for' statement increment. */
- op = found - 1;
- break;
- case DW_OP_nop:
- break;
- /* DW_OP_* not listed in libgcc/unwind-dw2.c execute_stack_op: */
- case DW_OP_call_frame_cfa:;
- // Not used by CFI itself but it is synthetized by elfutils internation.
- Dwarf_Op *cfa_ops;
- size_t cfa_nops;
- Dwarf_Addr cfa;
- if (frame == NULL
- || dwarf_frame_cfa (frame, &cfa_ops, &cfa_nops) != 0
- || ! expr_eval (state, NULL, cfa_ops, cfa_nops, &cfa, bias)
- || ! push (cfa))
- {
- __libdwfl_seterrno (DWFL_E_LIBDW);
- free (stack);
- return false;
- }
- is_location = true;
- break;
- case DW_OP_stack_value:
- // Not used by CFI itself but it is synthetized by elfutils internation.
- is_location = false;
- break;
- default:
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- return false;
- }
- }
- if (! pop (result))
- {
- free (stack);
- return false;
- }
- free (stack);
- if (is_location)
- {
- if (process->callbacks->memory_read == NULL)
- {
- __libdwfl_seterrno (DWFL_E_INVALID_ARGUMENT);
- return false;
- }
- if (! process->callbacks->memory_read (process->dwfl, *result, result,
- process->callbacks_arg))
- return false;
- }
- return true;
-}
-
-static void
-new_unwound (Dwfl_Frame *state)
-{
- assert (state->unwound == NULL);
- Dwfl_Thread *thread = state->thread;
- Dwfl_Process *process = thread->process;
- Ebl *ebl = process->ebl;
- size_t nregs = ebl_frame_nregs (ebl);
- assert (nregs > 0);
- Dwfl_Frame *unwound;
- unwound = malloc (sizeof (*unwound) + sizeof (*unwound->regs) * nregs);
- state->unwound = unwound;
- unwound->thread = thread;
- unwound->unwound = NULL;
- unwound->signal_frame = false;
- unwound->initial_frame = false;
- unwound->pc_state = DWFL_FRAME_STATE_ERROR;
- memset (unwound->regs_set, 0, sizeof (unwound->regs_set));
-}
-
-/* The logic is to call __libdwfl_seterrno for any CFI bytecode interpretation
- error so one can easily catch the problem with a debugger. Still there are
- archs with invalid CFI for some registers where the registers are never used
- later. Therefore we continue unwinding leaving the registers undefined. */
-
-static void
-handle_cfi (Dwfl_Frame *state, Dwarf_Addr pc, Dwarf_CFI *cfi, Dwarf_Addr bias)
-{
- Dwarf_Frame *frame;
- if (INTUSE(dwarf_cfi_addrframe) (cfi, pc, &frame) != 0)
- {
- __libdwfl_seterrno (DWFL_E_LIBDW);
- return;
- }
- new_unwound (state);
- Dwfl_Frame *unwound = state->unwound;
- unwound->signal_frame = frame->fde->cie->signal_frame;
- Dwfl_Thread *thread = state->thread;
- Dwfl_Process *process = thread->process;
- Ebl *ebl = process->ebl;
- size_t nregs = ebl_frame_nregs (ebl);
- assert (nregs > 0);
-
- /* The return register is special for setting the unwound->pc_state. */
- unsigned ra = frame->fde->cie->return_address_register;
- bool ra_set = false;
- ebl_dwarf_to_regno (ebl, &ra);
-
- for (unsigned regno = 0; regno < nregs; regno++)
- {
- Dwarf_Op reg_ops_mem[3], *reg_ops;
- size_t reg_nops;
- if (dwarf_frame_register (frame, regno, reg_ops_mem, &reg_ops,
- &reg_nops) != 0)
- {
- __libdwfl_seterrno (DWFL_E_LIBDW);
- continue;
- }
- Dwarf_Addr regval;
- if (reg_nops == 0)
- {
- if (reg_ops == reg_ops_mem)
- {
- /* REGNO is undefined. */
- if (regno == ra)
- unwound->pc_state = DWFL_FRAME_STATE_PC_UNDEFINED;
- continue;
- }
- else if (reg_ops == NULL)
- {
- /* REGNO is same-value. */
- if (! state_get_reg (state, regno, &regval))
- continue;
- }
- else
- {
- __libdwfl_seterrno (DWFL_E_INVALID_DWARF);
- continue;
- }
- }
- else if (! expr_eval (state, frame, reg_ops, reg_nops, &regval, bias))
- {
- /* PPC32 vDSO has various invalid operations, ignore them. The
- register will look as unset causing an error later, if used.
- But PPC32 does not use such registers. */
- continue;
- }
-
- /* Some architectures encode some extra info in the return address. */
- if (regno == frame->fde->cie->return_address_register)
- regval &= ebl_func_addr_mask (ebl);
-
- /* This is another strange PPC[64] case. There are two
- registers numbers that can represent the same DWARF return
- register number. We only want one to actually set the return
- register value. But we always want to override the value if
- the register is the actual CIE return address register. */
- if (ra_set && regno != frame->fde->cie->return_address_register)
- {
- unsigned r = regno;
- if (ebl_dwarf_to_regno (ebl, &r) && r == ra)
- continue;
- }
-
- if (! __libdwfl_frame_reg_set (unwound, regno, regval))
- {
- __libdwfl_seterrno (DWFL_E_INVALID_REGISTER);
- continue;
- }
- else if (! ra_set)
- {
- unsigned r = regno;
- if (ebl_dwarf_to_regno (ebl, &r) && r == ra)
- ra_set = true;
- }
- }
- if (unwound->pc_state == DWFL_FRAME_STATE_ERROR
- && __libdwfl_frame_reg_get (unwound,
- frame->fde->cie->return_address_register,
- &unwound->pc))
- {
- /* PPC32 __libc_start_main properly CFI-unwinds PC as zero. Currently
- none of the archs supported for unwinding have zero as a valid PC. */
- if (unwound->pc == 0)
- unwound->pc_state = DWFL_FRAME_STATE_PC_UNDEFINED;
- else
- unwound->pc_state = DWFL_FRAME_STATE_PC_SET;
- }
- free (frame);
-}
-
-static bool
-setfunc (int firstreg, unsigned nregs, const Dwarf_Word *regs, void *arg)
-{
- Dwfl_Frame *state = arg;
- Dwfl_Frame *unwound = state->unwound;
- if (firstreg < 0)
- {
- assert (firstreg == -1);
- assert (nregs == 1);
- assert (unwound->pc_state == DWFL_FRAME_STATE_PC_UNDEFINED);
- unwound->pc = *regs;
- unwound->pc_state = DWFL_FRAME_STATE_PC_SET;
- return true;
- }
- while (nregs--)
- if (! __libdwfl_frame_reg_set (unwound, firstreg++, *regs++))
- return false;
- return true;
-}
-
-static bool
-getfunc (int firstreg, unsigned nregs, Dwarf_Word *regs, void *arg)
-{
- Dwfl_Frame *state = arg;
- assert (firstreg >= 0);
- while (nregs--)
- if (! __libdwfl_frame_reg_get (state, firstreg++, regs++))
- return false;
- return true;
-}
-
-static bool
-readfunc (Dwarf_Addr addr, Dwarf_Word *datap, void *arg)
-{
- Dwfl_Frame *state = arg;
- Dwfl_Thread *thread = state->thread;
- Dwfl_Process *process = thread->process;
- return process->callbacks->memory_read (process->dwfl, addr, datap,
- process->callbacks_arg);
-}
-
-void
-internal_function
-__libdwfl_frame_unwind (Dwfl_Frame *state)
-{
- if (state->unwound)
- return;
- /* Do not ask dwfl_frame_pc for ISACTIVATION, it would try to unwind STATE
- which would deadlock us. */
- Dwarf_Addr pc;
- bool ok = INTUSE(dwfl_frame_pc) (state, &pc, NULL);
- assert (ok);
- /* Check whether this is the initial frame or a signal frame.
- Then we need to unwind from the original, unadjusted PC. */
- if (! state->initial_frame && ! state->signal_frame)
- pc--;
- Dwfl_Module *mod = INTUSE(dwfl_addrmodule) (state->thread->process->dwfl, pc);
- if (mod == NULL)
- __libdwfl_seterrno (DWFL_E_NO_DWARF);
- else
- {
- Dwarf_Addr bias;
- Dwarf_CFI *cfi_eh = INTUSE(dwfl_module_eh_cfi) (mod, &bias);
- if (cfi_eh)
- {
- handle_cfi (state, pc - bias, cfi_eh, bias);
- if (state->unwound)
- return;
- }
- Dwarf_CFI *cfi_dwarf = INTUSE(dwfl_module_dwarf_cfi) (mod, &bias);
- if (cfi_dwarf)
- {
- handle_cfi (state, pc - bias, cfi_dwarf, bias);
- if (state->unwound)
- return;
- }
- }
- assert (state->unwound == NULL);
- Dwfl_Thread *thread = state->thread;
- Dwfl_Process *process = thread->process;
- Ebl *ebl = process->ebl;
- new_unwound (state);
- state->unwound->pc_state = DWFL_FRAME_STATE_PC_UNDEFINED;
- // &Dwfl_Frame.signal_frame cannot be passed as it is a bitfield.
- bool signal_frame = false;
- if (! ebl_unwind (ebl, pc, setfunc, getfunc, readfunc, state, &signal_frame))
- {
- // Discard the unwind attempt. During next __libdwfl_frame_unwind call
- // we may have for example the appropriate Dwfl_Module already mapped.
- assert (state->unwound->unwound == NULL);
- free (state->unwound);
- state->unwound = NULL;
- // __libdwfl_seterrno has been called above.
- return;
- }
- assert (state->unwound->pc_state == DWFL_FRAME_STATE_PC_SET);
- state->unwound->signal_frame = signal_frame;
-}
diff --git a/src/libdwfl/gzip.c b/src/libdwfl/gzip.c
deleted file mode 100644
index b7dde5d4..00000000
--- a/src/libdwfl/gzip.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/* Decompression support for libdwfl: zlib (gzip) and/or bzlib (bzip2).
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "system.h"
-
-#include <unistd.h>
-
-#ifdef LZMA
-# define USE_INFLATE 1
-# include <lzma.h>
-# define unzip __libdw_unlzma
-# define DWFL_E_ZLIB DWFL_E_LZMA
-# define MAGIC "\xFD" "7zXZ\0" /* XZ file format. */
-# define MAGIC2 "\x5d\0" /* Raw LZMA format. */
-# define Z(what) LZMA_##what
-# define LZMA_ERRNO LZMA_PROG_ERROR
-# define z_stream lzma_stream
-# define inflateInit(z) lzma_auto_decoder (z, 1 << 30, 0)
-# define do_inflate(z) lzma_code (z, LZMA_RUN)
-# define inflateEnd(z) lzma_end (z)
-#elif defined BZLIB
-# define USE_INFLATE 1
-# include <bzlib.h>
-# define unzip __libdw_bunzip2
-# define DWFL_E_ZLIB DWFL_E_BZLIB
-# define MAGIC "BZh"
-# define Z(what) BZ_##what
-# define BZ_ERRNO BZ_IO_ERROR
-# define z_stream bz_stream
-# define inflateInit(z) BZ2_bzDecompressInit (z, 0, 0)
-# define do_inflate(z) BZ2_bzDecompress (z)
-# define inflateEnd(z) BZ2_bzDecompressEnd (z)
-#else
-# define USE_INFLATE 0
-# define crc32 loser_crc32
-# include <zlib.h>
-# define unzip __libdw_gunzip
-# define MAGIC "\037\213"
-# define Z(what) Z_##what
-#endif
-
-#define READ_SIZE (1 << 20)
-
-/* If this is not a compressed image, return DWFL_E_BADELF.
- If we uncompressed it into *WHOLE, *WHOLE_SIZE, return DWFL_E_NOERROR.
- Otherwise return an error for bad compressed data or I/O failure.
- If we return an error after reading the first part of the file,
- leave that portion malloc'd in *WHOLE, *WHOLE_SIZE. If *WHOLE
- is not null on entry, we'll use it in lieu of repeating a read. */
-
-Dwfl_Error internal_function
-unzip (int fd, off64_t start_offset,
- void *mapped, size_t mapped_size,
- void **whole, size_t *whole_size)
-{
- void *buffer = NULL;
- size_t size = 0;
- inline bool bigger_buffer (size_t start)
- {
- size_t more = size ? size * 2 : start;
- char *b = realloc (buffer, more);
- while (unlikely (b == NULL) && more >= size + 1024)
- b = realloc (buffer, more -= 1024);
- if (unlikely (b == NULL))
- return false;
- buffer = b;
- size = more;
- return true;
- }
- inline void smaller_buffer (size_t end)
- {
- buffer = realloc (buffer, end) ?: end == 0 ? NULL : buffer;
- size = end;
- }
-
- void *input_buffer = NULL;
- off_t input_pos = 0;
-
- inline Dwfl_Error fail (Dwfl_Error failure)
- {
- if (input_pos == (off_t) mapped_size)
- *whole = input_buffer;
- else
- {
- free (input_buffer);
- *whole = NULL;
- }
- free (buffer);
- return failure;
- }
-
- inline Dwfl_Error zlib_fail (int result)
- {
- switch (result)
- {
- case Z (MEM_ERROR):
- return fail (DWFL_E_NOMEM);
- case Z (ERRNO):
- return fail (DWFL_E_ERRNO);
- default:
- return fail (DWFL_E_ZLIB);
- }
- }
-
- if (mapped == NULL)
- {
- if (*whole == NULL)
- {
- input_buffer = malloc (READ_SIZE);
- if (unlikely (input_buffer == NULL))
- return DWFL_E_NOMEM;
-
- ssize_t n = pread_retry (fd, input_buffer, READ_SIZE, start_offset);
- if (unlikely (n < 0))
- return zlib_fail (Z (ERRNO));
-
- input_pos = n;
- mapped = input_buffer;
- mapped_size = n;
- }
- else
- {
- input_buffer = *whole;
- input_pos = mapped_size = *whole_size;
- }
- }
-
-#define NOMAGIC(magic) \
- (mapped_size <= sizeof magic || memcmp (mapped, magic, sizeof magic - 1))
-
- /* First, look at the header. */
- if (NOMAGIC (MAGIC)
-#ifdef MAGIC2
- && NOMAGIC (MAGIC2)
-#endif
- )
- /* Not a compressed file. */
- return DWFL_E_BADELF;
-
-#if USE_INFLATE
-
- /* This style actually only works with bzlib and liblzma.
- The stupid zlib interface has nothing to grok the
- gzip file headers except the slow gzFile interface. */
-
- z_stream z = { .next_in = mapped, .avail_in = mapped_size };
- int result = inflateInit (&z);
- if (result != Z (OK))
- {
- inflateEnd (&z);
- return zlib_fail (result);
- }
-
- do
- {
- if (z.avail_in == 0 && input_buffer != NULL)
- {
- ssize_t n = pread_retry (fd, input_buffer, READ_SIZE,
- start_offset + input_pos);
- if (unlikely (n < 0))
- {
- inflateEnd (&z);
- return zlib_fail (Z (ERRNO));
- }
- z.next_in = input_buffer;
- z.avail_in = n;
- input_pos += n;
- }
- if (z.avail_out == 0)
- {
- ptrdiff_t pos = (void *) z.next_out - buffer;
- if (!bigger_buffer (z.avail_in))
- {
- result = Z (MEM_ERROR);
- break;
- }
- z.next_out = buffer + pos;
- z.avail_out = size - pos;
- }
- }
- while ((result = do_inflate (&z)) == Z (OK));
-
-#ifdef BZLIB
- uint64_t total_out = (((uint64_t) z.total_out_hi32 << 32)
- | z.total_out_lo32);
- smaller_buffer (total_out);
-#else
- smaller_buffer (z.total_out);
-#endif
-
- inflateEnd (&z);
-
- if (result != Z (STREAM_END))
- return zlib_fail (result);
-
-#else /* gzip only. */
-
- /* Let the decompression library read the file directly. */
-
- gzFile zf;
- Dwfl_Error open_stream (void)
- {
- int d = dup (fd);
- if (unlikely (d < 0))
- return DWFL_E_BADELF;
- if (start_offset != 0)
- {
- off64_t off = lseek (d, start_offset, SEEK_SET);
- if (off != start_offset)
- {
- close (d);
- return DWFL_E_BADELF;
- }
- }
- zf = gzdopen (d, "r");
- if (unlikely (zf == NULL))
- {
- close (d);
- return zlib_fail (Z (MEM_ERROR));
- }
-
- /* From here on, zlib will close D. */
-
- return DWFL_E_NOERROR;
- }
-
- Dwfl_Error result = open_stream ();
-
- if (result == DWFL_E_NOERROR && gzdirect (zf))
- {
- gzclose (zf);
- return fail (DWFL_E_BADELF);
- }
-
- if (result != DWFL_E_NOERROR)
- return fail (result);
-
- ptrdiff_t pos = 0;
- while (1)
- {
- if (!bigger_buffer (1024))
- {
- gzclose (zf);
- return zlib_fail (Z (MEM_ERROR));
- }
- int n = gzread (zf, buffer + pos, size - pos);
- if (n < 0)
- {
- int code;
- gzerror (zf, &code);
- gzclose (zf);
- return zlib_fail (code);
- }
- if (n == 0)
- break;
- pos += n;
- }
-
- gzclose (zf);
- smaller_buffer (pos);
-#endif
-
- free (input_buffer);
-
- *whole = buffer;
- *whole_size = size;
-
- return DWFL_E_NOERROR;
-}
diff --git a/src/libdwfl/image-header.c b/src/libdwfl/image-header.c
deleted file mode 100644
index a4f6799a..00000000
--- a/src/libdwfl/image-header.c
+++ /dev/null
@@ -1,101 +0,0 @@
-/* Linux kernel image support for libdwfl.
- Copyright (C) 2009-2011 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "system.h"
-
-#include <unistd.h>
-#include <endian.h>
-
-#if BYTE_ORDER == LITTLE_ENDIAN
-# define LE16(x) (x)
-#else
-# define LE16(x) bswap_16 (x)
-#endif
-
-/* See Documentation/x86/boot.txt in Linux kernel sources
- for an explanation of these format details. */
-
-#define MAGIC1 0xaa55
-#define MAGIC2 0x53726448 /* "HdrS" little-endian */
-#define MIN_VERSION 0x0208
-
-#define H_START (H_SETUP_SECTS & -4)
-#define H_SETUP_SECTS 0x1f1
-#define H_MAGIC1 0x1fe
-#define H_MAGIC2 0x202
-#define H_VERSION 0x206
-#define H_PAYLOAD_OFFSET 0x248
-#define H_PAYLOAD_LENGTH 0x24c
-#define H_END 0x250
-#define H_READ_SIZE (H_END - H_START)
-
-Dwfl_Error
-internal_function
-__libdw_image_header (int fd, off64_t *start_offset,
- void *mapped, size_t mapped_size)
-{
- if (likely (mapped_size > H_END))
- {
- const void *header = mapped;
- char header_buffer[H_READ_SIZE];
- if (header == NULL)
- {
- ssize_t n = pread_retry (fd, header_buffer, H_READ_SIZE,
- *start_offset + H_START);
- if (n < 0)
- return DWFL_E_ERRNO;
- if (n < H_READ_SIZE)
- return DWFL_E_BADELF;
-
- header = header_buffer - H_START;
- }
-
- if (*(uint16_t *) (header + H_MAGIC1) == LE16 (MAGIC1)
- && *(uint32_t *) (header + H_MAGIC2) == LE32 (MAGIC2)
- && LE16 (*(uint16_t *) (header + H_VERSION)) >= MIN_VERSION)
- {
- /* The magic numbers match and the version field is sufficient.
- Extract the payload bounds. */
-
- uint32_t offset = LE32 (*(uint32_t *) (header + H_PAYLOAD_OFFSET));
- uint32_t length = LE32 (*(uint32_t *) (header + H_PAYLOAD_LENGTH));
-
- offset += ((*(uint8_t *) (header + H_SETUP_SECTS) ?: 4) + 1) * 512;
-
- if (offset > H_END && offset < mapped_size
- && mapped_size - offset >= length)
- {
- /* It looks kosher. Use it! */
- *start_offset += offset;
- return DWFL_E_NOERROR;
- }
- }
- }
- return DWFL_E_BADELF;
-}
diff --git a/src/libdwfl/libdwfl.h b/src/libdwfl/libdwfl.h
deleted file mode 100644
index 2bb4f455..00000000
--- a/src/libdwfl/libdwfl.h
+++ /dev/null
@@ -1,812 +0,0 @@
-/* Interfaces for libdwfl.
- Copyright (C) 2005-2010, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBDWFL_H
-#define _LIBDWFL_H 1
-
-#include "libdw.h"
-#include <stdio.h>
-
-/* Handle for a session using the library. */
-typedef struct Dwfl Dwfl;
-
-/* Handle for a module. */
-typedef struct Dwfl_Module Dwfl_Module;
-
-/* Handle describing a line record. */
-typedef struct Dwfl_Line Dwfl_Line;
-
-/* This holds information common for all the frames of one backtrace for
- a partical thread/task/TID. Several threads belong to one Dwfl. */
-typedef struct Dwfl_Thread Dwfl_Thread;
-
-/* This holds everything we know about the state of the frame at a particular
- PC location described by an FDE belonging to Dwfl_Thread. */
-typedef struct Dwfl_Frame Dwfl_Frame;
-
-/* Callbacks. */
-typedef struct
-{
- int (*find_elf) (Dwfl_Module *mod, void **userdata,
- const char *modname, Dwarf_Addr base,
- char **file_name, Elf **elfp);
-
- int (*find_debuginfo) (Dwfl_Module *mod, void **userdata,
- const char *modname, Dwarf_Addr base,
- const char *file_name,
- const char *debuglink_file, GElf_Word debuglink_crc,
- char **debuginfo_file_name);
-
- /* Fill *ADDR with the loaded address of the section called SECNAME in
- the given module. Use (Dwarf_Addr) -1 if this section is omitted from
- accessible memory. This is called exactly once for each SHF_ALLOC
- section that relocations affecting DWARF data refer to, so it can
- easily be used to collect state about the sections referenced. */
- int (*section_address) (Dwfl_Module *mod, void **userdata,
- const char *modname, Dwarf_Addr base,
- const char *secname,
- GElf_Word shndx, const GElf_Shdr *shdr,
- Dwarf_Addr *addr);
-
- char **debuginfo_path; /* See dwfl_standard_find_debuginfo. */
-} Dwfl_Callbacks;
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Start a new session with the library. */
-extern Dwfl *dwfl_begin (const Dwfl_Callbacks *callbacks)
- __nonnull_attribute__ (1);
-
-
-/* End a session. */
-extern void dwfl_end (Dwfl *);
-
-/* Return implementation's version string suitable for printing. */
-extern const char *dwfl_version (Dwfl *);
-
-/* Return error code of last failing function call. This value is kept
- separately for each thread. */
-extern int dwfl_errno (void);
-
-/* Return error string for ERROR. If ERROR is zero, return error string
- for most recent error or NULL if none occurred. If ERROR is -1 the
- behaviour is similar to the last case except that not NULL but a legal
- string is returned. */
-extern const char *dwfl_errmsg (int err);
-
-
-/* Start reporting the current set of segments and modules to the library.
- All existing segments are wiped. Existing modules are marked to be
- deleted, and will not be found via dwfl_addrmodule et al if they are not
- re-reported before dwfl_report_end is called. */
-extern void dwfl_report_begin (Dwfl *dwfl);
-
-/* Report that segment NDX begins at PHDR->p_vaddr + BIAS.
- If NDX is < 0, the value succeeding the last call's NDX
- is used instead (zero on the first call).
-
- If nonzero, the smallest PHDR->p_align value seen sets the
- effective page size for the address space DWFL describes.
- This is the granularity at which reported module boundary
- addresses will be considered to fall in or out of a segment.
-
- Returns -1 for errors, or NDX (or its assigned replacement) on success.
-
- When NDX is the value succeeding the last call's NDX (or is implicitly
- so as above), IDENT is nonnull and matches the value in the last call,
- and the PHDR and BIAS values reflect a segment that would be contiguous,
- in both memory and file, with the last segment reported, then this
- segment may be coalesced internally with preceding segments. When given
- an address inside this segment, dwfl_addrsegment may return the NDX of a
- preceding contiguous segment. To prevent coalesced segments, always
- pass a null pointer for IDENT.
-
- The values passed are not stored (except to track coalescence).
- The only information that can be extracted from DWFL later is the
- mapping of an address to a segment index that starts at or below
- it. Reporting segments at all is optional. Its only benefit to
- the caller is to offer this quick lookup via dwfl_addrsegment,
- or use other segment-based calls. */
-extern int dwfl_report_segment (Dwfl *dwfl, int ndx,
- const GElf_Phdr *phdr, GElf_Addr bias,
- const void *ident);
-
-/* Report that a module called NAME spans addresses [START, END).
- Returns the module handle, either existing or newly allocated,
- or returns a null pointer for an allocation error. */
-extern Dwfl_Module *dwfl_report_module (Dwfl *dwfl, const char *name,
- Dwarf_Addr start, Dwarf_Addr end);
-
-/* Report a module to address BASE with start and end addresses computed
- from the ELF program headers in the given file - see the table below.
- FD may be -1 to open FILE_NAME. On success, FD is consumed by the
- library, and the `find_elf' callback will not be used for this module.
- ADD_P_VADDR BASE
- ET_EXEC ignored ignored
- ET_DYN false absolute address where to place the file
- true start address relative to ELF's phdr p_vaddr
- ET_REL ignored absolute address where to place the file
- ET_CORE ignored ignored
- ET_DYN ELF phdr p_vaddr address can be non-zero if the shared library
- has been prelinked by tool prelink(8). */
-extern Dwfl_Module *dwfl_report_elf (Dwfl *dwfl, const char *name,
- const char *file_name, int fd,
- GElf_Addr base, bool add_p_vaddr);
-
-/* Similar, but report the module for offline use. All ET_EXEC files
- being reported must be reported before any relocatable objects.
- If this is used, dwfl_report_module and dwfl_report_elf may not be
- used in the same reporting session. */
-extern Dwfl_Module *dwfl_report_offline (Dwfl *dwfl, const char *name,
- const char *file_name, int fd);
-
-
-/* Finish reporting the current set of modules to the library.
- If REMOVED is not null, it's called for each module that
- existed before but was not included in the current report.
- Returns a nonzero return value from the callback.
- The callback may call dwfl_report_module; doing so with the
- details of the module being removed prevents its removal.
- DWFL cannot be used until this function has returned zero. */
-extern int dwfl_report_end (Dwfl *dwfl,
- int (*removed) (Dwfl_Module *, void *,
- const char *, Dwarf_Addr,
- void *arg),
- void *arg);
-
-/* Start reporting additional modules to the library. No calls but
- dwfl_report_* can be made on DWFL until dwfl_report_end is called.
- This is like dwfl_report_begin, but all the old modules are kept on.
- More dwfl_report_* calls can follow to add more modules.
- When dwfl_report_end is called, no old modules will be removed. */
-extern void dwfl_report_begin_add (Dwfl *dwfl);
-
-
-/* Return the name of the module, and for each non-null argument store
- interesting details: *USERDATA is a location for storing your own
- pointer, **USERDATA is initially null; *START and *END give the address
- range covered by the module; *DWBIAS is the address bias for debugging
- information, and *SYMBIAS for symbol table entries (either is -1 if not
- yet accessed); *MAINFILE is the name of the ELF file, and *DEBUGFILE the
- name of the debuginfo file (might be equal to *MAINFILE; either is null
- if not yet accessed). */
-extern const char *dwfl_module_info (Dwfl_Module *mod, void ***userdata,
- Dwarf_Addr *start, Dwarf_Addr *end,
- Dwarf_Addr *dwbias, Dwarf_Addr *symbias,
- const char **mainfile,
- const char **debugfile);
-
-/* Iterate through the modules, starting the walk with OFFSET == 0.
- Calls *CALLBACK for each module as long as it returns DWARF_CB_OK.
- When *CALLBACK returns another value, the walk stops and the
- return value can be passed as OFFSET to resume it. Returns 0 when
- there are no more modules, or -1 for errors. */
-extern ptrdiff_t dwfl_getmodules (Dwfl *dwfl,
- int (*callback) (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- void *arg),
- void *arg,
- ptrdiff_t offset);
-
-/* Find the module containing the given address. */
-extern Dwfl_Module *dwfl_addrmodule (Dwfl *dwfl, Dwarf_Addr address);
-
-/* Find the segment, if any, and module, if any, containing ADDRESS.
- Returns a segment index returned by dwfl_report_segment, or -1
- if no segment matches the address. Regardless of the return value,
- *MOD is always set to the module containing ADDRESS, or to null. */
-extern int dwfl_addrsegment (Dwfl *dwfl, Dwarf_Addr address, Dwfl_Module **mod);
-
-
-
-/* Report the known build ID bits associated with a module.
- If VADDR is nonzero, it gives the absolute address where those
- bits are found within the module. This can be called at any
- time, but is usually used immediately after dwfl_report_module.
- Once the module's main ELF file is opened, the ID note found
- there takes precedence and cannot be changed. */
-extern int dwfl_module_report_build_id (Dwfl_Module *mod,
- const unsigned char *bits, size_t len,
- GElf_Addr vaddr)
- __nonnull_attribute__ (2);
-
-/* Extract the build ID bits associated with a module.
- Returns -1 for errors, 0 if no ID is known, or the number of ID bytes.
- When an ID is found, *BITS points to it; *VADDR is the absolute address
- at which the ID bits are found within the module, or 0 if unknown.
-
- This returns 0 when the module's main ELF file has not yet been loaded
- and its build ID bits were not reported. To ensure the ID is always
- returned when determinable, call dwfl_module_getelf first. */
-extern int dwfl_module_build_id (Dwfl_Module *mod,
- const unsigned char **bits, GElf_Addr *vaddr)
- __nonnull_attribute__ (2, 3);
-
-
-/*** Standard callbacks ***/
-
-/* These standard find_elf and find_debuginfo callbacks are
- controlled by a string specifying directories to look in.
- If `debuginfo_path' is set in the Dwfl_Callbacks structure
- and the char * it points to is not null, that supplies the
- string. Otherwise a default path is used.
-
- If the first character of the string is + or - that enables or
- disables CRC32 checksum validation when it's necessary. The
- remainder of the string is composed of elements separated by
- colons. Each element can start with + or - to override the
- global checksum behavior. This flag is never relevant when
- working with build IDs, but it's always parsed in the path
- string. The remainder of the element indicates a directory.
-
- Searches by build ID consult only the elements naming absolute
- directory paths. They look under those directories for a link
- named ".build-id/xx/yy" or ".build-id/xx/yy.debug", where "xxyy"
- is the lower-case hexadecimal representation of the ID bytes.
-
- In searches for debuginfo by name, if the remainder of the
- element is empty, the directory containing the main file is
- tried; if it's an absolute path name, the absolute directory path
- containing the main file is taken as a subdirectory of this path;
- a relative path name is taken as a subdirectory of the directory
- containing the main file. Hence for /bin/ls, the default string
- ":.debug:/usr/lib/debug" says to look in /bin, then /bin/.debug,
- then /usr/lib/debug/bin, for the file name in the .gnu_debuglink
- section (or "ls.debug" if none was found). */
-
-/* Standard find_elf callback function working solely on build ID.
- This can be tried first by any find_elf callback, to use the
- bits passed to dwfl_module_report_build_id, if any. */
-extern int dwfl_build_id_find_elf (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- char **, Elf **);
-
-/* Standard find_debuginfo callback function working solely on build ID.
- This can be tried first by any find_debuginfo callback,
- to use the build ID bits from the main file when present. */
-extern int dwfl_build_id_find_debuginfo (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- const char *, const char *,
- GElf_Word, char **);
-
-/* Standard find_debuginfo callback function.
- If a build ID is available, this tries first to use that.
- If there is no build ID or no valid debuginfo found by ID,
- it searches the debuginfo path by name, as described above.
- Any file found in the path is validated by build ID if possible,
- or else by CRC32 checksum if enabled, and skipped if it does not match. */
-extern int dwfl_standard_find_debuginfo (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- const char *, const char *,
- GElf_Word, char **);
-
-
-/* This callback must be used when using dwfl_offline_* to report modules,
- if ET_REL is to be supported. */
-extern int dwfl_offline_section_address (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- const char *, GElf_Word,
- const GElf_Shdr *,
- Dwarf_Addr *addr);
-
-
-/* Callbacks for working with kernel modules in the running Linux kernel. */
-extern int dwfl_linux_kernel_find_elf (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- char **, Elf **);
-extern int dwfl_linux_kernel_module_section_address (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- const char *, GElf_Word,
- const GElf_Shdr *,
- Dwarf_Addr *addr);
-
-/* Call dwfl_report_elf for the running Linux kernel.
- Returns zero on success, -1 if dwfl_report_module failed,
- or an errno code if opening the kernel binary failed. */
-extern int dwfl_linux_kernel_report_kernel (Dwfl *dwfl);
-
-/* Call dwfl_report_module for each kernel module in the running Linux kernel.
- Returns zero on success, -1 if dwfl_report_module failed,
- or an errno code if reading the list of modules failed. */
-extern int dwfl_linux_kernel_report_modules (Dwfl *dwfl);
-
-/* Report a kernel and its modules found on disk, for offline use.
- If RELEASE starts with '/', it names a directory to look in;
- if not, it names a directory to find under /lib/modules/;
- if null, /lib/modules/`uname -r` is used.
- Returns zero on success, -1 if dwfl_report_module failed,
- or an errno code if finding the files on disk failed.
-
- If PREDICATE is not null, it is called with each module to be reported;
- its arguments are the module name, and the ELF file name or null if unknown,
- and its return value should be zero to skip the module, one to report it,
- or -1 to cause the call to fail and return errno. */
-extern int dwfl_linux_kernel_report_offline (Dwfl *dwfl, const char *release,
- int (*predicate) (const char *,
- const char *));
-
-/* Examine an ET_CORE file and report modules based on its contents.
- This can follow a dwfl_report_offline call to bootstrap the
- DT_DEBUG method of following the dynamic linker link_map chain, in
- case the core file does not contain enough of the executable's text
- segment to locate its PT_DYNAMIC in the dump. In such case you need to
- supply non-NULL EXECUTABLE, otherwise dynamic libraries will not be loaded
- into the DWFL map. This might call dwfl_report_elf on file names found in
- the dump if reading some link_map files is the only way to ascertain those
- modules' addresses. Returns the number of modules reported, or -1 for
- errors. */
-extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable);
-
-/* Call dwfl_report_module for each file mapped into the address space of PID.
- Returns zero on success, -1 if dwfl_report_module failed,
- or an errno code if opening the proc files failed. */
-extern int dwfl_linux_proc_report (Dwfl *dwfl, pid_t pid);
-
-/* Similar, but reads an input stream in the format of Linux /proc/PID/maps
- files giving module layout, not the file for a live process. */
-extern int dwfl_linux_proc_maps_report (Dwfl *dwfl, FILE *);
-
-/* Trivial find_elf callback for use with dwfl_linux_proc_report.
- This uses the module name as a file name directly and tries to open it
- if it begin with a slash, or handles the magic string "[vdso]". */
-extern int dwfl_linux_proc_find_elf (Dwfl_Module *mod, void **userdata,
- const char *module_name, Dwarf_Addr base,
- char **file_name, Elf **);
-
-/* Standard argument parsing for using a standard callback set. */
-struct argp;
-extern const struct argp *dwfl_standard_argp (void) __attribute__ ((const));
-
-
-/*** Relocation of addresses from Dwfl ***/
-
-/* Return the number of relocatable bases associated with the module,
- which is zero for ET_EXEC and one for ET_DYN. Returns -1 for errors. */
-extern int dwfl_module_relocations (Dwfl_Module *mod);
-
-/* Return the relocation base index associated with the *ADDRESS location,
- and adjust *ADDRESS to be an offset relative to that base.
- Returns -1 for errors. */
-extern int dwfl_module_relocate_address (Dwfl_Module *mod,
- Dwarf_Addr *address);
-
-/* Return the ELF section name for the given relocation base index;
- if SHNDXP is not null, set *SHNDXP to the ELF section index.
- For ET_DYN, returns "" and sets *SHNDXP to SHN_ABS; the relocation
- base is the runtime start address reported for the module.
- Returns null for errors. */
-extern const char *dwfl_module_relocation_info (Dwfl_Module *mod,
- unsigned int idx,
- GElf_Word *shndxp);
-
-/* Validate that ADDRESS and ADDRESS+OFFSET lie in a known module
- and both within the same contiguous region for relocation purposes.
- Returns zero for success and -1 for errors. */
-extern int dwfl_validate_address (Dwfl *dwfl,
- Dwarf_Addr address, Dwarf_Sword offset);
-
-
-/*** ELF access functions ***/
-
-/* Fetch the module main ELF file (where the allocated sections
- are found) for use with libelf. If successful, fills in *BIAS
- with the difference between addresses within the loaded module
- and those in symbol tables or Dwarf information referring to it. */
-extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias)
- __nonnull_attribute__ (1, 2);
-
-/* Return the number of symbols in the module's symbol table,
- or -1 for errors. */
-extern int dwfl_module_getsymtab (Dwfl_Module *mod);
-
-/* Return the index of the first global symbol in the module's symbol
- table, or -1 for errors. In each symbol table, all symbols with
- STB_LOCAL binding precede the weak and global symbols. This
- function returns the symbol table index one greater than the last
- local symbol. */
-extern int dwfl_module_getsymtab_first_global (Dwfl_Module *mod);
-
-/* Fetch one entry from the module's symbol table. On errors, returns
- NULL. If successful, fills in *SYM and returns the string for st_name.
- This works like gelf_getsym except that st_value is always adjusted to
- an absolute value based on the module's location, when the symbol is in
- an SHF_ALLOC section. If SHNDXP is non-null, it's set with the section
- index (whether from st_shndx or extended index table); in case of a
- symbol in a non-allocated section, *SHNDXP is instead set to -1.
- Note that since symbols can come from either the main, debug or auxiliary
- ELF symbol file (either dynsym or symtab) the section index can only
- be reliably used to compare against special section constants like
- SHN_UNDEF or SHN_ABS. It is recommended to use dwfl_module_getsym_info
- which doesn't have these deficiencies. */
-extern const char *dwfl_module_getsym (Dwfl_Module *mod, int ndx,
- GElf_Sym *sym, GElf_Word *shndxp)
- __nonnull_attribute__ (3);
-
-/* Fetch one entry from the module's symbol table and the associated
- address value. On errors, returns NULL. If successful, fills in
- *SYM, *ADDR and returns the string for st_name. This works like
- gelf_getsym. *ADDR is set to the st_value adjusted to an absolute
- value based on the module's location, when the symbol is in an
- SHF_ALLOC section. For non-ET_REL files, if the arch uses function
- descriptors, and the st_value points to one, *ADDR will be resolved
- to the actual function entry address. The SYM->ST_VALUE itself
- isn't adjusted in any way. Fills in ELFP, if not NULL, with the
- ELF file the symbol originally came from. Note that symbols can
- come from either the main, debug or auxiliary ELF symbol file
- (either dynsym or symtab). If SHNDXP is non-null, it's set with
- the section index (whether from st_shndx or extended index table);
- in case of a symbol in a non-allocated section, *SHNDXP is instead
- set to -1. Fills in BIAS, if not NULL, with the difference between
- addresses within the loaded module and those in symbol table of the
- ELF file. Note that the address associated with the symbol might
- be in a different section than the returned symbol. The section in
- the main elf file in which returned ADDR falls can be found with
- dwfl_module_address_section. */
-extern const char *dwfl_module_getsym_info (Dwfl_Module *mod, int ndx,
- GElf_Sym *sym, GElf_Addr *addr,
- GElf_Word *shndxp,
- Elf **elfp, Dwarf_Addr *bias)
- __nonnull_attribute__ (3, 4);
-
-/* Find the symbol that ADDRESS lies inside, and return its name. */
-extern const char *dwfl_module_addrname (Dwfl_Module *mod, GElf_Addr address);
-
-/* Find the symbol associated with ADDRESS. Return its name or NULL
- when nothing was found. If the architecture uses function
- descriptors, and symbol st_value points to one, ADDRESS wil be
- matched against either the adjusted st_value or the associated
- function entry value as described in dwfl_module_getsym_info. If
- OFFSET is not NULL it will be filled in with the difference from
- the start of the symbol (or function entry). If SYM is not NULL it
- is filled in with the symbol associated with the matched ADDRESS.
- The SYM->ST_VALUE itself isn't adjusted in any way. Fills in ELFP,
- if not NULL, with the ELF file the symbol originally came from.
- Note that symbols can come from either the main, debug or auxiliary
- ELF symbol file (either dynsym or symtab). If SHNDXP is non-null,
- it's set with the section index (whether from st_shndx or extended
- index table). Fills in BIAS, if not NULL, with the difference
- between addresses within the loaded module and those in symbol
- table of the ELF file. Note that the address matched against the
- symbol might be in a different section than the returned symbol.
- The section in the main elf file in ADDRESS falls can be found with
- dwfl_module_address_section. */
-extern const char *dwfl_module_addrinfo (Dwfl_Module *mod, GElf_Addr address,
- GElf_Off *offset, GElf_Sym *sym,
- GElf_Word *shndxp, Elf **elfp,
- Dwarf_Addr *bias)
- __nonnull_attribute__ (3);
-
-/* Find the symbol that ADDRESS lies inside, and return detailed
- information as for dwfl_module_getsym (above). Note that like
- dwfl_module_getsym this function also adjusts SYM->ST_VALUE to an
- absolute value based on the module's location. ADDRESS is only
- matched against this adjusted SYM->ST_VALUE. This means that
- depending on architecture this might only match symbols that
- represent function descriptor addresses (and not function entry
- addresses). For these reasons it is recommended to use
- dwfl_module_addrinfo instead. */
-extern const char *dwfl_module_addrsym (Dwfl_Module *mod, GElf_Addr address,
- GElf_Sym *sym, GElf_Word *shndxp)
- __nonnull_attribute__ (3);
-
-/* Find the ELF section that *ADDRESS lies inside and return it.
- On success, adjusts *ADDRESS to be relative to the section,
- and sets *BIAS to the difference between addresses used in
- the returned section's headers and run-time addresses. */
-extern Elf_Scn *dwfl_module_address_section (Dwfl_Module *mod,
- Dwarf_Addr *address,
- Dwarf_Addr *bias)
- __nonnull_attribute__ (2, 3);
-
-
-/*** Dwarf access functions ***/
-
-/* Fetch the module's debug information for use with libdw.
- If successful, fills in *BIAS with the difference between
- addresses within the loaded module and those to use with libdw. */
-extern Dwarf *dwfl_module_getdwarf (Dwfl_Module *, Dwarf_Addr *bias)
- __nonnull_attribute__ (2);
-
-/* Get the libdw handle for each module. */
-extern ptrdiff_t dwfl_getdwarf (Dwfl *,
- int (*callback) (Dwfl_Module *, void **,
- const char *, Dwarf_Addr,
- Dwarf *, Dwarf_Addr, void *),
- void *arg, ptrdiff_t offset);
-
-/* Look up the module containing ADDR and return its debugging information,
- loading it if necessary. */
-extern Dwarf *dwfl_addrdwarf (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Addr *bias)
- __nonnull_attribute__ (3);
-
-
-/* Find the CU containing ADDR and return its DIE. */
-extern Dwarf_Die *dwfl_addrdie (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Addr *bias)
- __nonnull_attribute__ (3);
-extern Dwarf_Die *dwfl_module_addrdie (Dwfl_Module *mod,
- Dwarf_Addr addr, Dwarf_Addr *bias)
- __nonnull_attribute__ (3);
-
-/* Iterate through the CUs, start with null for LASTCU. */
-extern Dwarf_Die *dwfl_nextcu (Dwfl *dwfl, Dwarf_Die *lastcu, Dwarf_Addr *bias)
- __nonnull_attribute__ (3);
-extern Dwarf_Die *dwfl_module_nextcu (Dwfl_Module *mod,
- Dwarf_Die *lastcu, Dwarf_Addr *bias)
- __nonnull_attribute__ (3);
-
-/* Return the module containing the CU DIE. */
-extern Dwfl_Module *dwfl_cumodule (Dwarf_Die *cudie);
-
-
-/* Cache the source line information fo the CU and return the
- number of Dwfl_Line entries it has. */
-extern int dwfl_getsrclines (Dwarf_Die *cudie, size_t *nlines);
-
-/* Access one line number entry within the CU. */
-extern Dwfl_Line *dwfl_onesrcline (Dwarf_Die *cudie, size_t idx);
-
-/* Get source for address. */
-extern Dwfl_Line *dwfl_module_getsrc (Dwfl_Module *mod, Dwarf_Addr addr);
-extern Dwfl_Line *dwfl_getsrc (Dwfl *dwfl, Dwarf_Addr addr);
-
-/* Get address for source. */
-extern int dwfl_module_getsrc_file (Dwfl_Module *mod,
- const char *fname, int lineno, int column,
- Dwfl_Line ***srcsp, size_t *nsrcs);
-
-/* Return the module containing this line record. */
-extern Dwfl_Module *dwfl_linemodule (Dwfl_Line *line);
-
-/* Return the CU containing this line record. */
-extern Dwarf_Die *dwfl_linecu (Dwfl_Line *line);
-
-/* Return the source file name and fill in other information.
- Arguments may be null for unneeded fields. */
-extern const char *dwfl_lineinfo (Dwfl_Line *line, Dwarf_Addr *addr,
- int *linep, int *colp,
- Dwarf_Word *mtime, Dwarf_Word *length);
-
- /* Return the equivalent Dwarf_Line and the bias to apply to its address. */
-extern Dwarf_Line *dwfl_dwarf_line (Dwfl_Line *line, Dwarf_Addr *bias);
-
-/* Return the compilation directory (AT_comp_dir) from this line's CU. */
-extern const char *dwfl_line_comp_dir (Dwfl_Line *line);
-
-
-/*** Machine backend access functions ***/
-
-/* Return location expression to find return value given a
- DW_TAG_subprogram, DW_TAG_subroutine_type, or similar DIE describing
- function itself (whose DW_AT_type attribute describes its return type).
- The given DIE must come from the given module. Returns -1 for errors.
- Returns zero if the function has no return value (e.g. "void" in C).
- Otherwise, *LOCOPS gets a location expression to find the return value,
- and returns the number of operations in the expression. The pointer is
- permanently allocated at least as long as the module is live. */
-extern int dwfl_module_return_value_location (Dwfl_Module *mod,
- Dwarf_Die *functypedie,
- const Dwarf_Op **locops);
-
-/* Enumerate the DWARF register numbers and their names.
- For each register, CALLBACK gets its DWARF number, a string describing
- the register set (such as "integer" or "FPU"), a prefix used in
- assembler syntax (such as "%" or "$", may be ""), and the name for the
- register (contains identifier characters only, possibly all digits).
- The REGNAME string is valid only during the callback. */
-extern int dwfl_module_register_names (Dwfl_Module *mod,
- int (*callback) (void *arg,
- int regno,
- const char *setname,
- const char *prefix,
- const char *regname,
- int bits, int type),
- void *arg);
-
-
-/* Find the CFI for this module. Returns NULL if there is no CFI.
- On success, fills in *BIAS with the difference between addresses
- within the loaded module and those in the CFI referring to it.
- The pointer returned can be used until the module is cleaned up.
- Calling these more than once returns the same pointers.
-
- dwfl_module_dwarf_cfi gets the '.debug_frame' information found with the
- rest of the DWARF information. dwfl_module_eh_cfi gets the '.eh_frame'
- information found linked into the text. A module might have either or
- both. */
-extern Dwarf_CFI *dwfl_module_dwarf_cfi (Dwfl_Module *mod, Dwarf_Addr *bias);
-extern Dwarf_CFI *dwfl_module_eh_cfi (Dwfl_Module *mod, Dwarf_Addr *bias);
-
-
-typedef struct
-{
- /* Called to iterate through threads. Returns next TID (thread ID) on
- success, a negative number on failure and zero if there are no more
- threads. dwfl_errno () should be set if negative number has been
- returned. *THREAD_ARGP is NULL on first call, and may be optionally
- set by the implementation. The value set by the implementation will
- be passed in on the next call to NEXT_THREAD. THREAD_ARGP is never
- NULL. *THREAD_ARGP will be passed to set_initial_registers or
- thread_detach callbacks together with Dwfl_Thread *thread. This
- method must not be NULL. */
- pid_t (*next_thread) (Dwfl *dwfl, void *dwfl_arg, void **thread_argp)
- __nonnull_attribute__ (1);
-
- /* Called to get a specific thread. Returns true if there is a
- thread with the given thread id number, returns false if no such
- thread exists and will set dwfl_errno in that case. THREAD_ARGP
- is never NULL. *THREAD_ARGP will be passed to
- set_initial_registers or thread_detach callbacks together with
- Dwfl_Thread *thread. This method may be NULL and will then be
- emulated using the next_thread callback. */
- bool (*get_thread) (Dwfl *dwfl, pid_t tid, void *dwfl_arg,
- void **thread_argp)
- __nonnull_attribute__ (1);
-
- /* Called during unwinding to access memory (stack) state. Returns true for
- successfully read *RESULT or false and sets dwfl_errno () on failure.
- This method may be NULL - in such case dwfl_thread_getframes will return
- only the initial frame. */
- bool (*memory_read) (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Word *result,
- void *dwfl_arg)
- __nonnull_attribute__ (1, 3);
-
- /* Called on initial unwind to get the initial register state of the first
- frame. Should call dwfl_thread_state_registers, possibly multiple times
- for different ranges and possibly also dwfl_thread_state_register_pc, to
- fill in initial (DWARF) register values. After this call, till at least
- thread_detach is called, the thread is assumed to be frozen, so that it is
- safe to unwind. Returns true on success or false and sets dwfl_errno ()
- on failure. In the case of a failure thread_detach will not be called.
- This method must not be NULL. */
- bool (*set_initial_registers) (Dwfl_Thread *thread, void *thread_arg)
- __nonnull_attribute__ (1);
-
- /* Called by dwfl_end. All thread_detach method calls have been already
- done. This method may be NULL. */
- void (*detach) (Dwfl *dwfl, void *dwfl_arg)
- __nonnull_attribute__ (1);
-
- /* Called when unwinding is done. No callback will be called after
- this method has been called. Iff set_initial_registers was called for
- a TID and it returned success thread_detach will be called before the
- detach method above. This method may be NULL. */
- void (*thread_detach) (Dwfl_Thread *thread, void *thread_arg)
- __nonnull_attribute__ (1);
-} Dwfl_Thread_Callbacks;
-
-/* PID is the process id associated with the DWFL state. Architecture of DWFL
- modules is specified by ELF, ELF must remain valid during DWFL lifetime.
- Use NULL ELF to detect architecture from DWFL, the function will then detect
- it from arbitrary Dwfl_Module of DWFL. DWFL_ARG is the callback backend
- state. DWFL_ARG will be provided to the callbacks. *THREAD_CALLBACKS
- function pointers must remain valid during lifetime of DWFL. Function
- returns true on success, false otherwise. */
-bool dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid,
- const Dwfl_Thread_Callbacks *thread_callbacks,
- void *dwfl_arg)
- __nonnull_attribute__ (1, 4);
-
-/* Calls dwfl_attach_state with Dwfl_Thread_Callbacks setup for extracting
- thread state from the ELF core file. Returns the pid number extracted
- from the core file, or -1 for errors. */
-extern int dwfl_core_file_attach (Dwfl *dwfl, Elf *elf);
-
-/* Calls dwfl_attach_state with Dwfl_Thread_Callbacks setup for extracting
- thread state from the proc file system. Uses ptrace to attach and stop
- the thread under inspection and detaches when thread_detach is called
- and unwinding for the thread is done, unless ASSUME_PTRACE_STOPPED is
- true. If ASSUME_PTRACE_STOPPED is true the caller should make sure that
- the thread is ptrace attached and stopped before unwinding by calling
- either dwfl_thread_getframes or dwfl_getthread_frames. Returns zero on
- success, -1 if dwfl_attach_state failed, or an errno code if opening the
- proc files failed. */
-extern int dwfl_linux_proc_attach (Dwfl *dwfl, pid_t pid,
- bool assume_ptrace_stopped);
-
-/* Return PID for the process associated with DWFL. Function returns -1 if
- dwfl_attach_state was not called for DWFL. */
-pid_t dwfl_pid (Dwfl *dwfl)
- __nonnull_attribute__ (1);
-
-/* Return DWFL from which THREAD was created using dwfl_getthreads. */
-Dwfl *dwfl_thread_dwfl (Dwfl_Thread *thread)
- __nonnull_attribute__ (1);
-
-/* Return positive TID (thread ID) for THREAD. This function never fails. */
-pid_t dwfl_thread_tid (Dwfl_Thread *thread)
- __nonnull_attribute__ (1);
-
-/* Return thread for frame STATE. This function never fails. */
-Dwfl_Thread *dwfl_frame_thread (Dwfl_Frame *state)
- __nonnull_attribute__ (1);
-
-/* Called by Dwfl_Thread_Callbacks.set_initial_registers implementation.
- For every known continuous block of registers <FIRSTREG..FIRSTREG+NREGS)
- (inclusive..exclusive) set their content to REGS (array of NREGS items).
- Function returns false if any of the registers has invalid number. */
-bool dwfl_thread_state_registers (Dwfl_Thread *thread, int firstreg,
- unsigned nregs, const Dwarf_Word *regs)
- __nonnull_attribute__ (1, 4);
-
-/* Called by Dwfl_Thread_Callbacks.set_initial_registers implementation.
- If PC is not contained among DWARF registers passed by
- dwfl_thread_state_registers on the target architecture pass the PC value
- here. */
-void dwfl_thread_state_register_pc (Dwfl_Thread *thread, Dwarf_Word pc)
- __nonnull_attribute__ (1);
-
-/* Iterate through the threads for a process. Returns zero if all threads have
- been processed by the callback, returns -1 on error, or the value of the
- callback when not DWARF_CB_OK. -1 returned on error will set dwfl_errno ().
- Keeps calling the callback with the next thread while the callback returns
- DWARF_CB_OK, till there are no more threads. */
-int dwfl_getthreads (Dwfl *dwfl,
- int (*callback) (Dwfl_Thread *thread, void *arg),
- void *arg)
- __nonnull_attribute__ (1, 2);
-
-/* Iterate through the frames for a thread. Returns zero if all frames
- have been processed by the callback, returns -1 on error, or the value of
- the callback when not DWARF_CB_OK. -1 returned on error will
- set dwfl_errno (). Some systems return error instead of zero on end of the
- backtrace, for cross-platform compatibility callers should consider error as
- a zero. Keeps calling the callback with the next frame while the callback
- returns DWARF_CB_OK, till there are no more frames. On start will call the
- set_initial_registers callback and on return will call the detach_thread
- callback of the Dwfl_Thread. */
-int dwfl_thread_getframes (Dwfl_Thread *thread,
- int (*callback) (Dwfl_Frame *state, void *arg),
- void *arg)
- __nonnull_attribute__ (1, 2);
-
-/* Like dwfl_thread_getframes, but specifying the thread by its unique
- identifier number. Returns zero if all frames have been processed
- by the callback, returns -1 on error (and when no thread with
- the given thread id number exists), or the value of the callback
- when not DWARF_CB_OK. -1 returned on error will set dwfl_errno (). */
-int dwfl_getthread_frames (Dwfl *dwfl, pid_t tid,
- int (*callback) (Dwfl_Frame *thread, void *arg),
- void *arg)
- __nonnull_attribute__ (1, 3);
-
-/* Return *PC (program counter) for thread-specific frame STATE.
- Set *ISACTIVATION according to DWARF frame "activation" definition.
- Typically you need to substract 1 from *PC if *ACTIVATION is false to safely
- find function of the caller. ACTIVATION may be NULL. PC must not be NULL.
- Function returns false if it failed to find *PC. */
-bool dwfl_frame_pc (Dwfl_Frame *state, Dwarf_Addr *pc, bool *isactivation)
- __nonnull_attribute__ (1, 2);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* libdwfl.h */
diff --git a/src/libdwfl/libdwflP.h b/src/libdwfl/libdwflP.h
deleted file mode 100644
index 12ee116e..00000000
--- a/src/libdwfl/libdwflP.h
+++ /dev/null
@@ -1,760 +0,0 @@
-/* Internal definitions for libdwfl.
- Copyright (C) 2005-2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBDWFLP_H
-#define _LIBDWFLP_H 1
-
-#ifndef PACKAGE_NAME
-# include <config.h>
-#endif
-#include <libdwfl.h>
-#include <libebl.h>
-#include <assert.h>
-#include <dirent.h>
-#include <errno.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "../libdw/libdwP.h" /* We need its INTDECLs. */
-#include "../libdwelf/libdwelfP.h"
-
-typedef struct Dwfl_Process Dwfl_Process;
-
-/* gettext helper macros. */
-#define _(Str) dgettext ("elfutils", Str)
-
-#define DWFL_ERRORS \
- DWFL_ERROR (NOERROR, N_("no error")) \
- DWFL_ERROR (UNKNOWN_ERROR, N_("unknown error")) \
- DWFL_ERROR (NOMEM, N_("out of memory")) \
- DWFL_ERROR (ERRNO, N_("See errno")) \
- DWFL_ERROR (LIBELF, N_("See elf_errno")) \
- DWFL_ERROR (LIBDW, N_("See dwarf_errno")) \
- DWFL_ERROR (LIBEBL, N_("See ebl_errno (XXX missing)")) \
- DWFL_ERROR (ZLIB, N_("gzip decompression failed")) \
- DWFL_ERROR (BZLIB, N_("bzip2 decompression failed")) \
- DWFL_ERROR (LZMA, N_("LZMA decompression failed")) \
- DWFL_ERROR (UNKNOWN_MACHINE, N_("no support library found for machine")) \
- DWFL_ERROR (NOREL, N_("Callbacks missing for ET_REL file")) \
- DWFL_ERROR (BADRELTYPE, N_("Unsupported relocation type")) \
- DWFL_ERROR (BADRELOFF, N_("r_offset is bogus")) \
- DWFL_ERROR (BADSTROFF, N_("offset out of range")) \
- DWFL_ERROR (RELUNDEF, N_("relocation refers to undefined symbol")) \
- DWFL_ERROR (CB, N_("Callback returned failure")) \
- DWFL_ERROR (NO_DWARF, N_("No DWARF information found")) \
- DWFL_ERROR (NO_SYMTAB, N_("No symbol table found")) \
- DWFL_ERROR (NO_PHDR, N_("No ELF program headers")) \
- DWFL_ERROR (OVERLAP, N_("address range overlaps an existing module")) \
- DWFL_ERROR (ADDR_OUTOFRANGE, N_("address out of range")) \
- DWFL_ERROR (NO_MATCH, N_("no matching address range")) \
- DWFL_ERROR (TRUNCATED, N_("image truncated")) \
- DWFL_ERROR (ALREADY_ELF, N_("ELF file opened")) \
- DWFL_ERROR (BADELF, N_("not a valid ELF file")) \
- DWFL_ERROR (WEIRD_TYPE, N_("cannot handle DWARF type description")) \
- DWFL_ERROR (WRONG_ID_ELF, N_("ELF file does not match build ID")) \
- DWFL_ERROR (BAD_PRELINK, N_("corrupt .gnu.prelink_undo section data")) \
- DWFL_ERROR (LIBEBL_BAD, N_("Internal error due to ebl")) \
- DWFL_ERROR (CORE_MISSING, N_("Missing data in core file")) \
- DWFL_ERROR (INVALID_REGISTER, N_("Invalid register")) \
- DWFL_ERROR (PROCESS_MEMORY_READ, N_("Error reading process memory")) \
- DWFL_ERROR (PROCESS_NO_ARCH, N_("Couldn't find architecture of any ELF")) \
- DWFL_ERROR (PARSE_PROC, N_("Error parsing /proc filesystem")) \
- DWFL_ERROR (INVALID_DWARF, N_("Invalid DWARF")) \
- DWFL_ERROR (UNSUPPORTED_DWARF, N_("Unsupported DWARF")) \
- DWFL_ERROR (NEXT_THREAD_FAIL, N_("Unable to find more threads")) \
- DWFL_ERROR (ATTACH_STATE_CONFLICT, N_("Dwfl already has attached state")) \
- DWFL_ERROR (NO_ATTACH_STATE, N_("Dwfl has no attached state")) \
- DWFL_ERROR (NO_UNWIND, N_("Unwinding not supported for this architecture")) \
- DWFL_ERROR (INVALID_ARGUMENT, N_("Invalid argument")) \
- DWFL_ERROR (NO_CORE_FILE, N_("Not an ET_CORE ELF file"))
-
-#define DWFL_ERROR(name, text) DWFL_E_##name,
-typedef enum { DWFL_ERRORS DWFL_E_NUM } Dwfl_Error;
-#undef DWFL_ERROR
-
-#define OTHER_ERROR(name) ((unsigned int) DWFL_E_##name << 16)
-#define DWFL_E(name, errno) (OTHER_ERROR (name) | (errno))
-
-extern int __libdwfl_canon_error (Dwfl_Error) internal_function;
-extern void __libdwfl_seterrno (Dwfl_Error) internal_function;
-
-struct Dwfl
-{
- const Dwfl_Callbacks *callbacks;
-
- Dwfl_Module *modulelist; /* List in order used by full traversals. */
-
- Dwfl_Process *process;
- Dwfl_Error attacherr; /* Previous error attaching process. */
-
- GElf_Addr offline_next_address;
-
- GElf_Addr segment_align; /* Smallest granularity of segments. */
-
- /* Binary search table in three parallel malloc'd arrays. */
- size_t lookup_elts; /* Elements in use. */
- size_t lookup_alloc; /* Elements allococated. */
- GElf_Addr *lookup_addr; /* Start address of segment. */
- Dwfl_Module **lookup_module; /* Module associated with segment, or null. */
- int *lookup_segndx; /* User segment index, or -1. */
-
- /* Cache from last dwfl_report_segment call. */
- const void *lookup_tail_ident;
- GElf_Off lookup_tail_vaddr;
- GElf_Off lookup_tail_offset;
- int lookup_tail_ndx;
-
- char *executable_for_core; /* --executable if --core was specified. */
-};
-
-#define OFFLINE_REDZONE 0x10000
-
-struct dwfl_file
-{
- char *name;
- int fd;
- bool valid; /* The build ID note has been matched. */
- bool relocated; /* Partial relocation of all sections done. */
-
- Elf *elf;
-
- /* This is the lowest p_vaddr in this ELF file, aligned to p_align.
- For a file without phdrs, this is zero. */
- GElf_Addr vaddr;
-
- /* This is an address chosen for synchronization between the main file
- and the debug file. See dwfl_module_getdwarf.c for how it's chosen. */
- GElf_Addr address_sync;
-};
-
-struct Dwfl_Module
-{
- Dwfl *dwfl;
- struct Dwfl_Module *next; /* Link on Dwfl.modulelist. */
-
- void *userdata;
-
- char *name; /* Iterator name for this module. */
- GElf_Addr low_addr, high_addr;
-
- struct dwfl_file main, debug, aux_sym;
- GElf_Addr main_bias;
- Ebl *ebl;
- GElf_Half e_type; /* GElf_Ehdr.e_type cache. */
- Dwfl_Error elferr; /* Previous failure to open main file. */
-
- struct dwfl_relocation *reloc_info; /* Relocatable sections. */
-
- struct dwfl_file *symfile; /* Either main or debug. */
- Elf_Data *symdata; /* Data in the ELF symbol table section. */
- Elf_Data *aux_symdata; /* Data in the auxiliary ELF symbol table. */
- size_t syments; /* sh_size / sh_entsize of that section. */
- size_t aux_syments; /* sh_size / sh_entsize of aux_sym section. */
- int first_global; /* Index of first global symbol of table. */
- int aux_first_global; /* Index of first global of aux_sym table. */
- Elf_Data *symstrdata; /* Data for its string table. */
- Elf_Data *aux_symstrdata; /* Data for aux_sym string table. */
- Elf_Data *symxndxdata; /* Data in the extended section index table. */
- Elf_Data *aux_symxndxdata; /* Data in the extended auxiliary table. */
-
- Dwarf *dw; /* libdw handle for its debugging info. */
- Dwarf *alt; /* Dwarf used for dwarf_setalt, or NULL. */
- int alt_fd; /* descriptor, only valid when alt != NULL. */
- Elf *alt_elf; /* Elf for alt Dwarf. */
-
- Dwfl_Error symerr; /* Previous failure to load symbols. */
- Dwfl_Error dwerr; /* Previous failure to load DWARF. */
-
- /* Known CU's in this module. */
- struct dwfl_cu *first_cu, **cu;
-
- void *lazy_cu_root; /* Table indexed by Dwarf_Off of CU. */
-
- struct dwfl_arange *aranges; /* Mapping of addresses in module to CUs. */
-
- void *build_id_bits; /* malloc'd copy of build ID bits. */
- GElf_Addr build_id_vaddr; /* Address where they reside, 0 if unknown. */
- int build_id_len; /* -1 for prior failure, 0 if unset. */
-
- unsigned int ncu;
- unsigned int lazycu; /* Possible users, deleted when none left. */
- unsigned int naranges;
-
- Dwarf_CFI *dwarf_cfi; /* Cached DWARF CFI for this module. */
- Dwarf_CFI *eh_cfi; /* Cached EH CFI for this module. */
-
- int segment; /* Index of first segment table entry. */
- bool gc; /* Mark/sweep flag. */
- bool is_executable; /* Use Dwfl::executable_for_core? */
-};
-
-/* This holds information common for all the threads/tasks/TIDs of one process
- for backtraces. */
-
-struct Dwfl_Process
-{
- struct Dwfl *dwfl;
- pid_t pid;
- const Dwfl_Thread_Callbacks *callbacks;
- void *callbacks_arg;
- struct ebl *ebl;
- bool ebl_close:1;
-};
-
-/* See its typedef in libdwfl.h. */
-
-struct Dwfl_Thread
-{
- Dwfl_Process *process;
- pid_t tid;
- /* The current frame being unwound. Initially it is the bottom frame.
- Later the processed frames get freed and this pointer is updated. */
- Dwfl_Frame *unwound;
- void *callbacks_arg;
-};
-
-/* See its typedef in libdwfl.h. */
-
-struct Dwfl_Frame
-{
- Dwfl_Thread *thread;
- /* Previous (outer) frame. */
- Dwfl_Frame *unwound;
- bool signal_frame : 1;
- bool initial_frame : 1;
- enum
- {
- /* This structure is still being initialized or there was an error
- initializing it. */
- DWFL_FRAME_STATE_ERROR,
- /* PC field is valid. */
- DWFL_FRAME_STATE_PC_SET,
- /* PC field is undefined, this means the next (inner) frame was the
- outermost frame. */
- DWFL_FRAME_STATE_PC_UNDEFINED
- } pc_state;
- /* Either initialized from appropriate REGS element or on some archs
- initialized separately as the return address has no DWARF register. */
- Dwarf_Addr pc;
- /* (1 << X) bitmask where 0 <= X < ebl_frame_nregs. */
- uint64_t regs_set[3];
- /* REGS array size is ebl_frame_nregs.
- REGS_SET tells which of the REGS are valid. */
- Dwarf_Addr regs[];
-};
-
-/* Fetch value from Dwfl_Frame->regs indexed by DWARF REGNO.
- No error code is set if the function returns FALSE. */
-bool __libdwfl_frame_reg_get (Dwfl_Frame *state, unsigned regno,
- Dwarf_Addr *val)
- internal_function;
-
-/* Store value to Dwfl_Frame->regs indexed by DWARF REGNO.
- No error code is set if the function returns FALSE. */
-bool __libdwfl_frame_reg_set (Dwfl_Frame *state, unsigned regno,
- Dwarf_Addr val)
- internal_function;
-
-/* Information cached about each CU in Dwfl_Module.dw. */
-struct dwfl_cu
-{
- /* This caches libdw information about the CU. It's also the
- address passed back to users, so we take advantage of the
- fact that it's placed first to cast back. */
- Dwarf_Die die;
-
- Dwfl_Module *mod; /* Pointer back to containing module. */
-
- struct dwfl_cu *next; /* CU immediately following in the file. */
-
- struct Dwfl_Lines *lines;
-};
-
-struct Dwfl_Lines
-{
- struct dwfl_cu *cu;
-
- /* This is what the opaque Dwfl_Line * pointers we pass to users are.
- We need to recover pointers to our struct dwfl_cu and a record in
- libdw's Dwarf_Line table. To minimize the memory used in addition
- to libdw's Dwarf_Lines buffer, we just point to our own index in
- this table, and have one pointer back to the CU. The indices here
- match those in libdw's Dwarf_CU.lines->info table. */
- struct Dwfl_Line
- {
- unsigned int idx; /* My index in the dwfl_cu.lines table. */
- } idx[0];
-};
-
-static inline struct dwfl_cu *
-dwfl_linecu_inline (const Dwfl_Line *line)
-{
- const struct Dwfl_Lines *lines = ((const void *) line
- - offsetof (struct Dwfl_Lines,
- idx[line->idx]));
- return lines->cu;
-}
-#define dwfl_linecu dwfl_linecu_inline
-
-static inline GElf_Addr
-dwfl_adjusted_address (Dwfl_Module *mod, GElf_Addr addr)
-{
- return addr + mod->main_bias;
-}
-
-static inline GElf_Addr
-dwfl_deadjust_address (Dwfl_Module *mod, GElf_Addr addr)
-{
- return addr - mod->main_bias;
-}
-
-static inline Dwarf_Addr
-dwfl_adjusted_dwarf_addr (Dwfl_Module *mod, Dwarf_Addr addr)
-{
- return dwfl_adjusted_address (mod, (addr
- - mod->debug.address_sync
- + mod->main.address_sync));
-}
-
-static inline Dwarf_Addr
-dwfl_deadjust_dwarf_addr (Dwfl_Module *mod, Dwarf_Addr addr)
-{
- return (dwfl_deadjust_address (mod, addr)
- - mod->main.address_sync
- + mod->debug.address_sync);
-}
-
-static inline Dwarf_Addr
-dwfl_adjusted_aux_sym_addr (Dwfl_Module *mod, Dwarf_Addr addr)
-{
- return dwfl_adjusted_address (mod, (addr
- - mod->aux_sym.address_sync
- + mod->main.address_sync));
-}
-
-static inline Dwarf_Addr
-dwfl_deadjust_aux_sym_addr (Dwfl_Module *mod, Dwarf_Addr addr)
-{
- return (dwfl_deadjust_address (mod, addr)
- - mod->main.address_sync
- + mod->aux_sym.address_sync);
-}
-
-static inline GElf_Addr
-dwfl_adjusted_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr)
-{
- if (symelf == mod->main.elf)
- return dwfl_adjusted_address (mod, addr);
- if (symelf == mod->debug.elf)
- return dwfl_adjusted_dwarf_addr (mod, addr);
- return dwfl_adjusted_aux_sym_addr (mod, addr);
-}
-
-static inline GElf_Addr
-dwfl_deadjust_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr)
-{
- if (symelf == mod->main.elf)
- return dwfl_deadjust_address (mod, addr);
- if (symelf == mod->debug.elf)
- return dwfl_deadjust_dwarf_addr (mod, addr);
- return dwfl_deadjust_aux_sym_addr (mod, addr);
-}
-
-/* This describes a contiguous address range that lies in a single CU.
- We condense runs of Dwarf_Arange entries for the same CU into this. */
-struct dwfl_arange
-{
- struct dwfl_cu *cu;
- size_t arange; /* Index in Dwarf_Aranges. */
-};
-
-
-/* Structure used for keeping track of ptrace attaching a thread.
- Shared by linux-pid-attach and linux-proc-maps. If it has been setup
- then get the instance through __libdwfl_get_pid_arg. */
-struct __libdwfl_pid_arg
-{
- DIR *dir;
- /* It is 0 if not used. */
- pid_t tid_attached;
- /* Valid only if TID_ATTACHED is not zero. */
- bool tid_was_stopped;
- /* True if threads are ptrace stopped by caller. */
- bool assume_ptrace_stopped;
-};
-
-/* If DWfl is not NULL and a Dwfl_Process has been setup that has
- Dwfl_Thread_Callbacks set to pid_thread_callbacks, then return the
- callbacks_arg, which will be a struct __libdwfl_pid_arg. Otherwise
- returns NULL. */
-extern struct __libdwfl_pid_arg *__libdwfl_get_pid_arg (Dwfl *dwfl)
- internal_function;
-
-/* Makes sure the given tid is attached. On success returns true and
- sets tid_was_stopped. */
-extern bool __libdwfl_ptrace_attach (pid_t tid, bool *tid_was_stoppedp)
- internal_function;
-
-/* Detaches a tid that was attached through
- __libdwfl_ptrace_attach. Must be given the tid_was_stopped as set
- by __libdwfl_ptrace_attach. */
-extern void __libdwfl_ptrace_detach (pid_t tid, bool tid_was_stopped)
- internal_function;
-
-
-/* Internal wrapper for old dwfl_module_getsym and new dwfl_module_getsym_info.
- adjust_st_value set to true returns adjusted SYM st_value, set to false
- it will not adjust SYM at all, but does match against resolved *ADDR. */
-extern const char *__libdwfl_getsym (Dwfl_Module *mod, int ndx, GElf_Sym *sym,
- GElf_Addr *addr, GElf_Word *shndxp,
- Elf **elfp, Dwarf_Addr *biasp,
- bool *resolved, bool adjust_st_value)
- internal_function;
-
-/* Internal wrapper for old dwfl_module_addrsym and new dwfl_module_addrinfo.
- adjust_st_value set to true returns adjusted SYM st_value, set to false
- it will not adjust SYM at all, but does match against resolved values. */
-extern const char *__libdwfl_addrsym (Dwfl_Module *mod, GElf_Addr addr,
- GElf_Off *off, GElf_Sym *sym,
- GElf_Word *shndxp, Elf **elfp,
- Dwarf_Addr *bias,
- bool adjust_st_value) internal_function;
-
-extern void __libdwfl_module_free (Dwfl_Module *mod) internal_function;
-
-/* Find the main ELF file, update MOD->elferr and/or MOD->main.elf. */
-extern void __libdwfl_getelf (Dwfl_Module *mod) internal_function;
-
-/* Process relocations in debugging sections in an ET_REL file.
- FILE must be opened with ELF_C_READ_MMAP_PRIVATE or ELF_C_READ,
- to make it possible to relocate the data in place (or ELF_C_RDWR or
- ELF_C_RDWR_MMAP if you intend to modify the Elf file on disk). After
- this, dwarf_begin_elf on FILE will read the relocated data.
-
- When DEBUG is false, apply partial relocation to all sections. */
-extern Dwfl_Error __libdwfl_relocate (Dwfl_Module *mod, Elf *file, bool debug)
- internal_function;
-
-/* Find the section index in mod->main.elf that contains the given
- *ADDR. Adjusts *ADDR to be section relative on success, returns
- SHN_UNDEF on failure. */
-extern size_t __libdwfl_find_section_ndx (Dwfl_Module *mod, Dwarf_Addr *addr)
- internal_function;
-
-/* Process (simple) relocations in arbitrary section TSCN of an ET_REL file.
- RELOCSCN is SHT_REL or SHT_RELA and TSCN is its sh_info target section. */
-extern Dwfl_Error __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated,
- Elf_Scn *relocscn, Elf_Scn *tscn,
- bool partial)
- internal_function;
-
-/* Adjust *VALUE from section-relative to absolute.
- MOD->dwfl->callbacks->section_address is called to determine the actual
- address of a loaded section. */
-extern Dwfl_Error __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf,
- size_t *shstrndx_cache,
- Elf32_Word shndx,
- GElf_Addr *value)
- internal_function;
-
-/* Ensure that MOD->ebl is set up. */
-extern Dwfl_Error __libdwfl_module_getebl (Dwfl_Module *mod) internal_function;
-
-/* Install a new Dwarf_CFI in *SLOT (MOD->eh_cfi or MOD->dwarf_cfi). */
-extern Dwarf_CFI *__libdwfl_set_cfi (Dwfl_Module *mod, Dwarf_CFI **slot,
- Dwarf_CFI *cfi)
- internal_function;
-
-/* Iterate through all the CU's in the module. Start by passing a null
- LASTCU, and then pass the last *CU returned. Success return with null
- *CU no more CUs. */
-extern Dwfl_Error __libdwfl_nextcu (Dwfl_Module *mod, struct dwfl_cu *lastcu,
- struct dwfl_cu **cu) internal_function;
-
-/* Find the CU by address. */
-extern Dwfl_Error __libdwfl_addrcu (Dwfl_Module *mod, Dwarf_Addr addr,
- struct dwfl_cu **cu) internal_function;
-
-/* Ensure that CU->lines (and CU->cu->lines) is set up. */
-extern Dwfl_Error __libdwfl_cu_getsrclines (struct dwfl_cu *cu)
- internal_function;
-
-/* Look in ELF for an NT_GNU_BUILD_ID note. Store it to BUILD_ID_BITS,
- its vaddr in ELF to BUILD_ID_VADDR (it is unrelocated, even if MOD is not
- NULL) and store length to BUILD_ID_LEN. Returns -1 for errors, 1 if it was
- stored and 0 if no note is found. MOD may be NULL, MOD must be non-NULL
- only if ELF is ET_REL. */
-extern int __libdwfl_find_elf_build_id (Dwfl_Module *mod, Elf *elf,
- const void **build_id_bits,
- GElf_Addr *build_id_elfaddr,
- int *build_id_len)
- internal_function;
-
-/* Look in ELF for an NT_GNU_BUILD_ID note. If SET is true, store it
- in MOD and return its length. If SET is false, instead compare it
- to that stored in MOD and return 2 if they match, 1 if they do not.
- Returns -1 for errors, 0 if no note is found. */
-extern int __libdwfl_find_build_id (Dwfl_Module *mod, bool set, Elf *elf)
- internal_function;
-
-/* Open a main or debuginfo file by its build ID, returns the fd. */
-extern int __libdwfl_open_mod_by_build_id (Dwfl_Module *mod, bool debug,
- char **file_name) internal_function;
-
-/* Same, but takes an explicit build_id, can also be used for alt debug. */
-extern int __libdwfl_open_by_build_id (Dwfl_Module *mod, bool debug,
- char **file_name, const size_t id_len,
- const uint8_t *id) internal_function;
-
-extern uint32_t __libdwfl_crc32 (uint32_t crc, unsigned char *buf, size_t len)
- attribute_hidden;
-extern int __libdwfl_crc32_file (int fd, uint32_t *resp) attribute_hidden;
-
-
-/* Given ELF and some parameters return TRUE if the *P return value parameters
- have been successfully filled in. Any of the *P parameters can be NULL. */
-extern bool __libdwfl_elf_address_range (Elf *elf, GElf_Addr base,
- bool add_p_vaddr, bool sanity,
- GElf_Addr *vaddrp,
- GElf_Addr *address_syncp,
- GElf_Addr *startp, GElf_Addr *endp,
- GElf_Addr *biasp, GElf_Half *e_typep)
- internal_function;
-
-/* Meat of dwfl_report_elf, given elf_begin just called.
- Consumes ELF on success, not on failure. */
-extern Dwfl_Module *__libdwfl_report_elf (Dwfl *dwfl, const char *name,
- const char *file_name, int fd,
- Elf *elf, GElf_Addr base,
- bool add_p_vaddr, bool sanity)
- internal_function;
-
-/* Meat of dwfl_report_offline. */
-extern Dwfl_Module *__libdwfl_report_offline (Dwfl *dwfl, const char *name,
- const char *file_name,
- int fd, bool closefd,
- int (*predicate) (const char *,
- const char *))
- internal_function;
-
-/* Free PROCESS. Unlink and free also any structures it references. */
-extern void __libdwfl_process_free (Dwfl_Process *process)
- internal_function;
-
-/* Update STATE->unwound for the unwound frame.
- On error STATE->unwound == NULL
- or STATE->unwound->pc_state == DWFL_FRAME_STATE_ERROR;
- in such case dwfl_errno () is set.
- If STATE->unwound->pc_state == DWFL_FRAME_STATE_PC_UNDEFINED
- then STATE was the last valid frame. */
-extern void __libdwfl_frame_unwind (Dwfl_Frame *state)
- internal_function;
-
-/* Align segment START downwards or END upwards addresses according to DWFL. */
-extern GElf_Addr __libdwfl_segment_start (Dwfl *dwfl, GElf_Addr start)
- internal_function;
-extern GElf_Addr __libdwfl_segment_end (Dwfl *dwfl, GElf_Addr end)
- internal_function;
-
-/* Decompression wrappers: decompress whole file into memory. */
-extern Dwfl_Error __libdw_gunzip (int fd, off64_t start_offset,
- void *mapped, size_t mapped_size,
- void **whole, size_t *whole_size)
- internal_function;
-extern Dwfl_Error __libdw_bunzip2 (int fd, off64_t start_offset,
- void *mapped, size_t mapped_size,
- void **whole, size_t *whole_size)
- internal_function;
-extern Dwfl_Error __libdw_unlzma (int fd, off64_t start_offset,
- void *mapped, size_t mapped_size,
- void **whole, size_t *whole_size)
- internal_function;
-
-/* Skip the image header before a file image: updates *START_OFFSET. */
-extern Dwfl_Error __libdw_image_header (int fd, off64_t *start_offset,
- void *mapped, size_t mapped_size)
- internal_function;
-
-/* Open Elf handle on *FDP. This handles decompression and checks
- elf_kind. Succeed only for ELF_K_ELF, or also ELF_K_AR if ARCHIVE_OK.
- Returns DWFL_E_NOERROR and sets *ELFP on success, resets *FDP to -1 if
- it's no longer used. Resets *FDP on failure too iff CLOSE_ON_FAIL. */
-extern Dwfl_Error __libdw_open_file (int *fdp, Elf **elfp,
- bool close_on_fail, bool archive_ok)
- internal_function;
-
-/* Fetch PT_DYNAMIC P_VADDR from ELF and store it to *VADDRP. Return success.
- *VADDRP is not modified if the function fails. */
-extern bool __libdwfl_dynamic_vaddr_get (Elf *elf, GElf_Addr *vaddrp)
- internal_function;
-
-/* These are working nicely for --core, but are not ready to be
- exported interfaces quite yet. */
-
-/* Type of callback function ...
- */
-typedef bool Dwfl_Memory_Callback (Dwfl *dwfl, int segndx,
- void **buffer, size_t *buffer_available,
- GElf_Addr vaddr, size_t minread, void *arg);
-
-/* Type of callback function ...
- */
-typedef bool Dwfl_Module_Callback (Dwfl_Module *mod, void **userdata,
- const char *name, Dwarf_Addr base,
- void **buffer, size_t *buffer_available,
- GElf_Off cost, GElf_Off worthwhile,
- GElf_Off whole, GElf_Off contiguous,
- void *arg, Elf **elfp);
-
-/* One shared library (or executable) info from DT_DEBUG link map. */
-struct r_debug_info_module
-{
- struct r_debug_info_module *next;
- /* FD is -1 iff ELF is NULL. */
- int fd;
- Elf *elf;
- GElf_Addr l_ld;
- /* START and END are both zero if not valid. */
- GElf_Addr start, end;
- bool disk_file_has_build_id;
- char name[0];
-};
-
-/* Information gathered from DT_DEBUG by dwfl_link_map_report hinted to
- dwfl_segment_report_module. */
-struct r_debug_info
-{
- struct r_debug_info_module *module;
-};
-
-/* ...
- */
-extern int dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char *name,
- Dwfl_Memory_Callback *memory_callback,
- void *memory_callback_arg,
- Dwfl_Module_Callback *read_eagerly,
- void *read_eagerly_arg,
- const void *note_file,
- size_t note_file_size,
- const struct r_debug_info *r_debug_info);
-
-/* Report a module for entry in the dynamic linker's struct link_map list.
- For each link_map entry, if an existing module resides at its address,
- this just modifies that module's name and suggested file name. If
- no such module exists, this calls dwfl_report_elf on the l_name string.
-
- If AUXV is not null, it points to AUXV_SIZE bytes of auxiliary vector
- data as contained in an NT_AUXV note or read from a /proc/pid/auxv
- file. When this is available, it guides the search. If AUXV is null
- or the memory it points to is not accessible, then this search can
- only find where to begin if the correct executable file was
- previously reported and preloaded as with dwfl_report_elf.
-
- Fill in R_DEBUG_INFO if it is not NULL. It should be cleared by the
- caller, this function does not touch fields it does not need to modify.
- If R_DEBUG_INFO is not NULL then no modules get added to DWFL, caller
- has to add them from filled in R_DEBUG_INFO.
-
- Returns the number of modules found, or -1 for errors. */
-extern int dwfl_link_map_report (Dwfl *dwfl, const void *auxv, size_t auxv_size,
- Dwfl_Memory_Callback *memory_callback,
- void *memory_callback_arg,
- struct r_debug_info *r_debug_info);
-
-
-/* Avoid PLT entries. */
-INTDECL (dwfl_begin)
-INTDECL (dwfl_errmsg)
-INTDECL (dwfl_errno)
-INTDECL (dwfl_addrmodule)
-INTDECL (dwfl_addrsegment)
-INTDECL (dwfl_addrdwarf)
-INTDECL (dwfl_addrdie)
-INTDECL (dwfl_core_file_attach)
-INTDECL (dwfl_core_file_report)
-INTDECL (dwfl_getmodules)
-INTDECL (dwfl_module_addrdie)
-INTDECL (dwfl_module_address_section)
-INTDECL (dwfl_module_addrinfo)
-INTDECL (dwfl_module_addrsym)
-INTDECL (dwfl_module_build_id)
-INTDECL (dwfl_module_getdwarf)
-INTDECL (dwfl_module_getelf)
-INTDECL (dwfl_module_getsym)
-INTDECL (dwfl_module_getsym_info)
-INTDECL (dwfl_module_getsymtab)
-INTDECL (dwfl_module_getsymtab_first_global)
-INTDECL (dwfl_module_getsrc)
-INTDECL (dwfl_module_report_build_id)
-INTDECL (dwfl_report_elf)
-INTDECL (dwfl_report_begin)
-INTDECL (dwfl_report_begin_add)
-INTDECL (dwfl_report_module)
-INTDECL (dwfl_report_segment)
-INTDECL (dwfl_report_offline)
-INTDECL (dwfl_report_end)
-INTDECL (dwfl_build_id_find_elf)
-INTDECL (dwfl_build_id_find_debuginfo)
-INTDECL (dwfl_standard_find_debuginfo)
-INTDECL (dwfl_link_map_report)
-INTDECL (dwfl_linux_kernel_find_elf)
-INTDECL (dwfl_linux_kernel_module_section_address)
-INTDECL (dwfl_linux_proc_attach)
-INTDECL (dwfl_linux_proc_report)
-INTDECL (dwfl_linux_proc_maps_report)
-INTDECL (dwfl_linux_proc_find_elf)
-INTDECL (dwfl_linux_kernel_report_kernel)
-INTDECL (dwfl_linux_kernel_report_modules)
-INTDECL (dwfl_linux_kernel_report_offline)
-INTDECL (dwfl_offline_section_address)
-INTDECL (dwfl_module_relocate_address)
-INTDECL (dwfl_module_dwarf_cfi)
-INTDECL (dwfl_module_eh_cfi)
-INTDECL (dwfl_attach_state)
-INTDECL (dwfl_pid)
-INTDECL (dwfl_thread_dwfl)
-INTDECL (dwfl_thread_tid)
-INTDECL (dwfl_frame_thread)
-INTDECL (dwfl_thread_state_registers)
-INTDECL (dwfl_thread_state_register_pc)
-INTDECL (dwfl_getthread_frames)
-INTDECL (dwfl_getthreads)
-INTDECL (dwfl_thread_getframes)
-INTDECL (dwfl_frame_pc)
-
-/* Leading arguments standard to callbacks passed a Dwfl_Module. */
-#define MODCB_ARGS(mod) (mod), &(mod)->userdata, (mod)->name, (mod)->low_addr
-#define CBFAIL (errno ? DWFL_E (ERRNO, errno) : DWFL_E_CB);
-
-
-/* The default used by dwfl_standard_find_debuginfo. */
-#define DEFAULT_DEBUGINFO_PATH ":.debug:/usr/lib/debug"
-
-
-#endif /* libdwflP.h */
diff --git a/src/libdwfl/libdwfl_crc32.c b/src/libdwfl/libdwfl_crc32.c
deleted file mode 100644
index b89d0d36..00000000
--- a/src/libdwfl/libdwfl_crc32.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define crc32 attribute_hidden __libdwfl_crc32
-#define LIB_SYSTEM_H 1
-#include <libdwflP.h>
-#include "../lib/crc32.c"
diff --git a/src/libdwfl/libdwfl_crc32_file.c b/src/libdwfl/libdwfl_crc32_file.c
deleted file mode 100644
index 6b6b7d3f..00000000
--- a/src/libdwfl/libdwfl_crc32_file.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define crc32_file attribute_hidden __libdwfl_crc32_file
-#define crc32 __libdwfl_crc32
-#define LIB_SYSTEM_H 1
-#include <libdwflP.h>
-#include "../lib/crc32_file.c"
diff --git a/src/libdwfl/lines.c b/src/libdwfl/lines.c
deleted file mode 100644
index 721e29cc..00000000
--- a/src/libdwfl/lines.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Fetch source line info for CU.
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include "../libdw/libdwP.h"
-
-Dwfl_Error
-internal_function
-__libdwfl_cu_getsrclines (struct dwfl_cu *cu)
-{
- if (cu->lines == NULL)
- {
- Dwarf_Lines *lines;
- size_t nlines;
- if (INTUSE(dwarf_getsrclines) (&cu->die, &lines, &nlines) != 0)
- return DWFL_E_LIBDW;
-
- cu->lines = malloc (offsetof (struct Dwfl_Lines, idx[nlines]));
- if (cu->lines == NULL)
- return DWFL_E_NOMEM;
- cu->lines->cu = cu;
- for (unsigned int i = 0; i < nlines; ++i)
- cu->lines->idx[i].idx = i;
- }
-
- return DWFL_E_NOERROR;
-}
diff --git a/src/libdwfl/link_map.c b/src/libdwfl/link_map.c
deleted file mode 100644
index eaf43b57..00000000
--- a/src/libdwfl/link_map.c
+++ /dev/null
@@ -1,1021 +0,0 @@
-/* Report modules by examining dynamic linker data structures.
- Copyright (C) 2008-2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include "libdwflP.h"
-#include "../libdw/memory-access.h"
-#include "system.h"
-
-#include <byteswap.h>
-#include <endian.h>
-#include <fcntl.h>
-
-/* This element is always provided and always has a constant value.
- This makes it an easy thing to scan for to discern the format. */
-#define PROBE_TYPE AT_PHENT
-#define PROBE_VAL32 sizeof (Elf32_Phdr)
-#define PROBE_VAL64 sizeof (Elf64_Phdr)
-
-
-/* Examine an auxv data block and determine its format.
- Return true iff we figured it out. */
-static bool
-auxv_format_probe (const void *auxv, size_t size,
- uint_fast8_t *elfclass, uint_fast8_t *elfdata)
-{
- const union
- {
- char buf[size];
- Elf32_auxv_t a32[size / sizeof (Elf32_auxv_t)];
- Elf64_auxv_t a64[size / sizeof (Elf64_auxv_t)];
- } *u = auxv;
-
- inline bool check64 (size_t i)
- {
- /* The AUXV pointer might not even be naturally aligned for 64-bit
- data, because note payloads in a core file are not aligned.
- But we assume the data is 32-bit aligned. */
-
- uint64_t type = read_8ubyte_unaligned_noncvt (&u->a64[i].a_type);
- uint64_t val = read_8ubyte_unaligned_noncvt (&u->a64[i].a_un.a_val);
-
- if (type == BE64 (PROBE_TYPE)
- && val == BE64 (PROBE_VAL64))
- {
- *elfdata = ELFDATA2MSB;
- return true;
- }
-
- if (type == LE64 (PROBE_TYPE)
- && val == LE64 (PROBE_VAL64))
- {
- *elfdata = ELFDATA2LSB;
- return true;
- }
-
- return false;
- }
-
- inline bool check32 (size_t i)
- {
- if (u->a32[i].a_type == BE32 (PROBE_TYPE)
- && u->a32[i].a_un.a_val == BE32 (PROBE_VAL32))
- {
- *elfdata = ELFDATA2MSB;
- return true;
- }
-
- if (u->a32[i].a_type == LE32 (PROBE_TYPE)
- && u->a32[i].a_un.a_val == LE32 (PROBE_VAL32))
- {
- *elfdata = ELFDATA2LSB;
- return true;
- }
-
- return false;
- }
-
- for (size_t i = 0; i < size / sizeof (Elf64_auxv_t); ++i)
- {
- if (check64 (i))
- {
- *elfclass = ELFCLASS64;
- return true;
- }
-
- if (check32 (i * 2) || check32 (i * 2 + 1))
- {
- *elfclass = ELFCLASS32;
- return true;
- }
- }
-
- return false;
-}
-
-/* This is a Dwfl_Memory_Callback that wraps another memory callback.
- If the underlying callback cannot fill the data, then this will
- fall back to fetching data from module files. */
-
-struct integrated_memory_callback
-{
- Dwfl_Memory_Callback *memory_callback;
- void *memory_callback_arg;
- void *buffer;
-};
-
-static bool
-integrated_memory_callback (Dwfl *dwfl, int ndx,
- void **buffer, size_t *buffer_available,
- GElf_Addr vaddr,
- size_t minread,
- void *arg)
-{
- struct integrated_memory_callback *info = arg;
-
- if (ndx == -1)
- {
- /* Called for cleanup. */
- if (info->buffer != NULL)
- {
- /* The last probe buffer came from the underlying callback.
- Let it do its cleanup. */
- assert (*buffer == info->buffer); /* XXX */
- *buffer = info->buffer;
- info->buffer = NULL;
- return (*info->memory_callback) (dwfl, ndx, buffer, buffer_available,
- vaddr, minread,
- info->memory_callback_arg);
- }
- *buffer = NULL;
- *buffer_available = 0;
- return false;
- }
-
- if (*buffer != NULL)
- /* For a final-read request, we only use the underlying callback. */
- return (*info->memory_callback) (dwfl, ndx, buffer, buffer_available,
- vaddr, minread, info->memory_callback_arg);
-
- /* Let the underlying callback try to fill this request. */
- if ((*info->memory_callback) (dwfl, ndx, &info->buffer, buffer_available,
- vaddr, minread, info->memory_callback_arg))
- {
- *buffer = info->buffer;
- return true;
- }
-
- /* Now look for module text covering this address. */
-
- Dwfl_Module *mod;
- (void) INTUSE(dwfl_addrsegment) (dwfl, vaddr, &mod);
- if (mod == NULL)
- return false;
-
- Dwarf_Addr bias;
- Elf_Scn *scn = INTUSE(dwfl_module_address_section) (mod, &vaddr, &bias);
- if (unlikely (scn == NULL))
- {
-#if 0 // XXX would have to handle ndx=-1 cleanup calls passed down.
- /* If we have no sections we can try to fill it from the module file
- based on its phdr mappings. */
- if (likely (mod->e_type != ET_REL) && mod->main.elf != NULL)
- return INTUSE(dwfl_elf_phdr_memory_callback)
- (dwfl, 0, buffer, buffer_available,
- vaddr - mod->main.bias, minread, mod->main.elf);
-#endif
- return false;
- }
-
- Elf_Data *data = elf_rawdata (scn, NULL);
- if (unlikely (data == NULL))
- // XXX throw error?
- return false;
-
- if (unlikely (data->d_size < vaddr))
- return false;
-
- /* Provide as much data as we have. */
- void *contents = data->d_buf + vaddr;
- size_t avail = data->d_size - vaddr;
- if (unlikely (avail < minread))
- return false;
-
- /* If probing for a string, make sure it's terminated. */
- if (minread == 0 && unlikely (memchr (contents, '\0', avail) == NULL))
- return false;
-
- /* We have it! */
- *buffer = contents;
- *buffer_available = avail;
- return true;
-}
-
-static size_t
-addrsize (uint_fast8_t elfclass)
-{
- return elfclass * 4;
-}
-
-/* Report a module for each struct link_map in the linked list at r_map
- in the struct r_debug at R_DEBUG_VADDR. For r_debug_info description
- see dwfl_link_map_report in libdwflP.h. If R_DEBUG_INFO is not NULL then no
- modules get added to DWFL, caller has to add them from filled in
- R_DEBUG_INFO.
-
- For each link_map entry, if an existing module resides at its address,
- this just modifies that module's name and suggested file name. If
- no such module exists, this calls dwfl_report_elf on the l_name string.
-
- Returns the number of modules found, or -1 for errors. */
-
-static int
-report_r_debug (uint_fast8_t elfclass, uint_fast8_t elfdata,
- Dwfl *dwfl, GElf_Addr r_debug_vaddr,
- Dwfl_Memory_Callback *memory_callback,
- void *memory_callback_arg,
- struct r_debug_info *r_debug_info)
-{
- /* Skip r_version, to aligned r_map field. */
- GElf_Addr read_vaddr = r_debug_vaddr + addrsize (elfclass);
-
- void *buffer = NULL;
- size_t buffer_available = 0;
- inline int release_buffer (int result)
- {
- if (buffer != NULL)
- (void) (*memory_callback) (dwfl, -1, &buffer, &buffer_available, 0, 0,
- memory_callback_arg);
- return result;
- }
-
- GElf_Addr addrs[4];
- inline bool read_addrs (GElf_Addr vaddr, size_t n)
- {
- size_t nb = n * addrsize (elfclass); /* Address words -> bytes to read. */
-
- /* Read a new buffer if the old one doesn't cover these words. */
- if (buffer == NULL
- || vaddr < read_vaddr
- || vaddr - read_vaddr + nb > buffer_available)
- {
- release_buffer (0);
-
- read_vaddr = vaddr;
- int segndx = INTUSE(dwfl_addrsegment) (dwfl, vaddr, NULL);
- if (unlikely (segndx < 0)
- || unlikely (! (*memory_callback) (dwfl, segndx,
- &buffer, &buffer_available,
- vaddr, nb, memory_callback_arg)))
- return true;
- }
-
- const union
- {
- Elf32_Addr a32[n];
- Elf64_Addr a64[n];
- } *in = vaddr - read_vaddr + buffer;
-
- if (elfclass == ELFCLASS32)
- {
- if (elfdata == ELFDATA2MSB)
- for (size_t i = 0; i < n; ++i)
- addrs[i] = BE32 (in->a32[i]);
- else
- for (size_t i = 0; i < n; ++i)
- addrs[i] = LE32 (in->a32[i]);
- }
- else
- {
- if (elfdata == ELFDATA2MSB)
- for (size_t i = 0; i < n; ++i)
- addrs[i] = BE64 (in->a64[i]);
- else
- for (size_t i = 0; i < n; ++i)
- addrs[i] = LE64 (in->a64[i]);
- }
-
- return false;
- }
-
- if (unlikely (read_addrs (read_vaddr, 1)))
- return release_buffer (-1);
-
- GElf_Addr next = addrs[0];
-
- Dwfl_Module **lastmodp = &dwfl->modulelist;
- int result = 0;
-
- /* There can't be more elements in the link_map list than there are
- segments. DWFL->lookup_elts is probably twice that number, so it
- is certainly above the upper bound. If we iterate too many times,
- there must be a loop in the pointers due to link_map clobberation. */
- size_t iterations = 0;
- while (next != 0 && ++iterations < dwfl->lookup_elts)
- {
- if (read_addrs (next, 4))
- return release_buffer (-1);
-
- /* Unused: l_addr is the difference between the address in memory
- and the ELF file when the core was created. We need to
- recalculate the difference below because the ELF file we use
- might be differently pre-linked. */
- // GElf_Addr l_addr = addrs[0];
- GElf_Addr l_name = addrs[1];
- GElf_Addr l_ld = addrs[2];
- next = addrs[3];
-
- /* If a clobbered or truncated memory image has no useful pointer,
- just skip this element. */
- if (l_ld == 0)
- continue;
-
- /* Fetch the string at the l_name address. */
- const char *name = NULL;
- if (buffer != NULL
- && read_vaddr <= l_name
- && l_name + 1 - read_vaddr < buffer_available
- && memchr (l_name - read_vaddr + buffer, '\0',
- buffer_available - (l_name - read_vaddr)) != NULL)
- name = l_name - read_vaddr + buffer;
- else
- {
- release_buffer (0);
- read_vaddr = l_name;
- int segndx = INTUSE(dwfl_addrsegment) (dwfl, l_name, NULL);
- if (likely (segndx >= 0)
- && (*memory_callback) (dwfl, segndx,
- &buffer, &buffer_available,
- l_name, 0, memory_callback_arg))
- name = buffer;
- }
-
- if (name != NULL && name[0] == '\0')
- name = NULL;
-
- if (iterations == 1 && dwfl->executable_for_core != NULL)
- name = dwfl->executable_for_core;
-
- struct r_debug_info_module *r_debug_info_module = NULL;
- if (r_debug_info != NULL)
- {
- /* Save link map information about valid shared library (or
- executable) which has not been found on disk. */
- const char *name1 = name == NULL ? "" : name;
- r_debug_info_module = malloc (sizeof (*r_debug_info_module)
- + strlen (name1) + 1);
- if (r_debug_info_module == NULL)
- return release_buffer (result);
- r_debug_info_module->fd = -1;
- r_debug_info_module->elf = NULL;
- r_debug_info_module->l_ld = l_ld;
- r_debug_info_module->start = 0;
- r_debug_info_module->end = 0;
- r_debug_info_module->disk_file_has_build_id = false;
- strcpy (r_debug_info_module->name, name1);
- r_debug_info_module->next = r_debug_info->module;
- r_debug_info->module = r_debug_info_module;
- }
-
- Dwfl_Module *mod = NULL;
- if (name != NULL)
- {
- /* This code is mostly inlined dwfl_report_elf. */
- // XXX hook for sysroot
- int fd = open64 (name, O_RDONLY);
- if (fd >= 0)
- {
- Elf *elf;
- Dwfl_Error error = __libdw_open_file (&fd, &elf, true, false);
- GElf_Addr elf_dynamic_vaddr;
- if (error == DWFL_E_NOERROR
- && __libdwfl_dynamic_vaddr_get (elf, &elf_dynamic_vaddr))
- {
- const void *build_id_bits;
- GElf_Addr build_id_elfaddr;
- int build_id_len;
- bool valid = true;
-
- if (__libdwfl_find_elf_build_id (NULL, elf, &build_id_bits,
- &build_id_elfaddr,
- &build_id_len) > 0
- && build_id_elfaddr != 0)
- {
- if (r_debug_info_module != NULL)
- r_debug_info_module->disk_file_has_build_id = true;
- GElf_Addr build_id_vaddr = (build_id_elfaddr
- - elf_dynamic_vaddr + l_ld);
-
- release_buffer (0);
- int segndx = INTUSE(dwfl_addrsegment) (dwfl,
- build_id_vaddr,
- NULL);
- if (! (*memory_callback) (dwfl, segndx,
- &buffer, &buffer_available,
- build_id_vaddr, build_id_len,
- memory_callback_arg))
- {
- /* File has valid build-id which cannot be read from
- memory. This happens for core files without bit 4
- (0x10) set in Linux /proc/PID/coredump_filter. */
- }
- else
- {
- if (memcmp (build_id_bits, buffer, build_id_len) != 0)
- /* File has valid build-id which does not match
- the one in memory. */
- valid = false;
- release_buffer (0);
- }
- }
-
- if (valid)
- {
- // It is like l_addr but it handles differently prelinked
- // files at core dumping vs. core loading time.
- GElf_Addr base = l_ld - elf_dynamic_vaddr;
- if (r_debug_info_module == NULL)
- {
- // XXX hook for sysroot
- mod = __libdwfl_report_elf (dwfl, basename (name),
- name, fd, elf, base,
- true, true);
- if (mod != NULL)
- {
- elf = NULL;
- fd = -1;
- }
- }
- else if (__libdwfl_elf_address_range (elf, base, true,
- true, NULL, NULL,
- &r_debug_info_module->start,
- &r_debug_info_module->end,
- NULL, NULL))
- {
- r_debug_info_module->elf = elf;
- r_debug_info_module->fd = fd;
- elf = NULL;
- fd = -1;
- }
- }
- if (elf != NULL)
- elf_end (elf);
- if (fd != -1)
- close (fd);
- }
- }
- }
-
- if (mod != NULL)
- {
- ++result;
-
- /* Move this module to the end of the list, so that we end
- up with a list in the same order as the link_map chain. */
- if (mod->next != NULL)
- {
- if (*lastmodp != mod)
- {
- lastmodp = &dwfl->modulelist;
- while (*lastmodp != mod)
- lastmodp = &(*lastmodp)->next;
- }
- *lastmodp = mod->next;
- mod->next = NULL;
- while (*lastmodp != NULL)
- lastmodp = &(*lastmodp)->next;
- *lastmodp = mod;
- }
-
- lastmodp = &mod->next;
- }
- }
-
- return release_buffer (result);
-}
-
-static GElf_Addr
-consider_executable (Dwfl_Module *mod, GElf_Addr at_phdr, GElf_Addr at_entry,
- uint_fast8_t *elfclass, uint_fast8_t *elfdata,
- Dwfl_Memory_Callback *memory_callback,
- void *memory_callback_arg)
-{
- GElf_Ehdr ehdr;
- if (unlikely (gelf_getehdr (mod->main.elf, &ehdr) == NULL))
- return 0;
-
- if (at_entry != 0)
- {
- /* If we have an AT_ENTRY value, reject this executable if
- its entry point address could not have supplied that. */
-
- if (ehdr.e_entry == 0)
- return 0;
-
- if (mod->e_type == ET_EXEC)
- {
- if (ehdr.e_entry != at_entry)
- return 0;
- }
- else
- {
- /* It could be a PIE. */
- }
- }
-
- // XXX this could be saved in the file cache: phdr vaddr, DT_DEBUG d_val vaddr
- /* Find the vaddr of the DT_DEBUG's d_ptr. This is the memory
- address where &r_debug was written at runtime. */
- GElf_Xword align = mod->dwfl->segment_align;
- GElf_Addr d_val_vaddr = 0;
- size_t phnum;
- if (elf_getphdrnum (mod->main.elf, &phnum) != 0)
- return 0;
-
- for (size_t i = 0; i < phnum; ++i)
- {
- GElf_Phdr phdr_mem;
- GElf_Phdr *phdr = gelf_getphdr (mod->main.elf, i, &phdr_mem);
- if (phdr == NULL)
- break;
-
- if (phdr->p_align > 1 && (align == 0 || phdr->p_align < align))
- align = phdr->p_align;
-
- if (at_phdr != 0
- && phdr->p_type == PT_LOAD
- && (phdr->p_offset & -align) == (ehdr.e_phoff & -align))
- {
- /* This is the segment that would map the phdrs.
- If we have an AT_PHDR value, reject this executable
- if its phdr mapping could not have supplied that. */
- if (mod->e_type == ET_EXEC)
- {
- if (ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr != at_phdr)
- return 0;
- }
- else
- {
- /* It could be a PIE. If the AT_PHDR value and our
- phdr address don't match modulo ALIGN, then this
- could not have been the right PIE. */
- if (((ehdr.e_phoff - phdr->p_offset + phdr->p_vaddr) & -align)
- != (at_phdr & -align))
- return 0;
-
- /* Calculate the bias applied to the PIE's p_vaddr values. */
- GElf_Addr bias = (at_phdr - (ehdr.e_phoff - phdr->p_offset
- + phdr->p_vaddr));
-
- /* Final sanity check: if we have an AT_ENTRY value,
- reject this PIE unless its biased e_entry matches. */
- if (at_entry != 0 && at_entry != ehdr.e_entry + bias)
- return 0;
-
- /* If we're changing the module's address range,
- we've just invalidated the module lookup table. */
- GElf_Addr mod_bias = dwfl_adjusted_address (mod, 0);
- if (bias != mod_bias)
- {
- mod->low_addr -= mod_bias;
- mod->high_addr -= mod_bias;
- mod->low_addr += bias;
- mod->high_addr += bias;
-
- free (mod->dwfl->lookup_module);
- mod->dwfl->lookup_module = NULL;
- }
- }
- }
-
- if (phdr->p_type == PT_DYNAMIC)
- {
- Elf_Data *data = elf_getdata_rawchunk (mod->main.elf, phdr->p_offset,
- phdr->p_filesz, ELF_T_DYN);
- if (data == NULL)
- continue;
- const size_t entsize = gelf_fsize (mod->main.elf,
- ELF_T_DYN, 1, EV_CURRENT);
- const size_t n = data->d_size / entsize;
- for (size_t j = 0; j < n; ++j)
- {
- GElf_Dyn dyn_mem;
- GElf_Dyn *dyn = gelf_getdyn (data, j, &dyn_mem);
- if (dyn != NULL && dyn->d_tag == DT_DEBUG)
- {
- d_val_vaddr = phdr->p_vaddr + entsize * j + entsize / 2;
- break;
- }
- }
- }
- }
-
- if (d_val_vaddr != 0)
- {
- /* Now we have the final address from which to read &r_debug. */
- d_val_vaddr = dwfl_adjusted_address (mod, d_val_vaddr);
-
- void *buffer = NULL;
- size_t buffer_available = addrsize (ehdr.e_ident[EI_CLASS]);
-
- int segndx = INTUSE(dwfl_addrsegment) (mod->dwfl, d_val_vaddr, NULL);
-
- if ((*memory_callback) (mod->dwfl, segndx,
- &buffer, &buffer_available,
- d_val_vaddr, buffer_available,
- memory_callback_arg))
- {
- const union
- {
- Elf32_Addr a32;
- Elf64_Addr a64;
- } *u = buffer;
-
- GElf_Addr vaddr;
- if (ehdr.e_ident[EI_CLASS] == ELFCLASS32)
- vaddr = (ehdr.e_ident[EI_DATA] == ELFDATA2MSB
- ? BE32 (u->a32) : LE32 (u->a32));
- else
- vaddr = (ehdr.e_ident[EI_DATA] == ELFDATA2MSB
- ? BE64 (u->a64) : LE64 (u->a64));
-
- (*memory_callback) (mod->dwfl, -1, &buffer, &buffer_available, 0, 0,
- memory_callback_arg);
-
- if (*elfclass == ELFCLASSNONE)
- *elfclass = ehdr.e_ident[EI_CLASS];
- else if (*elfclass != ehdr.e_ident[EI_CLASS])
- return 0;
-
- if (*elfdata == ELFDATANONE)
- *elfdata = ehdr.e_ident[EI_DATA];
- else if (*elfdata != ehdr.e_ident[EI_DATA])
- return 0;
-
- return vaddr;
- }
- }
-
- return 0;
-}
-
-/* Try to find an existing executable module with a DT_DEBUG. */
-static GElf_Addr
-find_executable (Dwfl *dwfl, GElf_Addr at_phdr, GElf_Addr at_entry,
- uint_fast8_t *elfclass, uint_fast8_t *elfdata,
- Dwfl_Memory_Callback *memory_callback,
- void *memory_callback_arg)
-{
- for (Dwfl_Module *mod = dwfl->modulelist; mod != NULL; mod = mod->next)
- if (mod->main.elf != NULL)
- {
- GElf_Addr r_debug_vaddr = consider_executable (mod, at_phdr, at_entry,
- elfclass, elfdata,
- memory_callback,
- memory_callback_arg);
- if (r_debug_vaddr != 0)
- return r_debug_vaddr;
- }
-
- return 0;
-}
-
-
-int
-dwfl_link_map_report (Dwfl *dwfl, const void *auxv, size_t auxv_size,
- Dwfl_Memory_Callback *memory_callback,
- void *memory_callback_arg,
- struct r_debug_info *r_debug_info)
-{
- GElf_Addr r_debug_vaddr = 0;
-
- uint_fast8_t elfclass = ELFCLASSNONE;
- uint_fast8_t elfdata = ELFDATANONE;
- if (likely (auxv != NULL)
- && likely (auxv_format_probe (auxv, auxv_size, &elfclass, &elfdata)))
- {
- GElf_Addr entry = 0;
- GElf_Addr phdr = 0;
- GElf_Xword phent = 0;
- GElf_Xword phnum = 0;
-
-#define READ_AUXV32(ptr) read_4ubyte_unaligned_noncvt (ptr)
-#define READ_AUXV64(ptr) read_8ubyte_unaligned_noncvt (ptr)
-#define AUXV_SCAN(NN, BL) do \
- { \
- const Elf##NN##_auxv_t *av = auxv; \
- for (size_t i = 0; i < auxv_size / sizeof av[0]; ++i) \
- { \
- uint##NN##_t type = READ_AUXV##NN (&av[i].a_type); \
- uint##NN##_t val = BL##NN (READ_AUXV##NN (&av[i].a_un.a_val)); \
- if (type == BL##NN (AT_ENTRY)) \
- entry = val; \
- else if (type == BL##NN (AT_PHDR)) \
- phdr = val; \
- else if (type == BL##NN (AT_PHNUM)) \
- phnum = val; \
- else if (type == BL##NN (AT_PHENT)) \
- phent = val; \
- else if (type == BL##NN (AT_PAGESZ)) \
- { \
- if (val > 1 \
- && (dwfl->segment_align == 0 \
- || val < dwfl->segment_align)) \
- dwfl->segment_align = val; \
- } \
- } \
- } \
- while (0)
-
- if (elfclass == ELFCLASS32)
- {
- if (elfdata == ELFDATA2MSB)
- AUXV_SCAN (32, BE);
- else
- AUXV_SCAN (32, LE);
- }
- else
- {
- if (elfdata == ELFDATA2MSB)
- AUXV_SCAN (64, BE);
- else
- AUXV_SCAN (64, LE);
- }
-
- /* If we found the phdr dimensions, search phdrs for PT_DYNAMIC. */
- GElf_Addr dyn_vaddr = 0;
- GElf_Xword dyn_filesz = 0;
- GElf_Addr dyn_bias = (GElf_Addr) -1;
-
- inline bool consider_phdr (GElf_Word type,
- GElf_Addr vaddr, GElf_Xword filesz)
- {
- switch (type)
- {
- case PT_PHDR:
- if (dyn_bias == (GElf_Addr) -1
- /* Do a sanity check on the putative address. */
- && ((vaddr & (dwfl->segment_align - 1))
- == (phdr & (dwfl->segment_align - 1))))
- {
- dyn_bias = phdr - vaddr;
- return dyn_vaddr != 0;
- }
- break;
-
- case PT_DYNAMIC:
- dyn_vaddr = vaddr;
- dyn_filesz = filesz;
- return dyn_bias != (GElf_Addr) -1;
- }
-
- return false;
- }
-
- if (phdr != 0 && phnum != 0)
- {
- Dwfl_Module *phdr_mod;
- int phdr_segndx = INTUSE(dwfl_addrsegment) (dwfl, phdr, &phdr_mod);
- Elf_Data in =
- {
- .d_type = ELF_T_PHDR,
- .d_version = EV_CURRENT,
- .d_size = phnum * phent,
- .d_buf = NULL
- };
- bool in_ok = (*memory_callback) (dwfl, phdr_segndx, &in.d_buf,
- &in.d_size, phdr, phnum * phent,
- memory_callback_arg);
- if (! in_ok && dwfl->executable_for_core != NULL)
- {
- /* AUXV -> PHDR -> DYNAMIC
- Both AUXV and DYNAMIC should be always present in a core file.
- PHDR may be missing in core file, try to read it from
- EXECUTABLE_FOR_CORE to find where DYNAMIC is located in the
- core file. */
-
- int fd = open (dwfl->executable_for_core, O_RDONLY);
- Elf *elf;
- Dwfl_Error error = DWFL_E_ERRNO;
- if (fd != -1)
- error = __libdw_open_file (&fd, &elf, true, false);
- if (error != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (error);
- return false;
- }
- GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- elf_end (elf);
- close (fd);
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return false;
- }
- size_t e_phnum;
- if (elf_getphdrnum (elf, &e_phnum) != 0)
- {
- elf_end (elf);
- close (fd);
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return false;
- }
- if (e_phnum != phnum || ehdr->e_phentsize != phent)
- {
- elf_end (elf);
- close (fd);
- __libdwfl_seterrno (DWFL_E_BADELF);
- return false;
- }
- off_t off = ehdr->e_phoff;
- assert (in.d_buf == NULL);
- assert (in.d_size == phnum * phent);
- in.d_buf = malloc (in.d_size);
- if (unlikely (in.d_buf == NULL))
- {
- elf_end (elf);
- close (fd);
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return false;
- }
- ssize_t nread = pread_retry (fd, in.d_buf, in.d_size, off);
- elf_end (elf);
- close (fd);
- if (nread != (ssize_t) in.d_size)
- {
- free (in.d_buf);
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
- }
- in_ok = true;
- }
- if (in_ok)
- {
- union
- {
- Elf32_Phdr p32;
- Elf64_Phdr p64;
- char data[phnum * phent];
- } buf;
- Elf_Data out =
- {
- .d_type = ELF_T_PHDR,
- .d_version = EV_CURRENT,
- .d_size = phnum * phent,
- .d_buf = &buf
- };
- in.d_size = out.d_size;
- if (likely ((elfclass == ELFCLASS32
- ? elf32_xlatetom : elf64_xlatetom)
- (&out, &in, elfdata) != NULL))
- {
- /* We are looking for PT_DYNAMIC. */
- const union
- {
- Elf32_Phdr p32[phnum];
- Elf64_Phdr p64[phnum];
- } *u = (void *) &buf;
- if (elfclass == ELFCLASS32)
- {
- for (size_t i = 0; i < phnum; ++i)
- if (consider_phdr (u->p32[i].p_type,
- u->p32[i].p_vaddr,
- u->p32[i].p_filesz))
- break;
- }
- else
- {
- for (size_t i = 0; i < phnum; ++i)
- if (consider_phdr (u->p64[i].p_type,
- u->p64[i].p_vaddr,
- u->p64[i].p_filesz))
- break;
- }
- }
-
- (*memory_callback) (dwfl, -1, &in.d_buf, &in.d_size, 0, 0,
- memory_callback_arg);
- }
- else
- /* We could not read the executable's phdrs from the
- memory image. If we have a presupplied executable,
- we can still use the AT_PHDR and AT_ENTRY values to
- verify it, and to adjust its bias if it's a PIE.
-
- If there was an ET_EXEC module presupplied that contains
- the AT_PHDR address, then we only consider that one.
- We'll either accept it if its phdr location and e_entry
- make sense or reject it if they don't. If there is no
- presupplied ET_EXEC, then look for a presupplied module,
- which might be a PIE (ET_DYN) that needs its bias adjusted. */
- r_debug_vaddr = ((phdr_mod == NULL
- || phdr_mod->main.elf == NULL
- || phdr_mod->e_type != ET_EXEC)
- ? find_executable (dwfl, phdr, entry,
- &elfclass, &elfdata,
- memory_callback,
- memory_callback_arg)
- : consider_executable (phdr_mod, phdr, entry,
- &elfclass, &elfdata,
- memory_callback,
- memory_callback_arg));
- }
-
- /* If we found PT_DYNAMIC, search it for DT_DEBUG. */
- if (dyn_filesz != 0)
- {
- if (dyn_bias != (GElf_Addr) -1)
- dyn_vaddr += dyn_bias;
-
- Elf_Data in =
- {
- .d_type = ELF_T_DYN,
- .d_version = EV_CURRENT,
- .d_size = dyn_filesz,
- .d_buf = NULL
- };
- int dyn_segndx = dwfl_addrsegment (dwfl, dyn_vaddr, NULL);
- if ((*memory_callback) (dwfl, dyn_segndx, &in.d_buf, &in.d_size,
- dyn_vaddr, dyn_filesz, memory_callback_arg))
- {
- union
- {
- Elf32_Dyn d32;
- Elf64_Dyn d64;
- char data[dyn_filesz];
- } buf;
- Elf_Data out =
- {
- .d_type = ELF_T_DYN,
- .d_version = EV_CURRENT,
- .d_size = dyn_filesz,
- .d_buf = &buf
- };
- in.d_size = out.d_size;
- if (likely ((elfclass == ELFCLASS32
- ? elf32_xlatetom : elf64_xlatetom)
- (&out, &in, elfdata) != NULL))
- {
- /* We are looking for DT_DEBUG. */
- const union
- {
- Elf32_Dyn d32[dyn_filesz / sizeof (Elf32_Dyn)];
- Elf64_Dyn d64[dyn_filesz / sizeof (Elf64_Dyn)];
- } *u = (void *) &buf;
- if (elfclass == ELFCLASS32)
- {
- size_t n = dyn_filesz / sizeof (Elf32_Dyn);
- for (size_t i = 0; i < n; ++i)
- if (u->d32[i].d_tag == DT_DEBUG)
- {
- r_debug_vaddr = u->d32[i].d_un.d_val;
- break;
- }
- }
- else
- {
- size_t n = dyn_filesz / sizeof (Elf64_Dyn);
- for (size_t i = 0; i < n; ++i)
- if (u->d64[i].d_tag == DT_DEBUG)
- {
- r_debug_vaddr = u->d64[i].d_un.d_val;
- break;
- }
- }
- }
-
- (*memory_callback) (dwfl, -1, &in.d_buf, &in.d_size, 0, 0,
- memory_callback_arg);
- }
- }
- }
- else
- /* We have to look for a presupplied executable file to determine
- the vaddr of its dynamic section and DT_DEBUG therein. */
- r_debug_vaddr = find_executable (dwfl, 0, 0, &elfclass, &elfdata,
- memory_callback, memory_callback_arg);
-
- if (r_debug_vaddr == 0)
- return 0;
-
- /* For following pointers from struct link_map, we will use an
- integrated memory access callback that can consult module text
- elided from the core file. This is necessary when the l_name
- pointer for the dynamic linker's own entry is a pointer into the
- executable's .interp section. */
- struct integrated_memory_callback mcb =
- {
- .memory_callback = memory_callback,
- .memory_callback_arg = memory_callback_arg
- };
-
- /* Now we can follow the dynamic linker's library list. */
- return report_r_debug (elfclass, elfdata, dwfl, r_debug_vaddr,
- &integrated_memory_callback, &mcb, r_debug_info);
-}
-INTDEF (dwfl_link_map_report)
diff --git a/src/libdwfl/linux-core-attach.c b/src/libdwfl/linux-core-attach.c
deleted file mode 100644
index 5a7b3b3d..00000000
--- a/src/libdwfl/linux-core-attach.c
+++ /dev/null
@@ -1,427 +0,0 @@
-/* Get Dwarf Frame state for target core file.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <fcntl.h>
-#include "system.h"
-
-#include "../libdw/memory-access.h"
-
-#ifndef MIN
-# define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
-struct core_arg
-{
- Elf *core;
- Elf_Data *note_data;
- size_t thread_note_offset;
- Ebl *ebl;
-};
-
-struct thread_arg
-{
- struct core_arg *core_arg;
- size_t note_offset;
-};
-
-static bool
-core_memory_read (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Word *result,
- void *dwfl_arg)
-{
- Dwfl_Process *process = dwfl->process;
- struct core_arg *core_arg = dwfl_arg;
- Elf *core = core_arg->core;
- assert (core != NULL);
- static size_t phnum;
- if (elf_getphdrnum (core, &phnum) < 0)
- {
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return false;
- }
- for (size_t cnt = 0; cnt < phnum; ++cnt)
- {
- GElf_Phdr phdr_mem, *phdr = gelf_getphdr (core, cnt, &phdr_mem);
- if (phdr == NULL || phdr->p_type != PT_LOAD)
- continue;
- /* Bias is zero here, a core file itself has no bias. */
- GElf_Addr start = __libdwfl_segment_start (dwfl, phdr->p_vaddr);
- GElf_Addr end = __libdwfl_segment_end (dwfl,
- phdr->p_vaddr + phdr->p_memsz);
- unsigned bytes = ebl_get_elfclass (process->ebl) == ELFCLASS64 ? 8 : 4;
- if (addr < start || addr + bytes > end)
- continue;
- Elf_Data *data;
- data = elf_getdata_rawchunk (core, phdr->p_offset + addr - start,
- bytes, ELF_T_ADDR);
- if (data == NULL)
- {
- __libdwfl_seterrno (DWFL_E_LIBELF);
- return false;
- }
- assert (data->d_size == bytes);
- if (bytes == 8)
- *result = read_8ubyte_unaligned_noncvt (data->d_buf);
- else
- *result = read_4ubyte_unaligned_noncvt (data->d_buf);
- return true;
- }
- __libdwfl_seterrno (DWFL_E_ADDR_OUTOFRANGE);
- return false;
-}
-
-static pid_t
-core_next_thread (Dwfl *dwfl __attribute__ ((unused)), void *dwfl_arg,
- void **thread_argp)
-{
- struct core_arg *core_arg = dwfl_arg;
- Elf *core = core_arg->core;
- GElf_Nhdr nhdr;
- size_t name_offset;
- size_t desc_offset;
- Elf_Data *note_data = core_arg->note_data;
- size_t offset;
-
- struct thread_arg *thread_arg;
- if (*thread_argp == NULL)
- {
- core_arg->thread_note_offset = 0;
- thread_arg = malloc (sizeof (*thread_arg));
- if (thread_arg == NULL)
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
- thread_arg->core_arg = core_arg;
- *thread_argp = thread_arg;
- }
- else
- thread_arg = (struct thread_arg *) *thread_argp;
-
- while (offset = core_arg->thread_note_offset, offset < note_data->d_size
- && (core_arg->thread_note_offset = gelf_getnote (note_data, offset,
- &nhdr, &name_offset,
- &desc_offset)) > 0)
- {
- /* Do not check NAME for now, help broken Linux kernels. */
- const char *name = note_data->d_buf + name_offset;
- const char *desc = note_data->d_buf + desc_offset;
- GElf_Word regs_offset;
- size_t nregloc;
- const Ebl_Register_Location *reglocs;
- size_t nitems;
- const Ebl_Core_Item *items;
- if (! ebl_core_note (core_arg->ebl, &nhdr, name,
- &regs_offset, &nregloc, &reglocs, &nitems, &items))
- {
- /* This note may be just not recognized, skip it. */
- continue;
- }
- if (nhdr.n_type != NT_PRSTATUS)
- continue;
- const Ebl_Core_Item *item;
- for (item = items; item < items + nitems; item++)
- if (strcmp (item->name, "pid") == 0)
- break;
- if (item == items + nitems)
- continue;
- uint32_t val32 = read_4ubyte_unaligned_noncvt (desc + item->offset);
- val32 = (elf_getident (core, NULL)[EI_DATA] == ELFDATA2MSB
- ? be32toh (val32) : le32toh (val32));
- pid_t tid = (int32_t) val32;
- eu_static_assert (sizeof val32 <= sizeof tid);
- thread_arg->note_offset = offset;
- return tid;
- }
-
- free (thread_arg);
- return 0;
-}
-
-static bool
-core_set_initial_registers (Dwfl_Thread *thread, void *thread_arg_voidp)
-{
- struct thread_arg *thread_arg = thread_arg_voidp;
- struct core_arg *core_arg = thread_arg->core_arg;
- Elf *core = core_arg->core;
- size_t offset = thread_arg->note_offset;
- GElf_Nhdr nhdr;
- size_t name_offset;
- size_t desc_offset;
- Elf_Data *note_data = core_arg->note_data;
- size_t nregs = ebl_frame_nregs (core_arg->ebl);
- assert (nregs > 0);
- assert (offset < note_data->d_size);
- size_t getnote_err = gelf_getnote (note_data, offset, &nhdr, &name_offset,
- &desc_offset);
- /* __libdwfl_attach_state_for_core already verified the note is there. */
- assert (getnote_err != 0);
- /* Do not check NAME for now, help broken Linux kernels. */
- const char *name = note_data->d_buf + name_offset;
- const char *desc = note_data->d_buf + desc_offset;
- GElf_Word regs_offset;
- size_t nregloc;
- const Ebl_Register_Location *reglocs;
- size_t nitems;
- const Ebl_Core_Item *items;
- int core_note_err = ebl_core_note (core_arg->ebl, &nhdr, name, &regs_offset,
- &nregloc, &reglocs, &nitems, &items);
- /* __libdwfl_attach_state_for_core already verified the note is there. */
- assert (core_note_err != 0);
- assert (nhdr.n_type == NT_PRSTATUS);
- const Ebl_Core_Item *item;
- for (item = items; item < items + nitems; item++)
- if (strcmp (item->name, "pid") == 0)
- break;
- assert (item < items + nitems);
- pid_t tid;
- {
- uint32_t val32 = read_4ubyte_unaligned_noncvt (desc + item->offset);
- val32 = (elf_getident (core, NULL)[EI_DATA] == ELFDATA2MSB
- ? be32toh (val32) : le32toh (val32));
- tid = (int32_t) val32;
- eu_static_assert (sizeof val32 <= sizeof tid);
- }
- /* core_next_thread already found this TID there. */
- assert (tid == INTUSE(dwfl_thread_tid) (thread));
- for (item = items; item < items + nitems; item++)
- if (item->pc_register)
- break;
- if (item < items + nitems)
- {
- Dwarf_Word pc;
- switch (gelf_getclass (core) == ELFCLASS32 ? 32 : 64)
- {
- case 32:;
- uint32_t val32 = read_4ubyte_unaligned_noncvt (desc + item->offset);
- val32 = (elf_getident (core, NULL)[EI_DATA] == ELFDATA2MSB
- ? be32toh (val32) : le32toh (val32));
- /* Do a host width conversion. */
- pc = val32;
- break;
- case 64:;
- uint64_t val64 = read_8ubyte_unaligned_noncvt (desc + item->offset);
- val64 = (elf_getident (core, NULL)[EI_DATA] == ELFDATA2MSB
- ? be64toh (val64) : le64toh (val64));
- pc = val64;
- break;
- default:
- abort ();
- }
- INTUSE(dwfl_thread_state_register_pc) (thread, pc);
- }
- desc += regs_offset;
- for (size_t regloci = 0; regloci < nregloc; regloci++)
- {
- const Ebl_Register_Location *regloc = reglocs + regloci;
- // Iterate even regs out of NREGS range so that we can find pc_register.
- if (regloc->bits != 32 && regloc->bits != 64)
- continue;
- const char *reg_desc = desc + regloc->offset;
- for (unsigned regno = regloc->regno;
- regno < regloc->regno + (regloc->count ?: 1U);
- regno++)
- {
- /* PPC provides DWARF register 65 irrelevant for
- CFI which clashes with register 108 (LR) we need.
- LR (108) is provided earlier (in NT_PRSTATUS) than the # 65.
- FIXME: It depends now on their order in core notes.
- FIXME: It uses private function. */
- if (regno < nregs
- && __libdwfl_frame_reg_get (thread->unwound, regno, NULL))
- continue;
- Dwarf_Word val;
- switch (regloc->bits)
- {
- case 32:;
- uint32_t val32 = read_4ubyte_unaligned_noncvt (reg_desc);
- reg_desc += sizeof val32;
- val32 = (elf_getident (core, NULL)[EI_DATA] == ELFDATA2MSB
- ? be32toh (val32) : le32toh (val32));
- /* Do a host width conversion. */
- val = val32;
- break;
- case 64:;
- uint64_t val64 = read_8ubyte_unaligned_noncvt (reg_desc);
- reg_desc += sizeof val64;
- val64 = (elf_getident (core, NULL)[EI_DATA] == ELFDATA2MSB
- ? be64toh (val64) : le64toh (val64));
- assert (sizeof (*thread->unwound->regs) == sizeof val64);
- val = val64;
- break;
- default:
- abort ();
- }
- /* Registers not valid for CFI are just ignored. */
- if (regno < nregs)
- INTUSE(dwfl_thread_state_registers) (thread, regno, 1, &val);
- if (regloc->pc_register)
- INTUSE(dwfl_thread_state_register_pc) (thread, val);
- reg_desc += regloc->pad;
- }
- }
- return true;
-}
-
-static void
-core_detach (Dwfl *dwfl __attribute__ ((unused)), void *dwfl_arg)
-{
- struct core_arg *core_arg = dwfl_arg;
- ebl_closebackend (core_arg->ebl);
- free (core_arg);
-}
-
-static const Dwfl_Thread_Callbacks core_thread_callbacks =
-{
- core_next_thread,
- NULL, /* get_thread */
- core_memory_read,
- core_set_initial_registers,
- core_detach,
- NULL, /* core_thread_detach */
-};
-
-int
-dwfl_core_file_attach (Dwfl *dwfl, Elf *core)
-{
- Dwfl_Error err = DWFL_E_NOERROR;
- Ebl *ebl = ebl_openbackend (core);
- if (ebl == NULL)
- {
- err = DWFL_E_LIBEBL;
- fail_err:
- if (dwfl->process == NULL && dwfl->attacherr == DWFL_E_NOERROR)
- dwfl->attacherr = __libdwfl_canon_error (err);
- __libdwfl_seterrno (err);
- return -1;
- }
- size_t nregs = ebl_frame_nregs (ebl);
- if (nregs == 0)
- {
- err = DWFL_E_NO_UNWIND;
- fail:
- ebl_closebackend (ebl);
- goto fail_err;
- }
- GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (core, &ehdr_mem);
- if (ehdr == NULL)
- {
- err = DWFL_E_LIBELF;
- goto fail;
- }
- if (ehdr->e_type != ET_CORE)
- {
- err = DWFL_E_NO_CORE_FILE;
- goto fail;
- }
- size_t phnum;
- if (elf_getphdrnum (core, &phnum) < 0)
- {
- err = DWFL_E_LIBELF;
- goto fail;
- }
- pid_t pid = -1;
- Elf_Data *note_data = NULL;
- for (size_t cnt = 0; cnt < phnum; ++cnt)
- {
- GElf_Phdr phdr_mem, *phdr = gelf_getphdr (core, cnt, &phdr_mem);
- if (phdr != NULL && phdr->p_type == PT_NOTE)
- {
- note_data = elf_getdata_rawchunk (core, phdr->p_offset,
- phdr->p_filesz, ELF_T_NHDR);
- break;
- }
- }
- if (note_data == NULL)
- {
- err = DWFL_E_LIBELF;
- goto fail;
- }
- size_t offset = 0;
- GElf_Nhdr nhdr;
- size_t name_offset;
- size_t desc_offset;
- while (offset < note_data->d_size
- && (offset = gelf_getnote (note_data, offset,
- &nhdr, &name_offset, &desc_offset)) > 0)
- {
- /* Do not check NAME for now, help broken Linux kernels. */
- const char *name = note_data->d_buf + name_offset;
- const char *desc = note_data->d_buf + desc_offset;
- GElf_Word regs_offset;
- size_t nregloc;
- const Ebl_Register_Location *reglocs;
- size_t nitems;
- const Ebl_Core_Item *items;
- if (! ebl_core_note (ebl, &nhdr, name,
- &regs_offset, &nregloc, &reglocs, &nitems, &items))
- {
- /* This note may be just not recognized, skip it. */
- continue;
- }
- if (nhdr.n_type != NT_PRPSINFO)
- continue;
- const Ebl_Core_Item *item;
- for (item = items; item < items + nitems; item++)
- if (strcmp (item->name, "pid") == 0)
- break;
- if (item == items + nitems)
- continue;
- uint32_t val32 = read_4ubyte_unaligned_noncvt (desc + item->offset);
- val32 = (elf_getident (core, NULL)[EI_DATA] == ELFDATA2MSB
- ? be32toh (val32) : le32toh (val32));
- pid = (int32_t) val32;
- eu_static_assert (sizeof val32 <= sizeof pid);
- break;
- }
- if (pid == -1)
- {
- /* No valid NT_PRPSINFO recognized in this CORE. */
- err = DWFL_E_BADELF;
- goto fail;
- }
- struct core_arg *core_arg = malloc (sizeof *core_arg);
- if (core_arg == NULL)
- {
- err = DWFL_E_NOMEM;
- goto fail;
- }
- core_arg->core = core;
- core_arg->note_data = note_data;
- core_arg->thread_note_offset = 0;
- core_arg->ebl = ebl;
- if (! INTUSE(dwfl_attach_state) (dwfl, core, pid, &core_thread_callbacks,
- core_arg))
- {
- free (core_arg);
- ebl_closebackend (ebl);
- return -1;
- }
- return pid;
-}
-INTDEF (dwfl_core_file_attach)
diff --git a/src/libdwfl/linux-kernel-modules.c b/src/libdwfl/linux-kernel-modules.c
deleted file mode 100644
index 8f2dab3a..00000000
--- a/src/libdwfl/linux-kernel-modules.c
+++ /dev/null
@@ -1,929 +0,0 @@
-/* Standard libdwfl callbacks for debugging the running Linux kernel.
- Copyright (C) 2005-2011, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* We include this before config.h because it can't handle _FILE_OFFSET_BITS.
- Everything we need here is fine if its declarations just come first. */
-
-#undef _FILE_OFFSET_BITS // Undo the damage caused by AndroidConfig.h.
-#include <fts.h>
-
-#include <config.h>
-
-#include "libdwflP.h"
-#include <inttypes.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/utsname.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-
-#define KERNEL_MODNAME "kernel"
-
-#define MODULEDIRFMT "/lib/modules/%s"
-
-#define KNOTESFILE "/sys/kernel/notes"
-#define MODNOTESFMT "/sys/module/%s/notes"
-#define KSYMSFILE "/proc/kallsyms"
-#define MODULELIST "/proc/modules"
-#define SECADDRDIRFMT "/sys/module/%s/sections/"
-#define MODULE_SECT_NAME_LEN 32 /* Minimum any linux/module.h has had. */
-
-
-#if defined (USE_ZLIB) || defined (USE_BZLIB) || defined (USE_LZMA)
-static const char *vmlinux_suffixes[] =
- {
-#ifdef USE_ZLIB
- ".gz",
-#endif
-#ifdef USE_BZLIB
- ".bz2",
-#endif
-#ifdef USE_LZMA
- ".xz",
-#endif
- };
-#endif
-
-/* Try to open the given file as it is or under the debuginfo directory. */
-static int
-try_kernel_name (Dwfl *dwfl, char **fname, bool try_debug)
-{
- if (*fname == NULL)
- return -1;
-
- /* Don't bother trying *FNAME itself here if the path will cause it to be
- tried because we give its own basename as DEBUGLINK_FILE. */
- int fd = ((((dwfl->callbacks->debuginfo_path
- ? *dwfl->callbacks->debuginfo_path : NULL)
- ?: DEFAULT_DEBUGINFO_PATH)[0] == ':') ? -1
- : TEMP_FAILURE_RETRY (open64 (*fname, O_RDONLY)));
-
- if (fd < 0)
- {
- Dwfl_Module fakemod = { .dwfl = dwfl };
- /* First try the file's unadorned basename as DEBUGLINK_FILE,
- to look for "vmlinux" files. */
- fd = INTUSE(dwfl_standard_find_debuginfo) (&fakemod, NULL, NULL, 0,
- *fname, basename (*fname), 0,
- &fakemod.debug.name);
- if (fd < 0 && try_debug)
- /* Next, let the call use the default of basename + ".debug",
- to look for "vmlinux.debug" files. */
- fd = INTUSE(dwfl_standard_find_debuginfo) (&fakemod, NULL, NULL, 0,
- *fname, NULL, 0,
- &fakemod.debug.name);
- if (fakemod.debug.name != NULL)
- {
- free (*fname);
- *fname = fakemod.debug.name;
- }
- }
-
-#if defined (USE_ZLIB) || defined (USE_BZLIB) || defined (USE_LZMA)
- if (fd < 0)
- for (size_t i = 0;
- i < sizeof vmlinux_suffixes / sizeof vmlinux_suffixes[0];
- ++i)
- {
- char *zname;
- if (asprintf (&zname, "%s%s", *fname, vmlinux_suffixes[i]) > 0)
- {
- fd = TEMP_FAILURE_RETRY (open64 (zname, O_RDONLY));
- if (fd < 0)
- free (zname);
- else
- {
- free (*fname);
- *fname = zname;
- }
- }
- }
-#endif
-
- if (fd < 0)
- {
- free (*fname);
- *fname = NULL;
- }
-
- return fd;
-}
-
-static inline const char *
-kernel_release (void)
-{
- /* Cache the `uname -r` string we'll use. */
- static struct utsname utsname;
- if (utsname.release[0] == '\0' && uname (&utsname) != 0)
- return NULL;
- return utsname.release;
-}
-
-static int
-find_kernel_elf (Dwfl *dwfl, const char *release, char **fname)
-{
- if ((release[0] == '/'
- ? asprintf (fname, "%s/vmlinux", release)
- : asprintf (fname, "/boot/vmlinux-%s", release)) < 0)
- return -1;
-
- int fd = try_kernel_name (dwfl, fname, true);
- if (fd < 0 && release[0] != '/')
- {
- free (*fname);
- if (asprintf (fname, MODULEDIRFMT "/vmlinux", release) < 0)
- return -1;
- fd = try_kernel_name (dwfl, fname, true);
- }
-
- return fd;
-}
-
-static int
-get_release (Dwfl *dwfl, const char **release)
-{
- if (dwfl == NULL)
- return -1;
-
- const char *release_string = release == NULL ? NULL : *release;
- if (release_string == NULL)
- {
- release_string = kernel_release ();
- if (release_string == NULL)
- return errno;
- if (release != NULL)
- *release = release_string;
- }
-
- return 0;
-}
-
-static int
-report_kernel (Dwfl *dwfl, const char **release,
- int (*predicate) (const char *module, const char *file))
-{
- int result = get_release (dwfl, release);
- if (unlikely (result != 0))
- return result;
-
- char *fname;
- int fd = find_kernel_elf (dwfl, *release, &fname);
-
- if (fd < 0)
- result = ((predicate != NULL && !(*predicate) (KERNEL_MODNAME, NULL))
- ? 0 : errno ?: ENOENT);
- else
- {
- bool report = true;
-
- if (predicate != NULL)
- {
- /* Let the predicate decide whether to use this one. */
- int want = (*predicate) (KERNEL_MODNAME, fname);
- if (want < 0)
- result = errno;
- report = want > 0;
- }
-
- if (report)
- {
- /* Note that on some architectures (e.g. x86_64) the vmlinux
- is ET_EXEC, while on others (e.g. ppc64) it is ET_DYN.
- In both cases the phdr p_vaddr load address will be non-zero.
- We want the image to be placed as if it was ET_DYN, so
- pass true for add_p_vaddr which will do the right thing
- (in combination with a zero base) in either case. */
- Dwfl_Module *mod = INTUSE(dwfl_report_elf) (dwfl, KERNEL_MODNAME,
- fname, fd, 0, true);
- if (mod == NULL)
- result = -1;
- else
- /* The kernel is ET_EXEC, but always treat it as relocatable. */
- mod->e_type = ET_DYN;
- }
-
- free (fname);
-
- if (!report || result < 0)
- close (fd);
- }
-
- return result;
-}
-
-/* Look for a kernel debug archive. If we find one, report all its modules.
- If not, return ENOENT. */
-static int
-report_kernel_archive (Dwfl *dwfl, const char **release,
- int (*predicate) (const char *module, const char *file))
-{
- int result = get_release (dwfl, release);
- if (unlikely (result != 0))
- return result;
-
- char *archive;
- int res = (((*release)[0] == '/')
- ? asprintf (&archive, "%s/debug.a", *release)
- : asprintf (&archive, MODULEDIRFMT "/debug.a", *release));
- if (unlikely (res < 0))
- return ENOMEM;
-
- int fd = try_kernel_name (dwfl, &archive, false);
- if (fd < 0)
- result = errno ?: ENOENT;
- else
- {
- /* We have the archive file open! */
- Dwfl_Module *last = __libdwfl_report_offline (dwfl, NULL, archive, fd,
- true, predicate);
- if (unlikely (last == NULL))
- result = -1;
- else
- {
- /* Find the kernel and move it to the head of the list. */
- Dwfl_Module **tailp = &dwfl->modulelist, **prevp = tailp;
- for (Dwfl_Module *m = *prevp; m != NULL; m = *(prevp = &m->next))
- if (!m->gc && m->e_type != ET_REL && !strcmp (m->name, "kernel"))
- {
- *prevp = m->next;
- m->next = *tailp;
- *tailp = m;
- break;
- }
- }
- }
-
- free (archive);
- return result;
-}
-
-static size_t
-check_suffix (const FTSENT *f, size_t namelen)
-{
-#define TRY(sfx) \
- if ((namelen ? f->fts_namelen == namelen + sizeof sfx - 1 \
- : f->fts_namelen >= sizeof sfx) \
- && !memcmp (f->fts_name + f->fts_namelen - (sizeof sfx - 1), \
- sfx, sizeof sfx)) \
- return sizeof sfx - 1
-
- TRY (".ko");
-#if USE_ZLIB
- TRY (".ko.gz");
-#endif
-#if USE_BZLIB
- TRY (".ko.bz2");
-#endif
-#if USE_LZMA
- TRY (".ko.xz");
-#endif
-
- return 0;
-
-#undef TRY
-}
-
-/* Report a kernel and all its modules found on disk, for offline use.
- If RELEASE starts with '/', it names a directory to look in;
- if not, it names a directory to find under /lib/modules/;
- if null, /lib/modules/`uname -r` is used.
- Returns zero on success, -1 if dwfl_report_module failed,
- or an errno code if finding the files on disk failed. */
-int
-dwfl_linux_kernel_report_offline (Dwfl *dwfl, const char *release,
- int (*predicate) (const char *module,
- const char *file))
-{
- int result = report_kernel_archive (dwfl, &release, predicate);
- if (result != ENOENT)
- return result;
-
- /* First report the kernel. */
- result = report_kernel (dwfl, &release, predicate);
- if (result == 0)
- {
- /* Do "find /lib/modules/RELEASE -name *.ko". */
-
- char *modulesdir[] = { NULL, NULL };
- if (release[0] == '/')
- modulesdir[0] = (char *) release;
- else
- {
- if (asprintf (&modulesdir[0], MODULEDIRFMT, release) < 0)
- return errno;
- }
-
- FTS *fts = fts_open (modulesdir, FTS_NOSTAT | FTS_LOGICAL, NULL);
- if (modulesdir[0] == (char *) release)
- modulesdir[0] = NULL;
- if (fts == NULL)
- {
- free (modulesdir[0]);
- return errno;
- }
-
- FTSENT *f;
- while ((f = fts_read (fts)) != NULL)
- {
- /* Skip a "source" subtree, which tends to be large.
- This insane hard-coding of names is what depmod does too. */
- if (f->fts_namelen == sizeof "source" - 1
- && !strcmp (f->fts_name, "source"))
- {
- fts_set (fts, f, FTS_SKIP);
- continue;
- }
-
- switch (f->fts_info)
- {
- case FTS_F:
- case FTS_SL:
- case FTS_NSOK:;
- /* See if this file name matches "*.ko". */
- const size_t suffix = check_suffix (f, 0);
- if (suffix)
- {
- /* We have a .ko file to report. Following the algorithm
- by which the kernel makefiles set KBUILD_MODNAME, we
- replace all ',' or '-' with '_' in the file name and
- call that the module name. Modules could well be
- built using different embedded names than their file
- names. To handle that, we would have to look at the
- __this_module.name contents in the module's text. */
-
- char name[f->fts_namelen - suffix + 1];
- for (size_t i = 0; i < f->fts_namelen - 3U; ++i)
- if (f->fts_name[i] == '-' || f->fts_name[i] == ',')
- name[i] = '_';
- else
- name[i] = f->fts_name[i];
- name[f->fts_namelen - suffix] = '\0';
-
- if (predicate != NULL)
- {
- /* Let the predicate decide whether to use this one. */
- int want = (*predicate) (name, f->fts_path);
- if (want < 0)
- {
- result = -1;
- break;
- }
- if (!want)
- continue;
- }
-
- if (dwfl_report_offline (dwfl, name, f->fts_path, -1) == NULL)
- {
- result = -1;
- break;
- }
- }
- continue;
-
- case FTS_ERR:
- case FTS_DNR:
- case FTS_NS:
- result = f->fts_errno;
- break;
-
- case FTS_SLNONE:
- default:
- continue;
- }
-
- /* We only get here in error cases. */
- break;
- }
- fts_close (fts);
- free (modulesdir[0]);
- }
-
- return result;
-}
-INTDEF (dwfl_linux_kernel_report_offline)
-
-
-/* Grovel around to guess the bounds of the runtime kernel image. */
-static int
-intuit_kernel_bounds (Dwarf_Addr *start, Dwarf_Addr *end, Dwarf_Addr *notes)
-{
- FILE *f = fopen (KSYMSFILE, "r");
- if (f == NULL)
- return errno;
-
- (void) __fsetlocking (f, FSETLOCKING_BYCALLER);
-
- *notes = 0;
-
- char *line = NULL;
- size_t linesz = 0;
- size_t n;
- char *p = NULL;
- const char *type;
-
- inline bool read_address (Dwarf_Addr *addr)
- {
- if ((n = getline (&line, &linesz, f)) < 1 || line[n - 2] == ']')
- return false;
- *addr = strtoull (line, &p, 16);
- p += strspn (p, " \t");
- type = strsep (&p, " \t\n");
- if (type == NULL)
- return false;
- return p != NULL && p != line;
- }
-
- int result;
- do
- result = read_address (start) ? 0 : -1;
- while (result == 0 && strchr ("TtRr", *type) == NULL);
-
- if (result == 0)
- {
- *end = *start;
- while (read_address (end))
- if (*notes == 0 && !strcmp (p, "__start_notes\n"))
- *notes = *end;
-
- Dwarf_Addr round_kernel = sysconf (_SC_PAGE_SIZE);
- *start &= -(Dwarf_Addr) round_kernel;
- *end += round_kernel - 1;
- *end &= -(Dwarf_Addr) round_kernel;
- if (*start >= *end || *end - *start < round_kernel)
- result = -1;
- }
- free (line);
-
- if (result == -1)
- result = ferror_unlocked (f) ? errno : ENOEXEC;
-
- fclose (f);
-
- return result;
-}
-
-
-/* Look for a build ID note in NOTESFILE and associate the ID with MOD. */
-static int
-check_notes (Dwfl_Module *mod, const char *notesfile,
- Dwarf_Addr vaddr, const char *secname)
-{
- int fd = open64 (notesfile, O_RDONLY);
- if (fd < 0)
- return 1;
-
- assert (sizeof (Elf32_Nhdr) == sizeof (GElf_Nhdr));
- assert (sizeof (Elf64_Nhdr) == sizeof (GElf_Nhdr));
- union
- {
- GElf_Nhdr nhdr;
- unsigned char data[8192];
- } buf;
-
- ssize_t n = read (fd, buf.data, sizeof buf);
- close (fd);
-
- if (n <= 0)
- return 1;
-
- unsigned char *p = buf.data;
- while (p < &buf.data[n])
- {
- /* No translation required since we are reading the native kernel. */
- GElf_Nhdr *nhdr = (void *) p;
- p += sizeof *nhdr;
- unsigned char *name = p;
- p += (nhdr->n_namesz + 3) & -4U;
- unsigned char *bits = p;
- p += (nhdr->n_descsz + 3) & -4U;
-
- if (p <= &buf.data[n]
- && nhdr->n_type == NT_GNU_BUILD_ID
- && nhdr->n_namesz == sizeof "GNU"
- && !memcmp (name, "GNU", sizeof "GNU"))
- {
- /* Found it. For a module we must figure out its VADDR now. */
-
- if (secname != NULL
- && (INTUSE(dwfl_linux_kernel_module_section_address)
- (mod, NULL, mod->name, 0, secname, 0, NULL, &vaddr) != 0
- || vaddr == (GElf_Addr) -1l))
- vaddr = 0;
-
- if (vaddr != 0)
- vaddr += bits - buf.data;
- return INTUSE(dwfl_module_report_build_id) (mod, bits,
- nhdr->n_descsz, vaddr);
- }
- }
-
- return 0;
-}
-
-/* Look for a build ID for the kernel. */
-static int
-check_kernel_notes (Dwfl_Module *kernelmod, GElf_Addr vaddr)
-{
- return check_notes (kernelmod, KNOTESFILE, vaddr, NULL) < 0 ? -1 : 0;
-}
-
-/* Look for a build ID for a loaded kernel module. */
-static int
-check_module_notes (Dwfl_Module *mod)
-{
- char *dirs[2] = { NULL, NULL };
- if (asprintf (&dirs[0], MODNOTESFMT, mod->name) < 0)
- return ENOMEM;
-
- FTS *fts = fts_open (dirs, FTS_NOSTAT | FTS_LOGICAL, NULL);
- if (fts == NULL)
- {
- free (dirs[0]);
- return 0;
- }
-
- int result = 0;
- FTSENT *f;
- while ((f = fts_read (fts)) != NULL)
- {
- switch (f->fts_info)
- {
- case FTS_F:
- case FTS_SL:
- case FTS_NSOK:
- result = check_notes (mod, f->fts_accpath, 0, f->fts_name);
- if (result > 0) /* Nothing found. */
- {
- result = 0;
- continue;
- }
- break;
-
- case FTS_ERR:
- case FTS_DNR:
- result = f->fts_errno;
- break;
-
- case FTS_NS:
- case FTS_SLNONE:
- default:
- continue;
- }
-
- /* We only get here when finished or in error cases. */
- break;
- }
- fts_close (fts);
- free (dirs[0]);
-
- return result;
-}
-
-int
-dwfl_linux_kernel_report_kernel (Dwfl *dwfl)
-{
- Dwarf_Addr start;
- Dwarf_Addr end;
- inline Dwfl_Module *report (void)
- {
- return INTUSE(dwfl_report_module) (dwfl, KERNEL_MODNAME, start, end);
- }
-
- /* This is a bit of a kludge. If we already reported the kernel,
- don't bother figuring it out again--it never changes. */
- for (Dwfl_Module *m = dwfl->modulelist; m != NULL; m = m->next)
- if (!strcmp (m->name, KERNEL_MODNAME))
- {
- start = m->low_addr;
- end = m->high_addr;
- return report () == NULL ? -1 : 0;
- }
-
- /* Try to figure out the bounds of the kernel image without
- looking for any vmlinux file. */
- Dwarf_Addr notes;
- /* The compiler cannot deduce that if intuit_kernel_bounds returns
- zero NOTES will be initialized. Fake the initialization. */
- asm ("" : "=m" (notes));
- int result = intuit_kernel_bounds (&start, &end, &notes);
- if (result == 0)
- {
- Dwfl_Module *mod = report ();
- return unlikely (mod == NULL) ? -1 : check_kernel_notes (mod, notes);
- }
- if (result != ENOENT)
- return result;
-
- /* Find the ELF file for the running kernel and dwfl_report_elf it. */
- return report_kernel (dwfl, NULL, NULL);
-}
-INTDEF (dwfl_linux_kernel_report_kernel)
-
-
-/* Dwfl_Callbacks.find_elf for the running Linux kernel and its modules. */
-
-int
-dwfl_linux_kernel_find_elf (Dwfl_Module *mod,
- void **userdata __attribute__ ((unused)),
- const char *module_name,
- Dwarf_Addr base __attribute__ ((unused)),
- char **file_name, Elf **elfp)
-{
- if (mod->build_id_len > 0)
- {
- int fd = INTUSE(dwfl_build_id_find_elf) (mod, NULL, NULL, 0,
- file_name, elfp);
- if (fd >= 0 || mod->main.elf != NULL || errno != 0)
- return fd;
- }
-
- const char *release = kernel_release ();
- if (release == NULL)
- return errno;
-
- if (!strcmp (module_name, KERNEL_MODNAME))
- return find_kernel_elf (mod->dwfl, release, file_name);
-
- /* Do "find /lib/modules/`uname -r` -name MODULE_NAME.ko". */
-
- char *modulesdir[] = { NULL, NULL };
- if (asprintf (&modulesdir[0], MODULEDIRFMT, release) < 0)
- return -1;
-
- FTS *fts = fts_open (modulesdir, FTS_NOSTAT | FTS_LOGICAL, NULL);
- if (fts == NULL)
- {
- free (modulesdir[0]);
- return -1;
- }
-
- size_t namelen = strlen (module_name);
-
- /* This is a kludge. There is no actual necessary relationship between
- the name of the .ko file installed and the module name the kernel
- knows it by when it's loaded. The kernel's only idea of the module
- name comes from the name embedded in the object's magic
- .gnu.linkonce.this_module section.
-
- In practice, these module names match the .ko file names except for
- some using '_' and some using '-'. So our cheap kludge is to look for
- two files when either a '_' or '-' appears in a module name, one using
- only '_' and one only using '-'. */
-
- char alternate_name[namelen + 1];
- inline bool subst_name (char from, char to)
- {
- const char *n = memchr (module_name, from, namelen);
- if (n == NULL)
- return false;
- char *a = mempcpy (alternate_name, module_name, n - module_name);
- *a++ = to;
- ++n;
- const char *p;
- while ((p = memchr (n, from, namelen - (n - module_name))) != NULL)
- {
- a = mempcpy (a, n, p - n);
- *a++ = to;
- n = p + 1;
- }
- memcpy (a, n, namelen - (n - module_name) + 1);
- return true;
- }
- if (!subst_name ('-', '_') && !subst_name ('_', '-'))
- alternate_name[0] = '\0';
-
- FTSENT *f;
- int error = ENOENT;
- while ((f = fts_read (fts)) != NULL)
- {
- /* Skip a "source" subtree, which tends to be large.
- This insane hard-coding of names is what depmod does too. */
- if (f->fts_namelen == sizeof "source" - 1
- && !strcmp (f->fts_name, "source"))
- {
- fts_set (fts, f, FTS_SKIP);
- continue;
- }
-
- error = ENOENT;
- switch (f->fts_info)
- {
- case FTS_F:
- case FTS_SL:
- case FTS_NSOK:
- /* See if this file name is "MODULE_NAME.ko". */
- if (check_suffix (f, namelen)
- && (!memcmp (f->fts_name, module_name, namelen)
- || !memcmp (f->fts_name, alternate_name, namelen)))
- {
- int fd = open64 (f->fts_accpath, O_RDONLY);
- *file_name = strdup (f->fts_path);
- fts_close (fts);
- free (modulesdir[0]);
- if (fd < 0)
- free (*file_name);
- else if (*file_name == NULL)
- {
- close (fd);
- fd = -1;
- }
- return fd;
- }
- break;
-
- case FTS_ERR:
- case FTS_DNR:
- case FTS_NS:
- error = f->fts_errno;
- break;
-
- case FTS_SLNONE:
- default:
- break;
- }
- }
-
- fts_close (fts);
- free (modulesdir[0]);
- errno = error;
- return -1;
-}
-INTDEF (dwfl_linux_kernel_find_elf)
-
-
-/* Dwfl_Callbacks.section_address for kernel modules in the running Linux.
- We read the information from /sys/module directly. */
-
-int
-dwfl_linux_kernel_module_section_address
-(Dwfl_Module *mod __attribute__ ((unused)),
- void **userdata __attribute__ ((unused)),
- const char *modname, Dwarf_Addr base __attribute__ ((unused)),
- const char *secname, Elf32_Word shndx __attribute__ ((unused)),
- const GElf_Shdr *shdr __attribute__ ((unused)),
- Dwarf_Addr *addr)
-{
- char *sysfile;
- if (asprintf (&sysfile, SECADDRDIRFMT "%s", modname, secname) < 0)
- return DWARF_CB_ABORT;
-
- FILE *f = fopen (sysfile, "r");
- free (sysfile);
-
- if (f == NULL)
- {
- if (errno == ENOENT)
- {
- /* The .modinfo and .data.percpu sections are never kept
- loaded in the kernel. If the kernel was compiled without
- CONFIG_MODULE_UNLOAD, the .exit.* sections are not
- actually loaded at all.
-
- Setting *ADDR to -1 tells the caller this section is
- actually absent from memory. */
-
- if (!strcmp (secname, ".modinfo")
- || !strcmp (secname, ".data.percpu")
- || !strncmp (secname, ".exit", 5))
- {
- *addr = (Dwarf_Addr) -1l;
- return DWARF_CB_OK;
- }
-
- /* The goofy PPC64 module_frob_arch_sections function tweaks
- the section names as a way to control other kernel code's
- behavior, and this cruft leaks out into the /sys information.
- The file name for ".init*" may actually look like "_init*". */
-
- const bool is_init = !strncmp (secname, ".init", 5);
- if (is_init)
- {
- if (asprintf (&sysfile, SECADDRDIRFMT "_%s",
- modname, &secname[1]) < 0)
- return ENOMEM;
- f = fopen (sysfile, "r");
- free (sysfile);
- if (f != NULL)
- goto ok;
- }
-
- /* The kernel truncates section names to MODULE_SECT_NAME_LEN - 1.
- In case that size increases in the future, look for longer
- truncated names first. */
- size_t namelen = strlen (secname);
- if (namelen >= MODULE_SECT_NAME_LEN)
- {
- int len = asprintf (&sysfile, SECADDRDIRFMT "%s",
- modname, secname);
- if (len < 0)
- return DWARF_CB_ABORT;
- char *end = sysfile + len;
- do
- {
- *--end = '\0';
- f = fopen (sysfile, "r");
- if (is_init && f == NULL && errno == ENOENT)
- {
- sysfile[len - namelen] = '_';
- f = fopen (sysfile, "r");
- sysfile[len - namelen] = '.';
- }
- }
- while (f == NULL && errno == ENOENT
- && end - &sysfile[len - namelen] >= MODULE_SECT_NAME_LEN);
- free (sysfile);
-
- if (f != NULL)
- goto ok;
- }
- }
-
- return DWARF_CB_ABORT;
- }
-
- ok:
- (void) __fsetlocking (f, FSETLOCKING_BYCALLER);
-
- int result = (fscanf (f, "%" PRIx64 "\n", addr) == 1 ? 0
- : ferror_unlocked (f) ? errno : ENOEXEC);
- fclose (f);
-
- if (result == 0)
- return DWARF_CB_OK;
-
- errno = result;
- return DWARF_CB_ABORT;
-}
-INTDEF (dwfl_linux_kernel_module_section_address)
-
-int
-dwfl_linux_kernel_report_modules (Dwfl *dwfl)
-{
- FILE *f = fopen (MODULELIST, "r");
- if (f == NULL)
- return errno;
-
- (void) __fsetlocking (f, FSETLOCKING_BYCALLER);
-
- int result = 0;
- Dwarf_Addr modaddr;
- unsigned long int modsz;
- char modname[128];
- char *line = NULL;
- size_t linesz = 0;
- /* We can't just use fscanf here because it's not easy to distinguish \n
- from other whitespace so as to take the optional word following the
- address but always stop at the end of the line. */
- while (getline (&line, &linesz, f) > 0
- && sscanf (line, "%128s %lu %*s %*s %*s %" PRIx64 " %*s\n",
- modname, &modsz, &modaddr) == 3)
- {
- Dwfl_Module *mod = INTUSE(dwfl_report_module) (dwfl, modname,
- modaddr, modaddr + modsz);
- if (mod == NULL)
- {
- result = -1;
- break;
- }
-
- result = check_module_notes (mod);
- }
- free (line);
-
- if (result == 0)
- result = ferror_unlocked (f) ? errno : feof_unlocked (f) ? 0 : ENOEXEC;
-
- fclose (f);
-
- return result;
-}
-INTDEF (dwfl_linux_kernel_report_modules)
diff --git a/src/libdwfl/linux-pid-attach.c b/src/libdwfl/linux-pid-attach.c
deleted file mode 100644
index ae717028..00000000
--- a/src/libdwfl/linux-pid-attach.c
+++ /dev/null
@@ -1,475 +0,0 @@
-/* Get Dwarf Frame state for target live PID process.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <sys/ptrace.h>
-#include <sys/wait.h>
-#include <dirent.h>
-#include <sys/syscall.h>
-#include <unistd.h>
-
-#ifndef MAX
-# define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
-#ifdef __linux__
-
-static bool
-linux_proc_pid_is_stopped (pid_t pid)
-{
- char buffer[64];
- FILE *procfile;
- bool retval, have_state;
-
- snprintf (buffer, sizeof (buffer), "/proc/%ld/status", (long) pid);
- procfile = fopen (buffer, "r");
- if (procfile == NULL)
- return false;
-
- have_state = false;
- while (fgets (buffer, sizeof (buffer), procfile) != NULL)
- if (strncmp (buffer, "State:", 6) == 0)
- {
- have_state = true;
- break;
- }
- retval = (have_state && strstr (buffer, "T (stopped)") != NULL);
- fclose (procfile);
- return retval;
-}
-
-bool
-internal_function
-__libdwfl_ptrace_attach (pid_t tid, bool *tid_was_stoppedp)
-{
- if (ptrace (PTRACE_ATTACH, tid, NULL, NULL) != 0)
- {
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
- }
- *tid_was_stoppedp = linux_proc_pid_is_stopped (tid);
- if (*tid_was_stoppedp)
- {
- /* Make sure there is a SIGSTOP signal pending even when the process is
- already State: T (stopped). Older kernels might fail to generate
- a SIGSTOP notification in that case in response to our PTRACE_ATTACH
- above. Which would make the waitpid below wait forever. So emulate
- it. Since there can only be one SIGSTOP notification pending this is
- safe. See also gdb/linux-nat.c linux_nat_post_attach_wait. */
- syscall (__NR_tkill, tid, SIGSTOP);
- ptrace (PTRACE_CONT, tid, NULL, NULL);
- }
- for (;;)
- {
- int status;
- if (waitpid (tid, &status, __WALL) != tid || !WIFSTOPPED (status))
- {
- int saved_errno = errno;
- ptrace (PTRACE_DETACH, tid, NULL, NULL);
- errno = saved_errno;
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
- }
- if (WSTOPSIG (status) == SIGSTOP)
- break;
- if (ptrace (PTRACE_CONT, tid, NULL,
- (void *) (uintptr_t) WSTOPSIG (status)) != 0)
- {
- int saved_errno = errno;
- ptrace (PTRACE_DETACH, tid, NULL, NULL);
- errno = saved_errno;
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
- }
- }
- return true;
-}
-
-static bool
-pid_memory_read (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Word *result, void *arg)
-{
- struct __libdwfl_pid_arg *pid_arg = arg;
- pid_t tid = pid_arg->tid_attached;
- assert (tid > 0);
- Dwfl_Process *process = dwfl->process;
- if (ebl_get_elfclass (process->ebl) == ELFCLASS64)
- {
-#if SIZEOF_LONG == 8
- errno = 0;
- *result = ptrace (PTRACE_PEEKDATA, tid, (void *) (uintptr_t) addr, NULL);
- return errno == 0;
-#else /* SIZEOF_LONG != 8 */
- /* This should not happen. */
- return false;
-#endif /* SIZEOF_LONG != 8 */
- }
-#if SIZEOF_LONG == 8
- /* We do not care about reads unaliged to 4 bytes boundary.
- But 0x...ffc read of 8 bytes could overrun a page. */
- bool lowered = (addr & 4) != 0;
- if (lowered)
- addr -= 4;
-#endif /* SIZEOF_LONG == 8 */
- errno = 0;
- *result = ptrace (PTRACE_PEEKDATA, tid, (void *) (uintptr_t) addr, NULL);
- if (errno != 0)
- return false;
-#if SIZEOF_LONG == 8
-# if BYTE_ORDER == BIG_ENDIAN
- if (! lowered)
- *result >>= 32;
-# else
- if (lowered)
- *result >>= 32;
-# endif
-#endif /* SIZEOF_LONG == 8 */
- *result &= 0xffffffff;
- return true;
-}
-
-static pid_t
-pid_next_thread (Dwfl *dwfl __attribute__ ((unused)), void *dwfl_arg,
- void **thread_argp)
-{
- struct __libdwfl_pid_arg *pid_arg = dwfl_arg;
- struct dirent *dirent;
- /* Start fresh on first traversal. */
- if (*thread_argp == NULL)
- rewinddir (pid_arg->dir);
- do
- {
- errno = 0;
- dirent = readdir (pid_arg->dir);
- if (dirent == NULL)
- {
- if (errno != 0)
- {
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return -1;
- }
- return 0;
- }
- }
- while (strcmp (dirent->d_name, ".") == 0
- || strcmp (dirent->d_name, "..") == 0);
- char *end;
- errno = 0;
- long tidl = strtol (dirent->d_name, &end, 10);
- if (errno != 0)
- {
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return -1;
- }
- pid_t tid = tidl;
- if (tidl <= 0 || (end && *end) || tid != tidl)
- {
- __libdwfl_seterrno (DWFL_E_PARSE_PROC);
- return -1;
- }
- *thread_argp = dwfl_arg;
- return tid;
-}
-
-/* Just checks that the thread id exists. */
-static bool
-pid_getthread (Dwfl *dwfl __attribute__ ((unused)), pid_t tid,
- void *dwfl_arg, void **thread_argp)
-{
- *thread_argp = dwfl_arg;
- if (kill (tid, 0) < 0)
- {
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
- }
- return true;
-}
-
-/* Implement the ebl_set_initial_registers_tid setfunc callback. */
-
-static bool
-pid_thread_state_registers_cb (int firstreg, unsigned nregs,
- const Dwarf_Word *regs, void *arg)
-{
- Dwfl_Thread *thread = (Dwfl_Thread *) arg;
- if (firstreg < 0)
- {
- assert (firstreg == -1);
- assert (nregs == 1);
- INTUSE(dwfl_thread_state_register_pc) (thread, *regs);
- return true;
- }
- assert (nregs > 0);
- return INTUSE(dwfl_thread_state_registers) (thread, firstreg, nregs, regs);
-}
-
-static bool
-pid_set_initial_registers (Dwfl_Thread *thread, void *thread_arg)
-{
- struct __libdwfl_pid_arg *pid_arg = thread_arg;
- assert (pid_arg->tid_attached == 0);
- pid_t tid = INTUSE(dwfl_thread_tid) (thread);
- if (! pid_arg->assume_ptrace_stopped
- && ! __libdwfl_ptrace_attach (tid, &pid_arg->tid_was_stopped))
- return false;
- pid_arg->tid_attached = tid;
- Dwfl_Process *process = thread->process;
- Ebl *ebl = process->ebl;
- return ebl_set_initial_registers_tid (ebl, tid,
- pid_thread_state_registers_cb, thread);
-}
-
-static void
-pid_detach (Dwfl *dwfl __attribute__ ((unused)), void *dwfl_arg)
-{
- struct __libdwfl_pid_arg *pid_arg = dwfl_arg;
- closedir (pid_arg->dir);
- free (pid_arg);
-}
-
-void
-internal_function
-__libdwfl_ptrace_detach (pid_t tid, bool tid_was_stopped)
-{
- /* This handling is needed only on older Linux kernels such as
- 2.6.32-358.23.2.el6.ppc64. Later kernels such as
- 3.11.7-200.fc19.x86_64 remember the T (stopped) state
- themselves and no longer need to pass SIGSTOP during
- PTRACE_DETACH. */
- ptrace (PTRACE_DETACH, tid, NULL,
- (void *) (intptr_t) (tid_was_stopped ? SIGSTOP : 0));
-}
-
-static void
-pid_thread_detach (Dwfl_Thread *thread, void *thread_arg)
-{
- struct __libdwfl_pid_arg *pid_arg = thread_arg;
- pid_t tid = INTUSE(dwfl_thread_tid) (thread);
- assert (pid_arg->tid_attached == tid);
- pid_arg->tid_attached = 0;
- if (! pid_arg->assume_ptrace_stopped)
- __libdwfl_ptrace_detach (tid, pid_arg->tid_was_stopped);
-}
-
-static const Dwfl_Thread_Callbacks pid_thread_callbacks =
-{
- pid_next_thread,
- pid_getthread,
- pid_memory_read,
- pid_set_initial_registers,
- pid_detach,
- pid_thread_detach,
-};
-
-int
-dwfl_linux_proc_attach (Dwfl *dwfl, pid_t pid, bool assume_ptrace_stopped)
-{
- char buffer[36];
- FILE *procfile;
- int err = 0; /* The errno to return and set for dwfl->attcherr. */
-
- /* Make sure to report the actual PID (thread group leader) to
- dwfl_attach_state. */
- snprintf (buffer, sizeof (buffer), "/proc/%ld/status", (long) pid);
- procfile = fopen (buffer, "r");
- if (procfile == NULL)
- {
- err = errno;
- fail:
- if (dwfl->process == NULL && dwfl->attacherr == DWFL_E_NOERROR)
- {
- errno = err;
- dwfl->attacherr = __libdwfl_canon_error (DWFL_E_ERRNO);
- }
- return err;
- }
-
- char *line = NULL;
- size_t linelen = 0;
- while (getline (&line, &linelen, procfile) >= 0)
- if (strncmp (line, "Tgid:", 5) == 0)
- {
- errno = 0;
- char *endptr;
- long val = strtol (&line[5], &endptr, 10);
- if ((errno == ERANGE && val == LONG_MAX)
- || *endptr != '\n' || val < 0 || val != (pid_t) val)
- pid = 0;
- else
- pid = (pid_t) val;
- break;
- }
- free (line);
- fclose (procfile);
-
- if (pid == 0)
- {
- err = ESRCH;
- goto fail;
- }
-
- char dirname[64];
- int i = snprintf (dirname, sizeof (dirname), "/proc/%ld/task", (long) pid);
- assert (i > 0 && i < (ssize_t) sizeof (dirname) - 1);
- DIR *dir = opendir (dirname);
- if (dir == NULL)
- {
- err = errno;
- goto fail;
- }
- struct __libdwfl_pid_arg *pid_arg = malloc (sizeof *pid_arg);
- if (pid_arg == NULL)
- {
- closedir (dir);
- err = ENOMEM;
- goto fail;
- }
- pid_arg->dir = dir;
- pid_arg->tid_attached = 0;
- pid_arg->assume_ptrace_stopped = assume_ptrace_stopped;
- if (! INTUSE(dwfl_attach_state) (dwfl, NULL, pid, &pid_thread_callbacks,
- pid_arg))
- {
- closedir (dir);
- free (pid_arg);
- return -1;
- }
- return 0;
-}
-INTDEF (dwfl_linux_proc_attach)
-
-struct __libdwfl_pid_arg *
-internal_function
-__libdwfl_get_pid_arg (Dwfl *dwfl)
-{
- if (dwfl != NULL && dwfl->process != NULL
- && dwfl->process->callbacks == &pid_thread_callbacks)
- return (struct __libdwfl_pid_arg *) dwfl->process->callbacks_arg;
-
- return NULL;
-}
-
-#else /* __linux__ */
-
-static pid_t
-pid_next_thread (Dwfl *dwfl __attribute__ ((unused)),
- void *dwfl_arg __attribute__ ((unused)),
- void **thread_argp __attribute__ ((unused)))
-{
- errno = ENOSYS;
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return -1;
-}
-
-static bool
-pid_getthread (Dwfl *dwfl __attribute__ ((unused)),
- pid_t tid __attribute__ ((unused)),
- void *dwfl_arg __attribute__ ((unused)),
- void **thread_argp __attribute__ ((unused)))
-{
- errno = ENOSYS;
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
-}
-
-bool
-internal_function
-__libdwfl_ptrace_attach (pid_t tid __attribute__ ((unused)),
- bool *tid_was_stoppedp __attribute__ ((unused)))
-{
- errno = ENOSYS;
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
-}
-
-static bool
-pid_memory_read (Dwfl *dwfl __attribute__ ((unused)),
- Dwarf_Addr addr __attribute__ ((unused)),
- Dwarf_Word *result __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
- errno = ENOSYS;
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
-}
-
-static bool
-pid_set_initial_registers (Dwfl_Thread *thread __attribute__ ((unused)),
- void *thread_arg __attribute__ ((unused)))
-{
- errno = ENOSYS;
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return false;
-}
-
-static void
-pid_detach (Dwfl *dwfl __attribute__ ((unused)),
- void *dwfl_arg __attribute__ ((unused)))
-{
-}
-
-void
-internal_function
-__libdwfl_ptrace_detach (pid_t tid __attribute__ ((unused)),
- bool tid_was_stopped __attribute__ ((unused)))
-{
-}
-
-static void
-pid_thread_detach (Dwfl_Thread *thread __attribute__ ((unused)),
- void *thread_arg __attribute__ ((unused)))
-{
-}
-
-static const Dwfl_Thread_Callbacks pid_thread_callbacks =
-{
- pid_next_thread,
- pid_getthread,
- pid_memory_read,
- pid_set_initial_registers,
- pid_detach,
- pid_thread_detach,
-};
-
-int
-dwfl_linux_proc_attach (Dwfl *dwfl __attribute__ ((unused)),
- pid_t pid __attribute__ ((unused)),
- bool assume_ptrace_stopped __attribute__ ((unused)))
-{
- return ENOSYS;
-}
-INTDEF (dwfl_linux_proc_attach)
-
-struct __libdwfl_pid_arg *
-internal_function
-__libdwfl_get_pid_arg (Dwfl *dwfl __attribute__ ((unused)))
-{
- return NULL;
-}
-
-#endif /* ! __linux __ */
-
diff --git a/src/libdwfl/linux-proc-maps.c b/src/libdwfl/linux-proc-maps.c
deleted file mode 100644
index d0858342..00000000
--- a/src/libdwfl/linux-proc-maps.c
+++ /dev/null
@@ -1,422 +0,0 @@
-/* Standard libdwfl callbacks for debugging a live Linux process.
- Copyright (C) 2005-2010, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <inttypes.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <stdbool.h>
-#include <string.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <assert.h>
-#include <endian.h>
-#include "system.h"
-
-
-#define PROCMAPSFMT "/proc/%d/maps"
-#define PROCMEMFMT "/proc/%d/mem"
-#define PROCAUXVFMT "/proc/%d/auxv"
-#define PROCEXEFMT "/proc/%d/exe"
-
-
-/* Return ELFCLASS64 or ELFCLASS32 for the main ELF executable. Return
- ELFCLASSNONE for an error. */
-
-static unsigned char
-get_pid_class (pid_t pid)
-{
- char *fname;
- if (asprintf (&fname, PROCEXEFMT, pid) < 0)
- return ELFCLASSNONE;
-
- int fd = open64 (fname, O_RDONLY);
- free (fname);
- if (fd < 0)
- return ELFCLASSNONE;
-
- unsigned char buf[EI_CLASS + 1];
- ssize_t nread = pread_retry (fd, &buf, sizeof buf, 0);
- close (fd);
- if (nread != sizeof buf || buf[EI_MAG0] != ELFMAG0
- || buf[EI_MAG1] != ELFMAG1 || buf[EI_MAG2] != ELFMAG2
- || buf[EI_MAG3] != ELFMAG3
- || (buf[EI_CLASS] != ELFCLASS64 && buf[EI_CLASS] != ELFCLASS32))
- return ELFCLASSNONE;
-
- return buf[EI_CLASS];
-}
-
-/* Search /proc/PID/auxv for the AT_SYSINFO_EHDR tag.
-
- It would be easiest to call get_pid_class and parse everything according to
- the 32-bit or 64-bit class. But this would bring the overhead of syscalls
- to open and read the "/proc/%d/exe" file.
-
- Therefore this function tries to parse the "/proc/%d/auxv" content both
- ways, as if it were the 32-bit format and also if it were the 64-bit format.
- Only if it gives some valid data in both cases get_pid_class gets called.
- In most cases only one of the format bit sizes gives valid data and the
- get_pid_class call overhead can be saved. */
-
-static int
-grovel_auxv (pid_t pid, Dwfl *dwfl, GElf_Addr *sysinfo_ehdr)
-{
- char *fname;
- if (asprintf (&fname, PROCAUXVFMT, pid) < 0)
- return ENOMEM;
-
- int fd = open64 (fname, O_RDONLY);
- free (fname);
- if (fd < 0)
- return errno == ENOENT ? 0 : errno;
-
- GElf_Addr sysinfo_ehdr64 = 0;
- GElf_Addr sysinfo_ehdr32 = 0;
- GElf_Addr segment_align64 = dwfl->segment_align;
- GElf_Addr segment_align32 = dwfl->segment_align;
- off_t offset = 0;
- ssize_t nread;
- union
- {
- Elf64_auxv_t a64[64];
- Elf32_auxv_t a32[128];
- } d;
- do
- {
- eu_static_assert (sizeof d.a64 == sizeof d.a32);
- nread = pread_retry (fd, d.a64, sizeof d.a64, offset);
- if (nread < 0)
- {
- int ret = errno;
- close (fd);
- return ret;
- }
- for (size_t a32i = 0; a32i < nread / sizeof d.a32[0]; a32i++)
- {
- const Elf32_auxv_t *a32 = d.a32 + a32i;
- switch (a32->a_type)
- {
- case AT_SYSINFO_EHDR:
- sysinfo_ehdr32 = a32->a_un.a_val;
- break;
- case AT_PAGESZ:
- segment_align32 = a32->a_un.a_val;
- break;
- }
- }
- for (size_t a64i = 0; a64i < nread / sizeof d.a64[0]; a64i++)
- {
- const Elf64_auxv_t *a64 = d.a64 + a64i;
- switch (a64->a_type)
- {
- case AT_SYSINFO_EHDR:
- sysinfo_ehdr64 = a64->a_un.a_val;
- break;
- case AT_PAGESZ:
- segment_align64 = a64->a_un.a_val;
- break;
- }
- }
- offset += nread;
- }
- while (nread == sizeof d.a64);
-
- close (fd);
-
- bool valid64 = sysinfo_ehdr64 != 0 || segment_align64 != dwfl->segment_align;
- bool valid32 = sysinfo_ehdr32 != 0 || segment_align32 != dwfl->segment_align;
-
- unsigned char pid_class = ELFCLASSNONE;
- if (valid64 && valid32)
- pid_class = get_pid_class (pid);
-
- if (pid_class == ELFCLASS64 || (valid64 && ! valid32))
- {
- *sysinfo_ehdr = sysinfo_ehdr64;
- dwfl->segment_align = segment_align64;
- return 0;
- }
- if (pid_class == ELFCLASS32 || (! valid64 && valid32))
- {
- *sysinfo_ehdr = sysinfo_ehdr32;
- dwfl->segment_align = segment_align32;
- return 0;
- }
- return ENOEXEC;
-}
-
-static int
-proc_maps_report (Dwfl *dwfl, FILE *f, GElf_Addr sysinfo_ehdr, pid_t pid)
-{
- unsigned int last_dmajor = -1, last_dminor = -1;
- uint64_t last_ino = -1;
- char *last_file = NULL;
- Dwarf_Addr low = 0, high = 0;
-
- inline bool report (void)
- {
- if (last_file != NULL)
- {
- Dwfl_Module *mod = INTUSE(dwfl_report_module) (dwfl, last_file,
- low, high);
- free (last_file);
- last_file = NULL;
- if (unlikely (mod == NULL))
- return true;
- }
- return false;
- }
-
- char *line = NULL;
- size_t linesz;
- ssize_t len;
- while ((len = getline (&line, &linesz, f)) > 0)
- {
- if (line[len - 1] == '\n')
- line[len - 1] = '\0';
-
- Dwarf_Addr start, end, offset;
- unsigned int dmajor, dminor;
- uint64_t ino;
- int nread = -1;
- if (sscanf (line, "%" PRIx64 "-%" PRIx64 " %*s %" PRIx64
- " %x:%x %" PRIi64 " %n",
- &start, &end, &offset, &dmajor, &dminor, &ino, &nread) < 6
- || nread <= 0)
- {
- free (line);
- return ENOEXEC;
- }
-
- /* If this is the special mapping AT_SYSINFO_EHDR pointed us at,
- report the last one and then this special one. */
- if (start == sysinfo_ehdr && start != 0)
- {
- if (report ())
- {
- bad_report:
- free (line);
- return -1;
- }
-
- low = start;
- high = end;
- if (asprintf (&last_file, "[vdso: %d]", (int) pid) < 0
- || report ())
- goto bad_report;
- }
-
- char *file = line + nread + strspn (line + nread, " \t");
- if (file[0] != '/' || (ino == 0 && dmajor == 0 && dminor == 0))
- /* This line doesn't indicate a file mapping. */
- continue;
-
- if (last_file != NULL
- && ino == last_ino && dmajor == last_dmajor && dminor == last_dminor)
- {
- /* This is another portion of the same file's mapping. */
- if (strcmp (last_file, file) != 0)
- goto bad_report;
- high = end;
- }
- else
- {
- /* This is a different file mapping. Report the last one. */
- if (report ())
- goto bad_report;
- low = start;
- high = end;
- last_file = strdup (file);
- last_ino = ino;
- last_dmajor = dmajor;
- last_dminor = dminor;
- }
- }
- free (line);
-
- int result = ferror_unlocked (f) ? errno : feof_unlocked (f) ? 0 : ENOEXEC;
-
- /* Report the final one. */
- bool lose = report ();
-
- return result != 0 ? result : lose ? -1 : 0;
-}
-
-int
-dwfl_linux_proc_maps_report (Dwfl *dwfl, FILE *f)
-{
- return proc_maps_report (dwfl, f, 0, 0);
-}
-INTDEF (dwfl_linux_proc_maps_report)
-
-int
-dwfl_linux_proc_report (Dwfl *dwfl, pid_t pid)
-{
- if (dwfl == NULL)
- return -1;
-
- /* We'll notice the AT_SYSINFO_EHDR address specially when we hit it. */
- GElf_Addr sysinfo_ehdr = 0;
- int result = grovel_auxv (pid, dwfl, &sysinfo_ehdr);
- if (result != 0)
- return result;
-
- char *fname;
- if (asprintf (&fname, PROCMAPSFMT, pid) < 0)
- return ENOMEM;
-
- FILE *f = fopen (fname, "r");
- free (fname);
- if (f == NULL)
- return errno;
-
- (void) __fsetlocking (f, FSETLOCKING_BYCALLER);
-
- result = proc_maps_report (dwfl, f, sysinfo_ehdr, pid);
-
- fclose (f);
-
- return result;
-}
-INTDEF (dwfl_linux_proc_report)
-
-static ssize_t
-read_proc_memory (void *arg, void *data, GElf_Addr address,
- size_t minread, size_t maxread)
-{
- const int fd = *(const int *) arg;
- ssize_t nread = pread64 (fd, data, maxread, (off64_t) address);
- /* Some kernels don't actually let us do this read, ignore those errors. */
- if (nread < 0 && (errno == EINVAL || errno == EPERM))
- return 0;
- if (nread > 0 && (size_t) nread < minread)
- nread = 0;
- return nread;
-}
-
-extern Elf *elf_from_remote_memory (GElf_Addr ehdr_vma,
- GElf_Xword pagesize,
- GElf_Addr *loadbasep,
- ssize_t (*read_memory) (void *arg,
- void *data,
- GElf_Addr address,
- size_t minread,
- size_t maxread),
- void *arg);
-
-
-/* Dwfl_Callbacks.find_elf */
-
-int
-dwfl_linux_proc_find_elf (Dwfl_Module *mod __attribute__ ((unused)),
- void **userdata __attribute__ ((unused)),
- const char *module_name, Dwarf_Addr base,
- char **file_name, Elf **elfp)
-{
- int pid = -1;
- if (module_name[0] == '/')
- {
- /* When this callback is used together with dwfl_linux_proc_report
- then we might see mappings of special character devices. Make
- sure we only open and return regular files. Special devices
- might hang on open or read. (deleted) files are super special.
- The image might come from memory if we are attached. */
- struct stat sb;
- if (stat (module_name, &sb) == -1 || (sb.st_mode & S_IFMT) != S_IFREG)
- {
- if (strcmp (strrchr (module_name, ' ') ?: "", " (deleted)") == 0)
- pid = INTUSE(dwfl_pid) (mod->dwfl);
- else
- return -1;
- }
-
- if (pid == -1)
- {
- int fd = open64 (module_name, O_RDONLY);
- if (fd >= 0)
- {
- *file_name = strdup (module_name);
- if (*file_name == NULL)
- {
- close (fd);
- return ENOMEM;
- }
- }
- return fd;
- }
- }
-
- if (pid != -1 || sscanf (module_name, "[vdso: %d]", &pid) == 1)
- {
- /* Special case for in-memory ELF image. */
-
- bool detach = false;
- bool tid_was_stopped = false;
- struct __libdwfl_pid_arg *pid_arg = __libdwfl_get_pid_arg (mod->dwfl);
- if (pid_arg != NULL && ! pid_arg->assume_ptrace_stopped)
- {
- /* If any thread is already attached we are fine. Read
- through that thread. It doesn't have to be the main
- thread pid. */
- pid_t tid = pid_arg->tid_attached;
- if (tid != 0)
- pid = tid;
- else
- detach = __libdwfl_ptrace_attach (pid, &tid_was_stopped);
- }
-
- char *fname;
- if (asprintf (&fname, PROCMEMFMT, pid) < 0)
- goto detach;
-
- int fd = open64 (fname, O_RDONLY);
- free (fname);
- if (fd < 0)
- goto detach;
-
- *elfp = elf_from_remote_memory (base, getpagesize (), NULL,
- &read_proc_memory, &fd);
-
- close (fd);
-
- *file_name = NULL;
-
- detach:
- if (detach)
- __libdwfl_ptrace_detach (pid, tid_was_stopped);
- return -1;
- }
-
- return -1;
-}
-INTDEF (dwfl_linux_proc_find_elf)
diff --git a/src/libdwfl/lzma.c b/src/libdwfl/lzma.c
deleted file mode 100644
index 3edfdc22..00000000
--- a/src/libdwfl/lzma.c
+++ /dev/null
@@ -1,4 +0,0 @@
-/* liblzma is pretty close to zlib and bzlib. */
-
-#define LZMA
-#include "gzip.c"
diff --git a/src/libdwfl/offline.c b/src/libdwfl/offline.c
deleted file mode 100644
index 982ceab0..00000000
--- a/src/libdwfl/offline.c
+++ /dev/null
@@ -1,311 +0,0 @@
-/* Recover relocatibility for addresses computed from debug information.
- Copyright (C) 2005-2009, 2012 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-#include <fcntl.h>
-#include <unistd.h>
-
-/* Since dwfl_report_elf lays out the sections already, this will only be
- called when the section headers of the debuginfo file are being
- consulted instead, or for the section placed at 0. With binutils
- strip-to-debug, the symbol table is in the debuginfo file and relocation
- looks there. */
-int
-dwfl_offline_section_address (Dwfl_Module *mod,
- void **userdata __attribute__ ((unused)),
- const char *modname __attribute__ ((unused)),
- Dwarf_Addr base __attribute__ ((unused)),
- const char *secname __attribute__ ((unused)),
- Elf32_Word shndx,
- const GElf_Shdr *shdr __attribute__ ((unused)),
- Dwarf_Addr *addr)
-{
- assert (mod->e_type == ET_REL);
- assert (shdr->sh_addr == 0);
- assert (shdr->sh_flags & SHF_ALLOC);
- assert (shndx != 0);
-
- if (mod->debug.elf == NULL)
- /* We are only here because sh_addr is zero even though layout is complete.
- The first section in the first file under -e is placed at 0. */
- return 0;
-
- /* The section numbers might not match between the two files.
- The best we can rely on is the order of SHF_ALLOC sections. */
-
- Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx);
- Elf_Scn *scn = NULL;
- uint_fast32_t skip_alloc = 0;
- while ((scn = elf_nextscn (mod->debug.elf, scn)) != ourscn)
- {
- assert (scn != NULL);
- GElf_Shdr shdr_mem;
- GElf_Shdr *sh = gelf_getshdr (scn, &shdr_mem);
- if (unlikely (sh == NULL))
- return -1;
- if (sh->sh_flags & SHF_ALLOC)
- ++skip_alloc;
- }
-
- scn = NULL;
- while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *main_shdr = gelf_getshdr (scn, &shdr_mem);
- if (unlikely (main_shdr == NULL))
- return -1;
- if ((main_shdr->sh_flags & SHF_ALLOC) && skip_alloc-- == 0)
- {
- assert (main_shdr->sh_flags == shdr->sh_flags);
- *addr = main_shdr->sh_addr;
- return 0;
- }
- }
-
- /* This should never happen. */
- return -1;
-}
-INTDEF (dwfl_offline_section_address)
-
-/* Forward declarations. */
-static Dwfl_Module *process_elf (Dwfl *dwfl, const char *name,
- const char *file_name, int fd, Elf *elf);
-static Dwfl_Module *process_archive (Dwfl *dwfl, const char *name,
- const char *file_name, int fd, Elf *elf,
- int (*predicate) (const char *module,
- const char *file));
-
-/* Report one module for an ELF file, or many for an archive.
- Always consumes ELF and FD. */
-static Dwfl_Module *
-process_file (Dwfl *dwfl, const char *name, const char *file_name, int fd,
- Elf *elf, int (*predicate) (const char *module,
- const char *file))
-{
- switch (elf_kind (elf))
- {
- default:
- case ELF_K_NONE:
- __libdwfl_seterrno (elf == NULL ? DWFL_E_LIBELF : DWFL_E_BADELF);
- return NULL;
-
- case ELF_K_ELF:
- return process_elf (dwfl, name, file_name, fd, elf);
-
- case ELF_K_AR:
- return process_archive (dwfl, name, file_name, fd, elf, predicate);
- }
-}
-
-/* Report the open ELF file as a module. Always consumes ELF and FD. */
-static Dwfl_Module *
-process_elf (Dwfl *dwfl, const char *name, const char *file_name, int fd,
- Elf *elf)
-{
- Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf,
- dwfl->offline_next_address, true,
- false);
- if (mod != NULL)
- {
- /* If this is an ET_EXEC file with fixed addresses, the address range
- it consumed may or may not intersect with the arbitrary range we
- will use for relocatable modules. Make sure we always use a free
- range for the offline allocations. If this module did use
- offline_next_address, it may have rounded it up for the module's
- alignment requirements. */
- if ((dwfl->offline_next_address >= mod->low_addr
- || mod->low_addr - dwfl->offline_next_address < OFFLINE_REDZONE)
- && dwfl->offline_next_address < mod->high_addr + OFFLINE_REDZONE)
- dwfl->offline_next_address = mod->high_addr + OFFLINE_REDZONE;
-
- /* Don't keep the file descriptor around. */
- if (mod->main.fd != -1 && elf_cntl (mod->main.elf, ELF_C_FDREAD) == 0)
- {
- close (mod->main.fd);
- mod->main.fd = -1;
- }
- }
-
- return mod;
-}
-
-/* Always consumes MEMBER. Returns elf_next result on success.
- For errors returns ELF_C_NULL with *MOD set to null. */
-static Elf_Cmd
-process_archive_member (Dwfl *dwfl, const char *name, const char *file_name,
- int (*predicate) (const char *module, const char *file),
- int fd, Elf *member, Dwfl_Module **mod)
-{
- const Elf_Arhdr *h = elf_getarhdr (member);
- if (unlikely (h == NULL))
- {
- __libdwfl_seterrno (DWFL_E_LIBELF);
- fail:
- elf_end (member);
- *mod = NULL;
- return ELF_C_NULL;
- }
-
- if (!strcmp (h->ar_name, "/") || !strcmp (h->ar_name, "//")
- || !strcmp (h->ar_name, "/SYM64/"))
- {
- skip:;
- /* Skip this and go to the next. */
- Elf_Cmd result = elf_next (member);
- elf_end (member);
- return result;
- }
-
- char *member_name;
- if (unlikely (asprintf (&member_name, "%s(%s)", file_name, h->ar_name) < 0))
- {
- nomem:
- __libdwfl_seterrno (DWFL_E_NOMEM);
- elf_end (member);
- *mod = NULL;
- return ELF_C_NULL;
- }
-
- char *module_name = NULL;
- if (name == NULL || name[0] == '\0')
- name = h->ar_name;
- else if (unlikely (asprintf (&module_name, "%s:%s", name, h->ar_name) < 0))
- {
- free (member_name);
- goto nomem;
- }
- else
- name = module_name;
-
- if (predicate != NULL)
- {
- /* Let the predicate decide whether to use this one. */
- int want = (*predicate) (name, member_name);
- if (want <= 0)
- {
- free (member_name);
- free (module_name);
- if (unlikely (want < 0))
- {
- __libdwfl_seterrno (DWFL_E_CB);
- goto fail;
- }
- goto skip;
- }
- }
-
- /* We let __libdwfl_report_elf cache the fd in mod->main.fd,
- though it's the same fd for all the members.
- On module teardown we will close it only on the last Elf reference. */
- *mod = process_file (dwfl, name, member_name, fd, member, predicate);
- free (member_name);
- free (module_name);
-
- if (*mod == NULL) /* process_file called elf_end. */
- return ELF_C_NULL;
-
- /* Advance the archive-reading offset for the next iteration. */
- return elf_next (member);
-}
-
-/* Report each member of the archive as its own module. */
-static Dwfl_Module *
-process_archive (Dwfl *dwfl, const char *name, const char *file_name, int fd,
- Elf *archive,
- int (*predicate) (const char *module, const char *file))
-
-{
- Dwfl_Module *mod = NULL;
- Elf *member = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, archive);
- if (unlikely (member == NULL)) /* Empty archive. */
- {
- __libdwfl_seterrno (DWFL_E_BADELF);
- return NULL;
- }
-
- while (process_archive_member (dwfl, name, file_name, predicate,
- fd, member, &mod) != ELF_C_NULL)
- member = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, archive);
-
- /* We can drop the archive Elf handle even if we're still using members
- in live modules. When the last module's elf_end on a member returns
- zero, that module will close FD. If no modules survived the predicate,
- we are all done with the file right here. */
- if (mod != NULL /* If no modules, caller will clean up. */
- && elf_end (archive) == 0)
- close (fd);
-
- return mod;
-}
-
-Dwfl_Module *
-internal_function
-__libdwfl_report_offline (Dwfl *dwfl, const char *name,
- const char *file_name, int fd, bool closefd,
- int (*predicate) (const char *module,
- const char *file))
-{
- Elf *elf;
- Dwfl_Error error = __libdw_open_file (&fd, &elf, closefd, true);
- if (error != DWFL_E_NOERROR)
- {
- __libdwfl_seterrno (error);
- return NULL;
- }
- Dwfl_Module *mod = process_file (dwfl, name, file_name, fd, elf, predicate);
- if (mod == NULL)
- {
- elf_end (elf);
- if (closefd)
- close (fd);
- }
- return mod;
-}
-
-Dwfl_Module *
-dwfl_report_offline (Dwfl *dwfl, const char *name,
- const char *file_name, int fd)
-{
- if (dwfl == NULL)
- return NULL;
-
- bool closefd = false;
- if (fd < 0)
- {
- closefd = true;
- fd = open64 (file_name, O_RDONLY);
- if (fd < 0)
- {
- __libdwfl_seterrno (DWFL_E_ERRNO);
- return NULL;
- }
- }
-
- return __libdwfl_report_offline (dwfl, name, file_name, fd, closefd, NULL);
-}
-INTDEF (dwfl_report_offline)
diff --git a/src/libdwfl/open.c b/src/libdwfl/open.c
deleted file mode 100644
index 40aac388..00000000
--- a/src/libdwfl/open.c
+++ /dev/null
@@ -1,182 +0,0 @@
-/* Decompression support for libdwfl: zlib (gzip) and/or bzlib (bzip2).
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "../libelf/libelfP.h"
-#undef _
-#include "libdwflP.h"
-
-#include <unistd.h>
-
-#if !USE_ZLIB
-# define __libdw_gunzip(...) DWFL_E_BADELF
-#endif
-
-#if !USE_BZLIB
-# define __libdw_bunzip2(...) DWFL_E_BADELF
-#endif
-
-#if !USE_LZMA
-# define __libdw_unlzma(...) DWFL_E_BADELF
-#endif
-
-/* Consumes and replaces *ELF only on success. */
-static Dwfl_Error
-decompress (int fd __attribute__ ((unused)), Elf **elf)
-{
- Dwfl_Error error = DWFL_E_BADELF;
- void *buffer = NULL;
- size_t size = 0;
-
-#if USE_ZLIB || USE_BZLIB || USE_LZMA
- const off64_t offset = (*elf)->start_offset;
- void *const mapped = ((*elf)->map_address == NULL ? NULL
- : (*elf)->map_address + offset);
- const size_t mapped_size = (*elf)->maximum_size;
- if (mapped_size == 0)
- return error;
-
- error = __libdw_gunzip (fd, offset, mapped, mapped_size, &buffer, &size);
- if (error == DWFL_E_BADELF)
- error = __libdw_bunzip2 (fd, offset, mapped, mapped_size, &buffer, &size);
- if (error == DWFL_E_BADELF)
- error = __libdw_unlzma (fd, offset, mapped, mapped_size, &buffer, &size);
-#endif
-
- if (error == DWFL_E_NOERROR)
- {
- if (unlikely (size == 0))
- {
- error = DWFL_E_BADELF;
- free (buffer);
- }
- else
- {
- Elf *memelf = elf_memory (buffer, size);
- if (memelf == NULL)
- {
- error = DWFL_E_LIBELF;
- free (buffer);
- }
- else
- {
- memelf->flags |= ELF_F_MALLOCED;
- elf_end (*elf);
- *elf = memelf;
- }
- }
- }
- else
- free (buffer);
-
- return error;
-}
-
-static Dwfl_Error
-what_kind (int fd, Elf **elfp, Elf_Kind *kind, bool *close_fd)
-{
- Dwfl_Error error = DWFL_E_NOERROR;
- *kind = elf_kind (*elfp);
- if (unlikely (*kind == ELF_K_NONE))
- {
- if (unlikely (*elfp == NULL))
- error = DWFL_E_LIBELF;
- else
- {
- error = decompress (fd, elfp);
- if (error == DWFL_E_NOERROR)
- {
- *close_fd = true;
- *kind = elf_kind (*elfp);
- }
- }
- }
- return error;
-}
-
-Dwfl_Error internal_function
-__libdw_open_file (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok)
-{
- bool close_fd = false;
-
- Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL);
-
- Elf_Kind kind;
- Dwfl_Error error = what_kind (*fdp, &elf, &kind, &close_fd);
- if (error == DWFL_E_BADELF)
- {
- /* It's not an ELF file or a compressed file.
- See if it's an image with a header preceding the real file. */
-
- off64_t offset = elf->start_offset;
- error = __libdw_image_header (*fdp, &offset,
- (elf->map_address == NULL ? NULL
- : elf->map_address + offset),
- elf->maximum_size);
- if (error == DWFL_E_NOERROR)
- {
- /* Pure evil. libelf needs some better interfaces. */
- elf->kind = ELF_K_AR;
- elf->state.ar.elf_ar_hdr.ar_name = "libdwfl is faking you out";
- elf->state.ar.elf_ar_hdr.ar_size = elf->maximum_size - offset;
- elf->state.ar.offset = offset - sizeof (struct ar_hdr);
- Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf);
- elf->kind = ELF_K_NONE;
- if (unlikely (subelf == NULL))
- error = DWFL_E_LIBELF;
- else
- {
- subelf->parent = NULL;
- subelf->flags |= elf->flags & (ELF_F_MMAPPED | ELF_F_MALLOCED);
- elf->flags &= ~(ELF_F_MMAPPED | ELF_F_MALLOCED);
- elf_end (elf);
- elf = subelf;
- error = what_kind (*fdp, &elf, &kind, &close_fd);
- }
- }
- }
-
- if (error == DWFL_E_NOERROR
- && kind != ELF_K_ELF
- && !(archive_ok && kind == ELF_K_AR))
- error = DWFL_E_BADELF;
-
- if (error != DWFL_E_NOERROR)
- {
- elf_end (elf);
- elf = NULL;
- }
-
- if (error == DWFL_E_NOERROR ? close_fd : close_on_fail)
- {
- close (*fdp);
- *fdp = -1;
- }
-
- *elfp = elf;
- return error;
-}
diff --git a/src/libdwfl/relocate.c b/src/libdwfl/relocate.c
deleted file mode 100644
index e102e1e4..00000000
--- a/src/libdwfl/relocate.c
+++ /dev/null
@@ -1,683 +0,0 @@
-/* Relocate debug information.
- Copyright (C) 2005-2011, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-typedef uint8_t GElf_Byte;
-
-/* Adjust *VALUE to add the load address of the SHNDX section.
- We update the section header in place to cache the result. */
-
-Dwfl_Error
-internal_function
-__libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, size_t *shstrndx,
- Elf32_Word shndx, GElf_Addr *value)
-{
- /* No adjustment needed for section zero, it is never loaded.
- Handle it first, just in case the ELF file has strange section
- zero flags set. */
- if (shndx == 0)
- return DWFL_E_NOERROR;
-
- Elf_Scn *refscn = elf_getscn (elf, shndx);
- GElf_Shdr refshdr_mem, *refshdr = gelf_getshdr (refscn, &refshdr_mem);
- if (refshdr == NULL)
- return DWFL_E_LIBELF;
-
- if (refshdr->sh_addr == 0 && (refshdr->sh_flags & SHF_ALLOC))
- {
- /* This is a loaded section. Find its actual
- address and update the section header. */
-
- if (*shstrndx == SHN_UNDEF
- && unlikely (elf_getshdrstrndx (elf, shstrndx) < 0))
- return DWFL_E_LIBELF;
-
- const char *name = elf_strptr (elf, *shstrndx, refshdr->sh_name);
- if (unlikely (name == NULL))
- return DWFL_E_LIBELF;
-
- if ((*mod->dwfl->callbacks->section_address) (MODCB_ARGS (mod),
- name, shndx, refshdr,
- &refshdr->sh_addr))
- return CBFAIL;
-
- if (refshdr->sh_addr == (Dwarf_Addr) -1l)
- /* The callback indicated this section wasn't really loaded but we
- don't really care. */
- refshdr->sh_addr = 0; /* Make no adjustment below. */
-
- /* Update the in-core file's section header to show the final
- load address (or unloadedness). This serves as a cache,
- so we won't get here again for the same section. */
- if (likely (refshdr->sh_addr != 0)
- && unlikely (! gelf_update_shdr (refscn, refshdr)))
- return DWFL_E_LIBELF;
- }
-
- if (refshdr->sh_flags & SHF_ALLOC)
- /* Apply the adjustment. */
- *value += dwfl_adjusted_address (mod, refshdr->sh_addr);
-
- return DWFL_E_NOERROR;
-}
-
-
-/* Cache used by relocate_getsym. */
-struct reloc_symtab_cache
-{
- Elf *symelf;
- Elf_Data *symdata;
- Elf_Data *symxndxdata;
- Elf_Data *symstrdata;
- size_t symshstrndx;
- size_t strtabndx;
-};
-#define RELOC_SYMTAB_CACHE(cache) \
- struct reloc_symtab_cache cache = \
- { NULL, NULL, NULL, NULL, SHN_UNDEF, SHN_UNDEF }
-
-/* This is just doing dwfl_module_getsym, except that we must always use
- the symbol table in RELOCATED itself when it has one, not MOD->symfile. */
-static Dwfl_Error
-relocate_getsym (Dwfl_Module *mod,
- Elf *relocated, struct reloc_symtab_cache *cache,
- int symndx, GElf_Sym *sym, GElf_Word *shndx)
-{
- if (cache->symdata == NULL)
- {
- if (mod->symfile == NULL || mod->symfile->elf != relocated)
- {
- /* We have to look up the symbol table in the file we are
- relocating, if it has its own. These reloc sections refer to
- the symbol table in this file, and a symbol table in the main
- file might not match. However, some tools did produce ET_REL
- .debug files with relocs but no symtab of their own. */
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (relocated, scn)) != NULL)
- {
- GElf_Shdr shdr_mem, *shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr != NULL)
- switch (shdr->sh_type)
- {
- default:
- continue;
- case SHT_SYMTAB:
- cache->symelf = relocated;
- cache->symdata = elf_getdata (scn, NULL);
- cache->strtabndx = shdr->sh_link;
- if (unlikely (cache->symdata == NULL))
- return DWFL_E_LIBELF;
- break;
- case SHT_SYMTAB_SHNDX:
- cache->symxndxdata = elf_getdata (scn, NULL);
- if (unlikely (cache->symxndxdata == NULL))
- return DWFL_E_LIBELF;
- break;
- }
- if (cache->symdata != NULL && cache->symxndxdata != NULL)
- break;
- }
- }
- if (cache->symdata == NULL)
- {
- /* We might not have looked for a symbol table file yet,
- when coming from __libdwfl_relocate_section. */
- if (unlikely (mod->symfile == NULL)
- && unlikely (INTUSE(dwfl_module_getsymtab) (mod) < 0))
- return dwfl_errno ();
-
- /* The symbol table we have already cached is the one from
- the file being relocated, so it's what we need. Or else
- this is an ET_REL .debug file with no .symtab of its own;
- the symbols refer to the section indices in the main file. */
- cache->symelf = mod->symfile->elf;
- cache->symdata = mod->symdata;
- cache->symxndxdata = mod->symxndxdata;
- cache->symstrdata = mod->symstrdata;
- }
- }
-
- if (unlikely (gelf_getsymshndx (cache->symdata, cache->symxndxdata,
- symndx, sym, shndx) == NULL))
- return DWFL_E_LIBELF;
-
- if (sym->st_shndx != SHN_XINDEX)
- *shndx = sym->st_shndx;
-
- switch (sym->st_shndx)
- {
- case SHN_ABS:
- case SHN_UNDEF:
- return DWFL_E_NOERROR;
-
- case SHN_COMMON:
- sym->st_value = 0; /* Value is size, not helpful. */
- return DWFL_E_NOERROR;
- }
-
- return __libdwfl_relocate_value (mod, cache->symelf, &cache->symshstrndx,
- *shndx, &sym->st_value);
-}
-
-/* Handle an undefined symbol. We really only support ET_REL for Linux
- kernel modules, and offline archives. The behavior of the Linux module
- loader is very simple and easy to mimic. It only matches magically
- exported symbols, and we match any defined symbols. But we get the same
- answer except when the module's symbols are undefined and would prevent
- it from being loaded. */
-static Dwfl_Error
-resolve_symbol (Dwfl_Module *referer, struct reloc_symtab_cache *symtab,
- GElf_Sym *sym, GElf_Word shndx)
-{
- /* First we need its name. */
- if (sym->st_name != 0)
- {
- if (symtab->symstrdata == NULL)
- {
- /* Cache the strtab for this symtab. */
- assert (referer->symfile == NULL
- || referer->symfile->elf != symtab->symelf);
- symtab->symstrdata = elf_getdata (elf_getscn (symtab->symelf,
- symtab->strtabndx),
- NULL);
- if (unlikely (symtab->symstrdata == NULL
- || symtab->symstrdata->d_buf == NULL))
- return DWFL_E_LIBELF;
- }
- if (unlikely (sym->st_name >= symtab->symstrdata->d_size))
- return DWFL_E_BADSTROFF;
-
- const char *name = symtab->symstrdata->d_buf;
- name += sym->st_name;
-
- for (Dwfl_Module *m = referer->dwfl->modulelist; m != NULL; m = m->next)
- if (m != referer)
- {
- /* Get this module's symtab.
- If we got a fresh error reading the table, report it.
- If we just have no symbols in this module, no harm done. */
- if (m->symdata == NULL
- && m->symerr == DWFL_E_NOERROR
- && INTUSE(dwfl_module_getsymtab) (m) < 0
- && m->symerr != DWFL_E_NO_SYMTAB)
- return m->symerr;
-
- for (size_t ndx = 1; ndx < m->syments; ++ndx)
- {
- sym = gelf_getsymshndx (m->symdata, m->symxndxdata,
- ndx, sym, &shndx);
- if (unlikely (sym == NULL))
- return DWFL_E_LIBELF;
- if (sym->st_shndx != SHN_XINDEX)
- shndx = sym->st_shndx;
-
- /* We are looking for a defined global symbol with a name. */
- if (shndx == SHN_UNDEF || shndx == SHN_COMMON
- || GELF_ST_BIND (sym->st_info) == STB_LOCAL
- || sym->st_name == 0)
- continue;
-
- /* Get this candidate symbol's name. */
- if (unlikely (sym->st_name >= m->symstrdata->d_size))
- return DWFL_E_BADSTROFF;
- const char *n = m->symstrdata->d_buf;
- n += sym->st_name;
-
- /* Does the name match? */
- if (strcmp (name, n))
- continue;
-
- /* We found it! */
- if (shndx == SHN_ABS) /* XXX maybe should apply bias? */
- return DWFL_E_NOERROR;
-
- if (m->e_type != ET_REL)
- {
- sym->st_value = dwfl_adjusted_st_value (m, m->symfile->elf,
- sym->st_value);
- return DWFL_E_NOERROR;
- }
-
- /* In an ET_REL file, the symbol table values are relative
- to the section, not to the module's load base. */
- size_t symshstrndx = SHN_UNDEF;
- return __libdwfl_relocate_value (m, m->symfile->elf,
- &symshstrndx,
- shndx, &sym->st_value);
- }
- }
- }
-
- return DWFL_E_RELUNDEF;
-}
-
-static Dwfl_Error
-relocate_section (Dwfl_Module *mod, Elf *relocated, const GElf_Ehdr *ehdr,
- size_t shstrndx, struct reloc_symtab_cache *reloc_symtab,
- Elf_Scn *scn, GElf_Shdr *shdr,
- Elf_Scn *tscn, bool debugscn, bool partial)
-{
- /* First, fetch the name of the section these relocations apply to. */
- GElf_Shdr tshdr_mem;
- GElf_Shdr *tshdr = gelf_getshdr (tscn, &tshdr_mem);
- const char *tname = elf_strptr (relocated, shstrndx, tshdr->sh_name);
- if (tname == NULL)
- return DWFL_E_LIBELF;
-
- if (unlikely (tshdr->sh_type == SHT_NOBITS) || unlikely (tshdr->sh_size == 0))
- /* No contents to relocate. */
- return DWFL_E_NOERROR;
-
- if (debugscn && ! ebl_debugscn_p (mod->ebl, tname))
- /* This relocation section is not for a debugging section.
- Nothing to do here. */
- return DWFL_E_NOERROR;
-
- /* Fetch the section data that needs the relocations applied. */
- Elf_Data *tdata = elf_rawdata (tscn, NULL);
- if (tdata == NULL)
- return DWFL_E_LIBELF;
-
- /* If either the section that needs the relocation applied, or the
- section that the relocations come from overlap one of the ehdrs,
- shdrs or phdrs data then we refuse to do the relocations. It
- isn't illegal for ELF section data to overlap the header data,
- but updating the (relocation) data might corrupt the in-memory
- libelf headers causing strange corruptions or errors. */
- size_t ehsize = gelf_fsize (relocated, ELF_T_EHDR, 1, EV_CURRENT);
- if (unlikely (shdr->sh_offset < ehsize
- || tshdr->sh_offset < ehsize))
- return DWFL_E_BADELF;
-
- GElf_Off shdrs_start = ehdr->e_shoff;
- size_t shnums;
- if (elf_getshdrnum (relocated, &shnums) < 0)
- return DWFL_E_LIBELF;
- /* Overflows will have been checked by elf_getshdrnum/get|rawdata. */
- size_t shentsize = gelf_fsize (relocated, ELF_T_SHDR, 1, EV_CURRENT);
- GElf_Off shdrs_end = shdrs_start + shnums * shentsize;
- if (unlikely ((shdrs_start < shdr->sh_offset + shdr->sh_size
- && shdr->sh_offset < shdrs_end)
- || (shdrs_start < tshdr->sh_offset + tshdr->sh_size
- && tshdr->sh_offset < shdrs_end)))
- return DWFL_E_BADELF;
-
- GElf_Off phdrs_start = ehdr->e_phoff;
- size_t phnums;
- if (elf_getphdrnum (relocated, &phnums) < 0)
- return DWFL_E_LIBELF;
- if (phdrs_start != 0 && phnums != 0)
- {
- /* Overflows will have been checked by elf_getphdrnum/get|rawdata. */
- size_t phentsize = gelf_fsize (relocated, ELF_T_PHDR, 1, EV_CURRENT);
- GElf_Off phdrs_end = phdrs_start + phnums * phentsize;
- if (unlikely ((phdrs_start < shdr->sh_offset + shdr->sh_size
- && shdr->sh_offset < phdrs_end)
- || (phdrs_start < tshdr->sh_offset + tshdr->sh_size
- && tshdr->sh_offset < phdrs_end)))
- return DWFL_E_BADELF;
- }
-
- /* Apply one relocation. Returns true for any invalid data. */
- Dwfl_Error relocate (GElf_Addr offset, const GElf_Sxword *addend,
- int rtype, int symndx)
- {
- /* First see if this is a reloc we can handle.
- If we are skipping it, don't bother resolving the symbol. */
-
- if (unlikely (rtype == 0))
- /* In some odd situations, the linker can leave R_*_NONE relocs
- behind. This is probably bogus ld -r behavior, but the only
- cases it's known to appear in are harmless: DWARF data
- referring to addresses in a section that has been discarded.
- So we just pretend it's OK without further relocation. */
- return DWFL_E_NOERROR;
-
- Elf_Type type = ebl_reloc_simple_type (mod->ebl, rtype);
- if (unlikely (type == ELF_T_NUM))
- return DWFL_E_BADRELTYPE;
-
- /* First, resolve the symbol to an absolute value. */
- GElf_Addr value;
-
- if (symndx == STN_UNDEF)
- /* When strip removes a section symbol referring to a
- section moved into the debuginfo file, it replaces
- that symbol index in relocs with STN_UNDEF. We
- don't actually need the symbol, because those relocs
- are always references relative to the nonallocated
- debugging sections, which start at zero. */
- value = 0;
- else
- {
- GElf_Sym sym;
- GElf_Word shndx;
- Dwfl_Error error = relocate_getsym (mod, relocated, reloc_symtab,
- symndx, &sym, &shndx);
- if (unlikely (error != DWFL_E_NOERROR))
- return error;
-
- if (shndx == SHN_UNDEF || shndx == SHN_COMMON)
- {
- /* Maybe we can figure it out anyway. */
- error = resolve_symbol (mod, reloc_symtab, &sym, shndx);
- if (error != DWFL_E_NOERROR
- && !(error == DWFL_E_RELUNDEF && shndx == SHN_COMMON))
- return error;
- }
-
- value = sym.st_value;
- }
-
- /* These are the types we can relocate. */
-#define TYPES DO_TYPE (BYTE, Byte); DO_TYPE (HALF, Half); \
- DO_TYPE (WORD, Word); DO_TYPE (SWORD, Sword); \
- DO_TYPE (XWORD, Xword); DO_TYPE (SXWORD, Sxword)
- size_t size;
- switch (type)
- {
-#define DO_TYPE(NAME, Name) \
- case ELF_T_##NAME: \
- size = sizeof (GElf_##Name); \
- break
- TYPES;
-#undef DO_TYPE
- default:
- return DWFL_E_BADRELTYPE;
- }
-
- if (offset > tdata->d_size || tdata->d_size - offset < size)
- return DWFL_E_BADRELOFF;
-
-#define DO_TYPE(NAME, Name) GElf_##Name Name;
- union { TYPES; } tmpbuf;
-#undef DO_TYPE
- Elf_Data tmpdata =
- {
- .d_type = type,
- .d_buf = &tmpbuf,
- .d_size = size,
- .d_version = EV_CURRENT,
- };
- Elf_Data rdata =
- {
- .d_type = type,
- .d_buf = tdata->d_buf + offset,
- .d_size = size,
- .d_version = EV_CURRENT,
- };
-
- /* XXX check for overflow? */
- if (addend)
- {
- /* For the addend form, we have the value already. */
- value += *addend;
- switch (type)
- {
-#define DO_TYPE(NAME, Name) \
- case ELF_T_##NAME: \
- tmpbuf.Name = value; \
- break
- TYPES;
-#undef DO_TYPE
- default:
- abort ();
- }
- }
- else
- {
- /* Extract the original value and apply the reloc. */
- Elf_Data *d = gelf_xlatetom (relocated, &tmpdata, &rdata,
- ehdr->e_ident[EI_DATA]);
- if (d == NULL)
- return DWFL_E_LIBELF;
- assert (d == &tmpdata);
- switch (type)
- {
-#define DO_TYPE(NAME, Name) \
- case ELF_T_##NAME: \
- tmpbuf.Name += (GElf_##Name) value; \
- break
- TYPES;
-#undef DO_TYPE
- default:
- abort ();
- }
- }
-
- /* Now convert the relocated datum back to the target
- format. This will write into rdata.d_buf, which
- points into the raw section data being relocated. */
- Elf_Data *s = gelf_xlatetof (relocated, &rdata, &tmpdata,
- ehdr->e_ident[EI_DATA]);
- if (s == NULL)
- return DWFL_E_LIBELF;
- assert (s == &rdata);
-
- /* We have applied this relocation! */
- return DWFL_E_NOERROR;
- }
-
- /* Fetch the relocation section and apply each reloc in it. */
- Elf_Data *reldata = elf_getdata (scn, NULL);
- if (reldata == NULL)
- return DWFL_E_LIBELF;
-
- Dwfl_Error result = DWFL_E_NOERROR;
- bool first_badreltype = true;
- inline void check_badreltype (void)
- {
- if (first_badreltype)
- {
- first_badreltype = false;
- if (ebl_get_elfmachine (mod->ebl) == EM_NONE)
- /* This might be because ebl_openbackend failed to find
- any libebl_CPU.so library. Diagnose that clearly. */
- result = DWFL_E_UNKNOWN_MACHINE;
- }
- }
-
- size_t sh_entsize
- = gelf_fsize (relocated, shdr->sh_type == SHT_REL ? ELF_T_REL : ELF_T_RELA,
- 1, EV_CURRENT);
- size_t nrels = shdr->sh_size / sh_entsize;
- size_t complete = 0;
- if (shdr->sh_type == SHT_REL)
- for (size_t relidx = 0; !result && relidx < nrels; ++relidx)
- {
- GElf_Rel rel_mem, *r = gelf_getrel (reldata, relidx, &rel_mem);
- if (r == NULL)
- return DWFL_E_LIBELF;
- result = relocate (r->r_offset, NULL,
- GELF_R_TYPE (r->r_info),
- GELF_R_SYM (r->r_info));
- check_badreltype ();
- if (partial)
- switch (result)
- {
- case DWFL_E_NOERROR:
- /* We applied the relocation. Elide it. */
- memset (&rel_mem, 0, sizeof rel_mem);
- gelf_update_rel (reldata, relidx, &rel_mem);
- ++complete;
- break;
- case DWFL_E_BADRELTYPE:
- case DWFL_E_RELUNDEF:
- /* We couldn't handle this relocation. Skip it. */
- result = DWFL_E_NOERROR;
- break;
- default:
- break;
- }
- }
- else
- for (size_t relidx = 0; !result && relidx < nrels; ++relidx)
- {
- GElf_Rela rela_mem, *r = gelf_getrela (reldata, relidx,
- &rela_mem);
- if (r == NULL)
- return DWFL_E_LIBELF;
- result = relocate (r->r_offset, &r->r_addend,
- GELF_R_TYPE (r->r_info),
- GELF_R_SYM (r->r_info));
- check_badreltype ();
- if (partial)
- switch (result)
- {
- case DWFL_E_NOERROR:
- /* We applied the relocation. Elide it. */
- memset (&rela_mem, 0, sizeof rela_mem);
- gelf_update_rela (reldata, relidx, &rela_mem);
- ++complete;
- break;
- case DWFL_E_BADRELTYPE:
- case DWFL_E_RELUNDEF:
- /* We couldn't handle this relocation. Skip it. */
- result = DWFL_E_NOERROR;
- break;
- default:
- break;
- }
- }
-
- if (likely (result == DWFL_E_NOERROR))
- {
- if (!partial || complete == nrels)
- /* Mark this relocation section as being empty now that we have
- done its work. This affects unstrip -R, so e.g. it emits an
- empty .rela.debug_info along with a .debug_info that has
- already been fully relocated. */
- nrels = 0;
- else if (complete != 0)
- {
- /* We handled some of the relocations but not all.
- We've zeroed out the ones we processed.
- Now remove them from the section. */
-
- size_t next = 0;
- if (shdr->sh_type == SHT_REL)
- for (size_t relidx = 0; relidx < nrels; ++relidx)
- {
- GElf_Rel rel_mem;
- GElf_Rel *r = gelf_getrel (reldata, relidx, &rel_mem);
- if (r->r_info != 0 || r->r_offset != 0)
- {
- if (next != relidx)
- gelf_update_rel (reldata, next, r);
- ++next;
- }
- }
- else
- for (size_t relidx = 0; relidx < nrels; ++relidx)
- {
- GElf_Rela rela_mem;
- GElf_Rela *r = gelf_getrela (reldata, relidx, &rela_mem);
- if (r->r_info != 0 || r->r_offset != 0 || r->r_addend != 0)
- {
- if (next != relidx)
- gelf_update_rela (reldata, next, r);
- ++next;
- }
- }
- nrels = next;
- }
-
- shdr->sh_size = reldata->d_size = nrels * sh_entsize;
- gelf_update_shdr (scn, shdr);
- }
-
- return result;
-}
-
-Dwfl_Error
-internal_function
-__libdwfl_relocate (Dwfl_Module *mod, Elf *debugfile, bool debug)
-{
- assert (mod->e_type == ET_REL);
-
- GElf_Ehdr ehdr_mem;
- const GElf_Ehdr *ehdr = gelf_getehdr (debugfile, &ehdr_mem);
- if (ehdr == NULL)
- return DWFL_E_LIBELF;
-
- size_t d_shstrndx;
- if (elf_getshdrstrndx (debugfile, &d_shstrndx) < 0)
- return DWFL_E_LIBELF;
-
- RELOC_SYMTAB_CACHE (reloc_symtab);
-
- /* Look at each section in the debuginfo file, and process the
- relocation sections for debugging sections. */
- Dwfl_Error result = DWFL_E_NOERROR;
- Elf_Scn *scn = NULL;
- while (result == DWFL_E_NOERROR
- && (scn = elf_nextscn (debugfile, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
-
- if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)
- && shdr->sh_size != 0)
- {
- /* It's a relocation section. */
-
- Elf_Scn *tscn = elf_getscn (debugfile, shdr->sh_info);
- if (unlikely (tscn == NULL))
- result = DWFL_E_LIBELF;
- else
- result = relocate_section (mod, debugfile, ehdr, d_shstrndx,
- &reloc_symtab, scn, shdr, tscn,
- debug, !debug);
- }
- }
-
- return result;
-}
-
-Dwfl_Error
-internal_function
-__libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated,
- Elf_Scn *relocscn, Elf_Scn *tscn, bool partial)
-{
- GElf_Ehdr ehdr_mem;
- GElf_Shdr shdr_mem;
-
- RELOC_SYMTAB_CACHE (reloc_symtab);
-
- size_t shstrndx;
- if (elf_getshdrstrndx (relocated, &shstrndx) < 0)
- return DWFL_E_LIBELF;
-
- return (__libdwfl_module_getebl (mod)
- ?: relocate_section (mod, relocated,
- gelf_getehdr (relocated, &ehdr_mem), shstrndx,
- &reloc_symtab,
- relocscn, gelf_getshdr (relocscn, &shdr_mem),
- tscn, false, partial));
-}
diff --git a/src/libdwfl/segment.c b/src/libdwfl/segment.c
deleted file mode 100644
index 92769174..00000000
--- a/src/libdwfl/segment.c
+++ /dev/null
@@ -1,332 +0,0 @@
-/* Manage address space lookup table for libdwfl.
- Copyright (C) 2008, 2009, 2010, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include "libdwflP.h"
-
-GElf_Addr
-internal_function
-__libdwfl_segment_start (Dwfl *dwfl, GElf_Addr start)
-{
- if (dwfl->segment_align > 1)
- start &= -dwfl->segment_align;
- return start;
-}
-
-GElf_Addr
-internal_function
-__libdwfl_segment_end (Dwfl *dwfl, GElf_Addr end)
-{
- if (dwfl->segment_align > 1)
- end = (end + dwfl->segment_align - 1) & -dwfl->segment_align;
- return end;
-}
-
-static bool
-insert (Dwfl *dwfl, size_t i, GElf_Addr start, GElf_Addr end, int segndx)
-{
- bool need_start = (i == 0 || dwfl->lookup_addr[i - 1] != start);
- bool need_end = (i >= dwfl->lookup_elts || dwfl->lookup_addr[i + 1] != end);
- size_t need = need_start + need_end;
- if (need == 0)
- return false;
-
- if (dwfl->lookup_alloc - dwfl->lookup_elts < need)
- {
- size_t n = dwfl->lookup_alloc == 0 ? 16 : dwfl->lookup_alloc * 2;
- GElf_Addr *naddr = realloc (dwfl->lookup_addr, sizeof naddr[0] * n);
- if (unlikely (naddr == NULL))
- return true;
- int *nsegndx = realloc (dwfl->lookup_segndx, sizeof nsegndx[0] * n);
- if (unlikely (nsegndx == NULL))
- {
- if (naddr != dwfl->lookup_addr)
- free (naddr);
- return true;
- }
- dwfl->lookup_alloc = n;
- dwfl->lookup_addr = naddr;
- dwfl->lookup_segndx = nsegndx;
-
- if (dwfl->lookup_module != NULL)
- {
- /* Make sure this array is big enough too. */
- Dwfl_Module **old = dwfl->lookup_module;
- dwfl->lookup_module = realloc (dwfl->lookup_module,
- sizeof dwfl->lookup_module[0] * n);
- if (unlikely (dwfl->lookup_module == NULL))
- {
- free (old);
- return true;
- }
- }
- }
-
- if (unlikely (i < dwfl->lookup_elts))
- {
- const size_t move = dwfl->lookup_elts - i;
- memmove (&dwfl->lookup_addr[i + need], &dwfl->lookup_addr[i],
- move * sizeof dwfl->lookup_addr[0]);
- memmove (&dwfl->lookup_segndx[i + need], &dwfl->lookup_segndx[i],
- move * sizeof dwfl->lookup_segndx[0]);
- if (dwfl->lookup_module != NULL)
- memmove (&dwfl->lookup_module[i + need], &dwfl->lookup_module[i],
- move * sizeof dwfl->lookup_module[0]);
- }
-
- if (need_start)
- {
- dwfl->lookup_addr[i] = start;
- dwfl->lookup_segndx[i] = segndx;
- if (dwfl->lookup_module != NULL)
- dwfl->lookup_module[i] = NULL;
- ++i;
- }
- else
- dwfl->lookup_segndx[i - 1] = segndx;
-
- if (need_end)
- {
- dwfl->lookup_addr[i] = end;
- dwfl->lookup_segndx[i] = -1;
- if (dwfl->lookup_module != NULL)
- dwfl->lookup_module[i] = NULL;
- }
-
- dwfl->lookup_elts += need;
-
- return false;
-}
-
-static int
-lookup (Dwfl *dwfl, GElf_Addr address, int hint)
-{
- if (hint >= 0
- && address >= dwfl->lookup_addr[hint]
- && ((size_t) hint + 1 == dwfl->lookup_elts
- || address < dwfl->lookup_addr[hint + 1]))
- return hint;
-
- /* Do binary search on the array indexed by module load address. */
- size_t l = 0, u = dwfl->lookup_elts;
- while (l < u)
- {
- size_t idx = (l + u) / 2;
- if (address < dwfl->lookup_addr[idx])
- u = idx;
- else
- {
- l = idx + 1;
- if (l == dwfl->lookup_elts || address < dwfl->lookup_addr[l])
- return idx;
- }
- }
-
- return -1;
-}
-
-static bool
-reify_segments (Dwfl *dwfl)
-{
- int hint = -1;
- int highest = -1;
- bool fixup = false;
- for (Dwfl_Module *mod = dwfl->modulelist; mod != NULL; mod = mod->next)
- if (! mod->gc)
- {
- const GElf_Addr start = __libdwfl_segment_start (dwfl, mod->low_addr);
- const GElf_Addr end = __libdwfl_segment_end (dwfl, mod->high_addr);
- bool resized = false;
-
- int idx = lookup (dwfl, start, hint);
- if (unlikely (idx < 0))
- {
- /* Module starts below any segment. Insert a low one. */
- if (unlikely (insert (dwfl, 0, start, end, -1)))
- return true;
- idx = 0;
- resized = true;
- }
- else if (dwfl->lookup_addr[idx] > start)
- {
- /* The module starts in the middle of this segment. Split it. */
- if (unlikely (insert (dwfl, idx + 1, start, end,
- dwfl->lookup_segndx[idx])))
- return true;
- ++idx;
- resized = true;
- }
- else if (dwfl->lookup_addr[idx] < start)
- {
- /* The module starts past the end of this segment.
- Add a new one. */
- if (unlikely (insert (dwfl, idx + 1, start, end, -1)))
- return true;
- ++idx;
- resized = true;
- }
-
- if ((size_t) idx + 1 < dwfl->lookup_elts
- && end < dwfl->lookup_addr[idx + 1])
- {
- /* The module ends in the middle of this segment. Split it. */
- if (unlikely (insert (dwfl, idx + 1,
- end, dwfl->lookup_addr[idx + 1], -1)))
- return true;
- resized = true;
- }
-
- if (dwfl->lookup_module == NULL)
- {
- dwfl->lookup_module = calloc (dwfl->lookup_alloc,
- sizeof dwfl->lookup_module[0]);
- if (unlikely (dwfl->lookup_module == NULL))
- return true;
- }
-
- /* Cache a backpointer in the module. */
- mod->segment = idx;
-
- /* Put MOD in the table for each segment that's inside it. */
- do
- dwfl->lookup_module[idx++] = mod;
- while ((size_t) idx < dwfl->lookup_elts
- && dwfl->lookup_addr[idx] < end);
- assert (dwfl->lookup_module[mod->segment] == mod);
-
- if (resized && idx - 1 >= highest)
- /* Expanding the lookup tables invalidated backpointers
- we've already stored. Reset those ones. */
- fixup = true;
-
- highest = idx - 1;
- hint = (size_t) idx < dwfl->lookup_elts ? idx : -1;
- }
-
- if (fixup)
- /* Reset backpointer indices invalidated by table insertions. */
- for (size_t idx = 0; idx < dwfl->lookup_elts; ++idx)
- if (dwfl->lookup_module[idx] != NULL)
- dwfl->lookup_module[idx]->segment = idx;
-
- return false;
-}
-
-int
-dwfl_addrsegment (Dwfl *dwfl, Dwarf_Addr address, Dwfl_Module **mod)
-{
- if (unlikely (dwfl == NULL))
- return -1;
-
- if (unlikely (dwfl->lookup_module == NULL)
- && mod != NULL
- && unlikely (reify_segments (dwfl)))
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
-
- int idx = lookup (dwfl, address, -1);
- if (likely (mod != NULL))
- {
- if (unlikely (idx < 0) || unlikely (dwfl->lookup_module == NULL))
- *mod = NULL;
- else
- {
- *mod = dwfl->lookup_module[idx];
-
- /* If this segment does not have a module, but the address is
- the upper boundary of the previous segment's module, use that. */
- if (*mod == NULL && idx > 0 && dwfl->lookup_addr[idx] == address)
- {
- *mod = dwfl->lookup_module[idx - 1];
- if (*mod != NULL && (*mod)->high_addr != address)
- *mod = NULL;
- }
- }
- }
-
- if (likely (idx >= 0))
- /* Translate internal segment table index to user segment index. */
- idx = dwfl->lookup_segndx[idx];
-
- return idx;
-}
-INTDEF (dwfl_addrsegment)
-
-int
-dwfl_report_segment (Dwfl *dwfl, int ndx, const GElf_Phdr *phdr, GElf_Addr bias,
- const void *ident)
-{
- if (dwfl == NULL)
- return -1;
-
- if (ndx < 0)
- ndx = dwfl->lookup_tail_ndx;
-
- if (phdr->p_align > 1 && (dwfl->segment_align <= 1 ||
- phdr->p_align < dwfl->segment_align))
- dwfl->segment_align = phdr->p_align;
-
- if (unlikely (dwfl->lookup_module != NULL))
- {
- free (dwfl->lookup_module);
- dwfl->lookup_module = NULL;
- }
-
- GElf_Addr start = __libdwfl_segment_start (dwfl, bias + phdr->p_vaddr);
- GElf_Addr end = __libdwfl_segment_end (dwfl,
- bias + phdr->p_vaddr + phdr->p_memsz);
-
- /* Coalesce into the last one if contiguous and matching. */
- if (ndx != dwfl->lookup_tail_ndx
- || ident == NULL
- || ident != dwfl->lookup_tail_ident
- || start != dwfl->lookup_tail_vaddr
- || phdr->p_offset != dwfl->lookup_tail_offset)
- {
- /* Normally just appending keeps us sorted. */
-
- size_t i = dwfl->lookup_elts;
- while (i > 0 && unlikely (start < dwfl->lookup_addr[i - 1]))
- --i;
-
- if (unlikely (insert (dwfl, i, start, end, ndx)))
- {
- __libdwfl_seterrno (DWFL_E_NOMEM);
- return -1;
- }
- }
-
- dwfl->lookup_tail_ident = ident;
- dwfl->lookup_tail_vaddr = end;
- dwfl->lookup_tail_offset = end - bias - phdr->p_vaddr + phdr->p_offset;
- dwfl->lookup_tail_ndx = ndx + 1;
-
- return ndx;
-}
-INTDEF (dwfl_report_segment)
diff --git a/src/libebl/Android.mk b/src/libebl/Android.mk
deleted file mode 100755
index 0baa6b36..00000000
--- a/src/libebl/Android.mk
+++ /dev/null
@@ -1,135 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-LOCAL_PATH := $(call my-dir)
-
-LIBEBL_SRC_FILES := \
-eblabicfi.c \
-eblauxvinfo.c \
-eblbackendname.c \
-eblbsspltp.c \
-eblcheckobjattr.c \
-eblcheckreloctargettype.c \
-ebl_check_special_section.c \
-ebl_check_special_symbol.c \
-eblclosebackend.c \
-eblcopyrelocp.c \
-eblcorenote.c \
-eblcorenotetypename.c \
-ebldebugscnp.c \
-ebldwarftoregno.c \
-ebldynamictagcheck.c \
-ebldynamictagname.c \
-eblelfclass.c \
-eblelfdata.c \
-eblelfmachine.c \
-eblgotpcreloccheck.c \
-eblgstrtab.c \
-eblinitreg.c \
-eblmachineflagcheck.c \
-eblmachineflagname.c \
-eblmachinesectionflagcheck.c \
-eblnonerelocp.c \
-eblnormalizepc.c \
-eblobjecttypename.c \
-eblobjnote.c \
-eblobjnotetypename.c \
-eblopenbackend.c \
-eblosabiname.c \
-eblreginfo.c \
-eblrelativerelocp.c \
-eblrelocsimpletype.c \
-eblreloctypecheck.c \
-eblreloctypename.c \
-eblrelocvaliduse.c \
-eblresolvesym.c \
-eblretval.c \
-eblsectionname.c \
-eblsectionstripp.c \
-eblsectiontypename.c \
-eblsegmenttypename.c \
-eblshflagscombine.c \
-eblstother.c \
-eblstrtab.c \
-eblsymbolbindingname.c \
-eblsymboltypename.c \
-ebl_syscall_abi.c \
-eblsysvhashentrysize.c \
-eblunwind.c \
-eblwstrtab.c \
-
-
-ifeq ($(HOST_OS),linux)
-
-#
-# host libebl
-#
-#
-include $(CLEAR_VARS)
-
-# Disable clang like other elfutils libraries.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBEBL_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
- $(LOCAL_PATH)/../libebl \
- $(LOCAL_PATH)/../libasm \
- $(LOCAL_PATH)/../libelf \
- $(LOCAL_PATH)/../libdw
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE
-
-LOCAL_CLANG := false
-
-LOCAL_MODULE:= libebl
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif # linux
-
-#
-# target libebl
-#
-
-include $(CLEAR_VARS)
-
-# Disable clang like other elfutils libraries.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBEBL_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
- $(LOCAL_PATH)/../libebl \
- $(LOCAL_PATH)/../libasm \
- $(LOCAL_PATH)/../libelf \
- $(LOCAL_PATH)/../libdw
-
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../bionic-fixup
-
-LOCAL_CFLAGS += -include $(LOCAL_PATH)/../../bionic-fixup/AndroidFixup.h
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE -Werror -Wno-error=pointer-arith
-
-LOCAL_MODULE:= libebl
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-include $(BUILD_STATIC_LIBRARY)
diff --git a/src/libebl/ChangeLog b/src/libebl/ChangeLog
deleted file mode 100644
index 5e635f21..00000000
--- a/src/libebl/ChangeLog
+++ /dev/null
@@ -1,988 +0,0 @@
-2014-11-22 Mark Wielaard <mjw@redhat.com>
-
- * ebl-hooks.h (bss_plt_p): Remove ehdr argument.
- * eblbsspltp.c (ebl_bss_plt_p): Likewise.
- * eblopenbackend.c (default_bss_plt_p): Likewise.
- * libebl.h (ebl_bss_plt_p): Likewise.
-
-2014-11-17 Mark Wielaard <mjw@redhat.com>
-
- * ebldebugscnp.c (ebl_debugscn_p): Check name is not NULL.
-
-2014-06-17 Mark Wielaard <mjw@redhat.com>
-
- * eblinitreg.c (ebl_func_addr_mask): New function.
- * libebl.h (ebl_func_addr_mask): Define.
- * libeblP.h (struct ebl): Add func_addr_mask.
-
-2014-05-19 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (gen_SOURCES): Add eblcheckreloctargettype.c.
- * eblcheckreloctargettype.c: New file.
- * ebl-hooks.h (check_reloc_target_type): New hook.
- * eblopenbackend.c (default_check_reloc_target_type): New function.
- (fill_defaults): Assign default_check_reloc_target_type to
- check_reloc_target_type.
- * libebl.h (ebl_check_reloc_target_type): New function definition.
-
-2013-12-18 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (gen_SOURCES): Add eblresolvesym.c.
- * ebl-hooks.h (resolve_sym_value): New entry.
- * eblresolvesym.c: New file.
- * libebl.h (ebl_resolve_sym_value): New definition.
- * libeblP.h (fd_addr): New field.
- (fd_data): Likewise.
-
-2013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- unwinder: s390 and s390x
- * Makefile.am (gen_SOURCES): Add eblnormalizepc.c and eblunwind.c.
- * ebl-hooks.h (normalize_pc, unwind): New.
- * eblnormalizepc.c: New file.
- * eblunwind.c: New file.
- * libebl.h (Ebl_Register_Location): Add field pc_register.
- (ebl_normalize_pc): New declaration.
- (ebl_tid_registers_get_t, ebl_pid_memory_read_t): New definitions.
- (ebl_unwind): New declaration.
-
-2013-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- unwinder: ppc and ppc64
- * Makefile.am (gen_SOURCES): Add ebldwarftoregno.c.
- * ebl-hooks.h (dwarf_to_regno): New.
- * ebldwarftoregno.c: New file.
- * libebl.h (Ebl_Core_Item): New field pc_register.
- (ebl_tid_registers_t): Add FIRSTREG -1 to the comment.
- (ebl_dwarf_to_regno): New.
-
-2013-11-25 Petr Machata <pmachata@redhat.com>
-
- * eblopenbackend.c (machines): Add entry for AArch64.
-
-2013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Code cleanup: Remove const in prototype
- * libebl.h (ebl_tid_registers_t): Remove const from firstreg.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
- Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (gen_SOURCES): Add eblinitreg.c.
- * ebl-hooks.h (set_initial_registers_tid): New entry.
- * eblinitreg.c: New file.
- * libebl.h (ebl_tid_registers_t): New definition.
- (ebl_set_initial_registers_tid, ebl_frame_nregs): New declarations.
- * libeblP.h (struct ebl): New entry frame_nregs.
-
-2013-10-06 Mark Wielaard <mjw@redhat.com>
-
- * libebl.h (ebl_abi_cfi): Document restrictions using register
- rules.
-
-2013-09-26 Petr Machata <pmachata@redhat.com>
-
- * eblcorenotetypename.c: Handle NT_ARM_TLS, NT_ARM_HW_BREAK,
- NT_ARM_HW_WATCH, NT_SIGINFO, NT_FILE.
-
-2013-09-25 Mark Wielaard <mjw@redhat.com>
-
- * eblsectionstripp.c (ebl_section_strip_p): Check shdr_l is not NULL.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * ebl-hooks.h (abi_cfi): Extend its comment for return value.
- * eblopenbackend.c (default_abi_cfi): Return -1.
- * libebl.h (ebl_abi_cfi): Extend its comment for return value.
-
-2012-08-30 Petr Machata <pmachata@redhat.com>
-
- * eblcorenotetypename.c: Handle PPC_VSX, X86_XSTATE,
- S390_HIGH_GPRS, S390_TIMER, S390_TODCMP, S390_TODPREG, S390_CTRS,
- S390_PREFIX, S390_LAST_BREAK, S390_SYSTEM_CALL, and ARM_VFP.
-
-2012-08-22 Jeff Kenton <jkenton@tilera.com>
-
- * eblopenbackend.c (machines): Add tilegx.
-
-2011-06-26 Mark Wielaard <mjw@redhat.com>
-
- * eblopenbackend.c (default_debugscn_p): Add .debug_macro.
-
-2011-04-26 Mark Wielaard <mjw@redhat.com>
-
- * libebl.h (ebl_object_note_type_name): Add const char *name arg.
- * eblhooks.h (object_note_type_name): Likewise.
- * eblopenbackend.c (default_object_note_type_name): Likewise.
- * eblobjnotetypename.c (ebl_object_note_type_name): Likewise.
- And print version if name is "stapsdt".
- * eblobjnote.c (ebl_object_note): Add output for "stapsdt" notes.
-
-2011-03-21 Marek Polacek <mpolacek@redhat.com>
-
- * ebldynamictagname.c: Fix typo in TLSDESC_GOT.
-
-2011-03-10 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (gen_SOURCES): Add eblstother.c.
- * eblstother.c: New file.
- * ebl-hooks.h: Add check_st_other_bits hook.
- * eblopenbackend.c (default_check_st_other_bits): New function.
- (fill_defaults): Hook default_check_st_other_bits.
- * libebl.h (ebl_check_st_other_bits): New prototype.
-
-2010-07-07 Roland McGrath <roland@redhat.com>
-
- * eblopenbackend.c (default_debugscn_p): Match .gdb_index section.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
-2010-01-04 Roland McGrath <roland@redhat.com>
-
- * eblcorenote.c (ebl_core_note): Take GElf_Nhdr * and name data
- pointer instead of only n_type and n_descsz.
- * libebl.h: Update declaration.
- * ebl-hooks.h: Update core_note hook signature.
- * eblopenbackend.c (default_core_note): Likewise.
-
-2009-10-14 Roland McGrath <roland@redhat.com>
-
- * eblobjnote.c (ebl_object_note): Clean up NT_GNU_GOLD_VERSION printing.
-
-2009-10-05 Roland McGrath <roland@redhat.com>
-
- * eblopenbackend.c (default_debugscn_p): Match .debug_pubtypes and
- .debug_types too.
-
-2009-09-02 Petr Machata <pmachata@redhat.com>
-
- * libebl/eblstrtab.c (morememory): Allocate memory in multiples of
- pagesize.
-
-2009-08-06 Petr Machata <pmachata@redhat.com>
-
- * libebl/eblstrtab.c (ebl_strtabfinalize): Only call copystrings
- if we have any strings to copy.
-
-2009-07-26 Mark Wielaard <mjw@redhat.com>
-
- * eblobjnote.c (ebl_object_note): Handle NT_GNU_GOLD_VERSION.
-
- * eblobjnotetypename.c (ebl_object_note_type_name): Recognize
- NT_GNU_GOLD_VERSION.
-
-2009-07-08 Roland McGrath <roland@redhat.com>
-
- * ebl-hooks.h: Add abi_cfi hook.
- * eblopenbackend.c (default_abi_cfi): New function.
- (fill_defaults): Add initializer.
- * eblabicfi.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * libebl.h: Declare ebl_abi_cfi.
-
-2009-07-08 Ulrich Drepper <drepper@redhat.com>
-
- * eblsymbolbindingname.c (ebl_symbol_binding_name): Handle
- STB_GNU_UNIQUE.
-
- * eblsymboltypename.c (ebl_symbol_type_name): Only handle STT_GNU_IFUNC
- if the binary is marked as being for Linux.
-
-2009-04-01 Roland McGrath <roland@redhat.com>
-
- * eblsymboltypename.c (ebl_symbol_type_name): Add STT_GNU_IFUNC.
-
- * eblauxvinfo.c (AUXV_TYPES): Add RANDOM and BASE_PLATFORM.
-
-2009-02-01 Ulrich Drepper <drepper@redhat.com>
-
- * eblreloctypename.c (ebl_reloc_type_name): Return "<INVALID RELOC>"
- instead of "???" for invalid relocations.
-
-2008-08-01 Roland McGrath <roland@redhat.com>
-
- * eblcorenotetypename.c: Handle NT_386_IOPERM.
-
-2008-07-28 Roland McGrath <roland@redhat.com>
-
- * eblauxvinfo.c (AUXV_TYPES): Add EXECFN.
-
- * eblauxvinfo.c (ebl_auxv_info): Handle missing elements of standard
- table.
-
-2008-07-04 Roland McGrath <roland@redhat.com>
-
- * libebl.h: Declare ebl_syscall_abi.
- * ebl_syscall_abi.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * ebl-hooks.h: New hook syscall_abi.
- * eblopenbackend.c (default_syscall_abi): New function.
- (fill_defaults): Use it.
-
-2008-03-31 Roland McGrath <roland@redhat.com>
-
- * ebldynamictagname.c (ebl_dynamic_tag_name): Use hex for unknown tag.
-
- * ebl-hooks.h: Add check_special_section hook.
- * eblopenbackend.c (fill_defaults): Set new hook to ...
- (default_check_special_section): ... this, new function.
- * ebl_check_special_section.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * libebl.h: Declare it.
-
-2008-02-20 Roland McGrath <roland@redhat.com>
-
- * libebl.h: Declare ebl_check_object_attribute.
- * eblcheckobjattr.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * ebl-hooks.h: Add check_object_attribute hook.
- * eblopenbackend.c (default_check_object_attribute): New function.
- (fill_defaults): Initialize pointer to it.
-
-2008-02-19 Roland McGrath <roland@redhat.com>
-
- * eblsectiontypename.c (ebl_section_type_name):
- Handle SHT_GNU_ATTRIBUTES.
-
-2008-02-08 Roland McGrath <roland@redhat.com>
-
- * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_SPE.
-
-2008-01-30 Roland McGrath <roland@redhat.com>
-
- * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_386_TLS.
-
-2007-10-18 Roland McGrath <roland@redhat.com>
-
- * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PPC_VMX.
-
-2007-10-11 Roland McGrath <roland@redhat.com>
-
- * eblobjnote.c (ebl_object_note): Translate target format (byte-swap)
- for NT_GNU_ABI_TAG contents.
-
-2007-08-22 Roland McGrath <roland@redhat.com>
-
- * libebl.h (Ebl_Core_Item): New member `group'.
-
-2007-08-19 Roland McGrath <roland@redhat.com>
-
- * ebl-hooks.h: Add new hook auxv_info.
- * eblopenbackend.c (default_auxv_info): New function.
- (fill_defaults): Initialize auxv_info hook.
- * eblauxvinfo.c : New file.
- * Makefile.am (gen_SOURCES): Add it.
- * libebl.h: Declare ebl_auxv_info.
-
- * eblcorenote.c: Rewritten with new signature.
- * Makefile.am (gen_SOURCES): Add it.
- * libebl.h (Ebl_Register_Location, Ebl_Core_Item): New types.
- (ebl_core_note_info): Completely revamp signature.
- * ebl-hooks.h: Update decl.
- * eblopenbackend.c (default_core_note): Update signature.
-
-2007-07-09 Roland McGrath <roland@redhat.com>
-
- * eblobjnotetypename.c (ebl_object_note_type_name): Handle
- NT_GNU_HWCAP, NT_GNU_BUILD_ID.
-
- * eblobjnote.c (ebl_object_note): Handle NT_GNU_BUILD_ID.
-
-2007-04-22 Roland McGrath <roland@redhat.com>
-
- * eblcorenotetypename.c (ebl_core_note_type_name): Handle NT_PRXFPREG.
-
-2007-03-10 Roland McGrath <roland@redhat.com>
-
- * eblcorenote.c (ebl_core_note): For normally-zero types,
- print in hex if not zero.
-
-2007-01-11 Roland McGrath <roland@redhat.com>
-
- * ebl-hooks.h (machine_section_flag_check): New hook.
- * libebl.h: Declare ebl_machine_section_flag_check.
- * eblmachinesectionflagcheck.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * eblopenbackend.c (default_machine_section_flag_check): New function.
- (fill_defaults): Use it.
-
-2006-09-04 Roland McGrath <roland@redhat.com>
-
- * ebl-hooks.h: Replace register_name hook with register_info.
- Also yield natural bit width and base type encoding.
- * eblopenbackend.c (default_register_name): Renamed
- default_register_info, new args added.
- (fill_defaults): Update initialization.
- * eblregname.c: File renamed ...
- * eblreginfo.c: ... to this.
- (ebl_register_name): Renamed to ebl_register_info, new args added.
- * libebl.h: Update decl.
-
- * Makefile.am (gen_SOURCES): Update list.
-
-2006-07-06 Ulrich Drepper <drepper@redhat.com>
-
- * ebldynamictagname.c: Add support for DT_GNU_HASH.
- * ebldynamictagcheck.c: Likewise.
- * eblsectiontypename.c: Add support for SHT_GNU_HASH.
-
-2006-07-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (gen_SOURCES): Add eblsysvhashentrysize.c.
- * libeblP.h (struct ebl): Add sysvhash_entrysize element.
- * eblopenbackend.c (fill_defaults): Initialize sysvhash_entrysize.
-
- * eblopenbackend.c (openbackend): If possible, fill machine, class,
- and data values in from the ELF file.
-
-2006-07-04 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (gen_SOURCES): Add eblrelativerelocp.c.
- * eblrelativerelocp.c: New file.
- * ebl-hooks.c: Add relative_reloc_p.
- * eblopenbackend.c (default_relative_reloc_p): New function.
- (fill_defaults): Hook it up.
- * libebl.h: Declare ebl_relative_reloc_p.
-
-2006-06-12 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (gen_SOURCES): Add eblnonerelocp.c.
- * eblnonerelocp.c: New file.
- * ebl-hooks.c: Add none_reloc_p.
- * eblopenbackend.c (default_none_reloc_p): New function.
- (fill_defaults): Hook it up.
- * libebl.h: Declare ebl_none_reloc_p.
-
-2006-05-27 Ulrich Drepper <drepper@redhat.com>
-
- * libebl.h: Add extern "C".
-
-2005-11-25 Roland McGrath <roland@redhat.com>
-
- * eblregname.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * ebl-hooks.h: Declare register_name hook.
- * libebl.h: Declare ebl_register_name.
- * eblopenbackend.c (default_register_name): New function.
- (fill_defaults): Use it.
-
-2005-11-16 Roland McGrath <roland@redhat.com>
-
- * libebl.h: Use "" for elf-knowledge.h, not <>.
-
-2005-11-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Removed everything for building libebl_*.so modules,
- now in ../backends/Makefile.am instead.
- * alpha_init.c: Moved to ../backends.
- * alpha_reloc.def: Likewise.
- * alpha_retval.c: Likewise.
- * alpha_symbol.c: Likewise.
- * arm_init.c: Likewise.
- * arm_reloc.def: Likewise.
- * arm_symbol.c: Likewise.
- * common-reloc.c: Likewise.
- * i386_corenote.c: Likewise.
- * i386_init.c: Likewise.
- * i386_reloc.def: Likewise.
- * i386_retval.c: Likewise.
- * i386_symbol.c: Likewise.
- * ia64_init.c: Likewise.
- * ia64_reloc.def: Likewise.
- * ia64_symbol.c: Likewise.
- * libebl_CPU.h: Likewise.
- * ppc64_init.c: Likewise.
- * ppc64_reloc.def: Likewise.
- * ppc64_retval.c: Likewise.
- * ppc64_symbol.c: Likewise.
- * ppc_init.c: Likewise.
- * ppc_reloc.def: Likewise.
- * ppc_retval.c: Likewise.
- * ppc_symbol.c: Likewise.
- * s390_init.c: Likewise.
- * s390_reloc.def: Likewise.
- * s390_symbol.c: Likewise.
- * sh_init.c: Likewise.
- * sh_reloc.def: Likewise.
- * sh_symbol.c: Likewise.
- * sparc_init.c: Likewise.
- * sparc_reloc.def: Likewise.
- * sparc_symbol.c: Likewise.
- * x86_64_corenote.c: Likewise.
- * x86_64_init.c: Likewise.
- * x86_64_reloc.def: Likewise.
- * x86_64_retval.c: Likewise.
- * x86_64_symbol.c: Likewise.
-
- * libebl.h: Comment fixes.
-
- * alpha_retval.c: New file.
- * Makefile.am (alpha_SRCS): Add it.
- * alpha_init.c (alpha_init): Initialize return_value_location hook.
-
- * ppc64_retval.c: New file.
- * Makefile.am (ppc64_SRCS): Add it.
- * ppc64_init.c (ppc64_init): Initialize return_value_location hook.
-
- * ppc_retval.c: New file.
- * Makefile.am (ppc_SRCS): Add it.
- * ppc_init.c (ppc_init): Initialize return_value_location hook.
-
-2005-11-14 Roland McGrath <roland@redhat.com>
-
- * ia64_init.c (ia64_init): Initialize EH->reloc_simple_type.
- * sh_init.c (sh_init): Likewise.
- * x86_64_init.c (x86_64_init): Likewise.
-
- * sparc_symbol.c (sparc_reloc_simple_type): New function.
- * sparc_init.c (sparc_init): Use it.
-
- * arm_symbol.c (arm_reloc_simple_type): New function.
- * arm_init.c (arm_init): Use it.
-
- * alpha_symbol.c (alpha_reloc_simple_type): New function.
- * alpha_init.c (alpha_init): Use it.
-
- * ia64_reloc.def: Update bits per H. J. Lu <hjl@lucon.org>.
-
- * arm_reloc.def: Update bits per Daniel Jacobowitz <drow@false.org>.
-
- * alpha_reloc.def: Update bits per Richard Henderson <rth@redhat.com>.
-
-2005-11-13 Roland McGrath <roland@redhat.com>
-
- * x86_64_retval.c: New file.
- * Makefile.am (x86_64_SRCS): Add it.
- * x86_64_init.c (x86_64_init): Use x86_64_return_value_location.
-
- * i386_retval.c: New file.
- * Makefile.am (i386_SRCS): Add it.
- (libdw): New variable.
- (libebl_%.so): Use $(libdw) in link; use --as-needed.
- * i386_init.c (i386_init): Use i386_return_value_location.
-
- * eblretval.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- (INCLUDES): Search in libdw.
- * libebl.h: Include <libdw.h>. Declare ebl_return_value_location.
- * ebl-hooks.h: Declare return_value_location hook.
- * eblopenbackend.c (default_return_value_location): New function.
- (fill_defaults): Use it.
-
-2005-11-10 Roland McGrath <roland@redhat.com>
-
- * s390_init.c: New file.
- * s390_reloc.def: New file.
- * s390_symbol.c: New file.
- * Makefile.am (modules, libebl_pic): Add s390.
- (s390_SRCS, libebl_s390_pic_a_SOURCES): New variables.
- (am_libebl_s390_pic_a_OBJECTS): New variable.
-
- * ppc64_init.c: Use common-reloc.c.
- * ppc64_symbol.c (ppc64_backend_name): Removed.
- (ppc64_reloc_type_check, ppc64_reloc_type_name): Likewise.
- (ppc64_copy_reloc_p, ppc64_reloc_valid_use): Likewise.
-
- * ppc_init.c: Use common-reloc.c.
- * ppc_symbol.c (ppc_backend_name): Removed.
- (ppc_reloc_type_name, ppc_reloc_type_check): Likewise.
- (ppc_reloc_valid_use, ppc_copy_reloc_p): Likewise.
-
- * sparc_init.c: Use common-reloc.c.
- * sparc_symbol.c (sparc_backend_name): Removed.
- (sparc_reloc_type_name, sparc_reloc_type_check): Likewise.
- (sparc_copy_reloc_p): Likewise.
-
- * arm_init.c: Use common-reloc.c.
- * arm_symbol.c (arm_backend_name): Removed.
- (arm_reloc_type_name, arm_reloc_type_check, arm_copy_reloc_p): Removed.
-
- * alpha_init.c: Use common-reloc.c.
- * alpha_symbol.c (alpha_backend_name): Removed.
- (alpha_reloc_type_name, alpha_reloc_type_check): Likewise.
- (alpha_copy_reloc_p): Likewise.
-
- * ia64_symbol.c (ia64_backend_name): Removed.
- (ia64_reloc_type_name, ia64_reloc_type_check): Likewise.
- (ia64_copy_reloc_p): Likewise.
-
- * x86_64_init.c: Use common-reloc.c.
- * x86_64_symbol.c (x86_64_backend_name): Removed.
- (x86_64_copy_reloc_p, x86_64_reloc_valid_use): Likewise.
- (x86_64_reloc_type_check, x86_64_reloc_type_name): Likewise.
-
- * sh_init.c: Use common-reloc.c.
- * sh_symbol.c: All functions removed.
- (sh_reloc_simple_type): New function.
- (sh_gotpc_reloc_check): New function.
-
- * common-reloc.c: New file.
- * Makefile.am (noinst_HEADERS): Add it.
- * i386_init.c: Include it.
-
- * sh_reloc.def: New file.
- * i386_reloc.def: New file.
- * alpha_reloc.def: New file.
- * arm_reloc.def: New file.
- * i386_reloc.def: New file.
- * ia64_reloc.def: New file.
- * ppc64_reloc.def: New file.
- * ppc_reloc.def: New file.
- * sh_reloc.def: New file.
- * sparc_reloc.def: New file.
- * x86_64_reloc.def: New file.
- * Makefile.am (EXTRA_DIST): Add $(modules:=_reloc.def).
-
- * libebl_alpha.map: Removed.
- * libebl_ia64.map: Removed.
- * libebl_ppc.map: Removed.
- * libebl_sparc.map: Removed.
- * libebl_arm.map: Removed.
- * libebl_i386.map: Removed.
- * libebl_ppc64.map: Removed.
- * libebl_sh.map: Removed.
- * libebl_x86_64.map: Removed.
- * Makefile.am (EXTRA_DIST): Remove them.
- (libebl_%.map, libebl_%.so): New pattern rules.
-
- * libebl_alpha.h: Removed.
- * libebl_ia64.h: Removed.
- * libebl_ppc.h: Removed.
- * libebl_sparc.h: Removed.
- * libebl_arm.h: Removed.
- * libebl_i386.h: Removed.
- * libebl_ppc64.h: Removed.
- * libebl_sh.h: Removed.
- * libebl_x86_64.h: Removed.
- * Makefile.am (noinst_HEADERS): Remove them.
-
- * x86_64_corenote.c: Use libebl_CPU.h instead.
- * x86_64_symbol.c: Likewise.
- * i386_corenote.c: Likewise.
-
-2005-11-09 Roland McGrath <roland@redhat.com>
-
- * ia64_symbol.c (ia64_reloc_simple_type): New function.
-
- * ebl-hooks.h (reloc_simple_type): Take the Ebl handle, not Elf handle.
- * eblrelocsimpletype.c (ebl_reloc_simple_type): Update caller.
- * eblopenbackend.c (default_reloc_simple_type): Update signature.
- * i386_symbol.c (i386_reloc_simple_type): Likewise.
- * ppc64_symbol.c (ppc64_reloc_simple_type): Likewise.
- * ppc_symbol.c (ppc_reloc_simple_type): Likewise.
- * x86_64_symbol.c (x86_64_reloc_simple_type): Likewise.
-
- * i386_symbol.c (i386_backend_name): Removed.
- (i386_reloc_type_name, i386_reloc_type_check): Likewise.
- (i386_reloc_valid_use): Removed.
- (i386_copy_reloc_p): Removed.
-
- * alpha_destr.c: Removed.
- * arm_destr.c: Removed.
- * i386_destr.c: Removed.
- * ia64_destr.c: Removed.
- * ppc64_destr.c: Removed.
- * ppc_destr.c: Removed.
- * sh_destr.c: Removed.
- * sparc_destr.c: Removed.
- * x86_64_destr.c: Removed.
-
- * ebl-hooks.h: New file, broken out of ...
- * libeblP.h (struct ebl): ... here. #include that for hook
- declarations, after defining EBLHOOK macro.
- * libebl_CPU.h: New file.
- * Makefile.am (noinst_HEADERS): Add them.
-
- * libeblP.h (struct ebl): Use uint_fast16_t for machine,
- and uint_fast8_t for class and data.
-
-2005-08-14 Roland McGrath <roland@redhat.com>
-
- * ia64_symbol.c (ia64_section_type_name): New function.
- (ia64_dynamic_tag_check): New function.
- (ia64_reloc_valid_use): New function.
- * libebl_ia64.h: Declare them.
- * ia64_init.c (ia64_init): Use them.
- * Makefile.am (libebl_ia64.so): Link with libelf.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Use $(LINK) not $(CC) when creating DSOs.
-
-2005-08-13 Roland McGrath <roland@redhat.com>
-
- * ia64_symbol.c (ia64_machine_flag_check): New function.
- * libebl_ia64.h: Declare it.
- * ia64_init.c (ia64_init): Use it.
-
-2005-08-13 Ulrich Drepper <drepper@redhat.com>
-
- * libebl.h: Add ehdr parameter to ebl_bss_plt_p and
- ebl_check_special_symbol.
- * libeblP.h (struct ebl): Adjust callback functions.
- * eblopenbackend.c: Adjust dummy functions.
- * ebl_check_special_symbol.c: Add parameter and pass it on.
- * eblbsspltp.c: Likewise.
- * ppc_symbol.c (find_dyn_got): With ehdr passed, simplify search for
- the dynamic section entry.
- (ppc_check_special_symbol): Add ehdr parameter.
- (ppc_bss_plt_p): Likewise.
- * libebl_ppc.h: Adjust prototypes.
- * ppc64_symbol.c (ppc_check_special_symbol): Add ehdr parameter.
- (ppc_bss_plt_p): Likewise.
- * libebl_ppc64.h: Adjust prototypes.
-
-2005-08-12 Roland McGrath <roland@redhat.com>
-
- * ppc_symbol.c (find_dyn_got): New function, broken out of ...
- (ppc_bss_plt_p): ... here. Call that.
- (ppc_check_special_symbol): Use find_dyn_got to fetch value to check
- against _GLOBAL_OFFSET_TABLE_.
-
- * libeblP.h (struct ebl): Add bss_plt_p hook.
- * eblopenbackend.c (default_bss_plt_p): New function.
- (fill_defaults): Use it.
- * eblbsspltp.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * libebl.h: Declare ebl_bss_plt_p.
- * ppc_symbol.c (ppc_bss_plt_p): New function.
- * libebl_ppc.h: Declare it.
- * ppc_init.c (ppc_init): Use it.
- * ppc64_symbol.c (ppc64_bss_plt_p): New function.
- * libebl_ppc64.h: Declare it.
- * ppc64_init.c (ppc64_init): Use it.
-
- * ebl_check_special_symbol.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * libebl.h: Declare ebl_check_special_symbol.
- * libeblP.h (struct ebl): Add check_special_symbol hook.
- * eblopenbackend.c (default_check_special_symbol): New function.
- (fill_defaults): Use it.
- * ppc_symbol.c (ppc_check_special_symbol): New function.
- * libebl_ppc.h: Add prototype.
- * ppc_init.c (ppc_init): Use it.
- * ppc64_symbol.c (ppc64_check_special_symbol): New function.
- * libebl_ppc64.h: Add prototype.
- * ppc64_init.c (ppc64_init): Use it.
-
-2005-08-07 Ulrich Drepper <drepper@redhat.com>
-
- * ppc_init.c: Add support for new DT_PPC_* and R_PPC_* values.
- * ppc_symbol.c: Likewise.
- * libebl_ppc.h: Likewise.
- * ppc64_init.c: There is now also a dynamic_tag_check functions
- * ppc64_symbol.c: Add dynamic_tag_check.
- * libebl_ppc64.h: Add prototype.
- * alpha_init.c: Add support for new DT_ALPHA_* value.
- * alpha_symbol.c: Likewise.
- * libebl_alpha.h: Likewise.
-
-2005-08-03 Ulrich Drepper <drepper@redhat.com>
-
- * libebl_alpha.map: Remove unnecessary exports.
- * libebl_arm.map: Likewise.
- * libebl_i386.map: Likewise.
- * libebl_ia64.map: Likewise.
- * libebl_ppc.map: Likewise.
- * libebl_ppc64.map: Likewise.
- * libebl_sh.map: Likewise.
- * libebl_sparc.map: Likewise.
- * libebl_x86_64.map: Likewise.
-
-2005-08-02 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (libebl_a_SOURCES): Add eblelfclass.c, eblelfdata.c,
- and eblelfmachine.c.
- * elbopenbackend.c (machines): Add class and data fields. Initialize
- them.
- (ebl_openbackend): Initialize machine, class, data fields in result.
- * libebl.h: Declare Add eblelfclass, eblelfdata, and eblelfmachine.
- * libeblP.h (Ebl): Add machine, class, data fields.
-
-2005-07-23 Ulrich Drepper <drepper@redhat.com>
-
- * eblsectionstripp.c: New file.
- * Makefile.am (gen_SOURCES): Add eblsectionstripp.c.
- * i386_init.c (i386_init): Install specific debugscn_p callback.
- * i386_symbol.c (i386_debugscn_p): New function.
- * libebl.h: Declare ebl_section_strip_p.
- * libebl_i386.h: Declare i386_debugscn_p.
-
- * libebl.h: Move Ebl definition to...
- * libeblP.h: ...here.
-
-2005-07-21 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (install-ebl-modules): New target, commands from ...
- (install): ... here. Make this depend on it.
- (LIBEBL_SUBDIR): New variable, substituted by configure.
- (install-ebl-modules): Install in $(libdir)/$(LIBEBL_SUBDIR).
- * eblopenbackend.c (openbackend): Use LIBEBL_SUBDIR in module name.
-
-2005-07-21 Ulrich Drepper <drepper@redhat.com>
-
- * eblcopyrelocp.c: New file.
- * Makefile.am (gen_SOURCES): Add eblcopyrelocp.c.
- * libebl.h: Declare ebl_copy_reloc_p.
- * eblopenbackend.c (fill_defaults): Fill in copy_reloc_p.
- (default_copy_reloc_p): New function.
- * alpha_init.c: Define and use arch-specific copy_reloc_p function.
- * alpha_symbol.c: Likewise.
- * arm_init.c: Likewise.
- * arm_symbol.c: Likewise.
- * i386_init.c: Likewise.
- * i386_symbol.c: Likewise.
- * ia64_init.c: Likewise.
- * ia64_symbol.c: Likewise.
- * ppc64_init.c: Likewise.
- * ppc64_symbol.c: Likewise.
- * ppc_init.c: Likewise.
- * ppc_symbol.c: Likewise.
- * sh_init.c: Likewise.
- * sh_symbol.c: Likewise.
- * sparc_init.c: Likewise.
- * sparc_symbol.c: Likewise.
- * x86_64_init.c: Likewise.
- * x86_64_symbol.c: Likewise.
- * libebl_alpha.h: Declare the copy_reloc_p function.
- * libebl_arm.h: Likewise.
- * libebl_i386.h: Likewise.
- * libebl_ia64.h: Likewise.
- * libebl_ppc.h: Likewise.
- * libebl_ppc64.h: Likewise.
- * libebl_sh.h: Likewise.
- * libebl_sparc.h: Likewise.
- * libebl_x86_64.h: Likewise.
-
-2005-05-31 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
- tracking works right.
-
-2005-05-21 Ulrich Drepper <drepper@redhat.com>
-
- * libebl_x86_64.map: Add x86_64_core_note.
-
-2005-05-19 Roland McGrath <roland@redhat.com>
-
- * libebl_i386.map: Add i386_reloc_valid_use, i386_reloc_simple_type.
- * libebl_ppc.map: Add ppc_reloc_simple_type.
- * libebl_ppc64.map: Add ppc64_reloc_simple_type.
- * libebl_x86_64.map: Add x86_64_reloc_simple_type.
-
-2005-05-11 Ulrich Drepper <drepper@redhat.com>
-
- * eblcorenote.c: Handle new AT_* values and files with different
- endianess.
- * Makefile.am (x86_64_SRCS): Add x86_64_corenote.c.
- * x86-64_corenote.c: New file.
- * x86_64_init.c: Hook in x86_64_corenote.
- * i386_corenote.c: Make file usable on 64-bit platforms.
-
- * eblopenbackend.c: If modules version comparison fails, reinitialize
- hooks.
-
-2005-05-10 Ulrich Drepper <drepper@redhat.com>
-
- * eblopenbackend.c: Require the init function to return a string.
- Compare it with MODVERSION from config.h.
- * alpha_init.c: Change return type. Return MODVERSION or NULL.
- * arm_init.c: Likewise.
- * eblopenbackend.c: Likewise.
- * i386_init.c: Likewise.
- * ia64_init.c: Likewise.
- * ppc64_init.c: Likewise.
- * ppc_init.c: Likewise.
- * sh_init.c: Likewise.
- * sparc_init.c: Likewise.
- * x86_64_init.c: Likewise.
- * libeblP.h: Adjust ebl_bhinit_t.
- * libebl_alpha.h: Adjust init function prototype.
- * libebl_arm.h: Likewise.
- * libebl_i386.h: Likewise.
- * libebl_ia64.h: Likewise.
- * libebl_ppc.h: Likewise.
- * libebl_ppc64.h: Likewise.
- * libebl_sh.h: Likewise.
- * libebl_sparc.h: Likewise.
- * libebl_x86_64.h: Likewise.
-
- * mips_destr.c: Removed.
- * mips_init.c: Removed.
- * mips_symbol.c: Removed.
- * libebl_mips.h: Removed.
- * libebl_mips.map: Removed.
-
-2005-05-03 Roland McGrath <roland@redhat.com>
-
- * libebl.h (Ebl): Add `reloc_simple_type' member.
- * eblopenbackend.c (default_reloc_simple_type): New function.
- (openbackend): Use that as default reloc_simple_type callback.
- * eblrelocsimpletype.c: New file.
- * Makefile.am (gen_SOURCES): Add it.
- * i386_symbol.c (i386_reloc_simple_type): New function.
- * libebl_i386.h: Declare it.
- * i386_init.c (i386_init): Use it.
- * x86_64_symbol.c (x86_64_reloc_simple_type): New function.
- * libebl_x86_64.h: Declare it.
- * x86_64_init.c (x86_64_init): Use it.
- * ppc_symbol.c (ppc_reloc_simple_type): New function.
- * libebl_ppc.h: Declare it.
- * ppc_init.c (ppc_init): Use it.
- * ppc64_symbol.c (ppc64_reloc_simple_type): New function.
- * libebl_ppc64.h: Declare it.
- * ppc64_init.c (ppc64_init): Use it.
-
-2005-03-17 Ulrich Drepper <drepper@redhat.com>
-
- * eblcorenote.c (ebl_core_note): Add support for AT_SECURE.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Add -Wformat=2.
-
-2005-02-14 Ulrich Drepper <drepper@redhat.com>
-
- * alpha_destr.c: Add __attribute__((unused)) where needed.
- * alpha_init.c: Likewise.
- * alpha_symbol.c: Likewise.
- * arm_destr.c: Likewise.
- * arm_init.c: Likewise.
- * arm_symbol.c: Likewise.
- * i386_corenote.c: Likewise.
- * i386_destr.c: Likewise.
- * i386_init.c: Likewise.
- * i386_symbol.c: Likewise.
- * ia64_destr.c: Likewise.
- * ia64_init.c: Likewise.
- * ia64_symbol.c: Likewise.
- * mips_destr.c: Likewise.
- * mips_init.c: Likewise.
- * mips_symbol.c: Likewise.
- * ppc64_destr.c: Likewise.
- * ppc64_init.c: Likewise.
- * ppc64_symbol.c: Likewise.
- * ppc_destr.c: Likewise.
- * ppc_init.c: Likewise.
- * ppc_symbol.c: Likewise.
- * sh_destr.c: Likewise.
- * sh_init.c: Likewise.
- * sh_symbol.c: Likewise.
- * sparc_destr.c: Likewise.
- * sparc_init.c: Likewise.
- * sparc_symbol.c: Likewise.
- * x86_64_destr.c: Likewise.
- * x86_64_init.c: Likewise.
- * x86_64_symbol.c: Likewise.
-
- * x86_64_symbol.c (reloc_map_table): Fix entries for R_X86_64_64
- and R_X86_64_32..
-
-2005-02-06 Ulrich Drepper <drepper@redhat.com>
-
- * eblstrtab.c: A few cleanups.
-
- * eblopenbackend.c: Mark unused parameters.
-
- * eblgstrtab.c: Cleanups a few printf format strings.
-
- * Makefile.am: Cleanup AM_CFLAGS handling. Add -Wunused -Wextra.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Check for text relocations in constructed DSOs.
-
- * eblstrtab.c: Minor cleanups.
-
- * Makefile.am (AM_CFLAGS): Add -std=gnu99 and -fmudflap for MUDFLAP.
-
-2004-08-16 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Add LIBSTR definition with base name of
- the lib directory.
- * eblopenbackend.c (openbackend): Use LIBSTR instead of hardcoded
- lib in path to ebl modules.
-
-2004-04-01 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Add rules for ppc and ppc64 ebl module.
- * ppc_init..c: New file.
- * ppc_destr.c: New file.
- * ppc_symbol.c: New file.
- * libebl_ppc.h: New file.
- * libebl_ppc.map: New file.
- * ppc64_init..c: New file.
- * ppc64_destr.c: New file.
- * ppc64_symbol.c: New file.
- * libebl_ppc64.h: New file.
- * libebl_ppc64.map: New file.
-
-2004-01-20 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
-2004-01-18 Ulrich Drepper <drepper@redhat.com>
-
- * libeblP.h (_): Use elfutils domain.
-
-2004-01-16 Ulrich Drepper <drepper@redhat.com>
-
- * eblsectionname.c: Add support for SHN_BEFORE and SHN_AFTER.
-
-2004-01-13 Ulrich Drepper <drepper@redhat.com>
-
- * eblsegmenttypename.c ((ebl_segment_type_name): Add support for
- PT_GNU_RELRO.
-
-2004-01-08 Ulrich Drepper <drepper@redhat.com>
-
- * libebl.h: Remove last traces of libtool.
-
-2004-01-05 Ulrich Drepper <drepper@redhat.com>
-
- * elf-knowledge.h: Move to libelf subdir.
-
- * Makefile.am (EXTRA_DIST): Remove libebl.map.
- * libebl.map: Removed.
-
-2003-12-08 Ulrich Drepper <drepper@redhat.com>
-
- * eblsectiontypename.c (ebl_section_type_name): Add support for
- SHT_SUNW_move, SHT_CHECKSUM, and SHT_GNU_LIBLIST.
-
-2003-11-19 Ulrich Drepper <drepper@redhat.com>
-
- * ia64_symbol.c (ia64_dynamic_tag_name): New function.
- * libebl_ia64.h (ia64_dynamic_tag_name): Declare.
- * ia64_init.c (ia64_init): Register i164_dynamic_tag_name.
-
-2003-09-24 Ulrich Drepper <drepper@redhat.com>
-
- * ia64_init.c (ia64_init): Initialize segment_type_name callback.
- * ia64_symbol.c (ia64_segment_type_name): Define.
- * libebl_ia64.h (ia64_segment_type_name): Declare.
-
-2003-09-22 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Add -fpic.
-
-2003-08-14 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (install): Remove dependency on libebl.so.
-
-2003-08-13 Ulrich Drepper <drepper@redhat.com>
-
- * eblopenbackend.c: Adjust relative path to arch-specific DSOs
- assuming the code ends up in the application. Add second dlopen()
- try without any path, just the filename.
- * Makefile.in: Remove rules to build and install libebl.so.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/libebl/Makefile b/src/libebl/Makefile
deleted file mode 100644
index 244cdf51..00000000
--- a/src/libebl/Makefile
+++ /dev/null
@@ -1,763 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# libebl/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog
-subdir = libebl
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"
-LIBRARIES = $(lib_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libebl_a_AR = $(AR) $(ARFLAGS)
-libebl_a_LIBADD =
-am__objects_1 = eblopenbackend.$(OBJEXT) eblclosebackend.$(OBJEXT) \
- eblstrtab.$(OBJEXT) eblreloctypename.$(OBJEXT) \
- eblsegmenttypename.$(OBJEXT) eblsectiontypename.$(OBJEXT) \
- eblmachineflagname.$(OBJEXT) eblsymboltypename.$(OBJEXT) \
- ebldynamictagname.$(OBJEXT) eblsectionname.$(OBJEXT) \
- eblobjecttypename.$(OBJEXT) eblsymbolbindingname.$(OBJEXT) \
- eblbackendname.$(OBJEXT) eblshflagscombine.$(OBJEXT) \
- eblwstrtab.$(OBJEXT) eblgstrtab.$(OBJEXT) \
- eblosabiname.$(OBJEXT) eblmachineflagcheck.$(OBJEXT) \
- eblmachinesectionflagcheck.$(OBJEXT) \
- eblreloctypecheck.$(OBJEXT) eblrelocvaliduse.$(OBJEXT) \
- eblrelocsimpletype.$(OBJEXT) ebldynamictagcheck.$(OBJEXT) \
- eblcorenotetypename.$(OBJEXT) eblobjnotetypename.$(OBJEXT) \
- eblcorenote.$(OBJEXT) eblobjnote.$(OBJEXT) \
- ebldebugscnp.$(OBJEXT) eblgotpcreloccheck.$(OBJEXT) \
- eblcopyrelocp.$(OBJEXT) eblsectionstripp.$(OBJEXT) \
- eblelfclass.$(OBJEXT) eblelfdata.$(OBJEXT) \
- eblelfmachine.$(OBJEXT) ebl_check_special_symbol.$(OBJEXT) \
- eblbsspltp.$(OBJEXT) eblretval.$(OBJEXT) eblreginfo.$(OBJEXT) \
- eblnonerelocp.$(OBJEXT) eblrelativerelocp.$(OBJEXT) \
- eblsysvhashentrysize.$(OBJEXT) eblauxvinfo.$(OBJEXT) \
- eblcheckobjattr.$(OBJEXT) ebl_check_special_section.$(OBJEXT) \
- ebl_syscall_abi.$(OBJEXT) eblabicfi.$(OBJEXT) \
- eblstother.$(OBJEXT) eblinitreg.$(OBJEXT) \
- ebldwarftoregno.$(OBJEXT) eblnormalizepc.$(OBJEXT) \
- eblunwind.$(OBJEXT) eblresolvesym.$(OBJEXT) \
- eblcheckreloctargettype.$(OBJEXT)
-am_libebl_a_OBJECTS = $(am__objects_1)
-libebl_a_OBJECTS = $(am_libebl_a_OBJECTS)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libebl_a_SOURCES)
-DIST_SOURCES = $(libebl_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 1
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/libebl
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/libebl
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf -I$(srcdir)/../libdw \
- -I$(srcdir)/../libasm
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libebl_pic_a_OBJECTS)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-lib_LIBRARIES = libebl.a
-pkginclude_HEADERS = libebl.h
-gen_SOURCES = eblopenbackend.c eblclosebackend.c eblstrtab.c \
- eblreloctypename.c eblsegmenttypename.c \
- eblsectiontypename.c eblmachineflagname.c \
- eblsymboltypename.c ebldynamictagname.c eblsectionname.c \
- eblobjecttypename.c eblsymbolbindingname.c \
- eblbackendname.c eblshflagscombine.c eblwstrtab.c \
- eblgstrtab.c eblosabiname.c \
- eblmachineflagcheck.c eblmachinesectionflagcheck.c \
- eblreloctypecheck.c eblrelocvaliduse.c eblrelocsimpletype.c \
- ebldynamictagcheck.c eblcorenotetypename.c eblobjnotetypename.c \
- eblcorenote.c eblobjnote.c ebldebugscnp.c \
- eblgotpcreloccheck.c eblcopyrelocp.c eblsectionstripp.c \
- eblelfclass.c eblelfdata.c eblelfmachine.c \
- ebl_check_special_symbol.c eblbsspltp.c eblretval.c \
- eblreginfo.c eblnonerelocp.c eblrelativerelocp.c \
- eblsysvhashentrysize.c eblauxvinfo.c eblcheckobjattr.c \
- ebl_check_special_section.c ebl_syscall_abi.c eblabicfi.c \
- eblstother.c eblinitreg.c ebldwarftoregno.c eblnormalizepc.c \
- eblunwind.c eblresolvesym.c eblcheckreloctargettype.c
-
-libebl_a_SOURCES = $(gen_SOURCES)
-noinst_HEADERS = libeblP.h ebl-hooks.h
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libebl/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libebl/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- if test -f $$p; then \
- $(am__strip_dir) \
- echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
- ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir)
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-libebl.a: $(libebl_a_OBJECTS) $(libebl_a_DEPENDENCIES) $(EXTRA_libebl_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl.a
- $(AM_V_AR)$(libebl_a_AR) libebl.a $(libebl_a_OBJECTS) $(libebl_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/ebl_check_special_section.Po
-include ./$(DEPDIR)/ebl_check_special_symbol.Po
-include ./$(DEPDIR)/ebl_syscall_abi.Po
-include ./$(DEPDIR)/eblabicfi.Po
-include ./$(DEPDIR)/eblauxvinfo.Po
-include ./$(DEPDIR)/eblbackendname.Po
-include ./$(DEPDIR)/eblbsspltp.Po
-include ./$(DEPDIR)/eblcheckobjattr.Po
-include ./$(DEPDIR)/eblcheckreloctargettype.Po
-include ./$(DEPDIR)/eblclosebackend.Po
-include ./$(DEPDIR)/eblcopyrelocp.Po
-include ./$(DEPDIR)/eblcorenote.Po
-include ./$(DEPDIR)/eblcorenotetypename.Po
-include ./$(DEPDIR)/ebldebugscnp.Po
-include ./$(DEPDIR)/ebldwarftoregno.Po
-include ./$(DEPDIR)/ebldynamictagcheck.Po
-include ./$(DEPDIR)/ebldynamictagname.Po
-include ./$(DEPDIR)/eblelfclass.Po
-include ./$(DEPDIR)/eblelfdata.Po
-include ./$(DEPDIR)/eblelfmachine.Po
-include ./$(DEPDIR)/eblgotpcreloccheck.Po
-include ./$(DEPDIR)/eblgstrtab.Po
-include ./$(DEPDIR)/eblinitreg.Po
-include ./$(DEPDIR)/eblmachineflagcheck.Po
-include ./$(DEPDIR)/eblmachineflagname.Po
-include ./$(DEPDIR)/eblmachinesectionflagcheck.Po
-include ./$(DEPDIR)/eblnonerelocp.Po
-include ./$(DEPDIR)/eblnormalizepc.Po
-include ./$(DEPDIR)/eblobjecttypename.Po
-include ./$(DEPDIR)/eblobjnote.Po
-include ./$(DEPDIR)/eblobjnotetypename.Po
-include ./$(DEPDIR)/eblopenbackend.Po
-include ./$(DEPDIR)/eblosabiname.Po
-include ./$(DEPDIR)/eblreginfo.Po
-include ./$(DEPDIR)/eblrelativerelocp.Po
-include ./$(DEPDIR)/eblrelocsimpletype.Po
-include ./$(DEPDIR)/eblreloctypecheck.Po
-include ./$(DEPDIR)/eblreloctypename.Po
-include ./$(DEPDIR)/eblrelocvaliduse.Po
-include ./$(DEPDIR)/eblresolvesym.Po
-include ./$(DEPDIR)/eblretval.Po
-include ./$(DEPDIR)/eblsectionname.Po
-include ./$(DEPDIR)/eblsectionstripp.Po
-include ./$(DEPDIR)/eblsectiontypename.Po
-include ./$(DEPDIR)/eblsegmenttypename.Po
-include ./$(DEPDIR)/eblshflagscombine.Po
-include ./$(DEPDIR)/eblstother.Po
-include ./$(DEPDIR)/eblstrtab.Po
-include ./$(DEPDIR)/eblsymbolbindingname.Po
-include ./$(DEPDIR)/eblsymboltypename.Po
-include ./$(DEPDIR)/eblsysvhashentrysize.Po
-include ./$(DEPDIR)/eblunwind.Po
-include ./$(DEPDIR)/eblwstrtab.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-libLIBRARIES
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-libLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-libLIBRARIES install-man \
- install-pdf install-pdf-am install-pkgincludeHEADERS \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am uninstall-libLIBRARIES \
- uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libebl/Makefile.am b/src/libebl/Makefile.am
deleted file mode 100644
index ec4477b7..00000000
--- a/src/libebl/Makefile.am
+++ /dev/null
@@ -1,64 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 2000-2010, 2013 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-AM_CFLAGS += -fpic
-AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libdw -I$(srcdir)/../libasm
-VERSION = 1
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-
-lib_LIBRARIES = libebl.a
-
-pkginclude_HEADERS = libebl.h
-
-gen_SOURCES = eblopenbackend.c eblclosebackend.c eblstrtab.c \
- eblreloctypename.c eblsegmenttypename.c \
- eblsectiontypename.c eblmachineflagname.c \
- eblsymboltypename.c ebldynamictagname.c eblsectionname.c \
- eblobjecttypename.c eblsymbolbindingname.c \
- eblbackendname.c eblshflagscombine.c eblwstrtab.c \
- eblgstrtab.c eblosabiname.c \
- eblmachineflagcheck.c eblmachinesectionflagcheck.c \
- eblreloctypecheck.c eblrelocvaliduse.c eblrelocsimpletype.c \
- ebldynamictagcheck.c eblcorenotetypename.c eblobjnotetypename.c \
- eblcorenote.c eblobjnote.c ebldebugscnp.c \
- eblgotpcreloccheck.c eblcopyrelocp.c eblsectionstripp.c \
- eblelfclass.c eblelfdata.c eblelfmachine.c \
- ebl_check_special_symbol.c eblbsspltp.c eblretval.c \
- eblreginfo.c eblnonerelocp.c eblrelativerelocp.c \
- eblsysvhashentrysize.c eblauxvinfo.c eblcheckobjattr.c \
- ebl_check_special_section.c ebl_syscall_abi.c eblabicfi.c \
- eblstother.c eblinitreg.c ebldwarftoregno.c eblnormalizepc.c \
- eblunwind.c eblresolvesym.c eblcheckreloctargettype.c
-
-libebl_a_SOURCES = $(gen_SOURCES)
-
-noinst_HEADERS = libeblP.h ebl-hooks.h
-
-CLEANFILES += $(am_libebl_pic_a_OBJECTS)
diff --git a/src/libebl/Makefile.in b/src/libebl/Makefile.in
deleted file mode 100644
index ef32334f..00000000
--- a/src/libebl/Makefile.in
+++ /dev/null
@@ -1,763 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(noinst_HEADERS) $(pkginclude_HEADERS) ChangeLog
-subdir = libebl
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"
-LIBRARIES = $(lib_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libebl_a_AR = $(AR) $(ARFLAGS)
-libebl_a_LIBADD =
-am__objects_1 = eblopenbackend.$(OBJEXT) eblclosebackend.$(OBJEXT) \
- eblstrtab.$(OBJEXT) eblreloctypename.$(OBJEXT) \
- eblsegmenttypename.$(OBJEXT) eblsectiontypename.$(OBJEXT) \
- eblmachineflagname.$(OBJEXT) eblsymboltypename.$(OBJEXT) \
- ebldynamictagname.$(OBJEXT) eblsectionname.$(OBJEXT) \
- eblobjecttypename.$(OBJEXT) eblsymbolbindingname.$(OBJEXT) \
- eblbackendname.$(OBJEXT) eblshflagscombine.$(OBJEXT) \
- eblwstrtab.$(OBJEXT) eblgstrtab.$(OBJEXT) \
- eblosabiname.$(OBJEXT) eblmachineflagcheck.$(OBJEXT) \
- eblmachinesectionflagcheck.$(OBJEXT) \
- eblreloctypecheck.$(OBJEXT) eblrelocvaliduse.$(OBJEXT) \
- eblrelocsimpletype.$(OBJEXT) ebldynamictagcheck.$(OBJEXT) \
- eblcorenotetypename.$(OBJEXT) eblobjnotetypename.$(OBJEXT) \
- eblcorenote.$(OBJEXT) eblobjnote.$(OBJEXT) \
- ebldebugscnp.$(OBJEXT) eblgotpcreloccheck.$(OBJEXT) \
- eblcopyrelocp.$(OBJEXT) eblsectionstripp.$(OBJEXT) \
- eblelfclass.$(OBJEXT) eblelfdata.$(OBJEXT) \
- eblelfmachine.$(OBJEXT) ebl_check_special_symbol.$(OBJEXT) \
- eblbsspltp.$(OBJEXT) eblretval.$(OBJEXT) eblreginfo.$(OBJEXT) \
- eblnonerelocp.$(OBJEXT) eblrelativerelocp.$(OBJEXT) \
- eblsysvhashentrysize.$(OBJEXT) eblauxvinfo.$(OBJEXT) \
- eblcheckobjattr.$(OBJEXT) ebl_check_special_section.$(OBJEXT) \
- ebl_syscall_abi.$(OBJEXT) eblabicfi.$(OBJEXT) \
- eblstother.$(OBJEXT) eblinitreg.$(OBJEXT) \
- ebldwarftoregno.$(OBJEXT) eblnormalizepc.$(OBJEXT) \
- eblunwind.$(OBJEXT) eblresolvesym.$(OBJEXT) \
- eblcheckreloctargettype.$(OBJEXT)
-am_libebl_a_OBJECTS = $(am__objects_1)
-libebl_a_OBJECTS = $(am_libebl_a_OBJECTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libebl_a_SOURCES)
-DIST_SOURCES = $(libebl_a_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = 1
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf -I$(srcdir)/../libdw \
- -I$(srcdir)/../libasm
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) -fpic
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libebl_pic_a_OBJECTS)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-lib_LIBRARIES = libebl.a
-pkginclude_HEADERS = libebl.h
-gen_SOURCES = eblopenbackend.c eblclosebackend.c eblstrtab.c \
- eblreloctypename.c eblsegmenttypename.c \
- eblsectiontypename.c eblmachineflagname.c \
- eblsymboltypename.c ebldynamictagname.c eblsectionname.c \
- eblobjecttypename.c eblsymbolbindingname.c \
- eblbackendname.c eblshflagscombine.c eblwstrtab.c \
- eblgstrtab.c eblosabiname.c \
- eblmachineflagcheck.c eblmachinesectionflagcheck.c \
- eblreloctypecheck.c eblrelocvaliduse.c eblrelocsimpletype.c \
- ebldynamictagcheck.c eblcorenotetypename.c eblobjnotetypename.c \
- eblcorenote.c eblobjnote.c ebldebugscnp.c \
- eblgotpcreloccheck.c eblcopyrelocp.c eblsectionstripp.c \
- eblelfclass.c eblelfdata.c eblelfmachine.c \
- ebl_check_special_symbol.c eblbsspltp.c eblretval.c \
- eblreginfo.c eblnonerelocp.c eblrelativerelocp.c \
- eblsysvhashentrysize.c eblauxvinfo.c eblcheckobjattr.c \
- ebl_check_special_section.c ebl_syscall_abi.c eblabicfi.c \
- eblstother.c eblinitreg.c ebldwarftoregno.c eblnormalizepc.c \
- eblunwind.c eblresolvesym.c eblcheckreloctargettype.c
-
-libebl_a_SOURCES = $(gen_SOURCES)
-noinst_HEADERS = libeblP.h ebl-hooks.h
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libebl/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libebl/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- if test -f $$p; then \
- $(am__strip_dir) \
- echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
- ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir)
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-libebl.a: $(libebl_a_OBJECTS) $(libebl_a_DEPENDENCIES) $(EXTRA_libebl_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libebl.a
- $(AM_V_AR)$(libebl_a_AR) libebl.a $(libebl_a_OBJECTS) $(libebl_a_LIBADD)
- $(AM_V_at)$(RANLIB) libebl.a
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ebl_check_special_section.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ebl_check_special_symbol.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ebl_syscall_abi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblabicfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblauxvinfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblbackendname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblbsspltp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblcheckobjattr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblcheckreloctargettype.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblclosebackend.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblcopyrelocp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblcorenote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblcorenotetypename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ebldebugscnp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ebldwarftoregno.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ebldynamictagcheck.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ebldynamictagname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblelfclass.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblelfdata.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblelfmachine.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblgotpcreloccheck.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblgstrtab.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblinitreg.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblmachineflagcheck.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblmachineflagname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblmachinesectionflagcheck.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblnonerelocp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblnormalizepc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblobjecttypename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblobjnote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblobjnotetypename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblopenbackend.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblosabiname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblreginfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblrelativerelocp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblrelocsimpletype.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblreloctypecheck.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblreloctypename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblrelocvaliduse.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblresolvesym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblretval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblsectionname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblsectionstripp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblsectiontypename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblsegmenttypename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblshflagscombine.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblstother.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblstrtab.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblsymbolbindingname.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblsymboltypename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblsysvhashentrysize.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblunwind.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eblwstrtab.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libLIBRARIES mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-libLIBRARIES
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-libLIBRARIES cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-data install-data-am install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-libLIBRARIES install-man \
- install-pdf install-pdf-am install-pkgincludeHEADERS \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am uninstall-libLIBRARIES \
- uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libebl/ebl-hooks.h b/src/libebl/ebl-hooks.h
deleted file mode 100644
index 2e314464..00000000
--- a/src/libebl/ebl-hooks.h
+++ /dev/null
@@ -1,195 +0,0 @@
-/* Backend hook signatures internal interface for libebl.
- Copyright (C) 2000-2011, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* Return symbol representaton of object file type. */
-const char *EBLHOOK(object_type_name) (int, char *, size_t);
-
-/* Return symbolic representation of relocation type. */
-const char *EBLHOOK(reloc_type_name) (int, char *, size_t);
-
-/* Check relocation type. */
-bool EBLHOOK(reloc_type_check) (int);
-
-/* Check if relocation type is for simple absolute relocations. */
-Elf_Type EBLHOOK(reloc_simple_type) (Ebl *, int);
-
-/* Check relocation type use. */
-bool EBLHOOK(reloc_valid_use) (Elf *, int);
-
-/* Return true if the symbol type is that referencing the GOT. */
-bool EBLHOOK(gotpc_reloc_check) (Elf *, int);
-
-/* Return symbolic representation of segment type. */
-const char *EBLHOOK(segment_type_name) (int, char *, size_t);
-
-/* Return symbolic representation of section type. */
-const char *EBLHOOK(section_type_name) (int, char *, size_t);
-
-/* Return section name. */
-const char *EBLHOOK(section_name) (int, int, char *, size_t);
-
-/* Return next machine flag name. */
-const char *EBLHOOK(machine_flag_name) (GElf_Word *);
-
-/* Check whether machine flags are valid. */
-bool EBLHOOK(machine_flag_check) (GElf_Word);
-
-/* Check whether SHF_MASKPROC flag bits are valid. */
-bool EBLHOOK(machine_section_flag_check) (GElf_Xword);
-
-/* Check whether the section with the given index, header, and name
- is a special machine section that is valid despite a combination
- of flags or other details that are not generically valid. */
-bool EBLHOOK(check_special_section) (Ebl *, int,
- const GElf_Shdr *, const char *);
-
-/* Return symbolic representation of symbol type. */
-const char *EBLHOOK(symbol_type_name) (int, char *, size_t);
-
-/* Return symbolic representation of symbol binding. */
-const char *EBLHOOK(symbol_binding_name) (int, char *, size_t);
-
-/* Return symbolic representation of dynamic tag. */
-const char *EBLHOOK(dynamic_tag_name) (int64_t, char *, size_t);
-
-/* Check dynamic tag. */
-bool EBLHOOK(dynamic_tag_check) (int64_t);
-
-/* Combine section header flags values. */
-GElf_Word EBLHOOK(sh_flags_combine) (GElf_Word, GElf_Word);
-
-/* Return symbolic representation of OS ABI. */
-const char *EBLHOOK(osabi_name) (int, char *, size_t);
-
-/* Name of a note entry type for core files. */
-const char *EBLHOOK(core_note_type_name) (uint32_t, char *, size_t);
-
-/* Name of a note entry type for object files. */
-const char *EBLHOOK(object_note_type_name) (const char *, uint32_t,
- char *, size_t);
-
-/* Describe core note format. */
-int EBLHOOK(core_note) (const GElf_Nhdr *, const char *,
- GElf_Word *, size_t *, const Ebl_Register_Location **,
- size_t *, const Ebl_Core_Item **);
-
-/* Handle object file note. */
-bool EBLHOOK(object_note) (const char *, uint32_t, uint32_t, const char *);
-
-/* Check object attribute. */
-bool EBLHOOK(check_object_attribute) (Ebl *, const char *, int, uint64_t,
- const char **, const char **);
-
-/* Check reloc target section type. */
-bool EBLHOOK(check_reloc_target_type) (Ebl *, Elf64_Word);
-
-/* Describe auxv element type. */
-int EBLHOOK(auxv_info) (GElf_Xword, const char **, const char **);
-
-/* Check section name for being that of a debug informatino section. */
-bool EBLHOOK(debugscn_p) (const char *);
-
-/* Check whether given relocation is a copy relocation. */
-bool EBLHOOK(copy_reloc_p) (int);
-
-/* Check whether given relocation is a no-op relocation. */
-bool EBLHOOK(none_reloc_p) (int);
-
-/* Check whether given relocation is a relative relocation. */
-bool EBLHOOK(relative_reloc_p) (int);
-
-/* Check whether given symbol's value is ok despite normal checks. */
-bool EBLHOOK(check_special_symbol) (Elf *, GElf_Ehdr *, const GElf_Sym *,
- const char *, const GElf_Shdr *);
-
-/* Check whether only valid bits are set on the st_other symbol flag.
- Standard ST_VISIBILITY have already been masked off. */
-bool EBLHOOK(check_st_other_bits) (unsigned char st_other);
-
-/* Check if backend uses a bss PLT in this file. */
-bool EBLHOOK(bss_plt_p) (Elf *);
-
-/* Return location expression to find return value given the
- DW_AT_type DIE of a DW_TAG_subprogram DIE. */
-int EBLHOOK(return_value_location) (Dwarf_Die *functypedie,
- const Dwarf_Op **locp);
-
-/* Return register name information. */
-ssize_t EBLHOOK(register_info) (Ebl *ebl,
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type);
-
-/* Return system call ABI registers. */
-int EBLHOOK(syscall_abi) (Ebl *ebl, int *sp, int *pc,
- int *callno, int args[6]);
-
-/* Disassembler function. */
-int EBLHOOK(disasm) (const uint8_t **startp, const uint8_t *end,
- GElf_Addr addr, const char *fmt, DisasmOutputCB_t outcb,
- DisasmGetSymCB_t symcb, void *outcbarg, void *symcbarg);
-
-/* Supply the machine-specific state of CFI before CIE initial programs.
- Function returns 0 on success and -1 on error. */
-int EBLHOOK(abi_cfi) (Ebl *ebl, Dwarf_CIE *abi_info);
-
-/* Fetch process data from live TID and call SETFUNC one or more times.
- Method should be present only when EBL_FRAME_NREGS > 0, otherwise the
- backend doesn't support unwinding. */
-bool EBLHOOK(set_initial_registers_tid) (pid_t tid,
- ebl_tid_registers_t *setfunc,
- void *arg);
-
-/* Convert *REGNO as is in DWARF to a lower range suitable for
- Dwarf_Frame->REGS indexing. */
-bool EBLHOOK(dwarf_to_regno) (Ebl *ebl, unsigned *regno);
-
-/* Optionally modify *PC as fetched from inferior data into valid PC
- instruction pointer. */
-void EBLHOOK(normalize_pc) (Ebl *ebl, Dwarf_Addr *pc);
-
-/* Get previous frame state for an existing frame state. Method is called only
- if unwinder could not find CFI for current PC. PC is for the
- existing frame. SETFUNC sets register in the previous frame. GETFUNC gets
- register from the existing frame. Note that GETFUNC vs. SETFUNC act on
- a disjunct set of registers. READFUNC reads memory. ARG has to be passed
- for SETFUNC, GETFUNC and READFUNC. *SIGNAL_FRAMEP is initialized to false,
- it can be set to true if existing frame is a signal frame. SIGNAL_FRAMEP is
- never NULL. */
-bool EBLHOOK(unwind) (Ebl *ebl, Dwarf_Addr pc, ebl_tid_registers_t *setfunc,
- ebl_tid_registers_get_t *getfunc,
- ebl_pid_memory_read_t *readfunc, void *arg,
- bool *signal_framep);
-
-/* Returns true if the value can be resolved to an address in an
- allocated section, which will be returned in *ADDR.
- (e.g. function descriptor resolving) */
-bool EBLHOOK(resolve_sym_value) (Ebl *ebl, GElf_Addr *addr);
-
-/* Destructor for ELF backend handle. */
-void EBLHOOK(destr) (struct ebl *);
diff --git a/src/libebl/ebl_check_special_section.c b/src/libebl/ebl_check_special_section.c
deleted file mode 100644
index aabe44e6..00000000
--- a/src/libebl/ebl_check_special_section.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Check for a special section allowed to violate generic constraints.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_check_special_section (ebl, ndx, shdr, sname)
- Ebl *ebl;
- int ndx;
- const GElf_Shdr *shdr;
- const char *sname;
-{
- return ebl != NULL && ebl->check_special_section (ebl, ndx, shdr, sname);
-}
diff --git a/src/libebl/ebl_check_special_symbol.c b/src/libebl/ebl_check_special_symbol.c
deleted file mode 100644
index 8e702ba3..00000000
--- a/src/libebl/ebl_check_special_symbol.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Check special symbol's st_value.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <libeblP.h>
-
-
-bool
-ebl_check_special_symbol (ebl, ehdr, sym, name, destshdr)
- Ebl *ebl;
- GElf_Ehdr *ehdr;
- const GElf_Sym *sym;
- const char *name;
- const GElf_Shdr *destshdr;
-{
- if (ebl == NULL)
- return false;
-
- return ebl->check_special_symbol (ebl->elf, ehdr, sym, name, destshdr);
-}
diff --git a/src/libebl/ebl_syscall_abi.c b/src/libebl/ebl_syscall_abi.c
deleted file mode 100644
index de737037..00000000
--- a/src/libebl/ebl_syscall_abi.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Return system call ABI mapped to DWARF register numbers.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-int
-ebl_syscall_abi (ebl, sp, pc, callno, args)
- Ebl *ebl;
- int *sp;
- int *pc;
- int *callno;
- int args[6];
-{
- return ebl != NULL ? ebl->syscall_abi (ebl, sp, pc, callno, args) : -1;
-}
diff --git a/src/libebl/eblabicfi.c b/src/libebl/eblabicfi.c
deleted file mode 100644
index 20a29ea0..00000000
--- a/src/libebl/eblabicfi.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Return ABI-specific DWARF CFI details.
- Copyright (C) 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-int
-ebl_abi_cfi (ebl, abi_info)
- Ebl *ebl;
- Dwarf_CIE *abi_info;
-{
- return ebl == NULL ? -1 : ebl->abi_cfi (ebl, abi_info);
-}
diff --git a/src/libebl/eblauxvinfo.c b/src/libebl/eblauxvinfo.c
deleted file mode 100644
index 5c310b29..00000000
--- a/src/libebl/eblauxvinfo.c
+++ /dev/null
@@ -1,103 +0,0 @@
-/* Describe known auxv types.
- Copyright (C) 2007, 2008, 2009 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <byteswap.h>
-#include <endian.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stddef.h>
-#include <libeblP.h>
-
-#define AUXV_TYPES \
- TYPE (NULL, "") \
- TYPE (IGNORE, "") \
- TYPE (EXECFD, "d") \
- TYPE (EXECFN, "s") \
- TYPE (PHDR, "p") \
- TYPE (PHENT, "u") \
- TYPE (PHNUM, "u") \
- TYPE (PAGESZ, "u") \
- TYPE (BASE, "p") \
- TYPE (FLAGS, "x") \
- TYPE (ENTRY, "p") \
- TYPE (NOTELF, "") \
- TYPE (UID, "u") \
- TYPE (EUID, "u") \
- TYPE (GID, "u") \
- TYPE (EGID, "u") \
- TYPE (CLKTCK, "u") \
- TYPE (PLATFORM, "s") \
- TYPE (BASE_PLATFORM, "s") \
- TYPE (HWCAP, "x") \
- TYPE (FPUCW, "x") \
- TYPE (DCACHEBSIZE, "d") \
- TYPE (ICACHEBSIZE, "d") \
- TYPE (UCACHEBSIZE, "d") \
- TYPE (IGNOREPPC, "") \
- TYPE (SECURE, "u") \
- TYPE (SYSINFO, "p") \
- TYPE (SYSINFO_EHDR, "p") \
- TYPE (L1I_CACHESHAPE, "d") \
- TYPE (L1D_CACHESHAPE, "d") \
- TYPE (L2_CACHESHAPE, "d") \
- TYPE (L3_CACHESHAPE, "d") \
- TYPE (RANDOM, "p")
-
-static const struct
-{
- const char *name, *format;
-} auxv_types[] =
- {
-#define TYPE(name, fmt) [AT_##name] = { #name, fmt },
- AUXV_TYPES
-#undef TYPE
- };
-#define nauxv_types (sizeof auxv_types / sizeof auxv_types[0])
-
-int
-ebl_auxv_info (ebl, a_type, name, format)
- Ebl *ebl;
- GElf_Xword a_type;
- const char **name;
- const char **format;
-{
- int result = ebl->auxv_info (a_type, name, format);
- if (result == 0 && a_type < nauxv_types && auxv_types[a_type].name != NULL)
- {
- /* The machine specific function did not know this type. */
- *name = auxv_types[a_type].name;
- *format = auxv_types[a_type].format;
- result = 1;
- }
- return result;
-}
diff --git a/src/libebl/eblbackendname.c b/src/libebl/eblbackendname.c
deleted file mode 100644
index 92e576ed..00000000
--- a/src/libebl/eblbackendname.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Return backend name.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_backend_name (ebl)
- Ebl *ebl;
-{
- return ebl != NULL ? ebl->emulation : gettext ("No backend");
-}
diff --git a/src/libebl/eblbsspltp.c b/src/libebl/eblbsspltp.c
deleted file mode 100644
index 95a5d8af..00000000
--- a/src/libebl/eblbsspltp.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Check if backend uses a bss PLT.
- Copyright (C) 2005, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <libeblP.h>
-
-
-bool
-ebl_bss_plt_p (ebl)
- Ebl *ebl;
-{
- return ebl == NULL ? false : ebl->bss_plt_p (ebl->elf);
-}
diff --git a/src/libebl/eblcheckobjattr.c b/src/libebl/eblcheckobjattr.c
deleted file mode 100644
index b0481d2f..00000000
--- a/src/libebl/eblcheckobjattr.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Check object attributes.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <libeblP.h>
-
-
-bool
-ebl_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name)
- Ebl *ebl;
- const char *vendor;
- int tag;
- uint64_t value;
- const char **tag_name;
- const char **value_name;
-{
- if (ebl->check_object_attribute (ebl, vendor, tag, value,
- tag_name, value_name))
- return true;
-
- if (strcmp (vendor, "gnu"))
- return false;
-
- if (tag == 32)
- {
- *tag_name = "compatibility";
- return true;
- }
-
- return false;
-}
diff --git a/src/libebl/eblcheckreloctargettype.c b/src/libebl/eblcheckreloctargettype.c
deleted file mode 100644
index e135f8a3..00000000
--- a/src/libebl/eblcheckreloctargettype.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Check whether a section type is a valid target for relocation.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type)
-{
- if (ebl->check_reloc_target_type (ebl, sh_type))
- return true;
-
- if (sh_type == SHT_PROGBITS || sh_type == SHT_NOBITS)
- return true;
-
- return false;
-}
diff --git a/src/libebl/eblclosebackend.c b/src/libebl/eblclosebackend.c
deleted file mode 100644
index 67fbdfe9..00000000
--- a/src/libebl/eblclosebackend.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Free ELF backend handle.
- Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <dlfcn.h>
-#include <stdlib.h>
-
-#include <libeblP.h>
-
-
-void
-ebl_closebackend (Ebl *ebl)
-{
- if (ebl != NULL)
- {
- /* Run the destructor. */
- ebl->destr (ebl);
-
- /* Close the dynamically loaded object. */
- if (ebl->dlhandle != NULL)
- (void) dlclose (ebl->dlhandle);
-
- /* Free the resources. */
- free (ebl);
- }
-}
diff --git a/src/libebl/eblcopyrelocp.c b/src/libebl/eblcopyrelocp.c
deleted file mode 100644
index 702f8c7c..00000000
--- a/src/libebl/eblcopyrelocp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Check whether given relocation is a copy relocation.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_copy_reloc_p (ebl, reloc)
- Ebl *ebl;
- int reloc;
-{
- return ebl->copy_reloc_p (reloc);
-}
diff --git a/src/libebl/eblcorenote.c b/src/libebl/eblcorenote.c
deleted file mode 100644
index 2a79278d..00000000
--- a/src/libebl/eblcorenote.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/* Describe known core note formats.
- Copyright (C) 2007, 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <byteswap.h>
-#include <endian.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stddef.h>
-#include <libeblP.h>
-
-
-int
-ebl_core_note (ebl, nhdr, name,
- regs_offset, nregloc, reglocs, nitems, items)
- Ebl *ebl;
- const GElf_Nhdr *nhdr;
- const char *name;
- GElf_Word *regs_offset;
- size_t *nregloc;
- const Ebl_Register_Location **reglocs;
- size_t *nitems;
- const Ebl_Core_Item **items;
-{
- int result = ebl->core_note (nhdr, name,
- regs_offset, nregloc, reglocs, nitems, items);
- if (result == 0)
- {
- /* The machine specific function did not know this type. */
-
- *regs_offset = 0;
- *nregloc = 0;
- *reglocs = NULL;
- switch (nhdr->n_type)
- {
-#define ITEMS(type, table) \
- case type: \
- *items = table; \
- *nitems = sizeof table / sizeof table[0]; \
- result = 1; \
- break
-
- static const Ebl_Core_Item platform[] =
- {
- {
- .name = "Platform",
- .type = ELF_T_BYTE, .count = 0, .format = 's'
- }
- };
- ITEMS (NT_PLATFORM, platform);
-
-#undef ITEMS
- }
- }
-
- return result;
-}
diff --git a/src/libebl/eblcorenotetypename.c b/src/libebl/eblcorenotetypename.c
deleted file mode 100644
index b6db6cd8..00000000
--- a/src/libebl/eblcorenotetypename.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* Return note type name.
- Copyright (C) 2002, 2007, 2008, 2012, 2013 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <stdio.h>
-#include <libeblP.h>
-
-const char *
-ebl_core_note_type_name (ebl, type, buf, len)
- Ebl *ebl;
- uint32_t type;
- char *buf;
- size_t len;
-{
- const char *res = ebl->core_note_type_name (type, buf, len);
-
- if (res == NULL)
- {
- static const char *knowntypes[] =
- {
-#define KNOWNSTYPE(name) [NT_##name] = #name
- KNOWNSTYPE (PRSTATUS),
- KNOWNSTYPE (FPREGSET),
- KNOWNSTYPE (PRPSINFO),
- KNOWNSTYPE (TASKSTRUCT),
- KNOWNSTYPE (PLATFORM),
- KNOWNSTYPE (AUXV),
- KNOWNSTYPE (GWINDOWS),
- KNOWNSTYPE (ASRS),
- KNOWNSTYPE (PSTATUS),
- KNOWNSTYPE (PSINFO),
- KNOWNSTYPE (PRCRED),
- KNOWNSTYPE (UTSNAME),
- KNOWNSTYPE (LWPSTATUS),
- KNOWNSTYPE (LWPSINFO),
- KNOWNSTYPE (PRFPXREG)
-#undef KNOWNSTYPE
- };
-
- /* Handle standard names. */
- if (type < sizeof (knowntypes) / sizeof (knowntypes[0])
- && knowntypes[type] != NULL)
- res = knowntypes[type];
- else
- switch (type)
- {
-#define KNOWNSTYPE(name) case NT_##name: res = #name; break
- KNOWNSTYPE (PRXFPREG);
- KNOWNSTYPE (PPC_VMX);
- KNOWNSTYPE (PPC_SPE);
- KNOWNSTYPE (PPC_VSX);
- KNOWNSTYPE (386_TLS);
- KNOWNSTYPE (386_IOPERM);
- KNOWNSTYPE (X86_XSTATE);
- KNOWNSTYPE (S390_HIGH_GPRS);
- KNOWNSTYPE (S390_TIMER);
- KNOWNSTYPE (S390_TODCMP);
- KNOWNSTYPE (S390_TODPREG);
- KNOWNSTYPE (S390_CTRS);
- KNOWNSTYPE (S390_PREFIX);
- KNOWNSTYPE (S390_LAST_BREAK);
- KNOWNSTYPE (S390_SYSTEM_CALL);
- KNOWNSTYPE (ARM_VFP);
- KNOWNSTYPE (ARM_TLS);
- KNOWNSTYPE (ARM_HW_BREAK);
- KNOWNSTYPE (ARM_HW_WATCH);
- KNOWNSTYPE (SIGINFO);
- KNOWNSTYPE (FILE);
-#undef KNOWNSTYPE
-
- default:
- snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
-
- res = buf;
- }
- }
-
- return res;
-}
diff --git a/src/libebl/ebldebugscnp.c b/src/libebl/ebldebugscnp.c
deleted file mode 100644
index 01a56754..00000000
--- a/src/libebl/ebldebugscnp.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Check section name for being that of a debug informatino section.
- Copyright (C) 2002, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdint.h>
-#include <libeblP.h>
-
-
-bool
-ebl_debugscn_p (ebl, name)
- Ebl *ebl;
- const char *name;
-{
- return name != NULL && ebl->debugscn_p (name);
-}
diff --git a/src/libebl/ebldwarftoregno.c b/src/libebl/ebldwarftoregno.c
deleted file mode 100644
index 8fb85401..00000000
--- a/src/libebl/ebldwarftoregno.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Convert *REGNO as is in DWARF to a lower range.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-bool
-ebl_dwarf_to_regno (Ebl *ebl, unsigned *regno)
-{
- if (ebl == NULL)
- return false;
- return ebl->dwarf_to_regno == NULL ? true : ebl->dwarf_to_regno (ebl, regno);
-}
diff --git a/src/libebl/ebldynamictagcheck.c b/src/libebl/ebldynamictagcheck.c
deleted file mode 100644
index 17acee04..00000000
--- a/src/libebl/ebldynamictagcheck.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Check dynamic tag.
- Copyright (C) 2001, 2002, 2006 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <libeblP.h>
-
-
-bool
-ebl_dynamic_tag_check (ebl, tag)
- Ebl *ebl;
- int64_t tag;
-{
- bool res = ebl != NULL ? ebl->dynamic_tag_check (tag) : false;
-
- if (!res
- && ((tag >= 0 && tag < DT_NUM)
- || (tag >= DT_GNU_PRELINKED && tag <= DT_SYMINENT)
- || (tag >= DT_GNU_HASH && tag <= DT_SYMINFO)
- || tag == DT_VERSYM
- || (tag >= DT_RELACOUNT && tag <= DT_VERNEEDNUM)
- || tag == DT_AUXILIARY
- || tag == DT_FILTER))
- res = true;
-
- return res;
-}
diff --git a/src/libebl/ebldynamictagname.c b/src/libebl/ebldynamictagname.c
deleted file mode 100644
index 6b09ee64..00000000
--- a/src/libebl/ebldynamictagname.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/* Return dynamic tag name.
- Copyright (C) 2001, 2002, 2006, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_dynamic_tag_name (ebl, tag, buf, len)
- Ebl *ebl;
- int64_t tag;
- char *buf;
- size_t len;
-{
- const char *res = ebl != NULL ? ebl->dynamic_tag_name (tag, buf, len) : NULL;
-
- if (res == NULL)
- {
- if (tag >= 0 && tag < DT_NUM)
- {
- static const char *stdtags[] =
- {
- "NULL", "NEEDED", "PLTRELSZ", "PLTGOT", "HASH", "STRTAB",
- "SYMTAB", "RELA", "RELASZ", "RELAENT", "STRSZ", "SYMENT",
- "INIT", "FINI", "SONAME", "RPATH", "SYMBOLIC", "REL", "RELSZ",
- "RELENT", "PLTREL", "DEBUG", "TEXTREL", "JMPREL", "BIND_NOW",
- "INIT_ARRAY", "FINI_ARRAY", "INIT_ARRAYSZ", "FINI_ARRAYSZ",
- "RUNPATH", "FLAGS", "ENCODING", "PREINIT_ARRAY",
- "PREINIT_ARRAYSZ"
- };
-
- res = stdtags[tag];
- }
- else if (tag == DT_VERSYM)
- res = "VERSYM";
- else if (tag >= DT_GNU_PRELINKED && tag <= DT_SYMINENT)
- {
- static const char *valrntags[] =
- {
- "GNU_PRELINKED", "GNU_CONFLICTSZ", "GNU_LIBLISTSZ",
- "CHECKSUM", "PLTPADSZ", "MOVEENT", "MOVESZ", "FEATURE_1",
- "POSFLAG_1", "SYMINSZ", "SYMINENT"
- };
-
- res = valrntags[tag - DT_GNU_PRELINKED];
- }
- else if (tag >= DT_GNU_HASH && tag <= DT_SYMINFO)
- {
- static const char *addrrntags[] =
- {
- "GNU_HASH", "TLSDESC_PLT", "TLSDESC_GOT",
- "GNU_CONFLICT", "GNU_LIBLIST", "CONFIG", "DEPAUDIT", "AUDIT",
- "PLTPAD", "MOVETAB", "SYMINFO"
- };
-
- res = addrrntags[tag - DT_GNU_HASH];
- }
- else if (tag >= DT_RELACOUNT && tag <= DT_VERNEEDNUM)
- {
- static const char *suntags[] =
- {
- "RELACOUNT", "RELCOUNT", "FLAGS_1", "VERDEF", "VERDEFNUM",
- "VERNEED", "VERNEEDNUM"
- };
-
- res = suntags[tag - DT_RELACOUNT];
- }
- else if (tag == DT_AUXILIARY)
- res = "AUXILIARY";
- else if (tag == DT_FILTER)
- res = "FILTER";
- else
- {
- snprintf (buf, len, gettext ("<unknown>: %#" PRIx64), tag);
-
- res = buf;
-
- }
- }
-
- return res;
-}
diff --git a/src/libebl/eblelfclass.c b/src/libebl/eblelfclass.c
deleted file mode 100644
index 62d12836..00000000
--- a/src/libebl/eblelfclass.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Return ELF class.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-int
-ebl_get_elfclass (ebl)
- Ebl *ebl;
-{
- return ebl->class;
-}
diff --git a/src/libebl/eblelfdata.c b/src/libebl/eblelfdata.c
deleted file mode 100644
index b09dbb5c..00000000
--- a/src/libebl/eblelfdata.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Return ELF data encoding.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-int
-ebl_get_elfdata (ebl)
- Ebl *ebl;
-{
- return ebl->data;
-}
diff --git a/src/libebl/eblelfmachine.c b/src/libebl/eblelfmachine.c
deleted file mode 100644
index cd961e7b..00000000
--- a/src/libebl/eblelfmachine.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Return ELF machine.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-int
-ebl_get_elfmachine (ebl)
- Ebl *ebl;
-{
- return ebl->machine;
-}
diff --git a/src/libebl/eblgotpcreloccheck.c b/src/libebl/eblgotpcreloccheck.c
deleted file mode 100644
index 55625de3..00000000
--- a/src/libebl/eblgotpcreloccheck.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Return true if the symbol type is that referencing the GOT. E.g.,
- R_386_GOTPC.
- Copyright (C) 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_gotpc_reloc_check (ebl, reloc)
- Ebl *ebl;
- int reloc;
-{
- return ebl != NULL ? ebl->gotpc_reloc_check (ebl->elf, reloc) : false;
-}
diff --git a/src/libebl/eblgstrtab.c b/src/libebl/eblgstrtab.c
deleted file mode 100644
index 0d92c00a..00000000
--- a/src/libebl/eblgstrtab.c
+++ /dev/null
@@ -1,365 +0,0 @@
-/* Generic string table handling.
- Copyright (C) 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <inttypes.h>
-#include <libelf.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/param.h>
-
-#include "libebl.h"
-
-#ifndef MIN
-# define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
-
-struct Ebl_GStrent
-{
- const char *string;
- size_t len;
- struct Ebl_GStrent *next;
- struct Ebl_GStrent *left;
- struct Ebl_GStrent *right;
- size_t offset;
- unsigned int width;
- char reverse[0];
-};
-
-
-struct memoryblock
-{
- struct memoryblock *next;
- char memory[0];
-};
-
-
-struct Ebl_GStrtab
-{
- struct Ebl_GStrent *root;
- struct memoryblock *memory;
- char *backp;
- size_t left;
- size_t total;
- unsigned int width;
- bool nullstr;
-
- struct Ebl_GStrent null;
-};
-
-
-/* Cache for the pagesize. We correct this value a bit so that `malloc'
- is not allocating more than a page. */
-static size_t ps;
-
-
-struct Ebl_GStrtab *
-ebl_gstrtabinit (unsigned int width, bool nullstr)
-{
- struct Ebl_GStrtab *ret;
-
- if (ps == 0)
- {
- ps = sysconf (_SC_PAGESIZE) - 2 * sizeof (void *);
- assert (sizeof (struct memoryblock) < ps);
- }
-
- ret = (struct Ebl_GStrtab *) calloc (1, sizeof (struct Ebl_GStrtab));
- if (ret != NULL)
- {
- ret->width = width;
- ret->nullstr = nullstr;
-
- if (nullstr)
- {
- ret->null.len = 1;
- ret->null.string = (char *) calloc (1, width);
- }
- }
-
- return ret;
-}
-
-
-static void
-morememory (struct Ebl_GStrtab *st, size_t len)
-{
- struct memoryblock *newmem;
-
- if (len < ps)
- len = ps;
- newmem = (struct memoryblock *) malloc (len);
- if (newmem == NULL)
- abort ();
-
- newmem->next = st->memory;
- st->memory = newmem;
- st->backp = newmem->memory;
- st->left = len - offsetof (struct memoryblock, memory);
-}
-
-
-void
-ebl_gstrtabfree (struct Ebl_GStrtab *st)
-{
- struct memoryblock *mb = st->memory;
-
- while (mb != NULL)
- {
- void *old = mb;
- mb = mb->next;
- free (old);
- }
-
- if (st->null.string != NULL)
- free ((char *) st->null.string);
-
- free (st);
-}
-
-
-static struct Ebl_GStrent *
-newstring (struct Ebl_GStrtab *st, const char *str, size_t len)
-{
- /* Compute the amount of padding needed to make the structure aligned. */
- size_t align = ((__alignof__ (struct Ebl_GStrent)
- - (((uintptr_t) st->backp)
- & (__alignof__ (struct Ebl_GStrent) - 1)))
- & (__alignof__ (struct Ebl_GStrent) - 1));
-
- /* Make sure there is enough room in the memory block. */
- if (st->left < align + sizeof (struct Ebl_GStrent) + len * st->width)
- {
- morememory (st, sizeof (struct Ebl_GStrent) + len * st->width);
- align = 0;
- }
-
- /* Create the reserved string. */
- struct Ebl_GStrent *newstr = (struct Ebl_GStrent *) (st->backp + align);
- newstr->string = str;
- newstr->len = len;
- newstr->width = st->width;
- newstr->next = NULL;
- newstr->left = NULL;
- newstr->right = NULL;
- newstr->offset = 0;
- for (int i = len - 2; i >= 0; --i)
- for (int j = st->width - 1; j >= 0; --j)
- newstr->reverse[i * st->width + j] = str[(len - 2 - i) * st->width + j];
- for (size_t j = 0; j < st->width; ++j)
- newstr->reverse[(len - 1) * st->width + j] = '\0';
- st->backp += align + sizeof (struct Ebl_GStrent) + len * st->width;
- st->left -= align + sizeof (struct Ebl_GStrent) + len * st->width;
-
- return newstr;
-}
-
-
-/* XXX This function should definitely be rewritten to use a balancing
- tree algorith (AVL, red-black trees). For now a simple, correct
- implementation is enough. */
-static struct Ebl_GStrent **
-searchstring (struct Ebl_GStrent **sep, struct Ebl_GStrent *newstr)
-{
- int cmpres;
-
- /* More strings? */
- if (*sep == NULL)
- {
- *sep = newstr;
- return sep;
- }
-
- /* Compare the strings. */
- cmpres = memcmp ((*sep)->reverse, newstr->reverse,
- (MIN ((*sep)->len, newstr->len) - 1) * (*sep)->width);
- if (cmpres == 0)
- /* We found a matching string. */
- return sep;
- else if (cmpres > 0)
- return searchstring (&(*sep)->left, newstr);
- else
- return searchstring (&(*sep)->right, newstr);
-}
-
-
-/* Add new string. The actual string is assumed to be permanent. */
-struct Ebl_GStrent *
-ebl_gstrtabadd (struct Ebl_GStrtab *st, const char *str, size_t len)
-{
- struct Ebl_GStrent *newstr;
- struct Ebl_GStrent **sep;
-
- /* Compute the string length if the caller doesn't know it. */
- if (len == 0)
- {
- size_t j;
-
- do
- for (j = 0; j < st->width; ++j)
- if (str[len * st->width + j] != '\0')
- break;
- while (j == st->width && ++len);
- }
-
- /* Make sure all "" strings get offset 0 but only if the table was
- created with a special null entry in mind. */
- if (len == 1 && st->null.string != NULL)
- return &st->null;
-
- /* Allocate memory for the new string and its associated information. */
- newstr = newstring (st, str, len);
-
- /* Search in the array for the place to insert the string. If there
- is no string with matching prefix and no string with matching
- leading substring, create a new entry. */
- sep = searchstring (&st->root, newstr);
- if (*sep != newstr)
- {
- /* This is not the same entry. This means we have a prefix match. */
- if ((*sep)->len > newstr->len)
- {
- struct Ebl_GStrent *subs;
-
- /* Check whether we already know this string. */
- for (subs = (*sep)->next; subs != NULL; subs = subs->next)
- if (subs->len == newstr->len)
- {
- /* We have an exact match with a substring. Free the memory
- we allocated. */
- st->left += (st->backp - (char *) newstr) * st->width;
- st->backp = (char *) newstr;
-
- return subs;
- }
-
- /* We have a new substring. This means we don't need the reverse
- string of this entry anymore. */
- st->backp -= newstr->len;
- st->left += newstr->len;
-
- newstr->next = (*sep)->next;
- (*sep)->next = newstr;
- }
- else if ((*sep)->len != newstr->len)
- {
- /* When we get here it means that the string we are about to
- add has a common prefix with a string we already have but
- it is longer. In this case we have to put it first. */
- st->total += newstr->len - (*sep)->len;
- newstr->next = *sep;
- newstr->left = (*sep)->left;
- newstr->right = (*sep)->right;
- *sep = newstr;
- }
- else
- {
- /* We have an exact match. Free the memory we allocated. */
- st->left += (st->backp - (char *) newstr) * st->width;
- st->backp = (char *) newstr;
-
- newstr = *sep;
- }
- }
- else
- st->total += newstr->len;
-
- return newstr;
-}
-
-
-static void
-copystrings (struct Ebl_GStrent *nodep, char **freep, size_t *offsetp)
-{
- struct Ebl_GStrent *subs;
-
- if (nodep->left != NULL)
- copystrings (nodep->left, freep, offsetp);
-
- /* Process the current node. */
- nodep->offset = *offsetp;
- *freep = (char *) mempcpy (*freep, nodep->string, nodep->len * nodep->width);
- *offsetp += nodep->len * nodep->width;
-
- for (subs = nodep->next; subs != NULL; subs = subs->next)
- {
- assert (subs->len < nodep->len);
- subs->offset = nodep->offset + (nodep->len - subs->len) * nodep->width;
- assert (subs->offset != 0 || subs->string[0] == '\0');
- }
-
- if (nodep->right != NULL)
- copystrings (nodep->right, freep, offsetp);
-}
-
-
-void
-ebl_gstrtabfinalize (struct Ebl_GStrtab *st, Elf_Data *data)
-{
- size_t copylen;
- char *endp;
- size_t nulllen = st->nullstr ? st->width : 0;
-
- /* Fill in the information. */
- data->d_buf = malloc (st->total + nulllen);
- if (data->d_buf == NULL)
- abort ();
-
- /* The first byte must always be zero if we created the table with a
- null string. */
- if (st->nullstr)
- memset (data->d_buf, '\0', st->width);
-
- data->d_type = ELF_T_BYTE;
- data->d_size = st->total + nulllen;
- data->d_off = 0;
- data->d_align = 1;
- data->d_version = EV_CURRENT;
-
- /* Now run through the tree and add all the string while also updating
- the offset members of the elfstrent records. */
- endp = (char *) data->d_buf + nulllen;
- copylen = nulllen;
- copystrings (st->root, &endp, &copylen);
- assert (copylen == st->total * st->width + nulllen);
-}
-
-
-size_t
-ebl_gstrtaboffset (struct Ebl_GStrent *se)
-{
- return se->offset;
-}
diff --git a/src/libebl/eblinitreg.c b/src/libebl/eblinitreg.c
deleted file mode 100644
index 5729b3cc..00000000
--- a/src/libebl/eblinitreg.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* Fetch live process Dwfl_Frame from PID.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-#include <assert.h>
-
-bool
-ebl_set_initial_registers_tid (Ebl *ebl, pid_t tid,
- ebl_tid_registers_t *setfunc,
- void *arg)
-{
- /* Otherwise caller could not allocate THREAD frame of proper size.
- If set_initial_registers_tid is unsupported then FRAME_NREGS is zero. */
- assert (ebl->set_initial_registers_tid != NULL);
- return ebl->set_initial_registers_tid (tid, setfunc, arg);
-}
-
-size_t
-ebl_frame_nregs (Ebl *ebl)
-{
- return ebl == NULL ? 0 : ebl->frame_nregs;
-}
-
-GElf_Addr
-ebl_func_addr_mask (Ebl *ebl)
-{
- return ((ebl == NULL || ebl->func_addr_mask == 0)
- ? ~(GElf_Addr)0 : ebl->func_addr_mask);
-}
diff --git a/src/libebl/eblmachineflagcheck.c b/src/libebl/eblmachineflagcheck.c
deleted file mode 100644
index d6d79318..00000000
--- a/src/libebl/eblmachineflagcheck.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Check machine flag.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_machine_flag_check (ebl, flags)
- Ebl *ebl;
- Elf64_Word flags;
-{
- return ebl != NULL ? ebl->machine_flag_check (flags) : (flags == 0);
-}
diff --git a/src/libebl/eblmachineflagname.c b/src/libebl/eblmachineflagname.c
deleted file mode 100644
index e392f5a4..00000000
--- a/src/libebl/eblmachineflagname.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/* Return machine flag names.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <string.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_machine_flag_name (ebl, flags, buf, len)
- Ebl *ebl;
- Elf64_Word flags;
- char *buf;
- size_t len;
-{
- const char *res;
-
- if (flags == 0)
- res = "";
- else
- {
- char *cp = buf;
- int first = 1;
- const char *machstr;
- size_t machstrlen;
-
- do
- {
- if (! first)
- {
- if (cp + 1 >= buf + len)
- break;
- *cp++ = ',';
- }
-
- machstr = ebl != NULL ? ebl->machine_flag_name (&flags) : NULL;
- if (machstr == NULL)
- {
- /* No more known flag. */
- snprintf (cp, buf + len - cp, "%#x", flags);
- break;
- }
-
- machstrlen = strlen (machstr) + 1;
- if ((size_t) (buf + len - cp) < machstrlen)
- {
- *((char *) mempcpy (cp, machstr, buf + len - cp - 1)) = '\0';
- break;
- }
-
- cp = mempcpy (cp, machstr, machstrlen);
-
- first = 0;
- }
- while (flags != 0);
-
- res = buf;
- }
-
- return res;
-}
diff --git a/src/libebl/eblmachinesectionflagcheck.c b/src/libebl/eblmachinesectionflagcheck.c
deleted file mode 100644
index 671eb8c5..00000000
--- a/src/libebl/eblmachinesectionflagcheck.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Check SHF_MASKPROC flags.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_machine_section_flag_check (ebl, flags)
- Ebl *ebl;
- GElf_Xword flags;
-{
- return ebl != NULL ? ebl->machine_section_flag_check (flags) : (flags == 0);
-}
diff --git a/src/libebl/eblnonerelocp.c b/src/libebl/eblnonerelocp.c
deleted file mode 100644
index 07c6b0e3..00000000
--- a/src/libebl/eblnonerelocp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Check whether given relocation is a no-op relocation.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2006.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_none_reloc_p (ebl, reloc)
- Ebl *ebl;
- int reloc;
-{
- return ebl->none_reloc_p (reloc);
-}
diff --git a/src/libebl/eblnormalizepc.c b/src/libebl/eblnormalizepc.c
deleted file mode 100644
index a5fea77e..00000000
--- a/src/libebl/eblnormalizepc.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Modify PC as fetched from inferior data into valid PC.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-void
-ebl_normalize_pc (Ebl *ebl, Dwarf_Addr *pc)
-{
- if (ebl != NULL && ebl->normalize_pc != NULL)
- ebl->normalize_pc (ebl, pc);
-}
diff --git a/src/libebl/eblobjecttypename.c b/src/libebl/eblobjecttypename.c
deleted file mode 100644
index 1a2c8e87..00000000
--- a/src/libebl/eblobjecttypename.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* Return object file type name.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_object_type_name (ebl, object, buf, len)
- Ebl *ebl;
- int object;
- char *buf;
- size_t len;
-{
- const char *res;
-
- res = ebl != NULL ? ebl->object_type_name (object, buf, len) : NULL;
- if (res == NULL)
- {
- /* Handle OS-specific section names. */
- if (object >= ET_LOOS && object <= ET_HIOS)
- snprintf (buf, len, "LOOS+%x", object - ET_LOOS);
- /* Handle processor-specific section names. */
- else if (object >= ET_LOPROC && object <= ET_HIPROC)
- snprintf (buf, len, "LOPROC+%x", object - ET_LOPROC);
- else
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), object);
-
- res = buf;
- }
-
- return res;
-}
diff --git a/src/libebl/eblobjnote.c b/src/libebl/eblobjnote.c
deleted file mode 100644
index d1fe8210..00000000
--- a/src/libebl/eblobjnote.c
+++ /dev/null
@@ -1,220 +0,0 @@
-/* Print contents of object file note.
- Copyright (C) 2002, 2007, 2009, 2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <stdio.h>
-#include <string.h>
-#include <libeblP.h>
-
-
-void
-ebl_object_note (ebl, name, type, descsz, desc)
- Ebl *ebl;
- const char *name;
- uint32_t type;
- uint32_t descsz;
- const char *desc;
-{
- if (! ebl->object_note (name, type, descsz, desc))
- /* The machine specific function did not know this type. */
-
- if (strcmp ("stapsdt", name) == 0)
- {
- if (type != 3)
- {
- printf (gettext ("unknown SDT version %u\n"), type);
- return;
- }
-
- /* Descriptor starts with three addresses, pc, base ref and
- semaphore. Then three zero terminated strings provider,
- name and arguments. */
-
- union
- {
- Elf64_Addr a64[3];
- Elf32_Addr a32[3];
- } addrs;
-
- size_t addrs_size = gelf_fsize (ebl->elf, ELF_T_ADDR, 3, EV_CURRENT);
- if (descsz < addrs_size + 3)
- {
- invalid_sdt:
- printf (gettext ("invalid SDT probe descriptor\n"));
- return;
- }
-
- Elf_Data src =
- {
- .d_type = ELF_T_ADDR, .d_version = EV_CURRENT,
- .d_buf = (void *) desc, .d_size = addrs_size
- };
-
- Elf_Data dst =
- {
- .d_type = ELF_T_ADDR, .d_version = EV_CURRENT,
- .d_buf = &addrs, .d_size = addrs_size
- };
-
- if (gelf_xlatetom (ebl->elf, &dst, &src,
- elf_getident (ebl->elf, NULL)[EI_DATA]) == NULL)
- {
- printf ("%s\n", elf_errmsg (-1));
- return;
- }
-
- const char *provider = desc + addrs_size;
- const char *pname = memchr (provider, '\0', desc + descsz - provider);
- if (pname == NULL)
- goto invalid_sdt;
-
- ++pname;
- const char *args = memchr (pname, '\0', desc + descsz - pname);
- if (args == NULL ||
- memchr (++args, '\0', desc + descsz - pname) != desc + descsz - 1)
- goto invalid_sdt;
-
- GElf_Addr pc;
- GElf_Addr base;
- GElf_Addr sem;
- if (gelf_getclass (ebl->elf) == ELFCLASS32)
- {
- pc = addrs.a32[0];
- base = addrs.a32[1];
- sem = addrs.a32[2];
- }
- else
- {
- pc = addrs.a64[0];
- base = addrs.a64[1];
- sem = addrs.a64[2];
- }
-
- printf (gettext (" PC: "));
- printf ("%#" PRIx64 ",", pc);
- printf (gettext (" Base: "));
- printf ("%#" PRIx64 ",", base);
- printf (gettext (" Semaphore: "));
- printf ("%#" PRIx64 "\n", sem);
- printf (gettext (" Provider: "));
- printf ("%s,", provider);
- printf (gettext (" Name: "));
- printf ("%s,", pname);
- printf (gettext (" Args: "));
- printf ("'%s'\n", args);
- return;
- }
-
- switch (type)
- {
- case NT_GNU_BUILD_ID:
- if (strcmp (name, "GNU") == 0 && descsz > 0)
- {
- printf (gettext (" Build ID: "));
- uint_fast32_t i;
- for (i = 0; i < descsz - 1; ++i)
- printf ("%02" PRIx8, (uint8_t) desc[i]);
- printf ("%02" PRIx8 "\n", (uint8_t) desc[i]);
- }
- break;
-
- case NT_GNU_GOLD_VERSION:
- if (strcmp (name, "GNU") == 0 && descsz > 0)
- /* A non-null terminated version string. */
- printf (gettext (" Linker version: %.*s\n"),
- (int) descsz, desc);
- break;
-
- case NT_GNU_ABI_TAG:
- if (strcmp (name, "GNU") == 0 && descsz >= 8 && descsz % 4 == 0)
- {
- Elf_Data in =
- {
- .d_version = EV_CURRENT,
- .d_type = ELF_T_WORD,
- .d_size = descsz,
- .d_buf = (void *) desc
- };
- uint32_t buf[descsz / 4];
- Elf_Data out =
- {
- .d_version = EV_CURRENT,
- .d_type = ELF_T_WORD,
- .d_size = descsz,
- .d_buf = buf
- };
-
- if (elf32_xlatetom (&out, &in, ebl->data) != NULL)
- {
- const char *os;
- switch (buf[0])
- {
- case ELF_NOTE_OS_LINUX:
- os = "Linux";
- break;
-
- case ELF_NOTE_OS_GNU:
- os = "GNU";
- break;
-
- case ELF_NOTE_OS_SOLARIS2:
- os = "Solaris";
- break;
-
- case ELF_NOTE_OS_FREEBSD:
- os = "FreeBSD";
- break;
-
- default:
- os = "???";
- break;
- }
-
- printf (gettext (" OS: %s, ABI: "), os);
- for (size_t cnt = 1; cnt < descsz / 4; ++cnt)
- {
- if (cnt > 1)
- putchar_unlocked ('.');
- printf ("%" PRIu32, buf[cnt]);
- }
- putchar_unlocked ('\n');
- }
- break;
- }
- /* FALLTHROUGH */
-
- default:
- /* Unknown type. */
- break;
- }
-}
diff --git a/src/libebl/eblobjnotetypename.c b/src/libebl/eblobjnotetypename.c
deleted file mode 100644
index 8a70e61f..00000000
--- a/src/libebl/eblobjnotetypename.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Return note type name.
- Copyright (C) 2002, 2007, 2009, 2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <stdio.h>
-#include <string.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_object_note_type_name (ebl, name, type, buf, len)
- Ebl *ebl;
- const char *name;
- uint32_t type;
- char *buf;
- size_t len;
-{
- const char *res = ebl->object_note_type_name (name, type, buf, len);
-
- if (res == NULL)
- {
- if (strcmp (name, "stapsdt") == 0)
- {
- snprintf (buf, len, "Version: %" PRIu32, type);
- return buf;
- }
-
- static const char *knowntypes[] =
- {
-#define KNOWNSTYPE(name) [NT_##name] = #name
- KNOWNSTYPE (VERSION),
- KNOWNSTYPE (GNU_HWCAP),
- KNOWNSTYPE (GNU_BUILD_ID),
- KNOWNSTYPE (GNU_GOLD_VERSION),
- };
-
- /* Handle standard names. */
- if (type < sizeof (knowntypes) / sizeof (knowntypes[0])
- && knowntypes[type] != NULL)
- res = knowntypes[type];
- else
- {
- snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
-
- res = buf;
- }
- }
-
- return res;
-}
diff --git a/src/libebl/eblopenbackend.c b/src/libebl/eblopenbackend.c
deleted file mode 100644
index 3a22f53d..00000000
--- a/src/libebl/eblopenbackend.c
+++ /dev/null
@@ -1,763 +0,0 @@
-/* Generate ELF backend handle.
- Copyright (C) 2000-2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <dlfcn.h>
-#include <error.h>
-#include <libelfP.h>
-#include <dwarf.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-
-#include <libeblP.h>
-
-
-/* This table should contain the complete list of architectures as far
- as the ELF specification is concerned. */
-/* XXX When things are stable replace the string pointers with char
- arrays to avoid relocations. */
-static const struct
-{
- const char *dsoname;
- const char *emulation;
- const char *prefix;
- int prefix_len;
- int em;
- int class;
- int data;
-} machines[] =
-{
- { "i386", "elf_i386", "i386", 4, EM_386, ELFCLASS32, ELFDATA2LSB },
- { "ia64", "elf_ia64", "ia64", 4, EM_IA_64, ELFCLASS64, ELFDATA2LSB },
- { "alpha", "elf_alpha", "alpha", 5, EM_ALPHA, ELFCLASS64, ELFDATA2LSB },
- { "x86_64", "elf_x86_64", "x86_64", 6, EM_X86_64, ELFCLASS64, ELFDATA2LSB },
- { "ppc", "elf_ppc", "ppc", 3, EM_PPC, ELFCLASS32, ELFDATA2MSB },
- { "ppc64", "elf_ppc64", "ppc64", 5, EM_PPC64, ELFCLASS64, ELFDATA2MSB },
- { "tilegx", "elf_tilegx", "tilegx", 6, EM_TILEGX, ELFCLASS64, ELFDATA2LSB },
- // XXX class and machine fields need to be filled in for all archs.
- { "sh", "elf_sh", "sh", 2, EM_SH, 0, 0 },
- { "arm", "ebl_arm", "arm", 3, EM_ARM, 0, 0 },
- { "sparc", "elf_sparcv9", "sparc", 5, EM_SPARCV9, 0, 0 },
- { "sparc", "elf_sparc", "sparc", 5, EM_SPARC, 0, 0 },
- { "sparc", "elf_sparcv8plus", "sparc", 5, EM_SPARC32PLUS, 0, 0 },
- { "s390", "ebl_s390", "s390", 4, EM_S390, 0, 0 },
-
- { "m32", "elf_m32", "m32", 3, EM_M32, 0, 0 },
- { "m68k", "elf_m68k", "m68k", 4, EM_68K, 0, 0 },
- { "m88k", "elf_m88k", "m88k", 4, EM_88K, 0, 0 },
- { "i860", "elf_i860", "i860", 4, EM_860, 0, 0 },
- { "s370", "ebl_s370", "s370", 4, EM_S370, 0, 0 },
- { "parisc", "elf_parisc", "parisc", 6, EM_PARISC, 0, 0 },
- { "vpp500", "elf_vpp500", "vpp500", 5, EM_VPP500, 0, 0 },
- { "sparc", "elf_v8plus", "v8plus", 6, EM_SPARC32PLUS, 0, 0 },
- { "i960", "elf_i960", "i960", 4, EM_960, 0, 0 },
- { "v800", "ebl_v800", "v800", 4, EM_V800, 0, 0 },
- { "fr20", "ebl_fr20", "fr20", 4, EM_FR20, 0, 0 },
- { "rh32", "ebl_rh32", "rh32", 4, EM_RH32, 0, 0 },
- { "rce", "ebl_rce", "rce", 3, EM_RCE, 0, 0 },
- { "tricore", "elf_tricore", "tricore", 7, EM_TRICORE, 0, 0 },
- { "arc", "elf_arc", "arc", 3, EM_ARC, 0, 0 },
- { "h8", "elf_h8_300", "h8_300", 6, EM_H8_300, 0, 0 },
- { "h8", "elf_h8_300h", "h8_300h", 6, EM_H8_300H, 0, 0 },
- { "h8", "elf_h8s", "h8s", 6, EM_H8S, 0, 0 },
- { "h8", "elf_h8_500", "h8_500", 6, EM_H8_500, 0, 0 },
- { "coldfire", "elf_coldfire", "coldfire", 8, EM_COLDFIRE, 0, 0 },
- { "m68k", "elf_68hc12", "68hc12", 6, EM_68HC12, 0, 0 },
- { "mma", "elf_mma", "mma", 3, EM_MMA, 0, 0 },
- { "pcp", "elf_pcp", "pcp", 3, EM_PCP, 0, 0 },
- { "ncpu", "elf_ncpu", "ncpu", 4, EM_NCPU, 0, 0 },
- { "ndr1", "elf_ndr1", "ndr1", 4, EM_NDR1, 0, 0 },
- { "starcore", "elf_starcore", "starcore", 8, EM_STARCORE, 0, 0 },
- { "me16", "elf_me16", "em16", 4, EM_ME16, 0, 0 },
- { "st100", "elf_st100", "st100", 5, EM_ST100, 0, 0 },
- { "tinyj", "elf_tinyj", "tinyj", 5, EM_TINYJ, 0, 0 },
- { "pdsp", "elf_pdsp", "pdsp", 4, EM_PDSP, 0, 0 },
- { "fx66", "elf_fx66", "fx66", 4, EM_FX66, 0, 0 },
- { "st9plus", "elf_st9plus", "st9plus", 7, EM_ST9PLUS, 0, 0 },
- { "st7", "elf_st7", "st7", 3, EM_ST7, 0, 0 },
- { "m68k", "elf_68hc16", "68hc16", 6, EM_68HC16, 0, 0 },
- { "m68k", "elf_68hc11", "68hc11", 6, EM_68HC11, 0, 0 },
- { "m68k", "elf_68hc08", "68hc08", 6, EM_68HC08, 0, 0 },
- { "m68k", "elf_68hc05", "68hc05", 6, EM_68HC05, 0, 0 },
- { "svx", "elf_svx", "svx", 3, EM_SVX, 0, 0 },
- { "st19", "elf_st19", "st19", 4, EM_ST19, 0, 0 },
- { "vax", "elf_vax", "vax", 3, EM_VAX, 0, 0 },
- { "cris", "elf_cris", "cris", 4, EM_CRIS, 0, 0 },
- { "javelin", "elf_javelin", "javelin", 7, EM_JAVELIN, 0, 0 },
- { "firepath", "elf_firepath", "firepath", 8, EM_FIREPATH, 0, 0 },
- { "zsp", "elf_zsp", "zsp", 3, EM_ZSP, 0, 0 },
- { "mmix", "elf_mmix", "mmix", 4, EM_MMIX, 0, 0 },
- { "hunay", "elf_huany", "huany", 5, EM_HUANY, 0, 0 },
- { "prism", "elf_prism", "prism", 5, EM_PRISM, 0, 0 },
- { "avr", "elf_avr", "avr", 3, EM_AVR, 0, 0 },
- { "fr30", "elf_fr30", "fr30", 4, EM_FR30, 0, 0 },
- { "dv10", "elf_dv10", "dv10", 4, EM_D10V, 0, 0 },
- { "dv30", "elf_dv30", "dv30", 4, EM_D30V, 0, 0 },
- { "v850", "elf_v850", "v850", 4, EM_V850, 0, 0 },
- { "m32r", "elf_m32r", "m32r", 4, EM_M32R, 0, 0 },
- { "mn10300", "elf_mn10300", "mn10300", 7, EM_MN10300, 0, 0 },
- { "mn10200", "elf_mn10200", "mn10200", 7, EM_MN10200, 0, 0 },
- { "pj", "elf_pj", "pj", 2, EM_PJ, 0, 0 },
- { "openrisc", "elf_openrisc", "openrisc", 8, EM_OPENRISC, 0, 0 },
- { "arc", "elf_arc_a5", "arc_a5", 6, EM_ARC_A5, 0, 0 },
- { "xtensa", "elf_xtensa", "xtensa", 6, EM_XTENSA, 0, 0 },
- { "aarch64", "elf_aarch64", "aarch64", 7, EM_AARCH64, ELFCLASS64, 0 },
-};
-#define nmachines (sizeof (machines) / sizeof (machines[0]))
-
-
-/* Default callbacks. Mostly they just return the error value. */
-static const char *default_object_type_name (int ignore, char *buf,
- size_t len);
-static const char *default_reloc_type_name (int ignore, char *buf, size_t len);
-static bool default_reloc_type_check (int ignore);
-static bool default_reloc_valid_use (Elf *elf, int ignore);
-static Elf_Type default_reloc_simple_type (Ebl *ebl, int ignore);
-static bool default_gotpc_reloc_check (Elf *elf, int ignore);
-static const char *default_segment_type_name (int ignore, char *buf,
- size_t len);
-static const char *default_section_type_name (int ignore, char *buf,
- size_t len);
-static const char *default_section_name (int ignore, int ignore2, char *buf,
- size_t len);
-static const char *default_machine_flag_name (Elf64_Word *ignore);
-static bool default_machine_flag_check (Elf64_Word flags);
-static bool default_machine_section_flag_check (GElf_Xword flags);
-static const char *default_symbol_type_name (int ignore, char *buf,
- size_t len);
-static const char *default_symbol_binding_name (int ignore, char *buf,
- size_t len);
-static const char *default_dynamic_tag_name (int64_t ignore, char *buf,
- size_t len);
-static bool default_dynamic_tag_check (int64_t ignore);
-static GElf_Word default_sh_flags_combine (GElf_Word flags1, GElf_Word flags2);
-static const char *default_osabi_name (int ignore, char *buf, size_t len);
-static void default_destr (struct ebl *ignore);
-static const char *default_core_note_type_name (uint32_t, char *buf,
- size_t len);
-static const char *default_object_note_type_name (const char *name, uint32_t,
- char *buf, size_t len);
-static int default_core_note (const GElf_Nhdr *nhdr, const char *name,
- GElf_Word *regs_offset, size_t *nregloc,
- const Ebl_Register_Location **reglocs,
- size_t *nitems, const Ebl_Core_Item **);
-static int default_auxv_info (GElf_Xword a_type,
- const char **name, const char **format);
-static bool default_object_note (const char *name, uint32_t type,
- uint32_t descsz, const char *desc);
-static bool default_debugscn_p (const char *name);
-static bool default_copy_reloc_p (int reloc);
-static bool default_none_reloc_p (int reloc);
-static bool default_relative_reloc_p (int reloc);
-static bool default_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr,
- const GElf_Sym *sym,
- const char *name,
- const GElf_Shdr *destshdr);
-static bool default_check_st_other_bits (unsigned char st_other);
-static bool default_check_special_section (Ebl *, int,
- const GElf_Shdr *, const char *);
-static bool default_bss_plt_p (Elf *elf);
-static int default_return_value_location (Dwarf_Die *functypedie,
- const Dwarf_Op **locops);
-static ssize_t default_register_info (Ebl *ebl,
- int regno, char *name, size_t namelen,
- const char **prefix,
- const char **setname,
- int *bits, int *type);
-static int default_syscall_abi (Ebl *ebl, int *sp, int *pc,
- int *callno, int args[6]);
-static bool default_check_object_attribute (Ebl *ebl, const char *vendor,
- int tag, uint64_t value,
- const char **tag_name,
- const char **value_name);
-static bool default_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type);
-static int default_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info);
-
-
-static void
-fill_defaults (Ebl *result)
-{
- result->object_type_name = default_object_type_name;
- result->reloc_type_name = default_reloc_type_name;
- result->reloc_type_check = default_reloc_type_check;
- result->reloc_valid_use = default_reloc_valid_use;
- result->reloc_simple_type = default_reloc_simple_type;
- result->gotpc_reloc_check = default_gotpc_reloc_check;
- result->segment_type_name = default_segment_type_name;
- result->section_type_name = default_section_type_name;
- result->section_name = default_section_name;
- result->machine_flag_name = default_machine_flag_name;
- result->machine_flag_check = default_machine_flag_check;
- result->machine_section_flag_check = default_machine_section_flag_check;
- result->check_special_section = default_check_special_section;
- result->symbol_type_name = default_symbol_type_name;
- result->symbol_binding_name = default_symbol_binding_name;
- result->dynamic_tag_name = default_dynamic_tag_name;
- result->dynamic_tag_check = default_dynamic_tag_check;
- result->sh_flags_combine = default_sh_flags_combine;
- result->osabi_name = default_osabi_name;
- result->core_note_type_name = default_core_note_type_name;
- result->object_note_type_name = default_object_note_type_name;
- result->core_note = default_core_note;
- result->auxv_info = default_auxv_info;
- result->object_note = default_object_note;
- result->debugscn_p = default_debugscn_p;
- result->copy_reloc_p = default_copy_reloc_p;
- result->none_reloc_p = default_none_reloc_p;
- result->relative_reloc_p = default_relative_reloc_p;
- result->check_special_symbol = default_check_special_symbol;
- result->check_st_other_bits = default_check_st_other_bits;
- result->bss_plt_p = default_bss_plt_p;
- result->return_value_location = default_return_value_location;
- result->register_info = default_register_info;
- result->syscall_abi = default_syscall_abi;
- result->check_object_attribute = default_check_object_attribute;
- result->check_reloc_target_type = default_check_reloc_target_type;
- result->disasm = NULL;
- result->abi_cfi = default_abi_cfi;
- result->destr = default_destr;
- result->sysvhash_entrysize = sizeof (Elf32_Word);
-}
-
-
-/* Find an appropriate backend for the file associated with ELF. */
-static Ebl *
-openbackend (elf, emulation, machine)
- Elf *elf;
- const char *emulation;
- GElf_Half machine;
-{
- Ebl *result;
- size_t cnt;
-
- /* First allocate the data structure for the result. We do this
- here since this assures that the structure is always large
- enough. */
- result = (Ebl *) calloc (1, sizeof (Ebl));
- if (result == NULL)
- {
- // XXX uncomment
- // __libebl_seterror (ELF_E_NOMEM);
- return NULL;
- }
-
- /* Fill in the default callbacks. The initializer for the machine
- specific module can overwrite the values. */
- fill_defaults (result);
-
- /* XXX Currently all we do is to look at 'e_machine' value in the
- ELF header. With an internal mapping table from EM_* value to
- DSO name we try to load the appropriate module to handle this
- binary type.
-
- Multiple modules for the same machine type are possible and they
- will be tried in sequence. The lookup process will only stop
- when a module which can handle the machine type is found or all
- available matching modules are tried. */
- for (cnt = 0; cnt < nmachines; ++cnt)
- if ((emulation != NULL && strcmp (emulation, machines[cnt].emulation) == 0)
- || (emulation == NULL && machines[cnt].em == machine))
- {
- /* Well, we know the emulation name now. */
- result->emulation = machines[cnt].emulation;
-
- /* We access some data structures directly. Make sure the 32 and
- 64 bit variants are laid out the same. */
- assert (offsetof (Elf32_Ehdr, e_machine)
- == offsetof (Elf64_Ehdr, e_machine));
- assert (sizeof (((Elf32_Ehdr *) 0)->e_machine)
- == sizeof (((Elf64_Ehdr *) 0)->e_machine));
- assert (offsetof (Elf, state.elf32.ehdr)
- == offsetof (Elf, state.elf64.ehdr));
-
- /* Prefer taking the information from the ELF file. */
- if (elf == NULL)
- {
- result->machine = machines[cnt].em;
- result->class = machines[cnt].class;
- result->data = machines[cnt].data;
- }
- else
- {
- result->machine = elf->state.elf32.ehdr->e_machine;
- result->class = elf->state.elf32.ehdr->e_ident[EI_CLASS];
- result->data = elf->state.elf32.ehdr->e_ident[EI_DATA];
- }
-
-#ifndef LIBEBL_SUBDIR
-# define LIBEBL_SUBDIR PACKAGE
-#endif
-#define ORIGINDIR "$ORIGIN/../$LIB/" LIBEBL_SUBDIR "/"
-
- /* Give it a try. At least the machine type matches. First
- try to load the module. */
- char dsoname[100];
- strcpy (stpcpy (stpcpy (dsoname, ORIGINDIR "libebl_"),
- machines[cnt].dsoname),
- ".so");
-
- void *h = dlopen (dsoname, RTLD_LAZY);
- if (h == NULL)
- {
- strcpy (stpcpy (stpcpy (dsoname, "libebl_"),
- machines[cnt].dsoname),
- ".so");
- h = dlopen (dsoname, RTLD_LAZY);
- }
-
- /* Try without an explicit path. */
- if (h != NULL)
- {
- /* We managed to load the object. Now see whether the
- initialization function likes our file. */
- static const char version[] = MODVERSION;
- const char *modversion;
- ebl_bhinit_t initp;
- char symname[machines[cnt].prefix_len + sizeof "_init"];
-
- strcpy (mempcpy (symname, machines[cnt].prefix,
- machines[cnt].prefix_len), "_init");
-
- initp = (ebl_bhinit_t) dlsym (h, symname);
- if (initp != NULL
- && (modversion = initp (elf, machine, result, sizeof (Ebl)))
- && strcmp (version, modversion) == 0)
- {
- /* We found a module to handle our file. */
- result->dlhandle = h;
- result->elf = elf;
-
- /* A few entries are mandatory. */
- assert (result->name != NULL);
- assert (result->destr != NULL);
-
- return result;
- }
-
- /* Not the module we need. */
- (void) dlclose (h);
- }
-
- /* We cannot find a DSO but the emulation/machine ID matches.
- Return that information. */
- result->dlhandle = NULL;
- result->elf = elf;
- result->name = machines[cnt].prefix;
- fill_defaults (result);
-
- return result;
- }
-
- /* Nothing matched. We use only the default callbacks. */
- result->dlhandle = NULL;
- result->elf = elf;
- result->emulation = "<unknown>";
- result->name = "<unknown>";
- fill_defaults (result);
-
- return result;
-}
-
-
-/* Find an appropriate backend for the file associated with ELF. */
-Ebl *
-ebl_openbackend (elf)
- Elf *elf;
-{
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr;
-
- /* Get the ELF header of the object. */
- ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- // XXX uncomment
- // __libebl_seterror (elf_errno ());
- return NULL;
- }
-
- return openbackend (elf, NULL, ehdr->e_machine);
-}
-
-
-/* Find backend without underlying ELF file. */
-Ebl *
-ebl_openbackend_machine (machine)
- GElf_Half machine;
-{
- return openbackend (NULL, NULL, machine);
-}
-
-
-/* Find backend with given emulation name. */
-Ebl *
-ebl_openbackend_emulation (const char *emulation)
-{
- return openbackend (NULL, emulation, EM_NONE);
-}
-
-
-/* Default callbacks. Mostly they just return the error value. */
-static const char *
-default_object_type_name (int ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static const char *
-default_reloc_type_name (int ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static bool
-default_reloc_type_check (int ignore __attribute__ ((unused)))
-{
- return false;
-}
-
-static bool
-default_reloc_valid_use (Elf *elf __attribute__ ((unused)),
- int ignore __attribute__ ((unused)))
-{
- return false;
-}
-
-static Elf_Type
-default_reloc_simple_type (Ebl *eh __attribute__ ((unused)),
- int ignore __attribute__ ((unused)))
-{
- return ELF_T_NUM;
-}
-
-static bool
-default_gotpc_reloc_check (Elf *elf __attribute__ ((unused)),
- int ignore __attribute__ ((unused)))
-{
- return false;
-}
-
-static const char *
-default_segment_type_name (int ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static const char *
-default_section_type_name (int ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static const char *
-default_section_name (int ignore __attribute__ ((unused)),
- int ignore2 __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static const char *
-default_machine_flag_name (Elf64_Word *ignore __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static bool
-default_machine_flag_check (Elf64_Word flags __attribute__ ((unused)))
-{
- return flags == 0;
-}
-
-static bool
-default_machine_section_flag_check (GElf_Xword flags)
-{
- return flags == 0;
-}
-
-static bool
-default_check_special_section (Ebl *ebl __attribute__ ((unused)),
- int ndx __attribute__ ((unused)),
- const GElf_Shdr *shdr __attribute__ ((unused)),
- const char *sname __attribute__ ((unused)))
-{
- return false;
-}
-
-static const char *
-default_symbol_type_name (int ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static const char *
-default_symbol_binding_name (int ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static const char *
-default_dynamic_tag_name (int64_t ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static bool
-default_dynamic_tag_check (int64_t ignore __attribute__ ((unused)))
-{
- return false;
-}
-
-static GElf_Word
-default_sh_flags_combine (GElf_Word flags1, GElf_Word flags2)
-{
- return SH_FLAGS_COMBINE (flags1, flags2);
-}
-
-static void
-default_destr (struct ebl *ignore __attribute__ ((unused)))
-{
-}
-
-static const char *
-default_osabi_name (int ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static const char *
-default_core_note_type_name (uint32_t ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static int
-default_auxv_info (GElf_Xword a_type __attribute__ ((unused)),
- const char **name __attribute__ ((unused)),
- const char **format __attribute__ ((unused)))
-{
- return 0;
-}
-
-static int
-default_core_note (const GElf_Nhdr *nhdr __attribute__ ((unused)),
- const char *name __attribute__ ((unused)),
- GElf_Word *ro __attribute__ ((unused)),
- size_t *nregloc __attribute__ ((unused)),
- const Ebl_Register_Location **reglocs
- __attribute__ ((unused)),
- size_t *nitems __attribute__ ((unused)),
- const Ebl_Core_Item **items __attribute__ ((unused)))
-{
- return 0;
-}
-
-static const char *
-default_object_note_type_name (const char *name __attribute__ ((unused)),
- uint32_t ignore __attribute__ ((unused)),
- char *buf __attribute__ ((unused)),
- size_t len __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static bool
-default_object_note (const char *name __attribute__ ((unused)),
- uint32_t type __attribute__ ((unused)),
- uint32_t descsz __attribute__ ((unused)),
- const char *desc __attribute__ ((unused)))
-{
- return NULL;
-}
-
-static bool
-default_debugscn_p (const char *name)
-{
- /* We know by default only about the DWARF debug sections which have
- fixed names. */
- static const char *dwarf_scn_names[] =
- {
- /* DWARF 1 */
- ".debug",
- ".line",
- /* GNU DWARF 1 extensions */
- ".debug_srcinfo",
- ".debug_sfnames",
- /* DWARF 1.1 and DWARF 2 */
- ".debug_aranges",
- ".debug_pubnames",
- /* DWARF 2 */
- ".debug_info",
- ".debug_abbrev",
- ".debug_line",
- ".debug_frame",
- ".debug_str",
- ".debug_loc",
- ".debug_macinfo",
- /* DWARF 3 */
- ".debug_ranges",
- ".debug_pubtypes",
- /* DWARF 4 */
- ".debug_types",
- /* GDB DWARF 4 extension */
- ".gdb_index",
- /* GNU/DWARF 5 extension/proposal */
- ".debug_macro",
- /* SGI/MIPS DWARF 2 extensions */
- ".debug_weaknames",
- ".debug_funcnames",
- ".debug_typenames",
- ".debug_varnames"
- };
- const size_t ndwarf_scn_names = (sizeof (dwarf_scn_names)
- / sizeof (dwarf_scn_names[0]));
- for (size_t cnt = 0; cnt < ndwarf_scn_names; ++cnt)
- if (strcmp (name, dwarf_scn_names[cnt]) == 0)
- return true;
-
- return false;
-}
-
-static bool
-default_copy_reloc_p (int reloc __attribute__ ((unused)))
-{
- return false;
-}
-strong_alias (default_copy_reloc_p, default_none_reloc_p)
-strong_alias (default_copy_reloc_p, default_relative_reloc_p)
-
-static bool
-default_check_special_symbol (Elf *elf __attribute__ ((unused)),
- GElf_Ehdr *ehdr __attribute__ ((unused)),
- const GElf_Sym *sym __attribute__ ((unused)),
- const char *name __attribute__ ((unused)),
- const GElf_Shdr *destshdr __attribute__ ((unused)))
-{
- return false;
-}
-
-static bool
-default_check_st_other_bits (unsigned char st_other __attribute__ ((unused)))
-{
- return false;
-}
-
-
-static bool
-default_bss_plt_p (Elf *elf __attribute__ ((unused)))
-{
- return false;
-}
-
-static int
-default_return_value_location (Dwarf_Die *functypedie __attribute__ ((unused)),
- const Dwarf_Op **locops __attribute__ ((unused)))
-{
- return -2;
-}
-
-static ssize_t
-default_register_info (Ebl *ebl __attribute__ ((unused)),
- int regno, char *name, size_t namelen,
- const char **prefix,
- const char **setname,
- int *bits, int *type)
-{
- if (name == NULL)
- return 0;
-
- *setname = "???";
- *prefix = "";
- *bits = -1;
- *type = DW_ATE_void;
- return snprintf (name, namelen, "reg%d", regno);
-}
-
-static int
-default_syscall_abi (Ebl *ebl __attribute__ ((unused)),
- int *sp, int *pc, int *callno, int args[6])
-{
- *sp = *pc = *callno = -1;
- args[0] = -1;
- args[1] = -1;
- args[2] = -1;
- args[3] = -1;
- args[4] = -1;
- args[5] = -1;
- return -1;
-}
-
-static bool
-default_check_object_attribute (Ebl *ebl __attribute__ ((unused)),
- const char *vendor __attribute__ ((unused)),
- int tag __attribute__ ((unused)),
- uint64_t value __attribute__ ((unused)),
- const char **tag_name, const char **value_name)
-{
- *tag_name = NULL;
- *value_name = NULL;
- return false;
-}
-
-static bool
-default_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)),
- Elf64_Word sh_type __attribute__ ((unused)))
-{
- return false;
-}
-
-static int
-default_abi_cfi (Ebl *ebl __attribute__ ((unused)),
- Dwarf_CIE *abi_info __attribute__ ((unused)))
-{
- return -1;
-}
diff --git a/src/libebl/eblosabiname.c b/src/libebl/eblosabiname.c
deleted file mode 100644
index 3ea6f562..00000000
--- a/src/libebl/eblosabiname.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Return OS ABI name
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_osabi_name (ebl, osabi, buf, len)
- Ebl *ebl;
- int osabi;
- char *buf;
- size_t len;
-{
- const char *res = ebl != NULL ? ebl->osabi_name (osabi, buf, len) : NULL;
-
- if (res == NULL)
- {
- if (osabi == ELFOSABI_NONE)
- res = "UNIX - System V";
- else if (osabi == ELFOSABI_HPUX)
- res = "HP/UX";
- else if (osabi == ELFOSABI_NETBSD)
- res = "NetBSD";
- else if (osabi == ELFOSABI_LINUX)
- res = "Linux";
- else if (osabi == ELFOSABI_SOLARIS)
- res = "Solaris";
- else if (osabi == ELFOSABI_AIX)
- res = "AIX";
- else if (osabi == ELFOSABI_IRIX)
- res = "Irix";
- else if (osabi == ELFOSABI_FREEBSD)
- res = "FreeBSD";
- else if (osabi == ELFOSABI_TRU64)
- res = "TRU64";
- else if (osabi == ELFOSABI_MODESTO)
- res = "Modesto";
- else if (osabi == ELFOSABI_OPENBSD)
- res = "OpenBSD";
- else if (osabi == ELFOSABI_ARM)
- res = "Arm";
- else if (osabi == ELFOSABI_STANDALONE)
- res = gettext ("Stand alone");
- else
- {
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), osabi);
-
- res = buf;
- }
- }
-
- return res;
-}
diff --git a/src/libebl/eblreginfo.c b/src/libebl/eblreginfo.c
deleted file mode 100644
index f213b4a2..00000000
--- a/src/libebl/eblreginfo.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Return register name information.
- Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <libeblP.h>
-
-
-ssize_t
-ebl_register_info (ebl, regno, name, namelen, prefix, setname, bits, type)
- Ebl *ebl;
- int regno;
- char *name;
- size_t namelen;
- const char **prefix;
- const char **setname;
- int *bits;
- int *type;
-{
- return ebl == NULL ? -1 : ebl->register_info (ebl, regno, name, namelen,
- prefix, setname, bits, type);
-}
diff --git a/src/libebl/eblrelativerelocp.c b/src/libebl/eblrelativerelocp.c
deleted file mode 100644
index 297caec2..00000000
--- a/src/libebl/eblrelativerelocp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Check whether given relocation is a relative relocation.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2006.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_relative_reloc_p (ebl, reloc)
- Ebl *ebl;
- int reloc;
-{
- return ebl->relative_reloc_p (reloc);
-}
diff --git a/src/libebl/eblrelocsimpletype.c b/src/libebl/eblrelocsimpletype.c
deleted file mode 100644
index 085fc931..00000000
--- a/src/libebl/eblrelocsimpletype.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Check relocation type for simple types.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-Elf_Type
-ebl_reloc_simple_type (ebl, reloc)
- Ebl *ebl;
- int reloc;
-{
- return ebl != NULL ? ebl->reloc_simple_type (ebl, reloc) : ELF_T_NUM;
-}
diff --git a/src/libebl/eblreloctypecheck.c b/src/libebl/eblreloctypecheck.c
deleted file mode 100644
index e322ace0..00000000
--- a/src/libebl/eblreloctypecheck.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Check relocation type.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_reloc_type_check (ebl, reloc)
- Ebl *ebl;
- int reloc;
-{
- return ebl != NULL ? ebl->reloc_type_check (reloc) : false;
-}
diff --git a/src/libebl/eblreloctypename.c b/src/libebl/eblreloctypename.c
deleted file mode 100644
index fb391019..00000000
--- a/src/libebl/eblreloctypename.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Return relocation type name.
- Copyright (C) 2001, 2002, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_reloc_type_name (ebl, reloc, buf, len)
- Ebl *ebl;
- int reloc;
- char *buf;
- size_t len;
-{
- const char *res;
-
- res = ebl != NULL ? ebl->reloc_type_name (reloc, buf, len) : NULL;
- if (res == NULL)
- /* There are no generic relocation type names. */
- res = "<INVALID RELOC>";
-
- return res;
-}
diff --git a/src/libebl/eblrelocvaliduse.c b/src/libebl/eblrelocvaliduse.c
deleted file mode 100644
index 62c4ae7c..00000000
--- a/src/libebl/eblrelocvaliduse.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Check relocation type use.
- Copyright (C) 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_reloc_valid_use (ebl, reloc)
- Ebl *ebl;
- int reloc;
-{
- return ebl != NULL ? ebl->reloc_valid_use (ebl->elf, reloc) : false;
-}
diff --git a/src/libebl/eblresolvesym.c b/src/libebl/eblresolvesym.c
deleted file mode 100644
index 470f6f06..00000000
--- a/src/libebl/eblresolvesym.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Resolve a symbol value to an allocated section of the Elf file.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-#include <assert.h>
-
-bool
-ebl_resolve_sym_value (Ebl *ebl, GElf_Addr *addr)
-{
- if (ebl == NULL || ebl->resolve_sym_value == NULL)
- return false;
-
- return ebl->resolve_sym_value (ebl, addr);
-}
diff --git a/src/libebl/eblretval.c b/src/libebl/eblretval.c
deleted file mode 100644
index 056a5493..00000000
--- a/src/libebl/eblretval.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Return location expression to find return value given a function type DIE.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <libeblP.h>
-
-
-int
-ebl_return_value_location (ebl, functypedie, locops)
- Ebl *ebl;
- Dwarf_Die *functypedie;
- const Dwarf_Op **locops;
-{
- return ebl == NULL ? -1 : ebl->return_value_location (functypedie, locops);
-}
diff --git a/src/libebl/eblsectionname.c b/src/libebl/eblsectionname.c
deleted file mode 100644
index 81c7add5..00000000
--- a/src/libebl/eblsectionname.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/* Return section name.
- Copyright (C) 2001, 2002, 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum)
- Ebl *ebl;
- int section;
- int xsection;
- char *buf;
- size_t len;
- const char *scnnames[];
- size_t shnum;
-{
- const char *res = ebl != NULL ? ebl->section_name (section, xsection,
- buf, len) : NULL;
-
- if (res == NULL)
- {
- if (section == SHN_UNDEF)
- res = "UNDEF";
- else if (section == SHN_ABS)
- res = "ABS";
- else if (section == SHN_COMMON)
- res = "COMMON";
- else if (section == SHN_BEFORE)
- res = "BEFORE";
- else if (section == SHN_AFTER)
- res = "AFTER";
- else if ((section < SHN_LORESERVE || section == SHN_XINDEX)
- && (size_t) section < shnum)
- {
- int idx = section != SHN_XINDEX ? section : xsection;
-
- if (scnnames != NULL)
- res = scnnames[idx];
- else
- {
- snprintf (buf, len, "%d", idx);
- res = buf;
- }
- }
- else
- {
- /* Handle OS-specific section names. */
- if (section == SHN_XINDEX)
- snprintf (buf, len, "%s: %d", "XINDEX", xsection);
- else if (section >= SHN_LOOS && section <= SHN_HIOS)
- snprintf (buf, len, "LOOS+%x", section - SHN_LOOS);
- /* Handle processor-specific section names. */
- else if (section >= SHN_LOPROC && section <= SHN_HIPROC)
- snprintf (buf, len, "LOPROC+%x", section - SHN_LOPROC);
- else if (section >= SHN_LORESERVE && section <= SHN_HIRESERVE)
- snprintf (buf, len, "LORESERVE+%x", section - SHN_LORESERVE);
- else
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), section);
-
- res = buf;
- }
- }
-
- return res;
-}
diff --git a/src/libebl/eblsectionstripp.c b/src/libebl/eblsectionstripp.c
deleted file mode 100644
index c6cda63a..00000000
--- a/src/libebl/eblsectionstripp.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Check whether section can be stripped.
- Copyright (C) 2005, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include "libeblP.h"
-
-
-bool
-ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr, const GElf_Shdr *shdr,
- const char *name, bool remove_comment,
- bool only_remove_debug)
-{
- /* If only debug information should be removed check the name. There
- is unfortunately no other way. */
- if (unlikely (only_remove_debug))
- {
- if (ebl_debugscn_p (ebl, name))
- return true;
-
- if (shdr->sh_type == SHT_RELA || shdr->sh_type == SHT_REL)
- {
- Elf_Scn *scn_l = elf_getscn (ebl->elf, (shdr)->sh_info);
- GElf_Shdr shdr_mem_l;
- GElf_Shdr *shdr_l = gelf_getshdr (scn_l, &shdr_mem_l);
- if (shdr_l != NULL)
- {
- const char *s_l = elf_strptr (ebl->elf, ehdr->e_shstrndx,
- shdr_l->sh_name);
- if (s_l != NULL && ebl_debugscn_p (ebl, s_l))
- return true;
- }
- }
-
- return false;
- }
-
- return SECTION_STRIP_P (shdr, name, remove_comment);
-}
diff --git a/src/libebl/eblsectiontypename.c b/src/libebl/eblsectiontypename.c
deleted file mode 100644
index 3a30cd63..00000000
--- a/src/libebl/eblsectiontypename.c
+++ /dev/null
@@ -1,127 +0,0 @@
-/* Return section type name.
- Copyright (C) 2001, 2002, 2006, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_section_type_name (ebl, section, buf, len)
- Ebl *ebl;
- int section;
- char *buf;
- size_t len;
-{
- const char *res = ebl->section_type_name (section, buf, len);
-
- if (res == NULL)
- {
- static const char *knowntypes[] =
- {
-#define KNOWNSTYPE(name) [SHT_##name] = #name
- KNOWNSTYPE (NULL),
- KNOWNSTYPE (PROGBITS),
- KNOWNSTYPE (SYMTAB),
- KNOWNSTYPE (STRTAB),
- KNOWNSTYPE (RELA),
- KNOWNSTYPE (HASH),
- KNOWNSTYPE (DYNAMIC),
- KNOWNSTYPE (NOTE),
- KNOWNSTYPE (NOBITS),
- KNOWNSTYPE (REL),
- KNOWNSTYPE (SHLIB),
- KNOWNSTYPE (DYNSYM),
- KNOWNSTYPE (INIT_ARRAY),
- KNOWNSTYPE (FINI_ARRAY),
- KNOWNSTYPE (PREINIT_ARRAY),
- KNOWNSTYPE (GROUP),
- KNOWNSTYPE (SYMTAB_SHNDX)
- };
-
- /* Handle standard names. */
- if ((size_t) section < sizeof (knowntypes) / sizeof (knowntypes[0])
- && knowntypes[section] != NULL)
- res = knowntypes[section];
- /* The symbol versioning/Sun extensions. */
- else if (section >= SHT_LOSUNW && section <= SHT_HISUNW)
- {
- static const char *sunwtypes[] =
- {
-#undef KNOWNSTYPE
-#define KNOWNSTYPE(name) [SHT_##name - SHT_LOSUNW] = #name
- KNOWNSTYPE (SUNW_move),
- KNOWNSTYPE (SUNW_COMDAT),
- KNOWNSTYPE (SUNW_syminfo),
- KNOWNSTYPE (GNU_verdef),
- KNOWNSTYPE (GNU_verneed),
- KNOWNSTYPE (GNU_versym)
- };
- res = sunwtypes[section - SHT_LOSUNW];
- }
- else
- /* A few GNU additions. */
- switch (section)
- {
- case SHT_CHECKSUM:
- res = "CHECKSUM";
- break;
- case SHT_GNU_LIBLIST:
- res = "GNU_LIBLIST";
- break;
- case SHT_GNU_HASH:
- res = "GNU_HASH";
- break;
- case SHT_GNU_ATTRIBUTES:
- res = "GNU_ATTRIBUTES";
- break;
-
- default:
- /* Handle OS-specific section names. */
- if (section >= SHT_LOOS && section <= SHT_HIOS)
- snprintf (buf, len, "SHT_LOOS+%x", section - SHT_LOOS);
- /* Handle processor-specific section names. */
- else if (section >= SHT_LOPROC && section <= SHT_HIPROC)
- snprintf (buf, len, "SHT_LOPROC+%x", section - SHT_LOPROC);
- else if ((unsigned int) section >= SHT_LOUSER
- && (unsigned int) section <= SHT_HIUSER)
- snprintf (buf, len, "SHT_LOUSER+%x", section - SHT_LOUSER);
- else
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), section);
-
- res = buf;
- break;
- }
- }
-
- return res;
-}
diff --git a/src/libebl/eblsegmenttypename.c b/src/libebl/eblsegmenttypename.c
deleted file mode 100644
index 3cad66e1..00000000
--- a/src/libebl/eblsegmenttypename.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* Return segment type name.
- Copyright (C) 2001, 2002, 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_segment_type_name (ebl, segment, buf, len)
- Ebl *ebl;
- int segment;
- char *buf;
- size_t len;
-{
- const char *res;
-
- res = ebl != NULL ? ebl->segment_type_name (segment, buf, len) : NULL;
- if (res == NULL)
- {
- static const char *ptypes[PT_NUM] =
- {
-#define PTYPE(name) [PT_##name] = #name
- PTYPE (NULL),
- PTYPE (LOAD),
- PTYPE (DYNAMIC),
- PTYPE (INTERP),
- PTYPE (NOTE),
- PTYPE (SHLIB),
- PTYPE (PHDR),
- PTYPE (TLS)
- };
-
- /* Is it one of the standard segment types? */
- if (segment >= PT_NULL && segment < PT_NUM)
- res = ptypes[segment];
- else if (segment == PT_GNU_EH_FRAME)
- res = "GNU_EH_FRAME";
- else if (segment == PT_GNU_STACK)
- res = "GNU_STACK";
- else if (segment == PT_GNU_RELRO)
- res = "GNU_RELRO";
- else if (segment == PT_SUNWBSS)
- res = "SUNWBSS";
- else if (segment == PT_SUNWSTACK)
- res = "SUNWSTACK";
- else
- {
- if (segment >= PT_LOOS && segment <= PT_HIOS)
- snprintf (buf, len, "LOOS+%d", segment - PT_LOOS);
- else if (segment >= PT_LOPROC && segment <= PT_HIPROC)
- snprintf (buf, len, "LOPROC+%d", segment - PT_LOPROC);
- else
- snprintf (buf, len, "%s: %d", gettext ("<unknown>"), segment);
-
- res = buf;
- }
- }
-
- return res;
-}
diff --git a/src/libebl/eblshflagscombine.c b/src/libebl/eblshflagscombine.c
deleted file mode 100644
index 87625f87..00000000
--- a/src/libebl/eblshflagscombine.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* Return combines section header flags value.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-GElf_Word
-ebl_sh_flags_combine (ebl, flags1, flags2)
- Ebl *ebl;
- GElf_Word flags1;
- GElf_Word flags2;
-{
- return ebl->sh_flags_combine (flags1, flags2);
-}
diff --git a/src/libebl/eblstother.c b/src/libebl/eblstother.c
deleted file mode 100644
index ccbf138b..00000000
--- a/src/libebl/eblstother.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Check st_other flag.
- Copyright (C) 2011 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-bool
-ebl_check_st_other_bits (ebl, st_other)
- Ebl *ebl;
- unsigned char st_other;
-{
- return ((st_other ^ GELF_ST_VISIBILITY (st_other)) == 0
- || ebl->check_st_other_bits (st_other ^ GELF_ST_VISIBILITY (st_other)));
-}
diff --git a/src/libebl/eblstrtab.c b/src/libebl/eblstrtab.c
deleted file mode 100644
index 798c34c3..00000000
--- a/src/libebl/eblstrtab.c
+++ /dev/null
@@ -1,358 +0,0 @@
-/* ELF string table handling.
- Copyright (C) 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <inttypes.h>
-#include <libelf.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/param.h>
-
-#include "libebl.h"
-#include <system.h>
-
-#ifndef MIN
-# define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
-
-struct Ebl_Strent
-{
- const char *string;
- size_t len;
- struct Ebl_Strent *next;
- struct Ebl_Strent *left;
- struct Ebl_Strent *right;
- size_t offset;
- char reverse[0];
-};
-
-
-struct memoryblock
-{
- struct memoryblock *next;
- char memory[0];
-};
-
-
-struct Ebl_Strtab
-{
- struct Ebl_Strent *root;
- struct memoryblock *memory;
- char *backp;
- size_t left;
- size_t total;
- bool nullstr;
-
- struct Ebl_Strent null;
-};
-
-
-/* Cache for the pagesize. */
-static size_t ps;
-/* We correct this value a bit so that `malloc' is not allocating more
- than a page. */
-#define MALLOC_OVERHEAD (2 * sizeof (void *))
-
-
-struct Ebl_Strtab *
-ebl_strtabinit (bool nullstr)
-{
- if (ps == 0)
- {
- ps = sysconf (_SC_PAGESIZE);
- assert (sizeof (struct memoryblock) < ps - MALLOC_OVERHEAD);
- }
-
- struct Ebl_Strtab *ret
- = (struct Ebl_Strtab *) calloc (1, sizeof (struct Ebl_Strtab));
- if (ret != NULL)
- {
- ret->nullstr = nullstr;
-
- if (nullstr)
- {
- ret->null.len = 1;
- ret->null.string = "";
- }
- }
-
- return ret;
-}
-
-
-static int
-morememory (struct Ebl_Strtab *st, size_t len)
-{
- size_t overhead = offsetof (struct memoryblock, memory);
- len += overhead + MALLOC_OVERHEAD;
-
- /* Allocate nearest multiple of pagesize >= len. */
- len = ((len / ps) + (len % ps != 0)) * ps - MALLOC_OVERHEAD;
-
- struct memoryblock *newmem = (struct memoryblock *) malloc (len);
- if (newmem == NULL)
- return 1;
-
- newmem->next = st->memory;
- st->memory = newmem;
- st->backp = newmem->memory;
- st->left = len - overhead;
-
- return 0;
-}
-
-
-void
-ebl_strtabfree (struct Ebl_Strtab *st)
-{
- struct memoryblock *mb = st->memory;
-
- while (mb != NULL)
- {
- void *old = mb;
- mb = mb->next;
- free (old);
- }
-
- free (st);
-}
-
-
-static struct Ebl_Strent *
-newstring (struct Ebl_Strtab *st, const char *str, size_t len)
-{
- /* Compute the amount of padding needed to make the structure aligned. */
- size_t align = ((__alignof__ (struct Ebl_Strent)
- - (((uintptr_t) st->backp)
- & (__alignof__ (struct Ebl_Strent) - 1)))
- & (__alignof__ (struct Ebl_Strent) - 1));
-
- /* Make sure there is enough room in the memory block. */
- if (st->left < align + sizeof (struct Ebl_Strent) + len)
- {
- if (morememory (st, sizeof (struct Ebl_Strent) + len))
- return NULL;
-
- align = 0;
- }
-
- /* Create the reserved string. */
- struct Ebl_Strent *newstr = (struct Ebl_Strent *) (st->backp + align);
- newstr->string = str;
- newstr->len = len;
- newstr->next = NULL;
- newstr->left = NULL;
- newstr->right = NULL;
- newstr->offset = 0;
- for (int i = len - 2; i >= 0; --i)
- newstr->reverse[i] = str[len - 2 - i];
- newstr->reverse[len - 1] = '\0';
- st->backp += align + sizeof (struct Ebl_Strent) + len;
- st->left -= align + sizeof (struct Ebl_Strent) + len;
-
- return newstr;
-}
-
-
-/* XXX This function should definitely be rewritten to use a balancing
- tree algorith (AVL, red-black trees). For now a simple, correct
- implementation is enough. */
-static struct Ebl_Strent **
-searchstring (struct Ebl_Strent **sep, struct Ebl_Strent *newstr)
-{
- /* More strings? */
- if (*sep == NULL)
- {
- *sep = newstr;
- return sep;
- }
-
- /* Compare the strings. */
- int cmpres = memcmp ((*sep)->reverse, newstr->reverse,
- MIN ((*sep)->len, newstr->len) - 1);
- if (cmpres == 0)
- /* We found a matching string. */
- return sep;
- else if (cmpres > 0)
- return searchstring (&(*sep)->left, newstr);
- else
- return searchstring (&(*sep)->right, newstr);
-}
-
-
-/* Add new string. The actual string is assumed to be permanent. */
-struct Ebl_Strent *
-ebl_strtabadd (struct Ebl_Strtab *st, const char *str, size_t len)
-{
- /* Compute the string length if the caller doesn't know it. */
- if (len == 0)
- len = strlen (str) + 1;
-
- /* Make sure all "" strings get offset 0 but only if the table was
- created with a special null entry in mind. */
- if (len == 1 && st->null.string != NULL)
- return &st->null;
-
- /* Allocate memory for the new string and its associated information. */
- struct Ebl_Strent *newstr = newstring (st, str, len);
- if (newstr == NULL)
- return NULL;
-
- /* Search in the array for the place to insert the string. If there
- is no string with matching prefix and no string with matching
- leading substring, create a new entry. */
- struct Ebl_Strent **sep = searchstring (&st->root, newstr);
- if (*sep != newstr)
- {
- /* This is not the same entry. This means we have a prefix match. */
- if ((*sep)->len > newstr->len)
- {
- /* Check whether we already know this string. */
- for (struct Ebl_Strent *subs = (*sep)->next; subs != NULL;
- subs = subs->next)
- if (subs->len == newstr->len)
- {
- /* We have an exact match with a substring. Free the memory
- we allocated. */
- st->left += st->backp - (char *) newstr;
- st->backp = (char *) newstr;
-
- return subs;
- }
-
- /* We have a new substring. This means we don't need the reverse
- string of this entry anymore. */
- st->backp -= newstr->len;
- st->left += newstr->len;
-
- newstr->next = (*sep)->next;
- (*sep)->next = newstr;
- }
- else if ((*sep)->len != newstr->len)
- {
- /* When we get here it means that the string we are about to
- add has a common prefix with a string we already have but
- it is longer. In this case we have to put it first. */
- st->total += newstr->len - (*sep)->len;
- newstr->next = *sep;
- newstr->left = (*sep)->left;
- newstr->right = (*sep)->right;
- *sep = newstr;
- }
- else
- {
- /* We have an exact match. Free the memory we allocated. */
- st->left += st->backp - (char *) newstr;
- st->backp = (char *) newstr;
-
- newstr = *sep;
- }
- }
- else
- st->total += newstr->len;
-
- return newstr;
-}
-
-
-static void
-copystrings (struct Ebl_Strent *nodep, char **freep, size_t *offsetp)
-{
- if (nodep->left != NULL)
- copystrings (nodep->left, freep, offsetp);
-
- /* Process the current node. */
- nodep->offset = *offsetp;
- *freep = (char *) mempcpy (*freep, nodep->string, nodep->len);
- *offsetp += nodep->len;
-
- for (struct Ebl_Strent *subs = nodep->next; subs != NULL; subs = subs->next)
- {
- assert (subs->len < nodep->len);
- subs->offset = nodep->offset + nodep->len - subs->len;
- assert (subs->offset != 0 || subs->string[0] == '\0');
- }
-
- if (nodep->right != NULL)
- copystrings (nodep->right, freep, offsetp);
-}
-
-
-void
-ebl_strtabfinalize (struct Ebl_Strtab *st, Elf_Data *data)
-{
- size_t nulllen = st->nullstr ? 1 : 0;
-
- /* Fill in the information. */
- data->d_buf = malloc (st->total + nulllen);
- if (data->d_buf == NULL)
- abort ();
-
- /* The first byte must always be zero if we created the table with a
- null string. */
- if (st->nullstr)
- *((char *) data->d_buf) = '\0';
-
- data->d_type = ELF_T_BYTE;
- data->d_size = st->total + nulllen;
- data->d_off = 0;
- data->d_align = 1;
- data->d_version = EV_CURRENT;
-
- /* Now run through the tree and add all the string while also updating
- the offset members of the elfstrent records. */
- char *endp = (char *) data->d_buf + nulllen;
- size_t copylen = nulllen;
- if (st->root)
- copystrings (st->root, &endp, &copylen);
- assert (copylen == st->total + nulllen);
-}
-
-
-size_t
-ebl_strtaboffset (struct Ebl_Strent *se)
-{
- return se->offset;
-}
-
-
-const char *
-ebl_string (struct Ebl_Strent *se)
-{
- assert (se->string != NULL);
-
- return se->string;
-}
diff --git a/src/libebl/eblsymbolbindingname.c b/src/libebl/eblsymbolbindingname.c
deleted file mode 100644
index fd5bfda5..00000000
--- a/src/libebl/eblsymbolbindingname.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Return symbol binding name.
- Copyright (C) 2001, 2002, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_symbol_binding_name (ebl, binding, buf, len)
- Ebl *ebl;
- int binding;
- char *buf;
- size_t len;
-{
- const char *res;
-
- res = ebl != NULL ? ebl->symbol_type_name (binding, buf, len) : NULL;
- if (res == NULL)
- {
- static const char *stb_names[STB_NUM] =
- {
- "LOCAL", "GLOBAL", "WEAK"
- };
-
- /* Standard binding? */
- if (binding < STB_NUM)
- res = stb_names[binding];
- else
- {
- char *ident;
-
- if (binding >= STB_LOPROC && binding <= STB_HIPROC)
- snprintf (buf, len, "LOPROC+%d", binding - STB_LOPROC);
- else if (binding == STB_GNU_UNIQUE
- && (ident = elf_getident (ebl->elf, NULL)) != NULL
- && ident[EI_OSABI] == ELFOSABI_LINUX)
- return "GNU_UNIQUE";
- else if (binding >= STB_LOOS && binding <= STB_HIOS)
- snprintf (buf, len, "LOOS+%d", binding - STB_LOOS);
- else
- snprintf (buf, len, gettext ("<unknown>: %d"), binding);
-
- res = buf;
- }
- }
-
- return res;
-}
diff --git a/src/libebl/eblsymboltypename.c b/src/libebl/eblsymboltypename.c
deleted file mode 100644
index 4e653d26..00000000
--- a/src/libebl/eblsymboltypename.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Return symbol type name.
- Copyright (C) 2001, 2002, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <libeblP.h>
-
-
-const char *
-ebl_symbol_type_name (ebl, symbol, buf, len)
- Ebl *ebl;
- int symbol;
- char *buf;
- size_t len;
-{
- const char *res;
-
- res = ebl != NULL ? ebl->symbol_type_name (symbol, buf, len) : NULL;
- if (res == NULL)
- {
- static const char *stt_names[STT_NUM] =
- {
- [STT_NOTYPE] = "NOTYPE",
- [STT_OBJECT] = "OBJECT",
- [STT_FUNC] = "FUNC",
- [STT_SECTION] = "SECTION",
- [STT_FILE] = "FILE",
- [STT_COMMON] = "COMMON",
- [STT_TLS] = "TLS"
- };
-
- /* Standard type? */
- if (symbol < STT_NUM)
- res = stt_names[symbol];
- else
- {
- char *ident;
-
- if (symbol >= STT_LOPROC && symbol <= STT_HIPROC)
- snprintf (buf, len, "LOPROC+%d", symbol - STT_LOPROC);
- else if (symbol == STT_GNU_IFUNC
- && (ident = elf_getident (ebl->elf, NULL)) != NULL
- && ident[EI_OSABI] == ELFOSABI_LINUX)
- return "GNU_IFUNC";
- else if (symbol >= STT_LOOS && symbol <= STT_HIOS)
- snprintf (buf, len, "LOOS+%d", symbol - STT_LOOS);
- else
- snprintf (buf, len, gettext ("<unknown>: %d"), symbol);
-
- res = buf;
- }
- }
-
- return res;
-}
diff --git a/src/libebl/eblsysvhashentrysize.c b/src/libebl/eblsysvhashentrysize.c
deleted file mode 100644
index f966646a..00000000
--- a/src/libebl/eblsysvhashentrysize.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Return OS ABI name
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2006.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-
-int
-ebl_sysvhash_entrysize (ebl)
- Ebl *ebl;
-{
- return ebl->sysvhash_entrysize;
-}
diff --git a/src/libebl/eblunwind.c b/src/libebl/eblunwind.c
deleted file mode 100644
index 1251c1b5..00000000
--- a/src/libebl/eblunwind.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Get previous frame state for an existing frame state.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libeblP.h>
-
-bool
-ebl_unwind (Ebl *ebl, Dwarf_Addr pc, ebl_tid_registers_t *setfunc,
- ebl_tid_registers_get_t *getfunc, ebl_pid_memory_read_t *readfunc,
- void *arg, bool *signal_framep)
-{
- if (ebl == NULL || ebl->unwind == NULL)
- return false;
- return ebl->unwind (ebl, pc, setfunc, getfunc, readfunc, arg, signal_framep);
-}
diff --git a/src/libebl/eblwstrtab.c b/src/libebl/eblwstrtab.c
deleted file mode 100644
index 08e0ba77..00000000
--- a/src/libebl/eblwstrtab.c
+++ /dev/null
@@ -1,359 +0,0 @@
-/* ELF string table handling.
- Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <inttypes.h>
-#include <libelf.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <wchar.h>
-#include <sys/param.h>
-
-#include "libebl.h"
-#include <system.h>
-
-#ifndef MIN
-# define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
-
-struct Ebl_WStrent
-{
- const wchar_t *string;
- size_t len;
- struct Ebl_WStrent *next;
- struct Ebl_WStrent *left;
- struct Ebl_WStrent *right;
- size_t offset;
- wchar_t reverse[0];
-};
-
-
-struct memoryblock
-{
- struct memoryblock *next;
- char memory[0];
-};
-
-
-struct Ebl_WStrtab
-{
- struct Ebl_WStrent *root;
- struct memoryblock *memory;
- char *backp;
- size_t left;
- size_t total;
- bool nullstr;
-
- struct Ebl_WStrent null;
-};
-
-
-/* Cache for the pagesize. We correct this value a bit so that `malloc'
- is not allocating more than a page. */
-static size_t ps;
-
-
-struct Ebl_WStrtab *
-ebl_wstrtabinit (bool nullstr)
-{
- struct Ebl_WStrtab *ret;
-
- if (ps == 0)
- {
- ps = sysconf (_SC_PAGESIZE) - 2 * sizeof (void *);
- assert (sizeof (struct memoryblock) < ps);
- }
-
- ret = (struct Ebl_WStrtab *) calloc (1, sizeof (struct Ebl_WStrtab));
- if (ret != NULL)
- {
- ret->nullstr = nullstr;
- if (nullstr)
- {
- ret->null.len = 1;
- ret->null.string = L"";
- }
- }
- return ret;
-}
-
-
-static int
-morememory (struct Ebl_WStrtab *st, size_t len)
-{
- struct memoryblock *newmem;
-
- if (len < ps)
- len = ps;
- newmem = (struct memoryblock *) malloc (len);
- if (newmem == NULL)
- return 1;
-
- newmem->next = st->memory;
- st->memory = newmem;
- st->backp = newmem->memory;
- st->left = len - offsetof (struct memoryblock, memory);
-
- return 0;
-}
-
-
-void
-ebl_wstrtabfree (struct Ebl_WStrtab *st)
-{
- struct memoryblock *mb = st->memory;
-
- while (mb != NULL)
- {
- void *old = mb;
- mb = mb->next;
- free (old);
- }
-
- free (st);
-}
-
-
-static struct Ebl_WStrent *
-newstring (struct Ebl_WStrtab *st, const wchar_t *str, size_t len)
-{
- struct Ebl_WStrent *newstr;
- size_t align;
- int i;
-
- /* Compute the amount of padding needed to make the structure aligned. */
- align = ((__alignof__ (struct Ebl_WStrent)
- - (((uintptr_t) st->backp)
- & (__alignof__ (struct Ebl_WStrent) - 1)))
- & (__alignof__ (struct Ebl_WStrent) - 1));
-
- /* Make sure there is enough room in the memory block. */
- if (st->left < align + sizeof (struct Ebl_WStrent) + len * sizeof (wchar_t))
- {
- if (morememory (st,
- sizeof (struct Ebl_WStrent) + len * sizeof (wchar_t)))
- return NULL;
-
- align = 0;
- }
-
- /* Create the reserved string. */
- newstr = (struct Ebl_WStrent *) (st->backp + align);
- newstr->string = str;
- newstr->len = len;
- newstr->next = NULL;
- newstr->left = NULL;
- newstr->right = NULL;
- newstr->offset = 0;
- for (i = len - 2; i >= 0; --i)
- newstr->reverse[i] = str[len - 2 - i];
- newstr->reverse[len - 1] = L'\0';
- st->backp += align + sizeof (struct Ebl_WStrent) + len * sizeof (wchar_t);
- st->left -= align + sizeof (struct Ebl_WStrent) + len * sizeof (wchar_t);
-
- return newstr;
-}
-
-
-/* XXX This function should definitely be rewritten to use a balancing
- tree algorith (AVL, red-black trees). For now a simple, correct
- implementation is enough. */
-static struct Ebl_WStrent **
-searchstring (struct Ebl_WStrent **sep, struct Ebl_WStrent *newstr)
-{
- int cmpres;
-
- /* More strings? */
- if (*sep == NULL)
- {
- *sep = newstr;
- return sep;
- }
-
- /* Compare the strings. */
- cmpres = wmemcmp ((*sep)->reverse, newstr->reverse,
- MIN ((*sep)->len, newstr->len) - 1);
- if (cmpres == 0)
- /* We found a matching string. */
- return sep;
- else if (cmpres > 0)
- return searchstring (&(*sep)->left, newstr);
- else
- return searchstring (&(*sep)->right, newstr);
-}
-
-
-/* Add new string. The actual string is assumed to be permanent. */
-struct Ebl_WStrent *
-ebl_wstrtabadd (struct Ebl_WStrtab *st, const wchar_t *str, size_t len)
-{
- struct Ebl_WStrent *newstr;
- struct Ebl_WStrent **sep;
-
- /* Compute the string length if the caller doesn't know it. */
- if (len == 0)
- len = wcslen (str) + 1;
-
- /* Make sure all "" strings get offset 0 but only if the table was
- created with a special null entry in mind. */
- if (len == 1 && st->null.string != NULL)
- return &st->null;
-
- /* Allocate memory for the new string and its associated information. */
- newstr = newstring (st, str, len);
- if (newstr == NULL)
- return NULL;
-
- /* Search in the array for the place to insert the string. If there
- is no string with matching prefix and no string with matching
- leading substring, create a new entry. */
- sep = searchstring (&st->root, newstr);
- if (*sep != newstr)
- {
- /* This is not the same entry. This means we have a prefix match. */
- if ((*sep)->len > newstr->len)
- {
- struct Ebl_WStrent *subs;
-
- /* Check whether we already know this string. */
- for (subs = (*sep)->next; subs != NULL; subs = subs->next)
- if (subs->len == newstr->len)
- {
- /* We have an exact match with a substring. Free the memory
- we allocated. */
- st->left += st->backp - (char *) newstr;
- st->backp = (char *) newstr;
-
- return subs;
- }
-
- /* We have a new substring. This means we don't need the reverse
- string of this entry anymore. */
- st->backp -= newstr->len;
- st->left += newstr->len;
-
- newstr->next = (*sep)->next;
- (*sep)->next = newstr;
- }
- else if ((*sep)->len != newstr->len)
- {
- /* When we get here it means that the string we are about to
- add has a common prefix with a string we already have but
- it is longer. In this case we have to put it first. */
- st->total += newstr->len - (*sep)->len;
- newstr->next = *sep;
- newstr->left = (*sep)->left;
- newstr->right = (*sep)->right;
- *sep = newstr;
- }
- else
- {
- /* We have an exact match. Free the memory we allocated. */
- st->left += st->backp - (char *) newstr;
- st->backp = (char *) newstr;
-
- newstr = *sep;
- }
- }
- else
- st->total += newstr->len;
-
- return newstr;
-}
-
-
-static void
-copystrings (struct Ebl_WStrent *nodep, wchar_t **freep, size_t *offsetp)
-{
- struct Ebl_WStrent *subs;
-
- if (nodep->left != NULL)
- copystrings (nodep->left, freep, offsetp);
-
- /* Process the current node. */
- nodep->offset = *offsetp;
- *freep = wmempcpy (*freep, nodep->string, nodep->len);
- *offsetp += nodep->len * sizeof (wchar_t);
-
- for (subs = nodep->next; subs != NULL; subs = subs->next)
- {
- assert (subs->len < nodep->len);
- subs->offset = nodep->offset + nodep->len - subs->len;
- assert (subs->offset != 0 || subs->string[0] == '\0');
- }
-
- if (nodep->right != NULL)
- copystrings (nodep->right, freep, offsetp);
-}
-
-
-void
-ebl_wstrtabfinalize (struct Ebl_WStrtab *st, Elf_Data *data)
-{
- size_t copylen;
- wchar_t *endp;
- size_t nulllen = st->nullstr ? 1 : 0;
-
- /* Fill in the information. */
- data->d_buf = malloc ((st->total + nulllen) * sizeof (wchar_t));
- if (data->d_buf == NULL)
- abort ();
-
- /* The first byte must always be zero if we created the table with a
- null string. */
- if (st->nullstr)
- *((wchar_t *) data->d_buf) = L'\0';
-
- data->d_type = ELF_T_BYTE;
- data->d_size = st->total + nulllen;
- data->d_off = 0;
- data->d_align = 1;
- data->d_version = EV_CURRENT;
-
- /* Now run through the tree and add all the string while also updating
- the offset members of the elfstrent records. */
- endp = (wchar_t *) data->d_buf + nulllen;
- copylen = sizeof (wchar_t) * nulllen;
- copystrings (st->root, &endp, &copylen);
- assert (copylen == (st->total + nulllen) * sizeof (wchar_t));
-}
-
-
-size_t
-ebl_wstrtaboffset (struct Ebl_WStrent *se)
-{
- return se->offset;
-}
diff --git a/src/libebl/libebl.h b/src/libebl/libebl.h
deleted file mode 100644
index 7c3c7647..00000000
--- a/src/libebl/libebl.h
+++ /dev/null
@@ -1,466 +0,0 @@
-/* Interface for libebl.
- Copyright (C) 2000-2010, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBEBL_H
-#define _LIBEBL_H 1
-
-#include <gelf.h>
-#include "libdw.h"
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-
-#include "elf-knowledge.h"
-
-
-/* Opaque type for the handle. */
-typedef struct ebl Ebl;
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Get backend handle for object associated with ELF handle. */
-extern Ebl *ebl_openbackend (Elf *elf);
-/* Similar but without underlying ELF file. */
-extern Ebl *ebl_openbackend_machine (GElf_Half machine);
-/* Similar but with emulation name given. */
-extern Ebl *ebl_openbackend_emulation (const char *emulation);
-
-/* Free resources allocated for backend handle. */
-extern void ebl_closebackend (Ebl *bh);
-
-
-/* Information about the descriptor. */
-
-/* Get ELF machine. */
-extern int ebl_get_elfmachine (Ebl *ebl) __attribute__ ((__pure__));
-
-/* Get ELF class. */
-extern int ebl_get_elfclass (Ebl *ebl) __attribute__ ((__pure__));
-
-/* Get ELF data encoding. */
-extern int ebl_get_elfdata (Ebl *ebl) __attribute__ ((__pure__));
-
-
-/* Function to call the callback functions including default ELF
- handling. */
-
-/* Return backend name. */
-extern const char *ebl_backend_name (Ebl *ebl);
-
-/* Return relocation type name. */
-extern const char *ebl_object_type_name (Ebl *ebl, int object,
- char *buf, size_t len);
-
-/* Return relocation type name. */
-extern const char *ebl_reloc_type_name (Ebl *ebl, int reloc,
- char *buf, size_t len);
-
-/* Check relocation type. */
-extern bool ebl_reloc_type_check (Ebl *ebl, int reloc);
-
-/* Check relocation type use. */
-extern bool ebl_reloc_valid_use (Ebl *ebl, int reloc);
-
-/* Check if relocation type is for simple absolute relocations.
- Return ELF_T_{BYTE,HALF,SWORD,SXWORD} for a simple type, else ELF_T_NUM. */
-extern Elf_Type ebl_reloc_simple_type (Ebl *ebl, int reloc);
-
-/* Return true if the symbol type is that referencing the GOT. E.g.,
- R_386_GOTPC. */
-extern bool ebl_gotpc_reloc_check (Ebl *ebl, int reloc);
-
-/* Return segment type name. */
-extern const char *ebl_segment_type_name (Ebl *ebl, int segment,
- char *buf, size_t len);
-
-/* Return section type name. */
-extern const char *ebl_section_type_name (Ebl *ebl, int section,
- char *buf, size_t len);
-
-/* Return section name. */
-extern const char *ebl_section_name (Ebl *ebl, int section, int xsection,
- char *buf, size_t len,
- const char *scnnames[], size_t shnum);
-
-/* Return machine flag names. */
-extern const char *ebl_machine_flag_name (Ebl *ebl, GElf_Word flags,
- char *buf, size_t len);
-
-/* Check whether machine flag is valid. */
-extern bool ebl_machine_flag_check (Ebl *ebl, GElf_Word flags);
-
-/* Check whether SHF_MASKPROC flags are valid. */
-extern bool ebl_machine_section_flag_check (Ebl *ebl, GElf_Xword flags);
-
-/* Check whether the section with the given index, header, and name
- is a special machine section that is valid despite a combination
- of flags or other details that are not generically valid. */
-extern bool ebl_check_special_section (Ebl *ebl, int ndx,
- const GElf_Shdr *shdr, const char *name);
-
-/* Return symbol type name. */
-extern const char *ebl_symbol_type_name (Ebl *ebl, int symbol,
- char *buf, size_t len);
-
-/* Return symbol binding name. */
-extern const char *ebl_symbol_binding_name (Ebl *ebl, int binding,
- char *buf, size_t len);
-
-/* Return dynamic tag name. */
-extern const char *ebl_dynamic_tag_name (Ebl *ebl, int64_t tag,
- char *buf, size_t len);
-
-/* Check dynamic tag. */
-extern bool ebl_dynamic_tag_check (Ebl *ebl, int64_t tag);
-
-/* Check whether given symbol's st_value and st_size are OK despite failing
- normal checks. */
-extern bool ebl_check_special_symbol (Ebl *ebl, GElf_Ehdr *ehdr,
- const GElf_Sym *sym, const char *name,
- const GElf_Shdr *destshdr);
-
-/* Check whether only valid bits are set on the st_other symbol flag. */
-extern bool ebl_check_st_other_bits (Ebl *ebl, unsigned char st_other);
-
-/* Return combined section header flags value. */
-extern GElf_Word ebl_sh_flags_combine (Ebl *ebl, GElf_Word flags1,
- GElf_Word flags2);
-
-/* Return symbolic representation of OS ABI. */
-extern const char *ebl_osabi_name (Ebl *ebl, int osabi, char *buf, size_t len);
-
-
-/* Return name of the note section type for a core file. */
-extern const char *ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf,
- size_t len);
-
-/* Return name of the note section type for an object file. */
-extern const char *ebl_object_note_type_name (Ebl *ebl, const char *name,
- uint32_t type, char *buf,
- size_t len);
-
-/* Print information about object note if available. */
-extern void ebl_object_note (Ebl *ebl, const char *name, uint32_t type,
- uint32_t descsz, const char *desc);
-
-/* Check whether an attribute in a .gnu_attributes section is recognized.
- Fills in *TAG_NAME with the name for this tag.
- If VALUE is a known value for that tag, also fills in *VALUE_NAME. */
-extern bool ebl_check_object_attribute (Ebl *ebl, const char *vendor,
- int tag, uint64_t value,
- const char **tag_name,
- const char **value_name);
-
-/* Check whether a section type is a valid reloc target. */
-extern bool ebl_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type);
-
-
-/* Check section name for being that of a debug informatino section. */
-extern bool ebl_debugscn_p (Ebl *ebl, const char *name);
-
-/* Check whether given relocation is a copy relocation. */
-extern bool ebl_copy_reloc_p (Ebl *ebl, int reloc);
-
-/* Check whether given relocation is a no-op relocation. */
-extern bool ebl_none_reloc_p (Ebl *ebl, int reloc);
-
-/* Check whether given relocation is a relative relocation. */
-extern bool ebl_relative_reloc_p (Ebl *ebl, int reloc);
-
-/* Check whether section should be stripped. */
-extern bool ebl_section_strip_p (Ebl *ebl, const GElf_Ehdr *ehdr,
- const GElf_Shdr *shdr, const char *name,
- bool remove_comment, bool only_remove_debug);
-
-/* Check if backend uses a bss PLT in this file. */
-extern bool ebl_bss_plt_p (Ebl *ebl);
-
-/* Return size of entry in SysV-style hash table. */
-extern int ebl_sysvhash_entrysize (Ebl *ebl);
-
-/* Return location expression to find return value given a
- DW_TAG_subprogram, DW_TAG_subroutine_type, or similar DIE describing
- function itself (whose DW_AT_type attribute describes its return type).
- Returns -1 for a libdw error (see dwarf_errno).
- Returns -2 for an unrecognized type formation.
- Returns zero if the function has no return value (e.g. "void" in C).
- Otherwise, *LOCOPS gets a location expression to find the return value,
- and returns the number of operations in the expression. The pointer is
- permanently allocated at least as long as the Ebl handle is open. */
-extern int ebl_return_value_location (Ebl *ebl,
- Dwarf_Die *functypedie,
- const Dwarf_Op **locops);
-
-/* Fill in register information given DWARF register numbers.
- If NAME is null, return the maximum REGNO + 1 that has a name.
- Otherwise, store in NAME the name for DWARF register number REGNO
- and return the number of bytes written (including '\0' terminator).
- Return -1 if NAMELEN is too short or REGNO is negative or too large.
- Return 0 if REGNO is unused (a gap in the DWARF number assignment).
- On success, set *SETNAME to a description like "integer" or "FPU"
- fit for "%s registers" title display, and *PREFIX to the string
- that precedes NAME in canonical assembler syntax (e.g. "%" or "$").
- The NAME string contains identifier characters only (maybe just digits). */
-extern ssize_t ebl_register_info (Ebl *ebl,
- int regno, char *name, size_t namelen,
- const char **prefix, const char **setname,
- int *bits, int *type);
-
-/* Fill in the DWARF register numbers for the registers used in system calls.
- The SP and PC are what kernel reports call the user stack pointer and PC.
- The CALLNO and ARGS are the system call number and incoming arguments.
- Each of these is filled with the DWARF register number corresponding,
- or -1 if there is none. Returns zero when the information is available. */
-extern int ebl_syscall_abi (Ebl *ebl, int *sp, int *pc,
- int *callno, int args[6]);
-
-/* Supply the ABI-specified state of DWARF CFI before CIE initial programs.
-
- The DWARF 3.0 spec says that the default initial states of all registers
- are "undefined", unless otherwise specified by the machine/compiler ABI.
-
- This default is wrong for every machine with the CFI generated by GCC.
- The EH unwinder does not really distinguish "same_value" and "undefined",
- since it doesn't matter for unwinding (in either case there is no change
- to make for that register). GCC generates CFI that says nothing at all
- about registers it hasn't spilled somewhere. For our unwinder to give
- the true story, the backend must supply an initial state that uses
- "same_value" rules for all the callee-saves registers.
-
- This can fill in the initial_instructions, initial_instructions_end
- members of *ABI_INFO to point at a CFI instruction stream to process
- before each CIE's initial instructions. It should set the
- data_alignment_factor member if it affects the initial instructions.
-
- The callback should not use the register rules DW_CFA_expression or
- DW_CFA_val_expression. Defining the CFA using DW_CFA_def_cfa_expression
- is allowed. This is an implementation detail since register rules
- store expressions as offsets from the .eh_frame or .debug_frame data.
-
- As a shorthand for some common cases, for this instruction stream
- we overload some CFI instructions that cannot be used in a CIE:
-
- DW_CFA_restore -- Change default rule for all unmentioned
- registers from undefined to same_value.
-
- This function can also fill in ABI_INFO->return_address_register with the
- DWARF register number that identifies the actual PC in machine state.
- If there is no canonical DWARF register number with that meaning, it's
- left unchanged (callers usually initialize with (Dwarf_Word) -1).
- This value is not used by CFI per se.
-
- Function returns 0 on success and -1 for error or unsupported by the
- backend. */
-extern int ebl_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info)
- __nonnull_attribute__ (2);
-
-/* ELF string table handling. */
-struct Ebl_Strtab;
-struct Ebl_Strent;
-
-/* Create new ELF string table object in memory. */
-extern struct Ebl_Strtab *ebl_strtabinit (bool nullstr);
-
-/* Free resources allocated for ELF string table ST. */
-extern void ebl_strtabfree (struct Ebl_Strtab *st);
-
-/* Add string STR (length LEN is != 0) to ELF string table ST. */
-extern struct Ebl_Strent *ebl_strtabadd (struct Ebl_Strtab *st,
- const char *str, size_t len);
-
-/* Finalize string table ST and store size and memory location information
- in DATA. */
-extern void ebl_strtabfinalize (struct Ebl_Strtab *st, Elf_Data *data);
-
-/* Get offset in string table for string associated with SE. */
-extern size_t ebl_strtaboffset (struct Ebl_Strent *se);
-
-/* Return the string associated with SE. */
-extern const char *ebl_string (struct Ebl_Strent *se);
-
-
-/* ELF wide char string table handling. */
-struct Ebl_WStrtab;
-struct Ebl_WStrent;
-
-/* Create new ELF wide char string table object in memory. */
-extern struct Ebl_WStrtab *ebl_wstrtabinit (bool nullstr);
-
-/* Free resources allocated for ELF wide char string table ST. */
-extern void ebl_wstrtabfree (struct Ebl_WStrtab *st);
-
-/* Add string STR (length LEN is != 0) to ELF string table ST. */
-extern struct Ebl_WStrent *ebl_wstrtabadd (struct Ebl_WStrtab *st,
- const wchar_t *str, size_t len);
-
-/* Finalize string table ST and store size and memory location information
- in DATA. */
-extern void ebl_wstrtabfinalize (struct Ebl_WStrtab *st, Elf_Data *data);
-
-/* Get offset in wide char string table for string associated with SE. */
-extern size_t ebl_wstrtaboffset (struct Ebl_WStrent *se);
-
-
-/* Generic string table handling. */
-struct Ebl_GStrtab;
-struct Ebl_GStrent;
-
-/* Create new string table object in memory. */
-extern struct Ebl_GStrtab *ebl_gstrtabinit (unsigned int width, bool nullstr);
-
-/* Free resources allocated for string table ST. */
-extern void ebl_gstrtabfree (struct Ebl_GStrtab *st);
-
-/* Add string STR (length LEN is != 0) to string table ST. */
-extern struct Ebl_GStrent *ebl_gstrtabadd (struct Ebl_GStrtab *st,
- const char *str, size_t len);
-
-/* Finalize string table ST and store size and memory location information
- in DATA. */
-extern void ebl_gstrtabfinalize (struct Ebl_GStrtab *st, Elf_Data *data);
-
-/* Get offset in wide char string table for string associated with SE. */
-extern size_t ebl_gstrtaboffset (struct Ebl_GStrent *se);
-
-
-/* Register map info. */
-typedef struct
-{
- Dwarf_Half offset; /* Byte offset in register data block. */
- Dwarf_Half regno; /* DWARF register number. */
- uint8_t bits; /* Bits of data for one register. */
- uint8_t pad; /* Bytes of padding after register's data. */
- Dwarf_Half count; /* Consecutive register numbers here. */
- bool pc_register;
-} Ebl_Register_Location;
-
-/* Non-register data items in core notes. */
-typedef struct
-{
- const char *name; /* Printable identifier. */
- const char *group; /* Identifier for category of related items. */
- Dwarf_Half offset; /* Byte offset in note data. */
- Dwarf_Half count;
- Elf_Type type;
- char format;
- bool thread_identifier;
- bool pc_register;
-} Ebl_Core_Item;
-
-/* Describe the format of a core file note with the given header and NAME.
- NAME is not guaranteed terminated, it's NHDR->n_namesz raw bytes. */
-extern int ebl_core_note (Ebl *ebl, const GElf_Nhdr *nhdr, const char *name,
- GElf_Word *regs_offset, size_t *nregloc,
- const Ebl_Register_Location **reglocs,
- size_t *nitems, const Ebl_Core_Item **items)
- __nonnull_attribute__ (1, 2, 3, 4, 5, 6, 7, 8);
-
-/* Describe the auxv type number. */
-extern int ebl_auxv_info (Ebl *ebl, GElf_Xword a_type,
- const char **name, const char **format)
- __nonnull_attribute__ (1, 3, 4);
-
-/* Callback type for ebl_set_initial_registers_tid.
- Register -1 is mapped to PC (if arch PC has no DWARF number).
- If FIRSTREG is -1 then NREGS has to be 1. */
-typedef bool (ebl_tid_registers_t) (int firstreg, unsigned nregs,
- const Dwarf_Word *regs, void *arg)
- __nonnull_attribute__ (3);
-
-/* Callback to fetch process data from live TID.
- EBL architecture has to have EBL_FRAME_NREGS > 0, otherwise the
- backend doesn't support unwinding and this function call may crash. */
-extern bool ebl_set_initial_registers_tid (Ebl *ebl,
- pid_t tid,
- ebl_tid_registers_t *setfunc,
- void *arg)
- __nonnull_attribute__ (1, 3);
-
-/* Number of registers to allocate for ebl_set_initial_registers_tid.
- EBL architecture can unwind iff EBL_FRAME_NREGS > 0. */
-extern size_t ebl_frame_nregs (Ebl *ebl)
- __nonnull_attribute__ (1);
-
-/* Mask to use for function symbol or unwind return addresses in case
- the architecture adds some extra non-address bits to it. This is
- different from ebl_resolve_sym_value which only works for actual
- symbol addresses (in non-ET_REL files) that might resolve to an
- address in a different section. ebl_func_addr_mask is called to
- turn a given function value into the a real address or offset (the
- original value might not be a real address). This works for all
- cases where an actual function address (or offset in ET_REL symbol
- tables) is needed. */
-extern GElf_Addr ebl_func_addr_mask (Ebl *ebl);
-
-/* Convert *REGNO as is in DWARF to a lower range suitable for
- Dwarf_Frame->REGS indexing. */
-extern bool ebl_dwarf_to_regno (Ebl *ebl, unsigned *regno)
- __nonnull_attribute__ (1, 2);
-
-/* Modify PC as fetched from inferior data into valid PC. */
-extern void ebl_normalize_pc (Ebl *ebl, Dwarf_Addr *pc)
- __nonnull_attribute__ (1, 2);
-
-/* Callback type for ebl_unwind's parameter getfunc. */
-typedef bool (ebl_tid_registers_get_t) (int firstreg, unsigned nregs,
- Dwarf_Word *regs, void *arg)
- __nonnull_attribute__ (3);
-
-/* Callback type for ebl_unwind's parameter readfunc. */
-typedef bool (ebl_pid_memory_read_t) (Dwarf_Addr addr, Dwarf_Word *data,
- void *arg)
- __nonnull_attribute__ (3);
-
-/* Get previous frame state for an existing frame state. Method is called only
- if unwinder could not find CFI for current PC. PC is for the
- existing frame. SETFUNC sets register in the previous frame. GETFUNC gets
- register from the existing frame. Note that GETFUNC vs. SETFUNC act on
- a disjunct set of registers. READFUNC reads memory. ARG has to be passed
- for SETFUNC, GETFUNC and READFUNC. *SIGNAL_FRAMEP is initialized to false,
- it can be set to true if existing frame is a signal frame. SIGNAL_FRAMEP is
- never NULL. */
-extern bool ebl_unwind (Ebl *ebl, Dwarf_Addr pc, ebl_tid_registers_t *setfunc,
- ebl_tid_registers_get_t *getfunc,
- ebl_pid_memory_read_t *readfunc, void *arg,
- bool *signal_framep)
- __nonnull_attribute__ (1, 3, 4, 5, 7);
-
-/* Returns true if the value can be resolved to an address in an
- allocated section, which will be returned in *ADDR
- (e.g. function descriptor resolving) */
-extern bool ebl_resolve_sym_value (Ebl *ebl, GElf_Addr *addr)
- __nonnull_attribute__ (2);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* libebl.h */
diff --git a/src/libebl/libeblP.h b/src/libebl/libeblP.h
deleted file mode 100644
index dbd67f3e..00000000
--- a/src/libebl/libeblP.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/* Internal definitions for interface for libebl.
- Copyright (C) 2000-2009, 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBEBLP_H
-#define _LIBEBLP_H 1
-
-#include <gelf.h>
-#include <libasm.h>
-#include <libebl.h>
-#include <libintl.h>
-
-
-/* Backend handle. */
-struct ebl
-{
- /* Machine name. */
- const char *name;
-
- /* Emulation name. */
- const char *emulation;
-
- /* ELF machine, class, and data encoding. */
- uint_fast16_t machine;
- uint_fast8_t class;
- uint_fast8_t data;
-
- /* The libelf handle (if known). */
- Elf *elf;
-
- /* See ebl-hooks.h for the declarations of the hook functions. */
-# define EBLHOOK(name) (*name)
-# include "ebl-hooks.h"
-# undef EBLHOOK
-
- /* Size of entry in Sysv-style hash table. */
- int sysvhash_entrysize;
-
- /* Number of registers to allocate for ebl_set_initial_registers_tid.
- Ebl architecture can unwind iff FRAME_NREGS > 0. */
- size_t frame_nregs;
-
- /* Mask to use to turn a function value into a real function address
- in case the architecture adds some extra non-address bits to it.
- If not initialized (0) then ebl_func_addr_mask will return ~0,
- otherwise it should be the actual mask to use. */
- GElf_Addr func_addr_mask;
-
- /* Function descriptor load address and table as used by
- ebl_resolve_sym_value if available for this arch. */
- GElf_Addr fd_addr;
- Elf_Data *fd_data;
-
- /* Internal data. */
- void *dlhandle;
-};
-
-
-/* Type of the initialization functions in the backend modules. */
-typedef const char *(*ebl_bhinit_t) (Elf *, GElf_Half, Ebl *, size_t);
-
-
-/* gettext helper macros. */
-#undef _
-#define _(Str) dgettext ("elfutils", Str)
-
-
-/* LEB128 constant helper macros. */
-#define ULEB128_7(x) (BUILD_BUG_ON_ZERO ((x) >= (1U << 7)) + (x))
-
-#define BUILD_BUG_ON_ZERO(x) (sizeof (char [(x) ? -1 : 1]) - 1)
-
-#endif /* libeblP.h */
diff --git a/src/libelf/Android.mk b/src/libelf/Android.mk
deleted file mode 100755
index 76097305..00000000
--- a/src/libelf/Android.mk
+++ /dev/null
@@ -1,188 +0,0 @@
-# Copyright (C) 2013 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-LOCAL_PATH := $(call my-dir)
-
-LIBELF_SRC_FILES := \
- elf32_checksum.c \
- elf32_fsize.c \
- elf32_getehdr.c \
- elf32_getphdr.c \
- elf32_getshdr.c \
- elf32_newehdr.c \
- elf32_newphdr.c \
- elf32_offscn.c \
- elf32_updatefile.c \
- elf32_updatenull.c \
- elf32_xlatetof.c \
- elf32_xlatetom.c \
- elf64_checksum.c \
- elf64_fsize.c \
- elf64_getehdr.c \
- elf64_getphdr.c \
- elf64_getshdr.c \
- elf64_newehdr.c \
- elf64_newphdr.c \
- elf64_offscn.c \
- elf64_updatefile.c \
- elf64_updatenull.c \
- elf64_xlatetof.c \
- elf64_xlatetom.c \
- elf_begin.c \
- elf_clone.c \
- elf_cntl.c \
- elf_end.c \
- elf_error.c \
- elf_fill.c \
- elf_flagdata.c \
- elf_flagehdr.c \
- elf_flagelf.c \
- elf_flagphdr.c \
- elf_flagscn.c \
- elf_flagshdr.c \
- elf_getarhdr.c \
- elf_getaroff.c \
- elf_getarsym.c \
- elf_getbase.c \
- elf_getdata.c \
- elf_getdata_rawchunk.c \
- elf_getident.c \
- elf_getphdrnum.c \
- elf_getscn.c \
- elf_getshdrnum.c \
- elf_getshdrstrndx.c \
- elf_gnu_hash.c \
- elf_hash.c \
- elf_kind.c \
- elf_memory.c \
- elf_ndxscn.c \
- elf_newdata.c \
- elf_newscn.c \
- elf_next.c \
- elf_nextscn.c \
- elf_rand.c \
- elf_rawdata.c \
- elf_rawfile.c \
- elf_readall.c \
- elf_scnshndx.c \
- elf_strptr.c \
- elf_update.c \
- elf_version.c \
- gelf_checksum.c \
- gelf_fsize.c \
- gelf_getauxv.c \
- gelf_getclass.c \
- gelf_getdyn.c \
- gelf_getehdr.c \
- gelf_getlib.c \
- gelf_getmove.c \
- gelf_getnote.c \
- gelf_getphdr.c \
- gelf_getrela.c \
- gelf_getrel.c \
- gelf_getshdr.c \
- gelf_getsym.c \
- gelf_getsyminfo.c \
- gelf_getsymshndx.c \
- gelf_getverdaux.c \
- gelf_getverdef.c \
- gelf_getvernaux.c \
- gelf_getverneed.c \
- gelf_getversym.c \
- gelf_newehdr.c \
- gelf_newphdr.c \
- gelf_offscn.c \
- gelf_update_auxv.c \
- gelf_update_dyn.c \
- gelf_update_ehdr.c \
- gelf_update_lib.c \
- gelf_update_move.c \
- gelf_update_phdr.c \
- gelf_update_rela.c \
- gelf_update_rel.c \
- gelf_update_shdr.c \
- gelf_update_sym.c \
- gelf_update_syminfo.c \
- gelf_update_symshndx.c \
- gelf_update_verdaux.c \
- gelf_update_verdef.c \
- gelf_update_vernaux.c \
- gelf_update_verneed.c \
- gelf_update_versym.c \
- gelf_xlate.c \
- gelf_xlatetof.c \
- gelf_xlatetom.c \
- libelf_crc32.c \
- libelf_next_prime.c \
- nlist.c
-
-ifeq ($(HOST_OS),linux)
-
-#
-# host libelf
-#
-
-include $(CLEAR_VARS)
-
-# Clang has no nested functions.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBELF_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE
-
-# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
-LOCAL_CFLAGS += -Wno-pointer-arith
-
-LOCAL_MODULE := libelf
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif # linux
-
-#
-# target libelf
-#
-
-include $(CLEAR_VARS)
-
-# Clang has no nested functions.
-LOCAL_CLANG := false
-
-LOCAL_SRC_FILES := $(LIBELF_SRC_FILES)
-
-LOCAL_C_INCLUDES := \
- $(LOCAL_PATH)/.. \
- $(LOCAL_PATH)/../lib \
-
-LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../bionic-fixup
-
-LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-
-# to suppress the "pointer of type ‘void *’ used in arithmetic" warning
-LOCAL_CFLAGS += -Wno-pointer-arith
-
-LOCAL_CFLAGS += -include $(LOCAL_PATH)/../../bionic-fixup/AndroidFixup.h
-
-LOCAL_MODULE := libelf
-
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-
-include $(BUILD_STATIC_LIBRARY)
diff --git a/src/libelf/ChangeLog b/src/libelf/ChangeLog
deleted file mode 100644
index 3b88d031..00000000
--- a/src/libelf/ChangeLog
+++ /dev/null
@@ -1,1036 +0,0 @@
-2014-12-18 Ulrich Drepper <drepper@gmail.com>
-
- * Makefile.am: Suppress output of textrel_check command.
-
-2014-12-16 Mark Wielaard <mjw@redhat.com>
-
- * elf_begin.c (read_long_names): Make sure long_names len fits
- in mapped ELF file.
-
-2014-12-15 Mark Wielaard <mjw@redhat.com>
-
- * elf_getarsym.c (elf_getarsym): Check index_size doesn't overflow.
-
-2014-12-15 Mark Wielaard <mjw@redhat.com>
-
- * elf_begin.c (read_long_names): Clear any garbage left in the
- name table.
-
-2014-12-11 Mark Wielaard <mjw@redhat.com>
-
- * elf_begin.c (file_read_elf): Correct ELF64 section offset check.
-
-2014-12-11 Mark Wielaard <mjw@redhat.com>
-
- * elf_begin.c (read_long_names): Check for offset overflow.
- (__libelf_next_arhdr_wrlock): Likewise. Sanity check the ar_size.
- Don't allow it to go beyond end of file.
-
-2014-12-09 Mark Wielaard <mjw@redhat.com>
-
- * elf_getarsym.c (elf_getarsym): Make sure n * w doesn't overflow.
-
-2014-11-27 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (libelf.so): Use textrel_check.
-
-2014-11-23 Mark Wielaard <mjw@redhat.com>
-
- * elf_getdata_rawchunk.c (elf_getdata_rawchunk): Change signed
- overflow check to unsigned.
-
-2014-11-23 Mark Wielaard <mjw@redhat.com>
-
- * note_xlate.h (elf_cvt_note): Copy over any leftover data if
- src != dest. The data is probably part of truncated name/desc.
-
-2014-11-22 Mark Wielaard <mjw@redhat.com>
-
- * elf_getphdrnum.c (elf_getphdrnum): Sanity check the
- __elf_getphdrnum_rdlock result.
-
-2014-11-18 Mark Wielaard <mjw@redhat.com>
-
- * version_xlate.h (elf_cvt_Verdef): Check for overflow.
- (elf_cvt_Verneed): Likewise.
-
-2014-11-17 Mark Wielaard <mjw@redhat.com>
-
- * elf-knowledge.h (SECTION_STRIP_P): Check name is not NULL.
-
-2014-11-16 Mark Wielaard <mjw@redhat.com>
-
- * elf_getshdrstrndx.c: Check there are section headers before
- handling SHN_XINDEX.
-
-2014-11-16 Mark Wielaard <mjw@redhat.com>
-
- * elf32_getphdr.c (getphdr_wrlock): Check e_phoff isn't zero.
- Check for too many pheaders.
- * elf_getphdrnum.c (__elf_getphdrnum_rdlock): Check section zero
- actually exists before handling PN_XNUM.
-
-2014-11-16 Mark Wielaard <mjw@redhat.com>
-
- * gelf_getnote.c (gelf_getnote): Check padding overflow.
-
-2014-11-16 Mark Wielaard <mjw@redhat.com>
-
- * elf_getdata.c (__libelf_set_rawdata_wrlock): Declare offset, size
- and align as Elf64_Off and Elf64_Xword not size_t.
-
-2014-11-14 Mark Wielaard <mjw@redhat.com>
-
- * gelf_getnote.c (gelf_getnote): Check offset overflow.
-
-2014-11-13 Mark Wielaard <mjw@redhat.com>
-
- * elf_getdata.c (__libelf_set_rawdata_wrlock): Fix unsigned overflow
- check.
-
-2014-11-08 Mark Wielaard <mjw@redhat.com>
-
- * elf_begin.c (__libelf_next_arhdr_wrlock): Use mempcpy not __mempcpy.
-
-2014-11-07 Mark Wielaard <mjw@redhat.com>
-
- * elf_begin.c (file_read_elf): Correct sh_size check.
- * elf_getdata.c (__libelf_set_rawdata_wrlock): Check for unsigned
- overflow.
-
-2014-09-10 Petr Machata <pmachata@redhat.com>
-
- * elf_begin (read_unmmaped_file): Call __libelf_seterrno if the
- file is unreadable.
-
-2014-07-07 Mark Wielaard <mjw@redhat.com>
-
- * elf.h: Update from glibc.
-
-2014-04-13 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Remove !MUDFLAP conditions.
- * elf_begin.c (read_file): Don't clear use_mmap when _MUDFLAP is
- defined.
- * elf_update.c (write_file): Remove _MUDFLAP condition.
-
-2014-01-17 Jakub Jelinek <jakub@redhat.com>
- Roland McGrath <roland@redhat.com>
-
- * libelfP.h (INVALID_NDX): Define.
- * gelf_getdyn.c (gelf_getdyn): Use it. Remove ndx < 0 test if any.
- * gelf_getlib.c (gelf_getlib): Likewise.
- * gelf_getmove.c (gelf_getmove): Likewise.
- * gelf_getrel.c (gelf_getrel): Likewise.
- * gelf_getrela.c (gelf_getrela): Likewise.
- * gelf_getsym.c (gelf_getsym): Likewise.
- * gelf_getsyminfo.c (gelf_getsyminfo): Likewise.
- * gelf_getsymshndx.c (gelf_getsymshndx): Likewise.
- * gelf_getversym.c (gelf_getversym): Likewise.
- * gelf_update_dyn.c (gelf_update_dyn): Likewise.
- * gelf_update_lib.c (gelf_update_lib): Likewise.
- * gelf_update_move.c (gelf_update_move): Likewise.
- * gelf_update_rel.c (gelf_update_rel): Likewise.
- * gelf_update_rela.c (gelf_update_rela): Likewise.
- * gelf_update_sym.c (gelf_update_sym): Likewise.
- * gelf_update_syminfo.c (gelf_update_syminfo): Likewise.
- * gelf_update_symshndx.c (gelf_update_symshndx): Likewise.
- * gelf_update_versym.c (gelf_update_versym): Likewise.
-
-2014-01-17 Jakub Jelinek <jakub@redhat.com>
-
- * elf32_getphdr.c (elfw2(LIBELFBITS,getphdr)): Check if program header
- table fits into object's bounds.
- * elf_getshdrstrndx.c (elf_getshstrndx): Add elf->start_offset to
- elf->map_address. Check if first section header fits into object's
- bounds.
- * elf32_getshdr.c (elfw2(LIBELFBITS,getshdr)):
- Check if section header table fits into object's bounds.
- * elf_begin.c (get_shnum): Ensure section headers fits into
- object's bounds.
- (file_read_elf): Make sure scncnt is small enough to allocate both
- ElfXX_Shdr and Elf_Scn array. Make sure section and program header
- tables fit into object's bounds. Avoid memory leak on failure.
- * elf_newscn.c (elf_newscn): Check for overflow.
- * elf32_updatefile.c (__elfw2(LIBELFBITS,updatemmap)): Likewise.
- (__elfw2(LIBELFBITS,updatefile)): Likewise.
- * elf32_newphdr.c (elfw2(LIBELFBITS,newphdr)): Likewise.
- * elf_getarsym.c (elf_getarsym): Likewise.
-
-2013-11-08 Mark Wielaard <mjw@redhat.com>
-
- * elf32_updatefile.c (elfXX_updatemmap): Only memcpy ehdr when not
- already directly mmapped.
-
-2013-11-05 Mark Wielaard <mjw@redhat.com>
-
- * elf32_updatefile.c (elfXX_updatefile): Copy all section headers
- if elf->flags dirty.
-
-2013-11-01 Michael Forney <mforney@mforney.org>
-
- * Makefile.am: Use READELF.
-
-2013-10-01 Petr Machata <pmachata@redhat.com>
-
- * elf.h: Update from glibc.
-
-2013-06-17 Petr Machata <pmachata@redhat.com>
-
- * elf.h: Update from glibc.
-
-2013-08-28 Namhyung Kim <namhyung@gmail.com>
-
- * gelf.h (gelf_fsize): Fix typo in comment.
-
-2013-08-28 Mark Wielaard <mjw@redhat.com>
-
- * gelf_getauxv.c (gelf_getauxv): Add missing whitespace.
-
-2013-08-27 Mark Wielaard <mjw@redhat.com>
-
- * gelf_getauxv.c (gelf_getauxv): Remove unnecessary casts to char *.
-
-2013-08-25 Kurt Roeckx <kurt@roeckx.be>
-
- * gelf_getauxv.c (gelf_getauxv): Use memcpy instead of pointer
- dereference to avoid alignment problems.
-
-2013-01-07 Roland McGrath <roland@hack.frob.com>
-
- * elf_getarsym.c (elf_getarsym): Copy FILE_DATA into stack space if it
- would be unaligned and !ALLOW_UNALIGNED.
-
- * elf_getarsym.c (read_number_entries): Use memcpy instead of pointer
- dereference so as not to assume the field is naturally aligned.
-
-2012-09-17 Petr Machata <pmachata@redhat.com>
-
- * elf.h: Update from glibc.
-
-2012-08-16 Roland McGrath <roland@hack.frob.com>
-
- * elf.h: Update from glibc.
-
-2012-08-14 Mark Wielaard <mjw@redhat.com>
-
- * elf32_checksum.c (ebl_debugscn_p): Removed unused define and
- confusing outdated comment.
-
-2012-08-01 Petr Machata <pmachata@redhat.com>
-
- * elf_getarsym (read_number_entries): New function.
- (elf_getarsym): Handle 64-bit symbol table, stored in special
- entry named "/SYM64/".
- * elf_begin.c (__libelf_next_arhdr_wrlock): Don't reject archive
- because it contains 64-bit symbol table.
-
-2012-07-19 Mark Wielaard <mjw@redhat.com>
-
- * elf32_getshdr.c (load_shdr_wrlock): Add elf->flags & ELF_F_MALLOCED
- to asserts.
-
-2012-07-17 Petr Machata <pmachata@redhat.com>
-
- * elf32_xlatetom.c (elfw2(LIBELFBITS, xlatetom)): Do not check for
- integer number of records in case of ELF_T_NHDR.
-
-2012-04-02 Mark Wielaard <mjw@redhat.com>
-
- * elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET unless
- there are no nonempty sections at that offset.
-
-2012-03-21 Roland McGrath <roland@hack.frob.com>
-
- * elf-knowledge.h (SECTION_STRIP_P): Remove < SHT_NUM check.
-
-2011-02-26 Mark Wielaard <mjw@redhat.com>
-
- * elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
-
-2011-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * elf_getdata_rawchunk.c (elf_getdata_rawchunk): Fix off64_t overflow
- when MAXIMUM_SIZE == ~0.
-
-2010-08-18 Roland McGrath <roland@redhat.com>
-
- * gelf_fsize.c (__libelf_type_sizes): Add entries for ELF_T_LIB
- and ELF_T_GNUHASH.
- Reported by Mark Hatle <mark.hatle@windriver.com>.
-
- * exttypes.h: Add cases for ElfNN_Lib.
- Reported by Mark Hatle <mark.hatle@windriver.com>.
-
-2010-06-14 Ulrich Drepper <drepper@redhat.com>
-
- * gelf_update_shdr.c: Implicitly set ELF_F_DIRTY bit.
- * gelf_update_phdr.c: Likewise.
- * gelf_update_ehdr.c: Likewise.
-
-2010-04-14 Roland McGrath <roland@redhat.com>
-
- * elf32_getphdr.c: Check for e_phoff/size outside the file bounds.
- * elf_begin.c (file_read_elf): Don't set .phdr here.
-
-2010-04-13 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2010-04-06 Roland McGrath <roland@redhat.com>
-
- * elf_error.c (ELF_E_FD_MISMATCH_IDX): Avoid nonobvious abbreviation
- in error message.
-
-2010-04-01 Petr Machata <pmachata@redhat.com>
-
- * elf_getdata.c (__elf_getdata_rdlock): Initialize data.s for data
- that do not need a conversion.
-
-2010-03-11 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2010-03-04 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Update from glibc.
-
-2010-02-17 Roland McGrath <roland@redhat.com>
-
- * elf_begin.c (file_read_elf): Leave section rawdata_base and
- data_base pointers null when [sh_offset,sh_size) points outside
- the mapped file.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
-2010-01-07 Roland McGrath <roland@redhat.com>
-
- * elf32_getphdr.c: Use __elf_getphdrnum_rdlock.
- * gelf_getphdr.c: Likewise.
- * gelf_update_phdr.c: Likewise.
- * elf32_updatefile.c (__elf32_updatemmap, __elf32_updatefile): Likewise.
- * elf32_updatenull.c (__elf32_updatenull_wrlock): Likewise.
- * elf32_newphdr.c: Clear section 0's sh_info when resetting e_phnum.
- If COUNT is too large, use store PN_XNUM instead and set sh_info.
- * elf_begin.c (file_read_elf): Always allocate space we can use later
- for section 0 if doing RDWR.
-
- * elf_getphdrnum.c: New file.
- * Makefile.am (libelf_a_SOURCES): Add it.
- * libelf.h: Declare elf_getphdrnum.
- * libelfP.h: Declare __elf_getphdrnum_rdlock.
- * libelf.map (ELFUTILS_1.6): New set, add elf_getphdrnum.
-
- * elf.h: Update from glibc.
-
-2009-10-23 Lubomir Rintel <lkundrak@v3.sk>
-
- * elf32_updatefile.c (fill_mmap): When starting past shdr_end, start
- filling from section start, not shdr_end.
-
-2009-11-10 Roland McGrath <roland@redhat.com>
-
- * elf_readall.c (__libelf_readall): Fetch file size if not yet known.
-
-2009-11-06 Mark Wielaard <mjw@redhat.com>
-
- * elf_next.c (elf_next): Mark the archive header as unusable when
- there is no next ar element.
-
-2009-08-12 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (libelf.so): Use -Wl,-z,defs not -defs.
-
-2009-07-26 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Update from glibc.
-
-2009-07-21 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatefile.c (__elfXX_updatemmap): Fix handling of gaps between
- sections. Patch by Lubomir Rintel <lkundrak@v3.sk>.
-
-2009-07-08 Roland McGrath <roland@redhat.com>
-
- * libelfP.h (struct Elf): Remove unused ar.has_index field.
- Reorder various members for optimal packing.
-
-2009-07-08 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Update from glibc.
-
-2009-06-13 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (libelf_a_SOURCES): Replace elf_getshnum.c and
- elf_getshstrndx.c with elf_getshdrnum.c and elf_getshdrstrndx.c.
- * elf_getshnum.c: Renamed to...
- * elf_getshdrnum.c: ...this. Rename function and add old name as
- alias. Likewise for internal functions with derived names.
- * elf_getshstrndx.c: Renamed to...
- * elf_getshdrstrndx.c: ...this. Rename function and add old name as
- alias. Likewise for internal functions with derived names.
- * libelf.h: Add prototypes for new names. Make old names as
- deprecated.
- * libelfP.h: Rename internal function prototypes.
- * libelf.map: Export for names.
- * elf32_checksum.c: Don't use deprecated functions.
- * elf32_getshdr.c: Likewise.
-
-2009-06-01 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Update from glibc.
-
-2009-04-14 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2009-04-01 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2009-02-10 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatefile.c (updatefile): For the zeroth section we still
- have to copy the section header.
-
-2009-02-01 Ulrich Drepper <drepper@redhat.com>
-
- * elf_strptr.c: Add comment re possible problem.
-
-2009-01-26 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatenull.c (updatenull_wrlock): Fix comment of
- ELF_F_LAYOUT behaviour re section header table.
-
-2009-01-22 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatefile.c (__elfXX_updatemmap): Fill the gap between
- sections even if only the section at the start of the gap has been
- changed.
- (__elfXX_updatefile): Likewise.
-
-2009-01-21 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatefile.c (__elfXX_updatemmap): Skip most of the loop to
- handle sections for NOBITS sections.
- (elfXX_updatefile): Likewise.
-
- * elf32_updatefile.c (__elfXX_updatemmap): When skipping non-NOBITS
- sections we haven't loaded, update last_position based on scn_start,
- not based on old value. Don't run the loop for the dummy section 0.
- (elfXX_updatefile): Don't run the loop for the dummy section 0.
-
-2009-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * libelfP.h (_): We only have one translation domain, elfutils.
-
- * Makefile.am: Use USE_LOCKS instead of USE_TLS.
- * elf_error.c: Always use __thread. Remove all !USE_TLS code.
-
-2009-01-04 Roland McGrath <roland@redhat.com>
-
- * note_xlate.h (elf_cvt_note): Don't examine a size too small to
- container a note header.
-
-2008-12-11 Roland McGrath <roland@redhat.com>
-
- * elf32_updatefile.c (__elfw2(LIBELFBITS,updatemmap)): Handle
- placement offset going backwards, for out-of-order or overlapping
- (bogus) sh_offset layouts. It's a dumb use, but should not crash.
- (__elfw2(LIBELFBITS,updatefile)): Likewise.
- Fixes RHBZ#476136.
-
- * libelf.h (Elf_Data): Whitespace fix.
-
-2008-12-10 Roland McGrath <roland@redhat.com>
-
- * elf_getarhdr.c (elf_getarhdr): Fix missing rename in last change.
-
-2008-10-22 Petr Machata <pmachata@redhat.com>
-
- * elf_rawfile.c (elf_rawfile): Lock around elf-> references.
-
-2008-10-21 Petr Machata <pmachata@redhat.com>
-
- * libelfP.h: Rename getehdr_rdlock to getehdr_wrlock.
- * elf32_getehdr.c (getehdr_rdlock): Move the code to new function
- getehdr_impl and make it a wrapper. Rename to getehdr_wrlock.
- (getehdr_impl): Guard elf->class init with wrlock.
- (getehdr): Also make it a wrapper of getehdr_impl.
- * elf32_updatenull.c (updatenull_wrlock): Call getehdr_wrlock.
-
-2008-10-20 Petr Machata <pmachata@redhat.com>
-
- * elf_getdata_rawchunk.c (elf_getdata_rawchunk): Lock around the
- code that reads mutable elf state. Relock to write lock to chain
- the new chunk on the elf rawchunks list.
-
-2008-10-20 Petr Machata <pmachata@redhat.com>
-
- * elf32_checksum.c (checksum): Place a lock around the code that
- processes data. Make it wrlock if the code needs to xlate the
- data before processing.
-
-2008-10-16 Petr Machata <pmachata@redhat.com>
-
- * elf_begin.c
- (__libelf_next_arhdr): Rename to __libelf_next_arhdr_wrlock.
- (dup_elf): Adjust the call.
- (elf_begin): New local function lock_dup_elf. Relocks the elf if
- necessary before calling dup. Call this instead of dup_elf.
- * elf_getarhdr.c
- (elf_getarhdr): Lock before calling __libelf_next_arhdr_wrlock.
- * elf_next.c (elf_next): Likewise.
- * elf_rand.c (elf_rand): Likewise.
-
-2008-10-14 Petr Machata <pmachata@redhat.com>
-
- * elf_getdata.c (__elf_getdata_rdlock): Lock before converting.
-
-2008-11-26 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2008-10-06 Roland McGrath <roland@redhat.com>
-
- * elf_getarhdr.c (elf_getarhdr): Return NULL when passed NULL.
-
-2008-08-27 Roland McGrath <roland@redhat.com>
-
- * elf_begin.c (get_shnum): Avoid misaligned reads for matching endian.
-
- * libelfP.h [!ALLOW_UNALIGNED] (__libelf_type_align): Fix CLASS index.
-
-2008-08-25 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (libelf_so_LDLIBS): New variable.
- (libelf.so): Use it in the link.
-
-2008-08-21 Petr Machata <pmachata@redhat.com>
-
- * elf_getdata.c, libelfP.h
- (__elf_getdata_internal): Rename to __elf_getdata_rdlock.
- (__libelf_set_rawdata_wrlock): New function.
- (__libelf_set_rawdata): Make it a wrapper that calls *_wrlock.
- * elf32_updatenull.c, libelfP.h
- (__elfNN_updatenull): Rename to __elfNN_updatenull_wrlock.
-
-2008-08-21 Petr Machata <pmachata@redhat.com>
-
- * elf32_getphdr.c, libelfP.h
- (__elfNN_getphdr_internal): Drop. Move __elfNN_getphdr_internal
- code to __elfNN_getphdr_wrlock.
- (__elfNN_getphdr_rdlock, __elfNN_getphdr_wrlock): New functions.
- (__elfNN_getphdr_rdlock, __elfNN_getphdr_wrlock): Make these
- wrappers of getphdr_impl.
-
-2008-08-21 Petr Machata <pmachata@redhat.com>
-
- * elf32_getehdr.c, libelfP.h
- (__elfNN_getehdr_internal): Rename to __elfNN_getehdr_rdlock.
- * gelf_getehdr, libelfP.h:
- (__gelf_getehdr_internal): Rename to __gelf_getehdr_rdlock.
-
-2008-08-21 Petr Machata <pmachata@redhat.com>
-
- * elf32_getshdr.c
- (__elfNN_getshdr_internal): Drop.
- (load_shdr_wrlock, scn_valid): New functions, contain bits of
- behaviour from __elfNN_getshdr_internal.
- (__elfNN_getshdr_rdlock, __elfNN_getshdr_wrlock): Replacements for
- dropped _internal functions above.
- * elf_getshnum.c
- (__elf_getshnum_internal): Rename to __elf_getshnum_rdlock.
-
-2008-08-04 Petr Machata <pmachata@redhat.com>
-
- * libelfP.h (RWLOCK_RDLOCK, RWLOCK_WRLOCK, RWLOCK_UNLOCK): New macros.
-
-2008-07-28 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2008-03-31 Roland McGrath <roland@redhat.com>
-
- * elf32_offscn.c: Make sure shdrs have been read in.
-
-2008-02-19 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2008-02-08 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2008-01-31 Ulrich Drepper <drepper@redhat.com>
-
- * elf_strptr.c (elf_strptr): Don't fail if the ELF file is currently
- under construction and no raw data can be read from disk.
-
-2008-01-30 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2008-01-26 Roland McGrath <roland@redhat.com>
-
- * elf_begin.c (__libelf_next_arhdr): Rewrite conversions using a macro.
- Fixes various pastos in wrong type in sizeof, wrong string parsed.
-
-2008-01-20 Roland McGrath <roland@redhat.com>
-
- * elf_getaroff.c: Calculate from start_offset, instead of using
- parent's state.ar.offset field.
-
-2008-01-08 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (euinclude): Variable removed.
- (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
-
-2008-01-03 Roland McGrath <roland@redhat.com>
-
- * common.h: Add __attribute__ ((unused)) to static functions.
-
-2007-12-20 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (libelf_a_SOURCES): Add elf_scnshndx.
- * libelfP.h (struct Elf_Scn): Add shndx_index field.
- Declare __elf_scnshndx_internal.
- * elf32_getshdr.c: Record location of extended section header.
- * elf_begin.c (file_read_elf): Likewise.
- * elf_scnshndx.c: New file.
- * libelf.h: Declare elf_scnshndx.
- * libelf.map: Add elf_scnshndx to version ELFUTILS_1.4.
-
-2007-11-12 Roland McGrath <roland@redhat.com>
-
- * libelf.h: Replace off64_t with loff_t throughout.
- Only that type name is unconditionally defined by <sys/types.h>
-
-2007-11-03 Roland McGrath <roland@redhat.com>
-
- * libelf.h (Elf_Data): Comment fix.
-
-2007-10-18 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2007-10-07 Roland McGrath <roland@redhat.com>
-
- * elf_begin.c (__libelf_next_arhdr): Fix fencepost error and wrong
- member access in terminating name with no trailing /. Trim trailing
- spaces when there is no /.
-
-2007-10-04 Roland McGrath <roland@redhat.com>
-
- * elf_end.c (elf_end): Don't free ELF->state.ar.ar_sym when it's -1l.
-
-2007-10-03 Roland McGrath <roland@redhat.com>
-
- * libelf.h (Elf_Data): Use off64_t for d_off.
- (Elf_Arhdr): Use off64_t for ar_size.
- (elf_update, elf_getbase, elf_getaroff): Return off64_t.
-
- * gelf_rawchunk.c: File removed.
- * gelf_freechunk.c: File removed.
- * Makefile.am (libelf_a_SOURCES): Remove them.
- * libelf.map (ELFUTILS_1.0): Remove exports.
- * gelf.h: Remove decls.
-
- * elf_getdata_rawchunk.c: New file.
- * Makefile.am (libelf_a_SOURCES): Add it.
- * libelf.map (ELFUTILS_1.3): Add elf_getdata_rawchunk.
- * libelf.h: Declare it.
- * libelfP.h (Elf_Data_Chunk): New type.
- (struct Elf.elf): New member `rawchunks'.
- * elf_end.c (elf_end): Free recorded rawchunk buffers.
-
-2007-08-24 Roland McGrath <roland@redhat.com>
-
- * gelf_getnote.c: New file.
- * Makefile.am (libelf_a_SOURCES): Add it.
- * gelf.h: Declare gelf_getnote.
- * libelf.map (ELFUTILS_1.3): Add gelf_getnote.
-
- * libelfP.h (NOTE_ALIGN): New macro.
- * note_xlate.h: New file.
- * Makefile.am (noinst_HEADERS): Add it.
- * gelf_xlate.c: Include it.
- (__elf_xfctstom): Use elf_cvt_note.
- * elf_getdata.c (shtype_map, __libelf_type_align): Handle SHT_NOTE.
- (__libelf_set_rawdata): Likewise.
-
-2007-08-19 Roland McGrath <roland@redhat.com>
-
- * gelf_update_auxv.c: New file.
- * gelf_getauxv.c: New file.
- * Makefile.am (libelf_a_SOURCES): Add them.
- * gelf.h: Declare gelf_getauxv, gelf_update_auxv.
- * libelf.map (ELFUTILS_1.3): New set, inherits fom ELFUTILS_1.2.
- Export gelf_getauxv, gelf_update_auxv.
-
- * libelf.h (Elf_Type): Add ELF_T_AUXV.
- * abstract.h: Add auxv_t entries.
- * exttypes.h: Likewise.
- * gelf_xlate.h: Likewise.
- * gelf_xlate.c (__elf_xfctstom): Add ELF_T_AUXV entries.
- * gelf_fsize.c (__libelf_type_sizes): Likewise.
-
-2007-08-12 Roland McGrath <roland@redhat.com>
-
- * elf32_updatefile.c (compare_sections): Sort secondarily on sh_size,
- and only tertiarily on index.
-
-2007-07-09 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2007-04-22 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2007-03-18 Roland McGrath <roland@redhat.com>
-
- * elf_begin.c (get_shnum): Fix test for e_shoff being out of bounds.
- Return zero when the section headers do not fit within MAXSIZE.
-
-2007-03-09 Roland McGrath <roland@redhat.com>
-
- * libelfP.h (LIBELF_EV_IDX): New macro.
- (__libelf_type_align): New macro.
- [! ALLOW_UNALIGNED]: Declare __libc_type_aligns array.
- * elf_getdata.c (shtype_map): Convert to just Elf_Type[][].
- (convert_data, __libelf_set_rawdata): Use that, __libelf_type_align,
- and __libelf_type_sizes, in place of old table.
- (__libc_type_aligns): New const variable.
-
-2007-02-04 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile (libelf.so): Build with -z relro.
-
- * elf_begin.c (read_file): When using ELF_C_READ_MMAP use MAP_PRIVATE.
-
-2007-01-30 Ulrich Drepper <drepper@redhat.com>
-
- * nlist.c: Close file descriptor before returning.
-
-2007-01-20 Roland McGrath <roland@redhat.com>
-
- * gnuhash_xlate.h (elf_cvt_gnuhash): Fix fence-post error so we
- convert the final word.
-
- * elf32_getshdr.c: Don't byteswap shdr fields when EI_DATA matches
- MY_ELFDATA on !ALLOW_UNALIGNED machines.
-
-2007-01-18 Roland McGrath <roland@redhat.com>
-
- * gelf_rawchunk.c (gelf_rawchunk): Clear RESULT pointer after freeing
- it on read error.
-
-2006-10-13 Roland McGrath <roland@redhat.com>
-
- * elf32_updatenull.c: Look for and accept phdr also for ET_CORE.
- * elf_error.c (msgstr): Change ELF_E_INVALID_PHDR string.
-
-2006-08-29 Roland McGrath <roland@redhat.com>
-
- * elf32_getphdr.c: Don't byteswap phdr fields when EI_DATA matches
- MY_ELFDATA on !ALLOW_UNALIGNED machines.
- Reported by Christian Aichinger <Greek0@gmx.net>.
-
- * Makefile.am (CLEANFILES): Add libelf.so.$(VERSION).
-
-2006-08-08 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h (DT_VALNUM): Update.
- (DT_ADDRNUM): Likewise.
-
-2006-07-12 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatefile.c: Adjust for internal_function_def removal.
- * elf32_updatenull.c: Likewise.
- * elf_begin.c: Likewise.
- * elf_getdata.c: Likewise.
-
-2006-07-11 Ulrich Drepper <drepper@redhat.com>
-
- * libelf.h: Define ELF_T_GNUHASH.
- * elf_getdata.c (TYPEIDX): Handle SHT_GNU_HASH.
- (shtype_map): Add SHT_GNU_HASH entries.
- * gelf_xlate.c (__elf_xfctstom): Add ELF_T_GNUHASH entries.
- * gnuhash_xlate.h: New file.
- * Makefile.am (noinst_HEADERS): Add gnuhash_xlate.h.
-
-2006-07-06 Ulrich Drepper <drepper@redhat.com>
-
- * elf_gnu_hash.c: New file.
- * libelf.h: Declare elf_gnu_hash.
- * Makefile.am (libelf_a_SOURCES): Add elf_gnu_hash.
- * libelf.map: Add elf_gnu_map for version ELFUTILS_1.2.
-
-2006-06-15 Roland McGrath <roland@redhat.com>
-
- * libelf.h (elf_getarsym): Fix comment typo.
- Rename second parameter to be more explanatory.
- (elf_getident, elf_rawhide): Likewise.
-
-2006-05-28 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatefile.c (updatemmap): Preserve section content if
- copying would overwrite them.
- Fix msync paramters.
-
-2006-04-04 Roland McGrath <roland@redhat.com>
-
- * elf32_updatefile.c (updatemmap): Handle other-endian case.
-
-2006-04-04 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatefile.c (updatemmap): Cleanups. Remove shdr_dest
- variable. Before writing sections, make a copy of the section
- header data if necessary. Don't write section header while
- writing the section constent, it might overwrite some sections.
- Restore the pointer afterwards.
- * elf32_updatenull.c (updatenull): If the offset of a section in a
- file changed make sure we read the section so that it'll be written
- out.
-
- * elf_update.c: Remove debug message.
-
-2005-12-07 Roland McGrath <roland@redhat.com>
-
- * gelf_xlate.c [! ALLOW_UNALIGNED] (union unaligned): New type.
- (FETCH, STORE): New macros.
- (INLINE3): Use those to do alignment-friendly conversion.
-
- * elf32_getshdr.c: Include map_address and start_offset in alignment
- calculations.
- * elf32_getphdr.c: Likewise.
-
-2005-11-19 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2005-11-17 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2005-11-10 Roland McGrath <roland@redhat.com>
-
- * elf.h: Update from glibc.
-
-2005-09-09 Roland McGrath <roland@redhat.com>
-
- * elf_update.c (write_file): Stat the file and fchmod it after update
- if its mode had S_ISUID or S_ISGID bits set.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_getphdr.c: Include <system.h>. Use pread_retry instead of
- pread. And branch prediction where useful.
- * elf_begin.c: Likewise.
- * elf_getdata.c: Likewise.
- * elf_getshstrndx.c: Likewise.
- * elf_readall.c: Likewise.
- * gelf_rawchunk.c: Likewise.
- * elf32_updatefile.c: Include <system.h>. Use pread_retry instead of
- pread. And branch prediction where useful.
- * elf_getarsym.c: Don't define pread_retry here.
-
- * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
- (%.os): Use COMPILE.os.
- (COMPILE.os): Filter out gconv options.
-
-2005-08-27 Ulrich Drepper <drepper@redhat.com>
-
- * elf_begin.c (file_read_elf): Avoid reading ELF header from file
- again. Instead accept additional parameter which points to it if we
- don't use mmap.
- (get_shnum): Use passed in e_ident value as source of ELF header.
-
-2005-08-15 Ulrich Drepper <drepper@redhat.com>
-
- * elf_begin.c (__libelf_next_arhdr): Use TEMP_FAILURE_RETRY.
-
- * Makefile (libelf_a_SOURCES): Add elf_getaroff.c.
- * libelf.map: Export elf_getaroff.
- * libelf.h: Declare elf_getaroff.
- * elf_getaroff.c: New file.
-
-2005-08-13 Ulrich Drepper <drepper@redhat.com>
-
- * elf_begin.c (get_shnum): Optimize memory handling. Always read from
- mapped file if available. Fix access to 64-bit sh_size. Recognize
- overflow.
- (file_read_elf): Likewise.
-
-2005-08-12 Roland McGrath <roland@redhat.com>
-
- * elf32_offscn.c: Do not match empty sections at OFFSET unless
- there are no nonempty sections at that offset.
-
-2005-08-07 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Update from glibc.
-
-2005-08-06 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (AM_CFLAGS): Add -fpic when BUILD_STATIC.
-
-2005-08-03 Ulrich Drepper <drepper@redhat.com>
-
- * libelf.map: Move elf32_offscn, elf64_offscn, and gelf_offscn in
- new version ELFUTILS_1.1.1.
-
-2005-08-02 Ulrich Drepper <drepper@redhat.com>
-
- * elf_error.c: Add handling of ELF_E_INVALID_OFFSET.
- * elf32_offscn.c: New file.
- * elf64_offscn.c: New file.
- * gelf_offscn.c: New file.
- * Makefile.am (libelf_a_SOURCES): Add elf32_offscn.c, elf64_offscn.c,
- and gelf_offscn.c.
- * libelf.sym: Export new symbols.
-
-2005-07-23 Ulrich Drepper <drepper@redhat.com>
-
- * elf-knowledge.h (SECTION_STRIP_P): Don't handle removal of debug
- sections here anymore.
- * elf32_checksum.c: Adjust for change in SECTION_STRIP_P interface.
-
- * elf_update.c (elf_update): Get write lock, not read lock.
-
- * elf32_updatenull.c (updatenull): Get section headers if necessary
- and possible.
-
-2005-07-22 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatenull.c (updatenull): If program header hasn't been loaded
- yet, try to do it now.
- Don't unnecessarily update overflow of section count in zeroth section
- sh_size field.
- If section content hasn't been read yet, do it before looking for the
- block size. If no section data present, infer size of section header.
-
-2005-05-11 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Update again.
-
-2005-05-09 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Update from glibc.
-
-2005-05-08 Roland McGrath <roland@redhat.com>
-
- * elf_begin.c (read_file) [_MUDFLAP]: Don't use mmap for now.
- * elf_update.c (write_file) [_MUDFLAP]: Likewise.
-
-2005-03-29 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_checksum.c: Use INTUSE and INTDEF to avoid PLTs.
- * elf_end.c: Likewise.
- * elf_getdata.c: Likewise.
- * gelf_getehdr.c: Likewise.
- * nlist.c: Likewise.
- * libelfP.h: Add declarations of internal functions.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * common.h (CONVERT): Make sure all values are unsigned.
- (CONVERT_TO): Likewise.
-
- * Makefile.am (AM_CFLAGS): Add -Wformat=2.
- Fix rule to build libelf.so.
-
-2005-02-06 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Cleanup AM_CFLAGS handling. Add -Wunused -Wextra.
- Remove lint handling.
- * elf32_getphdr.c: Minor cleanups.
- * elf32_getshdr.c: Likewise.
- * elf32_updatefile.c: Likewise.
- * elf32_updatenull.c: Likewise.
- * elf_begin.c: Likewise.
- * elf_error.c: Likewise.
- * elf_getarsym.c: Likewise.
- * elf_getdata.c: Likewise.
- * elf_update.c: Likewise.
- * gelf_xlate.c: Likewise.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Check for text relocations in constructed DSO.
-
- * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -Werror -fpic -fmudflap.
-
-2005-02-04 Ulrich Drepper <drepper@redhat.com>
-
- * gelf_getehdr.c (gelf_getehdr): Slight optimization.
-
- * elf32_checksum.c (checksum): Do not look at NOBITS sections.
-
- * gelf.h: Add gelf_checksum prototype.
-
-2004-09-25 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_checksum.c: Make compile with gcc 4.0.
- * elf32_updatefile.c: Likewise.
- * elf32_updatenull.c: Likewise.
- * elf_begin.c: Likewise.
- * elf_error.c: Likewise.
- * elf_getdata.c: Likewise.
- * elf_getident.c: Likewise.
-
-2004-04-01 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Update from glibc.
-
-2004-01-23 Ulrich Drepper <drepper@redhat.com>
-
- * elf_update.c: Fix locking.
- * elf_clone.c: Likewise.
-
- * libelf.h: Define ELF_T_LIB.
- * gelf_getlib.c: New file.
- * gelf_update_lib.c: New file.
- * gelf.h: Declare the new functions. Define GElf_Lib.
- * abstract.h: Define Lib, Lib32, Lib64.
- * gelf_xlate.c (__elf_xfctstom): Add ELF_T_LIB entry.
- * gelf_xlate.h: Add entry for ElfXX_Lib.
- * elf_getdata.c: Recognize SHT_GNU_LIBLIST as a known section type.
- * libelf.map: Add new symbols to ELFUTILS_1.1.
- * Makefile.am (libelf_a_SOURCES): Add gelf_getlib.c and
- gelf_update_lib.c.
-
-2004-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
- * gelf_xlate.c (INLINE3): Avoid using cast as lvalue.
- * dl-hash.h (_dl_elf_hash): Likewise.
-
-2004-01-05 Ulrich Drepper <drepper@redhat.com>
-
- * elf-knowledge.h: New file. From libelf subdir.
- * Makefile.am (euincludedir): Define.
- (euinclude_HEADERS): Add elf-knowledge.h.
-
-2003-09-24 Ulrich Drepper <drepper@redhat.com>
-
- * elf.h: Define some PT_IA_64_HP_* constants.
-
-2003-09-23 Jakub Jelinek <jakub@redhat.com>
-
- * libelfP.h (struct Elf): Move state.elf64.sizestr_offset after
- state.elf64.scnincr to match state.elf{,32}.
-
-2003-08-12 Ulrich Drepper <drepper@redhat.com>
-
- * elf32_updatefile.c (__updatemmap): When writing back file where
- some sections have not been read in, count their sizes based on
- the section header.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/libelf/Makefile b/src/libelf/Makefile
deleted file mode 100644
index d80b7be0..00000000
--- a/src/libelf/Makefile
+++ /dev/null
@@ -1,951 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# libelf/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS) \
- ChangeLog
-#am__append_1 = -fpic
-noinst_PROGRAMS = $(am__EXEEXT_1)
-#am__append_2 = -lpthread
-subdir = libelf
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" \
- "$(DESTDIR)$(pkgincludedir)"
-LIBRARIES = $(lib_LIBRARIES) $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libelf_a_AR = $(AR) $(ARFLAGS)
-libelf_a_LIBADD =
-am_libelf_a_OBJECTS = elf_version.$(OBJEXT) elf_hash.$(OBJEXT) \
- elf_error.$(OBJEXT) elf_fill.$(OBJEXT) elf_begin.$(OBJEXT) \
- elf_next.$(OBJEXT) elf_rand.$(OBJEXT) elf_end.$(OBJEXT) \
- elf_kind.$(OBJEXT) gelf_getclass.$(OBJEXT) \
- elf_getbase.$(OBJEXT) elf_getident.$(OBJEXT) \
- elf32_fsize.$(OBJEXT) elf64_fsize.$(OBJEXT) \
- gelf_fsize.$(OBJEXT) elf32_xlatetof.$(OBJEXT) \
- elf32_xlatetom.$(OBJEXT) elf64_xlatetof.$(OBJEXT) \
- elf64_xlatetom.$(OBJEXT) gelf_xlate.$(OBJEXT) \
- elf32_getehdr.$(OBJEXT) elf64_getehdr.$(OBJEXT) \
- gelf_getehdr.$(OBJEXT) elf32_newehdr.$(OBJEXT) \
- elf64_newehdr.$(OBJEXT) gelf_newehdr.$(OBJEXT) \
- gelf_update_ehdr.$(OBJEXT) elf32_getphdr.$(OBJEXT) \
- elf64_getphdr.$(OBJEXT) gelf_getphdr.$(OBJEXT) \
- elf32_newphdr.$(OBJEXT) elf64_newphdr.$(OBJEXT) \
- gelf_newphdr.$(OBJEXT) gelf_update_phdr.$(OBJEXT) \
- elf_getarhdr.$(OBJEXT) elf_getarsym.$(OBJEXT) \
- elf_rawfile.$(OBJEXT) elf_readall.$(OBJEXT) elf_cntl.$(OBJEXT) \
- elf_getscn.$(OBJEXT) elf_nextscn.$(OBJEXT) \
- elf_ndxscn.$(OBJEXT) elf_newscn.$(OBJEXT) \
- elf32_getshdr.$(OBJEXT) elf64_getshdr.$(OBJEXT) \
- gelf_getshdr.$(OBJEXT) gelf_update_shdr.$(OBJEXT) \
- elf_strptr.$(OBJEXT) elf_rawdata.$(OBJEXT) \
- elf_getdata.$(OBJEXT) elf_newdata.$(OBJEXT) \
- elf_getdata_rawchunk.$(OBJEXT) elf_flagelf.$(OBJEXT) \
- elf_flagehdr.$(OBJEXT) elf_flagphdr.$(OBJEXT) \
- elf_flagscn.$(OBJEXT) elf_flagshdr.$(OBJEXT) \
- elf_flagdata.$(OBJEXT) elf_memory.$(OBJEXT) \
- elf_update.$(OBJEXT) elf32_updatenull.$(OBJEXT) \
- elf64_updatenull.$(OBJEXT) elf32_updatefile.$(OBJEXT) \
- elf64_updatefile.$(OBJEXT) gelf_getsym.$(OBJEXT) \
- gelf_update_sym.$(OBJEXT) gelf_getversym.$(OBJEXT) \
- gelf_getverneed.$(OBJEXT) gelf_getvernaux.$(OBJEXT) \
- gelf_getverdef.$(OBJEXT) gelf_getverdaux.$(OBJEXT) \
- gelf_getrel.$(OBJEXT) gelf_getrela.$(OBJEXT) \
- gelf_update_rel.$(OBJEXT) gelf_update_rela.$(OBJEXT) \
- gelf_getdyn.$(OBJEXT) gelf_update_dyn.$(OBJEXT) \
- gelf_getmove.$(OBJEXT) gelf_update_move.$(OBJEXT) \
- gelf_getsyminfo.$(OBJEXT) gelf_update_syminfo.$(OBJEXT) \
- gelf_getauxv.$(OBJEXT) gelf_update_auxv.$(OBJEXT) \
- gelf_getnote.$(OBJEXT) gelf_xlatetof.$(OBJEXT) \
- gelf_xlatetom.$(OBJEXT) nlist.$(OBJEXT) \
- gelf_getsymshndx.$(OBJEXT) gelf_update_symshndx.$(OBJEXT) \
- gelf_update_versym.$(OBJEXT) gelf_update_verneed.$(OBJEXT) \
- gelf_update_vernaux.$(OBJEXT) gelf_update_verdef.$(OBJEXT) \
- gelf_update_verdaux.$(OBJEXT) elf_getphdrnum.$(OBJEXT) \
- elf_getshdrnum.$(OBJEXT) elf_getshdrstrndx.$(OBJEXT) \
- gelf_checksum.$(OBJEXT) elf32_checksum.$(OBJEXT) \
- elf64_checksum.$(OBJEXT) libelf_crc32.$(OBJEXT) \
- libelf_next_prime.$(OBJEXT) elf_clone.$(OBJEXT) \
- gelf_getlib.$(OBJEXT) gelf_update_lib.$(OBJEXT) \
- elf32_offscn.$(OBJEXT) elf64_offscn.$(OBJEXT) \
- gelf_offscn.$(OBJEXT) elf_getaroff.$(OBJEXT) \
- elf_gnu_hash.$(OBJEXT) elf_scnshndx.$(OBJEXT)
-libelf_a_OBJECTS = $(am_libelf_a_OBJECTS)
-libelf_pic_a_AR = $(AR) $(ARFLAGS)
-libelf_pic_a_LIBADD =
-libelf_pic_a_OBJECTS = $(am_libelf_pic_a_OBJECTS)
-am__EXEEXT_1 = libelf.so$(EXEEXT)
-PROGRAMS = $(noinst_PROGRAMS)
-am_libelf_so_OBJECTS =
-libelf_so_OBJECTS = $(am_libelf_so_OBJECTS)
-libelf_so_LDADD = $(LDADD)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libelf_a_SOURCES) $(libelf_pic_a_SOURCES) \
- $(libelf_so_SOURCES)
-DIST_SOURCES = $(libelf_a_SOURCES) $(libelf_pic_a_SOURCES) \
- $(libelf_so_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 1
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/libelf
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/libelf
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) \
- $(am__append_1)
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libelf_pic_a_OBJECTS) \
- libelf.so.$(VERSION)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
-lib_LIBRARIES = libelf.a
-noinst_LIBRARIES = libelf_pic.a
-include_HEADERS = libelf.h gelf.h nlist.h
-pkginclude_HEADERS = elf-knowledge.h
-libelf_a_SOURCES = elf_version.c elf_hash.c elf_error.c elf_fill.c \
- elf_begin.c elf_next.c elf_rand.c elf_end.c elf_kind.c \
- gelf_getclass.c elf_getbase.c elf_getident.c \
- elf32_fsize.c elf64_fsize.c gelf_fsize.c \
- elf32_xlatetof.c elf32_xlatetom.c elf64_xlatetof.c \
- elf64_xlatetom.c gelf_xlate.c \
- elf32_getehdr.c elf64_getehdr.c gelf_getehdr.c \
- elf32_newehdr.c elf64_newehdr.c gelf_newehdr.c \
- gelf_update_ehdr.c \
- elf32_getphdr.c elf64_getphdr.c gelf_getphdr.c \
- elf32_newphdr.c elf64_newphdr.c gelf_newphdr.c \
- gelf_update_phdr.c \
- elf_getarhdr.c elf_getarsym.c \
- elf_rawfile.c elf_readall.c elf_cntl.c \
- elf_getscn.c elf_nextscn.c elf_ndxscn.c elf_newscn.c \
- elf32_getshdr.c elf64_getshdr.c gelf_getshdr.c \
- gelf_update_shdr.c \
- elf_strptr.c elf_rawdata.c elf_getdata.c elf_newdata.c \
- elf_getdata_rawchunk.c \
- elf_flagelf.c elf_flagehdr.c elf_flagphdr.c elf_flagscn.c \
- elf_flagshdr.c elf_flagdata.c elf_memory.c \
- elf_update.c elf32_updatenull.c elf64_updatenull.c \
- elf32_updatefile.c elf64_updatefile.c \
- gelf_getsym.c gelf_update_sym.c \
- gelf_getversym.c gelf_getverneed.c gelf_getvernaux.c \
- gelf_getverdef.c gelf_getverdaux.c \
- gelf_getrel.c gelf_getrela.c \
- gelf_update_rel.c gelf_update_rela.c \
- gelf_getdyn.c gelf_update_dyn.c \
- gelf_getmove.c gelf_update_move.c \
- gelf_getsyminfo.c gelf_update_syminfo.c \
- gelf_getauxv.c gelf_update_auxv.c \
- gelf_getnote.c \
- gelf_xlatetof.c gelf_xlatetom.c \
- nlist.c \
- gelf_getsymshndx.c gelf_update_symshndx.c \
- gelf_update_versym.c gelf_update_verneed.c \
- gelf_update_vernaux.c gelf_update_verdef.c \
- gelf_update_verdaux.c \
- elf_getphdrnum.c elf_getshdrnum.c elf_getshdrstrndx.c \
- gelf_checksum.c elf32_checksum.c elf64_checksum.c \
- libelf_crc32.c libelf_next_prime.c \
- elf_clone.c \
- gelf_getlib.c gelf_update_lib.c \
- elf32_offscn.c elf64_offscn.c gelf_offscn.c \
- elf_getaroff.c \
- elf_gnu_hash.c \
- elf_scnshndx.c
-
-libelf_pic_a_SOURCES =
-am_libelf_pic_a_OBJECTS = $(libelf_a_SOURCES:.c=.os)
-libelf_so_LDLIBS = $(am__append_2)
-libelf_so_SOURCES =
-noinst_HEADERS = elf.h abstract.h common.h exttypes.h gelf_xlate.h libelfP.h \
- version_xlate.h gnuhash_xlate.h note_xlate.h dl-hash.h
-
-EXTRA_DIST = libelf.map
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libelf/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libelf/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- if test -f $$p; then \
- $(am__strip_dir) \
- echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
- ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir)
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libelf.a: $(libelf_a_OBJECTS) $(libelf_a_DEPENDENCIES) $(EXTRA_libelf_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libelf.a
- $(AM_V_AR)$(libelf_a_AR) libelf.a $(libelf_a_OBJECTS) $(libelf_a_LIBADD)
- $(AM_V_at)$(RANLIB) libelf.a
-
-libelf_pic.a: $(libelf_pic_a_OBJECTS) $(libelf_pic_a_DEPENDENCIES) $(EXTRA_libelf_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libelf_pic.a
- $(AM_V_AR)$(libelf_pic_a_AR) libelf_pic.a $(libelf_pic_a_OBJECTS) $(libelf_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libelf_pic.a
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/elf32_checksum.Po
-include ./$(DEPDIR)/elf32_fsize.Po
-include ./$(DEPDIR)/elf32_getehdr.Po
-include ./$(DEPDIR)/elf32_getphdr.Po
-include ./$(DEPDIR)/elf32_getshdr.Po
-include ./$(DEPDIR)/elf32_newehdr.Po
-include ./$(DEPDIR)/elf32_newphdr.Po
-include ./$(DEPDIR)/elf32_offscn.Po
-include ./$(DEPDIR)/elf32_updatefile.Po
-include ./$(DEPDIR)/elf32_updatenull.Po
-include ./$(DEPDIR)/elf32_xlatetof.Po
-include ./$(DEPDIR)/elf32_xlatetom.Po
-include ./$(DEPDIR)/elf64_checksum.Po
-include ./$(DEPDIR)/elf64_fsize.Po
-include ./$(DEPDIR)/elf64_getehdr.Po
-include ./$(DEPDIR)/elf64_getphdr.Po
-include ./$(DEPDIR)/elf64_getshdr.Po
-include ./$(DEPDIR)/elf64_newehdr.Po
-include ./$(DEPDIR)/elf64_newphdr.Po
-include ./$(DEPDIR)/elf64_offscn.Po
-include ./$(DEPDIR)/elf64_updatefile.Po
-include ./$(DEPDIR)/elf64_updatenull.Po
-include ./$(DEPDIR)/elf64_xlatetof.Po
-include ./$(DEPDIR)/elf64_xlatetom.Po
-include ./$(DEPDIR)/elf_begin.Po
-include ./$(DEPDIR)/elf_clone.Po
-include ./$(DEPDIR)/elf_cntl.Po
-include ./$(DEPDIR)/elf_end.Po
-include ./$(DEPDIR)/elf_error.Po
-include ./$(DEPDIR)/elf_fill.Po
-include ./$(DEPDIR)/elf_flagdata.Po
-include ./$(DEPDIR)/elf_flagehdr.Po
-include ./$(DEPDIR)/elf_flagelf.Po
-include ./$(DEPDIR)/elf_flagphdr.Po
-include ./$(DEPDIR)/elf_flagscn.Po
-include ./$(DEPDIR)/elf_flagshdr.Po
-include ./$(DEPDIR)/elf_getarhdr.Po
-include ./$(DEPDIR)/elf_getaroff.Po
-include ./$(DEPDIR)/elf_getarsym.Po
-include ./$(DEPDIR)/elf_getbase.Po
-include ./$(DEPDIR)/elf_getdata.Po
-include ./$(DEPDIR)/elf_getdata_rawchunk.Po
-include ./$(DEPDIR)/elf_getident.Po
-include ./$(DEPDIR)/elf_getphdrnum.Po
-include ./$(DEPDIR)/elf_getscn.Po
-include ./$(DEPDIR)/elf_getshdrnum.Po
-include ./$(DEPDIR)/elf_getshdrstrndx.Po
-include ./$(DEPDIR)/elf_gnu_hash.Po
-include ./$(DEPDIR)/elf_hash.Po
-include ./$(DEPDIR)/elf_kind.Po
-include ./$(DEPDIR)/elf_memory.Po
-include ./$(DEPDIR)/elf_ndxscn.Po
-include ./$(DEPDIR)/elf_newdata.Po
-include ./$(DEPDIR)/elf_newscn.Po
-include ./$(DEPDIR)/elf_next.Po
-include ./$(DEPDIR)/elf_nextscn.Po
-include ./$(DEPDIR)/elf_rand.Po
-include ./$(DEPDIR)/elf_rawdata.Po
-include ./$(DEPDIR)/elf_rawfile.Po
-include ./$(DEPDIR)/elf_readall.Po
-include ./$(DEPDIR)/elf_scnshndx.Po
-include ./$(DEPDIR)/elf_strptr.Po
-include ./$(DEPDIR)/elf_update.Po
-include ./$(DEPDIR)/elf_version.Po
-include ./$(DEPDIR)/gelf_checksum.Po
-include ./$(DEPDIR)/gelf_fsize.Po
-include ./$(DEPDIR)/gelf_getauxv.Po
-include ./$(DEPDIR)/gelf_getclass.Po
-include ./$(DEPDIR)/gelf_getdyn.Po
-include ./$(DEPDIR)/gelf_getehdr.Po
-include ./$(DEPDIR)/gelf_getlib.Po
-include ./$(DEPDIR)/gelf_getmove.Po
-include ./$(DEPDIR)/gelf_getnote.Po
-include ./$(DEPDIR)/gelf_getphdr.Po
-include ./$(DEPDIR)/gelf_getrel.Po
-include ./$(DEPDIR)/gelf_getrela.Po
-include ./$(DEPDIR)/gelf_getshdr.Po
-include ./$(DEPDIR)/gelf_getsym.Po
-include ./$(DEPDIR)/gelf_getsyminfo.Po
-include ./$(DEPDIR)/gelf_getsymshndx.Po
-include ./$(DEPDIR)/gelf_getverdaux.Po
-include ./$(DEPDIR)/gelf_getverdef.Po
-include ./$(DEPDIR)/gelf_getvernaux.Po
-include ./$(DEPDIR)/gelf_getverneed.Po
-include ./$(DEPDIR)/gelf_getversym.Po
-include ./$(DEPDIR)/gelf_newehdr.Po
-include ./$(DEPDIR)/gelf_newphdr.Po
-include ./$(DEPDIR)/gelf_offscn.Po
-include ./$(DEPDIR)/gelf_update_auxv.Po
-include ./$(DEPDIR)/gelf_update_dyn.Po
-include ./$(DEPDIR)/gelf_update_ehdr.Po
-include ./$(DEPDIR)/gelf_update_lib.Po
-include ./$(DEPDIR)/gelf_update_move.Po
-include ./$(DEPDIR)/gelf_update_phdr.Po
-include ./$(DEPDIR)/gelf_update_rel.Po
-include ./$(DEPDIR)/gelf_update_rela.Po
-include ./$(DEPDIR)/gelf_update_shdr.Po
-include ./$(DEPDIR)/gelf_update_sym.Po
-include ./$(DEPDIR)/gelf_update_syminfo.Po
-include ./$(DEPDIR)/gelf_update_symshndx.Po
-include ./$(DEPDIR)/gelf_update_verdaux.Po
-include ./$(DEPDIR)/gelf_update_verdef.Po
-include ./$(DEPDIR)/gelf_update_vernaux.Po
-include ./$(DEPDIR)/gelf_update_verneed.Po
-include ./$(DEPDIR)/gelf_update_versym.Po
-include ./$(DEPDIR)/gelf_xlate.Po
-include ./$(DEPDIR)/gelf_xlatetof.Po
-include ./$(DEPDIR)/gelf_xlatetom.Po
-include ./$(DEPDIR)/libelf_crc32.Po
-include ./$(DEPDIR)/libelf_next_prime.Po
-include ./$(DEPDIR)/nlist.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-includeHEADERS: $(include_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
- done
-
-uninstall-includeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install-exec: install-exec-am
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libLIBRARIES clean-noinstLIBRARIES \
- clean-noinstPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-includeHEADERS install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-libLIBRARIES
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-includeHEADERS uninstall-libLIBRARIES \
- uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-libLIBRARIES clean-noinstLIBRARIES clean-noinstPROGRAMS \
- cscopelist-am ctags ctags-am distclean distclean-compile \
- distclean-generic distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am \
- install-includeHEADERS install-info install-info-am \
- install-libLIBRARIES install-man install-pdf install-pdf-am \
- install-pkgincludeHEADERS install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
- tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
- uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-libelf.so$(EXEEXT): libelf_pic.a libelf.map
- $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- -Wl,--version-script,$(srcdir)/libelf.map,--no-undefined \
- -Wl,--soname,$@.$(VERSION),-z,defs,-z,relro $(libelf_so_LDLIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libelf.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libelf.so $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
- ln -fs libelf-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libelf.so.$(VERSION)
- ln -fs libelf.so.$(VERSION) $(DESTDIR)$(libdir)/libelf.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libelf.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libelf.so
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libelf/Makefile.am b/src/libelf/Makefile.am
deleted file mode 100644
index afcb2aa5..00000000
--- a/src/libelf/Makefile.am
+++ /dev/null
@@ -1,124 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 1996-2010 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of either
-##
-## * the GNU Lesser General Public License as published by the Free
-## Software Foundation; either version 3 of the License, or (at
-## your option) any later version
-##
-## or
-##
-## * the GNU General Public License as published by the Free
-## Software Foundation; either version 2 of the License, or (at
-## your option) any later version
-##
-## or both in parallel, as here.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received copies of the GNU General Public License and
-## the GNU Lesser General Public License along with this program. If
-## not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-if BUILD_STATIC
-AM_CFLAGS += -fpic
-endif
-GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
-VERSION = 1
-
-lib_LIBRARIES = libelf.a
-noinst_LIBRARIES = libelf_pic.a
-noinst_PROGRAMS = $(noinst_LIBRARIES:_pic.a=.so)
-include_HEADERS = libelf.h gelf.h nlist.h
-
-pkginclude_HEADERS = elf-knowledge.h
-
-libelf_a_SOURCES = elf_version.c elf_hash.c elf_error.c elf_fill.c \
- elf_begin.c elf_next.c elf_rand.c elf_end.c elf_kind.c \
- gelf_getclass.c elf_getbase.c elf_getident.c \
- elf32_fsize.c elf64_fsize.c gelf_fsize.c \
- elf32_xlatetof.c elf32_xlatetom.c elf64_xlatetof.c \
- elf64_xlatetom.c gelf_xlate.c \
- elf32_getehdr.c elf64_getehdr.c gelf_getehdr.c \
- elf32_newehdr.c elf64_newehdr.c gelf_newehdr.c \
- gelf_update_ehdr.c \
- elf32_getphdr.c elf64_getphdr.c gelf_getphdr.c \
- elf32_newphdr.c elf64_newphdr.c gelf_newphdr.c \
- gelf_update_phdr.c \
- elf_getarhdr.c elf_getarsym.c \
- elf_rawfile.c elf_readall.c elf_cntl.c \
- elf_getscn.c elf_nextscn.c elf_ndxscn.c elf_newscn.c \
- elf32_getshdr.c elf64_getshdr.c gelf_getshdr.c \
- gelf_update_shdr.c \
- elf_strptr.c elf_rawdata.c elf_getdata.c elf_newdata.c \
- elf_getdata_rawchunk.c \
- elf_flagelf.c elf_flagehdr.c elf_flagphdr.c elf_flagscn.c \
- elf_flagshdr.c elf_flagdata.c elf_memory.c \
- elf_update.c elf32_updatenull.c elf64_updatenull.c \
- elf32_updatefile.c elf64_updatefile.c \
- gelf_getsym.c gelf_update_sym.c \
- gelf_getversym.c gelf_getverneed.c gelf_getvernaux.c \
- gelf_getverdef.c gelf_getverdaux.c \
- gelf_getrel.c gelf_getrela.c \
- gelf_update_rel.c gelf_update_rela.c \
- gelf_getdyn.c gelf_update_dyn.c \
- gelf_getmove.c gelf_update_move.c \
- gelf_getsyminfo.c gelf_update_syminfo.c \
- gelf_getauxv.c gelf_update_auxv.c \
- gelf_getnote.c \
- gelf_xlatetof.c gelf_xlatetom.c \
- nlist.c \
- gelf_getsymshndx.c gelf_update_symshndx.c \
- gelf_update_versym.c gelf_update_verneed.c \
- gelf_update_vernaux.c gelf_update_verdef.c \
- gelf_update_verdaux.c \
- elf_getphdrnum.c elf_getshdrnum.c elf_getshdrstrndx.c \
- gelf_checksum.c elf32_checksum.c elf64_checksum.c \
- libelf_crc32.c libelf_next_prime.c \
- elf_clone.c \
- gelf_getlib.c gelf_update_lib.c \
- elf32_offscn.c elf64_offscn.c gelf_offscn.c \
- elf_getaroff.c \
- elf_gnu_hash.c \
- elf_scnshndx.c
-
-libelf_pic_a_SOURCES =
-am_libelf_pic_a_OBJECTS = $(libelf_a_SOURCES:.c=.os)
-
-libelf_so_LDLIBS =
-if USE_LOCKS
-libelf_so_LDLIBS += -lpthread
-endif
-
-libelf_so_SOURCES =
-libelf.so$(EXEEXT): libelf_pic.a libelf.map
- $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- -Wl,--version-script,$(srcdir)/libelf.map,--no-undefined \
- -Wl,--soname,$@.$(VERSION),-z,defs,-z,relro $(libelf_so_LDLIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libelf.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libelf.so $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
- ln -fs libelf-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libelf.so.$(VERSION)
- ln -fs libelf.so.$(VERSION) $(DESTDIR)$(libdir)/libelf.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libelf.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libelf.so
-
-noinst_HEADERS = elf.h abstract.h common.h exttypes.h gelf_xlate.h libelfP.h \
- version_xlate.h gnuhash_xlate.h note_xlate.h dl-hash.h
-EXTRA_DIST = libelf.map
-
-CLEANFILES += $(am_libelf_pic_a_OBJECTS) libelf.so.$(VERSION)
diff --git a/src/libelf/Makefile.in b/src/libelf/Makefile.in
deleted file mode 100644
index 05c2dd03..00000000
--- a/src/libelf/Makefile.in
+++ /dev/null
@@ -1,951 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS) \
- ChangeLog
-@BUILD_STATIC_TRUE@am__append_1 = -fpic
-noinst_PROGRAMS = $(am__EXEEXT_1)
-@USE_LOCKS_TRUE@am__append_2 = -lpthread
-subdir = libelf
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" \
- "$(DESTDIR)$(pkgincludedir)"
-LIBRARIES = $(lib_LIBRARIES) $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libelf_a_AR = $(AR) $(ARFLAGS)
-libelf_a_LIBADD =
-am_libelf_a_OBJECTS = elf_version.$(OBJEXT) elf_hash.$(OBJEXT) \
- elf_error.$(OBJEXT) elf_fill.$(OBJEXT) elf_begin.$(OBJEXT) \
- elf_next.$(OBJEXT) elf_rand.$(OBJEXT) elf_end.$(OBJEXT) \
- elf_kind.$(OBJEXT) gelf_getclass.$(OBJEXT) \
- elf_getbase.$(OBJEXT) elf_getident.$(OBJEXT) \
- elf32_fsize.$(OBJEXT) elf64_fsize.$(OBJEXT) \
- gelf_fsize.$(OBJEXT) elf32_xlatetof.$(OBJEXT) \
- elf32_xlatetom.$(OBJEXT) elf64_xlatetof.$(OBJEXT) \
- elf64_xlatetom.$(OBJEXT) gelf_xlate.$(OBJEXT) \
- elf32_getehdr.$(OBJEXT) elf64_getehdr.$(OBJEXT) \
- gelf_getehdr.$(OBJEXT) elf32_newehdr.$(OBJEXT) \
- elf64_newehdr.$(OBJEXT) gelf_newehdr.$(OBJEXT) \
- gelf_update_ehdr.$(OBJEXT) elf32_getphdr.$(OBJEXT) \
- elf64_getphdr.$(OBJEXT) gelf_getphdr.$(OBJEXT) \
- elf32_newphdr.$(OBJEXT) elf64_newphdr.$(OBJEXT) \
- gelf_newphdr.$(OBJEXT) gelf_update_phdr.$(OBJEXT) \
- elf_getarhdr.$(OBJEXT) elf_getarsym.$(OBJEXT) \
- elf_rawfile.$(OBJEXT) elf_readall.$(OBJEXT) elf_cntl.$(OBJEXT) \
- elf_getscn.$(OBJEXT) elf_nextscn.$(OBJEXT) \
- elf_ndxscn.$(OBJEXT) elf_newscn.$(OBJEXT) \
- elf32_getshdr.$(OBJEXT) elf64_getshdr.$(OBJEXT) \
- gelf_getshdr.$(OBJEXT) gelf_update_shdr.$(OBJEXT) \
- elf_strptr.$(OBJEXT) elf_rawdata.$(OBJEXT) \
- elf_getdata.$(OBJEXT) elf_newdata.$(OBJEXT) \
- elf_getdata_rawchunk.$(OBJEXT) elf_flagelf.$(OBJEXT) \
- elf_flagehdr.$(OBJEXT) elf_flagphdr.$(OBJEXT) \
- elf_flagscn.$(OBJEXT) elf_flagshdr.$(OBJEXT) \
- elf_flagdata.$(OBJEXT) elf_memory.$(OBJEXT) \
- elf_update.$(OBJEXT) elf32_updatenull.$(OBJEXT) \
- elf64_updatenull.$(OBJEXT) elf32_updatefile.$(OBJEXT) \
- elf64_updatefile.$(OBJEXT) gelf_getsym.$(OBJEXT) \
- gelf_update_sym.$(OBJEXT) gelf_getversym.$(OBJEXT) \
- gelf_getverneed.$(OBJEXT) gelf_getvernaux.$(OBJEXT) \
- gelf_getverdef.$(OBJEXT) gelf_getverdaux.$(OBJEXT) \
- gelf_getrel.$(OBJEXT) gelf_getrela.$(OBJEXT) \
- gelf_update_rel.$(OBJEXT) gelf_update_rela.$(OBJEXT) \
- gelf_getdyn.$(OBJEXT) gelf_update_dyn.$(OBJEXT) \
- gelf_getmove.$(OBJEXT) gelf_update_move.$(OBJEXT) \
- gelf_getsyminfo.$(OBJEXT) gelf_update_syminfo.$(OBJEXT) \
- gelf_getauxv.$(OBJEXT) gelf_update_auxv.$(OBJEXT) \
- gelf_getnote.$(OBJEXT) gelf_xlatetof.$(OBJEXT) \
- gelf_xlatetom.$(OBJEXT) nlist.$(OBJEXT) \
- gelf_getsymshndx.$(OBJEXT) gelf_update_symshndx.$(OBJEXT) \
- gelf_update_versym.$(OBJEXT) gelf_update_verneed.$(OBJEXT) \
- gelf_update_vernaux.$(OBJEXT) gelf_update_verdef.$(OBJEXT) \
- gelf_update_verdaux.$(OBJEXT) elf_getphdrnum.$(OBJEXT) \
- elf_getshdrnum.$(OBJEXT) elf_getshdrstrndx.$(OBJEXT) \
- gelf_checksum.$(OBJEXT) elf32_checksum.$(OBJEXT) \
- elf64_checksum.$(OBJEXT) libelf_crc32.$(OBJEXT) \
- libelf_next_prime.$(OBJEXT) elf_clone.$(OBJEXT) \
- gelf_getlib.$(OBJEXT) gelf_update_lib.$(OBJEXT) \
- elf32_offscn.$(OBJEXT) elf64_offscn.$(OBJEXT) \
- gelf_offscn.$(OBJEXT) elf_getaroff.$(OBJEXT) \
- elf_gnu_hash.$(OBJEXT) elf_scnshndx.$(OBJEXT)
-libelf_a_OBJECTS = $(am_libelf_a_OBJECTS)
-libelf_pic_a_AR = $(AR) $(ARFLAGS)
-libelf_pic_a_LIBADD =
-libelf_pic_a_OBJECTS = $(am_libelf_pic_a_OBJECTS)
-am__EXEEXT_1 = libelf.so$(EXEEXT)
-PROGRAMS = $(noinst_PROGRAMS)
-am_libelf_so_OBJECTS =
-libelf_so_OBJECTS = $(am_libelf_so_OBJECTS)
-libelf_so_LDADD = $(LDADD)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = $(libelf_a_SOURCES) $(libelf_pic_a_SOURCES) \
- $(libelf_so_SOURCES)
-DIST_SOURCES = $(libelf_a_SOURCES) $(libelf_pic_a_SOURCES) \
- $(libelf_so_SOURCES)
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(pkginclude_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = 1
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I..
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 $(if \
- $($(*F)_no_Werror),,-Werror) $(if \
- $($(*F)_no_Wunused),,-Wunused -Wextra) $($(*F)_CFLAGS) \
- $(am__append_1)
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda $(am_libelf_pic_a_OBJECTS) \
- libelf.so.$(VERSION)
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
-lib_LIBRARIES = libelf.a
-noinst_LIBRARIES = libelf_pic.a
-include_HEADERS = libelf.h gelf.h nlist.h
-pkginclude_HEADERS = elf-knowledge.h
-libelf_a_SOURCES = elf_version.c elf_hash.c elf_error.c elf_fill.c \
- elf_begin.c elf_next.c elf_rand.c elf_end.c elf_kind.c \
- gelf_getclass.c elf_getbase.c elf_getident.c \
- elf32_fsize.c elf64_fsize.c gelf_fsize.c \
- elf32_xlatetof.c elf32_xlatetom.c elf64_xlatetof.c \
- elf64_xlatetom.c gelf_xlate.c \
- elf32_getehdr.c elf64_getehdr.c gelf_getehdr.c \
- elf32_newehdr.c elf64_newehdr.c gelf_newehdr.c \
- gelf_update_ehdr.c \
- elf32_getphdr.c elf64_getphdr.c gelf_getphdr.c \
- elf32_newphdr.c elf64_newphdr.c gelf_newphdr.c \
- gelf_update_phdr.c \
- elf_getarhdr.c elf_getarsym.c \
- elf_rawfile.c elf_readall.c elf_cntl.c \
- elf_getscn.c elf_nextscn.c elf_ndxscn.c elf_newscn.c \
- elf32_getshdr.c elf64_getshdr.c gelf_getshdr.c \
- gelf_update_shdr.c \
- elf_strptr.c elf_rawdata.c elf_getdata.c elf_newdata.c \
- elf_getdata_rawchunk.c \
- elf_flagelf.c elf_flagehdr.c elf_flagphdr.c elf_flagscn.c \
- elf_flagshdr.c elf_flagdata.c elf_memory.c \
- elf_update.c elf32_updatenull.c elf64_updatenull.c \
- elf32_updatefile.c elf64_updatefile.c \
- gelf_getsym.c gelf_update_sym.c \
- gelf_getversym.c gelf_getverneed.c gelf_getvernaux.c \
- gelf_getverdef.c gelf_getverdaux.c \
- gelf_getrel.c gelf_getrela.c \
- gelf_update_rel.c gelf_update_rela.c \
- gelf_getdyn.c gelf_update_dyn.c \
- gelf_getmove.c gelf_update_move.c \
- gelf_getsyminfo.c gelf_update_syminfo.c \
- gelf_getauxv.c gelf_update_auxv.c \
- gelf_getnote.c \
- gelf_xlatetof.c gelf_xlatetom.c \
- nlist.c \
- gelf_getsymshndx.c gelf_update_symshndx.c \
- gelf_update_versym.c gelf_update_verneed.c \
- gelf_update_vernaux.c gelf_update_verdef.c \
- gelf_update_verdaux.c \
- elf_getphdrnum.c elf_getshdrnum.c elf_getshdrstrndx.c \
- gelf_checksum.c elf32_checksum.c elf64_checksum.c \
- libelf_crc32.c libelf_next_prime.c \
- elf_clone.c \
- gelf_getlib.c gelf_update_lib.c \
- elf32_offscn.c elf64_offscn.c gelf_offscn.c \
- elf_getaroff.c \
- elf_gnu_hash.c \
- elf_scnshndx.c
-
-libelf_pic_a_SOURCES =
-am_libelf_pic_a_OBJECTS = $(libelf_a_SOURCES:.c=.os)
-libelf_so_LDLIBS = $(am__append_2)
-libelf_so_SOURCES =
-noinst_HEADERS = elf.h abstract.h common.h exttypes.h gelf_xlate.h libelfP.h \
- version_xlate.h gnuhash_xlate.h note_xlate.h dl-hash.h
-
-EXTRA_DIST = libelf.map
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits libelf/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits libelf/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-install-libLIBRARIES: $(lib_LIBRARIES)
- @$(NORMAL_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- list2=; for p in $$list; do \
- if test -f $$p; then \
- list2="$$list2 $$p"; \
- else :; fi; \
- done; \
- test -z "$$list2" || { \
- echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
- echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
- $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
- @$(POST_INSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- for p in $$list; do \
- if test -f $$p; then \
- $(am__strip_dir) \
- echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
- ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
- else :; fi; \
- done
-
-uninstall-libLIBRARIES:
- @$(NORMAL_UNINSTALL)
- @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir)
-
-clean-libLIBRARIES:
- -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libelf.a: $(libelf_a_OBJECTS) $(libelf_a_DEPENDENCIES) $(EXTRA_libelf_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libelf.a
- $(AM_V_AR)$(libelf_a_AR) libelf.a $(libelf_a_OBJECTS) $(libelf_a_LIBADD)
- $(AM_V_at)$(RANLIB) libelf.a
-
-libelf_pic.a: $(libelf_pic_a_OBJECTS) $(libelf_pic_a_DEPENDENCIES) $(EXTRA_libelf_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libelf_pic.a
- $(AM_V_AR)$(libelf_pic_a_AR) libelf_pic.a $(libelf_pic_a_OBJECTS) $(libelf_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libelf_pic.a
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_checksum.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_fsize.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_getehdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_getphdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_getshdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_newehdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_newphdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_offscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_updatefile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_updatenull.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_xlatetof.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf32_xlatetom.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_checksum.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_fsize.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_getehdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_getphdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_getshdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_newehdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_newphdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_offscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_updatefile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_updatenull.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_xlatetof.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf64_xlatetom.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_begin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_clone.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_cntl.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_end.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_error.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_fill.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_flagdata.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_flagehdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_flagelf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_flagphdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_flagscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_flagshdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getarhdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getaroff.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getarsym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getbase.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getdata.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getdata_rawchunk.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getident.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getphdrnum.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getshdrnum.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_getshdrstrndx.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_gnu_hash.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_hash.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_kind.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_memory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_ndxscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_newdata.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_newscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_next.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_nextscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_rand.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_rawdata.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_rawfile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_readall.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_scnshndx.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_strptr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_update.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elf_version.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_checksum.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_fsize.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getauxv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getclass.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getdyn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getehdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getlib.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getmove.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getnote.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getphdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getrel.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getrela.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getshdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getsym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getsyminfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getsymshndx.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getverdaux.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getverdef.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getvernaux.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getverneed.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_getversym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_newehdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_newphdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_offscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_auxv.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_dyn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_ehdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_lib.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_move.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_phdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_rel.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_rela.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_shdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_sym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_syminfo.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_symshndx.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_verdaux.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_verdef.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_vernaux.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_verneed.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_update_versym.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_xlate.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_xlatetof.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gelf_xlatetom.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libelf_crc32.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libelf_next_prime.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nlist.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-install-includeHEADERS: $(include_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
- done
-
-uninstall-includeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
-install-pkgincludeHEADERS: $(pkginclude_HEADERS)
- @$(NORMAL_INSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
- $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
- done
-
-uninstall-pkgincludeHEADERS:
- @$(NORMAL_UNINSTALL)
- @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(pkgincludedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install-exec: install-exec-am
-install-data: install-data-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic clean-libLIBRARIES clean-noinstLIBRARIES \
- clean-noinstPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-includeHEADERS install-pkgincludeHEADERS
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-libLIBRARIES
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-includeHEADERS uninstall-libLIBRARIES \
- uninstall-pkgincludeHEADERS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
- clean-libLIBRARIES clean-noinstLIBRARIES clean-noinstPROGRAMS \
- cscopelist-am ctags ctags-am distclean distclean-compile \
- distclean-generic distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am \
- install-includeHEADERS install-info install-info-am \
- install-libLIBRARIES install-man install-pdf install-pdf-am \
- install-pkgincludeHEADERS install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
- tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
- uninstall-libLIBRARIES uninstall-pkgincludeHEADERS
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-libelf.so$(EXEEXT): libelf_pic.a libelf.map
- $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- -Wl,--version-script,$(srcdir)/libelf.map,--no-undefined \
- -Wl,--soname,$@.$(VERSION),-z,defs,-z,relro $(libelf_so_LDLIBS)
- @$(textrel_check)
- ln -fs $@ $@.$(VERSION)
-
-install: install-am libelf.so
- $(mkinstalldirs) $(DESTDIR)$(libdir)
- $(INSTALL_PROGRAM) libelf.so $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
- ln -fs libelf-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libelf.so.$(VERSION)
- ln -fs libelf.so.$(VERSION) $(DESTDIR)$(libdir)/libelf.so
-
-uninstall: uninstall-am
- rm -f $(DESTDIR)$(libdir)/libelf-$(PACKAGE_VERSION).so
- rm -f $(DESTDIR)$(libdir)/libelf.so.$(VERSION)
- rm -f $(DESTDIR)$(libdir)/libelf.so
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/libelf/abstract.h b/src/libelf/abstract.h
deleted file mode 100644
index 53713eec..00000000
--- a/src/libelf/abstract.h
+++ /dev/null
@@ -1,312 +0,0 @@
-/* Abstract description of component ELF types.
- Copyright (C) 1998, 1999, 2000, 2002, 2004, 2007 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-/* ELF header. */
-#define Ehdr(Bits, Ext) \
-START (Bits, Ehdr, Ext##Ehdr) \
- TYPE_EXTRA (unsigned char e_ident[EI_NIDENT];) \
- TYPE_XLATE (memmove (tdest->e_ident, tsrc->e_ident, EI_NIDENT);) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), e_type) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), e_machine) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), e_version) \
- TYPE_NAME (ElfW2(Bits, Ext##Addr), e_entry) \
- TYPE_NAME (ElfW2(Bits, Ext##Off), e_phoff) \
- TYPE_NAME (ElfW2(Bits, Ext##Off), e_shoff) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), e_flags) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), e_ehsize) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), e_phentsize) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), e_phnum) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), e_shentsize) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), e_shnum) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), e_shstrndx) \
-END (Bits, Ext##Ehdr)
-
-#define Ehdr32(Ext) \
- Ehdr(32, Ext)
-#define Ehdr64(Ext) \
- Ehdr(64, Ext)
-
-
-/* Program header. */
-#define Phdr32(Ext) \
-START (32, Phdr, Ext##Phdr) \
- TYPE_NAME (ElfW2(32, Ext##Word), p_type) \
- TYPE_NAME (ElfW2(32, Ext##Off), p_offset) \
- TYPE_NAME (ElfW2(32, Ext##Addr), p_vaddr) \
- TYPE_NAME (ElfW2(32, Ext##Addr), p_paddr) \
- TYPE_NAME (ElfW2(32, Ext##Word), p_filesz) \
- TYPE_NAME (ElfW2(32, Ext##Word), p_memsz) \
- TYPE_NAME (ElfW2(32, Ext##Word), p_flags) \
- TYPE_NAME (ElfW2(32, Ext##Word), p_align) \
-END (32, Ext##Phdr)
-#define Phdr64(Ext) \
-START (64, Phdr, Ext##Phdr) \
- TYPE_NAME (ElfW2(64, Ext##Word), p_type) \
- TYPE_NAME (ElfW2(64, Ext##Word), p_flags) \
- TYPE_NAME (ElfW2(64, Ext##Off), p_offset) \
- TYPE_NAME (ElfW2(64, Ext##Addr), p_vaddr) \
- TYPE_NAME (ElfW2(64, Ext##Addr), p_paddr) \
- TYPE_NAME (ElfW2(64, Ext##Xword), p_filesz) \
- TYPE_NAME (ElfW2(64, Ext##Xword), p_memsz) \
- TYPE_NAME (ElfW2(64, Ext##Xword), p_align) \
-END (64, Ext##Phdr)
-
-
-/* Section header. */
-#define Shdr32(Ext) \
-START (32, Shdr, Ext##Shdr) \
- TYPE_NAME (ElfW2(32, Ext##Word), sh_name) \
- TYPE_NAME (ElfW2(32, Ext##Word), sh_type) \
- TYPE_NAME (ElfW2(32, Ext##Word), sh_flags) \
- TYPE_NAME (ElfW2(32, Ext##Addr), sh_addr) \
- TYPE_NAME (ElfW2(32, Ext##Off), sh_offset) \
- TYPE_NAME (ElfW2(32, Ext##Word), sh_size) \
- TYPE_NAME (ElfW2(32, Ext##Word), sh_link) \
- TYPE_NAME (ElfW2(32, Ext##Word), sh_info) \
- TYPE_NAME (ElfW2(32, Ext##Word), sh_addralign) \
- TYPE_NAME (ElfW2(32, Ext##Word), sh_entsize) \
-END (32, Ext##Shdr)
-#define Shdr64(Ext) \
-START (64, Shdr, Ext##Shdr) \
- TYPE_NAME (ElfW2(64, Ext##Word), sh_name) \
- TYPE_NAME (ElfW2(64, Ext##Word), sh_type) \
- TYPE_NAME (ElfW2(64, Ext##Xword), sh_flags) \
- TYPE_NAME (ElfW2(64, Ext##Addr), sh_addr) \
- TYPE_NAME (ElfW2(64, Ext##Off), sh_offset) \
- TYPE_NAME (ElfW2(64, Ext##Xword), sh_size) \
- TYPE_NAME (ElfW2(64, Ext##Word), sh_link) \
- TYPE_NAME (ElfW2(64, Ext##Word), sh_info) \
- TYPE_NAME (ElfW2(64, Ext##Xword), sh_addralign) \
- TYPE_NAME (ElfW2(64, Ext##Xword), sh_entsize) \
-END (64, Ext##Shdr)
-
-
-/* Symbol table. */
-#define Sym32(Ext) \
-START (32, Sym, Ext##Sym) \
- TYPE_NAME (ElfW2(32, Ext##Word), st_name) \
- TYPE_NAME (ElfW2(32, Ext##Addr), st_value) \
- TYPE_NAME (ElfW2(32, Ext##Word), st_size) \
- TYPE_EXTRA (unsigned char st_info;) \
- TYPE_XLATE (tdest->st_info = tsrc->st_info;) \
- TYPE_EXTRA (unsigned char st_other;) \
- TYPE_XLATE (tdest->st_other = tsrc->st_other;) \
- TYPE_NAME (ElfW2(32, Ext##Half), st_shndx) \
-END (32, Ext##Sym)
-#define Sym64(Ext) \
-START (64, Sym, Ext##Sym) \
- TYPE_NAME (ElfW2(64, Ext##Word), st_name) \
- TYPE_EXTRA (unsigned char st_info;) \
- TYPE_XLATE (tdest->st_info = tsrc->st_info;) \
- TYPE_EXTRA (unsigned char st_other;) \
- TYPE_XLATE (tdest->st_other = tsrc->st_other;) \
- TYPE_NAME (ElfW2(64, Ext##Half), st_shndx) \
- TYPE_NAME (ElfW2(64, Ext##Addr), st_value) \
- TYPE_NAME (ElfW2(64, Ext##Xword), st_size) \
-END (64, Ext##Sym)
-
-
-/* Relocation. */
-#define Rel32(Ext) \
-START (32, Rel, Ext##Rel) \
- TYPE_NAME (ElfW2(32, Ext##Addr), r_offset) \
- TYPE_NAME (ElfW2(32, Ext##Word), r_info) \
-END (32, Ext##Rel)
-#define Rel64(Ext) \
-START (64, Rel, Ext##Rel) \
- TYPE_NAME (ElfW2(64, Ext##Addr), r_offset) \
- TYPE_NAME (ElfW2(64, Ext##Xword), r_info) \
-END (64, Ext##Rel)
-
-#define Rela32(Ext) \
-START (32, Rela, Ext##Rela) \
- TYPE_NAME (ElfW2(32, Ext##Addr), r_offset) \
- TYPE_NAME (ElfW2(32, Ext##Word), r_info) \
- TYPE_NAME (ElfW2(32, Ext##Sword), r_addend) \
-END (32, Ext##Rela)
-#define Rela64(Ext) \
-START (64, Rela, Ext##Rela) \
- TYPE_NAME (ElfW2(64, Ext##Addr), r_offset) \
- TYPE_NAME (ElfW2(64, Ext##Xword), r_info) \
- TYPE_NAME (ElfW2(64, Ext##Sxword), r_addend) \
-END (64, Ext##Rela)
-
-
-/* Note entry header. */
-#define Note(Bits, Ext) \
-START (Bits, Nhdr, Ext##Nhdr) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), n_namesz) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), n_descsz) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), n_type) \
-END (Bits, Ext##Nhdr)
-
-#define Note32(Ext) \
- Note (32, Ext)
-#define Note64(Ext) \
- Note (64, Ext)
-
-
-/* Dynamic section data. */
-#define Dyn32(Ext) \
-START (32, Dyn, Ext##Dyn) \
- TYPE_NAME (ElfW2(32, Ext##Sword), d_tag) \
- TYPE_EXTRA (union {) \
- TYPE_EXTRA (ElfW2(32, Ext##Word) d_val;) \
- TYPE_EXTRA (ElfW2(32, Ext##Addr) d_ptr;) \
- TYPE_XLATE (Elf32_cvt_Addr1 (&tdest->d_un.d_val, &tsrc->d_un.d_val);) \
- TYPE_EXTRA (ElfW2(32, Ext##Off) d_off;) \
- TYPE_EXTRA (} d_un;) \
-END (32, Ext##Dyn)
-#define Dyn64(Ext) \
-START (64, Dyn, Ext##Dyn) \
- TYPE_NAME (ElfW2(64, Ext##Xword), d_tag) \
- TYPE_EXTRA (union {) \
- TYPE_EXTRA (ElfW2(64, Ext##Xword) d_val;) \
- TYPE_EXTRA (ElfW2(64, Ext##Addr) d_ptr;) \
- TYPE_XLATE (Elf64_cvt_Addr1 (&tdest->d_un.d_val, &tsrc->d_un.d_val);) \
- TYPE_EXTRA (} d_un;) \
-END (64, Ext##Dyn)
-
-
-#ifndef GENERATE_CONVERSION
-/* Version definitions. */
-# define Verdef(Bits, Ext) \
-START (Bits, Verdef, Ext##Verdef) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), vd_version) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), vd_flags) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), vd_ndx) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), vd_cnt) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vd_hash) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vd_aux) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vd_next) \
-END (Bits, Ext##Verdef)
-
-# define Verdef32(Ext) \
- Verdef (32, Ext)
-# define Verdef64(Ext) \
- Verdef (64, Ext)
-
-# define Verdaux(Bits, Ext) \
-START (Bits, Verdaux, Ext##Verdaux) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vda_name) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vda_next) \
-END (Bits, Ext##Verdaux)
-
-# define Verdaux32(Ext) \
- Verdaux (32, Ext)
-# define Verdaux64(Ext) \
- Verdaux (64, Ext)
-
-/* Required versions. */
-# define Verneed(Bits, Ext) \
-START (Bits, Verneed, Ext##Verneed) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), vn_version) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), vn_cnt) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vn_file) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vn_aux) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vn_next) \
-END (Bits, Ext##Verneed)
-
-# define Verneed32(Ext) \
- Verneed (32, Ext)
-# define Verneed64(Ext) \
- Verneed (64, Ext)
-
-# define Vernaux(Bits, Ext) \
-START (Bits, Vernaux, Ext##Vernaux) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vna_hash) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), vna_flags) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), vna_other) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vna_name) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), vna_next) \
-END (Bits, Ext##Vernaux)
-
-# define Vernaux32(Ext) \
- Vernaux (32, Ext)
-# define Vernaux64(Ext) \
- Vernaux (64, Ext)
-#endif
-
-/* Symbol information. */
-#define Syminfo(Bits, Ext) \
-START (Bits, Syminfo, Ext##Syminfo) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), si_boundto) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), si_flags) \
-END (Bits, Ext##Syminfo)
-
-#define Syminfo32(Ext) \
- Syminfo (32, Ext)
-#define Syminfo64(Ext) \
- Syminfo (64, Ext)
-
-/* Move information. */
-#define Move(Bits, Ext) \
-START (Bits, Move, Ext##Move) \
- TYPE_NAME (ElfW2(Bits, Ext##Xword), m_value) \
- TYPE_NAME (ElfW2(Bits, Ext##Xword), m_info) \
- TYPE_NAME (ElfW2(Bits, Ext##Xword), m_poffset) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), m_repeat) \
- TYPE_NAME (ElfW2(Bits, Ext##Half), m_stride) \
-END (Bits, Ext##Move)
-
-#define Move32(Ext) \
- Move (32, Ext)
-#define Move64(Ext) \
- Move (64, Ext)
-
-#define Lib(Bits, Ext) \
-START (Bits, Lib, Ext##Lib) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), l_name) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), l_time_stamp) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), l_checksum) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), l_version) \
- TYPE_NAME (ElfW2(Bits, Ext##Word), l_flags) \
-END (Bits, Ext##Lib)
-
-#define Lib32(Ext) \
- Lib (32, Ext)
-#define Lib64(Ext) \
- Lib (64, Ext)
-
-#define auxv_t32(Ext) \
-START (32, auxv_t, Ext##auxv_t) \
- TYPE_NAME (ElfW2(32, Ext##Word), a_type) \
- TYPE_EXTRA (union {) \
- TYPE_EXTRA (ElfW2(32, Ext##Word) a_val;) \
- TYPE_XLATE (Elf32_cvt_Addr1 (&tdest->a_un.a_val, &tsrc->a_un.a_val);) \
- TYPE_EXTRA (} a_un;) \
-END (32, Ext##auxv_t)
-#define auxv_t64(Ext) \
-START (64, auxv_t, Ext##auxv_t) \
- TYPE_NAME (ElfW2(64, Ext##Xword), a_type) \
- TYPE_EXTRA (union {) \
- TYPE_EXTRA (ElfW2(64, Ext##Xword) a_val;) \
- TYPE_XLATE (Elf64_cvt_Addr1 (&tdest->a_un.a_val, &tsrc->a_un.a_val);) \
- TYPE_EXTRA (} a_un;) \
-END (64, Ext##auxv_t)
diff --git a/src/libelf/common.h b/src/libelf/common.h
deleted file mode 100644
index 744f1bb8..00000000
--- a/src/libelf/common.h
+++ /dev/null
@@ -1,163 +0,0 @@
-/* Common definitions for handling files in memory or only on disk.
- Copyright (C) 1998, 1999, 2000, 2002, 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _COMMON_H
-#define _COMMON_H 1
-
-#include <ar.h>
-#include <byteswap.h>
-#include <endian.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-static inline Elf_Kind
-__attribute__ ((unused))
-determine_kind (void *buf, size_t len)
-{
- /* First test for an archive. */
- if (len >= SARMAG && memcmp (buf, ARMAG, SARMAG) == 0)
- return ELF_K_AR;
-
- /* Next try ELF files. */
- if (len >= EI_NIDENT && memcmp (buf, ELFMAG, SELFMAG) == 0)
- {
- /* Could be an ELF file. */
- int eclass = (int) ((unsigned char *) buf)[EI_CLASS];
- int data = (int) ((unsigned char *) buf)[EI_DATA];
- int version = (int) ((unsigned char *) buf)[EI_VERSION];
-
- if (eclass > ELFCLASSNONE && eclass < ELFCLASSNUM
- && data > ELFDATANONE && data < ELFDATANUM
- && version > EV_NONE && version < EV_NUM)
- return ELF_K_ELF;
- }
-
- /* We do not know this file type. */
- return ELF_K_NONE;
-}
-
-
-/* Allocate an Elf descriptor and fill in the generic information. */
-static inline Elf *
-__attribute__ ((unused))
-allocate_elf (int fildes, void *map_address, off_t offset, size_t maxsize,
- Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra)
-{
- Elf *result = (Elf *) calloc (1, sizeof (Elf) + extra);
- if (result == NULL)
- __libelf_seterrno (ELF_E_NOMEM);
- else
- {
- result->kind = kind;
- result->ref_count = 1;
- result->cmd = cmd;
- result->fildes = fildes;
- result->start_offset = offset;
- result->maximum_size = maxsize;
- result->map_address = map_address;
- result->parent = parent;
-
- rwlock_init (result->lock);
- }
-
- return result;
-}
-
-
-/* Acquire lock for the descriptor and all children. */
-static void
-__attribute__ ((unused))
-libelf_acquire_all (Elf *elf)
-{
- rwlock_wrlock (elf->lock);
-
- if (elf->kind == ELF_K_AR)
- {
- Elf *child = elf->state.ar.children;
-
- while (child != NULL)
- {
- if (child->ref_count != 0)
- libelf_acquire_all (child);
- child = child->next;
- }
- }
-}
-
-/* Release own lock and those of the children. */
-static void
-__attribute__ ((unused))
-libelf_release_all (Elf *elf)
-{
- if (elf->kind == ELF_K_AR)
- {
- Elf *child = elf->state.ar.children;
-
- while (child != NULL)
- {
- if (child->ref_count != 0)
- libelf_release_all (child);
- child = child->next;
- }
- }
-
- rwlock_unlock (elf->lock);
-}
-
-
-/* Macro to convert endianess in place. It determines the function it
- has to use itself. */
-#define CONVERT(Var) \
- (Var) = (sizeof (Var) == 1 \
- ? (unsigned char) (Var) \
- : (sizeof (Var) == 2 \
- ? bswap_16 (Var) \
- : (sizeof (Var) == 4 \
- ? bswap_32 (Var) \
- : bswap_64 (Var))))
-
-#define CONVERT_TO(Dst, Var) \
- (Dst) = (sizeof (Var) == 1 \
- ? (unsigned char) (Var) \
- : (sizeof (Var) == 2 \
- ? bswap_16 (Var) \
- : (sizeof (Var) == 4 \
- ? bswap_32 (Var) \
- : bswap_64 (Var))))
-
-
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-# define MY_ELFDATA ELFDATA2LSB
-#else
-# define MY_ELFDATA ELFDATA2MSB
-#endif
-
-#endif /* common.h */
diff --git a/src/libelf/dl-hash.h b/src/libelf/dl-hash.h
deleted file mode 100644
index e286d2e8..00000000
--- a/src/libelf/dl-hash.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/* Compute hash value for given string according to ELF standard.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1995.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _DL_HASH_H
-#define _DL_HASH_H 1
-
-
-/* This is the hashing function specified by the ELF ABI. In the
- first five operations no overflow is possible so we optimized it a
- bit. */
-static inline unsigned int
-__attribute__ ((__pure__))
-_dl_elf_hash (const char *name)
-{
- const unsigned char *iname = (const unsigned char *) name;
- unsigned int hash = (unsigned int) *iname++;
- if (*iname != '\0')
- {
- hash = (hash << 4) + (unsigned int) *iname++;
- if (*iname != '\0')
- {
- hash = (hash << 4) + (unsigned int) *iname++;
- if (*iname != '\0')
- {
- hash = (hash << 4) + (unsigned int) *iname++;
- if (*iname != '\0')
- {
- hash = (hash << 4) + (unsigned int) *iname++;
- while (*iname != '\0')
- {
- unsigned int hi;
- hash = (hash << 4) + (unsigned int) *iname++;
- hi = hash & 0xf0000000;
-
- /* The algorithm specified in the ELF ABI is as
- follows:
-
- if (hi != 0)
- hash ^= hi >> 24;
-
- hash &= ~hi;
-
- But the following is equivalent and a lot
- faster, especially on modern processors. */
-
- hash ^= hi;
- hash ^= hi >> 24;
- }
- }
- }
- }
- }
- return hash;
-}
-
-#endif /* dl-hash.h */
diff --git a/src/libelf/elf-knowledge.h b/src/libelf/elf-knowledge.h
deleted file mode 100644
index 24534b38..00000000
--- a/src/libelf/elf-knowledge.h
+++ /dev/null
@@ -1,104 +0,0 @@
-/* Accumulation of various pieces of knowledge about ELF.
- Copyright (C) 2000-2012, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _ELF_KNOWLEDGE_H
-#define _ELF_KNOWLEDGE_H 1
-
-#include <stdbool.h>
-
-
-/* Test whether a section can be stripped or not. */
-#define SECTION_STRIP_P(shdr, name, remove_comment) \
- /* Sections which are allocated are not removed. */ \
- (((shdr)->sh_flags & SHF_ALLOC) == 0 \
- /* We never remove .note sections. */ \
- && (shdr)->sh_type != SHT_NOTE \
- && (((shdr)->sh_type) != SHT_PROGBITS \
- /* Never remove .gnu.warning.* sections. */ \
- || (name != NULL \
- && strncmp (name, ".gnu.warning.", sizeof ".gnu.warning." - 1) != 0\
- /* We remove .comment sections only if explicitly told to do so. */\
- && (remove_comment \
- || strcmp (name, ".comment") != 0))))
-
-
-/* Test whether `sh_info' field in section header contains a section
- index. There are two kinds of sections doing this:
-
- - the sections containing relocation information reference in this
- field the section to which the relocations apply;
-
- - section with the SHF_INFO_LINK flag set to signal that `sh_info'
- references a section. This allows correct handling of unknown
- sections. */
-#define SH_INFO_LINK_P(Shdr) \
- ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA \
- || ((Shdr)->sh_flags & SHF_INFO_LINK) != 0)
-
-
-/* When combining ELF section flags we must distinguish two kinds:
-
- - flags which cause problem if not added to the result even if not
- present in all input sections
-
- - flags which cause problem if added to the result if not present
- in all input sections
-
- The following definition is for the general case. There might be
- machine specific extensions. */
-#define SH_FLAGS_COMBINE(Flags1, Flags2) \
- (((Flags1 | Flags2) \
- & (SHF_WRITE | SHF_ALLOC | SHF_EXECINSTR | SHF_LINK_ORDER \
- | SHF_OS_NONCONFORMING | SHF_GROUP)) \
- | (Flags1 & Flags2 & (SHF_MERGE | SHF_STRINGS | SHF_INFO_LINK)))
-
-/* Similar macro: return the bits of the flags which necessarily must
- match if two sections are automatically combined. Sections still
- can be forcefully combined in which case SH_FLAGS_COMBINE can be
- used to determine the combined flags. */
-#define SH_FLAGS_IMPORTANT(Flags) \
- ((Flags) & ~((GElf_Xword) 0 | SHF_LINK_ORDER | SHF_OS_NONCONFORMING))
-
-
-/* Size of an entry in the hash table. The ELF specification says all
- entries are regardless of platform 32-bits in size. Early 64-bit
- ports (namely Alpha for Linux) got this wrong. The wording was not
- clear.
-
- Several years later the ABI for the 64-bit S390s was developed.
- Many things were copied from the IA-64 ABI (which uses the correct
- 32-bit entry size) but what do these people do? They use 64-bit
- entries. It is really shocking to see what kind of morons are out
- there. And even worse: they are allowed to design ABIs. */
-#define SH_ENTSIZE_HASH(Ehdr) \
- ((Ehdr)->e_machine == EM_ALPHA \
- || ((Ehdr)->e_machine == EM_S390 \
- && (Ehdr)->e_ident[EI_CLASS] == ELFCLASS64) ? 8 : 4)
-
-#endif /* elf-knowledge.h */
diff --git a/src/libelf/elf.h b/src/libelf/elf.h
deleted file mode 100644
index 40e87b21..00000000
--- a/src/libelf/elf.h
+++ /dev/null
@@ -1,3363 +0,0 @@
-/* This file defines standard ELF types, structures, and macros.
- Copyright (C) 1995-2014 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _ELF_H
-#define _ELF_H 1
-
-#include <features.h>
-
-__BEGIN_DECLS
-
-/* Standard ELF types. */
-
-#include <stdint.h>
-
-/* Type for a 16-bit quantity. */
-typedef uint16_t Elf32_Half;
-typedef uint16_t Elf64_Half;
-
-/* Types for signed and unsigned 32-bit quantities. */
-typedef uint32_t Elf32_Word;
-typedef int32_t Elf32_Sword;
-typedef uint32_t Elf64_Word;
-typedef int32_t Elf64_Sword;
-
-/* Types for signed and unsigned 64-bit quantities. */
-typedef uint64_t Elf32_Xword;
-typedef int64_t Elf32_Sxword;
-typedef uint64_t Elf64_Xword;
-typedef int64_t Elf64_Sxword;
-
-/* Type of addresses. */
-typedef uint32_t Elf32_Addr;
-typedef uint64_t Elf64_Addr;
-
-/* Type of file offsets. */
-typedef uint32_t Elf32_Off;
-typedef uint64_t Elf64_Off;
-
-/* Type for section indices, which are 16-bit quantities. */
-typedef uint16_t Elf32_Section;
-typedef uint16_t Elf64_Section;
-
-/* Type for version symbol information. */
-typedef Elf32_Half Elf32_Versym;
-typedef Elf64_Half Elf64_Versym;
-
-
-/* The ELF file header. This appears at the start of every ELF file. */
-
-#define EI_NIDENT (16)
-
-typedef struct
-{
- unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */
- Elf32_Half e_type; /* Object file type */
- Elf32_Half e_machine; /* Architecture */
- Elf32_Word e_version; /* Object file version */
- Elf32_Addr e_entry; /* Entry point virtual address */
- Elf32_Off e_phoff; /* Program header table file offset */
- Elf32_Off e_shoff; /* Section header table file offset */
- Elf32_Word e_flags; /* Processor-specific flags */
- Elf32_Half e_ehsize; /* ELF header size in bytes */
- Elf32_Half e_phentsize; /* Program header table entry size */
- Elf32_Half e_phnum; /* Program header table entry count */
- Elf32_Half e_shentsize; /* Section header table entry size */
- Elf32_Half e_shnum; /* Section header table entry count */
- Elf32_Half e_shstrndx; /* Section header string table index */
-} Elf32_Ehdr;
-
-typedef struct
-{
- unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */
- Elf64_Half e_type; /* Object file type */
- Elf64_Half e_machine; /* Architecture */
- Elf64_Word e_version; /* Object file version */
- Elf64_Addr e_entry; /* Entry point virtual address */
- Elf64_Off e_phoff; /* Program header table file offset */
- Elf64_Off e_shoff; /* Section header table file offset */
- Elf64_Word e_flags; /* Processor-specific flags */
- Elf64_Half e_ehsize; /* ELF header size in bytes */
- Elf64_Half e_phentsize; /* Program header table entry size */
- Elf64_Half e_phnum; /* Program header table entry count */
- Elf64_Half e_shentsize; /* Section header table entry size */
- Elf64_Half e_shnum; /* Section header table entry count */
- Elf64_Half e_shstrndx; /* Section header string table index */
-} Elf64_Ehdr;
-
-/* Fields in the e_ident array. The EI_* macros are indices into the
- array. The macros under each EI_* macro are the values the byte
- may have. */
-
-#define EI_MAG0 0 /* File identification byte 0 index */
-#define ELFMAG0 0x7f /* Magic number byte 0 */
-
-#define EI_MAG1 1 /* File identification byte 1 index */
-#define ELFMAG1 'E' /* Magic number byte 1 */
-
-#define EI_MAG2 2 /* File identification byte 2 index */
-#define ELFMAG2 'L' /* Magic number byte 2 */
-
-#define EI_MAG3 3 /* File identification byte 3 index */
-#define ELFMAG3 'F' /* Magic number byte 3 */
-
-/* Conglomeration of the identification bytes, for easy testing as a word. */
-#define ELFMAG "\177ELF"
-#define SELFMAG 4
-
-#define EI_CLASS 4 /* File class byte index */
-#define ELFCLASSNONE 0 /* Invalid class */
-#define ELFCLASS32 1 /* 32-bit objects */
-#define ELFCLASS64 2 /* 64-bit objects */
-#define ELFCLASSNUM 3
-
-#define EI_DATA 5 /* Data encoding byte index */
-#define ELFDATANONE 0 /* Invalid data encoding */
-#define ELFDATA2LSB 1 /* 2's complement, little endian */
-#define ELFDATA2MSB 2 /* 2's complement, big endian */
-#define ELFDATANUM 3
-
-#define EI_VERSION 6 /* File version byte index */
- /* Value must be EV_CURRENT */
-
-#define EI_OSABI 7 /* OS ABI identification */
-#define ELFOSABI_NONE 0 /* UNIX System V ABI */
-#define ELFOSABI_SYSV 0 /* Alias. */
-#define ELFOSABI_HPUX 1 /* HP-UX */
-#define ELFOSABI_NETBSD 2 /* NetBSD. */
-#define ELFOSABI_GNU 3 /* Object uses GNU ELF extensions. */
-#define ELFOSABI_LINUX ELFOSABI_GNU /* Compatibility alias. */
-#define ELFOSABI_SOLARIS 6 /* Sun Solaris. */
-#define ELFOSABI_AIX 7 /* IBM AIX. */
-#define ELFOSABI_IRIX 8 /* SGI Irix. */
-#define ELFOSABI_FREEBSD 9 /* FreeBSD. */
-#define ELFOSABI_TRU64 10 /* Compaq TRU64 UNIX. */
-#define ELFOSABI_MODESTO 11 /* Novell Modesto. */
-#define ELFOSABI_OPENBSD 12 /* OpenBSD. */
-#define ELFOSABI_ARM_AEABI 64 /* ARM EABI */
-#define ELFOSABI_ARM 97 /* ARM */
-#define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */
-
-#define EI_ABIVERSION 8 /* ABI version */
-
-#define EI_PAD 9 /* Byte index of padding bytes */
-
-/* Legal values for e_type (object file type). */
-
-#define ET_NONE 0 /* No file type */
-#define ET_REL 1 /* Relocatable file */
-#define ET_EXEC 2 /* Executable file */
-#define ET_DYN 3 /* Shared object file */
-#define ET_CORE 4 /* Core file */
-#define ET_NUM 5 /* Number of defined types */
-#define ET_LOOS 0xfe00 /* OS-specific range start */
-#define ET_HIOS 0xfeff /* OS-specific range end */
-#define ET_LOPROC 0xff00 /* Processor-specific range start */
-#define ET_HIPROC 0xffff /* Processor-specific range end */
-
-/* Legal values for e_machine (architecture). */
-
-#define EM_NONE 0 /* No machine */
-#define EM_M32 1 /* AT&T WE 32100 */
-#define EM_SPARC 2 /* SUN SPARC */
-#define EM_386 3 /* Intel 80386 */
-#define EM_68K 4 /* Motorola m68k family */
-#define EM_88K 5 /* Motorola m88k family */
-#define EM_860 7 /* Intel 80860 */
-#define EM_MIPS 8 /* MIPS R3000 big-endian */
-#define EM_S370 9 /* IBM System/370 */
-#define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */
-
-#define EM_PARISC 15 /* HPPA */
-#define EM_VPP500 17 /* Fujitsu VPP500 */
-#define EM_SPARC32PLUS 18 /* Sun's "v8plus" */
-#define EM_960 19 /* Intel 80960 */
-#define EM_PPC 20 /* PowerPC */
-#define EM_PPC64 21 /* PowerPC 64-bit */
-#define EM_S390 22 /* IBM S390 */
-
-#define EM_V800 36 /* NEC V800 series */
-#define EM_FR20 37 /* Fujitsu FR20 */
-#define EM_RH32 38 /* TRW RH-32 */
-#define EM_RCE 39 /* Motorola RCE */
-#define EM_ARM 40 /* ARM */
-#define EM_FAKE_ALPHA 41 /* Digital Alpha */
-#define EM_SH 42 /* Hitachi SH */
-#define EM_SPARCV9 43 /* SPARC v9 64-bit */
-#define EM_TRICORE 44 /* Siemens Tricore */
-#define EM_ARC 45 /* Argonaut RISC Core */
-#define EM_H8_300 46 /* Hitachi H8/300 */
-#define EM_H8_300H 47 /* Hitachi H8/300H */
-#define EM_H8S 48 /* Hitachi H8S */
-#define EM_H8_500 49 /* Hitachi H8/500 */
-#define EM_IA_64 50 /* Intel Merced */
-#define EM_MIPS_X 51 /* Stanford MIPS-X */
-#define EM_COLDFIRE 52 /* Motorola Coldfire */
-#define EM_68HC12 53 /* Motorola M68HC12 */
-#define EM_MMA 54 /* Fujitsu MMA Multimedia Accelerator*/
-#define EM_PCP 55 /* Siemens PCP */
-#define EM_NCPU 56 /* Sony nCPU embeeded RISC */
-#define EM_NDR1 57 /* Denso NDR1 microprocessor */
-#define EM_STARCORE 58 /* Motorola Start*Core processor */
-#define EM_ME16 59 /* Toyota ME16 processor */
-#define EM_ST100 60 /* STMicroelectronic ST100 processor */
-#define EM_TINYJ 61 /* Advanced Logic Corp. Tinyj emb.fam*/
-#define EM_X86_64 62 /* AMD x86-64 architecture */
-#define EM_PDSP 63 /* Sony DSP Processor */
-
-#define EM_FX66 66 /* Siemens FX66 microcontroller */
-#define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */
-#define EM_ST7 68 /* STmicroelectronics ST7 8 bit mc */
-#define EM_68HC16 69 /* Motorola MC68HC16 microcontroller */
-#define EM_68HC11 70 /* Motorola MC68HC11 microcontroller */
-#define EM_68HC08 71 /* Motorola MC68HC08 microcontroller */
-#define EM_68HC05 72 /* Motorola MC68HC05 microcontroller */
-#define EM_SVX 73 /* Silicon Graphics SVx */
-#define EM_ST19 74 /* STMicroelectronics ST19 8 bit mc */
-#define EM_VAX 75 /* Digital VAX */
-#define EM_CRIS 76 /* Axis Communications 32-bit embedded processor */
-#define EM_JAVELIN 77 /* Infineon Technologies 32-bit embedded processor */
-#define EM_FIREPATH 78 /* Element 14 64-bit DSP Processor */
-#define EM_ZSP 79 /* LSI Logic 16-bit DSP Processor */
-#define EM_MMIX 80 /* Donald Knuth's educational 64-bit processor */
-#define EM_HUANY 81 /* Harvard University machine-independent object files */
-#define EM_PRISM 82 /* SiTera Prism */
-#define EM_AVR 83 /* Atmel AVR 8-bit microcontroller */
-#define EM_FR30 84 /* Fujitsu FR30 */
-#define EM_D10V 85 /* Mitsubishi D10V */
-#define EM_D30V 86 /* Mitsubishi D30V */
-#define EM_V850 87 /* NEC v850 */
-#define EM_M32R 88 /* Mitsubishi M32R */
-#define EM_MN10300 89 /* Matsushita MN10300 */
-#define EM_MN10200 90 /* Matsushita MN10200 */
-#define EM_PJ 91 /* picoJava */
-#define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */
-#define EM_ARC_A5 93 /* ARC Cores Tangent-A5 */
-#define EM_XTENSA 94 /* Tensilica Xtensa Architecture */
-#define EM_AARCH64 183 /* ARM AARCH64 */
-#define EM_TILEPRO 188 /* Tilera TILEPro */
-#define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */
-#define EM_TILEGX 191 /* Tilera TILE-Gx */
-#define EM_NUM 192
-
-/* If it is necessary to assign new unofficial EM_* values, please
- pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the
- chances of collision with official or non-GNU unofficial values. */
-
-#define EM_ALPHA 0x9026
-
-/* Legal values for e_version (version). */
-
-#define EV_NONE 0 /* Invalid ELF version */
-#define EV_CURRENT 1 /* Current version */
-#define EV_NUM 2
-
-/* Section header. */
-
-typedef struct
-{
- Elf32_Word sh_name; /* Section name (string tbl index) */
- Elf32_Word sh_type; /* Section type */
- Elf32_Word sh_flags; /* Section flags */
- Elf32_Addr sh_addr; /* Section virtual addr at execution */
- Elf32_Off sh_offset; /* Section file offset */
- Elf32_Word sh_size; /* Section size in bytes */
- Elf32_Word sh_link; /* Link to another section */
- Elf32_Word sh_info; /* Additional section information */
- Elf32_Word sh_addralign; /* Section alignment */
- Elf32_Word sh_entsize; /* Entry size if section holds table */
-} Elf32_Shdr;
-
-typedef struct
-{
- Elf64_Word sh_name; /* Section name (string tbl index) */
- Elf64_Word sh_type; /* Section type */
- Elf64_Xword sh_flags; /* Section flags */
- Elf64_Addr sh_addr; /* Section virtual addr at execution */
- Elf64_Off sh_offset; /* Section file offset */
- Elf64_Xword sh_size; /* Section size in bytes */
- Elf64_Word sh_link; /* Link to another section */
- Elf64_Word sh_info; /* Additional section information */
- Elf64_Xword sh_addralign; /* Section alignment */
- Elf64_Xword sh_entsize; /* Entry size if section holds table */
-} Elf64_Shdr;
-
-/* Special section indices. */
-
-#define SHN_UNDEF 0 /* Undefined section */
-#define SHN_LORESERVE 0xff00 /* Start of reserved indices */
-#define SHN_LOPROC 0xff00 /* Start of processor-specific */
-#define SHN_BEFORE 0xff00 /* Order section before all others
- (Solaris). */
-#define SHN_AFTER 0xff01 /* Order section after all others
- (Solaris). */
-#define SHN_HIPROC 0xff1f /* End of processor-specific */
-#define SHN_LOOS 0xff20 /* Start of OS-specific */
-#define SHN_HIOS 0xff3f /* End of OS-specific */
-#define SHN_ABS 0xfff1 /* Associated symbol is absolute */
-#define SHN_COMMON 0xfff2 /* Associated symbol is common */
-#define SHN_XINDEX 0xffff /* Index is in extra table. */
-#define SHN_HIRESERVE 0xffff /* End of reserved indices */
-
-/* Legal values for sh_type (section type). */
-
-#define SHT_NULL 0 /* Section header table entry unused */
-#define SHT_PROGBITS 1 /* Program data */
-#define SHT_SYMTAB 2 /* Symbol table */
-#define SHT_STRTAB 3 /* String table */
-#define SHT_RELA 4 /* Relocation entries with addends */
-#define SHT_HASH 5 /* Symbol hash table */
-#define SHT_DYNAMIC 6 /* Dynamic linking information */
-#define SHT_NOTE 7 /* Notes */
-#define SHT_NOBITS 8 /* Program space with no data (bss) */
-#define SHT_REL 9 /* Relocation entries, no addends */
-#define SHT_SHLIB 10 /* Reserved */
-#define SHT_DYNSYM 11 /* Dynamic linker symbol table */
-#define SHT_INIT_ARRAY 14 /* Array of constructors */
-#define SHT_FINI_ARRAY 15 /* Array of destructors */
-#define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */
-#define SHT_GROUP 17 /* Section group */
-#define SHT_SYMTAB_SHNDX 18 /* Extended section indeces */
-#define SHT_NUM 19 /* Number of defined types. */
-#define SHT_LOOS 0x60000000 /* Start OS-specific. */
-#define SHT_GNU_ATTRIBUTES 0x6ffffff5 /* Object attributes. */
-#define SHT_GNU_HASH 0x6ffffff6 /* GNU-style hash table. */
-#define SHT_GNU_LIBLIST 0x6ffffff7 /* Prelink library list */
-#define SHT_CHECKSUM 0x6ffffff8 /* Checksum for DSO content. */
-#define SHT_LOSUNW 0x6ffffffa /* Sun-specific low bound. */
-#define SHT_SUNW_move 0x6ffffffa
-#define SHT_SUNW_COMDAT 0x6ffffffb
-#define SHT_SUNW_syminfo 0x6ffffffc
-#define SHT_GNU_verdef 0x6ffffffd /* Version definition section. */
-#define SHT_GNU_verneed 0x6ffffffe /* Version needs section. */
-#define SHT_GNU_versym 0x6fffffff /* Version symbol table. */
-#define SHT_HISUNW 0x6fffffff /* Sun-specific high bound. */
-#define SHT_HIOS 0x6fffffff /* End OS-specific type */
-#define SHT_LOPROC 0x70000000 /* Start of processor-specific */
-#define SHT_HIPROC 0x7fffffff /* End of processor-specific */
-#define SHT_LOUSER 0x80000000 /* Start of application-specific */
-#define SHT_HIUSER 0x8fffffff /* End of application-specific */
-
-/* Legal values for sh_flags (section flags). */
-
-#define SHF_WRITE (1 << 0) /* Writable */
-#define SHF_ALLOC (1 << 1) /* Occupies memory during execution */
-#define SHF_EXECINSTR (1 << 2) /* Executable */
-#define SHF_MERGE (1 << 4) /* Might be merged */
-#define SHF_STRINGS (1 << 5) /* Contains nul-terminated strings */
-#define SHF_INFO_LINK (1 << 6) /* `sh_info' contains SHT index */
-#define SHF_LINK_ORDER (1 << 7) /* Preserve order after combining */
-#define SHF_OS_NONCONFORMING (1 << 8) /* Non-standard OS specific handling
- required */
-#define SHF_GROUP (1 << 9) /* Section is member of a group. */
-#define SHF_TLS (1 << 10) /* Section hold thread-local data. */
-#define SHF_MASKOS 0x0ff00000 /* OS-specific. */
-#define SHF_MASKPROC 0xf0000000 /* Processor-specific */
-#define SHF_ORDERED (1 << 30) /* Special ordering requirement
- (Solaris). */
-#define SHF_EXCLUDE (1 << 31) /* Section is excluded unless
- referenced or allocated (Solaris).*/
-
-/* Section group handling. */
-#define GRP_COMDAT 0x1 /* Mark group as COMDAT. */
-
-/* Symbol table entry. */
-
-typedef struct
-{
- Elf32_Word st_name; /* Symbol name (string tbl index) */
- Elf32_Addr st_value; /* Symbol value */
- Elf32_Word st_size; /* Symbol size */
- unsigned char st_info; /* Symbol type and binding */
- unsigned char st_other; /* Symbol visibility */
- Elf32_Section st_shndx; /* Section index */
-} Elf32_Sym;
-
-typedef struct
-{
- Elf64_Word st_name; /* Symbol name (string tbl index) */
- unsigned char st_info; /* Symbol type and binding */
- unsigned char st_other; /* Symbol visibility */
- Elf64_Section st_shndx; /* Section index */
- Elf64_Addr st_value; /* Symbol value */
- Elf64_Xword st_size; /* Symbol size */
-} Elf64_Sym;
-
-/* The syminfo section if available contains additional information about
- every dynamic symbol. */
-
-typedef struct
-{
- Elf32_Half si_boundto; /* Direct bindings, symbol bound to */
- Elf32_Half si_flags; /* Per symbol flags */
-} Elf32_Syminfo;
-
-typedef struct
-{
- Elf64_Half si_boundto; /* Direct bindings, symbol bound to */
- Elf64_Half si_flags; /* Per symbol flags */
-} Elf64_Syminfo;
-
-/* Possible values for si_boundto. */
-#define SYMINFO_BT_SELF 0xffff /* Symbol bound to self */
-#define SYMINFO_BT_PARENT 0xfffe /* Symbol bound to parent */
-#define SYMINFO_BT_LOWRESERVE 0xff00 /* Beginning of reserved entries */
-
-/* Possible bitmasks for si_flags. */
-#define SYMINFO_FLG_DIRECT 0x0001 /* Direct bound symbol */
-#define SYMINFO_FLG_PASSTHRU 0x0002 /* Pass-thru symbol for translator */
-#define SYMINFO_FLG_COPY 0x0004 /* Symbol is a copy-reloc */
-#define SYMINFO_FLG_LAZYLOAD 0x0008 /* Symbol bound to object to be lazy
- loaded */
-/* Syminfo version values. */
-#define SYMINFO_NONE 0
-#define SYMINFO_CURRENT 1
-#define SYMINFO_NUM 2
-
-
-/* How to extract and insert information held in the st_info field. */
-
-#define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4)
-#define ELF32_ST_TYPE(val) ((val) & 0xf)
-#define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf))
-
-/* Both Elf32_Sym and Elf64_Sym use the same one-byte st_info field. */
-#define ELF64_ST_BIND(val) ELF32_ST_BIND (val)
-#define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val)
-#define ELF64_ST_INFO(bind, type) ELF32_ST_INFO ((bind), (type))
-
-/* Legal values for ST_BIND subfield of st_info (symbol binding). */
-
-#define STB_LOCAL 0 /* Local symbol */
-#define STB_GLOBAL 1 /* Global symbol */
-#define STB_WEAK 2 /* Weak symbol */
-#define STB_NUM 3 /* Number of defined types. */
-#define STB_LOOS 10 /* Start of OS-specific */
-#define STB_GNU_UNIQUE 10 /* Unique symbol. */
-#define STB_HIOS 12 /* End of OS-specific */
-#define STB_LOPROC 13 /* Start of processor-specific */
-#define STB_HIPROC 15 /* End of processor-specific */
-
-/* Legal values for ST_TYPE subfield of st_info (symbol type). */
-
-#define STT_NOTYPE 0 /* Symbol type is unspecified */
-#define STT_OBJECT 1 /* Symbol is a data object */
-#define STT_FUNC 2 /* Symbol is a code object */
-#define STT_SECTION 3 /* Symbol associated with a section */
-#define STT_FILE 4 /* Symbol's name is file name */
-#define STT_COMMON 5 /* Symbol is a common data object */
-#define STT_TLS 6 /* Symbol is thread-local data object*/
-#define STT_NUM 7 /* Number of defined types. */
-#define STT_LOOS 10 /* Start of OS-specific */
-#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */
-#define STT_HIOS 12 /* End of OS-specific */
-#define STT_LOPROC 13 /* Start of processor-specific */
-#define STT_HIPROC 15 /* End of processor-specific */
-
-
-/* Symbol table indices are found in the hash buckets and chain table
- of a symbol hash table section. This special index value indicates
- the end of a chain, meaning no further symbols are found in that bucket. */
-
-#define STN_UNDEF 0 /* End of a chain. */
-
-
-/* How to extract and insert information held in the st_other field. */
-
-#define ELF32_ST_VISIBILITY(o) ((o) & 0x03)
-
-/* For ELF64 the definitions are the same. */
-#define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o)
-
-/* Symbol visibility specification encoded in the st_other field. */
-#define STV_DEFAULT 0 /* Default symbol visibility rules */
-#define STV_INTERNAL 1 /* Processor specific hidden class */
-#define STV_HIDDEN 2 /* Sym unavailable in other modules */
-#define STV_PROTECTED 3 /* Not preemptible, not exported */
-
-
-/* Relocation table entry without addend (in section of type SHT_REL). */
-
-typedef struct
-{
- Elf32_Addr r_offset; /* Address */
- Elf32_Word r_info; /* Relocation type and symbol index */
-} Elf32_Rel;
-
-/* I have seen two different definitions of the Elf64_Rel and
- Elf64_Rela structures, so we'll leave them out until Novell (or
- whoever) gets their act together. */
-/* The following, at least, is used on Sparc v9, MIPS, and Alpha. */
-
-typedef struct
-{
- Elf64_Addr r_offset; /* Address */
- Elf64_Xword r_info; /* Relocation type and symbol index */
-} Elf64_Rel;
-
-/* Relocation table entry with addend (in section of type SHT_RELA). */
-
-typedef struct
-{
- Elf32_Addr r_offset; /* Address */
- Elf32_Word r_info; /* Relocation type and symbol index */
- Elf32_Sword r_addend; /* Addend */
-} Elf32_Rela;
-
-typedef struct
-{
- Elf64_Addr r_offset; /* Address */
- Elf64_Xword r_info; /* Relocation type and symbol index */
- Elf64_Sxword r_addend; /* Addend */
-} Elf64_Rela;
-
-/* How to extract and insert information held in the r_info field. */
-
-#define ELF32_R_SYM(val) ((val) >> 8)
-#define ELF32_R_TYPE(val) ((val) & 0xff)
-#define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff))
-
-#define ELF64_R_SYM(i) ((i) >> 32)
-#define ELF64_R_TYPE(i) ((i) & 0xffffffff)
-#define ELF64_R_INFO(sym,type) ((((Elf64_Xword) (sym)) << 32) + (type))
-
-/* Program segment header. */
-
-typedef struct
-{
- Elf32_Word p_type; /* Segment type */
- Elf32_Off p_offset; /* Segment file offset */
- Elf32_Addr p_vaddr; /* Segment virtual address */
- Elf32_Addr p_paddr; /* Segment physical address */
- Elf32_Word p_filesz; /* Segment size in file */
- Elf32_Word p_memsz; /* Segment size in memory */
- Elf32_Word p_flags; /* Segment flags */
- Elf32_Word p_align; /* Segment alignment */
-} Elf32_Phdr;
-
-typedef struct
-{
- Elf64_Word p_type; /* Segment type */
- Elf64_Word p_flags; /* Segment flags */
- Elf64_Off p_offset; /* Segment file offset */
- Elf64_Addr p_vaddr; /* Segment virtual address */
- Elf64_Addr p_paddr; /* Segment physical address */
- Elf64_Xword p_filesz; /* Segment size in file */
- Elf64_Xword p_memsz; /* Segment size in memory */
- Elf64_Xword p_align; /* Segment alignment */
-} Elf64_Phdr;
-
-/* Special value for e_phnum. This indicates that the real number of
- program headers is too large to fit into e_phnum. Instead the real
- value is in the field sh_info of section 0. */
-
-#define PN_XNUM 0xffff
-
-/* Legal values for p_type (segment type). */
-
-#define PT_NULL 0 /* Program header table entry unused */
-#define PT_LOAD 1 /* Loadable program segment */
-#define PT_DYNAMIC 2 /* Dynamic linking information */
-#define PT_INTERP 3 /* Program interpreter */
-#define PT_NOTE 4 /* Auxiliary information */
-#define PT_SHLIB 5 /* Reserved */
-#define PT_PHDR 6 /* Entry for header table itself */
-#define PT_TLS 7 /* Thread-local storage segment */
-#define PT_NUM 8 /* Number of defined types */
-#define PT_LOOS 0x60000000 /* Start of OS-specific */
-#define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */
-#define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */
-#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
-#define PT_LOSUNW 0x6ffffffa
-#define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */
-#define PT_SUNWSTACK 0x6ffffffb /* Stack segment */
-#define PT_HISUNW 0x6fffffff
-#define PT_HIOS 0x6fffffff /* End of OS-specific */
-#define PT_LOPROC 0x70000000 /* Start of processor-specific */
-#define PT_HIPROC 0x7fffffff /* End of processor-specific */
-
-/* Legal values for p_flags (segment flags). */
-
-#define PF_X (1 << 0) /* Segment is executable */
-#define PF_W (1 << 1) /* Segment is writable */
-#define PF_R (1 << 2) /* Segment is readable */
-#define PF_MASKOS 0x0ff00000 /* OS-specific */
-#define PF_MASKPROC 0xf0000000 /* Processor-specific */
-
-/* Legal values for note segment descriptor types for core files. */
-
-#define NT_PRSTATUS 1 /* Contains copy of prstatus struct */
-#define NT_FPREGSET 2 /* Contains copy of fpregset struct */
-#define NT_PRPSINFO 3 /* Contains copy of prpsinfo struct */
-#define NT_PRXREG 4 /* Contains copy of prxregset struct */
-#define NT_TASKSTRUCT 4 /* Contains copy of task structure */
-#define NT_PLATFORM 5 /* String from sysinfo(SI_PLATFORM) */
-#define NT_AUXV 6 /* Contains copy of auxv array */
-#define NT_GWINDOWS 7 /* Contains copy of gwindows struct */
-#define NT_ASRS 8 /* Contains copy of asrset struct */
-#define NT_PSTATUS 10 /* Contains copy of pstatus struct */
-#define NT_PSINFO 13 /* Contains copy of psinfo struct */
-#define NT_PRCRED 14 /* Contains copy of prcred struct */
-#define NT_UTSNAME 15 /* Contains copy of utsname struct */
-#define NT_LWPSTATUS 16 /* Contains copy of lwpstatus struct */
-#define NT_LWPSINFO 17 /* Contains copy of lwpinfo struct */
-#define NT_PRFPXREG 20 /* Contains copy of fprxregset struct */
-#define NT_SIGINFO 0x53494749 /* Contains copy of siginfo_t,
- size might increase */
-#define NT_FILE 0x46494c45 /* Contains information about mapped
- files */
-#define NT_PRXFPREG 0x46e62b7f /* Contains copy of user_fxsr_struct */
-#define NT_PPC_VMX 0x100 /* PowerPC Altivec/VMX registers */
-#define NT_PPC_SPE 0x101 /* PowerPC SPE/EVR registers */
-#define NT_PPC_VSX 0x102 /* PowerPC VSX registers */
-#define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */
-#define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */
-#define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */
-#define NT_S390_HIGH_GPRS 0x300 /* s390 upper register halves */
-#define NT_S390_TIMER 0x301 /* s390 timer register */
-#define NT_S390_TODCMP 0x302 /* s390 TOD clock comparator register */
-#define NT_S390_TODPREG 0x303 /* s390 TOD programmable register */
-#define NT_S390_CTRS 0x304 /* s390 control registers */
-#define NT_S390_PREFIX 0x305 /* s390 prefix register */
-#define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */
-#define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */
-#define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */
-#define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */
-#define NT_ARM_TLS 0x401 /* ARM TLS register */
-#define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */
-#define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */
-
-/* Legal values for the note segment descriptor types for object files. */
-
-#define NT_VERSION 1 /* Contains a version string. */
-
-
-/* Dynamic section entry. */
-
-typedef struct
-{
- Elf32_Sword d_tag; /* Dynamic entry type */
- union
- {
- Elf32_Word d_val; /* Integer value */
- Elf32_Addr d_ptr; /* Address value */
- } d_un;
-} Elf32_Dyn;
-
-typedef struct
-{
- Elf64_Sxword d_tag; /* Dynamic entry type */
- union
- {
- Elf64_Xword d_val; /* Integer value */
- Elf64_Addr d_ptr; /* Address value */
- } d_un;
-} Elf64_Dyn;
-
-/* Legal values for d_tag (dynamic entry type). */
-
-#define DT_NULL 0 /* Marks end of dynamic section */
-#define DT_NEEDED 1 /* Name of needed library */
-#define DT_PLTRELSZ 2 /* Size in bytes of PLT relocs */
-#define DT_PLTGOT 3 /* Processor defined value */
-#define DT_HASH 4 /* Address of symbol hash table */
-#define DT_STRTAB 5 /* Address of string table */
-#define DT_SYMTAB 6 /* Address of symbol table */
-#define DT_RELA 7 /* Address of Rela relocs */
-#define DT_RELASZ 8 /* Total size of Rela relocs */
-#define DT_RELAENT 9 /* Size of one Rela reloc */
-#define DT_STRSZ 10 /* Size of string table */
-#define DT_SYMENT 11 /* Size of one symbol table entry */
-#define DT_INIT 12 /* Address of init function */
-#define DT_FINI 13 /* Address of termination function */
-#define DT_SONAME 14 /* Name of shared object */
-#define DT_RPATH 15 /* Library search path (deprecated) */
-#define DT_SYMBOLIC 16 /* Start symbol search here */
-#define DT_REL 17 /* Address of Rel relocs */
-#define DT_RELSZ 18 /* Total size of Rel relocs */
-#define DT_RELENT 19 /* Size of one Rel reloc */
-#define DT_PLTREL 20 /* Type of reloc in PLT */
-#define DT_DEBUG 21 /* For debugging; unspecified */
-#define DT_TEXTREL 22 /* Reloc might modify .text */
-#define DT_JMPREL 23 /* Address of PLT relocs */
-#define DT_BIND_NOW 24 /* Process relocations of object */
-#define DT_INIT_ARRAY 25 /* Array with addresses of init fct */
-#define DT_FINI_ARRAY 26 /* Array with addresses of fini fct */
-#define DT_INIT_ARRAYSZ 27 /* Size in bytes of DT_INIT_ARRAY */
-#define DT_FINI_ARRAYSZ 28 /* Size in bytes of DT_FINI_ARRAY */
-#define DT_RUNPATH 29 /* Library search path */
-#define DT_FLAGS 30 /* Flags for the object being loaded */
-#define DT_ENCODING 32 /* Start of encoded range */
-#define DT_PREINIT_ARRAY 32 /* Array with addresses of preinit fct*/
-#define DT_PREINIT_ARRAYSZ 33 /* size in bytes of DT_PREINIT_ARRAY */
-#define DT_NUM 34 /* Number used */
-#define DT_LOOS 0x6000000d /* Start of OS-specific */
-#define DT_HIOS 0x6ffff000 /* End of OS-specific */
-#define DT_LOPROC 0x70000000 /* Start of processor-specific */
-#define DT_HIPROC 0x7fffffff /* End of processor-specific */
-#define DT_PROCNUM DT_MIPS_NUM /* Most used by any processor */
-
-/* DT_* entries which fall between DT_VALRNGHI & DT_VALRNGLO use the
- Dyn.d_un.d_val field of the Elf*_Dyn structure. This follows Sun's
- approach. */
-#define DT_VALRNGLO 0x6ffffd00
-#define DT_GNU_PRELINKED 0x6ffffdf5 /* Prelinking timestamp */
-#define DT_GNU_CONFLICTSZ 0x6ffffdf6 /* Size of conflict section */
-#define DT_GNU_LIBLISTSZ 0x6ffffdf7 /* Size of library list */
-#define DT_CHECKSUM 0x6ffffdf8
-#define DT_PLTPADSZ 0x6ffffdf9
-#define DT_MOVEENT 0x6ffffdfa
-#define DT_MOVESZ 0x6ffffdfb
-#define DT_FEATURE_1 0x6ffffdfc /* Feature selection (DTF_*). */
-#define DT_POSFLAG_1 0x6ffffdfd /* Flags for DT_* entries, effecting
- the following DT_* entry. */
-#define DT_SYMINSZ 0x6ffffdfe /* Size of syminfo table (in bytes) */
-#define DT_SYMINENT 0x6ffffdff /* Entry size of syminfo */
-#define DT_VALRNGHI 0x6ffffdff
-#define DT_VALTAGIDX(tag) (DT_VALRNGHI - (tag)) /* Reverse order! */
-#define DT_VALNUM 12
-
-/* DT_* entries which fall between DT_ADDRRNGHI & DT_ADDRRNGLO use the
- Dyn.d_un.d_ptr field of the Elf*_Dyn structure.
-
- If any adjustment is made to the ELF object after it has been
- built these entries will need to be adjusted. */
-#define DT_ADDRRNGLO 0x6ffffe00
-#define DT_GNU_HASH 0x6ffffef5 /* GNU-style hash table. */
-#define DT_TLSDESC_PLT 0x6ffffef6
-#define DT_TLSDESC_GOT 0x6ffffef7
-#define DT_GNU_CONFLICT 0x6ffffef8 /* Start of conflict section */
-#define DT_GNU_LIBLIST 0x6ffffef9 /* Library list */
-#define DT_CONFIG 0x6ffffefa /* Configuration information. */
-#define DT_DEPAUDIT 0x6ffffefb /* Dependency auditing. */
-#define DT_AUDIT 0x6ffffefc /* Object auditing. */
-#define DT_PLTPAD 0x6ffffefd /* PLT padding. */
-#define DT_MOVETAB 0x6ffffefe /* Move table. */
-#define DT_SYMINFO 0x6ffffeff /* Syminfo table. */
-#define DT_ADDRRNGHI 0x6ffffeff
-#define DT_ADDRTAGIDX(tag) (DT_ADDRRNGHI - (tag)) /* Reverse order! */
-#define DT_ADDRNUM 11
-
-/* The versioning entry types. The next are defined as part of the
- GNU extension. */
-#define DT_VERSYM 0x6ffffff0
-
-#define DT_RELACOUNT 0x6ffffff9
-#define DT_RELCOUNT 0x6ffffffa
-
-/* These were chosen by Sun. */
-#define DT_FLAGS_1 0x6ffffffb /* State flags, see DF_1_* below. */
-#define DT_VERDEF 0x6ffffffc /* Address of version definition
- table */
-#define DT_VERDEFNUM 0x6ffffffd /* Number of version definitions */
-#define DT_VERNEED 0x6ffffffe /* Address of table with needed
- versions */
-#define DT_VERNEEDNUM 0x6fffffff /* Number of needed versions */
-#define DT_VERSIONTAGIDX(tag) (DT_VERNEEDNUM - (tag)) /* Reverse order! */
-#define DT_VERSIONTAGNUM 16
-
-/* Sun added these machine-independent extensions in the "processor-specific"
- range. Be compatible. */
-#define DT_AUXILIARY 0x7ffffffd /* Shared object to load before self */
-#define DT_FILTER 0x7fffffff /* Shared object to get values from */
-#define DT_EXTRATAGIDX(tag) ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1)
-#define DT_EXTRANUM 3
-
-/* Values of `d_un.d_val' in the DT_FLAGS entry. */
-#define DF_ORIGIN 0x00000001 /* Object may use DF_ORIGIN */
-#define DF_SYMBOLIC 0x00000002 /* Symbol resolutions starts here */
-#define DF_TEXTREL 0x00000004 /* Object contains text relocations */
-#define DF_BIND_NOW 0x00000008 /* No lazy binding for this object */
-#define DF_STATIC_TLS 0x00000010 /* Module uses the static TLS model */
-
-/* State flags selectable in the `d_un.d_val' element of the DT_FLAGS_1
- entry in the dynamic section. */
-#define DF_1_NOW 0x00000001 /* Set RTLD_NOW for this object. */
-#define DF_1_GLOBAL 0x00000002 /* Set RTLD_GLOBAL for this object. */
-#define DF_1_GROUP 0x00000004 /* Set RTLD_GROUP for this object. */
-#define DF_1_NODELETE 0x00000008 /* Set RTLD_NODELETE for this object.*/
-#define DF_1_LOADFLTR 0x00000010 /* Trigger filtee loading at runtime.*/
-#define DF_1_INITFIRST 0x00000020 /* Set RTLD_INITFIRST for this object*/
-#define DF_1_NOOPEN 0x00000040 /* Set RTLD_NOOPEN for this object. */
-#define DF_1_ORIGIN 0x00000080 /* $ORIGIN must be handled. */
-#define DF_1_DIRECT 0x00000100 /* Direct binding enabled. */
-#define DF_1_TRANS 0x00000200
-#define DF_1_INTERPOSE 0x00000400 /* Object is used to interpose. */
-#define DF_1_NODEFLIB 0x00000800 /* Ignore default lib search path. */
-#define DF_1_NODUMP 0x00001000 /* Object can't be dldump'ed. */
-#define DF_1_CONFALT 0x00002000 /* Configuration alternative created.*/
-#define DF_1_ENDFILTEE 0x00004000 /* Filtee terminates filters search. */
-#define DF_1_DISPRELDNE 0x00008000 /* Disp reloc applied at build time. */
-#define DF_1_DISPRELPND 0x00010000 /* Disp reloc applied at run-time. */
-#define DF_1_NODIRECT 0x00020000 /* Object has no-direct binding. */
-#define DF_1_IGNMULDEF 0x00040000
-#define DF_1_NOKSYMS 0x00080000
-#define DF_1_NOHDR 0x00100000
-#define DF_1_EDITED 0x00200000 /* Object is modified after built. */
-#define DF_1_NORELOC 0x00400000
-#define DF_1_SYMINTPOSE 0x00800000 /* Object has individual interposers. */
-#define DF_1_GLOBAUDIT 0x01000000 /* Global auditing required. */
-#define DF_1_SINGLETON 0x02000000 /* Singleton symbols are used. */
-
-/* Flags for the feature selection in DT_FEATURE_1. */
-#define DTF_1_PARINIT 0x00000001
-#define DTF_1_CONFEXP 0x00000002
-
-/* Flags in the DT_POSFLAG_1 entry effecting only the next DT_* entry. */
-#define DF_P1_LAZYLOAD 0x00000001 /* Lazyload following object. */
-#define DF_P1_GROUPPERM 0x00000002 /* Symbols from next object are not
- generally available. */
-
-/* Version definition sections. */
-
-typedef struct
-{
- Elf32_Half vd_version; /* Version revision */
- Elf32_Half vd_flags; /* Version information */
- Elf32_Half vd_ndx; /* Version Index */
- Elf32_Half vd_cnt; /* Number of associated aux entries */
- Elf32_Word vd_hash; /* Version name hash value */
- Elf32_Word vd_aux; /* Offset in bytes to verdaux array */
- Elf32_Word vd_next; /* Offset in bytes to next verdef
- entry */
-} Elf32_Verdef;
-
-typedef struct
-{
- Elf64_Half vd_version; /* Version revision */
- Elf64_Half vd_flags; /* Version information */
- Elf64_Half vd_ndx; /* Version Index */
- Elf64_Half vd_cnt; /* Number of associated aux entries */
- Elf64_Word vd_hash; /* Version name hash value */
- Elf64_Word vd_aux; /* Offset in bytes to verdaux array */
- Elf64_Word vd_next; /* Offset in bytes to next verdef
- entry */
-} Elf64_Verdef;
-
-
-/* Legal values for vd_version (version revision). */
-#define VER_DEF_NONE 0 /* No version */
-#define VER_DEF_CURRENT 1 /* Current version */
-#define VER_DEF_NUM 2 /* Given version number */
-
-/* Legal values for vd_flags (version information flags). */
-#define VER_FLG_BASE 0x1 /* Version definition of file itself */
-#define VER_FLG_WEAK 0x2 /* Weak version identifier */
-
-/* Versym symbol index values. */
-#define VER_NDX_LOCAL 0 /* Symbol is local. */
-#define VER_NDX_GLOBAL 1 /* Symbol is global. */
-#define VER_NDX_LORESERVE 0xff00 /* Beginning of reserved entries. */
-#define VER_NDX_ELIMINATE 0xff01 /* Symbol is to be eliminated. */
-
-/* Auxialiary version information. */
-
-typedef struct
-{
- Elf32_Word vda_name; /* Version or dependency names */
- Elf32_Word vda_next; /* Offset in bytes to next verdaux
- entry */
-} Elf32_Verdaux;
-
-typedef struct
-{
- Elf64_Word vda_name; /* Version or dependency names */
- Elf64_Word vda_next; /* Offset in bytes to next verdaux
- entry */
-} Elf64_Verdaux;
-
-
-/* Version dependency section. */
-
-typedef struct
-{
- Elf32_Half vn_version; /* Version of structure */
- Elf32_Half vn_cnt; /* Number of associated aux entries */
- Elf32_Word vn_file; /* Offset of filename for this
- dependency */
- Elf32_Word vn_aux; /* Offset in bytes to vernaux array */
- Elf32_Word vn_next; /* Offset in bytes to next verneed
- entry */
-} Elf32_Verneed;
-
-typedef struct
-{
- Elf64_Half vn_version; /* Version of structure */
- Elf64_Half vn_cnt; /* Number of associated aux entries */
- Elf64_Word vn_file; /* Offset of filename for this
- dependency */
- Elf64_Word vn_aux; /* Offset in bytes to vernaux array */
- Elf64_Word vn_next; /* Offset in bytes to next verneed
- entry */
-} Elf64_Verneed;
-
-
-/* Legal values for vn_version (version revision). */
-#define VER_NEED_NONE 0 /* No version */
-#define VER_NEED_CURRENT 1 /* Current version */
-#define VER_NEED_NUM 2 /* Given version number */
-
-/* Auxiliary needed version information. */
-
-typedef struct
-{
- Elf32_Word vna_hash; /* Hash value of dependency name */
- Elf32_Half vna_flags; /* Dependency specific information */
- Elf32_Half vna_other; /* Unused */
- Elf32_Word vna_name; /* Dependency name string offset */
- Elf32_Word vna_next; /* Offset in bytes to next vernaux
- entry */
-} Elf32_Vernaux;
-
-typedef struct
-{
- Elf64_Word vna_hash; /* Hash value of dependency name */
- Elf64_Half vna_flags; /* Dependency specific information */
- Elf64_Half vna_other; /* Unused */
- Elf64_Word vna_name; /* Dependency name string offset */
- Elf64_Word vna_next; /* Offset in bytes to next vernaux
- entry */
-} Elf64_Vernaux;
-
-
-/* Legal values for vna_flags. */
-#define VER_FLG_WEAK 0x2 /* Weak version identifier */
-
-
-/* Auxiliary vector. */
-
-/* This vector is normally only used by the program interpreter. The
- usual definition in an ABI supplement uses the name auxv_t. The
- vector is not usually defined in a standard <elf.h> file, but it
- can't hurt. We rename it to avoid conflicts. The sizes of these
- types are an arrangement between the exec server and the program
- interpreter, so we don't fully specify them here. */
-
-typedef struct
-{
- uint32_t a_type; /* Entry type */
- union
- {
- uint32_t a_val; /* Integer value */
- /* We use to have pointer elements added here. We cannot do that,
- though, since it does not work when using 32-bit definitions
- on 64-bit platforms and vice versa. */
- } a_un;
-} Elf32_auxv_t;
-
-typedef struct
-{
- uint64_t a_type; /* Entry type */
- union
- {
- uint64_t a_val; /* Integer value */
- /* We use to have pointer elements added here. We cannot do that,
- though, since it does not work when using 32-bit definitions
- on 64-bit platforms and vice versa. */
- } a_un;
-} Elf64_auxv_t;
-
-/* Legal values for a_type (entry type). */
-
-#define AT_NULL 0 /* End of vector */
-#define AT_IGNORE 1 /* Entry should be ignored */
-#define AT_EXECFD 2 /* File descriptor of program */
-#define AT_PHDR 3 /* Program headers for program */
-#define AT_PHENT 4 /* Size of program header entry */
-#define AT_PHNUM 5 /* Number of program headers */
-#define AT_PAGESZ 6 /* System page size */
-#define AT_BASE 7 /* Base address of interpreter */
-#define AT_FLAGS 8 /* Flags */
-#define AT_ENTRY 9 /* Entry point of program */
-#define AT_NOTELF 10 /* Program is not ELF */
-#define AT_UID 11 /* Real uid */
-#define AT_EUID 12 /* Effective uid */
-#define AT_GID 13 /* Real gid */
-#define AT_EGID 14 /* Effective gid */
-#define AT_CLKTCK 17 /* Frequency of times() */
-
-/* Some more special a_type values describing the hardware. */
-#define AT_PLATFORM 15 /* String identifying platform. */
-#define AT_HWCAP 16 /* Machine-dependent hints about
- processor capabilities. */
-
-/* This entry gives some information about the FPU initialization
- performed by the kernel. */
-#define AT_FPUCW 18 /* Used FPU control word. */
-
-/* Cache block sizes. */
-#define AT_DCACHEBSIZE 19 /* Data cache block size. */
-#define AT_ICACHEBSIZE 20 /* Instruction cache block size. */
-#define AT_UCACHEBSIZE 21 /* Unified cache block size. */
-
-/* A special ignored value for PPC, used by the kernel to control the
- interpretation of the AUXV. Must be > 16. */
-#define AT_IGNOREPPC 22 /* Entry should be ignored. */
-
-#define AT_SECURE 23 /* Boolean, was exec setuid-like? */
-
-#define AT_BASE_PLATFORM 24 /* String identifying real platforms.*/
-
-#define AT_RANDOM 25 /* Address of 16 random bytes. */
-
-#define AT_HWCAP2 26 /* More machine-dependent hints about
- processor capabilities. */
-
-#define AT_EXECFN 31 /* Filename of executable. */
-
-/* Pointer to the global system page used for system calls and other
- nice things. */
-#define AT_SYSINFO 32
-#define AT_SYSINFO_EHDR 33
-
-/* Shapes of the caches. Bits 0-3 contains associativity; bits 4-7 contains
- log2 of line size; mask those to get cache size. */
-#define AT_L1I_CACHESHAPE 34
-#define AT_L1D_CACHESHAPE 35
-#define AT_L2_CACHESHAPE 36
-#define AT_L3_CACHESHAPE 37
-
-/* Note section contents. Each entry in the note section begins with
- a header of a fixed form. */
-
-typedef struct
-{
- Elf32_Word n_namesz; /* Length of the note's name. */
- Elf32_Word n_descsz; /* Length of the note's descriptor. */
- Elf32_Word n_type; /* Type of the note. */
-} Elf32_Nhdr;
-
-typedef struct
-{
- Elf64_Word n_namesz; /* Length of the note's name. */
- Elf64_Word n_descsz; /* Length of the note's descriptor. */
- Elf64_Word n_type; /* Type of the note. */
-} Elf64_Nhdr;
-
-/* Known names of notes. */
-
-/* Solaris entries in the note section have this name. */
-#define ELF_NOTE_SOLARIS "SUNW Solaris"
-
-/* Note entries for GNU systems have this name. */
-#define ELF_NOTE_GNU "GNU"
-
-
-/* Defined types of notes for Solaris. */
-
-/* Value of descriptor (one word) is desired pagesize for the binary. */
-#define ELF_NOTE_PAGESIZE_HINT 1
-
-
-/* Defined note types for GNU systems. */
-
-/* ABI information. The descriptor consists of words:
- word 0: OS descriptor
- word 1: major version of the ABI
- word 2: minor version of the ABI
- word 3: subminor version of the ABI
-*/
-#define NT_GNU_ABI_TAG 1
-#define ELF_NOTE_ABI NT_GNU_ABI_TAG /* Old name. */
-
-/* Known OSes. These values can appear in word 0 of an
- NT_GNU_ABI_TAG note section entry. */
-#define ELF_NOTE_OS_LINUX 0
-#define ELF_NOTE_OS_GNU 1
-#define ELF_NOTE_OS_SOLARIS2 2
-#define ELF_NOTE_OS_FREEBSD 3
-
-/* Synthetic hwcap information. The descriptor begins with two words:
- word 0: number of entries
- word 1: bitmask of enabled entries
- Then follow variable-length entries, one byte followed by a
- '\0'-terminated hwcap name string. The byte gives the bit
- number to test if enabled, (1U << bit) & bitmask. */
-#define NT_GNU_HWCAP 2
-
-/* Build ID bits as generated by ld --build-id.
- The descriptor consists of any nonzero number of bytes. */
-#define NT_GNU_BUILD_ID 3
-
-/* Version note generated by GNU gold containing a version string. */
-#define NT_GNU_GOLD_VERSION 4
-
-
-/* Move records. */
-typedef struct
-{
- Elf32_Xword m_value; /* Symbol value. */
- Elf32_Word m_info; /* Size and index. */
- Elf32_Word m_poffset; /* Symbol offset. */
- Elf32_Half m_repeat; /* Repeat count. */
- Elf32_Half m_stride; /* Stride info. */
-} Elf32_Move;
-
-typedef struct
-{
- Elf64_Xword m_value; /* Symbol value. */
- Elf64_Xword m_info; /* Size and index. */
- Elf64_Xword m_poffset; /* Symbol offset. */
- Elf64_Half m_repeat; /* Repeat count. */
- Elf64_Half m_stride; /* Stride info. */
-} Elf64_Move;
-
-/* Macro to construct move records. */
-#define ELF32_M_SYM(info) ((info) >> 8)
-#define ELF32_M_SIZE(info) ((unsigned char) (info))
-#define ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char) (size))
-
-#define ELF64_M_SYM(info) ELF32_M_SYM (info)
-#define ELF64_M_SIZE(info) ELF32_M_SIZE (info)
-#define ELF64_M_INFO(sym, size) ELF32_M_INFO (sym, size)
-
-
-/* Motorola 68k specific definitions. */
-
-/* Values for Elf32_Ehdr.e_flags. */
-#define EF_CPU32 0x00810000
-
-/* m68k relocs. */
-
-#define R_68K_NONE 0 /* No reloc */
-#define R_68K_32 1 /* Direct 32 bit */
-#define R_68K_16 2 /* Direct 16 bit */
-#define R_68K_8 3 /* Direct 8 bit */
-#define R_68K_PC32 4 /* PC relative 32 bit */
-#define R_68K_PC16 5 /* PC relative 16 bit */
-#define R_68K_PC8 6 /* PC relative 8 bit */
-#define R_68K_GOT32 7 /* 32 bit PC relative GOT entry */
-#define R_68K_GOT16 8 /* 16 bit PC relative GOT entry */
-#define R_68K_GOT8 9 /* 8 bit PC relative GOT entry */
-#define R_68K_GOT32O 10 /* 32 bit GOT offset */
-#define R_68K_GOT16O 11 /* 16 bit GOT offset */
-#define R_68K_GOT8O 12 /* 8 bit GOT offset */
-#define R_68K_PLT32 13 /* 32 bit PC relative PLT address */
-#define R_68K_PLT16 14 /* 16 bit PC relative PLT address */
-#define R_68K_PLT8 15 /* 8 bit PC relative PLT address */
-#define R_68K_PLT32O 16 /* 32 bit PLT offset */
-#define R_68K_PLT16O 17 /* 16 bit PLT offset */
-#define R_68K_PLT8O 18 /* 8 bit PLT offset */
-#define R_68K_COPY 19 /* Copy symbol at runtime */
-#define R_68K_GLOB_DAT 20 /* Create GOT entry */
-#define R_68K_JMP_SLOT 21 /* Create PLT entry */
-#define R_68K_RELATIVE 22 /* Adjust by program base */
-#define R_68K_TLS_GD32 25 /* 32 bit GOT offset for GD */
-#define R_68K_TLS_GD16 26 /* 16 bit GOT offset for GD */
-#define R_68K_TLS_GD8 27 /* 8 bit GOT offset for GD */
-#define R_68K_TLS_LDM32 28 /* 32 bit GOT offset for LDM */
-#define R_68K_TLS_LDM16 29 /* 16 bit GOT offset for LDM */
-#define R_68K_TLS_LDM8 30 /* 8 bit GOT offset for LDM */
-#define R_68K_TLS_LDO32 31 /* 32 bit module-relative offset */
-#define R_68K_TLS_LDO16 32 /* 16 bit module-relative offset */
-#define R_68K_TLS_LDO8 33 /* 8 bit module-relative offset */
-#define R_68K_TLS_IE32 34 /* 32 bit GOT offset for IE */
-#define R_68K_TLS_IE16 35 /* 16 bit GOT offset for IE */
-#define R_68K_TLS_IE8 36 /* 8 bit GOT offset for IE */
-#define R_68K_TLS_LE32 37 /* 32 bit offset relative to
- static TLS block */
-#define R_68K_TLS_LE16 38 /* 16 bit offset relative to
- static TLS block */
-#define R_68K_TLS_LE8 39 /* 8 bit offset relative to
- static TLS block */
-#define R_68K_TLS_DTPMOD32 40 /* 32 bit module number */
-#define R_68K_TLS_DTPREL32 41 /* 32 bit module-relative offset */
-#define R_68K_TLS_TPREL32 42 /* 32 bit TP-relative offset */
-/* Keep this the last entry. */
-#define R_68K_NUM 43
-
-/* Intel 80386 specific definitions. */
-
-/* i386 relocs. */
-
-#define R_386_NONE 0 /* No reloc */
-#define R_386_32 1 /* Direct 32 bit */
-#define R_386_PC32 2 /* PC relative 32 bit */
-#define R_386_GOT32 3 /* 32 bit GOT entry */
-#define R_386_PLT32 4 /* 32 bit PLT address */
-#define R_386_COPY 5 /* Copy symbol at runtime */
-#define R_386_GLOB_DAT 6 /* Create GOT entry */
-#define R_386_JMP_SLOT 7 /* Create PLT entry */
-#define R_386_RELATIVE 8 /* Adjust by program base */
-#define R_386_GOTOFF 9 /* 32 bit offset to GOT */
-#define R_386_GOTPC 10 /* 32 bit PC relative offset to GOT */
-#define R_386_32PLT 11
-#define R_386_TLS_TPOFF 14 /* Offset in static TLS block */
-#define R_386_TLS_IE 15 /* Address of GOT entry for static TLS
- block offset */
-#define R_386_TLS_GOTIE 16 /* GOT entry for static TLS block
- offset */
-#define R_386_TLS_LE 17 /* Offset relative to static TLS
- block */
-#define R_386_TLS_GD 18 /* Direct 32 bit for GNU version of
- general dynamic thread local data */
-#define R_386_TLS_LDM 19 /* Direct 32 bit for GNU version of
- local dynamic thread local data
- in LE code */
-#define R_386_16 20
-#define R_386_PC16 21
-#define R_386_8 22
-#define R_386_PC8 23
-#define R_386_TLS_GD_32 24 /* Direct 32 bit for general dynamic
- thread local data */
-#define R_386_TLS_GD_PUSH 25 /* Tag for pushl in GD TLS code */
-#define R_386_TLS_GD_CALL 26 /* Relocation for call to
- __tls_get_addr() */
-#define R_386_TLS_GD_POP 27 /* Tag for popl in GD TLS code */
-#define R_386_TLS_LDM_32 28 /* Direct 32 bit for local dynamic
- thread local data in LE code */
-#define R_386_TLS_LDM_PUSH 29 /* Tag for pushl in LDM TLS code */
-#define R_386_TLS_LDM_CALL 30 /* Relocation for call to
- __tls_get_addr() in LDM code */
-#define R_386_TLS_LDM_POP 31 /* Tag for popl in LDM TLS code */
-#define R_386_TLS_LDO_32 32 /* Offset relative to TLS block */
-#define R_386_TLS_IE_32 33 /* GOT entry for negated static TLS
- block offset */
-#define R_386_TLS_LE_32 34 /* Negated offset relative to static
- TLS block */
-#define R_386_TLS_DTPMOD32 35 /* ID of module containing symbol */
-#define R_386_TLS_DTPOFF32 36 /* Offset in TLS block */
-#define R_386_TLS_TPOFF32 37 /* Negated offset in static TLS block */
-#define R_386_SIZE32 38 /* 32-bit symbol size */
-#define R_386_TLS_GOTDESC 39 /* GOT offset for TLS descriptor. */
-#define R_386_TLS_DESC_CALL 40 /* Marker of call through TLS
- descriptor for
- relaxation. */
-#define R_386_TLS_DESC 41 /* TLS descriptor containing
- pointer to code and to
- argument, returning the TLS
- offset for the symbol. */
-#define R_386_IRELATIVE 42 /* Adjust indirectly by program base */
-/* Keep this the last entry. */
-#define R_386_NUM 43
-
-/* SUN SPARC specific definitions. */
-
-/* Legal values for ST_TYPE subfield of st_info (symbol type). */
-
-#define STT_SPARC_REGISTER 13 /* Global register reserved to app. */
-
-/* Values for Elf64_Ehdr.e_flags. */
-
-#define EF_SPARCV9_MM 3
-#define EF_SPARCV9_TSO 0
-#define EF_SPARCV9_PSO 1
-#define EF_SPARCV9_RMO 2
-#define EF_SPARC_LEDATA 0x800000 /* little endian data */
-#define EF_SPARC_EXT_MASK 0xFFFF00
-#define EF_SPARC_32PLUS 0x000100 /* generic V8+ features */
-#define EF_SPARC_SUN_US1 0x000200 /* Sun UltraSPARC1 extensions */
-#define EF_SPARC_HAL_R1 0x000400 /* HAL R1 extensions */
-#define EF_SPARC_SUN_US3 0x000800 /* Sun UltraSPARCIII extensions */
-
-/* SPARC relocs. */
-
-#define R_SPARC_NONE 0 /* No reloc */
-#define R_SPARC_8 1 /* Direct 8 bit */
-#define R_SPARC_16 2 /* Direct 16 bit */
-#define R_SPARC_32 3 /* Direct 32 bit */
-#define R_SPARC_DISP8 4 /* PC relative 8 bit */
-#define R_SPARC_DISP16 5 /* PC relative 16 bit */
-#define R_SPARC_DISP32 6 /* PC relative 32 bit */
-#define R_SPARC_WDISP30 7 /* PC relative 30 bit shifted */
-#define R_SPARC_WDISP22 8 /* PC relative 22 bit shifted */
-#define R_SPARC_HI22 9 /* High 22 bit */
-#define R_SPARC_22 10 /* Direct 22 bit */
-#define R_SPARC_13 11 /* Direct 13 bit */
-#define R_SPARC_LO10 12 /* Truncated 10 bit */
-#define R_SPARC_GOT10 13 /* Truncated 10 bit GOT entry */
-#define R_SPARC_GOT13 14 /* 13 bit GOT entry */
-#define R_SPARC_GOT22 15 /* 22 bit GOT entry shifted */
-#define R_SPARC_PC10 16 /* PC relative 10 bit truncated */
-#define R_SPARC_PC22 17 /* PC relative 22 bit shifted */
-#define R_SPARC_WPLT30 18 /* 30 bit PC relative PLT address */
-#define R_SPARC_COPY 19 /* Copy symbol at runtime */
-#define R_SPARC_GLOB_DAT 20 /* Create GOT entry */
-#define R_SPARC_JMP_SLOT 21 /* Create PLT entry */
-#define R_SPARC_RELATIVE 22 /* Adjust by program base */
-#define R_SPARC_UA32 23 /* Direct 32 bit unaligned */
-
-/* Additional Sparc64 relocs. */
-
-#define R_SPARC_PLT32 24 /* Direct 32 bit ref to PLT entry */
-#define R_SPARC_HIPLT22 25 /* High 22 bit PLT entry */
-#define R_SPARC_LOPLT10 26 /* Truncated 10 bit PLT entry */
-#define R_SPARC_PCPLT32 27 /* PC rel 32 bit ref to PLT entry */
-#define R_SPARC_PCPLT22 28 /* PC rel high 22 bit PLT entry */
-#define R_SPARC_PCPLT10 29 /* PC rel trunc 10 bit PLT entry */
-#define R_SPARC_10 30 /* Direct 10 bit */
-#define R_SPARC_11 31 /* Direct 11 bit */
-#define R_SPARC_64 32 /* Direct 64 bit */
-#define R_SPARC_OLO10 33 /* 10bit with secondary 13bit addend */
-#define R_SPARC_HH22 34 /* Top 22 bits of direct 64 bit */
-#define R_SPARC_HM10 35 /* High middle 10 bits of ... */
-#define R_SPARC_LM22 36 /* Low middle 22 bits of ... */
-#define R_SPARC_PC_HH22 37 /* Top 22 bits of pc rel 64 bit */
-#define R_SPARC_PC_HM10 38 /* High middle 10 bit of ... */
-#define R_SPARC_PC_LM22 39 /* Low miggle 22 bits of ... */
-#define R_SPARC_WDISP16 40 /* PC relative 16 bit shifted */
-#define R_SPARC_WDISP19 41 /* PC relative 19 bit shifted */
-#define R_SPARC_GLOB_JMP 42 /* was part of v9 ABI but was removed */
-#define R_SPARC_7 43 /* Direct 7 bit */
-#define R_SPARC_5 44 /* Direct 5 bit */
-#define R_SPARC_6 45 /* Direct 6 bit */
-#define R_SPARC_DISP64 46 /* PC relative 64 bit */
-#define R_SPARC_PLT64 47 /* Direct 64 bit ref to PLT entry */
-#define R_SPARC_HIX22 48 /* High 22 bit complemented */
-#define R_SPARC_LOX10 49 /* Truncated 11 bit complemented */
-#define R_SPARC_H44 50 /* Direct high 12 of 44 bit */
-#define R_SPARC_M44 51 /* Direct mid 22 of 44 bit */
-#define R_SPARC_L44 52 /* Direct low 10 of 44 bit */
-#define R_SPARC_REGISTER 53 /* Global register usage */
-#define R_SPARC_UA64 54 /* Direct 64 bit unaligned */
-#define R_SPARC_UA16 55 /* Direct 16 bit unaligned */
-#define R_SPARC_TLS_GD_HI22 56
-#define R_SPARC_TLS_GD_LO10 57
-#define R_SPARC_TLS_GD_ADD 58
-#define R_SPARC_TLS_GD_CALL 59
-#define R_SPARC_TLS_LDM_HI22 60
-#define R_SPARC_TLS_LDM_LO10 61
-#define R_SPARC_TLS_LDM_ADD 62
-#define R_SPARC_TLS_LDM_CALL 63
-#define R_SPARC_TLS_LDO_HIX22 64
-#define R_SPARC_TLS_LDO_LOX10 65
-#define R_SPARC_TLS_LDO_ADD 66
-#define R_SPARC_TLS_IE_HI22 67
-#define R_SPARC_TLS_IE_LO10 68
-#define R_SPARC_TLS_IE_LD 69
-#define R_SPARC_TLS_IE_LDX 70
-#define R_SPARC_TLS_IE_ADD 71
-#define R_SPARC_TLS_LE_HIX22 72
-#define R_SPARC_TLS_LE_LOX10 73
-#define R_SPARC_TLS_DTPMOD32 74
-#define R_SPARC_TLS_DTPMOD64 75
-#define R_SPARC_TLS_DTPOFF32 76
-#define R_SPARC_TLS_DTPOFF64 77
-#define R_SPARC_TLS_TPOFF32 78
-#define R_SPARC_TLS_TPOFF64 79
-#define R_SPARC_GOTDATA_HIX22 80
-#define R_SPARC_GOTDATA_LOX10 81
-#define R_SPARC_GOTDATA_OP_HIX22 82
-#define R_SPARC_GOTDATA_OP_LOX10 83
-#define R_SPARC_GOTDATA_OP 84
-#define R_SPARC_H34 85
-#define R_SPARC_SIZE32 86
-#define R_SPARC_SIZE64 87
-#define R_SPARC_WDISP10 88
-#define R_SPARC_JMP_IREL 248
-#define R_SPARC_IRELATIVE 249
-#define R_SPARC_GNU_VTINHERIT 250
-#define R_SPARC_GNU_VTENTRY 251
-#define R_SPARC_REV32 252
-/* Keep this the last entry. */
-#define R_SPARC_NUM 253
-
-/* For Sparc64, legal values for d_tag of Elf64_Dyn. */
-
-#define DT_SPARC_REGISTER 0x70000001
-#define DT_SPARC_NUM 2
-
-/* MIPS R3000 specific definitions. */
-
-/* Legal values for e_flags field of Elf32_Ehdr. */
-
-#define EF_MIPS_NOREORDER 1 /* A .noreorder directive was used. */
-#define EF_MIPS_PIC 2 /* Contains PIC code. */
-#define EF_MIPS_CPIC 4 /* Uses PIC calling sequence. */
-#define EF_MIPS_XGOT 8
-#define EF_MIPS_64BIT_WHIRL 16
-#define EF_MIPS_ABI2 32
-#define EF_MIPS_ABI_ON32 64
-#define EF_MIPS_NAN2008 1024 /* Uses IEEE 754-2008 NaN encoding. */
-#define EF_MIPS_ARCH 0xf0000000 /* MIPS architecture level. */
-
-/* Legal values for MIPS architecture level. */
-
-#define EF_MIPS_ARCH_1 0x00000000 /* -mips1 code. */
-#define EF_MIPS_ARCH_2 0x10000000 /* -mips2 code. */
-#define EF_MIPS_ARCH_3 0x20000000 /* -mips3 code. */
-#define EF_MIPS_ARCH_4 0x30000000 /* -mips4 code. */
-#define EF_MIPS_ARCH_5 0x40000000 /* -mips5 code. */
-#define EF_MIPS_ARCH_32 0x50000000 /* MIPS32 code. */
-#define EF_MIPS_ARCH_64 0x60000000 /* MIPS64 code. */
-#define EF_MIPS_ARCH_32R2 0x70000000 /* MIPS32r2 code. */
-#define EF_MIPS_ARCH_64R2 0x80000000 /* MIPS64r2 code. */
-
-/* The following are unofficial names and should not be used. */
-
-#define E_MIPS_ARCH_1 EF_MIPS_ARCH_1
-#define E_MIPS_ARCH_2 EF_MIPS_ARCH_2
-#define E_MIPS_ARCH_3 EF_MIPS_ARCH_3
-#define E_MIPS_ARCH_4 EF_MIPS_ARCH_4
-#define E_MIPS_ARCH_5 EF_MIPS_ARCH_5
-#define E_MIPS_ARCH_32 EF_MIPS_ARCH_32
-#define E_MIPS_ARCH_64 EF_MIPS_ARCH_64
-
-/* Special section indices. */
-
-#define SHN_MIPS_ACOMMON 0xff00 /* Allocated common symbols. */
-#define SHN_MIPS_TEXT 0xff01 /* Allocated test symbols. */
-#define SHN_MIPS_DATA 0xff02 /* Allocated data symbols. */
-#define SHN_MIPS_SCOMMON 0xff03 /* Small common symbols. */
-#define SHN_MIPS_SUNDEFINED 0xff04 /* Small undefined symbols. */
-
-/* Legal values for sh_type field of Elf32_Shdr. */
-
-#define SHT_MIPS_LIBLIST 0x70000000 /* Shared objects used in link. */
-#define SHT_MIPS_MSYM 0x70000001
-#define SHT_MIPS_CONFLICT 0x70000002 /* Conflicting symbols. */
-#define SHT_MIPS_GPTAB 0x70000003 /* Global data area sizes. */
-#define SHT_MIPS_UCODE 0x70000004 /* Reserved for SGI/MIPS compilers */
-#define SHT_MIPS_DEBUG 0x70000005 /* MIPS ECOFF debugging info. */
-#define SHT_MIPS_REGINFO 0x70000006 /* Register usage information. */
-#define SHT_MIPS_PACKAGE 0x70000007
-#define SHT_MIPS_PACKSYM 0x70000008
-#define SHT_MIPS_RELD 0x70000009
-#define SHT_MIPS_IFACE 0x7000000b
-#define SHT_MIPS_CONTENT 0x7000000c
-#define SHT_MIPS_OPTIONS 0x7000000d /* Miscellaneous options. */
-#define SHT_MIPS_SHDR 0x70000010
-#define SHT_MIPS_FDESC 0x70000011
-#define SHT_MIPS_EXTSYM 0x70000012
-#define SHT_MIPS_DENSE 0x70000013
-#define SHT_MIPS_PDESC 0x70000014
-#define SHT_MIPS_LOCSYM 0x70000015
-#define SHT_MIPS_AUXSYM 0x70000016
-#define SHT_MIPS_OPTSYM 0x70000017
-#define SHT_MIPS_LOCSTR 0x70000018
-#define SHT_MIPS_LINE 0x70000019
-#define SHT_MIPS_RFDESC 0x7000001a
-#define SHT_MIPS_DELTASYM 0x7000001b
-#define SHT_MIPS_DELTAINST 0x7000001c
-#define SHT_MIPS_DELTACLASS 0x7000001d
-#define SHT_MIPS_DWARF 0x7000001e /* DWARF debugging information. */
-#define SHT_MIPS_DELTADECL 0x7000001f
-#define SHT_MIPS_SYMBOL_LIB 0x70000020
-#define SHT_MIPS_EVENTS 0x70000021 /* Event section. */
-#define SHT_MIPS_TRANSLATE 0x70000022
-#define SHT_MIPS_PIXIE 0x70000023
-#define SHT_MIPS_XLATE 0x70000024
-#define SHT_MIPS_XLATE_DEBUG 0x70000025
-#define SHT_MIPS_WHIRL 0x70000026
-#define SHT_MIPS_EH_REGION 0x70000027
-#define SHT_MIPS_XLATE_OLD 0x70000028
-#define SHT_MIPS_PDR_EXCEPTION 0x70000029
-
-/* Legal values for sh_flags field of Elf32_Shdr. */
-
-#define SHF_MIPS_GPREL 0x10000000 /* Must be in global data area. */
-#define SHF_MIPS_MERGE 0x20000000
-#define SHF_MIPS_ADDR 0x40000000
-#define SHF_MIPS_STRINGS 0x80000000
-#define SHF_MIPS_NOSTRIP 0x08000000
-#define SHF_MIPS_LOCAL 0x04000000
-#define SHF_MIPS_NAMES 0x02000000
-#define SHF_MIPS_NODUPE 0x01000000
-
-
-/* Symbol tables. */
-
-/* MIPS specific values for `st_other'. */
-#define STO_MIPS_DEFAULT 0x0
-#define STO_MIPS_INTERNAL 0x1
-#define STO_MIPS_HIDDEN 0x2
-#define STO_MIPS_PROTECTED 0x3
-#define STO_MIPS_PLT 0x8
-#define STO_MIPS_SC_ALIGN_UNUSED 0xff
-
-/* MIPS specific values for `st_info'. */
-#define STB_MIPS_SPLIT_COMMON 13
-
-/* Entries found in sections of type SHT_MIPS_GPTAB. */
-
-typedef union
-{
- struct
- {
- Elf32_Word gt_current_g_value; /* -G value used for compilation. */
- Elf32_Word gt_unused; /* Not used. */
- } gt_header; /* First entry in section. */
- struct
- {
- Elf32_Word gt_g_value; /* If this value were used for -G. */
- Elf32_Word gt_bytes; /* This many bytes would be used. */
- } gt_entry; /* Subsequent entries in section. */
-} Elf32_gptab;
-
-/* Entry found in sections of type SHT_MIPS_REGINFO. */
-
-typedef struct
-{
- Elf32_Word ri_gprmask; /* General registers used. */
- Elf32_Word ri_cprmask[4]; /* Coprocessor registers used. */
- Elf32_Sword ri_gp_value; /* $gp register value. */
-} Elf32_RegInfo;
-
-/* Entries found in sections of type SHT_MIPS_OPTIONS. */
-
-typedef struct
-{
- unsigned char kind; /* Determines interpretation of the
- variable part of descriptor. */
- unsigned char size; /* Size of descriptor, including header. */
- Elf32_Section section; /* Section header index of section affected,
- 0 for global options. */
- Elf32_Word info; /* Kind-specific information. */
-} Elf_Options;
-
-/* Values for `kind' field in Elf_Options. */
-
-#define ODK_NULL 0 /* Undefined. */
-#define ODK_REGINFO 1 /* Register usage information. */
-#define ODK_EXCEPTIONS 2 /* Exception processing options. */
-#define ODK_PAD 3 /* Section padding options. */
-#define ODK_HWPATCH 4 /* Hardware workarounds performed */
-#define ODK_FILL 5 /* record the fill value used by the linker. */
-#define ODK_TAGS 6 /* reserve space for desktop tools to write. */
-#define ODK_HWAND 7 /* HW workarounds. 'AND' bits when merging. */
-#define ODK_HWOR 8 /* HW workarounds. 'OR' bits when merging. */
-
-/* Values for `info' in Elf_Options for ODK_EXCEPTIONS entries. */
-
-#define OEX_FPU_MIN 0x1f /* FPE's which MUST be enabled. */
-#define OEX_FPU_MAX 0x1f00 /* FPE's which MAY be enabled. */
-#define OEX_PAGE0 0x10000 /* page zero must be mapped. */
-#define OEX_SMM 0x20000 /* Force sequential memory mode? */
-#define OEX_FPDBUG 0x40000 /* Force floating point debug mode? */
-#define OEX_PRECISEFP OEX_FPDBUG
-#define OEX_DISMISS 0x80000 /* Dismiss invalid address faults? */
-
-#define OEX_FPU_INVAL 0x10
-#define OEX_FPU_DIV0 0x08
-#define OEX_FPU_OFLO 0x04
-#define OEX_FPU_UFLO 0x02
-#define OEX_FPU_INEX 0x01
-
-/* Masks for `info' in Elf_Options for an ODK_HWPATCH entry. */
-
-#define OHW_R4KEOP 0x1 /* R4000 end-of-page patch. */
-#define OHW_R8KPFETCH 0x2 /* may need R8000 prefetch patch. */
-#define OHW_R5KEOP 0x4 /* R5000 end-of-page patch. */
-#define OHW_R5KCVTL 0x8 /* R5000 cvt.[ds].l bug. clean=1. */
-
-#define OPAD_PREFIX 0x1
-#define OPAD_POSTFIX 0x2
-#define OPAD_SYMBOL 0x4
-
-/* Entry found in `.options' section. */
-
-typedef struct
-{
- Elf32_Word hwp_flags1; /* Extra flags. */
- Elf32_Word hwp_flags2; /* Extra flags. */
-} Elf_Options_Hw;
-
-/* Masks for `info' in ElfOptions for ODK_HWAND and ODK_HWOR entries. */
-
-#define OHWA0_R4KEOP_CHECKED 0x00000001
-#define OHWA1_R4KEOP_CLEAN 0x00000002
-
-/* MIPS relocs. */
-
-#define R_MIPS_NONE 0 /* No reloc */
-#define R_MIPS_16 1 /* Direct 16 bit */
-#define R_MIPS_32 2 /* Direct 32 bit */
-#define R_MIPS_REL32 3 /* PC relative 32 bit */
-#define R_MIPS_26 4 /* Direct 26 bit shifted */
-#define R_MIPS_HI16 5 /* High 16 bit */
-#define R_MIPS_LO16 6 /* Low 16 bit */
-#define R_MIPS_GPREL16 7 /* GP relative 16 bit */
-#define R_MIPS_LITERAL 8 /* 16 bit literal entry */
-#define R_MIPS_GOT16 9 /* 16 bit GOT entry */
-#define R_MIPS_PC16 10 /* PC relative 16 bit */
-#define R_MIPS_CALL16 11 /* 16 bit GOT entry for function */
-#define R_MIPS_GPREL32 12 /* GP relative 32 bit */
-
-#define R_MIPS_SHIFT5 16
-#define R_MIPS_SHIFT6 17
-#define R_MIPS_64 18
-#define R_MIPS_GOT_DISP 19
-#define R_MIPS_GOT_PAGE 20
-#define R_MIPS_GOT_OFST 21
-#define R_MIPS_GOT_HI16 22
-#define R_MIPS_GOT_LO16 23
-#define R_MIPS_SUB 24
-#define R_MIPS_INSERT_A 25
-#define R_MIPS_INSERT_B 26
-#define R_MIPS_DELETE 27
-#define R_MIPS_HIGHER 28
-#define R_MIPS_HIGHEST 29
-#define R_MIPS_CALL_HI16 30
-#define R_MIPS_CALL_LO16 31
-#define R_MIPS_SCN_DISP 32
-#define R_MIPS_REL16 33
-#define R_MIPS_ADD_IMMEDIATE 34
-#define R_MIPS_PJUMP 35
-#define R_MIPS_RELGOT 36
-#define R_MIPS_JALR 37
-#define R_MIPS_TLS_DTPMOD32 38 /* Module number 32 bit */
-#define R_MIPS_TLS_DTPREL32 39 /* Module-relative offset 32 bit */
-#define R_MIPS_TLS_DTPMOD64 40 /* Module number 64 bit */
-#define R_MIPS_TLS_DTPREL64 41 /* Module-relative offset 64 bit */
-#define R_MIPS_TLS_GD 42 /* 16 bit GOT offset for GD */
-#define R_MIPS_TLS_LDM 43 /* 16 bit GOT offset for LDM */
-#define R_MIPS_TLS_DTPREL_HI16 44 /* Module-relative offset, high 16 bits */
-#define R_MIPS_TLS_DTPREL_LO16 45 /* Module-relative offset, low 16 bits */
-#define R_MIPS_TLS_GOTTPREL 46 /* 16 bit GOT offset for IE */
-#define R_MIPS_TLS_TPREL32 47 /* TP-relative offset, 32 bit */
-#define R_MIPS_TLS_TPREL64 48 /* TP-relative offset, 64 bit */
-#define R_MIPS_TLS_TPREL_HI16 49 /* TP-relative offset, high 16 bits */
-#define R_MIPS_TLS_TPREL_LO16 50 /* TP-relative offset, low 16 bits */
-#define R_MIPS_GLOB_DAT 51
-#define R_MIPS_COPY 126
-#define R_MIPS_JUMP_SLOT 127
-/* Keep this the last entry. */
-#define R_MIPS_NUM 128
-
-/* Legal values for p_type field of Elf32_Phdr. */
-
-#define PT_MIPS_REGINFO 0x70000000 /* Register usage information */
-#define PT_MIPS_RTPROC 0x70000001 /* Runtime procedure table. */
-#define PT_MIPS_OPTIONS 0x70000002
-
-/* Special program header types. */
-
-#define PF_MIPS_LOCAL 0x10000000
-
-/* Legal values for d_tag field of Elf32_Dyn. */
-
-#define DT_MIPS_RLD_VERSION 0x70000001 /* Runtime linker interface version */
-#define DT_MIPS_TIME_STAMP 0x70000002 /* Timestamp */
-#define DT_MIPS_ICHECKSUM 0x70000003 /* Checksum */
-#define DT_MIPS_IVERSION 0x70000004 /* Version string (string tbl index) */
-#define DT_MIPS_FLAGS 0x70000005 /* Flags */
-#define DT_MIPS_BASE_ADDRESS 0x70000006 /* Base address */
-#define DT_MIPS_MSYM 0x70000007
-#define DT_MIPS_CONFLICT 0x70000008 /* Address of CONFLICT section */
-#define DT_MIPS_LIBLIST 0x70000009 /* Address of LIBLIST section */
-#define DT_MIPS_LOCAL_GOTNO 0x7000000a /* Number of local GOT entries */
-#define DT_MIPS_CONFLICTNO 0x7000000b /* Number of CONFLICT entries */
-#define DT_MIPS_LIBLISTNO 0x70000010 /* Number of LIBLIST entries */
-#define DT_MIPS_SYMTABNO 0x70000011 /* Number of DYNSYM entries */
-#define DT_MIPS_UNREFEXTNO 0x70000012 /* First external DYNSYM */
-#define DT_MIPS_GOTSYM 0x70000013 /* First GOT entry in DYNSYM */
-#define DT_MIPS_HIPAGENO 0x70000014 /* Number of GOT page table entries */
-#define DT_MIPS_RLD_MAP 0x70000016 /* Address of run time loader map. */
-#define DT_MIPS_DELTA_CLASS 0x70000017 /* Delta C++ class definition. */
-#define DT_MIPS_DELTA_CLASS_NO 0x70000018 /* Number of entries in
- DT_MIPS_DELTA_CLASS. */
-#define DT_MIPS_DELTA_INSTANCE 0x70000019 /* Delta C++ class instances. */
-#define DT_MIPS_DELTA_INSTANCE_NO 0x7000001a /* Number of entries in
- DT_MIPS_DELTA_INSTANCE. */
-#define DT_MIPS_DELTA_RELOC 0x7000001b /* Delta relocations. */
-#define DT_MIPS_DELTA_RELOC_NO 0x7000001c /* Number of entries in
- DT_MIPS_DELTA_RELOC. */
-#define DT_MIPS_DELTA_SYM 0x7000001d /* Delta symbols that Delta
- relocations refer to. */
-#define DT_MIPS_DELTA_SYM_NO 0x7000001e /* Number of entries in
- DT_MIPS_DELTA_SYM. */
-#define DT_MIPS_DELTA_CLASSSYM 0x70000020 /* Delta symbols that hold the
- class declaration. */
-#define DT_MIPS_DELTA_CLASSSYM_NO 0x70000021 /* Number of entries in
- DT_MIPS_DELTA_CLASSSYM. */
-#define DT_MIPS_CXX_FLAGS 0x70000022 /* Flags indicating for C++ flavor. */
-#define DT_MIPS_PIXIE_INIT 0x70000023
-#define DT_MIPS_SYMBOL_LIB 0x70000024
-#define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025
-#define DT_MIPS_LOCAL_GOTIDX 0x70000026
-#define DT_MIPS_HIDDEN_GOTIDX 0x70000027
-#define DT_MIPS_PROTECTED_GOTIDX 0x70000028
-#define DT_MIPS_OPTIONS 0x70000029 /* Address of .options. */
-#define DT_MIPS_INTERFACE 0x7000002a /* Address of .interface. */
-#define DT_MIPS_DYNSTR_ALIGN 0x7000002b
-#define DT_MIPS_INTERFACE_SIZE 0x7000002c /* Size of the .interface section. */
-#define DT_MIPS_RLD_TEXT_RESOLVE_ADDR 0x7000002d /* Address of rld_text_rsolve
- function stored in GOT. */
-#define DT_MIPS_PERF_SUFFIX 0x7000002e /* Default suffix of dso to be added
- by rld on dlopen() calls. */
-#define DT_MIPS_COMPACT_SIZE 0x7000002f /* (O32)Size of compact rel section. */
-#define DT_MIPS_GP_VALUE 0x70000030 /* GP value for aux GOTs. */
-#define DT_MIPS_AUX_DYNAMIC 0x70000031 /* Address of aux .dynamic. */
-/* The address of .got.plt in an executable using the new non-PIC ABI. */
-#define DT_MIPS_PLTGOT 0x70000032
-/* The base of the PLT in an executable using the new non-PIC ABI if that
- PLT is writable. For a non-writable PLT, this is omitted or has a zero
- value. */
-#define DT_MIPS_RWPLT 0x70000034
-#define DT_MIPS_NUM 0x35
-
-/* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */
-
-#define RHF_NONE 0 /* No flags */
-#define RHF_QUICKSTART (1 << 0) /* Use quickstart */
-#define RHF_NOTPOT (1 << 1) /* Hash size not power of 2 */
-#define RHF_NO_LIBRARY_REPLACEMENT (1 << 2) /* Ignore LD_LIBRARY_PATH */
-#define RHF_NO_MOVE (1 << 3)
-#define RHF_SGI_ONLY (1 << 4)
-#define RHF_GUARANTEE_INIT (1 << 5)
-#define RHF_DELTA_C_PLUS_PLUS (1 << 6)
-#define RHF_GUARANTEE_START_INIT (1 << 7)
-#define RHF_PIXIE (1 << 8)
-#define RHF_DEFAULT_DELAY_LOAD (1 << 9)
-#define RHF_REQUICKSTART (1 << 10)
-#define RHF_REQUICKSTARTED (1 << 11)
-#define RHF_CORD (1 << 12)
-#define RHF_NO_UNRES_UNDEF (1 << 13)
-#define RHF_RLD_ORDER_SAFE (1 << 14)
-
-/* Entries found in sections of type SHT_MIPS_LIBLIST. */
-
-typedef struct
-{
- Elf32_Word l_name; /* Name (string table index) */
- Elf32_Word l_time_stamp; /* Timestamp */
- Elf32_Word l_checksum; /* Checksum */
- Elf32_Word l_version; /* Interface version */
- Elf32_Word l_flags; /* Flags */
-} Elf32_Lib;
-
-typedef struct
-{
- Elf64_Word l_name; /* Name (string table index) */
- Elf64_Word l_time_stamp; /* Timestamp */
- Elf64_Word l_checksum; /* Checksum */
- Elf64_Word l_version; /* Interface version */
- Elf64_Word l_flags; /* Flags */
-} Elf64_Lib;
-
-
-/* Legal values for l_flags. */
-
-#define LL_NONE 0
-#define LL_EXACT_MATCH (1 << 0) /* Require exact match */
-#define LL_IGNORE_INT_VER (1 << 1) /* Ignore interface version */
-#define LL_REQUIRE_MINOR (1 << 2)
-#define LL_EXPORTS (1 << 3)
-#define LL_DELAY_LOAD (1 << 4)
-#define LL_DELTA (1 << 5)
-
-/* Entries found in sections of type SHT_MIPS_CONFLICT. */
-
-typedef Elf32_Addr Elf32_Conflict;
-
-
-/* HPPA specific definitions. */
-
-/* Legal values for e_flags field of Elf32_Ehdr. */
-
-#define EF_PARISC_TRAPNIL 0x00010000 /* Trap nil pointer dereference. */
-#define EF_PARISC_EXT 0x00020000 /* Program uses arch. extensions. */
-#define EF_PARISC_LSB 0x00040000 /* Program expects little endian. */
-#define EF_PARISC_WIDE 0x00080000 /* Program expects wide mode. */
-#define EF_PARISC_NO_KABP 0x00100000 /* No kernel assisted branch
- prediction. */
-#define EF_PARISC_LAZYSWAP 0x00400000 /* Allow lazy swapping. */
-#define EF_PARISC_ARCH 0x0000ffff /* Architecture version. */
-
-/* Defined values for `e_flags & EF_PARISC_ARCH' are: */
-
-#define EFA_PARISC_1_0 0x020b /* PA-RISC 1.0 big-endian. */
-#define EFA_PARISC_1_1 0x0210 /* PA-RISC 1.1 big-endian. */
-#define EFA_PARISC_2_0 0x0214 /* PA-RISC 2.0 big-endian. */
-
-/* Additional section indeces. */
-
-#define SHN_PARISC_ANSI_COMMON 0xff00 /* Section for tenatively declared
- symbols in ANSI C. */
-#define SHN_PARISC_HUGE_COMMON 0xff01 /* Common blocks in huge model. */
-
-/* Legal values for sh_type field of Elf32_Shdr. */
-
-#define SHT_PARISC_EXT 0x70000000 /* Contains product specific ext. */
-#define SHT_PARISC_UNWIND 0x70000001 /* Unwind information. */
-#define SHT_PARISC_DOC 0x70000002 /* Debug info for optimized code. */
-
-/* Legal values for sh_flags field of Elf32_Shdr. */
-
-#define SHF_PARISC_SHORT 0x20000000 /* Section with short addressing. */
-#define SHF_PARISC_HUGE 0x40000000 /* Section far from gp. */
-#define SHF_PARISC_SBP 0x80000000 /* Static branch prediction code. */
-
-/* Legal values for ST_TYPE subfield of st_info (symbol type). */
-
-#define STT_PARISC_MILLICODE 13 /* Millicode function entry point. */
-
-#define STT_HP_OPAQUE (STT_LOOS + 0x1)
-#define STT_HP_STUB (STT_LOOS + 0x2)
-
-/* HPPA relocs. */
-
-#define R_PARISC_NONE 0 /* No reloc. */
-#define R_PARISC_DIR32 1 /* Direct 32-bit reference. */
-#define R_PARISC_DIR21L 2 /* Left 21 bits of eff. address. */
-#define R_PARISC_DIR17R 3 /* Right 17 bits of eff. address. */
-#define R_PARISC_DIR17F 4 /* 17 bits of eff. address. */
-#define R_PARISC_DIR14R 6 /* Right 14 bits of eff. address. */
-#define R_PARISC_PCREL32 9 /* 32-bit rel. address. */
-#define R_PARISC_PCREL21L 10 /* Left 21 bits of rel. address. */
-#define R_PARISC_PCREL17R 11 /* Right 17 bits of rel. address. */
-#define R_PARISC_PCREL17F 12 /* 17 bits of rel. address. */
-#define R_PARISC_PCREL14R 14 /* Right 14 bits of rel. address. */
-#define R_PARISC_DPREL21L 18 /* Left 21 bits of rel. address. */
-#define R_PARISC_DPREL14R 22 /* Right 14 bits of rel. address. */
-#define R_PARISC_GPREL21L 26 /* GP-relative, left 21 bits. */
-#define R_PARISC_GPREL14R 30 /* GP-relative, right 14 bits. */
-#define R_PARISC_LTOFF21L 34 /* LT-relative, left 21 bits. */
-#define R_PARISC_LTOFF14R 38 /* LT-relative, right 14 bits. */
-#define R_PARISC_SECREL32 41 /* 32 bits section rel. address. */
-#define R_PARISC_SEGBASE 48 /* No relocation, set segment base. */
-#define R_PARISC_SEGREL32 49 /* 32 bits segment rel. address. */
-#define R_PARISC_PLTOFF21L 50 /* PLT rel. address, left 21 bits. */
-#define R_PARISC_PLTOFF14R 54 /* PLT rel. address, right 14 bits. */
-#define R_PARISC_LTOFF_FPTR32 57 /* 32 bits LT-rel. function pointer. */
-#define R_PARISC_LTOFF_FPTR21L 58 /* LT-rel. fct ptr, left 21 bits. */
-#define R_PARISC_LTOFF_FPTR14R 62 /* LT-rel. fct ptr, right 14 bits. */
-#define R_PARISC_FPTR64 64 /* 64 bits function address. */
-#define R_PARISC_PLABEL32 65 /* 32 bits function address. */
-#define R_PARISC_PLABEL21L 66 /* Left 21 bits of fdesc address. */
-#define R_PARISC_PLABEL14R 70 /* Right 14 bits of fdesc address. */
-#define R_PARISC_PCREL64 72 /* 64 bits PC-rel. address. */
-#define R_PARISC_PCREL22F 74 /* 22 bits PC-rel. address. */
-#define R_PARISC_PCREL14WR 75 /* PC-rel. address, right 14 bits. */
-#define R_PARISC_PCREL14DR 76 /* PC rel. address, right 14 bits. */
-#define R_PARISC_PCREL16F 77 /* 16 bits PC-rel. address. */
-#define R_PARISC_PCREL16WF 78 /* 16 bits PC-rel. address. */
-#define R_PARISC_PCREL16DF 79 /* 16 bits PC-rel. address. */
-#define R_PARISC_DIR64 80 /* 64 bits of eff. address. */
-#define R_PARISC_DIR14WR 83 /* 14 bits of eff. address. */
-#define R_PARISC_DIR14DR 84 /* 14 bits of eff. address. */
-#define R_PARISC_DIR16F 85 /* 16 bits of eff. address. */
-#define R_PARISC_DIR16WF 86 /* 16 bits of eff. address. */
-#define R_PARISC_DIR16DF 87 /* 16 bits of eff. address. */
-#define R_PARISC_GPREL64 88 /* 64 bits of GP-rel. address. */
-#define R_PARISC_GPREL14WR 91 /* GP-rel. address, right 14 bits. */
-#define R_PARISC_GPREL14DR 92 /* GP-rel. address, right 14 bits. */
-#define R_PARISC_GPREL16F 93 /* 16 bits GP-rel. address. */
-#define R_PARISC_GPREL16WF 94 /* 16 bits GP-rel. address. */
-#define R_PARISC_GPREL16DF 95 /* 16 bits GP-rel. address. */
-#define R_PARISC_LTOFF64 96 /* 64 bits LT-rel. address. */
-#define R_PARISC_LTOFF14WR 99 /* LT-rel. address, right 14 bits. */
-#define R_PARISC_LTOFF14DR 100 /* LT-rel. address, right 14 bits. */
-#define R_PARISC_LTOFF16F 101 /* 16 bits LT-rel. address. */
-#define R_PARISC_LTOFF16WF 102 /* 16 bits LT-rel. address. */
-#define R_PARISC_LTOFF16DF 103 /* 16 bits LT-rel. address. */
-#define R_PARISC_SECREL64 104 /* 64 bits section rel. address. */
-#define R_PARISC_SEGREL64 112 /* 64 bits segment rel. address. */
-#define R_PARISC_PLTOFF14WR 115 /* PLT-rel. address, right 14 bits. */
-#define R_PARISC_PLTOFF14DR 116 /* PLT-rel. address, right 14 bits. */
-#define R_PARISC_PLTOFF16F 117 /* 16 bits LT-rel. address. */
-#define R_PARISC_PLTOFF16WF 118 /* 16 bits PLT-rel. address. */
-#define R_PARISC_PLTOFF16DF 119 /* 16 bits PLT-rel. address. */
-#define R_PARISC_LTOFF_FPTR64 120 /* 64 bits LT-rel. function ptr. */
-#define R_PARISC_LTOFF_FPTR14WR 123 /* LT-rel. fct. ptr., right 14 bits. */
-#define R_PARISC_LTOFF_FPTR14DR 124 /* LT-rel. fct. ptr., right 14 bits. */
-#define R_PARISC_LTOFF_FPTR16F 125 /* 16 bits LT-rel. function ptr. */
-#define R_PARISC_LTOFF_FPTR16WF 126 /* 16 bits LT-rel. function ptr. */
-#define R_PARISC_LTOFF_FPTR16DF 127 /* 16 bits LT-rel. function ptr. */
-#define R_PARISC_LORESERVE 128
-#define R_PARISC_COPY 128 /* Copy relocation. */
-#define R_PARISC_IPLT 129 /* Dynamic reloc, imported PLT */
-#define R_PARISC_EPLT 130 /* Dynamic reloc, exported PLT */
-#define R_PARISC_TPREL32 153 /* 32 bits TP-rel. address. */
-#define R_PARISC_TPREL21L 154 /* TP-rel. address, left 21 bits. */
-#define R_PARISC_TPREL14R 158 /* TP-rel. address, right 14 bits. */
-#define R_PARISC_LTOFF_TP21L 162 /* LT-TP-rel. address, left 21 bits. */
-#define R_PARISC_LTOFF_TP14R 166 /* LT-TP-rel. address, right 14 bits.*/
-#define R_PARISC_LTOFF_TP14F 167 /* 14 bits LT-TP-rel. address. */
-#define R_PARISC_TPREL64 216 /* 64 bits TP-rel. address. */
-#define R_PARISC_TPREL14WR 219 /* TP-rel. address, right 14 bits. */
-#define R_PARISC_TPREL14DR 220 /* TP-rel. address, right 14 bits. */
-#define R_PARISC_TPREL16F 221 /* 16 bits TP-rel. address. */
-#define R_PARISC_TPREL16WF 222 /* 16 bits TP-rel. address. */
-#define R_PARISC_TPREL16DF 223 /* 16 bits TP-rel. address. */
-#define R_PARISC_LTOFF_TP64 224 /* 64 bits LT-TP-rel. address. */
-#define R_PARISC_LTOFF_TP14WR 227 /* LT-TP-rel. address, right 14 bits.*/
-#define R_PARISC_LTOFF_TP14DR 228 /* LT-TP-rel. address, right 14 bits.*/
-#define R_PARISC_LTOFF_TP16F 229 /* 16 bits LT-TP-rel. address. */
-#define R_PARISC_LTOFF_TP16WF 230 /* 16 bits LT-TP-rel. address. */
-#define R_PARISC_LTOFF_TP16DF 231 /* 16 bits LT-TP-rel. address. */
-#define R_PARISC_GNU_VTENTRY 232
-#define R_PARISC_GNU_VTINHERIT 233
-#define R_PARISC_TLS_GD21L 234 /* GD 21-bit left. */
-#define R_PARISC_TLS_GD14R 235 /* GD 14-bit right. */
-#define R_PARISC_TLS_GDCALL 236 /* GD call to __t_g_a. */
-#define R_PARISC_TLS_LDM21L 237 /* LD module 21-bit left. */
-#define R_PARISC_TLS_LDM14R 238 /* LD module 14-bit right. */
-#define R_PARISC_TLS_LDMCALL 239 /* LD module call to __t_g_a. */
-#define R_PARISC_TLS_LDO21L 240 /* LD offset 21-bit left. */
-#define R_PARISC_TLS_LDO14R 241 /* LD offset 14-bit right. */
-#define R_PARISC_TLS_DTPMOD32 242 /* DTP module 32-bit. */
-#define R_PARISC_TLS_DTPMOD64 243 /* DTP module 64-bit. */
-#define R_PARISC_TLS_DTPOFF32 244 /* DTP offset 32-bit. */
-#define R_PARISC_TLS_DTPOFF64 245 /* DTP offset 32-bit. */
-#define R_PARISC_TLS_LE21L R_PARISC_TPREL21L
-#define R_PARISC_TLS_LE14R R_PARISC_TPREL14R
-#define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L
-#define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R
-#define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32
-#define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64
-#define R_PARISC_HIRESERVE 255
-
-/* Legal values for p_type field of Elf32_Phdr/Elf64_Phdr. */
-
-#define PT_HP_TLS (PT_LOOS + 0x0)
-#define PT_HP_CORE_NONE (PT_LOOS + 0x1)
-#define PT_HP_CORE_VERSION (PT_LOOS + 0x2)
-#define PT_HP_CORE_KERNEL (PT_LOOS + 0x3)
-#define PT_HP_CORE_COMM (PT_LOOS + 0x4)
-#define PT_HP_CORE_PROC (PT_LOOS + 0x5)
-#define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6)
-#define PT_HP_CORE_STACK (PT_LOOS + 0x7)
-#define PT_HP_CORE_SHM (PT_LOOS + 0x8)
-#define PT_HP_CORE_MMF (PT_LOOS + 0x9)
-#define PT_HP_PARALLEL (PT_LOOS + 0x10)
-#define PT_HP_FASTBIND (PT_LOOS + 0x11)
-#define PT_HP_OPT_ANNOT (PT_LOOS + 0x12)
-#define PT_HP_HSL_ANNOT (PT_LOOS + 0x13)
-#define PT_HP_STACK (PT_LOOS + 0x14)
-
-#define PT_PARISC_ARCHEXT 0x70000000
-#define PT_PARISC_UNWIND 0x70000001
-
-/* Legal values for p_flags field of Elf32_Phdr/Elf64_Phdr. */
-
-#define PF_PARISC_SBP 0x08000000
-
-#define PF_HP_PAGE_SIZE 0x00100000
-#define PF_HP_FAR_SHARED 0x00200000
-#define PF_HP_NEAR_SHARED 0x00400000
-#define PF_HP_CODE 0x01000000
-#define PF_HP_MODIFY 0x02000000
-#define PF_HP_LAZYSWAP 0x04000000
-#define PF_HP_SBP 0x08000000
-
-
-/* Alpha specific definitions. */
-
-/* Legal values for e_flags field of Elf64_Ehdr. */
-
-#define EF_ALPHA_32BIT 1 /* All addresses must be < 2GB. */
-#define EF_ALPHA_CANRELAX 2 /* Relocations for relaxing exist. */
-
-/* Legal values for sh_type field of Elf64_Shdr. */
-
-/* These two are primerily concerned with ECOFF debugging info. */
-#define SHT_ALPHA_DEBUG 0x70000001
-#define SHT_ALPHA_REGINFO 0x70000002
-
-/* Legal values for sh_flags field of Elf64_Shdr. */
-
-#define SHF_ALPHA_GPREL 0x10000000
-
-/* Legal values for st_other field of Elf64_Sym. */
-#define STO_ALPHA_NOPV 0x80 /* No PV required. */
-#define STO_ALPHA_STD_GPLOAD 0x88 /* PV only used for initial ldgp. */
-
-/* Alpha relocs. */
-
-#define R_ALPHA_NONE 0 /* No reloc */
-#define R_ALPHA_REFLONG 1 /* Direct 32 bit */
-#define R_ALPHA_REFQUAD 2 /* Direct 64 bit */
-#define R_ALPHA_GPREL32 3 /* GP relative 32 bit */
-#define R_ALPHA_LITERAL 4 /* GP relative 16 bit w/optimization */
-#define R_ALPHA_LITUSE 5 /* Optimization hint for LITERAL */
-#define R_ALPHA_GPDISP 6 /* Add displacement to GP */
-#define R_ALPHA_BRADDR 7 /* PC+4 relative 23 bit shifted */
-#define R_ALPHA_HINT 8 /* PC+4 relative 16 bit shifted */
-#define R_ALPHA_SREL16 9 /* PC relative 16 bit */
-#define R_ALPHA_SREL32 10 /* PC relative 32 bit */
-#define R_ALPHA_SREL64 11 /* PC relative 64 bit */
-#define R_ALPHA_GPRELHIGH 17 /* GP relative 32 bit, high 16 bits */
-#define R_ALPHA_GPRELLOW 18 /* GP relative 32 bit, low 16 bits */
-#define R_ALPHA_GPREL16 19 /* GP relative 16 bit */
-#define R_ALPHA_COPY 24 /* Copy symbol at runtime */
-#define R_ALPHA_GLOB_DAT 25 /* Create GOT entry */
-#define R_ALPHA_JMP_SLOT 26 /* Create PLT entry */
-#define R_ALPHA_RELATIVE 27 /* Adjust by program base */
-#define R_ALPHA_TLS_GD_HI 28
-#define R_ALPHA_TLSGD 29
-#define R_ALPHA_TLS_LDM 30
-#define R_ALPHA_DTPMOD64 31
-#define R_ALPHA_GOTDTPREL 32
-#define R_ALPHA_DTPREL64 33
-#define R_ALPHA_DTPRELHI 34
-#define R_ALPHA_DTPRELLO 35
-#define R_ALPHA_DTPREL16 36
-#define R_ALPHA_GOTTPREL 37
-#define R_ALPHA_TPREL64 38
-#define R_ALPHA_TPRELHI 39
-#define R_ALPHA_TPRELLO 40
-#define R_ALPHA_TPREL16 41
-/* Keep this the last entry. */
-#define R_ALPHA_NUM 46
-
-/* Magic values of the LITUSE relocation addend. */
-#define LITUSE_ALPHA_ADDR 0
-#define LITUSE_ALPHA_BASE 1
-#define LITUSE_ALPHA_BYTOFF 2
-#define LITUSE_ALPHA_JSR 3
-#define LITUSE_ALPHA_TLS_GD 4
-#define LITUSE_ALPHA_TLS_LDM 5
-
-/* Legal values for d_tag of Elf64_Dyn. */
-#define DT_ALPHA_PLTRO (DT_LOPROC + 0)
-#define DT_ALPHA_NUM 1
-
-/* PowerPC specific declarations */
-
-/* Values for Elf32/64_Ehdr.e_flags. */
-#define EF_PPC_EMB 0x80000000 /* PowerPC embedded flag */
-
-/* Cygnus local bits below */
-#define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag*/
-#define EF_PPC_RELOCATABLE_LIB 0x00008000 /* PowerPC -mrelocatable-lib
- flag */
-
-/* PowerPC relocations defined by the ABIs */
-#define R_PPC_NONE 0
-#define R_PPC_ADDR32 1 /* 32bit absolute address */
-#define R_PPC_ADDR24 2 /* 26bit address, 2 bits ignored. */
-#define R_PPC_ADDR16 3 /* 16bit absolute address */
-#define R_PPC_ADDR16_LO 4 /* lower 16bit of absolute address */
-#define R_PPC_ADDR16_HI 5 /* high 16bit of absolute address */
-#define R_PPC_ADDR16_HA 6 /* adjusted high 16bit */
-#define R_PPC_ADDR14 7 /* 16bit address, 2 bits ignored */
-#define R_PPC_ADDR14_BRTAKEN 8
-#define R_PPC_ADDR14_BRNTAKEN 9
-#define R_PPC_REL24 10 /* PC relative 26 bit */
-#define R_PPC_REL14 11 /* PC relative 16 bit */
-#define R_PPC_REL14_BRTAKEN 12
-#define R_PPC_REL14_BRNTAKEN 13
-#define R_PPC_GOT16 14
-#define R_PPC_GOT16_LO 15
-#define R_PPC_GOT16_HI 16
-#define R_PPC_GOT16_HA 17
-#define R_PPC_PLTREL24 18
-#define R_PPC_COPY 19
-#define R_PPC_GLOB_DAT 20
-#define R_PPC_JMP_SLOT 21
-#define R_PPC_RELATIVE 22
-#define R_PPC_LOCAL24PC 23
-#define R_PPC_UADDR32 24
-#define R_PPC_UADDR16 25
-#define R_PPC_REL32 26
-#define R_PPC_PLT32 27
-#define R_PPC_PLTREL32 28
-#define R_PPC_PLT16_LO 29
-#define R_PPC_PLT16_HI 30
-#define R_PPC_PLT16_HA 31
-#define R_PPC_SDAREL16 32
-#define R_PPC_SECTOFF 33
-#define R_PPC_SECTOFF_LO 34
-#define R_PPC_SECTOFF_HI 35
-#define R_PPC_SECTOFF_HA 36
-
-/* PowerPC relocations defined for the TLS access ABI. */
-#define R_PPC_TLS 67 /* none (sym+add)@tls */
-#define R_PPC_DTPMOD32 68 /* word32 (sym+add)@dtpmod */
-#define R_PPC_TPREL16 69 /* half16* (sym+add)@tprel */
-#define R_PPC_TPREL16_LO 70 /* half16 (sym+add)@tprel@l */
-#define R_PPC_TPREL16_HI 71 /* half16 (sym+add)@tprel@h */
-#define R_PPC_TPREL16_HA 72 /* half16 (sym+add)@tprel@ha */
-#define R_PPC_TPREL32 73 /* word32 (sym+add)@tprel */
-#define R_PPC_DTPREL16 74 /* half16* (sym+add)@dtprel */
-#define R_PPC_DTPREL16_LO 75 /* half16 (sym+add)@dtprel@l */
-#define R_PPC_DTPREL16_HI 76 /* half16 (sym+add)@dtprel@h */
-#define R_PPC_DTPREL16_HA 77 /* half16 (sym+add)@dtprel@ha */
-#define R_PPC_DTPREL32 78 /* word32 (sym+add)@dtprel */
-#define R_PPC_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */
-#define R_PPC_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */
-#define R_PPC_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */
-#define R_PPC_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */
-#define R_PPC_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */
-#define R_PPC_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */
-#define R_PPC_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */
-#define R_PPC_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */
-#define R_PPC_GOT_TPREL16 87 /* half16* (sym+add)@got@tprel */
-#define R_PPC_GOT_TPREL16_LO 88 /* half16 (sym+add)@got@tprel@l */
-#define R_PPC_GOT_TPREL16_HI 89 /* half16 (sym+add)@got@tprel@h */
-#define R_PPC_GOT_TPREL16_HA 90 /* half16 (sym+add)@got@tprel@ha */
-#define R_PPC_GOT_DTPREL16 91 /* half16* (sym+add)@got@dtprel */
-#define R_PPC_GOT_DTPREL16_LO 92 /* half16* (sym+add)@got@dtprel@l */
-#define R_PPC_GOT_DTPREL16_HI 93 /* half16* (sym+add)@got@dtprel@h */
-#define R_PPC_GOT_DTPREL16_HA 94 /* half16* (sym+add)@got@dtprel@ha */
-
-/* The remaining relocs are from the Embedded ELF ABI, and are not
- in the SVR4 ELF ABI. */
-#define R_PPC_EMB_NADDR32 101
-#define R_PPC_EMB_NADDR16 102
-#define R_PPC_EMB_NADDR16_LO 103
-#define R_PPC_EMB_NADDR16_HI 104
-#define R_PPC_EMB_NADDR16_HA 105
-#define R_PPC_EMB_SDAI16 106
-#define R_PPC_EMB_SDA2I16 107
-#define R_PPC_EMB_SDA2REL 108
-#define R_PPC_EMB_SDA21 109 /* 16 bit offset in SDA */
-#define R_PPC_EMB_MRKREF 110
-#define R_PPC_EMB_RELSEC16 111
-#define R_PPC_EMB_RELST_LO 112
-#define R_PPC_EMB_RELST_HI 113
-#define R_PPC_EMB_RELST_HA 114
-#define R_PPC_EMB_BIT_FLD 115
-#define R_PPC_EMB_RELSDA 116 /* 16 bit relative offset in SDA */
-
-/* Diab tool relocations. */
-#define R_PPC_DIAB_SDA21_LO 180 /* like EMB_SDA21, but lower 16 bit */
-#define R_PPC_DIAB_SDA21_HI 181 /* like EMB_SDA21, but high 16 bit */
-#define R_PPC_DIAB_SDA21_HA 182 /* like EMB_SDA21, adjusted high 16 */
-#define R_PPC_DIAB_RELSDA_LO 183 /* like EMB_RELSDA, but lower 16 bit */
-#define R_PPC_DIAB_RELSDA_HI 184 /* like EMB_RELSDA, but high 16 bit */
-#define R_PPC_DIAB_RELSDA_HA 185 /* like EMB_RELSDA, adjusted high 16 */
-
-/* GNU extension to support local ifunc. */
-#define R_PPC_IRELATIVE 248
-
-/* GNU relocs used in PIC code sequences. */
-#define R_PPC_REL16 249 /* half16 (sym+add-.) */
-#define R_PPC_REL16_LO 250 /* half16 (sym+add-.)@l */
-#define R_PPC_REL16_HI 251 /* half16 (sym+add-.)@h */
-#define R_PPC_REL16_HA 252 /* half16 (sym+add-.)@ha */
-
-/* This is a phony reloc to handle any old fashioned TOC16 references
- that may still be in object files. */
-#define R_PPC_TOC16 255
-
-/* PowerPC specific values for the Dyn d_tag field. */
-#define DT_PPC_GOT (DT_LOPROC + 0)
-#define DT_PPC_NUM 1
-
-/* PowerPC64 relocations defined by the ABIs */
-#define R_PPC64_NONE R_PPC_NONE
-#define R_PPC64_ADDR32 R_PPC_ADDR32 /* 32bit absolute address */
-#define R_PPC64_ADDR24 R_PPC_ADDR24 /* 26bit address, word aligned */
-#define R_PPC64_ADDR16 R_PPC_ADDR16 /* 16bit absolute address */
-#define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO /* lower 16bits of address */
-#define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI /* high 16bits of address. */
-#define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA /* adjusted high 16bits. */
-#define R_PPC64_ADDR14 R_PPC_ADDR14 /* 16bit address, word aligned */
-#define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN
-#define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN
-#define R_PPC64_REL24 R_PPC_REL24 /* PC-rel. 26 bit, word aligned */
-#define R_PPC64_REL14 R_PPC_REL14 /* PC relative 16 bit */
-#define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN
-#define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN
-#define R_PPC64_GOT16 R_PPC_GOT16
-#define R_PPC64_GOT16_LO R_PPC_GOT16_LO
-#define R_PPC64_GOT16_HI R_PPC_GOT16_HI
-#define R_PPC64_GOT16_HA R_PPC_GOT16_HA
-
-#define R_PPC64_COPY R_PPC_COPY
-#define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT
-#define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT
-#define R_PPC64_RELATIVE R_PPC_RELATIVE
-
-#define R_PPC64_UADDR32 R_PPC_UADDR32
-#define R_PPC64_UADDR16 R_PPC_UADDR16
-#define R_PPC64_REL32 R_PPC_REL32
-#define R_PPC64_PLT32 R_PPC_PLT32
-#define R_PPC64_PLTREL32 R_PPC_PLTREL32
-#define R_PPC64_PLT16_LO R_PPC_PLT16_LO
-#define R_PPC64_PLT16_HI R_PPC_PLT16_HI
-#define R_PPC64_PLT16_HA R_PPC_PLT16_HA
-
-#define R_PPC64_SECTOFF R_PPC_SECTOFF
-#define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO
-#define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI
-#define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA
-#define R_PPC64_ADDR30 37 /* word30 (S + A - P) >> 2 */
-#define R_PPC64_ADDR64 38 /* doubleword64 S + A */
-#define R_PPC64_ADDR16_HIGHER 39 /* half16 #higher(S + A) */
-#define R_PPC64_ADDR16_HIGHERA 40 /* half16 #highera(S + A) */
-#define R_PPC64_ADDR16_HIGHEST 41 /* half16 #highest(S + A) */
-#define R_PPC64_ADDR16_HIGHESTA 42 /* half16 #highesta(S + A) */
-#define R_PPC64_UADDR64 43 /* doubleword64 S + A */
-#define R_PPC64_REL64 44 /* doubleword64 S + A - P */
-#define R_PPC64_PLT64 45 /* doubleword64 L + A */
-#define R_PPC64_PLTREL64 46 /* doubleword64 L + A - P */
-#define R_PPC64_TOC16 47 /* half16* S + A - .TOC */
-#define R_PPC64_TOC16_LO 48 /* half16 #lo(S + A - .TOC.) */
-#define R_PPC64_TOC16_HI 49 /* half16 #hi(S + A - .TOC.) */
-#define R_PPC64_TOC16_HA 50 /* half16 #ha(S + A - .TOC.) */
-#define R_PPC64_TOC 51 /* doubleword64 .TOC */
-#define R_PPC64_PLTGOT16 52 /* half16* M + A */
-#define R_PPC64_PLTGOT16_LO 53 /* half16 #lo(M + A) */
-#define R_PPC64_PLTGOT16_HI 54 /* half16 #hi(M + A) */
-#define R_PPC64_PLTGOT16_HA 55 /* half16 #ha(M + A) */
-
-#define R_PPC64_ADDR16_DS 56 /* half16ds* (S + A) >> 2 */
-#define R_PPC64_ADDR16_LO_DS 57 /* half16ds #lo(S + A) >> 2 */
-#define R_PPC64_GOT16_DS 58 /* half16ds* (G + A) >> 2 */
-#define R_PPC64_GOT16_LO_DS 59 /* half16ds #lo(G + A) >> 2 */
-#define R_PPC64_PLT16_LO_DS 60 /* half16ds #lo(L + A) >> 2 */
-#define R_PPC64_SECTOFF_DS 61 /* half16ds* (R + A) >> 2 */
-#define R_PPC64_SECTOFF_LO_DS 62 /* half16ds #lo(R + A) >> 2 */
-#define R_PPC64_TOC16_DS 63 /* half16ds* (S + A - .TOC.) >> 2 */
-#define R_PPC64_TOC16_LO_DS 64 /* half16ds #lo(S + A - .TOC.) >> 2 */
-#define R_PPC64_PLTGOT16_DS 65 /* half16ds* (M + A) >> 2 */
-#define R_PPC64_PLTGOT16_LO_DS 66 /* half16ds #lo(M + A) >> 2 */
-
-/* PowerPC64 relocations defined for the TLS access ABI. */
-#define R_PPC64_TLS 67 /* none (sym+add)@tls */
-#define R_PPC64_DTPMOD64 68 /* doubleword64 (sym+add)@dtpmod */
-#define R_PPC64_TPREL16 69 /* half16* (sym+add)@tprel */
-#define R_PPC64_TPREL16_LO 70 /* half16 (sym+add)@tprel@l */
-#define R_PPC64_TPREL16_HI 71 /* half16 (sym+add)@tprel@h */
-#define R_PPC64_TPREL16_HA 72 /* half16 (sym+add)@tprel@ha */
-#define R_PPC64_TPREL64 73 /* doubleword64 (sym+add)@tprel */
-#define R_PPC64_DTPREL16 74 /* half16* (sym+add)@dtprel */
-#define R_PPC64_DTPREL16_LO 75 /* half16 (sym+add)@dtprel@l */
-#define R_PPC64_DTPREL16_HI 76 /* half16 (sym+add)@dtprel@h */
-#define R_PPC64_DTPREL16_HA 77 /* half16 (sym+add)@dtprel@ha */
-#define R_PPC64_DTPREL64 78 /* doubleword64 (sym+add)@dtprel */
-#define R_PPC64_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */
-#define R_PPC64_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */
-#define R_PPC64_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */
-#define R_PPC64_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */
-#define R_PPC64_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */
-#define R_PPC64_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */
-#define R_PPC64_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */
-#define R_PPC64_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */
-#define R_PPC64_GOT_TPREL16_DS 87 /* half16ds* (sym+add)@got@tprel */
-#define R_PPC64_GOT_TPREL16_LO_DS 88 /* half16ds (sym+add)@got@tprel@l */
-#define R_PPC64_GOT_TPREL16_HI 89 /* half16 (sym+add)@got@tprel@h */
-#define R_PPC64_GOT_TPREL16_HA 90 /* half16 (sym+add)@got@tprel@ha */
-#define R_PPC64_GOT_DTPREL16_DS 91 /* half16ds* (sym+add)@got@dtprel */
-#define R_PPC64_GOT_DTPREL16_LO_DS 92 /* half16ds (sym+add)@got@dtprel@l */
-#define R_PPC64_GOT_DTPREL16_HI 93 /* half16 (sym+add)@got@dtprel@h */
-#define R_PPC64_GOT_DTPREL16_HA 94 /* half16 (sym+add)@got@dtprel@ha */
-#define R_PPC64_TPREL16_DS 95 /* half16ds* (sym+add)@tprel */
-#define R_PPC64_TPREL16_LO_DS 96 /* half16ds (sym+add)@tprel@l */
-#define R_PPC64_TPREL16_HIGHER 97 /* half16 (sym+add)@tprel@higher */
-#define R_PPC64_TPREL16_HIGHERA 98 /* half16 (sym+add)@tprel@highera */
-#define R_PPC64_TPREL16_HIGHEST 99 /* half16 (sym+add)@tprel@highest */
-#define R_PPC64_TPREL16_HIGHESTA 100 /* half16 (sym+add)@tprel@highesta */
-#define R_PPC64_DTPREL16_DS 101 /* half16ds* (sym+add)@dtprel */
-#define R_PPC64_DTPREL16_LO_DS 102 /* half16ds (sym+add)@dtprel@l */
-#define R_PPC64_DTPREL16_HIGHER 103 /* half16 (sym+add)@dtprel@higher */
-#define R_PPC64_DTPREL16_HIGHERA 104 /* half16 (sym+add)@dtprel@highera */
-#define R_PPC64_DTPREL16_HIGHEST 105 /* half16 (sym+add)@dtprel@highest */
-#define R_PPC64_DTPREL16_HIGHESTA 106 /* half16 (sym+add)@dtprel@highesta */
-#define R_PPC64_TLSGD 107 /* none (sym+add)@tlsgd */
-#define R_PPC64_TLSLD 108 /* none (sym+add)@tlsld */
-#define R_PPC64_TOCSAVE 109 /* none */
-
-/* Added when HA and HI relocs were changed to report overflows. */
-#define R_PPC64_ADDR16_HIGH 110
-#define R_PPC64_ADDR16_HIGHA 111
-#define R_PPC64_TPREL16_HIGH 112
-#define R_PPC64_TPREL16_HIGHA 113
-#define R_PPC64_DTPREL16_HIGH 114
-#define R_PPC64_DTPREL16_HIGHA 115
-
-/* GNU extension to support local ifunc. */
-#define R_PPC64_JMP_IREL 247
-#define R_PPC64_IRELATIVE 248
-#define R_PPC64_REL16 249 /* half16 (sym+add-.) */
-#define R_PPC64_REL16_LO 250 /* half16 (sym+add-.)@l */
-#define R_PPC64_REL16_HI 251 /* half16 (sym+add-.)@h */
-#define R_PPC64_REL16_HA 252 /* half16 (sym+add-.)@ha */
-
-/* e_flags bits specifying ABI.
- 1 for original function descriptor using ABI,
- 2 for revised ABI without function descriptors,
- 0 for unspecified or not using any features affected by the differences. */
-#define EF_PPC64_ABI 3
-
-/* PowerPC64 specific values for the Dyn d_tag field. */
-#define DT_PPC64_GLINK (DT_LOPROC + 0)
-#define DT_PPC64_OPD (DT_LOPROC + 1)
-#define DT_PPC64_OPDSZ (DT_LOPROC + 2)
-#define DT_PPC64_OPT (DT_LOPROC + 3)
-#define DT_PPC64_NUM 3
-
-/* PowerPC64 specific values for the DT_PPC64_OPT Dyn entry. */
-#define PPC64_OPT_TLS 1
-#define PPC64_OPT_MULTI_TOC 2
-
-/* PowerPC64 specific values for the Elf64_Sym st_other field. */
-#define STO_PPC64_LOCAL_BIT 5
-#define STO_PPC64_LOCAL_MASK (7 << STO_PPC64_LOCAL_BIT)
-#define PPC64_LOCAL_ENTRY_OFFSET(other) \
- (((1 << (((other) & STO_PPC64_LOCAL_MASK) >> STO_PPC64_LOCAL_BIT)) >> 2) << 2)
-
-
-/* ARM specific declarations */
-
-/* Processor specific flags for the ELF header e_flags field. */
-#define EF_ARM_RELEXEC 0x01
-#define EF_ARM_HASENTRY 0x02
-#define EF_ARM_INTERWORK 0x04
-#define EF_ARM_APCS_26 0x08
-#define EF_ARM_APCS_FLOAT 0x10
-#define EF_ARM_PIC 0x20
-#define EF_ARM_ALIGN8 0x40 /* 8-bit structure alignment is in use */
-#define EF_ARM_NEW_ABI 0x80
-#define EF_ARM_OLD_ABI 0x100
-#define EF_ARM_SOFT_FLOAT 0x200
-#define EF_ARM_VFP_FLOAT 0x400
-#define EF_ARM_MAVERICK_FLOAT 0x800
-
-#define EF_ARM_ABI_FLOAT_SOFT 0x200 /* NB conflicts with EF_ARM_SOFT_FLOAT */
-#define EF_ARM_ABI_FLOAT_HARD 0x400 /* NB conflicts with EF_ARM_VFP_FLOAT */
-
-
-/* Other constants defined in the ARM ELF spec. version B-01. */
-/* NB. These conflict with values defined above. */
-#define EF_ARM_SYMSARESORTED 0x04
-#define EF_ARM_DYNSYMSUSESEGIDX 0x08
-#define EF_ARM_MAPSYMSFIRST 0x10
-#define EF_ARM_EABIMASK 0XFF000000
-
-/* Constants defined in AAELF. */
-#define EF_ARM_BE8 0x00800000
-#define EF_ARM_LE8 0x00400000
-
-#define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK)
-#define EF_ARM_EABI_UNKNOWN 0x00000000
-#define EF_ARM_EABI_VER1 0x01000000
-#define EF_ARM_EABI_VER2 0x02000000
-#define EF_ARM_EABI_VER3 0x03000000
-#define EF_ARM_EABI_VER4 0x04000000
-#define EF_ARM_EABI_VER5 0x05000000
-
-/* Additional symbol types for Thumb. */
-#define STT_ARM_TFUNC STT_LOPROC /* A Thumb function. */
-#define STT_ARM_16BIT STT_HIPROC /* A Thumb label. */
-
-/* ARM-specific values for sh_flags */
-#define SHF_ARM_ENTRYSECT 0x10000000 /* Section contains an entry point */
-#define SHF_ARM_COMDEF 0x80000000 /* Section may be multiply defined
- in the input to a link step. */
-
-/* ARM-specific program header flags */
-#define PF_ARM_SB 0x10000000 /* Segment contains the location
- addressed by the static base. */
-#define PF_ARM_PI 0x20000000 /* Position-independent segment. */
-#define PF_ARM_ABS 0x40000000 /* Absolute segment. */
-
-/* Processor specific values for the Phdr p_type field. */
-#define PT_ARM_EXIDX (PT_LOPROC + 1) /* ARM unwind segment. */
-
-/* Processor specific values for the Shdr sh_type field. */
-#define SHT_ARM_EXIDX (SHT_LOPROC + 1) /* ARM unwind section. */
-#define SHT_ARM_PREEMPTMAP (SHT_LOPROC + 2) /* Preemption details. */
-#define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3) /* ARM attributes section. */
-
-
-/* AArch64 relocs. */
-
-#define R_AARCH64_NONE 0 /* No relocation. */
-#define R_AARCH64_ABS64 257 /* Direct 64 bit. */
-#define R_AARCH64_ABS32 258 /* Direct 32 bit. */
-#define R_AARCH64_ABS16 259 /* Direct 16-bit. */
-#define R_AARCH64_PREL64 260 /* PC-relative 64-bit. */
-#define R_AARCH64_PREL32 261 /* PC-relative 32-bit. */
-#define R_AARCH64_PREL16 262 /* PC-relative 16-bit. */
-#define R_AARCH64_MOVW_UABS_G0 263 /* Dir. MOVZ imm. from bits 15:0. */
-#define R_AARCH64_MOVW_UABS_G0_NC 264 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_UABS_G1 265 /* Dir. MOVZ imm. from bits 31:16. */
-#define R_AARCH64_MOVW_UABS_G1_NC 266 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_UABS_G2 267 /* Dir. MOVZ imm. from bits 47:32. */
-#define R_AARCH64_MOVW_UABS_G2_NC 268 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_UABS_G3 269 /* Dir. MOV{K,Z} imm. from 63:48. */
-#define R_AARCH64_MOVW_SABS_G0 270 /* Dir. MOV{N,Z} imm. from 15:0. */
-#define R_AARCH64_MOVW_SABS_G1 271 /* Dir. MOV{N,Z} imm. from 31:16. */
-#define R_AARCH64_MOVW_SABS_G2 272 /* Dir. MOV{N,Z} imm. from 47:32. */
-#define R_AARCH64_LD_PREL_LO19 273 /* PC-rel. LD imm. from bits 20:2. */
-#define R_AARCH64_ADR_PREL_LO21 274 /* PC-rel. ADR imm. from bits 20:0. */
-#define R_AARCH64_ADR_PREL_PG_HI21 275 /* Page-rel. ADRP imm. from 32:12. */
-#define R_AARCH64_ADR_PREL_PG_HI21_NC 276 /* Likewise; no overflow check. */
-#define R_AARCH64_ADD_ABS_LO12_NC 277 /* Dir. ADD imm. from bits 11:0. */
-#define R_AARCH64_LDST8_ABS_LO12_NC 278 /* Likewise for LD/ST; no check. */
-#define R_AARCH64_TSTBR14 279 /* PC-rel. TBZ/TBNZ imm. from 15:2. */
-#define R_AARCH64_CONDBR19 280 /* PC-rel. cond. br. imm. from 20:2. */
-#define R_AARCH64_JUMP26 282 /* PC-rel. B imm. from bits 27:2. */
-#define R_AARCH64_CALL26 283 /* Likewise for CALL. */
-#define R_AARCH64_LDST16_ABS_LO12_NC 284 /* Dir. ADD imm. from bits 11:1. */
-#define R_AARCH64_LDST32_ABS_LO12_NC 285 /* Likewise for bits 11:2. */
-#define R_AARCH64_LDST64_ABS_LO12_NC 286 /* Likewise for bits 11:3. */
-#define R_AARCH64_MOVW_PREL_G0 287 /* PC-rel. MOV{N,Z} imm. from 15:0. */
-#define R_AARCH64_MOVW_PREL_G0_NC 288 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_PREL_G1 289 /* PC-rel. MOV{N,Z} imm. from 31:16. */
-#define R_AARCH64_MOVW_PREL_G1_NC 290 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_PREL_G2 291 /* PC-rel. MOV{N,Z} imm. from 47:32. */
-#define R_AARCH64_MOVW_PREL_G2_NC 292 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_PREL_G3 293 /* PC-rel. MOV{N,Z} imm. from 63:48. */
-#define R_AARCH64_LDST128_ABS_LO12_NC 299 /* Dir. ADD imm. from bits 11:4. */
-#define R_AARCH64_MOVW_GOTOFF_G0 300 /* GOT-rel. off. MOV{N,Z} imm. 15:0. */
-#define R_AARCH64_MOVW_GOTOFF_G0_NC 301 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_GOTOFF_G1 302 /* GOT-rel. o. MOV{N,Z} imm. 31:16. */
-#define R_AARCH64_MOVW_GOTOFF_G1_NC 303 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_GOTOFF_G2 304 /* GOT-rel. o. MOV{N,Z} imm. 47:32. */
-#define R_AARCH64_MOVW_GOTOFF_G2_NC 305 /* Likewise for MOVK; no check. */
-#define R_AARCH64_MOVW_GOTOFF_G3 306 /* GOT-rel. o. MOV{N,Z} imm. 63:48. */
-#define R_AARCH64_GOTREL64 307 /* GOT-relative 64-bit. */
-#define R_AARCH64_GOTREL32 308 /* GOT-relative 32-bit. */
-#define R_AARCH64_GOT_LD_PREL19 309 /* PC-rel. GOT off. load imm. 20:2. */
-#define R_AARCH64_LD64_GOTOFF_LO15 310 /* GOT-rel. off. LD/ST imm. 14:3. */
-#define R_AARCH64_ADR_GOT_PAGE 311 /* P-page-rel. GOT off. ADRP 32:12. */
-#define R_AARCH64_LD64_GOT_LO12_NC 312 /* Dir. GOT off. LD/ST imm. 11:3. */
-#define R_AARCH64_LD64_GOTPAGE_LO15 313 /* GOT-page-rel. GOT off. LD/ST 14:3 */
-#define R_AARCH64_TLSGD_ADR_PREL21 512 /* PC-relative ADR imm. 20:0. */
-#define R_AARCH64_TLSGD_ADR_PAGE21 513 /* page-rel. ADRP imm. 32:12. */
-#define R_AARCH64_TLSGD_ADD_LO12_NC 514 /* direct ADD imm. from 11:0. */
-#define R_AARCH64_TLSGD_MOVW_G1 515 /* GOT-rel. MOV{N,Z} 31:16. */
-#define R_AARCH64_TLSGD_MOVW_G0_NC 516 /* GOT-rel. MOVK imm. 15:0. */
-#define R_AARCH64_TLSLD_ADR_PREL21 517 /* Like 512; local dynamic model. */
-#define R_AARCH64_TLSLD_ADR_PAGE21 518 /* Like 513; local dynamic model. */
-#define R_AARCH64_TLSLD_ADD_LO12_NC 519 /* Like 514; local dynamic model. */
-#define R_AARCH64_TLSLD_MOVW_G1 520 /* Like 515; local dynamic model. */
-#define R_AARCH64_TLSLD_MOVW_G0_NC 521 /* Like 516; local dynamic model. */
-#define R_AARCH64_TLSLD_LD_PREL19 522 /* TLS PC-rel. load imm. 20:2. */
-#define R_AARCH64_TLSLD_MOVW_DTPREL_G2 523 /* TLS DTP-rel. MOV{N,Z} 47:32. */
-#define R_AARCH64_TLSLD_MOVW_DTPREL_G1 524 /* TLS DTP-rel. MOV{N,Z} 31:16. */
-#define R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC 525 /* Likewise; MOVK; no check. */
-#define R_AARCH64_TLSLD_MOVW_DTPREL_G0 526 /* TLS DTP-rel. MOV{N,Z} 15:0. */
-#define R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC 527 /* Likewise; MOVK; no check. */
-#define R_AARCH64_TLSLD_ADD_DTPREL_HI12 528 /* DTP-rel. ADD imm. from 23:12. */
-#define R_AARCH64_TLSLD_ADD_DTPREL_LO12 529 /* DTP-rel. ADD imm. from 11:0. */
-#define R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC 530 /* Likewise; no ovfl. check. */
-#define R_AARCH64_TLSLD_LDST8_DTPREL_LO12 531 /* DTP-rel. LD/ST imm. 11:0. */
-#define R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC 532 /* Likewise; no check. */
-#define R_AARCH64_TLSLD_LDST16_DTPREL_LO12 533 /* DTP-rel. LD/ST imm. 11:1. */
-#define R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC 534 /* Likewise; no check. */
-#define R_AARCH64_TLSLD_LDST32_DTPREL_LO12 535 /* DTP-rel. LD/ST imm. 11:2. */
-#define R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC 536 /* Likewise; no check. */
-#define R_AARCH64_TLSLD_LDST64_DTPREL_LO12 537 /* DTP-rel. LD/ST imm. 11:3. */
-#define R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC 538 /* Likewise; no check. */
-#define R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 539 /* GOT-rel. MOV{N,Z} 31:16. */
-#define R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC 540 /* GOT-rel. MOVK 15:0. */
-#define R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 541 /* Page-rel. ADRP 32:12. */
-#define R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 542 /* Direct LD off. 11:3. */
-#define R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 543 /* PC-rel. load imm. 20:2. */
-#define R_AARCH64_TLSLE_MOVW_TPREL_G2 544 /* TLS TP-rel. MOV{N,Z} 47:32. */
-#define R_AARCH64_TLSLE_MOVW_TPREL_G1 545 /* TLS TP-rel. MOV{N,Z} 31:16. */
-#define R_AARCH64_TLSLE_MOVW_TPREL_G1_NC 546 /* Likewise; MOVK; no check. */
-#define R_AARCH64_TLSLE_MOVW_TPREL_G0 547 /* TLS TP-rel. MOV{N,Z} 15:0. */
-#define R_AARCH64_TLSLE_MOVW_TPREL_G0_NC 548 /* Likewise; MOVK; no check. */
-#define R_AARCH64_TLSLE_ADD_TPREL_HI12 549 /* TP-rel. ADD imm. 23:12. */
-#define R_AARCH64_TLSLE_ADD_TPREL_LO12 550 /* TP-rel. ADD imm. 11:0. */
-#define R_AARCH64_TLSLE_ADD_TPREL_LO12_NC 551 /* Likewise; no ovfl. check. */
-#define R_AARCH64_TLSLE_LDST8_TPREL_LO12 552 /* TP-rel. LD/ST off. 11:0. */
-#define R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC 553 /* Likewise; no ovfl. check. */
-#define R_AARCH64_TLSLE_LDST16_TPREL_LO12 554 /* TP-rel. LD/ST off. 11:1. */
-#define R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC 555 /* Likewise; no check. */
-#define R_AARCH64_TLSLE_LDST32_TPREL_LO12 556 /* TP-rel. LD/ST off. 11:2. */
-#define R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC 557 /* Likewise; no check. */
-#define R_AARCH64_TLSLE_LDST64_TPREL_LO12 558 /* TP-rel. LD/ST off. 11:3. */
-#define R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC 559 /* Likewise; no check. */
-#define R_AARCH64_TLSDESC_LD_PREL19 560 /* PC-rel. load immediate 20:2. */
-#define R_AARCH64_TLSDESC_ADR_PREL21 561 /* PC-rel. ADR immediate 20:0. */
-#define R_AARCH64_TLSDESC_ADR_PAGE21 562 /* Page-rel. ADRP imm. 32:12. */
-#define R_AARCH64_TLSDESC_LD64_LO12 563 /* Direct LD off. from 11:3. */
-#define R_AARCH64_TLSDESC_ADD_LO12 564 /* Direct ADD imm. from 11:0. */
-#define R_AARCH64_TLSDESC_OFF_G1 565 /* GOT-rel. MOV{N,Z} imm. 31:16. */
-#define R_AARCH64_TLSDESC_OFF_G0_NC 566 /* GOT-rel. MOVK imm. 15:0; no ck. */
-#define R_AARCH64_TLSDESC_LDR 567 /* Relax LDR. */
-#define R_AARCH64_TLSDESC_ADD 568 /* Relax ADD. */
-#define R_AARCH64_TLSDESC_CALL 569 /* Relax BLR. */
-#define R_AARCH64_TLSLE_LDST128_TPREL_LO12 570 /* TP-rel. LD/ST off. 11:4. */
-#define R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC 571 /* Likewise; no check. */
-#define R_AARCH64_TLSLD_LDST128_DTPREL_LO12 572 /* DTP-rel. LD/ST imm. 11:4. */
-#define R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC 573 /* Likewise; no check. */
-#define R_AARCH64_COPY 1024 /* Copy symbol at runtime. */
-#define R_AARCH64_GLOB_DAT 1025 /* Create GOT entry. */
-#define R_AARCH64_JUMP_SLOT 1026 /* Create PLT entry. */
-#define R_AARCH64_RELATIVE 1027 /* Adjust by program base. */
-#define R_AARCH64_TLS_DTPMOD64 1028 /* Module number, 64 bit. */
-#define R_AARCH64_TLS_DTPREL64 1029 /* Module-relative offset, 64 bit. */
-#define R_AARCH64_TLS_TPREL64 1030 /* TP-relative offset, 64 bit. */
-#define R_AARCH64_TLSDESC 1031 /* TLS Descriptor. */
-#define R_AARCH64_IRELATIVE 1032 /* STT_GNU_IFUNC relocation. */
-
-/* ARM relocs. */
-
-#define R_ARM_NONE 0 /* No reloc */
-#define R_ARM_PC24 1 /* Deprecated PC relative 26
- bit branch. */
-#define R_ARM_ABS32 2 /* Direct 32 bit */
-#define R_ARM_REL32 3 /* PC relative 32 bit */
-#define R_ARM_PC13 4
-#define R_ARM_ABS16 5 /* Direct 16 bit */
-#define R_ARM_ABS12 6 /* Direct 12 bit */
-#define R_ARM_THM_ABS5 7 /* Direct & 0x7C (LDR, STR). */
-#define R_ARM_ABS8 8 /* Direct 8 bit */
-#define R_ARM_SBREL32 9
-#define R_ARM_THM_PC22 10 /* PC relative 24 bit (Thumb32 BL). */
-#define R_ARM_THM_PC8 11 /* PC relative & 0x3FC
- (Thumb16 LDR, ADD, ADR). */
-#define R_ARM_AMP_VCALL9 12
-#define R_ARM_SWI24 13 /* Obsolete static relocation. */
-#define R_ARM_TLS_DESC 13 /* Dynamic relocation. */
-#define R_ARM_THM_SWI8 14 /* Reserved. */
-#define R_ARM_XPC25 15 /* Reserved. */
-#define R_ARM_THM_XPC22 16 /* Reserved. */
-#define R_ARM_TLS_DTPMOD32 17 /* ID of module containing symbol */
-#define R_ARM_TLS_DTPOFF32 18 /* Offset in TLS block */
-#define R_ARM_TLS_TPOFF32 19 /* Offset in static TLS block */
-#define R_ARM_COPY 20 /* Copy symbol at runtime */
-#define R_ARM_GLOB_DAT 21 /* Create GOT entry */
-#define R_ARM_JUMP_SLOT 22 /* Create PLT entry */
-#define R_ARM_RELATIVE 23 /* Adjust by program base */
-#define R_ARM_GOTOFF 24 /* 32 bit offset to GOT */
-#define R_ARM_GOTPC 25 /* 32 bit PC relative offset to GOT */
-#define R_ARM_GOT32 26 /* 32 bit GOT entry */
-#define R_ARM_PLT32 27 /* Deprecated, 32 bit PLT address. */
-#define R_ARM_CALL 28 /* PC relative 24 bit (BL, BLX). */
-#define R_ARM_JUMP24 29 /* PC relative 24 bit
- (B, BL<cond>). */
-#define R_ARM_THM_JUMP24 30 /* PC relative 24 bit (Thumb32 B.W). */
-#define R_ARM_BASE_ABS 31 /* Adjust by program base. */
-#define R_ARM_ALU_PCREL_7_0 32 /* Obsolete. */
-#define R_ARM_ALU_PCREL_15_8 33 /* Obsolete. */
-#define R_ARM_ALU_PCREL_23_15 34 /* Obsolete. */
-#define R_ARM_LDR_SBREL_11_0 35 /* Deprecated, prog. base relative. */
-#define R_ARM_ALU_SBREL_19_12 36 /* Deprecated, prog. base relative. */
-#define R_ARM_ALU_SBREL_27_20 37 /* Deprecated, prog. base relative. */
-#define R_ARM_TARGET1 38
-#define R_ARM_SBREL31 39 /* Program base relative. */
-#define R_ARM_V4BX 40
-#define R_ARM_TARGET2 41
-#define R_ARM_PREL31 42 /* 32 bit PC relative. */
-#define R_ARM_MOVW_ABS_NC 43 /* Direct 16-bit (MOVW). */
-#define R_ARM_MOVT_ABS 44 /* Direct high 16-bit (MOVT). */
-#define R_ARM_MOVW_PREL_NC 45 /* PC relative 16-bit (MOVW). */
-#define R_ARM_MOVT_PREL 46 /* PC relative (MOVT). */
-#define R_ARM_THM_MOVW_ABS_NC 47 /* Direct 16 bit (Thumb32 MOVW). */
-#define R_ARM_THM_MOVT_ABS 48 /* Direct high 16 bit
- (Thumb32 MOVT). */
-#define R_ARM_THM_MOVW_PREL_NC 49 /* PC relative 16 bit
- (Thumb32 MOVW). */
-#define R_ARM_THM_MOVT_PREL 50 /* PC relative high 16 bit
- (Thumb32 MOVT). */
-#define R_ARM_THM_JUMP19 51 /* PC relative 20 bit
- (Thumb32 B<cond>.W). */
-#define R_ARM_THM_JUMP6 52 /* PC relative X & 0x7E
- (Thumb16 CBZ, CBNZ). */
-#define R_ARM_THM_ALU_PREL_11_0 53 /* PC relative 12 bit
- (Thumb32 ADR.W). */
-#define R_ARM_THM_PC12 54 /* PC relative 12 bit
- (Thumb32 LDR{D,SB,H,SH}). */
-#define R_ARM_ABS32_NOI 55 /* Direct 32-bit. */
-#define R_ARM_REL32_NOI 56 /* PC relative 32-bit. */
-#define R_ARM_ALU_PC_G0_NC 57 /* PC relative (ADD, SUB). */
-#define R_ARM_ALU_PC_G0 58 /* PC relative (ADD, SUB). */
-#define R_ARM_ALU_PC_G1_NC 59 /* PC relative (ADD, SUB). */
-#define R_ARM_ALU_PC_G1 60 /* PC relative (ADD, SUB). */
-#define R_ARM_ALU_PC_G2 61 /* PC relative (ADD, SUB). */
-#define R_ARM_LDR_PC_G1 62 /* PC relative (LDR,STR,LDRB,STRB). */
-#define R_ARM_LDR_PC_G2 63 /* PC relative (LDR,STR,LDRB,STRB). */
-#define R_ARM_LDRS_PC_G0 64 /* PC relative (STR{D,H},
- LDR{D,SB,H,SH}). */
-#define R_ARM_LDRS_PC_G1 65 /* PC relative (STR{D,H},
- LDR{D,SB,H,SH}). */
-#define R_ARM_LDRS_PC_G2 66 /* PC relative (STR{D,H},
- LDR{D,SB,H,SH}). */
-#define R_ARM_LDC_PC_G0 67 /* PC relative (LDC, STC). */
-#define R_ARM_LDC_PC_G1 68 /* PC relative (LDC, STC). */
-#define R_ARM_LDC_PC_G2 69 /* PC relative (LDC, STC). */
-#define R_ARM_ALU_SB_G0_NC 70 /* Program base relative (ADD,SUB). */
-#define R_ARM_ALU_SB_G0 71 /* Program base relative (ADD,SUB). */
-#define R_ARM_ALU_SB_G1_NC 72 /* Program base relative (ADD,SUB). */
-#define R_ARM_ALU_SB_G1 73 /* Program base relative (ADD,SUB). */
-#define R_ARM_ALU_SB_G2 74 /* Program base relative (ADD,SUB). */
-#define R_ARM_LDR_SB_G0 75 /* Program base relative (LDR,
- STR, LDRB, STRB). */
-#define R_ARM_LDR_SB_G1 76 /* Program base relative
- (LDR, STR, LDRB, STRB). */
-#define R_ARM_LDR_SB_G2 77 /* Program base relative
- (LDR, STR, LDRB, STRB). */
-#define R_ARM_LDRS_SB_G0 78 /* Program base relative
- (LDR, STR, LDRB, STRB). */
-#define R_ARM_LDRS_SB_G1 79 /* Program base relative
- (LDR, STR, LDRB, STRB). */
-#define R_ARM_LDRS_SB_G2 80 /* Program base relative
- (LDR, STR, LDRB, STRB). */
-#define R_ARM_LDC_SB_G0 81 /* Program base relative (LDC,STC). */
-#define R_ARM_LDC_SB_G1 82 /* Program base relative (LDC,STC). */
-#define R_ARM_LDC_SB_G2 83 /* Program base relative (LDC,STC). */
-#define R_ARM_MOVW_BREL_NC 84 /* Program base relative 16
- bit (MOVW). */
-#define R_ARM_MOVT_BREL 85 /* Program base relative high
- 16 bit (MOVT). */
-#define R_ARM_MOVW_BREL 86 /* Program base relative 16
- bit (MOVW). */
-#define R_ARM_THM_MOVW_BREL_NC 87 /* Program base relative 16
- bit (Thumb32 MOVW). */
-#define R_ARM_THM_MOVT_BREL 88 /* Program base relative high
- 16 bit (Thumb32 MOVT). */
-#define R_ARM_THM_MOVW_BREL 89 /* Program base relative 16
- bit (Thumb32 MOVW). */
-#define R_ARM_TLS_GOTDESC 90
-#define R_ARM_TLS_CALL 91
-#define R_ARM_TLS_DESCSEQ 92 /* TLS relaxation. */
-#define R_ARM_THM_TLS_CALL 93
-#define R_ARM_PLT32_ABS 94
-#define R_ARM_GOT_ABS 95 /* GOT entry. */
-#define R_ARM_GOT_PREL 96 /* PC relative GOT entry. */
-#define R_ARM_GOT_BREL12 97 /* GOT entry relative to GOT
- origin (LDR). */
-#define R_ARM_GOTOFF12 98 /* 12 bit, GOT entry relative
- to GOT origin (LDR, STR). */
-#define R_ARM_GOTRELAX 99
-#define R_ARM_GNU_VTENTRY 100
-#define R_ARM_GNU_VTINHERIT 101
-#define R_ARM_THM_PC11 102 /* PC relative & 0xFFE (Thumb16 B). */
-#define R_ARM_THM_PC9 103 /* PC relative & 0x1FE
- (Thumb16 B/B<cond>). */
-#define R_ARM_TLS_GD32 104 /* PC-rel 32 bit for global dynamic
- thread local data */
-#define R_ARM_TLS_LDM32 105 /* PC-rel 32 bit for local dynamic
- thread local data */
-#define R_ARM_TLS_LDO32 106 /* 32 bit offset relative to TLS
- block */
-#define R_ARM_TLS_IE32 107 /* PC-rel 32 bit for GOT entry of
- static TLS block offset */
-#define R_ARM_TLS_LE32 108 /* 32 bit offset relative to static
- TLS block */
-#define R_ARM_TLS_LDO12 109 /* 12 bit relative to TLS
- block (LDR, STR). */
-#define R_ARM_TLS_LE12 110 /* 12 bit relative to static
- TLS block (LDR, STR). */
-#define R_ARM_TLS_IE12GP 111 /* 12 bit GOT entry relative
- to GOT origin (LDR). */
-#define R_ARM_ME_TOO 128 /* Obsolete. */
-#define R_ARM_THM_TLS_DESCSEQ 129
-#define R_ARM_THM_TLS_DESCSEQ16 129
-#define R_ARM_THM_TLS_DESCSEQ32 130
-#define R_ARM_THM_GOT_BREL12 131 /* GOT entry relative to GOT
- origin, 12 bit (Thumb32 LDR). */
-#define R_ARM_IRELATIVE 160
-#define R_ARM_RXPC25 249
-#define R_ARM_RSBREL32 250
-#define R_ARM_THM_RPC22 251
-#define R_ARM_RREL32 252
-#define R_ARM_RABS22 253
-#define R_ARM_RPC24 254
-#define R_ARM_RBASE 255
-/* Keep this the last entry. */
-#define R_ARM_NUM 256
-
-/* IA-64 specific declarations. */
-
-/* Processor specific flags for the Ehdr e_flags field. */
-#define EF_IA_64_MASKOS 0x0000000f /* os-specific flags */
-#define EF_IA_64_ABI64 0x00000010 /* 64-bit ABI */
-#define EF_IA_64_ARCH 0xff000000 /* arch. version mask */
-
-/* Processor specific values for the Phdr p_type field. */
-#define PT_IA_64_ARCHEXT (PT_LOPROC + 0) /* arch extension bits */
-#define PT_IA_64_UNWIND (PT_LOPROC + 1) /* ia64 unwind bits */
-#define PT_IA_64_HP_OPT_ANOT (PT_LOOS + 0x12)
-#define PT_IA_64_HP_HSL_ANOT (PT_LOOS + 0x13)
-#define PT_IA_64_HP_STACK (PT_LOOS + 0x14)
-
-/* Processor specific flags for the Phdr p_flags field. */
-#define PF_IA_64_NORECOV 0x80000000 /* spec insns w/o recovery */
-
-/* Processor specific values for the Shdr sh_type field. */
-#define SHT_IA_64_EXT (SHT_LOPROC + 0) /* extension bits */
-#define SHT_IA_64_UNWIND (SHT_LOPROC + 1) /* unwind bits */
-
-/* Processor specific flags for the Shdr sh_flags field. */
-#define SHF_IA_64_SHORT 0x10000000 /* section near gp */
-#define SHF_IA_64_NORECOV 0x20000000 /* spec insns w/o recovery */
-
-/* Processor specific values for the Dyn d_tag field. */
-#define DT_IA_64_PLT_RESERVE (DT_LOPROC + 0)
-#define DT_IA_64_NUM 1
-
-/* IA-64 relocations. */
-#define R_IA64_NONE 0x00 /* none */
-#define R_IA64_IMM14 0x21 /* symbol + addend, add imm14 */
-#define R_IA64_IMM22 0x22 /* symbol + addend, add imm22 */
-#define R_IA64_IMM64 0x23 /* symbol + addend, mov imm64 */
-#define R_IA64_DIR32MSB 0x24 /* symbol + addend, data4 MSB */
-#define R_IA64_DIR32LSB 0x25 /* symbol + addend, data4 LSB */
-#define R_IA64_DIR64MSB 0x26 /* symbol + addend, data8 MSB */
-#define R_IA64_DIR64LSB 0x27 /* symbol + addend, data8 LSB */
-#define R_IA64_GPREL22 0x2a /* @gprel(sym + add), add imm22 */
-#define R_IA64_GPREL64I 0x2b /* @gprel(sym + add), mov imm64 */
-#define R_IA64_GPREL32MSB 0x2c /* @gprel(sym + add), data4 MSB */
-#define R_IA64_GPREL32LSB 0x2d /* @gprel(sym + add), data4 LSB */
-#define R_IA64_GPREL64MSB 0x2e /* @gprel(sym + add), data8 MSB */
-#define R_IA64_GPREL64LSB 0x2f /* @gprel(sym + add), data8 LSB */
-#define R_IA64_LTOFF22 0x32 /* @ltoff(sym + add), add imm22 */
-#define R_IA64_LTOFF64I 0x33 /* @ltoff(sym + add), mov imm64 */
-#define R_IA64_PLTOFF22 0x3a /* @pltoff(sym + add), add imm22 */
-#define R_IA64_PLTOFF64I 0x3b /* @pltoff(sym + add), mov imm64 */
-#define R_IA64_PLTOFF64MSB 0x3e /* @pltoff(sym + add), data8 MSB */
-#define R_IA64_PLTOFF64LSB 0x3f /* @pltoff(sym + add), data8 LSB */
-#define R_IA64_FPTR64I 0x43 /* @fptr(sym + add), mov imm64 */
-#define R_IA64_FPTR32MSB 0x44 /* @fptr(sym + add), data4 MSB */
-#define R_IA64_FPTR32LSB 0x45 /* @fptr(sym + add), data4 LSB */
-#define R_IA64_FPTR64MSB 0x46 /* @fptr(sym + add), data8 MSB */
-#define R_IA64_FPTR64LSB 0x47 /* @fptr(sym + add), data8 LSB */
-#define R_IA64_PCREL60B 0x48 /* @pcrel(sym + add), brl */
-#define R_IA64_PCREL21B 0x49 /* @pcrel(sym + add), ptb, call */
-#define R_IA64_PCREL21M 0x4a /* @pcrel(sym + add), chk.s */
-#define R_IA64_PCREL21F 0x4b /* @pcrel(sym + add), fchkf */
-#define R_IA64_PCREL32MSB 0x4c /* @pcrel(sym + add), data4 MSB */
-#define R_IA64_PCREL32LSB 0x4d /* @pcrel(sym + add), data4 LSB */
-#define R_IA64_PCREL64MSB 0x4e /* @pcrel(sym + add), data8 MSB */
-#define R_IA64_PCREL64LSB 0x4f /* @pcrel(sym + add), data8 LSB */
-#define R_IA64_LTOFF_FPTR22 0x52 /* @ltoff(@fptr(s+a)), imm22 */
-#define R_IA64_LTOFF_FPTR64I 0x53 /* @ltoff(@fptr(s+a)), imm64 */
-#define R_IA64_LTOFF_FPTR32MSB 0x54 /* @ltoff(@fptr(s+a)), data4 MSB */
-#define R_IA64_LTOFF_FPTR32LSB 0x55 /* @ltoff(@fptr(s+a)), data4 LSB */
-#define R_IA64_LTOFF_FPTR64MSB 0x56 /* @ltoff(@fptr(s+a)), data8 MSB */
-#define R_IA64_LTOFF_FPTR64LSB 0x57 /* @ltoff(@fptr(s+a)), data8 LSB */
-#define R_IA64_SEGREL32MSB 0x5c /* @segrel(sym + add), data4 MSB */
-#define R_IA64_SEGREL32LSB 0x5d /* @segrel(sym + add), data4 LSB */
-#define R_IA64_SEGREL64MSB 0x5e /* @segrel(sym + add), data8 MSB */
-#define R_IA64_SEGREL64LSB 0x5f /* @segrel(sym + add), data8 LSB */
-#define R_IA64_SECREL32MSB 0x64 /* @secrel(sym + add), data4 MSB */
-#define R_IA64_SECREL32LSB 0x65 /* @secrel(sym + add), data4 LSB */
-#define R_IA64_SECREL64MSB 0x66 /* @secrel(sym + add), data8 MSB */
-#define R_IA64_SECREL64LSB 0x67 /* @secrel(sym + add), data8 LSB */
-#define R_IA64_REL32MSB 0x6c /* data 4 + REL */
-#define R_IA64_REL32LSB 0x6d /* data 4 + REL */
-#define R_IA64_REL64MSB 0x6e /* data 8 + REL */
-#define R_IA64_REL64LSB 0x6f /* data 8 + REL */
-#define R_IA64_LTV32MSB 0x74 /* symbol + addend, data4 MSB */
-#define R_IA64_LTV32LSB 0x75 /* symbol + addend, data4 LSB */
-#define R_IA64_LTV64MSB 0x76 /* symbol + addend, data8 MSB */
-#define R_IA64_LTV64LSB 0x77 /* symbol + addend, data8 LSB */
-#define R_IA64_PCREL21BI 0x79 /* @pcrel(sym + add), 21bit inst */
-#define R_IA64_PCREL22 0x7a /* @pcrel(sym + add), 22bit inst */
-#define R_IA64_PCREL64I 0x7b /* @pcrel(sym + add), 64bit inst */
-#define R_IA64_IPLTMSB 0x80 /* dynamic reloc, imported PLT, MSB */
-#define R_IA64_IPLTLSB 0x81 /* dynamic reloc, imported PLT, LSB */
-#define R_IA64_COPY 0x84 /* copy relocation */
-#define R_IA64_SUB 0x85 /* Addend and symbol difference */
-#define R_IA64_LTOFF22X 0x86 /* LTOFF22, relaxable. */
-#define R_IA64_LDXMOV 0x87 /* Use of LTOFF22X. */
-#define R_IA64_TPREL14 0x91 /* @tprel(sym + add), imm14 */
-#define R_IA64_TPREL22 0x92 /* @tprel(sym + add), imm22 */
-#define R_IA64_TPREL64I 0x93 /* @tprel(sym + add), imm64 */
-#define R_IA64_TPREL64MSB 0x96 /* @tprel(sym + add), data8 MSB */
-#define R_IA64_TPREL64LSB 0x97 /* @tprel(sym + add), data8 LSB */
-#define R_IA64_LTOFF_TPREL22 0x9a /* @ltoff(@tprel(s+a)), imm2 */
-#define R_IA64_DTPMOD64MSB 0xa6 /* @dtpmod(sym + add), data8 MSB */
-#define R_IA64_DTPMOD64LSB 0xa7 /* @dtpmod(sym + add), data8 LSB */
-#define R_IA64_LTOFF_DTPMOD22 0xaa /* @ltoff(@dtpmod(sym + add)), imm22 */
-#define R_IA64_DTPREL14 0xb1 /* @dtprel(sym + add), imm14 */
-#define R_IA64_DTPREL22 0xb2 /* @dtprel(sym + add), imm22 */
-#define R_IA64_DTPREL64I 0xb3 /* @dtprel(sym + add), imm64 */
-#define R_IA64_DTPREL32MSB 0xb4 /* @dtprel(sym + add), data4 MSB */
-#define R_IA64_DTPREL32LSB 0xb5 /* @dtprel(sym + add), data4 LSB */
-#define R_IA64_DTPREL64MSB 0xb6 /* @dtprel(sym + add), data8 MSB */
-#define R_IA64_DTPREL64LSB 0xb7 /* @dtprel(sym + add), data8 LSB */
-#define R_IA64_LTOFF_DTPREL22 0xba /* @ltoff(@dtprel(s+a)), imm22 */
-
-/* SH specific declarations */
-
-/* Processor specific flags for the ELF header e_flags field. */
-#define EF_SH_MACH_MASK 0x1f
-#define EF_SH_UNKNOWN 0x0
-#define EF_SH1 0x1
-#define EF_SH2 0x2
-#define EF_SH3 0x3
-#define EF_SH_DSP 0x4
-#define EF_SH3_DSP 0x5
-#define EF_SH4AL_DSP 0x6
-#define EF_SH3E 0x8
-#define EF_SH4 0x9
-#define EF_SH2E 0xb
-#define EF_SH4A 0xc
-#define EF_SH2A 0xd
-#define EF_SH4_NOFPU 0x10
-#define EF_SH4A_NOFPU 0x11
-#define EF_SH4_NOMMU_NOFPU 0x12
-#define EF_SH2A_NOFPU 0x13
-#define EF_SH3_NOMMU 0x14
-#define EF_SH2A_SH4_NOFPU 0x15
-#define EF_SH2A_SH3_NOFPU 0x16
-#define EF_SH2A_SH4 0x17
-#define EF_SH2A_SH3E 0x18
-
-/* SH relocs. */
-#define R_SH_NONE 0
-#define R_SH_DIR32 1
-#define R_SH_REL32 2
-#define R_SH_DIR8WPN 3
-#define R_SH_IND12W 4
-#define R_SH_DIR8WPL 5
-#define R_SH_DIR8WPZ 6
-#define R_SH_DIR8BP 7
-#define R_SH_DIR8W 8
-#define R_SH_DIR8L 9
-#define R_SH_SWITCH16 25
-#define R_SH_SWITCH32 26
-#define R_SH_USES 27
-#define R_SH_COUNT 28
-#define R_SH_ALIGN 29
-#define R_SH_CODE 30
-#define R_SH_DATA 31
-#define R_SH_LABEL 32
-#define R_SH_SWITCH8 33
-#define R_SH_GNU_VTINHERIT 34
-#define R_SH_GNU_VTENTRY 35
-#define R_SH_TLS_GD_32 144
-#define R_SH_TLS_LD_32 145
-#define R_SH_TLS_LDO_32 146
-#define R_SH_TLS_IE_32 147
-#define R_SH_TLS_LE_32 148
-#define R_SH_TLS_DTPMOD32 149
-#define R_SH_TLS_DTPOFF32 150
-#define R_SH_TLS_TPOFF32 151
-#define R_SH_GOT32 160
-#define R_SH_PLT32 161
-#define R_SH_COPY 162
-#define R_SH_GLOB_DAT 163
-#define R_SH_JMP_SLOT 164
-#define R_SH_RELATIVE 165
-#define R_SH_GOTOFF 166
-#define R_SH_GOTPC 167
-/* Keep this the last entry. */
-#define R_SH_NUM 256
-
-/* S/390 specific definitions. */
-
-/* Valid values for the e_flags field. */
-
-#define EF_S390_HIGH_GPRS 0x00000001 /* High GPRs kernel facility needed. */
-
-/* Additional s390 relocs */
-
-#define R_390_NONE 0 /* No reloc. */
-#define R_390_8 1 /* Direct 8 bit. */
-#define R_390_12 2 /* Direct 12 bit. */
-#define R_390_16 3 /* Direct 16 bit. */
-#define R_390_32 4 /* Direct 32 bit. */
-#define R_390_PC32 5 /* PC relative 32 bit. */
-#define R_390_GOT12 6 /* 12 bit GOT offset. */
-#define R_390_GOT32 7 /* 32 bit GOT offset. */
-#define R_390_PLT32 8 /* 32 bit PC relative PLT address. */
-#define R_390_COPY 9 /* Copy symbol at runtime. */
-#define R_390_GLOB_DAT 10 /* Create GOT entry. */
-#define R_390_JMP_SLOT 11 /* Create PLT entry. */
-#define R_390_RELATIVE 12 /* Adjust by program base. */
-#define R_390_GOTOFF32 13 /* 32 bit offset to GOT. */
-#define R_390_GOTPC 14 /* 32 bit PC relative offset to GOT. */
-#define R_390_GOT16 15 /* 16 bit GOT offset. */
-#define R_390_PC16 16 /* PC relative 16 bit. */
-#define R_390_PC16DBL 17 /* PC relative 16 bit shifted by 1. */
-#define R_390_PLT16DBL 18 /* 16 bit PC rel. PLT shifted by 1. */
-#define R_390_PC32DBL 19 /* PC relative 32 bit shifted by 1. */
-#define R_390_PLT32DBL 20 /* 32 bit PC rel. PLT shifted by 1. */
-#define R_390_GOTPCDBL 21 /* 32 bit PC rel. GOT shifted by 1. */
-#define R_390_64 22 /* Direct 64 bit. */
-#define R_390_PC64 23 /* PC relative 64 bit. */
-#define R_390_GOT64 24 /* 64 bit GOT offset. */
-#define R_390_PLT64 25 /* 64 bit PC relative PLT address. */
-#define R_390_GOTENT 26 /* 32 bit PC rel. to GOT entry >> 1. */
-#define R_390_GOTOFF16 27 /* 16 bit offset to GOT. */
-#define R_390_GOTOFF64 28 /* 64 bit offset to GOT. */
-#define R_390_GOTPLT12 29 /* 12 bit offset to jump slot. */
-#define R_390_GOTPLT16 30 /* 16 bit offset to jump slot. */
-#define R_390_GOTPLT32 31 /* 32 bit offset to jump slot. */
-#define R_390_GOTPLT64 32 /* 64 bit offset to jump slot. */
-#define R_390_GOTPLTENT 33 /* 32 bit rel. offset to jump slot. */
-#define R_390_PLTOFF16 34 /* 16 bit offset from GOT to PLT. */
-#define R_390_PLTOFF32 35 /* 32 bit offset from GOT to PLT. */
-#define R_390_PLTOFF64 36 /* 16 bit offset from GOT to PLT. */
-#define R_390_TLS_LOAD 37 /* Tag for load insn in TLS code. */
-#define R_390_TLS_GDCALL 38 /* Tag for function call in general
- dynamic TLS code. */
-#define R_390_TLS_LDCALL 39 /* Tag for function call in local
- dynamic TLS code. */
-#define R_390_TLS_GD32 40 /* Direct 32 bit for general dynamic
- thread local data. */
-#define R_390_TLS_GD64 41 /* Direct 64 bit for general dynamic
- thread local data. */
-#define R_390_TLS_GOTIE12 42 /* 12 bit GOT offset for static TLS
- block offset. */
-#define R_390_TLS_GOTIE32 43 /* 32 bit GOT offset for static TLS
- block offset. */
-#define R_390_TLS_GOTIE64 44 /* 64 bit GOT offset for static TLS
- block offset. */
-#define R_390_TLS_LDM32 45 /* Direct 32 bit for local dynamic
- thread local data in LE code. */
-#define R_390_TLS_LDM64 46 /* Direct 64 bit for local dynamic
- thread local data in LE code. */
-#define R_390_TLS_IE32 47 /* 32 bit address of GOT entry for
- negated static TLS block offset. */
-#define R_390_TLS_IE64 48 /* 64 bit address of GOT entry for
- negated static TLS block offset. */
-#define R_390_TLS_IEENT 49 /* 32 bit rel. offset to GOT entry for
- negated static TLS block offset. */
-#define R_390_TLS_LE32 50 /* 32 bit negated offset relative to
- static TLS block. */
-#define R_390_TLS_LE64 51 /* 64 bit negated offset relative to
- static TLS block. */
-#define R_390_TLS_LDO32 52 /* 32 bit offset relative to TLS
- block. */
-#define R_390_TLS_LDO64 53 /* 64 bit offset relative to TLS
- block. */
-#define R_390_TLS_DTPMOD 54 /* ID of module containing symbol. */
-#define R_390_TLS_DTPOFF 55 /* Offset in TLS block. */
-#define R_390_TLS_TPOFF 56 /* Negated offset in static TLS
- block. */
-#define R_390_20 57 /* Direct 20 bit. */
-#define R_390_GOT20 58 /* 20 bit GOT offset. */
-#define R_390_GOTPLT20 59 /* 20 bit offset to jump slot. */
-#define R_390_TLS_GOTIE20 60 /* 20 bit GOT offset for static TLS
- block offset. */
-#define R_390_IRELATIVE 61 /* STT_GNU_IFUNC relocation. */
-/* Keep this the last entry. */
-#define R_390_NUM 62
-
-
-/* CRIS relocations. */
-#define R_CRIS_NONE 0
-#define R_CRIS_8 1
-#define R_CRIS_16 2
-#define R_CRIS_32 3
-#define R_CRIS_8_PCREL 4
-#define R_CRIS_16_PCREL 5
-#define R_CRIS_32_PCREL 6
-#define R_CRIS_GNU_VTINHERIT 7
-#define R_CRIS_GNU_VTENTRY 8
-#define R_CRIS_COPY 9
-#define R_CRIS_GLOB_DAT 10
-#define R_CRIS_JUMP_SLOT 11
-#define R_CRIS_RELATIVE 12
-#define R_CRIS_16_GOT 13
-#define R_CRIS_32_GOT 14
-#define R_CRIS_16_GOTPLT 15
-#define R_CRIS_32_GOTPLT 16
-#define R_CRIS_32_GOTREL 17
-#define R_CRIS_32_PLT_GOTREL 18
-#define R_CRIS_32_PLT_PCREL 19
-
-#define R_CRIS_NUM 20
-
-
-/* AMD x86-64 relocations. */
-#define R_X86_64_NONE 0 /* No reloc */
-#define R_X86_64_64 1 /* Direct 64 bit */
-#define R_X86_64_PC32 2 /* PC relative 32 bit signed */
-#define R_X86_64_GOT32 3 /* 32 bit GOT entry */
-#define R_X86_64_PLT32 4 /* 32 bit PLT address */
-#define R_X86_64_COPY 5 /* Copy symbol at runtime */
-#define R_X86_64_GLOB_DAT 6 /* Create GOT entry */
-#define R_X86_64_JUMP_SLOT 7 /* Create PLT entry */
-#define R_X86_64_RELATIVE 8 /* Adjust by program base */
-#define R_X86_64_GOTPCREL 9 /* 32 bit signed PC relative
- offset to GOT */
-#define R_X86_64_32 10 /* Direct 32 bit zero extended */
-#define R_X86_64_32S 11 /* Direct 32 bit sign extended */
-#define R_X86_64_16 12 /* Direct 16 bit zero extended */
-#define R_X86_64_PC16 13 /* 16 bit sign extended pc relative */
-#define R_X86_64_8 14 /* Direct 8 bit sign extended */
-#define R_X86_64_PC8 15 /* 8 bit sign extended pc relative */
-#define R_X86_64_DTPMOD64 16 /* ID of module containing symbol */
-#define R_X86_64_DTPOFF64 17 /* Offset in module's TLS block */
-#define R_X86_64_TPOFF64 18 /* Offset in initial TLS block */
-#define R_X86_64_TLSGD 19 /* 32 bit signed PC relative offset
- to two GOT entries for GD symbol */
-#define R_X86_64_TLSLD 20 /* 32 bit signed PC relative offset
- to two GOT entries for LD symbol */
-#define R_X86_64_DTPOFF32 21 /* Offset in TLS block */
-#define R_X86_64_GOTTPOFF 22 /* 32 bit signed PC relative offset
- to GOT entry for IE symbol */
-#define R_X86_64_TPOFF32 23 /* Offset in initial TLS block */
-#define R_X86_64_PC64 24 /* PC relative 64 bit */
-#define R_X86_64_GOTOFF64 25 /* 64 bit offset to GOT */
-#define R_X86_64_GOTPC32 26 /* 32 bit signed pc relative
- offset to GOT */
-#define R_X86_64_GOT64 27 /* 64-bit GOT entry offset */
-#define R_X86_64_GOTPCREL64 28 /* 64-bit PC relative offset
- to GOT entry */
-#define R_X86_64_GOTPC64 29 /* 64-bit PC relative offset to GOT */
-#define R_X86_64_GOTPLT64 30 /* like GOT64, says PLT entry needed */
-#define R_X86_64_PLTOFF64 31 /* 64-bit GOT relative offset
- to PLT entry */
-#define R_X86_64_SIZE32 32 /* Size of symbol plus 32-bit addend */
-#define R_X86_64_SIZE64 33 /* Size of symbol plus 64-bit addend */
-#define R_X86_64_GOTPC32_TLSDESC 34 /* GOT offset for TLS descriptor. */
-#define R_X86_64_TLSDESC_CALL 35 /* Marker for call through TLS
- descriptor. */
-#define R_X86_64_TLSDESC 36 /* TLS descriptor. */
-#define R_X86_64_IRELATIVE 37 /* Adjust indirectly by program base */
-#define R_X86_64_RELATIVE64 38 /* 64-bit adjust by program base */
-
-#define R_X86_64_NUM 39
-
-
-/* AM33 relocations. */
-#define R_MN10300_NONE 0 /* No reloc. */
-#define R_MN10300_32 1 /* Direct 32 bit. */
-#define R_MN10300_16 2 /* Direct 16 bit. */
-#define R_MN10300_8 3 /* Direct 8 bit. */
-#define R_MN10300_PCREL32 4 /* PC-relative 32-bit. */
-#define R_MN10300_PCREL16 5 /* PC-relative 16-bit signed. */
-#define R_MN10300_PCREL8 6 /* PC-relative 8-bit signed. */
-#define R_MN10300_GNU_VTINHERIT 7 /* Ancient C++ vtable garbage... */
-#define R_MN10300_GNU_VTENTRY 8 /* ... collection annotation. */
-#define R_MN10300_24 9 /* Direct 24 bit. */
-#define R_MN10300_GOTPC32 10 /* 32-bit PCrel offset to GOT. */
-#define R_MN10300_GOTPC16 11 /* 16-bit PCrel offset to GOT. */
-#define R_MN10300_GOTOFF32 12 /* 32-bit offset from GOT. */
-#define R_MN10300_GOTOFF24 13 /* 24-bit offset from GOT. */
-#define R_MN10300_GOTOFF16 14 /* 16-bit offset from GOT. */
-#define R_MN10300_PLT32 15 /* 32-bit PCrel to PLT entry. */
-#define R_MN10300_PLT16 16 /* 16-bit PCrel to PLT entry. */
-#define R_MN10300_GOT32 17 /* 32-bit offset to GOT entry. */
-#define R_MN10300_GOT24 18 /* 24-bit offset to GOT entry. */
-#define R_MN10300_GOT16 19 /* 16-bit offset to GOT entry. */
-#define R_MN10300_COPY 20 /* Copy symbol at runtime. */
-#define R_MN10300_GLOB_DAT 21 /* Create GOT entry. */
-#define R_MN10300_JMP_SLOT 22 /* Create PLT entry. */
-#define R_MN10300_RELATIVE 23 /* Adjust by program base. */
-#define R_MN10300_TLS_GD 24 /* 32-bit offset for global dynamic. */
-#define R_MN10300_TLS_LD 25 /* 32-bit offset for local dynamic. */
-#define R_MN10300_TLS_LDO 26 /* Module-relative offset. */
-#define R_MN10300_TLS_GOTIE 27 /* GOT offset for static TLS block
- offset. */
-#define R_MN10300_TLS_IE 28 /* GOT address for static TLS block
- offset. */
-#define R_MN10300_TLS_LE 29 /* Offset relative to static TLS
- block. */
-#define R_MN10300_TLS_DTPMOD 30 /* ID of module containing symbol. */
-#define R_MN10300_TLS_DTPOFF 31 /* Offset in module TLS block. */
-#define R_MN10300_TLS_TPOFF 32 /* Offset in static TLS block. */
-#define R_MN10300_SYM_DIFF 33 /* Adjustment for next reloc as needed
- by linker relaxation. */
-#define R_MN10300_ALIGN 34 /* Alignment requirement for linker
- relaxation. */
-#define R_MN10300_NUM 35
-
-
-/* M32R relocs. */
-#define R_M32R_NONE 0 /* No reloc. */
-#define R_M32R_16 1 /* Direct 16 bit. */
-#define R_M32R_32 2 /* Direct 32 bit. */
-#define R_M32R_24 3 /* Direct 24 bit. */
-#define R_M32R_10_PCREL 4 /* PC relative 10 bit shifted. */
-#define R_M32R_18_PCREL 5 /* PC relative 18 bit shifted. */
-#define R_M32R_26_PCREL 6 /* PC relative 26 bit shifted. */
-#define R_M32R_HI16_ULO 7 /* High 16 bit with unsigned low. */
-#define R_M32R_HI16_SLO 8 /* High 16 bit with signed low. */
-#define R_M32R_LO16 9 /* Low 16 bit. */
-#define R_M32R_SDA16 10 /* 16 bit offset in SDA. */
-#define R_M32R_GNU_VTINHERIT 11
-#define R_M32R_GNU_VTENTRY 12
-/* M32R relocs use SHT_RELA. */
-#define R_M32R_16_RELA 33 /* Direct 16 bit. */
-#define R_M32R_32_RELA 34 /* Direct 32 bit. */
-#define R_M32R_24_RELA 35 /* Direct 24 bit. */
-#define R_M32R_10_PCREL_RELA 36 /* PC relative 10 bit shifted. */
-#define R_M32R_18_PCREL_RELA 37 /* PC relative 18 bit shifted. */
-#define R_M32R_26_PCREL_RELA 38 /* PC relative 26 bit shifted. */
-#define R_M32R_HI16_ULO_RELA 39 /* High 16 bit with unsigned low */
-#define R_M32R_HI16_SLO_RELA 40 /* High 16 bit with signed low */
-#define R_M32R_LO16_RELA 41 /* Low 16 bit */
-#define R_M32R_SDA16_RELA 42 /* 16 bit offset in SDA */
-#define R_M32R_RELA_GNU_VTINHERIT 43
-#define R_M32R_RELA_GNU_VTENTRY 44
-#define R_M32R_REL32 45 /* PC relative 32 bit. */
-
-#define R_M32R_GOT24 48 /* 24 bit GOT entry */
-#define R_M32R_26_PLTREL 49 /* 26 bit PC relative to PLT shifted */
-#define R_M32R_COPY 50 /* Copy symbol at runtime */
-#define R_M32R_GLOB_DAT 51 /* Create GOT entry */
-#define R_M32R_JMP_SLOT 52 /* Create PLT entry */
-#define R_M32R_RELATIVE 53 /* Adjust by program base */
-#define R_M32R_GOTOFF 54 /* 24 bit offset to GOT */
-#define R_M32R_GOTPC24 55 /* 24 bit PC relative offset to GOT */
-#define R_M32R_GOT16_HI_ULO 56 /* High 16 bit GOT entry with unsigned
- low */
-#define R_M32R_GOT16_HI_SLO 57 /* High 16 bit GOT entry with signed
- low */
-#define R_M32R_GOT16_LO 58 /* Low 16 bit GOT entry */
-#define R_M32R_GOTPC_HI_ULO 59 /* High 16 bit PC relative offset to
- GOT with unsigned low */
-#define R_M32R_GOTPC_HI_SLO 60 /* High 16 bit PC relative offset to
- GOT with signed low */
-#define R_M32R_GOTPC_LO 61 /* Low 16 bit PC relative offset to
- GOT */
-#define R_M32R_GOTOFF_HI_ULO 62 /* High 16 bit offset to GOT
- with unsigned low */
-#define R_M32R_GOTOFF_HI_SLO 63 /* High 16 bit offset to GOT
- with signed low */
-#define R_M32R_GOTOFF_LO 64 /* Low 16 bit offset to GOT */
-#define R_M32R_NUM 256 /* Keep this the last entry. */
-
-/* MicroBlaze relocations */
-#define R_MICROBLAZE_NONE 0 /* No reloc. */
-#define R_MICROBLAZE_32 1 /* Direct 32 bit. */
-#define R_MICROBLAZE_32_PCREL 2 /* PC relative 32 bit. */
-#define R_MICROBLAZE_64_PCREL 3 /* PC relative 64 bit. */
-#define R_MICROBLAZE_32_PCREL_LO 4 /* Low 16 bits of PCREL32. */
-#define R_MICROBLAZE_64 5 /* Direct 64 bit. */
-#define R_MICROBLAZE_32_LO 6 /* Low 16 bit. */
-#define R_MICROBLAZE_SRO32 7 /* Read-only small data area. */
-#define R_MICROBLAZE_SRW32 8 /* Read-write small data area. */
-#define R_MICROBLAZE_64_NONE 9 /* No reloc. */
-#define R_MICROBLAZE_32_SYM_OP_SYM 10 /* Symbol Op Symbol relocation. */
-#define R_MICROBLAZE_GNU_VTINHERIT 11 /* GNU C++ vtable hierarchy. */
-#define R_MICROBLAZE_GNU_VTENTRY 12 /* GNU C++ vtable member usage. */
-#define R_MICROBLAZE_GOTPC_64 13 /* PC-relative GOT offset. */
-#define R_MICROBLAZE_GOT_64 14 /* GOT entry offset. */
-#define R_MICROBLAZE_PLT_64 15 /* PLT offset (PC-relative). */
-#define R_MICROBLAZE_REL 16 /* Adjust by program base. */
-#define R_MICROBLAZE_JUMP_SLOT 17 /* Create PLT entry. */
-#define R_MICROBLAZE_GLOB_DAT 18 /* Create GOT entry. */
-#define R_MICROBLAZE_GOTOFF_64 19 /* 64 bit offset to GOT. */
-#define R_MICROBLAZE_GOTOFF_32 20 /* 32 bit offset to GOT. */
-#define R_MICROBLAZE_COPY 21 /* Runtime copy. */
-#define R_MICROBLAZE_TLS 22 /* TLS Reloc. */
-#define R_MICROBLAZE_TLSGD 23 /* TLS General Dynamic. */
-#define R_MICROBLAZE_TLSLD 24 /* TLS Local Dynamic. */
-#define R_MICROBLAZE_TLSDTPMOD32 25 /* TLS Module ID. */
-#define R_MICROBLAZE_TLSDTPREL32 26 /* TLS Offset Within TLS Block. */
-#define R_MICROBLAZE_TLSDTPREL64 27 /* TLS Offset Within TLS Block. */
-#define R_MICROBLAZE_TLSGOTTPREL32 28 /* TLS Offset From Thread Pointer. */
-#define R_MICROBLAZE_TLSTPREL32 29 /* TLS Offset From Thread Pointer. */
-
-/* TILEPro relocations. */
-#define R_TILEPRO_NONE 0 /* No reloc */
-#define R_TILEPRO_32 1 /* Direct 32 bit */
-#define R_TILEPRO_16 2 /* Direct 16 bit */
-#define R_TILEPRO_8 3 /* Direct 8 bit */
-#define R_TILEPRO_32_PCREL 4 /* PC relative 32 bit */
-#define R_TILEPRO_16_PCREL 5 /* PC relative 16 bit */
-#define R_TILEPRO_8_PCREL 6 /* PC relative 8 bit */
-#define R_TILEPRO_LO16 7 /* Low 16 bit */
-#define R_TILEPRO_HI16 8 /* High 16 bit */
-#define R_TILEPRO_HA16 9 /* High 16 bit, adjusted */
-#define R_TILEPRO_COPY 10 /* Copy relocation */
-#define R_TILEPRO_GLOB_DAT 11 /* Create GOT entry */
-#define R_TILEPRO_JMP_SLOT 12 /* Create PLT entry */
-#define R_TILEPRO_RELATIVE 13 /* Adjust by program base */
-#define R_TILEPRO_BROFF_X1 14 /* X1 pipe branch offset */
-#define R_TILEPRO_JOFFLONG_X1 15 /* X1 pipe jump offset */
-#define R_TILEPRO_JOFFLONG_X1_PLT 16 /* X1 pipe jump offset to PLT */
-#define R_TILEPRO_IMM8_X0 17 /* X0 pipe 8-bit */
-#define R_TILEPRO_IMM8_Y0 18 /* Y0 pipe 8-bit */
-#define R_TILEPRO_IMM8_X1 19 /* X1 pipe 8-bit */
-#define R_TILEPRO_IMM8_Y1 20 /* Y1 pipe 8-bit */
-#define R_TILEPRO_MT_IMM15_X1 21 /* X1 pipe mtspr */
-#define R_TILEPRO_MF_IMM15_X1 22 /* X1 pipe mfspr */
-#define R_TILEPRO_IMM16_X0 23 /* X0 pipe 16-bit */
-#define R_TILEPRO_IMM16_X1 24 /* X1 pipe 16-bit */
-#define R_TILEPRO_IMM16_X0_LO 25 /* X0 pipe low 16-bit */
-#define R_TILEPRO_IMM16_X1_LO 26 /* X1 pipe low 16-bit */
-#define R_TILEPRO_IMM16_X0_HI 27 /* X0 pipe high 16-bit */
-#define R_TILEPRO_IMM16_X1_HI 28 /* X1 pipe high 16-bit */
-#define R_TILEPRO_IMM16_X0_HA 29 /* X0 pipe high 16-bit, adjusted */
-#define R_TILEPRO_IMM16_X1_HA 30 /* X1 pipe high 16-bit, adjusted */
-#define R_TILEPRO_IMM16_X0_PCREL 31 /* X0 pipe PC relative 16 bit */
-#define R_TILEPRO_IMM16_X1_PCREL 32 /* X1 pipe PC relative 16 bit */
-#define R_TILEPRO_IMM16_X0_LO_PCREL 33 /* X0 pipe PC relative low 16 bit */
-#define R_TILEPRO_IMM16_X1_LO_PCREL 34 /* X1 pipe PC relative low 16 bit */
-#define R_TILEPRO_IMM16_X0_HI_PCREL 35 /* X0 pipe PC relative high 16 bit */
-#define R_TILEPRO_IMM16_X1_HI_PCREL 36 /* X1 pipe PC relative high 16 bit */
-#define R_TILEPRO_IMM16_X0_HA_PCREL 37 /* X0 pipe PC relative ha() 16 bit */
-#define R_TILEPRO_IMM16_X1_HA_PCREL 38 /* X1 pipe PC relative ha() 16 bit */
-#define R_TILEPRO_IMM16_X0_GOT 39 /* X0 pipe 16-bit GOT offset */
-#define R_TILEPRO_IMM16_X1_GOT 40 /* X1 pipe 16-bit GOT offset */
-#define R_TILEPRO_IMM16_X0_GOT_LO 41 /* X0 pipe low 16-bit GOT offset */
-#define R_TILEPRO_IMM16_X1_GOT_LO 42 /* X1 pipe low 16-bit GOT offset */
-#define R_TILEPRO_IMM16_X0_GOT_HI 43 /* X0 pipe high 16-bit GOT offset */
-#define R_TILEPRO_IMM16_X1_GOT_HI 44 /* X1 pipe high 16-bit GOT offset */
-#define R_TILEPRO_IMM16_X0_GOT_HA 45 /* X0 pipe ha() 16-bit GOT offset */
-#define R_TILEPRO_IMM16_X1_GOT_HA 46 /* X1 pipe ha() 16-bit GOT offset */
-#define R_TILEPRO_MMSTART_X0 47 /* X0 pipe mm "start" */
-#define R_TILEPRO_MMEND_X0 48 /* X0 pipe mm "end" */
-#define R_TILEPRO_MMSTART_X1 49 /* X1 pipe mm "start" */
-#define R_TILEPRO_MMEND_X1 50 /* X1 pipe mm "end" */
-#define R_TILEPRO_SHAMT_X0 51 /* X0 pipe shift amount */
-#define R_TILEPRO_SHAMT_X1 52 /* X1 pipe shift amount */
-#define R_TILEPRO_SHAMT_Y0 53 /* Y0 pipe shift amount */
-#define R_TILEPRO_SHAMT_Y1 54 /* Y1 pipe shift amount */
-#define R_TILEPRO_DEST_IMM8_X1 55 /* X1 pipe destination 8-bit */
-/* Relocs 56-59 are currently not defined. */
-#define R_TILEPRO_TLS_GD_CALL 60 /* "jal" for TLS GD */
-#define R_TILEPRO_IMM8_X0_TLS_GD_ADD 61 /* X0 pipe "addi" for TLS GD */
-#define R_TILEPRO_IMM8_X1_TLS_GD_ADD 62 /* X1 pipe "addi" for TLS GD */
-#define R_TILEPRO_IMM8_Y0_TLS_GD_ADD 63 /* Y0 pipe "addi" for TLS GD */
-#define R_TILEPRO_IMM8_Y1_TLS_GD_ADD 64 /* Y1 pipe "addi" for TLS GD */
-#define R_TILEPRO_TLS_IE_LOAD 65 /* "lw_tls" for TLS IE */
-#define R_TILEPRO_IMM16_X0_TLS_GD 66 /* X0 pipe 16-bit TLS GD offset */
-#define R_TILEPRO_IMM16_X1_TLS_GD 67 /* X1 pipe 16-bit TLS GD offset */
-#define R_TILEPRO_IMM16_X0_TLS_GD_LO 68 /* X0 pipe low 16-bit TLS GD offset */
-#define R_TILEPRO_IMM16_X1_TLS_GD_LO 69 /* X1 pipe low 16-bit TLS GD offset */
-#define R_TILEPRO_IMM16_X0_TLS_GD_HI 70 /* X0 pipe high 16-bit TLS GD offset */
-#define R_TILEPRO_IMM16_X1_TLS_GD_HI 71 /* X1 pipe high 16-bit TLS GD offset */
-#define R_TILEPRO_IMM16_X0_TLS_GD_HA 72 /* X0 pipe ha() 16-bit TLS GD offset */
-#define R_TILEPRO_IMM16_X1_TLS_GD_HA 73 /* X1 pipe ha() 16-bit TLS GD offset */
-#define R_TILEPRO_IMM16_X0_TLS_IE 74 /* X0 pipe 16-bit TLS IE offset */
-#define R_TILEPRO_IMM16_X1_TLS_IE 75 /* X1 pipe 16-bit TLS IE offset */
-#define R_TILEPRO_IMM16_X0_TLS_IE_LO 76 /* X0 pipe low 16-bit TLS IE offset */
-#define R_TILEPRO_IMM16_X1_TLS_IE_LO 77 /* X1 pipe low 16-bit TLS IE offset */
-#define R_TILEPRO_IMM16_X0_TLS_IE_HI 78 /* X0 pipe high 16-bit TLS IE offset */
-#define R_TILEPRO_IMM16_X1_TLS_IE_HI 79 /* X1 pipe high 16-bit TLS IE offset */
-#define R_TILEPRO_IMM16_X0_TLS_IE_HA 80 /* X0 pipe ha() 16-bit TLS IE offset */
-#define R_TILEPRO_IMM16_X1_TLS_IE_HA 81 /* X1 pipe ha() 16-bit TLS IE offset */
-#define R_TILEPRO_TLS_DTPMOD32 82 /* ID of module containing symbol */
-#define R_TILEPRO_TLS_DTPOFF32 83 /* Offset in TLS block */
-#define R_TILEPRO_TLS_TPOFF32 84 /* Offset in static TLS block */
-#define R_TILEPRO_IMM16_X0_TLS_LE 85 /* X0 pipe 16-bit TLS LE offset */
-#define R_TILEPRO_IMM16_X1_TLS_LE 86 /* X1 pipe 16-bit TLS LE offset */
-#define R_TILEPRO_IMM16_X0_TLS_LE_LO 87 /* X0 pipe low 16-bit TLS LE offset */
-#define R_TILEPRO_IMM16_X1_TLS_LE_LO 88 /* X1 pipe low 16-bit TLS LE offset */
-#define R_TILEPRO_IMM16_X0_TLS_LE_HI 89 /* X0 pipe high 16-bit TLS LE offset */
-#define R_TILEPRO_IMM16_X1_TLS_LE_HI 90 /* X1 pipe high 16-bit TLS LE offset */
-#define R_TILEPRO_IMM16_X0_TLS_LE_HA 91 /* X0 pipe ha() 16-bit TLS LE offset */
-#define R_TILEPRO_IMM16_X1_TLS_LE_HA 92 /* X1 pipe ha() 16-bit TLS LE offset */
-
-#define R_TILEPRO_GNU_VTINHERIT 128 /* GNU C++ vtable hierarchy */
-#define R_TILEPRO_GNU_VTENTRY 129 /* GNU C++ vtable member usage */
-
-#define R_TILEPRO_NUM 130
-
-
-/* TILE-Gx relocations. */
-#define R_TILEGX_NONE 0 /* No reloc */
-#define R_TILEGX_64 1 /* Direct 64 bit */
-#define R_TILEGX_32 2 /* Direct 32 bit */
-#define R_TILEGX_16 3 /* Direct 16 bit */
-#define R_TILEGX_8 4 /* Direct 8 bit */
-#define R_TILEGX_64_PCREL 5 /* PC relative 64 bit */
-#define R_TILEGX_32_PCREL 6 /* PC relative 32 bit */
-#define R_TILEGX_16_PCREL 7 /* PC relative 16 bit */
-#define R_TILEGX_8_PCREL 8 /* PC relative 8 bit */
-#define R_TILEGX_HW0 9 /* hword 0 16-bit */
-#define R_TILEGX_HW1 10 /* hword 1 16-bit */
-#define R_TILEGX_HW2 11 /* hword 2 16-bit */
-#define R_TILEGX_HW3 12 /* hword 3 16-bit */
-#define R_TILEGX_HW0_LAST 13 /* last hword 0 16-bit */
-#define R_TILEGX_HW1_LAST 14 /* last hword 1 16-bit */
-#define R_TILEGX_HW2_LAST 15 /* last hword 2 16-bit */
-#define R_TILEGX_COPY 16 /* Copy relocation */
-#define R_TILEGX_GLOB_DAT 17 /* Create GOT entry */
-#define R_TILEGX_JMP_SLOT 18 /* Create PLT entry */
-#define R_TILEGX_RELATIVE 19 /* Adjust by program base */
-#define R_TILEGX_BROFF_X1 20 /* X1 pipe branch offset */
-#define R_TILEGX_JUMPOFF_X1 21 /* X1 pipe jump offset */
-#define R_TILEGX_JUMPOFF_X1_PLT 22 /* X1 pipe jump offset to PLT */
-#define R_TILEGX_IMM8_X0 23 /* X0 pipe 8-bit */
-#define R_TILEGX_IMM8_Y0 24 /* Y0 pipe 8-bit */
-#define R_TILEGX_IMM8_X1 25 /* X1 pipe 8-bit */
-#define R_TILEGX_IMM8_Y1 26 /* Y1 pipe 8-bit */
-#define R_TILEGX_DEST_IMM8_X1 27 /* X1 pipe destination 8-bit */
-#define R_TILEGX_MT_IMM14_X1 28 /* X1 pipe mtspr */
-#define R_TILEGX_MF_IMM14_X1 29 /* X1 pipe mfspr */
-#define R_TILEGX_MMSTART_X0 30 /* X0 pipe mm "start" */
-#define R_TILEGX_MMEND_X0 31 /* X0 pipe mm "end" */
-#define R_TILEGX_SHAMT_X0 32 /* X0 pipe shift amount */
-#define R_TILEGX_SHAMT_X1 33 /* X1 pipe shift amount */
-#define R_TILEGX_SHAMT_Y0 34 /* Y0 pipe shift amount */
-#define R_TILEGX_SHAMT_Y1 35 /* Y1 pipe shift amount */
-#define R_TILEGX_IMM16_X0_HW0 36 /* X0 pipe hword 0 */
-#define R_TILEGX_IMM16_X1_HW0 37 /* X1 pipe hword 0 */
-#define R_TILEGX_IMM16_X0_HW1 38 /* X0 pipe hword 1 */
-#define R_TILEGX_IMM16_X1_HW1 39 /* X1 pipe hword 1 */
-#define R_TILEGX_IMM16_X0_HW2 40 /* X0 pipe hword 2 */
-#define R_TILEGX_IMM16_X1_HW2 41 /* X1 pipe hword 2 */
-#define R_TILEGX_IMM16_X0_HW3 42 /* X0 pipe hword 3 */
-#define R_TILEGX_IMM16_X1_HW3 43 /* X1 pipe hword 3 */
-#define R_TILEGX_IMM16_X0_HW0_LAST 44 /* X0 pipe last hword 0 */
-#define R_TILEGX_IMM16_X1_HW0_LAST 45 /* X1 pipe last hword 0 */
-#define R_TILEGX_IMM16_X0_HW1_LAST 46 /* X0 pipe last hword 1 */
-#define R_TILEGX_IMM16_X1_HW1_LAST 47 /* X1 pipe last hword 1 */
-#define R_TILEGX_IMM16_X0_HW2_LAST 48 /* X0 pipe last hword 2 */
-#define R_TILEGX_IMM16_X1_HW2_LAST 49 /* X1 pipe last hword 2 */
-#define R_TILEGX_IMM16_X0_HW0_PCREL 50 /* X0 pipe PC relative hword 0 */
-#define R_TILEGX_IMM16_X1_HW0_PCREL 51 /* X1 pipe PC relative hword 0 */
-#define R_TILEGX_IMM16_X0_HW1_PCREL 52 /* X0 pipe PC relative hword 1 */
-#define R_TILEGX_IMM16_X1_HW1_PCREL 53 /* X1 pipe PC relative hword 1 */
-#define R_TILEGX_IMM16_X0_HW2_PCREL 54 /* X0 pipe PC relative hword 2 */
-#define R_TILEGX_IMM16_X1_HW2_PCREL 55 /* X1 pipe PC relative hword 2 */
-#define R_TILEGX_IMM16_X0_HW3_PCREL 56 /* X0 pipe PC relative hword 3 */
-#define R_TILEGX_IMM16_X1_HW3_PCREL 57 /* X1 pipe PC relative hword 3 */
-#define R_TILEGX_IMM16_X0_HW0_LAST_PCREL 58 /* X0 pipe PC-rel last hword 0 */
-#define R_TILEGX_IMM16_X1_HW0_LAST_PCREL 59 /* X1 pipe PC-rel last hword 0 */
-#define R_TILEGX_IMM16_X0_HW1_LAST_PCREL 60 /* X0 pipe PC-rel last hword 1 */
-#define R_TILEGX_IMM16_X1_HW1_LAST_PCREL 61 /* X1 pipe PC-rel last hword 1 */
-#define R_TILEGX_IMM16_X0_HW2_LAST_PCREL 62 /* X0 pipe PC-rel last hword 2 */
-#define R_TILEGX_IMM16_X1_HW2_LAST_PCREL 63 /* X1 pipe PC-rel last hword 2 */
-#define R_TILEGX_IMM16_X0_HW0_GOT 64 /* X0 pipe hword 0 GOT offset */
-#define R_TILEGX_IMM16_X1_HW0_GOT 65 /* X1 pipe hword 0 GOT offset */
-#define R_TILEGX_IMM16_X0_HW0_PLT_PCREL 66 /* X0 pipe PC-rel PLT hword 0 */
-#define R_TILEGX_IMM16_X1_HW0_PLT_PCREL 67 /* X1 pipe PC-rel PLT hword 0 */
-#define R_TILEGX_IMM16_X0_HW1_PLT_PCREL 68 /* X0 pipe PC-rel PLT hword 1 */
-#define R_TILEGX_IMM16_X1_HW1_PLT_PCREL 69 /* X1 pipe PC-rel PLT hword 1 */
-#define R_TILEGX_IMM16_X0_HW2_PLT_PCREL 70 /* X0 pipe PC-rel PLT hword 2 */
-#define R_TILEGX_IMM16_X1_HW2_PLT_PCREL 71 /* X1 pipe PC-rel PLT hword 2 */
-#define R_TILEGX_IMM16_X0_HW0_LAST_GOT 72 /* X0 pipe last hword 0 GOT offset */
-#define R_TILEGX_IMM16_X1_HW0_LAST_GOT 73 /* X1 pipe last hword 0 GOT offset */
-#define R_TILEGX_IMM16_X0_HW1_LAST_GOT 74 /* X0 pipe last hword 1 GOT offset */
-#define R_TILEGX_IMM16_X1_HW1_LAST_GOT 75 /* X1 pipe last hword 1 GOT offset */
-#define R_TILEGX_IMM16_X0_HW3_PLT_PCREL 76 /* X0 pipe PC-rel PLT hword 3 */
-#define R_TILEGX_IMM16_X1_HW3_PLT_PCREL 77 /* X1 pipe PC-rel PLT hword 3 */
-#define R_TILEGX_IMM16_X0_HW0_TLS_GD 78 /* X0 pipe hword 0 TLS GD offset */
-#define R_TILEGX_IMM16_X1_HW0_TLS_GD 79 /* X1 pipe hword 0 TLS GD offset */
-#define R_TILEGX_IMM16_X0_HW0_TLS_LE 80 /* X0 pipe hword 0 TLS LE offset */
-#define R_TILEGX_IMM16_X1_HW0_TLS_LE 81 /* X1 pipe hword 0 TLS LE offset */
-#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE 82 /* X0 pipe last hword 0 LE off */
-#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE 83 /* X1 pipe last hword 0 LE off */
-#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE 84 /* X0 pipe last hword 1 LE off */
-#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE 85 /* X1 pipe last hword 1 LE off */
-#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD 86 /* X0 pipe last hword 0 GD off */
-#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD 87 /* X1 pipe last hword 0 GD off */
-#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD 88 /* X0 pipe last hword 1 GD off */
-#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD 89 /* X1 pipe last hword 1 GD off */
-/* Relocs 90-91 are currently not defined. */
-#define R_TILEGX_IMM16_X0_HW0_TLS_IE 92 /* X0 pipe hword 0 TLS IE offset */
-#define R_TILEGX_IMM16_X1_HW0_TLS_IE 93 /* X1 pipe hword 0 TLS IE offset */
-#define R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL 94 /* X0 pipe PC-rel PLT last hword 0 */
-#define R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL 95 /* X1 pipe PC-rel PLT last hword 0 */
-#define R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL 96 /* X0 pipe PC-rel PLT last hword 1 */
-#define R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL 97 /* X1 pipe PC-rel PLT last hword 1 */
-#define R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL 98 /* X0 pipe PC-rel PLT last hword 2 */
-#define R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL 99 /* X1 pipe PC-rel PLT last hword 2 */
-#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE 100 /* X0 pipe last hword 0 IE off */
-#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE 101 /* X1 pipe last hword 0 IE off */
-#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE 102 /* X0 pipe last hword 1 IE off */
-#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE 103 /* X1 pipe last hword 1 IE off */
-/* Relocs 104-105 are currently not defined. */
-#define R_TILEGX_TLS_DTPMOD64 106 /* 64-bit ID of symbol's module */
-#define R_TILEGX_TLS_DTPOFF64 107 /* 64-bit offset in TLS block */
-#define R_TILEGX_TLS_TPOFF64 108 /* 64-bit offset in static TLS block */
-#define R_TILEGX_TLS_DTPMOD32 109 /* 32-bit ID of symbol's module */
-#define R_TILEGX_TLS_DTPOFF32 110 /* 32-bit offset in TLS block */
-#define R_TILEGX_TLS_TPOFF32 111 /* 32-bit offset in static TLS block */
-#define R_TILEGX_TLS_GD_CALL 112 /* "jal" for TLS GD */
-#define R_TILEGX_IMM8_X0_TLS_GD_ADD 113 /* X0 pipe "addi" for TLS GD */
-#define R_TILEGX_IMM8_X1_TLS_GD_ADD 114 /* X1 pipe "addi" for TLS GD */
-#define R_TILEGX_IMM8_Y0_TLS_GD_ADD 115 /* Y0 pipe "addi" for TLS GD */
-#define R_TILEGX_IMM8_Y1_TLS_GD_ADD 116 /* Y1 pipe "addi" for TLS GD */
-#define R_TILEGX_TLS_IE_LOAD 117 /* "ld_tls" for TLS IE */
-#define R_TILEGX_IMM8_X0_TLS_ADD 118 /* X0 pipe "addi" for TLS GD/IE */
-#define R_TILEGX_IMM8_X1_TLS_ADD 119 /* X1 pipe "addi" for TLS GD/IE */
-#define R_TILEGX_IMM8_Y0_TLS_ADD 120 /* Y0 pipe "addi" for TLS GD/IE */
-#define R_TILEGX_IMM8_Y1_TLS_ADD 121 /* Y1 pipe "addi" for TLS GD/IE */
-
-#define R_TILEGX_GNU_VTINHERIT 128 /* GNU C++ vtable hierarchy */
-#define R_TILEGX_GNU_VTENTRY 129 /* GNU C++ vtable member usage */
-
-#define R_TILEGX_NUM 130
-
-
-__END_DECLS
-
-#endif /* elf.h */
diff --git a/src/libelf/elf32_checksum.c b/src/libelf/elf32_checksum.c
deleted file mode 100644
index 4c598563..00000000
--- a/src/libelf/elf32_checksum.c
+++ /dev/null
@@ -1,169 +0,0 @@
-/* Compute simple checksum from permanent parts of the ELF file.
- Copyright (C) 2002, 2003, 2004, 2005, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <endian.h>
-#include <stdbool.h>
-#include <stddef.h>
-#include <string.h>
-
-#include "gelf.h"
-#include "libelfP.h"
-#include "elf-knowledge.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-#define process_block(crc, data) \
- __libelf_crc32 (crc, data->d_buf, data->d_size)
-
-
-long int
-elfw2(LIBELFBITS,checksum) (elf)
- Elf *elf;
-{
- size_t shstrndx;
- Elf_Scn *scn;
- long int result = 0;
- unsigned char *ident;
- bool same_byte_order;
-
- if (elf == NULL)
- return -1l;
-
- /* Find the section header string table. */
- if (INTUSE(elf_getshdrstrndx) (elf, &shstrndx) < 0)
- {
- /* This can only happen if the ELF handle is not for real. */
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return -1l;
- }
-
- /* Determine whether the byte order of the file and that of the host
- is the same. */
- ident = elf->state.ELFW(elf,LIBELFBITS).ehdr->e_ident;
- same_byte_order = ((ident[EI_DATA] == ELFDATA2LSB
- && __BYTE_ORDER == __LITTLE_ENDIAN)
- || (ident[EI_DATA] == ELFDATA2MSB
- && __BYTE_ORDER == __BIG_ENDIAN));
-
- /* If we don't have native byte order, we will likely need to
- convert the data with xlate functions. We do it upfront instead
- of relocking mid-iteration. */
- if (!likely (same_byte_order))
- rwlock_wrlock (elf->lock);
- else
- rwlock_rdlock (elf->lock);
-
- /* Iterate over all sections to find those which are not strippable. */
- scn = NULL;
- while ((scn = INTUSE(elf_nextscn) (elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
- Elf_Data *data;
-
- /* Get the section header. */
- shdr = INTUSE(gelf_getshdr) (scn, &shdr_mem);
- if (shdr == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_SECTION_HEADER);
- result = -1l;
- goto out;
- }
-
- if (SECTION_STRIP_P (shdr,
- INTUSE(elf_strptr) (elf, shstrndx, shdr->sh_name),
- true))
- /* The section can be stripped. Don't use it. */
- continue;
-
- /* Do not look at NOBITS sections. */
- if (shdr->sh_type == SHT_NOBITS)
- continue;
-
- /* To compute the checksum we need to get to the data. For
- repeatable results we must use the external format. The data
- we get with 'elf'getdata' might be changed for endianess
- reasons. Therefore we use 'elf_rawdata' if possible. But
- this function can fail if the data was constructed by the
- program. In this case we have to use 'elf_getdata' and
- eventually convert the data to the external format. */
- data = INTUSE(elf_rawdata) (scn, NULL);
- if (data != NULL)
- {
- /* The raw data is available. */
- result = process_block (result, data);
-
- /* Maybe the user added more data. These blocks cannot be
- read using 'elf_rawdata'. Simply proceed with looking
- for more data block with 'elf_getdata'. */
- }
-
- /* Iterate through the list of data blocks. */
- while ((data = INTUSE(elf_getdata) (scn, data)) != NULL)
- /* If the file byte order is the same as the host byte order
- process the buffer directly. If the data is just a stream
- of bytes which the library will not convert we can use it
- as well. */
- if (likely (same_byte_order) || data->d_type == ELF_T_BYTE)
- result = process_block (result, data);
- else
- {
- /* Convert the data to file byte order. */
- if (INTUSE(elfw2(LIBELFBITS,xlatetof)) (data, data, ident[EI_DATA])
- == NULL)
- {
- result = -1l;
- goto out;
- }
-
- result = process_block (result, data);
-
- /* And convert it back. */
- if (INTUSE(elfw2(LIBELFBITS,xlatetom)) (data, data, ident[EI_DATA])
- == NULL)
- {
- result = -1l;
- goto out;
- }
- }
- }
-
- out:
- rwlock_unlock (elf->lock);
- return result;
-}
-INTDEF(elfw2(LIBELFBITS,checksum))
diff --git a/src/libelf/elf32_fsize.c b/src/libelf/elf32_fsize.c
deleted file mode 100644
index d7496fa3..00000000
--- a/src/libelf/elf32_fsize.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* Return the size of an object file type.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include "libelfP.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-size_t
-elfw2(LIBELFBITS, fsize) (type, count, version)
- Elf_Type type;
- size_t count;
- unsigned int version;
-{
- /* We do not have differences between file and memory sizes. Better
- not since otherwise `mmap' would not work. */
- if (unlikely (version == EV_NONE) || unlikely (version >= EV_NUM))
- {
- __libelf_seterrno (ELF_E_UNKNOWN_VERSION);
- return 0;
- }
-
- if (unlikely (type >= ELF_T_NUM))
- {
- __libelf_seterrno (ELF_E_UNKNOWN_TYPE);
- return 0;
- }
-
-#if EV_NUM != 2
- return (count
- * __libelf_type_sizes[version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][type]);
-#else
- return (count
- * __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][type]);
-#endif
-}
-#define local_strong_alias(n1, n2) strong_alias (n1, n2)
-local_strong_alias (elfw2(LIBELFBITS, fsize), __elfw2(LIBELFBITS, msize))
diff --git a/src/libelf/elf32_getehdr.c b/src/libelf/elf32_getehdr.c
deleted file mode 100644
index ee0a2e0f..00000000
--- a/src/libelf/elf32_getehdr.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/* Get ELF header.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-static ElfW2(LIBELFBITS,Ehdr) *
-getehdr_impl (elf, wrlock)
- Elf *elf;
- int wrlock;
-{
- if (elf == NULL)
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- again:
- if (elf->class == 0)
- {
- if (!wrlock)
- {
- rwlock_unlock (elf->lock);
- rwlock_wrlock (elf->lock);
- wrlock = 1;
- goto again;
- }
- elf->class = ELFW(ELFCLASS,LIBELFBITS);
- }
- else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
- {
- __libelf_seterrno (ELF_E_INVALID_CLASS);
- return NULL;
- }
-
- return elf->state.ELFW(elf,LIBELFBITS).ehdr;
-}
-
-ElfW2(LIBELFBITS,Ehdr) *
-__elfw2(LIBELFBITS,getehdr_wrlock) (elf)
- Elf *elf;
-{
- return getehdr_impl (elf, 1);
-}
-
-ElfW2(LIBELFBITS,Ehdr) *
-elfw2(LIBELFBITS,getehdr) (elf)
- Elf *elf;
-{
- ElfW2(LIBELFBITS,Ehdr) *result;
- if (elf == NULL)
- return NULL;
-
- rwlock_rdlock (elf->lock);
- result = getehdr_impl (elf, 0);
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/elf32_getphdr.c b/src/libelf/elf32_getphdr.c
deleted file mode 100644
index 1b82a480..00000000
--- a/src/libelf/elf32_getphdr.c
+++ /dev/null
@@ -1,257 +0,0 @@
-/* Get ELF program header table.
- Copyright (C) 1998-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <assert.h>
-
-#include <system.h>
-#include "libelfP.h"
-#include "common.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-ElfW2(LIBELFBITS,Phdr) *
-__elfw2(LIBELFBITS,getphdr_wrlock) (elf)
- Elf *elf;
-{
- ElfW2(LIBELFBITS,Phdr) *result;
-
- /* If the program header entry has already been filled in the code
- below must already have been run. So the class is set, too. No
- need to waste any more time here. */
- result = elf->state.ELFW(elf,LIBELFBITS).phdr;
- if (likely (result != NULL))
- return result;
-
- if (elf->class == 0)
- elf->class = ELFW(ELFCLASS,LIBELFBITS);
- else if (elf->class != ELFW(ELFCLASS,LIBELFBITS))
- {
- __libelf_seterrno (ELF_E_INVALID_CLASS);
- result = NULL;
- goto out;
- }
-
- if (likely (result == NULL))
- {
- /* Read the section header table. */
- ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
-
- /* If no program header exists return NULL. */
- size_t phnum;
- if (__elf_getphdrnum_rdlock (elf, &phnum) != 0)
- goto out;
- if (phnum == 0 || ehdr->e_phoff == 0)
- {
- __libelf_seterrno (ELF_E_NO_PHDR);
- goto out;
- }
-
- /* Check this doesn't overflow. */
- size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr));
-
- if (phnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr))
- || ehdr->e_phoff > elf->maximum_size
- || elf->maximum_size - ehdr->e_phoff < size)
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- if (elf->map_address != NULL)
- {
- /* First see whether the information in the ELF header is
- valid and it does not ask for too much. */
- if (unlikely (ehdr->e_phoff >= elf->maximum_size)
- || unlikely (elf->maximum_size - ehdr->e_phoff < size))
- {
- /* Something is wrong. */
- __libelf_seterrno (ELF_E_INVALID_PHDR);
- goto out;
- }
-
- /* All the data is already mapped. Use it. */
- void *file_phdr = ((char *) elf->map_address
- + elf->start_offset + ehdr->e_phoff);
- if (ehdr->e_ident[EI_DATA] == MY_ELFDATA
- && (ALLOW_UNALIGNED
- || ((uintptr_t) file_phdr
- & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0))
- /* Simply use the mapped data. */
- elf->state.ELFW(elf,LIBELFBITS).phdr = file_phdr;
- else
- {
- ElfW2(LIBELFBITS,Phdr) *notcvt;
- ElfW2(LIBELFBITS,Phdr) *phdr;
-
- /* Allocate memory for the program headers. We know the number
- of entries from the ELF header. */
- phdr = elf->state.ELFW(elf,LIBELFBITS).phdr =
- (ElfW2(LIBELFBITS,Phdr) *) malloc (size);
- if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
- elf->state.ELFW(elf,LIBELFBITS).phdr_flags |=
- ELF_F_MALLOCED | ELF_F_DIRTY;
-
- /* Now copy the data and at the same time convert the
- byte order. */
-
- if (ehdr->e_ident[EI_DATA] == MY_ELFDATA)
- {
- assert (! ALLOW_UNALIGNED);
- memcpy (phdr, file_phdr, size);
- }
- else
- {
- if (ALLOW_UNALIGNED
- || ((uintptr_t) file_phdr
- & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0)
- notcvt = file_phdr;
- else
- {
- notcvt = (ElfW2(LIBELFBITS,Phdr) *) alloca (size);
- memcpy (notcvt, file_phdr, size);
- }
-
- for (size_t cnt = 0; cnt < phnum; ++cnt)
- {
- CONVERT_TO (phdr[cnt].p_type, notcvt[cnt].p_type);
- CONVERT_TO (phdr[cnt].p_offset, notcvt[cnt].p_offset);
- CONVERT_TO (phdr[cnt].p_vaddr, notcvt[cnt].p_vaddr);
- CONVERT_TO (phdr[cnt].p_paddr, notcvt[cnt].p_paddr);
- CONVERT_TO (phdr[cnt].p_filesz, notcvt[cnt].p_filesz);
- CONVERT_TO (phdr[cnt].p_memsz, notcvt[cnt].p_memsz);
- CONVERT_TO (phdr[cnt].p_flags, notcvt[cnt].p_flags);
- CONVERT_TO (phdr[cnt].p_align, notcvt[cnt].p_align);
- }
- }
- }
- }
- else if (likely (elf->fildes != -1))
- {
- /* Allocate memory for the program headers. We know the number
- of entries from the ELF header. */
- elf->state.ELFW(elf,LIBELFBITS).phdr =
- (ElfW2(LIBELFBITS,Phdr) *) malloc (size);
- if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
- elf->state.ELFW(elf,LIBELFBITS).phdr_flags |= ELF_F_MALLOCED;
-
- /* Read the header. */
- ssize_t n = pread_retry (elf->fildes,
- elf->state.ELFW(elf,LIBELFBITS).phdr, size,
- elf->start_offset + ehdr->e_phoff);
- if (unlikely ((size_t) n != size))
- {
- /* Severe problems. We cannot read the data. */
- __libelf_seterrno (ELF_E_READ_ERROR);
- free (elf->state.ELFW(elf,LIBELFBITS).phdr);
- elf->state.ELFW(elf,LIBELFBITS).phdr = NULL;
- goto out;
- }
-
- /* If the byte order of the file is not the same as the one
- of the host convert the data now. */
- if (ehdr->e_ident[EI_DATA] != MY_ELFDATA)
- {
- ElfW2(LIBELFBITS,Phdr) *phdr
- = elf->state.ELFW(elf,LIBELFBITS).phdr;
-
- for (size_t cnt = 0; cnt < phnum; ++cnt)
- {
- CONVERT (phdr[cnt].p_type);
- CONVERT (phdr[cnt].p_offset);
- CONVERT (phdr[cnt].p_vaddr);
- CONVERT (phdr[cnt].p_paddr);
- CONVERT (phdr[cnt].p_filesz);
- CONVERT (phdr[cnt].p_memsz);
- CONVERT (phdr[cnt].p_flags);
- CONVERT (phdr[cnt].p_align);
- }
- }
- }
- else
- {
- /* The file descriptor was already enabled and not all data was
- read. */
- __libelf_seterrno (ELF_E_FD_DISABLED);
- goto out;
- }
-
- result = elf->state.ELFW(elf,LIBELFBITS).phdr;
- }
-
- out:
- return result;
-}
-
-ElfW2(LIBELFBITS,Phdr) *
-elfw2(LIBELFBITS,getphdr) (elf)
- Elf *elf;
-{
- ElfW2(LIBELFBITS,Phdr) *result;
-
- if (elf == NULL)
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* If the program header entry has already been filled in the code
- * in getphdr_wrlock must already have been run. So the class is
- * set, too. No need to waste any more time here. */
- result = elf->state.ELFW(elf,LIBELFBITS).phdr;
- if (likely (result != NULL))
- return result;
-
- rwlock_wrlock (elf->lock);
- result = __elfw2(LIBELFBITS,getphdr_wrlock) (elf);
- rwlock_unlock (elf->lock);
-
- return result;
-}
-INTDEF(elfw2(LIBELFBITS,getphdr))
diff --git a/src/libelf/elf32_getshdr.c b/src/libelf/elf32_getshdr.c
deleted file mode 100644
index 74170473..00000000
--- a/src/libelf/elf32_getshdr.c
+++ /dev/null
@@ -1,287 +0,0 @@
-/* Return section header.
- Copyright (C) 1998-2002, 2005, 2007, 2009, 2012, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <errno.h>
-#include <stdbool.h>
-#include <unistd.h>
-
-#include <system.h>
-#include "libelfP.h"
-#include "common.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-static ElfW2(LIBELFBITS,Shdr) *
-load_shdr_wrlock (Elf_Scn *scn)
-{
- ElfW2(LIBELFBITS,Shdr) *result;
-
- /* Read the section header table. */
- Elf *elf = scn->elf;
- ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
-
- /* Try again, maybe the data is there now. */
- result = scn->shdr.ELFW(e,LIBELFBITS);
- if (result != NULL)
- goto out;
-
- size_t shnum;
- if (__elf_getshdrnum_rdlock (elf, &shnum) != 0
- || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr)))
- goto out;
- size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr));
-
- /* Allocate memory for the section headers. We know the number
- of entries from the ELF header. */
- ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr =
- (ElfW2(LIBELFBITS,Shdr) *) malloc (size);
- if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
- elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 1;
-
- if (elf->map_address != NULL)
- {
- /* First see whether the information in the ELF header is
- valid and it does not ask for too much. */
- if (unlikely (ehdr->e_shoff >= elf->maximum_size)
- || unlikely (elf->maximum_size - ehdr->e_shoff < size))
- {
- /* Something is wrong. */
- __libelf_seterrno (ELF_E_INVALID_SECTION_HEADER);
- goto free_and_out;
- }
-
- ElfW2(LIBELFBITS,Shdr) *notcvt;
-
- /* All the data is already mapped. If we could use it
- directly this would already have happened. Unless
- we allocated the memory ourselves and the ELF_F_MALLOCED
- flag is set. */
- void *file_shdr = ((char *) elf->map_address
- + elf->start_offset + ehdr->e_shoff);
-
- assert ((elf->flags & ELF_F_MALLOCED)
- || ehdr->e_ident[EI_DATA] != MY_ELFDATA
- || (! ALLOW_UNALIGNED
- && ((uintptr_t) file_shdr
- & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0));
-
- /* Now copy the data and at the same time convert the byte order. */
- if (ehdr->e_ident[EI_DATA] == MY_ELFDATA)
- {
- assert ((elf->flags & ELF_F_MALLOCED) || ! ALLOW_UNALIGNED);
- memcpy (shdr, file_shdr, size);
- }
- else
- {
- if (ALLOW_UNALIGNED
- || ((uintptr_t) file_shdr
- & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) == 0)
- notcvt = (ElfW2(LIBELFBITS,Shdr) *)
- ((char *) elf->map_address
- + elf->start_offset + ehdr->e_shoff);
- else
- {
- notcvt = (ElfW2(LIBELFBITS,Shdr) *) alloca (size);
- memcpy (notcvt, ((char *) elf->map_address
- + elf->start_offset + ehdr->e_shoff),
- size);
- }
-
- for (size_t cnt = 0; cnt < shnum; ++cnt)
- {
- CONVERT_TO (shdr[cnt].sh_name, notcvt[cnt].sh_name);
- CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type);
- CONVERT_TO (shdr[cnt].sh_flags, notcvt[cnt].sh_flags);
- CONVERT_TO (shdr[cnt].sh_addr, notcvt[cnt].sh_addr);
- CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset);
- CONVERT_TO (shdr[cnt].sh_size, notcvt[cnt].sh_size);
- CONVERT_TO (shdr[cnt].sh_link, notcvt[cnt].sh_link);
- CONVERT_TO (shdr[cnt].sh_info, notcvt[cnt].sh_info);
- CONVERT_TO (shdr[cnt].sh_addralign,
- notcvt[cnt].sh_addralign);
- CONVERT_TO (shdr[cnt].sh_entsize, notcvt[cnt].sh_entsize);
-
- /* If this is a section with an extended index add a
- reference in the section which uses the extended
- index. */
- if (shdr[cnt].sh_type == SHT_SYMTAB_SHNDX
- && shdr[cnt].sh_link < shnum)
- elf->state.ELFW(elf,LIBELFBITS).scns.data[shdr[cnt].sh_link].shndx_index
- = cnt;
-
- /* Set the own shndx_index field in case it has not yet
- been set. */
- if (elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index == 0)
- elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shndx_index
- = -1;
- }
- }
- }
- else if (likely (elf->fildes != -1))
- {
- /* Read the header. */
- ssize_t n = pread_retry (elf->fildes,
- elf->state.ELFW(elf,LIBELFBITS).shdr, size,
- elf->start_offset + ehdr->e_shoff);
- if (unlikely ((size_t) n != size))
- {
- /* Severe problems. We cannot read the data. */
- __libelf_seterrno (ELF_E_READ_ERROR);
- goto free_and_out;
- }
-
- /* If the byte order of the file is not the same as the one
- of the host convert the data now. */
- if (ehdr->e_ident[EI_DATA] != MY_ELFDATA)
- for (size_t cnt = 0; cnt < shnum; ++cnt)
- {
- CONVERT (shdr[cnt].sh_name);
- CONVERT (shdr[cnt].sh_type);
- CONVERT (shdr[cnt].sh_flags);
- CONVERT (shdr[cnt].sh_addr);
- CONVERT (shdr[cnt].sh_offset);
- CONVERT (shdr[cnt].sh_size);
- CONVERT (shdr[cnt].sh_link);
- CONVERT (shdr[cnt].sh_info);
- CONVERT (shdr[cnt].sh_addralign);
- CONVERT (shdr[cnt].sh_entsize);
- }
- }
- else
- {
- /* The file descriptor was already enabled and not all data was
- read. Undo the allocation. */
- __libelf_seterrno (ELF_E_FD_DISABLED);
-
- free_and_out:
- free (shdr);
- elf->state.ELFW(elf,LIBELFBITS).shdr = NULL;
- elf->state.ELFW(elf,LIBELFBITS).shdr_malloced = 0;
-
- goto out;
- }
-
- /* Set the pointers in the `scn's. */
- for (size_t cnt = 0; cnt < shnum; ++cnt)
- elf->state.ELFW(elf,LIBELFBITS).scns.data[cnt].shdr.ELFW(e,LIBELFBITS)
- = &elf->state.ELFW(elf,LIBELFBITS).shdr[cnt];
-
- result = scn->shdr.ELFW(e,LIBELFBITS);
- assert (result != NULL);
-
-out:
- return result;
-}
-
-static bool
-scn_valid (Elf_Scn *scn)
-{
- if (scn == NULL)
- return false;
-
- if (unlikely (scn->elf->state.elf.ehdr == NULL))
- {
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- return false;
- }
-
- if (unlikely (scn->elf->class != ELFW(ELFCLASS,LIBELFBITS)))
- {
- __libelf_seterrno (ELF_E_INVALID_CLASS);
- return false;
- }
-
- return true;
-}
-
-ElfW2(LIBELFBITS,Shdr) *
-__elfw2(LIBELFBITS,getshdr_rdlock) (scn)
- Elf_Scn *scn;
-{
- ElfW2(LIBELFBITS,Shdr) *result;
-
- if (!scn_valid (scn))
- return NULL;
-
- result = scn->shdr.ELFW(e,LIBELFBITS);
- if (result == NULL)
- {
- rwlock_unlock (scn->elf->lock);
- rwlock_wrlock (scn->elf->lock);
- result = scn->shdr.ELFW(e,LIBELFBITS);
- if (result == NULL)
- result = load_shdr_wrlock (scn);
- }
-
- return result;
-}
-
-ElfW2(LIBELFBITS,Shdr) *
-__elfw2(LIBELFBITS,getshdr_wrlock) (scn)
- Elf_Scn *scn;
-{
- ElfW2(LIBELFBITS,Shdr) *result;
-
- if (!scn_valid (scn))
- return NULL;
-
- result = scn->shdr.ELFW(e,LIBELFBITS);
- if (result == NULL)
- result = load_shdr_wrlock (scn);
-
- return result;
-}
-
-ElfW2(LIBELFBITS,Shdr) *
-elfw2(LIBELFBITS,getshdr) (scn)
- Elf_Scn *scn;
-{
- ElfW2(LIBELFBITS,Shdr) *result;
-
- if (!scn_valid (scn))
- return NULL;
-
- rwlock_rdlock (scn->elf->lock);
- result = __elfw2(LIBELFBITS,getshdr_rdlock) (scn);
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/elf32_newehdr.c b/src/libelf/elf32_newehdr.c
deleted file mode 100644
index 4b547bcc..00000000
--- a/src/libelf/elf32_newehdr.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/* Create new ELF header.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-ElfW2(LIBELFBITS,Ehdr) *
-elfw2(LIBELFBITS,newehdr) (elf)
- Elf *elf;
-{
- ElfW2(LIBELFBITS,Ehdr) *result;
-
- if (elf == NULL)
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- rwlock_wrlock (elf->lock);
-
- if (elf->class == 0)
- elf->class = ELFW(ELFCLASS,LIBELFBITS);
- else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
- {
- __libelf_seterrno (ELF_E_INVALID_CLASS);
- result = NULL;
- goto out;
- }
-
- /* Don't create an ELF header if one already exists. */
- if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)
- {
- /* We use the memory in the ELF descriptor. */
- elf->state.ELFW(elf,LIBELFBITS).ehdr =
- &elf->state.ELFW(elf,LIBELFBITS).ehdr_mem;
-
- /* We clear this memory. */
- memset (elf->state.ELFW(elf,LIBELFBITS).ehdr, '\0',
- sizeof (ElfW2(LIBELFBITS,Ehdr)));
-
- /* Mark the ELF header has modified. */
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
- }
-
- result = elf->state.ELFW(elf,LIBELFBITS).ehdr;
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
-INTDEF(elfw2(LIBELFBITS,newehdr))
diff --git a/src/libelf/elf32_newphdr.c b/src/libelf/elf32_newphdr.c
deleted file mode 100644
index 01038e73..00000000
--- a/src/libelf/elf32_newphdr.c
+++ /dev/null
@@ -1,182 +0,0 @@
-/* Create new ELF program header table.
- Copyright (C) 1999-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-ElfW2(LIBELFBITS,Phdr) *
-elfw2(LIBELFBITS,newphdr) (elf, count)
- Elf *elf;
- size_t count;
-{
- ElfW2(LIBELFBITS,Phdr) *result;
-
- if (elf == NULL)
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- if (unlikely ((ElfW2(LIBELFBITS,Word)) count != count))
- {
- __libelf_seterrno (ELF_E_INVALID_OPERAND);
- return NULL;
- }
-
- rwlock_wrlock (elf->lock);
-
- if (elf->class == 0)
- elf->class = ELFW(ELFCLASS,LIBELFBITS);
- else if (unlikely (elf->class != ELFW(ELFCLASS,LIBELFBITS)))
- {
- __libelf_seterrno (ELF_E_INVALID_CLASS);
- result = NULL;
- goto out;
- }
-
- if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL))
- {
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- result = NULL;
- goto out;
- }
-
- /* A COUNT of zero means remove existing table. */
- if (count == 0)
- {
- /* Free the old program header. */
- if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
- {
- if (elf->state.ELFW(elf,LIBELFBITS).phdr_flags & ELF_F_MALLOCED)
- free (elf->state.ELFW(elf,LIBELFBITS).phdr);
-
- /* Set the pointer to NULL. */
- elf->state.ELFW(elf,LIBELFBITS).phdr = NULL;
- /* Set the `e_phnum' member to the new value. */
- elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0;
- /* Also clear any old PN_XNUM extended value. */
- if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0)
- elf->state.ELFW(elf,LIBELFBITS).scns.data[0]
- .shdr.ELFW(e,LIBELFBITS)->sh_info = 0;
- /* Also set the size. */
- elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize =
- sizeof (ElfW2(LIBELFBITS,Phdr));
-
- elf->state.ELFW(elf,LIBELFBITS).phdr_flags |= ELF_F_DIRTY;
- elf->flags |= ELF_F_DIRTY;
- __libelf_seterrno (ELF_E_NOERROR);
- }
-
- result = NULL;
- }
- else if (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum != count
- || count == PN_XNUM
- || elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
- {
- if (unlikely (count > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr))))
- {
- result = NULL;
- goto out;
- }
-
- /* Allocate a new program header with the appropriate number of
- elements. */
- result = (ElfW2(LIBELFBITS,Phdr) *)
- realloc (elf->state.ELFW(elf,LIBELFBITS).phdr,
- count * sizeof (ElfW2(LIBELFBITS,Phdr)));
- if (result == NULL)
- __libelf_seterrno (ELF_E_NOMEM);
- else
- {
- /* Now set the result. */
- elf->state.ELFW(elf,LIBELFBITS).phdr = result;
- if (count >= PN_XNUM)
- {
- /* We have to write COUNT into the zeroth section's sh_info. */
- Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0];
- if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt == 0)
- {
- assert (elf->state.ELFW(elf,LIBELFBITS).scns.max > 0);
- elf->state.ELFW(elf,LIBELFBITS).scns.cnt = 1;
- }
- scn0->shdr.ELFW(e,LIBELFBITS)->sh_info = count;
- scn0->shdr_flags |= ELF_F_DIRTY;
- elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = PN_XNUM;
- }
- else
- /* Set the `e_phnum' member to the new value. */
- elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = count;
- /* Clear the whole memory. */
- memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr)));
- /* Also set the size. */
- elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize =
- elf_typesize (LIBELFBITS, ELF_T_PHDR, 1);
- /* Remember we allocated the array and mark the structure is
- modified. */
- elf->state.ELFW(elf,LIBELFBITS).phdr_flags |=
- ELF_F_DIRTY | ELF_F_MALLOCED;
- /* We have to rewrite the entire file if the size of the
- program header is changed. */
- elf->flags |= ELF_F_DIRTY;
- }
- }
- else
- {
- /* We have the same number of entries. Just clear the array. */
- assert (elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize
- == elf_typesize (LIBELFBITS, ELF_T_PHDR, 1));
-
- /* Mark the structure as modified. */
- elf->state.ELFW(elf,LIBELFBITS).phdr_flags |= ELF_F_DIRTY;
-
- result = elf->state.ELFW(elf,LIBELFBITS).phdr;
- memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr)));
- }
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
-INTDEF(elfw2(LIBELFBITS,newphdr))
diff --git a/src/libelf/elf32_offscn.c b/src/libelf/elf32_offscn.c
deleted file mode 100644
index a1ff6d40..00000000
--- a/src/libelf/elf32_offscn.c
+++ /dev/null
@@ -1,101 +0,0 @@
-/* Get section at specific index.
- Copyright (C) 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stddef.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-Elf_Scn *
-elfw2(LIBELFBITS,offscn) (elf, offset)
- Elf *elf;
- ElfW2(LIBELFBITS,Off) offset;
-{
- if (elf == NULL)
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- Elf_ScnList *runp = &elf->state.ELFW(elf,LIBELFBITS).scns;
-
- /* If we have not looked at section headers before,
- we might need to read them in first. */
- if (runp->cnt > 0
- && unlikely (runp->data[0].shdr.ELFW(e,LIBELFBITS) == NULL)
- && unlikely (elfw2(LIBELFBITS,getshdr) (&runp->data[0]) == NULL))
- return NULL;
-
- rwlock_rdlock (elf->lock);
-
- Elf_Scn *result = NULL;
-
- /* Find the section in the list. */
- while (1)
- {
- for (unsigned int i = 0; i < runp->cnt; ++i)
- if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_offset == offset)
- {
- result = &runp->data[i];
-
- /* If this section is empty, the following one has the same
- sh_offset. We presume the caller is looking for a nonempty
- section, so keep looking if this one is empty. */
- if (runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_size != 0
- && runp->data[i].shdr.ELFW(e,LIBELFBITS)->sh_type != SHT_NOBITS)
- goto out;
- }
-
- runp = runp->next;
- if (runp == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OFFSET);
- break;
- }
- }
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
-INTDEF(elfw2(LIBELFBITS,offscn))
diff --git a/src/libelf/elf32_updatefile.c b/src/libelf/elf32_updatefile.c
deleted file mode 100644
index 153e377f..00000000
--- a/src/libelf/elf32_updatefile.c
+++ /dev/null
@@ -1,808 +0,0 @@
-/* Write changed data structures.
- Copyright (C) 2000-2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <errno.h>
-#include <libelf.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/mman.h>
-#include <sys/param.h>
-
-#include <system.h>
-#include "libelfP.h"
-
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-static int
-compare_sections (const void *a, const void *b)
-{
- const Elf_Scn **scna = (const Elf_Scn **) a;
- const Elf_Scn **scnb = (const Elf_Scn **) b;
-
- if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset
- < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset)
- return -1;
-
- if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset
- > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset)
- return 1;
-
- if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size
- < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size)
- return -1;
-
- if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size
- > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size)
- return 1;
-
- if ((*scna)->index < (*scnb)->index)
- return -1;
-
- if ((*scna)->index > (*scnb)->index)
- return 1;
-
- return 0;
-}
-
-
-/* Insert the sections in the list into the provided array and sort
- them according to their start offsets. For sections with equal
- start offsets, the size is used; for sections with equal start
- offsets and sizes, the section index is used. Sorting by size
- ensures that zero-length sections are processed first, which
- is what we want since they do not advance our file writing position. */
-static void
-sort_sections (Elf_Scn **scns, Elf_ScnList *list)
-{
- Elf_Scn **scnp = scns;
- do
- for (size_t cnt = 0; cnt < list->cnt; ++cnt)
- *scnp++ = &list->data[cnt];
- while ((list = list->next) != NULL);
-
- qsort (scns, scnp - scns, sizeof (*scns), compare_sections);
-}
-
-
-int
-internal_function
-__elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum)
-{
- bool previous_scn_changed = false;
-
- /* We need the ELF header several times. */
- ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
-
- /* Write out the ELF header. */
- if ((elf->state.ELFW(elf,LIBELFBITS).ehdr_flags | elf->flags) & ELF_F_DIRTY)
- {
- /* If the type sizes should be different at some time we have to
- rewrite this code. */
- assert (sizeof (ElfW2(LIBELFBITS,Ehdr))
- == elf_typesize (LIBELFBITS, ELF_T_EHDR, 1));
-
- if (unlikely (change_bo))
- {
- /* Today there is only one version of the ELF header. */
-#if EV_NUM != 2
- xfct_t fctp;
- fctp = __elf_xfctstom[__libelf_version - 1][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_EHDR];
-#else
-# undef fctp
-# define fctp __elf_xfctstom[0][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_EHDR]
-#endif
-
- /* Do the real work. */
- (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr,
- sizeof (ElfW2(LIBELFBITS,Ehdr)), 1);
- }
- else if (elf->map_address + elf->start_offset != ehdr)
- memcpy (elf->map_address + elf->start_offset, ehdr,
- sizeof (ElfW2(LIBELFBITS,Ehdr)));
-
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags &= ~ELF_F_DIRTY;
-
- /* We start writing sections after the ELF header only if there is
- no program header. */
- previous_scn_changed = elf->state.ELFW(elf,LIBELFBITS).phdr == NULL;
- }
-
- size_t phnum;
- if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0))
- return -1;
-
- /* Write out the program header table. */
- if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL
- && ((elf->state.ELFW(elf,LIBELFBITS).phdr_flags | elf->flags)
- & ELF_F_DIRTY))
- {
- /* If the type sizes should be different at some time we have to
- rewrite this code. */
- assert (sizeof (ElfW2(LIBELFBITS,Phdr))
- == elf_typesize (LIBELFBITS, ELF_T_PHDR, 1));
-
- /* Maybe the user wants a gap between the ELF header and the program
- header. */
- if (ehdr->e_phoff > ehdr->e_ehsize)
- memset (elf->map_address + elf->start_offset + ehdr->e_ehsize,
- __libelf_fill_byte, ehdr->e_phoff - ehdr->e_ehsize);
-
- if (unlikely (change_bo))
- {
- /* Today there is only one version of the ELF header. */
-#if EV_NUM != 2
- xfct_t fctp;
- fctp = __elf_xfctstom[__libelf_version - 1][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_PHDR];
-#else
-# undef fctp
-# define fctp __elf_xfctstom[0][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_PHDR]
-#endif
-
- /* Do the real work. */
- (*fctp) (elf->map_address + elf->start_offset + ehdr->e_phoff,
- elf->state.ELFW(elf,LIBELFBITS).phdr,
- sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1);
- }
- else
- memcpy (elf->map_address + elf->start_offset + ehdr->e_phoff,
- elf->state.ELFW(elf,LIBELFBITS).phdr,
- sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum);
-
- elf->state.ELFW(elf,LIBELFBITS).phdr_flags &= ~ELF_F_DIRTY;
-
- /* We modified the program header. Maybe this created a gap so
- we have to write fill bytes, if necessary. */
- previous_scn_changed = true;
- }
-
- /* From now on we have to keep track of the last position to eventually
- fill the gaps with the prescribed fill byte. */
- char *last_position = ((char *) elf->map_address + elf->start_offset
- + MAX (elf_typesize (LIBELFBITS, ELF_T_EHDR, 1),
- ehdr->e_phoff)
- + elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum));
-
- /* Write all the sections. Well, only those which are modified. */
- if (shnum > 0)
- {
- if (unlikely (shnum > SIZE_MAX / sizeof (Elf_Scn *)))
- return 1;
-
- Elf_ScnList *list = &elf->state.ELFW(elf,LIBELFBITS).scns;
- Elf_Scn **scns = (Elf_Scn **) alloca (shnum * sizeof (Elf_Scn *));
- char *const shdr_start = ((char *) elf->map_address + elf->start_offset
- + ehdr->e_shoff);
- char *const shdr_end = shdr_start + ehdr->e_shnum * ehdr->e_shentsize;
-
-#if EV_NUM != 2
- xfct_t shdr_fctp = __elf_xfctstom[__libelf_version - 1][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_SHDR];
-#else
-# undef shdr_fctp
-# define shdr_fctp __elf_xfctstom[0][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_SHDR]
-#endif
-#define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start)
-
- /* Get all sections into the array and sort them. */
- sort_sections (scns, list);
-
- /* We possibly have to copy the section header data because moving
- the sections might overwrite the data. */
- for (size_t cnt = 0; cnt < shnum; ++cnt)
- {
- Elf_Scn *scn = scns[cnt];
-
- if (!elf->state.ELFW(elf,LIBELFBITS).shdr_malloced
- && (scn->shdr_flags & ELF_F_MALLOCED) == 0
- && scn->shdr.ELFW(e,LIBELFBITS) != &shdr_dest[scn->index])
- {
- assert ((char *) elf->map_address + elf->start_offset
- < (char *) scn->shdr.ELFW(e,LIBELFBITS));
- assert ((char *) scn->shdr.ELFW(e,LIBELFBITS)
- < ((char *) elf->map_address + elf->start_offset
- + elf->maximum_size));
-
- void *p = alloca (sizeof (ElfW2(LIBELFBITS,Shdr)));
- scn->shdr.ELFW(e,LIBELFBITS)
- = memcpy (p, scn->shdr.ELFW(e,LIBELFBITS),
- sizeof (ElfW2(LIBELFBITS,Shdr)));
- }
-
- /* If the file is mmaped and the original position of the
- section in the file is lower than the new position we
- need to save the section content since otherwise it is
- overwritten before it can be copied. If there are
- multiple data segments in the list only the first can be
- from the file. */
- if (((char *) elf->map_address + elf->start_offset
- <= (char *) scn->data_list.data.d.d_buf)
- && ((char *) scn->data_list.data.d.d_buf
- < ((char *) elf->map_address + elf->start_offset
- + elf->maximum_size))
- && (((char *) elf->map_address + elf->start_offset
- + scn->shdr.ELFW(e,LIBELFBITS)->sh_offset)
- > (char *) scn->data_list.data.d.d_buf))
- {
- void *p = malloc (scn->data_list.data.d.d_size);
- if (p == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- return -1;
- }
- scn->data_list.data.d.d_buf = scn->data_base
- = memcpy (p, scn->data_list.data.d.d_buf,
- scn->data_list.data.d.d_size);
- }
- }
-
- /* Iterate over all the section in the order in which they
- appear in the output file. */
- for (size_t cnt = 0; cnt < shnum; ++cnt)
- {
- Elf_Scn *scn = scns[cnt];
- if (scn->index == 0)
- {
- /* The dummy section header entry. It should not be
- possible to mark this "section" as dirty. */
- assert ((scn->flags & ELF_F_DIRTY) == 0);
- continue;
- }
-
- ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);
- if (shdr->sh_type == SHT_NOBITS)
- goto next;
-
- char *scn_start = ((char *) elf->map_address
- + elf->start_offset + shdr->sh_offset);
- Elf_Data_List *dl = &scn->data_list;
- bool scn_changed = false;
-
- void fill_mmap (size_t offset)
- {
- size_t written = 0;
-
- if (last_position < shdr_start)
- {
- written = MIN (scn_start + offset - last_position,
- shdr_start - last_position);
-
- memset (last_position, __libelf_fill_byte, written);
- }
-
- if (last_position + written != scn_start + offset
- && shdr_end < scn_start + offset)
- {
- char *fill_start = MAX (shdr_end, scn_start);
- memset (fill_start, __libelf_fill_byte,
- scn_start + offset - fill_start);
- }
- }
-
- if (scn->data_list_rear != NULL)
- do
- {
- assert (dl->data.d.d_off >= 0);
- assert ((GElf_Off) dl->data.d.d_off <= shdr->sh_size);
- assert (dl->data.d.d_size <= (shdr->sh_size
- - (GElf_Off) dl->data.d.d_off));
-
- /* If there is a gap, fill it. */
- if (scn_start + dl->data.d.d_off > last_position
- && (dl->data.d.d_off == 0
- || ((scn->flags | dl->flags | elf->flags)
- & ELF_F_DIRTY) != 0))
- {
- fill_mmap (dl->data.d.d_off);
- last_position = scn_start + dl->data.d.d_off;
- }
-
- if ((scn->flags | dl->flags | elf->flags) & ELF_F_DIRTY)
- {
- /* Let it go backward if the sections use a bogus
- layout with overlaps. We'll overwrite the stupid
- user's section data with the latest one, rather than
- crashing. */
-
- last_position = scn_start + dl->data.d.d_off;
-
- if (unlikely (change_bo))
- {
-#if EV_NUM != 2
- xfct_t fctp;
- fctp = __elf_xfctstom[__libelf_version - 1][dl->data.d.d_version - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][dl->data.d.d_type];
-#else
-# undef fctp
-# define fctp __elf_xfctstom[0][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][dl->data.d.d_type]
-#endif
-
- /* Do the real work. */
- (*fctp) (last_position, dl->data.d.d_buf,
- dl->data.d.d_size, 1);
-
- last_position += dl->data.d.d_size;
- }
- else
- last_position = mempcpy (last_position,
- dl->data.d.d_buf,
- dl->data.d.d_size);
-
- scn_changed = true;
- }
- else
- last_position += dl->data.d.d_size;
-
- assert (scn_start + dl->data.d.d_off + dl->data.d.d_size
- == last_position);
-
- dl->flags &= ~ELF_F_DIRTY;
-
- dl = dl->next;
- }
- while (dl != NULL);
- else
- {
- /* If the previous section (or the ELF/program
- header) changed we might have to fill the gap. */
- if (scn_start > last_position && previous_scn_changed)
- fill_mmap (0);
-
- /* We have to trust the existing section header information. */
- last_position = scn_start + shdr->sh_size;
- }
-
-
- previous_scn_changed = scn_changed;
- next:
- scn->flags &= ~ELF_F_DIRTY;
- }
-
- /* Fill the gap between last section and section header table if
- necessary. */
- if ((elf->flags & ELF_F_DIRTY)
- && last_position < ((char *) elf->map_address + elf->start_offset
- + ehdr->e_shoff))
- memset (last_position, __libelf_fill_byte,
- (char *) elf->map_address + elf->start_offset + ehdr->e_shoff
- - last_position);
-
- /* Write the section header table entry if necessary. */
- for (size_t cnt = 0; cnt < shnum; ++cnt)
- {
- Elf_Scn *scn = scns[cnt];
-
- if ((scn->shdr_flags | elf->flags) & ELF_F_DIRTY)
- {
- if (unlikely (change_bo))
- (*shdr_fctp) (&shdr_dest[scn->index],
- scn->shdr.ELFW(e,LIBELFBITS),
- sizeof (ElfW2(LIBELFBITS,Shdr)), 1);
- else
- memcpy (&shdr_dest[scn->index],
- scn->shdr.ELFW(e,LIBELFBITS),
- sizeof (ElfW2(LIBELFBITS,Shdr)));
-
- /* If we previously made a copy of the section header
- entry we now have to adjust the pointer again so
- point to new place in the mapping. */
- if (!elf->state.ELFW(elf,LIBELFBITS).shdr_malloced
- && (scn->shdr_flags & ELF_F_MALLOCED) == 0)
- scn->shdr.ELFW(e,LIBELFBITS) = &shdr_dest[scn->index];
-
- scn->shdr_flags &= ~ELF_F_DIRTY;
- }
- }
- }
-
- /* That was the last part. Clear the overall flag. */
- elf->flags &= ~ELF_F_DIRTY;
-
- /* Make sure the content hits the disk. */
- char *msync_start = ((char *) elf->map_address
- + (elf->start_offset & ~(sysconf (_SC_PAGESIZE) - 1)));
- char *msync_end = ((char *) elf->map_address
- + elf->start_offset + ehdr->e_shoff
- + ehdr->e_shentsize * shnum);
- (void) msync (msync_start, msync_end - msync_start, MS_SYNC);
-
- return 0;
-}
-
-
-/* Size of the buffer we use to generate the blocks of fill bytes. */
-#define FILLBUFSIZE 4096
-
-/* If we have to convert the section buffer contents we have to use
- temporary buffer. Only buffers up to MAX_TMPBUF bytes are allocated
- on the stack. */
-#define MAX_TMPBUF 32768
-
-
-/* Helper function to write out fill bytes. */
-static int
-fill (int fd, off_t pos, size_t len, char *fillbuf, size_t *filledp)
-{
- size_t filled = *filledp;
- size_t fill_len = MIN (len, FILLBUFSIZE);
-
- if (unlikely (fill_len > filled) && filled < FILLBUFSIZE)
- {
- /* Initialize a few more bytes. */
- memset (fillbuf + filled, __libelf_fill_byte, fill_len - filled);
- *filledp = filled = fill_len;
- }
-
- do
- {
- /* This many bytes we want to write in this round. */
- size_t n = MIN (filled, len);
-
- if (unlikely ((size_t) pwrite_retry (fd, fillbuf, n, pos) != n))
- {
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- return 1;
- }
-
- pos += n;
- len -= n;
- }
- while (len > 0);
-
- return 0;
-}
-
-
-int
-internal_function
-__elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum)
-{
- char fillbuf[FILLBUFSIZE];
- size_t filled = 0;
- bool previous_scn_changed = false;
-
- /* We need the ELF header several times. */
- ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr;
-
- /* Write out the ELF header. */
- if ((elf->state.ELFW(elf,LIBELFBITS).ehdr_flags | elf->flags) & ELF_F_DIRTY)
- {
- ElfW2(LIBELFBITS,Ehdr) tmp_ehdr;
- ElfW2(LIBELFBITS,Ehdr) *out_ehdr = ehdr;
-
- /* If the type sizes should be different at some time we have to
- rewrite this code. */
- assert (sizeof (ElfW2(LIBELFBITS,Ehdr))
- == elf_typesize (LIBELFBITS, ELF_T_EHDR, 1));
-
- if (unlikely (change_bo))
- {
- /* Today there is only one version of the ELF header. */
-#if EV_NUM != 2
- xfct_t fctp;
- fctp = __elf_xfctstom[__libelf_version - 1][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_EHDR];
-#else
-# undef fctp
-# define fctp __elf_xfctstom[0][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_EHDR]
-#endif
-
- /* Write the converted ELF header in a temporary buffer. */
- (*fctp) (&tmp_ehdr, ehdr, sizeof (ElfW2(LIBELFBITS,Ehdr)), 1);
-
- /* This is the buffer we want to write. */
- out_ehdr = &tmp_ehdr;
- }
-
- /* Write out the ELF header. */
- if (unlikely (pwrite_retry (elf->fildes, out_ehdr,
- sizeof (ElfW2(LIBELFBITS,Ehdr)), 0)
- != sizeof (ElfW2(LIBELFBITS,Ehdr))))
- {
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- return 1;
- }
-
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags &= ~ELF_F_DIRTY;
-
- /* We start writing sections after the ELF header only if there is
- no program header. */
- previous_scn_changed = elf->state.ELFW(elf,LIBELFBITS).phdr == NULL;
- }
-
- /* If the type sizes should be different at some time we have to
- rewrite this code. */
- assert (sizeof (ElfW2(LIBELFBITS,Phdr))
- == elf_typesize (LIBELFBITS, ELF_T_PHDR, 1));
-
- size_t phnum;
- if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0))
- return -1;
-
- /* Write out the program header table. */
- if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL
- && ((elf->state.ELFW(elf,LIBELFBITS).phdr_flags | elf->flags)
- & ELF_F_DIRTY))
- {
- ElfW2(LIBELFBITS,Phdr) *tmp_phdr = NULL;
- ElfW2(LIBELFBITS,Phdr) *out_phdr = elf->state.ELFW(elf,LIBELFBITS).phdr;
-
- /* Maybe the user wants a gap between the ELF header and the program
- header. */
- if (ehdr->e_phoff > ehdr->e_ehsize
- && unlikely (fill (elf->fildes, ehdr->e_ehsize,
- ehdr->e_phoff - ehdr->e_ehsize, fillbuf, &filled)
- != 0))
- return 1;
-
- if (unlikely (change_bo))
- {
- /* Today there is only one version of the ELF header. */
-#if EV_NUM != 2
- xfct_t fctp;
- fctp = __elf_xfctstom[__libelf_version - 1][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_PHDR];
-#else
-# undef fctp
-# define fctp __elf_xfctstom[0][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_PHDR]
-#endif
-
- /* Allocate sufficient memory. */
- tmp_phdr = (ElfW2(LIBELFBITS,Phdr) *)
- malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum);
- if (tmp_phdr == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- return 1;
- }
-
- /* Write the converted ELF header in a temporary buffer. */
- (*fctp) (tmp_phdr, elf->state.ELFW(elf,LIBELFBITS).phdr,
- sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1);
-
- /* This is the buffer we want to write. */
- out_phdr = tmp_phdr;
- }
-
- /* Write out the ELF header. */
- size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum;
- if (unlikely ((size_t) pwrite_retry (elf->fildes, out_phdr,
- phdr_size, ehdr->e_phoff)
- != phdr_size))
- {
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- return 1;
- }
-
- /* This is a no-op we we have not allocated any memory. */
- free (tmp_phdr);
-
- elf->state.ELFW(elf,LIBELFBITS).phdr_flags &= ~ELF_F_DIRTY;
-
- /* We modified the program header. Maybe this created a gap so
- we have to write fill bytes, if necessary. */
- previous_scn_changed = true;
- }
-
- /* From now on we have to keep track of the last position to eventually
- fill the gaps with the prescribed fill byte. */
- off_t last_offset;
- if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
- last_offset = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1);
- else
- last_offset = (ehdr->e_phoff + sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum);
-
- /* Write all the sections. Well, only those which are modified. */
- if (shnum > 0)
- {
- if (unlikely (shnum > SIZE_MAX / (sizeof (Elf_Scn *)
- + sizeof (ElfW2(LIBELFBITS,Shdr)))))
- return 1;
-
- off_t shdr_offset = elf->start_offset + ehdr->e_shoff;
-#if EV_NUM != 2
- xfct_t shdr_fctp = __elf_xfctstom[__libelf_version - 1][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_SHDR];
-#else
-# undef shdr_fctp
-# define shdr_fctp __elf_xfctstom[0][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][ELF_T_SHDR]
-#endif
-
- ElfW2(LIBELFBITS,Shdr) *shdr_data;
- if (change_bo || elf->state.ELFW(elf,LIBELFBITS).shdr == NULL
- || (elf->flags & ELF_F_DIRTY))
- shdr_data = (ElfW2(LIBELFBITS,Shdr) *)
- alloca (shnum * sizeof (ElfW2(LIBELFBITS,Shdr)));
- else
- shdr_data = elf->state.ELFW(elf,LIBELFBITS).shdr;
- int shdr_flags = elf->flags;
-
- /* Get all sections into the array and sort them. */
- Elf_ScnList *list = &elf->state.ELFW(elf,LIBELFBITS).scns;
- Elf_Scn **scns = (Elf_Scn **) alloca (shnum * sizeof (Elf_Scn *));
- sort_sections (scns, list);
-
- for (size_t cnt = 0; cnt < shnum; ++cnt)
- {
- Elf_Scn *scn = scns[cnt];
- if (scn->index == 0)
- {
- /* The dummy section header entry. It should not be
- possible to mark this "section" as dirty. */
- assert ((scn->flags & ELF_F_DIRTY) == 0);
- goto next;
- }
-
- ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);
- if (shdr->sh_type == SHT_NOBITS)
- goto next;
-
- off_t scn_start = elf->start_offset + shdr->sh_offset;
- Elf_Data_List *dl = &scn->data_list;
- bool scn_changed = false;
-
- if (scn->data_list_rear != NULL)
- do
- {
- /* If there is a gap, fill it. */
- if (scn_start + dl->data.d.d_off > last_offset
- && ((previous_scn_changed && dl->data.d.d_off == 0)
- || ((scn->flags | dl->flags | elf->flags)
- & ELF_F_DIRTY) != 0))
- {
- if (unlikely (fill (elf->fildes, last_offset,
- (scn_start + dl->data.d.d_off)
- - last_offset, fillbuf,
- &filled) != 0))
- return 1;
- }
-
- if ((scn->flags | dl->flags | elf->flags) & ELF_F_DIRTY)
- {
- char tmpbuf[MAX_TMPBUF];
- void *buf = dl->data.d.d_buf;
-
- /* Let it go backward if the sections use a bogus
- layout with overlaps. We'll overwrite the stupid
- user's section data with the latest one, rather than
- crashing. */
-
- last_offset = scn_start + dl->data.d.d_off;
-
- if (unlikely (change_bo))
- {
-#if EV_NUM != 2
- xfct_t fctp;
- fctp = __elf_xfctstom[__libelf_version - 1][dl->data.d.d_version - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][dl->data.d.d_type];
-#else
-# undef fctp
-# define fctp __elf_xfctstom[0][EV_CURRENT - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][dl->data.d.d_type]
-#endif
-
- buf = tmpbuf;
- if (dl->data.d.d_size > MAX_TMPBUF)
- {
- buf = malloc (dl->data.d.d_size);
- if (buf == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- return 1;
- }
- }
-
- /* Do the real work. */
- (*fctp) (buf, dl->data.d.d_buf, dl->data.d.d_size, 1);
- }
-
- ssize_t n = pwrite_retry (elf->fildes, buf,
- dl->data.d.d_size,
- last_offset);
- if (unlikely ((size_t) n != dl->data.d.d_size))
- {
- if (buf != dl->data.d.d_buf && buf != tmpbuf)
- free (buf);
-
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- return 1;
- }
-
- if (buf != dl->data.d.d_buf && buf != tmpbuf)
- free (buf);
-
- scn_changed = true;
- }
-
- last_offset += dl->data.d.d_size;
-
- dl->flags &= ~ELF_F_DIRTY;
-
- dl = dl->next;
- }
- while (dl != NULL);
- else
- {
- /* If the previous section (or the ELF/program
- header) changed we might have to fill the gap. */
- if (scn_start > last_offset && previous_scn_changed)
- {
- if (unlikely (fill (elf->fildes, last_offset,
- scn_start - last_offset, fillbuf,
- &filled) != 0))
- return 1;
- }
-
- last_offset = scn_start + shdr->sh_size;
- }
-
- previous_scn_changed = scn_changed;
- next:
- /* Collect the section header table information. */
- if (unlikely (change_bo))
- (*shdr_fctp) (&shdr_data[scn->index],
- scn->shdr.ELFW(e,LIBELFBITS),
- sizeof (ElfW2(LIBELFBITS,Shdr)), 1);
- else if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL
- || (elf->flags & ELF_F_DIRTY))
- memcpy (&shdr_data[scn->index], scn->shdr.ELFW(e,LIBELFBITS),
- sizeof (ElfW2(LIBELFBITS,Shdr)));
-
- shdr_flags |= scn->shdr_flags;
- scn->shdr_flags &= ~ELF_F_DIRTY;
- }
-
- /* Fill the gap between last section and section header table if
- necessary. */
- if ((elf->flags & ELF_F_DIRTY) && last_offset < shdr_offset
- && unlikely (fill (elf->fildes, last_offset,
- shdr_offset - last_offset,
- fillbuf, &filled) != 0))
- return 1;
-
- /* Write out the section header table. */
- if (shdr_flags & ELF_F_DIRTY
- && unlikely ((size_t) pwrite_retry (elf->fildes, shdr_data,
- sizeof (ElfW2(LIBELFBITS,Shdr))
- * shnum, shdr_offset)
- != sizeof (ElfW2(LIBELFBITS,Shdr)) * shnum))
- {
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- return 1;
- }
- }
-
- /* That was the last part. Clear the overall flag. */
- elf->flags &= ~ELF_F_DIRTY;
-
- return 0;
-}
diff --git a/src/libelf/elf32_updatenull.c b/src/libelf/elf32_updatenull.c
deleted file mode 100644
index be4cea03..00000000
--- a/src/libelf/elf32_updatenull.c
+++ /dev/null
@@ -1,417 +0,0 @@
-/* Update data structures for changes.
- Copyright (C) 2000-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <endian.h>
-#include <libelf.h>
-#include <stdbool.h>
-#include <string.h>
-#include <sys/param.h>
-
-#include "libelfP.h"
-#include "elf-knowledge.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-
-static int
-ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr,
- size_t shnum, int *change_bop)
-{
- /* Always write the magic bytes. */
- if (memcmp (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0)
- {
- memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG);
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
- }
-
- /* Always set the file class. */
- update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS),
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
-
- /* Set the data encoding if necessary. */
- if (unlikely (ehdr->e_ident[EI_DATA] == ELFDATANONE))
- {
- ehdr->e_ident[EI_DATA] =
- BYTE_ORDER == BIG_ENDIAN ? ELFDATA2MSB : ELFDATA2LSB;
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
- }
- else if (unlikely (ehdr->e_ident[EI_DATA] >= ELFDATANUM))
- {
- __libelf_seterrno (ELF_E_DATA_ENCODING);
- return 1;
- }
- else
- *change_bop = ((BYTE_ORDER == LITTLE_ENDIAN
- && ehdr->e_ident[EI_DATA] != ELFDATA2LSB)
- || (BYTE_ORDER == BIG_ENDIAN
- && ehdr->e_ident[EI_DATA] != ELFDATA2MSB));
-
- /* Unconditionally overwrite the ELF version. */
- update_if_changed (ehdr->e_ident[EI_VERSION], EV_CURRENT,
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
-
- if (unlikely (ehdr->e_version == EV_NONE)
- || unlikely (ehdr->e_version >= EV_NUM))
- {
- __libelf_seterrno (ELF_E_UNKNOWN_VERSION);
- return 1;
- }
-
- if (unlikely (shnum >= SHN_LORESERVE))
- {
- update_if_changed (ehdr->e_shnum, 0,
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
- }
- else
- update_if_changed (ehdr->e_shnum, shnum,
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags);
-
- if (unlikely (ehdr->e_ehsize != elf_typesize (LIBELFBITS, ELF_T_EHDR, 1)))
- {
- ehdr->e_ehsize = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1);
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ELF_F_DIRTY;
- }
-
- return 0;
-}
-
-
-off_t
-internal_function
-__elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
-{
- ElfW2(LIBELFBITS,Ehdr) *ehdr;
- int changed = 0;
- int ehdr_flags = 0;
-
- ehdr = __elfw2(LIBELFBITS,getehdr_wrlock) (elf);
-
- /* Set the default values. */
- if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0)
- return -1;
-
- /* At least the ELF header is there. */
- off_t size = elf_typesize (LIBELFBITS, ELF_T_EHDR, 1);
-
- /* Set the program header position. */
- if (elf->state.ELFW(elf,LIBELFBITS).phdr == NULL
- && (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN
- || ehdr->e_type == ET_CORE))
- (void) __elfw2(LIBELFBITS,getphdr_wrlock) (elf);
- if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
- {
- /* Only executables, shared objects, and core files have a program
- header. */
- if (ehdr->e_type != ET_EXEC && ehdr->e_type != ET_DYN
- && unlikely (ehdr->e_type != ET_CORE))
- {
- __libelf_seterrno (ELF_E_INVALID_PHDR);
- return -1;
- }
-
- size_t phnum;
- if (unlikely (__elf_getphdrnum_rdlock (elf, &phnum) != 0))
- return -1;
-
- if (elf->flags & ELF_F_LAYOUT)
- {
- /* The user is supposed to fill out e_phoff. Use it and
- e_phnum to determine the maximum extend. */
- size = MAX ((size_t) size,
- ehdr->e_phoff
- + elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum));
- }
- else
- {
- update_if_changed (ehdr->e_phoff,
- elf_typesize (LIBELFBITS, ELF_T_EHDR, 1),
- ehdr_flags);
-
- /* We need no alignment here. */
- size += elf_typesize (LIBELFBITS, ELF_T_PHDR, phnum);
- }
- }
-
- if (shnum > 0)
- {
- Elf_ScnList *list;
- bool first = true;
-
- assert (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0);
-
- if (shnum >= SHN_LORESERVE)
- {
- /* We have to fill in the number of sections in the header
- of the zeroth section. */
- Elf_Scn *scn0 = &elf->state.ELFW(elf,LIBELFBITS).scns.data[0];
-
- update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size,
- shnum, scn0->shdr_flags);
- }
-
- /* Go over all sections and find out how large they are. */
- list = &elf->state.ELFW(elf,LIBELFBITS).scns;
-
- /* Load the section headers if necessary. This loads the
- headers for all sections. */
- if (list->data[1].shdr.ELFW(e,LIBELFBITS) == NULL)
- (void) __elfw2(LIBELFBITS,getshdr_wrlock) (&list->data[1]);
-
- do
- {
- for (size_t cnt = first == true; cnt < list->cnt; ++cnt)
- {
- Elf_Scn *scn = &list->data[cnt];
- ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS);
- off_t offset = 0;
-
- assert (shdr != NULL);
- ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize;
- ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1;
-
- /* Set the sh_entsize value if we can reliably detect it. */
- switch (shdr->sh_type)
- {
- case SHT_SYMTAB:
- sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1);
- break;
- case SHT_RELA:
- sh_entsize = elf_typesize (LIBELFBITS, ELF_T_RELA, 1);
- break;
- case SHT_GROUP:
- /* Only relocatable files can contain section groups. */
- if (ehdr->e_type != ET_REL)
- {
- __libelf_seterrno (ELF_E_GROUP_NOT_REL);
- return -1;
- }
- /* FALLTHROUGH */
- case SHT_SYMTAB_SHNDX:
- sh_entsize = elf_typesize (32, ELF_T_WORD, 1);
- break;
- case SHT_HASH:
- sh_entsize = SH_ENTSIZE_HASH (ehdr);
- break;
- case SHT_DYNAMIC:
- sh_entsize = elf_typesize (LIBELFBITS, ELF_T_DYN, 1);
- break;
- case SHT_REL:
- sh_entsize = elf_typesize (LIBELFBITS, ELF_T_REL, 1);
- break;
- case SHT_DYNSYM:
- sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1);
- break;
- case SHT_SUNW_move:
- sh_entsize = elf_typesize (LIBELFBITS, ELF_T_MOVE, 1);
- break;
- case SHT_SUNW_syminfo:
- sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYMINFO, 1);
- break;
- default:
- break;
- }
-
- /* If the section header contained the wrong entry size
- correct it and mark the header as modified. */
- update_if_changed (shdr->sh_entsize, sh_entsize,
- scn->shdr_flags);
-
- if (scn->data_read == 0
- && __libelf_set_rawdata_wrlock (scn) != 0)
- /* Something went wrong. The error value is already set. */
- return -1;
-
- /* Iterate over all data blocks. */
- if (list->data[cnt].data_list_rear != NULL)
- {
- Elf_Data_List *dl = &scn->data_list;
-
- while (dl != NULL)
- {
- Elf_Data *data = &dl->data.d;
- if (dl == &scn->data_list && data->d_buf == NULL
- && scn->rawdata.d.d_buf != NULL)
- data = &scn->rawdata.d;
-
- if (unlikely (data->d_version == EV_NONE)
- || unlikely (data->d_version >= EV_NUM))
- {
- __libelf_seterrno (ELF_E_UNKNOWN_VERSION);
- return -1;
- }
-
- if (unlikely (! powerof2 (data->d_align)))
- {
- __libelf_seterrno (ELF_E_INVALID_ALIGN);
- return -1;
- }
-
- sh_align = MAX (sh_align, data->d_align);
-
- if (elf->flags & ELF_F_LAYOUT)
- {
- /* The user specified the offset and the size.
- All we have to do is check whether this block
- fits in the size specified for the section. */
- if (unlikely ((GElf_Word) (data->d_off
- + data->d_size)
- > shdr->sh_size))
- {
- __libelf_seterrno (ELF_E_SECTION_TOO_SMALL);
- return -1;
- }
- }
- else
- {
- /* Determine the padding. */
- offset = ((offset + data->d_align - 1)
- & ~(data->d_align - 1));
-
- update_if_changed (data->d_off, offset, changed);
-
- offset += data->d_size;
- }
-
- /* Next data block. */
- dl = dl->next;
- }
- }
- else
- /* Get the size of the section from the raw data. If
- none is available the value is zero. */
- offset += scn->rawdata.d.d_size;
-
- if (elf->flags & ELF_F_LAYOUT)
- {
- size = MAX ((GElf_Word) size,
- shdr->sh_offset
- + (shdr->sh_type != SHT_NOBITS
- ? shdr->sh_size : 0));
-
- /* The alignment must be a power of two. This is a
- requirement from the ELF specification. Additionally
- we test for the alignment of the section being large
- enough for the largest alignment required by a data
- block. */
- if (unlikely (! powerof2 (shdr->sh_addralign))
- || unlikely (shdr->sh_addralign < sh_align))
- {
- __libelf_seterrno (ELF_E_INVALID_ALIGN);
- return -1;
- }
- }
- else
- {
- /* How much alignment do we need for this section. */
- update_if_changed (shdr->sh_addralign, sh_align,
- scn->shdr_flags);
-
- size = (size + sh_align - 1) & ~(sh_align - 1);
- int offset_changed = 0;
- update_if_changed (shdr->sh_offset, (GElf_Word) size,
- offset_changed);
- changed |= offset_changed;
-
- if (offset_changed && scn->data_list_rear == NULL)
- {
- /* The position of the section in the file
- changed. Create the section data list. */
- if (__elf_getdata_rdlock (scn, NULL) == NULL)
- return -1;
- }
-
- /* See whether the section size is correct. */
- update_if_changed (shdr->sh_size, (GElf_Word) offset,
- changed);
-
- if (shdr->sh_type != SHT_NOBITS)
- size += offset;
-
- scn->flags |= changed;
- }
-
- /* Check that the section size is actually a multiple of
- the entry size. */
- if (shdr->sh_entsize != 0
- && unlikely (shdr->sh_size % shdr->sh_entsize != 0)
- && (elf->flags & ELF_F_PERMISSIVE) == 0)
- {
- __libelf_seterrno (ELF_E_INVALID_SHENTSIZE);
- return -1;
- }
- }
-
- assert (list->next == NULL || list->cnt == list->max);
-
- first = false;
- }
- while ((list = list->next) != NULL);
-
- /* Store section information. */
- if (elf->flags & ELF_F_LAYOUT)
- {
- /* The user is supposed to fill out e_shoff. Use it and
- e_shnum (or sh_size of the dummy, first section header)
- to determine the maximum extend. */
- size = MAX ((GElf_Word) size,
- (ehdr->e_shoff
- + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum))));
- }
- else
- {
- /* Align for section header table.
-
- Yes, we use `sizeof' and not `__alignof__' since we do not
- want to be surprised by architectures with less strict
- alignment rules. */
-#define SHDR_ALIGN sizeof (ElfW2(LIBELFBITS,Off))
- size = (size + SHDR_ALIGN - 1) & ~(SHDR_ALIGN - 1);
-
- update_if_changed (ehdr->e_shoff, (GElf_Word) size, elf->flags);
- update_if_changed (ehdr->e_shentsize,
- elf_typesize (LIBELFBITS, ELF_T_SHDR, 1),
- ehdr_flags);
-
- /* Account for the section header size. */
- size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum);
- }
- }
-
- elf->state.ELFW(elf,LIBELFBITS).ehdr_flags |= ehdr_flags;
-
- return size;
-}
diff --git a/src/libelf/elf32_xlatetof.c b/src/libelf/elf32_xlatetof.c
deleted file mode 100644
index 27a973ec..00000000
--- a/src/libelf/elf32_xlatetof.c
+++ /dev/null
@@ -1,123 +0,0 @@
-/* Convert from memory to file representation.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <endian.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-Elf_Data *
-elfw2(LIBELFBITS, xlatetof) (dest, src, encode)
- Elf_Data *dest;
- const Elf_Data *src;
- unsigned int encode;
-{
- /* First test whether the input data is really suitable for this
- type. This means, whether there is an integer number of records.
- Note that for this implementation the memory and file size of the
- data types are identical. */
-#if EV_NUM != 2
- size_t recsize = __libelf_type_sizes[src->d_version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type];
-#else
- size_t recsize = __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type];
-#endif
-
- if (src->d_size % recsize != 0)
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- return NULL;
- }
-
- /* Next see whether the converted data fits in the output buffer. */
- if (src->d_size > dest->d_size)
- {
- __libelf_seterrno (ELF_E_DEST_SIZE);
- return NULL;
- }
-
- /* Test the encode parameter. */
- if (encode != ELFDATA2LSB && encode != ELFDATA2MSB)
- {
- __libelf_seterrno (ELF_E_INVALID_ENCODING);
- return NULL;
- }
-
- /* Determine the translation function to use.
-
- At this point we make an assumption which is valid for all
- existing implementations so far: the memory and file sizes are
- the same. This has very important consequences:
- a) The requirement that the source and destination buffer can
- overlap can easily be fulfilled.
- b) We need only one function to convert from and memory to file
- and vice versa since the function only has to copy and/or
- change the byte order.
- */
- if ((__BYTE_ORDER == __LITTLE_ENDIAN && encode == ELFDATA2LSB)
- || (__BYTE_ORDER == __BIG_ENDIAN && encode == ELFDATA2MSB))
- {
- /* We simply have to copy since the byte order is the same. */
- if (src->d_buf != dest->d_buf)
- memmove (dest->d_buf, src->d_buf, src->d_size);
- }
- else
- {
- xfct_t fctp;
-
- /* Get a pointer to the transformation functions. The `#ifdef' is
- a small optimization since we don't anticipate another ELF
- version and so would waste "precious" code. */
-#if EV_NUM != 2
- fctp = __elf_xfctstom[dest->d_version - 1][src->d_version - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type];
-#else
- fctp = __elf_xfctstom[0][0][ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type];
-#endif
-
- /* Do the real work. */
- (*fctp) (dest->d_buf, src->d_buf, src->d_size, 1);
- }
-
- /* Now set the real destination type and length since the operation was
- successful. */
- dest->d_type = src->d_type;
- dest->d_size = src->d_size;
-
- return dest;
-}
-INTDEF(elfw2(LIBELFBITS, xlatetof))
diff --git a/src/libelf/elf32_xlatetom.c b/src/libelf/elf32_xlatetom.c
deleted file mode 100644
index 368df078..00000000
--- a/src/libelf/elf32_xlatetom.c
+++ /dev/null
@@ -1,128 +0,0 @@
-/* Convert from file to memory representation.
- Copyright (C) 1998, 1999, 2000, 2002, 2012 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <endian.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-Elf_Data *
-elfw2(LIBELFBITS, xlatetom) (dest, src, encode)
- Elf_Data *dest;
- const Elf_Data *src;
- unsigned int encode;
-{
- /* First test whether the input data is really suitable for this
- type. This means, whether there is an integer number of records.
- Note that for this implementation the memory and file size of the
- data types are identical. */
-#if EV_NUM != 2
- size_t recsize = __libelf_type_sizes[src->d_version - 1][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type];
-#else
- size_t recsize = __libelf_type_sizes[0][ELFW(ELFCLASS,LIBELFBITS) - 1][src->d_type];
-#endif
-
-
- /* We shouldn't require integer number of records when processing
- notes. Payload bytes follow the header immediately, it's not an
- array of records as is the case otherwise. */
- if (src->d_type != ELF_T_NHDR
- && src->d_size % recsize != 0)
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- return NULL;
- }
-
- /* Next see whether the converted data fits in the output buffer. */
- if (src->d_size > dest->d_size)
- {
- __libelf_seterrno (ELF_E_DEST_SIZE);
- return NULL;
- }
-
- /* Test the encode parameter. */
- if (encode != ELFDATA2LSB && encode != ELFDATA2MSB)
- {
- __libelf_seterrno (ELF_E_INVALID_ENCODING);
- return NULL;
- }
-
- /* Determine the translation function to use.
-
- At this point we make an assumption which is valid for all
- existing implementations so far: the memory and file sizes are
- the same. This has very important consequences:
- a) The requirement that the source and destination buffer can
- overlap can easily be fulfilled.
- b) We need only one function to convert from and memory to file
- and vice versa since the function only has to copy and/or
- change the byte order.
- */
- if ((BYTE_ORDER == LITTLE_ENDIAN && encode == ELFDATA2LSB)
- || (BYTE_ORDER == BIG_ENDIAN && encode == ELFDATA2MSB))
- {
- /* We simply have to copy since the byte order is the same. */
- if (src->d_buf != dest->d_buf)
- memmove (dest->d_buf, src->d_buf, src->d_size);
- }
- else
- {
- xfct_t fctp;
-
- /* Get a pointer to the transformation functions. The `#ifdef' is
- a small optimization since we don't anticipate another ELF
- version and so would waste "precious" code. */
-#if EV_NUM != 2
- fctp = __elf_xfctstom[src->d_version - 1][dest->d_version - 1][ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type];
-#else
- fctp = __elf_xfctstom[0][0][ELFW(ELFCLASS, LIBELFBITS) - 1][src->d_type];
-#endif
-
- /* Do the real work. */
- (*fctp) (dest->d_buf, src->d_buf, src->d_size, 0);
- }
-
- /* Now set the real destination type and length since the operation was
- successful. */
- dest->d_type = src->d_type;
- dest->d_size = src->d_size;
-
- return dest;
-}
-INTDEF(elfw2(LIBELFBITS, xlatetom))
diff --git a/src/libelf/elf64_checksum.c b/src/libelf/elf64_checksum.c
deleted file mode 100644
index 18022401..00000000
--- a/src/libelf/elf64_checksum.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Compute simple checksum from permanent parts of the ELF file.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_checksum.c"
diff --git a/src/libelf/elf64_fsize.c b/src/libelf/elf64_fsize.c
deleted file mode 100644
index 1ee1067d..00000000
--- a/src/libelf/elf64_fsize.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Return the size of an object file type.
- Copyright (C) 1998, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_fsize.c"
diff --git a/src/libelf/elf64_getehdr.c b/src/libelf/elf64_getehdr.c
deleted file mode 100644
index b35e7f66..00000000
--- a/src/libelf/elf64_getehdr.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Return program header table.
- Copyright (C) 1998, 1999, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_getehdr.c"
diff --git a/src/libelf/elf64_getphdr.c b/src/libelf/elf64_getphdr.c
deleted file mode 100644
index c1ee60f4..00000000
--- a/src/libelf/elf64_getphdr.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Return program header table.
- Copyright (C) 1998, 1999, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_getphdr.c"
diff --git a/src/libelf/elf64_getshdr.c b/src/libelf/elf64_getshdr.c
deleted file mode 100644
index c50cc71a..00000000
--- a/src/libelf/elf64_getshdr.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Return section header.
- Copyright (C) 1998, 1999, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_getshdr.c"
diff --git a/src/libelf/elf64_newehdr.c b/src/libelf/elf64_newehdr.c
deleted file mode 100644
index 65dd0f72..00000000
--- a/src/libelf/elf64_newehdr.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Create new program header table.
- Copyright (C) 1999, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_newehdr.c"
diff --git a/src/libelf/elf64_newphdr.c b/src/libelf/elf64_newphdr.c
deleted file mode 100644
index 58bfc73c..00000000
--- a/src/libelf/elf64_newphdr.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Create new program header table.
- Copyright (C) 1999, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_newphdr.c"
diff --git a/src/libelf/elf64_offscn.c b/src/libelf/elf64_offscn.c
deleted file mode 100644
index 1b37b366..00000000
--- a/src/libelf/elf64_offscn.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Return program header table.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_offscn.c"
diff --git a/src/libelf/elf64_updatefile.c b/src/libelf/elf64_updatefile.c
deleted file mode 100644
index 6941fe9a..00000000
--- a/src/libelf/elf64_updatefile.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Copyright (C) 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_updatefile.c"
diff --git a/src/libelf/elf64_updatenull.c b/src/libelf/elf64_updatenull.c
deleted file mode 100644
index 8333b5b2..00000000
--- a/src/libelf/elf64_updatenull.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Copyright (C) 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_updatenull.c"
diff --git a/src/libelf/elf64_xlatetof.c b/src/libelf/elf64_xlatetof.c
deleted file mode 100644
index aacf5b08..00000000
--- a/src/libelf/elf64_xlatetof.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Convert from memory to file representation.
- Copyright (C) 1998, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_xlatetof.c"
diff --git a/src/libelf/elf64_xlatetom.c b/src/libelf/elf64_xlatetom.c
deleted file mode 100644
index 034262cf..00000000
--- a/src/libelf/elf64_xlatetom.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Convert from file to memory representation.
- Copyright (C) 1998, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#define LIBELFBITS 64
-#include "elf32_xlatetom.c"
diff --git a/src/libelf/elf_begin.c b/src/libelf/elf_begin.c
deleted file mode 100644
index 30abe0bf..00000000
--- a/src/libelf/elf_begin.c
+++ /dev/null
@@ -1,1135 +0,0 @@
-/* Create descriptor for processing file.
- Copyright (C) 1998-2010, 2012, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <ctype.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <stdbool.h>
-#include <stddef.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/mman.h>
-#include <sys/param.h>
-#include <sys/stat.h>
-
-#include <system.h>
-#include "libelfP.h"
-#include "common.h"
-
-
-/* Create descriptor for archive in memory. */
-static inline Elf *
-file_read_ar (int fildes, void *map_address, off_t offset, size_t maxsize,
- Elf_Cmd cmd, Elf *parent)
-{
- Elf *elf;
-
- /* Create a descriptor. */
- elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent,
- ELF_K_AR, 0);
- if (elf != NULL)
- {
- /* We don't read all the symbol tables in advance. All this will
- happen on demand. */
- elf->state.ar.offset = offset + SARMAG;
-
- elf->state.ar.elf_ar_hdr.ar_rawname = elf->state.ar.raw_name;
- }
-
- return elf;
-}
-
-
-static size_t
-get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset,
- size_t maxsize)
-{
- size_t result;
- union
- {
- Elf32_Ehdr *e32;
- Elf64_Ehdr *e64;
- void *p;
- } ehdr;
- union
- {
- Elf32_Ehdr e32;
- Elf64_Ehdr e64;
- } ehdr_mem;
- bool is32 = e_ident[EI_CLASS] == ELFCLASS32;
-
- /* Make the ELF header available. */
- if (e_ident[EI_DATA] == MY_ELFDATA
- && (ALLOW_UNALIGNED
- || (((size_t) e_ident
- & ((is32 ? __alignof__ (Elf32_Ehdr) : __alignof__ (Elf64_Ehdr))
- - 1)) == 0)))
- ehdr.p = e_ident;
- else
- {
- /* We already read the ELF header. We have to copy the header
- since we possibly modify the data here and the caller
- expects the memory it passes in to be preserved. */
- ehdr.p = &ehdr_mem;
-
- if (is32)
- {
- if (ALLOW_UNALIGNED)
- {
- ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum;
- ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff;
- }
- else
- memcpy (&ehdr_mem, e_ident, sizeof (Elf32_Ehdr));
-
- if (e_ident[EI_DATA] != MY_ELFDATA)
- {
- CONVERT (ehdr_mem.e32.e_shnum);
- CONVERT (ehdr_mem.e32.e_shoff);
- }
- }
- else
- {
- if (ALLOW_UNALIGNED)
- {
- ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)->e_shnum;
- ehdr_mem.e64.e_shoff = ((Elf64_Ehdr *) e_ident)->e_shoff;
- }
- else
- memcpy (&ehdr_mem, e_ident, sizeof (Elf64_Ehdr));
-
- if (e_ident[EI_DATA] != MY_ELFDATA)
- {
- CONVERT (ehdr_mem.e64.e_shnum);
- CONVERT (ehdr_mem.e64.e_shoff);
- }
- }
- }
-
- if (is32)
- {
- /* Get the number of sections from the ELF header. */
- result = ehdr.e32->e_shnum;
-
- if (unlikely (result == 0) && ehdr.e32->e_shoff != 0)
- {
- if (unlikely (ehdr.e32->e_shoff >= maxsize)
- || unlikely (maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr)))
- /* Cannot read the first section header. */
- return 0;
-
- if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA
- && (ALLOW_UNALIGNED
- || (((size_t) ((char *) map_address + offset))
- & (__alignof__ (Elf32_Ehdr) - 1)) == 0))
- /* We can directly access the memory. */
- result = ((Elf32_Shdr *) ((char *) map_address + ehdr.e32->e_shoff
- + offset))->sh_size;
- else
- {
- Elf32_Word size;
-
- if (likely (map_address != NULL))
- /* gcc will optimize the memcpy to a simple memory
- access while taking care of alignment issues. */
- memcpy (&size, &((Elf32_Shdr *) ((char *) map_address
- + ehdr.e32->e_shoff
- + offset))->sh_size,
- sizeof (Elf32_Word));
- else
- if (unlikely (pread_retry (fildes, &size, sizeof (Elf32_Word),
- offset + ehdr.e32->e_shoff
- + offsetof (Elf32_Shdr, sh_size))
- != sizeof (Elf32_Word)))
- return (size_t) -1l;
-
- if (e_ident[EI_DATA] != MY_ELFDATA)
- CONVERT (size);
-
- result = size;
- }
- }
-
- /* If the section headers were truncated, pretend none were there. */
- if (ehdr.e32->e_shoff > maxsize
- || maxsize - ehdr.e32->e_shoff < sizeof (Elf32_Shdr) * result)
- result = 0;
- }
- else
- {
- /* Get the number of sections from the ELF header. */
- result = ehdr.e64->e_shnum;
-
- if (unlikely (result == 0) && ehdr.e64->e_shoff != 0)
- {
- if (unlikely (ehdr.e64->e_shoff >= maxsize)
- || unlikely (ehdr.e64->e_shoff + sizeof (Elf64_Shdr) > maxsize))
- /* Cannot read the first section header. */
- return 0;
-
- Elf64_Xword size;
- if (likely (map_address != NULL) && e_ident[EI_DATA] == MY_ELFDATA
- && (ALLOW_UNALIGNED
- || (((size_t) ((char *) map_address + offset))
- & (__alignof__ (Elf64_Ehdr) - 1)) == 0))
- /* We can directly access the memory. */
- size = ((Elf64_Shdr *) ((char *) map_address + ehdr.e64->e_shoff
- + offset))->sh_size;
- else
- {
- if (likely (map_address != NULL))
- /* gcc will optimize the memcpy to a simple memory
- access while taking care of alignment issues. */
- memcpy (&size, &((Elf64_Shdr *) ((char *) map_address
- + ehdr.e64->e_shoff
- + offset))->sh_size,
- sizeof (Elf64_Xword));
- else
- if (unlikely (pread_retry (fildes, &size, sizeof (Elf64_Word),
- offset + ehdr.e64->e_shoff
- + offsetof (Elf64_Shdr, sh_size))
- != sizeof (Elf64_Xword)))
- return (size_t) -1l;
-
- if (e_ident[EI_DATA] != MY_ELFDATA)
- CONVERT (size);
- }
-
- if (size > ~((GElf_Word) 0))
- /* Invalid value, it is too large. */
- return (size_t) -1l;
-
- result = size;
- }
-
- /* If the section headers were truncated, pretend none were there. */
- if (ehdr.e64->e_shoff > maxsize
- || maxsize - ehdr.e64->e_shoff < sizeof (Elf64_Shdr) * result)
- result = 0;
- }
-
- return result;
-}
-
-
-/* Create descriptor for ELF file in memory. */
-static Elf *
-file_read_elf (int fildes, void *map_address, unsigned char *e_ident,
- off_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent)
-{
- /* Verify the binary is of the class we can handle. */
- if (unlikely ((e_ident[EI_CLASS] != ELFCLASS32
- && e_ident[EI_CLASS] != ELFCLASS64)
- /* We also can only handle two encodings. */
- || (e_ident[EI_DATA] != ELFDATA2LSB
- && e_ident[EI_DATA] != ELFDATA2MSB)))
- {
- /* Cannot handle this. */
- __libelf_seterrno (ELF_E_INVALID_FILE);
- return NULL;
- }
-
- /* Determine the number of sections. */
- size_t scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize);
- if (scncnt == (size_t) -1l)
- /* Could not determine the number of sections. */
- return NULL;
-
- /* Check for too many sections. */
- if (e_ident[EI_CLASS] == ELFCLASS32)
- {
- if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf32_Shdr)))
- return NULL;
- }
- else if (scncnt > SIZE_MAX / (sizeof (Elf_Scn) + sizeof (Elf64_Shdr)))
- return NULL;
-
- /* We can now allocate the memory. Even if there are no section headers,
- we allocate space for a zeroth section in case we need it later. */
- const size_t scnmax = (scncnt ?: (cmd == ELF_C_RDWR || cmd == ELF_C_RDWR_MMAP)
- ? 1 : 0);
- Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent,
- ELF_K_ELF, scnmax * sizeof (Elf_Scn));
- if (elf == NULL)
- /* Not enough memory. */
- return NULL;
-
- assert ((unsigned int) scncnt == scncnt);
- assert (offsetof (struct Elf, state.elf32.scns)
- == offsetof (struct Elf, state.elf64.scns));
- elf->state.elf32.scns.cnt = scncnt;
- elf->state.elf32.scns.max = scnmax;
-
- /* Some more or less arbitrary value. */
- elf->state.elf.scnincr = 10;
-
- /* Make the class easily available. */
- elf->class = e_ident[EI_CLASS];
-
- if (e_ident[EI_CLASS] == ELFCLASS32)
- {
- /* This pointer might not be directly usable if the alignment is
- not sufficient for the architecture. */
- Elf32_Ehdr *ehdr = (Elf32_Ehdr *) ((char *) map_address + offset);
-
- /* This is a 32-bit binary. */
- if (map_address != NULL && e_ident[EI_DATA] == MY_ELFDATA
- && (ALLOW_UNALIGNED
- || ((((uintptr_t) ehdr) & (__alignof__ (Elf32_Ehdr) - 1)) == 0
- && ((uintptr_t) ((char *) ehdr + ehdr->e_shoff)
- & (__alignof__ (Elf32_Shdr) - 1)) == 0
- && ((uintptr_t) ((char *) ehdr + ehdr->e_phoff)
- & (__alignof__ (Elf32_Phdr) - 1)) == 0)))
- {
- /* We can use the mmapped memory. */
- elf->state.elf32.ehdr = ehdr;
-
- if (unlikely (ehdr->e_shoff >= maxsize)
- || unlikely (maxsize - ehdr->e_shoff
- < scncnt * sizeof (Elf32_Shdr)))
- {
- free_and_out:
- free (elf);
- __libelf_seterrno (ELF_E_INVALID_FILE);
- return NULL;
- }
- elf->state.elf32.shdr
- = (Elf32_Shdr *) ((char *) ehdr + ehdr->e_shoff);
-
- /* Don't precache the phdr pointer here.
- elf32_getphdr will validate it against the size when asked. */
-
- for (size_t cnt = 0; cnt < scncnt; ++cnt)
- {
- elf->state.elf32.scns.data[cnt].index = cnt;
- elf->state.elf32.scns.data[cnt].elf = elf;
- elf->state.elf32.scns.data[cnt].shdr.e32 =
- &elf->state.elf32.shdr[cnt];
- if (likely (elf->state.elf32.shdr[cnt].sh_offset < maxsize)
- && likely (elf->state.elf32.shdr[cnt].sh_size
- <= maxsize - elf->state.elf32.shdr[cnt].sh_offset))
- elf->state.elf32.scns.data[cnt].rawdata_base =
- elf->state.elf32.scns.data[cnt].data_base =
- ((char *) map_address + offset
- + elf->state.elf32.shdr[cnt].sh_offset);
- elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns;
-
- /* If this is a section with an extended index add a
- reference in the section which uses the extended
- index. */
- if (elf->state.elf32.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX
- && elf->state.elf32.shdr[cnt].sh_link < scncnt)
- elf->state.elf32.scns.data[elf->state.elf32.shdr[cnt].sh_link].shndx_index
- = cnt;
-
- /* Set the own shndx_index field in case it has not yet
- been set. */
- if (elf->state.elf32.scns.data[cnt].shndx_index == 0)
- elf->state.elf32.scns.data[cnt].shndx_index = -1;
- }
- }
- else
- {
- /* Copy the ELF header. */
- elf->state.elf32.ehdr = memcpy (&elf->state.elf32.ehdr_mem, e_ident,
- sizeof (Elf32_Ehdr));
-
- if (e_ident[EI_DATA] != MY_ELFDATA)
- {
- CONVERT (elf->state.elf32.ehdr_mem.e_type);
- CONVERT (elf->state.elf32.ehdr_mem.e_machine);
- CONVERT (elf->state.elf32.ehdr_mem.e_version);
- CONVERT (elf->state.elf32.ehdr_mem.e_entry);
- CONVERT (elf->state.elf32.ehdr_mem.e_phoff);
- CONVERT (elf->state.elf32.ehdr_mem.e_shoff);
- CONVERT (elf->state.elf32.ehdr_mem.e_flags);
- CONVERT (elf->state.elf32.ehdr_mem.e_ehsize);
- CONVERT (elf->state.elf32.ehdr_mem.e_phentsize);
- CONVERT (elf->state.elf32.ehdr_mem.e_phnum);
- CONVERT (elf->state.elf32.ehdr_mem.e_shentsize);
- CONVERT (elf->state.elf32.ehdr_mem.e_shnum);
- CONVERT (elf->state.elf32.ehdr_mem.e_shstrndx);
- }
-
- for (size_t cnt = 0; cnt < scncnt; ++cnt)
- {
- elf->state.elf32.scns.data[cnt].index = cnt;
- elf->state.elf32.scns.data[cnt].elf = elf;
- elf->state.elf32.scns.data[cnt].list = &elf->state.elf32.scns;
- }
- }
-
- /* So far only one block with sections. */
- elf->state.elf32.scns_last = &elf->state.elf32.scns;
- }
- else
- {
- /* This pointer might not be directly usable if the alignment is
- not sufficient for the architecture. */
- Elf64_Ehdr *ehdr = (Elf64_Ehdr *) ((char *) map_address + offset);
-
- /* This is a 64-bit binary. */
- if (map_address != NULL && e_ident[EI_DATA] == MY_ELFDATA
- && (ALLOW_UNALIGNED
- || ((((uintptr_t) ehdr) & (__alignof__ (Elf64_Ehdr) - 1)) == 0
- && ((uintptr_t) ((char *) ehdr + ehdr->e_shoff)
- & (__alignof__ (Elf64_Shdr) - 1)) == 0
- && ((uintptr_t) ((char *) ehdr + ehdr->e_phoff)
- & (__alignof__ (Elf64_Phdr) - 1)) == 0)))
- {
- /* We can use the mmapped memory. */
- elf->state.elf64.ehdr = ehdr;
-
- if (unlikely (ehdr->e_shoff >= maxsize)
- || unlikely (maxsize - ehdr->e_shoff
- < scncnt * sizeof (Elf64_Shdr)))
- goto free_and_out;
- elf->state.elf64.shdr
- = (Elf64_Shdr *) ((char *) ehdr + ehdr->e_shoff);
-
- /* Don't precache the phdr pointer here.
- elf64_getphdr will validate it against the size when asked. */
-
- for (size_t cnt = 0; cnt < scncnt; ++cnt)
- {
- elf->state.elf64.scns.data[cnt].index = cnt;
- elf->state.elf64.scns.data[cnt].elf = elf;
- elf->state.elf64.scns.data[cnt].shdr.e64 =
- &elf->state.elf64.shdr[cnt];
- if (likely (elf->state.elf64.shdr[cnt].sh_offset < maxsize)
- && likely (elf->state.elf64.shdr[cnt].sh_size
- <= maxsize - elf->state.elf64.shdr[cnt].sh_offset))
- elf->state.elf64.scns.data[cnt].rawdata_base =
- elf->state.elf64.scns.data[cnt].data_base =
- ((char *) map_address + offset
- + elf->state.elf64.shdr[cnt].sh_offset);
- elf->state.elf64.scns.data[cnt].list = &elf->state.elf64.scns;
-
- /* If this is a section with an extended index add a
- reference in the section which uses the extended
- index. */
- if (elf->state.elf64.shdr[cnt].sh_type == SHT_SYMTAB_SHNDX
- && elf->state.elf64.shdr[cnt].sh_link < scncnt)
- elf->state.elf64.scns.data[elf->state.elf64.shdr[cnt].sh_link].shndx_index
- = cnt;
-
- /* Set the own shndx_index field in case it has not yet
- been set. */
- if (elf->state.elf64.scns.data[cnt].shndx_index == 0)
- elf->state.elf64.scns.data[cnt].shndx_index = -1;
- }
- }
- else
- {
- /* Copy the ELF header. */
- elf->state.elf64.ehdr = memcpy (&elf->state.elf64.ehdr_mem, e_ident,
- sizeof (Elf64_Ehdr));
-
- if (e_ident[EI_DATA] != MY_ELFDATA)
- {
- CONVERT (elf->state.elf64.ehdr_mem.e_type);
- CONVERT (elf->state.elf64.ehdr_mem.e_machine);
- CONVERT (elf->state.elf64.ehdr_mem.e_version);
- CONVERT (elf->state.elf64.ehdr_mem.e_entry);
- CONVERT (elf->state.elf64.ehdr_mem.e_phoff);
- CONVERT (elf->state.elf64.ehdr_mem.e_shoff);
- CONVERT (elf->state.elf64.ehdr_mem.e_flags);
- CONVERT (elf->state.elf64.ehdr_mem.e_ehsize);
- CONVERT (elf->state.elf64.ehdr_mem.e_phentsize);
- CONVERT (elf->state.elf64.ehdr_mem.e_phnum);
- CONVERT (elf->state.elf64.ehdr_mem.e_shentsize);
- CONVERT (elf->state.elf64.ehdr_mem.e_shnum);
- CONVERT (elf->state.elf64.ehdr_mem.e_shstrndx);
- }
-
- for (size_t cnt = 0; cnt < scncnt; ++cnt)
- {
- elf->state.elf64.scns.data[cnt].index = cnt;
- elf->state.elf64.scns.data[cnt].elf = elf;
- elf->state.elf64.scns.data[cnt].list = &elf->state.elf64.scns;
- }
- }
-
- /* So far only one block with sections. */
- elf->state.elf64.scns_last = &elf->state.elf64.scns;
- }
-
- return elf;
-}
-
-
-Elf *
-internal_function
-__libelf_read_mmaped_file (int fildes, void *map_address, off_t offset,
- size_t maxsize, Elf_Cmd cmd, Elf *parent)
-{
- /* We have to find out what kind of file this is. We handle ELF
- files and archives. To find out what we have we must look at the
- header. The header for an ELF file is EI_NIDENT bytes in size,
- the header for an archive file SARMAG bytes long. */
- unsigned char *e_ident = (unsigned char *) map_address + offset;
-
- /* See what kind of object we have here. */
- Elf_Kind kind = determine_kind (e_ident, maxsize);
-
- switch (kind)
- {
- case ELF_K_ELF:
- return file_read_elf (fildes, map_address, e_ident, offset, maxsize,
- cmd, parent);
-
- case ELF_K_AR:
- return file_read_ar (fildes, map_address, offset, maxsize, cmd, parent);
-
- default:
- break;
- }
-
- /* This case is easy. Since we cannot do anything with this file
- create a dummy descriptor. */
- return allocate_elf (fildes, map_address, offset, maxsize, cmd, parent,
- ELF_K_NONE, 0);
-}
-
-
-static Elf *
-read_unmmaped_file (int fildes, off_t offset, size_t maxsize, Elf_Cmd cmd,
- Elf *parent)
-{
- /* We have to find out what kind of file this is. We handle ELF
- files and archives. To find out what we have we must read the
- header. The identification header for an ELF file is EI_NIDENT
- bytes in size, but we read the whole ELF header since we will
- need it anyway later. For archives the header in SARMAG bytes
- long. Read the maximum of these numbers.
-
- XXX We have to change this for the extended `ar' format some day.
-
- Use a union to ensure alignment. We might later access the
- memory as a ElfXX_Ehdr. */
- union
- {
- Elf64_Ehdr ehdr;
- unsigned char header[MAX (sizeof (Elf64_Ehdr), SARMAG)];
- } mem;
-
- /* Read the head of the file. */
- ssize_t nread = pread_retry (fildes, mem.header,
- MIN (MAX (sizeof (Elf64_Ehdr), SARMAG),
- maxsize),
- offset);
- if (unlikely (nread == -1))
- {
- /* We cannot even read the head of the file. Maybe FILDES is associated
- with an unseekable device. This is nothing we can handle. */
- __libelf_seterrno (ELF_E_INVALID_FILE);
- return NULL;
- }
-
- /* See what kind of object we have here. */
- Elf_Kind kind = determine_kind (mem.header, nread);
-
- switch (kind)
- {
- case ELF_K_AR:
- return file_read_ar (fildes, NULL, offset, maxsize, cmd, parent);
-
- case ELF_K_ELF:
- /* Make sure at least the ELF header is contained in the file. */
- if ((size_t) nread >= (mem.header[EI_CLASS] == ELFCLASS32
- ? sizeof (Elf32_Ehdr) : sizeof (Elf64_Ehdr)))
- return file_read_elf (fildes, NULL, mem.header, offset, maxsize, cmd,
- parent);
- /* FALLTHROUGH */
-
- default:
- break;
- }
-
- /* This case is easy. Since we cannot do anything with this file
- create a dummy descriptor. */
- return allocate_elf (fildes, NULL, offset, maxsize, cmd, parent,
- ELF_K_NONE, 0);
-}
-
-
-/* Open a file for reading. If possible we will try to mmap() the file. */
-static struct Elf *
-read_file (int fildes, off_t offset, size_t maxsize,
- Elf_Cmd cmd, Elf *parent)
-{
- void *map_address = NULL;
- int use_mmap = (cmd == ELF_C_READ_MMAP || cmd == ELF_C_RDWR_MMAP
- || cmd == ELF_C_WRITE_MMAP
- || cmd == ELF_C_READ_MMAP_PRIVATE);
-
- if (use_mmap)
- {
- if (parent == NULL)
- {
- if (maxsize == ~((size_t) 0))
- {
- /* We don't know in the moment how large the file is.
- Determine it now. */
- struct stat st;
-
- if (fstat (fildes, &st) == 0
- && (sizeof (size_t) >= sizeof (st.st_size)
- || st.st_size <= ~((size_t) 0)))
- maxsize = (size_t) st.st_size;
- }
-
- /* We try to map the file ourself. */
- map_address = mmap (NULL, maxsize, (cmd == ELF_C_READ_MMAP
- ? PROT_READ
- : PROT_READ|PROT_WRITE),
- cmd == ELF_C_READ_MMAP_PRIVATE
- || cmd == ELF_C_READ_MMAP
- ? MAP_PRIVATE : MAP_SHARED,
- fildes, offset);
-
- if (map_address == MAP_FAILED)
- map_address = NULL;
- }
- else
- {
- /* The parent is already loaded. Use it. */
- assert (maxsize != ~((size_t) 0));
-
- map_address = parent->map_address;
- }
- }
-
- /* If we have the file in memory optimize the access. */
- if (map_address != NULL)
- {
- assert (map_address != MAP_FAILED);
-
- struct Elf *result = __libelf_read_mmaped_file (fildes, map_address,
- offset, maxsize, cmd,
- parent);
-
- /* If something went wrong during the initialization unmap the
- memory if we mmaped here. */
- if (result == NULL
- && (parent == NULL
- || parent->map_address != map_address))
- munmap (map_address, maxsize);
- else if (parent == NULL)
- /* Remember that we mmap()ed the memory. */
- result->flags |= ELF_F_MMAPPED;
-
- return result;
- }
-
- /* Otherwise we have to do it the hard way. We read as much as necessary
- from the file whenever we need information which is not available. */
- return read_unmmaped_file (fildes, offset, maxsize, cmd, parent);
-}
-
-
-/* Find the entry with the long names for the content of this archive. */
-static const char *
-read_long_names (Elf *elf)
-{
- off_t offset = SARMAG; /* This is the first entry. */
- struct ar_hdr hdrm;
- struct ar_hdr *hdr;
- char *newp;
- size_t len;
-
- while (1)
- {
- if (elf->map_address != NULL)
- {
- if ((size_t) offset > elf->maximum_size
- || elf->maximum_size - offset < sizeof (struct ar_hdr))
- return NULL;
-
- /* The data is mapped. */
- hdr = (struct ar_hdr *) (elf->map_address + offset);
- }
- else
- {
- /* Read the header from the file. */
- if (unlikely (pread_retry (elf->fildes, &hdrm, sizeof (hdrm),
- elf->start_offset + offset)
- != sizeof (hdrm)))
- return NULL;
-
- hdr = &hdrm;
- }
-
- len = atol (hdr->ar_size);
-
- if (memcmp (hdr->ar_name, "// ", 16) == 0)
- break;
-
- offset += sizeof (struct ar_hdr) + ((len + 1) & ~1l);
- }
-
- /* Due to the stupid format of the long name table entry (which are not
- NUL terminted) we have to provide an appropriate representation anyhow.
- Therefore we always make a copy which has the appropriate form. */
- newp = (char *) malloc (len);
- if (newp != NULL)
- {
- char *runp;
-
- if (elf->map_address != NULL)
- {
- if (len > elf->maximum_size - offset - sizeof (struct ar_hdr))
- goto too_much;
- /* Simply copy it over. */
- elf->state.ar.long_names = (char *) memcpy (newp,
- elf->map_address + offset
- + sizeof (struct ar_hdr),
- len);
- }
- else
- {
- if (unlikely ((size_t) pread_retry (elf->fildes, newp, len,
- elf->start_offset + offset
- + sizeof (struct ar_hdr))
- != len))
- {
- too_much:
- /* We were not able to read all data. */
- free (newp);
- elf->state.ar.long_names = NULL;
- return NULL;
- }
- elf->state.ar.long_names = newp;
- }
-
- elf->state.ar.long_names_len = len;
-
- /* Now NUL-terminate the strings. */
- runp = newp;
- while (1)
- {
- char *startp = runp;
- runp = (char *) memchr (runp, '/', newp + len - runp);
- if (runp == NULL)
- {
- /* This was the last entry. Clear any left overs. */
- memset (startp, '\0', newp + len - startp);
- break;
- }
-
- /* NUL-terminate the string. */
- *runp = '\0';
-
- /* Skip the NUL byte and the \012. */
- runp += 2;
-
- /* A sanity check. Somebody might have generated invalid
- archive. */
- if (runp >= newp + len)
- break;
- }
- }
-
- return newp;
-}
-
-
-/* Read the next archive header. */
-int
-internal_function
-__libelf_next_arhdr_wrlock (elf)
- Elf *elf;
-{
- struct ar_hdr *ar_hdr;
- Elf_Arhdr *elf_ar_hdr;
-
- if (elf->map_address != NULL)
- {
- /* See whether this entry is in the file. */
- if (unlikely ((size_t) elf->state.ar.offset
- > elf->start_offset + elf->maximum_size
- || (elf->start_offset + elf->maximum_size
- - elf->state.ar.offset) < sizeof (struct ar_hdr)))
- {
- /* This record is not anymore in the file. */
- __libelf_seterrno (ELF_E_RANGE);
- return -1;
- }
- ar_hdr = (struct ar_hdr *) (elf->map_address + elf->state.ar.offset);
- }
- else
- {
- ar_hdr = &elf->state.ar.ar_hdr;
-
- if (unlikely (pread_retry (elf->fildes, ar_hdr, sizeof (struct ar_hdr),
- elf->state.ar.offset)
- != sizeof (struct ar_hdr)))
- {
- /* Something went wrong while reading the file. */
- __libelf_seterrno (ELF_E_RANGE);
- return -1;
- }
- }
-
- /* One little consistency check. */
- if (unlikely (memcmp (ar_hdr->ar_fmag, ARFMAG, 2) != 0))
- {
- /* This is no valid archive. */
- __libelf_seterrno (ELF_E_ARCHIVE_FMAG);
- return -1;
- }
-
- /* Copy the raw name over to a NUL terminated buffer. */
- *((char *) mempcpy (elf->state.ar.raw_name, ar_hdr->ar_name, 16)) = '\0';
-
- elf_ar_hdr = &elf->state.ar.elf_ar_hdr;
-
- /* Now convert the `struct ar_hdr' into `Elf_Arhdr'.
- Determine whether this is a special entry. */
- if (ar_hdr->ar_name[0] == '/')
- {
- if (ar_hdr->ar_name[1] == ' '
- && memcmp (ar_hdr->ar_name, "/ ", 16) == 0)
- /* This is the index. */
- elf_ar_hdr->ar_name = memcpy (elf->state.ar.ar_name, "/", 2);
- else if (ar_hdr->ar_name[1] == 'S'
- && memcmp (ar_hdr->ar_name, "/SYM64/ ", 16) == 0)
- /* 64-bit index. */
- elf_ar_hdr->ar_name = memcpy (elf->state.ar.ar_name, "/SYM64/", 8);
- else if (ar_hdr->ar_name[1] == '/'
- && memcmp (ar_hdr->ar_name, "// ", 16) == 0)
- /* This is the array with the long names. */
- elf_ar_hdr->ar_name = memcpy (elf->state.ar.ar_name, "//", 3);
- else if (likely (isdigit (ar_hdr->ar_name[1])))
- {
- size_t offset;
-
- /* This is a long name. First we have to read the long name
- table, if this hasn't happened already. */
- if (unlikely (elf->state.ar.long_names == NULL
- && read_long_names (elf) == NULL))
- {
- /* No long name table although it is reference. The archive is
- broken. */
- __libelf_seterrno (ELF_E_INVALID_ARCHIVE);
- return -1;
- }
-
- offset = atol (ar_hdr->ar_name + 1);
- if (unlikely (offset >= elf->state.ar.long_names_len))
- {
- /* The index in the long name table is larger than the table. */
- __libelf_seterrno (ELF_E_INVALID_ARCHIVE);
- return -1;
- }
- elf_ar_hdr->ar_name = elf->state.ar.long_names + offset;
- }
- else
- {
- /* This is none of the known special entries. */
- __libelf_seterrno (ELF_E_INVALID_ARCHIVE);
- return -1;
- }
- }
- else
- {
- char *endp;
-
- /* It is a normal entry. Copy over the name. */
- endp = (char *) memccpy (elf->state.ar.ar_name, ar_hdr->ar_name,
- '/', 16);
- if (endp != NULL)
- endp[-1] = '\0';
- else
- {
- /* In the old BSD style of archive, there is no / terminator.
- Instead, there is space padding at the end of the name. */
- size_t i = 15;
- do
- elf->state.ar.ar_name[i] = '\0';
- while (i > 0 && elf->state.ar.ar_name[--i] == ' ');
- }
-
- elf_ar_hdr->ar_name = elf->state.ar.ar_name;
- }
-
- if (unlikely (ar_hdr->ar_size[0] == ' '))
- /* Something is really wrong. We cannot live without a size for
- the member since it will not be possible to find the next
- archive member. */
- {
- __libelf_seterrno (ELF_E_INVALID_ARCHIVE);
- return -1;
- }
-
- /* Since there are no specialized functions to convert ASCII to
- time_t, uid_t, gid_t, mode_t, and off_t we use either atol or
- atoll depending on the size of the types. We are also prepared
- for the case where the whole field in the `struct ar_hdr' is
- filled in which case we cannot simply use atol/l but instead have
- to create a temporary copy. */
-
-#define INT_FIELD(FIELD) \
- do \
- { \
- char buf[sizeof (ar_hdr->FIELD) + 1]; \
- const char *string = ar_hdr->FIELD; \
- if (ar_hdr->FIELD[sizeof (ar_hdr->FIELD) - 1] != ' ') \
- { \
- *((char *) mempcpy (buf, ar_hdr->FIELD, sizeof (ar_hdr->FIELD))) \
- = '\0'; \
- string = buf; \
- } \
- if (sizeof (elf_ar_hdr->FIELD) <= sizeof (long int)) \
- elf_ar_hdr->FIELD = (__typeof (elf_ar_hdr->FIELD)) atol (string); \
- else \
- elf_ar_hdr->FIELD = (__typeof (elf_ar_hdr->FIELD)) atoll (string); \
- } \
- while (0)
-
- INT_FIELD (ar_date);
- INT_FIELD (ar_uid);
- INT_FIELD (ar_gid);
- INT_FIELD (ar_mode);
- INT_FIELD (ar_size);
-
- /* Truncated file? */
- size_t maxsize;
- maxsize = elf->maximum_size - elf->state.ar.offset - sizeof (struct ar_hdr);
- if ((size_t) elf_ar_hdr->ar_size > maxsize)
- elf_ar_hdr->ar_size = maxsize;
-
- return 0;
-}
-
-
-/* We were asked to return a clone of an existing descriptor. This
- function must be called with the lock on the parent descriptor
- being held. */
-static Elf *
-dup_elf (int fildes, Elf_Cmd cmd, Elf *ref)
-{
- struct Elf *result;
-
- if (fildes == -1)
- /* Allow the user to pass -1 as the file descriptor for the new file. */
- fildes = ref->fildes;
- /* The file descriptor better should be the same. If it was disconnected
- already (using `elf_cntl') we do not test it. */
- else if (unlikely (ref->fildes != -1 && fildes != ref->fildes))
- {
- __libelf_seterrno (ELF_E_FD_MISMATCH);
- return NULL;
- }
-
- /* The mode must allow reading. I.e., a descriptor creating with a
- command different then ELF_C_READ, ELF_C_WRITE and ELF_C_RDWR is
- not allowed. */
- if (unlikely (ref->cmd != ELF_C_READ && ref->cmd != ELF_C_READ_MMAP
- && ref->cmd != ELF_C_WRITE && ref->cmd != ELF_C_WRITE_MMAP
- && ref->cmd != ELF_C_RDWR && ref->cmd != ELF_C_RDWR_MMAP
- && ref->cmd != ELF_C_READ_MMAP_PRIVATE))
- {
- __libelf_seterrno (ELF_E_INVALID_OP);
- return NULL;
- }
-
- /* Now it is time to distinguish between reading normal files and
- archives. Normal files can easily be handled be incrementing the
- reference counter and return the same descriptor. */
- if (ref->kind != ELF_K_AR)
- {
- ++ref->ref_count;
- return ref;
- }
-
- /* This is an archive. We must create a descriptor for the archive
- member the internal pointer of the archive file desriptor is
- pointing to. First read the header of the next member if this
- has not happened already. */
- if (ref->state.ar.elf_ar_hdr.ar_name == NULL
- && __libelf_next_arhdr_wrlock (ref) != 0)
- /* Something went wrong. Maybe there is no member left. */
- return NULL;
-
- /* We have all the information we need about the next archive member.
- Now create a descriptor for it. */
- result = read_file (fildes, ref->state.ar.offset + sizeof (struct ar_hdr),
- ref->state.ar.elf_ar_hdr.ar_size, cmd, ref);
-
- /* Enlist this new descriptor in the list of children. */
- if (result != NULL)
- {
- result->next = ref->state.ar.children;
- ref->state.ar.children = result;
- }
-
- return result;
-}
-
-
-/* Return desriptor for empty file ready for writing. */
-static struct Elf *
-write_file (int fd, Elf_Cmd cmd)
-{
- /* We simply create an empty `Elf' structure. */
-#define NSCNSALLOC 10
- Elf *result = allocate_elf (fd, NULL, 0, 0, cmd, NULL, ELF_K_ELF,
- NSCNSALLOC * sizeof (Elf_Scn));
-
- if (result != NULL)
- {
- /* We have to write to the file in any case. */
- result->flags = ELF_F_DIRTY;
-
- /* Some more or less arbitrary value. */
- result->state.elf.scnincr = NSCNSALLOC;
-
- /* We have allocated room for some sections. */
- assert (offsetof (struct Elf, state.elf32.scns)
- == offsetof (struct Elf, state.elf64.scns));
- result->state.elf.scns_last = &result->state.elf32.scns;
- result->state.elf32.scns.max = NSCNSALLOC;
- }
-
- return result;
-}
-
-
-/* Return a descriptor for the file belonging to FILDES. */
-Elf *
-elf_begin (fildes, cmd, ref)
- int fildes;
- Elf_Cmd cmd;
- Elf *ref;
-{
- Elf *retval;
-
- if (unlikely (! __libelf_version_initialized))
- {
- /* Version wasn't set so far. */
- __libelf_seterrno (ELF_E_NO_VERSION);
- return NULL;
- }
-
- if (ref != NULL)
- /* Make sure the descriptor is not suddenly going away. */
- rwlock_rdlock (ref->lock);
- else if (unlikely (fcntl (fildes, F_GETFL) == -1 && errno == EBADF))
- {
- /* We cannot do anything productive without a file descriptor. */
- __libelf_seterrno (ELF_E_INVALID_FILE);
- return NULL;
- }
-
- Elf *lock_dup_elf ()
- {
- /* We need wrlock to dup an archive. */
- if (ref->kind == ELF_K_AR)
- {
- rwlock_unlock (ref->lock);
- rwlock_wrlock (ref->lock);
- }
-
- /* Duplicate the descriptor. */
- return dup_elf (fildes, cmd, ref);
- }
-
- switch (cmd)
- {
- case ELF_C_NULL:
- /* We simply return a NULL pointer. */
- retval = NULL;
- break;
-
- case ELF_C_READ_MMAP_PRIVATE:
- /* If we have a reference it must also be opened this way. */
- if (unlikely (ref != NULL && ref->cmd != ELF_C_READ_MMAP_PRIVATE))
- {
- __libelf_seterrno (ELF_E_INVALID_CMD);
- retval = NULL;
- break;
- }
- /* FALLTHROUGH */
-
- case ELF_C_READ:
- case ELF_C_READ_MMAP:
- if (ref != NULL)
- retval = lock_dup_elf ();
- else
- /* Create descriptor for existing file. */
- retval = read_file (fildes, 0, ~((size_t) 0), cmd, NULL);
- break;
-
- case ELF_C_RDWR:
- case ELF_C_RDWR_MMAP:
- /* If we have a REF object it must also be opened using this
- command. */
- if (ref != NULL)
- {
- if (unlikely (ref->cmd != ELF_C_RDWR && ref->cmd != ELF_C_RDWR_MMAP
- && ref->cmd != ELF_C_WRITE
- && ref->cmd != ELF_C_WRITE_MMAP))
- {
- /* This is not ok. REF must also be opened for writing. */
- __libelf_seterrno (ELF_E_INVALID_CMD);
- retval = NULL;
- }
- else
- retval = lock_dup_elf ();
- }
- else
- /* Create descriptor for existing file. */
- retval = read_file (fildes, 0, ~((size_t) 0), cmd, NULL);
- break;
-
- case ELF_C_WRITE:
- case ELF_C_WRITE_MMAP:
- /* We ignore REF and prepare a descriptor to write a new file. */
- retval = write_file (fildes, cmd);
- break;
-
- default:
- __libelf_seterrno (ELF_E_INVALID_CMD);
- retval = NULL;
- break;
- }
-
- /* Release the lock. */
- if (ref != NULL)
- rwlock_unlock (ref->lock);
-
- return retval;
-}
-INTDEF(elf_begin)
diff --git a/src/libelf/elf_clone.c b/src/libelf/elf_clone.c
deleted file mode 100644
index e6fe4729..00000000
--- a/src/libelf/elf_clone.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Create clone of a given descriptor.
- Copyright (C) 2003, 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2003.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stddef.h>
-#include "libelfP.h"
-#include "common.h"
-
-
-Elf *
-elf_clone (Elf *elf, Elf_Cmd cmd)
-{
- Elf *retval = NULL;
-
- if (elf == NULL)
- /* Some earlier mistake. */
- return NULL;
-
- /* Make sure the descriptor is not suddenly going away. */
- rwlock_rdlock (elf->lock);
-
- if (cmd != ELF_C_EMPTY)
- // XXX TODO handle ELF_C_READ/WRITE etc
- goto out;
-
- retval = allocate_elf (elf->fildes, elf->map_address, elf->start_offset,
- elf->maximum_size, elf->cmd, elf->parent, elf->kind,
- elf->state.elf32.scns.max * sizeof (Elf_Scn));
- if (retval != NULL)
- {
- /* We have to write to the file in any case. */
- retval->flags = ELF_F_DIRTY;
-
- /* Some more or less arbitrary value. */
- retval->state.elf.scnincr = 10;
-
- /* We have allocated room for some sections. */
- assert (offsetof (struct Elf, state.elf32.scns)
- == offsetof (struct Elf, state.elf64.scns));
- retval->state.elf.scns_last = &retval->state.elf32.scns;
- retval->state.elf32.scns.max = elf->state.elf32.scns.max;
-
- retval->class = elf->class;
- }
-
- /* Release the lock. */
- out:
- rwlock_unlock (elf->lock);
-
- return retval;
-}
diff --git a/src/libelf/elf_cntl.c b/src/libelf/elf_cntl.c
deleted file mode 100644
index a3c58051..00000000
--- a/src/libelf/elf_cntl.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* Control an ELF file desrciptor.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <unistd.h>
-
-#include "libelfP.h"
-
-
-int
-elf_cntl (elf, cmd)
- Elf *elf;
- Elf_Cmd cmd;
-{
- int result = 0;
-
- if (elf == NULL)
- return -1;
-
- if (elf->fildes == -1)
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return -1;
- }
-
- rwlock_wrlock (elf->lock);
-
- switch (cmd)
- {
- case ELF_C_FDREAD:
- /* If not all of the file is in the memory read it now. */
- if (elf->map_address == NULL && __libelf_readall (elf) == NULL)
- {
- /* We were not able to read everything. */
- result = -1;
- break;
- }
- /* FALLTHROUGH */
-
- case ELF_C_FDDONE:
- /* Mark the file descriptor as not usable. */
- elf->fildes = -1;
- break;
-
- default:
- __libelf_seterrno (ELF_E_INVALID_CMD);
- result = -1;
- break;
- }
-
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/elf_end.c b/src/libelf/elf_end.c
deleted file mode 100644
index d4ae0517..00000000
--- a/src/libelf/elf_end.c
+++ /dev/null
@@ -1,232 +0,0 @@
-/* Free resources associated with Elf descriptor.
- Copyright (C) 1998,1999,2000,2001,2002,2004,2005,2007 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <sys/mman.h>
-
-#include "libelfP.h"
-
-
-int
-elf_end (elf)
- Elf *elf;
-{
- Elf *parent;
-
- if (elf == NULL)
- /* This is allowed and is a no-op. */
- return 0;
-
- /* Make sure we are alone. */
- rwlock_wrlock (elf->lock);
-
- if (elf->ref_count != 0 && --elf->ref_count != 0)
- {
- /* Not yet the last activation. */
- int result = elf->ref_count;
- rwlock_unlock (elf->lock);
- return result;
- }
-
- if (elf->kind == ELF_K_AR)
- {
- /* We cannot remove the descriptor now since we still have some
- descriptors which depend on it. But we can free the archive
- symbol table since this is only available via the archive ELF
- descriptor. The long name table cannot be freed yet since
- the archive headers for the ELF files in the archive point
- into this array. */
- if (elf->state.ar.ar_sym != (Elf_Arsym *) -1l)
- free (elf->state.ar.ar_sym);
- elf->state.ar.ar_sym = NULL;
-
- if (elf->state.ar.children != NULL)
- return 0;
- }
-
- /* Remove this structure from the children list. */
- parent = elf->parent;
- if (parent != NULL)
- {
- /* This is tricky. Lock must be acquire from the father to
- the child but here we already have the child lock. We
- solve this problem by giving free the child lock. The
- state of REF_COUNT==0 is handled all over the library, so
- this should be ok. */
- rwlock_unlock (elf->lock);
- rwlock_rdlock (parent->lock);
- rwlock_wrlock (elf->lock);
-
- if (parent->state.ar.children == elf)
- parent->state.ar.children = elf->next;
- else
- {
- struct Elf *child = parent->state.ar.children;
-
- while (child->next != elf)
- child = child->next;
-
- child->next = elf->next;
- }
-
- rwlock_unlock (parent->lock);
- }
-
- /* This was the last activation. Free all resources. */
- switch (elf->kind)
- {
- case ELF_K_AR:
- if (elf->state.ar.long_names != NULL)
- free (elf->state.ar.long_names);
- break;
-
- case ELF_K_ELF:
- {
- Elf_Data_Chunk *rawchunks
- = (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.rawchunks)
- == offsetof (struct Elf, state.elf64.rawchunks))
- ? elf->state.elf32.rawchunks
- : elf->state.elf64.rawchunks);
- while (rawchunks != NULL)
- {
- Elf_Data_Chunk *next = rawchunks->next;
- if (rawchunks->dummy_scn.flags & ELF_F_MALLOCED)
- free (rawchunks->data.d.d_buf);
- free (rawchunks);
- rawchunks = next;
- }
-
- Elf_ScnList *list = (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.scns)
- == offsetof (struct Elf, state.elf64.scns))
- ? &elf->state.elf32.scns
- : &elf->state.elf64.scns);
-
- do
- {
- /* Free all separately allocated section headers. */
- size_t cnt = list->max;
-
- while (cnt-- > 0)
- {
- /* These pointers can be NULL; it's safe to use
- 'free' since it will check for this. */
- Elf_Scn *scn = &list->data[cnt];
- Elf_Data_List *runp;
-
- if ((scn->shdr_flags & ELF_F_MALLOCED) != 0)
- /* It doesn't matter which pointer. */
- free (scn->shdr.e32);
-
- /* If the file has the same byte order and the
- architecture doesn't require overly stringent
- alignment the raw data buffer is the same as the
- one used for presenting to the caller. */
- if (scn->data_base != scn->rawdata_base)
- free (scn->data_base);
-
- /* The section data is allocated if we couldn't mmap
- the file. */
- if (elf->map_address == NULL)
- free (scn->rawdata_base);
-
- /* Free the list of data buffers for the section.
- We don't free the buffers themselves since this
- is the users job. */
- runp = scn->data_list.next;
- while (runp != NULL)
- {
- Elf_Data_List *oldp = runp;
- runp = runp->next;
- if ((oldp->flags & ELF_F_MALLOCED) != 0)
- free (oldp);
- }
- }
-
- /* Free the memory for the array. */
- Elf_ScnList *oldp = list;
- list = list->next;
- assert (list == NULL || oldp->cnt == oldp->max);
- if (oldp != (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.scns)
- == offsetof (struct Elf, state.elf64.scns))
- ? &elf->state.elf32.scns
- : &elf->state.elf64.scns))
- free (oldp);
- }
- while (list != NULL);
- }
-
- /* Free the section header. */
- if (elf->state.elf.shdr_malloced != 0)
- free (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.shdr)
- == offsetof (struct Elf, state.elf64.shdr))
- ? (void *) elf->state.elf32.shdr
- : (void *) elf->state.elf64.shdr);
-
- /* Free the program header. */
- if ((elf->state.elf.phdr_flags & ELF_F_MALLOCED) != 0)
- free (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.phdr)
- == offsetof (struct Elf, state.elf64.phdr))
- ? (void *) elf->state.elf32.phdr
- : (void *) elf->state.elf64.phdr);
- break;
-
- default:
- break;
- }
-
- if (elf->map_address != NULL && parent == NULL)
- {
- /* The file was read or mapped for this descriptor. */
- if ((elf->flags & ELF_F_MALLOCED) != 0)
- free (elf->map_address);
- else if ((elf->flags & ELF_F_MMAPPED) != 0)
- munmap (elf->map_address, elf->maximum_size);
- }
-
- rwlock_unlock (elf->lock);
- rwlock_fini (elf->lock);
-
- /* Finally the descriptor itself. */
- free (elf);
-
- return (parent != NULL && parent->ref_count == 0
- ? INTUSE(elf_end) (parent) : 0);
-}
-INTDEF(elf_end)
diff --git a/src/libelf/elf_error.c b/src/libelf/elf_error.c
deleted file mode 100644
index aa7f9173..00000000
--- a/src/libelf/elf_error.c
+++ /dev/null
@@ -1,309 +0,0 @@
-/* Error handling in libelf.
- Copyright (C) 1998-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <libintl.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-/* The error number. */
-static __thread int global_error;
-
-
-int
-elf_errno (void)
-{
- int result = global_error;
- global_error = ELF_E_NOERROR;
- return result;
-}
-
-
-/* Return the appropriate message for the error. */
-static const char msgstr[] =
-{
-#define ELF_E_NOERROR_IDX 0
- N_("no error")
- "\0"
-#define ELF_E_UNKNOWN_ERROR_IDX (ELF_E_NOERROR_IDX + sizeof "no error")
- N_("unknown error")
- "\0"
-#define ELF_E_UNKNOWN_VERSION_IDX \
- (ELF_E_UNKNOWN_ERROR_IDX + sizeof "unknown error")
- N_("unknown version")
- "\0"
-#define ELF_E_UNKNOWN_TYPE_IDX \
- (ELF_E_UNKNOWN_VERSION_IDX + sizeof "unknown version")
- N_("unknown type")
- "\0"
-#define ELF_E_INVALID_HANDLE_IDX \
- (ELF_E_UNKNOWN_TYPE_IDX + sizeof "unknown type")
- N_("invalid `Elf' handle")
- "\0"
-#define ELF_E_SOURCE_SIZE_IDX \
- (ELF_E_INVALID_HANDLE_IDX + sizeof "invalid `Elf' handle")
- N_("invalid size of source operand")
- "\0"
-#define ELF_E_DEST_SIZE_IDX \
- (ELF_E_SOURCE_SIZE_IDX + sizeof "invalid size of source operand")
- N_("invalid size of destination operand")
- "\0"
-#define ELF_E_INVALID_ENCODING_IDX \
- (ELF_E_DEST_SIZE_IDX + sizeof "invalid size of destination operand")
- N_("invalid encoding")
- "\0"
-#define ELF_E_NOMEM_IDX \
- (ELF_E_INVALID_ENCODING_IDX + sizeof "invalid encoding")
- N_("out of memory")
- "\0"
-#define ELF_E_INVALID_FILE_IDX \
- (ELF_E_NOMEM_IDX + sizeof "out of memory")
- N_("invalid file descriptor")
- "\0"
-#define ELF_E_INVALID_OP_IDX \
- (ELF_E_INVALID_FILE_IDX + sizeof "invalid file descriptor")
- N_("invalid operation")
- "\0"
-#define ELF_E_NO_VERSION_IDX \
- (ELF_E_INVALID_OP_IDX + sizeof "invalid operation")
- N_("ELF version not set")
- "\0"
-#define ELF_E_INVALID_CMD_IDX \
- (ELF_E_NO_VERSION_IDX + sizeof "ELF version not set")
- N_("invalid command")
- "\0"
-#define ELF_E_RANGE_IDX \
- (ELF_E_INVALID_CMD_IDX + sizeof "invalid command")
- N_("offset out of range")
- "\0"
-#define ELF_E_ARCHIVE_FMAG_IDX \
- (ELF_E_RANGE_IDX + sizeof "offset out of range")
- N_("invalid fmag field in archive header")
- "\0"
-#define ELF_E_INVALID_ARCHIVE_IDX \
- (ELF_E_ARCHIVE_FMAG_IDX + sizeof "invalid fmag field in archive header")
- N_("invalid archive file")
- "\0"
-#define ELF_E_NO_ARCHIVE_IDX \
- (ELF_E_INVALID_ARCHIVE_IDX + sizeof "invalid archive file")
- N_("descriptor is not for an archive")
- "\0"
-#define ELF_E_NO_INDEX_IDX \
- (ELF_E_NO_ARCHIVE_IDX + sizeof "descriptor is not for an archive")
- N_("no index available")
- "\0"
-#define ELF_E_READ_ERROR_IDX \
- (ELF_E_NO_INDEX_IDX + sizeof "no index available")
- N_("cannot read data from file")
- "\0"
-#define ELF_E_WRITE_ERROR_IDX \
- (ELF_E_READ_ERROR_IDX + sizeof "cannot read data from file")
- N_("cannot write data to file")
- "\0"
-#define ELF_E_INVALID_CLASS_IDX \
- (ELF_E_WRITE_ERROR_IDX + sizeof "cannot write data to file")
- N_("invalid binary class")
- "\0"
-#define ELF_E_INVALID_INDEX_IDX \
- (ELF_E_INVALID_CLASS_IDX + sizeof "invalid binary class")
- N_("invalid section index")
- "\0"
-#define ELF_E_INVALID_OPERAND_IDX \
- (ELF_E_INVALID_INDEX_IDX + sizeof "invalid section index")
- N_("invalid operand")
- "\0"
-#define ELF_E_INVALID_SECTION_IDX \
- (ELF_E_INVALID_OPERAND_IDX + sizeof "invalid operand")
- N_("invalid section")
- "\0"
-#define ELF_E_INVALID_COMMAND_IDX \
- (ELF_E_INVALID_SECTION_IDX + sizeof "invalid section")
- N_("invalid command")
- "\0"
-#define ELF_E_WRONG_ORDER_EHDR_IDX \
- (ELF_E_INVALID_COMMAND_IDX + sizeof "invalid command")
- N_("executable header not created first")
- "\0"
-#define ELF_E_FD_DISABLED_IDX \
- (ELF_E_WRONG_ORDER_EHDR_IDX + sizeof "executable header not created first")
- N_("file descriptor disabled")
- "\0"
-#define ELF_E_FD_MISMATCH_IDX \
- (ELF_E_FD_DISABLED_IDX + sizeof "file descriptor disabled")
- N_("archive/member file descriptor mismatch")
- "\0"
-#define ELF_E_OFFSET_RANGE_IDX \
- (ELF_E_FD_MISMATCH_IDX + sizeof "archive/member file descriptor mismatch")
- N_("offset out of range")
- "\0"
-#define ELF_E_NOT_NUL_SECTION_IDX \
- (ELF_E_OFFSET_RANGE_IDX + sizeof "offset out of range")
- N_("cannot manipulate null section")
- "\0"
-#define ELF_E_DATA_MISMATCH_IDX \
- (ELF_E_NOT_NUL_SECTION_IDX + sizeof "cannot manipulate null section")
- N_("data/scn mismatch")
- "\0"
-#define ELF_E_INVALID_SECTION_HEADER_IDX \
- (ELF_E_DATA_MISMATCH_IDX + sizeof "data/scn mismatch")
- N_("invalid section header")
- "\0"
-#define ELF_E_INVALID_DATA_IDX \
- (ELF_E_INVALID_SECTION_HEADER_IDX + sizeof "invalid section header")
- N_("invalid data")
- "\0"
-#define ELF_E_DATA_ENCODING_IDX \
- (ELF_E_INVALID_DATA_IDX + sizeof "invalid data")
- N_("unknown data encoding")
- "\0"
-#define ELF_E_SECTION_TOO_SMALL_IDX \
- (ELF_E_DATA_ENCODING_IDX + sizeof "unknown data encoding")
- N_("section `sh_size' too small for data")
- "\0"
-#define ELF_E_INVALID_ALIGN_IDX \
- (ELF_E_SECTION_TOO_SMALL_IDX + sizeof "section `sh_size' too small for data")
- N_("invalid section alignment")
- "\0"
-#define ELF_E_INVALID_SHENTSIZE_IDX \
- (ELF_E_INVALID_ALIGN_IDX + sizeof "invalid section alignment")
- N_("invalid section entry size")
- "\0"
-#define ELF_E_UPDATE_RO_IDX \
- (ELF_E_INVALID_SHENTSIZE_IDX + sizeof "invalid section entry size")
- N_("update() for write on read-only file")
- "\0"
-#define ELF_E_NOFILE_IDX \
- (ELF_E_UPDATE_RO_IDX + sizeof "update() for write on read-only file")
- N_("no such file")
- "\0"
-#define ELF_E_GROUP_NOT_REL_IDX \
- (ELF_E_NOFILE_IDX + sizeof "no such file")
- N_("only relocatable files can contain section groups")
- "\0"
-#define ELF_E_INVALID_PHDR_IDX \
- (ELF_E_GROUP_NOT_REL_IDX \
- + sizeof "only relocatable files can contain section groups")
- N_("program header only allowed in executables, shared objects, and \
-core files")
- "\0"
-#define ELF_E_NO_PHDR_IDX \
- (ELF_E_INVALID_PHDR_IDX \
- + sizeof "program header only allowed in executables, shared objects, and \
-core files")
- N_("file has no program header")
- "\0"
-#define ELF_E_INVALID_OFFSET_IDX \
- (ELF_E_NO_PHDR_IDX \
- + sizeof "file has no program header")
- N_("invalid offset")
-};
-
-
-static const uint_fast16_t msgidx[ELF_E_NUM] =
-{
- [ELF_E_NOERROR] = ELF_E_NOERROR_IDX,
- [ELF_E_UNKNOWN_ERROR] = ELF_E_UNKNOWN_ERROR_IDX,
- [ELF_E_UNKNOWN_VERSION] = ELF_E_UNKNOWN_VERSION_IDX,
- [ELF_E_UNKNOWN_TYPE] = ELF_E_UNKNOWN_TYPE_IDX,
- [ELF_E_INVALID_HANDLE] = ELF_E_INVALID_HANDLE_IDX,
- [ELF_E_SOURCE_SIZE] = ELF_E_SOURCE_SIZE_IDX,
- [ELF_E_DEST_SIZE] = ELF_E_DEST_SIZE_IDX,
- [ELF_E_INVALID_ENCODING] = ELF_E_INVALID_ENCODING_IDX,
- [ELF_E_NOMEM] = ELF_E_NOMEM_IDX,
- [ELF_E_INVALID_FILE] = ELF_E_INVALID_FILE_IDX,
- [ELF_E_INVALID_OP] = ELF_E_INVALID_OP_IDX,
- [ELF_E_NO_VERSION] = ELF_E_NO_VERSION_IDX,
- [ELF_E_INVALID_CMD] = ELF_E_INVALID_CMD_IDX,
- [ELF_E_RANGE] = ELF_E_RANGE_IDX,
- [ELF_E_ARCHIVE_FMAG] = ELF_E_ARCHIVE_FMAG_IDX,
- [ELF_E_INVALID_ARCHIVE] = ELF_E_INVALID_ARCHIVE_IDX,
- [ELF_E_NO_ARCHIVE] = ELF_E_NO_ARCHIVE_IDX,
- [ELF_E_NO_INDEX] = ELF_E_NO_INDEX_IDX,
- [ELF_E_READ_ERROR] = ELF_E_READ_ERROR_IDX,
- [ELF_E_WRITE_ERROR] = ELF_E_WRITE_ERROR_IDX,
- [ELF_E_INVALID_CLASS] = ELF_E_INVALID_CLASS_IDX,
- [ELF_E_INVALID_INDEX] = ELF_E_INVALID_INDEX_IDX,
- [ELF_E_INVALID_OPERAND] = ELF_E_INVALID_OPERAND_IDX,
- [ELF_E_INVALID_SECTION] = ELF_E_INVALID_SECTION_IDX,
- [ELF_E_INVALID_COMMAND] = ELF_E_INVALID_COMMAND_IDX,
- [ELF_E_WRONG_ORDER_EHDR] = ELF_E_WRONG_ORDER_EHDR_IDX,
- [ELF_E_FD_DISABLED] = ELF_E_FD_DISABLED_IDX,
- [ELF_E_FD_MISMATCH] = ELF_E_FD_MISMATCH_IDX,
- [ELF_E_OFFSET_RANGE] = ELF_E_OFFSET_RANGE_IDX,
- [ELF_E_NOT_NUL_SECTION] = ELF_E_NOT_NUL_SECTION_IDX,
- [ELF_E_DATA_MISMATCH] = ELF_E_DATA_MISMATCH_IDX,
- [ELF_E_INVALID_SECTION_HEADER] = ELF_E_INVALID_SECTION_HEADER_IDX,
- [ELF_E_INVALID_DATA] = ELF_E_INVALID_DATA_IDX,
- [ELF_E_DATA_ENCODING] = ELF_E_DATA_ENCODING_IDX,
- [ELF_E_SECTION_TOO_SMALL] = ELF_E_SECTION_TOO_SMALL_IDX,
- [ELF_E_INVALID_ALIGN] = ELF_E_INVALID_ALIGN_IDX,
- [ELF_E_INVALID_SHENTSIZE] = ELF_E_INVALID_SHENTSIZE_IDX,
- [ELF_E_UPDATE_RO] = ELF_E_UPDATE_RO_IDX,
- [ELF_E_NOFILE] = ELF_E_NOFILE_IDX,
- [ELF_E_GROUP_NOT_REL] = ELF_E_GROUP_NOT_REL_IDX,
- [ELF_E_INVALID_PHDR] = ELF_E_INVALID_PHDR_IDX,
- [ELF_E_NO_PHDR] = ELF_E_NO_PHDR_IDX,
- [ELF_E_INVALID_OFFSET] = ELF_E_INVALID_OFFSET_IDX
-};
-#define nmsgidx ((int) (sizeof (msgidx) / sizeof (msgidx[0])))
-
-
-void
-__libelf_seterrno (value)
- int value;
-{
- global_error = value >= 0 && value < nmsgidx ? value : ELF_E_UNKNOWN_ERROR;
-}
-
-
-const char *
-elf_errmsg (error)
- int error;
-{
- int last_error = global_error;
-
- if (error == 0)
- {
- assert (msgidx[last_error] < sizeof (msgstr));
- return last_error != 0 ? _(msgstr + msgidx[last_error]) : NULL;
- }
- else if (error < -1 || error >= nmsgidx)
- return _(msgstr + ELF_E_UNKNOWN_ERROR_IDX);
-
- assert (msgidx[error == -1 ? last_error : error] < sizeof (msgstr));
- return _(msgstr + msgidx[error == -1 ? last_error : error]);
-}
diff --git a/src/libelf/elf_fill.c b/src/libelf/elf_fill.c
deleted file mode 100644
index 174ab45c..00000000
--- a/src/libelf/elf_fill.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Set fill byte used when constructing ELF objects.
- Copyright (C) 1998, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-
-#include "libelfP.h"
-
-
-int __libelf_fill_byte;
-
-
-void
-elf_fill (fill)
- int fill;
-{
- __libelf_fill_byte = fill;
-}
diff --git a/src/libelf/elf_flagdata.c b/src/libelf/elf_flagdata.c
deleted file mode 100644
index ace8cc52..00000000
--- a/src/libelf/elf_flagdata.c
+++ /dev/null
@@ -1,71 +0,0 @@
-/* Manipulate ELF data flag.
- Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-unsigned int
-elf_flagdata (data, cmd, flags)
- Elf_Data *data;
- Elf_Cmd cmd;
- unsigned int flags;
-{
- Elf_Data_Scn *data_scn;
- unsigned int result;
-
- if (data == NULL)
- return 0;
-
- data_scn = (Elf_Data_Scn *) data;
-
- if (data_scn == NULL || unlikely (data_scn->s->elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- if (likely (cmd == ELF_C_SET))
- result = (data_scn->s->flags |= (flags & ELF_F_DIRTY));
- else if (likely (cmd == ELF_C_CLR))
- result = (data_scn->s->flags &= ~(flags & ELF_F_DIRTY));
- else
- {
- __libelf_seterrno (ELF_E_INVALID_COMMAND);
- return 0;
- }
-
- return result;
-}
diff --git a/src/libelf/elf_flagehdr.c b/src/libelf/elf_flagehdr.c
deleted file mode 100644
index d3a320b9..00000000
--- a/src/libelf/elf_flagehdr.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Manipulate ELF header flags.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-unsigned int
-elf_flagehdr (elf, cmd, flags)
- Elf *elf;
- Elf_Cmd cmd;
- unsigned int flags;
-{
- unsigned int result;
-
- if (elf == NULL)
- return 0;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- if (likely (cmd == ELF_C_SET))
- result = (elf->state.elf.ehdr_flags |= (flags & ELF_F_DIRTY));
- else if (cmd == ELF_C_CLR)
- result = (elf->state.elf.ehdr_flags &= ~(flags & ELF_F_DIRTY));
- else
- {
- __libelf_seterrno (ELF_E_INVALID_COMMAND);
- return 0;
- }
-
- return result;
-}
diff --git a/src/libelf/elf_flagelf.c b/src/libelf/elf_flagelf.c
deleted file mode 100644
index b34bd4f8..00000000
--- a/src/libelf/elf_flagelf.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* Manipulate ELF file flags.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-unsigned int
-elf_flagelf (elf, cmd, flags)
- Elf *elf;
- Elf_Cmd cmd;
- unsigned int flags;
-{
- unsigned int result;
-
- if (elf == NULL)
- return 0;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- if (likely (cmd == ELF_C_SET))
- result = (elf->flags
- |= (flags & (ELF_F_DIRTY | ELF_F_LAYOUT | ELF_F_PERMISSIVE)));
- else if (likely (cmd == ELF_C_CLR))
- result = (elf->flags
- &= ~(flags & (ELF_F_DIRTY | ELF_F_LAYOUT | ELF_F_PERMISSIVE)));
- else
- {
- __libelf_seterrno (ELF_E_INVALID_COMMAND);
- return 0;
- }
-
- return result;
-}
diff --git a/src/libelf/elf_flagphdr.c b/src/libelf/elf_flagphdr.c
deleted file mode 100644
index 2a589cc9..00000000
--- a/src/libelf/elf_flagphdr.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Manipulate ELF program header flags.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-unsigned int
-elf_flagphdr (elf, cmd, flags)
- Elf *elf;
- Elf_Cmd cmd;
- unsigned int flags;
-{
- unsigned int result;
-
- if (elf == NULL)
- return 0;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- if (likely (cmd == ELF_C_SET))
- result = (elf->state.elf.phdr_flags |= (flags & ELF_F_DIRTY));
- else if (likely (cmd == ELF_C_CLR))
- result = (elf->state.elf.phdr_flags &= ~(flags & ELF_F_DIRTY));
- else
- {
- __libelf_seterrno (ELF_E_INVALID_COMMAND);
- return 0;
- }
-
- return result;
-}
diff --git a/src/libelf/elf_flagscn.c b/src/libelf/elf_flagscn.c
deleted file mode 100644
index 3ff826c6..00000000
--- a/src/libelf/elf_flagscn.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Manipulate ELF section flags.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-unsigned int
-elf_flagscn (scn, cmd, flags)
- Elf_Scn *scn;
- Elf_Cmd cmd;
- unsigned int flags;
-{
- unsigned int result;
-
- if (scn == NULL)
- return 0;
-
- if (unlikely (scn->elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- if (likely (cmd == ELF_C_SET))
- result = (scn->flags |= (flags & ELF_F_DIRTY));
- else if (likely (cmd == ELF_C_CLR))
- result = (scn->flags &= ~(flags & ELF_F_DIRTY));
- else
- {
- __libelf_seterrno (ELF_E_INVALID_COMMAND);
- return 0;
- }
-
- return result;
-}
diff --git a/src/libelf/elf_flagshdr.c b/src/libelf/elf_flagshdr.c
deleted file mode 100644
index 8d797af6..00000000
--- a/src/libelf/elf_flagshdr.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Manipulate ELF section header flags.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-unsigned int
-elf_flagshdr (scn, cmd, flags)
- Elf_Scn *scn;
- Elf_Cmd cmd;
- unsigned int flags;
-{
- unsigned int result;
-
- if (scn == NULL)
- return 0;
-
- if (unlikely (scn->elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- if (likely (cmd == ELF_C_SET))
- result = (scn->shdr_flags |= (flags & ELF_F_DIRTY));
- else if (likely (cmd == ELF_C_CLR))
- result = (scn->shdr_flags &= ~(flags & ELF_F_DIRTY));
- else
- {
- __libelf_seterrno (ELF_E_INVALID_COMMAND);
- return 0;
- }
-
- return result;
-}
diff --git a/src/libelf/elf_getarhdr.c b/src/libelf/elf_getarhdr.c
deleted file mode 100644
index f8b36b8b..00000000
--- a/src/libelf/elf_getarhdr.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Read header of next archive member.
- Copyright (C) 1998, 1999, 2000, 2002, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-Elf_Arhdr *
-elf_getarhdr (elf)
- Elf *elf;
-{
- if (elf == NULL)
- return NULL;
-
- Elf *parent = elf->parent;
-
- /* Calling this function is not ok for any file type but archives. */
- if (parent == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OP);
- return NULL;
- }
-
- /* Make sure we have read the archive header. */
- if (parent->state.ar.elf_ar_hdr.ar_name == NULL
- && __libelf_next_arhdr_wrlock (parent) != 0)
- {
- rwlock_wrlock (parent->lock);
- int st = __libelf_next_arhdr_wrlock (parent);
- rwlock_unlock (parent->lock);
-
- if (st != 0)
- /* Something went wrong. Maybe there is no member left. */
- return NULL;
- }
-
- /* We can be sure the parent is an archive. */
- assert (parent->kind == ELF_K_AR);
-
- return &parent->state.ar.elf_ar_hdr;
-}
diff --git a/src/libelf/elf_getaroff.c b/src/libelf/elf_getaroff.c
deleted file mode 100644
index 62da34df..00000000
--- a/src/libelf/elf_getaroff.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Return offset in archive for current file ELF.
- Copyright (C) 2005, 2008 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-off_t
-elf_getaroff (elf)
- Elf *elf;
-{
- /* Be gratious, the specs demand it. */
- if (elf == NULL || elf->parent == NULL)
- return ELF_C_NULL;
-
- /* We can be sure the parent is an archive. */
- Elf *parent = elf->parent;
- assert (parent->kind == ELF_K_AR);
-
- return elf->start_offset - sizeof (struct ar_hdr) - parent->start_offset;
-}
diff --git a/src/libelf/elf_getarsym.c b/src/libelf/elf_getarsym.c
deleted file mode 100644
index 40633aa8..00000000
--- a/src/libelf/elf_getarsym.c
+++ /dev/null
@@ -1,309 +0,0 @@
-/* Return symbol table of archive.
- Copyright (C) 1998-2000, 2002, 2005, 2009, 2012, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <byteswap.h>
-#include <endian.h>
-#include <errno.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <system.h>
-#include <dl-hash.h>
-#include "libelfP.h"
-
-
-static int
-read_number_entries (uint64_t *nump, Elf *elf, size_t *offp, bool index64_p)
-{
- union u
- {
- uint64_t ret64;
- uint32_t ret32;
- } u;
-
- size_t w = index64_p ? 8 : 4;
- if (elf->map_address != NULL)
- /* Use memcpy instead of pointer dereference so as not to assume the
- field is naturally aligned within the file. */
- memcpy (&u, elf->map_address + *offp, sizeof u);
- else if ((size_t) pread_retry (elf->fildes, &u, w, *offp) != w)
- return -1;
-
- *offp += w;
-
- if (__BYTE_ORDER == __LITTLE_ENDIAN)
- *nump = index64_p ? bswap_64 (u.ret64) : bswap_32 (u.ret32);
- else
- *nump = index64_p ? u.ret64 : u.ret32;
-
- return 0;
-}
-
-Elf_Arsym *
-elf_getarsym (elf, ptr)
- Elf *elf;
- size_t *ptr;
-{
- if (elf->kind != ELF_K_AR)
- {
- /* This is no archive. */
- __libelf_seterrno (ELF_E_NO_ARCHIVE);
- return NULL;
- }
-
- if (ptr != NULL)
- /* In case of an error or when we know the value store the expected
- value now. Doing this allows us easier exits in an error case. */
- *ptr = elf->state.ar.ar_sym_num;
-
- if (elf->state.ar.ar_sym == (Elf_Arsym *) -1l)
- {
- /* There is no index. */
- __libelf_seterrno (ELF_E_NO_INDEX);
- return NULL;
- }
-
- Elf_Arsym *result = elf->state.ar.ar_sym;
- if (result == NULL)
- {
- /* We have not yet read the index. */
- rwlock_wrlock (elf->lock);
-
- /* In case we find no index remember this for the next call. */
- elf->state.ar.ar_sym = (Elf_Arsym *) -1l;
-
- struct ar_hdr *index_hdr;
- if (elf->map_address == NULL)
- {
- /* We must read index from the file. */
- assert (elf->fildes != -1);
- if (pread_retry (elf->fildes, &elf->state.ar.ar_hdr,
- sizeof (struct ar_hdr), elf->start_offset + SARMAG)
- != sizeof (struct ar_hdr))
- {
- /* It is not possible to read the index. Maybe it does not
- exist. */
- __libelf_seterrno (ELF_E_READ_ERROR);
- goto out;
- }
-
- index_hdr = &elf->state.ar.ar_hdr;
- }
- else
- {
- if (SARMAG + sizeof (struct ar_hdr) > elf->maximum_size)
- {
- /* There is no room for the full archive. */
- __libelf_seterrno (ELF_E_NO_INDEX);
- goto out;
- }
-
- index_hdr = (struct ar_hdr *) (elf->map_address
- + elf->start_offset + SARMAG);
- }
-
- /* Now test whether this really is an archive. */
- if (memcmp (index_hdr->ar_fmag, ARFMAG, 2) != 0)
- {
- /* Invalid magic bytes. */
- __libelf_seterrno (ELF_E_ARCHIVE_FMAG);
- goto out;
- }
-
- bool index64_p;
- /* Now test whether this is the index. If the name is "/", this
- is 32-bit index, if it's "/SYM64/", it's 64-bit index.
-
- XXX This is not entirely true. There are some more forms.
- Which of them shall we handle? */
- if (memcmp (index_hdr->ar_name, "/ ", 16) == 0)
- index64_p = false;
- else if (memcmp (index_hdr->ar_name, "/SYM64/ ", 16) == 0)
- index64_p = true;
- else
- {
- /* If the index is not the first entry, there is no index.
-
- XXX Is this true? */
- __libelf_seterrno (ELF_E_NO_INDEX);
- goto out;
- }
- int w = index64_p ? 8 : 4;
-
- /* We have an archive. The first word in there is the number of
- entries in the table. */
- uint64_t n;
- size_t off = elf->start_offset + SARMAG + sizeof (struct ar_hdr);
- if (read_number_entries (&n, elf, &off, index64_p) < 0)
- {
- /* Cannot read the number of entries. */
- __libelf_seterrno (ELF_E_NO_INDEX);
- goto out;
- }
-
- /* Now we can perform some first tests on whether all the data
- needed for the index is available. */
- char tmpbuf[17];
- memcpy (tmpbuf, index_hdr->ar_size, 10);
- tmpbuf[10] = '\0';
- size_t index_size = atol (tmpbuf);
-
- if (index_size > elf->maximum_size
- || elf->maximum_size - index_size < SARMAG + sizeof (struct ar_hdr)
-#if SIZE_MAX <= 4294967295U
- || n >= SIZE_MAX / sizeof (Elf_Arsym)
-#endif
- || n > index_size / w)
- {
- /* This index table cannot be right since it does not fit into
- the file. */
- __libelf_seterrno (ELF_E_NO_INDEX);
- goto out;
- }
-
- /* Now we can allocate the arrays needed to store the index. */
- size_t ar_sym_len = (n + 1) * sizeof (Elf_Arsym);
- elf->state.ar.ar_sym = (Elf_Arsym *) malloc (ar_sym_len);
- if (elf->state.ar.ar_sym != NULL)
- {
- union
- {
- uint32_t u32[n];
- uint64_t u64[n];
- } *file_data;
- char *str_data;
- size_t sz = n * w;
-
- if (elf->map_address == NULL)
- {
- file_data = alloca (sz);
-
- ar_sym_len += index_size - n * w;
- Elf_Arsym *newp = (Elf_Arsym *) realloc (elf->state.ar.ar_sym,
- ar_sym_len);
- if (newp == NULL)
- {
- free (elf->state.ar.ar_sym);
- elf->state.ar.ar_sym = NULL;
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
- elf->state.ar.ar_sym = newp;
-
- char *new_str = (char *) (elf->state.ar.ar_sym + n + 1);
-
- /* Now read the data from the file. */
- if ((size_t) pread_retry (elf->fildes, file_data, sz, off) != sz
- || ((size_t) pread_retry (elf->fildes, new_str,
- index_size - sz, off + sz)
- != index_size - sz))
- {
- /* We were not able to read the data. */
- free (elf->state.ar.ar_sym);
- elf->state.ar.ar_sym = NULL;
- __libelf_seterrno (ELF_E_NO_INDEX);
- goto out;
- }
-
- str_data = (char *) new_str;
- }
- else
- {
- file_data = (void *) (elf->map_address + off);
- if (!ALLOW_UNALIGNED
- && ((uintptr_t) file_data & -(uintptr_t) n) != 0)
- file_data = memcpy (alloca (sz), elf->map_address + off, sz);
- str_data = (char *) (elf->map_address + off + sz);
- }
-
- /* Now we can build the data structure. */
- Elf_Arsym *arsym = elf->state.ar.ar_sym;
- for (size_t cnt = 0; cnt < n; ++cnt)
- {
- arsym[cnt].as_name = str_data;
- if (index64_p)
- {
- uint64_t tmp = file_data->u64[cnt];
- if (__BYTE_ORDER == __LITTLE_ENDIAN)
- tmp = bswap_64 (tmp);
-
- arsym[cnt].as_off = tmp;
-
- /* Check whether 64-bit offset fits into 32-bit
- size_t. */
- if (sizeof (arsym[cnt].as_off) < 8
- && arsym[cnt].as_off != tmp)
- {
- if (elf->map_address == NULL)
- {
- free (elf->state.ar.ar_sym);
- elf->state.ar.ar_sym = NULL;
- }
-
- __libelf_seterrno (ELF_E_RANGE);
- goto out;
- }
- }
- else if (__BYTE_ORDER == __LITTLE_ENDIAN)
- arsym[cnt].as_off = bswap_32 (file_data->u32[cnt]);
- else
- arsym[cnt].as_off = file_data->u32[cnt];
-
- arsym[cnt].as_hash = _dl_elf_hash (str_data);
- str_data = rawmemchr (str_data, '\0') + 1;
- }
-
- /* At the end a special entry. */
- arsym[n].as_name = NULL;
- arsym[n].as_off = 0;
- arsym[n].as_hash = ~0UL;
-
- /* Tell the caller how many entries we have. */
- elf->state.ar.ar_sym_num = n + 1;
- }
-
- result = elf->state.ar.ar_sym;
-
- out:
- rwlock_unlock (elf->lock);
- }
-
- if (ptr != NULL)
- *ptr = elf->state.ar.ar_sym_num;
-
- return result;
-}
diff --git a/src/libelf/elf_getbase.c b/src/libelf/elf_getbase.c
deleted file mode 100644
index ff0feb40..00000000
--- a/src/libelf/elf_getbase.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Return offset of first byte for the object.
- Copyright (C) 1998, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-off_t
-elf_getbase (elf)
- Elf *elf;
-{
- return elf == NULL ? (off_t) -1 : elf->start_offset;
-}
diff --git a/src/libelf/elf_getdata.c b/src/libelf/elf_getdata.c
deleted file mode 100644
index 0aeb9972..00000000
--- a/src/libelf/elf_getdata.c
+++ /dev/null
@@ -1,487 +0,0 @@
-/* Return the next data element from the section after possibly converting it.
- Copyright (C) 1998-2005, 2006, 2007 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <stddef.h>
-#include <string.h>
-#include <unistd.h>
-
-#include "libelfP.h"
-#include <system.h>
-#include "common.h"
-#include "elf-knowledge.h"
-
-
-#define TYPEIDX(Sh_Type) \
- (Sh_Type >= SHT_NULL && Sh_Type < SHT_NUM \
- ? Sh_Type \
- : (Sh_Type >= SHT_GNU_HASH && Sh_Type <= SHT_HISUNW \
- ? SHT_NUM + Sh_Type - SHT_GNU_HASH \
- : 0))
-
-/* Associate section types with libelf types. */
-static const Elf_Type shtype_map[EV_NUM - 1][TYPEIDX (SHT_HISUNW) + 1] =
- {
- [EV_CURRENT - 1] =
- {
- [SHT_SYMTAB] = ELF_T_SYM,
- [SHT_RELA] = ELF_T_RELA,
- [SHT_HASH] = ELF_T_WORD,
- [SHT_DYNAMIC] = ELF_T_DYN,
- [SHT_REL] = ELF_T_REL,
- [SHT_DYNSYM] = ELF_T_SYM,
- [SHT_INIT_ARRAY] = ELF_T_ADDR,
- [SHT_FINI_ARRAY] = ELF_T_ADDR,
- [SHT_PREINIT_ARRAY] = ELF_T_ADDR,
- [SHT_GROUP] = ELF_T_WORD,
- [SHT_SYMTAB_SHNDX] = ELF_T_WORD,
- [SHT_NOTE] = ELF_T_NHDR,
- [TYPEIDX (SHT_GNU_verdef)] = ELF_T_VDEF,
- [TYPEIDX (SHT_GNU_verneed)] = ELF_T_VNEED,
- [TYPEIDX (SHT_GNU_versym)] = ELF_T_HALF,
- [TYPEIDX (SHT_SUNW_syminfo)] = ELF_T_SYMINFO,
- [TYPEIDX (SHT_SUNW_move)] = ELF_T_MOVE,
- [TYPEIDX (SHT_GNU_LIBLIST)] = ELF_T_LIB,
- [TYPEIDX (SHT_GNU_HASH)] = ELF_T_GNUHASH,
- }
- };
-
-#if !ALLOW_UNALIGNED
-/* Associate libelf types with their internal alignment requirements. */
-const uint_fast8_t __libelf_type_aligns[EV_NUM - 1][ELFCLASSNUM - 1][ELF_T_NUM] =
- {
-# define TYPE_ALIGNS(Bits) \
- { \
- [ELF_T_ADDR] = __alignof__ (ElfW2(Bits,Addr)), \
- [ELF_T_HALF] = __alignof__ (ElfW2(Bits,Half)), \
- [ELF_T_WORD] = __alignof__ (ElfW2(Bits,Word)), \
- [ELF_T_SYM] = __alignof__ (ElfW2(Bits,Sym)), \
- [ELF_T_SYMINFO] = __alignof__ (ElfW2(Bits,Syminfo)), \
- [ELF_T_REL] = __alignof__ (ElfW2(Bits,Rel)), \
- [ELF_T_RELA] = __alignof__ (ElfW2(Bits,Rela)), \
- [ELF_T_DYN] = __alignof__ (ElfW2(Bits,Dyn)), \
- [ELF_T_VDEF] = __alignof__ (ElfW2(Bits,Verdef)), \
- [ELF_T_VDAUX] = __alignof__ (ElfW2(Bits,Verdaux)), \
- [ELF_T_VNEED] = __alignof__ (ElfW2(Bits,Verneed)), \
- [ELF_T_VNAUX] = __alignof__ (ElfW2(Bits,Vernaux)), \
- [ELF_T_MOVE] = __alignof__ (ElfW2(Bits,Move)), \
- [ELF_T_LIB] = __alignof__ (ElfW2(Bits,Lib)), \
- [ELF_T_NHDR] = __alignof__ (ElfW2(Bits,Nhdr)), \
- }
- [EV_CURRENT - 1] =
- {
- [ELFCLASS32 - 1] = TYPE_ALIGNS (32),
- [ELFCLASS64 - 1] = TYPE_ALIGNS (64),
- }
-# undef TYPE_ALIGNS
- };
-#endif
-
-
-/* Convert the data in the current section. */
-static void
-convert_data (Elf_Scn *scn, int version __attribute__ ((unused)), int eclass,
- int data, size_t size, Elf_Type type)
-{
- const size_t align = __libelf_type_align (eclass, type);
-
- if (data == MY_ELFDATA)
- {
- if (((((size_t) (char *) scn->rawdata_base)) & (align - 1)) == 0)
- /* No need to copy, we can use the raw data. */
- scn->data_base = scn->rawdata_base;
- else
- {
- scn->data_base = (char *) malloc (size);
- if (scn->data_base == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- return;
- }
-
- /* The copy will be appropriately aligned for direct access. */
- memcpy (scn->data_base, scn->rawdata_base, size);
- }
- }
- else
- {
- xfct_t fp;
-
- scn->data_base = (char *) malloc (size);
- if (scn->data_base == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- return;
- }
-
- /* Get the conversion function. */
-#if EV_NUM != 2
- fp = __elf_xfctstom[version - 1][__libelf_version - 1][eclass - 1][type];
-#else
- fp = __elf_xfctstom[0][0][eclass - 1][type];
-#endif
-
- fp (scn->data_base, scn->rawdata_base, size, 0);
- }
-
- scn->data_list.data.d.d_buf = scn->data_base;
- scn->data_list.data.d.d_size = size;
- scn->data_list.data.d.d_type = type;
- scn->data_list.data.d.d_off = scn->rawdata.d.d_off;
- scn->data_list.data.d.d_align = scn->rawdata.d.d_align;
- scn->data_list.data.d.d_version = scn->rawdata.d.d_version;
-
- scn->data_list.data.s = scn;
-}
-
-
-/* Store the information for the raw data in the `rawdata' element. */
-int
-internal_function
-__libelf_set_rawdata_wrlock (Elf_Scn *scn)
-{
- Elf64_Off offset;
- Elf64_Xword size;
- Elf64_Xword align;
- int type;
- Elf *elf = scn->elf;
-
- if (elf->class == ELFCLASS32)
- {
- Elf32_Shdr *shdr
- = scn->shdr.e32 ?: __elf32_getshdr_wrlock (scn);
-
- if (shdr == NULL)
- /* Something went terribly wrong. */
- return 1;
-
- offset = shdr->sh_offset;
- size = shdr->sh_size;
- type = shdr->sh_type;
- align = shdr->sh_addralign;
- }
- else
- {
- Elf64_Shdr *shdr
- = scn->shdr.e64 ?: __elf64_getshdr_wrlock (scn);
-
- if (shdr == NULL)
- /* Something went terribly wrong. */
- return 1;
-
- offset = shdr->sh_offset;
- size = shdr->sh_size;
- type = shdr->sh_type;
- align = shdr->sh_addralign;
- }
-
- /* If the section has no data (for whatever reason), leave the `d_buf'
- pointer NULL. */
- if (size != 0 && type != SHT_NOBITS)
- {
- /* First a test whether the section is valid at all. */
- size_t entsize;
-
- if (type == SHT_HASH)
- {
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem);
- entsize = SH_ENTSIZE_HASH (ehdr);
- }
- else
- {
- Elf_Type t = shtype_map[LIBELF_EV_IDX][TYPEIDX (type)];
- if (t == ELF_T_VDEF || t == ELF_T_NHDR
- || (t == ELF_T_GNUHASH && elf->class == ELFCLASS64))
- entsize = 1;
- else
- entsize = __libelf_type_sizes[LIBELF_EV_IDX][elf->class - 1][t];
- }
-
- /* We assume it is an array of bytes if it is none of the structured
- sections we know of. */
- if (entsize == 0)
- entsize = 1;
-
- if (unlikely (size % entsize != 0))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- return 1;
- }
-
- /* We can use the mapped or loaded data if available. */
- if (elf->map_address != NULL)
- {
- /* First see whether the information in the section header is
- valid and it does not ask for too much. Check for unsigned
- overflow. */
- if (unlikely (offset > elf->maximum_size
- || elf->maximum_size - offset < size))
- {
- /* Something is wrong. */
- __libelf_seterrno (ELF_E_INVALID_SECTION_HEADER);
- return 1;
- }
-
- scn->rawdata_base = scn->rawdata.d.d_buf
- = (char *) elf->map_address + elf->start_offset + offset;
- }
- else if (likely (elf->fildes != -1))
- {
- /* We have to read the data from the file. Allocate the needed
- memory. */
- scn->rawdata_base = scn->rawdata.d.d_buf
- = (char *) malloc (size);
- if (scn->rawdata.d.d_buf == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- return 1;
- }
-
- ssize_t n = pread_retry (elf->fildes, scn->rawdata.d.d_buf, size,
- elf->start_offset + offset);
- if (unlikely ((size_t) n != size))
- {
- /* Cannot read the data. */
- free (scn->rawdata.d.d_buf);
- scn->rawdata_base = scn->rawdata.d.d_buf = NULL;
- __libelf_seterrno (ELF_E_READ_ERROR);
- return 1;
- }
- }
- else
- {
- /* The file descriptor is already closed, we cannot get the data
- anymore. */
- __libelf_seterrno (ELF_E_FD_DISABLED);
- return 1;
- }
- }
-
- scn->rawdata.d.d_size = size;
- /* Some broken ELF ABI for 64-bit machines use the wrong hash table
- entry size. See elf-knowledge.h for more information. */
- if (type == SHT_HASH && elf->class == ELFCLASS64)
- {
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem);
- scn->rawdata.d.d_type
- = (SH_ENTSIZE_HASH (ehdr) == 4 ? ELF_T_WORD : ELF_T_XWORD);
- }
- else
- scn->rawdata.d.d_type = shtype_map[LIBELF_EV_IDX][TYPEIDX (type)];
- scn->rawdata.d.d_off = 0;
- scn->rawdata.d.d_align = align;
- if (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.ehdr)
- == offsetof (struct Elf, state.elf64.ehdr)))
- scn->rawdata.d.d_version =
- elf->state.elf32.ehdr->e_ident[EI_VERSION];
- else
- scn->rawdata.d.d_version =
- elf->state.elf64.ehdr->e_ident[EI_VERSION];
-
- scn->rawdata.s = scn;
-
- scn->data_read = 1;
-
- /* We actually read data from the file. At least we tried. */
- scn->flags |= ELF_F_FILEDATA;
-
- return 0;
-}
-
-int
-internal_function
-__libelf_set_rawdata (Elf_Scn *scn)
-{
- int result;
-
- if (scn == NULL)
- return 1;
-
- rwlock_wrlock (scn->elf->lock);
- result = __libelf_set_rawdata_wrlock (scn);
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
-
-Elf_Data *
-internal_function
-__elf_getdata_rdlock (scn, data)
- Elf_Scn *scn;
- Elf_Data *data;
-{
- Elf_Data *result = NULL;
- Elf *elf;
- int locked = 0;
-
- if (scn == NULL)
- return NULL;
-
- if (unlikely (scn->elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* We will need this multiple times later on. */
- elf = scn->elf;
-
- /* If `data' is not NULL this means we are not addressing the initial
- data in the file. But this also means this data is already read
- (since otherwise it is not possible to have a valid `data' pointer)
- and all the data structures are initialized as well. In this case
- we can simply walk the list of data records. */
- if (data != NULL)
- {
- Elf_Data_List *runp;
-
- /* It is not possible that if DATA is not NULL the first entry is
- returned. But this also means that there must be a first data
- entry. */
- if (scn->data_list_rear == NULL
- /* The section the reference data is for must match the section
- parameter. */
- || unlikely (((Elf_Data_Scn *) data)->s != scn))
- {
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- goto out;
- }
-
- /* We start searching with the first entry. */
- runp = &scn->data_list;
-
- while (1)
- {
- /* If `data' does not match any known record punt. */
- if (runp == NULL)
- {
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- goto out;
- }
-
- if (&runp->data.d == data)
- /* Found the entry. */
- break;
-
- runp = runp->next;
- }
-
- /* Return the data for the next data record. */
- result = runp->next ? &runp->next->data.d : NULL;
- goto out;
- }
-
- /* If the data for this section was not yet initialized do it now. */
- if (scn->data_read == 0)
- {
- /* We cannot acquire a write lock while we are holding a read
- lock. Therefore give up the read lock and then get the write
- lock. But this means that the data could meanwhile be
- modified, therefore start the tests again. */
- rwlock_unlock (elf->lock);
- rwlock_wrlock (elf->lock);
- locked = 1;
-
- /* Read the data from the file. There is always a file (or
- memory region) associated with this descriptor since
- otherwise the `data_read' flag would be set. */
- if (scn->data_read == 0 && __libelf_set_rawdata_wrlock (scn) != 0)
- /* Something went wrong. The error value is already set. */
- goto out;
- }
-
- /* At this point we know the raw data is available. But it might be
- empty in case the section has size zero (for whatever reason).
- Now create the converted data in case this is necessary. */
- if (scn->data_list_rear == NULL)
- {
- if (scn->rawdata.d.d_buf != NULL && scn->rawdata.d.d_size > 0)
- {
- if (!locked)
- {
- rwlock_unlock (elf->lock);
- rwlock_wrlock (elf->lock);
- if (scn->data_list_rear != NULL)
- goto pass;
- }
-
- /* Convert according to the version and the type. */
- convert_data (scn, __libelf_version, elf->class,
- (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.ehdr)
- == offsetof (struct Elf, state.elf64.ehdr))
- ? elf->state.elf32.ehdr->e_ident[EI_DATA]
- : elf->state.elf64.ehdr->e_ident[EI_DATA]),
- scn->rawdata.d.d_size, scn->rawdata.d.d_type);
- }
- else
- {
- /* This is an empty or NOBITS section. There is no buffer but
- the size information etc is important. */
- scn->data_list.data.d = scn->rawdata.d;
- scn->data_list.data.s = scn;
- }
-
- scn->data_list_rear = &scn->data_list;
- }
-
- /* If no data is present we cannot return any. */
- if (scn->data_list_rear != NULL)
- pass:
- /* Return the first data element in the list. */
- result = &scn->data_list.data.d;
-
- out:
- return result;
-}
-
-Elf_Data *
-elf_getdata (scn, data)
- Elf_Scn *scn;
- Elf_Data *data;
-{
- Elf_Data *result;
-
- if (scn == NULL)
- return NULL;
-
- rwlock_rdlock (scn->elf->lock);
- result = __elf_getdata_rdlock (scn, data);
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
-INTDEF(elf_getdata)
diff --git a/src/libelf/elf_getdata_rawchunk.c b/src/libelf/elf_getdata_rawchunk.c
deleted file mode 100644
index 63a9914f..00000000
--- a/src/libelf/elf_getdata_rawchunk.c
+++ /dev/null
@@ -1,177 +0,0 @@
-/* Return converted data from raw chunk of ELF file.
- Copyright (C) 2007, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <system.h>
-#include "libelfP.h"
-#include "common.h"
-
-Elf_Data *
-elf_getdata_rawchunk (elf, offset, size, type)
- Elf *elf;
- off64_t offset;
- size_t size;
- Elf_Type type;
-{
- if (unlikely (elf == NULL))
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- /* No valid descriptor. */
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- if (unlikely (offset < 0 || (uint64_t) offset > elf->maximum_size
- || elf->maximum_size - (uint64_t) offset < size))
-
- {
- /* Invalid request. */
- __libelf_seterrno (ELF_E_INVALID_OP);
- return NULL;
- }
-
- if (type >= ELF_T_NUM)
- {
- __libelf_seterrno (ELF_E_UNKNOWN_TYPE);
- return NULL;
- }
-
- /* Get the raw bytes from the file. */
- void *rawchunk;
- int flags = 0;
- Elf_Data *result = NULL;
-
- rwlock_rdlock (elf->lock);
-
- /* If the file is mmap'ed we can use it directly. */
- if (elf->map_address != NULL)
- rawchunk = elf->map_address + elf->start_offset + offset;
- else
- {
- /* We allocate the memory and read the data from the file. */
- rawchunk = malloc (size);
- if (rawchunk == NULL)
- {
- nomem:
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
-
- /* Read the file content. */
- if (unlikely ((size_t) pread_retry (elf->fildes, rawchunk, size,
- elf->start_offset + offset)
- != size))
- {
- /* Something went wrong. */
- free (rawchunk);
- __libelf_seterrno (ELF_E_READ_ERROR);
- goto out;
- }
-
- flags = ELF_F_MALLOCED;
- }
-
- /* Copy and/or convert the data as needed for aligned native-order access. */
- size_t align = __libelf_type_align (elf->class, type);
- void *buffer;
- if (elf->state.elf32.ehdr->e_ident[EI_DATA] == MY_ELFDATA)
- {
- if (((uintptr_t) rawchunk & (align - 1)) == 0)
- /* No need to copy, we can use the raw data. */
- buffer = rawchunk;
- else
- {
- /* A malloc'd block is always sufficiently aligned. */
- assert (flags == 0);
-
- buffer = malloc (size);
- if (unlikely (buffer == NULL))
- goto nomem;
- flags = ELF_F_MALLOCED;
-
- /* The copy will be appropriately aligned for direct access. */
- memcpy (buffer, rawchunk, size);
- }
- }
- else
- {
- if (flags)
- buffer = rawchunk;
- else
- {
- buffer = malloc (size);
- if (unlikely (buffer == NULL))
- goto nomem;
- flags = ELF_F_MALLOCED;
- }
-
- /* Call the conversion function. */
- (*__elf_xfctstom[LIBELF_EV_IDX][LIBELF_EV_IDX][elf->class - 1][type])
- (buffer, rawchunk, size, 0);
- }
-
- /* Allocate the dummy container to point at this buffer. */
- Elf_Data_Chunk *chunk = calloc (1, sizeof *chunk);
- if (chunk == NULL)
- {
- if (flags)
- free (buffer);
- goto nomem;
- }
-
- chunk->dummy_scn.elf = elf;
- chunk->dummy_scn.flags = flags;
- chunk->data.s = &chunk->dummy_scn;
- chunk->data.d.d_buf = buffer;
- chunk->data.d.d_size = size;
- chunk->data.d.d_type = type;
- chunk->data.d.d_align = align;
- chunk->data.d.d_version = __libelf_version;
-
- rwlock_unlock (elf->lock);
- rwlock_wrlock (elf->lock);
-
- chunk->next = elf->state.elf.rawchunks;
- elf->state.elf.rawchunks = chunk;
- result = &chunk->data.d;
-
- out:
- rwlock_unlock (elf->lock);
- return result;
-}
diff --git a/src/libelf/elf_getident.c b/src/libelf/elf_getident.c
deleted file mode 100644
index 10beeafd..00000000
--- a/src/libelf/elf_getident.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/* Retrieve file identification data.
- Copyright (C) 1998, 1999, 2000, 2002, 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-char *
-elf_getident (elf, ptr)
- Elf *elf;
- size_t *ptr;
-{
- /* In case this is no ELF file, the handle is invalid and we return
- NULL. */
- if (elf == NULL || elf->kind != ELF_K_ELF)
- {
- if (ptr != NULL)
- *ptr = 0;
- return NULL;
- }
-
- /* We already read the ELF header. Return a pointer to it and store
- the length in *PTR. */
- if (ptr != NULL)
- *ptr = EI_NIDENT;
-
- return (char *) (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.ehdr)
- == offsetof (struct Elf, state.elf64.ehdr))
- ? elf->state.elf32.ehdr->e_ident
- : elf->state.elf64.ehdr->e_ident);
-}
diff --git a/src/libelf/elf_getphdrnum.c b/src/libelf/elf_getphdrnum.c
deleted file mode 100644
index 63c27fb1..00000000
--- a/src/libelf/elf_getphdrnum.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/* Return number of program headers in the ELF file.
- Copyright (C) 2010, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-int
-__elf_getphdrnum_rdlock (elf, dst)
- Elf *elf;
- size_t *dst;
-{
- if (unlikely (elf->state.elf64.ehdr == NULL))
- {
- /* Maybe no ELF header was created yet. */
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- return -1;
- }
-
- *dst = (elf->class == ELFCLASS32
- ? elf->state.elf32.ehdr->e_phnum
- : elf->state.elf64.ehdr->e_phnum);
-
- if (*dst == PN_XNUM)
- {
- const Elf_ScnList *const scns = (elf->class == ELFCLASS32
- ? &elf->state.elf32.scns
- : &elf->state.elf64.scns);
-
- /* If there are no section headers, perhaps this is really just 65536
- written without PN_XNUM support. Either that or it's bad data. */
-
- if (elf->class == ELFCLASS32)
- {
- if (likely (scns->cnt > 0
- && elf->state.elf32.scns.data[0].shdr.e32 != NULL))
- *dst = scns->data[0].shdr.e32->sh_info;
- }
- else
- {
- if (likely (scns->cnt > 0
- && elf->state.elf64.scns.data[0].shdr.e64 != NULL))
- *dst = scns->data[0].shdr.e64->sh_info;
- }
- }
-
- return 0;
-}
-
-int
-elf_getphdrnum (elf, dst)
- Elf *elf;
- size_t *dst;
-{
- int result;
-
- if (elf == NULL)
- return -1;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return -1;
- }
-
- rwlock_rdlock (elf->lock);
- result = __elf_getphdrnum_rdlock (elf, dst);
-
- /* Do some sanity checking to make sure phnum and phoff are consistent. */
- Elf64_Off off = (elf->class == ELFCLASS32
- ? elf->state.elf32.ehdr->e_phoff
- : elf->state.elf64.ehdr->e_phoff);
- if (unlikely (off == 0))
- {
- *dst = 0;
- goto out;
- }
-
- if (unlikely (off >= elf->maximum_size))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- result = -1;
- goto out;
- }
-
- /* Check for too many sections. */
- size_t phdr_size = (elf->class == ELFCLASS32
- ? sizeof (Elf32_Phdr) : sizeof (Elf64_Phdr));
- if (unlikely (*dst > SIZE_MAX / phdr_size))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- result = -1;
- goto out;
- }
-
- /* Truncated file? Don't return more than can be indexed. */
- if (unlikely (elf->maximum_size - off < *dst * phdr_size))
- *dst = (elf->maximum_size - off) / phdr_size;
-
-out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/elf_getscn.c b/src/libelf/elf_getscn.c
deleted file mode 100644
index 7c6b7dee..00000000
--- a/src/libelf/elf_getscn.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/* Get section at specific index.
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stddef.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-Elf_Scn *
-elf_getscn (elf, idx)
- Elf *elf;
- size_t idx;
-{
- if (elf == NULL)
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- rwlock_rdlock (elf->lock);
-
- Elf_Scn *result = NULL;
-
- /* Find the section in the list. */
- Elf_ScnList *runp = (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.scns)
- == offsetof (struct Elf, state.elf64.scns))
- ? &elf->state.elf32.scns : &elf->state.elf64.scns);
- while (1)
- {
- if (idx < runp->max)
- {
- if (idx < runp->cnt)
- result = &runp->data[idx];
- else
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- break;
- }
-
- idx -= runp->max;
-
- runp = runp->next;
- if (runp == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- break;
- }
- }
-
- rwlock_unlock (elf->lock);
-
- return result;
-}
-INTDEF(elf_getscn)
diff --git a/src/libelf/elf_getshdrnum.c b/src/libelf/elf_getshdrnum.c
deleted file mode 100644
index 73a3300d..00000000
--- a/src/libelf/elf_getshdrnum.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* Return number of sections in the ELF file.
- Copyright (C) 2002, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-int
-__elf_getshdrnum_rdlock (elf, dst)
- Elf *elf;
- size_t *dst;
-{
- int result = 0;
- int idx;
-
- if (elf == NULL)
- return -1;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return -1;
- }
-
- idx = elf->state.elf.scns_last->cnt;
- if (idx != 0
- || (elf->state.elf.scns_last
- != (elf->class == ELFCLASS32
- || (offsetof (Elf, state.elf32.scns)
- == offsetof (Elf, state.elf64.scns))
- ? &elf->state.elf32.scns : &elf->state.elf64.scns)))
- /* There is at least one section. */
- *dst = 1 + elf->state.elf.scns_last->data[idx - 1].index;
- else
- *dst = 0;
-
- return result;
-}
-
-int
-elf_getshdrnum (elf, dst)
- Elf *elf;
- size_t *dst;
-{
- int result;
-
- if (elf == NULL)
- return -1;
-
- rwlock_rdlock (elf->lock);
- result = __elf_getshdrnum_rdlock (elf, dst);
- rwlock_unlock (elf->lock);
-
- return result;
-}
-/* Alias for the deprecated name. */
-strong_alias (elf_getshdrnum, elf_getshnum)
diff --git a/src/libelf/elf_getshdrstrndx.c b/src/libelf/elf_getshdrstrndx.c
deleted file mode 100644
index 6f8d66e8..00000000
--- a/src/libelf/elf_getshdrstrndx.c
+++ /dev/null
@@ -1,229 +0,0 @@
-/* Return section index of section header string table.
- Copyright (C) 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <errno.h>
-#include <gelf.h>
-#include <stddef.h>
-#include <unistd.h>
-
-#include <system.h>
-#include "libelfP.h"
-#include "common.h"
-
-
-int
-elf_getshdrstrndx (elf, dst)
- Elf *elf;
- size_t *dst;
-{
- int result = 0;
-
- if (elf == NULL)
- return -1;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return -1;
- }
-
- rwlock_rdlock (elf->lock);
-
- /* We rely here on the fact that the `elf' element is a common prefix
- of `elf32' and `elf64'. */
- assert (offsetof (struct Elf, state.elf.ehdr)
- == offsetof (struct Elf, state.elf32.ehdr));
- assert (sizeof (elf->state.elf.ehdr)
- == sizeof (elf->state.elf32.ehdr));
- assert (offsetof (struct Elf, state.elf.ehdr)
- == offsetof (struct Elf, state.elf64.ehdr));
- assert (sizeof (elf->state.elf.ehdr)
- == sizeof (elf->state.elf64.ehdr));
-
- if (unlikely (elf->state.elf.ehdr == NULL))
- {
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- result = -1;
- }
- else
- {
- Elf32_Word num;
-
- num = (elf->class == ELFCLASS32
- ? elf->state.elf32.ehdr->e_shstrndx
- : elf->state.elf64.ehdr->e_shstrndx);
-
- /* Determine whether the index is too big to fit in the ELF
- header. */
- if (unlikely (num == SHN_XINDEX))
- {
- /* Yes. Search the zeroth section header. */
- if (elf->class == ELFCLASS32)
- {
- size_t offset;
- if (unlikely (elf->state.elf32.scns.cnt == 0))
- {
- /* Cannot use SHN_XINDEX without section headers. */
- __libelf_seterrno (ELF_E_INVALID_SECTION_HEADER);
- result = -1;
- goto out;
- }
-
- if (elf->state.elf32.scns.data[0].shdr.e32 != NULL)
- {
- num = elf->state.elf32.scns.data[0].shdr.e32->sh_link;
- goto success;
- }
-
- offset = elf->state.elf32.ehdr->e_shoff;
-
- if (elf->map_address != NULL
- && elf->state.elf32.ehdr->e_ident[EI_DATA] == MY_ELFDATA
- && (ALLOW_UNALIGNED
- || (((size_t) ((char *) elf->map_address
- + elf->start_offset + offset))
- & (__alignof__ (Elf32_Shdr) - 1)) == 0))
- {
- /* First see whether the information in the ELF header is
- valid and it does not ask for too much. */
- if (unlikely (elf->maximum_size - offset
- < sizeof (Elf32_Shdr)))
- {
- /* Something is wrong. */
- __libelf_seterrno (ELF_E_INVALID_SECTION_HEADER);
- result = -1;
- goto out;
- }
-
- /* We can directly access the memory. */
- num = ((Elf32_Shdr *) (elf->map_address + elf->start_offset
- + offset))->sh_link;
- }
- else
- {
- /* We avoid reading in all the section headers. Just read
- the first one. */
- Elf32_Shdr shdr_mem;
-
- if (unlikely (pread_retry (elf->fildes, &shdr_mem,
- sizeof (Elf32_Shdr), offset)
- != sizeof (Elf32_Shdr)))
- {
- /* We must be able to read this ELF section header. */
- __libelf_seterrno (ELF_E_INVALID_FILE);
- result = -1;
- goto out;
- }
-
- if (elf->state.elf32.ehdr->e_ident[EI_DATA] != MY_ELFDATA)
- CONVERT (shdr_mem.sh_link);
- num = shdr_mem.sh_link;
- }
- }
- else
- {
- if (unlikely (elf->state.elf64.scns.cnt == 0))
- {
- /* Cannot use SHN_XINDEX without section headers. */
- __libelf_seterrno (ELF_E_INVALID_SECTION_HEADER);
- result = -1;
- goto out;
- }
-
- if (elf->state.elf64.scns.data[0].shdr.e64 != NULL)
- {
- num = elf->state.elf64.scns.data[0].shdr.e64->sh_link;
- goto success;
- }
-
- size_t offset = elf->state.elf64.ehdr->e_shoff;
-
- if (elf->map_address != NULL
- && elf->state.elf64.ehdr->e_ident[EI_DATA] == MY_ELFDATA
- && (ALLOW_UNALIGNED
- || (((size_t) ((char *) elf->map_address
- + elf->start_offset + offset))
- & (__alignof__ (Elf64_Shdr) - 1)) == 0))
- {
- /* First see whether the information in the ELF header is
- valid and it does not ask for too much. */
- if (unlikely (elf->maximum_size - offset
- < sizeof (Elf64_Shdr)))
- {
- /* Something is wrong. */
- __libelf_seterrno (ELF_E_INVALID_SECTION_HEADER);
- result = -1;
- goto out;
- }
-
- /* We can directly access the memory. */
- num = ((Elf64_Shdr *) (elf->map_address + elf->start_offset
- + offset))->sh_link;
- }
- else
- {
- /* We avoid reading in all the section headers. Just read
- the first one. */
- Elf64_Shdr shdr_mem;
-
- if (unlikely (pread_retry (elf->fildes, &shdr_mem,
- sizeof (Elf64_Shdr), offset)
- != sizeof (Elf64_Shdr)))
- {
- /* We must be able to read this ELF section header. */
- __libelf_seterrno (ELF_E_INVALID_FILE);
- result = -1;
- goto out;
- }
-
- if (elf->state.elf64.ehdr->e_ident[EI_DATA] != MY_ELFDATA)
- CONVERT (shdr_mem.sh_link);
- num = shdr_mem.sh_link;
- }
- }
- }
-
- /* Store the result. */
- success:
- *dst = num;
- }
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
-INTDEF(elf_getshdrstrndx)
-/* Alias for the deprecated name. */
-strong_alias (elf_getshdrstrndx, elf_getshstrndx)
diff --git a/src/libelf/elf_gnu_hash.c b/src/libelf/elf_gnu_hash.c
deleted file mode 100644
index 4c21857f..00000000
--- a/src/libelf/elf_gnu_hash.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* GNU-style Hash function used in ELF implementations.
- Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 2006.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelfP.h>
-
-/* Get the implementation. */
-#include <dl-hash.h>
-
-unsigned long int
-elf_gnu_hash (string)
- const char *string;
-{
- uint_fast32_t h = 5381;
- for (unsigned char c = *string; c != '\0'; c = *++string)
- h = h * 33 + c;
- return h & 0xffffffff;
-}
diff --git a/src/libelf/elf_hash.c b/src/libelf/elf_hash.c
deleted file mode 100644
index 306ebc2c..00000000
--- a/src/libelf/elf_hash.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Hash function used in ELF implementations.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelfP.h>
-
-/* Get the implementation. */
-#include <dl-hash.h>
-
-unsigned long int
-elf_hash (string)
- const char *string;
-{
- return _dl_elf_hash (string);
-}
-INTDEF(elf_hash)
diff --git a/src/libelf/elf_kind.c b/src/libelf/elf_kind.c
deleted file mode 100644
index d8ab2fdd..00000000
--- a/src/libelf/elf_kind.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Return the kind of file associated with the descriptor.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-Elf_Kind
-elf_kind (elf)
- Elf *elf;
-{
- return elf == NULL ? ELF_K_NONE : elf->kind;
-}
diff --git a/src/libelf/elf_memory.c b/src/libelf/elf_memory.c
deleted file mode 100644
index 08f85a12..00000000
--- a/src/libelf/elf_memory.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Create descriptor for memory region.
- Copyright (C) 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-Elf *
-elf_memory (image, size)
- char *image;
- size_t size;
-{
- if (image == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OPERAND);
- return NULL;
- }
-
- return __libelf_read_mmaped_file (-1, image, 0, size, ELF_C_READ, NULL);
-}
diff --git a/src/libelf/elf_ndxscn.c b/src/libelf/elf_ndxscn.c
deleted file mode 100644
index bd4bfbfd..00000000
--- a/src/libelf/elf_ndxscn.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Get index of section.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-size_t
-elf_ndxscn (scn)
- Elf_Scn *scn;
-{
- if (scn == NULL)
- return SHN_UNDEF;
-
- return scn->index;
-}
diff --git a/src/libelf/elf_newdata.c b/src/libelf/elf_newdata.c
deleted file mode 100644
index 90d18133..00000000
--- a/src/libelf/elf_newdata.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* Create new, empty section data.
- Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stddef.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-Elf_Data *
-elf_newdata (Elf_Scn *scn)
-{
- Elf_Data_List *result = NULL;
-
- if (scn == NULL)
- return NULL;
-
- if (unlikely (scn->index == 0))
- {
- /* It is not allowed to add something to the 0th section. */
- __libelf_seterrno (ELF_E_NOT_NUL_SECTION);
- return NULL;
- }
-
- if (scn->elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.ehdr)
- == offsetof (struct Elf, state.elf64.ehdr))
- ? scn->elf->state.elf32.ehdr == NULL
- : scn->elf->state.elf64.ehdr == NULL)
- {
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- return NULL;
- }
-
- rwlock_wrlock (scn->elf->lock);
-
- if (scn->data_read && scn->data_list_rear == NULL)
- {
- /* This means the section was created by the user and this is the
- first data. */
- result = &scn->data_list;
- result->flags = ELF_F_DIRTY;
- }
- else
- {
- /* Create a new, empty data descriptor. */
- result = (Elf_Data_List *) calloc (1, sizeof (Elf_Data_List));
- if (result == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
-
- result->flags = ELF_F_DIRTY | ELF_F_MALLOCED;
-
- if (scn->data_list_rear == NULL)
- /* We create new data without reading/converting the data from the
- file. That is fine but we have to remember this. */
- scn->data_list_rear = &scn->data_list;
- }
-
- /* Set the predefined values. */
- result->data.d.d_version = __libelf_version;
-
- result->data.s = scn;
-
- /* Add to the end of the list. */
- if (scn->data_list_rear != NULL)
- scn->data_list_rear->next = result;
-
- scn->data_list_rear = result;
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- /* Please note that the following is thread safe and is also defined
- for RESULT == NULL since it still return NULL. */
- return &result->data.d;
-}
diff --git a/src/libelf/elf_newscn.c b/src/libelf/elf_newscn.c
deleted file mode 100644
index 6e0029ed..00000000
--- a/src/libelf/elf_newscn.c
+++ /dev/null
@@ -1,163 +0,0 @@
-/* Append new section.
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <stdbool.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-Elf_Scn *
-elf_newscn (elf)
- Elf *elf;
-{
- Elf_Scn *result = NULL;
- bool first = false;
-
- if (elf == NULL)
- return NULL;
-
- /* We rely on the prefix of the `elf', `elf32', and `elf64' element
- being the same. */
- assert (offsetof (Elf, state.elf.scns_last)
- == offsetof (Elf, state.elf32.scns_last));
- assert (offsetof (Elf, state.elf.scns_last)
- == offsetof (Elf, state.elf64.scns_last));
- assert (offsetof (Elf, state.elf32.scns)
- == offsetof (Elf, state.elf64.scns));
-
- rwlock_wrlock (elf->lock);
-
- again:
- if (elf->state.elf.scns_last->cnt < elf->state.elf.scns_last->max)
- {
- result = &elf->state.elf.scns_last->data[elf->state.elf.scns_last->cnt];
-
- if (++elf->state.elf.scns_last->cnt == 1
- && (elf->state.elf.scns_last
- == (elf->class == ELFCLASS32
- || (offsetof (Elf, state.elf32.scns)
- == offsetof (Elf, state.elf64.scns))
- ? &elf->state.elf32.scns : &elf->state.elf64.scns)))
- /* This is zeroth section. */
- first = true;
- else
- {
- assert (elf->state.elf.scns_last->cnt > 1);
- result->index = result[-1].index + 1;
- }
- }
- else
- {
- /* We must allocate a new element. */
- Elf_ScnList *newp = NULL;
-
- assert (elf->state.elf.scnincr > 0);
-
- if (
-#if SIZE_MAX <= 4294967295U
- likely (elf->state.elf.scnincr
- < SIZE_MAX / 2 / sizeof (Elf_Scn) - sizeof (Elf_ScnList))
-#else
- 1
-#endif
- )
- newp = (Elf_ScnList *) calloc (sizeof (Elf_ScnList)
- + ((elf->state.elf.scnincr *= 2)
- * sizeof (Elf_Scn)), 1);
- if (newp == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
-
- result = &newp->data[0];
-
- /* One section used. */
- ++newp->cnt;
-
- /* This is the number of sections we allocated. */
- newp->max = elf->state.elf.scnincr;
-
- /* Remember the index for the first section in this block. */
- newp->data[0].index
- = 1 + elf->state.elf.scns_last->data[elf->state.elf.scns_last->max - 1].index;
-
- /* Enqueue the new list element. */
- elf->state.elf.scns_last = elf->state.elf.scns_last->next = newp;
- }
-
- /* Create a section header for this section. */
- if (elf->class == ELFCLASS32)
- {
- result->shdr.e32 = (Elf32_Shdr *) calloc (1, sizeof (Elf32_Shdr));
- if (result->shdr.e32 == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
- }
- else
- {
- result->shdr.e64 = (Elf64_Shdr *) calloc (1, sizeof (Elf64_Shdr));
- if (result->shdr.e64 == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- goto out;
- }
- }
-
- result->elf = elf;
- result->shdr_flags = ELF_F_DIRTY | ELF_F_MALLOCED;
- result->list = elf->state.elf.scns_last;
-
- /* Initialize the data part. */
- result->data_read = 1;
- if (unlikely (first))
- {
- /* For the first section we mark the data as already available. */
- //result->data_list_rear = &result->data_list;
- first = false;
- goto again;
- }
-
- result->flags |= ELF_F_DIRTY;
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/elf_next.c b/src/libelf/elf_next.c
deleted file mode 100644
index 1f5c03c1..00000000
--- a/src/libelf/elf_next.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* Advance in archive to next element.
- Copyright (C) 1998-2009 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-Elf_Cmd
-elf_next (elf)
- Elf *elf;
-{
- Elf *parent;
- Elf_Cmd ret;
-
- /* Be gratious, the specs demand it. */
- if (elf == NULL || elf->parent == NULL)
- return ELF_C_NULL;
-
- /* We can be sure the parent is an archive. */
- parent = elf->parent;
- assert (parent->kind == ELF_K_AR);
-
- rwlock_wrlock (parent->lock);
-
- /* Now advance the offset. */
- parent->state.ar.offset += (sizeof (struct ar_hdr)
- + ((parent->state.ar.elf_ar_hdr.ar_size + 1)
- & ~1l));
-
- /* Get the next archive header. */
- ret = __libelf_next_arhdr_wrlock (parent) != 0 ? ELF_C_NULL : elf->cmd;
-
- /* If necessary, mark the archive header as unusable. */
- if (ret == ELF_C_NULL)
- parent->state.ar.elf_ar_hdr.ar_name = NULL;
-
- rwlock_unlock (parent->lock);
-
- return ret;
-}
diff --git a/src/libelf/elf_nextscn.c b/src/libelf/elf_nextscn.c
deleted file mode 100644
index 0d2bd666..00000000
--- a/src/libelf/elf_nextscn.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/* Get next section.
- Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-Elf_Scn *
-elf_nextscn (elf, scn)
- Elf *elf;
- Elf_Scn *scn;
-{
- Elf_Scn *result = NULL;
-
- if (elf == NULL)
- return NULL;
-
- rwlock_rdlock (elf->lock);
-
- if (scn == NULL)
- {
- /* If no section handle is given return the first (not 0th) section. */
- if (elf->class == ELFCLASS32
- || (offsetof (Elf, state.elf32.scns)
- == offsetof (Elf, state.elf64.scns)))
- {
- if (elf->state.elf32.scns.cnt > 1)
- result = &elf->state.elf32.scns.data[1];
- }
- else
- {
- if (elf->state.elf64.scns.cnt > 1)
- result = &elf->state.elf64.scns.data[1];
- }
- }
- else
- {
- Elf_ScnList *list = scn->list;
-
- if (scn + 1 < &list->data[list->cnt])
- result = scn + 1;
- else if (scn + 1 == &list->data[list->max]
- && (list = list->next) != NULL)
- {
- /* If there is another element in the section list it must
- have at least one entry. */
- assert (list->cnt > 0);
- result = &list->data[0];
- }
- }
-
- rwlock_unlock (elf->lock);
-
- return result;
-}
-INTDEF(elf_nextscn)
diff --git a/src/libelf/elf_rand.c b/src/libelf/elf_rand.c
deleted file mode 100644
index cef4e448..00000000
--- a/src/libelf/elf_rand.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Select specific element in archive.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-size_t
-elf_rand (elf, offset)
- Elf *elf;
- size_t offset;
-{
- /* Be gratious, the specs demand it. */
- if (elf == NULL || elf->kind != ELF_K_AR)
- return 0;
-
- rwlock_wrlock (elf->lock);
-
- /* Save the old offset and set the offset. */
- elf->state.ar.offset = elf->start_offset + offset;
-
- /* Get the next archive header. */
- if (__libelf_next_arhdr_wrlock (elf) != 0)
- {
- /* Mark the archive header as unusable. */
- elf->state.ar.elf_ar_hdr.ar_name = NULL;
- return 0;
- }
-
- rwlock_unlock (elf->lock);
-
- return offset;
-}
diff --git a/src/libelf/elf_rawdata.c b/src/libelf/elf_rawdata.c
deleted file mode 100644
index 9672652c..00000000
--- a/src/libelf/elf_rawdata.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Return raw section content.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-Elf_Data *
-elf_rawdata (scn, data)
- Elf_Scn *scn;
- Elf_Data *data;
-{
- if (scn == NULL || scn->elf->kind != ELF_K_ELF)
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* If `data' is not NULL this means we are not addressing the initial
- data in the file. But this also means this data is already read
- (since otherwise it is not possible to have a valid `data' pointer)
- and all the data structures are initialized as well. In this case
- we can simply walk the list of data records. */
- if (data != NULL
- || (scn->data_read != 0 && (scn->flags & ELF_F_FILEDATA) == 0))
- {
- /* We don't allow accessing any but the data read from the file
- as raw. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return NULL;
- }
-
- /* If the data for this section was not yet initialized do it now. */
- if (scn->data_read == 0)
- {
- /* First thing we do is to read the data from the file. There is
- always a file (or memory region) associated with this descriptor
- since otherwise the `data_read' flag would be set. */
- if (__libelf_set_rawdata (scn) != 0)
- /* Something went wrong. The error value is already set. */
- return NULL;
- }
-
- /* Return the first data element in the list. */
- return &scn->rawdata.d;
-}
-INTDEF(elf_rawdata)
diff --git a/src/libelf/elf_rawfile.c b/src/libelf/elf_rawfile.c
deleted file mode 100644
index dd71b88b..00000000
--- a/src/libelf/elf_rawfile.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/* Retrieve uninterpreted file contents.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-char *
-elf_rawfile (elf, ptr)
- Elf *elf;
- size_t *ptr;
-{
- char *result;
-
- if (elf == NULL)
- {
- /* No valid descriptor. */
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- error_out:
- if (ptr != NULL)
- *ptr = 0;
- return NULL;
- }
-
- /* If the file is not mmap'ed and not previously loaded, do it now. */
- if (elf->map_address == NULL && __libelf_readall (elf) == NULL)
- goto error_out;
-
- rwlock_rdlock (elf->lock);
- if (ptr != NULL)
- *ptr = elf->maximum_size;
-
- result = (char *) elf->map_address + elf->start_offset;
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/elf_readall.c b/src/libelf/elf_readall.c
deleted file mode 100644
index 01016188..00000000
--- a/src/libelf/elf_readall.c
+++ /dev/null
@@ -1,152 +0,0 @@
-/* Read all of the file associated with the descriptor.
- Copyright (C) 1998-2009 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <unistd.h>
-#include <sys/stat.h>
-
-#include <system.h>
-#include "libelfP.h"
-#include "common.h"
-
-
-static void
-set_address (Elf *elf, size_t offset)
-{
- if (elf->kind == ELF_K_AR)
- {
- Elf *child = elf->state.ar.children;
-
- while (child != NULL)
- {
- if (child->map_address == NULL)
- {
- child->map_address = elf->map_address;
- child->start_offset -= offset;
- if (child->kind == ELF_K_AR)
- child->state.ar.offset -= offset;
-
- set_address (child, offset);
- }
-
- child = child->next;
- }
- }
-}
-
-
-char *
-__libelf_readall (elf)
- Elf *elf;
-{
- /* Get the file. */
- rwlock_wrlock (elf->lock);
-
- if (elf->map_address == NULL && unlikely (elf->fildes == -1))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- rwlock_unlock (elf->lock);
- return NULL;
- }
-
- /* If the file is not mmap'ed and not previously loaded, do it now. */
- if (elf->map_address == NULL)
- {
- char *mem = NULL;
-
- /* If this is an archive and we have derived descriptors get the
- locks for all of them. */
- libelf_acquire_all (elf);
-
- if (elf->maximum_size == ~((size_t) 0))
- {
- /* We don't yet know how large the file is. Determine that now. */
- struct stat st;
-
- if (fstat (elf->fildes, &st) < 0)
- goto read_error;
-
- if (sizeof (size_t) >= sizeof (st.st_size)
- || st.st_size <= ~((size_t) 0))
- elf->maximum_size = (size_t) st.st_size;
- else
- {
- errno = EOVERFLOW;
- goto read_error;
- }
- }
-
- /* Allocate all the memory we need. */
- mem = (char *) malloc (elf->maximum_size);
- if (mem != NULL)
- {
- /* Read the file content. */
- if (unlikely ((size_t) pread_retry (elf->fildes, mem,
- elf->maximum_size,
- elf->start_offset)
- != elf->maximum_size))
- {
- /* Something went wrong. */
- read_error:
- __libelf_seterrno (ELF_E_READ_ERROR);
- free (mem);
- }
- else
- {
- /* Remember the address. */
- elf->map_address = mem;
-
- /* Also remember that we allocated the memory. */
- elf->flags |= ELF_F_MALLOCED;
-
- /* Propagate the information down to all children and
- their children. */
- set_address (elf, elf->start_offset);
-
- /* Correct the own offsets. */
- if (elf->kind == ELF_K_AR)
- elf->state.ar.offset -= elf->start_offset;
- elf->start_offset = 0;
- }
- }
- else
- __libelf_seterrno (ELF_E_NOMEM);
-
- /* Free the locks on the children. */
- libelf_release_all (elf);
- }
-
- rwlock_unlock (elf->lock);
-
- return (char *) elf->map_address;
-}
diff --git a/src/libelf/elf_scnshndx.c b/src/libelf/elf_scnshndx.c
deleted file mode 100644
index 5b783faa..00000000
--- a/src/libelf/elf_scnshndx.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Get the section index of the extended section index table.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 2007.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "libelfP.h"
-
-
-int
-elf_scnshndx (Elf_Scn *scn)
-{
- if (unlikely (scn->shndx_index == 0))
- {
- /* We do not have the value yet. We get it as a side effect of
- getting a section header. */
- GElf_Shdr shdr_mem;
- (void) INTUSE(gelf_getshdr) (scn, &shdr_mem);
- }
-
- return scn->shndx_index;
-}
-INTDEF(elf_scnshndx)
diff --git a/src/libelf/elf_strptr.c b/src/libelf/elf_strptr.c
deleted file mode 100644
index 1f404292..00000000
--- a/src/libelf/elf_strptr.c
+++ /dev/null
@@ -1,161 +0,0 @@
-/* Return string pointer from string section.
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2008, 2009 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-char *
-elf_strptr (elf, idx, offset)
- Elf *elf;
- size_t idx;
- size_t offset;
-{
- if (elf == NULL)
- return NULL;
-
- if (elf->kind != ELF_K_ELF)
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- rwlock_rdlock (elf->lock);
-
- char *result = NULL;
- Elf_Scn *strscn;
-
- /* Find the section in the list. */
- Elf_ScnList *runp = (elf->class == ELFCLASS32
- || (offsetof (struct Elf, state.elf32.scns)
- == offsetof (struct Elf, state.elf64.scns))
- ? &elf->state.elf32.scns : &elf->state.elf64.scns);
- while (1)
- {
- if (idx < runp->max)
- {
- if (idx < runp->cnt)
- strscn = &runp->data[idx];
- else
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
- break;
- }
-
- idx -= runp->max;
-
- runp = runp->next;
- if (runp == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
- }
-
- if (elf->class == ELFCLASS32)
- {
- if (unlikely (strscn->shdr.e32->sh_type != SHT_STRTAB))
- {
- /* This is no string section. */
- __libelf_seterrno (ELF_E_INVALID_SECTION);
- goto out;
- }
-
- if (unlikely (offset >= strscn->shdr.e32->sh_size))
- {
- /* The given offset is too big, it is beyond this section. */
- __libelf_seterrno (ELF_E_OFFSET_RANGE);
- goto out;
- }
- }
- else
- {
- if (unlikely (strscn->shdr.e64->sh_type != SHT_STRTAB))
- {
- /* This is no string section. */
- __libelf_seterrno (ELF_E_INVALID_SECTION);
- goto out;
- }
-
- if (unlikely (offset >= strscn->shdr.e64->sh_size))
- {
- /* The given offset is too big, it is beyond this section. */
- __libelf_seterrno (ELF_E_OFFSET_RANGE);
- goto out;
- }
- }
-
- if (strscn->rawdata_base == NULL && ! strscn->data_read)
- {
- rwlock_unlock (elf->lock);
- rwlock_wrlock (elf->lock);
- if (strscn->rawdata_base == NULL && ! strscn->data_read
- /* Read the section data. */
- && __libelf_set_rawdata_wrlock (strscn) != 0)
- goto out;
- }
-
- if (likely (strscn->rawdata_base != NULL))
- // XXX Is this correct if a file is read and then new data is added
- // XXX to the string section? Likely needs to check offset against
- // XXX size of rawdata_base buffer and then iterate over rest of the
- // XXX list.
- result = &strscn->rawdata_base[offset];
- else
- {
- /* This is a file which is currently created. Use the list of
- data blocks. */
- struct Elf_Data_List *dl = &strscn->data_list;
- while (dl != NULL)
- {
- if (offset >= (size_t) dl->data.d.d_off
- && offset < dl->data.d.d_off + dl->data.d.d_size)
- {
- result = (char *) dl->data.d.d_buf + (offset - dl->data.d.d_off);
- break;
- }
-
- dl = dl->next;
- }
- }
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
-INTDEF(elf_strptr)
diff --git a/src/libelf/elf_update.c b/src/libelf/elf_update.c
deleted file mode 100644
index 54c20f50..00000000
--- a/src/libelf/elf_update.c
+++ /dev/null
@@ -1,199 +0,0 @@
-/* Update data structures for changes and write them out.
- Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <unistd.h>
-#include <sys/mman.h>
-#include <sys/stat.h>
-
-#include "libelfP.h"
-
-
-static off_t
-write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
-{
- int class = elf->class;
-
- /* Check the mode bits now, before modification might change them. */
- struct stat st;
- if (unlikely (fstat (elf->fildes, &st) != 0))
- {
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- return -1;
- }
-
- /* Adjust the size in any case. We do this even if we use `write'.
- We cannot do this if this file is in an archive. We also don't
- do it *now* if we are shortening the file since this would
- prevent programs to use the data of the file in generating the
- new file. We truncate the file later in this case. */
- if (elf->parent == NULL
- && (elf->maximum_size == ~((size_t) 0)
- || (size_t) size > elf->maximum_size)
- && unlikely (ftruncate (elf->fildes, size) != 0))
- {
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- return -1;
- }
-
- /* Try to map the file if this isn't done yet. */
- if (elf->map_address == NULL && elf->cmd == ELF_C_WRITE_MMAP)
- {
- elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE,
- MAP_SHARED, elf->fildes, 0);
- if (unlikely (elf->map_address == MAP_FAILED))
- elf->map_address = NULL;
- }
-
- if (elf->map_address != NULL)
- {
- /* The file is mmaped. */
- if ((class == ELFCLASS32
- ? __elf32_updatemmap (elf, change_bo, shnum)
- : __elf64_updatemmap (elf, change_bo, shnum)) != 0)
- /* Some problem while writing. */
- size = -1;
- }
- else
- {
- /* The file is not mmaped. */
- if ((class == ELFCLASS32
- ? __elf32_updatefile (elf, change_bo, shnum)
- : __elf64_updatefile (elf, change_bo, shnum)) != 0)
- /* Some problem while writing. */
- size = -1;
- }
-
- if (size != -1
- && elf->parent == NULL
- && elf->maximum_size != ~((size_t) 0)
- && (size_t) size < elf->maximum_size
- && unlikely (ftruncate (elf->fildes, size) != 0))
- {
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- size = -1;
- }
-
- /* POSIX says that ftruncate and write may clear the S_ISUID and S_ISGID
- mode bits. So make sure we restore them afterwards if they were set.
- This is not atomic if someone else chmod's the file while we operate. */
- if (size != -1
- && unlikely (st.st_mode & (S_ISUID | S_ISGID))
- /* fchmod ignores the bits we cannot change. */
- && unlikely (fchmod (elf->fildes, st.st_mode) != 0))
- {
- __libelf_seterrno (ELF_E_WRITE_ERROR);
- size = -1;
- }
-
- if (size != -1 && elf->parent == NULL)
- elf->maximum_size = size;
-
- return size;
-}
-
-
-off_t
-elf_update (elf, cmd)
- Elf *elf;
- Elf_Cmd cmd;
-{
- size_t shnum;
- off_t size;
- int change_bo = 0;
-
- if (cmd != ELF_C_NULL
- && cmd != ELF_C_WRITE
- && unlikely (cmd != ELF_C_WRITE_MMAP))
- {
- __libelf_seterrno (ELF_E_INVALID_CMD);
- return -1;
- }
-
- if (elf == NULL)
- return -1;
-
- if (elf->kind != ELF_K_ELF)
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return -1;
- }
-
- rwlock_wrlock (elf->lock);
-
- /* Make sure we have an ELF header. */
- if (elf->state.elf.ehdr == NULL)
- {
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- size = -1;
- goto out;
- }
-
- /* Determine the number of sections. */
- shnum = (elf->state.elf.scns_last->cnt == 0
- ? 0
- : 1 + elf->state.elf.scns_last->data[elf->state.elf.scns_last->cnt - 1].index);
-
- /* Update the ELF descriptor. First, place the program header. It
- will come right after the ELF header. The count the size of all
- sections and finally place the section table. */
- size = (elf->class == ELFCLASS32
- ? __elf32_updatenull_wrlock (elf, &change_bo, shnum)
- : __elf64_updatenull_wrlock (elf, &change_bo, shnum));
- if (likely (size != -1)
- /* See whether we actually have to write out the data. */
- && (cmd == ELF_C_WRITE || cmd == ELF_C_WRITE_MMAP))
- {
- if (elf->cmd != ELF_C_RDWR
- && elf->cmd != ELF_C_RDWR_MMAP
- && elf->cmd != ELF_C_WRITE
- && unlikely (elf->cmd != ELF_C_WRITE_MMAP))
- {
- __libelf_seterrno (ELF_E_UPDATE_RO);
- size = -1;
- }
- else if (unlikely (elf->fildes == -1))
- {
- /* We closed the file already. */
- __libelf_seterrno (ELF_E_FD_DISABLED);
- size = -1;
- }
- else
- size = write_file (elf, size, change_bo, shnum);
- }
-
- out:
- rwlock_unlock (elf->lock);
-
- return size;
-}
diff --git a/src/libelf/elf_version.c b/src/libelf/elf_version.c
deleted file mode 100644
index dcb67580..00000000
--- a/src/libelf/elf_version.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/* Coordinate ELF library and application versions.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelfP.h>
-
-
-/* Is the version initialized? */
-int __libelf_version_initialized;
-
-/* Currently selected version. */
-unsigned int __libelf_version = EV_CURRENT;
-
-
-unsigned int
-elf_version (version)
- unsigned int version;
-{
- if (version == EV_NONE)
- return __libelf_version;
-
- if (likely (version < EV_NUM))
- {
- /* Phew, we know this version. */
- unsigned int last_version = __libelf_version;
-
- /* Store the new version. */
- __libelf_version = version;
-
- /* Signal that the version is now initialized. */
- __libelf_version_initialized = 1;
-
- /* And return the last version. */
- return last_version;
- }
-
- /* We cannot handle this version. */
- __libelf_seterrno (ELF_E_UNKNOWN_VERSION);
- return EV_NONE;
-}
-INTDEF(elf_version)
diff --git a/src/libelf/exttypes.h b/src/libelf/exttypes.h
deleted file mode 100644
index 8cb2aaec..00000000
--- a/src/libelf/exttypes.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/* External ELF types.
- Copyright (C) 1998-2010 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _EXTTYPES_H
-#define _EXTTYPES_H 1
-
-/* Integral types. */
-typedef char Elf32_Ext_Addr[ELF32_FSZ_ADDR];
-typedef char Elf32_Ext_Off[ELF32_FSZ_OFF];
-typedef char Elf32_Ext_Half[ELF32_FSZ_HALF];
-typedef char Elf32_Ext_Sword[ELF32_FSZ_SWORD];
-typedef char Elf32_Ext_Word[ELF32_FSZ_WORD];
-typedef char Elf32_Ext_Sxword[ELF32_FSZ_SXWORD];
-typedef char Elf32_Ext_Xword[ELF32_FSZ_XWORD];
-
-typedef char Elf64_Ext_Addr[ELF64_FSZ_ADDR];
-typedef char Elf64_Ext_Off[ELF64_FSZ_OFF];
-typedef char Elf64_Ext_Half[ELF64_FSZ_HALF];
-typedef char Elf64_Ext_Sword[ELF64_FSZ_SWORD];
-typedef char Elf64_Ext_Word[ELF64_FSZ_WORD];
-typedef char Elf64_Ext_Sxword[ELF64_FSZ_SXWORD];
-typedef char Elf64_Ext_Xword[ELF64_FSZ_XWORD];
-
-
-/* Define the composed types. */
-#define START(Bits, Name, EName) typedef struct {
-#define END(Bits, Name) } ElfW2(Bits, Name)
-#define TYPE_NAME(Type, Name) Type Name;
-#define TYPE_EXTRA(Text) Text
-#define TYPE_XLATE(Text)
-
-/* Get the abstract definitions. */
-#include "abstract.h"
-
-/* And define the types. */
-Ehdr32 (Ext_);
-Phdr32 (Ext_);
-Shdr32 (Ext_);
-Sym32 (Ext_);
-Rel32 (Ext_);
-Rela32 (Ext_);
-Note32 (Ext_);
-Dyn32 (Ext_);
-Verdef32 (Ext_);
-Verdaux32 (Ext_);
-Verneed32 (Ext_);
-Vernaux32 (Ext_);
-Syminfo32 (Ext_);
-Move32 (Ext_);
-Lib32 (Ext_);
-auxv_t32 (Ext_);
-
-Ehdr64 (Ext_);
-Phdr64 (Ext_);
-Shdr64 (Ext_);
-Sym64 (Ext_);
-Rel64 (Ext_);
-Rela64 (Ext_);
-Note64 (Ext_);
-Dyn64 (Ext_);
-Verdef64 (Ext_);
-Verdaux64 (Ext_);
-Verneed64 (Ext_);
-Vernaux64 (Ext_);
-Syminfo64 (Ext_);
-Move64 (Ext_);
-Lib64 (Ext_);
-auxv_t64 (Ext_);
-
-#undef START
-#undef END
-#undef TYPE_NAME
-#undef TYPE_EXTRA
-#undef TYPE_XLATE
-
-#endif /* exttypes.h */
diff --git a/src/libelf/gelf.h b/src/libelf/gelf.h
deleted file mode 100644
index e3f07404..00000000
--- a/src/libelf/gelf.h
+++ /dev/null
@@ -1,332 +0,0 @@
-/* This file defines generic ELF types, structures, and macros.
- Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005, 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _GELF_H
-#define _GELF_H 1
-
-#include <libelf.h>
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Class independent type definitions. Correctly speaking this is not
- true. We assume that 64-bit binaries are the largest class and
- therefore all other classes can be represented without loss. */
-
-/* Type for a 16-bit quantity. */
-typedef Elf64_Half GElf_Half;
-
-/* Types for signed and unsigned 32-bit quantities. */
-typedef Elf64_Word GElf_Word;
-typedef Elf64_Sword GElf_Sword;
-
-/* Types for signed and unsigned 64-bit quantities. */
-typedef Elf64_Xword GElf_Xword;
-typedef Elf64_Sxword GElf_Sxword;
-
-/* Type of addresses. */
-typedef Elf64_Addr GElf_Addr;
-
-/* Type of file offsets. */
-typedef Elf64_Off GElf_Off;
-
-
-/* The ELF file header. This appears at the start of every ELF file. */
-typedef Elf64_Ehdr GElf_Ehdr;
-
-/* Section header. */
-typedef Elf64_Shdr GElf_Shdr;
-
-/* Section index. */
-/* XXX This should probably be a larger type in preparation of times when
- regular section indices can be larger. */
-typedef Elf64_Section GElf_Section;
-
-/* Symbol table entry. */
-typedef Elf64_Sym GElf_Sym;
-
-/* The syminfo section if available contains additional information about
- every dynamic symbol. */
-typedef Elf64_Syminfo GElf_Syminfo;
-
-/* Relocation table entry without addend (in section of type SHT_REL). */
-typedef Elf64_Rel GElf_Rel;
-
-/* Relocation table entry with addend (in section of type SHT_RELA). */
-typedef Elf64_Rela GElf_Rela;
-
-/* Program segment header. */
-typedef Elf64_Phdr GElf_Phdr;
-
-/* Dynamic section entry. */
-typedef Elf64_Dyn GElf_Dyn;
-
-
-/* Version definition sections. */
-typedef Elf64_Verdef GElf_Verdef;
-
-/* Auxialiary version information. */
-typedef Elf64_Verdaux GElf_Verdaux;
-
-/* Version dependency section. */
-typedef Elf64_Verneed GElf_Verneed;
-
-/* Auxiliary needed version information. */
-typedef Elf64_Vernaux GElf_Vernaux;
-
-
-/* Type for version symbol information. */
-typedef Elf64_Versym GElf_Versym;
-
-
-/* Auxiliary vector. */
-typedef Elf64_auxv_t GElf_auxv_t;
-
-
-/* Note section contents. */
-typedef Elf64_Nhdr GElf_Nhdr;
-
-
-/* Move structure. */
-typedef Elf64_Move GElf_Move;
-
-
-/* Library list structure. */
-typedef Elf64_Lib GElf_Lib;
-
-
-/* How to extract and insert information held in the st_info field. */
-
-#define GELF_ST_BIND(val) ELF64_ST_BIND (val)
-#define GELF_ST_TYPE(val) ELF64_ST_TYPE (val)
-#define GELF_ST_INFO(bind, type) ELF64_ST_INFO (bind, type)
-
-/* How to extract information held in the st_other field. */
-
-#define GELF_ST_VISIBILITY(val) ELF64_ST_VISIBILITY (val)
-
-
-/* How to extract and insert information held in the r_info field. */
-
-#define GELF_R_SYM(info) ELF64_R_SYM (info)
-#define GELF_R_TYPE(info) ELF64_R_TYPE (info)
-#define GELF_R_INFO(sym, type) ELF64_R_INFO (sym, type)
-
-
-/* How to extract and insert information held in the m_info field. */
-#define GELF_M_SYM(info) ELF64_M_SYM (info)
-#define GELF_M_SIZE(info) ELF64_M_SIZE (info)
-#define GELF_M_INFO(sym, size) ELF64_M_INFO (sym, size)
-
-
-/* Get class of the file associated with ELF. */
-extern int gelf_getclass (Elf *__elf);
-
-
-/* Return size of array of COUNT elements of the type denoted by TYPE
- in the external representation. The binary class is taken from ELF.
- The result is based on version VERSION of the ELF standard. */
-extern size_t gelf_fsize (Elf *__elf, Elf_Type __type, size_t __count,
- unsigned int __version);
-
-/* Retrieve object file header. */
-extern GElf_Ehdr *gelf_getehdr (Elf *__elf, GElf_Ehdr *__dest);
-
-/* Update the ELF header. */
-extern int gelf_update_ehdr (Elf *__elf, GElf_Ehdr *__src);
-
-/* Create new ELF header if none exists. */
-extern unsigned long int gelf_newehdr (Elf *__elf, int __class);
-
-/* Get section at OFFSET. */
-extern Elf_Scn *gelf_offscn (Elf *__elf, GElf_Off __offset);
-
-/* Retrieve section header. */
-extern GElf_Shdr *gelf_getshdr (Elf_Scn *__scn, GElf_Shdr *__dst);
-
-/* Update section header. */
-extern int gelf_update_shdr (Elf_Scn *__scn, GElf_Shdr *__src);
-
-/* Retrieve program header table entry. */
-extern GElf_Phdr *gelf_getphdr (Elf *__elf, int __ndx, GElf_Phdr *__dst);
-
-/* Update the program header. */
-extern int gelf_update_phdr (Elf *__elf, int __ndx, GElf_Phdr *__src);
-
-/* Create new program header with PHNUM entries. */
-extern unsigned long int gelf_newphdr (Elf *__elf, size_t __phnum);
-
-
-/* Convert data structure from the representation in the file represented
- by ELF to their memory representation. */
-extern Elf_Data *gelf_xlatetom (Elf *__elf, Elf_Data *__dest,
- const Elf_Data *__src, unsigned int __encode);
-
-/* Convert data structure from to the representation in memory
- represented by ELF file representation. */
-extern Elf_Data *gelf_xlatetof (Elf *__elf, Elf_Data *__dest,
- const Elf_Data *__src, unsigned int __encode);
-
-
-/* Retrieve REL relocation info at the given index. */
-extern GElf_Rel *gelf_getrel (Elf_Data *__data, int __ndx, GElf_Rel *__dst);
-
-/* Retrieve RELA relocation info at the given index. */
-extern GElf_Rela *gelf_getrela (Elf_Data *__data, int __ndx, GElf_Rela *__dst);
-
-/* Update REL relocation information at given index. */
-extern int gelf_update_rel (Elf_Data *__dst, int __ndx, GElf_Rel *__src);
-
-/* Update RELA relocation information at given index. */
-extern int gelf_update_rela (Elf_Data *__dst, int __ndx, GElf_Rela *__src);
-
-
-/* Retrieve symbol information from the symbol table at the given index. */
-extern GElf_Sym *gelf_getsym (Elf_Data *__data, int __ndx, GElf_Sym *__dst);
-
-/* Update symbol information in the symbol table at the given index. */
-extern int gelf_update_sym (Elf_Data *__data, int __ndx, GElf_Sym *__src);
-
-
-/* Retrieve symbol information and separate section index from the
- symbol table at the given index. */
-extern GElf_Sym *gelf_getsymshndx (Elf_Data *__symdata, Elf_Data *__shndxdata,
- int __ndx, GElf_Sym *__sym,
- Elf32_Word *__xshndx);
-
-/* Update symbol information and separate section index in the symbol
- table at the given index. */
-extern int gelf_update_symshndx (Elf_Data *__symdata, Elf_Data *__shndxdata,
- int __ndx, GElf_Sym *__sym,
- Elf32_Word __xshndx);
-
-
-/* Retrieve additional symbol information from the symbol table at the
- given index. */
-extern GElf_Syminfo *gelf_getsyminfo (Elf_Data *__data, int __ndx,
- GElf_Syminfo *__dst);
-
-/* Update additional symbol information in the symbol table at the
- given index. */
-extern int gelf_update_syminfo (Elf_Data *__data, int __ndx,
- GElf_Syminfo *__src);
-
-
-/* Get information from dynamic table at the given index. */
-extern GElf_Dyn *gelf_getdyn (Elf_Data *__data, int __ndx, GElf_Dyn *__dst);
-
-/* Update information in dynamic table at the given index. */
-extern int gelf_update_dyn (Elf_Data *__dst, int __ndx, GElf_Dyn *__src);
-
-
-/* Get move structure at the given index. */
-extern GElf_Move *gelf_getmove (Elf_Data *__data, int __ndx, GElf_Move *__dst);
-
-/* Update move structure at the given index. */
-extern int gelf_update_move (Elf_Data *__data, int __ndx,
- GElf_Move *__src);
-
-
-/* Get library from table at the given index. */
-extern GElf_Lib *gelf_getlib (Elf_Data *__data, int __ndx, GElf_Lib *__dst);
-
-/* Update library in table at the given index. */
-extern int gelf_update_lib (Elf_Data *__data, int __ndx, GElf_Lib *__src);
-
-
-
-/* Retrieve symbol version information at given index. */
-extern GElf_Versym *gelf_getversym (Elf_Data *__data, int __ndx,
- GElf_Versym *__dst);
-
-/* Update symbol version information. */
-extern int gelf_update_versym (Elf_Data *__data, int __ndx,
- GElf_Versym *__src);
-
-
-/* Retrieve required symbol version information at given offset. */
-extern GElf_Verneed *gelf_getverneed (Elf_Data *__data, int __offset,
- GElf_Verneed *__dst);
-
-/* Update required symbol version information. */
-extern int gelf_update_verneed (Elf_Data *__data, int __offset,
- GElf_Verneed *__src);
-
-/* Retrieve additional required symbol version information at given offset. */
-extern GElf_Vernaux *gelf_getvernaux (Elf_Data *__data, int __offset,
- GElf_Vernaux *__dst);
-
-/* Update additional required symbol version information. */
-extern int gelf_update_vernaux (Elf_Data *__data, int __offset,
- GElf_Vernaux *__src);
-
-
-/* Retrieve symbol version definition information at given offset. */
-extern GElf_Verdef *gelf_getverdef (Elf_Data *__data, int __offset,
- GElf_Verdef *__dst);
-
-/* Update symbol version definition information. */
-extern int gelf_update_verdef (Elf_Data *__data, int __offset,
- GElf_Verdef *__src);
-
-/* Retrieve additional symbol version definition information at given
- offset. */
-extern GElf_Verdaux *gelf_getverdaux (Elf_Data *__data, int __offset,
- GElf_Verdaux *__dst);
-
-/* Update additional symbol version definition information. */
-extern int gelf_update_verdaux (Elf_Data *__data, int __offset,
- GElf_Verdaux *__src);
-
-
-/* Get auxv entry at the given index. */
-extern GElf_auxv_t *gelf_getauxv (Elf_Data *__data, int __ndx,
- GElf_auxv_t *__dst);
-
-/* Update auxv entry at the given index. */
-extern int gelf_update_auxv (Elf_Data *__data, int __ndx, GElf_auxv_t *__src);
-
-
-/* Get note header at the given offset into the data, and the offsets of
- the note's name and descriptor data. Returns the offset of the next
- note header, or 0 for an invalid offset or corrupt note header. */
-extern size_t gelf_getnote (Elf_Data *__data, size_t __offset,
- GElf_Nhdr *__result,
- size_t *__name_offset, size_t *__desc_offset);
-
-
-/* Compute simple checksum from permanent parts of the ELF file. */
-extern long int gelf_checksum (Elf *__elf);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* gelf.h */
diff --git a/src/libelf/gelf_checksum.c b/src/libelf/gelf_checksum.c
deleted file mode 100644
index 49067829..00000000
--- a/src/libelf/gelf_checksum.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Convert from file to memory representation. Generic ELF version.
- Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-long int
-gelf_checksum (elf)
- Elf *elf;
-{
- if (elf == NULL)
- return -1l;
-
- return (elf->class == ELFCLASS32
- ? INTUSE(elf32_checksum) (elf) : INTUSE(elf64_checksum) (elf));
-}
diff --git a/src/libelf/gelf_fsize.c b/src/libelf/gelf_fsize.c
deleted file mode 100644
index a9d2288d..00000000
--- a/src/libelf/gelf_fsize.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* Return the size of an object file type.
- Copyright (C) 1998-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-/* These are the sizes for all the known types. */
-const size_t __libelf_type_sizes[EV_NUM - 1][ELFCLASSNUM - 1][ELF_T_NUM] =
-{
- /* We have no entry for EV_NONE since we have to set an error. */
- [EV_CURRENT - 1] = {
- [ELFCLASS32 - 1] = {
-#define TYPE_SIZES(LIBELFBITS) \
- [ELF_T_ADDR] = ELFW2(LIBELFBITS, FSZ_ADDR), \
- [ELF_T_OFF] = ELFW2(LIBELFBITS, FSZ_OFF), \
- [ELF_T_BYTE] = 1, \
- [ELF_T_HALF] = ELFW2(LIBELFBITS, FSZ_HALF), \
- [ELF_T_WORD] = ELFW2(LIBELFBITS, FSZ_WORD), \
- [ELF_T_SWORD] = ELFW2(LIBELFBITS, FSZ_SWORD), \
- [ELF_T_XWORD] = ELFW2(LIBELFBITS, FSZ_XWORD), \
- [ELF_T_SXWORD] = ELFW2(LIBELFBITS, FSZ_SXWORD), \
- [ELF_T_EHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Ehdr)), \
- [ELF_T_SHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Shdr)), \
- [ELF_T_SYM] = sizeof (ElfW2(LIBELFBITS, Ext_Sym)), \
- [ELF_T_REL] = sizeof (ElfW2(LIBELFBITS, Ext_Rel)), \
- [ELF_T_RELA] = sizeof (ElfW2(LIBELFBITS, Ext_Rela)), \
- [ELF_T_PHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Phdr)), \
- [ELF_T_DYN] = sizeof (ElfW2(LIBELFBITS, Ext_Dyn)), \
- [ELF_T_VDEF] = sizeof (ElfW2(LIBELFBITS, Ext_Verdef)), \
- [ELF_T_VDAUX] = sizeof (ElfW2(LIBELFBITS, Ext_Verdaux)), \
- [ELF_T_VNEED] = sizeof (ElfW2(LIBELFBITS, Ext_Verneed)), \
- [ELF_T_VNAUX] = sizeof (ElfW2(LIBELFBITS, Ext_Vernaux)), \
- [ELF_T_NHDR] = sizeof (ElfW2(LIBELFBITS, Ext_Nhdr)), \
- [ELF_T_SYMINFO] = sizeof (ElfW2(LIBELFBITS, Ext_Syminfo)), \
- [ELF_T_MOVE] = sizeof (ElfW2(LIBELFBITS, Ext_Move)), \
- [ELF_T_LIB] = sizeof (ElfW2(LIBELFBITS, Ext_Lib)), \
- [ELF_T_AUXV] = sizeof (ElfW2(LIBELFBITS, Ext_auxv_t)), \
- [ELF_T_GNUHASH] = ELFW2(LIBELFBITS, FSZ_WORD)
- TYPE_SIZES (32)
- },
- [ELFCLASS64 - 1] = {
- TYPE_SIZES (64)
- }
- }
-};
-
-
-size_t
-gelf_fsize (elf, type, count, version)
- Elf *elf;
- Elf_Type type;
- size_t count;
- unsigned int version;
-{
- /* We do not have differences between file and memory sizes. Better
- not since otherwise `mmap' would not work. */
- if (elf == NULL)
- return 0;
-
- if (version == EV_NONE || version >= EV_NUM)
- {
- __libelf_seterrno (ELF_E_UNKNOWN_VERSION);
- return 0;
- }
-
- if (type >= ELF_T_NUM)
- {
- __libelf_seterrno (ELF_E_UNKNOWN_TYPE);
- return 0;
- }
-
-#if EV_NUM != 2
- return count * __libelf_type_sizes[version - 1][elf->class - 1][type];
-#else
- return count * __libelf_type_sizes[0][elf->class - 1][type];
-#endif
-}
-INTDEF(gelf_fsize)
diff --git a/src/libelf/gelf_getauxv.c b/src/libelf/gelf_getauxv.c
deleted file mode 100644
index a2f04e7f..00000000
--- a/src/libelf/gelf_getauxv.c
+++ /dev/null
@@ -1,110 +0,0 @@
-/* Get information from auxiliary vector at the given index.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_auxv_t *
-gelf_getauxv (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_auxv_t *dst;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- GElf_auxv_t *result = NULL;
- Elf *elf;
-
- if (data_scn == NULL)
- return NULL;
-
- if (unlikely (data_scn->d.d_type != ELF_T_AUXV))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- elf = data_scn->s->elf;
-
- rwlock_rdlock (elf->lock);
-
- /* This is the one place where we have to take advantage of the fact
- that an `Elf_Data' pointer is also a pointer to `Elf_Data_Scn'.
- The interface is broken so that it requires this hack. */
- if (elf->class == ELFCLASS32)
- {
- Elf32_auxv_t *src;
-
- /* Here it gets a bit more complicated. The format of the vector
- entries has to be converted. The user better have provided a
- buffer where we can store the information. While copying the data
- we convert the format. */
- if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- src = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx];
-
- /* This might look like a simple copy operation but it's
- not. There are zero- and sign-extensions going on. */
- dst->a_type = src->a_type;
- dst->a_un.a_val = src->a_un.a_val;
- }
- else
- {
- /* If this is a 64 bit object it's easy. */
- assert (sizeof (GElf_auxv_t) == sizeof (Elf64_auxv_t));
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (unlikely ((ndx + 1) * sizeof (GElf_auxv_t) > data_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- memcpy (dst, data_scn->d.d_buf + ndx * sizeof (GElf_auxv_t),
- sizeof (GElf_auxv_t));
- }
-
- result = dst;
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getclass.c b/src/libelf/gelf_getclass.c
deleted file mode 100644
index 53759dc3..00000000
--- a/src/libelf/gelf_getclass.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Return the class of file associated with the descriptor.
- Copyright (C) 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_getclass (elf)
- Elf *elf;
-{
- return elf == NULL || elf->kind != ELF_K_ELF ? ELFCLASSNONE : elf->class;
-}
diff --git a/src/libelf/gelf_getdyn.c b/src/libelf/gelf_getdyn.c
deleted file mode 100644
index c366fd5d..00000000
--- a/src/libelf/gelf_getdyn.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* Get information from dynamic table at the given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Dyn *
-gelf_getdyn (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_Dyn *dst;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- GElf_Dyn *result = NULL;
- Elf *elf;
-
- if (data_scn == NULL)
- return NULL;
-
- if (unlikely (data_scn->d.d_type != ELF_T_DYN))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- elf = data_scn->s->elf;
-
- rwlock_rdlock (elf->lock);
-
- /* This is the one place where we have to take advantage of the fact
- that an `Elf_Data' pointer is also a pointer to `Elf_Data_Scn'.
- The interface is broken so that it requires this hack. */
- if (elf->class == ELFCLASS32)
- {
- Elf32_Dyn *src;
-
- /* Here it gets a bit more complicated. The format of the symbol
- table entries has to be adopted. The user better has provided
- a buffer where we can store the information. While copying the
- data we are converting the format. */
- if (INVALID_NDX (ndx, Elf32_Dyn, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- src = &((Elf32_Dyn *) data_scn->d.d_buf)[ndx];
-
- /* This might look like a simple copy operation but it's
- not. There are zero- and sign-extensions going on. */
- dst->d_tag = src->d_tag;
- /* It OK to copy `d_val' since `d_ptr' has the same size. */
- dst->d_un.d_val = src->d_un.d_val;
- }
- else
- {
- /* If this is a 64 bit object it's easy. */
- assert (sizeof (GElf_Dyn) == sizeof (Elf64_Dyn));
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (INVALID_NDX (ndx, GElf_Dyn, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- *dst = ((GElf_Dyn *) data_scn->d.d_buf)[ndx];
- }
-
- result = dst;
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getehdr.c b/src/libelf/gelf_getehdr.c
deleted file mode 100644
index ea83fc04..00000000
--- a/src/libelf/gelf_getehdr.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* Get ELF header.
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Ehdr *
-__gelf_getehdr_rdlock (elf, dest)
- Elf *elf;
- GElf_Ehdr *dest;
-{
- GElf_Ehdr *result = NULL;
-
- if (elf == NULL)
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* The following is an optimization: the ehdr element is at the same
- position in both the elf32 and elf64 structure. */
- if (offsetof (struct Elf, state.elf32.ehdr)
- != offsetof (struct Elf, state.elf64.ehdr))
- abort ();
- /* Just pick one of the values. */
- if (unlikely (elf->state.elf64.ehdr == NULL))
- /* Maybe no ELF header was created yet. */
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- else if (elf->class == ELFCLASS32)
- {
- Elf32_Ehdr *ehdr = elf->state.elf32.ehdr;
-
- /* Convert the 32-bit struct to an 64-bit one. */
- memcpy (dest->e_ident, ehdr->e_ident, EI_NIDENT);
-#define COPY(name) \
- dest->name = ehdr->name
- COPY (e_type);
- COPY (e_machine);
- COPY (e_version);
- COPY (e_entry);
- COPY (e_phoff);
- COPY (e_shoff);
- COPY (e_flags);
- COPY (e_ehsize);
- COPY (e_phentsize);
- COPY (e_phnum);
- COPY (e_shentsize);
- COPY (e_shnum);
- COPY (e_shstrndx);
-
- result = dest;
- }
- else
- result = memcpy (dest, elf->state.elf64.ehdr, sizeof (*dest));
-
- return result;
-}
-
-GElf_Ehdr *
-gelf_getehdr (elf, dest)
- Elf *elf;
- GElf_Ehdr *dest;
-{
- GElf_Ehdr *result;
- if (elf == NULL)
- return NULL;
-
- rwlock_rdlock (elf->lock);
- result = __gelf_getehdr_rdlock (elf, dest);
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getlib.c b/src/libelf/gelf_getlib.c
deleted file mode 100644
index 880817e6..00000000
--- a/src/libelf/gelf_getlib.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Get library from table at the given index.
- Copyright (C) 2004, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Lib *
-gelf_getlib (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_Lib *dst;
-{
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_LIB))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
-
- rwlock_rdlock (data_scn->s->elf->lock);
-
- /* The on disk format of Elf32_Lib and Elf64_Lib is identical. So
- we can simplify things significantly. */
- assert (sizeof (GElf_Lib) == sizeof (Elf32_Lib));
- assert (sizeof (GElf_Lib) == sizeof (Elf64_Lib));
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- GElf_Lib *result = NULL;
- if (INVALID_NDX (ndx, GElf_Lib, data))
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- else
- {
- *dst = ((GElf_Lib *) data->d_buf)[ndx];
-
- result = dst;
- }
-
- rwlock_unlock (data_scn->s->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getmove.c b/src/libelf/gelf_getmove.c
deleted file mode 100644
index b81d61f4..00000000
--- a/src/libelf/gelf_getmove.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* Get move structure at the given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-GElf_Move *
-gelf_getmove (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_Move *dst;
-{
- GElf_Move *result = NULL;
- Elf *elf;
-
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_MOVE))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Move) == sizeof (Elf32_Move));
- assert (sizeof (GElf_Move) == sizeof (Elf64_Move));
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (INVALID_NDX (ndx, GElf_Move, data))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- elf = ((Elf_Data_Scn *) data)->s->elf;
- rwlock_rdlock (elf->lock);
-
- *dst = ((GElf_Move *) data->d_buf)[ndx];
-
- rwlock_unlock (elf->lock);
-
- result = dst;
-
- out:
- return result;
-}
diff --git a/src/libelf/gelf_getnote.c b/src/libelf/gelf_getnote.c
deleted file mode 100644
index 7dc82156..00000000
--- a/src/libelf/gelf_getnote.c
+++ /dev/null
@@ -1,104 +0,0 @@
-/* Get note information at the supplied offset.
- Copyright (C) 2007, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-size_t
-gelf_getnote (data, offset, result, name_offset, desc_offset)
- Elf_Data *data;
- size_t offset;
- GElf_Nhdr *result;
- size_t *name_offset;
- size_t *desc_offset;
-{
- if (data == NULL)
- return 0;
-
- if (unlikely (data->d_type != ELF_T_NHDR))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- /* It's easy to handle this type. It has the same size for 32 and
- 64 bit objects. */
- assert (sizeof (GElf_Nhdr) == sizeof (Elf32_Nhdr));
- assert (sizeof (GElf_Nhdr) == sizeof (Elf64_Nhdr));
-
- rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- /* The data is already in the correct form. Just make sure the
- offset is OK. */
- if (unlikely (offset > data->d_size
- || data->d_size - offset < sizeof (GElf_Nhdr)))
- {
- __libelf_seterrno (ELF_E_OFFSET_RANGE);
- offset = 0;
- }
- else
- {
- const GElf_Nhdr *n = data->d_buf + offset;
- offset += sizeof *n;
-
- /* Include padding. Check below for overflow. */
- GElf_Word namesz = NOTE_ALIGN (n->n_namesz);
- GElf_Word descsz = NOTE_ALIGN (n->n_descsz);
-
- if (unlikely (offset > data->d_size
- || data->d_size - offset < namesz
- || (namesz == 0 && n->n_namesz != 0)))
- offset = 0;
- else
- {
- *name_offset = offset;
- offset += namesz;
- if (unlikely (offset > data->d_size
- || data->d_size - offset < descsz
- || (descsz == 0 && n->n_descsz != 0)))
- offset = 0;
- else
- {
- *desc_offset = offset;
- offset += descsz;
- *result = *n;
- }
- }
- }
-
- rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- return offset;
-}
diff --git a/src/libelf/gelf_getphdr.c b/src/libelf/gelf_getphdr.c
deleted file mode 100644
index 3bf7123f..00000000
--- a/src/libelf/gelf_getphdr.c
+++ /dev/null
@@ -1,142 +0,0 @@
-/* Return program header table entry.
- Copyright (C) 1998-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-#include <stdbool.h>
-
-#include "libelfP.h"
-
-
-GElf_Phdr *
-gelf_getphdr (elf, ndx, dst)
- Elf *elf;
- int ndx;
- GElf_Phdr *dst;
-{
- GElf_Phdr *result = NULL;
-
- if (elf == NULL)
- return NULL;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- if (dst == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OPERAND);
- return NULL;
- }
-
- rwlock_rdlock (elf->lock);
-
- if (elf->class == ELFCLASS32)
- {
- /* Copy the elements one-by-one. */
- Elf32_Phdr *phdr = elf->state.elf32.phdr;
-
- if (phdr == NULL)
- {
- rwlock_unlock (elf->lock);
- phdr = INTUSE(elf32_getphdr) (elf);
- if (phdr == NULL)
- /* The error number is already set. */
- return NULL;
- rwlock_rdlock (elf->lock);
- }
-
- /* Test whether the index is ok. */
- size_t phnum;
- if (ndx >= elf->state.elf32.ehdr->e_phnum
- && (elf->state.elf32.ehdr->e_phnum != PN_XNUM
- || __elf_getphdrnum_rdlock (elf, &phnum) != 0
- || (size_t) ndx >= phnum))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- /* We know the result now. */
- result = dst;
-
- /* Now correct the pointer to point to the correct element. */
- phdr += ndx;
-
-#define COPY(Name) result->Name = phdr->Name
- COPY (p_type);
- COPY (p_offset);
- COPY (p_vaddr);
- COPY (p_paddr);
- COPY (p_filesz);
- COPY (p_memsz);
- COPY (p_flags);
- COPY (p_align);
- }
- else
- {
- /* Copy the elements one-by-one. */
- Elf64_Phdr *phdr = elf->state.elf64.phdr;
-
- if (phdr == NULL)
- {
- rwlock_unlock (elf->lock);
- phdr = INTUSE(elf64_getphdr) (elf);
- if (phdr == NULL)
- /* The error number is already set. */
- return NULL;
- rwlock_rdlock (elf->lock);
- }
-
- /* Test whether the index is ok. */
- size_t phnum;
- if (ndx >= elf->state.elf64.ehdr->e_phnum
- && (elf->state.elf64.ehdr->e_phnum != PN_XNUM
- || __elf_getphdrnum_rdlock (elf, &phnum) != 0
- || (size_t) ndx >= phnum))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- /* We only have to copy the data. */
- result = memcpy (dst, phdr + ndx, sizeof (GElf_Phdr));
- }
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getrel.c b/src/libelf/gelf_getrel.c
deleted file mode 100644
index 1f786ff5..00000000
--- a/src/libelf/gelf_getrel.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/* Get REL relocation information at given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Rel *
-gelf_getrel (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_Rel *dst;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- Elf_Scn *scn;
- GElf_Rel *result;
-
- if (data_scn == NULL)
- return NULL;
-
- if (unlikely (data_scn->d.d_type != ELF_T_REL))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* This is the one place where we have to take advantage of the fact
- that an `Elf_Data' pointer is also a pointer to `Elf_Data_Scn'.
- The interface is broken so that it requires this hack. */
- scn = data_scn->s;
-
- rwlock_rdlock (scn->elf->lock);
-
- if (scn->elf->class == ELFCLASS32)
- {
- /* We have to convert the data. */
- if (INVALID_NDX (ndx, Elf32_Rel, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- result = NULL;
- }
- else
- {
- Elf32_Rel *src = &((Elf32_Rel *) data_scn->d.d_buf)[ndx];
-
- dst->r_offset = src->r_offset;
- dst->r_info = GELF_R_INFO (ELF32_R_SYM (src->r_info),
- ELF32_R_TYPE (src->r_info));
-
- result = dst;
- }
- }
- else
- {
- /* Simply copy the data after we made sure we are actually getting
- correct data. */
- if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- result = NULL;
- }
- else
- result = memcpy (dst, &((Elf64_Rel *) data_scn->d.d_buf)[ndx],
- sizeof (Elf64_Rel));
- }
-
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getrela.c b/src/libelf/gelf_getrela.c
deleted file mode 100644
index cead7eee..00000000
--- a/src/libelf/gelf_getrela.c
+++ /dev/null
@@ -1,103 +0,0 @@
-/* Get RELA relocation information at given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Rela *
-gelf_getrela (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_Rela *dst;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- Elf_Scn *scn;
- GElf_Rela *result;
-
- if (data_scn == NULL)
- return NULL;
-
- if (unlikely (data_scn->d.d_type != ELF_T_RELA))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* This is the one place where we have to take advantage of the fact
- that an `Elf_Data' pointer is also a pointer to `Elf_Data_Scn'.
- The interface is broken so that it requires this hack. */
- scn = data_scn->s;
-
- rwlock_rdlock (scn->elf->lock);
-
- if (scn->elf->class == ELFCLASS32)
- {
- /* We have to convert the data. */
- if (INVALID_NDX (ndx, Elf32_Rela, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- result = NULL;
- }
- else
- {
- Elf32_Rela *src = &((Elf32_Rela *) data_scn->d.d_buf)[ndx];
-
- dst->r_offset = src->r_offset;
- dst->r_info = GELF_R_INFO (ELF32_R_SYM (src->r_info),
- ELF32_R_TYPE (src->r_info));
- dst->r_addend = src->r_addend;
-
- result = dst;
- }
- }
- else
- {
- /* Simply copy the data after we made sure we are actually getting
- correct data. */
- if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- result = NULL;
- }
- else
- result = memcpy (dst, &((Elf64_Rela *) data_scn->d.d_buf)[ndx],
- sizeof (Elf64_Rela));
- }
-
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getshdr.c b/src/libelf/gelf_getshdr.c
deleted file mode 100644
index 4a48cb6c..00000000
--- a/src/libelf/gelf_getshdr.c
+++ /dev/null
@@ -1,105 +0,0 @@
-/* Return section header.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Shdr *
-gelf_getshdr (scn, dst)
- Elf_Scn *scn;
- GElf_Shdr *dst;
-{
- GElf_Shdr *result = NULL;
-
- if (scn == NULL)
- return NULL;
-
- if (dst == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OPERAND);
- return NULL;
- }
-
- rwlock_rdlock (scn->elf->lock);
-
- if (scn->elf->class == ELFCLASS32)
- {
- /* Copy the elements one-by-one. */
- Elf32_Shdr *shdr
- = scn->shdr.e32 ?: __elf32_getshdr_rdlock (scn);
-
- if (shdr == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OPERAND);
- goto out;
- }
-
-#define COPY(name) \
- dst->name = shdr->name
- COPY (sh_name);
- COPY (sh_type);
- COPY (sh_flags);
- COPY (sh_addr);
- COPY (sh_offset);
- COPY (sh_size);
- COPY (sh_link);
- COPY (sh_info);
- COPY (sh_addralign);
- COPY (sh_entsize);
-
- result = dst;
- }
- else
- {
- Elf64_Shdr *shdr
- = scn->shdr.e64 ?: __elf64_getshdr_rdlock (scn);
-
- if (shdr == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OPERAND);
- goto out;
- }
-
- /* We only have to copy the data. */
- result = memcpy (dst, shdr, sizeof (GElf_Shdr));
- }
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
-INTDEF(gelf_getshdr)
diff --git a/src/libelf/gelf_getsym.c b/src/libelf/gelf_getsym.c
deleted file mode 100644
index a141c2d5..00000000
--- a/src/libelf/gelf_getsym.c
+++ /dev/null
@@ -1,117 +0,0 @@
-/* Get symbol information from symbol table at the given index.
- Copyright (C) 1999, 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Sym *
-gelf_getsym (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_Sym *dst;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- GElf_Sym *result = NULL;
-
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_SYM))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- rwlock_rdlock (data_scn->s->elf->lock);
-
- /* This is the one place where we have to take advantage of the fact
- that an `Elf_Data' pointer is also a pointer to `Elf_Data_Scn'.
- The interface is broken so that it requires this hack. */
- if (data_scn->s->elf->class == ELFCLASS32)
- {
- Elf32_Sym *src;
-
- /* Here it gets a bit more complicated. The format of the symbol
- table entries has to be adopted. The user better has provided
- a buffer where we can store the information. While copying the
- data we are converting the format. */
- if (INVALID_NDX (ndx, Elf32_Sym, data))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- src = &((Elf32_Sym *) data->d_buf)[ndx];
-
- /* This might look like a simple copy operation but it's
- not. There are zero- and sign-extensions going on. */
-#define COPY(name) \
- dst->name = src->name
- COPY (st_name);
- /* Please note that we can simply copy the `st_info' element since
- the definitions of ELFxx_ST_BIND and ELFxx_ST_TYPE are the same
- for the 64 bit variant. */
- COPY (st_info);
- COPY (st_other);
- COPY (st_shndx);
- COPY (st_value);
- COPY (st_size);
- }
- else
- {
- /* If this is a 64 bit object it's easy. */
- assert (sizeof (GElf_Sym) == sizeof (Elf64_Sym));
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (INVALID_NDX (ndx, GElf_Sym, data))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- *dst = ((GElf_Sym *) data->d_buf)[ndx];
- }
-
- result = dst;
-
- out:
- rwlock_unlock (data_scn->s->elf->lock);
-
- return result;
-}
-INTDEF(gelf_getsym)
diff --git a/src/libelf/gelf_getsyminfo.c b/src/libelf/gelf_getsyminfo.c
deleted file mode 100644
index 8d7da7f2..00000000
--- a/src/libelf/gelf_getsyminfo.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Get additional symbol information from symbol table at the given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Syminfo *
-gelf_getsyminfo (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_Syminfo *dst;
-{
- GElf_Syminfo *result = NULL;
-
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_SYMINFO))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Syminfo) == sizeof (Elf32_Syminfo));
- assert (sizeof (GElf_Syminfo) == sizeof (Elf64_Syminfo));
-
- rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (INVALID_NDX (ndx, GElf_Syminfo, data))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- *dst = ((GElf_Syminfo *) data->d_buf)[ndx];
-
- result = dst;
-
- out:
- rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getsymshndx.c b/src/libelf/gelf_getsymshndx.c
deleted file mode 100644
index c19e8761..00000000
--- a/src/libelf/gelf_getsymshndx.c
+++ /dev/null
@@ -1,140 +0,0 @@
-/* Get symbol information and separate section index from symbol table
- at the given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Sym *
-gelf_getsymshndx (symdata, shndxdata, ndx, dst, dstshndx)
- Elf_Data *symdata;
- Elf_Data *shndxdata;
- int ndx;
- GElf_Sym *dst;
- Elf32_Word *dstshndx;
-{
- Elf_Data_Scn *symdata_scn = (Elf_Data_Scn *) symdata;
- Elf_Data_Scn *shndxdata_scn = (Elf_Data_Scn *) shndxdata;
- GElf_Sym *result = NULL;
- Elf32_Word shndx = 0;
-
- if (symdata == NULL)
- return NULL;
-
- if (unlikely (symdata->d_type != ELF_T_SYM)
- || (likely (shndxdata_scn != NULL)
- && unlikely (shndxdata->d_type != ELF_T_WORD)))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- rwlock_rdlock (symdata_scn->s->elf->lock);
-
- /* The user is not required to pass a data descriptor for an extended
- section index table. */
- if (likely (shndxdata_scn != NULL))
- {
- if (INVALID_NDX (ndx, Elf32_Word, &shndxdata_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- shndx = ((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx];
- }
-
- /* This is the one place where we have to take advantage of the fact
- that an `Elf_Data' pointer is also a pointer to `Elf_Data_Scn'.
- The interface is broken so that it requires this hack. */
- if (symdata_scn->s->elf->class == ELFCLASS32)
- {
- Elf32_Sym *src;
-
- /* Here it gets a bit more complicated. The format of the symbol
- table entries has to be adopted. The user better has provided
- a buffer where we can store the information. While copying the
- data we are converting the format. */
- if (INVALID_NDX (ndx, Elf32_Sym, symdata))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- src = &((Elf32_Sym *) symdata->d_buf)[ndx];
-
- /* This might look like a simple copy operation but it's
- not. There are zero- and sign-extensions going on. */
-#define COPY(name) \
- dst->name = src->name
- COPY (st_name);
- /* Please note that we can simply copy the `st_info' element since
- the definitions of ELFxx_ST_BIND and ELFxx_ST_TYPE are the same
- for the 64 bit variant. */
- COPY (st_info);
- COPY (st_other);
- COPY (st_shndx);
- COPY (st_value);
- COPY (st_size);
- }
- else
- {
- /* If this is a 64 bit object it's easy. */
- assert (sizeof (GElf_Sym) == sizeof (Elf64_Sym));
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (INVALID_NDX (ndx, GElf_Sym, symdata))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- *dst = ((GElf_Sym *) symdata->d_buf)[ndx];
- }
-
- /* Now we can store the section index. */
- if (dstshndx != NULL)
- *dstshndx = shndx;
-
- result = dst;
-
- out:
- rwlock_unlock (symdata_scn->s->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getverdaux.c b/src/libelf/gelf_getverdaux.c
deleted file mode 100644
index d125d9ea..00000000
--- a/src/libelf/gelf_getverdaux.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* Get additional symbol version definition information at the given offset.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Verdaux *
-gelf_getverdaux (data, offset, dst)
- Elf_Data *data;
- int offset;
- GElf_Verdaux *dst;
-{
- GElf_Verdaux *result;
-
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_VDEF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* It's easy to handle this type. It has the same size for 32 and
- 64 bit objects. */
- assert (sizeof (GElf_Verdaux) == sizeof (Elf32_Verdaux));
- assert (sizeof (GElf_Verdaux) == sizeof (Elf64_Verdaux));
-
- rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (unlikely (offset < 0)
- || unlikely (offset + sizeof (GElf_Verdaux) > data->d_size)
- || unlikely (offset % __alignof__ (GElf_Verdaux) != 0))
- {
- __libelf_seterrno (ELF_E_OFFSET_RANGE);
- result = NULL;
- }
- else
- result = (GElf_Verdaux *) memcpy (dst, (char *) data->d_buf + offset,
- sizeof (GElf_Verdaux));
-
-
- rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getverdef.c b/src/libelf/gelf_getverdef.c
deleted file mode 100644
index 59a32142..00000000
--- a/src/libelf/gelf_getverdef.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Get symbol version definition information at the given offset.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Verdef *
-gelf_getverdef (data, offset, dst)
- Elf_Data *data;
- int offset;
- GElf_Verdef *dst;
-{
- GElf_Verdef *result;
-
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_VDEF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* It's easy to handle this type. It has the same size for 32 and
- 64 bit objects. */
- assert (sizeof (GElf_Verdef) == sizeof (Elf32_Verdef));
- assert (sizeof (GElf_Verdef) == sizeof (Elf64_Verdef));
-
- rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (unlikely (offset < 0)
- || unlikely (offset + sizeof (GElf_Verdef) > data->d_size)
- || unlikely (offset % __alignof__ (GElf_Verdef) != 0))
- {
- __libelf_seterrno (ELF_E_OFFSET_RANGE);
- result = NULL;
- }
- else
- result = (GElf_Verdef *) memcpy (dst, (char *) data->d_buf + offset,
- sizeof (GElf_Verdef));
-
- rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getvernaux.c b/src/libelf/gelf_getvernaux.c
deleted file mode 100644
index 8ebf56ab..00000000
--- a/src/libelf/gelf_getvernaux.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Get additional required symbol version information at the given offset.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Vernaux *
-gelf_getvernaux (data, offset, dst)
- Elf_Data *data;
- int offset;
- GElf_Vernaux *dst;
-{
- GElf_Vernaux *result;
-
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_VNEED))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* It's easy to handle this type. It has the same size for 32 and
- 64 bit objects. And fortunately the `ElfXXX_Vernaux' records
- also have the same size. */
- assert (sizeof (GElf_Vernaux) == sizeof (Elf32_Verneed));
- assert (sizeof (GElf_Vernaux) == sizeof (Elf64_Verneed));
- assert (sizeof (GElf_Vernaux) == sizeof (Elf32_Vernaux));
- assert (sizeof (GElf_Vernaux) == sizeof (Elf64_Vernaux));
-
- rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (unlikely (offset < 0)
- || unlikely (offset + sizeof (GElf_Vernaux) > data->d_size)
- || unlikely (offset % sizeof (GElf_Vernaux) != 0))
- {
- __libelf_seterrno (ELF_E_OFFSET_RANGE);
- result = NULL;
- }
- else
- result = (GElf_Vernaux *) memcpy (dst, (char *) data->d_buf + offset,
- sizeof (GElf_Verneed));
-
- rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getverneed.c b/src/libelf/gelf_getverneed.c
deleted file mode 100644
index 95fd11fb..00000000
--- a/src/libelf/gelf_getverneed.c
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Get required symbol version information at the given offset.
- Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Verneed *
-gelf_getverneed (data, offset, dst)
- Elf_Data *data;
- int offset;
- GElf_Verneed *dst;
-{
- GElf_Verneed *result;
-
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_VNEED))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* It's easy to handle this type. It has the same size for 32 and
- 64 bit objects. And fortunately the `ElfXXX_Vernaux' records
- also have the same size. */
- assert (sizeof (GElf_Verneed) == sizeof (Elf32_Verneed));
- assert (sizeof (GElf_Verneed) == sizeof (Elf64_Verneed));
- assert (sizeof (GElf_Verneed) == sizeof (Elf32_Vernaux));
- assert (sizeof (GElf_Verneed) == sizeof (Elf64_Vernaux));
-
- rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (unlikely (offset < 0)
- || unlikely (offset + sizeof (GElf_Verneed) > data->d_size)
- || unlikely (offset % sizeof (GElf_Verneed) != 0))
- {
- __libelf_seterrno (ELF_E_OFFSET_RANGE);
- result = NULL;
- }
- else
- result = (GElf_Verneed *) memcpy (dst, (char *) data->d_buf + offset,
- sizeof (GElf_Verneed));
-
- rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_getversym.c b/src/libelf/gelf_getversym.c
deleted file mode 100644
index fe8dc62b..00000000
--- a/src/libelf/gelf_getversym.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/* Get symbol version information at the given index.
- Copyright (C) 1999, 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-GElf_Versym *
-gelf_getversym (data, ndx, dst)
- Elf_Data *data;
- int ndx;
- GElf_Versym *dst;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- Elf_Scn *scn;
- GElf_Versym *result;
-
- if (data == NULL)
- return NULL;
-
- if (unlikely (data->d_type != ELF_T_HALF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return NULL;
- }
-
- /* This is the one place where we have to take advantage of the fact
- that an `Elf_Data' pointer is also a pointer to `Elf_Data_Scn'.
- The interface is broken so that it requires this hack. */
- scn = data_scn->s;
-
- /* It's easy to handle this type. It has the same size for 32 and
- 64 bit objects. */
- assert (sizeof (GElf_Versym) == sizeof (Elf32_Versym));
- assert (sizeof (GElf_Versym) == sizeof (Elf64_Versym));
-
- rwlock_rdlock (scn->elf->lock);
-
- /* The data is already in the correct form. Just make sure the
- index is OK. */
- if (INVALID_NDX (ndx, GElf_Versym, data))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- result = NULL;
- }
- else
- {
- *dst = ((GElf_Versym *) data->d_buf)[ndx];
-
- result = dst;
- }
-
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_newehdr.c b/src/libelf/gelf_newehdr.c
deleted file mode 100644
index e9f7a58f..00000000
--- a/src/libelf/gelf_newehdr.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Create new ELF header.
- Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-unsigned long int
-gelf_newehdr (elf, class)
- Elf *elf;
- int class;
-{
- return (class == ELFCLASS32
- ? (unsigned long int) INTUSE(elf32_newehdr) (elf)
- : (unsigned long int) INTUSE(elf64_newehdr) (elf));
-}
diff --git a/src/libelf/gelf_newphdr.c b/src/libelf/gelf_newphdr.c
deleted file mode 100644
index b6340377..00000000
--- a/src/libelf/gelf_newphdr.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Create new ELF program header.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-unsigned long int
-gelf_newphdr (elf, phnum)
- Elf *elf;
- size_t phnum;
-{
- return (elf->class == ELFCLASS32
- ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum)
- : (unsigned long int) INTUSE(elf64_newphdr) (elf, phnum));
-}
diff --git a/src/libelf/gelf_offscn.c b/src/libelf/gelf_offscn.c
deleted file mode 100644
index 62d12e41..00000000
--- a/src/libelf/gelf_offscn.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* Create new ELF header.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-Elf_Scn *
-gelf_offscn (elf, offset)
- Elf *elf;
- GElf_Off offset;
-{
- if (elf->class == ELFCLASS32)
- {
- if ((Elf32_Off) offset != offset)
- {
- __libelf_seterrno (ELF_E_INVALID_OFFSET);
- return NULL;
- }
-
- return INTUSE(elf32_offscn) (elf, (Elf32_Off) offset);
- }
-
- return INTUSE(elf64_offscn) (elf, offset);
-}
diff --git a/src/libelf/gelf_update_auxv.c b/src/libelf/gelf_update_auxv.c
deleted file mode 100644
index dd8f4726..00000000
--- a/src/libelf/gelf_update_auxv.c
+++ /dev/null
@@ -1,114 +0,0 @@
-/* Update information in dynamic table at the given index.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_auxv (data, ndx, src)
- Elf_Data *data;
- int ndx;
- GElf_auxv_t *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- Elf_Scn *scn;
- int result = 0;
-
- if (data == NULL)
- return 0;
-
- if (unlikely (ndx < 0))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- return 0;
- }
-
- if (unlikely (data_scn->d.d_type != ELF_T_AUXV))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- scn = data_scn->s;
- rwlock_wrlock (scn->elf->lock);
-
- if (scn->elf->class == ELFCLASS32)
- {
- Elf32_auxv_t *auxv;
-
- /* There is the possibility that the values in the input are
- too large. */
- if (unlikely (src->a_type > 0xffffffffll)
- || unlikely (src->a_un.a_val > 0xffffffffull))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- /* Check whether we have to resize the data buffer. */
- if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- auxv = &((Elf32_auxv_t *) data_scn->d.d_buf)[ndx];
-
- auxv->a_type = src->a_type;
- auxv->a_un.a_val = src->a_un.a_val;
- }
- else
- {
- /* Check whether we have to resize the data buffer. */
- if (unlikely ((ndx + 1) * sizeof (Elf64_auxv_t) > data_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- ((Elf64_auxv_t *) data_scn->d.d_buf)[ndx] = *src;
- }
-
- result = 1;
-
- /* Mark the section as modified. */
- scn->flags |= ELF_F_DIRTY;
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_dyn.c b/src/libelf/gelf_update_dyn.c
deleted file mode 100644
index 2eb526ec..00000000
--- a/src/libelf/gelf_update_dyn.c
+++ /dev/null
@@ -1,110 +0,0 @@
-/* Update information in dynamic table at the given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_dyn (data, ndx, src)
- Elf_Data *data;
- int ndx;
- GElf_Dyn *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- Elf_Scn *scn;
- int result = 0;
-
- if (data == NULL)
- return 0;
-
- if (unlikely (data_scn->d.d_type != ELF_T_DYN))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- scn = data_scn->s;
- rwlock_wrlock (scn->elf->lock);
-
- if (scn->elf->class == ELFCLASS32)
- {
- Elf32_Dyn *dyn;
-
- /* There is the possibility that the values in the input are
- too large. */
- if (unlikely (src->d_tag < -0x80000000ll)
- || unlikely (src->d_tag > 0x7fffffffll)
- || unlikely (src->d_un.d_val > 0xffffffffull))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf32_Dyn, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- dyn = &((Elf32_Dyn *) data_scn->d.d_buf)[ndx];
-
- dyn->d_tag = src->d_tag;
- dyn->d_un.d_val = src->d_un.d_val;
- }
- else
- {
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf64_Dyn, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- ((Elf64_Dyn *) data_scn->d.d_buf)[ndx] = *src;
- }
-
- result = 1;
-
- /* Mark the section as modified. */
- scn->flags |= ELF_F_DIRTY;
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_ehdr.c b/src/libelf/gelf_update_ehdr.c
deleted file mode 100644
index 73d5af7a..00000000
--- a/src/libelf/gelf_update_ehdr.c
+++ /dev/null
@@ -1,118 +0,0 @@
-/* Update ELF header.
- Copyright (C) 2000, 2001, 2002, 2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_ehdr (Elf *elf, GElf_Ehdr *src)
-{
- int result = 0;
-
- if (elf == NULL)
- return 0;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- rwlock_wrlock (elf->lock);
-
- if (elf->class == ELFCLASS32)
- {
- Elf32_Ehdr *ehdr = elf->state.elf32.ehdr;
-
- if (ehdr == NULL)
- {
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- goto out;
- }
-
- /* We have to convert the data to the 32 bit format. This might
- overflow some fields so we have to test for this case before
- copying. */
- if (unlikely (src->e_entry > 0xffffffffull)
- || unlikely (src->e_phoff > 0xffffffffull)
- || unlikely (src->e_shoff > 0xffffffffull))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- /* Copy the data. */
- memcpy (ehdr->e_ident, src->e_ident, EI_NIDENT);
-#define COPY(name) \
- ehdr->name = src->name
- COPY (e_type);
- COPY (e_machine);
- COPY (e_version);
- COPY (e_entry);
- COPY (e_phoff);
- COPY (e_shoff);
- COPY (e_flags);
- COPY (e_ehsize);
- COPY (e_phentsize);
- COPY (e_phnum);
- COPY (e_shentsize);
- COPY (e_shnum);
- COPY (e_shstrndx);
- }
- else
- {
- Elf64_Ehdr *ehdr = elf->state.elf64.ehdr;
-
- if (ehdr == NULL)
- {
- __libelf_seterrno (ELF_E_WRONG_ORDER_EHDR);
- goto out;
- }
-
- /* Just copy the data. */
- memcpy (ehdr, src, sizeof (Elf64_Ehdr));
- }
-
- /* Mark the ELF header as modified. */
- elf->state.elf.ehdr_flags |= ELF_F_DIRTY;
-
- result = 1;
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_lib.c b/src/libelf/gelf_update_lib.c
deleted file mode 100644
index 1c8c23da..00000000
--- a/src/libelf/gelf_update_lib.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Update library in table at the given index.
- Copyright (C) 2004, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2004.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_lib (data, ndx, src)
- Elf_Data *data;
- int ndx;
- GElf_Lib *src;
-{
- if (data == NULL)
- return 0;
-
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- if (unlikely (data_scn->d.d_type != ELF_T_LIB))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- Elf_Scn *scn = data_scn->s;
- rwlock_wrlock (scn->elf->lock);
-
- /* Check whether we have to resize the data buffer. */
- int result = 0;
- if (INVALID_NDX (ndx, Elf64_Lib, &data_scn->d))
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- else
- {
- ((Elf64_Lib *) data_scn->d.d_buf)[ndx] = *src;
-
- result = 1;
-
- /* Mark the section as modified. */
- scn->flags |= ELF_F_DIRTY;
- }
-
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_move.c b/src/libelf/gelf_update_move.c
deleted file mode 100644
index ad2ca6ab..00000000
--- a/src/libelf/gelf_update_move.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Update move structure at the given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_move (data, ndx, src)
- Elf_Data *data;
- int ndx;
- GElf_Move *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
-
- if (data == NULL)
- return 0;
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Move) == sizeof (Elf32_Move));
- assert (sizeof (GElf_Move) == sizeof (Elf64_Move));
-
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, GElf_Move, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- return 0;
- }
-
- if (unlikely (data_scn->d.d_type != ELF_T_MOVE))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- rwlock_wrlock (data_scn->s->elf->lock);
-
- ((GElf_Move *) data_scn->d.d_buf)[ndx] = *src;
-
- /* Mark the section as modified. */
- data_scn->s->flags |= ELF_F_DIRTY;
-
- rwlock_unlock (data_scn->s->elf->lock);
-
- return 1;
-}
diff --git a/src/libelf/gelf_update_phdr.c b/src/libelf/gelf_update_phdr.c
deleted file mode 100644
index a848677f..00000000
--- a/src/libelf/gelf_update_phdr.c
+++ /dev/null
@@ -1,143 +0,0 @@
-/* Update program header program header table entry.
- Copyright (C) 2000-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_phdr (Elf *elf, int ndx, GElf_Phdr *src)
-{
- int result = 0;
-
- if (elf == NULL)
- return 0;
-
- if (unlikely (elf->kind != ELF_K_ELF))
- {
- __libelf_seterrno (ELF_E_INVALID_HANDLE);
- return 0;
- }
-
- rwlock_wrlock (elf->lock);
-
- if (elf->class == ELFCLASS32)
- {
- Elf32_Phdr *phdr = elf->state.elf32.phdr;
-
- /* We have to convert the data to the 32 bit format. This might
- overflow some fields so we have to test for this case before
- copying. */
- if (unlikely (src->p_offset > 0xffffffffull)
- || unlikely (src->p_vaddr > 0xffffffffull)
- || unlikely (src->p_paddr > 0xffffffffull)
- || unlikely (src->p_filesz > 0xffffffffull)
- || unlikely (src->p_memsz > 0xffffffffull)
- || unlikely (src->p_align > 0xffffffffull))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- if (phdr == NULL)
- {
- phdr = __elf32_getphdr_wrlock (elf);
- if (phdr == NULL)
- /* The error number is already set. */
- goto out;
- }
-
- /* Test whether the index is ok. */
- size_t phnum;
- if (ndx >= elf->state.elf32.ehdr->e_phnum
- && (elf->state.elf32.ehdr->e_phnum != PN_XNUM
- || __elf_getphdrnum_rdlock (elf, &phnum) != 0
- || (size_t) ndx >= phnum))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- /* Now correct the pointer to point to the correct element. */
- phdr += ndx;
-
-#define COPY(name) \
- phdr->name = src->name
- COPY (p_type);
- COPY (p_offset);
- COPY (p_vaddr);
- COPY (p_paddr);
- COPY (p_filesz);
- COPY (p_memsz);
- COPY (p_flags);
- COPY (p_align);
- }
- else
- {
- Elf64_Phdr *phdr = elf->state.elf64.phdr;
-
- if (phdr == NULL)
- {
- phdr = __elf64_getphdr_wrlock (elf);
- if (phdr == NULL)
- /* The error number is already set. */
- goto out;
- }
-
- /* Test whether the index is ok. */
- size_t phnum;
- if (ndx >= elf->state.elf64.ehdr->e_phnum
- && (elf->state.elf64.ehdr->e_phnum != PN_XNUM
- || __elf_getphdrnum_rdlock (elf, &phnum) != 0
- || (size_t) ndx >= phnum))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- /* Just copy the data. */
- memcpy (phdr + ndx, src, sizeof (Elf64_Phdr));
- }
-
- /* Mark the program header as modified. */
- elf->state.elf.phdr_flags |= ELF_F_DIRTY;
-
- result = 1;
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_rel.c b/src/libelf/gelf_update_rel.c
deleted file mode 100644
index 14f62e97..00000000
--- a/src/libelf/gelf_update_rel.c
+++ /dev/null
@@ -1,108 +0,0 @@
-/* Update REL relocation information at given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) dst;
- Elf_Scn *scn;
- int result = 0;
-
- if (dst == NULL)
- return 0;
-
- if (unlikely (data_scn->d.d_type != ELF_T_REL))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- scn = data_scn->s;
- rwlock_wrlock (scn->elf->lock);
-
- if (scn->elf->class == ELFCLASS32)
- {
- Elf32_Rel *rel;
-
- /* There is the possibility that the values in the input are
- too large. */
- if (unlikely (src->r_offset > 0xffffffffull)
- || unlikely (GELF_R_SYM (src->r_info) > 0xffffff)
- || unlikely (GELF_R_TYPE (src->r_info) > 0xff))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf32_Rel, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- rel = &((Elf32_Rel *) data_scn->d.d_buf)[ndx];
-
- rel->r_offset = src->r_offset;
- rel->r_info = ELF32_R_INFO (GELF_R_SYM (src->r_info),
- GELF_R_TYPE (src->r_info));
- }
- else
- {
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf64_Rel, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- ((Elf64_Rel *) data_scn->d.d_buf)[ndx] = *src;
- }
-
- result = 1;
-
- /* Mark the section as modified. */
- scn->flags |= ELF_F_DIRTY;
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_rela.c b/src/libelf/gelf_update_rela.c
deleted file mode 100644
index 88252703..00000000
--- a/src/libelf/gelf_update_rela.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* Update RELA relocation information at given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_rela (Elf_Data *dst, int ndx, GElf_Rela *src)
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) dst;
- Elf_Scn *scn;
- int result = 0;
-
- if (dst == NULL)
- return 0;
-
- if (unlikely (data_scn->d.d_type != ELF_T_RELA))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- scn = data_scn->s;
- rwlock_wrlock (scn->elf->lock);
-
- if (scn->elf->class == ELFCLASS32)
- {
- Elf32_Rela *rel;
-
- /* There is the possibility that the values in the input are
- too large. */
- if (unlikely (src->r_offset > 0xffffffffull)
- || unlikely (GELF_R_SYM (src->r_info) > 0xffffff)
- || unlikely (GELF_R_TYPE (src->r_info) > 0xff)
- || unlikely (src->r_addend < -0x80000000ll)
- || unlikely (src->r_addend > 0x7fffffffll))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf32_Rela, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- rel = &((Elf32_Rela *) data_scn->d.d_buf)[ndx];
-
- rel->r_offset = src->r_offset;
- rel->r_info = ELF32_R_INFO (GELF_R_SYM (src->r_info),
- GELF_R_TYPE (src->r_info));
- rel->r_addend = src->r_addend;
- }
- else
- {
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf64_Rela, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- ((Elf64_Rela *) data_scn->d.d_buf)[ndx] = *src;
- }
-
- result = 1;
-
- /* Mark the section as modified. */
- scn->flags |= ELF_F_DIRTY;
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_shdr.c b/src/libelf/gelf_update_shdr.c
deleted file mode 100644
index c93c6ec0..00000000
--- a/src/libelf/gelf_update_shdr.c
+++ /dev/null
@@ -1,111 +0,0 @@
-/* Update section header.
- Copyright (C) 2000, 2001, 2002, 2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_shdr (Elf_Scn *scn, GElf_Shdr *src)
-{
- int result = 0;
- Elf *elf;
-
- if (scn == NULL || src == NULL)
- return 0;
-
- elf = scn->elf;
- rwlock_wrlock (elf->lock);
-
- if (elf->class == ELFCLASS32)
- {
- Elf32_Shdr *shdr
- = scn->shdr.e32 ?: __elf32_getshdr_wrlock (scn);
-
- if (shdr == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OPERAND);
- goto out;
- }
-
- if (unlikely (src->sh_flags > 0xffffffffull)
- || unlikely (src->sh_addr > 0xffffffffull)
- || unlikely (src->sh_offset > 0xffffffffull)
- || unlikely (src->sh_size > 0xffffffffull)
- || unlikely (src->sh_addralign > 0xffffffffull)
- || unlikely (src->sh_entsize > 0xffffffffull))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
-#define COPY(name) \
- shdr->name = src->name
- COPY (sh_name);
- COPY (sh_type);
- COPY (sh_flags);
- COPY (sh_addr);
- COPY (sh_offset);
- COPY (sh_size);
- COPY (sh_link);
- COPY (sh_info);
- COPY (sh_addralign);
- COPY (sh_entsize);
- }
- else
- {
- Elf64_Shdr *shdr
- = scn->shdr.e64 ?: __elf64_getshdr_wrlock (scn);
-
- if (shdr == NULL)
- {
- __libelf_seterrno (ELF_E_INVALID_OPERAND);
- goto out;
- }
-
- /* We only have to copy the data. */
- (void) memcpy (shdr, src, sizeof (GElf_Shdr));
- }
-
- /* Mark the section header as modified. */
- scn->shdr_flags |= ELF_F_DIRTY;
-
- result = 1;
-
- out:
- rwlock_unlock (elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_sym.c b/src/libelf/gelf_update_sym.c
deleted file mode 100644
index 278129cf..00000000
--- a/src/libelf/gelf_update_sym.c
+++ /dev/null
@@ -1,119 +0,0 @@
-/* Update symbol information in symbol table at the given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_sym (data, ndx, src)
- Elf_Data *data;
- int ndx;
- GElf_Sym *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- Elf_Scn *scn;
- int result = 0;
-
- if (data == NULL)
- return 0;
-
- if (unlikely (data_scn->d.d_type != ELF_T_SYM))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- scn = data_scn->s;
- rwlock_wrlock (scn->elf->lock);
-
- if (scn->elf->class == ELFCLASS32)
- {
- Elf32_Sym *sym;
-
- /* There is the possibility that the values in the input are
- too large. */
- if (unlikely (src->st_value > 0xffffffffull)
- || unlikely (src->st_size > 0xffffffffull))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf32_Sym, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- sym = &((Elf32_Sym *) data_scn->d.d_buf)[ndx];
-
-#define COPY(name) \
- sym->name = src->name
- COPY (st_name);
- COPY (st_value);
- COPY (st_size);
- /* Please note that we can simply copy the `st_info' element since
- the definitions of ELFxx_ST_BIND and ELFxx_ST_TYPE are the same
- for the 64 bit variant. */
- COPY (st_info);
- COPY (st_other);
- COPY (st_shndx);
- }
- else
- {
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf64_Sym, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- ((Elf64_Sym *) data_scn->d.d_buf)[ndx] = *src;
- }
-
- result = 1;
-
- /* Mark the section as modified. */
- scn->flags |= ELF_F_DIRTY;
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_syminfo.c b/src/libelf/gelf_update_syminfo.c
deleted file mode 100644
index 640a1ed2..00000000
--- a/src/libelf/gelf_update_syminfo.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/* Update additional symbol information in symbol table at the given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_syminfo (data, ndx, src)
- Elf_Data *data;
- int ndx;
- GElf_Syminfo *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
- Elf_Scn *scn;
- int result = 0;
-
- if (data == NULL)
- return 0;
-
- if (unlikely (data_scn->d.d_type != ELF_T_SYMINFO))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Syminfo) == sizeof (Elf32_Syminfo));
- assert (sizeof (GElf_Syminfo) == sizeof (Elf64_Syminfo));
-
- scn = data_scn->s;
- rwlock_wrlock (scn->elf->lock);
-
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, GElf_Syminfo, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- ((GElf_Syminfo *) data_scn->d.d_buf)[ndx] = *src;
-
- result = 1;
-
- /* Mark the section as modified. */
- scn->flags |= ELF_F_DIRTY;
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_symshndx.c b/src/libelf/gelf_update_symshndx.c
deleted file mode 100644
index 5e2c7f70..00000000
--- a/src/libelf/gelf_update_symshndx.c
+++ /dev/null
@@ -1,149 +0,0 @@
-/* Update symbol information and section index in symbol table at the
- given index.
- Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_symshndx (symdata, shndxdata, ndx, src, srcshndx)
- Elf_Data *symdata;
- Elf_Data *shndxdata;
- int ndx;
- GElf_Sym *src;
- Elf32_Word srcshndx;
-{
- Elf_Data_Scn *symdata_scn = (Elf_Data_Scn *) symdata;
- Elf_Data_Scn *shndxdata_scn = (Elf_Data_Scn *) shndxdata;
- Elf_Scn *scn;
- Elf32_Word *shndx = NULL;
- int result = 0;
-
- if (symdata == NULL)
- return 0;
-
- if (unlikely (symdata_scn->d.d_type != ELF_T_SYM))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- scn = symdata_scn->s;
- /* We simply have to believe the user that the two sections belong to
- the same ELF file. */
- rwlock_wrlock (scn->elf->lock);
-
- /* The user is not required to pass a data descriptor for an extended
- section index table. */
- if (shndxdata_scn != NULL)
- {
- if (unlikely ((ndx + 1) * sizeof (Elf32_Word) > shndxdata_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- shndx = &((Elf32_Word *) shndxdata_scn->d.d_buf)[ndx];
- }
- /* But if s/he does not the extended sectio index must be zero. */
- else if (unlikely (srcshndx != 0))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- if (scn->elf->class == ELFCLASS32)
- {
- Elf32_Sym *sym;
-
- /* There is the possibility that the values in the input are
- too large. */
- if (unlikely (src->st_value > 0xffffffffull)
- || unlikely (src->st_size > 0xffffffffull))
- {
- __libelf_seterrno (ELF_E_INVALID_DATA);
- goto out;
- }
-
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf32_Sym, &symdata_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- sym = &((Elf32_Sym *) symdata_scn->d.d_buf)[ndx];
-
-#define COPY(name) \
- sym->name = src->name
- COPY (st_name);
- COPY (st_value);
- COPY (st_size);
- /* Please note that we can simply copy the `st_info' element since
- the definitions of ELFxx_ST_BIND and ELFxx_ST_TYPE are the same
- for the 64 bit variant. */
- COPY (st_info);
- COPY (st_other);
- COPY (st_shndx);
- }
- else
- {
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, Elf64_Sym, &symdata_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- goto out;
- }
-
- ((Elf64_Sym *) symdata_scn->d.d_buf)[ndx] = *src;
- }
-
- /* Now we can store the section index. */
- if (shndx != NULL)
- *shndx = srcshndx;
-
- result = 1;
-
- /* Mark the section as modified. */
- scn->flags |= ELF_F_DIRTY;
-
- out:
- rwlock_unlock (scn->elf->lock);
-
- return result;
-}
diff --git a/src/libelf/gelf_update_verdaux.c b/src/libelf/gelf_update_verdaux.c
deleted file mode 100644
index b377d40a..00000000
--- a/src/libelf/gelf_update_verdaux.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Update additional symbol version definition information.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_verdaux (data, offset, src)
- Elf_Data *data;
- int offset;
- GElf_Verdaux *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
-
- if (data == NULL)
- return 0;
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Verdaux) == sizeof (Elf32_Verdaux));
- assert (sizeof (GElf_Verdaux) == sizeof (Elf64_Verdaux));
-
- /* Check whether we have to resize the data buffer. */
- if (unlikely (offset < 0)
- || unlikely ((offset + sizeof (GElf_Verdaux)) > data_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- return 0;
- }
-
- if (unlikely (data_scn->d.d_type != ELF_T_VDEF))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- rwlock_wrlock (data_scn->s->elf->lock);
-
- memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verdaux));
-
- /* Mark the section as modified. */
- data_scn->s->flags |= ELF_F_DIRTY;
-
- rwlock_unlock (data_scn->s->elf->lock);
-
- return 1;
-}
diff --git a/src/libelf/gelf_update_verdef.c b/src/libelf/gelf_update_verdef.c
deleted file mode 100644
index d591a4f1..00000000
--- a/src/libelf/gelf_update_verdef.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Update symbol version definition information.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_verdef (data, offset, src)
- Elf_Data *data;
- int offset;
- GElf_Verdef *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
-
- if (data == NULL)
- return 0;
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Verdef) == sizeof (Elf32_Verdef));
- assert (sizeof (GElf_Verdef) == sizeof (Elf64_Verdef));
-
- /* Check whether we have to resize the data buffer. */
- if (unlikely (offset < 0)
- || unlikely ((offset + sizeof (GElf_Verdef)) > data_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- return 0;
- }
-
- if (unlikely (data_scn->d.d_type != ELF_T_VDEF))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- rwlock_wrlock (data_scn->s->elf->lock);
-
- memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verdef));
-
- /* Mark the section as modified. */
- data_scn->s->flags |= ELF_F_DIRTY;
-
- rwlock_unlock (data_scn->s->elf->lock);
-
- return 1;
-}
diff --git a/src/libelf/gelf_update_vernaux.c b/src/libelf/gelf_update_vernaux.c
deleted file mode 100644
index 1f691b0e..00000000
--- a/src/libelf/gelf_update_vernaux.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Update additional required symbol version information.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_vernaux (data, offset, src)
- Elf_Data *data;
- int offset;
- GElf_Vernaux *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
-
- if (data == NULL)
- return 0;
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Vernaux) == sizeof (Elf32_Vernaux));
- assert (sizeof (GElf_Vernaux) == sizeof (Elf64_Vernaux));
-
- /* Check whether we have to resize the data buffer. */
- if (unlikely (offset < 0)
- || unlikely ((offset + sizeof (GElf_Vernaux)) > data_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- return 0;
- }
-
- if (unlikely (data_scn->d.d_type != ELF_T_VNEED))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- rwlock_wrlock (data_scn->s->elf->lock);
-
- memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Vernaux));
-
- /* Mark the section as modified. */
- data_scn->s->flags |= ELF_F_DIRTY;
-
- rwlock_unlock (data_scn->s->elf->lock);
-
- return 1;
-}
diff --git a/src/libelf/gelf_update_verneed.c b/src/libelf/gelf_update_verneed.c
deleted file mode 100644
index 713c0171..00000000
--- a/src/libelf/gelf_update_verneed.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Update required symbol version information.
- Copyright (C) 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <string.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_verneed (data, offset, src)
- Elf_Data *data;
- int offset;
- GElf_Verneed *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
-
- if (data == NULL)
- return 0;
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Verneed) == sizeof (Elf32_Verneed));
- assert (sizeof (GElf_Verneed) == sizeof (Elf64_Verneed));
-
- /* Check whether we have to resize the data buffer. */
- if (unlikely (offset < 0)
- || unlikely ((offset + sizeof (GElf_Verneed)) > data_scn->d.d_size))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- return 0;
- }
-
- if (unlikely (data_scn->d.d_type != ELF_T_VNEED))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- rwlock_wrlock (data_scn->s->elf->lock);
-
- memcpy ((char *) data_scn->d.d_buf + offset, src, sizeof (GElf_Verneed));
-
- /* Mark the section as modified. */
- data_scn->s->flags |= ELF_F_DIRTY;
-
- rwlock_unlock (data_scn->s->elf->lock);
-
- return 1;
-}
diff --git a/src/libelf/gelf_update_versym.c b/src/libelf/gelf_update_versym.c
deleted file mode 100644
index 03a3c5a1..00000000
--- a/src/libelf/gelf_update_versym.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Update symbol version information.
- Copyright (C) 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2001.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <gelf.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-
-int
-gelf_update_versym (data, ndx, src)
- Elf_Data *data;
- int ndx;
- GElf_Versym *src;
-{
- Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
-
- if (data == NULL)
- return 0;
-
- /* The types for 32 and 64 bit are the same. Lucky us. */
- assert (sizeof (GElf_Versym) == sizeof (Elf32_Versym));
- assert (sizeof (GElf_Versym) == sizeof (Elf64_Versym));
-
- /* Check whether we have to resize the data buffer. */
- if (INVALID_NDX (ndx, GElf_Versym, &data_scn->d))
- {
- __libelf_seterrno (ELF_E_INVALID_INDEX);
- return 0;
- }
-
- if (unlikely (data_scn->d.d_type != ELF_T_HALF))
- {
- /* The type of the data better should match. */
- __libelf_seterrno (ELF_E_DATA_MISMATCH);
- return 0;
- }
-
- rwlock_wrlock (data_scn->s->elf->lock);
-
- ((GElf_Versym *) data_scn->d.d_buf)[ndx] = *src;
-
- /* Mark the section as modified. */
- data_scn->s->flags |= ELF_F_DIRTY;
-
- rwlock_unlock (data_scn->s->elf->lock);
-
- return 1;
-}
diff --git a/src/libelf/gelf_xlate.c b/src/libelf/gelf_xlate.c
deleted file mode 100644
index c417051a..00000000
--- a/src/libelf/gelf_xlate.c
+++ /dev/null
@@ -1,214 +0,0 @@
-/* Transformation functions for ELF data types.
- Copyright (C) 1998,1999,2000,2002,2004,2005,2006,2007 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <byteswap.h>
-#include <stdint.h>
-#include <string.h>
-#include <stdlib.h>
-
-#include "libelfP.h"
-
-#ifndef LIBELFBITS
-# define LIBELFBITS 32
-#endif
-
-
-/* Well, what shall I say. Nothing to do here. */
-#define elf_cvt_Byte(dest, src, n) \
- (__builtin_constant_p (n) && (n) == 1 \
- ? (void) (*((char *) (dest)) = *((char *) (src))) \
- : Elf32_cvt_Byte (dest, src, n))
-static void
-(elf_cvt_Byte) (void *dest, const void *src, size_t n,
- int encode __attribute__ ((unused)))
-{
- memmove (dest, src, n);
-}
-
-
-/* We'll optimize the definition of the conversion functions here a
- bit. We need only functions for 16, 32, and 64 bits. The
- functions referenced in the table will be aliases for one of these
- functions. Which one is decided by the ELFxx_FSZ_type. */
-
-#if ALLOW_UNALIGNED
-
-#define FETCH(Bits, ptr) (*(const uint##Bits##_t *) ptr)
-#define STORE(Bits, ptr, val) (*(uint##Bits##_t *) ptr = val)
-
-#else
-
-union unaligned
- {
- uint16_t u16;
- uint32_t u32;
- uint64_t u64;
- } __attribute__ ((packed));
-
-#define FETCH(Bits, ptr) (((const union unaligned *) ptr)->u##Bits)
-#define STORE(Bits, ptr, val) (((union unaligned *) ptr)->u##Bits = val)
-
-#endif
-
-/* Now define the conversion functions for the basic types. We use here
- the fact that file and memory types are the same and that we have the
- ELFxx_FSZ_* macros.
-
- At the same time we define inline functions which we will use to
- convert the complex types. */
-#define FUNDAMENTAL(NAME, Name, Bits) \
- INLINE2 (ELFW2(Bits,FSZ_##NAME), ElfW2(Bits,cvt_##Name), ElfW2(Bits,Name))
-#define INLINE2(Bytes, FName, TName) \
- INLINE3 (Bytes, FName, TName)
-#define INLINE3(Bytes, FName, TName) \
- static inline void FName##1 (void *dest, const void *ptr) \
- { \
- switch (Bytes) \
- { \
- case 2: STORE (16, dest, bswap_16 (FETCH (16, ptr))); break; \
- case 4: STORE (32, dest, bswap_32 (FETCH (32, ptr))); break; \
- case 8: STORE (64, dest, bswap_64 (FETCH (64, ptr))); break; \
- default: \
- abort (); \
- } \
- } \
- \
- static void FName (void *dest, const void *ptr, size_t len, \
- int encode __attribute__ ((unused))) \
- { \
- size_t n = len / sizeof (TName); \
- if (dest < ptr) \
- while (n-- > 0) \
- { \
- FName##1 (dest, ptr); \
- dest += Bytes; \
- ptr += Bytes; \
- } \
- else \
- { \
- dest += len; \
- ptr += len; \
- while (n-- > 0) \
- { \
- ptr -= Bytes; \
- dest -= Bytes; \
- FName##1 (dest, ptr); \
- } \
- } \
- }
-
-
-/* Now the tricky part: define the transformation functions for the
- complex types. We will use the definitions of the types in
- abstract.h. */
-#define START(Bits, Name, EName) \
- static void \
- ElfW2 (Bits, cvt_##Name) (void *dest, const void *src, size_t len, \
- int encode __attribute__ ((unused))) \
- { ElfW2(Bits, Name) *tdest = (ElfW2(Bits, Name) *) dest; \
- ElfW2(Bits, Name) *tsrc = (ElfW2(Bits, Name) *) src; \
- size_t n; \
- for (n = len / sizeof (ElfW2(Bits, Name)); n > 0; ++tdest, ++tsrc, --n) {
-#define END(Bits, Name) } }
-#define TYPE_EXTRA(Code)
-#define TYPE_XLATE(Code) Code
-#define TYPE_NAME(Type, Name) TYPE_NAME2 (Type, Name)
-#define TYPE_NAME2(Type, Name) Type##1 (&tdest->Name, &tsrc->Name);
-#define TYPE(Name, Bits) TYPE2 (Name, Bits)
-#define TYPE2(Name, Bits) TYPE3 (Name##Bits)
-#define TYPE3(Name) Name (cvt_)
-
-/* Signal that we are generating conversion functions. */
-#define GENERATE_CONVERSION
-
-/* First generate the 32-bit conversion functions. */
-#define LIBELFBITS 32
-#include "gelf_xlate.h"
-
-/* Now generate the 64-bit conversion functions. */
-#define LIBELFBITS 64
-#include "gelf_xlate.h"
-
-
-/* We have a few functions which we must create by hand since the sections
- do not contain records of only one type. */
-#include "version_xlate.h"
-#include "gnuhash_xlate.h"
-#include "note_xlate.h"
-
-
-/* Now the externally visible table with the function pointers. */
-const xfct_t __elf_xfctstom[EV_NUM - 1][EV_NUM - 1][ELFCLASSNUM - 1][ELF_T_NUM] =
-{
- [EV_CURRENT - 1] = {
- [EV_CURRENT - 1] = {
- [ELFCLASS32 - 1] = {
-#define define_xfcts(Bits) \
- [ELF_T_BYTE] = elf_cvt_Byte, \
- [ELF_T_ADDR] = ElfW2(Bits, cvt_Addr), \
- [ELF_T_DYN] = ElfW2(Bits, cvt_Dyn), \
- [ELF_T_EHDR] = ElfW2(Bits, cvt_Ehdr), \
- [ELF_T_HALF] = ElfW2(Bits, cvt_Half), \
- [ELF_T_OFF] = ElfW2(Bits, cvt_Off), \
- [ELF_T_PHDR] = ElfW2(Bits, cvt_Phdr), \
- [ELF_T_RELA] = ElfW2(Bits, cvt_Rela), \
- [ELF_T_REL] = ElfW2(Bits, cvt_Rel), \
- [ELF_T_SHDR] = ElfW2(Bits, cvt_Shdr), \
- [ELF_T_SWORD] = ElfW2(Bits, cvt_Sword), \
- [ELF_T_SYM] = ElfW2(Bits, cvt_Sym), \
- [ELF_T_WORD] = ElfW2(Bits, cvt_Word), \
- [ELF_T_XWORD] = ElfW2(Bits, cvt_Xword), \
- [ELF_T_SXWORD] = ElfW2(Bits, cvt_Sxword), \
- [ELF_T_VDEF] = elf_cvt_Verdef, \
- [ELF_T_VDAUX] = elf_cvt_Verdef, \
- [ELF_T_VNEED] = elf_cvt_Verneed, \
- [ELF_T_VNAUX] = elf_cvt_Verneed, \
- [ELF_T_NHDR] = elf_cvt_note, \
- [ELF_T_SYMINFO] = ElfW2(Bits, cvt_Syminfo), \
- [ELF_T_MOVE] = ElfW2(Bits, cvt_Move), \
- [ELF_T_LIB] = ElfW2(Bits, cvt_Lib), \
- [ELF_T_AUXV] = ElfW2(Bits, cvt_auxv_t)
- define_xfcts (32),
- [ELF_T_GNUHASH] = Elf32_cvt_Word
- },
- [ELFCLASS64 - 1] = {
- define_xfcts (64),
- [ELF_T_GNUHASH] = elf_cvt_gnuhash
- }
- }
- }
-};
-/* For now we only handle the case where the memory representation is the
- same as the file representation. Should this change we have to define
- separate functions. For now reuse them. */
-strong_alias (__elf_xfctstom, __elf_xfctstof)
diff --git a/src/libelf/gelf_xlate.h b/src/libelf/gelf_xlate.h
deleted file mode 100644
index f11eb90b..00000000
--- a/src/libelf/gelf_xlate.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Helper file for type conversion function generation.
- Copyright (C) 1998, 1999, 2000, 2002, 2004, 2007 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-
-/* Simple types. */
-FUNDAMENTAL (ADDR, Addr, LIBELFBITS);
-FUNDAMENTAL (OFF, Off, LIBELFBITS);
-FUNDAMENTAL (HALF, Half, LIBELFBITS);
-FUNDAMENTAL (WORD, Word, LIBELFBITS);
-FUNDAMENTAL (SWORD, Sword, LIBELFBITS);
-FUNDAMENTAL (XWORD, Xword, LIBELFBITS);
-FUNDAMENTAL (SXWORD, Sxword, LIBELFBITS);
-
-/* The structured types. */
-TYPE (Ehdr, LIBELFBITS)
-TYPE (Phdr, LIBELFBITS)
-TYPE (Shdr, LIBELFBITS)
-TYPE (Sym, LIBELFBITS)
-TYPE (Rel, LIBELFBITS)
-TYPE (Rela, LIBELFBITS)
-TYPE (Note, LIBELFBITS)
-TYPE (Dyn, LIBELFBITS)
-TYPE (Syminfo, LIBELFBITS)
-TYPE (Move, LIBELFBITS)
-TYPE (Lib, LIBELFBITS)
-TYPE (auxv_t, LIBELFBITS)
-
-
-/* Prepare for the next round. */
-#undef LIBELFBITS
diff --git a/src/libelf/gelf_xlatetof.c b/src/libelf/gelf_xlatetof.c
deleted file mode 100644
index 3366bdcd..00000000
--- a/src/libelf/gelf_xlatetof.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Convert from memory to file representation. Generic ELF version.
- Copyright (C) 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-Elf_Data *
-gelf_xlatetof (elf, dest, src, encode)
- Elf *elf;
- Elf_Data *dest;
- const Elf_Data * src;
- unsigned int encode;
-{
- if (elf == NULL)
- return NULL;
-
- return (elf->class == ELFCLASS32
- ? INTUSE(elf32_xlatetof) (dest, src, encode)
- : INTUSE(elf64_xlatetof) (dest, src, encode));
-}
diff --git a/src/libelf/gelf_xlatetom.c b/src/libelf/gelf_xlatetom.c
deleted file mode 100644
index c3e812f0..00000000
--- a/src/libelf/gelf_xlatetom.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* Convert from file to memory representation. Generic ELF version.
- Copyright (C) 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <gelf.h>
-#include <stddef.h>
-
-#include "libelfP.h"
-
-
-Elf_Data *
-gelf_xlatetom (elf, dest, src, encode)
- Elf *elf;
- Elf_Data *dest;
- const Elf_Data * src;
- unsigned int encode;
-{
- if (elf == NULL)
- return NULL;
-
- return (elf->class == ELFCLASS32
- ? INTUSE(elf32_xlatetom) (dest, src, encode)
- : INTUSE(elf64_xlatetom) (dest, src, encode));
-}
diff --git a/src/libelf/gnuhash_xlate.h b/src/libelf/gnuhash_xlate.h
deleted file mode 100644
index 6faf1136..00000000
--- a/src/libelf/gnuhash_xlate.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Conversion functions for versioning information.
- Copyright (C) 2006, 2007 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2006.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <assert.h>
-#include <gelf.h>
-
-#include "libelfP.h"
-
-
-static void
-elf_cvt_gnuhash (void *dest, const void *src, size_t len, int encode)
-{
- /* The GNU hash table format on 64 bit machines mixes 32 bit and 64 bit
- words. We must detangle them here. */
- Elf32_Word *dest32 = dest;
- const Elf32_Word *src32 = src;
-
- /* First four control words, 32 bits. */
- for (unsigned int cnt = 0; cnt < 4; ++cnt)
- {
- if (len < 4)
- return;
- dest32[cnt] = bswap_32 (src32[cnt]);
- len -= 4;
- }
-
- Elf32_Word bitmask_words = encode ? src32[2] : dest32[2];
-
- /* Now the 64 bit words. */
- Elf64_Xword *dest64 = (Elf64_Xword *) &dest32[4];
- const Elf64_Xword *src64 = (const Elf64_Xword *) &src32[4];
- for (unsigned int cnt = 0; cnt < bitmask_words; ++cnt)
- {
- if (len < 8)
- return;
- dest64[cnt] = bswap_64 (src64[cnt]);
- len -= 8;
- }
-
- /* The rest are 32 bit words again. */
- src32 = (const Elf32_Word *) &src64[bitmask_words];
- dest32 = (Elf32_Word *) &dest64[bitmask_words];
- while (len >= 4)
- {
- *dest32++ = bswap_32 (*src32++);
- len -= 4;
- }
-}
diff --git a/src/libelf/libelf.h b/src/libelf/libelf.h
deleted file mode 100644
index 5a2b3af8..00000000
--- a/src/libelf/libelf.h
+++ /dev/null
@@ -1,396 +0,0 @@
-/* Interface for libelf.
- Copyright (C) 1998-2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBELF_H
-#define _LIBELF_H 1
-
-#include <sys/types.h>
-
-/* Get the ELF types. */
-#include <elf.h>
-
-
-/* Known translation types. */
-typedef enum
-{
- ELF_T_BYTE, /* unsigned char */
- ELF_T_ADDR, /* Elf32_Addr, Elf64_Addr, ... */
- ELF_T_DYN, /* Dynamic section record. */
- ELF_T_EHDR, /* ELF header. */
- ELF_T_HALF, /* Elf32_Half, Elf64_Half, ... */
- ELF_T_OFF, /* Elf32_Off, Elf64_Off, ... */
- ELF_T_PHDR, /* Program header. */
- ELF_T_RELA, /* Relocation entry with addend. */
- ELF_T_REL, /* Relocation entry. */
- ELF_T_SHDR, /* Section header. */
- ELF_T_SWORD, /* Elf32_Sword, Elf64_Sword, ... */
- ELF_T_SYM, /* Symbol record. */
- ELF_T_WORD, /* Elf32_Word, Elf64_Word, ... */
- ELF_T_XWORD, /* Elf32_Xword, Elf64_Xword, ... */
- ELF_T_SXWORD, /* Elf32_Sxword, Elf64_Sxword, ... */
- ELF_T_VDEF, /* Elf32_Verdef, Elf64_Verdef, ... */
- ELF_T_VDAUX, /* Elf32_Verdaux, Elf64_Verdaux, ... */
- ELF_T_VNEED, /* Elf32_Verneed, Elf64_Verneed, ... */
- ELF_T_VNAUX, /* Elf32_Vernaux, Elf64_Vernaux, ... */
- ELF_T_NHDR, /* Elf32_Nhdr, Elf64_Nhdr, ... */
- ELF_T_SYMINFO, /* Elf32_Syminfo, Elf64_Syminfo, ... */
- ELF_T_MOVE, /* Elf32_Move, Elf64_Move, ... */
- ELF_T_LIB, /* Elf32_Lib, Elf64_Lib, ... */
- ELF_T_GNUHASH, /* GNU-style hash section. */
- ELF_T_AUXV, /* Elf32_auxv_t, Elf64_auxv_t, ... */
- /* Keep this the last entry. */
- ELF_T_NUM
-} Elf_Type;
-
-/* Descriptor for data to be converted to or from memory format. */
-typedef struct
-{
- void *d_buf; /* Pointer to the actual data. */
- Elf_Type d_type; /* Type of this piece of data. */
- unsigned int d_version; /* ELF version. */
- size_t d_size; /* Size in bytes. */
- loff_t d_off; /* Offset into section. */
- size_t d_align; /* Alignment in section. */
-} Elf_Data;
-
-
-/* Commands for `...'. */
-typedef enum
-{
- ELF_C_NULL, /* Nothing, terminate, or compute only. */
- ELF_C_READ, /* Read .. */
- ELF_C_RDWR, /* Read and write .. */
- ELF_C_WRITE, /* Write .. */
- ELF_C_CLR, /* Clear flag. */
- ELF_C_SET, /* Set flag. */
- ELF_C_FDDONE, /* Signal that file descriptor will not be
- used anymore. */
- ELF_C_FDREAD, /* Read rest of data so that file descriptor
- is not used anymore. */
- /* The following are extensions. */
- ELF_C_READ_MMAP, /* Read, but mmap the file if possible. */
- ELF_C_RDWR_MMAP, /* Read and write, with mmap. */
- ELF_C_WRITE_MMAP, /* Write, with mmap. */
- ELF_C_READ_MMAP_PRIVATE, /* Read, but memory is writable, results are
- not written to the file. */
- ELF_C_EMPTY, /* Copy basic file data but not the content. */
- /* Keep this the last entry. */
- ELF_C_NUM
-} Elf_Cmd;
-
-
-/* Flags for the ELF structures. */
-enum
-{
- ELF_F_DIRTY = 0x1,
-#define ELF_F_DIRTY ELF_F_DIRTY
- ELF_F_LAYOUT = 0x4,
-#define ELF_F_LAYOUT ELF_F_LAYOUT
- ELF_F_PERMISSIVE = 0x8
-#define ELF_F_PERMISSIVE ELF_F_PERMISSIVE
-};
-
-
-/* Identification values for recognized object files. */
-typedef enum
-{
- ELF_K_NONE, /* Unknown. */
- ELF_K_AR, /* Archive. */
- ELF_K_COFF, /* Stupid old COFF. */
- ELF_K_ELF, /* ELF file. */
- /* Keep this the last entry. */
- ELF_K_NUM
-} Elf_Kind;
-
-
-/* Archive member header. */
-typedef struct
-{
- char *ar_name; /* Name of archive member. */
- time_t ar_date; /* File date. */
- uid_t ar_uid; /* User ID. */
- gid_t ar_gid; /* Group ID. */
- mode_t ar_mode; /* File mode. */
- loff_t ar_size; /* File size. */
- char *ar_rawname; /* Original name of archive member. */
-} Elf_Arhdr;
-
-
-/* Archive symbol table entry. */
-typedef struct
-{
- char *as_name; /* Symbol name. */
- size_t as_off; /* Offset for this file in the archive. */
- unsigned long int as_hash; /* Hash value of the name. */
-} Elf_Arsym;
-
-
-/* Descriptor for the ELF file. */
-typedef struct Elf Elf;
-
-/* Descriptor for ELF file section. */
-typedef struct Elf_Scn Elf_Scn;
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Return descriptor for ELF file to work according to CMD. */
-extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref);
-
-/* Create a clone of an existing ELF descriptor. */
- extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd);
-
-/* Create descriptor for memory region. */
-extern Elf *elf_memory (char *__image, size_t __size);
-
-/* Advance archive descriptor to next element. */
-extern Elf_Cmd elf_next (Elf *__elf);
-
-/* Free resources allocated for ELF. */
-extern int elf_end (Elf *__elf);
-
-/* Update ELF descriptor and write file to disk. */
-extern loff_t elf_update (Elf *__elf, Elf_Cmd __cmd);
-
-/* Determine what kind of file is associated with ELF. */
-extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
-
-/* Get the base offset for an object file. */
-extern loff_t elf_getbase (Elf *__elf);
-
-
-/* Retrieve file identification data. */
-extern char *elf_getident (Elf *__elf, size_t *__nbytes);
-
-/* Retrieve class-dependent object file header. */
-extern Elf32_Ehdr *elf32_getehdr (Elf *__elf);
-/* Similar but this time the binary calls is ELFCLASS64. */
-extern Elf64_Ehdr *elf64_getehdr (Elf *__elf);
-
-/* Create ELF header if none exists. */
-extern Elf32_Ehdr *elf32_newehdr (Elf *__elf);
-/* Similar but this time the binary calls is ELFCLASS64. */
-extern Elf64_Ehdr *elf64_newehdr (Elf *__elf);
-
-/* Get the number of program headers in the ELF file. If the file uses
- more headers than can be represented in the e_phnum field of the ELF
- header the information from the sh_info field in the zeroth section
- header is used. */
-extern int elf_getphdrnum (Elf *__elf, size_t *__dst);
-
-/* Retrieve class-dependent program header table. */
-extern Elf32_Phdr *elf32_getphdr (Elf *__elf);
-/* Similar but this time the binary calls is ELFCLASS64. */
-extern Elf64_Phdr *elf64_getphdr (Elf *__elf);
-
-/* Create ELF program header. */
-extern Elf32_Phdr *elf32_newphdr (Elf *__elf, size_t __cnt);
-/* Similar but this time the binary calls is ELFCLASS64. */
-extern Elf64_Phdr *elf64_newphdr (Elf *__elf, size_t __cnt);
-
-
-/* Get section at INDEX. */
-extern Elf_Scn *elf_getscn (Elf *__elf, size_t __index);
-
-/* Get section at OFFSET. */
-extern Elf_Scn *elf32_offscn (Elf *__elf, Elf32_Off __offset);
-/* Similar bug this time the binary calls is ELFCLASS64. */
-extern Elf_Scn *elf64_offscn (Elf *__elf, Elf64_Off __offset);
-
-/* Get index of section. */
-extern size_t elf_ndxscn (Elf_Scn *__scn);
-
-/* Get section with next section index. */
-extern Elf_Scn *elf_nextscn (Elf *__elf, Elf_Scn *__scn);
-
-/* Create a new section and append it at the end of the table. */
-extern Elf_Scn *elf_newscn (Elf *__elf);
-
-/* Get the section index of the extended section index table for the
- given symbol table. */
-extern int elf_scnshndx (Elf_Scn *__scn);
-
-/* Get the number of sections in the ELF file. If the file uses more
- sections than can be represented in the e_shnum field of the ELF
- header the information from the sh_size field in the zeroth section
- header is used. */
-extern int elf_getshdrnum (Elf *__elf, size_t *__dst);
-/* Sun messed up the implementation of 'elf_getshnum' in their implementation.
- It was agreed to make the same functionality available under a different
- name and obsolete the old name. */
-extern int elf_getshnum (Elf *__elf, size_t *__dst)
- __attribute__ ((__deprecated__));
-
-
-/* Get the section index of the section header string table in the ELF
- file. If the index cannot be represented in the e_shnum field of
- the ELF header the information from the sh_link field in the zeroth
- section header is used. */
-extern int elf_getshdrstrndx (Elf *__elf, size_t *__dst);
-/* Sun messed up the implementation of 'elf_getshnum' in their implementation.
- It was agreed to make the same functionality available under a different
- name and obsolete the old name. */
-extern int elf_getshstrndx (Elf *__elf, size_t *__dst)
- __attribute__ ((__deprecated__));
-
-
-/* Retrieve section header of ELFCLASS32 binary. */
-extern Elf32_Shdr *elf32_getshdr (Elf_Scn *__scn);
-/* Similar for ELFCLASS64. */
-extern Elf64_Shdr *elf64_getshdr (Elf_Scn *__scn);
-
-
-/* Set or clear flags for ELF file. */
-extern unsigned int elf_flagelf (Elf *__elf, Elf_Cmd __cmd,
- unsigned int __flags);
-/* Similarly for the ELF header. */
-extern unsigned int elf_flagehdr (Elf *__elf, Elf_Cmd __cmd,
- unsigned int __flags);
-/* Similarly for the ELF program header. */
-extern unsigned int elf_flagphdr (Elf *__elf, Elf_Cmd __cmd,
- unsigned int __flags);
-/* Similarly for the given ELF section. */
-extern unsigned int elf_flagscn (Elf_Scn *__scn, Elf_Cmd __cmd,
- unsigned int __flags);
-/* Similarly for the given ELF data. */
-extern unsigned int elf_flagdata (Elf_Data *__data, Elf_Cmd __cmd,
- unsigned int __flags);
-/* Similarly for the given ELF section header. */
-extern unsigned int elf_flagshdr (Elf_Scn *__scn, Elf_Cmd __cmd,
- unsigned int __flags);
-
-
-/* Get data from section while translating from file representation
- to memory representation. */
-extern Elf_Data *elf_getdata (Elf_Scn *__scn, Elf_Data *__data);
-
-/* Get uninterpreted section content. */
-extern Elf_Data *elf_rawdata (Elf_Scn *__scn, Elf_Data *__data);
-
-/* Create new data descriptor for section SCN. */
-extern Elf_Data *elf_newdata (Elf_Scn *__scn);
-
-/* Get data translated from a chunk of the file contents as section data
- would be for TYPE. The resulting Elf_Data pointer is valid until
- elf_end (ELF) is called. */
-extern Elf_Data *elf_getdata_rawchunk (Elf *__elf,
- loff_t __offset, size_t __size,
- Elf_Type __type);
-
-
-/* Return pointer to string at OFFSET in section INDEX. */
-extern char *elf_strptr (Elf *__elf, size_t __index, size_t __offset);
-
-
-/* Return header of archive. */
-extern Elf_Arhdr *elf_getarhdr (Elf *__elf);
-
-/* Return offset in archive for current file ELF. */
-extern loff_t elf_getaroff (Elf *__elf);
-
-/* Select archive element at OFFSET. */
-extern size_t elf_rand (Elf *__elf, size_t __offset);
-
-/* Get symbol table of archive. */
-extern Elf_Arsym *elf_getarsym (Elf *__elf, size_t *__narsyms);
-
-
-/* Control ELF descriptor. */
-extern int elf_cntl (Elf *__elf, Elf_Cmd __cmd);
-
-/* Retrieve uninterpreted file contents. */
-extern char *elf_rawfile (Elf *__elf, size_t *__nbytes);
-
-
-/* Return size of array of COUNT elements of the type denoted by TYPE
- in the external representation. The binary class is taken from ELF.
- The result is based on version VERSION of the ELF standard. */
-extern size_t elf32_fsize (Elf_Type __type, size_t __count,
- unsigned int __version)
- __attribute__ ((__const__));
-/* Similar but this time the binary calls is ELFCLASS64. */
-extern size_t elf64_fsize (Elf_Type __type, size_t __count,
- unsigned int __version)
- __attribute__ ((__const__));
-
-
-/* Convert data structure from the representation in the file represented
- by ELF to their memory representation. */
-extern Elf_Data *elf32_xlatetom (Elf_Data *__dest, const Elf_Data *__src,
- unsigned int __encode);
-/* Same for 64 bit class. */
-extern Elf_Data *elf64_xlatetom (Elf_Data *__dest, const Elf_Data *__src,
- unsigned int __encode);
-
-/* Convert data structure from to the representation in memory
- represented by ELF file representation. */
-extern Elf_Data *elf32_xlatetof (Elf_Data *__dest, const Elf_Data *__src,
- unsigned int __encode);
-/* Same for 64 bit class. */
-extern Elf_Data *elf64_xlatetof (Elf_Data *__dest, const Elf_Data *__src,
- unsigned int __encode);
-
-
-/* Return error code of last failing function call. This value is kept
- separately for each thread. */
-extern int elf_errno (void);
-
-/* Return error string for ERROR. If ERROR is zero, return error string
- for most recent error or NULL is none occurred. If ERROR is -1 the
- behaviour is similar to the last case except that not NULL but a legal
- string is returned. */
-extern const char *elf_errmsg (int __error);
-
-
-/* Coordinate ELF library and application versions. */
-extern unsigned int elf_version (unsigned int __version);
-
-/* Set fill bytes used to fill holes in data structures. */
-extern void elf_fill (int __fill);
-
-/* Compute hash value. */
-extern unsigned long int elf_hash (const char *__string)
- __attribute__ ((__pure__));
-
-/* Compute hash value using the GNU-specific hash function. */
-extern unsigned long int elf_gnu_hash (const char *__string)
- __attribute__ ((__pure__));
-
-
-/* Compute simple checksum from permanent parts of the ELF file. */
-extern long int elf32_checksum (Elf *__elf);
-/* Similar but this time the binary calls is ELFCLASS64. */
-extern long int elf64_checksum (Elf *__elf);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* libelf.h */
diff --git a/src/libelf/libelf.map b/src/libelf/libelf.map
deleted file mode 100644
index de6d912a..00000000
--- a/src/libelf/libelf.map
+++ /dev/null
@@ -1,140 +0,0 @@
-ELFUTILS_1.0 {
- global:
- elf32_checksum;
- elf32_fsize;
- elf32_getehdr;
- elf32_getphdr;
- elf32_getshdr;
- elf32_newehdr;
- elf32_newphdr;
- elf32_xlatetof;
- elf32_xlatetom;
- elf64_checksum;
- elf64_fsize;
- elf64_getehdr;
- elf64_getphdr;
- elf64_getshdr;
- elf64_newehdr;
- elf64_newphdr;
- elf64_xlatetof;
- elf64_xlatetom;
- elf_begin;
- elf_clone;
- elf_cntl;
- elf_end;
- elf_errmsg;
- elf_errno;
- elf_fill;
- elf_flagdata;
- elf_flagehdr;
- elf_flagelf;
- elf_flagphdr;
- elf_flagscn;
- elf_flagshdr;
- elf_getarhdr;
- elf_getarsym;
- elf_getbase;
- elf_getdata;
- elf_getident;
- elf_getscn;
- elf_getshnum;
- elf_getshstrndx;
- elf_hash;
- elf_kind;
- elf_memory;
- elf_ndxscn;
- elf_newdata;
- elf_newscn;
- elf_next;
- elf_nextscn;
- elf_rand;
- elf_rawdata;
- elf_rawfile;
- elf_scncnt;
- elf_strptr;
- elf_update;
- elf_version;
- gelf_checksum;
- gelf_fsize;
- gelf_getclass;
- gelf_getdyn;
- gelf_getehdr;
- gelf_getmove;
- gelf_getphdr;
- gelf_getrel;
- gelf_getrela;
- gelf_getshdr;
- gelf_getsym;
- gelf_getsyminfo;
- gelf_getsymshndx;
- gelf_getverdaux;
- gelf_getverdef;
- gelf_getvernaux;
- gelf_getverneed;
- gelf_getversym;
- gelf_newehdr;
- gelf_newphdr;
- gelf_update_dyn;
- gelf_update_ehdr;
- gelf_update_move;
- gelf_update_phdr;
- gelf_update_rel;
- gelf_update_rela;
- gelf_update_shdr;
- gelf_update_sym;
- gelf_update_syminfo;
- gelf_update_symshndx;
- gelf_update_verdaux;
- gelf_update_verdef;
- gelf_update_vernaux;
- gelf_update_verneed;
- gelf_update_versym;
- gelf_xlatetof;
- gelf_xlatetom;
- nlist;
-
- local:
- *;
-};
-
-ELFUTILS_1.1 {
- global:
- gelf_getlib;
- gelf_update_lib;
-} ELFUTILS_1.0;
-
-ELFUTILS_1.1.1 {
- global:
- elf32_offscn;
- elf64_offscn;
- gelf_offscn;
- elf_getaroff;
-} ELFUTILS_1.1;
-
-ELFUTILS_1.2 {
- global:
- elf_gnu_hash;
-} ELFUTILS_1.1.1;
-
-ELFUTILS_1.3 {
- global:
- elf_getdata_rawchunk;
- gelf_getauxv;
- gelf_update_auxv;
- gelf_getnote;
-} ELFUTILS_1.2;
-
-ELFUTILS_1.4 {
- global:
- elf_scnshndx;
-} ELFUTILS_1.3;
-
-ELFUTILS_1.5 {
- global:
- elf_getshdrnum; elf_getshdrstrndx;
-} ELFUTILS_1.4;
-
-ELFUTILS_1.6 {
- global:
- elf_getphdrnum;
-} ELFUTILS_1.5;
diff --git a/src/libelf/libelfP.h b/src/libelf/libelfP.h
deleted file mode 100644
index 52cf7457..00000000
--- a/src/libelf/libelfP.h
+++ /dev/null
@@ -1,594 +0,0 @@
-/* Internal interfaces for libelf.
- Copyright (C) 1998-2010 Red Hat, Inc.
- This file is part of elfutils.
- Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _LIBELFP_H
-#define _LIBELFP_H 1
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <ar.h>
-#include <gelf.h>
-
-#include <errno.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <string.h>
-
-/* gettext helper macros. */
-#define _(Str) dgettext ("elfutils", Str)
-
-
-/* Helper Macros to write 32 bit and 64 bit functions. */
-#define __elfw2_(Bits, Name) __elf##Bits##_##Name
-#define elfw2_(Bits, Name) elf##Bits##_##Name
-#define ElfW2_(Bits, Name) Elf##Bits##_##Name
-#define ELFW2_(Bits, Name) ELF##Bits##_##Name
-#define ELFW_(Name, Bits) Name##Bits
-#define __elfw2(Bits, Name) __elfw2_(Bits, Name)
-#define elfw2(Bits, Name) elfw2_(Bits, Name)
-#define ElfW2(Bits, Name) ElfW2_(Bits, Name)
-#define ELFW2(Bits, Name) ELFW2_(Bits, Name)
-#define ELFW(Name, Bits) ELFW_(Name, Bits)
-
-
-/* Sizes of the external types, for 32 bits objects. */
-#define ELF32_FSZ_ADDR 4
-#define ELF32_FSZ_OFF 4
-#define ELF32_FSZ_HALF 2
-#define ELF32_FSZ_WORD 4
-#define ELF32_FSZ_SWORD 4
-#define ELF32_FSZ_XWORD 8
-#define ELF32_FSZ_SXWORD 8
-
-/* Same for 64 bits objects. */
-#define ELF64_FSZ_ADDR 8
-#define ELF64_FSZ_OFF 8
-#define ELF64_FSZ_HALF 2
-#define ELF64_FSZ_WORD 4
-#define ELF64_FSZ_SWORD 4
-#define ELF64_FSZ_XWORD 8
-#define ELF64_FSZ_SXWORD 8
-
-
-/* This is an extension of the ELF_F_* enumeration. The values here are
- not part of the library interface, they are only used internally. */
-enum
-{
- ELF_F_MMAPPED = 0x40,
- ELF_F_MALLOCED = 0x80,
- ELF_F_FILEDATA = 0x100
-};
-
-
-/* Get definition of all the external types. */
-#include "exttypes.h"
-
-
-/* Error values. */
-enum
-{
- ELF_E_NOERROR = 0,
- ELF_E_UNKNOWN_ERROR,
- ELF_E_UNKNOWN_VERSION,
- ELF_E_UNKNOWN_TYPE,
- ELF_E_INVALID_HANDLE,
- ELF_E_SOURCE_SIZE,
- ELF_E_DEST_SIZE,
- ELF_E_INVALID_ENCODING,
- ELF_E_NOMEM,
- ELF_E_INVALID_FILE,
- ELF_E_INVALID_OP,
- ELF_E_NO_VERSION,
- ELF_E_INVALID_CMD,
- ELF_E_RANGE,
- ELF_E_ARCHIVE_FMAG,
- ELF_E_INVALID_ARCHIVE,
- ELF_E_NO_ARCHIVE,
- ELF_E_NO_INDEX,
- ELF_E_READ_ERROR,
- ELF_E_WRITE_ERROR,
- ELF_E_INVALID_CLASS,
- ELF_E_INVALID_INDEX,
- ELF_E_INVALID_OPERAND,
- ELF_E_INVALID_SECTION,
- ELF_E_INVALID_COMMAND,
- ELF_E_WRONG_ORDER_EHDR,
- ELF_E_FD_DISABLED,
- ELF_E_FD_MISMATCH,
- ELF_E_OFFSET_RANGE,
- ELF_E_NOT_NUL_SECTION,
- ELF_E_DATA_MISMATCH,
- ELF_E_INVALID_SECTION_HEADER,
- ELF_E_INVALID_DATA,
- ELF_E_DATA_ENCODING,
- ELF_E_SECTION_TOO_SMALL,
- ELF_E_INVALID_ALIGN,
- ELF_E_INVALID_SHENTSIZE,
- ELF_E_UPDATE_RO,
- ELF_E_NOFILE,
- ELF_E_GROUP_NOT_REL,
- ELF_E_INVALID_PHDR,
- ELF_E_NO_PHDR,
- ELF_E_INVALID_OFFSET,
- /* Keep this as the last entry. */
- ELF_E_NUM
-};
-
-
-/* The visible `Elf_Data' type is not sufficent for some operations due
- to a misdesigned interface. Extend it for internal purposes. */
-typedef struct
-{
- Elf_Data d;
- Elf_Scn *s;
-} Elf_Data_Scn;
-
-
-/* List of `Elf_Data' descriptors. This is what makes up the section
- contents. */
-typedef struct Elf_Data_List
-{
- /* `data' *must* be the first element in the struct. */
- Elf_Data_Scn data;
- struct Elf_Data_List *next;
- int flags;
-} Elf_Data_List;
-
-
-/* Descriptor for ELF section. */
-struct Elf_Scn
-{
- /* We have to distinguish several different situations:
-
- 1. the section is user created. Therefore there is no file or memory
- region to read the data from. Here we have two different subcases:
-
- a) data was not yet added (before the first `elf_newdata' call)
-
- b) at least one data set is available
-
- 2. this is a section from a file/memory region. We have to read the
- current content in one data block if we have to. But we don't
- read the data until it is necessary. So we have the subcases:
-
- a) the section in the file has size zero (for whatever reason)
-
- b) the data of the file is not (yet) read
-
- c) the data is read and available.
-
- In addition to this we have different data sets, the raw and the converted
- data. This distinction only exists for the data read from the file.
- All user-added data set (all but the first when read from the file or
- all of them for user-create sections) are the same in both formats.
- We don't create the converted data before it is necessary.
-
- The `data_read' element signals whether data is available in the
- raw format.
-
- If there is data from the file/memory region or if read one data
- set is added the `rawdata_list_read' pointer in non-NULL and points
- to the last filled data set. `raw_datalist_rear' is therefore NULL
- only if there is no data set at all.
-
- This so far allows to distinguish all but two cases (given that the
- `rawdata_list' and `data_list' entries are initialized to zero) is
- between not yet loaded data from the file/memory region and a section
- with zero size and type ELF_T_BYTE. */
- Elf_Data_List data_list; /* List of data buffers. */
- Elf_Data_List *data_list_rear; /* Pointer to the rear of the data list. */
-
- Elf_Data_Scn rawdata; /* Uninterpreted data of the section. */
-
- int data_read; /* Nonzero if the section was created by the
- user or if the data from the file/memory
- is read. */
- int shndx_index; /* Index of the extended section index
- table for this symbol table (if this
- section is a symbol table). */
-
- size_t index; /* Index of this section. */
- struct Elf *elf; /* The underlying ELF file. */
-
- union
- {
- Elf32_Shdr *e32; /* Pointer to 32bit section header. */
- Elf64_Shdr *e64; /* Pointer to 64bit section header. */
- } shdr;
-
- unsigned int shdr_flags; /* Section header modified? */
- unsigned int flags; /* Section changed in size? */
-
- char *rawdata_base; /* The unmodified data of the section. */
- char *data_base; /* The converted data of the section. */
-
- struct Elf_ScnList *list; /* Pointer to the section list element the
- data is in. */
-};
-
-
-/* List of section. */
-typedef struct Elf_ScnList
-{
- unsigned int cnt; /* Number of elements of 'data' used. */
- unsigned int max; /* Number of elements of 'data' allocated. */
- struct Elf_ScnList *next; /* Next block of sections. */
- struct Elf_Scn data[0]; /* Section data. */
-} Elf_ScnList;
-
-
-/* elf_getdata_rawchunk result. */
-typedef struct Elf_Data_Chunk
-{
- Elf_Data_Scn data;
- union
- {
- Elf_Scn dummy_scn;
- struct Elf_Data_Chunk *next;
- };
-} Elf_Data_Chunk;
-
-
-/* The ELF descriptor. */
-struct Elf
-{
- /* Address to which the file was mapped. NULL if not mapped. */
- void *map_address;
-
- /* When created for an archive member this points to the descriptor
- for the archive. */
- Elf *parent;
- Elf *next; /* Used in list of archive descriptors. */
-
- /* What kind of file is underneath (ELF file, archive...). */
- Elf_Kind kind;
-
- /* Command used to create this descriptor. */
- Elf_Cmd cmd;
-
- /* The binary class. */
- unsigned int class;
-
- /* The used file descriptor. -1 if not available anymore. */
- int fildes;
-
- /* Offset in the archive this file starts or zero. */
- off_t start_offset;
-
- /* Size of the file in the archive or the entire file size, or ~0
- for an (yet) unknown size. */
- size_t maximum_size;
-
- /* Describes the way the memory was allocated and if the dirty bit is
- signalled it means that the whole file has to be rewritten since
- the layout changed. */
- int flags;
-
- /* Reference counting for the descriptor. */
- int ref_count;
-
- /* Lock to handle multithreaded programs. */
- rwlock_define (,lock);
-
- union
- {
- struct
- {
- /* The next fields are only useful when testing for ==/!= NULL. */
- void *ehdr;
- void *shdr;
- void *phdr;
-
- Elf_ScnList *scns_last; /* Last element in the section list.
- If NULL the data has not yet been
- read from the file. */
- Elf_Data_Chunk *rawchunks; /* List of elf_getdata_rawchunk results. */
- unsigned int scnincr; /* Number of sections allocate the last
- time. */
- int ehdr_flags; /* Flags (dirty) for ELF header. */
- int phdr_flags; /* Flags (dirty|malloc) for program header. */
- int shdr_malloced; /* Nonzero if shdr array was allocated. */
- off64_t sizestr_offset; /* Offset of the size string in the parent
- if this is an archive member. */
- } elf;
-
- struct
- {
- Elf32_Ehdr *ehdr; /* Pointer to the ELF header. This is
- never malloced. */
- Elf32_Shdr *shdr; /* Used when reading from a file. */
- Elf32_Phdr *phdr; /* Pointer to the program header array. */
- Elf_ScnList *scns_last; /* Last element in the section list.
- If NULL the data has not yet been
- read from the file. */
- Elf_Data_Chunk *rawchunks; /* List of elf_getdata_rawchunk results. */
- unsigned int scnincr; /* Number of sections allocate the last
- time. */
- int ehdr_flags; /* Flags (dirty) for ELF header. */
- int phdr_flags; /* Flags (dirty|malloc) for program header. */
- int shdr_malloced; /* Nonzero if shdr array was allocated. */
- off64_t sizestr_offset; /* Offset of the size string in the parent
- if this is an archive member. */
- Elf32_Ehdr ehdr_mem; /* Memory used for ELF header when not
- mmaped. */
- char __e32scnspad[sizeof (Elf64_Ehdr) - sizeof (Elf32_Ehdr)];
-
- /* The section array. */
- Elf_ScnList scns;
- } elf32;
-
- struct
- {
- Elf64_Ehdr *ehdr; /* Pointer to the ELF header. This is
- never malloced. */
- Elf64_Shdr *shdr; /* Used when reading from a file. */
- Elf64_Phdr *phdr; /* Pointer to the program header array. */
- Elf_ScnList *scns_last; /* Last element in the section list.
- If NULL the data has not yet been
- read from the file. */
- Elf_Data_Chunk *rawchunks; /* List of elf_getdata_rawchunk results. */
- unsigned int scnincr; /* Number of sections allocate the last
- time. */
- int ehdr_flags; /* Flags (dirty) for ELF header. */
- int phdr_flags; /* Flags (dirty|malloc) for program header. */
- int shdr_malloced; /* Nonzero if shdr array was allocated. */
- off64_t sizestr_offset; /* Offset of the size string in the parent
- if this is an archive member. */
- Elf64_Ehdr ehdr_mem; /* Memory used for ELF header when not
- mmaped. */
-
- /* The section array. */
- Elf_ScnList scns;
- } elf64;
-
- struct
- {
- Elf *children; /* List of all descriptors for this archive. */
- Elf_Arsym *ar_sym; /* Symbol table returned by elf_getarsym. */
- size_t ar_sym_num; /* Number of entries in `ar_sym'. */
- char *long_names; /* If no index is available but long names
- are used this elements points to the data.*/
- size_t long_names_len; /* Length of the long name table. */
- off_t offset; /* Offset in file we are currently at.
- elf_next() advances this to the next
- member of the archive. */
- Elf_Arhdr elf_ar_hdr; /* Structure returned by 'elf_getarhdr'. */
- struct ar_hdr ar_hdr; /* Header read from file. */
- char ar_name[16]; /* NUL terminated ar_name of elf_ar_hdr. */
- char raw_name[17]; /* This is a buffer for the NUL terminated
- named raw_name used in the elf_ar_hdr. */
- } ar;
- } state;
-
- /* There absolutely never must be anything following the union. */
-};
-
-/* Type of the conversion functions. These functions will convert the
- byte order. */
-typedef void (*xfct_t) (void *, const void *, size_t, int);
-
-/* The table with the function pointers. */
-extern const xfct_t __elf_xfctstom[EV_NUM - 1][EV_NUM - 1][ELFCLASSNUM - 1][ELF_T_NUM] attribute_hidden;
-extern const xfct_t __elf_xfctstof[EV_NUM - 1][EV_NUM - 1][ELFCLASSNUM - 1][ELF_T_NUM] attribute_hidden;
-
-
-/* Array with sizes of the external types indexed by ELF version, binary
- class, and type. */
-extern const size_t __libelf_type_sizes[EV_NUM - 1][ELFCLASSNUM - 1][ELF_T_NUM] attribute_hidden;
-/* We often have to access the size for a type in the current version. */
-#if EV_NUM != 2
-# define elf_typesize(class,type,n) \
- elfw2(class,fsize) (type, n, __libelf_version)
-#else
-# define elf_typesize(class,type,n) \
- (__libelf_type_sizes[EV_CURRENT - 1][ELFW(ELFCLASS,class) - 1][type] * n)
-#endif
-
-/* Currently selected version of the ELF specification. */
-extern unsigned int __libelf_version attribute_hidden;
-
-/* The byte value used for filling gaps. */
-extern int __libelf_fill_byte attribute_hidden;
-
-/* Nonzero if the version was set. */
-extern int __libelf_version_initialized attribute_hidden;
-
-/* Index for __libelf_type_sizes et al. */
-#if EV_NUM == 2
-# define LIBELF_EV_IDX 0
-#else
-# define LIBELF_EV_IDX (__libelf_version - 1)
-#endif
-
-#if !ALLOW_UNALIGNED
-/* Array with alignment requirements of the internal types indexed by ELF
- version, binary class, and type. */
-extern const uint_fast8_t __libelf_type_aligns[EV_NUM - 1][ELFCLASSNUM - 1][ELF_T_NUM] attribute_hidden;
-# define __libelf_type_align(class, type) \
- (__libelf_type_aligns[LIBELF_EV_IDX][class - 1][type] ?: 1)
-#else
-# define __libelf_type_align(class, type) 1
-#endif
-
-/* The libelf API does not have such a function but it is still useful.
- Get the memory size for the given type.
-
- These functions cannot be marked internal since they are aliases
- of the export elfXX_fsize functions.*/
-extern size_t __elf32_msize (Elf_Type __type, size_t __count,
- unsigned int __version);
-extern size_t __elf64_msize (Elf_Type __type, size_t __count,
- unsigned int __version);
-
-
-/* Create Elf descriptor from memory image. */
-extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
- off_t offset, size_t maxsize,
- Elf_Cmd cmd, Elf *parent)
- internal_function;
-
-/* Set error value. */
-extern void __libelf_seterrno (int value) internal_function;
-
-/* Get the next archive header. */
-extern int __libelf_next_arhdr_wrlock (Elf *elf) internal_function;
-
-/* Read all of the file associated with the descriptor. */
-extern char *__libelf_readall (Elf *elf) internal_function;
-
-/* Read the complete section table and convert the byte order if necessary. */
-extern int __libelf_readsections (Elf *elf) internal_function;
-
-/* Store the information for the raw data in the `rawdata_list' element. */
-extern int __libelf_set_rawdata (Elf_Scn *scn) internal_function;
-extern int __libelf_set_rawdata_wrlock (Elf_Scn *scn) internal_function;
-
-
-/* Helper functions for elf_update. */
-extern off_t __elf32_updatenull_wrlock (Elf *elf, int *change_bop,
- size_t shnum) internal_function;
-extern off_t __elf64_updatenull_wrlock (Elf *elf, int *change_bop,
- size_t shnum) internal_function;
-
-extern int __elf32_updatemmap (Elf *elf, int change_bo, size_t shnum)
- internal_function;
-extern int __elf64_updatemmap (Elf *elf, int change_bo, size_t shnum)
- internal_function;
-extern int __elf32_updatefile (Elf *elf, int change_bo, size_t shnum)
- internal_function;
-extern int __elf64_updatefile (Elf *elf, int change_bo, size_t shnum)
- internal_function;
-
-
-/* Alias for exported functions to avoid PLT entries, and
- rdlock/wrlock variants of these functions. */
-extern int __elf_end_internal (Elf *__elf) attribute_hidden;
-extern Elf *__elf_begin_internal (int __fildes, Elf_Cmd __cmd, Elf *__ref)
- attribute_hidden;
-extern Elf32_Ehdr *__elf32_getehdr_wrlock (Elf *__elf) internal_function;
-extern Elf64_Ehdr *__elf64_getehdr_wrlock (Elf *__elf) internal_function;
-extern Elf32_Ehdr *__elf32_newehdr_internal (Elf *__elf) attribute_hidden;
-extern Elf64_Ehdr *__elf64_newehdr_internal (Elf *__elf) attribute_hidden;
-extern Elf32_Phdr *__elf32_getphdr_internal (Elf *__elf) attribute_hidden;
-extern Elf64_Phdr *__elf64_getphdr_internal (Elf *__elf) attribute_hidden;
-extern Elf32_Phdr *__elf32_getphdr_wrlock (Elf *__elf) attribute_hidden;
-extern Elf64_Phdr *__elf64_getphdr_wrlock (Elf *__elf) attribute_hidden;
-extern Elf32_Phdr *__elf32_newphdr_internal (Elf *__elf, size_t __cnt)
- attribute_hidden;
-extern Elf64_Phdr *__elf64_newphdr_internal (Elf *__elf, size_t __cnt)
- attribute_hidden;
-extern Elf_Scn *__elf32_offscn_internal (Elf *__elf, Elf32_Off __offset)
- attribute_hidden;
-extern Elf_Scn *__elf64_offscn_internal (Elf *__elf, Elf64_Off __offset)
- attribute_hidden;
-extern int __elf_getphdrnum_rdlock (Elf *__elf, size_t *__dst)
- internal_function;
-extern int __elf_getshdrnum_rdlock (Elf *__elf, size_t *__dst)
- internal_function;
-extern int __elf_getshdrstrndx_internal (Elf *__elf, size_t *__dst)
- attribute_hidden;
-extern Elf32_Shdr *__elf32_getshdr_rdlock (Elf_Scn *__scn) internal_function;
-extern Elf64_Shdr *__elf64_getshdr_rdlock (Elf_Scn *__scn) internal_function;
-extern Elf32_Shdr *__elf32_getshdr_wrlock (Elf_Scn *__scn) internal_function;
-extern Elf64_Shdr *__elf64_getshdr_wrlock (Elf_Scn *__scn) internal_function;
-extern Elf_Scn *__elf_getscn_internal (Elf *__elf, size_t __index)
- attribute_hidden;
-extern Elf_Scn *__elf_nextscn_internal (Elf *__elf, Elf_Scn *__scn)
- attribute_hidden;
-extern int __elf_scnshndx_internal (Elf_Scn *__scn) attribute_hidden;
-extern Elf_Data *__elf_getdata_internal (Elf_Scn *__scn, Elf_Data *__data)
- attribute_hidden;
-extern Elf_Data *__elf_getdata_rdlock (Elf_Scn *__scn, Elf_Data *__data)
- internal_function;
-extern Elf_Data *__elf_rawdata_internal (Elf_Scn *__scn, Elf_Data *__data)
- attribute_hidden;
-extern char *__elf_strptr_internal (Elf *__elf, size_t __index,
- size_t __offset) attribute_hidden;
-extern Elf_Data *__elf32_xlatetom_internal (Elf_Data *__dest,
- const Elf_Data *__src,
- unsigned int __encode)
- attribute_hidden;
-extern Elf_Data *__elf64_xlatetom_internal (Elf_Data *__dest,
- const Elf_Data *__src,
- unsigned int __encode)
- attribute_hidden;
-extern Elf_Data *__elf32_xlatetof_internal (Elf_Data *__dest,
- const Elf_Data *__src,
- unsigned int __encode)
- attribute_hidden;
-extern Elf_Data *__elf64_xlatetof_internal (Elf_Data *__dest,
- const Elf_Data *__src,
- unsigned int __encode)
- attribute_hidden;
-extern unsigned int __elf_version_internal (unsigned int __version)
- attribute_hidden;
-extern unsigned long int __elf_hash_internal (const char *__string)
- __attribute__ ((__pure__, visibility ("hidden")));
-extern long int __elf32_checksum_internal (Elf *__elf) attribute_hidden;
-extern long int __elf64_checksum_internal (Elf *__elf) attribute_hidden;
-
-
-extern GElf_Ehdr *__gelf_getehdr_rdlock (Elf *__elf, GElf_Ehdr *__dest)
- internal_function;
-extern size_t __gelf_fsize_internal (Elf *__elf, Elf_Type __type,
- size_t __count, unsigned int __version)
- attribute_hidden;
-extern GElf_Shdr *__gelf_getshdr_internal (Elf_Scn *__scn, GElf_Shdr *__dst)
- attribute_hidden;
-extern GElf_Sym *__gelf_getsym_internal (Elf_Data *__data, int __ndx,
- GElf_Sym *__dst) attribute_hidden;
-
-
-extern uint32_t __libelf_crc32 (uint32_t crc, unsigned char *buf, size_t len)
- attribute_hidden;
-
-
-/* We often have to update a flag iff a value changed. Make this
- convenient. */
-#define update_if_changed(var, exp, flag) \
- do { \
- __typeof__ (var) *_var = &(var); \
- __typeof__ (exp) _exp = (exp); \
- if (*_var != _exp) \
- { \
- *_var = _exp; \
- (flag) |= ELF_F_DIRTY; \
- } \
- } while (0)
-
-/* Align offset to 4 bytes as needed for note name and descriptor data. */
-#define NOTE_ALIGN(n) (((n) + 3) & -4U)
-
-/* Convenience macro. */
-#define INVALID_NDX(ndx, type, data) \
- unlikely ((data)->d_size / sizeof (type) <= (unsigned int) (ndx))
-
-#endif /* libelfP.h */
diff --git a/src/libelf/libelf_crc32.c b/src/libelf/libelf_crc32.c
deleted file mode 100644
index 1426faf1..00000000
--- a/src/libelf/libelf_crc32.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define crc32 attribute_hidden __libelf_crc32
-#define LIB_SYSTEM_H 1
-#include <libelf.h>
-#include "../lib/crc32.c"
diff --git a/src/libelf/libelf_next_prime.c b/src/libelf/libelf_next_prime.c
deleted file mode 100644
index 05229c32..00000000
--- a/src/libelf/libelf_next_prime.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#define next_prime attribute_hidden __libelf_next_prime
-#include "../lib/next_prime.c"
diff --git a/src/libelf/nlist.c b/src/libelf/nlist.c
deleted file mode 100644
index 41e5ff64..00000000
--- a/src/libelf/nlist.c
+++ /dev/null
@@ -1,243 +0,0 @@
-/* Extract symbol list from binary.
- Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2007 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <gelf.h>
-#include <libelf.h>
-#include <nlist.h>
-#include <unistd.h>
-
-#include "libelfP.h"
-
-
-struct hashentry
-{
- const char *str;
- GElf_Sym sym;
-};
-#define TYPE struct hashentry
-/* XXX Use a better hash function some day. */
-#define HASHFCT(str, len) INTUSE(elf_hash) (str)
-#define COMPARE(p1, p2) strcmp ((p1)->str, (p2)->str)
-#define CLASS static
-#define PREFIX nlist_
-#define xcalloc(n, m) calloc (n, m)
-#define next_prime(s) __libelf_next_prime (s)
-#include <fixedsizehash.h>
-
-
-int
-nlist (const char *filename, struct nlist *nl)
-{
- int fd;
- Elf *elf;
- Elf_Scn *scn = NULL;
- Elf_Scn *symscn = NULL;
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = NULL;
- Elf_Data *data;
- struct nlist_fshash *table;
- size_t nsyms;
- size_t cnt;
-
- /* Open the file. */
- fd = open (filename, O_RDONLY);
- if (fd == -1)
- {
- __libelf_seterrno (ELF_E_NOFILE);
- goto fail;
- }
-
- /* For compatibility reasons (`nlist' existed before ELF and libelf)
- we don't expect the caller to set the ELF version. Do this here
- if it hasn't happened yet. */
- if (__libelf_version_initialized == 0)
- INTUSE(elf_version) (EV_CURRENT);
-
- /* Now get an ELF descriptor. */
- elf = INTUSE(elf_begin) (fd, ELF_C_READ_MMAP, NULL);
- if (elf == NULL)
- goto fail_fd;
-
- /* Find a symbol table. We prefer the real symbol table but if it
- does not exist use the dynamic symbol table. */
- while ((scn = INTUSE(elf_nextscn) (elf, scn)) != NULL)
- {
- shdr = INTUSE(gelf_getshdr) (scn, &shdr_mem);
- if (shdr == NULL)
- goto fail_close;
-
- /* That is what we are looking for. */
- if (shdr->sh_type == SHT_SYMTAB)
- {
- symscn = scn;
- break;
- }
-
- /* Better than nothing. Remember this section. */
- if (shdr->sh_type == SHT_DYNSYM)
- symscn = scn;
- }
-
- if (symscn == NULL)
- /* We haven't found anything. Fail. */
- goto fail_close;
-
- /* Re-get the section header in case we found only the dynamic symbol
- table. */
- if (scn == NULL)
- shdr = INTUSE(gelf_getshdr) (symscn, &shdr_mem);
- /* SHDR->SH_LINK now contains the index of the string section. */
-
- /* Get the data for the symbol section. */
- data = INTUSE(elf_getdata) (symscn, NULL);
- if (data == NULL)
- goto fail_close;
-
- /* How many symbols are there? */
- nsyms = (shdr->sh_size
- / INTUSE(gelf_fsize) (elf, ELF_T_SYM, 1, data->d_version));
-
- /* Create the hash table. */
- table = nlist_fshash_init (nsyms);
- if (table == NULL)
- {
- __libelf_seterrno (ELF_E_NOMEM);
- goto fail_close;
- }
-
- /* Iterate over all the symbols in the section. */
- for (cnt = 0; cnt < nsyms; ++cnt)
- {
- struct hashentry mem;
- GElf_Sym *sym;
-
- /* Get the symbol. */
- sym = INTUSE(gelf_getsym) (data, cnt, &mem.sym);
- if (sym == NULL)
- goto fail_dealloc;
-
- /* Get the name of the symbol. */
- mem.str = INTUSE(elf_strptr) (elf, shdr->sh_link, sym->st_name);
- if (mem.str == NULL)
- goto fail_dealloc;
-
- /* Don't allow zero-length strings. */
- if (mem.str[0] == '\0')
- continue;
-
- /* And add it to the hash table. Note that we are using the
- overwrite version. This will ensure that
- a) global symbols are preferred over local symbols since
- they are all located at the end
- b) if there are multiple local symbols with the same name
- the last one is used.
- */
- (void) nlist_fshash_overwrite (table, mem.str, 0, &mem);
- }
-
- /* Now it is time to look for the symbols the user asked for.
- XXX What is a `null name/null string'? This is what the
- standard says terminates the list. Is it a null pointer
- or a zero-length string? We test for both... */
- while (nl->n_name != NULL && nl->n_name[0] != '\0')
- {
- struct hashentry search;
- const struct hashentry *found;
-
- /* Search for a matching entry in the hash table. */
- search.str = nl->n_name;
- found = nlist_fshash_find (table, nl->n_name, 0, &search);
-
- if (found != NULL)
- {
- /* Found it. */
- nl->n_value = found->sym.st_value;
- nl->n_scnum = found->sym.st_shndx;
- nl->n_type = GELF_ST_TYPE (found->sym.st_info);
- /* XXX What shall we fill in the next fields? */
- nl->n_sclass = 0;
- nl->n_numaux = 0;
- }
- else
- {
- /* Not there. */
- nl->n_value = 0;
- nl->n_scnum = 0;
- nl->n_type = 0;
- nl->n_sclass = 0;
- nl->n_numaux = 0;
- }
-
- /* Next search request. */
- ++nl;
- }
-
- /* Free the resources. */
- nlist_fshash_fini (table);
-
- /* We do not need the ELF descriptor anymore. */
- (void) INTUSE(elf_end) (elf);
-
- /* Neither the file descriptor. */
- (void) close (fd);
-
- return 0;
-
- fail_dealloc:
- nlist_fshash_fini (table);
-
- fail_close:
- /* We do not need the ELF descriptor anymore. */
- (void) INTUSE(elf_end) (elf);
-
- fail_fd:
- /* Neither the file descriptor. */
- (void) close (fd);
-
- fail:
- /* We have to set all entries to zero. */
- while (nl->n_name != NULL && nl->n_name[0] != '\0')
- {
- nl->n_value = 0;
- nl->n_scnum = 0;
- nl->n_type = 0;
- nl->n_sclass = 0;
- nl->n_numaux = 0;
-
- /* Next entry. */
- ++nl;
- }
-
- return -1;
-}
diff --git a/src/libelf/nlist.h b/src/libelf/nlist.h
deleted file mode 100644
index 59909182..00000000
--- a/src/libelf/nlist.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* Interface for nlist.
- Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _NLIST_H
-#define _NLIST_H 1
-
-
-/* Symbol list type. */
-struct nlist
-{
- char *n_name; /* Symbol name. */
- long int n_value; /* Value of symbol. */
- short int n_scnum; /* Section number found in. */
- unsigned short int n_type; /* Type of symbol. */
- char n_sclass; /* Storage class. */
- char n_numaux; /* Number of auxiliary entries. */
-};
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Get specified entries from file. */
-extern int nlist (__const char *__filename, struct nlist *__nl);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* nlist.h */
diff --git a/src/libelf/note_xlate.h b/src/libelf/note_xlate.h
deleted file mode 100644
index 62c6f63d..00000000
--- a/src/libelf/note_xlate.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Conversion functions for notes.
- Copyright (C) 2007, 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-static void
-elf_cvt_note (void *dest, const void *src, size_t len, int encode)
-{
- assert (sizeof (Elf32_Nhdr) == sizeof (Elf64_Nhdr));
-
- while (len >= sizeof (Elf32_Nhdr))
- {
- (1 ? Elf32_cvt_Nhdr : Elf64_cvt_Nhdr) (dest, src, sizeof (Elf32_Nhdr),
- encode);
- const Elf32_Nhdr *n = encode ? src : dest;
- Elf32_Word namesz = NOTE_ALIGN (n->n_namesz);
- Elf32_Word descsz = NOTE_ALIGN (n->n_descsz);
-
- len -= sizeof *n;
- src += sizeof *n;
- dest += sizeof *n;
-
- if (namesz > len)
- break;
- len -= namesz;
- if (descsz > len)
- break;
- len -= descsz;
-
- if (src != dest)
- memcpy (dest, src, namesz + descsz);
-
- src += namesz + descsz;
- dest += namesz + descsz;
- }
-
- /* Copy opver any leftover data unconcerted. Probably part of
- truncated name/desc data. */
- if (unlikely (len > 0) && src != dest)
- memcpy (dest, src, len);
-}
diff --git a/src/libelf/version_xlate.h b/src/libelf/version_xlate.h
deleted file mode 100644
index 16eaa19c..00000000
--- a/src/libelf/version_xlate.h
+++ /dev/null
@@ -1,220 +0,0 @@
-/* Conversion functions for versioning information.
- Copyright (C) 1998, 1999, 2000, 2002, 2003 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#include <assert.h>
-#include <gelf.h>
-
-#include "libelfP.h"
-
-
-static void
-elf_cvt_Verdef (void *dest, const void *src, size_t len, int encode)
-{
- /* We have two different record types: ElfXX_Verndef and ElfXX_Verdaux.
- To recognize them we have to walk the data structure and convert
- them one after the other. The ENCODE parameter specifies whether
- we are encoding or decoding. When we are encoding we can immediately
- use the data in the buffer; if not, we have to decode the data before
- using it. */
- size_t def_offset = 0;
- GElf_Verdef *ddest;
- GElf_Verdef *dsrc;
-
- /* We rely on the types being all the same size. */
- assert (sizeof (GElf_Verdef) == sizeof (Elf32_Verdef));
- assert (sizeof (GElf_Verdaux) == sizeof (Elf32_Verdaux));
- assert (sizeof (GElf_Verdef) == sizeof (Elf64_Verdef));
- assert (sizeof (GElf_Verdaux) == sizeof (Elf64_Verdaux));
-
- if (len == 0)
- return;
-
- do
- {
- size_t aux_offset;
- GElf_Verdaux *asrc;
-
- /* Test for correct offset. */
- if (def_offset > len || len - def_offset < sizeof (GElf_Verdef))
- return;
-
- /* Work the tree from the first record. */
- ddest = (GElf_Verdef *) ((char *) dest + def_offset);
- dsrc = (GElf_Verdef *) ((char *) src + def_offset);
-
- /* Decode first if necessary. */
- if (! encode)
- {
- ddest->vd_version = bswap_16 (dsrc->vd_version);
- ddest->vd_flags = bswap_16 (dsrc->vd_flags);
- ddest->vd_ndx = bswap_16 (dsrc->vd_ndx);
- ddest->vd_cnt = bswap_16 (dsrc->vd_cnt);
- ddest->vd_hash = bswap_32 (dsrc->vd_hash);
- ddest->vd_aux = bswap_32 (dsrc->vd_aux);
- ddest->vd_next = bswap_32 (dsrc->vd_next);
-
- aux_offset = def_offset + ddest->vd_aux;
- }
- else
- aux_offset = def_offset + dsrc->vd_aux;
-
- /* Handle all the auxiliary records belonging to this definition. */
- do
- {
- GElf_Verdaux *adest;
-
- /* Test for correct offset. */
- if (aux_offset > len || len - aux_offset < sizeof (GElf_Verdaux))
- return;
-
- adest = (GElf_Verdaux *) ((char *) dest + aux_offset);
- asrc = (GElf_Verdaux *) ((char *) src + aux_offset);
-
- if (encode)
- aux_offset += asrc->vda_next;
-
- adest->vda_name = bswap_32 (asrc->vda_name);
- adest->vda_next = bswap_32 (asrc->vda_next);
-
- if (! encode)
- aux_offset += adest->vda_next;
- }
- while (asrc->vda_next != 0);
-
- /* Encode now if necessary. */
- if (encode)
- {
- def_offset += dsrc->vd_next;
-
- ddest->vd_version = bswap_16 (dsrc->vd_version);
- ddest->vd_flags = bswap_16 (dsrc->vd_flags);
- ddest->vd_ndx = bswap_16 (dsrc->vd_ndx);
- ddest->vd_cnt = bswap_16 (dsrc->vd_cnt);
- ddest->vd_hash = bswap_32 (dsrc->vd_hash);
- ddest->vd_aux = bswap_32 (dsrc->vd_aux);
- ddest->vd_next = bswap_32 (dsrc->vd_next);
- }
- else
- def_offset += ddest->vd_next;
- }
- while (dsrc->vd_next != 0);
-}
-
-
-static void
-elf_cvt_Verneed (void *dest, const void *src, size_t len, int encode)
-{
- /* We have two different record types: ElfXX_Verndef and ElfXX_Verdaux.
- To recognize them we have to walk the data structure and convert
- them one after the other. The ENCODE parameter specifies whether
- we are encoding or decoding. When we are encoding we can immediately
- use the data in the buffer; if not, we have to decode the data before
- using it. */
- size_t need_offset = 0;
- GElf_Verneed *ndest;
- GElf_Verneed *nsrc;
-
- /* We rely on the types being all the same size. */
- assert (sizeof (GElf_Verneed) == sizeof (Elf32_Verneed));
- assert (sizeof (GElf_Vernaux) == sizeof (Elf32_Vernaux));
- assert (sizeof (GElf_Verneed) == sizeof (Elf64_Verneed));
- assert (sizeof (GElf_Vernaux) == sizeof (Elf64_Vernaux));
-
- if (len == 0)
- return;
-
- do
- {
- size_t aux_offset;
- GElf_Vernaux *asrc;
-
- /* Test for correct offset. */
- if (need_offset > len || len - need_offset < sizeof (GElf_Verneed))
- return;
-
- /* Work the tree from the first record. */
- ndest = (GElf_Verneed *) ((char *) dest + need_offset);
- nsrc = (GElf_Verneed *) ((char *) src + need_offset);
-
- /* Decode first if necessary. */
- if (! encode)
- {
- ndest->vn_version = bswap_16 (nsrc->vn_version);
- ndest->vn_cnt = bswap_16 (nsrc->vn_cnt);
- ndest->vn_file = bswap_32 (nsrc->vn_file);
- ndest->vn_aux = bswap_32 (nsrc->vn_aux);
- ndest->vn_next = bswap_32 (nsrc->vn_next);
-
- aux_offset = need_offset + ndest->vn_aux;
- }
- else
- aux_offset = need_offset + nsrc->vn_aux;
-
- /* Handle all the auxiliary records belonging to this requirement. */
- do
- {
- GElf_Vernaux *adest;
-
- /* Test for correct offset. */
- if (aux_offset > len || len - aux_offset < sizeof (GElf_Vernaux))
- return;
-
- adest = (GElf_Vernaux *) ((char *) dest + aux_offset);
- asrc = (GElf_Vernaux *) ((char *) src + aux_offset);
-
- if (encode)
- aux_offset += asrc->vna_next;
-
- adest->vna_hash = bswap_32 (asrc->vna_hash);
- adest->vna_flags = bswap_16 (asrc->vna_flags);
- adest->vna_other = bswap_16 (asrc->vna_other);
- adest->vna_name = bswap_32 (asrc->vna_name);
- adest->vna_next = bswap_32 (asrc->vna_next);
-
- if (! encode)
- aux_offset += adest->vna_next;
- }
- while (asrc->vna_next != 0);
-
- /* Encode now if necessary. */
- if (encode)
- {
- need_offset += nsrc->vn_next;
-
- ndest->vn_version = bswap_16 (nsrc->vn_version);
- ndest->vn_cnt = bswap_16 (nsrc->vn_cnt);
- ndest->vn_file = bswap_32 (nsrc->vn_file);
- ndest->vn_aux = bswap_32 (nsrc->vn_aux);
- ndest->vn_next = bswap_32 (nsrc->vn_next);
- }
- else
- need_offset += ndest->vn_next;
- }
- while (nsrc->vn_next != 0);
-}
diff --git a/src/src/libld_elf_i386.map b/src/libld_elf_i386.map
index 703af6d8..703af6d8 100644
--- a/src/src/libld_elf_i386.map
+++ b/src/libld_elf_i386.map
diff --git a/src/m4/ChangeLog b/src/m4/ChangeLog
deleted file mode 100644
index 163ee734..00000000
--- a/src/m4/ChangeLog
+++ /dev/null
@@ -1,78 +0,0 @@
-2014-07-14 Mark Wielaard <mjw@redhat.com>
-
- * biarch.m4 (utrace_BIARCH): Set biarch-no for cross-compile using
- AC_RUN_IFELSE extra argument.
-
-2013-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * biarch.m4 (utrace_BIARCH): Call AC_MSG_WARN if !BIARCH.
-
-2013-11-07 Roland McGrath <roland@redhat.com>
- Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * biarch.m4: New file.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * gettext.m4: Upgrade to gettext-0.18.2.
- * iconv.m4: Upgrade to gettext-0.18.2.
- * po.m4: Upgrade to gettext-0.18.2.
-
-2010-04-14 Roland McGrath <roland@redhat.com>
-
- * gettext.m4: Upgrade to gettext-0.17.
- * iconv.m4: Upgrade to gettext-0.17.
- * po.m4: Upgrade to gettext-0.17.
-
-2009-08-26 Roland McGrath <roland@redhat.com>
-
- * zip.m4 (eu_ZIPLIB): Don't apply lib/LIB suffix to args.
-
-2009-02-01 Roland McGrath <roland@redhat.com>
-
- * zip.m4: Fix --with/--without argument handling.
-
-2009-01-08 Roland McGrath <roland@redhat.com>
-
- * zip.am: New file.
- * Makefile.am (EXTRA_DIST): Add it.
-
-2007-06-05 Ulrich Drepper <drepper@redhat.com>
-
- * gettext.m4: Update from gettext 0.16.1.
- * iconv.m4: Likewise.
- * progtest.m4: Likewise.
- * nls.m4: New file.
- * po.m4: New file.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Remove glibc21.m4, intdiv0.m4,
- inttypes.m4, inttypes_h.m4, inttypes-pri.m4, isc-posix.m4,
- lib-ld.m4, lib-link.m4, lib-prefix.m4, stdint_h.m4, uintmax_t.m4,
- and ulonglong.m4.
- * glibc21.m4: Removed.
- * inttypes_h.m4: Removed.
- * inttypes.m4: Removed.
- * inttypes-pri.m4: Removed.
- * isc-posix.m4: Removed.
- * lib-ld.m4: Removed.
- * lib-link.m4: Removed.
- * lib-prefix.m4: Removed.
- * stdint_h.m4: Removed.
- * uintmax_t.m4: Removed.
- * ulonglong.m4: Removed.
-
-2002-03-22 gettextize <bug-gnu-gettext@gnu.org>
-
- * codeset.m4: Upgrade to gettext-0.11.
- * gettext.m4: Upgrade to gettext-0.11.
- * glibc21.m4: Upgrade to gettext-0.11.
- * iconv.m4: Upgrade to gettext-0.11.
- * isc-posix.m4: New file, from gettext-0.11.
- * lcmessage.m4: Upgrade to gettext-0.11.
- * lib-ld.m4: Upgrade to gettext-0.11.
- * lib-link.m4: Upgrade to gettext-0.11.
- * lib-prefix.m4: Upgrade to gettext-0.11.
- * progtest.m4: Upgrade to gettext-0.11.
- * Makefile.am (EXTRA_DIST): Add the new files.
diff --git a/src/m4/Makefile b/src/m4/Makefile
deleted file mode 100644
index a540ae0a..00000000
--- a/src/m4/Makefile
+++ /dev/null
@@ -1,425 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# m4/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-subdir = m4
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ChangeLog
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -DHAVE_CONFIG_H
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 0.161
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/m4
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/m4
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-EXTRA_DIST = codeset.m4 gettext.m4 iconv.m4 lcmessage.m4 progtest.m4 zip.m4
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits m4/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits m4/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-tags TAGS:
-
-ctags CTAGS:
-
-cscope cscopelist:
-
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic cscopelist-am \
- ctags-am distclean distclean-generic distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
- pdf-am ps ps-am tags-am uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/m4/Makefile.am b/src/m4/Makefile.am
deleted file mode 100644
index 3b0e1145..00000000
--- a/src/m4/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-
-##
-## Copyright (C) 2000-2009 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program. If not, see <http://www.gnu.org/licenses/>.
-##
-
-##m4-files-begin
-EXTRA_DIST = codeset.m4 gettext.m4 iconv.m4 lcmessage.m4 progtest.m4 zip.m4
diff --git a/src/m4/Makefile.in b/src/m4/Makefile.in
deleted file mode 100644
index a74f3ec0..00000000
--- a/src/m4/Makefile.in
+++ /dev/null
@@ -1,425 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = m4
-DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ChangeLog
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-SOURCES =
-DIST_SOURCES =
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-EXTRA_DIST = codeset.m4 gettext.m4 iconv.m4 lcmessage.m4 progtest.m4 zip.m4
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits m4/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits m4/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-tags TAGS:
-
-ctags CTAGS:
-
-cscope cscopelist:
-
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic cscopelist-am \
- ctags-am distclean distclean-generic distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
- pdf-am ps ps-am tags-am uninstall uninstall-am
-
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/m4/biarch.m4 b/src/m4/biarch.m4
deleted file mode 100644
index c238d8d1..00000000
--- a/src/m4/biarch.m4
+++ /dev/null
@@ -1,47 +0,0 @@
-AC_DEFUN([utrace_CC_m32], [dnl
-AC_CACHE_CHECK([$CC option for 32-bit word size], utrace_cv_CC_m32, [dnl
-save_CC="$CC"
-utrace_cv_CC_m32=none
-for ut_try in -m32 -m31; do
- [CC=`echo "$save_CC" | sed 's/ -m[36][241]//'`" $ut_try"]
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int foo (void) { return 1; }]])],
- [utrace_cv_CC_m32=$ut_try])
- test x$utrace_cv_CC_m32 = xnone || break
-done
-CC="$save_CC"])])
-
-AC_DEFUN([utrace_HOST64], [AC_REQUIRE([utrace_CC_m32])
-AS_IF([test x$utrace_cv_CC_m32 != xnone], [dnl
-AC_CACHE_CHECK([for 64-bit host], utrace_cv_host64, [dnl
-AC_EGREP_CPP([@utrace_host64@], [#include <stdint.h>
-#if (UINTPTR_MAX > 0xffffffffUL)
-@utrace_host64@
-#endif],
- utrace_cv_host64=yes, utrace_cv_host64=no)])
-AS_IF([test $utrace_cv_host64 = no],
- [utrace_biarch=-m64 utrace_thisarch=$utrace_cv_CC_m32],
- [utrace_biarch=$utrace_cv_CC_m32 utrace_thisarch=-m64])
-
-biarch_CC=`echo "$CC" | sed "s/ *${utrace_thisarch}//"`
-biarch_CC="$biarch_CC $utrace_biarch"])])
-
-AC_DEFUN([utrace_BIARCH], [AC_REQUIRE([utrace_HOST64])
-utrace_biarch_forced=no
-AC_ARG_WITH([biarch],
- AC_HELP_STRING([--with-biarch],
- [enable biarch tests despite build problems]),
- [AS_IF([test "x$with_biarch" != xno], [utrace_biarch_forced=yes])])
-AS_IF([test $utrace_biarch_forced = yes], [dnl
-utrace_cv_cc_biarch=yes
-AC_MSG_NOTICE([enabling biarch tests regardless using $biarch_CC])], [dnl
-AS_IF([test x$utrace_cv_CC_m32 != xnone], [dnl
-AC_CACHE_CHECK([whether $biarch_CC makes executables we can run],
- utrace_cv_cc_biarch, [dnl
-save_CC="$CC"
-CC="$biarch_CC"
-AC_RUN_IFELSE([AC_LANG_PROGRAM([], [])],
- utrace_cv_cc_biarch=yes, utrace_cv_cc_biarch=no, utrace_cv_cc_biarch=no)
-CC="$save_CC"])], [utrace_cv_cc_biarch=no])
-AS_IF([test $utrace_cv_cc_biarch != yes], [dnl
-AC_MSG_WARN([not running biarch tests, $biarch_CC does not work])])])
-AM_CONDITIONAL(BIARCH, [test $utrace_cv_cc_biarch = yes])])
diff --git a/src/m4/codeset.m4 b/src/m4/codeset.m4
deleted file mode 100644
index 59535ebc..00000000
--- a/src/m4/codeset.m4
+++ /dev/null
@@ -1,23 +0,0 @@
-# codeset.m4 serial AM1 (gettext-0.10.40)
-dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
-dnl This file is free software, distributed under the terms of the GNU
-dnl General Public License. As a special exception to the GNU General
-dnl Public License, this file may be distributed as part of a program
-dnl that contains a configuration script generated by Autoconf, under
-dnl the same distribution terms as the rest of that program.
-
-dnl From Bruno Haible.
-
-AC_DEFUN([AM_LANGINFO_CODESET],
-[
- AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
- [AC_TRY_LINK([#include <langinfo.h>],
- [char* cs = nl_langinfo(CODESET);],
- am_cv_langinfo_codeset=yes,
- am_cv_langinfo_codeset=no)
- ])
- if test $am_cv_langinfo_codeset = yes; then
- AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
- [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
- fi
-])
diff --git a/src/m4/gettext.m4 b/src/m4/gettext.m4
deleted file mode 100644
index 8d1f0665..00000000
--- a/src/m4/gettext.m4
+++ /dev/null
@@ -1,401 +0,0 @@
-# gettext.m4 serial 66 (gettext-0.18.2)
-dnl Copyright (C) 1995-2013 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-dnl
-dnl This file can can be used in projects which are not available under
-dnl the GNU General Public License or the GNU Library General Public
-dnl License but which still want to provide support for the GNU gettext
-dnl functionality.
-dnl Please note that the actual code of the GNU gettext library is covered
-dnl by the GNU Library General Public License, and the rest of the GNU
-dnl gettext package package is covered by the GNU General Public License.
-dnl They are *not* in the public domain.
-
-dnl Authors:
-dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
-dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
-
-dnl Macro to add for using GNU gettext.
-
-dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
-dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
-dnl default (if it is not specified or empty) is 'no-libtool'.
-dnl INTLSYMBOL should be 'external' for packages with no intl directory,
-dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
-dnl If INTLSYMBOL is 'use-libtool', then a libtool library
-dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
-dnl depending on --{enable,disable}-{shared,static} and on the presence of
-dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
-dnl $(top_builddir)/intl/libintl.a will be created.
-dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
-dnl implementations (in libc or libintl) without the ngettext() function
-dnl will be ignored. If NEEDSYMBOL is specified and is
-dnl 'need-formatstring-macros', then GNU gettext implementations that don't
-dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
-dnl INTLDIR is used to find the intl libraries. If empty,
-dnl the value '$(top_builddir)/intl/' is used.
-dnl
-dnl The result of the configuration is one of three cases:
-dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
-dnl and used.
-dnl Catalog format: GNU --> install in $(datadir)
-dnl Catalog extension: .mo after installation, .gmo in source tree
-dnl 2) GNU gettext has been found in the system's C library.
-dnl Catalog format: GNU --> install in $(datadir)
-dnl Catalog extension: .mo after installation, .gmo in source tree
-dnl 3) No internationalization, always use English msgid.
-dnl Catalog format: none
-dnl Catalog extension: none
-dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
-dnl The use of .gmo is historical (it was needed to avoid overwriting the
-dnl GNU format catalogs when building on a platform with an X/Open gettext),
-dnl but we keep it in order not to force irrelevant filename changes on the
-dnl maintainers.
-dnl
-AC_DEFUN([AM_GNU_GETTEXT],
-[
- dnl Argument checking.
- ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
- [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
-])])])])])
- ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
- [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
- ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
- [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
-])])])])
- define([gt_included_intl],
- ifelse([$1], [external],
- ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
- [yes]))
- define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
- gt_NEEDS_INIT
- AM_GNU_GETTEXT_NEED([$2])
-
- AC_REQUIRE([AM_PO_SUBDIRS])dnl
- ifelse(gt_included_intl, yes, [
- AC_REQUIRE([AM_INTL_SUBDIR])dnl
- ])
-
- dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
- AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
- AC_REQUIRE([AC_LIB_RPATH])
-
- dnl Sometimes libintl requires libiconv, so first search for libiconv.
- dnl Ideally we would do this search only after the
- dnl if test "$USE_NLS" = "yes"; then
- dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
- dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
- dnl the configure script would need to contain the same shell code
- dnl again, outside any 'if'. There are two solutions:
- dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
- dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
- dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
- dnl documented, we avoid it.
- ifelse(gt_included_intl, yes, , [
- AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
- ])
-
- dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation.
- gt_INTL_MACOSX
-
- dnl Set USE_NLS.
- AC_REQUIRE([AM_NLS])
-
- ifelse(gt_included_intl, yes, [
- BUILD_INCLUDED_LIBINTL=no
- USE_INCLUDED_LIBINTL=no
- ])
- LIBINTL=
- LTLIBINTL=
- POSUB=
-
- dnl Add a version number to the cache macros.
- case " $gt_needs " in
- *" need-formatstring-macros "*) gt_api_version=3 ;;
- *" need-ngettext "*) gt_api_version=2 ;;
- *) gt_api_version=1 ;;
- esac
- gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
- gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
-
- dnl If we use NLS figure out what method
- if test "$USE_NLS" = "yes"; then
- gt_use_preinstalled_gnugettext=no
- ifelse(gt_included_intl, yes, [
- AC_MSG_CHECKING([whether included gettext is requested])
- AC_ARG_WITH([included-gettext],
- [ --with-included-gettext use the GNU gettext library included here],
- nls_cv_force_use_gnu_gettext=$withval,
- nls_cv_force_use_gnu_gettext=no)
- AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
-
- nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
- if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
- ])
- dnl User does not insist on using GNU NLS library. Figure out what
- dnl to use. If GNU gettext is available we use this. Else we have
- dnl to fall back to GNU NLS library.
-
- if test $gt_api_version -ge 3; then
- gt_revision_test_code='
-#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
-#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
-#endif
-changequote(,)dnl
-typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
-changequote([,])dnl
-'
- else
- gt_revision_test_code=
- fi
- if test $gt_api_version -ge 2; then
- gt_expression_test_code=' + * ngettext ("", "", 0)'
- else
- gt_expression_test_code=
- fi
-
- AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
- [AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <libintl.h>
-$gt_revision_test_code
-extern int _nl_msg_cat_cntr;
-extern int *_nl_domain_bindings;
- ]],
- [[
-bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
- ]])],
- [eval "$gt_func_gnugettext_libc=yes"],
- [eval "$gt_func_gnugettext_libc=no"])])
-
- if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
- dnl Sometimes libintl requires libiconv, so first search for libiconv.
- ifelse(gt_included_intl, yes, , [
- AM_ICONV_LINK
- ])
- dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
- dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
- dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
- dnl even if libiconv doesn't exist.
- AC_LIB_LINKFLAGS_BODY([intl])
- AC_CACHE_CHECK([for GNU gettext in libintl],
- [$gt_func_gnugettext_libintl],
- [gt_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS $INCINTL"
- gt_save_LIBS="$LIBS"
- LIBS="$LIBS $LIBINTL"
- dnl Now see whether libintl exists and does not depend on libiconv.
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <libintl.h>
-$gt_revision_test_code
-extern int _nl_msg_cat_cntr;
-extern
-#ifdef __cplusplus
-"C"
-#endif
-const char *_nl_expand_alias (const char *);
- ]],
- [[
-bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
- ]])],
- [eval "$gt_func_gnugettext_libintl=yes"],
- [eval "$gt_func_gnugettext_libintl=no"])
- dnl Now see whether libintl exists and depends on libiconv.
- if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
- LIBS="$LIBS $LIBICONV"
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <libintl.h>
-$gt_revision_test_code
-extern int _nl_msg_cat_cntr;
-extern
-#ifdef __cplusplus
-"C"
-#endif
-const char *_nl_expand_alias (const char *);
- ]],
- [[
-bindtextdomain ("", "");
-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
- ]])],
- [LIBINTL="$LIBINTL $LIBICONV"
- LTLIBINTL="$LTLIBINTL $LTLIBICONV"
- eval "$gt_func_gnugettext_libintl=yes"
- ])
- fi
- CPPFLAGS="$gt_save_CPPFLAGS"
- LIBS="$gt_save_LIBS"])
- fi
-
- dnl If an already present or preinstalled GNU gettext() is found,
- dnl use it. But if this macro is used in GNU gettext, and GNU
- dnl gettext is already preinstalled in libintl, we update this
- dnl libintl. (Cf. the install rule in intl/Makefile.in.)
- if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
- || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
- && test "$PACKAGE" != gettext-runtime \
- && test "$PACKAGE" != gettext-tools; }; then
- gt_use_preinstalled_gnugettext=yes
- else
- dnl Reset the values set by searching for libintl.
- LIBINTL=
- LTLIBINTL=
- INCINTL=
- fi
-
- ifelse(gt_included_intl, yes, [
- if test "$gt_use_preinstalled_gnugettext" != "yes"; then
- dnl GNU gettext is not found in the C library.
- dnl Fall back on included GNU gettext library.
- nls_cv_use_gnu_gettext=yes
- fi
- fi
-
- if test "$nls_cv_use_gnu_gettext" = "yes"; then
- dnl Mark actions used to generate GNU NLS library.
- BUILD_INCLUDED_LIBINTL=yes
- USE_INCLUDED_LIBINTL=yes
- LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
- LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
- LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
- fi
-
- CATOBJEXT=
- if test "$gt_use_preinstalled_gnugettext" = "yes" \
- || test "$nls_cv_use_gnu_gettext" = "yes"; then
- dnl Mark actions to use GNU gettext tools.
- CATOBJEXT=.gmo
- fi
- ])
-
- if test -n "$INTL_MACOSX_LIBS"; then
- if test "$gt_use_preinstalled_gnugettext" = "yes" \
- || test "$nls_cv_use_gnu_gettext" = "yes"; then
- dnl Some extra flags are needed during linking.
- LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
- LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
- fi
- fi
-
- if test "$gt_use_preinstalled_gnugettext" = "yes" \
- || test "$nls_cv_use_gnu_gettext" = "yes"; then
- AC_DEFINE([ENABLE_NLS], [1],
- [Define to 1 if translation of program messages to the user's native language
- is requested.])
- else
- USE_NLS=no
- fi
- fi
-
- AC_MSG_CHECKING([whether to use NLS])
- AC_MSG_RESULT([$USE_NLS])
- if test "$USE_NLS" = "yes"; then
- AC_MSG_CHECKING([where the gettext function comes from])
- if test "$gt_use_preinstalled_gnugettext" = "yes"; then
- if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
- gt_source="external libintl"
- else
- gt_source="libc"
- fi
- else
- gt_source="included intl directory"
- fi
- AC_MSG_RESULT([$gt_source])
- fi
-
- if test "$USE_NLS" = "yes"; then
-
- if test "$gt_use_preinstalled_gnugettext" = "yes"; then
- if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
- AC_MSG_CHECKING([how to link with libintl])
- AC_MSG_RESULT([$LIBINTL])
- AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
- fi
-
- dnl For backward compatibility. Some packages may be using this.
- AC_DEFINE([HAVE_GETTEXT], [1],
- [Define if the GNU gettext() function is already present or preinstalled.])
- AC_DEFINE([HAVE_DCGETTEXT], [1],
- [Define if the GNU dcgettext() function is already present or preinstalled.])
- fi
-
- dnl We need to process the po/ directory.
- POSUB=po
- fi
-
- ifelse(gt_included_intl, yes, [
- dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
- dnl to 'yes' because some of the testsuite requires it.
- if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
- BUILD_INCLUDED_LIBINTL=yes
- fi
-
- dnl Make all variables we use known to autoconf.
- AC_SUBST([BUILD_INCLUDED_LIBINTL])
- AC_SUBST([USE_INCLUDED_LIBINTL])
- AC_SUBST([CATOBJEXT])
-
- dnl For backward compatibility. Some configure.ins may be using this.
- nls_cv_header_intl=
- nls_cv_header_libgt=
-
- dnl For backward compatibility. Some Makefiles may be using this.
- DATADIRNAME=share
- AC_SUBST([DATADIRNAME])
-
- dnl For backward compatibility. Some Makefiles may be using this.
- INSTOBJEXT=.mo
- AC_SUBST([INSTOBJEXT])
-
- dnl For backward compatibility. Some Makefiles may be using this.
- GENCAT=gencat
- AC_SUBST([GENCAT])
-
- dnl For backward compatibility. Some Makefiles may be using this.
- INTLOBJS=
- if test "$USE_INCLUDED_LIBINTL" = yes; then
- INTLOBJS="\$(GETTOBJS)"
- fi
- AC_SUBST([INTLOBJS])
-
- dnl Enable libtool support if the surrounding package wishes it.
- INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
- AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
- ])
-
- dnl For backward compatibility. Some Makefiles may be using this.
- INTLLIBS="$LIBINTL"
- AC_SUBST([INTLLIBS])
-
- dnl Make all documented variables known to autoconf.
- AC_SUBST([LIBINTL])
- AC_SUBST([LTLIBINTL])
- AC_SUBST([POSUB])
-])
-
-
-dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
-m4_define([gt_NEEDS_INIT],
-[
- m4_divert_text([DEFAULTS], [gt_needs=])
- m4_define([gt_NEEDS_INIT], [])
-])
-
-
-dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
-AC_DEFUN([AM_GNU_GETTEXT_NEED],
-[
- m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
-])
-
-
-dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
-AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
diff --git a/src/m4/iconv.m4 b/src/m4/iconv.m4
deleted file mode 100644
index a5036465..00000000
--- a/src/m4/iconv.m4
+++ /dev/null
@@ -1,268 +0,0 @@
-# iconv.m4 serial 18 (gettext-0.18.2)
-dnl Copyright (C) 2000-2002, 2007-2013 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-dnl From Bruno Haible.
-
-AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
-[
- dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
- AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
- AC_REQUIRE([AC_LIB_RPATH])
-
- dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
- dnl accordingly.
- AC_LIB_LINKFLAGS_BODY([iconv])
-])
-
-AC_DEFUN([AM_ICONV_LINK],
-[
- dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
- dnl those with the standalone portable GNU libiconv installed).
- AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
-
- dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
- dnl accordingly.
- AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
-
- dnl Add $INCICONV to CPPFLAGS before performing the following checks,
- dnl because if the user has installed libiconv and not disabled its use
- dnl via --without-libiconv-prefix, he wants to use it. The first
- dnl AC_LINK_IFELSE will then fail, the second AC_LINK_IFELSE will succeed.
- am_save_CPPFLAGS="$CPPFLAGS"
- AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
-
- AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
- am_cv_func_iconv="no, consider installing GNU libiconv"
- am_cv_lib_iconv=no
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <stdlib.h>
-#include <iconv.h>
- ]],
- [[iconv_t cd = iconv_open("","");
- iconv(cd,NULL,NULL,NULL,NULL);
- iconv_close(cd);]])],
- [am_cv_func_iconv=yes])
- if test "$am_cv_func_iconv" != yes; then
- am_save_LIBS="$LIBS"
- LIBS="$LIBS $LIBICONV"
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <stdlib.h>
-#include <iconv.h>
- ]],
- [[iconv_t cd = iconv_open("","");
- iconv(cd,NULL,NULL,NULL,NULL);
- iconv_close(cd);]])],
- [am_cv_lib_iconv=yes]
- [am_cv_func_iconv=yes])
- LIBS="$am_save_LIBS"
- fi
- ])
- if test "$am_cv_func_iconv" = yes; then
- AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
- dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11,
- dnl Solaris 10.
- am_save_LIBS="$LIBS"
- if test $am_cv_lib_iconv = yes; then
- LIBS="$LIBS $LIBICONV"
- fi
- AC_RUN_IFELSE(
- [AC_LANG_SOURCE([[
-#include <iconv.h>
-#include <string.h>
-int main ()
-{
- int result = 0;
- /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
- returns. */
- {
- iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
- if (cd_utf8_to_88591 != (iconv_t)(-1))
- {
- static const char input[] = "\342\202\254"; /* EURO SIGN */
- char buf[10];
- const char *inptr = input;
- size_t inbytesleft = strlen (input);
- char *outptr = buf;
- size_t outbytesleft = sizeof (buf);
- size_t res = iconv (cd_utf8_to_88591,
- (char **) &inptr, &inbytesleft,
- &outptr, &outbytesleft);
- if (res == 0)
- result |= 1;
- iconv_close (cd_utf8_to_88591);
- }
- }
- /* Test against Solaris 10 bug: Failures are not distinguishable from
- successful returns. */
- {
- iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
- if (cd_ascii_to_88591 != (iconv_t)(-1))
- {
- static const char input[] = "\263";
- char buf[10];
- const char *inptr = input;
- size_t inbytesleft = strlen (input);
- char *outptr = buf;
- size_t outbytesleft = sizeof (buf);
- size_t res = iconv (cd_ascii_to_88591,
- (char **) &inptr, &inbytesleft,
- &outptr, &outbytesleft);
- if (res == 0)
- result |= 2;
- iconv_close (cd_ascii_to_88591);
- }
- }
- /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
- {
- iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
- if (cd_88591_to_utf8 != (iconv_t)(-1))
- {
- static const char input[] = "\304";
- static char buf[2] = { (char)0xDE, (char)0xAD };
- const char *inptr = input;
- size_t inbytesleft = 1;
- char *outptr = buf;
- size_t outbytesleft = 1;
- size_t res = iconv (cd_88591_to_utf8,
- (char **) &inptr, &inbytesleft,
- &outptr, &outbytesleft);
- if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
- result |= 4;
- iconv_close (cd_88591_to_utf8);
- }
- }
-#if 0 /* This bug could be worked around by the caller. */
- /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
- {
- iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
- if (cd_88591_to_utf8 != (iconv_t)(-1))
- {
- static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
- char buf[50];
- const char *inptr = input;
- size_t inbytesleft = strlen (input);
- char *outptr = buf;
- size_t outbytesleft = sizeof (buf);
- size_t res = iconv (cd_88591_to_utf8,
- (char **) &inptr, &inbytesleft,
- &outptr, &outbytesleft);
- if ((int)res > 0)
- result |= 8;
- iconv_close (cd_88591_to_utf8);
- }
- }
-#endif
- /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
- provided. */
- if (/* Try standardized names. */
- iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
- /* Try IRIX, OSF/1 names. */
- && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
- /* Try AIX names. */
- && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
- /* Try HP-UX names. */
- && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
- result |= 16;
- return result;
-}]])],
- [am_cv_func_iconv_works=yes],
- [am_cv_func_iconv_works=no],
- [
-changequote(,)dnl
- case "$host_os" in
- aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
- *) am_cv_func_iconv_works="guessing yes" ;;
- esac
-changequote([,])dnl
- ])
- LIBS="$am_save_LIBS"
- ])
- case "$am_cv_func_iconv_works" in
- *no) am_func_iconv=no am_cv_lib_iconv=no ;;
- *) am_func_iconv=yes ;;
- esac
- else
- am_func_iconv=no am_cv_lib_iconv=no
- fi
- if test "$am_func_iconv" = yes; then
- AC_DEFINE([HAVE_ICONV], [1],
- [Define if you have the iconv() function and it works.])
- fi
- if test "$am_cv_lib_iconv" = yes; then
- AC_MSG_CHECKING([how to link with libiconv])
- AC_MSG_RESULT([$LIBICONV])
- else
- dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
- dnl either.
- CPPFLAGS="$am_save_CPPFLAGS"
- LIBICONV=
- LTLIBICONV=
- fi
- AC_SUBST([LIBICONV])
- AC_SUBST([LTLIBICONV])
-])
-
-dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
-dnl avoid warnings like
-dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
-dnl This is tricky because of the way 'aclocal' is implemented:
-dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
-dnl Otherwise aclocal's initial scan pass would miss the macro definition.
-dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
-dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
-dnl warnings.
-m4_define([gl_iconv_AC_DEFUN],
- m4_version_prereq([2.64],
- [[AC_DEFUN_ONCE(
- [$1], [$2])]],
- [m4_ifdef([gl_00GNULIB],
- [[AC_DEFUN_ONCE(
- [$1], [$2])]],
- [[AC_DEFUN(
- [$1], [$2])]])]))
-gl_iconv_AC_DEFUN([AM_ICONV],
-[
- AM_ICONV_LINK
- if test "$am_cv_func_iconv" = yes; then
- AC_MSG_CHECKING([for iconv declaration])
- AC_CACHE_VAL([am_cv_proto_iconv], [
- AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-#include <stdlib.h>
-#include <iconv.h>
-extern
-#ifdef __cplusplus
-"C"
-#endif
-#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
-size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
-#else
-size_t iconv();
-#endif
- ]],
- [[]])],
- [am_cv_proto_iconv_arg1=""],
- [am_cv_proto_iconv_arg1="const"])
- am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
- am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
- AC_MSG_RESULT([
- $am_cv_proto_iconv])
- AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
- [Define as const if the declaration of iconv() needs const.])
- dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
- m4_ifdef([gl_ICONV_H_DEFAULTS],
- [AC_REQUIRE([gl_ICONV_H_DEFAULTS])
- if test -n "$am_cv_proto_iconv_arg1"; then
- ICONV_CONST="const"
- fi
- ])
- fi
-])
diff --git a/src/m4/lcmessage.m4 b/src/m4/lcmessage.m4
deleted file mode 100644
index ffbf915f..00000000
--- a/src/m4/lcmessage.m4
+++ /dev/null
@@ -1,32 +0,0 @@
-# lcmessage.m4 serial 2 (gettext-0.10.40)
-dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
-dnl This file is free software, distributed under the terms of the GNU
-dnl General Public License. As a special exception to the GNU General
-dnl Public License, this file may be distributed as part of a program
-dnl that contains a configuration script generated by Autoconf, under
-dnl the same distribution terms as the rest of that program.
-dnl
-dnl This file can can be used in projects which are not available under
-dnl the GNU General Public License or the GNU Library General Public
-dnl License but which still want to provide support for the GNU gettext
-dnl functionality.
-dnl Please note that the actual code of the GNU gettext library is covered
-dnl by the GNU Library General Public License, and the rest of the GNU
-dnl gettext package package is covered by the GNU General Public License.
-dnl They are *not* in the public domain.
-
-dnl Authors:
-dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
-
-# Check whether LC_MESSAGES is available in <locale.h>.
-
-AC_DEFUN([AM_LC_MESSAGES],
- [if test $ac_cv_header_locale_h = yes; then
- AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
- [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
- am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
- if test $am_cv_val_LC_MESSAGES = yes; then
- AC_DEFINE(HAVE_LC_MESSAGES, 1,
- [Define if your <locale.h> file defines LC_MESSAGES.])
- fi
- fi])
diff --git a/src/m4/nls.m4 b/src/m4/nls.m4
deleted file mode 100644
index 7967cc2f..00000000
--- a/src/m4/nls.m4
+++ /dev/null
@@ -1,31 +0,0 @@
-# nls.m4 serial 3 (gettext-0.15)
-dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-dnl
-dnl This file can can be used in projects which are not available under
-dnl the GNU General Public License or the GNU Library General Public
-dnl License but which still want to provide support for the GNU gettext
-dnl functionality.
-dnl Please note that the actual code of the GNU gettext library is covered
-dnl by the GNU Library General Public License, and the rest of the GNU
-dnl gettext package package is covered by the GNU General Public License.
-dnl They are *not* in the public domain.
-
-dnl Authors:
-dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
-dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
-
-AC_PREREQ(2.50)
-
-AC_DEFUN([AM_NLS],
-[
- AC_MSG_CHECKING([whether NLS is requested])
- dnl Default is enabled NLS
- AC_ARG_ENABLE(nls,
- [ --disable-nls do not use Native Language Support],
- USE_NLS=$enableval, USE_NLS=yes)
- AC_MSG_RESULT($USE_NLS)
- AC_SUBST(USE_NLS)
-])
diff --git a/src/m4/po.m4 b/src/m4/po.m4
deleted file mode 100644
index f3957234..00000000
--- a/src/m4/po.m4
+++ /dev/null
@@ -1,452 +0,0 @@
-# po.m4 serial 20 (gettext-0.18.2)
-dnl Copyright (C) 1995-2013 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-dnl
-dnl This file can can be used in projects which are not available under
-dnl the GNU General Public License or the GNU Library General Public
-dnl License but which still want to provide support for the GNU gettext
-dnl functionality.
-dnl Please note that the actual code of the GNU gettext library is covered
-dnl by the GNU Library General Public License, and the rest of the GNU
-dnl gettext package package is covered by the GNU General Public License.
-dnl They are *not* in the public domain.
-
-dnl Authors:
-dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
-dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
-
-AC_PREREQ([2.60])
-
-dnl Checks for all prerequisites of the po subdirectory.
-AC_DEFUN([AM_PO_SUBDIRS],
-[
- AC_REQUIRE([AC_PROG_MAKE_SET])dnl
- AC_REQUIRE([AC_PROG_INSTALL])dnl
- AC_REQUIRE([AC_PROG_MKDIR_P])dnl
- AC_REQUIRE([AM_NLS])dnl
-
- dnl Release version of the gettext macros. This is used to ensure that
- dnl the gettext macros and po/Makefile.in.in are in sync.
- AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
-
- dnl Perform the following tests also if --disable-nls has been given,
- dnl because they are needed for "make dist" to work.
-
- dnl Search for GNU msgfmt in the PATH.
- dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
- dnl The second test excludes FreeBSD msgfmt.
- AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
- [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
- (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
- :)
- AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
-
- dnl Test whether it is GNU msgfmt >= 0.15.
-changequote(,)dnl
- case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
- *) MSGFMT_015=$MSGFMT ;;
- esac
-changequote([,])dnl
- AC_SUBST([MSGFMT_015])
-changequote(,)dnl
- case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
- *) GMSGFMT_015=$GMSGFMT ;;
- esac
-changequote([,])dnl
- AC_SUBST([GMSGFMT_015])
-
- dnl Search for GNU xgettext 0.12 or newer in the PATH.
- dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
- dnl The second test excludes FreeBSD xgettext.
- AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
- [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
- (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
- :)
- dnl Remove leftover from FreeBSD xgettext call.
- rm -f messages.po
-
- dnl Test whether it is GNU xgettext >= 0.15.
-changequote(,)dnl
- case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
- *) XGETTEXT_015=$XGETTEXT ;;
- esac
-changequote([,])dnl
- AC_SUBST([XGETTEXT_015])
-
- dnl Search for GNU msgmerge 0.11 or newer in the PATH.
- AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
- [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
-
- dnl Installation directories.
- dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
- dnl have to define it here, so that it can be used in po/Makefile.
- test -n "$localedir" || localedir='${datadir}/locale'
- AC_SUBST([localedir])
-
- dnl Support for AM_XGETTEXT_OPTION.
- test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
- AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
-
- AC_CONFIG_COMMANDS([po-directories], [[
- for ac_file in $CONFIG_FILES; do
- # Support "outfile[:infile[:infile...]]"
- case "$ac_file" in
- *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- esac
- # PO directories have a Makefile.in generated from Makefile.in.in.
- case "$ac_file" in */Makefile.in)
- # Adjust a relative srcdir.
- ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
- ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
- ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
- # In autoconf-2.13 it is called $ac_given_srcdir.
- # In autoconf-2.50 it is called $srcdir.
- test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
- case "$ac_given_srcdir" in
- .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
- /*) top_srcdir="$ac_given_srcdir" ;;
- *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- # Treat a directory as a PO directory if and only if it has a
- # POTFILES.in file. This allows packages to have multiple PO
- # directories under different names or in different locations.
- if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
- rm -f "$ac_dir/POTFILES"
- test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
- gt_tab=`printf '\t'`
- cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
- POMAKEFILEDEPS="POTFILES.in"
- # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
- # on $ac_dir but don't depend on user-specified configuration
- # parameters.
- if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
- # The LINGUAS file contains the set of available languages.
- if test -n "$OBSOLETE_ALL_LINGUAS"; then
- test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
- fi
- ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
- # Hide the ALL_LINGUAS assignment from automake < 1.5.
- eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
- POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
- else
- # The set of available languages was given in configure.in.
- # Hide the ALL_LINGUAS assignment from automake < 1.5.
- eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
- fi
- # Compute POFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
- # Compute UPDATEPOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
- # Compute DUMMYPOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
- # Compute GMOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
- case "$ac_given_srcdir" in
- .) srcdirpre= ;;
- *) srcdirpre='$(srcdir)/' ;;
- esac
- POFILES=
- UPDATEPOFILES=
- DUMMYPOFILES=
- GMOFILES=
- for lang in $ALL_LINGUAS; do
- POFILES="$POFILES $srcdirpre$lang.po"
- UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
- DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
- GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
- done
- # CATALOGS depends on both $ac_dir and the user's LINGUAS
- # environment variable.
- INST_LINGUAS=
- if test -n "$ALL_LINGUAS"; then
- for presentlang in $ALL_LINGUAS; do
- useit=no
- if test "%UNSET%" != "$LINGUAS"; then
- desiredlanguages="$LINGUAS"
- else
- desiredlanguages="$ALL_LINGUAS"
- fi
- for desiredlang in $desiredlanguages; do
- # Use the presentlang catalog if desiredlang is
- # a. equal to presentlang, or
- # b. a variant of presentlang (because in this case,
- # presentlang can be used as a fallback for messages
- # which are not translated in the desiredlang catalog).
- case "$desiredlang" in
- "$presentlang"*) useit=yes;;
- esac
- done
- if test $useit = yes; then
- INST_LINGUAS="$INST_LINGUAS $presentlang"
- fi
- done
- fi
- CATALOGS=
- if test -n "$INST_LINGUAS"; then
- for lang in $INST_LINGUAS; do
- CATALOGS="$CATALOGS $lang.gmo"
- done
- fi
- test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
- sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
- for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
- if test -f "$f"; then
- case "$f" in
- *.orig | *.bak | *~) ;;
- *) cat "$f" >> "$ac_dir/Makefile" ;;
- esac
- fi
- done
- fi
- ;;
- esac
- done]],
- [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
- # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
- # from automake < 1.5.
- eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
- # Capture the value of LINGUAS because we need it to compute CATALOGS.
- LINGUAS="${LINGUAS-%UNSET%}"
- ])
-])
-
-dnl Postprocesses a Makefile in a directory containing PO files.
-AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
-[
- # When this code is run, in config.status, two variables have already been
- # set:
- # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
- # - LINGUAS is the value of the environment variable LINGUAS at configure
- # time.
-
-changequote(,)dnl
- # Adjust a relative srcdir.
- ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
- ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
- ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
- # In autoconf-2.13 it is called $ac_given_srcdir.
- # In autoconf-2.50 it is called $srcdir.
- test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
- case "$ac_given_srcdir" in
- .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
- /*) top_srcdir="$ac_given_srcdir" ;;
- *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
-
- # Find a way to echo strings without interpreting backslash.
- if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
- gt_echo='echo'
- else
- if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
- gt_echo='printf %s\n'
- else
- echo_func () {
- cat <<EOT
-$*
-EOT
- }
- gt_echo='echo_func'
- fi
- fi
-
- # A sed script that extracts the value of VARIABLE from a Makefile.
- tab=`printf '\t'`
- sed_x_variable='
-# Test if the hold space is empty.
-x
-s/P/P/
-x
-ta
-# Yes it was empty. Look if we have the expected variable definition.
-/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{
- # Seen the first line of the variable definition.
- s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=//
- ba
-}
-bd
-:a
-# Here we are processing a line from the variable definition.
-# Remove comment, more precisely replace it with a space.
-s/#.*$/ /
-# See if the line ends in a backslash.
-tb
-:b
-s/\\$//
-# Print the line, without the trailing backslash.
-p
-tc
-# There was no trailing backslash. The end of the variable definition is
-# reached. Clear the hold space.
-s/^.*$//
-x
-bd
-:c
-# A trailing backslash means that the variable definition continues in the
-# next line. Put a nonempty string into the hold space to indicate this.
-s/^.*$/P/
-x
-:d
-'
-changequote([,])dnl
-
- # Set POTFILES to the value of the Makefile variable POTFILES.
- sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
- POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
- # Compute POTFILES_DEPS as
- # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
- POTFILES_DEPS=
- for file in $POTFILES; do
- POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
- done
- POMAKEFILEDEPS=""
-
- if test -n "$OBSOLETE_ALL_LINGUAS"; then
- test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
- fi
- if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
- # The LINGUAS file contains the set of available languages.
- ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
- POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
- else
- # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
- sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
- ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
- fi
- # Hide the ALL_LINGUAS assignment from automake < 1.5.
- eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
- # Compute POFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
- # Compute UPDATEPOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
- # Compute DUMMYPOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
- # Compute GMOFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
- # Compute PROPERTIESFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
- # Compute CLASSFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
- # Compute QMFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
- # Compute MSGFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
- # Compute RESOURCESDLLFILES
- # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
- case "$ac_given_srcdir" in
- .) srcdirpre= ;;
- *) srcdirpre='$(srcdir)/' ;;
- esac
- POFILES=
- UPDATEPOFILES=
- DUMMYPOFILES=
- GMOFILES=
- PROPERTIESFILES=
- CLASSFILES=
- QMFILES=
- MSGFILES=
- RESOURCESDLLFILES=
- for lang in $ALL_LINGUAS; do
- POFILES="$POFILES $srcdirpre$lang.po"
- UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
- DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
- GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
- PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
- CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
- QMFILES="$QMFILES $srcdirpre$lang.qm"
- frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
- MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
- frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
- RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
- done
- # CATALOGS depends on both $ac_dir and the user's LINGUAS
- # environment variable.
- INST_LINGUAS=
- if test -n "$ALL_LINGUAS"; then
- for presentlang in $ALL_LINGUAS; do
- useit=no
- if test "%UNSET%" != "$LINGUAS"; then
- desiredlanguages="$LINGUAS"
- else
- desiredlanguages="$ALL_LINGUAS"
- fi
- for desiredlang in $desiredlanguages; do
- # Use the presentlang catalog if desiredlang is
- # a. equal to presentlang, or
- # b. a variant of presentlang (because in this case,
- # presentlang can be used as a fallback for messages
- # which are not translated in the desiredlang catalog).
- case "$desiredlang" in
- "$presentlang"*) useit=yes;;
- esac
- done
- if test $useit = yes; then
- INST_LINGUAS="$INST_LINGUAS $presentlang"
- fi
- done
- fi
- CATALOGS=
- JAVACATALOGS=
- QTCATALOGS=
- TCLCATALOGS=
- CSHARPCATALOGS=
- if test -n "$INST_LINGUAS"; then
- for lang in $INST_LINGUAS; do
- CATALOGS="$CATALOGS $lang.gmo"
- JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
- QTCATALOGS="$QTCATALOGS $lang.qm"
- frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
- TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
- frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
- CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
- done
- fi
-
- sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
- tab=`printf '\t'`
- if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
- # Add dependencies that cannot be formulated as a simple suffix rule.
- for lang in $ALL_LINGUAS; do
- frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
- cat >> "$ac_file.tmp" <<EOF
-$frobbedlang.msg: $lang.po
-${tab}@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
-${tab}\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
-EOF
- done
- fi
- if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
- # Add dependencies that cannot be formulated as a simple suffix rule.
- for lang in $ALL_LINGUAS; do
- frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
- cat >> "$ac_file.tmp" <<EOF
-$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
-${tab}@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
-${tab}\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
-EOF
- done
- fi
- if test -n "$POMAKEFILEDEPS"; then
- cat >> "$ac_file.tmp" <<EOF
-Makefile: $POMAKEFILEDEPS
-EOF
- fi
- mv "$ac_file.tmp" "$ac_file"
-])
-
-dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
-AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
-[
- XGETTEXT_EXTRA_OPTIONS=
-])
-
-dnl Registers an option to be passed to xgettext in the po subdirectory.
-AC_DEFUN([AM_XGETTEXT_OPTION],
-[
- AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
- XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
-])
diff --git a/src/m4/progtest.m4 b/src/m4/progtest.m4
deleted file mode 100644
index a56365cd..00000000
--- a/src/m4/progtest.m4
+++ /dev/null
@@ -1,92 +0,0 @@
-# progtest.m4 serial 4 (gettext-0.14.2)
-dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-dnl
-dnl This file can can be used in projects which are not available under
-dnl the GNU General Public License or the GNU Library General Public
-dnl License but which still want to provide support for the GNU gettext
-dnl functionality.
-dnl Please note that the actual code of the GNU gettext library is covered
-dnl by the GNU Library General Public License, and the rest of the GNU
-dnl gettext package package is covered by the GNU General Public License.
-dnl They are *not* in the public domain.
-
-dnl Authors:
-dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
-
-AC_PREREQ(2.50)
-
-# Search path for a program which passes the given test.
-
-dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
-dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
-AC_DEFUN([AM_PATH_PROG_WITH_TEST],
-[
-# Prepare PATH_SEPARATOR.
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
-fi
-
-# Find out how to test for executable files. Don't use a zero-byte file,
-# as systems may use methods other than mode bits to determine executability.
-cat >conf$$.file <<_ASEOF
-#! /bin/sh
-exit 0
-_ASEOF
-chmod +x conf$$.file
-if test -x conf$$.file >/dev/null 2>&1; then
- ac_executable_p="test -x"
-else
- ac_executable_p="test -f"
-fi
-rm -f conf$$.file
-
-# Extract the first word of "$2", so it can be a program name with args.
-set dummy $2; ac_word=[$]2
-AC_MSG_CHECKING([for $ac_word])
-AC_CACHE_VAL(ac_cv_path_$1,
-[case "[$]$1" in
- [[\\/]]* | ?:[[\\/]]*)
- ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
- ;;
- *)
- ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in ifelse([$5], , $PATH, [$5]); do
- IFS="$ac_save_IFS"
- test -z "$ac_dir" && ac_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
- echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
- if [$3]; then
- ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
- break 2
- fi
- fi
- done
- done
- IFS="$ac_save_IFS"
-dnl If no 4th arg is given, leave the cache variable unset,
-dnl so AC_PATH_PROGS will keep looking.
-ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
-])dnl
- ;;
-esac])dnl
-$1="$ac_cv_path_$1"
-if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
- AC_MSG_RESULT([$]$1)
-else
- AC_MSG_RESULT(no)
-fi
-AC_SUBST($1)dnl
-])
diff --git a/src/m4/zip.m4 b/src/m4/zip.m4
deleted file mode 100644
index 8e4d545c..00000000
--- a/src/m4/zip.m4
+++ /dev/null
@@ -1,18 +0,0 @@
-dnl -*- Autoconf -*- test for either zlib or bzlib.
-dnl Defines --with-$1 argument, $2 automake conditional,
-dnl and sets AC_DEFINE(USE_$2) and LIBS.
-
-AC_DEFUN([eu_ZIPLIB], [dnl
-AC_ARG_WITH([[$1]],
-AC_HELP_STRING([--with-[$1]], [support [$1] compression in libdwfl]),,
- [with_[$1]=default])
-if test $with_[$1] != no; then
- AC_SEARCH_LIBS([$4], [$3], [with_[$1]=yes],
- [test $with_[$1] = default ||
- AC_MSG_ERROR([missing -l[$3] for --with-[$1]])])
-fi
-AM_CONDITIONAL([$2], test $with_[$1] = yes)
-if test $with_[$1] = yes; then
- AC_DEFINE(USE_[$2])
-fi
-AH_TEMPLATE(USE_[$2], [Support $5 decompression via -l$3.])])
diff --git a/src/src/make-debug-archive.in b/src/make-debug-archive.in
index c3fcbce4..c3fcbce4 100644
--- a/src/src/make-debug-archive.in
+++ b/src/make-debug-archive.in
diff --git a/src/src/nm.c b/src/nm.c
index 4f2e0e78..4f2e0e78 100644
--- a/src/src/nm.c
+++ b/src/nm.c
diff --git a/src/src/none_ld.c b/src/none_ld.c
index fb0f0fb2..fb0f0fb2 100644
--- a/src/src/none_ld.c
+++ b/src/none_ld.c
diff --git a/src/src/objdump.c b/src/objdump.c
index 87290ccb..87290ccb 100644
--- a/src/src/objdump.c
+++ b/src/objdump.c
diff --git a/src/po/ChangeLog b/src/po/ChangeLog
deleted file mode 100644
index 885cc587..00000000
--- a/src/po/ChangeLog
+++ /dev/null
@@ -1,113 +0,0 @@
-2014-12-18 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Update for 0.161.
-
-2014-08-25 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Update for 0.160.
-
-2014-05-20 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Regenerated.
-
-2014-05-17 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Update for 0.159.
-
-2014-01-03 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Update for 0.158.
-
-2013-07-30 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Update for 0.157.
-
-2013-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * *.po: Update for 0.156.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.in.in: Upgrade to gettext-0.18.2.
-
-2012-08-27 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Update for 0.155.
-
-2012-06-22 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Update for 0.154.
-
-2012-02-23 Mark Wielaard <mjw@redhat.com>
-
- * *.po: Update for 0.153.
-
-2010-04-21 Ulrich Drepper <drepper@redhat.com>
-
- * LINGUAS: Remove fr.po, it.po, nl.po, ru.po, zh_CN. The files
- contain no translations at all.
-
-2010-04-14 Roland McGrath <roland@redhat.com>
-
- * POTFILES.in: Add libdwfl/libdwflP.h.
-
- * LINGUAS: New file.
- * Makefile.in.in: Upgrade to gettext-0.17.
-
-2009-01-23 Ulrich Drepper <drepper@redhat.com>
-
- * Makevars (XGETTEXT_OPTIONS): Add --flag option for argp_error.
-
- * POTFILES.in: Add more files with translatable strings.
-
-2007-06-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.in.in: Update from gettext 0.16.1.
- * Rules-quot: Likewise.
- * Makevars: Add more XGGETEXT_OPTIONS.
-
- * remove-potcdata.sin: New file.
-
- * POTFILES.in: Also include messages from libelf.
-
-2007-04-18 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.in.in: Remove MKINSTALLDIRS.
- Define mkinstalldirs to mkdir -p.
-
-2006-04-04 Roland McGrath <roland@redhat.com>
-
- * POTFILES.in: Comment out lib/xstrdup.c, not distributed any more.
-
-2005-08-27 Ulrich Drepper <drepper@redhat.com>
-
- * POTFILES.in: Add src/strings.c.
-
-2005-08-15 Ulrich Drepper <drepper@redhat.com>
-
- * POTFILES.in: Add src/ranlib.c.
-
-2005-08-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.in.in (XGETTEXT_OPTIONS): Move adding of --flag options
- after magic Makevars line. Also look for ERROR from elflint.
-
-2005-07-21 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.in.in: Add src/elfcmp.
-
-2005-05-07 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.in.in (XGETTEXT_OPTIONS): Define.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * POTFILES.in: Remove unnecessary entries.
-
-2004-01-18 Ulrich Drepper <drepper@redhat.com>
-
- * POTFILES.in: Add files from libdw, libebl, and libasm.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/po/LINGUAS b/src/po/LINGUAS
deleted file mode 100644
index 4adcc52a..00000000
--- a/src/po/LINGUAS
+++ /dev/null
@@ -1,5 +0,0 @@
-# List of translations, i.e. .po files supplied by translators.
-de es ja pl uk
-
-# These are automagically created, not real translations.
-en@quot en@boldquot
diff --git a/src/po/Makefile b/src/po/Makefile
deleted file mode 100644
index 86af82fc..00000000
--- a/src/po/Makefile
+++ /dev/null
@@ -1,579 +0,0 @@
-# Makefile for PO directory in any package using GNU gettext.
-# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
-#
-# This file can be copied and used freely without restrictions. It can
-# be used in projects which are not available under the GNU General Public
-# License but which still want to provide support for the GNU gettext
-# functionality.
-# Please note that the actual code of GNU gettext is covered by the GNU
-# General Public License and is *not* in the public domain.
-#
-# Origin: gettext-0.18.2
-GETTEXT_MACRO_VERSION = 0.18
-
-PACKAGE = elfutils
-VERSION = 0.161
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-
-SHELL = /bin/sh
-
-
-srcdir = .
-top_srcdir = ..
-
-
-prefix = /usr/local
-exec_prefix = ${prefix}
-datarootdir = ${prefix}/share
-datadir = ${datarootdir}
-localedir = ${datarootdir}/locale
-gettextsrcdir = $(datadir)/gettext/po
-
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-
-# We use $(mkdir_p).
-# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
-# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
-# ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh does not start with $(SHELL), so we add it.
-# In automake >= 1.10, $(MKDIR_P) is derived from ${MKDIR_P}, which is defined
-# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
-# versions, $(mkinstalldirs) and $(install_sh) are unused.
-mkinstalldirs = $(SHELL) ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh -d
-install_sh = $(SHELL) ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-MKDIR_P = /bin/mkdir -p
-mkdir_p = $(MKDIR_P)
-
-GMSGFMT_ = /usr/bin/msgfmt
-GMSGFMT_no = /usr/bin/msgfmt
-GMSGFMT_yes = /usr/bin/msgfmt
-GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
-MSGFMT_ = /usr/bin/msgfmt
-MSGFMT_no = /usr/bin/msgfmt
-MSGFMT_yes = /usr/bin/msgfmt
-MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
-XGETTEXT_ = /usr/bin/xgettext
-XGETTEXT_no = /usr/bin/xgettext
-XGETTEXT_yes = /usr/bin/xgettext
-XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
-MSGMERGE = msgmerge
-MSGMERGE_UPDATE = /usr/bin/msgmerge --update
-MSGINIT = msginit
-MSGCONV = msgconv
-MSGFILTER = msgfilter
-
-POFILES = de.po es.po ja.po pl.po uk.po en@quot.po en@boldquot.po
-GMOFILES = de.gmo es.gmo ja.gmo pl.gmo uk.gmo en@quot.gmo en@boldquot.gmo
-UPDATEPOFILES = de.po-update es.po-update ja.po-update pl.po-update uk.po-update en@quot.po-update en@boldquot.po-update
-DUMMYPOFILES = de.nop es.nop ja.nop pl.nop uk.nop en@quot.nop en@boldquot.nop
-DISTFILES.common = Makefile.in.in remove-potcdate.sin \
-$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
-DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
-$(POFILES) $(GMOFILES) \
-$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
-
-POTFILES = \
- ../lib/xmalloc.c \
- ../lib/xstrndup.c \
- ../libasm/asm_error.c \
- ../libdw/dwarf_error.c \
- ../libdwfl/argp-std.c \
- ../libdwfl/libdwflP.h \
- ../libebl/eblbackendname.c \
- ../libebl/eblcorenotetypename.c \
- ../libebl/ebldynamictagname.c \
- ../libebl/eblobjecttypename.c \
- ../libebl/eblobjnote.c \
- ../libebl/eblobjnotetypename.c \
- ../libebl/eblosabiname.c \
- ../libebl/eblsectionname.c \
- ../libebl/eblsectiontypename.c \
- ../libebl/eblsegmenttypename.c \
- ../libebl/eblsymbolbindingname.c \
- ../libebl/eblsymboltypename.c \
- ../libelf/elf_error.c \
- ../src/addr2line.c \
- ../src/ar.c \
- ../src/arlib.c \
- ../src/elfcmp.c \
- ../src/elflint.c \
- ../src/findtextrel.c \
- ../src/i386_ld.c \
- ../src/ld.c \
- ../src/ldgeneric.c \
- ../src/ldscript.y \
- ../src/nm.c \
- ../src/objdump.c \
- ../src/ranlib.c \
- ../src/readelf.c \
- ../src/size.c \
- ../src/strings.c \
- ../src/strip.c \
- ../src/unstrip.c
-
-CATALOGS = de.gmo es.gmo ja.gmo pl.gmo uk.gmo en@quot.gmo en@boldquot.gmo
-
-# Makevars gets inserted here. (Don't remove this line!)
-# Makefile variables for PO directory in any package using GNU gettext.
-
-# Usually the message domain is the same as the package name.
-DOMAIN = $(PACKAGE)
-
-# These two variables depend on the location of this directory.
-subdir = po
-top_builddir = ..
-
-# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --flag=error:3:c-format \
- --flag=ERROR:1:c-format --flag=argp_error:2:c-format
-
-# This is the copyright holder that gets inserted into the header of the
-# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
-# package. (Note that the msgstr strings, extracted from the package's
-# sources, belong to the copyright holder of the package.) Translators are
-# expected to transfer the copyright for their translations to this person
-# or entity, or to disclaim their copyright. The empty string stands for
-# the public domain; in this case the translators are expected to disclaim
-# their copyright.
-COPYRIGHT_HOLDER = Red Hat, Inc.
-
-# This is the email address or URL to which the translators shall report
-# bugs in the untranslated strings:
-# - Strings which are not entire sentences, see the maintainer guidelines
-# in the GNU gettext documentation, section 'Preparing Strings'.
-# - Strings which use unclear terms or require additional context to be
-# understood.
-# - Strings which make invalid assumptions about notation of date, time or
-# money.
-# - Pluralisation problems.
-# - Incorrect English spelling.
-# - Incorrect formatting.
-# It can be your email address, or a mailing list address where translators
-# can write to without being subscribed, or the URL of a web page through
-# which the translators can contact you.
-MSGID_BUGS_ADDRESS = http://bugzilla.redhat.com/
-
-# This is the list of locale categories, beyond LC_MESSAGES, for which the
-# message catalogs shall be used. It is usually empty.
-EXTRA_LOCALE_CATEGORIES =
-
-.SUFFIXES:
-.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
-
-.po.mo:
- @echo "$(MSGFMT) -c -o $@ $<"; \
- $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
-
-.po.gmo:
- @lang=`echo $* | sed -e 's,.*/,,'`; \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
- cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
-
-.sin.sed:
- sed -e '/^#/d' $< > t-$@
- mv t-$@ $@
-
-
-all: all-yes
-
-all-yes: stamp-po
-all-no:
-
-# Ensure that the gettext macros and this Makefile.in.in are in sync.
-CHECK_MACRO_VERSION = \
- test "$(GETTEXT_MACRO_VERSION)" = "0.18" \
- || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version 0.18" 1>&2; \
- exit 1; \
- }
-
-# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
-# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
-# we don't want to bother translators with empty POT files). We assume that
-# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
-# In this case, stamp-po is a nop (i.e. a phony target).
-
-# stamp-po is a timestamp denoting the last time at which the CATALOGS have
-# been loosely updated. Its purpose is that when a developer or translator
-# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
-# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
-# invocations of "make" will do nothing. This timestamp would not be necessary
-# if updating the $(CATALOGS) would always touch them; however, the rule for
-# $(POFILES) has been designed to not touch files that don't need to be
-# changed.
-stamp-po: $(srcdir)/$(DOMAIN).pot
- @$(CHECK_MACRO_VERSION)
- test ! -f $(srcdir)/$(DOMAIN).pot || \
- test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
- @test ! -f $(srcdir)/$(DOMAIN).pot || { \
- echo "touch stamp-po" && \
- echo timestamp > stamp-poT && \
- mv stamp-poT stamp-po; \
- }
-
-# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
-# otherwise packages like GCC can not be built if only parts of the source
-# have been downloaded.
-
-# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
-# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
-# The determination of whether the package xyz is a GNU one is based on the
-# heuristic whether some file in the top level directory mentions "GNU xyz".
-# If GNU 'find' is available, we avoid grepping through monster files.
-$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
- if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
- LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU elfutils' /dev/null '{}' ';' 2>/dev/null; \
- else \
- LC_ALL=C grep 'GNU elfutils' $(top_srcdir)/* 2>/dev/null; \
- fi; \
- } | grep -v 'libtool:' >/dev/null; then \
- package_gnu='GNU '; \
- else \
- package_gnu=''; \
- fi; \
- if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
- msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
- else \
- msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
- fi; \
- case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
- $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
- --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
- --files-from=$(srcdir)/POTFILES.in \
- --copyright-holder='$(COPYRIGHT_HOLDER)' \
- --msgid-bugs-address="$$msgid_bugs_address" \
- ;; \
- *) \
- $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
- --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
- --files-from=$(srcdir)/POTFILES.in \
- --copyright-holder='$(COPYRIGHT_HOLDER)' \
- --package-name="$${package_gnu}elfutils" \
- --package-version='0.161' \
- --msgid-bugs-address="$$msgid_bugs_address" \
- ;; \
- esac
- test ! -f $(DOMAIN).po || { \
- if test -f $(srcdir)/$(DOMAIN).pot; then \
- sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
- sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
- if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
- rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
- else \
- rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
- mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
- fi; \
- else \
- mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
- fi; \
- }
-
-# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
-# every "make" invocation, only create it when it is missing.
-# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
-$(srcdir)/$(DOMAIN).pot:
- $(MAKE) $(DOMAIN).pot-update
-
-# This target rebuilds a PO file if $(DOMAIN).pot has changed.
-# Note that a PO file is not touched if it doesn't need to be changed.
-$(POFILES): $(srcdir)/$(DOMAIN).pot
- @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
- if test -f "$(srcdir)/$${lang}.po"; then \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
- cd $(srcdir) \
- && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
- $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
- *) \
- $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
- esac; \
- }; \
- else \
- $(MAKE) $${lang}.po-create; \
- fi
-
-
-install: install-exec install-data
-install-exec:
-install-data: install-data-yes
- if test "$(PACKAGE)" = "gettext-tools"; then \
- $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
- for file in $(DISTFILES.common) Makevars.template; do \
- $(INSTALL_DATA) $(srcdir)/$$file \
- $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- for file in Makevars; do \
- rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
- fi
-install-data-no: all
-install-data-yes: all
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- dir=$(localedir)/$$lang/LC_MESSAGES; \
- $(mkdir_p) $(DESTDIR)$$dir; \
- if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
- $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
- echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
- for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
- if test -n "$$lc"; then \
- if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
- link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
- mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
- for file in *; do \
- if test -f $$file; then \
- ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
- fi; \
- done); \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- else \
- if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
- :; \
- else \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- fi; \
- fi; \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
- ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
- cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
- fi; \
- done; \
- done
-
-install-strip: install
-
-installdirs: installdirs-exec installdirs-data
-installdirs-exec:
-installdirs-data: installdirs-data-yes
- if test "$(PACKAGE)" = "gettext-tools"; then \
- $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
- else \
- : ; \
- fi
-installdirs-data-no:
-installdirs-data-yes:
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- dir=$(localedir)/$$lang/LC_MESSAGES; \
- $(mkdir_p) $(DESTDIR)$$dir; \
- for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
- if test -n "$$lc"; then \
- if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
- link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
- mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
- for file in *; do \
- if test -f $$file; then \
- ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
- fi; \
- done); \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- else \
- if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
- :; \
- else \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- fi; \
- fi; \
- fi; \
- done; \
- done
-
-# Define this as empty until I found a useful application.
-installcheck:
-
-uninstall: uninstall-exec uninstall-data
-uninstall-exec:
-uninstall-data: uninstall-data-yes
- if test "$(PACKAGE)" = "gettext-tools"; then \
- for file in $(DISTFILES.common) Makevars.template; do \
- rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
- fi
-uninstall-data-no:
-uninstall-data-yes:
- catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- done; \
- done
-
-check: all
-
-info dvi ps pdf html tags TAGS ctags CTAGS ID:
-
-mostlyclean:
- rm -f remove-potcdate.sed
- rm -f stamp-poT
- rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
- rm -fr *.o
-
-clean: mostlyclean
-
-distclean: clean
- rm -f Makefile Makefile.in POTFILES *.mo
-
-maintainer-clean: distclean
- @echo "This command is intended for maintainers to use;"
- @echo "it deletes files that may require special tools to rebuild."
- rm -f stamp-po $(GMOFILES)
-
-distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
-dist distdir:
- $(MAKE) update-po
- @$(MAKE) dist2
-# This is a separate target because 'update-po' must be executed before.
-dist2: stamp-po $(DISTFILES)
- dists="$(DISTFILES)"; \
- if test "$(PACKAGE)" = "gettext-tools"; then \
- dists="$$dists Makevars.template"; \
- fi; \
- if test -f $(srcdir)/$(DOMAIN).pot; then \
- dists="$$dists $(DOMAIN).pot stamp-po"; \
- fi; \
- if test -f $(srcdir)/ChangeLog; then \
- dists="$$dists ChangeLog"; \
- fi; \
- for i in 0 1 2 3 4 5 6 7 8 9; do \
- if test -f $(srcdir)/ChangeLog.$$i; then \
- dists="$$dists ChangeLog.$$i"; \
- fi; \
- done; \
- if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
- for file in $$dists; do \
- if test -f $$file; then \
- cp -p $$file $(distdir) || exit 1; \
- else \
- cp -p $(srcdir)/$$file $(distdir) || exit 1; \
- fi; \
- done
-
-update-po: Makefile
- $(MAKE) $(DOMAIN).pot-update
- test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
- $(MAKE) update-gmo
-
-# General rule for creating PO files.
-
-.nop.po-create:
- @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
- echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
- exit 1
-
-# General rule for updating PO files.
-
-.nop.po-update:
- @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
- if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
- tmpdir=`pwd`; \
- echo "$$lang:"; \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
- cd $(srcdir); \
- if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
- $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
- *) \
- $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
- esac; \
- }; then \
- if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
- rm -f $$tmpdir/$$lang.new.po; \
- else \
- if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
- :; \
- else \
- echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
- exit 1; \
- fi; \
- fi; \
- else \
- echo "msgmerge for $$lang.po failed!" 1>&2; \
- rm -f $$tmpdir/$$lang.new.po; \
- fi
-
-$(DUMMYPOFILES):
-
-update-gmo: Makefile $(GMOFILES)
- @:
-
-# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
-# because execution permission bits may not work on the current file system.
-# Use /bin/sh, which is the shell determined by autoconf for the use by its
-# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
-Makefile: Makefile.in.in Makevars $(top_builddir)/config.status POTFILES.in LINGUAS
- cd $(top_builddir) \
- && /bin/sh ./config.status $(subdir)/$@.in po-directories
-
-force:
-
-# Tell versions [3.59,3.63) of GNU make not to export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
-# Special Makefile rules for English message catalogs with quotation marks.
-
-DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
-
-.SUFFIXES: .insert-header .po-update-en
-
-en@quot.po-create:
- $(MAKE) en@quot.po-update
-en@boldquot.po-create:
- $(MAKE) en@boldquot.po-update
-
-en@quot.po-update: en@quot.po-update-en
-en@boldquot.po-update: en@boldquot.po-update-en
-
-.insert-header.po-update-en:
- @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
- if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
- tmpdir=`pwd`; \
- echo "$$lang:"; \
- ll=`echo $$lang | sed -e 's/@.*//'`; \
- LC_ALL=C; export LC_ALL; \
- cd $(srcdir); \
- if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
- if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
- rm -f $$tmpdir/$$lang.new.po; \
- else \
- if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
- :; \
- else \
- echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
- exit 1; \
- fi; \
- fi; \
- else \
- echo "creation of $$lang.po failed!" 1>&2; \
- rm -f $$tmpdir/$$lang.new.po; \
- fi
-
-en@quot.insert-header: insert-header.sin
- sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
-
-en@boldquot.insert-header: insert-header.sin
- sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
-
-mostlyclean: mostlyclean-quot
-mostlyclean-quot:
- rm -f *.insert-header
diff --git a/src/po/Makefile.in b/src/po/Makefile.in
deleted file mode 100644
index 1b4b44ee..00000000
--- a/src/po/Makefile.in
+++ /dev/null
@@ -1,453 +0,0 @@
-# Makefile for PO directory in any package using GNU gettext.
-# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
-#
-# This file can be copied and used freely without restrictions. It can
-# be used in projects which are not available under the GNU General Public
-# License but which still want to provide support for the GNU gettext
-# functionality.
-# Please note that the actual code of GNU gettext is covered by the GNU
-# General Public License and is *not* in the public domain.
-#
-# Origin: gettext-0.18.2
-GETTEXT_MACRO_VERSION = 0.18
-
-PACKAGE = elfutils
-VERSION = 0.161
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-
-SHELL = /bin/sh
-
-
-srcdir = .
-top_srcdir = ..
-
-
-prefix = /usr/local
-exec_prefix = ${prefix}
-datarootdir = ${prefix}/share
-datadir = ${datarootdir}
-localedir = ${datarootdir}/locale
-gettextsrcdir = $(datadir)/gettext/po
-
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-
-# We use $(mkdir_p).
-# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
-# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
-# ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh does not start with $(SHELL), so we add it.
-# In automake >= 1.10, $(MKDIR_P) is derived from ${MKDIR_P}, which is defined
-# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
-# versions, $(mkinstalldirs) and $(install_sh) are unused.
-mkinstalldirs = $(SHELL) ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh -d
-install_sh = $(SHELL) ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-MKDIR_P = /bin/mkdir -p
-mkdir_p = $(MKDIR_P)
-
-GMSGFMT_ = /usr/bin/msgfmt
-GMSGFMT_no = /usr/bin/msgfmt
-GMSGFMT_yes = /usr/bin/msgfmt
-GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
-MSGFMT_ = /usr/bin/msgfmt
-MSGFMT_no = /usr/bin/msgfmt
-MSGFMT_yes = /usr/bin/msgfmt
-MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
-XGETTEXT_ = /usr/bin/xgettext
-XGETTEXT_no = /usr/bin/xgettext
-XGETTEXT_yes = /usr/bin/xgettext
-XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
-MSGMERGE = msgmerge
-MSGMERGE_UPDATE = /usr/bin/msgmerge --update
-MSGINIT = msginit
-MSGCONV = msgconv
-MSGFILTER = msgfilter
-
-POFILES = @POFILES@
-GMOFILES = @GMOFILES@
-UPDATEPOFILES = @UPDATEPOFILES@
-DUMMYPOFILES = @DUMMYPOFILES@
-DISTFILES.common = Makefile.in.in remove-potcdate.sin \
-$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
-DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
-$(POFILES) $(GMOFILES) \
-$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
-
-POTFILES = \
-
-CATALOGS = @CATALOGS@
-
-# Makevars gets inserted here. (Don't remove this line!)
-
-.SUFFIXES:
-.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
-
-.po.mo:
- @echo "$(MSGFMT) -c -o $@ $<"; \
- $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
-
-.po.gmo:
- @lang=`echo $* | sed -e 's,.*/,,'`; \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
- cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
-
-.sin.sed:
- sed -e '/^#/d' $< > t-$@
- mv t-$@ $@
-
-
-all: all-yes
-
-all-yes: stamp-po
-all-no:
-
-# Ensure that the gettext macros and this Makefile.in.in are in sync.
-CHECK_MACRO_VERSION = \
- test "$(GETTEXT_MACRO_VERSION)" = "0.18" \
- || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version 0.18" 1>&2; \
- exit 1; \
- }
-
-# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
-# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
-# we don't want to bother translators with empty POT files). We assume that
-# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
-# In this case, stamp-po is a nop (i.e. a phony target).
-
-# stamp-po is a timestamp denoting the last time at which the CATALOGS have
-# been loosely updated. Its purpose is that when a developer or translator
-# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
-# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
-# invocations of "make" will do nothing. This timestamp would not be necessary
-# if updating the $(CATALOGS) would always touch them; however, the rule for
-# $(POFILES) has been designed to not touch files that don't need to be
-# changed.
-stamp-po: $(srcdir)/$(DOMAIN).pot
- @$(CHECK_MACRO_VERSION)
- test ! -f $(srcdir)/$(DOMAIN).pot || \
- test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
- @test ! -f $(srcdir)/$(DOMAIN).pot || { \
- echo "touch stamp-po" && \
- echo timestamp > stamp-poT && \
- mv stamp-poT stamp-po; \
- }
-
-# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
-# otherwise packages like GCC can not be built if only parts of the source
-# have been downloaded.
-
-# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
-# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
-# The determination of whether the package xyz is a GNU one is based on the
-# heuristic whether some file in the top level directory mentions "GNU xyz".
-# If GNU 'find' is available, we avoid grepping through monster files.
-$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
- if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
- LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU elfutils' /dev/null '{}' ';' 2>/dev/null; \
- else \
- LC_ALL=C grep 'GNU elfutils' $(top_srcdir)/* 2>/dev/null; \
- fi; \
- } | grep -v 'libtool:' >/dev/null; then \
- package_gnu='GNU '; \
- else \
- package_gnu=''; \
- fi; \
- if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
- msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
- else \
- msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
- fi; \
- case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
- $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
- --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
- --files-from=$(srcdir)/POTFILES.in \
- --copyright-holder='$(COPYRIGHT_HOLDER)' \
- --msgid-bugs-address="$$msgid_bugs_address" \
- ;; \
- *) \
- $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
- --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
- --files-from=$(srcdir)/POTFILES.in \
- --copyright-holder='$(COPYRIGHT_HOLDER)' \
- --package-name="$${package_gnu}elfutils" \
- --package-version='0.161' \
- --msgid-bugs-address="$$msgid_bugs_address" \
- ;; \
- esac
- test ! -f $(DOMAIN).po || { \
- if test -f $(srcdir)/$(DOMAIN).pot; then \
- sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
- sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
- if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
- rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
- else \
- rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
- mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
- fi; \
- else \
- mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
- fi; \
- }
-
-# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
-# every "make" invocation, only create it when it is missing.
-# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
-$(srcdir)/$(DOMAIN).pot:
- $(MAKE) $(DOMAIN).pot-update
-
-# This target rebuilds a PO file if $(DOMAIN).pot has changed.
-# Note that a PO file is not touched if it doesn't need to be changed.
-$(POFILES): $(srcdir)/$(DOMAIN).pot
- @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
- if test -f "$(srcdir)/$${lang}.po"; then \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
- cd $(srcdir) \
- && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
- $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
- *) \
- $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
- esac; \
- }; \
- else \
- $(MAKE) $${lang}.po-create; \
- fi
-
-
-install: install-exec install-data
-install-exec:
-install-data: install-data-yes
- if test "$(PACKAGE)" = "gettext-tools"; then \
- $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
- for file in $(DISTFILES.common) Makevars.template; do \
- $(INSTALL_DATA) $(srcdir)/$$file \
- $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- for file in Makevars; do \
- rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
- fi
-install-data-no: all
-install-data-yes: all
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- dir=$(localedir)/$$lang/LC_MESSAGES; \
- $(mkdir_p) $(DESTDIR)$$dir; \
- if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
- $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
- echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
- for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
- if test -n "$$lc"; then \
- if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
- link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
- mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
- for file in *; do \
- if test -f $$file; then \
- ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
- fi; \
- done); \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- else \
- if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
- :; \
- else \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- fi; \
- fi; \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
- ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
- cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
- fi; \
- done; \
- done
-
-install-strip: install
-
-installdirs: installdirs-exec installdirs-data
-installdirs-exec:
-installdirs-data: installdirs-data-yes
- if test "$(PACKAGE)" = "gettext-tools"; then \
- $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
- else \
- : ; \
- fi
-installdirs-data-no:
-installdirs-data-yes:
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- dir=$(localedir)/$$lang/LC_MESSAGES; \
- $(mkdir_p) $(DESTDIR)$$dir; \
- for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
- if test -n "$$lc"; then \
- if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
- link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
- mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
- for file in *; do \
- if test -f $$file; then \
- ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
- fi; \
- done); \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- else \
- if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
- :; \
- else \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- fi; \
- fi; \
- fi; \
- done; \
- done
-
-# Define this as empty until I found a useful application.
-installcheck:
-
-uninstall: uninstall-exec uninstall-data
-uninstall-exec:
-uninstall-data: uninstall-data-yes
- if test "$(PACKAGE)" = "gettext-tools"; then \
- for file in $(DISTFILES.common) Makevars.template; do \
- rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
- fi
-uninstall-data-no:
-uninstall-data-yes:
- catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- done; \
- done
-
-check: all
-
-info dvi ps pdf html tags TAGS ctags CTAGS ID:
-
-mostlyclean:
- rm -f remove-potcdate.sed
- rm -f stamp-poT
- rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
- rm -fr *.o
-
-clean: mostlyclean
-
-distclean: clean
- rm -f Makefile Makefile.in POTFILES *.mo
-
-maintainer-clean: distclean
- @echo "This command is intended for maintainers to use;"
- @echo "it deletes files that may require special tools to rebuild."
- rm -f stamp-po $(GMOFILES)
-
-distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
-dist distdir:
- $(MAKE) update-po
- @$(MAKE) dist2
-# This is a separate target because 'update-po' must be executed before.
-dist2: stamp-po $(DISTFILES)
- dists="$(DISTFILES)"; \
- if test "$(PACKAGE)" = "gettext-tools"; then \
- dists="$$dists Makevars.template"; \
- fi; \
- if test -f $(srcdir)/$(DOMAIN).pot; then \
- dists="$$dists $(DOMAIN).pot stamp-po"; \
- fi; \
- if test -f $(srcdir)/ChangeLog; then \
- dists="$$dists ChangeLog"; \
- fi; \
- for i in 0 1 2 3 4 5 6 7 8 9; do \
- if test -f $(srcdir)/ChangeLog.$$i; then \
- dists="$$dists ChangeLog.$$i"; \
- fi; \
- done; \
- if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
- for file in $$dists; do \
- if test -f $$file; then \
- cp -p $$file $(distdir) || exit 1; \
- else \
- cp -p $(srcdir)/$$file $(distdir) || exit 1; \
- fi; \
- done
-
-update-po: Makefile
- $(MAKE) $(DOMAIN).pot-update
- test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
- $(MAKE) update-gmo
-
-# General rule for creating PO files.
-
-.nop.po-create:
- @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
- echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
- exit 1
-
-# General rule for updating PO files.
-
-.nop.po-update:
- @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
- if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
- tmpdir=`pwd`; \
- echo "$$lang:"; \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
- cd $(srcdir); \
- if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
- $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
- *) \
- $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
- esac; \
- }; then \
- if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
- rm -f $$tmpdir/$$lang.new.po; \
- else \
- if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
- :; \
- else \
- echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
- exit 1; \
- fi; \
- fi; \
- else \
- echo "msgmerge for $$lang.po failed!" 1>&2; \
- rm -f $$tmpdir/$$lang.new.po; \
- fi
-
-$(DUMMYPOFILES):
-
-update-gmo: Makefile $(GMOFILES)
- @:
-
-# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
-# because execution permission bits may not work on the current file system.
-# Use /bin/sh, which is the shell determined by autoconf for the use by its
-# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
-Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
- cd $(top_builddir) \
- && /bin/sh ./config.status $(subdir)/$@.in po-directories
-
-force:
-
-# Tell versions [3.59,3.63) of GNU make not to export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/po/Makefile.in.in b/src/po/Makefile.in.in
deleted file mode 100644
index fce63a6e..00000000
--- a/src/po/Makefile.in.in
+++ /dev/null
@@ -1,453 +0,0 @@
-# Makefile for PO directory in any package using GNU gettext.
-# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
-#
-# This file can be copied and used freely without restrictions. It can
-# be used in projects which are not available under the GNU General Public
-# License but which still want to provide support for the GNU gettext
-# functionality.
-# Please note that the actual code of GNU gettext is covered by the GNU
-# General Public License and is *not* in the public domain.
-#
-# Origin: gettext-0.18.2
-GETTEXT_MACRO_VERSION = 0.18
-
-PACKAGE = @PACKAGE@
-VERSION = @VERSION@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-
-SHELL = /bin/sh
-@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-datarootdir = @datarootdir@
-datadir = @datadir@
-localedir = @localedir@
-gettextsrcdir = $(datadir)/gettext/po
-
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-
-# We use $(mkdir_p).
-# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
-# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
-# @install_sh@ does not start with $(SHELL), so we add it.
-# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
-# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
-# versions, $(mkinstalldirs) and $(install_sh) are unused.
-mkinstalldirs = $(SHELL) @install_sh@ -d
-install_sh = $(SHELL) @install_sh@
-MKDIR_P = @MKDIR_P@
-mkdir_p = @mkdir_p@
-
-GMSGFMT_ = @GMSGFMT@
-GMSGFMT_no = @GMSGFMT@
-GMSGFMT_yes = @GMSGFMT_015@
-GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
-MSGFMT_ = @MSGFMT@
-MSGFMT_no = @MSGFMT@
-MSGFMT_yes = @MSGFMT_015@
-MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
-XGETTEXT_ = @XGETTEXT@
-XGETTEXT_no = @XGETTEXT@
-XGETTEXT_yes = @XGETTEXT_015@
-XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
-MSGMERGE = msgmerge
-MSGMERGE_UPDATE = @MSGMERGE@ --update
-MSGINIT = msginit
-MSGCONV = msgconv
-MSGFILTER = msgfilter
-
-POFILES = @POFILES@
-GMOFILES = @GMOFILES@
-UPDATEPOFILES = @UPDATEPOFILES@
-DUMMYPOFILES = @DUMMYPOFILES@
-DISTFILES.common = Makefile.in.in remove-potcdate.sin \
-$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
-DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
-$(POFILES) $(GMOFILES) \
-$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
-
-POTFILES = \
-
-CATALOGS = @CATALOGS@
-
-# Makevars gets inserted here. (Don't remove this line!)
-
-.SUFFIXES:
-.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
-
-.po.mo:
- @echo "$(MSGFMT) -c -o $@ $<"; \
- $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
-
-.po.gmo:
- @lang=`echo $* | sed -e 's,.*/,,'`; \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
- cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
-
-.sin.sed:
- sed -e '/^#/d' $< > t-$@
- mv t-$@ $@
-
-
-all: all-@USE_NLS@
-
-all-yes: stamp-po
-all-no:
-
-# Ensure that the gettext macros and this Makefile.in.in are in sync.
-CHECK_MACRO_VERSION = \
- test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
- || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
- exit 1; \
- }
-
-# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
-# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
-# we don't want to bother translators with empty POT files). We assume that
-# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
-# In this case, stamp-po is a nop (i.e. a phony target).
-
-# stamp-po is a timestamp denoting the last time at which the CATALOGS have
-# been loosely updated. Its purpose is that when a developer or translator
-# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
-# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
-# invocations of "make" will do nothing. This timestamp would not be necessary
-# if updating the $(CATALOGS) would always touch them; however, the rule for
-# $(POFILES) has been designed to not touch files that don't need to be
-# changed.
-stamp-po: $(srcdir)/$(DOMAIN).pot
- @$(CHECK_MACRO_VERSION)
- test ! -f $(srcdir)/$(DOMAIN).pot || \
- test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
- @test ! -f $(srcdir)/$(DOMAIN).pot || { \
- echo "touch stamp-po" && \
- echo timestamp > stamp-poT && \
- mv stamp-poT stamp-po; \
- }
-
-# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
-# otherwise packages like GCC can not be built if only parts of the source
-# have been downloaded.
-
-# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
-# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
-# The determination of whether the package xyz is a GNU one is based on the
-# heuristic whether some file in the top level directory mentions "GNU xyz".
-# If GNU 'find' is available, we avoid grepping through monster files.
-$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
- if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
- LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \
- else \
- LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
- fi; \
- } | grep -v 'libtool:' >/dev/null; then \
- package_gnu='GNU '; \
- else \
- package_gnu=''; \
- fi; \
- if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
- msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
- else \
- msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
- fi; \
- case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
- $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
- --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
- --files-from=$(srcdir)/POTFILES.in \
- --copyright-holder='$(COPYRIGHT_HOLDER)' \
- --msgid-bugs-address="$$msgid_bugs_address" \
- ;; \
- *) \
- $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
- --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
- --files-from=$(srcdir)/POTFILES.in \
- --copyright-holder='$(COPYRIGHT_HOLDER)' \
- --package-name="$${package_gnu}@PACKAGE@" \
- --package-version='@VERSION@' \
- --msgid-bugs-address="$$msgid_bugs_address" \
- ;; \
- esac
- test ! -f $(DOMAIN).po || { \
- if test -f $(srcdir)/$(DOMAIN).pot; then \
- sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
- sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
- if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
- rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
- else \
- rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
- mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
- fi; \
- else \
- mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
- fi; \
- }
-
-# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
-# every "make" invocation, only create it when it is missing.
-# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
-$(srcdir)/$(DOMAIN).pot:
- $(MAKE) $(DOMAIN).pot-update
-
-# This target rebuilds a PO file if $(DOMAIN).pot has changed.
-# Note that a PO file is not touched if it doesn't need to be changed.
-$(POFILES): $(srcdir)/$(DOMAIN).pot
- @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
- if test -f "$(srcdir)/$${lang}.po"; then \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
- cd $(srcdir) \
- && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
- $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
- *) \
- $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
- esac; \
- }; \
- else \
- $(MAKE) $${lang}.po-create; \
- fi
-
-
-install: install-exec install-data
-install-exec:
-install-data: install-data-@USE_NLS@
- if test "$(PACKAGE)" = "gettext-tools"; then \
- $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
- for file in $(DISTFILES.common) Makevars.template; do \
- $(INSTALL_DATA) $(srcdir)/$$file \
- $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- for file in Makevars; do \
- rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
- fi
-install-data-no: all
-install-data-yes: all
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- dir=$(localedir)/$$lang/LC_MESSAGES; \
- $(mkdir_p) $(DESTDIR)$$dir; \
- if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
- $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
- echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
- for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
- if test -n "$$lc"; then \
- if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
- link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
- mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
- for file in *; do \
- if test -f $$file; then \
- ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
- fi; \
- done); \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- else \
- if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
- :; \
- else \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- fi; \
- fi; \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
- ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
- cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
- fi; \
- done; \
- done
-
-install-strip: install
-
-installdirs: installdirs-exec installdirs-data
-installdirs-exec:
-installdirs-data: installdirs-data-@USE_NLS@
- if test "$(PACKAGE)" = "gettext-tools"; then \
- $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
- else \
- : ; \
- fi
-installdirs-data-no:
-installdirs-data-yes:
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- dir=$(localedir)/$$lang/LC_MESSAGES; \
- $(mkdir_p) $(DESTDIR)$$dir; \
- for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
- if test -n "$$lc"; then \
- if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
- link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
- mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
- for file in *; do \
- if test -f $$file; then \
- ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
- fi; \
- done); \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
- else \
- if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
- :; \
- else \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
- mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
- fi; \
- fi; \
- fi; \
- done; \
- done
-
-# Define this as empty until I found a useful application.
-installcheck:
-
-uninstall: uninstall-exec uninstall-data
-uninstall-exec:
-uninstall-data: uninstall-data-@USE_NLS@
- if test "$(PACKAGE)" = "gettext-tools"; then \
- for file in $(DISTFILES.common) Makevars.template; do \
- rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
- done; \
- else \
- : ; \
- fi
-uninstall-data-no:
-uninstall-data-yes:
- catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
- lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
- for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
- rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
- done; \
- done
-
-check: all
-
-info dvi ps pdf html tags TAGS ctags CTAGS ID:
-
-mostlyclean:
- rm -f remove-potcdate.sed
- rm -f stamp-poT
- rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
- rm -fr *.o
-
-clean: mostlyclean
-
-distclean: clean
- rm -f Makefile Makefile.in POTFILES *.mo
-
-maintainer-clean: distclean
- @echo "This command is intended for maintainers to use;"
- @echo "it deletes files that may require special tools to rebuild."
- rm -f stamp-po $(GMOFILES)
-
-distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
-dist distdir:
- $(MAKE) update-po
- @$(MAKE) dist2
-# This is a separate target because 'update-po' must be executed before.
-dist2: stamp-po $(DISTFILES)
- dists="$(DISTFILES)"; \
- if test "$(PACKAGE)" = "gettext-tools"; then \
- dists="$$dists Makevars.template"; \
- fi; \
- if test -f $(srcdir)/$(DOMAIN).pot; then \
- dists="$$dists $(DOMAIN).pot stamp-po"; \
- fi; \
- if test -f $(srcdir)/ChangeLog; then \
- dists="$$dists ChangeLog"; \
- fi; \
- for i in 0 1 2 3 4 5 6 7 8 9; do \
- if test -f $(srcdir)/ChangeLog.$$i; then \
- dists="$$dists ChangeLog.$$i"; \
- fi; \
- done; \
- if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
- for file in $$dists; do \
- if test -f $$file; then \
- cp -p $$file $(distdir) || exit 1; \
- else \
- cp -p $(srcdir)/$$file $(distdir) || exit 1; \
- fi; \
- done
-
-update-po: Makefile
- $(MAKE) $(DOMAIN).pot-update
- test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
- $(MAKE) update-gmo
-
-# General rule for creating PO files.
-
-.nop.po-create:
- @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
- echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
- exit 1
-
-# General rule for updating PO files.
-
-.nop.po-update:
- @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
- if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
- tmpdir=`pwd`; \
- echo "$$lang:"; \
- test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
- cd $(srcdir); \
- if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
- '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
- $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
- *) \
- $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
- esac; \
- }; then \
- if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
- rm -f $$tmpdir/$$lang.new.po; \
- else \
- if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
- :; \
- else \
- echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
- exit 1; \
- fi; \
- fi; \
- else \
- echo "msgmerge for $$lang.po failed!" 1>&2; \
- rm -f $$tmpdir/$$lang.new.po; \
- fi
-
-$(DUMMYPOFILES):
-
-update-gmo: Makefile $(GMOFILES)
- @:
-
-# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
-# because execution permission bits may not work on the current file system.
-# Use @SHELL@, which is the shell determined by autoconf for the use by its
-# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
-Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
- cd $(top_builddir) \
- && @SHELL@ ./config.status $(subdir)/$@.in po-directories
-
-force:
-
-# Tell versions [3.59,3.63) of GNU make not to export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/po/Makevars b/src/po/Makevars
deleted file mode 100644
index 8a8ebc60..00000000
--- a/src/po/Makevars
+++ /dev/null
@@ -1,42 +0,0 @@
-# Makefile variables for PO directory in any package using GNU gettext.
-
-# Usually the message domain is the same as the package name.
-DOMAIN = $(PACKAGE)
-
-# These two variables depend on the location of this directory.
-subdir = po
-top_builddir = ..
-
-# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --flag=error:3:c-format \
- --flag=ERROR:1:c-format --flag=argp_error:2:c-format
-
-# This is the copyright holder that gets inserted into the header of the
-# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
-# package. (Note that the msgstr strings, extracted from the package's
-# sources, belong to the copyright holder of the package.) Translators are
-# expected to transfer the copyright for their translations to this person
-# or entity, or to disclaim their copyright. The empty string stands for
-# the public domain; in this case the translators are expected to disclaim
-# their copyright.
-COPYRIGHT_HOLDER = Red Hat, Inc.
-
-# This is the email address or URL to which the translators shall report
-# bugs in the untranslated strings:
-# - Strings which are not entire sentences, see the maintainer guidelines
-# in the GNU gettext documentation, section 'Preparing Strings'.
-# - Strings which use unclear terms or require additional context to be
-# understood.
-# - Strings which make invalid assumptions about notation of date, time or
-# money.
-# - Pluralisation problems.
-# - Incorrect English spelling.
-# - Incorrect formatting.
-# It can be your email address, or a mailing list address where translators
-# can write to without being subscribed, or the URL of a web page through
-# which the translators can contact you.
-MSGID_BUGS_ADDRESS = http://bugzilla.redhat.com/
-
-# This is the list of locale categories, beyond LC_MESSAGES, for which the
-# message catalogs shall be used. It is usually empty.
-EXTRA_LOCALE_CATEGORIES =
diff --git a/src/po/POTFILES b/src/po/POTFILES
deleted file mode 100644
index ee2f104e..00000000
--- a/src/po/POTFILES
+++ /dev/null
@@ -1,37 +0,0 @@
- ../lib/xmalloc.c \
- ../lib/xstrndup.c \
- ../libasm/asm_error.c \
- ../libdw/dwarf_error.c \
- ../libdwfl/argp-std.c \
- ../libdwfl/libdwflP.h \
- ../libebl/eblbackendname.c \
- ../libebl/eblcorenotetypename.c \
- ../libebl/ebldynamictagname.c \
- ../libebl/eblobjecttypename.c \
- ../libebl/eblobjnote.c \
- ../libebl/eblobjnotetypename.c \
- ../libebl/eblosabiname.c \
- ../libebl/eblsectionname.c \
- ../libebl/eblsectiontypename.c \
- ../libebl/eblsegmenttypename.c \
- ../libebl/eblsymbolbindingname.c \
- ../libebl/eblsymboltypename.c \
- ../libelf/elf_error.c \
- ../src/addr2line.c \
- ../src/ar.c \
- ../src/arlib.c \
- ../src/elfcmp.c \
- ../src/elflint.c \
- ../src/findtextrel.c \
- ../src/i386_ld.c \
- ../src/ld.c \
- ../src/ldgeneric.c \
- ../src/ldscript.y \
- ../src/nm.c \
- ../src/objdump.c \
- ../src/ranlib.c \
- ../src/readelf.c \
- ../src/size.c \
- ../src/strings.c \
- ../src/strip.c \
- ../src/unstrip.c
diff --git a/src/po/POTFILES.in b/src/po/POTFILES.in
deleted file mode 100644
index 2058928d..00000000
--- a/src/po/POTFILES.in
+++ /dev/null
@@ -1,46 +0,0 @@
-# List of files which containing translatable strings.
-# Copyright (C) 2000-2010 Red Hat, Inc.
-
-# Files from the compatibility library
-lib/xmalloc.c
-#lib/xstrdup.c
-lib/xstrndup.c
-
-# Library sources
-libasm/asm_error.c
-libdw/dwarf_error.c
-libdwfl/argp-std.c
-libdwfl/libdwflP.h
-libebl/eblbackendname.c
-libebl/eblcorenotetypename.c
-libebl/ebldynamictagname.c
-libebl/eblobjecttypename.c
-libebl/eblobjnote.c
-libebl/eblobjnotetypename.c
-libebl/eblosabiname.c
-libebl/eblsectionname.c
-libebl/eblsectiontypename.c
-libebl/eblsegmenttypename.c
-libebl/eblsymbolbindingname.c
-libebl/eblsymboltypename.c
-libelf/elf_error.c
-
-# Program sources
-src/addr2line.c
-src/ar.c
-src/arlib.c
-src/elfcmp.c
-src/elflint.c
-src/findtextrel.c
-src/i386_ld.c
-src/ld.c
-src/ldgeneric.c
-src/ldscript.y
-src/nm.c
-src/objdump.c
-src/ranlib.c
-src/readelf.c
-src/size.c
-src/strings.c
-src/strip.c
-src/unstrip.c
diff --git a/src/po/Rules-quot b/src/po/Rules-quot
deleted file mode 100644
index 9c2a995e..00000000
--- a/src/po/Rules-quot
+++ /dev/null
@@ -1,47 +0,0 @@
-# Special Makefile rules for English message catalogs with quotation marks.
-
-DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
-
-.SUFFIXES: .insert-header .po-update-en
-
-en@quot.po-create:
- $(MAKE) en@quot.po-update
-en@boldquot.po-create:
- $(MAKE) en@boldquot.po-update
-
-en@quot.po-update: en@quot.po-update-en
-en@boldquot.po-update: en@boldquot.po-update-en
-
-.insert-header.po-update-en:
- @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
- if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
- tmpdir=`pwd`; \
- echo "$$lang:"; \
- ll=`echo $$lang | sed -e 's/@.*//'`; \
- LC_ALL=C; export LC_ALL; \
- cd $(srcdir); \
- if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
- if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
- rm -f $$tmpdir/$$lang.new.po; \
- else \
- if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
- :; \
- else \
- echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
- exit 1; \
- fi; \
- fi; \
- else \
- echo "creation of $$lang.po failed!" 1>&2; \
- rm -f $$tmpdir/$$lang.new.po; \
- fi
-
-en@quot.insert-header: insert-header.sin
- sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
-
-en@boldquot.insert-header: insert-header.sin
- sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
-
-mostlyclean: mostlyclean-quot
-mostlyclean-quot:
- rm -f *.insert-header
diff --git a/src/po/boldquot.sed b/src/po/boldquot.sed
deleted file mode 100644
index 4b937aa5..00000000
--- a/src/po/boldquot.sed
+++ /dev/null
@@ -1,10 +0,0 @@
-s/"\([^"]*\)"/“\1”/g
-s/`\([^`']*\)'/‘\1’/g
-s/ '\([^`']*\)' / ‘\1’ /g
-s/ '\([^`']*\)'$/ ‘\1’/g
-s/^'\([^`']*\)' /‘\1’ /g
-s/“”/""/g
-s/“/“/g
-s/”/”/g
-s/‘/‘/g
-s/’/’/g
diff --git a/src/po/de.gmo b/src/po/de.gmo
deleted file mode 100644
index 8cfb1cd5..00000000
--- a/src/po/de.gmo
+++ /dev/null
Binary files differ
diff --git a/src/po/de.po b/src/po/de.po
deleted file mode 100644
index dd89c84b..00000000
--- a/src/po/de.po
+++ /dev/null
@@ -1,6325 +0,0 @@
-# German translation of elfutils.
-# Copyright (C) 2009 THE elfutils'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the elfutils package.
-# , fuzzy
-#
-#
-# Thomas Spura <tomspur@fedoraproject.org>, 2009.
-# Cornelius Neckenig <tbull@fedoraproject.org>, 2009.
-# Michael Münch <micm@fedoraproject.org>, 2009.
-msgid ""
-msgstr ""
-"Project-Id-Version: elfutils VERSION\n"
-"Report-Msgid-Bugs-To: http://bugzilla.redhat.com/\n"
-"POT-Creation-Date: 2014-12-19 21:45+0100\n"
-"PO-Revision-Date: 2009-06-29 15:15+0200\n"
-"Last-Translator: Michael Münch <micm@fedoraproject.org>\n"
-"Language-Team: German\n"
-"Language: de\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Lokalize 0.3\n"
-
-#: lib/xmalloc.c:54 lib/xmalloc.c:68 lib/xmalloc.c:82 src/readelf.c:3182
-#: src/readelf.c:3559 src/readelf.c:8285 src/unstrip.c:2127 src/unstrip.c:2335
-#, c-format
-msgid "memory exhausted"
-msgstr "Kein Speicher mehr verfügbar"
-
-#: libasm/asm_error.c:65 libdw/dwarf_error.c:58 libdwfl/libdwflP.h:53
-#: libelf/elf_error.c:60
-msgid "no error"
-msgstr "kein Fehler"
-
-#: libasm/asm_error.c:66 libdw/dwarf_error.c:67 libdwfl/libdwflP.h:55
-#: libelf/elf_error.c:91
-msgid "out of memory"
-msgstr "nicht genügend Speicher"
-
-#: libasm/asm_error.c:67 src/ldgeneric.c:2677
-#, c-format
-msgid "cannot create output file"
-msgstr "Ausgangsdatei konnte nicht erstellt werden"
-
-#: libasm/asm_error.c:68
-msgid "invalid parameter"
-msgstr "ungültiger Parameter"
-
-#: libasm/asm_error.c:69
-msgid "cannot change mode of output file"
-msgstr "konnte Modus der Ausgabedatei nicht ändern"
-
-#: libasm/asm_error.c:70 src/ldgeneric.c:6990
-#, c-format
-msgid "cannot rename output file"
-msgstr "Ausgangsdatei konnte nicht umbenannt werden"
-
-#: libasm/asm_error.c:71
-msgid "duplicate symbol"
-msgstr "Symbol doppelt vorhanden"
-
-#: libasm/asm_error.c:72
-msgid "invalid section type for operation"
-msgstr "ungültiger Abschnittstyp für Operation"
-
-#: libasm/asm_error.c:73
-msgid "error during output of data"
-msgstr "Fehler bei Datenausgabe"
-
-#: libasm/asm_error.c:74
-msgid "no backend support available"
-msgstr "keine Backend-Unterstützung verfügbar"
-
-#: libasm/asm_error.c:84 libdw/dwarf_error.c:59 libdwfl/libdwflP.h:54
-#: libelf/elf_error.c:63
-msgid "unknown error"
-msgstr "unbekannter Fehler"
-
-#: libdw/dwarf_error.c:60
-msgid "invalid access"
-msgstr "Ungültiger Zugriff"
-
-#: libdw/dwarf_error.c:61
-msgid "no regular file"
-msgstr "Keine reguläre Date"
-
-#: libdw/dwarf_error.c:62
-msgid "I/O error"
-msgstr "I/O Fehler"
-
-#: libdw/dwarf_error.c:63
-msgid "invalid ELF file"
-msgstr "Ungültige ELF Datei"
-
-#: libdw/dwarf_error.c:64
-msgid "no DWARF information"
-msgstr "keine DWARF Information"
-
-#: libdw/dwarf_error.c:65
-msgid "no ELF file"
-msgstr "keine ELF Datei"
-
-#: libdw/dwarf_error.c:66
-msgid "cannot get ELF header"
-msgstr "ELF Kopf konnte nicht ausgelesen werden"
-
-#: libdw/dwarf_error.c:68
-msgid "not implemented"
-msgstr "Nicht implementiert"
-
-#: libdw/dwarf_error.c:69 libelf/elf_error.c:107 libelf/elf_error.c:155
-msgid "invalid command"
-msgstr "Ungültiger Befehl"
-
-#: libdw/dwarf_error.c:70
-msgid "invalid version"
-msgstr "Ungültige Version"
-
-#: libdw/dwarf_error.c:71
-msgid "invalid file"
-msgstr "Ungültige Datei"
-
-#: libdw/dwarf_error.c:72
-msgid "no entries found"
-msgstr "Keine Einträge gefunden"
-
-#: libdw/dwarf_error.c:73
-msgid "invalid DWARF"
-msgstr "DWARF ungültig"
-
-#: libdw/dwarf_error.c:74
-msgid "no string data"
-msgstr ""
-
-#: libdw/dwarf_error.c:75
-msgid "no address value"
-msgstr "Kein Adress-Wert"
-
-#: libdw/dwarf_error.c:76
-msgid "no constant value"
-msgstr "Kein Konstanten-Wert"
-
-#: libdw/dwarf_error.c:77
-msgid "no reference value"
-msgstr "Kein Referenz-Wert"
-
-#: libdw/dwarf_error.c:78
-msgid "invalid reference value"
-msgstr "Ungültiger Referenz-Wert"
-
-#: libdw/dwarf_error.c:79
-msgid ".debug_line section missing"
-msgstr ".debug_line Sektion fehlt"
-
-#: libdw/dwarf_error.c:80
-msgid "invalid .debug_line section"
-msgstr "ungültige .debug_line Sektion"
-
-#: libdw/dwarf_error.c:81
-msgid "debug information too big"
-msgstr "Debug Information zu groß"
-
-#: libdw/dwarf_error.c:82
-msgid "invalid DWARF version"
-msgstr "Ungültige DWARF Version"
-
-#: libdw/dwarf_error.c:83
-msgid "invalid directory index"
-msgstr "ungültiger Verzeichnisindex"
-
-#: libdw/dwarf_error.c:84 libdwfl/libdwflP.h:74
-msgid "address out of range"
-msgstr "Außerhalb des Adressbereiches"
-
-#: libdw/dwarf_error.c:85
-msgid "no location list value"
-msgstr ""
-
-#: libdw/dwarf_error.c:86
-msgid "no block data"
-msgstr ""
-
-#: libdw/dwarf_error.c:87
-msgid "invalid line index"
-msgstr "Ungültiger Zeilenindex"
-
-#: libdw/dwarf_error.c:88
-msgid "invalid address range index"
-msgstr "Ungültiger Adressbereichs Index"
-
-#: libdw/dwarf_error.c:89 libdwfl/libdwflP.h:75
-msgid "no matching address range"
-msgstr "Kein passender Adressbereich"
-
-#: libdw/dwarf_error.c:90
-msgid "no flag value"
-msgstr ""
-
-#: libdw/dwarf_error.c:91 libelf/elf_error.c:232
-msgid "invalid offset"
-msgstr "ungültiger Offset"
-
-#: libdw/dwarf_error.c:92
-msgid ".debug_ranges section missing"
-msgstr ""
-
-#: libdw/dwarf_error.c:93
-#, fuzzy
-msgid "invalid CFI section"
-msgstr "ungültiger Abschnitt"
-
-#: libdw/dwarf_error.c:94
-msgid "no alternative debug link found"
-msgstr ""
-
-#: libdw/dwarf_error.c:95
-#, fuzzy
-msgid "invalid opcode"
-msgstr "ungültiger Operand"
-
-#: libdwfl/argp-std.c:46 src/unstrip.c:2277
-msgid "Input selection options:"
-msgstr "Eingabeauswahloptionen:"
-
-#: libdwfl/argp-std.c:47
-msgid "Find addresses in FILE"
-msgstr "Finde Adressen in FILE"
-
-#: libdwfl/argp-std.c:49
-msgid "Find addresses from signatures found in COREFILE"
-msgstr "Finde Adressen von Signatur aus COREFILE"
-
-#: libdwfl/argp-std.c:51
-msgid "Find addresses in files mapped into process PID"
-msgstr ""
-
-#: libdwfl/argp-std.c:53
-msgid ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-msgstr ""
-
-#: libdwfl/argp-std.c:55
-msgid "Find addresses in the running kernel"
-msgstr "Finde Adressen im laufenden Kernel"
-
-#: libdwfl/argp-std.c:57
-msgid "Kernel with all modules"
-msgstr "Kernel mit allen Modulen"
-
-#: libdwfl/argp-std.c:59
-msgid "Search path for separate debuginfo files"
-msgstr "Dateisuchpfad für separate Debug-Informationen"
-
-#: libdwfl/argp-std.c:157
-msgid "only one of -e, -p, -k, -K, or --core allowed"
-msgstr "Nur eine Option von -e, -p, -k, -K, oder --core erlaubt"
-
-#: libdwfl/argp-std.c:230
-msgid "cannot load kernel symbols"
-msgstr "Konnte Kernel Symbole nicht laden"
-
-#: libdwfl/argp-std.c:234
-msgid "cannot find kernel modules"
-msgstr "Konnte Kernel Module nicht finden"
-
-#: libdwfl/argp-std.c:251
-msgid "cannot find kernel or modules"
-msgstr "Konnte Kernel oder Module nicht finden"
-
-#: libdwfl/argp-std.c:290
-#, c-format
-msgid "cannot read ELF core file: %s"
-msgstr "Konnte ELF Kerndatei %s nicht lesen"
-
-#: libdwfl/argp-std.c:311
-msgid "No modules recognized in core file"
-msgstr "Keine Module in der Kerndatei gefunden"
-
-#: libdwfl/libdwflP.h:56
-msgid "See errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:57
-msgid "See elf_errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:58
-msgid "See dwarf_errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:59
-msgid "See ebl_errno (XXX missing)"
-msgstr ""
-
-#: libdwfl/libdwflP.h:60
-msgid "gzip decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:61
-msgid "bzip2 decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:62
-msgid "LZMA decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:63
-msgid "no support library found for machine"
-msgstr ""
-
-#: libdwfl/libdwflP.h:64
-msgid "Callbacks missing for ET_REL file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:65
-msgid "Unsupported relocation type"
-msgstr ""
-
-#: libdwfl/libdwflP.h:66
-msgid "r_offset is bogus"
-msgstr ""
-
-#: libdwfl/libdwflP.h:67 libelf/elf_error.c:111 libelf/elf_error.c:171
-msgid "offset out of range"
-msgstr "Offset ausserhalb des Bereichs"
-
-#: libdwfl/libdwflP.h:68
-#, fuzzy
-msgid "relocation refers to undefined symbol"
-msgstr "Zeige Grösse der definierten Symbole"
-
-#: libdwfl/libdwflP.h:69
-msgid "Callback returned failure"
-msgstr ""
-
-#: libdwfl/libdwflP.h:70
-#, fuzzy
-msgid "No DWARF information found"
-msgstr "keine DWARF Information"
-
-#: libdwfl/libdwflP.h:71
-msgid "No symbol table found"
-msgstr ""
-
-#: libdwfl/libdwflP.h:72
-#, fuzzy
-msgid "No ELF program headers"
-msgstr "Programm-Köpfe anzeigen"
-
-#: libdwfl/libdwflP.h:73
-msgid "address range overlaps an existing module"
-msgstr ""
-
-#: libdwfl/libdwflP.h:76
-msgid "image truncated"
-msgstr ""
-
-#: libdwfl/libdwflP.h:77
-#, fuzzy
-msgid "ELF file opened"
-msgstr "keine ELF Datei"
-
-#: libdwfl/libdwflP.h:78
-#, fuzzy
-msgid "not a valid ELF file"
-msgstr "Ungültige ELF Datei"
-
-#: libdwfl/libdwflP.h:79
-#, fuzzy
-msgid "cannot handle DWARF type description"
-msgstr "konnte Elf-Deskriptor nicht erzeugen: %s"
-
-#: libdwfl/libdwflP.h:80
-msgid "ELF file does not match build ID"
-msgstr ""
-
-#: libdwfl/libdwflP.h:81
-#, fuzzy
-msgid "corrupt .gnu.prelink_undo section data"
-msgstr "konnte Abschnittsdaten nicht holen: %s"
-
-#: libdwfl/libdwflP.h:82
-msgid "Internal error due to ebl"
-msgstr ""
-
-#: libdwfl/libdwflP.h:83
-msgid "Missing data in core file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:84
-#, fuzzy
-msgid "Invalid register"
-msgstr "ungültiger Parameter"
-
-#: libdwfl/libdwflP.h:85
-msgid "Error reading process memory"
-msgstr ""
-
-#: libdwfl/libdwflP.h:86
-msgid "Couldn't find architecture of any ELF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:87
-msgid "Error parsing /proc filesystem"
-msgstr ""
-
-#: libdwfl/libdwflP.h:88
-#, fuzzy
-msgid "Invalid DWARF"
-msgstr "DWARF ungültig"
-
-#: libdwfl/libdwflP.h:89
-msgid "Unsupported DWARF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:90
-msgid "Unable to find more threads"
-msgstr ""
-
-#: libdwfl/libdwflP.h:91
-msgid "Dwfl already has attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:92
-msgid "Dwfl has no attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:93
-msgid "Unwinding not supported for this architecture"
-msgstr ""
-
-#: libdwfl/libdwflP.h:94
-#, fuzzy
-msgid "Invalid argument"
-msgstr "ungültiger Parameter"
-
-#: libdwfl/libdwflP.h:95
-#, fuzzy
-msgid "Not an ET_CORE ELF file"
-msgstr "Ungültige ELF Datei"
-
-#: libebl/eblbackendname.c:42
-msgid "No backend"
-msgstr "Kein Backend"
-
-#: libebl/eblcorenotetypename.c:102 libebl/eblobjecttypename.c:57
-#: libebl/eblobjnotetypename.c:73 libebl/eblosabiname.c:77
-#: libebl/eblsectionname.c:89 libebl/eblsectiontypename.c:119
-#: libebl/eblsegmenttypename.c:83
-msgid "<unknown>"
-msgstr "<Unbekannt>"
-
-#: libebl/ebldynamictagname.c:105
-#, c-format
-msgid "<unknown>: %#<PRIx64>"
-msgstr "<Unbekannt>: %#<PRIx64>"
-
-#: libebl/eblobjnote.c:55
-#, fuzzy, c-format
-msgid "unknown SDT version %u\n"
-msgstr "unbekannte Version"
-
-#: libebl/eblobjnote.c:73
-#, fuzzy, c-format
-msgid "invalid SDT probe descriptor\n"
-msgstr "ungültiger Datei-Deskriptor"
-
-#: libebl/eblobjnote.c:123
-#, c-format
-msgid " PC: "
-msgstr ""
-
-#: libebl/eblobjnote.c:125
-#, c-format
-msgid " Base: "
-msgstr ""
-
-#: libebl/eblobjnote.c:127
-#, c-format
-msgid " Semaphore: "
-msgstr ""
-
-#: libebl/eblobjnote.c:129
-#, c-format
-msgid " Provider: "
-msgstr ""
-
-#: libebl/eblobjnote.c:131
-#, c-format
-msgid " Name: "
-msgstr ""
-
-#: libebl/eblobjnote.c:133
-#, c-format
-msgid " Args: "
-msgstr ""
-
-#: libebl/eblobjnote.c:143
-#, c-format
-msgid " Build ID: "
-msgstr " Build ID: "
-
-#: libebl/eblobjnote.c:154
-#, c-format
-msgid " Linker version: %.*s\n"
-msgstr ""
-
-#: libebl/eblobjnote.c:203
-#, c-format
-msgid " OS: %s, ABI: "
-msgstr " OS: %s, ABI: "
-
-#: libebl/eblosabiname.c:74
-msgid "Stand alone"
-msgstr ""
-
-#: libebl/eblsymbolbindingname.c:71 libebl/eblsymboltypename.c:77
-#, c-format
-msgid "<unknown>: %d"
-msgstr "<unbekannt>: %d"
-
-#: libelf/elf_error.c:67
-msgid "unknown version"
-msgstr "unbekannte Version"
-
-#: libelf/elf_error.c:71
-msgid "unknown type"
-msgstr "unbekannter Typ"
-
-#: libelf/elf_error.c:75
-msgid "invalid `Elf' handle"
-msgstr "ungültiges `Elf'-Handle"
-
-#: libelf/elf_error.c:79
-msgid "invalid size of source operand"
-msgstr "ungültige Grösse des Quell-Operanden"
-
-#: libelf/elf_error.c:83
-msgid "invalid size of destination operand"
-msgstr "ungültige Grösse des Ziel-Operanden"
-
-#: libelf/elf_error.c:87 src/readelf.c:5367
-#, c-format
-msgid "invalid encoding"
-msgstr "ungültige Kodierung"
-
-#: libelf/elf_error.c:95
-msgid "invalid file descriptor"
-msgstr "ungültiger Datei-Deskriptor"
-
-#: libelf/elf_error.c:99
-msgid "invalid operation"
-msgstr "ungültige Operation"
-
-#: libelf/elf_error.c:103
-msgid "ELF version not set"
-msgstr "ELF-Version nicht gesetzt"
-
-#: libelf/elf_error.c:115
-msgid "invalid fmag field in archive header"
-msgstr "ungültiges fmag-Feld im Archivheader"
-
-#: libelf/elf_error.c:119
-msgid "invalid archive file"
-msgstr "Ungültige Archiv-Datei"
-
-#: libelf/elf_error.c:123
-msgid "descriptor is not for an archive"
-msgstr ""
-
-#: libelf/elf_error.c:127
-msgid "no index available"
-msgstr "kein Index verfügbar"
-
-#: libelf/elf_error.c:131
-msgid "cannot read data from file"
-msgstr "Daten aus der Datei konnten nicht gelesen werden"
-
-#: libelf/elf_error.c:135
-msgid "cannot write data to file"
-msgstr "Daten konnten nicht in die Datei geschrieben werden"
-
-#: libelf/elf_error.c:139
-msgid "invalid binary class"
-msgstr "ungültige Binärklasse"
-
-#: libelf/elf_error.c:143
-msgid "invalid section index"
-msgstr "ungültiger Abschnittsindex"
-
-#: libelf/elf_error.c:147
-msgid "invalid operand"
-msgstr "ungültiger Operand"
-
-#: libelf/elf_error.c:151
-msgid "invalid section"
-msgstr "ungültiger Abschnitt"
-
-#: libelf/elf_error.c:159
-msgid "executable header not created first"
-msgstr "ausführbarer Header wurde nicht zuerst erstellt"
-
-#: libelf/elf_error.c:163
-msgid "file descriptor disabled"
-msgstr "Datei-Deskriptor deaktiviert"
-
-#: libelf/elf_error.c:167
-#, fuzzy
-msgid "archive/member file descriptor mismatch"
-msgstr "Datei-Deskriptor deaktiviert"
-
-#: libelf/elf_error.c:175
-msgid "cannot manipulate null section"
-msgstr ""
-
-#: libelf/elf_error.c:179
-#, fuzzy
-msgid "data/scn mismatch"
-msgstr "data/scn Unterschied"
-
-#: libelf/elf_error.c:183
-msgid "invalid section header"
-msgstr "ungültiger Abschnitts-Header"
-
-#: libelf/elf_error.c:187 src/readelf.c:7235 src/readelf.c:7683
-#: src/readelf.c:7784 src/readelf.c:7954
-#, c-format
-msgid "invalid data"
-msgstr "Ungültige Daten"
-
-#: libelf/elf_error.c:191
-msgid "unknown data encoding"
-msgstr "Unbekannte Datenkodierung"
-
-#: libelf/elf_error.c:195
-msgid "section `sh_size' too small for data"
-msgstr "Abschnitt `sh_size' zu klein für Daten"
-
-#: libelf/elf_error.c:199
-msgid "invalid section alignment"
-msgstr "ungültige Abschnittsausrichtung"
-
-#: libelf/elf_error.c:203
-msgid "invalid section entry size"
-msgstr ""
-
-#: libelf/elf_error.c:207
-msgid "update() for write on read-only file"
-msgstr ""
-
-#: libelf/elf_error.c:211
-msgid "no such file"
-msgstr "Datei nicht gefunden"
-
-#: libelf/elf_error.c:215
-msgid "only relocatable files can contain section groups"
-msgstr ""
-
-#: libelf/elf_error.c:220
-msgid ""
-"program header only allowed in executables, shared objects, and core files"
-msgstr ""
-
-#: libelf/elf_error.c:227
-msgid "file has no program header"
-msgstr "Datei hat keinen Programm-Kopf"
-
-#: src/addr2line.c:58
-msgid "Output selection options:"
-msgstr ""
-
-#: src/addr2line.c:59
-msgid "Show only base names of source files"
-msgstr ""
-
-#: src/addr2line.c:61
-msgid "Show absolute file names using compilation directory"
-msgstr ""
-
-#: src/addr2line.c:62
-msgid "Also show function names"
-msgstr ""
-
-#: src/addr2line.c:63
-msgid "Also show symbol or section names"
-msgstr ""
-
-#: src/addr2line.c:64
-msgid "Also show symbol and the section names"
-msgstr ""
-
-#: src/addr2line.c:65
-msgid "Also show line table flags"
-msgstr ""
-
-#: src/addr2line.c:67
-msgid "Treat addresses as offsets relative to NAME section."
-msgstr ""
-
-#: src/addr2line.c:69
-msgid ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-msgstr ""
-
-#: src/addr2line.c:72 src/elfcmp.c:72 src/findtextrel.c:67 src/nm.c:100
-#: src/strings.c:75
-msgid "Miscellaneous:"
-msgstr "Verschiedenes:"
-
-#: src/addr2line.c:81
-msgid ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-msgstr ""
-
-#: src/addr2line.c:85
-msgid "[ADDR...]"
-msgstr ""
-
-#: src/addr2line.c:196 src/ar.c:289 src/elfcmp.c:663 src/elflint.c:235
-#: src/findtextrel.c:162 src/ld.c:949 src/nm.c:265 src/objdump.c:181
-#: src/ranlib.c:128 src/readelf.c:500 src/size.c:211 src/strings.c:226
-#: src/strip.c:213 src/unstrip.c:233
-#, c-format
-msgid ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-msgstr ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"Dies ist freie Software, siehe Quellcode für Kopierbedingungen. KEINE "
-"GARANTIE,\n"
-"auch nicht für Marktgängigkeit oder Eignung für einen Bestimmten Zweck.\n"
-
-#: src/addr2line.c:201 src/ar.c:294 src/elfcmp.c:668 src/elflint.c:240
-#: src/findtextrel.c:167 src/ld.c:954 src/nm.c:270 src/objdump.c:186
-#: src/ranlib.c:133 src/readelf.c:505 src/size.c:216 src/strings.c:231
-#: src/strip.c:218 src/unstrip.c:238
-#, c-format
-msgid "Written by %s.\n"
-msgstr "Geschrieben von %s.\n"
-
-#: src/addr2line.c:474
-#, fuzzy, c-format
-msgid "Section syntax requires exactly one module"
-msgstr "Abschnitt syntax benötigt genau ein Modul"
-
-#: src/addr2line.c:497
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside section '%s'"
-msgstr ""
-
-#: src/addr2line.c:563
-#, c-format
-msgid "cannot find symbol '%s'"
-msgstr "Konnte Symbol '%s' nicht finden"
-
-#: src/addr2line.c:568
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside contents of '%s'"
-msgstr ""
-
-#: src/ar.c:69
-msgid "Commands:"
-msgstr "Befehle:"
-
-#: src/ar.c:70
-msgid "Delete files from archive."
-msgstr "Dateien aus dem Archiv löschen."
-
-#: src/ar.c:71
-msgid "Move files in archive."
-msgstr "Dateien zum Archiv hinzufügen."
-
-#: src/ar.c:72
-msgid "Print files in archive."
-msgstr "Packe Dateien in Archiv"
-
-#: src/ar.c:73
-msgid "Quick append files to archive."
-msgstr "Hänge Dateien an ein Archiv"
-
-#: src/ar.c:75
-msgid "Replace existing or insert new file into archive."
-msgstr "Ersetze existierende oder füge neue Datei in das Archiv ein."
-
-#: src/ar.c:76
-msgid "Display content of archive."
-msgstr "Zeige Archivinhalt an."
-
-#: src/ar.c:77
-msgid "Extract files from archive."
-msgstr "Entpacke Dateien aus dem Archiv"
-
-#: src/ar.c:79
-msgid "Command Modifiers:"
-msgstr ""
-
-#: src/ar.c:80
-msgid "Preserve original dates."
-msgstr "Erhalte ursprüngliche Daten."
-
-#: src/ar.c:81
-msgid "Use instance [COUNT] of name."
-msgstr ""
-
-#: src/ar.c:83
-msgid "Do not replace existing files with extracted files."
-msgstr "Ersetze existierende Dateien nicht mit entpackten Dateien"
-
-#: src/ar.c:84
-msgid "Allow filename to be truncated if necessary."
-msgstr "Erlaube angehängte Dateinamen, wenn nötig"
-
-#: src/ar.c:86
-msgid "Provide verbose output."
-msgstr "Zeige detaillierte Ausgabe."
-
-#: src/ar.c:87
-msgid "Force regeneration of symbol table."
-msgstr "Erzwinge Regenerierung der Symboltabelle."
-
-#: src/ar.c:88
-msgid "Insert file after [MEMBER]."
-msgstr "Füge Datei nach [MEMBER] ein."
-
-#: src/ar.c:89
-msgid "Insert file before [MEMBER]."
-msgstr "Füge Datei vor [MEMBER] ein."
-
-#: src/ar.c:90
-msgid "Same as -b."
-msgstr "Genau wie -b."
-
-#: src/ar.c:91
-msgid "Suppress message when library has to be created."
-msgstr "Unterdrücke Nachricht wenn Bibliothek erstellt werden muss."
-
-#: src/ar.c:93
-#, fuzzy
-msgid "Use full path for file matching."
-msgstr "Vollständigen Pfad für Dateiabgleich verwenden."
-
-#: src/ar.c:94
-msgid "Update only older files in archive."
-msgstr "Nur ältere Datein im Archiv aktualisieren"
-
-#: src/ar.c:100
-msgid "Create, modify, and extract from archives."
-msgstr "Erstelle, ändere, extrahiere von Archiven"
-
-#: src/ar.c:103
-msgid "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-msgstr "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-
-#: src/ar.c:185
-#, c-format
-msgid "'a', 'b', and 'i' are only allowed with the 'm' and 'r' options"
-msgstr "'a', 'b', und 'i' nur zusammen mit 'm' and 'r Optionen"
-
-#: src/ar.c:190
-#, c-format
-msgid "MEMBER parameter required for 'a', 'b', and 'i' modifiers"
-msgstr ""
-
-#: src/ar.c:206
-#, c-format
-msgid "'N' is only meaningful with the 'x' and 'd' options"
-msgstr "'N' ist nur mit den Optionen 'x' und 'd' von Bedeutung."
-
-#: src/ar.c:211
-#, c-format
-msgid "COUNT parameter required"
-msgstr "COUNT Parameter erforderlich"
-
-#: src/ar.c:223
-#, c-format
-msgid "invalid COUNT parameter %s"
-msgstr "Ungültiger COUNT Parameter %s"
-
-#: src/ar.c:230
-#, fuzzy, c-format
-msgid "'%c' is only meaningful with the 'x' option"
-msgstr "'%' ist nur mit der Option 'x' von Bedeutung"
-
-#: src/ar.c:236
-#, c-format
-msgid "archive name required"
-msgstr "Archivname erforderlich"
-
-#: src/ar.c:249
-#, c-format
-msgid "command option required"
-msgstr ""
-
-#: src/ar.c:314
-#, c-format
-msgid "More than one operation specified"
-msgstr "Mehr als eine Operation angegeben"
-
-#: src/ar.c:408
-#, c-format
-msgid "cannot open archive '%s'"
-msgstr "Konnte Archiv '%s' nicht öffnen"
-
-#: src/ar.c:418
-#, c-format
-msgid "cannot open archive '%s': %s"
-msgstr "Konnte Archiv '%s': %s nicht öffnen"
-
-#: src/ar.c:422
-#, c-format
-msgid "%s: not an archive file"
-msgstr "%s: Keine Archiv-Datei"
-
-#: src/ar.c:426
-#, c-format
-msgid "cannot stat archive '%s'"
-msgstr ""
-
-#: src/ar.c:438
-#, c-format
-msgid "no entry %s in archive\n"
-msgstr "Kein Eintrag %s in Archiv\n"
-
-#: src/ar.c:491 src/ar.c:933 src/ar.c:1133
-#, c-format
-msgid "cannot create hash table"
-msgstr "Konnte Hash-Tabelle nicht erstellen"
-
-#: src/ar.c:498 src/ar.c:940 src/ar.c:1142
-#, c-format
-msgid "cannot insert into hash table"
-msgstr "Konnte nicht in Hash-Tabelle einfügen"
-
-#: src/ar.c:506 src/ranlib.c:168
-#, c-format
-msgid "cannot stat '%s'"
-msgstr ""
-
-#: src/ar.c:602
-#, c-format
-msgid "cannot read content of %s: %s"
-msgstr "Konnte Inhalt von %s: %s nicht lesen"
-
-#: src/ar.c:645
-#, c-format
-msgid "cannot open %.*s"
-msgstr "Konnte %.*s nicht öffnen"
-
-#: src/ar.c:667
-#, c-format
-msgid "failed to write %s"
-msgstr "Konnte %s nicht schreiben"
-
-#: src/ar.c:679
-#, c-format
-msgid "cannot change mode of %s"
-msgstr ""
-
-#: src/ar.c:695
-#, c-format
-msgid "cannot change modification time of %s"
-msgstr "Konnte Bearbeitungszeit von %s nicht ändern"
-
-#: src/ar.c:741
-#, c-format
-msgid "cannot rename temporary file to %.*s"
-msgstr "Konnte temporäre Datei nicht in %.*s umbenennen"
-
-#: src/ar.c:777 src/ar.c:1025 src/ar.c:1424 src/ranlib.c:242
-#, c-format
-msgid "cannot create new file"
-msgstr "neue Datei konnte nicht angelegt werden"
-
-#: src/ar.c:1224
-#, c-format
-msgid "position member %s not found"
-msgstr ""
-
-#: src/ar.c:1234
-#, c-format
-msgid "%s: no entry %s in archive!\n"
-msgstr "%s: Kein Eintrag %s in dem Archiv!\n"
-
-#: src/ar.c:1263 src/ldgeneric.c:509 src/objdump.c:257
-#, c-format
-msgid "cannot open %s"
-msgstr "Konnte %s nicht öffnen"
-
-#: src/ar.c:1268
-#, c-format
-msgid "cannot stat %s"
-msgstr ""
-
-#: src/ar.c:1274
-#, c-format
-msgid "%s is no regular file"
-msgstr "%s ist keine reguläre Datei"
-
-#: src/ar.c:1287
-#, c-format
-msgid "cannot get ELF descriptor for %s: %s\n"
-msgstr ""
-
-#: src/ar.c:1307
-#, c-format
-msgid "cannot read %s: %s"
-msgstr "Konnte %s: %s nicht lesen"
-
-#: src/arlib.c:209
-#, c-format
-msgid "the archive '%s' is too large"
-msgstr "Das Archiv '%s' ist zu groß"
-
-#: src/arlib.c:222
-#, c-format
-msgid "cannot read ELF header of %s(%s): %s"
-msgstr "\"Konnte ELF-Kopf von %s(%s): %s nicht lesen"
-
-#: src/elfcmp.c:62
-msgid "Control options:"
-msgstr ""
-
-#: src/elfcmp.c:64
-msgid "Output all differences, not just the first"
-msgstr ""
-
-#: src/elfcmp.c:65
-msgid ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-msgstr ""
-
-#: src/elfcmp.c:67
-msgid "Ignore permutation of buckets in SHT_HASH section"
-msgstr ""
-
-#: src/elfcmp.c:69
-msgid "Ignore differences in build ID"
-msgstr ""
-
-#: src/elfcmp.c:70
-msgid "Output nothing; yield exit status only"
-msgstr ""
-
-#: src/elfcmp.c:77
-msgid "Compare relevant parts of two ELF files for equality."
-msgstr ""
-
-#: src/elfcmp.c:81
-#, fuzzy
-msgid "FILE1 FILE2"
-msgstr "DATEI1 DATEI2"
-
-#: src/elfcmp.c:143
-msgid "Invalid number of parameters.\n"
-msgstr "Ungültige Anzahl von Parametern.\n"
-
-#: src/elfcmp.c:174 src/elfcmp.c:179
-#, c-format
-msgid "cannot get ELF header of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:205
-#, c-format
-msgid "%s %s diff: ELF header"
-msgstr ""
-
-#: src/elfcmp.c:212 src/elfcmp.c:215
-#, fuzzy, c-format
-msgid "cannot get section count of '%s': %s"
-msgstr "konnte Abschnittsdaten nicht holen: %s"
-
-#: src/elfcmp.c:220
-#, c-format
-msgid "%s %s diff: section count"
-msgstr ""
-
-#: src/elfcmp.c:227 src/elfcmp.c:230
-#, fuzzy, c-format
-msgid "cannot get program header count of '%s': %s"
-msgstr "konnte Programm-Kopf nicht erstellen: %s"
-
-#: src/elfcmp.c:235
-#, fuzzy, c-format
-msgid "%s %s diff: program header count"
-msgstr "Datei hat keinen Programm-Kopf"
-
-#: src/elfcmp.c:292
-#, c-format
-msgid "%s %s differ: section [%zu], [%zu] name"
-msgstr ""
-
-#: src/elfcmp.c:315
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' header"
-msgstr ""
-
-#: src/elfcmp.c:323 src/elfcmp.c:329
-#, c-format
-msgid "cannot get content of section %zu in '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:345 src/elfcmp.c:351
-#, c-format
-msgid "cannot get symbol in '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:373
-#, c-format
-msgid "%s %s differ: symbol table [%zu]"
-msgstr ""
-
-#: src/elfcmp.c:376
-#, c-format
-msgid "%s %s differ: symbol table [%zu,%zu]"
-msgstr ""
-
-#: src/elfcmp.c:422 src/elfcmp.c:491
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' number of notes"
-msgstr ""
-
-#: src/elfcmp.c:430
-#, fuzzy, c-format
-msgid "cannot read note section [%zu] '%s' in '%s': %s"
-msgstr "konnte Abschnittsdaten nicht holen: %s"
-
-#: src/elfcmp.c:440
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note name"
-msgstr ""
-
-#: src/elfcmp.c:448
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' type"
-msgstr ""
-
-#: src/elfcmp.c:463
-#, c-format
-msgid "%s %s differ: build ID length"
-msgstr ""
-
-#: src/elfcmp.c:471
-#, c-format
-msgid "%s %s differ: build ID content"
-msgstr ""
-
-#: src/elfcmp.c:480
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:520
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:524
-#, c-format
-msgid "%s %s differ: section [%zu,%zu] '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:539
-#, c-format
-msgid "%s %s differ: unequal amount of important sections"
-msgstr ""
-
-#: src/elfcmp.c:572 src/elfcmp.c:577
-#, c-format
-msgid "cannot load data of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:596 src/elfcmp.c:602
-#, c-format
-msgid "cannot get program header entry %d of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:608
-#, c-format
-msgid "%s %s differ: program header %d"
-msgstr ""
-
-#: src/elfcmp.c:632
-#, c-format
-msgid "%s %s differ: gap"
-msgstr ""
-
-#: src/elfcmp.c:695
-#, c-format
-msgid "Invalid value '%s' for --gaps parameter."
-msgstr ""
-
-#: src/elfcmp.c:723 src/findtextrel.c:221 src/ldgeneric.c:1757
-#: src/ldgeneric.c:4247 src/nm.c:381 src/ranlib.c:161 src/size.c:293
-#: src/strings.c:182 src/strip.c:451 src/strip.c:488 src/unstrip.c:1923
-#: src/unstrip.c:1952
-#, c-format
-msgid "cannot open '%s'"
-msgstr "'%s' kann nicht geöffnet werden"
-
-#: src/elfcmp.c:727 src/findtextrel.c:228 src/ranlib.c:178
-#, c-format
-msgid "cannot create ELF descriptor for '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:732
-#, c-format
-msgid "cannot create EBL descriptor for '%s'"
-msgstr ""
-
-#: src/elfcmp.c:750
-#, c-format
-msgid "cannot get section header of section %zu: %s"
-msgstr ""
-
-#: src/elfcmp.c:760
-#, c-format
-msgid "cannot get content of section %zu: %s"
-msgstr ""
-
-#: src/elfcmp.c:770 src/elfcmp.c:784
-#, c-format
-msgid "cannot get relocation: %s"
-msgstr ""
-
-#: src/elflint.c:64
-msgid "Be extremely strict, flag level 2 features."
-msgstr ""
-
-#: src/elflint.c:65
-msgid "Do not print anything if successful"
-msgstr "Gebe nichts aus, wenn erfolgreich"
-
-#: src/elflint.c:66
-msgid "Binary is a separate debuginfo file"
-msgstr ""
-
-#: src/elflint.c:68
-msgid ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-msgstr ""
-
-#: src/elflint.c:74
-msgid "Pedantic checking of ELF files compliance with gABI/psABI spec."
-msgstr ""
-
-#: src/elflint.c:78 src/readelf.c:123
-msgid "FILE..."
-msgstr "DATEI..."
-
-#: src/elflint.c:155 src/readelf.c:292
-#, c-format
-msgid "cannot open input file"
-msgstr "Kann Eingabedatei nicht öffnen"
-
-#: src/elflint.c:162
-#, c-format
-msgid "cannot generate Elf descriptor: %s\n"
-msgstr "kann Elf-Deskriptor nicht erzeugen: %s\n"
-
-#: src/elflint.c:181
-#, c-format
-msgid "error while closing Elf descriptor: %s\n"
-msgstr "Fehler beim Schliessen des Elf-Desktriptor: %s\n"
-
-#: src/elflint.c:185
-msgid "No errors"
-msgstr "Keine Fehler"
-
-#: src/elflint.c:219 src/readelf.c:468
-msgid "Missing file name.\n"
-msgstr "Dateiname fehlt.\n"
-
-#: src/elflint.c:298
-#, c-format
-msgid " error while freeing sub-ELF descriptor: %s\n"
-msgstr ""
-
-#: src/elflint.c:306
-#, fuzzy, c-format
-msgid "Not an ELF file - it has the wrong magic bytes at the start\n"
-msgstr "Keine ELF-Datei - sie hat die falschen Magic Bytes am Anfang\n"
-
-#: src/elflint.c:371
-#, c-format
-msgid "e_ident[%d] == %d is no known class\n"
-msgstr ""
-
-#: src/elflint.c:376
-#, c-format
-msgid "e_ident[%d] == %d is no known data encoding\n"
-msgstr ""
-
-#: src/elflint.c:380
-#, c-format
-msgid "unknown ELF header version number e_ident[%d] == %d\n"
-msgstr ""
-
-#: src/elflint.c:386
-#, c-format
-msgid "unsupported OS ABI e_ident[%d] == '%s'\n"
-msgstr ""
-
-#: src/elflint.c:392
-#, c-format
-msgid "unsupport ABI version e_ident[%d] == %d\n"
-msgstr ""
-
-#: src/elflint.c:397
-#, c-format
-msgid "e_ident[%zu] is not zero\n"
-msgstr "e_ident[%zu] ist nicht null\n"
-
-#: src/elflint.c:402
-#, c-format
-msgid "unknown object file type %d\n"
-msgstr ""
-
-#: src/elflint.c:409
-#, c-format
-msgid "unknown machine type %d\n"
-msgstr ""
-
-#: src/elflint.c:413
-#, c-format
-msgid "unknown object file version\n"
-msgstr ""
-
-#: src/elflint.c:419
-#, c-format
-msgid "invalid program header offset\n"
-msgstr ""
-
-#: src/elflint.c:421
-#, c-format
-msgid "executables and DSOs cannot have zero program header offset\n"
-msgstr ""
-
-#: src/elflint.c:425
-#, c-format
-msgid "invalid number of program header entries\n"
-msgstr ""
-
-#: src/elflint.c:433
-#, c-format
-msgid "invalid section header table offset\n"
-msgstr ""
-
-#: src/elflint.c:436
-#, c-format
-msgid "section header table must be present\n"
-msgstr ""
-
-#: src/elflint.c:450
-#, c-format
-msgid "invalid number of section header table entries\n"
-msgstr ""
-
-#: src/elflint.c:467
-#, c-format
-msgid "invalid section header index\n"
-msgstr ""
-
-#: src/elflint.c:481
-#, fuzzy, c-format
-msgid "invalid number of program header table entries\n"
-msgstr "Ungültige Anzahl von Parametern.\n"
-
-#: src/elflint.c:490
-#, c-format
-msgid "invalid machine flags: %s\n"
-msgstr ""
-
-#: src/elflint.c:497 src/elflint.c:514
-#, c-format
-msgid "invalid ELF header size: %hd\n"
-msgstr ""
-
-#: src/elflint.c:500 src/elflint.c:517
-#, c-format
-msgid "invalid program header size: %hd\n"
-msgstr ""
-
-#: src/elflint.c:503 src/elflint.c:520
-#, c-format
-msgid "invalid program header position or size\n"
-msgstr ""
-
-#: src/elflint.c:506 src/elflint.c:523
-#, c-format
-msgid "invalid section header size: %hd\n"
-msgstr ""
-
-#: src/elflint.c:509 src/elflint.c:526
-#, c-format
-msgid "invalid section header position or size\n"
-msgstr ""
-
-#: src/elflint.c:570
-#, c-format
-msgid ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-msgstr ""
-
-#: src/elflint.c:574
-#, c-format
-msgid ""
-"section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"
-msgstr ""
-
-#: src/elflint.c:590 src/elflint.c:1457 src/elflint.c:1508 src/elflint.c:1614
-#: src/elflint.c:1939 src/elflint.c:2228 src/elflint.c:2742 src/elflint.c:2904
-#: src/elflint.c:3034 src/elflint.c:3206 src/elflint.c:4108
-#, c-format
-msgid "section [%2d] '%s': cannot get section data\n"
-msgstr ""
-
-#: src/elflint.c:603 src/elflint.c:1621
-#, c-format
-msgid ""
-"section [%2d] '%s': referenced as string table for section [%2d] '%s' but "
-"type is not SHT_STRTAB\n"
-msgstr ""
-
-#: src/elflint.c:626
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-msgstr ""
-
-#: src/elflint.c:638
-#, c-format
-msgid "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-msgstr ""
-
-#: src/elflint.c:647
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %d: %s\n"
-msgstr ""
-
-#: src/elflint.c:652 src/elflint.c:655 src/elflint.c:658 src/elflint.c:661
-#: src/elflint.c:664 src/elflint.c:667
-#, c-format
-msgid "section [%2d] '%s': '%s' in zeroth entry not zero\n"
-msgstr ""
-
-#: src/elflint.c:670
-#, c-format
-msgid "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-msgstr ""
-
-#: src/elflint.c:680
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:689
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid name value\n"
-msgstr ""
-
-#: src/elflint.c:704
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-msgstr ""
-
-#: src/elflint.c:710
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-msgstr ""
-
-#: src/elflint.c:722
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid section index\n"
-msgstr ""
-
-#: src/elflint.c:730
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown type\n"
-msgstr ""
-
-#: src/elflint.c:736
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-msgstr ""
-
-#: src/elflint.c:741
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-msgstr ""
-
-#: src/elflint.c:749
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-msgstr ""
-
-#: src/elflint.c:753
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-msgstr ""
-
-#: src/elflint.c:757
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-msgstr ""
-
-#: src/elflint.c:804
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:810 src/elflint.c:835 src/elflint.c:878
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:819
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have "
-"SHF_TLS flag set\n"
-msgstr ""
-
-#: src/elflint.c:829 src/elflint.c:871
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:856
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-msgstr ""
-
-#: src/elflint.c:864
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"'%s'\n"
-msgstr ""
-
-#: src/elflint.c:891
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-
-#: src/elflint.c:898
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-
-#: src/elflint.c:905
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-msgstr ""
-
-#: src/elflint.c:955
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-msgstr ""
-
-#: src/elflint.c:962
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"'%s'\n"
-msgstr ""
-
-#: src/elflint.c:978
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:985
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:993
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-msgstr ""
-
-#: src/elflint.c:1009
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:1016
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:1029
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-msgstr ""
-
-#: src/elflint.c:1033
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-msgstr ""
-
-#: src/elflint.c:1082
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-msgstr ""
-
-#: src/elflint.c:1093 src/elflint.c:1145
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-msgstr ""
-
-#: src/elflint.c:1118 src/elflint.c:1170
-#, c-format
-msgid ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-msgstr ""
-
-#: src/elflint.c:1124 src/elflint.c:1176
-#, c-format
-msgid ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-msgstr ""
-
-#: src/elflint.c:1136
-#, c-format
-msgid "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-msgstr ""
-
-#: src/elflint.c:1218
-#, c-format
-msgid "section [%2d] '%s': invalid destination section index\n"
-msgstr ""
-
-#: src/elflint.c:1230
-#, c-format
-msgid "section [%2d] '%s': invalid destination section type\n"
-msgstr ""
-
-#: src/elflint.c:1238
-#, c-format
-msgid "section [%2d] '%s': sh_info should be zero\n"
-msgstr ""
-
-#: src/elflint.c:1245
-#, c-format
-msgid "section [%2d] '%s': no relocations for merge-able sections possible\n"
-msgstr ""
-
-#: src/elflint.c:1253
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-msgstr ""
-
-#: src/elflint.c:1313
-#, c-format
-msgid "text relocation flag set but there is no read-only segment\n"
-msgstr ""
-
-#: src/elflint.c:1340
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid type\n"
-msgstr ""
-
-#: src/elflint.c:1348
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-msgstr ""
-
-#: src/elflint.c:1356
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-msgstr ""
-
-#: src/elflint.c:1374
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can "
-"be used with %s\n"
-msgstr ""
-
-#: src/elflint.c:1391
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:1406
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-msgstr ""
-
-#: src/elflint.c:1427
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-msgstr ""
-
-#: src/elflint.c:1442
-#, c-format
-msgid "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-msgstr ""
-
-#: src/elflint.c:1482 src/elflint.c:1533
-#, c-format
-msgid "section [%2d] '%s': cannot get relocation %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:1609
-#, c-format
-msgid "more than one dynamic section present\n"
-msgstr ""
-
-#: src/elflint.c:1628
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-msgstr ""
-
-#: src/elflint.c:1633 src/elflint.c:1918
-#, c-format
-msgid "section [%2d] '%s': sh_info not zero\n"
-msgstr ""
-
-#: src/elflint.c:1643
-#, c-format
-msgid "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:1651
-#, c-format
-msgid "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-msgstr ""
-
-#: src/elflint.c:1658
-#, c-format
-msgid "section [%2d] '%s': entry %zu: unknown tag\n"
-msgstr ""
-
-#: src/elflint.c:1669
-#, c-format
-msgid "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-msgstr ""
-
-#: src/elflint.c:1679
-#, c-format
-msgid "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-msgstr ""
-
-#: src/elflint.c:1697
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-msgstr ""
-
-#: src/elflint.c:1710
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] '%s' referenced by sh_link\n"
-msgstr ""
-
-#: src/elflint.c:1753
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:1768
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:1788 src/elflint.c:1816
-#, c-format
-msgid "section [%2d] '%s': contains %s entry but not %s\n"
-msgstr ""
-
-#: src/elflint.c:1800
-#, c-format
-msgid "section [%2d] '%s': mandatory tag %s not present\n"
-msgstr ""
-
-#: src/elflint.c:1809
-#, c-format
-msgid "section [%2d] '%s': no hash section present\n"
-msgstr ""
-
-#: src/elflint.c:1824 src/elflint.c:1831
-#, c-format
-msgid "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-msgstr ""
-
-#: src/elflint.c:1841 src/elflint.c:1845
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-msgstr ""
-
-#: src/elflint.c:1851
-#, c-format
-msgid "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-msgstr ""
-
-#: src/elflint.c:1862 src/elflint.c:1866 src/elflint.c:1870 src/elflint.c:1874
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in prelinked executable\n"
-msgstr ""
-
-#: src/elflint.c:1886
-#, c-format
-msgid ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-msgstr ""
-
-#: src/elflint.c:1896
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1901
-#, c-format
-msgid "cannot get data for symbol section\n"
-msgstr ""
-
-#: src/elflint.c:1904
-#, c-format
-msgid "section [%2d] '%s': entry size does not match Elf32_Word\n"
-msgstr ""
-
-#: src/elflint.c:1913
-#, c-format
-msgid "section [%2d] '%s': extended index table too small for symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1928
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index in section [%2zu] '%s' refers to "
-"same symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1945
-#, c-format
-msgid "symbol 0 should have zero extended section index\n"
-msgstr ""
-
-#: src/elflint.c:1957
-#, c-format
-msgid "cannot get data for symbol %zu\n"
-msgstr ""
-
-#: src/elflint.c:1962
-#, c-format
-msgid "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-msgstr ""
-
-#: src/elflint.c:1978 src/elflint.c:2029
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-msgstr ""
-
-#: src/elflint.c:1990 src/elflint.c:2041
-#, c-format
-msgid "section [%2d] '%s': chain array too large\n"
-msgstr ""
-
-#: src/elflint.c:2004 src/elflint.c:2055
-#, c-format
-msgid "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2014
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2065
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2081
-#, c-format
-msgid "section [%2d] '%s': bitmask size not power of 2: %u\n"
-msgstr ""
-
-#: src/elflint.c:2092
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-msgstr ""
-
-#: src/elflint.c:2100
-#, c-format
-msgid "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-msgstr ""
-
-#: src/elflint.c:2132
-#, c-format
-msgid ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-msgstr ""
-
-#: src/elflint.c:2153
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-msgstr ""
-
-#: src/elflint.c:2164
-#, c-format
-msgid ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-msgstr ""
-
-#: src/elflint.c:2195
-#, c-format
-msgid "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2200
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2206
-#, c-format
-msgid "section [%2d] '%s': bitmask does not match names in the hash table\n"
-msgstr ""
-
-#: src/elflint.c:2219
-#, c-format
-msgid "section [%2d] '%s': relocatable files cannot have hash tables\n"
-msgstr ""
-
-#: src/elflint.c:2237
-#, c-format
-msgid "section [%2d] '%s': hash table not for dynamic symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2245
-#, c-format
-msgid "section [%2d] '%s': hash table entry size incorrect\n"
-msgstr ""
-
-#: src/elflint.c:2250
-#, c-format
-msgid "section [%2d] '%s': not marked to be allocated\n"
-msgstr ""
-
-#: src/elflint.c:2255
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-msgstr ""
-
-#: src/elflint.c:2303
-#, c-format
-msgid "sh_link in hash sections [%2zu] '%s' and [%2zu] '%s' not identical\n"
-msgstr ""
-
-#: src/elflint.c:2381 src/elflint.c:2385
-#, c-format
-msgid "section [%2zu] '%s': reference to symbol index 0\n"
-msgstr ""
-
-#: src/elflint.c:2392
-#, c-format
-msgid ""
-"symbol %d referenced in new hash table in [%2zu] '%s' but not in old hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2404
-#, c-format
-msgid ""
-"symbol %d referenced in old hash table in [%2zu] '%s' but not in new hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2420
-#, c-format
-msgid "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-msgstr ""
-
-#: src/elflint.c:2440
-#, c-format
-msgid ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-msgstr ""
-
-#: src/elflint.c:2451
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol table: %s\n"
-msgstr ""
-
-#: src/elflint.c:2456
-#, c-format
-msgid "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2462
-#, c-format
-msgid "section [%2d] '%s': invalid symbol index in sh_info\n"
-msgstr ""
-
-#: src/elflint.c:2467
-#, c-format
-msgid "section [%2d] '%s': sh_flags not zero\n"
-msgstr ""
-
-#: src/elflint.c:2474
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol for signature\n"
-msgstr ""
-
-#: src/elflint.c:2479
-#, c-format
-msgid "section [%2d] '%s': signature symbol cannot be empty string\n"
-msgstr ""
-
-#: src/elflint.c:2485
-#, c-format
-msgid "section [%2d] '%s': sh_flags not set correctly\n"
-msgstr ""
-
-#: src/elflint.c:2491
-#, c-format
-msgid "section [%2d] '%s': cannot get data: %s\n"
-msgstr ""
-
-#: src/elflint.c:2500
-#, c-format
-msgid "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-msgstr ""
-
-#: src/elflint.c:2505
-#, c-format
-msgid "section [%2d] '%s': section group without flags word\n"
-msgstr ""
-
-#: src/elflint.c:2511
-#, c-format
-msgid "section [%2d] '%s': section group without member\n"
-msgstr ""
-
-#: src/elflint.c:2515
-#, c-format
-msgid "section [%2d] '%s': section group with only one member\n"
-msgstr ""
-
-#: src/elflint.c:2526
-#, c-format
-msgid "section [%2d] '%s': unknown section group flags\n"
-msgstr ""
-
-#: src/elflint.c:2538
-#, c-format
-msgid "section [%2d] '%s': section index %Zu out of range\n"
-msgstr ""
-
-#: src/elflint.c:2547
-#, c-format
-msgid "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:2554
-#, c-format
-msgid "section [%2d] '%s': section group contains another group [%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2560
-#, c-format
-msgid ""
-"section [%2d] '%s': element %Zu references section [%2d] '%s' without "
-"SHF_GROUP flag set\n"
-msgstr ""
-
-#: src/elflint.c:2567
-#, c-format
-msgid "section [%2d] '%s' is contained in more than one section group\n"
-msgstr ""
-
-#: src/elflint.c:2756
-#, c-format
-msgid ""
-"section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no "
-"dynamic symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2768
-#, c-format
-msgid ""
-"section [%2d] '%s' has different number of entries than symbol table [%2d] "
-"'%s'\n"
-msgstr ""
-
-#: src/elflint.c:2784
-#, c-format
-msgid "section [%2d] '%s': symbol %d: cannot read version data\n"
-msgstr ""
-
-#: src/elflint.c:2800
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-msgstr ""
-
-#: src/elflint.c:2808
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with version\n"
-msgstr ""
-
-#: src/elflint.c:2822
-#, c-format
-msgid "section [%2d] '%s': symbol %d: invalid version index %d\n"
-msgstr ""
-
-#: src/elflint.c:2827
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-msgstr ""
-
-#: src/elflint.c:2837
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-msgstr ""
-
-#: src/elflint.c:2889
-#, c-format
-msgid "more than one version reference section present\n"
-msgstr ""
-
-#: src/elflint.c:2897 src/elflint.c:3026
-#, c-format
-msgid "section [%2d] '%s': sh_link does not link to string table\n"
-msgstr ""
-
-#: src/elflint.c:2920 src/elflint.c:3078
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong version %d\n"
-msgstr ""
-
-#: src/elflint.c:2926 src/elflint.c:3084
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:2934
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid file reference\n"
-msgstr ""
-
-#: src/elflint.c:2942
-#, c-format
-msgid "section [%2d] '%s': entry %d references unknown dependency\n"
-msgstr ""
-
-#: src/elflint.c:2954
-#, c-format
-msgid "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-msgstr ""
-
-#: src/elflint.c:2961
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-msgstr ""
-
-#: src/elflint.c:2968
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-msgstr ""
-
-#: src/elflint.c:2978
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2989
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-msgstr ""
-
-#: src/elflint.c:3005 src/elflint.c:3163
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-msgstr ""
-
-#: src/elflint.c:3018
-#, c-format
-msgid "more than one version definition section present\n"
-msgstr ""
-
-#: src/elflint.c:3063
-#, c-format
-msgid "section [%2d] '%s': more than one BASE definition\n"
-msgstr ""
-
-#: src/elflint.c:3067
-#, c-format
-msgid "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-msgstr ""
-
-#: src/elflint.c:3073
-#, c-format
-msgid "section [%2d] '%s': entry %d has unknown flag\n"
-msgstr ""
-
-#: src/elflint.c:3097
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid name reference\n"
-msgstr ""
-
-#: src/elflint.c:3104
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-msgstr ""
-
-#: src/elflint.c:3113
-#, c-format
-msgid "section [%2d] '%s': entry %d has duplicate version name '%s'\n"
-msgstr ""
-
-#: src/elflint.c:3132
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:3147
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:3169
-#, c-format
-msgid "section [%2d] '%s': no BASE definition\n"
-msgstr ""
-
-#: src/elflint.c:3185
-#, c-format
-msgid "section [%2d] '%s': unknown parent version '%s'\n"
-msgstr ""
-
-#: src/elflint.c:3198
-#, c-format
-msgid "section [%2d] '%s': empty object attributes section\n"
-msgstr ""
-
-#: src/elflint.c:3219
-#, c-format
-msgid "section [%2d] '%s': unrecognized attribute format\n"
-msgstr ""
-
-#: src/elflint.c:3235
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3244
-#, c-format
-msgid "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3256
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-msgstr ""
-
-#: src/elflint.c:3273
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-msgstr ""
-
-#: src/elflint.c:3282
-#, c-format
-msgid "section [%2d] '%s': offset %zu: truncated attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3291
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-msgstr ""
-
-#: src/elflint.c:3304
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-msgstr ""
-
-#: src/elflint.c:3315
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-msgstr ""
-
-#: src/elflint.c:3333
-#, c-format
-msgid "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-msgstr ""
-
-#: src/elflint.c:3344
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-msgstr ""
-
-#: src/elflint.c:3357
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-msgstr ""
-
-#: src/elflint.c:3361
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:3371
-#, c-format
-msgid "section [%2d] '%s': offset %zu: vendor '%s' unknown\n"
-msgstr ""
-
-#: src/elflint.c:3377
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3466
-#, c-format
-msgid "cannot get section header of zeroth section\n"
-msgstr ""
-
-#: src/elflint.c:3470
-#, c-format
-msgid "zeroth section has nonzero name\n"
-msgstr ""
-
-#: src/elflint.c:3472
-#, c-format
-msgid "zeroth section has nonzero type\n"
-msgstr ""
-
-#: src/elflint.c:3474
-#, c-format
-msgid "zeroth section has nonzero flags\n"
-msgstr ""
-
-#: src/elflint.c:3476
-#, c-format
-msgid "zeroth section has nonzero address\n"
-msgstr ""
-
-#: src/elflint.c:3478
-#, c-format
-msgid "zeroth section has nonzero offset\n"
-msgstr ""
-
-#: src/elflint.c:3480
-#, c-format
-msgid "zeroth section has nonzero align value\n"
-msgstr ""
-
-#: src/elflint.c:3482
-#, c-format
-msgid "zeroth section has nonzero entry size value\n"
-msgstr ""
-
-#: src/elflint.c:3485
-#, c-format
-msgid ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-msgstr ""
-
-#: src/elflint.c:3489
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-msgstr ""
-
-#: src/elflint.c:3493
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-msgstr ""
-
-#: src/elflint.c:3510
-#, c-format
-msgid "cannot get section header for section [%2zu] '%s': %s\n"
-msgstr ""
-
-#: src/elflint.c:3519
-#, c-format
-msgid "section [%2zu]: invalid name\n"
-msgstr ""
-
-#: src/elflint.c:3546
-#, c-format
-msgid "section [%2d] '%s' has wrong type: expected %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3562
-#, c-format
-msgid "section [%2zu] '%s' has wrong flags: expected %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3579
-#, c-format
-msgid ""
-"section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3597
-#, c-format
-msgid "section [%2zu] '%s' present in object file\n"
-msgstr ""
-
-#: src/elflint.c:3603 src/elflint.c:3635
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"
-msgstr ""
-
-#: src/elflint.c:3608 src/elflint.c:3640
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-msgstr ""
-
-#: src/elflint.c:3616
-#, c-format
-msgid ""
-"section [%2zu] '%s' is extension section index table in non-object file\n"
-msgstr ""
-
-#: src/elflint.c:3659
-#, c-format
-msgid "section [%2zu] '%s': size not multiple of entry size\n"
-msgstr ""
-
-#: src/elflint.c:3664
-#, c-format
-msgid "cannot get section header\n"
-msgstr ""
-
-#: src/elflint.c:3674
-#, c-format
-msgid "section [%2zu] '%s' has unsupported type %d\n"
-msgstr ""
-
-#: src/elflint.c:3688
-#, c-format
-msgid ""
-"section [%2zu] '%s' contains invalid processor-specific flag(s) %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:3695
-#, c-format
-msgid "section [%2zu] '%s' contains unknown flag(s) %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:3703
-#, c-format
-msgid "section [%2zu] '%s': thread-local data sections address not zero\n"
-msgstr ""
-
-#: src/elflint.c:3711
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in link value\n"
-msgstr ""
-
-#: src/elflint.c:3716
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in info value\n"
-msgstr ""
-
-#: src/elflint.c:3723
-#, c-format
-msgid "section [%2zu] '%s': strings flag set without merge flag\n"
-msgstr ""
-
-#: src/elflint.c:3728
-#, c-format
-msgid "section [%2zu] '%s': merge flag set but entry size is zero\n"
-msgstr ""
-
-#: src/elflint.c:3746
-#, c-format
-msgid "section [%2zu] '%s' has unexpected type %d for an executable section\n"
-msgstr ""
-
-#: src/elflint.c:3755
-#, c-format
-msgid "section [%2zu] '%s' is both executable and writable\n"
-msgstr ""
-
-#: src/elflint.c:3784
-#, c-format
-msgid ""
-"section [%2zu] '%s' not fully contained in segment of program header entry "
-"%d\n"
-msgstr ""
-
-#: src/elflint.c:3792
-#, c-format
-msgid ""
-"section [%2zu] '%s' has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-msgstr ""
-
-#: src/elflint.c:3801
-#, c-format
-msgid ""
-"section [%2zu] '%s' has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-msgstr ""
-
-#: src/elflint.c:3812
-#, c-format
-msgid "section [%2zu] '%s' is executable in nonexecutable segment %d\n"
-msgstr ""
-
-#: src/elflint.c:3822
-#, c-format
-msgid "section [%2zu] '%s' is writable in unwritable segment %d\n"
-msgstr ""
-
-#: src/elflint.c:3832
-#, c-format
-msgid ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:3838
-#, c-format
-msgid ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-msgstr ""
-
-#: src/elflint.c:3846
-#, c-format
-msgid ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-msgstr ""
-
-#: src/elflint.c:3897
-#, c-format
-msgid "more than one version symbol table present\n"
-msgstr ""
-
-#: src/elflint.c:3920
-#, c-format
-msgid "INTERP program header entry but no .interp section\n"
-msgstr ""
-
-#: src/elflint.c:3931
-#, c-format
-msgid ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-msgstr ""
-
-#: src/elflint.c:3937
-#, c-format
-msgid "loadable segment [%u] is writable but contains no writable sections\n"
-msgstr ""
-
-#: src/elflint.c:3948
-#, c-format
-msgid ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-msgstr ""
-
-#: src/elflint.c:3961
-#, c-format
-msgid "duplicate version index %d\n"
-msgstr ""
-
-#: src/elflint.c:3975
-#, c-format
-msgid ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-msgstr ""
-
-#: src/elflint.c:4024
-#, c-format
-msgid "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:4028
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4051
-#, c-format
-msgid "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4055
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4072
-#, c-format
-msgid "phdr[%d]: no note entries defined for the type of file\n"
-msgstr ""
-
-#: src/elflint.c:4091
-#, c-format
-msgid "phdr[%d]: cannot get content of note section: %s\n"
-msgstr ""
-
-#: src/elflint.c:4094
-#, c-format
-msgid "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-msgstr ""
-
-#: src/elflint.c:4115
-#, c-format
-msgid "section [%2d] '%s': no note entries defined for the type of file\n"
-msgstr ""
-
-#: src/elflint.c:4122
-#, c-format
-msgid "section [%2d] '%s': cannot get content of note section\n"
-msgstr ""
-
-#: src/elflint.c:4125
-#, c-format
-msgid "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-msgstr ""
-
-#: src/elflint.c:4143
-#, c-format
-msgid ""
-"only executables, shared objects, and core files can have program headers\n"
-msgstr ""
-
-#: src/elflint.c:4158
-#, c-format
-msgid "cannot get program header entry %d: %s\n"
-msgstr ""
-
-#: src/elflint.c:4167
-#, c-format
-msgid "program header entry %d: unknown program header entry type %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:4178
-#, c-format
-msgid "more than one INTERP entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4186
-#, c-format
-msgid "more than one TLS entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4193
-#, c-format
-msgid "static executable cannot have dynamic sections\n"
-msgstr ""
-
-#: src/elflint.c:4207
-#, c-format
-msgid "dynamic section reference in program header has wrong offset\n"
-msgstr ""
-
-#: src/elflint.c:4210
-#, c-format
-msgid "dynamic section size mismatch in program and section header\n"
-msgstr ""
-
-#: src/elflint.c:4220
-#, c-format
-msgid "more than one GNU_RELRO entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4241
-#, c-format
-msgid "loadable segment GNU_RELRO applies to is not writable\n"
-msgstr ""
-
-#: src/elflint.c:4244
-#, c-format
-msgid "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-msgstr ""
-
-#: src/elflint.c:4252 src/elflint.c:4275
-#, c-format
-msgid "%s segment not contained in a loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:4281
-#, c-format
-msgid "program header offset in ELF header and PHDR entry do not match"
-msgstr ""
-
-#: src/elflint.c:4305
-#, c-format
-msgid "call frame search table reference in program header has wrong offset\n"
-msgstr ""
-
-#: src/elflint.c:4308
-#, c-format
-msgid "call frame search table size mismatch in program and section header\n"
-msgstr ""
-
-#: src/elflint.c:4321
-#, c-format
-msgid "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-msgstr ""
-
-#: src/elflint.c:4329
-#, c-format
-msgid "call frame search table must be allocated\n"
-msgstr ""
-
-#: src/elflint.c:4332
-#, c-format
-msgid "section [%2zu] '%s' must be allocated\n"
-msgstr ""
-
-#: src/elflint.c:4336
-#, c-format
-msgid "call frame search table must not be writable\n"
-msgstr ""
-
-#: src/elflint.c:4339
-#, c-format
-msgid "section [%2zu] '%s' must not be writable\n"
-msgstr ""
-
-#: src/elflint.c:4344
-#, c-format
-msgid "call frame search table must not be executable\n"
-msgstr ""
-
-#: src/elflint.c:4347
-#, c-format
-msgid "section [%2zu] '%s' must not be executable\n"
-msgstr ""
-
-#: src/elflint.c:4358
-#, c-format
-msgid "program header entry %d: file size greater than memory size\n"
-msgstr ""
-
-#: src/elflint.c:4365
-#, c-format
-msgid "program header entry %d: alignment not a power of 2\n"
-msgstr ""
-
-#: src/elflint.c:4368
-#, c-format
-msgid ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-msgstr ""
-
-#: src/elflint.c:4381
-#, c-format
-msgid ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-msgstr ""
-
-#: src/elflint.c:4415
-#, c-format
-msgid "cannot read ELF header: %s\n"
-msgstr ""
-
-#: src/elflint.c:4441
-#, c-format
-msgid "text relocation flag set but not needed\n"
-msgstr ""
-
-#: src/findtextrel.c:62
-msgid "Input Selection:"
-msgstr ""
-
-#: src/findtextrel.c:63
-msgid "Prepend PATH to all file names"
-msgstr ""
-
-#: src/findtextrel.c:65
-msgid "Use PATH as root of debuginfo hierarchy"
-msgstr ""
-
-#: src/findtextrel.c:72
-msgid "Locate source of text relocations in FILEs (a.out by default)."
-msgstr ""
-
-#: src/findtextrel.c:76 src/nm.c:108 src/objdump.c:72 src/size.c:84
-#: src/strings.c:84 src/strip.c:96
-msgid "[FILE...]"
-msgstr ""
-
-#: src/findtextrel.c:238
-#, c-format
-msgid "cannot get ELF header '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:249
-#, c-format
-msgid "'%s' is not a DSO or PIE"
-msgstr ""
-
-#: src/findtextrel.c:269
-#, c-format
-msgid "getting get section header of section %zu: %s"
-msgstr ""
-
-#: src/findtextrel.c:292
-#, c-format
-msgid "cannot read dynamic section: %s"
-msgstr ""
-
-#: src/findtextrel.c:313
-#, c-format
-msgid "no text relocations reported in '%s'"
-msgstr ""
-
-#: src/findtextrel.c:325
-#, c-format
-msgid "while reading ELF file"
-msgstr ""
-
-#: src/findtextrel.c:329
-#, fuzzy, c-format
-msgid "cannot get program header count: %s"
-msgstr "konnte Programm-Kopf nicht erstellen: %s"
-
-#: src/findtextrel.c:340 src/findtextrel.c:357
-#, fuzzy, c-format
-msgid "cannot get program header index at offset %zd: %s"
-msgstr "konnte Programm-Kopf nicht erstellen: %s"
-
-#: src/findtextrel.c:409
-#, c-format
-msgid "cannot get section header of section %Zu: %s"
-msgstr ""
-
-#: src/findtextrel.c:421
-#, c-format
-msgid "cannot get symbol table section %zu in '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:441 src/findtextrel.c:464
-#, c-format
-msgid "cannot get relocation at index %d in section %zu in '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:529
-#, c-format
-msgid "%s not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:582
-#, c-format
-msgid ""
-"the file containing the function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:589 src/findtextrel.c:609
-#, c-format
-msgid ""
-"the file containing the function '%s' might not be compiled with -fpic/-"
-"fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:597
-#, c-format
-msgid ""
-"either the file containing the function '%s' or the file containing the "
-"function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:617
-#, c-format
-msgid ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-msgstr ""
-
-#: src/i386_ld.c:202
-#, c-format
-msgid "cannot allocate PLT section: %s"
-msgstr ""
-
-#: src/i386_ld.c:224
-#, c-format
-msgid "cannot allocate PLTREL section: %s"
-msgstr ""
-
-#: src/i386_ld.c:245
-#, c-format
-msgid "cannot allocate GOT section: %s"
-msgstr ""
-
-#: src/i386_ld.c:266
-#, c-format
-msgid "cannot allocate GOTPLT section: %s"
-msgstr ""
-
-#: src/i386_ld.c:653
-#, c-format
-msgid "initial-executable TLS relocation cannot be used "
-msgstr ""
-
-#: src/ld.c:79
-msgid "Input File Control:"
-msgstr ""
-
-#: src/ld.c:81
-msgid "Include whole archives in the output from now on."
-msgstr ""
-
-#: src/ld.c:83
-msgid "Stop including the whole archives in the output."
-msgstr ""
-
-#: src/ld.c:84 src/ld.c:98 src/ld.c:176
-msgid "FILE"
-msgstr "DATEI"
-
-#: src/ld.c:85
-msgid "Start a group."
-msgstr "Eine Gruppe starten."
-
-#: src/ld.c:86
-msgid "End a group."
-msgstr "Eine Gruppe beenden."
-
-#: src/ld.c:87
-msgid "PATH"
-msgstr "PFAD"
-
-#: src/ld.c:88
-msgid "Add PATH to list of directories files are searched in."
-msgstr ""
-
-#: src/ld.c:90
-msgid "Only set DT_NEEDED for following dynamic libs if actually used"
-msgstr ""
-
-#: src/ld.c:92
-msgid "Always set DT_NEEDED for following dynamic libs"
-msgstr ""
-
-#: src/ld.c:94
-msgid "Ignore LD_LIBRARY_PATH environment variable."
-msgstr ""
-
-#: src/ld.c:97
-msgid "Output File Control:"
-msgstr ""
-
-#: src/ld.c:98
-msgid "Place output in FILE."
-msgstr ""
-
-#: src/ld.c:101
-msgid "Object is marked to not use default search path at runtime."
-msgstr ""
-
-#: src/ld.c:103
-msgid "Same as --whole-archive."
-msgstr "Genau wie --whole-archive."
-
-#: src/ld.c:104
-msgid ""
-"Default rules of extracting from archive; weak references are not enough."
-msgstr ""
-
-#: src/ld.c:108
-msgid "Weak references cause extraction from archive."
-msgstr ""
-
-#: src/ld.c:110
-msgid "Allow multiple definitions; first is used."
-msgstr ""
-
-#: src/ld.c:112
-msgid "Disallow/allow undefined symbols in DSOs."
-msgstr ""
-
-#: src/ld.c:115
-msgid "Object requires immediate handling of $ORIGIN."
-msgstr ""
-
-#: src/ld.c:117
-msgid "Relocation will not be processed lazily."
-msgstr ""
-
-#: src/ld.c:119
-msgid "Object cannot be unloaded at runtime."
-msgstr ""
-
-#: src/ld.c:121
-msgid "Mark object to be initialized first."
-msgstr ""
-
-#: src/ld.c:123
-msgid "Enable/disable lazy-loading flag for following dependencies."
-msgstr ""
-
-#: src/ld.c:125
-msgid "Mark object as not loadable with 'dlopen'."
-msgstr ""
-
-#: src/ld.c:127
-msgid "Ignore/record dependencies on unused DSOs."
-msgstr ""
-
-#: src/ld.c:129
-msgid "Generated DSO will be a system library."
-msgstr ""
-
-#: src/ld.c:130
-msgid "ADDRESS"
-msgstr "ADRESSE"
-
-#: src/ld.c:130
-msgid "Set entry point address."
-msgstr ""
-
-#: src/ld.c:133
-msgid "Do not link against shared libraries."
-msgstr ""
-
-#: src/ld.c:136
-msgid "Prefer linking against shared libraries."
-msgstr ""
-
-#: src/ld.c:137
-msgid "Export all dynamic symbols."
-msgstr ""
-
-#: src/ld.c:138
-msgid "Strip all symbols."
-msgstr ""
-
-#: src/ld.c:139
-msgid "Strip debugging symbols."
-msgstr ""
-
-#: src/ld.c:141
-msgid "Assume pagesize for the target system to be SIZE."
-msgstr ""
-
-#: src/ld.c:143
-msgid "Set runtime DSO search path."
-msgstr ""
-
-#: src/ld.c:146
-msgid "Set link time DSO search path."
-msgstr ""
-
-#: src/ld.c:147
-msgid "Generate dynamic shared object."
-msgstr ""
-
-#: src/ld.c:148
-msgid "Generate relocatable object."
-msgstr ""
-
-#: src/ld.c:151
-msgid "Causes symbol not assigned to a version be reduced to local."
-msgstr ""
-
-#: src/ld.c:152
-msgid "Remove unused sections."
-msgstr ""
-
-#: src/ld.c:155
-msgid "Don't remove unused sections."
-msgstr ""
-
-#: src/ld.c:156
-msgid "Set soname of shared object."
-msgstr ""
-
-#: src/ld.c:157
-msgid "Set the dynamic linker name."
-msgstr ""
-
-#: src/ld.c:160
-msgid "Add/suppress addition indentifying link-editor to .comment section."
-msgstr ""
-
-#: src/ld.c:163
-msgid "Create .eh_frame_hdr section"
-msgstr ""
-
-#: src/ld.c:165
-msgid "Set hash style to sysv, gnu or both."
-msgstr ""
-
-#: src/ld.c:167
-msgid "Generate build ID note (md5, sha1 (default), uuid)."
-msgstr ""
-
-#: src/ld.c:169
-msgid "Linker Operation Control:"
-msgstr ""
-
-#: src/ld.c:170
-msgid "Verbose messages."
-msgstr ""
-
-#: src/ld.c:171
-msgid "Trace file opens."
-msgstr ""
-
-#: src/ld.c:173
-msgid "Trade speed for less memory usage"
-msgstr ""
-
-#: src/ld.c:174
-msgid "LEVEL"
-msgstr ""
-
-#: src/ld.c:175
-msgid "Set optimization level to LEVEL."
-msgstr ""
-
-#: src/ld.c:176
-msgid "Use linker script in FILE."
-msgstr ""
-
-#: src/ld.c:179
-msgid "Select to get parser debug information"
-msgstr ""
-
-#: src/ld.c:182
-msgid "Read version information from FILE."
-msgstr ""
-
-#: src/ld.c:183
-msgid "Set emulation to NAME."
-msgstr ""
-
-#: src/ld.c:189
-msgid "Combine object and archive files."
-msgstr ""
-
-#: src/ld.c:192
-msgid "[FILE]..."
-msgstr "[DATEI]..."
-
-#: src/ld.c:325
-#, c-format
-msgid "At least one input file needed"
-msgstr "Mindestens eine Eingabedatei benötigt"
-
-#: src/ld.c:341
-#, c-format
-msgid "error while preparing linking"
-msgstr ""
-
-#: src/ld.c:348
-#, c-format
-msgid "cannot open linker script '%s'"
-msgstr ""
-
-#: src/ld.c:389
-#, c-format
-msgid "-( without matching -)"
-msgstr "-( ohne Übereinstimmung -)"
-
-#: src/ld.c:564 src/ld.c:602
-#, c-format
-msgid "only one option of -G and -r is allowed"
-msgstr "nur eine Option aus -G und -r erlaubt"
-
-#: src/ld.c:586
-#, c-format
-msgid "more than one '-m' parameter"
-msgstr ""
-
-#: src/ld.c:596 src/ld.c:1005
-#, c-format
-msgid "unknown option `-%c %s'"
-msgstr ""
-
-#: src/ld.c:638
-#, c-format
-msgid "invalid page size value '%s': ignored"
-msgstr ""
-
-#: src/ld.c:679
-#, c-format
-msgid "invalid hash style '%s'"
-msgstr ""
-
-#: src/ld.c:689
-#, c-format
-msgid "invalid build-ID style '%s'"
-msgstr ""
-
-#: src/ld.c:777
-#, c-format
-msgid "More than one output file name given."
-msgstr "Mehr als ein Name der Ausgabedatei angegeben."
-
-#: src/ld.c:794
-#, c-format
-msgid "Invalid optimization level `%s'"
-msgstr ""
-
-#: src/ld.c:842
-#, c-format
-msgid "nested -( -) groups are not allowed"
-msgstr ""
-
-#: src/ld.c:861
-#, c-format
-msgid "-) without matching -("
-msgstr "-) ohne Übereinstimmung -("
-
-#: src/ld.c:1038
-#, c-format
-msgid "unknown option '-%c %s'"
-msgstr "unbekannte Option '-%c %s'"
-
-#: src/ld.c:1142
-#, c-format
-msgid "could not find input file to determine output file format"
-msgstr ""
-
-#: src/ld.c:1144
-#, c-format
-msgid "try again with an appropriate '-m' parameter"
-msgstr ""
-
-#: src/ld.c:1438
-#, c-format
-msgid "cannot read version script '%s'"
-msgstr ""
-
-#: src/ld.c:1504 src/ld.c:1543
-#, c-format
-msgid "duplicate definition of '%s' in linker script"
-msgstr ""
-
-#: src/ldgeneric.c:201 src/ldgeneric.c:5141
-#, c-format
-msgid "cannot create string table"
-msgstr ""
-
-#: src/ldgeneric.c:247
-#, c-format
-msgid "cannot load ld backend library '%s': %s"
-msgstr ""
-
-#: src/ldgeneric.c:257
-#, c-format
-msgid "cannot find init function in ld backend library '%s': %s"
-msgstr ""
-
-#: src/ldgeneric.c:300
-#, c-format
-msgid "%s listed more than once as input"
-msgstr ""
-
-#: src/ldgeneric.c:414
-#, c-format
-msgid "%s (for -l%s)\n"
-msgstr ""
-
-#: src/ldgeneric.c:415
-#, c-format
-msgid "%s (for DT_NEEDED %s)\n"
-msgstr ""
-
-#: src/ldgeneric.c:563
-#, c-format
-msgid "Warning: type of `%s' changed from %s in %s to %s in %s"
-msgstr ""
-
-#: src/ldgeneric.c:576
-#, c-format
-msgid "Warning: size of `%s' changed from %<PRIu64> in %s to %<PRIu64> in %s"
-msgstr ""
-
-#: src/ldgeneric.c:651 src/ldgeneric.c:1112 src/readelf.c:527
-#: src/readelf.c:829 src/strip.c:568
-#, c-format
-msgid "cannot determine number of sections: %s"
-msgstr ""
-
-#: src/ldgeneric.c:667
-#, c-format
-msgid "(%s+%#<PRIx64>): multiple definition of %s `%s'\n"
-msgstr ""
-
-#: src/ldgeneric.c:690
-#, c-format
-msgid "(%s+%#<PRIx64>): first defined here\n"
-msgstr ""
-
-#: src/ldgeneric.c:809
-#, c-format
-msgid "%s: cannot get section group data: %s"
-msgstr ""
-
-#: src/ldgeneric.c:830
-#, c-format
-msgid "%s: section '%s' with group flag set does not belong to any group"
-msgstr ""
-
-#: src/ldgeneric.c:875
-#, c-format
-msgid "%s: section [%2d] '%s' is not in the correct section group"
-msgstr ""
-
-#: src/ldgeneric.c:1146 src/ldgeneric.c:1403 src/ldgeneric.c:1412
-#: src/ldgeneric.c:1471 src/ldgeneric.c:1480 src/ldgeneric.c:1743
-#: src/ldgeneric.c:1995
-#, c-format
-msgid "%s: invalid ELF file (%s:%d)\n"
-msgstr ""
-
-#: src/ldgeneric.c:1240
-#, c-format
-msgid "%s: only files of type ET_REL might contain section groups"
-msgstr ""
-
-#: src/ldgeneric.c:1292
-#, c-format
-msgid "%s: cannot determine signature of section group [%2zd] '%s': %s"
-msgstr ""
-
-#: src/ldgeneric.c:1304
-#, c-format
-msgid "%s: cannot get content of section group [%2zd] '%s': %s'"
-msgstr ""
-
-#: src/ldgeneric.c:1318
-#, c-format
-msgid ""
-"%s: group member %zu of section group [%2zd] '%s' has too high index: "
-"%<PRIu32>"
-msgstr ""
-
-#: src/ldgeneric.c:1340
-#, c-format
-msgid "%s: section '%s' has unknown type: %d"
-msgstr ""
-
-#: src/ldgeneric.c:1719
-#, c-format
-msgid "cannot get descriptor for ELF file (%s:%d): %s\n"
-msgstr ""
-
-#: src/ldgeneric.c:1889
-#, c-format
-msgid "cannot read archive `%s': %s"
-msgstr ""
-
-#: src/ldgeneric.c:2010
-#, c-format
-msgid "file of type %s cannot be linked in\n"
-msgstr ""
-
-#: src/ldgeneric.c:2022
-#, c-format
-msgid "%s: input file incompatible with ELF machine type %s\n"
-msgstr ""
-
-#: src/ldgeneric.c:2034
-#, c-format
-msgid "%s: cannot get section header string table index: %s\n"
-msgstr ""
-
-#: src/ldgeneric.c:2063
-#, c-format
-msgid "cannot use DSO '%s' when generating relocatable object file"
-msgstr ""
-
-#: src/ldgeneric.c:2148
-#, c-format
-msgid "input file '%s' ignored"
-msgstr "Eingabedatei '%s' ignoriert"
-
-#: src/ldgeneric.c:2362
-#, c-format
-msgid "undefined symbol `%s' in %s"
-msgstr "undefiniertes Symbol `%s' in %s"
-
-#: src/ldgeneric.c:2692
-#, c-format
-msgid "cannot create ELF descriptor for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:2699
-#, c-format
-msgid "could not create ELF header for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:3214 src/ldgeneric.c:3284 src/ldgeneric.c:3320
-#: src/ldgeneric.c:4447 src/ldgeneric.c:4496 src/ldgeneric.c:4528
-#: src/ldgeneric.c:4763 src/ldgeneric.c:4818 src/ldgeneric.c:5065
-#: src/ldgeneric.c:5121 src/ldgeneric.c:5590 src/ldgeneric.c:5602
-#, c-format
-msgid "cannot create section for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:3434
-#, c-format
-msgid "address computation expression contains variable '%s'"
-msgstr ""
-
-#: src/ldgeneric.c:3479
-#, c-format
-msgid ""
-"argument '%<PRIuMAX>' of ALIGN in address computation expression is no power "
-"of two"
-msgstr ""
-
-#: src/ldgeneric.c:3674
-#, c-format
-msgid "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-msgstr ""
-
-#: src/ldgeneric.c:3680
-#, c-format
-msgid "no entry symbol specified: defaulting to %#0*<PRIx64>"
-msgstr ""
-
-#: src/ldgeneric.c:3910
-#, c-format
-msgid "cannot create GNU hash table section for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4061
-#, c-format
-msgid "cannot create hash table section for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4104
-#, c-format
-msgid "cannot create build ID section: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4181
-#, c-format
-msgid "cannot convert section data to file format: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4190
-#, c-format
-msgid "cannot convert section data to memory format: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4251
-#, c-format
-msgid "cannot read enough data for UUID"
-msgstr ""
-
-#: src/ldgeneric.c:4348 src/ldgeneric.c:4369 src/ldgeneric.c:4398
-#: src/ldgeneric.c:6051
-#, c-format
-msgid "cannot create symbol table for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:5290 src/ldgeneric.c:5842
-#, c-format
-msgid "section index too large in dynamic symbol table"
-msgstr ""
-
-#: src/ldgeneric.c:5735
-#, c-format
-msgid "cannot create versioning section: %s"
-msgstr "konnte Versionierungsabschnitt nicht erstellen: %s"
-
-#: src/ldgeneric.c:5808
-#, c-format
-msgid "cannot create dynamic symbol table for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:5983
-#, c-format
-msgid "cannot create versioning data: %s"
-msgstr "konnte Versionierungsdaten nicht erstellen: %s"
-
-#: src/ldgeneric.c:6083 src/ldgeneric.c:6096 src/ldgeneric.c:6160
-#: src/ldgeneric.c:6168
-#, c-format
-msgid "cannot create section header string section: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6090
-#, c-format
-msgid "cannot create section header string section"
-msgstr ""
-
-#: src/ldgeneric.c:6248
-#, c-format
-msgid "cannot create program header: %s"
-msgstr "konnte Programm-Kopf nicht erstellen: %s"
-
-#: src/ldgeneric.c:6256
-#, c-format
-msgid "while determining file layout: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6377
-#, c-format
-msgid "internal error: non-nobits section follows nobits section"
-msgstr ""
-
-#: src/ldgeneric.c:6914
-#, c-format
-msgid "cannot get header of 0th section: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6930 src/unstrip.c:1822
-#, c-format
-msgid "cannot update ELF header: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6961
-#, c-format
-msgid "linker backend didn't specify function to relocate section"
-msgstr ""
-
-#: src/ldgeneric.c:6973
-#, c-format
-msgid "while writing output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6978
-#, c-format
-msgid "while finishing output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6984
-#, c-format
-msgid "cannot stat output file"
-msgstr ""
-
-#: src/ldgeneric.c:7000
-#, c-format
-msgid "WARNING: temporary output file overwritten before linking finished"
-msgstr ""
-
-#: src/ldgeneric.c:7053 src/ldgeneric.c:7064 src/ldgeneric.c:7075
-#: src/ldgeneric.c:7086 src/ldgeneric.c:7105 src/ldgeneric.c:7118
-#: src/ldgeneric.c:7130
-#, c-format
-msgid "no machine specific '%s' implementation"
-msgstr ""
-
-#: src/ldscript.y:170
-msgid "mode for segment invalid\n"
-msgstr ""
-
-#: src/ldscript.y:457
-#, c-format
-msgid "while reading version script '%s': %s at line %d"
-msgstr ""
-
-#: src/ldscript.y:458
-#, c-format
-msgid "while reading linker script '%s': %s at line %d"
-msgstr ""
-
-#: src/ldscript.y:737
-#, c-format
-msgid "symbol '%s' is declared both local and global for unnamed version"
-msgstr ""
-
-#: src/ldscript.y:739
-#, c-format
-msgid "symbol '%s' is declared both local and global for version '%s'"
-msgstr ""
-
-#: src/ldscript.y:759 src/ldscript.y:766
-#, c-format
-msgid "default visibility set as local and global"
-msgstr "Standard-Sichtbarkeit auf lokal und global gesetzt"
-
-#: src/nm.c:66 src/strip.c:68
-msgid "Output selection:"
-msgstr ""
-
-#: src/nm.c:67
-msgid "Display debugger-only symbols"
-msgstr ""
-
-#: src/nm.c:68
-msgid "Display only defined symbols"
-msgstr "Zeige nur definierte Symbole"
-
-#: src/nm.c:71
-msgid "Display dynamic symbols instead of normal symbols"
-msgstr "Zeige dynamische Symbole anstelle normaler Symbole"
-
-#: src/nm.c:72
-msgid "Display only external symbols"
-msgstr "Zeige nur externe Symbole"
-
-#: src/nm.c:73
-msgid "Display only undefined symbols"
-msgstr "Zeige nur undefinierte Symbole"
-
-#: src/nm.c:75
-msgid "Include index for symbols from archive members"
-msgstr ""
-
-#: src/nm.c:77 src/size.c:58
-msgid "Output format:"
-msgstr "Ausgabeformat:"
-
-#: src/nm.c:79
-#, fuzzy
-msgid "Print name of the input file before every symbol"
-msgstr "Zeige Name der Eingabedatei vor jedem Symbol"
-
-#: src/nm.c:82
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The "
-"default is `sysv'"
-msgstr ""
-"Benutze das Ausgabeformat FORMAT. FORMAT kann `bsd', `sysv' or `posix' sein. "
-"Der Standard ist `sysv'"
-
-#: src/nm.c:84
-msgid "Same as --format=bsd"
-msgstr "Genau wie --format=bsd"
-
-#: src/nm.c:85
-msgid "Same as --format=posix"
-msgstr "Genau wie --format=posix"
-
-#: src/nm.c:86 src/size.c:64
-msgid "Use RADIX for printing symbol values"
-msgstr "Benutze RADIX zur Ausgabe von Symbolwerten"
-
-#: src/nm.c:87
-#, fuzzy
-msgid "Mark special symbols"
-msgstr "Kennzeichne schwache Symbole"
-
-#: src/nm.c:89
-#, fuzzy
-msgid "Print size of defined symbols"
-msgstr "Zeige Grösse der definierten Symbole"
-
-#: src/nm.c:91 src/size.c:72 src/strip.c:73 src/unstrip.c:73
-msgid "Output options:"
-msgstr "Ausgabeoptionen:"
-
-#: src/nm.c:92
-msgid "Sort symbols numerically by address"
-msgstr "Symbole anhand der Adresse numerisch sortieren"
-
-#: src/nm.c:94
-msgid "Do not sort the symbols"
-msgstr "Symbole nicht sortieren"
-
-#: src/nm.c:95
-msgid "Reverse the sense of the sort"
-msgstr "Sortierreihenfolge umkehren"
-
-#: src/nm.c:98
-msgid "Decode low-level symbol names into source code names"
-msgstr ""
-
-#: src/nm.c:105
-msgid "List symbols from FILEs (a.out by default)."
-msgstr ""
-
-#: src/nm.c:116 src/objdump.c:80
-#, fuzzy
-msgid "Output formatting"
-msgstr "Ausgabeformat:"
-
-#: src/nm.c:140 src/objdump.c:104 src/size.c:109 src/strip.c:120
-#, c-format
-msgid "%s: INTERNAL ERROR %d (%s-%s): %s"
-msgstr "%s: INTERNER FEHLER %d (%s-%s): %s"
-
-#: src/nm.c:398 src/nm.c:410 src/size.c:309 src/size.c:318 src/size.c:329
-#: src/strip.c:2160
-#, c-format
-msgid "while closing '%s'"
-msgstr "beim Schliessen von '%s'"
-
-#: src/nm.c:420 src/objdump.c:296 src/strip.c:376
-#, c-format
-msgid "%s: File format not recognized"
-msgstr "%s: Dateiformat nicht erkannt"
-
-#: src/nm.c:460
-#, fuzzy
-msgid ""
-"\n"
-"Archive index:\n"
-msgstr ""
-"\n"
-"Archiv-Index:"
-
-#: src/nm.c:469
-#, c-format
-msgid "invalid offset %zu for symbol %s"
-msgstr "ungültiger Offset %zu für Symbol %s"
-
-#: src/nm.c:474
-#, c-format
-msgid "%s in %s\n"
-msgstr ""
-
-#: src/nm.c:482
-#, c-format
-msgid "cannot reset archive offset to beginning"
-msgstr ""
-
-#: src/nm.c:506 src/objdump.c:344
-#, c-format
-msgid "%s%s%s: file format not recognized"
-msgstr "%s%s%s: Dateiformat nicht erkannt"
-
-#: src/nm.c:718
-#, c-format
-msgid "cannot create search tree"
-msgstr "Kann Suchbaum nicht erstellen"
-
-#: src/nm.c:757 src/nm.c:1163 src/objdump.c:793 src/readelf.c:536
-#: src/readelf.c:1085 src/readelf.c:1245 src/readelf.c:1393 src/readelf.c:1579
-#: src/readelf.c:1785 src/readelf.c:1975 src/readelf.c:2202 src/readelf.c:2460
-#: src/readelf.c:2536 src/readelf.c:2623 src/readelf.c:3201 src/readelf.c:3237
-#: src/readelf.c:3300 src/readelf.c:8187 src/readelf.c:9273 src/readelf.c:9420
-#: src/readelf.c:9488 src/size.c:417 src/size.c:486 src/strip.c:503
-#, c-format
-msgid "cannot get section header string table index"
-msgstr ""
-
-#: src/nm.c:784
-#, c-format
-msgid ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-msgstr ""
-"\n"
-"\n"
-"Symbole aus %s:\n"
-"\n"
-
-#: src/nm.c:787
-#, c-format
-msgid ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-msgstr ""
-
-#: src/nm.c:1173
-#, c-format
-msgid "%s: entry size in section `%s' is not what we expect"
-msgstr "%s: entry size in section `%s' is not what we expect"
-
-#: src/nm.c:1177
-#, c-format
-msgid "%s: size of section `%s' is not multiple of entry size"
-msgstr ""
-
-#: src/nm.c:1435
-#, c-format
-msgid "%s%s%s%s: Invalid operation"
-msgstr "%s%s%s%s: Ungültige Operation"
-
-#: src/nm.c:1492
-#, c-format
-msgid "%s%s%s: no symbols"
-msgstr "%s%s%s: keine Symbole"
-
-#: src/objdump.c:53
-msgid "Mode selection:"
-msgstr ""
-
-#: src/objdump.c:54
-msgid "Display relocation information."
-msgstr ""
-
-#: src/objdump.c:56
-msgid "Display the full contents of all sections requested"
-msgstr ""
-
-#: src/objdump.c:58
-msgid "Display assembler code of executable sections"
-msgstr ""
-
-#: src/objdump.c:60
-#, fuzzy
-msgid "Output content selection:"
-msgstr "Eingabeauswahloptionen:"
-
-#: src/objdump.c:62
-msgid "Only display information for section NAME."
-msgstr ""
-
-#: src/objdump.c:68
-msgid "Show information from FILEs (a.out by default)."
-msgstr ""
-
-#: src/objdump.c:236 src/readelf.c:473
-msgid "No operation specified.\n"
-msgstr "Keine Operation angegeben.\n"
-
-#: src/objdump.c:274 src/objdump.c:286
-#, c-format
-msgid "while close `%s'"
-msgstr ""
-
-#: src/objdump.c:379 src/readelf.c:1880 src/readelf.c:2072
-msgid "INVALID SYMBOL"
-msgstr ""
-
-#: src/objdump.c:394 src/readelf.c:1914 src/readelf.c:2108
-msgid "INVALID SECTION"
-msgstr ""
-
-#: src/objdump.c:514
-#, c-format
-msgid ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-msgstr ""
-
-#: src/objdump.c:517
-msgid "OFFSET"
-msgstr "OFFSET"
-
-#: src/objdump.c:582
-#, c-format
-msgid "Contents of section %s:\n"
-msgstr "Inhalt des Abschnitts %s:\n"
-
-#: src/objdump.c:703
-#, c-format
-msgid "cannot disassemble"
-msgstr "Disassemblieren nicht möglich"
-
-#: src/objdump.c:742
-#, fuzzy, c-format
-msgid "cannot allocate memory"
-msgstr "konnte Verzeichnis nicht erstellen: %s"
-
-#: src/ranlib.c:66
-msgid "Generate an index to speed access to archives."
-msgstr "Erstelle einen Index zur Beschleunigung des Zugriffs auf Archive."
-
-#: src/ranlib.c:69
-msgid "ARCHIVE"
-msgstr "ARCHIV"
-
-#: src/ranlib.c:108
-#, c-format
-msgid "Archive name required"
-msgstr "Archivname benötigt"
-
-#: src/ranlib.c:186
-#, c-format
-msgid "'%s' is no archive"
-msgstr "'%s' ist kein Archiv"
-
-#: src/ranlib.c:221
-#, c-format
-msgid "error while freeing sub-ELF descriptor: %s"
-msgstr ""
-
-#: src/readelf.c:71
-#, fuzzy
-msgid "ELF input selection:"
-msgstr "Eingabeauswahloptionen:"
-
-#: src/readelf.c:73
-msgid ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-msgstr ""
-
-#: src/readelf.c:75
-#, fuzzy
-msgid "ELF output selection:"
-msgstr "Eingabeauswahloptionen:"
-
-#: src/readelf.c:77
-msgid "All these plus -p .strtab -p .dynstr -p .comment"
-msgstr ""
-
-#: src/readelf.c:78
-msgid "Display the dynamic segment"
-msgstr ""
-
-#: src/readelf.c:79
-msgid "Display the ELF file header"
-msgstr ""
-
-#: src/readelf.c:81
-msgid "Display histogram of bucket list lengths"
-msgstr ""
-
-#: src/readelf.c:82
-msgid "Display the program headers"
-msgstr "Programm-Köpfe anzeigen"
-
-#: src/readelf.c:84
-msgid "Display relocations"
-msgstr "Relocations anzeigen"
-
-#: src/readelf.c:85
-#, fuzzy
-msgid "Display the sections' headers"
-msgstr "Programm-Köpfe anzeigen"
-
-#: src/readelf.c:87
-msgid "Display the symbol table"
-msgstr "Symboltabelle anzeigen"
-
-#: src/readelf.c:88
-msgid "Display versioning information"
-msgstr "Versionierungsinformationen anzeigen"
-
-#: src/readelf.c:89
-#, fuzzy
-msgid "Display the ELF notes"
-msgstr "Kernnotizen anzeigen"
-
-#: src/readelf.c:91
-#, fuzzy
-msgid "Display architecture specific information, if any"
-msgstr "Architekturspezifische Informationen anzeigen (falls vorhanden)"
-
-#: src/readelf.c:93
-msgid "Display sections for exception handling"
-msgstr "Abschnitte für Ausnahmebehandlung anzeigen"
-
-#: src/readelf.c:95
-msgid "Additional output selection:"
-msgstr ""
-
-#: src/readelf.c:97
-msgid ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-msgstr ""
-
-#: src/readelf.c:101
-msgid "Dump the uninterpreted contents of SECTION, by number or name"
-msgstr ""
-
-#: src/readelf.c:103
-msgid "Print string contents of sections"
-msgstr ""
-
-#: src/readelf.c:106
-msgid "Display the symbol index of an archive"
-msgstr "Symbolindex des Archivs anzeigen"
-
-#: src/readelf.c:108
-msgid "Output control:"
-msgstr "Ausgabekontrolle:"
-
-#: src/readelf.c:110
-msgid "Do not find symbol names for addresses in DWARF data"
-msgstr "Keine symbolischen Namen für Adressen in DWARF-Daten suchen"
-
-#: src/readelf.c:112
-#, fuzzy
-msgid ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-msgstr "Keine symbolischen Namen für Adressen in DWARF-Daten suchen"
-
-#: src/readelf.c:114
-msgid "Ignored for compatibility (lines always wide)"
-msgstr ""
-
-#: src/readelf.c:119
-msgid "Print information from ELF file in human-readable form."
-msgstr "Informationen aus der ELF-Datei in menschenlesbarer Form ausgeben."
-
-#: src/readelf.c:441
-#, c-format
-msgid "Unknown DWARF debug section `%s'.\n"
-msgstr ""
-
-#: src/readelf.c:520 src/readelf.c:631
-#, c-format
-msgid "cannot generate Elf descriptor: %s"
-msgstr "konnte Elf-Deskriptor nicht erzeugen: %s"
-
-#: src/readelf.c:545 src/readelf.c:1099 src/readelf.c:1269
-#, c-format
-msgid "cannot get section: %s"
-msgstr ""
-
-#: src/readelf.c:554 src/readelf.c:1106 src/readelf.c:1277 src/readelf.c:9440
-#: src/unstrip.c:356 src/unstrip.c:387 src/unstrip.c:436 src/unstrip.c:544
-#: src/unstrip.c:561 src/unstrip.c:597 src/unstrip.c:795 src/unstrip.c:1063
-#: src/unstrip.c:1254 src/unstrip.c:1314 src/unstrip.c:1435 src/unstrip.c:1488
-#: src/unstrip.c:1595 src/unstrip.c:1784
-#, c-format
-msgid "cannot get section header: %s"
-msgstr ""
-
-#: src/readelf.c:562
-#, fuzzy, c-format
-msgid "cannot get section name"
-msgstr "konnte Abschnittsdaten nicht holen: %s"
-
-#: src/readelf.c:571 src/readelf.c:5398 src/readelf.c:7671 src/readelf.c:7773
-#: src/readelf.c:7939
-#, c-format
-msgid "cannot get %s content: %s"
-msgstr ""
-
-#: src/readelf.c:587
-#, fuzzy, c-format
-msgid "cannot create temp file '%s'"
-msgstr "neue Datei konnte nicht angelegt werden"
-
-#: src/readelf.c:596
-#, fuzzy, c-format
-msgid "cannot write section data"
-msgstr "konnte Abschnittsdaten nicht holen: %s"
-
-#: src/readelf.c:602 src/readelf.c:619 src/readelf.c:648
-#, c-format
-msgid "error while closing Elf descriptor: %s"
-msgstr ""
-
-#: src/readelf.c:609
-#, fuzzy, c-format
-msgid "error while rewinding file descriptor"
-msgstr "Fehler beim Schliessen des Elf-Desktriptor: %s\n"
-
-#: src/readelf.c:643
-#, c-format
-msgid "'%s' is not an archive, cannot print archive index"
-msgstr ""
-
-#: src/readelf.c:742
-#, fuzzy, c-format
-msgid "No such section '%s' in '%s'"
-msgstr "konnte Abschnittsdaten nicht holen: %s"
-
-#: src/readelf.c:769
-#, c-format
-msgid "cannot stat input file"
-msgstr ""
-
-#: src/readelf.c:771
-#, c-format
-msgid "input file is empty"
-msgstr ""
-
-#: src/readelf.c:773
-#, c-format
-msgid "failed reading '%s': %s"
-msgstr "Konnte '%s' nicht lesen: %s"
-
-#: src/readelf.c:814
-#, c-format
-msgid "cannot read ELF header: %s"
-msgstr ""
-
-#: src/readelf.c:822
-#, c-format
-msgid "cannot create EBL handle"
-msgstr ""
-
-#: src/readelf.c:835
-#, fuzzy, c-format
-msgid "cannot determine number of program headers: %s"
-msgstr "konnte Programm-Kopf nicht erstellen: %s"
-
-#: src/readelf.c:921
-msgid "NONE (None)"
-msgstr ""
-
-#: src/readelf.c:922
-msgid "REL (Relocatable file)"
-msgstr ""
-
-#: src/readelf.c:923
-msgid "EXEC (Executable file)"
-msgstr ""
-
-#: src/readelf.c:924
-msgid "DYN (Shared object file)"
-msgstr ""
-
-#: src/readelf.c:925
-msgid "CORE (Core file)"
-msgstr ""
-
-#: src/readelf.c:930
-#, c-format
-msgid "OS Specific: (%x)\n"
-msgstr ""
-
-#: src/readelf.c:932
-#, c-format
-msgid "Processor Specific: (%x)\n"
-msgstr ""
-
-#: src/readelf.c:942
-msgid ""
-"ELF Header:\n"
-" Magic: "
-msgstr ""
-
-#: src/readelf.c:946
-#, c-format
-msgid ""
-"\n"
-" Class: %s\n"
-msgstr ""
-
-#: src/readelf.c:951
-#, fuzzy, c-format
-msgid " Data: %s\n"
-msgstr " Daten: %s\n"
-
-#: src/readelf.c:957
-#, c-format
-msgid " Ident Version: %hhd %s\n"
-msgstr ""
-
-#: src/readelf.c:959 src/readelf.c:976
-msgid "(current)"
-msgstr "(aktuell)"
-
-#: src/readelf.c:963
-#, c-format
-msgid " OS/ABI: %s\n"
-msgstr ""
-
-#: src/readelf.c:966
-#, c-format
-msgid " ABI Version: %hhd\n"
-msgstr ""
-
-#: src/readelf.c:969
-msgid " Type: "
-msgstr " Typ: "
-
-#: src/readelf.c:972
-#, c-format
-msgid " Machine: %s\n"
-msgstr ""
-
-#: src/readelf.c:974
-#, c-format
-msgid " Version: %d %s\n"
-msgstr ""
-
-#: src/readelf.c:978
-#, c-format
-msgid " Entry point address: %#<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:981
-#, c-format
-msgid " Start of program headers: %<PRId64> %s\n"
-msgstr ""
-
-#: src/readelf.c:982 src/readelf.c:985
-msgid "(bytes into file)"
-msgstr ""
-
-#: src/readelf.c:984
-#, c-format
-msgid " Start of section headers: %<PRId64> %s\n"
-msgstr ""
-
-#: src/readelf.c:987
-#, c-format
-msgid " Flags: %s\n"
-msgstr ""
-
-#: src/readelf.c:990
-#, c-format
-msgid " Size of this header: %<PRId16> %s\n"
-msgstr ""
-
-#: src/readelf.c:991 src/readelf.c:994 src/readelf.c:1011
-msgid "(bytes)"
-msgstr "(Bytes)"
-
-#: src/readelf.c:993
-#, c-format
-msgid " Size of program header entries: %<PRId16> %s\n"
-msgstr ""
-
-#: src/readelf.c:996
-#, c-format
-msgid " Number of program headers entries: %<PRId16>"
-msgstr ""
-
-#: src/readelf.c:1003
-#, c-format
-msgid " (%<PRIu32> in [0].sh_info)"
-msgstr ""
-
-#: src/readelf.c:1006 src/readelf.c:1023 src/readelf.c:1037
-msgid " ([0] not available)"
-msgstr ""
-
-#: src/readelf.c:1010
-#, c-format
-msgid " Size of section header entries: %<PRId16> %s\n"
-msgstr ""
-
-#: src/readelf.c:1013
-#, c-format
-msgid " Number of section headers entries: %<PRId16>"
-msgstr ""
-
-#: src/readelf.c:1020
-#, c-format
-msgid " (%<PRIu32> in [0].sh_size)"
-msgstr ""
-
-#: src/readelf.c:1033
-#, c-format
-msgid " (%<PRIu32> in [0].sh_link)"
-msgstr ""
-
-#: src/readelf.c:1041
-#, c-format
-msgid ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:1045
-#, c-format
-msgid ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:1077
-#, c-format
-msgid ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:1087
-msgid "Section Headers:"
-msgstr ""
-
-#: src/readelf.c:1090
-msgid ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-msgstr ""
-
-#: src/readelf.c:1092
-msgid ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-msgstr ""
-
-#: src/readelf.c:1164
-msgid "Program Headers:"
-msgstr "Programm-Köpfe:"
-
-#: src/readelf.c:1166
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-msgstr ""
-
-#: src/readelf.c:1169
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-msgstr ""
-
-#: src/readelf.c:1226
-#, c-format
-msgid "\t[Requesting program interpreter: %s]\n"
-msgstr ""
-
-#: src/readelf.c:1247
-msgid ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-msgstr ""
-
-#: src/readelf.c:1258 src/unstrip.c:1843 src/unstrip.c:1886 src/unstrip.c:1893
-#, c-format
-msgid "cannot get program header: %s"
-msgstr ""
-
-#: src/readelf.c:1401
-#, c-format
-msgid ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1406
-#, c-format
-msgid ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1414
-msgid "<INVALID SYMBOL>"
-msgstr ""
-
-#: src/readelf.c:1428
-msgid "<INVALID SECTION>"
-msgstr ""
-
-#: src/readelf.c:1585 src/readelf.c:2208 src/readelf.c:2466 src/readelf.c:2542
-#: src/readelf.c:2846 src/readelf.c:2920 src/readelf.c:4610
-#, fuzzy, c-format
-msgid "invalid sh_link value in section %Zu"
-msgstr "ungültige .debug_line Sektion"
-
-#: src/readelf.c:1588
-#, c-format
-msgid ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1598
-msgid " Type Value\n"
-msgstr ""
-
-#: src/readelf.c:1622
-#, c-format
-msgid "Shared library: [%s]\n"
-msgstr ""
-
-#: src/readelf.c:1627
-#, c-format
-msgid "Library soname: [%s]\n"
-msgstr ""
-
-#: src/readelf.c:1632
-#, c-format
-msgid "Library rpath: [%s]\n"
-msgstr ""
-
-#: src/readelf.c:1637
-#, c-format
-msgid "Library runpath: [%s]\n"
-msgstr ""
-
-#: src/readelf.c:1657
-#, c-format
-msgid "%<PRId64> (bytes)\n"
-msgstr ""
-
-#: src/readelf.c:1770 src/readelf.c:1960
-#, c-format
-msgid ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:1788 src/readelf.c:1978
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1803 src/readelf.c:1993
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1813
-msgid " Offset Type Value Name\n"
-msgstr ""
-
-#: src/readelf.c:1815
-msgid " Offset Type Value Name\n"
-msgstr ""
-
-#: src/readelf.c:1868 src/readelf.c:1879 src/readelf.c:1892 src/readelf.c:1913
-#: src/readelf.c:1925 src/readelf.c:2059 src/readelf.c:2071 src/readelf.c:2085
-#: src/readelf.c:2107 src/readelf.c:2120
-msgid "<INVALID RELOC>"
-msgstr ""
-
-#: src/readelf.c:2003
-msgid " Offset Type Value Addend Name\n"
-msgstr ""
-
-#: src/readelf.c:2005
-msgid " Offset Type Value Addend Name\n"
-msgstr ""
-
-#: src/readelf.c:2216
-#, c-format
-msgid ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entry:\n"
-msgid_plural ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2221
-#, c-format
-msgid " %lu local symbol String table: [%2u] '%s'\n"
-msgid_plural " %lu local symbols String table: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2229
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr ""
-
-#: src/readelf.c:2231
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr ""
-
-#: src/readelf.c:2251
-#, c-format
-msgid "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-msgstr ""
-
-#: src/readelf.c:2339
-#, c-format
-msgid "bad dynamic symbol"
-msgstr ""
-
-#: src/readelf.c:2421
-msgid "none"
-msgstr "keine"
-
-#: src/readelf.c:2438
-msgid "| <unknown>"
-msgstr "| <unbekannt>"
-
-#: src/readelf.c:2469
-#, c-format
-msgid ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2490
-#, fuzzy, c-format
-msgid " %#06x: Version: %hu File: %s Cnt: %hu\n"
-msgstr " %#06x: Version: %hu Datei: %s Cnt: %hu\n"
-
-#: src/readelf.c:2503
-#, c-format
-msgid " %#06x: Name: %s Flags: %s Version: %hu\n"
-msgstr " %#06x: Name: %s Flags: %s Version: %hu\n"
-
-#: src/readelf.c:2546
-#, c-format
-msgid ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2574
-#, c-format
-msgid " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-msgstr ""
-
-#: src/readelf.c:2589
-#, c-format
-msgid " %#06x: Parent %d: %s\n"
-msgstr ""
-
-#: src/readelf.c:2850
-#, c-format
-msgid ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgid_plural ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2878
-msgid " 0 *local* "
-msgstr " 0 *lokal* "
-
-#: src/readelf.c:2883
-msgid " 1 *global* "
-msgstr " 1 *global* "
-
-#: src/readelf.c:2925
-#, c-format
-msgid ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2947
-#, no-c-format
-msgid " Length Number % of total Coverage\n"
-msgstr ""
-
-#: src/readelf.c:2949
-#, c-format
-msgid " 0 %6<PRIu32> %5.1f%%\n"
-msgstr " 0 %6<PRIu32> %5.1f%%\n"
-
-#: src/readelf.c:2956
-#, c-format
-msgid "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-msgstr "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-
-#: src/readelf.c:2969
-#, c-format
-msgid ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-msgstr ""
-
-#: src/readelf.c:2987 src/readelf.c:3042 src/readelf.c:3098
-#, c-format
-msgid "cannot get data for section %d: %s"
-msgstr ""
-
-#: src/readelf.c:2995
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash section %d"
-msgstr "ungültige .debug_line Sektion"
-
-#: src/readelf.c:3050
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash64 section %d"
-msgstr "ungültige .debug_line Sektion"
-
-#: src/readelf.c:3106
-#, fuzzy, c-format
-msgid "invalid data in gnu.hash section %d"
-msgstr "ungültige .debug_line Sektion"
-
-#: src/readelf.c:3173
-#, c-format
-msgid ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-msgstr ""
-
-#: src/readelf.c:3248
-#, c-format
-msgid ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:3262
-msgid ""
-" Library Time Stamp Checksum Version "
-"Flags"
-msgstr ""
-
-#: src/readelf.c:3312
-#, c-format
-msgid ""
-"\n"
-"Object attributes section [%2zu] '%s' of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:3329
-msgid " Owner Size\n"
-msgstr ""
-
-#: src/readelf.c:3358
-#, c-format
-msgid " %-13s %4<PRIu32>\n"
-msgstr " %-13s %4<PRIu32>\n"
-
-#: src/readelf.c:3397
-#, c-format
-msgid " %-4u %12<PRIu32>\n"
-msgstr " %-4u %12<PRIu32>\n"
-
-#: src/readelf.c:3402
-#, c-format
-msgid " File: %11<PRIu32>\n"
-msgstr " File: %11<PRIu32>\n"
-
-#: src/readelf.c:3451
-#, c-format
-msgid " %s: %<PRId64>, %s\n"
-msgstr " %s: %<PRId64>, %s\n"
-
-#: src/readelf.c:3454
-#, c-format
-msgid " %s: %<PRId64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:3457
-#, c-format
-msgid " %s: %s\n"
-msgstr " %s: %s\n"
-
-#: src/readelf.c:3467
-#, c-format
-msgid " %u: %<PRId64>\n"
-msgstr " %u: %<PRId64>\n"
-
-#: src/readelf.c:3470
-#, c-format
-msgid " %u: %s\n"
-msgstr " %u: %s\n"
-
-#: src/readelf.c:3515
-#, c-format
-msgid "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3518
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3523
-#, c-format
-msgid "%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3526
-#, c-format
-msgid "%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3532
-#, c-format
-msgid "%s+%#<PRIx64> <%s>"
-msgstr "%s+%#<PRIx64> <%s>"
-
-#: src/readelf.c:3535
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s>"
-msgstr "%s+%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3539
-#, c-format
-msgid "%#<PRIx64> <%s>"
-msgstr "%#<PRIx64> <%s>"
-
-#: src/readelf.c:3542
-#, c-format
-msgid "%#0*<PRIx64> <%s>"
-msgstr "%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3547
-#, c-format
-msgid "%s+%#<PRIx64>"
-msgstr "%s+%#<PRIx64>"
-
-#: src/readelf.c:3550
-#, c-format
-msgid "%s+%#0*<PRIx64>"
-msgstr "%s+%#0*<PRIx64>"
-
-#: src/readelf.c:3932
-msgid "empty block"
-msgstr ""
-
-#: src/readelf.c:3935
-#, c-format
-msgid "%zu byte block:"
-msgstr ""
-
-#: src/readelf.c:4332
-#, c-format
-msgid "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-msgstr ""
-
-#: src/readelf.c:4389
-#, c-format
-msgid "%s %#<PRIx64> used with different address sizes"
-msgstr ""
-
-#: src/readelf.c:4396
-#, c-format
-msgid "%s %#<PRIx64> used with different offset sizes"
-msgstr ""
-
-#: src/readelf.c:4403
-#, c-format
-msgid "%s %#<PRIx64> used with different base addresses"
-msgstr ""
-
-#: src/readelf.c:4492
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-msgstr ""
-
-#: src/readelf.c:4500
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-msgstr ""
-
-#: src/readelf.c:4526
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [ Code]\n"
-msgstr ""
-
-#: src/readelf.c:4534
-#, c-format
-msgid ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-msgstr ""
-
-#: src/readelf.c:4547
-#, c-format
-msgid " *** error while reading abbreviation: %s\n"
-msgstr ""
-
-#: src/readelf.c:4563
-#, c-format
-msgid " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-msgstr ""
-
-#: src/readelf.c:4566
-msgid "yes"
-msgstr "ja"
-
-#: src/readelf.c:4566
-msgid "no"
-msgstr "nein"
-
-#: src/readelf.c:4600 src/readelf.c:4673
-#, c-format
-msgid "cannot get .debug_aranges content: %s"
-msgstr ""
-
-#: src/readelf.c:4615
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:4646
-#, c-format
-msgid " [%*zu] ???\n"
-msgstr " [%*zu] ???\n"
-
-#: src/readelf.c:4648
-#, c-format
-msgid ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-msgstr ""
-
-#: src/readelf.c:4678 src/readelf.c:4832 src/readelf.c:5408 src/readelf.c:6362
-#: src/readelf.c:6894 src/readelf.c:7014 src/readelf.c:7177 src/readelf.c:7602
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:4691 src/readelf.c:6388
-#, c-format
-msgid ""
-"\n"
-"Table at offset %Zu:\n"
-msgstr ""
-
-#: src/readelf.c:4695 src/readelf.c:5432 src/readelf.c:6399
-#, c-format
-msgid "invalid data in section [%zu] '%s'"
-msgstr ""
-
-#: src/readelf.c:4711
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Length: %6<PRIu64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4723
-#, fuzzy, c-format
-msgid " DWARF version: %6<PRIuFAST16>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4727
-#, c-format
-msgid "unsupported aranges version"
-msgstr ""
-
-#: src/readelf.c:4738
-#, fuzzy, c-format
-msgid " CU offset: %6<PRIx64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4744
-#, c-format
-msgid " Address size: %6<PRIu64>\n"
-msgstr ""
-
-#: src/readelf.c:4748
-#, fuzzy, c-format
-msgid "unsupported address size"
-msgstr "Kein Adress-Wert"
-
-#: src/readelf.c:4753
-#, c-format
-msgid ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:4757
-#, c-format
-msgid "unsupported segment size"
-msgstr ""
-
-#: src/readelf.c:4797
-#, fuzzy, c-format
-msgid " %s..%s (%<PRIx64>)\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4800
-#, fuzzy, c-format
-msgid " %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4809
-#, c-format
-msgid " %Zu padding bytes\n"
-msgstr ""
-
-#: src/readelf.c:4827
-#, c-format
-msgid "cannot get .debug_ranges content: %s"
-msgstr ""
-
-#: src/readelf.c:4857 src/readelf.c:6921
-#, c-format
-msgid " [%6tx] <INVALID DATA>\n"
-msgstr ""
-
-#: src/readelf.c:4879 src/readelf.c:6943
-#, c-format
-msgid " [%6tx] base address %s\n"
-msgstr ""
-
-#: src/readelf.c:4886 src/readelf.c:6950
-#, fuzzy, c-format
-msgid " [%6tx] empty list\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4897
-#, c-format
-msgid " [%6tx] %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4899
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:5078
-msgid " <INVALID DATA>\n"
-msgstr ""
-
-#: src/readelf.c:5387
-#, fuzzy, c-format
-msgid "cannot get ELF: %s"
-msgstr "ELF Kopf konnte nicht ausgelesen werden"
-
-#: src/readelf.c:5404
-#, c-format
-msgid ""
-"\n"
-"Call frame information section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:5454
-#, c-format
-msgid ""
-"\n"
-" [%6tx] Zero terminator\n"
-msgstr ""
-
-#: src/readelf.c:5547 src/readelf.c:5702
-#, fuzzy, c-format
-msgid "invalid augmentation length"
-msgstr "ungültige Abschnittsausrichtung"
-
-#: src/readelf.c:5562
-msgid "FDE address encoding: "
-msgstr ""
-
-#: src/readelf.c:5568
-msgid "LSDA pointer encoding: "
-msgstr ""
-
-#: src/readelf.c:5679
-#, c-format
-msgid " (offset: %#<PRIx64>)"
-msgstr ""
-
-#: src/readelf.c:5686
-#, c-format
-msgid " (end offset: %#<PRIx64>)"
-msgstr ""
-
-#: src/readelf.c:5723
-#, c-format
-msgid " %-26sLSDA pointer: %#<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:5778
-#, c-format
-msgid "cannot get attribute code: %s"
-msgstr ""
-
-#: src/readelf.c:5787
-#, c-format
-msgid "cannot get attribute form: %s"
-msgstr ""
-
-#: src/readelf.c:5802
-#, c-format
-msgid "cannot get attribute value: %s"
-msgstr ""
-
-#: src/readelf.c:6101
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [Offset]\n"
-msgstr ""
-
-#: src/readelf.c:6133
-#, c-format
-msgid ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:6142
-#, c-format
-msgid ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-msgstr ""
-
-#: src/readelf.c:6167
-#, c-format
-msgid "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-
-#: src/readelf.c:6181
-#, c-format
-msgid "cannot get DIE offset: %s"
-msgstr ""
-
-#: src/readelf.c:6190
-#, c-format
-msgid "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-
-#: src/readelf.c:6222
-#, c-format
-msgid "cannot get next DIE: %s\n"
-msgstr ""
-
-#: src/readelf.c:6230
-#, c-format
-msgid "cannot get next DIE: %s"
-msgstr ""
-
-#: src/readelf.c:6266
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:6375
-#, c-format
-msgid "cannot get line data section data: %s"
-msgstr ""
-
-#: src/readelf.c:6445
-#, c-format
-msgid ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-msgstr ""
-
-#: src/readelf.c:6466
-#, c-format
-msgid "invalid data at offset %tu in section [%zu] '%s'"
-msgstr ""
-
-#: src/readelf.c:6481
-#, c-format
-msgid " [%*<PRIuFAST8>] %hhu argument\n"
-msgid_plural " [%*<PRIuFAST8>] %hhu arguments\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:6489
-msgid ""
-"\n"
-"Directory table:"
-msgstr ""
-
-#: src/readelf.c:6505
-msgid ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-msgstr ""
-
-#: src/readelf.c:6540
-msgid ""
-"\n"
-"Line number statements:"
-msgstr ""
-
-#: src/readelf.c:6591
-#, c-format
-msgid "invalid maximum operations per instruction is zero"
-msgstr ""
-
-#: src/readelf.c:6627
-#, c-format
-msgid " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-msgstr ""
-
-#: src/readelf.c:6632
-#, c-format
-msgid " special opcode %u: address+%u = %s, line%+d = %zu\n"
-msgstr ""
-
-#: src/readelf.c:6652
-#, c-format
-msgid " extended opcode %u: "
-msgstr ""
-
-#: src/readelf.c:6657
-msgid " end of sequence"
-msgstr ""
-
-#: src/readelf.c:6676
-#, c-format
-msgid " set address to %s\n"
-msgstr ""
-
-#: src/readelf.c:6703
-#, c-format
-msgid " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-msgstr ""
-
-#: src/readelf.c:6716
-#, c-format
-msgid " set discriminator to %u\n"
-msgstr ""
-
-#: src/readelf.c:6721
-#, fuzzy
-msgid " unknown opcode"
-msgstr "unbekannter Typ"
-
-#: src/readelf.c:6733
-msgid " copy"
-msgstr ""
-
-#: src/readelf.c:6744
-#, c-format
-msgid " advance address by %u to %s, op_index to %u\n"
-msgstr ""
-
-#: src/readelf.c:6748
-#, c-format
-msgid " advance address by %u to %s\n"
-msgstr ""
-
-#: src/readelf.c:6759
-#, c-format
-msgid " advance line by constant %d to %<PRId64>\n"
-msgstr ""
-
-#: src/readelf.c:6767
-#, c-format
-msgid " set file to %<PRIu64>\n"
-msgstr ""
-
-#: src/readelf.c:6777
-#, c-format
-msgid " set column to %<PRIu64>\n"
-msgstr ""
-
-#: src/readelf.c:6784
-#, c-format
-msgid " set '%s' to %<PRIuFAST8>\n"
-msgstr ""
-
-#: src/readelf.c:6790
-msgid " set basic block flag"
-msgstr ""
-
-#: src/readelf.c:6803
-#, c-format
-msgid " advance address by constant %u to %s, op_index to %u\n"
-msgstr ""
-
-#: src/readelf.c:6807
-#, c-format
-msgid " advance address by constant %u to %s\n"
-msgstr ""
-
-#: src/readelf.c:6825
-#, c-format
-msgid " advance address by fixed value %u to %s\n"
-msgstr ""
-
-#: src/readelf.c:6834
-msgid " set prologue end flag"
-msgstr ""
-
-#: src/readelf.c:6839
-msgid " set epilogue begin flag"
-msgstr ""
-
-#: src/readelf.c:6848
-#, c-format
-msgid " set isa to %u\n"
-msgstr ""
-
-#: src/readelf.c:6857
-#, c-format
-msgid " unknown opcode with %<PRIu8> parameter:"
-msgid_plural " unknown opcode with %<PRIu8> parameters:"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:6889
-#, c-format
-msgid "cannot get .debug_loc content: %s"
-msgstr ""
-
-#: src/readelf.c:6964
-#, c-format
-msgid " [%6tx] %s..%s"
-msgstr " [%6tx] %s..%s"
-
-#: src/readelf.c:6966
-#, c-format
-msgid " %s..%s"
-msgstr " %s..%s"
-
-#: src/readelf.c:6973 src/readelf.c:7858
-msgid " <INVALID DATA>\n"
-msgstr ""
-
-#: src/readelf.c:7025 src/readelf.c:7186
-#, c-format
-msgid "cannot get macro information section data: %s"
-msgstr ""
-
-#: src/readelf.c:7104
-#, c-format
-msgid "%*s*** non-terminated string at end of section"
-msgstr ""
-
-#: src/readelf.c:7127
-#, c-format
-msgid "%*s*** missing DW_MACINFO_start_file argument at end of section"
-msgstr ""
-
-#: src/readelf.c:7227
-#, fuzzy, c-format
-msgid " Offset: 0x%<PRIx64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:7239
-#, fuzzy, c-format
-msgid " Version: %<PRIu16>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:7245 src/readelf.c:7968
-#, c-format
-msgid " unknown version, cannot parse section\n"
-msgstr ""
-
-#: src/readelf.c:7252
-#, fuzzy, c-format
-msgid " Flag: 0x%<PRIx8>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:7255
-#, c-format
-msgid " Offset length: %<PRIu8>\n"
-msgstr ""
-
-#: src/readelf.c:7263
-#, c-format
-msgid " .debug_line offset: 0x%<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:7276
-#, c-format
-msgid " extension opcode table, %<PRIu8> items:\n"
-msgstr ""
-
-#: src/readelf.c:7283
-#, c-format
-msgid " [%<PRIx8>]"
-msgstr ""
-
-#: src/readelf.c:7295
-#, c-format
-msgid " %<PRIu8> arguments:"
-msgstr ""
-
-#: src/readelf.c:7323
-#, c-format
-msgid " no arguments."
-msgstr ""
-
-#: src/readelf.c:7560
-#, c-format
-msgid "vendor opcode not verified?"
-msgstr ""
-
-#: src/readelf.c:7588
-#, c-format
-msgid " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-msgstr ""
-
-#: src/readelf.c:7629
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" %*s String\n"
-msgstr ""
-
-#: src/readelf.c:7643
-#, c-format
-msgid " *** error while reading strings: %s\n"
-msgstr ""
-
-#: src/readelf.c:7663
-#, c-format
-msgid ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-msgstr ""
-
-#: src/readelf.c:7765
-#, c-format
-msgid ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-msgstr ""
-
-#: src/readelf.c:7788
-#, c-format
-msgid " LPStart encoding: %#x "
-msgstr ""
-
-#: src/readelf.c:7800
-#, c-format
-msgid " TType encoding: %#x "
-msgstr ""
-
-#: src/readelf.c:7815
-#, c-format
-msgid " Call site encoding: %#x "
-msgstr ""
-
-#: src/readelf.c:7828
-msgid ""
-"\n"
-" Call site table:"
-msgstr ""
-
-#: src/readelf.c:7842
-#, c-format
-msgid ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-msgstr ""
-
-#: src/readelf.c:7909
-#, c-format
-msgid "invalid TType encoding"
-msgstr ""
-
-#: src/readelf.c:7930
-#, c-format
-msgid ""
-"\n"
-"GDB section [%2zu] '%s' at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-msgstr ""
-
-#: src/readelf.c:7959
-#, fuzzy, c-format
-msgid " Version: %<PRId32>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:7977
-#, c-format
-msgid " CU offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:7984
-#, c-format
-msgid " TU offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:7991
-#, c-format
-msgid " address offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:7998
-#, c-format
-msgid " symbol offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:8005
-#, c-format
-msgid " constant offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:8012
-#, c-format
-msgid ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-
-#: src/readelf.c:8034
-#, c-format
-msgid ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-
-#: src/readelf.c:8060
-#, c-format
-msgid ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-
-#: src/readelf.c:8089
-#, c-format
-msgid ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-msgstr ""
-
-#: src/readelf.c:8176
-#, c-format
-msgid "cannot get debug context descriptor: %s"
-msgstr ""
-
-#: src/readelf.c:8336 src/readelf.c:8942 src/readelf.c:9053 src/readelf.c:9111
-#, c-format
-msgid "cannot convert core note data: %s"
-msgstr ""
-
-#: src/readelf.c:8683
-#, c-format
-msgid ""
-"\n"
-"%*s... <repeats %u more times> ..."
-msgstr ""
-
-#: src/readelf.c:9190
-msgid " Owner Data size Type\n"
-msgstr ""
-
-#: src/readelf.c:9208
-#, c-format
-msgid " %-13.*s %9<PRId32> %s\n"
-msgstr ""
-
-#: src/readelf.c:9258
-#, c-format
-msgid "cannot get content of note section: %s"
-msgstr ""
-
-#: src/readelf.c:9285
-#, c-format
-msgid ""
-"\n"
-"Note section [%2zu] '%s' of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:9308
-#, c-format
-msgid ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:9354
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no data to dump.\n"
-msgstr ""
-
-#: src/readelf.c:9360 src/readelf.c:9383
-#, c-format
-msgid "cannot get data for section [%Zu] '%s': %s"
-msgstr ""
-
-#: src/readelf.c:9364
-#, c-format
-msgid ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:9377
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no strings to dump.\n"
-msgstr ""
-
-#: src/readelf.c:9387
-#, c-format
-msgid ""
-"\n"
-"String section [%Zu] '%s' contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:9435
-#, c-format
-msgid ""
-"\n"
-"section [%lu] does not exist"
-msgstr ""
-
-#: src/readelf.c:9464
-#, c-format
-msgid ""
-"\n"
-"section '%s' does not exist"
-msgstr ""
-
-#: src/readelf.c:9521
-#, c-format
-msgid "cannot get symbol index of archive '%s': %s"
-msgstr ""
-
-#: src/readelf.c:9524
-#, c-format
-msgid ""
-"\n"
-"Archive '%s' has no symbol index\n"
-msgstr ""
-
-#: src/readelf.c:9528
-#, c-format
-msgid ""
-"\n"
-"Index of archive '%s' has %Zu entries:\n"
-msgstr ""
-
-#: src/readelf.c:9546
-#, c-format
-msgid "cannot extract member at offset %Zu in '%s': %s"
-msgstr ""
-
-#: src/readelf.c:9551
-#, c-format
-msgid "Archive member '%s' contains:\n"
-msgstr ""
-
-#: src/size.c:60
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd' or `sysv'. The default "
-"is `bsd'"
-msgstr ""
-
-#: src/size.c:62
-msgid "Same as `--format=sysv'"
-msgstr "Genau wie `--format=sysv'"
-
-#: src/size.c:63
-msgid "Same as `--format=bsd'"
-msgstr "Genau wie `--format=bsd'"
-
-#: src/size.c:66
-msgid "Same as `--radix=10'"
-msgstr "Genau wie `--radix=10'"
-
-#: src/size.c:67
-msgid "Same as `--radix=8'"
-msgstr "Genau wie `--radix=8'"
-
-#: src/size.c:68
-msgid "Same as `--radix=16'"
-msgstr "Genau wie `--radix=16'"
-
-#: src/size.c:70
-msgid "Similar to `--format=sysv' output but in one line"
-msgstr ""
-
-#: src/size.c:74
-msgid "Print size and permission flags for loadable segments"
-msgstr ""
-
-#: src/size.c:75
-msgid "Display the total sizes (bsd only)"
-msgstr ""
-
-#: src/size.c:80
-msgid "List section sizes of FILEs (a.out by default)."
-msgstr ""
-
-#: src/size.c:261
-#, c-format
-msgid "Invalid format: %s"
-msgstr "Ungültiges Format: %s"
-
-#: src/size.c:272
-#, c-format
-msgid "Invalid radix: %s"
-msgstr ""
-
-#: src/size.c:331
-#, c-format
-msgid "%s: file format not recognized"
-msgstr ""
-
-#: src/size.c:437 src/size.c:570
-#, c-format
-msgid " (ex %s)"
-msgstr ""
-
-#: src/size.c:595
-msgid "(TOTALS)\n"
-msgstr ""
-
-#: src/strings.c:62
-msgid "Output Selection:"
-msgstr ""
-
-#: src/strings.c:63
-msgid "Scan entire file, not only loaded sections"
-msgstr ""
-
-#: src/strings.c:65
-msgid "Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-msgstr ""
-
-#: src/strings.c:66
-msgid ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-msgstr ""
-
-#: src/strings.c:70
-msgid "Print name of the file before each string."
-msgstr ""
-
-#: src/strings.c:72
-msgid "Print location of the string in base 8, 10, or 16 respectively."
-msgstr ""
-
-#: src/strings.c:73
-msgid "Alias for --radix=o"
-msgstr "Alias für --radix=o"
-
-#: src/strings.c:80
-msgid "Print the strings of printable characters in files."
-msgstr ""
-
-#: src/strings.c:267 src/strings.c:302
-#, c-format
-msgid "invalid value '%s' for %s parameter"
-msgstr ""
-
-#: src/strings.c:313
-#, c-format
-msgid "invalid minimum length of matched string size"
-msgstr ""
-
-#: src/strings.c:596
-#, c-format
-msgid "lseek64 failed"
-msgstr "lseek64 fehlgeschlagen"
-
-#: src/strings.c:613 src/strings.c:677
-#, c-format
-msgid "re-mmap failed"
-msgstr "re-mmap fehlgeschlagen"
-
-#: src/strings.c:650
-#, c-format
-msgid "mprotect failed"
-msgstr "mprotect fehlgeschlagen"
-
-#: src/strip.c:69
-msgid "Place stripped output into FILE"
-msgstr ""
-
-#: src/strip.c:70
-msgid "Extract the removed sections into FILE"
-msgstr ""
-
-#: src/strip.c:71
-msgid "Embed name FILE instead of -f argument"
-msgstr ""
-
-#: src/strip.c:75
-msgid "Remove all debugging symbols"
-msgstr ""
-
-#: src/strip.c:79
-msgid "Remove section headers (not recommended)"
-msgstr ""
-
-#: src/strip.c:81
-msgid "Copy modified/access timestamps to the output"
-msgstr ""
-
-#: src/strip.c:83
-msgid ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-msgstr ""
-
-#: src/strip.c:85
-msgid "Remove .comment section"
-msgstr ""
-
-#: src/strip.c:88
-msgid "Relax a few rules to handle slightly broken ELF files"
-msgstr ""
-
-#: src/strip.c:93
-msgid "Discard symbols from object files."
-msgstr ""
-
-#: src/strip.c:181
-#, c-format
-msgid "--reloc-debug-sections used without -f"
-msgstr ""
-
-#: src/strip.c:195
-#, c-format
-msgid "Only one input file allowed together with '-o' and '-f'"
-msgstr ""
-
-#: src/strip.c:231
-#, c-format
-msgid "-f option specified twice"
-msgstr ""
-
-#: src/strip.c:240
-#, c-format
-msgid "-F option specified twice"
-msgstr ""
-
-#: src/strip.c:249 src/unstrip.c:121
-#, c-format
-msgid "-o option specified twice"
-msgstr ""
-
-#: src/strip.c:273
-#, c-format
-msgid "-R option supports only .comment section"
-msgstr ""
-
-#: src/strip.c:315 src/strip.c:339
-#, c-format
-msgid "cannot stat input file '%s'"
-msgstr ""
-
-#: src/strip.c:329
-#, c-format
-msgid "while opening '%s'"
-msgstr ""
-
-#: src/strip.c:367
-#, c-format
-msgid "%s: cannot use -o or -f when stripping archive"
-msgstr ""
-
-#: src/strip.c:468
-#, c-format
-msgid "cannot open EBL backend"
-msgstr ""
-
-#: src/strip.c:508
-#, fuzzy, c-format
-msgid "cannot get number of phdrs"
-msgstr "konnte Programm-Kopf nicht erstellen: %s"
-
-#: src/strip.c:523 src/strip.c:547
-#, c-format
-msgid "cannot create new file '%s': %s"
-msgstr ""
-
-#: src/strip.c:613
-#, c-format
-msgid "illformed file '%s'"
-msgstr ""
-
-#: src/strip.c:935 src/strip.c:1024
-#, c-format
-msgid "while generating output file: %s"
-msgstr ""
-
-#: src/strip.c:997 src/strip.c:1962
-#, c-format
-msgid "%s: error while creating ELF header: %s"
-msgstr ""
-
-#: src/strip.c:1011
-#, c-format
-msgid "while preparing output for '%s'"
-msgstr ""
-
-#: src/strip.c:1062 src/strip.c:1119
-#, c-format
-msgid "while create section header section: %s"
-msgstr ""
-
-#: src/strip.c:1068
-#, c-format
-msgid "cannot allocate section data: %s"
-msgstr ""
-
-#: src/strip.c:1128
-#, c-format
-msgid "while create section header string table: %s"
-msgstr ""
-
-#: src/strip.c:1757
-#, fuzzy, c-format
-msgid "bad relocation"
-msgstr "Relocations anzeigen"
-
-#: src/strip.c:1874 src/strip.c:1984
-#, c-format
-msgid "while writing '%s': %s"
-msgstr ""
-
-#: src/strip.c:1885
-#, c-format
-msgid "while creating '%s'"
-msgstr ""
-
-#: src/strip.c:1907
-#, c-format
-msgid "while computing checksum for debug information"
-msgstr ""
-
-#: src/strip.c:1970
-#, c-format
-msgid "%s: error while reading the file: %s"
-msgstr ""
-
-#: src/strip.c:2009 src/strip.c:2029
-#, fuzzy, c-format
-msgid "while writing '%s'"
-msgstr "beim Schliessen von '%s'"
-
-#: src/strip.c:2066 src/strip.c:2073
-#, c-format
-msgid "error while finishing '%s': %s"
-msgstr ""
-
-#: src/strip.c:2096 src/strip.c:2153
-#, c-format
-msgid "cannot set access and modification date of '%s'"
-msgstr ""
-
-#: src/unstrip.c:70
-msgid "Match MODULE against file names, not module names"
-msgstr ""
-
-#: src/unstrip.c:71
-msgid "Silently skip unfindable files"
-msgstr ""
-
-#: src/unstrip.c:74
-msgid "Place output into FILE"
-msgstr ""
-
-#: src/unstrip.c:76
-msgid "Create multiple output files under DIRECTORY"
-msgstr ""
-
-#: src/unstrip.c:77
-msgid "Use module rather than file names"
-msgstr ""
-
-#: src/unstrip.c:79
-msgid "Create output for modules that have no separate debug information"
-msgstr ""
-
-#: src/unstrip.c:82
-msgid "Apply relocations to section contents in ET_REL files"
-msgstr ""
-
-#: src/unstrip.c:84
-msgid "Only list module and file names, build IDs"
-msgstr ""
-
-#: src/unstrip.c:86
-msgid "Force combining files even if some ELF headers don't seem to match"
-msgstr ""
-
-#: src/unstrip.c:130
-#, c-format
-msgid "-d option specified twice"
-msgstr "Option -d zweimal angegeben"
-
-#: src/unstrip.c:165
-#, c-format
-msgid "only one of -o or -d allowed"
-msgstr "nur entweder -o oder -d erlaubt"
-
-#: src/unstrip.c:174
-#, c-format
-msgid "-n cannot be used with explicit files or -o or -d"
-msgstr "-n kann nicht mit expliziten Dateien oder -o oder -d verwendet werden"
-
-#: src/unstrip.c:189
-#, c-format
-msgid "output directory '%s'"
-msgstr "Ausgabeverzeichnis '%s'"
-
-#: src/unstrip.c:198
-#, c-format
-msgid "exactly two file arguments are required"
-msgstr "genau zwei Datei-Argumente werden benötigt"
-
-#: src/unstrip.c:204
-#, c-format
-msgid "-m, -a, -R, and -i options not allowed with explicit files"
-msgstr ""
-
-#: src/unstrip.c:217
-#, c-format
-msgid "-o or -d is required when using implicit files"
-msgstr ""
-
-#: src/unstrip.c:253
-#, c-format
-msgid "cannot create ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:258
-#, c-format
-msgid "cannot copy ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:262 src/unstrip.c:1832 src/unstrip.c:1876
-#, fuzzy, c-format
-msgid "cannot get number of program headers: %s"
-msgstr "konnte Programm-Kopf nicht erstellen: %s"
-
-#: src/unstrip.c:267 src/unstrip.c:1836
-#, c-format
-msgid "cannot create program headers: %s"
-msgstr "konnte Programm-Kopf nicht erstellen: %s"
-
-#: src/unstrip.c:273
-#, c-format
-msgid "cannot copy program header: %s"
-msgstr "konnte Programm-Kopf nicht kopieren: %s"
-
-#: src/unstrip.c:283
-#, c-format
-msgid "cannot copy section header: %s"
-msgstr ""
-
-#: src/unstrip.c:286 src/unstrip.c:1513
-#, c-format
-msgid "cannot get section data: %s"
-msgstr "konnte Abschnittsdaten nicht holen: %s"
-
-#: src/unstrip.c:288 src/unstrip.c:1515
-#, c-format
-msgid "cannot copy section data: %s"
-msgstr "konnte Abschnittsdaten nicht kopieren: %s"
-
-#: src/unstrip.c:312
-#, c-format
-msgid "cannot create directory '%s'"
-msgstr "konnte Verzeichnis nicht erstellen: %s"
-
-#: src/unstrip.c:352 src/unstrip.c:769 src/unstrip.c:1547
-#, c-format
-msgid "cannot get symbol table entry: %s"
-msgstr "konnte Eintrag aus der Symboltabelle nicht holen: %s"
-
-#: src/unstrip.c:368 src/unstrip.c:586 src/unstrip.c:607 src/unstrip.c:619
-#: src/unstrip.c:1568 src/unstrip.c:1698 src/unstrip.c:1722
-#, c-format
-msgid "cannot update symbol table: %s"
-msgstr "konnte Symboltabelle nicht aktualisieren: %s"
-
-#: src/unstrip.c:378
-#, c-format
-msgid "cannot update section header: %s"
-msgstr ""
-
-#: src/unstrip.c:417 src/unstrip.c:428
-#, c-format
-msgid "cannot update relocation: %s"
-msgstr ""
-
-#: src/unstrip.c:515
-#, c-format
-msgid "cannot get symbol version: %s"
-msgstr ""
-
-#: src/unstrip.c:527
-#, c-format
-msgid "unexpected section type in [%Zu] with sh_link to symtab"
-msgstr ""
-
-#: src/unstrip.c:775
-#, c-format
-msgid "invalid string offset in symbol [%Zu]"
-msgstr ""
-
-#: src/unstrip.c:917 src/unstrip.c:1258
-#, c-format
-msgid "cannot read section [%Zu] name: %s"
-msgstr ""
-
-#: src/unstrip.c:958 src/unstrip.c:977 src/unstrip.c:1010
-#, c-format
-msgid "cannot read '.gnu.prelink_undo' section: %s"
-msgstr ""
-
-#: src/unstrip.c:998
-#, c-format
-msgid "invalid contents in '%s' section"
-msgstr ""
-
-#: src/unstrip.c:1053 src/unstrip.c:1378
-#, c-format
-msgid "cannot find matching section for [%Zu] '%s'"
-msgstr ""
-
-#: src/unstrip.c:1178 src/unstrip.c:1193 src/unstrip.c:1459
-#, c-format
-msgid "cannot add section name to string table: %s"
-msgstr ""
-
-#: src/unstrip.c:1202
-#, c-format
-msgid "cannot update section header string table data: %s"
-msgstr ""
-
-#: src/unstrip.c:1229 src/unstrip.c:1233
-#, c-format
-msgid "cannot get section header string table section index: %s"
-msgstr ""
-
-#: src/unstrip.c:1237 src/unstrip.c:1241 src/unstrip.c:1474
-#, c-format
-msgid "cannot get section count: %s"
-msgstr ""
-
-#: src/unstrip.c:1244
-#, c-format
-msgid "more sections in stripped file than debug file -- arguments reversed?"
-msgstr ""
-
-#: src/unstrip.c:1303 src/unstrip.c:1393
-#, c-format
-msgid "cannot read section header string table: %s"
-msgstr ""
-
-#: src/unstrip.c:1453
-#, c-format
-msgid "cannot add new section: %s"
-msgstr ""
-
-#: src/unstrip.c:1555
-#, c-format
-msgid "symbol [%Zu] has invalid section index"
-msgstr ""
-
-#: src/unstrip.c:1793
-#, fuzzy, c-format
-msgid "cannot read section data: %s"
-msgstr "konnte Abschnittsdaten nicht holen: %s"
-
-#: src/unstrip.c:1814
-#, c-format
-msgid "cannot get ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:1846
-#, c-format
-msgid "cannot update program header: %s"
-msgstr "konnte Programm-Kopf nicht aktualisieren: %s"
-
-#: src/unstrip.c:1851 src/unstrip.c:1934
-#, c-format
-msgid "cannot write output file: %s"
-msgstr ""
-
-#: src/unstrip.c:1903
-#, c-format
-msgid "DWARF data not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-
-#: src/unstrip.c:1906
-#, c-format
-msgid ""
-"DWARF data in '%s' not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-
-#: src/unstrip.c:1925 src/unstrip.c:1976 src/unstrip.c:1988 src/unstrip.c:2074
-#, c-format
-msgid "cannot create ELF descriptor: %s"
-msgstr ""
-
-#: src/unstrip.c:1967
-msgid "WARNING: "
-msgstr ""
-
-#: src/unstrip.c:1969
-msgid ", use --force"
-msgstr ""
-
-#: src/unstrip.c:1992
-msgid "ELF header identification (e_ident) different"
-msgstr ""
-
-#: src/unstrip.c:1995
-msgid "ELF header type (e_type) different"
-msgstr ""
-
-#: src/unstrip.c:1998
-msgid "ELF header machine type (e_machine) different"
-msgstr ""
-
-#: src/unstrip.c:2001
-msgid "stripped program header (e_phnum) smaller than unstripped"
-msgstr ""
-
-#: src/unstrip.c:2031
-#, c-format
-msgid "cannot find stripped file for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2035
-#, c-format
-msgid "cannot open stripped file '%s' for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2050
-#, c-format
-msgid "cannot find debug file for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2054
-#, c-format
-msgid "cannot open debug file '%s' for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2067
-#, c-format
-msgid "module '%s' file '%s' is not stripped"
-msgstr ""
-
-#: src/unstrip.c:2098
-#, c-format
-msgid "cannot cache section addresses for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2231
-#, c-format
-msgid "no matching modules found"
-msgstr "kein passendes Modul gefunden"
-
-#: src/unstrip.c:2240
-#, c-format
-msgid "matched more than one module"
-msgstr "mehr als ein passendes Modul"
-
-#: src/unstrip.c:2287
-msgid ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-msgstr ""
-
-#: src/unstrip.c:2288
-msgid ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-msgstr ""
-
-#, fuzzy
-#~ msgid "cannot attach to process"
-#~ msgstr "Kann Suchbaum nicht erstellen"
-
-#, fuzzy
-#~ msgid "cannot attach to core"
-#~ msgstr "Kann Suchbaum nicht erstellen"
-
-#~ msgid "unknown tag %hx"
-#~ msgstr "unbekannter Tag %hx"
-
-#~ msgid "unknown user tag %hx"
-#~ msgstr "unbekannter Benutzer-Tag %hx"
-
-#~ msgid "unknown attribute %hx"
-#~ msgstr "unbekanntes Attribut %hx"
-
-#~ msgid "unknown user attribute %hx"
-#~ msgstr "unbekanntes Benutzer-Attribut %hx"
-
-#, fuzzy
-#~ msgid "unknown form %#<PRIx64>"
-#~ msgstr "unbekannte Form %<PRIx64>"
-
-#~ msgid ""
-#~ "\n"
-#~ "\n"
-#~ "Symbols from %s[%s]:\n"
-#~ "\n"
-#~ msgstr ""
-#~ "\n"
-#~ "\n"
-#~ "Symbole aus %s[%s]:\n"
-#~ "\n"
-
-#~ msgid "Equivalent to: -e -h -l"
-#~ msgstr "Entspricht: -e -h -l"
diff --git a/src/po/elfutils.pot b/src/po/elfutils.pot
deleted file mode 100644
index 2aef0f54..00000000
--- a/src/po/elfutils.pot
+++ /dev/null
@@ -1,6241 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR Red Hat, Inc.
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: elfutils 0.161\n"
-"Report-Msgid-Bugs-To: http://bugzilla.redhat.com/\n"
-"POT-Creation-Date: 2014-12-19 21:45+0100\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"Language: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: lib/xmalloc.c:54 lib/xmalloc.c:68 lib/xmalloc.c:82 src/readelf.c:3182
-#: src/readelf.c:3559 src/readelf.c:8285 src/unstrip.c:2127 src/unstrip.c:2335
-#, c-format
-msgid "memory exhausted"
-msgstr ""
-
-#: libasm/asm_error.c:65 libdw/dwarf_error.c:58 libdwfl/libdwflP.h:53
-#: libelf/elf_error.c:60
-msgid "no error"
-msgstr ""
-
-#: libasm/asm_error.c:66 libdw/dwarf_error.c:67 libdwfl/libdwflP.h:55
-#: libelf/elf_error.c:91
-msgid "out of memory"
-msgstr ""
-
-#: libasm/asm_error.c:67 src/ldgeneric.c:2677
-#, c-format
-msgid "cannot create output file"
-msgstr ""
-
-#: libasm/asm_error.c:68
-msgid "invalid parameter"
-msgstr ""
-
-#: libasm/asm_error.c:69
-msgid "cannot change mode of output file"
-msgstr ""
-
-#: libasm/asm_error.c:70 src/ldgeneric.c:6990
-#, c-format
-msgid "cannot rename output file"
-msgstr ""
-
-#: libasm/asm_error.c:71
-msgid "duplicate symbol"
-msgstr ""
-
-#: libasm/asm_error.c:72
-msgid "invalid section type for operation"
-msgstr ""
-
-#: libasm/asm_error.c:73
-msgid "error during output of data"
-msgstr ""
-
-#: libasm/asm_error.c:74
-msgid "no backend support available"
-msgstr ""
-
-#: libasm/asm_error.c:84 libdw/dwarf_error.c:59 libdwfl/libdwflP.h:54
-#: libelf/elf_error.c:63
-msgid "unknown error"
-msgstr ""
-
-#: libdw/dwarf_error.c:60
-msgid "invalid access"
-msgstr ""
-
-#: libdw/dwarf_error.c:61
-msgid "no regular file"
-msgstr ""
-
-#: libdw/dwarf_error.c:62
-msgid "I/O error"
-msgstr ""
-
-#: libdw/dwarf_error.c:63
-msgid "invalid ELF file"
-msgstr ""
-
-#: libdw/dwarf_error.c:64
-msgid "no DWARF information"
-msgstr ""
-
-#: libdw/dwarf_error.c:65
-msgid "no ELF file"
-msgstr ""
-
-#: libdw/dwarf_error.c:66
-msgid "cannot get ELF header"
-msgstr ""
-
-#: libdw/dwarf_error.c:68
-msgid "not implemented"
-msgstr ""
-
-#: libdw/dwarf_error.c:69 libelf/elf_error.c:107 libelf/elf_error.c:155
-msgid "invalid command"
-msgstr ""
-
-#: libdw/dwarf_error.c:70
-msgid "invalid version"
-msgstr ""
-
-#: libdw/dwarf_error.c:71
-msgid "invalid file"
-msgstr ""
-
-#: libdw/dwarf_error.c:72
-msgid "no entries found"
-msgstr ""
-
-#: libdw/dwarf_error.c:73
-msgid "invalid DWARF"
-msgstr ""
-
-#: libdw/dwarf_error.c:74
-msgid "no string data"
-msgstr ""
-
-#: libdw/dwarf_error.c:75
-msgid "no address value"
-msgstr ""
-
-#: libdw/dwarf_error.c:76
-msgid "no constant value"
-msgstr ""
-
-#: libdw/dwarf_error.c:77
-msgid "no reference value"
-msgstr ""
-
-#: libdw/dwarf_error.c:78
-msgid "invalid reference value"
-msgstr ""
-
-#: libdw/dwarf_error.c:79
-msgid ".debug_line section missing"
-msgstr ""
-
-#: libdw/dwarf_error.c:80
-msgid "invalid .debug_line section"
-msgstr ""
-
-#: libdw/dwarf_error.c:81
-msgid "debug information too big"
-msgstr ""
-
-#: libdw/dwarf_error.c:82
-msgid "invalid DWARF version"
-msgstr ""
-
-#: libdw/dwarf_error.c:83
-msgid "invalid directory index"
-msgstr ""
-
-#: libdw/dwarf_error.c:84 libdwfl/libdwflP.h:74
-msgid "address out of range"
-msgstr ""
-
-#: libdw/dwarf_error.c:85
-msgid "no location list value"
-msgstr ""
-
-#: libdw/dwarf_error.c:86
-msgid "no block data"
-msgstr ""
-
-#: libdw/dwarf_error.c:87
-msgid "invalid line index"
-msgstr ""
-
-#: libdw/dwarf_error.c:88
-msgid "invalid address range index"
-msgstr ""
-
-#: libdw/dwarf_error.c:89 libdwfl/libdwflP.h:75
-msgid "no matching address range"
-msgstr ""
-
-#: libdw/dwarf_error.c:90
-msgid "no flag value"
-msgstr ""
-
-#: libdw/dwarf_error.c:91 libelf/elf_error.c:232
-msgid "invalid offset"
-msgstr ""
-
-#: libdw/dwarf_error.c:92
-msgid ".debug_ranges section missing"
-msgstr ""
-
-#: libdw/dwarf_error.c:93
-msgid "invalid CFI section"
-msgstr ""
-
-#: libdw/dwarf_error.c:94
-msgid "no alternative debug link found"
-msgstr ""
-
-#: libdw/dwarf_error.c:95
-msgid "invalid opcode"
-msgstr ""
-
-#: libdwfl/argp-std.c:46 src/unstrip.c:2277
-msgid "Input selection options:"
-msgstr ""
-
-#: libdwfl/argp-std.c:47
-msgid "Find addresses in FILE"
-msgstr ""
-
-#: libdwfl/argp-std.c:49
-msgid "Find addresses from signatures found in COREFILE"
-msgstr ""
-
-#: libdwfl/argp-std.c:51
-msgid "Find addresses in files mapped into process PID"
-msgstr ""
-
-#: libdwfl/argp-std.c:53
-msgid ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-msgstr ""
-
-#: libdwfl/argp-std.c:55
-msgid "Find addresses in the running kernel"
-msgstr ""
-
-#: libdwfl/argp-std.c:57
-msgid "Kernel with all modules"
-msgstr ""
-
-#: libdwfl/argp-std.c:59
-msgid "Search path for separate debuginfo files"
-msgstr ""
-
-#: libdwfl/argp-std.c:157
-msgid "only one of -e, -p, -k, -K, or --core allowed"
-msgstr ""
-
-#: libdwfl/argp-std.c:230
-msgid "cannot load kernel symbols"
-msgstr ""
-
-#: libdwfl/argp-std.c:234
-msgid "cannot find kernel modules"
-msgstr ""
-
-#: libdwfl/argp-std.c:251
-msgid "cannot find kernel or modules"
-msgstr ""
-
-#: libdwfl/argp-std.c:290
-#, c-format
-msgid "cannot read ELF core file: %s"
-msgstr ""
-
-#: libdwfl/argp-std.c:311
-msgid "No modules recognized in core file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:56
-msgid "See errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:57
-msgid "See elf_errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:58
-msgid "See dwarf_errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:59
-msgid "See ebl_errno (XXX missing)"
-msgstr ""
-
-#: libdwfl/libdwflP.h:60
-msgid "gzip decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:61
-msgid "bzip2 decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:62
-msgid "LZMA decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:63
-msgid "no support library found for machine"
-msgstr ""
-
-#: libdwfl/libdwflP.h:64
-msgid "Callbacks missing for ET_REL file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:65
-msgid "Unsupported relocation type"
-msgstr ""
-
-#: libdwfl/libdwflP.h:66
-msgid "r_offset is bogus"
-msgstr ""
-
-#: libdwfl/libdwflP.h:67 libelf/elf_error.c:111 libelf/elf_error.c:171
-msgid "offset out of range"
-msgstr ""
-
-#: libdwfl/libdwflP.h:68
-msgid "relocation refers to undefined symbol"
-msgstr ""
-
-#: libdwfl/libdwflP.h:69
-msgid "Callback returned failure"
-msgstr ""
-
-#: libdwfl/libdwflP.h:70
-msgid "No DWARF information found"
-msgstr ""
-
-#: libdwfl/libdwflP.h:71
-msgid "No symbol table found"
-msgstr ""
-
-#: libdwfl/libdwflP.h:72
-msgid "No ELF program headers"
-msgstr ""
-
-#: libdwfl/libdwflP.h:73
-msgid "address range overlaps an existing module"
-msgstr ""
-
-#: libdwfl/libdwflP.h:76
-msgid "image truncated"
-msgstr ""
-
-#: libdwfl/libdwflP.h:77
-msgid "ELF file opened"
-msgstr ""
-
-#: libdwfl/libdwflP.h:78
-msgid "not a valid ELF file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:79
-msgid "cannot handle DWARF type description"
-msgstr ""
-
-#: libdwfl/libdwflP.h:80
-msgid "ELF file does not match build ID"
-msgstr ""
-
-#: libdwfl/libdwflP.h:81
-msgid "corrupt .gnu.prelink_undo section data"
-msgstr ""
-
-#: libdwfl/libdwflP.h:82
-msgid "Internal error due to ebl"
-msgstr ""
-
-#: libdwfl/libdwflP.h:83
-msgid "Missing data in core file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:84
-msgid "Invalid register"
-msgstr ""
-
-#: libdwfl/libdwflP.h:85
-msgid "Error reading process memory"
-msgstr ""
-
-#: libdwfl/libdwflP.h:86
-msgid "Couldn't find architecture of any ELF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:87
-msgid "Error parsing /proc filesystem"
-msgstr ""
-
-#: libdwfl/libdwflP.h:88
-msgid "Invalid DWARF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:89
-msgid "Unsupported DWARF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:90
-msgid "Unable to find more threads"
-msgstr ""
-
-#: libdwfl/libdwflP.h:91
-msgid "Dwfl already has attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:92
-msgid "Dwfl has no attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:93
-msgid "Unwinding not supported for this architecture"
-msgstr ""
-
-#: libdwfl/libdwflP.h:94
-msgid "Invalid argument"
-msgstr ""
-
-#: libdwfl/libdwflP.h:95
-msgid "Not an ET_CORE ELF file"
-msgstr ""
-
-#: libebl/eblbackendname.c:42
-msgid "No backend"
-msgstr ""
-
-#: libebl/eblcorenotetypename.c:102 libebl/eblobjecttypename.c:57
-#: libebl/eblobjnotetypename.c:73 libebl/eblosabiname.c:77
-#: libebl/eblsectionname.c:89 libebl/eblsectiontypename.c:119
-#: libebl/eblsegmenttypename.c:83
-msgid "<unknown>"
-msgstr ""
-
-#: libebl/ebldynamictagname.c:105
-#, c-format
-msgid "<unknown>: %#<PRIx64>"
-msgstr ""
-
-#: libebl/eblobjnote.c:55
-#, c-format
-msgid "unknown SDT version %u\n"
-msgstr ""
-
-#: libebl/eblobjnote.c:73
-#, c-format
-msgid "invalid SDT probe descriptor\n"
-msgstr ""
-
-#: libebl/eblobjnote.c:123
-#, c-format
-msgid " PC: "
-msgstr ""
-
-#: libebl/eblobjnote.c:125
-#, c-format
-msgid " Base: "
-msgstr ""
-
-#: libebl/eblobjnote.c:127
-#, c-format
-msgid " Semaphore: "
-msgstr ""
-
-#: libebl/eblobjnote.c:129
-#, c-format
-msgid " Provider: "
-msgstr ""
-
-#: libebl/eblobjnote.c:131
-#, c-format
-msgid " Name: "
-msgstr ""
-
-#: libebl/eblobjnote.c:133
-#, c-format
-msgid " Args: "
-msgstr ""
-
-#: libebl/eblobjnote.c:143
-#, c-format
-msgid " Build ID: "
-msgstr ""
-
-#: libebl/eblobjnote.c:154
-#, c-format
-msgid " Linker version: %.*s\n"
-msgstr ""
-
-#: libebl/eblobjnote.c:203
-#, c-format
-msgid " OS: %s, ABI: "
-msgstr ""
-
-#: libebl/eblosabiname.c:74
-msgid "Stand alone"
-msgstr ""
-
-#: libebl/eblsymbolbindingname.c:71 libebl/eblsymboltypename.c:77
-#, c-format
-msgid "<unknown>: %d"
-msgstr ""
-
-#: libelf/elf_error.c:67
-msgid "unknown version"
-msgstr ""
-
-#: libelf/elf_error.c:71
-msgid "unknown type"
-msgstr ""
-
-#: libelf/elf_error.c:75
-msgid "invalid `Elf' handle"
-msgstr ""
-
-#: libelf/elf_error.c:79
-msgid "invalid size of source operand"
-msgstr ""
-
-#: libelf/elf_error.c:83
-msgid "invalid size of destination operand"
-msgstr ""
-
-#: libelf/elf_error.c:87 src/readelf.c:5367
-#, c-format
-msgid "invalid encoding"
-msgstr ""
-
-#: libelf/elf_error.c:95
-msgid "invalid file descriptor"
-msgstr ""
-
-#: libelf/elf_error.c:99
-msgid "invalid operation"
-msgstr ""
-
-#: libelf/elf_error.c:103
-msgid "ELF version not set"
-msgstr ""
-
-#: libelf/elf_error.c:115
-msgid "invalid fmag field in archive header"
-msgstr ""
-
-#: libelf/elf_error.c:119
-msgid "invalid archive file"
-msgstr ""
-
-#: libelf/elf_error.c:123
-msgid "descriptor is not for an archive"
-msgstr ""
-
-#: libelf/elf_error.c:127
-msgid "no index available"
-msgstr ""
-
-#: libelf/elf_error.c:131
-msgid "cannot read data from file"
-msgstr ""
-
-#: libelf/elf_error.c:135
-msgid "cannot write data to file"
-msgstr ""
-
-#: libelf/elf_error.c:139
-msgid "invalid binary class"
-msgstr ""
-
-#: libelf/elf_error.c:143
-msgid "invalid section index"
-msgstr ""
-
-#: libelf/elf_error.c:147
-msgid "invalid operand"
-msgstr ""
-
-#: libelf/elf_error.c:151
-msgid "invalid section"
-msgstr ""
-
-#: libelf/elf_error.c:159
-msgid "executable header not created first"
-msgstr ""
-
-#: libelf/elf_error.c:163
-msgid "file descriptor disabled"
-msgstr ""
-
-#: libelf/elf_error.c:167
-msgid "archive/member file descriptor mismatch"
-msgstr ""
-
-#: libelf/elf_error.c:175
-msgid "cannot manipulate null section"
-msgstr ""
-
-#: libelf/elf_error.c:179
-msgid "data/scn mismatch"
-msgstr ""
-
-#: libelf/elf_error.c:183
-msgid "invalid section header"
-msgstr ""
-
-#: libelf/elf_error.c:187 src/readelf.c:7235 src/readelf.c:7683
-#: src/readelf.c:7784 src/readelf.c:7954
-#, c-format
-msgid "invalid data"
-msgstr ""
-
-#: libelf/elf_error.c:191
-msgid "unknown data encoding"
-msgstr ""
-
-#: libelf/elf_error.c:195
-msgid "section `sh_size' too small for data"
-msgstr ""
-
-#: libelf/elf_error.c:199
-msgid "invalid section alignment"
-msgstr ""
-
-#: libelf/elf_error.c:203
-msgid "invalid section entry size"
-msgstr ""
-
-#: libelf/elf_error.c:207
-msgid "update() for write on read-only file"
-msgstr ""
-
-#: libelf/elf_error.c:211
-msgid "no such file"
-msgstr ""
-
-#: libelf/elf_error.c:215
-msgid "only relocatable files can contain section groups"
-msgstr ""
-
-#: libelf/elf_error.c:220
-msgid ""
-"program header only allowed in executables, shared objects, and core files"
-msgstr ""
-
-#: libelf/elf_error.c:227
-msgid "file has no program header"
-msgstr ""
-
-#: src/addr2line.c:58
-msgid "Output selection options:"
-msgstr ""
-
-#: src/addr2line.c:59
-msgid "Show only base names of source files"
-msgstr ""
-
-#: src/addr2line.c:61
-msgid "Show absolute file names using compilation directory"
-msgstr ""
-
-#: src/addr2line.c:62
-msgid "Also show function names"
-msgstr ""
-
-#: src/addr2line.c:63
-msgid "Also show symbol or section names"
-msgstr ""
-
-#: src/addr2line.c:64
-msgid "Also show symbol and the section names"
-msgstr ""
-
-#: src/addr2line.c:65
-msgid "Also show line table flags"
-msgstr ""
-
-#: src/addr2line.c:67
-msgid "Treat addresses as offsets relative to NAME section."
-msgstr ""
-
-#: src/addr2line.c:69
-msgid ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-msgstr ""
-
-#: src/addr2line.c:72 src/elfcmp.c:72 src/findtextrel.c:67 src/nm.c:100
-#: src/strings.c:75
-msgid "Miscellaneous:"
-msgstr ""
-
-#: src/addr2line.c:81
-msgid ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-msgstr ""
-
-#: src/addr2line.c:85
-msgid "[ADDR...]"
-msgstr ""
-
-#: src/addr2line.c:196 src/ar.c:289 src/elfcmp.c:663 src/elflint.c:235
-#: src/findtextrel.c:162 src/ld.c:949 src/nm.c:265 src/objdump.c:181
-#: src/ranlib.c:128 src/readelf.c:500 src/size.c:211 src/strings.c:226
-#: src/strip.c:213 src/unstrip.c:233
-#, c-format
-msgid ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-msgstr ""
-
-#: src/addr2line.c:201 src/ar.c:294 src/elfcmp.c:668 src/elflint.c:240
-#: src/findtextrel.c:167 src/ld.c:954 src/nm.c:270 src/objdump.c:186
-#: src/ranlib.c:133 src/readelf.c:505 src/size.c:216 src/strings.c:231
-#: src/strip.c:218 src/unstrip.c:238
-#, c-format
-msgid "Written by %s.\n"
-msgstr ""
-
-#: src/addr2line.c:474
-#, c-format
-msgid "Section syntax requires exactly one module"
-msgstr ""
-
-#: src/addr2line.c:497
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside section '%s'"
-msgstr ""
-
-#: src/addr2line.c:563
-#, c-format
-msgid "cannot find symbol '%s'"
-msgstr ""
-
-#: src/addr2line.c:568
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside contents of '%s'"
-msgstr ""
-
-#: src/ar.c:69
-msgid "Commands:"
-msgstr ""
-
-#: src/ar.c:70
-msgid "Delete files from archive."
-msgstr ""
-
-#: src/ar.c:71
-msgid "Move files in archive."
-msgstr ""
-
-#: src/ar.c:72
-msgid "Print files in archive."
-msgstr ""
-
-#: src/ar.c:73
-msgid "Quick append files to archive."
-msgstr ""
-
-#: src/ar.c:75
-msgid "Replace existing or insert new file into archive."
-msgstr ""
-
-#: src/ar.c:76
-msgid "Display content of archive."
-msgstr ""
-
-#: src/ar.c:77
-msgid "Extract files from archive."
-msgstr ""
-
-#: src/ar.c:79
-msgid "Command Modifiers:"
-msgstr ""
-
-#: src/ar.c:80
-msgid "Preserve original dates."
-msgstr ""
-
-#: src/ar.c:81
-msgid "Use instance [COUNT] of name."
-msgstr ""
-
-#: src/ar.c:83
-msgid "Do not replace existing files with extracted files."
-msgstr ""
-
-#: src/ar.c:84
-msgid "Allow filename to be truncated if necessary."
-msgstr ""
-
-#: src/ar.c:86
-msgid "Provide verbose output."
-msgstr ""
-
-#: src/ar.c:87
-msgid "Force regeneration of symbol table."
-msgstr ""
-
-#: src/ar.c:88
-msgid "Insert file after [MEMBER]."
-msgstr ""
-
-#: src/ar.c:89
-msgid "Insert file before [MEMBER]."
-msgstr ""
-
-#: src/ar.c:90
-msgid "Same as -b."
-msgstr ""
-
-#: src/ar.c:91
-msgid "Suppress message when library has to be created."
-msgstr ""
-
-#: src/ar.c:93
-msgid "Use full path for file matching."
-msgstr ""
-
-#: src/ar.c:94
-msgid "Update only older files in archive."
-msgstr ""
-
-#: src/ar.c:100
-msgid "Create, modify, and extract from archives."
-msgstr ""
-
-#: src/ar.c:103
-msgid "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-msgstr ""
-
-#: src/ar.c:185
-#, c-format
-msgid "'a', 'b', and 'i' are only allowed with the 'm' and 'r' options"
-msgstr ""
-
-#: src/ar.c:190
-#, c-format
-msgid "MEMBER parameter required for 'a', 'b', and 'i' modifiers"
-msgstr ""
-
-#: src/ar.c:206
-#, c-format
-msgid "'N' is only meaningful with the 'x' and 'd' options"
-msgstr ""
-
-#: src/ar.c:211
-#, c-format
-msgid "COUNT parameter required"
-msgstr ""
-
-#: src/ar.c:223
-#, c-format
-msgid "invalid COUNT parameter %s"
-msgstr ""
-
-#: src/ar.c:230
-#, c-format
-msgid "'%c' is only meaningful with the 'x' option"
-msgstr ""
-
-#: src/ar.c:236
-#, c-format
-msgid "archive name required"
-msgstr ""
-
-#: src/ar.c:249
-#, c-format
-msgid "command option required"
-msgstr ""
-
-#: src/ar.c:314
-#, c-format
-msgid "More than one operation specified"
-msgstr ""
-
-#: src/ar.c:408
-#, c-format
-msgid "cannot open archive '%s'"
-msgstr ""
-
-#: src/ar.c:418
-#, c-format
-msgid "cannot open archive '%s': %s"
-msgstr ""
-
-#: src/ar.c:422
-#, c-format
-msgid "%s: not an archive file"
-msgstr ""
-
-#: src/ar.c:426
-#, c-format
-msgid "cannot stat archive '%s'"
-msgstr ""
-
-#: src/ar.c:438
-#, c-format
-msgid "no entry %s in archive\n"
-msgstr ""
-
-#: src/ar.c:491 src/ar.c:933 src/ar.c:1133
-#, c-format
-msgid "cannot create hash table"
-msgstr ""
-
-#: src/ar.c:498 src/ar.c:940 src/ar.c:1142
-#, c-format
-msgid "cannot insert into hash table"
-msgstr ""
-
-#: src/ar.c:506 src/ranlib.c:168
-#, c-format
-msgid "cannot stat '%s'"
-msgstr ""
-
-#: src/ar.c:602
-#, c-format
-msgid "cannot read content of %s: %s"
-msgstr ""
-
-#: src/ar.c:645
-#, c-format
-msgid "cannot open %.*s"
-msgstr ""
-
-#: src/ar.c:667
-#, c-format
-msgid "failed to write %s"
-msgstr ""
-
-#: src/ar.c:679
-#, c-format
-msgid "cannot change mode of %s"
-msgstr ""
-
-#: src/ar.c:695
-#, c-format
-msgid "cannot change modification time of %s"
-msgstr ""
-
-#: src/ar.c:741
-#, c-format
-msgid "cannot rename temporary file to %.*s"
-msgstr ""
-
-#: src/ar.c:777 src/ar.c:1025 src/ar.c:1424 src/ranlib.c:242
-#, c-format
-msgid "cannot create new file"
-msgstr ""
-
-#: src/ar.c:1224
-#, c-format
-msgid "position member %s not found"
-msgstr ""
-
-#: src/ar.c:1234
-#, c-format
-msgid "%s: no entry %s in archive!\n"
-msgstr ""
-
-#: src/ar.c:1263 src/ldgeneric.c:509 src/objdump.c:257
-#, c-format
-msgid "cannot open %s"
-msgstr ""
-
-#: src/ar.c:1268
-#, c-format
-msgid "cannot stat %s"
-msgstr ""
-
-#: src/ar.c:1274
-#, c-format
-msgid "%s is no regular file"
-msgstr ""
-
-#: src/ar.c:1287
-#, c-format
-msgid "cannot get ELF descriptor for %s: %s\n"
-msgstr ""
-
-#: src/ar.c:1307
-#, c-format
-msgid "cannot read %s: %s"
-msgstr ""
-
-#: src/arlib.c:209
-#, c-format
-msgid "the archive '%s' is too large"
-msgstr ""
-
-#: src/arlib.c:222
-#, c-format
-msgid "cannot read ELF header of %s(%s): %s"
-msgstr ""
-
-#: src/elfcmp.c:62
-msgid "Control options:"
-msgstr ""
-
-#: src/elfcmp.c:64
-msgid "Output all differences, not just the first"
-msgstr ""
-
-#: src/elfcmp.c:65
-msgid ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-msgstr ""
-
-#: src/elfcmp.c:67
-msgid "Ignore permutation of buckets in SHT_HASH section"
-msgstr ""
-
-#: src/elfcmp.c:69
-msgid "Ignore differences in build ID"
-msgstr ""
-
-#: src/elfcmp.c:70
-msgid "Output nothing; yield exit status only"
-msgstr ""
-
-#: src/elfcmp.c:77
-msgid "Compare relevant parts of two ELF files for equality."
-msgstr ""
-
-#: src/elfcmp.c:81
-msgid "FILE1 FILE2"
-msgstr ""
-
-#: src/elfcmp.c:143
-msgid "Invalid number of parameters.\n"
-msgstr ""
-
-#: src/elfcmp.c:174 src/elfcmp.c:179
-#, c-format
-msgid "cannot get ELF header of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:205
-#, c-format
-msgid "%s %s diff: ELF header"
-msgstr ""
-
-#: src/elfcmp.c:212 src/elfcmp.c:215
-#, c-format
-msgid "cannot get section count of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:220
-#, c-format
-msgid "%s %s diff: section count"
-msgstr ""
-
-#: src/elfcmp.c:227 src/elfcmp.c:230
-#, c-format
-msgid "cannot get program header count of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:235
-#, c-format
-msgid "%s %s diff: program header count"
-msgstr ""
-
-#: src/elfcmp.c:292
-#, c-format
-msgid "%s %s differ: section [%zu], [%zu] name"
-msgstr ""
-
-#: src/elfcmp.c:315
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' header"
-msgstr ""
-
-#: src/elfcmp.c:323 src/elfcmp.c:329
-#, c-format
-msgid "cannot get content of section %zu in '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:345 src/elfcmp.c:351
-#, c-format
-msgid "cannot get symbol in '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:373
-#, c-format
-msgid "%s %s differ: symbol table [%zu]"
-msgstr ""
-
-#: src/elfcmp.c:376
-#, c-format
-msgid "%s %s differ: symbol table [%zu,%zu]"
-msgstr ""
-
-#: src/elfcmp.c:422 src/elfcmp.c:491
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' number of notes"
-msgstr ""
-
-#: src/elfcmp.c:430
-#, c-format
-msgid "cannot read note section [%zu] '%s' in '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:440
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note name"
-msgstr ""
-
-#: src/elfcmp.c:448
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' type"
-msgstr ""
-
-#: src/elfcmp.c:463
-#, c-format
-msgid "%s %s differ: build ID length"
-msgstr ""
-
-#: src/elfcmp.c:471
-#, c-format
-msgid "%s %s differ: build ID content"
-msgstr ""
-
-#: src/elfcmp.c:480
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:520
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:524
-#, c-format
-msgid "%s %s differ: section [%zu,%zu] '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:539
-#, c-format
-msgid "%s %s differ: unequal amount of important sections"
-msgstr ""
-
-#: src/elfcmp.c:572 src/elfcmp.c:577
-#, c-format
-msgid "cannot load data of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:596 src/elfcmp.c:602
-#, c-format
-msgid "cannot get program header entry %d of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:608
-#, c-format
-msgid "%s %s differ: program header %d"
-msgstr ""
-
-#: src/elfcmp.c:632
-#, c-format
-msgid "%s %s differ: gap"
-msgstr ""
-
-#: src/elfcmp.c:695
-#, c-format
-msgid "Invalid value '%s' for --gaps parameter."
-msgstr ""
-
-#: src/elfcmp.c:723 src/findtextrel.c:221 src/ldgeneric.c:1757
-#: src/ldgeneric.c:4247 src/nm.c:381 src/ranlib.c:161 src/size.c:293
-#: src/strings.c:182 src/strip.c:451 src/strip.c:488 src/unstrip.c:1923
-#: src/unstrip.c:1952
-#, c-format
-msgid "cannot open '%s'"
-msgstr ""
-
-#: src/elfcmp.c:727 src/findtextrel.c:228 src/ranlib.c:178
-#, c-format
-msgid "cannot create ELF descriptor for '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:732
-#, c-format
-msgid "cannot create EBL descriptor for '%s'"
-msgstr ""
-
-#: src/elfcmp.c:750
-#, c-format
-msgid "cannot get section header of section %zu: %s"
-msgstr ""
-
-#: src/elfcmp.c:760
-#, c-format
-msgid "cannot get content of section %zu: %s"
-msgstr ""
-
-#: src/elfcmp.c:770 src/elfcmp.c:784
-#, c-format
-msgid "cannot get relocation: %s"
-msgstr ""
-
-#: src/elflint.c:64
-msgid "Be extremely strict, flag level 2 features."
-msgstr ""
-
-#: src/elflint.c:65
-msgid "Do not print anything if successful"
-msgstr ""
-
-#: src/elflint.c:66
-msgid "Binary is a separate debuginfo file"
-msgstr ""
-
-#: src/elflint.c:68
-msgid ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-msgstr ""
-
-#: src/elflint.c:74
-msgid "Pedantic checking of ELF files compliance with gABI/psABI spec."
-msgstr ""
-
-#: src/elflint.c:78 src/readelf.c:123
-msgid "FILE..."
-msgstr ""
-
-#: src/elflint.c:155 src/readelf.c:292
-#, c-format
-msgid "cannot open input file"
-msgstr ""
-
-#: src/elflint.c:162
-#, c-format
-msgid "cannot generate Elf descriptor: %s\n"
-msgstr ""
-
-#: src/elflint.c:181
-#, c-format
-msgid "error while closing Elf descriptor: %s\n"
-msgstr ""
-
-#: src/elflint.c:185
-msgid "No errors"
-msgstr ""
-
-#: src/elflint.c:219 src/readelf.c:468
-msgid "Missing file name.\n"
-msgstr ""
-
-#: src/elflint.c:298
-#, c-format
-msgid " error while freeing sub-ELF descriptor: %s\n"
-msgstr ""
-
-#: src/elflint.c:306
-#, c-format
-msgid "Not an ELF file - it has the wrong magic bytes at the start\n"
-msgstr ""
-
-#: src/elflint.c:371
-#, c-format
-msgid "e_ident[%d] == %d is no known class\n"
-msgstr ""
-
-#: src/elflint.c:376
-#, c-format
-msgid "e_ident[%d] == %d is no known data encoding\n"
-msgstr ""
-
-#: src/elflint.c:380
-#, c-format
-msgid "unknown ELF header version number e_ident[%d] == %d\n"
-msgstr ""
-
-#: src/elflint.c:386
-#, c-format
-msgid "unsupported OS ABI e_ident[%d] == '%s'\n"
-msgstr ""
-
-#: src/elflint.c:392
-#, c-format
-msgid "unsupport ABI version e_ident[%d] == %d\n"
-msgstr ""
-
-#: src/elflint.c:397
-#, c-format
-msgid "e_ident[%zu] is not zero\n"
-msgstr ""
-
-#: src/elflint.c:402
-#, c-format
-msgid "unknown object file type %d\n"
-msgstr ""
-
-#: src/elflint.c:409
-#, c-format
-msgid "unknown machine type %d\n"
-msgstr ""
-
-#: src/elflint.c:413
-#, c-format
-msgid "unknown object file version\n"
-msgstr ""
-
-#: src/elflint.c:419
-#, c-format
-msgid "invalid program header offset\n"
-msgstr ""
-
-#: src/elflint.c:421
-#, c-format
-msgid "executables and DSOs cannot have zero program header offset\n"
-msgstr ""
-
-#: src/elflint.c:425
-#, c-format
-msgid "invalid number of program header entries\n"
-msgstr ""
-
-#: src/elflint.c:433
-#, c-format
-msgid "invalid section header table offset\n"
-msgstr ""
-
-#: src/elflint.c:436
-#, c-format
-msgid "section header table must be present\n"
-msgstr ""
-
-#: src/elflint.c:450
-#, c-format
-msgid "invalid number of section header table entries\n"
-msgstr ""
-
-#: src/elflint.c:467
-#, c-format
-msgid "invalid section header index\n"
-msgstr ""
-
-#: src/elflint.c:481
-#, c-format
-msgid "invalid number of program header table entries\n"
-msgstr ""
-
-#: src/elflint.c:490
-#, c-format
-msgid "invalid machine flags: %s\n"
-msgstr ""
-
-#: src/elflint.c:497 src/elflint.c:514
-#, c-format
-msgid "invalid ELF header size: %hd\n"
-msgstr ""
-
-#: src/elflint.c:500 src/elflint.c:517
-#, c-format
-msgid "invalid program header size: %hd\n"
-msgstr ""
-
-#: src/elflint.c:503 src/elflint.c:520
-#, c-format
-msgid "invalid program header position or size\n"
-msgstr ""
-
-#: src/elflint.c:506 src/elflint.c:523
-#, c-format
-msgid "invalid section header size: %hd\n"
-msgstr ""
-
-#: src/elflint.c:509 src/elflint.c:526
-#, c-format
-msgid "invalid section header position or size\n"
-msgstr ""
-
-#: src/elflint.c:570
-#, c-format
-msgid ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-msgstr ""
-
-#: src/elflint.c:574
-#, c-format
-msgid ""
-"section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"
-msgstr ""
-
-#: src/elflint.c:590 src/elflint.c:1457 src/elflint.c:1508 src/elflint.c:1614
-#: src/elflint.c:1939 src/elflint.c:2228 src/elflint.c:2742 src/elflint.c:2904
-#: src/elflint.c:3034 src/elflint.c:3206 src/elflint.c:4108
-#, c-format
-msgid "section [%2d] '%s': cannot get section data\n"
-msgstr ""
-
-#: src/elflint.c:603 src/elflint.c:1621
-#, c-format
-msgid ""
-"section [%2d] '%s': referenced as string table for section [%2d] '%s' but "
-"type is not SHT_STRTAB\n"
-msgstr ""
-
-#: src/elflint.c:626
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-msgstr ""
-
-#: src/elflint.c:638
-#, c-format
-msgid "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-msgstr ""
-
-#: src/elflint.c:647
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %d: %s\n"
-msgstr ""
-
-#: src/elflint.c:652 src/elflint.c:655 src/elflint.c:658 src/elflint.c:661
-#: src/elflint.c:664 src/elflint.c:667
-#, c-format
-msgid "section [%2d] '%s': '%s' in zeroth entry not zero\n"
-msgstr ""
-
-#: src/elflint.c:670
-#, c-format
-msgid "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-msgstr ""
-
-#: src/elflint.c:680
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:689
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid name value\n"
-msgstr ""
-
-#: src/elflint.c:704
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-msgstr ""
-
-#: src/elflint.c:710
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-msgstr ""
-
-#: src/elflint.c:722
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid section index\n"
-msgstr ""
-
-#: src/elflint.c:730
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown type\n"
-msgstr ""
-
-#: src/elflint.c:736
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-msgstr ""
-
-#: src/elflint.c:741
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-msgstr ""
-
-#: src/elflint.c:749
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-msgstr ""
-
-#: src/elflint.c:753
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-msgstr ""
-
-#: src/elflint.c:757
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-msgstr ""
-
-#: src/elflint.c:804
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:810 src/elflint.c:835 src/elflint.c:878
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:819
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have "
-"SHF_TLS flag set\n"
-msgstr ""
-
-#: src/elflint.c:829 src/elflint.c:871
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:856
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-msgstr ""
-
-#: src/elflint.c:864
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"'%s'\n"
-msgstr ""
-
-#: src/elflint.c:891
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-
-#: src/elflint.c:898
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-
-#: src/elflint.c:905
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-msgstr ""
-
-#: src/elflint.c:955
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-msgstr ""
-
-#: src/elflint.c:962
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"'%s'\n"
-msgstr ""
-
-#: src/elflint.c:978
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:985
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:993
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-msgstr ""
-
-#: src/elflint.c:1009
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:1016
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:1029
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-msgstr ""
-
-#: src/elflint.c:1033
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-msgstr ""
-
-#: src/elflint.c:1082
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-msgstr ""
-
-#: src/elflint.c:1093 src/elflint.c:1145
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-msgstr ""
-
-#: src/elflint.c:1118 src/elflint.c:1170
-#, c-format
-msgid ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-msgstr ""
-
-#: src/elflint.c:1124 src/elflint.c:1176
-#, c-format
-msgid ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-msgstr ""
-
-#: src/elflint.c:1136
-#, c-format
-msgid "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-msgstr ""
-
-#: src/elflint.c:1218
-#, c-format
-msgid "section [%2d] '%s': invalid destination section index\n"
-msgstr ""
-
-#: src/elflint.c:1230
-#, c-format
-msgid "section [%2d] '%s': invalid destination section type\n"
-msgstr ""
-
-#: src/elflint.c:1238
-#, c-format
-msgid "section [%2d] '%s': sh_info should be zero\n"
-msgstr ""
-
-#: src/elflint.c:1245
-#, c-format
-msgid "section [%2d] '%s': no relocations for merge-able sections possible\n"
-msgstr ""
-
-#: src/elflint.c:1253
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-msgstr ""
-
-#: src/elflint.c:1313
-#, c-format
-msgid "text relocation flag set but there is no read-only segment\n"
-msgstr ""
-
-#: src/elflint.c:1340
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid type\n"
-msgstr ""
-
-#: src/elflint.c:1348
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-msgstr ""
-
-#: src/elflint.c:1356
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-msgstr ""
-
-#: src/elflint.c:1374
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can "
-"be used with %s\n"
-msgstr ""
-
-#: src/elflint.c:1391
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:1406
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-msgstr ""
-
-#: src/elflint.c:1427
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-msgstr ""
-
-#: src/elflint.c:1442
-#, c-format
-msgid "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-msgstr ""
-
-#: src/elflint.c:1482 src/elflint.c:1533
-#, c-format
-msgid "section [%2d] '%s': cannot get relocation %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:1609
-#, c-format
-msgid "more than one dynamic section present\n"
-msgstr ""
-
-#: src/elflint.c:1628
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-msgstr ""
-
-#: src/elflint.c:1633 src/elflint.c:1918
-#, c-format
-msgid "section [%2d] '%s': sh_info not zero\n"
-msgstr ""
-
-#: src/elflint.c:1643
-#, c-format
-msgid "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:1651
-#, c-format
-msgid "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-msgstr ""
-
-#: src/elflint.c:1658
-#, c-format
-msgid "section [%2d] '%s': entry %zu: unknown tag\n"
-msgstr ""
-
-#: src/elflint.c:1669
-#, c-format
-msgid "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-msgstr ""
-
-#: src/elflint.c:1679
-#, c-format
-msgid "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-msgstr ""
-
-#: src/elflint.c:1697
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-msgstr ""
-
-#: src/elflint.c:1710
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] '%s' referenced by sh_link\n"
-msgstr ""
-
-#: src/elflint.c:1753
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:1768
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:1788 src/elflint.c:1816
-#, c-format
-msgid "section [%2d] '%s': contains %s entry but not %s\n"
-msgstr ""
-
-#: src/elflint.c:1800
-#, c-format
-msgid "section [%2d] '%s': mandatory tag %s not present\n"
-msgstr ""
-
-#: src/elflint.c:1809
-#, c-format
-msgid "section [%2d] '%s': no hash section present\n"
-msgstr ""
-
-#: src/elflint.c:1824 src/elflint.c:1831
-#, c-format
-msgid "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-msgstr ""
-
-#: src/elflint.c:1841 src/elflint.c:1845
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-msgstr ""
-
-#: src/elflint.c:1851
-#, c-format
-msgid "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-msgstr ""
-
-#: src/elflint.c:1862 src/elflint.c:1866 src/elflint.c:1870 src/elflint.c:1874
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in prelinked executable\n"
-msgstr ""
-
-#: src/elflint.c:1886
-#, c-format
-msgid ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-msgstr ""
-
-#: src/elflint.c:1896
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1901
-#, c-format
-msgid "cannot get data for symbol section\n"
-msgstr ""
-
-#: src/elflint.c:1904
-#, c-format
-msgid "section [%2d] '%s': entry size does not match Elf32_Word\n"
-msgstr ""
-
-#: src/elflint.c:1913
-#, c-format
-msgid "section [%2d] '%s': extended index table too small for symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1928
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index in section [%2zu] '%s' refers to "
-"same symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1945
-#, c-format
-msgid "symbol 0 should have zero extended section index\n"
-msgstr ""
-
-#: src/elflint.c:1957
-#, c-format
-msgid "cannot get data for symbol %zu\n"
-msgstr ""
-
-#: src/elflint.c:1962
-#, c-format
-msgid "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-msgstr ""
-
-#: src/elflint.c:1978 src/elflint.c:2029
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-msgstr ""
-
-#: src/elflint.c:1990 src/elflint.c:2041
-#, c-format
-msgid "section [%2d] '%s': chain array too large\n"
-msgstr ""
-
-#: src/elflint.c:2004 src/elflint.c:2055
-#, c-format
-msgid "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2014
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2065
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2081
-#, c-format
-msgid "section [%2d] '%s': bitmask size not power of 2: %u\n"
-msgstr ""
-
-#: src/elflint.c:2092
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-msgstr ""
-
-#: src/elflint.c:2100
-#, c-format
-msgid "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-msgstr ""
-
-#: src/elflint.c:2132
-#, c-format
-msgid ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-msgstr ""
-
-#: src/elflint.c:2153
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-msgstr ""
-
-#: src/elflint.c:2164
-#, c-format
-msgid ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-msgstr ""
-
-#: src/elflint.c:2195
-#, c-format
-msgid "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2200
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2206
-#, c-format
-msgid "section [%2d] '%s': bitmask does not match names in the hash table\n"
-msgstr ""
-
-#: src/elflint.c:2219
-#, c-format
-msgid "section [%2d] '%s': relocatable files cannot have hash tables\n"
-msgstr ""
-
-#: src/elflint.c:2237
-#, c-format
-msgid "section [%2d] '%s': hash table not for dynamic symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2245
-#, c-format
-msgid "section [%2d] '%s': hash table entry size incorrect\n"
-msgstr ""
-
-#: src/elflint.c:2250
-#, c-format
-msgid "section [%2d] '%s': not marked to be allocated\n"
-msgstr ""
-
-#: src/elflint.c:2255
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-msgstr ""
-
-#: src/elflint.c:2303
-#, c-format
-msgid "sh_link in hash sections [%2zu] '%s' and [%2zu] '%s' not identical\n"
-msgstr ""
-
-#: src/elflint.c:2381 src/elflint.c:2385
-#, c-format
-msgid "section [%2zu] '%s': reference to symbol index 0\n"
-msgstr ""
-
-#: src/elflint.c:2392
-#, c-format
-msgid ""
-"symbol %d referenced in new hash table in [%2zu] '%s' but not in old hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2404
-#, c-format
-msgid ""
-"symbol %d referenced in old hash table in [%2zu] '%s' but not in new hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2420
-#, c-format
-msgid "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-msgstr ""
-
-#: src/elflint.c:2440
-#, c-format
-msgid ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-msgstr ""
-
-#: src/elflint.c:2451
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol table: %s\n"
-msgstr ""
-
-#: src/elflint.c:2456
-#, c-format
-msgid "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2462
-#, c-format
-msgid "section [%2d] '%s': invalid symbol index in sh_info\n"
-msgstr ""
-
-#: src/elflint.c:2467
-#, c-format
-msgid "section [%2d] '%s': sh_flags not zero\n"
-msgstr ""
-
-#: src/elflint.c:2474
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol for signature\n"
-msgstr ""
-
-#: src/elflint.c:2479
-#, c-format
-msgid "section [%2d] '%s': signature symbol cannot be empty string\n"
-msgstr ""
-
-#: src/elflint.c:2485
-#, c-format
-msgid "section [%2d] '%s': sh_flags not set correctly\n"
-msgstr ""
-
-#: src/elflint.c:2491
-#, c-format
-msgid "section [%2d] '%s': cannot get data: %s\n"
-msgstr ""
-
-#: src/elflint.c:2500
-#, c-format
-msgid "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-msgstr ""
-
-#: src/elflint.c:2505
-#, c-format
-msgid "section [%2d] '%s': section group without flags word\n"
-msgstr ""
-
-#: src/elflint.c:2511
-#, c-format
-msgid "section [%2d] '%s': section group without member\n"
-msgstr ""
-
-#: src/elflint.c:2515
-#, c-format
-msgid "section [%2d] '%s': section group with only one member\n"
-msgstr ""
-
-#: src/elflint.c:2526
-#, c-format
-msgid "section [%2d] '%s': unknown section group flags\n"
-msgstr ""
-
-#: src/elflint.c:2538
-#, c-format
-msgid "section [%2d] '%s': section index %Zu out of range\n"
-msgstr ""
-
-#: src/elflint.c:2547
-#, c-format
-msgid "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:2554
-#, c-format
-msgid "section [%2d] '%s': section group contains another group [%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2560
-#, c-format
-msgid ""
-"section [%2d] '%s': element %Zu references section [%2d] '%s' without "
-"SHF_GROUP flag set\n"
-msgstr ""
-
-#: src/elflint.c:2567
-#, c-format
-msgid "section [%2d] '%s' is contained in more than one section group\n"
-msgstr ""
-
-#: src/elflint.c:2756
-#, c-format
-msgid ""
-"section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no "
-"dynamic symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2768
-#, c-format
-msgid ""
-"section [%2d] '%s' has different number of entries than symbol table [%2d] "
-"'%s'\n"
-msgstr ""
-
-#: src/elflint.c:2784
-#, c-format
-msgid "section [%2d] '%s': symbol %d: cannot read version data\n"
-msgstr ""
-
-#: src/elflint.c:2800
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-msgstr ""
-
-#: src/elflint.c:2808
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with version\n"
-msgstr ""
-
-#: src/elflint.c:2822
-#, c-format
-msgid "section [%2d] '%s': symbol %d: invalid version index %d\n"
-msgstr ""
-
-#: src/elflint.c:2827
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-msgstr ""
-
-#: src/elflint.c:2837
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-msgstr ""
-
-#: src/elflint.c:2889
-#, c-format
-msgid "more than one version reference section present\n"
-msgstr ""
-
-#: src/elflint.c:2897 src/elflint.c:3026
-#, c-format
-msgid "section [%2d] '%s': sh_link does not link to string table\n"
-msgstr ""
-
-#: src/elflint.c:2920 src/elflint.c:3078
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong version %d\n"
-msgstr ""
-
-#: src/elflint.c:2926 src/elflint.c:3084
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:2934
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid file reference\n"
-msgstr ""
-
-#: src/elflint.c:2942
-#, c-format
-msgid "section [%2d] '%s': entry %d references unknown dependency\n"
-msgstr ""
-
-#: src/elflint.c:2954
-#, c-format
-msgid "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-msgstr ""
-
-#: src/elflint.c:2961
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-msgstr ""
-
-#: src/elflint.c:2968
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-msgstr ""
-
-#: src/elflint.c:2978
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2989
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-msgstr ""
-
-#: src/elflint.c:3005 src/elflint.c:3163
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-msgstr ""
-
-#: src/elflint.c:3018
-#, c-format
-msgid "more than one version definition section present\n"
-msgstr ""
-
-#: src/elflint.c:3063
-#, c-format
-msgid "section [%2d] '%s': more than one BASE definition\n"
-msgstr ""
-
-#: src/elflint.c:3067
-#, c-format
-msgid "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-msgstr ""
-
-#: src/elflint.c:3073
-#, c-format
-msgid "section [%2d] '%s': entry %d has unknown flag\n"
-msgstr ""
-
-#: src/elflint.c:3097
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid name reference\n"
-msgstr ""
-
-#: src/elflint.c:3104
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-msgstr ""
-
-#: src/elflint.c:3113
-#, c-format
-msgid "section [%2d] '%s': entry %d has duplicate version name '%s'\n"
-msgstr ""
-
-#: src/elflint.c:3132
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:3147
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:3169
-#, c-format
-msgid "section [%2d] '%s': no BASE definition\n"
-msgstr ""
-
-#: src/elflint.c:3185
-#, c-format
-msgid "section [%2d] '%s': unknown parent version '%s'\n"
-msgstr ""
-
-#: src/elflint.c:3198
-#, c-format
-msgid "section [%2d] '%s': empty object attributes section\n"
-msgstr ""
-
-#: src/elflint.c:3219
-#, c-format
-msgid "section [%2d] '%s': unrecognized attribute format\n"
-msgstr ""
-
-#: src/elflint.c:3235
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3244
-#, c-format
-msgid "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3256
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-msgstr ""
-
-#: src/elflint.c:3273
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-msgstr ""
-
-#: src/elflint.c:3282
-#, c-format
-msgid "section [%2d] '%s': offset %zu: truncated attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3291
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-msgstr ""
-
-#: src/elflint.c:3304
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-msgstr ""
-
-#: src/elflint.c:3315
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-msgstr ""
-
-#: src/elflint.c:3333
-#, c-format
-msgid "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-msgstr ""
-
-#: src/elflint.c:3344
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-msgstr ""
-
-#: src/elflint.c:3357
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-msgstr ""
-
-#: src/elflint.c:3361
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:3371
-#, c-format
-msgid "section [%2d] '%s': offset %zu: vendor '%s' unknown\n"
-msgstr ""
-
-#: src/elflint.c:3377
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3466
-#, c-format
-msgid "cannot get section header of zeroth section\n"
-msgstr ""
-
-#: src/elflint.c:3470
-#, c-format
-msgid "zeroth section has nonzero name\n"
-msgstr ""
-
-#: src/elflint.c:3472
-#, c-format
-msgid "zeroth section has nonzero type\n"
-msgstr ""
-
-#: src/elflint.c:3474
-#, c-format
-msgid "zeroth section has nonzero flags\n"
-msgstr ""
-
-#: src/elflint.c:3476
-#, c-format
-msgid "zeroth section has nonzero address\n"
-msgstr ""
-
-#: src/elflint.c:3478
-#, c-format
-msgid "zeroth section has nonzero offset\n"
-msgstr ""
-
-#: src/elflint.c:3480
-#, c-format
-msgid "zeroth section has nonzero align value\n"
-msgstr ""
-
-#: src/elflint.c:3482
-#, c-format
-msgid "zeroth section has nonzero entry size value\n"
-msgstr ""
-
-#: src/elflint.c:3485
-#, c-format
-msgid ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-msgstr ""
-
-#: src/elflint.c:3489
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-msgstr ""
-
-#: src/elflint.c:3493
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-msgstr ""
-
-#: src/elflint.c:3510
-#, c-format
-msgid "cannot get section header for section [%2zu] '%s': %s\n"
-msgstr ""
-
-#: src/elflint.c:3519
-#, c-format
-msgid "section [%2zu]: invalid name\n"
-msgstr ""
-
-#: src/elflint.c:3546
-#, c-format
-msgid "section [%2d] '%s' has wrong type: expected %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3562
-#, c-format
-msgid "section [%2zu] '%s' has wrong flags: expected %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3579
-#, c-format
-msgid ""
-"section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3597
-#, c-format
-msgid "section [%2zu] '%s' present in object file\n"
-msgstr ""
-
-#: src/elflint.c:3603 src/elflint.c:3635
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"
-msgstr ""
-
-#: src/elflint.c:3608 src/elflint.c:3640
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-msgstr ""
-
-#: src/elflint.c:3616
-#, c-format
-msgid ""
-"section [%2zu] '%s' is extension section index table in non-object file\n"
-msgstr ""
-
-#: src/elflint.c:3659
-#, c-format
-msgid "section [%2zu] '%s': size not multiple of entry size\n"
-msgstr ""
-
-#: src/elflint.c:3664
-#, c-format
-msgid "cannot get section header\n"
-msgstr ""
-
-#: src/elflint.c:3674
-#, c-format
-msgid "section [%2zu] '%s' has unsupported type %d\n"
-msgstr ""
-
-#: src/elflint.c:3688
-#, c-format
-msgid ""
-"section [%2zu] '%s' contains invalid processor-specific flag(s) %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:3695
-#, c-format
-msgid "section [%2zu] '%s' contains unknown flag(s) %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:3703
-#, c-format
-msgid "section [%2zu] '%s': thread-local data sections address not zero\n"
-msgstr ""
-
-#: src/elflint.c:3711
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in link value\n"
-msgstr ""
-
-#: src/elflint.c:3716
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in info value\n"
-msgstr ""
-
-#: src/elflint.c:3723
-#, c-format
-msgid "section [%2zu] '%s': strings flag set without merge flag\n"
-msgstr ""
-
-#: src/elflint.c:3728
-#, c-format
-msgid "section [%2zu] '%s': merge flag set but entry size is zero\n"
-msgstr ""
-
-#: src/elflint.c:3746
-#, c-format
-msgid "section [%2zu] '%s' has unexpected type %d for an executable section\n"
-msgstr ""
-
-#: src/elflint.c:3755
-#, c-format
-msgid "section [%2zu] '%s' is both executable and writable\n"
-msgstr ""
-
-#: src/elflint.c:3784
-#, c-format
-msgid ""
-"section [%2zu] '%s' not fully contained in segment of program header entry "
-"%d\n"
-msgstr ""
-
-#: src/elflint.c:3792
-#, c-format
-msgid ""
-"section [%2zu] '%s' has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-msgstr ""
-
-#: src/elflint.c:3801
-#, c-format
-msgid ""
-"section [%2zu] '%s' has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-msgstr ""
-
-#: src/elflint.c:3812
-#, c-format
-msgid "section [%2zu] '%s' is executable in nonexecutable segment %d\n"
-msgstr ""
-
-#: src/elflint.c:3822
-#, c-format
-msgid "section [%2zu] '%s' is writable in unwritable segment %d\n"
-msgstr ""
-
-#: src/elflint.c:3832
-#, c-format
-msgid ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:3838
-#, c-format
-msgid ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-msgstr ""
-
-#: src/elflint.c:3846
-#, c-format
-msgid ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-msgstr ""
-
-#: src/elflint.c:3897
-#, c-format
-msgid "more than one version symbol table present\n"
-msgstr ""
-
-#: src/elflint.c:3920
-#, c-format
-msgid "INTERP program header entry but no .interp section\n"
-msgstr ""
-
-#: src/elflint.c:3931
-#, c-format
-msgid ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-msgstr ""
-
-#: src/elflint.c:3937
-#, c-format
-msgid "loadable segment [%u] is writable but contains no writable sections\n"
-msgstr ""
-
-#: src/elflint.c:3948
-#, c-format
-msgid ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-msgstr ""
-
-#: src/elflint.c:3961
-#, c-format
-msgid "duplicate version index %d\n"
-msgstr ""
-
-#: src/elflint.c:3975
-#, c-format
-msgid ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-msgstr ""
-
-#: src/elflint.c:4024
-#, c-format
-msgid "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:4028
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4051
-#, c-format
-msgid "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4055
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4072
-#, c-format
-msgid "phdr[%d]: no note entries defined for the type of file\n"
-msgstr ""
-
-#: src/elflint.c:4091
-#, c-format
-msgid "phdr[%d]: cannot get content of note section: %s\n"
-msgstr ""
-
-#: src/elflint.c:4094
-#, c-format
-msgid "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-msgstr ""
-
-#: src/elflint.c:4115
-#, c-format
-msgid "section [%2d] '%s': no note entries defined for the type of file\n"
-msgstr ""
-
-#: src/elflint.c:4122
-#, c-format
-msgid "section [%2d] '%s': cannot get content of note section\n"
-msgstr ""
-
-#: src/elflint.c:4125
-#, c-format
-msgid "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-msgstr ""
-
-#: src/elflint.c:4143
-#, c-format
-msgid ""
-"only executables, shared objects, and core files can have program headers\n"
-msgstr ""
-
-#: src/elflint.c:4158
-#, c-format
-msgid "cannot get program header entry %d: %s\n"
-msgstr ""
-
-#: src/elflint.c:4167
-#, c-format
-msgid "program header entry %d: unknown program header entry type %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:4178
-#, c-format
-msgid "more than one INTERP entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4186
-#, c-format
-msgid "more than one TLS entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4193
-#, c-format
-msgid "static executable cannot have dynamic sections\n"
-msgstr ""
-
-#: src/elflint.c:4207
-#, c-format
-msgid "dynamic section reference in program header has wrong offset\n"
-msgstr ""
-
-#: src/elflint.c:4210
-#, c-format
-msgid "dynamic section size mismatch in program and section header\n"
-msgstr ""
-
-#: src/elflint.c:4220
-#, c-format
-msgid "more than one GNU_RELRO entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4241
-#, c-format
-msgid "loadable segment GNU_RELRO applies to is not writable\n"
-msgstr ""
-
-#: src/elflint.c:4244
-#, c-format
-msgid "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-msgstr ""
-
-#: src/elflint.c:4252 src/elflint.c:4275
-#, c-format
-msgid "%s segment not contained in a loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:4281
-#, c-format
-msgid "program header offset in ELF header and PHDR entry do not match"
-msgstr ""
-
-#: src/elflint.c:4305
-#, c-format
-msgid "call frame search table reference in program header has wrong offset\n"
-msgstr ""
-
-#: src/elflint.c:4308
-#, c-format
-msgid "call frame search table size mismatch in program and section header\n"
-msgstr ""
-
-#: src/elflint.c:4321
-#, c-format
-msgid "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-msgstr ""
-
-#: src/elflint.c:4329
-#, c-format
-msgid "call frame search table must be allocated\n"
-msgstr ""
-
-#: src/elflint.c:4332
-#, c-format
-msgid "section [%2zu] '%s' must be allocated\n"
-msgstr ""
-
-#: src/elflint.c:4336
-#, c-format
-msgid "call frame search table must not be writable\n"
-msgstr ""
-
-#: src/elflint.c:4339
-#, c-format
-msgid "section [%2zu] '%s' must not be writable\n"
-msgstr ""
-
-#: src/elflint.c:4344
-#, c-format
-msgid "call frame search table must not be executable\n"
-msgstr ""
-
-#: src/elflint.c:4347
-#, c-format
-msgid "section [%2zu] '%s' must not be executable\n"
-msgstr ""
-
-#: src/elflint.c:4358
-#, c-format
-msgid "program header entry %d: file size greater than memory size\n"
-msgstr ""
-
-#: src/elflint.c:4365
-#, c-format
-msgid "program header entry %d: alignment not a power of 2\n"
-msgstr ""
-
-#: src/elflint.c:4368
-#, c-format
-msgid ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-msgstr ""
-
-#: src/elflint.c:4381
-#, c-format
-msgid ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-msgstr ""
-
-#: src/elflint.c:4415
-#, c-format
-msgid "cannot read ELF header: %s\n"
-msgstr ""
-
-#: src/elflint.c:4441
-#, c-format
-msgid "text relocation flag set but not needed\n"
-msgstr ""
-
-#: src/findtextrel.c:62
-msgid "Input Selection:"
-msgstr ""
-
-#: src/findtextrel.c:63
-msgid "Prepend PATH to all file names"
-msgstr ""
-
-#: src/findtextrel.c:65
-msgid "Use PATH as root of debuginfo hierarchy"
-msgstr ""
-
-#: src/findtextrel.c:72
-msgid "Locate source of text relocations in FILEs (a.out by default)."
-msgstr ""
-
-#: src/findtextrel.c:76 src/nm.c:108 src/objdump.c:72 src/size.c:84
-#: src/strings.c:84 src/strip.c:96
-msgid "[FILE...]"
-msgstr ""
-
-#: src/findtextrel.c:238
-#, c-format
-msgid "cannot get ELF header '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:249
-#, c-format
-msgid "'%s' is not a DSO or PIE"
-msgstr ""
-
-#: src/findtextrel.c:269
-#, c-format
-msgid "getting get section header of section %zu: %s"
-msgstr ""
-
-#: src/findtextrel.c:292
-#, c-format
-msgid "cannot read dynamic section: %s"
-msgstr ""
-
-#: src/findtextrel.c:313
-#, c-format
-msgid "no text relocations reported in '%s'"
-msgstr ""
-
-#: src/findtextrel.c:325
-#, c-format
-msgid "while reading ELF file"
-msgstr ""
-
-#: src/findtextrel.c:329
-#, c-format
-msgid "cannot get program header count: %s"
-msgstr ""
-
-#: src/findtextrel.c:340 src/findtextrel.c:357
-#, c-format
-msgid "cannot get program header index at offset %zd: %s"
-msgstr ""
-
-#: src/findtextrel.c:409
-#, c-format
-msgid "cannot get section header of section %Zu: %s"
-msgstr ""
-
-#: src/findtextrel.c:421
-#, c-format
-msgid "cannot get symbol table section %zu in '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:441 src/findtextrel.c:464
-#, c-format
-msgid "cannot get relocation at index %d in section %zu in '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:529
-#, c-format
-msgid "%s not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:582
-#, c-format
-msgid ""
-"the file containing the function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:589 src/findtextrel.c:609
-#, c-format
-msgid ""
-"the file containing the function '%s' might not be compiled with -fpic/-"
-"fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:597
-#, c-format
-msgid ""
-"either the file containing the function '%s' or the file containing the "
-"function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:617
-#, c-format
-msgid ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-msgstr ""
-
-#: src/i386_ld.c:202
-#, c-format
-msgid "cannot allocate PLT section: %s"
-msgstr ""
-
-#: src/i386_ld.c:224
-#, c-format
-msgid "cannot allocate PLTREL section: %s"
-msgstr ""
-
-#: src/i386_ld.c:245
-#, c-format
-msgid "cannot allocate GOT section: %s"
-msgstr ""
-
-#: src/i386_ld.c:266
-#, c-format
-msgid "cannot allocate GOTPLT section: %s"
-msgstr ""
-
-#: src/i386_ld.c:653
-#, c-format
-msgid "initial-executable TLS relocation cannot be used "
-msgstr ""
-
-#: src/ld.c:79
-msgid "Input File Control:"
-msgstr ""
-
-#: src/ld.c:81
-msgid "Include whole archives in the output from now on."
-msgstr ""
-
-#: src/ld.c:83
-msgid "Stop including the whole archives in the output."
-msgstr ""
-
-#: src/ld.c:84 src/ld.c:98 src/ld.c:176
-msgid "FILE"
-msgstr ""
-
-#: src/ld.c:85
-msgid "Start a group."
-msgstr ""
-
-#: src/ld.c:86
-msgid "End a group."
-msgstr ""
-
-#: src/ld.c:87
-msgid "PATH"
-msgstr ""
-
-#: src/ld.c:88
-msgid "Add PATH to list of directories files are searched in."
-msgstr ""
-
-#: src/ld.c:90
-msgid "Only set DT_NEEDED for following dynamic libs if actually used"
-msgstr ""
-
-#: src/ld.c:92
-msgid "Always set DT_NEEDED for following dynamic libs"
-msgstr ""
-
-#: src/ld.c:94
-msgid "Ignore LD_LIBRARY_PATH environment variable."
-msgstr ""
-
-#: src/ld.c:97
-msgid "Output File Control:"
-msgstr ""
-
-#: src/ld.c:98
-msgid "Place output in FILE."
-msgstr ""
-
-#: src/ld.c:101
-msgid "Object is marked to not use default search path at runtime."
-msgstr ""
-
-#: src/ld.c:103
-msgid "Same as --whole-archive."
-msgstr ""
-
-#: src/ld.c:104
-msgid ""
-"Default rules of extracting from archive; weak references are not enough."
-msgstr ""
-
-#: src/ld.c:108
-msgid "Weak references cause extraction from archive."
-msgstr ""
-
-#: src/ld.c:110
-msgid "Allow multiple definitions; first is used."
-msgstr ""
-
-#: src/ld.c:112
-msgid "Disallow/allow undefined symbols in DSOs."
-msgstr ""
-
-#: src/ld.c:115
-msgid "Object requires immediate handling of $ORIGIN."
-msgstr ""
-
-#: src/ld.c:117
-msgid "Relocation will not be processed lazily."
-msgstr ""
-
-#: src/ld.c:119
-msgid "Object cannot be unloaded at runtime."
-msgstr ""
-
-#: src/ld.c:121
-msgid "Mark object to be initialized first."
-msgstr ""
-
-#: src/ld.c:123
-msgid "Enable/disable lazy-loading flag for following dependencies."
-msgstr ""
-
-#: src/ld.c:125
-msgid "Mark object as not loadable with 'dlopen'."
-msgstr ""
-
-#: src/ld.c:127
-msgid "Ignore/record dependencies on unused DSOs."
-msgstr ""
-
-#: src/ld.c:129
-msgid "Generated DSO will be a system library."
-msgstr ""
-
-#: src/ld.c:130
-msgid "ADDRESS"
-msgstr ""
-
-#: src/ld.c:130
-msgid "Set entry point address."
-msgstr ""
-
-#: src/ld.c:133
-msgid "Do not link against shared libraries."
-msgstr ""
-
-#: src/ld.c:136
-msgid "Prefer linking against shared libraries."
-msgstr ""
-
-#: src/ld.c:137
-msgid "Export all dynamic symbols."
-msgstr ""
-
-#: src/ld.c:138
-msgid "Strip all symbols."
-msgstr ""
-
-#: src/ld.c:139
-msgid "Strip debugging symbols."
-msgstr ""
-
-#: src/ld.c:141
-msgid "Assume pagesize for the target system to be SIZE."
-msgstr ""
-
-#: src/ld.c:143
-msgid "Set runtime DSO search path."
-msgstr ""
-
-#: src/ld.c:146
-msgid "Set link time DSO search path."
-msgstr ""
-
-#: src/ld.c:147
-msgid "Generate dynamic shared object."
-msgstr ""
-
-#: src/ld.c:148
-msgid "Generate relocatable object."
-msgstr ""
-
-#: src/ld.c:151
-msgid "Causes symbol not assigned to a version be reduced to local."
-msgstr ""
-
-#: src/ld.c:152
-msgid "Remove unused sections."
-msgstr ""
-
-#: src/ld.c:155
-msgid "Don't remove unused sections."
-msgstr ""
-
-#: src/ld.c:156
-msgid "Set soname of shared object."
-msgstr ""
-
-#: src/ld.c:157
-msgid "Set the dynamic linker name."
-msgstr ""
-
-#: src/ld.c:160
-msgid "Add/suppress addition indentifying link-editor to .comment section."
-msgstr ""
-
-#: src/ld.c:163
-msgid "Create .eh_frame_hdr section"
-msgstr ""
-
-#: src/ld.c:165
-msgid "Set hash style to sysv, gnu or both."
-msgstr ""
-
-#: src/ld.c:167
-msgid "Generate build ID note (md5, sha1 (default), uuid)."
-msgstr ""
-
-#: src/ld.c:169
-msgid "Linker Operation Control:"
-msgstr ""
-
-#: src/ld.c:170
-msgid "Verbose messages."
-msgstr ""
-
-#: src/ld.c:171
-msgid "Trace file opens."
-msgstr ""
-
-#: src/ld.c:173
-msgid "Trade speed for less memory usage"
-msgstr ""
-
-#: src/ld.c:174
-msgid "LEVEL"
-msgstr ""
-
-#: src/ld.c:175
-msgid "Set optimization level to LEVEL."
-msgstr ""
-
-#: src/ld.c:176
-msgid "Use linker script in FILE."
-msgstr ""
-
-#: src/ld.c:179
-msgid "Select to get parser debug information"
-msgstr ""
-
-#: src/ld.c:182
-msgid "Read version information from FILE."
-msgstr ""
-
-#: src/ld.c:183
-msgid "Set emulation to NAME."
-msgstr ""
-
-#: src/ld.c:189
-msgid "Combine object and archive files."
-msgstr ""
-
-#: src/ld.c:192
-msgid "[FILE]..."
-msgstr ""
-
-#: src/ld.c:325
-#, c-format
-msgid "At least one input file needed"
-msgstr ""
-
-#: src/ld.c:341
-#, c-format
-msgid "error while preparing linking"
-msgstr ""
-
-#: src/ld.c:348
-#, c-format
-msgid "cannot open linker script '%s'"
-msgstr ""
-
-#: src/ld.c:389
-#, c-format
-msgid "-( without matching -)"
-msgstr ""
-
-#: src/ld.c:564 src/ld.c:602
-#, c-format
-msgid "only one option of -G and -r is allowed"
-msgstr ""
-
-#: src/ld.c:586
-#, c-format
-msgid "more than one '-m' parameter"
-msgstr ""
-
-#: src/ld.c:596 src/ld.c:1005
-#, c-format
-msgid "unknown option `-%c %s'"
-msgstr ""
-
-#: src/ld.c:638
-#, c-format
-msgid "invalid page size value '%s': ignored"
-msgstr ""
-
-#: src/ld.c:679
-#, c-format
-msgid "invalid hash style '%s'"
-msgstr ""
-
-#: src/ld.c:689
-#, c-format
-msgid "invalid build-ID style '%s'"
-msgstr ""
-
-#: src/ld.c:777
-#, c-format
-msgid "More than one output file name given."
-msgstr ""
-
-#: src/ld.c:794
-#, c-format
-msgid "Invalid optimization level `%s'"
-msgstr ""
-
-#: src/ld.c:842
-#, c-format
-msgid "nested -( -) groups are not allowed"
-msgstr ""
-
-#: src/ld.c:861
-#, c-format
-msgid "-) without matching -("
-msgstr ""
-
-#: src/ld.c:1038
-#, c-format
-msgid "unknown option '-%c %s'"
-msgstr ""
-
-#: src/ld.c:1142
-#, c-format
-msgid "could not find input file to determine output file format"
-msgstr ""
-
-#: src/ld.c:1144
-#, c-format
-msgid "try again with an appropriate '-m' parameter"
-msgstr ""
-
-#: src/ld.c:1438
-#, c-format
-msgid "cannot read version script '%s'"
-msgstr ""
-
-#: src/ld.c:1504 src/ld.c:1543
-#, c-format
-msgid "duplicate definition of '%s' in linker script"
-msgstr ""
-
-#: src/ldgeneric.c:201 src/ldgeneric.c:5141
-#, c-format
-msgid "cannot create string table"
-msgstr ""
-
-#: src/ldgeneric.c:247
-#, c-format
-msgid "cannot load ld backend library '%s': %s"
-msgstr ""
-
-#: src/ldgeneric.c:257
-#, c-format
-msgid "cannot find init function in ld backend library '%s': %s"
-msgstr ""
-
-#: src/ldgeneric.c:300
-#, c-format
-msgid "%s listed more than once as input"
-msgstr ""
-
-#: src/ldgeneric.c:414
-#, c-format
-msgid "%s (for -l%s)\n"
-msgstr ""
-
-#: src/ldgeneric.c:415
-#, c-format
-msgid "%s (for DT_NEEDED %s)\n"
-msgstr ""
-
-#: src/ldgeneric.c:563
-#, c-format
-msgid "Warning: type of `%s' changed from %s in %s to %s in %s"
-msgstr ""
-
-#: src/ldgeneric.c:576
-#, c-format
-msgid "Warning: size of `%s' changed from %<PRIu64> in %s to %<PRIu64> in %s"
-msgstr ""
-
-#: src/ldgeneric.c:651 src/ldgeneric.c:1112 src/readelf.c:527
-#: src/readelf.c:829 src/strip.c:568
-#, c-format
-msgid "cannot determine number of sections: %s"
-msgstr ""
-
-#: src/ldgeneric.c:667
-#, c-format
-msgid "(%s+%#<PRIx64>): multiple definition of %s `%s'\n"
-msgstr ""
-
-#: src/ldgeneric.c:690
-#, c-format
-msgid "(%s+%#<PRIx64>): first defined here\n"
-msgstr ""
-
-#: src/ldgeneric.c:809
-#, c-format
-msgid "%s: cannot get section group data: %s"
-msgstr ""
-
-#: src/ldgeneric.c:830
-#, c-format
-msgid "%s: section '%s' with group flag set does not belong to any group"
-msgstr ""
-
-#: src/ldgeneric.c:875
-#, c-format
-msgid "%s: section [%2d] '%s' is not in the correct section group"
-msgstr ""
-
-#: src/ldgeneric.c:1146 src/ldgeneric.c:1403 src/ldgeneric.c:1412
-#: src/ldgeneric.c:1471 src/ldgeneric.c:1480 src/ldgeneric.c:1743
-#: src/ldgeneric.c:1995
-#, c-format
-msgid "%s: invalid ELF file (%s:%d)\n"
-msgstr ""
-
-#: src/ldgeneric.c:1240
-#, c-format
-msgid "%s: only files of type ET_REL might contain section groups"
-msgstr ""
-
-#: src/ldgeneric.c:1292
-#, c-format
-msgid "%s: cannot determine signature of section group [%2zd] '%s': %s"
-msgstr ""
-
-#: src/ldgeneric.c:1304
-#, c-format
-msgid "%s: cannot get content of section group [%2zd] '%s': %s'"
-msgstr ""
-
-#: src/ldgeneric.c:1318
-#, c-format
-msgid ""
-"%s: group member %zu of section group [%2zd] '%s' has too high index: "
-"%<PRIu32>"
-msgstr ""
-
-#: src/ldgeneric.c:1340
-#, c-format
-msgid "%s: section '%s' has unknown type: %d"
-msgstr ""
-
-#: src/ldgeneric.c:1719
-#, c-format
-msgid "cannot get descriptor for ELF file (%s:%d): %s\n"
-msgstr ""
-
-#: src/ldgeneric.c:1889
-#, c-format
-msgid "cannot read archive `%s': %s"
-msgstr ""
-
-#: src/ldgeneric.c:2010
-#, c-format
-msgid "file of type %s cannot be linked in\n"
-msgstr ""
-
-#: src/ldgeneric.c:2022
-#, c-format
-msgid "%s: input file incompatible with ELF machine type %s\n"
-msgstr ""
-
-#: src/ldgeneric.c:2034
-#, c-format
-msgid "%s: cannot get section header string table index: %s\n"
-msgstr ""
-
-#: src/ldgeneric.c:2063
-#, c-format
-msgid "cannot use DSO '%s' when generating relocatable object file"
-msgstr ""
-
-#: src/ldgeneric.c:2148
-#, c-format
-msgid "input file '%s' ignored"
-msgstr ""
-
-#: src/ldgeneric.c:2362
-#, c-format
-msgid "undefined symbol `%s' in %s"
-msgstr ""
-
-#: src/ldgeneric.c:2692
-#, c-format
-msgid "cannot create ELF descriptor for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:2699
-#, c-format
-msgid "could not create ELF header for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:3214 src/ldgeneric.c:3284 src/ldgeneric.c:3320
-#: src/ldgeneric.c:4447 src/ldgeneric.c:4496 src/ldgeneric.c:4528
-#: src/ldgeneric.c:4763 src/ldgeneric.c:4818 src/ldgeneric.c:5065
-#: src/ldgeneric.c:5121 src/ldgeneric.c:5590 src/ldgeneric.c:5602
-#, c-format
-msgid "cannot create section for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:3434
-#, c-format
-msgid "address computation expression contains variable '%s'"
-msgstr ""
-
-#: src/ldgeneric.c:3479
-#, c-format
-msgid ""
-"argument '%<PRIuMAX>' of ALIGN in address computation expression is no power "
-"of two"
-msgstr ""
-
-#: src/ldgeneric.c:3674
-#, c-format
-msgid "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-msgstr ""
-
-#: src/ldgeneric.c:3680
-#, c-format
-msgid "no entry symbol specified: defaulting to %#0*<PRIx64>"
-msgstr ""
-
-#: src/ldgeneric.c:3910
-#, c-format
-msgid "cannot create GNU hash table section for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4061
-#, c-format
-msgid "cannot create hash table section for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4104
-#, c-format
-msgid "cannot create build ID section: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4181
-#, c-format
-msgid "cannot convert section data to file format: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4190
-#, c-format
-msgid "cannot convert section data to memory format: %s"
-msgstr ""
-
-#: src/ldgeneric.c:4251
-#, c-format
-msgid "cannot read enough data for UUID"
-msgstr ""
-
-#: src/ldgeneric.c:4348 src/ldgeneric.c:4369 src/ldgeneric.c:4398
-#: src/ldgeneric.c:6051
-#, c-format
-msgid "cannot create symbol table for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:5290 src/ldgeneric.c:5842
-#, c-format
-msgid "section index too large in dynamic symbol table"
-msgstr ""
-
-#: src/ldgeneric.c:5735
-#, c-format
-msgid "cannot create versioning section: %s"
-msgstr ""
-
-#: src/ldgeneric.c:5808
-#, c-format
-msgid "cannot create dynamic symbol table for output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:5983
-#, c-format
-msgid "cannot create versioning data: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6083 src/ldgeneric.c:6096 src/ldgeneric.c:6160
-#: src/ldgeneric.c:6168
-#, c-format
-msgid "cannot create section header string section: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6090
-#, c-format
-msgid "cannot create section header string section"
-msgstr ""
-
-#: src/ldgeneric.c:6248
-#, c-format
-msgid "cannot create program header: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6256
-#, c-format
-msgid "while determining file layout: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6377
-#, c-format
-msgid "internal error: non-nobits section follows nobits section"
-msgstr ""
-
-#: src/ldgeneric.c:6914
-#, c-format
-msgid "cannot get header of 0th section: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6930 src/unstrip.c:1822
-#, c-format
-msgid "cannot update ELF header: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6961
-#, c-format
-msgid "linker backend didn't specify function to relocate section"
-msgstr ""
-
-#: src/ldgeneric.c:6973
-#, c-format
-msgid "while writing output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6978
-#, c-format
-msgid "while finishing output file: %s"
-msgstr ""
-
-#: src/ldgeneric.c:6984
-#, c-format
-msgid "cannot stat output file"
-msgstr ""
-
-#: src/ldgeneric.c:7000
-#, c-format
-msgid "WARNING: temporary output file overwritten before linking finished"
-msgstr ""
-
-#: src/ldgeneric.c:7053 src/ldgeneric.c:7064 src/ldgeneric.c:7075
-#: src/ldgeneric.c:7086 src/ldgeneric.c:7105 src/ldgeneric.c:7118
-#: src/ldgeneric.c:7130
-#, c-format
-msgid "no machine specific '%s' implementation"
-msgstr ""
-
-#: src/ldscript.y:170
-msgid "mode for segment invalid\n"
-msgstr ""
-
-#: src/ldscript.y:457
-#, c-format
-msgid "while reading version script '%s': %s at line %d"
-msgstr ""
-
-#: src/ldscript.y:458
-#, c-format
-msgid "while reading linker script '%s': %s at line %d"
-msgstr ""
-
-#: src/ldscript.y:737
-#, c-format
-msgid "symbol '%s' is declared both local and global for unnamed version"
-msgstr ""
-
-#: src/ldscript.y:739
-#, c-format
-msgid "symbol '%s' is declared both local and global for version '%s'"
-msgstr ""
-
-#: src/ldscript.y:759 src/ldscript.y:766
-#, c-format
-msgid "default visibility set as local and global"
-msgstr ""
-
-#: src/nm.c:66 src/strip.c:68
-msgid "Output selection:"
-msgstr ""
-
-#: src/nm.c:67
-msgid "Display debugger-only symbols"
-msgstr ""
-
-#: src/nm.c:68
-msgid "Display only defined symbols"
-msgstr ""
-
-#: src/nm.c:71
-msgid "Display dynamic symbols instead of normal symbols"
-msgstr ""
-
-#: src/nm.c:72
-msgid "Display only external symbols"
-msgstr ""
-
-#: src/nm.c:73
-msgid "Display only undefined symbols"
-msgstr ""
-
-#: src/nm.c:75
-msgid "Include index for symbols from archive members"
-msgstr ""
-
-#: src/nm.c:77 src/size.c:58
-msgid "Output format:"
-msgstr ""
-
-#: src/nm.c:79
-msgid "Print name of the input file before every symbol"
-msgstr ""
-
-#: src/nm.c:82
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The "
-"default is `sysv'"
-msgstr ""
-
-#: src/nm.c:84
-msgid "Same as --format=bsd"
-msgstr ""
-
-#: src/nm.c:85
-msgid "Same as --format=posix"
-msgstr ""
-
-#: src/nm.c:86 src/size.c:64
-msgid "Use RADIX for printing symbol values"
-msgstr ""
-
-#: src/nm.c:87
-msgid "Mark special symbols"
-msgstr ""
-
-#: src/nm.c:89
-msgid "Print size of defined symbols"
-msgstr ""
-
-#: src/nm.c:91 src/size.c:72 src/strip.c:73 src/unstrip.c:73
-msgid "Output options:"
-msgstr ""
-
-#: src/nm.c:92
-msgid "Sort symbols numerically by address"
-msgstr ""
-
-#: src/nm.c:94
-msgid "Do not sort the symbols"
-msgstr ""
-
-#: src/nm.c:95
-msgid "Reverse the sense of the sort"
-msgstr ""
-
-#: src/nm.c:98
-msgid "Decode low-level symbol names into source code names"
-msgstr ""
-
-#: src/nm.c:105
-msgid "List symbols from FILEs (a.out by default)."
-msgstr ""
-
-#: src/nm.c:116 src/objdump.c:80
-msgid "Output formatting"
-msgstr ""
-
-#: src/nm.c:140 src/objdump.c:104 src/size.c:109 src/strip.c:120
-#, c-format
-msgid "%s: INTERNAL ERROR %d (%s-%s): %s"
-msgstr ""
-
-#: src/nm.c:398 src/nm.c:410 src/size.c:309 src/size.c:318 src/size.c:329
-#: src/strip.c:2160
-#, c-format
-msgid "while closing '%s'"
-msgstr ""
-
-#: src/nm.c:420 src/objdump.c:296 src/strip.c:376
-#, c-format
-msgid "%s: File format not recognized"
-msgstr ""
-
-#: src/nm.c:460
-msgid ""
-"\n"
-"Archive index:\n"
-msgstr ""
-
-#: src/nm.c:469
-#, c-format
-msgid "invalid offset %zu for symbol %s"
-msgstr ""
-
-#: src/nm.c:474
-#, c-format
-msgid "%s in %s\n"
-msgstr ""
-
-#: src/nm.c:482
-#, c-format
-msgid "cannot reset archive offset to beginning"
-msgstr ""
-
-#: src/nm.c:506 src/objdump.c:344
-#, c-format
-msgid "%s%s%s: file format not recognized"
-msgstr ""
-
-#: src/nm.c:718
-#, c-format
-msgid "cannot create search tree"
-msgstr ""
-
-#: src/nm.c:757 src/nm.c:1163 src/objdump.c:793 src/readelf.c:536
-#: src/readelf.c:1085 src/readelf.c:1245 src/readelf.c:1393 src/readelf.c:1579
-#: src/readelf.c:1785 src/readelf.c:1975 src/readelf.c:2202 src/readelf.c:2460
-#: src/readelf.c:2536 src/readelf.c:2623 src/readelf.c:3201 src/readelf.c:3237
-#: src/readelf.c:3300 src/readelf.c:8187 src/readelf.c:9273 src/readelf.c:9420
-#: src/readelf.c:9488 src/size.c:417 src/size.c:486 src/strip.c:503
-#, c-format
-msgid "cannot get section header string table index"
-msgstr ""
-
-#: src/nm.c:784
-#, c-format
-msgid ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-msgstr ""
-
-#: src/nm.c:787
-#, c-format
-msgid ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-msgstr ""
-
-#: src/nm.c:1173
-#, c-format
-msgid "%s: entry size in section `%s' is not what we expect"
-msgstr ""
-
-#: src/nm.c:1177
-#, c-format
-msgid "%s: size of section `%s' is not multiple of entry size"
-msgstr ""
-
-#: src/nm.c:1435
-#, c-format
-msgid "%s%s%s%s: Invalid operation"
-msgstr ""
-
-#: src/nm.c:1492
-#, c-format
-msgid "%s%s%s: no symbols"
-msgstr ""
-
-#: src/objdump.c:53
-msgid "Mode selection:"
-msgstr ""
-
-#: src/objdump.c:54
-msgid "Display relocation information."
-msgstr ""
-
-#: src/objdump.c:56
-msgid "Display the full contents of all sections requested"
-msgstr ""
-
-#: src/objdump.c:58
-msgid "Display assembler code of executable sections"
-msgstr ""
-
-#: src/objdump.c:60
-msgid "Output content selection:"
-msgstr ""
-
-#: src/objdump.c:62
-msgid "Only display information for section NAME."
-msgstr ""
-
-#: src/objdump.c:68
-msgid "Show information from FILEs (a.out by default)."
-msgstr ""
-
-#: src/objdump.c:236 src/readelf.c:473
-msgid "No operation specified.\n"
-msgstr ""
-
-#: src/objdump.c:274 src/objdump.c:286
-#, c-format
-msgid "while close `%s'"
-msgstr ""
-
-#: src/objdump.c:379 src/readelf.c:1880 src/readelf.c:2072
-msgid "INVALID SYMBOL"
-msgstr ""
-
-#: src/objdump.c:394 src/readelf.c:1914 src/readelf.c:2108
-msgid "INVALID SECTION"
-msgstr ""
-
-#: src/objdump.c:514
-#, c-format
-msgid ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-msgstr ""
-
-#: src/objdump.c:517
-msgid "OFFSET"
-msgstr ""
-
-#: src/objdump.c:582
-#, c-format
-msgid "Contents of section %s:\n"
-msgstr ""
-
-#: src/objdump.c:703
-#, c-format
-msgid "cannot disassemble"
-msgstr ""
-
-#: src/objdump.c:742
-#, c-format
-msgid "cannot allocate memory"
-msgstr ""
-
-#: src/ranlib.c:66
-msgid "Generate an index to speed access to archives."
-msgstr ""
-
-#: src/ranlib.c:69
-msgid "ARCHIVE"
-msgstr ""
-
-#: src/ranlib.c:108
-#, c-format
-msgid "Archive name required"
-msgstr ""
-
-#: src/ranlib.c:186
-#, c-format
-msgid "'%s' is no archive"
-msgstr ""
-
-#: src/ranlib.c:221
-#, c-format
-msgid "error while freeing sub-ELF descriptor: %s"
-msgstr ""
-
-#: src/readelf.c:71
-msgid "ELF input selection:"
-msgstr ""
-
-#: src/readelf.c:73
-msgid ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-msgstr ""
-
-#: src/readelf.c:75
-msgid "ELF output selection:"
-msgstr ""
-
-#: src/readelf.c:77
-msgid "All these plus -p .strtab -p .dynstr -p .comment"
-msgstr ""
-
-#: src/readelf.c:78
-msgid "Display the dynamic segment"
-msgstr ""
-
-#: src/readelf.c:79
-msgid "Display the ELF file header"
-msgstr ""
-
-#: src/readelf.c:81
-msgid "Display histogram of bucket list lengths"
-msgstr ""
-
-#: src/readelf.c:82
-msgid "Display the program headers"
-msgstr ""
-
-#: src/readelf.c:84
-msgid "Display relocations"
-msgstr ""
-
-#: src/readelf.c:85
-msgid "Display the sections' headers"
-msgstr ""
-
-#: src/readelf.c:87
-msgid "Display the symbol table"
-msgstr ""
-
-#: src/readelf.c:88
-msgid "Display versioning information"
-msgstr ""
-
-#: src/readelf.c:89
-msgid "Display the ELF notes"
-msgstr ""
-
-#: src/readelf.c:91
-msgid "Display architecture specific information, if any"
-msgstr ""
-
-#: src/readelf.c:93
-msgid "Display sections for exception handling"
-msgstr ""
-
-#: src/readelf.c:95
-msgid "Additional output selection:"
-msgstr ""
-
-#: src/readelf.c:97
-msgid ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-msgstr ""
-
-#: src/readelf.c:101
-msgid "Dump the uninterpreted contents of SECTION, by number or name"
-msgstr ""
-
-#: src/readelf.c:103
-msgid "Print string contents of sections"
-msgstr ""
-
-#: src/readelf.c:106
-msgid "Display the symbol index of an archive"
-msgstr ""
-
-#: src/readelf.c:108
-msgid "Output control:"
-msgstr ""
-
-#: src/readelf.c:110
-msgid "Do not find symbol names for addresses in DWARF data"
-msgstr ""
-
-#: src/readelf.c:112
-msgid ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-msgstr ""
-
-#: src/readelf.c:114
-msgid "Ignored for compatibility (lines always wide)"
-msgstr ""
-
-#: src/readelf.c:119
-msgid "Print information from ELF file in human-readable form."
-msgstr ""
-
-#: src/readelf.c:441
-#, c-format
-msgid "Unknown DWARF debug section `%s'.\n"
-msgstr ""
-
-#: src/readelf.c:520 src/readelf.c:631
-#, c-format
-msgid "cannot generate Elf descriptor: %s"
-msgstr ""
-
-#: src/readelf.c:545 src/readelf.c:1099 src/readelf.c:1269
-#, c-format
-msgid "cannot get section: %s"
-msgstr ""
-
-#: src/readelf.c:554 src/readelf.c:1106 src/readelf.c:1277 src/readelf.c:9440
-#: src/unstrip.c:356 src/unstrip.c:387 src/unstrip.c:436 src/unstrip.c:544
-#: src/unstrip.c:561 src/unstrip.c:597 src/unstrip.c:795 src/unstrip.c:1063
-#: src/unstrip.c:1254 src/unstrip.c:1314 src/unstrip.c:1435 src/unstrip.c:1488
-#: src/unstrip.c:1595 src/unstrip.c:1784
-#, c-format
-msgid "cannot get section header: %s"
-msgstr ""
-
-#: src/readelf.c:562
-#, c-format
-msgid "cannot get section name"
-msgstr ""
-
-#: src/readelf.c:571 src/readelf.c:5398 src/readelf.c:7671 src/readelf.c:7773
-#: src/readelf.c:7939
-#, c-format
-msgid "cannot get %s content: %s"
-msgstr ""
-
-#: src/readelf.c:587
-#, c-format
-msgid "cannot create temp file '%s'"
-msgstr ""
-
-#: src/readelf.c:596
-#, c-format
-msgid "cannot write section data"
-msgstr ""
-
-#: src/readelf.c:602 src/readelf.c:619 src/readelf.c:648
-#, c-format
-msgid "error while closing Elf descriptor: %s"
-msgstr ""
-
-#: src/readelf.c:609
-#, c-format
-msgid "error while rewinding file descriptor"
-msgstr ""
-
-#: src/readelf.c:643
-#, c-format
-msgid "'%s' is not an archive, cannot print archive index"
-msgstr ""
-
-#: src/readelf.c:742
-#, c-format
-msgid "No such section '%s' in '%s'"
-msgstr ""
-
-#: src/readelf.c:769
-#, c-format
-msgid "cannot stat input file"
-msgstr ""
-
-#: src/readelf.c:771
-#, c-format
-msgid "input file is empty"
-msgstr ""
-
-#: src/readelf.c:773
-#, c-format
-msgid "failed reading '%s': %s"
-msgstr ""
-
-#: src/readelf.c:814
-#, c-format
-msgid "cannot read ELF header: %s"
-msgstr ""
-
-#: src/readelf.c:822
-#, c-format
-msgid "cannot create EBL handle"
-msgstr ""
-
-#: src/readelf.c:835
-#, c-format
-msgid "cannot determine number of program headers: %s"
-msgstr ""
-
-#: src/readelf.c:921
-msgid "NONE (None)"
-msgstr ""
-
-#: src/readelf.c:922
-msgid "REL (Relocatable file)"
-msgstr ""
-
-#: src/readelf.c:923
-msgid "EXEC (Executable file)"
-msgstr ""
-
-#: src/readelf.c:924
-msgid "DYN (Shared object file)"
-msgstr ""
-
-#: src/readelf.c:925
-msgid "CORE (Core file)"
-msgstr ""
-
-#: src/readelf.c:930
-#, c-format
-msgid "OS Specific: (%x)\n"
-msgstr ""
-
-#: src/readelf.c:932
-#, c-format
-msgid "Processor Specific: (%x)\n"
-msgstr ""
-
-#: src/readelf.c:942
-msgid ""
-"ELF Header:\n"
-" Magic: "
-msgstr ""
-
-#: src/readelf.c:946
-#, c-format
-msgid ""
-"\n"
-" Class: %s\n"
-msgstr ""
-
-#: src/readelf.c:951
-#, c-format
-msgid " Data: %s\n"
-msgstr ""
-
-#: src/readelf.c:957
-#, c-format
-msgid " Ident Version: %hhd %s\n"
-msgstr ""
-
-#: src/readelf.c:959 src/readelf.c:976
-msgid "(current)"
-msgstr ""
-
-#: src/readelf.c:963
-#, c-format
-msgid " OS/ABI: %s\n"
-msgstr ""
-
-#: src/readelf.c:966
-#, c-format
-msgid " ABI Version: %hhd\n"
-msgstr ""
-
-#: src/readelf.c:969
-msgid " Type: "
-msgstr ""
-
-#: src/readelf.c:972
-#, c-format
-msgid " Machine: %s\n"
-msgstr ""
-
-#: src/readelf.c:974
-#, c-format
-msgid " Version: %d %s\n"
-msgstr ""
-
-#: src/readelf.c:978
-#, c-format
-msgid " Entry point address: %#<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:981
-#, c-format
-msgid " Start of program headers: %<PRId64> %s\n"
-msgstr ""
-
-#: src/readelf.c:982 src/readelf.c:985
-msgid "(bytes into file)"
-msgstr ""
-
-#: src/readelf.c:984
-#, c-format
-msgid " Start of section headers: %<PRId64> %s\n"
-msgstr ""
-
-#: src/readelf.c:987
-#, c-format
-msgid " Flags: %s\n"
-msgstr ""
-
-#: src/readelf.c:990
-#, c-format
-msgid " Size of this header: %<PRId16> %s\n"
-msgstr ""
-
-#: src/readelf.c:991 src/readelf.c:994 src/readelf.c:1011
-msgid "(bytes)"
-msgstr ""
-
-#: src/readelf.c:993
-#, c-format
-msgid " Size of program header entries: %<PRId16> %s\n"
-msgstr ""
-
-#: src/readelf.c:996
-#, c-format
-msgid " Number of program headers entries: %<PRId16>"
-msgstr ""
-
-#: src/readelf.c:1003
-#, c-format
-msgid " (%<PRIu32> in [0].sh_info)"
-msgstr ""
-
-#: src/readelf.c:1006 src/readelf.c:1023 src/readelf.c:1037
-msgid " ([0] not available)"
-msgstr ""
-
-#: src/readelf.c:1010
-#, c-format
-msgid " Size of section header entries: %<PRId16> %s\n"
-msgstr ""
-
-#: src/readelf.c:1013
-#, c-format
-msgid " Number of section headers entries: %<PRId16>"
-msgstr ""
-
-#: src/readelf.c:1020
-#, c-format
-msgid " (%<PRIu32> in [0].sh_size)"
-msgstr ""
-
-#: src/readelf.c:1033
-#, c-format
-msgid " (%<PRIu32> in [0].sh_link)"
-msgstr ""
-
-#: src/readelf.c:1041
-#, c-format
-msgid ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:1045
-#, c-format
-msgid ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:1077
-#, c-format
-msgid ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:1087
-msgid "Section Headers:"
-msgstr ""
-
-#: src/readelf.c:1090
-msgid ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-msgstr ""
-
-#: src/readelf.c:1092
-msgid ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-msgstr ""
-
-#: src/readelf.c:1164
-msgid "Program Headers:"
-msgstr ""
-
-#: src/readelf.c:1166
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-msgstr ""
-
-#: src/readelf.c:1169
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-msgstr ""
-
-#: src/readelf.c:1226
-#, c-format
-msgid "\t[Requesting program interpreter: %s]\n"
-msgstr ""
-
-#: src/readelf.c:1247
-msgid ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-msgstr ""
-
-#: src/readelf.c:1258 src/unstrip.c:1843 src/unstrip.c:1886 src/unstrip.c:1893
-#, c-format
-msgid "cannot get program header: %s"
-msgstr ""
-
-#: src/readelf.c:1401
-#, c-format
-msgid ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1406
-#, c-format
-msgid ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1414
-msgid "<INVALID SYMBOL>"
-msgstr ""
-
-#: src/readelf.c:1428
-msgid "<INVALID SECTION>"
-msgstr ""
-
-#: src/readelf.c:1585 src/readelf.c:2208 src/readelf.c:2466 src/readelf.c:2542
-#: src/readelf.c:2846 src/readelf.c:2920 src/readelf.c:4610
-#, c-format
-msgid "invalid sh_link value in section %Zu"
-msgstr ""
-
-#: src/readelf.c:1588
-#, c-format
-msgid ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1598
-msgid " Type Value\n"
-msgstr ""
-
-#: src/readelf.c:1622
-#, c-format
-msgid "Shared library: [%s]\n"
-msgstr ""
-
-#: src/readelf.c:1627
-#, c-format
-msgid "Library soname: [%s]\n"
-msgstr ""
-
-#: src/readelf.c:1632
-#, c-format
-msgid "Library rpath: [%s]\n"
-msgstr ""
-
-#: src/readelf.c:1637
-#, c-format
-msgid "Library runpath: [%s]\n"
-msgstr ""
-
-#: src/readelf.c:1657
-#, c-format
-msgid "%<PRId64> (bytes)\n"
-msgstr ""
-
-#: src/readelf.c:1770 src/readelf.c:1960
-#, c-format
-msgid ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:1788 src/readelf.c:1978
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1803 src/readelf.c:1993
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:1813
-msgid " Offset Type Value Name\n"
-msgstr ""
-
-#: src/readelf.c:1815
-msgid " Offset Type Value Name\n"
-msgstr ""
-
-#: src/readelf.c:1868 src/readelf.c:1879 src/readelf.c:1892 src/readelf.c:1913
-#: src/readelf.c:1925 src/readelf.c:2059 src/readelf.c:2071 src/readelf.c:2085
-#: src/readelf.c:2107 src/readelf.c:2120
-msgid "<INVALID RELOC>"
-msgstr ""
-
-#: src/readelf.c:2003
-msgid " Offset Type Value Addend Name\n"
-msgstr ""
-
-#: src/readelf.c:2005
-msgid " Offset Type Value Addend Name\n"
-msgstr ""
-
-#: src/readelf.c:2216
-#, c-format
-msgid ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entry:\n"
-msgid_plural ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2221
-#, c-format
-msgid " %lu local symbol String table: [%2u] '%s'\n"
-msgid_plural " %lu local symbols String table: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2229
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr ""
-
-#: src/readelf.c:2231
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr ""
-
-#: src/readelf.c:2251
-#, c-format
-msgid "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-msgstr ""
-
-#: src/readelf.c:2339
-#, c-format
-msgid "bad dynamic symbol"
-msgstr ""
-
-#: src/readelf.c:2421
-msgid "none"
-msgstr ""
-
-#: src/readelf.c:2438
-msgid "| <unknown>"
-msgstr ""
-
-#: src/readelf.c:2469
-#, c-format
-msgid ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2490
-#, c-format
-msgid " %#06x: Version: %hu File: %s Cnt: %hu\n"
-msgstr ""
-
-#: src/readelf.c:2503
-#, c-format
-msgid " %#06x: Name: %s Flags: %s Version: %hu\n"
-msgstr ""
-
-#: src/readelf.c:2546
-#, c-format
-msgid ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2574
-#, c-format
-msgid " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-msgstr ""
-
-#: src/readelf.c:2589
-#, c-format
-msgid " %#06x: Parent %d: %s\n"
-msgstr ""
-
-#: src/readelf.c:2850
-#, c-format
-msgid ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgid_plural ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2878
-msgid " 0 *local* "
-msgstr ""
-
-#: src/readelf.c:2883
-msgid " 1 *global* "
-msgstr ""
-
-#: src/readelf.c:2925
-#, c-format
-msgid ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:2947
-#, no-c-format
-msgid " Length Number % of total Coverage\n"
-msgstr ""
-
-#: src/readelf.c:2949
-#, c-format
-msgid " 0 %6<PRIu32> %5.1f%%\n"
-msgstr ""
-
-#: src/readelf.c:2956
-#, c-format
-msgid "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-msgstr ""
-
-#: src/readelf.c:2969
-#, c-format
-msgid ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-msgstr ""
-
-#: src/readelf.c:2987 src/readelf.c:3042 src/readelf.c:3098
-#, c-format
-msgid "cannot get data for section %d: %s"
-msgstr ""
-
-#: src/readelf.c:2995
-#, c-format
-msgid "invalid data in sysv.hash section %d"
-msgstr ""
-
-#: src/readelf.c:3050
-#, c-format
-msgid "invalid data in sysv.hash64 section %d"
-msgstr ""
-
-#: src/readelf.c:3106
-#, c-format
-msgid "invalid data in gnu.hash section %d"
-msgstr ""
-
-#: src/readelf.c:3173
-#, c-format
-msgid ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-msgstr ""
-
-#: src/readelf.c:3248
-#, c-format
-msgid ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:3262
-msgid ""
-" Library Time Stamp Checksum Version "
-"Flags"
-msgstr ""
-
-#: src/readelf.c:3312
-#, c-format
-msgid ""
-"\n"
-"Object attributes section [%2zu] '%s' of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:3329
-msgid " Owner Size\n"
-msgstr ""
-
-#: src/readelf.c:3358
-#, c-format
-msgid " %-13s %4<PRIu32>\n"
-msgstr ""
-
-#: src/readelf.c:3397
-#, c-format
-msgid " %-4u %12<PRIu32>\n"
-msgstr ""
-
-#: src/readelf.c:3402
-#, c-format
-msgid " File: %11<PRIu32>\n"
-msgstr ""
-
-#: src/readelf.c:3451
-#, c-format
-msgid " %s: %<PRId64>, %s\n"
-msgstr ""
-
-#: src/readelf.c:3454
-#, c-format
-msgid " %s: %<PRId64>\n"
-msgstr ""
-
-#: src/readelf.c:3457
-#, c-format
-msgid " %s: %s\n"
-msgstr ""
-
-#: src/readelf.c:3467
-#, c-format
-msgid " %u: %<PRId64>\n"
-msgstr ""
-
-#: src/readelf.c:3470
-#, c-format
-msgid " %u: %s\n"
-msgstr ""
-
-#: src/readelf.c:3515
-#, c-format
-msgid "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr ""
-
-#: src/readelf.c:3518
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr ""
-
-#: src/readelf.c:3523
-#, c-format
-msgid "%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr ""
-
-#: src/readelf.c:3526
-#, c-format
-msgid "%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr ""
-
-#: src/readelf.c:3532
-#, c-format
-msgid "%s+%#<PRIx64> <%s>"
-msgstr ""
-
-#: src/readelf.c:3535
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s>"
-msgstr ""
-
-#: src/readelf.c:3539
-#, c-format
-msgid "%#<PRIx64> <%s>"
-msgstr ""
-
-#: src/readelf.c:3542
-#, c-format
-msgid "%#0*<PRIx64> <%s>"
-msgstr ""
-
-#: src/readelf.c:3547
-#, c-format
-msgid "%s+%#<PRIx64>"
-msgstr ""
-
-#: src/readelf.c:3550
-#, c-format
-msgid "%s+%#0*<PRIx64>"
-msgstr ""
-
-#: src/readelf.c:3932
-msgid "empty block"
-msgstr ""
-
-#: src/readelf.c:3935
-#, c-format
-msgid "%zu byte block:"
-msgstr ""
-
-#: src/readelf.c:4332
-#, c-format
-msgid "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-msgstr ""
-
-#: src/readelf.c:4389
-#, c-format
-msgid "%s %#<PRIx64> used with different address sizes"
-msgstr ""
-
-#: src/readelf.c:4396
-#, c-format
-msgid "%s %#<PRIx64> used with different offset sizes"
-msgstr ""
-
-#: src/readelf.c:4403
-#, c-format
-msgid "%s %#<PRIx64> used with different base addresses"
-msgstr ""
-
-#: src/readelf.c:4492
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-msgstr ""
-
-#: src/readelf.c:4500
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-msgstr ""
-
-#: src/readelf.c:4526
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [ Code]\n"
-msgstr ""
-
-#: src/readelf.c:4534
-#, c-format
-msgid ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-msgstr ""
-
-#: src/readelf.c:4547
-#, c-format
-msgid " *** error while reading abbreviation: %s\n"
-msgstr ""
-
-#: src/readelf.c:4563
-#, c-format
-msgid " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-msgstr ""
-
-#: src/readelf.c:4566
-msgid "yes"
-msgstr ""
-
-#: src/readelf.c:4566
-msgid "no"
-msgstr ""
-
-#: src/readelf.c:4600 src/readelf.c:4673
-#, c-format
-msgid "cannot get .debug_aranges content: %s"
-msgstr ""
-
-#: src/readelf.c:4615
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entries:\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:4646
-#, c-format
-msgid " [%*zu] ???\n"
-msgstr ""
-
-#: src/readelf.c:4648
-#, c-format
-msgid ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-msgstr ""
-
-#: src/readelf.c:4678 src/readelf.c:4832 src/readelf.c:5408 src/readelf.c:6362
-#: src/readelf.c:6894 src/readelf.c:7014 src/readelf.c:7177 src/readelf.c:7602
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:4691 src/readelf.c:6388
-#, c-format
-msgid ""
-"\n"
-"Table at offset %Zu:\n"
-msgstr ""
-
-#: src/readelf.c:4695 src/readelf.c:5432 src/readelf.c:6399
-#, c-format
-msgid "invalid data in section [%zu] '%s'"
-msgstr ""
-
-#: src/readelf.c:4711
-#, c-format
-msgid ""
-"\n"
-" Length: %6<PRIu64>\n"
-msgstr ""
-
-#: src/readelf.c:4723
-#, c-format
-msgid " DWARF version: %6<PRIuFAST16>\n"
-msgstr ""
-
-#: src/readelf.c:4727
-#, c-format
-msgid "unsupported aranges version"
-msgstr ""
-
-#: src/readelf.c:4738
-#, c-format
-msgid " CU offset: %6<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:4744
-#, c-format
-msgid " Address size: %6<PRIu64>\n"
-msgstr ""
-
-#: src/readelf.c:4748
-#, c-format
-msgid "unsupported address size"
-msgstr ""
-
-#: src/readelf.c:4753
-#, c-format
-msgid ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:4757
-#, c-format
-msgid "unsupported segment size"
-msgstr ""
-
-#: src/readelf.c:4797
-#, c-format
-msgid " %s..%s (%<PRIx64>)\n"
-msgstr ""
-
-#: src/readelf.c:4800
-#, c-format
-msgid " %s..%s\n"
-msgstr ""
-
-#: src/readelf.c:4809
-#, c-format
-msgid " %Zu padding bytes\n"
-msgstr ""
-
-#: src/readelf.c:4827
-#, c-format
-msgid "cannot get .debug_ranges content: %s"
-msgstr ""
-
-#: src/readelf.c:4857 src/readelf.c:6921
-#, c-format
-msgid " [%6tx] <INVALID DATA>\n"
-msgstr ""
-
-#: src/readelf.c:4879 src/readelf.c:6943
-#, c-format
-msgid " [%6tx] base address %s\n"
-msgstr ""
-
-#: src/readelf.c:4886 src/readelf.c:6950
-#, c-format
-msgid " [%6tx] empty list\n"
-msgstr ""
-
-#: src/readelf.c:4897
-#, c-format
-msgid " [%6tx] %s..%s\n"
-msgstr ""
-
-#: src/readelf.c:4899
-#, c-format
-msgid " %s..%s\n"
-msgstr ""
-
-#: src/readelf.c:5078
-msgid " <INVALID DATA>\n"
-msgstr ""
-
-#: src/readelf.c:5387
-#, c-format
-msgid "cannot get ELF: %s"
-msgstr ""
-
-#: src/readelf.c:5404
-#, c-format
-msgid ""
-"\n"
-"Call frame information section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:5454
-#, c-format
-msgid ""
-"\n"
-" [%6tx] Zero terminator\n"
-msgstr ""
-
-#: src/readelf.c:5547 src/readelf.c:5702
-#, c-format
-msgid "invalid augmentation length"
-msgstr ""
-
-#: src/readelf.c:5562
-msgid "FDE address encoding: "
-msgstr ""
-
-#: src/readelf.c:5568
-msgid "LSDA pointer encoding: "
-msgstr ""
-
-#: src/readelf.c:5679
-#, c-format
-msgid " (offset: %#<PRIx64>)"
-msgstr ""
-
-#: src/readelf.c:5686
-#, c-format
-msgid " (end offset: %#<PRIx64>)"
-msgstr ""
-
-#: src/readelf.c:5723
-#, c-format
-msgid " %-26sLSDA pointer: %#<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:5778
-#, c-format
-msgid "cannot get attribute code: %s"
-msgstr ""
-
-#: src/readelf.c:5787
-#, c-format
-msgid "cannot get attribute form: %s"
-msgstr ""
-
-#: src/readelf.c:5802
-#, c-format
-msgid "cannot get attribute value: %s"
-msgstr ""
-
-#: src/readelf.c:6101
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [Offset]\n"
-msgstr ""
-
-#: src/readelf.c:6133
-#, c-format
-msgid ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:6142
-#, c-format
-msgid ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-msgstr ""
-
-#: src/readelf.c:6167
-#, c-format
-msgid "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-
-#: src/readelf.c:6181
-#, c-format
-msgid "cannot get DIE offset: %s"
-msgstr ""
-
-#: src/readelf.c:6190
-#, c-format
-msgid "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-
-#: src/readelf.c:6222
-#, c-format
-msgid "cannot get next DIE: %s\n"
-msgstr ""
-
-#: src/readelf.c:6230
-#, c-format
-msgid "cannot get next DIE: %s"
-msgstr ""
-
-#: src/readelf.c:6266
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-
-#: src/readelf.c:6375
-#, c-format
-msgid "cannot get line data section data: %s"
-msgstr ""
-
-#: src/readelf.c:6445
-#, c-format
-msgid ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-msgstr ""
-
-#: src/readelf.c:6466
-#, c-format
-msgid "invalid data at offset %tu in section [%zu] '%s'"
-msgstr ""
-
-#: src/readelf.c:6481
-#, c-format
-msgid " [%*<PRIuFAST8>] %hhu argument\n"
-msgid_plural " [%*<PRIuFAST8>] %hhu arguments\n"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:6489
-msgid ""
-"\n"
-"Directory table:"
-msgstr ""
-
-#: src/readelf.c:6505
-msgid ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-msgstr ""
-
-#: src/readelf.c:6540
-msgid ""
-"\n"
-"Line number statements:"
-msgstr ""
-
-#: src/readelf.c:6591
-#, c-format
-msgid "invalid maximum operations per instruction is zero"
-msgstr ""
-
-#: src/readelf.c:6627
-#, c-format
-msgid " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-msgstr ""
-
-#: src/readelf.c:6632
-#, c-format
-msgid " special opcode %u: address+%u = %s, line%+d = %zu\n"
-msgstr ""
-
-#: src/readelf.c:6652
-#, c-format
-msgid " extended opcode %u: "
-msgstr ""
-
-#: src/readelf.c:6657
-msgid " end of sequence"
-msgstr ""
-
-#: src/readelf.c:6676
-#, c-format
-msgid " set address to %s\n"
-msgstr ""
-
-#: src/readelf.c:6703
-#, c-format
-msgid " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-msgstr ""
-
-#: src/readelf.c:6716
-#, c-format
-msgid " set discriminator to %u\n"
-msgstr ""
-
-#: src/readelf.c:6721
-msgid " unknown opcode"
-msgstr ""
-
-#: src/readelf.c:6733
-msgid " copy"
-msgstr ""
-
-#: src/readelf.c:6744
-#, c-format
-msgid " advance address by %u to %s, op_index to %u\n"
-msgstr ""
-
-#: src/readelf.c:6748
-#, c-format
-msgid " advance address by %u to %s\n"
-msgstr ""
-
-#: src/readelf.c:6759
-#, c-format
-msgid " advance line by constant %d to %<PRId64>\n"
-msgstr ""
-
-#: src/readelf.c:6767
-#, c-format
-msgid " set file to %<PRIu64>\n"
-msgstr ""
-
-#: src/readelf.c:6777
-#, c-format
-msgid " set column to %<PRIu64>\n"
-msgstr ""
-
-#: src/readelf.c:6784
-#, c-format
-msgid " set '%s' to %<PRIuFAST8>\n"
-msgstr ""
-
-#: src/readelf.c:6790
-msgid " set basic block flag"
-msgstr ""
-
-#: src/readelf.c:6803
-#, c-format
-msgid " advance address by constant %u to %s, op_index to %u\n"
-msgstr ""
-
-#: src/readelf.c:6807
-#, c-format
-msgid " advance address by constant %u to %s\n"
-msgstr ""
-
-#: src/readelf.c:6825
-#, c-format
-msgid " advance address by fixed value %u to %s\n"
-msgstr ""
-
-#: src/readelf.c:6834
-msgid " set prologue end flag"
-msgstr ""
-
-#: src/readelf.c:6839
-msgid " set epilogue begin flag"
-msgstr ""
-
-#: src/readelf.c:6848
-#, c-format
-msgid " set isa to %u\n"
-msgstr ""
-
-#: src/readelf.c:6857
-#, c-format
-msgid " unknown opcode with %<PRIu8> parameter:"
-msgid_plural " unknown opcode with %<PRIu8> parameters:"
-msgstr[0] ""
-msgstr[1] ""
-
-#: src/readelf.c:6889
-#, c-format
-msgid "cannot get .debug_loc content: %s"
-msgstr ""
-
-#: src/readelf.c:6964
-#, c-format
-msgid " [%6tx] %s..%s"
-msgstr ""
-
-#: src/readelf.c:6966
-#, c-format
-msgid " %s..%s"
-msgstr ""
-
-#: src/readelf.c:6973 src/readelf.c:7858
-msgid " <INVALID DATA>\n"
-msgstr ""
-
-#: src/readelf.c:7025 src/readelf.c:7186
-#, c-format
-msgid "cannot get macro information section data: %s"
-msgstr ""
-
-#: src/readelf.c:7104
-#, c-format
-msgid "%*s*** non-terminated string at end of section"
-msgstr ""
-
-#: src/readelf.c:7127
-#, c-format
-msgid "%*s*** missing DW_MACINFO_start_file argument at end of section"
-msgstr ""
-
-#: src/readelf.c:7227
-#, c-format
-msgid " Offset: 0x%<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:7239
-#, c-format
-msgid " Version: %<PRIu16>\n"
-msgstr ""
-
-#: src/readelf.c:7245 src/readelf.c:7968
-#, c-format
-msgid " unknown version, cannot parse section\n"
-msgstr ""
-
-#: src/readelf.c:7252
-#, c-format
-msgid " Flag: 0x%<PRIx8>\n"
-msgstr ""
-
-#: src/readelf.c:7255
-#, c-format
-msgid " Offset length: %<PRIu8>\n"
-msgstr ""
-
-#: src/readelf.c:7263
-#, c-format
-msgid " .debug_line offset: 0x%<PRIx64>\n"
-msgstr ""
-
-#: src/readelf.c:7276
-#, c-format
-msgid " extension opcode table, %<PRIu8> items:\n"
-msgstr ""
-
-#: src/readelf.c:7283
-#, c-format
-msgid " [%<PRIx8>]"
-msgstr ""
-
-#: src/readelf.c:7295
-#, c-format
-msgid " %<PRIu8> arguments:"
-msgstr ""
-
-#: src/readelf.c:7323
-#, c-format
-msgid " no arguments."
-msgstr ""
-
-#: src/readelf.c:7560
-#, c-format
-msgid "vendor opcode not verified?"
-msgstr ""
-
-#: src/readelf.c:7588
-#, c-format
-msgid " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-msgstr ""
-
-#: src/readelf.c:7629
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" %*s String\n"
-msgstr ""
-
-#: src/readelf.c:7643
-#, c-format
-msgid " *** error while reading strings: %s\n"
-msgstr ""
-
-#: src/readelf.c:7663
-#, c-format
-msgid ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-msgstr ""
-
-#: src/readelf.c:7765
-#, c-format
-msgid ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-msgstr ""
-
-#: src/readelf.c:7788
-#, c-format
-msgid " LPStart encoding: %#x "
-msgstr ""
-
-#: src/readelf.c:7800
-#, c-format
-msgid " TType encoding: %#x "
-msgstr ""
-
-#: src/readelf.c:7815
-#, c-format
-msgid " Call site encoding: %#x "
-msgstr ""
-
-#: src/readelf.c:7828
-msgid ""
-"\n"
-" Call site table:"
-msgstr ""
-
-#: src/readelf.c:7842
-#, c-format
-msgid ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-msgstr ""
-
-#: src/readelf.c:7909
-#, c-format
-msgid "invalid TType encoding"
-msgstr ""
-
-#: src/readelf.c:7930
-#, c-format
-msgid ""
-"\n"
-"GDB section [%2zu] '%s' at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-msgstr ""
-
-#: src/readelf.c:7959
-#, c-format
-msgid " Version: %<PRId32>\n"
-msgstr ""
-
-#: src/readelf.c:7977
-#, c-format
-msgid " CU offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:7984
-#, c-format
-msgid " TU offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:7991
-#, c-format
-msgid " address offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:7998
-#, c-format
-msgid " symbol offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:8005
-#, c-format
-msgid " constant offset: %#<PRIx32>\n"
-msgstr ""
-
-#: src/readelf.c:8012
-#, c-format
-msgid ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-
-#: src/readelf.c:8034
-#, c-format
-msgid ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-
-#: src/readelf.c:8060
-#, c-format
-msgid ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-
-#: src/readelf.c:8089
-#, c-format
-msgid ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-msgstr ""
-
-#: src/readelf.c:8176
-#, c-format
-msgid "cannot get debug context descriptor: %s"
-msgstr ""
-
-#: src/readelf.c:8336 src/readelf.c:8942 src/readelf.c:9053 src/readelf.c:9111
-#, c-format
-msgid "cannot convert core note data: %s"
-msgstr ""
-
-#: src/readelf.c:8683
-#, c-format
-msgid ""
-"\n"
-"%*s... <repeats %u more times> ..."
-msgstr ""
-
-#: src/readelf.c:9190
-msgid " Owner Data size Type\n"
-msgstr ""
-
-#: src/readelf.c:9208
-#, c-format
-msgid " %-13.*s %9<PRId32> %s\n"
-msgstr ""
-
-#: src/readelf.c:9258
-#, c-format
-msgid "cannot get content of note section: %s"
-msgstr ""
-
-#: src/readelf.c:9285
-#, c-format
-msgid ""
-"\n"
-"Note section [%2zu] '%s' of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:9308
-#, c-format
-msgid ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:9354
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no data to dump.\n"
-msgstr ""
-
-#: src/readelf.c:9360 src/readelf.c:9383
-#, c-format
-msgid "cannot get data for section [%Zu] '%s': %s"
-msgstr ""
-
-#: src/readelf.c:9364
-#, c-format
-msgid ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:9377
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no strings to dump.\n"
-msgstr ""
-
-#: src/readelf.c:9387
-#, c-format
-msgid ""
-"\n"
-"String section [%Zu] '%s' contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-
-#: src/readelf.c:9435
-#, c-format
-msgid ""
-"\n"
-"section [%lu] does not exist"
-msgstr ""
-
-#: src/readelf.c:9464
-#, c-format
-msgid ""
-"\n"
-"section '%s' does not exist"
-msgstr ""
-
-#: src/readelf.c:9521
-#, c-format
-msgid "cannot get symbol index of archive '%s': %s"
-msgstr ""
-
-#: src/readelf.c:9524
-#, c-format
-msgid ""
-"\n"
-"Archive '%s' has no symbol index\n"
-msgstr ""
-
-#: src/readelf.c:9528
-#, c-format
-msgid ""
-"\n"
-"Index of archive '%s' has %Zu entries:\n"
-msgstr ""
-
-#: src/readelf.c:9546
-#, c-format
-msgid "cannot extract member at offset %Zu in '%s': %s"
-msgstr ""
-
-#: src/readelf.c:9551
-#, c-format
-msgid "Archive member '%s' contains:\n"
-msgstr ""
-
-#: src/size.c:60
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd' or `sysv'. The default "
-"is `bsd'"
-msgstr ""
-
-#: src/size.c:62
-msgid "Same as `--format=sysv'"
-msgstr ""
-
-#: src/size.c:63
-msgid "Same as `--format=bsd'"
-msgstr ""
-
-#: src/size.c:66
-msgid "Same as `--radix=10'"
-msgstr ""
-
-#: src/size.c:67
-msgid "Same as `--radix=8'"
-msgstr ""
-
-#: src/size.c:68
-msgid "Same as `--radix=16'"
-msgstr ""
-
-#: src/size.c:70
-msgid "Similar to `--format=sysv' output but in one line"
-msgstr ""
-
-#: src/size.c:74
-msgid "Print size and permission flags for loadable segments"
-msgstr ""
-
-#: src/size.c:75
-msgid "Display the total sizes (bsd only)"
-msgstr ""
-
-#: src/size.c:80
-msgid "List section sizes of FILEs (a.out by default)."
-msgstr ""
-
-#: src/size.c:261
-#, c-format
-msgid "Invalid format: %s"
-msgstr ""
-
-#: src/size.c:272
-#, c-format
-msgid "Invalid radix: %s"
-msgstr ""
-
-#: src/size.c:331
-#, c-format
-msgid "%s: file format not recognized"
-msgstr ""
-
-#: src/size.c:437 src/size.c:570
-#, c-format
-msgid " (ex %s)"
-msgstr ""
-
-#: src/size.c:595
-msgid "(TOTALS)\n"
-msgstr ""
-
-#: src/strings.c:62
-msgid "Output Selection:"
-msgstr ""
-
-#: src/strings.c:63
-msgid "Scan entire file, not only loaded sections"
-msgstr ""
-
-#: src/strings.c:65
-msgid "Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-msgstr ""
-
-#: src/strings.c:66
-msgid ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-msgstr ""
-
-#: src/strings.c:70
-msgid "Print name of the file before each string."
-msgstr ""
-
-#: src/strings.c:72
-msgid "Print location of the string in base 8, 10, or 16 respectively."
-msgstr ""
-
-#: src/strings.c:73
-msgid "Alias for --radix=o"
-msgstr ""
-
-#: src/strings.c:80
-msgid "Print the strings of printable characters in files."
-msgstr ""
-
-#: src/strings.c:267 src/strings.c:302
-#, c-format
-msgid "invalid value '%s' for %s parameter"
-msgstr ""
-
-#: src/strings.c:313
-#, c-format
-msgid "invalid minimum length of matched string size"
-msgstr ""
-
-#: src/strings.c:596
-#, c-format
-msgid "lseek64 failed"
-msgstr ""
-
-#: src/strings.c:613 src/strings.c:677
-#, c-format
-msgid "re-mmap failed"
-msgstr ""
-
-#: src/strings.c:650
-#, c-format
-msgid "mprotect failed"
-msgstr ""
-
-#: src/strip.c:69
-msgid "Place stripped output into FILE"
-msgstr ""
-
-#: src/strip.c:70
-msgid "Extract the removed sections into FILE"
-msgstr ""
-
-#: src/strip.c:71
-msgid "Embed name FILE instead of -f argument"
-msgstr ""
-
-#: src/strip.c:75
-msgid "Remove all debugging symbols"
-msgstr ""
-
-#: src/strip.c:79
-msgid "Remove section headers (not recommended)"
-msgstr ""
-
-#: src/strip.c:81
-msgid "Copy modified/access timestamps to the output"
-msgstr ""
-
-#: src/strip.c:83
-msgid ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-msgstr ""
-
-#: src/strip.c:85
-msgid "Remove .comment section"
-msgstr ""
-
-#: src/strip.c:88
-msgid "Relax a few rules to handle slightly broken ELF files"
-msgstr ""
-
-#: src/strip.c:93
-msgid "Discard symbols from object files."
-msgstr ""
-
-#: src/strip.c:181
-#, c-format
-msgid "--reloc-debug-sections used without -f"
-msgstr ""
-
-#: src/strip.c:195
-#, c-format
-msgid "Only one input file allowed together with '-o' and '-f'"
-msgstr ""
-
-#: src/strip.c:231
-#, c-format
-msgid "-f option specified twice"
-msgstr ""
-
-#: src/strip.c:240
-#, c-format
-msgid "-F option specified twice"
-msgstr ""
-
-#: src/strip.c:249 src/unstrip.c:121
-#, c-format
-msgid "-o option specified twice"
-msgstr ""
-
-#: src/strip.c:273
-#, c-format
-msgid "-R option supports only .comment section"
-msgstr ""
-
-#: src/strip.c:315 src/strip.c:339
-#, c-format
-msgid "cannot stat input file '%s'"
-msgstr ""
-
-#: src/strip.c:329
-#, c-format
-msgid "while opening '%s'"
-msgstr ""
-
-#: src/strip.c:367
-#, c-format
-msgid "%s: cannot use -o or -f when stripping archive"
-msgstr ""
-
-#: src/strip.c:468
-#, c-format
-msgid "cannot open EBL backend"
-msgstr ""
-
-#: src/strip.c:508
-#, c-format
-msgid "cannot get number of phdrs"
-msgstr ""
-
-#: src/strip.c:523 src/strip.c:547
-#, c-format
-msgid "cannot create new file '%s': %s"
-msgstr ""
-
-#: src/strip.c:613
-#, c-format
-msgid "illformed file '%s'"
-msgstr ""
-
-#: src/strip.c:935 src/strip.c:1024
-#, c-format
-msgid "while generating output file: %s"
-msgstr ""
-
-#: src/strip.c:997 src/strip.c:1962
-#, c-format
-msgid "%s: error while creating ELF header: %s"
-msgstr ""
-
-#: src/strip.c:1011
-#, c-format
-msgid "while preparing output for '%s'"
-msgstr ""
-
-#: src/strip.c:1062 src/strip.c:1119
-#, c-format
-msgid "while create section header section: %s"
-msgstr ""
-
-#: src/strip.c:1068
-#, c-format
-msgid "cannot allocate section data: %s"
-msgstr ""
-
-#: src/strip.c:1128
-#, c-format
-msgid "while create section header string table: %s"
-msgstr ""
-
-#: src/strip.c:1757
-#, c-format
-msgid "bad relocation"
-msgstr ""
-
-#: src/strip.c:1874 src/strip.c:1984
-#, c-format
-msgid "while writing '%s': %s"
-msgstr ""
-
-#: src/strip.c:1885
-#, c-format
-msgid "while creating '%s'"
-msgstr ""
-
-#: src/strip.c:1907
-#, c-format
-msgid "while computing checksum for debug information"
-msgstr ""
-
-#: src/strip.c:1970
-#, c-format
-msgid "%s: error while reading the file: %s"
-msgstr ""
-
-#: src/strip.c:2009 src/strip.c:2029
-#, c-format
-msgid "while writing '%s'"
-msgstr ""
-
-#: src/strip.c:2066 src/strip.c:2073
-#, c-format
-msgid "error while finishing '%s': %s"
-msgstr ""
-
-#: src/strip.c:2096 src/strip.c:2153
-#, c-format
-msgid "cannot set access and modification date of '%s'"
-msgstr ""
-
-#: src/unstrip.c:70
-msgid "Match MODULE against file names, not module names"
-msgstr ""
-
-#: src/unstrip.c:71
-msgid "Silently skip unfindable files"
-msgstr ""
-
-#: src/unstrip.c:74
-msgid "Place output into FILE"
-msgstr ""
-
-#: src/unstrip.c:76
-msgid "Create multiple output files under DIRECTORY"
-msgstr ""
-
-#: src/unstrip.c:77
-msgid "Use module rather than file names"
-msgstr ""
-
-#: src/unstrip.c:79
-msgid "Create output for modules that have no separate debug information"
-msgstr ""
-
-#: src/unstrip.c:82
-msgid "Apply relocations to section contents in ET_REL files"
-msgstr ""
-
-#: src/unstrip.c:84
-msgid "Only list module and file names, build IDs"
-msgstr ""
-
-#: src/unstrip.c:86
-msgid "Force combining files even if some ELF headers don't seem to match"
-msgstr ""
-
-#: src/unstrip.c:130
-#, c-format
-msgid "-d option specified twice"
-msgstr ""
-
-#: src/unstrip.c:165
-#, c-format
-msgid "only one of -o or -d allowed"
-msgstr ""
-
-#: src/unstrip.c:174
-#, c-format
-msgid "-n cannot be used with explicit files or -o or -d"
-msgstr ""
-
-#: src/unstrip.c:189
-#, c-format
-msgid "output directory '%s'"
-msgstr ""
-
-#: src/unstrip.c:198
-#, c-format
-msgid "exactly two file arguments are required"
-msgstr ""
-
-#: src/unstrip.c:204
-#, c-format
-msgid "-m, -a, -R, and -i options not allowed with explicit files"
-msgstr ""
-
-#: src/unstrip.c:217
-#, c-format
-msgid "-o or -d is required when using implicit files"
-msgstr ""
-
-#: src/unstrip.c:253
-#, c-format
-msgid "cannot create ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:258
-#, c-format
-msgid "cannot copy ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:262 src/unstrip.c:1832 src/unstrip.c:1876
-#, c-format
-msgid "cannot get number of program headers: %s"
-msgstr ""
-
-#: src/unstrip.c:267 src/unstrip.c:1836
-#, c-format
-msgid "cannot create program headers: %s"
-msgstr ""
-
-#: src/unstrip.c:273
-#, c-format
-msgid "cannot copy program header: %s"
-msgstr ""
-
-#: src/unstrip.c:283
-#, c-format
-msgid "cannot copy section header: %s"
-msgstr ""
-
-#: src/unstrip.c:286 src/unstrip.c:1513
-#, c-format
-msgid "cannot get section data: %s"
-msgstr ""
-
-#: src/unstrip.c:288 src/unstrip.c:1515
-#, c-format
-msgid "cannot copy section data: %s"
-msgstr ""
-
-#: src/unstrip.c:312
-#, c-format
-msgid "cannot create directory '%s'"
-msgstr ""
-
-#: src/unstrip.c:352 src/unstrip.c:769 src/unstrip.c:1547
-#, c-format
-msgid "cannot get symbol table entry: %s"
-msgstr ""
-
-#: src/unstrip.c:368 src/unstrip.c:586 src/unstrip.c:607 src/unstrip.c:619
-#: src/unstrip.c:1568 src/unstrip.c:1698 src/unstrip.c:1722
-#, c-format
-msgid "cannot update symbol table: %s"
-msgstr ""
-
-#: src/unstrip.c:378
-#, c-format
-msgid "cannot update section header: %s"
-msgstr ""
-
-#: src/unstrip.c:417 src/unstrip.c:428
-#, c-format
-msgid "cannot update relocation: %s"
-msgstr ""
-
-#: src/unstrip.c:515
-#, c-format
-msgid "cannot get symbol version: %s"
-msgstr ""
-
-#: src/unstrip.c:527
-#, c-format
-msgid "unexpected section type in [%Zu] with sh_link to symtab"
-msgstr ""
-
-#: src/unstrip.c:775
-#, c-format
-msgid "invalid string offset in symbol [%Zu]"
-msgstr ""
-
-#: src/unstrip.c:917 src/unstrip.c:1258
-#, c-format
-msgid "cannot read section [%Zu] name: %s"
-msgstr ""
-
-#: src/unstrip.c:958 src/unstrip.c:977 src/unstrip.c:1010
-#, c-format
-msgid "cannot read '.gnu.prelink_undo' section: %s"
-msgstr ""
-
-#: src/unstrip.c:998
-#, c-format
-msgid "invalid contents in '%s' section"
-msgstr ""
-
-#: src/unstrip.c:1053 src/unstrip.c:1378
-#, c-format
-msgid "cannot find matching section for [%Zu] '%s'"
-msgstr ""
-
-#: src/unstrip.c:1178 src/unstrip.c:1193 src/unstrip.c:1459
-#, c-format
-msgid "cannot add section name to string table: %s"
-msgstr ""
-
-#: src/unstrip.c:1202
-#, c-format
-msgid "cannot update section header string table data: %s"
-msgstr ""
-
-#: src/unstrip.c:1229 src/unstrip.c:1233
-#, c-format
-msgid "cannot get section header string table section index: %s"
-msgstr ""
-
-#: src/unstrip.c:1237 src/unstrip.c:1241 src/unstrip.c:1474
-#, c-format
-msgid "cannot get section count: %s"
-msgstr ""
-
-#: src/unstrip.c:1244
-#, c-format
-msgid "more sections in stripped file than debug file -- arguments reversed?"
-msgstr ""
-
-#: src/unstrip.c:1303 src/unstrip.c:1393
-#, c-format
-msgid "cannot read section header string table: %s"
-msgstr ""
-
-#: src/unstrip.c:1453
-#, c-format
-msgid "cannot add new section: %s"
-msgstr ""
-
-#: src/unstrip.c:1555
-#, c-format
-msgid "symbol [%Zu] has invalid section index"
-msgstr ""
-
-#: src/unstrip.c:1793
-#, c-format
-msgid "cannot read section data: %s"
-msgstr ""
-
-#: src/unstrip.c:1814
-#, c-format
-msgid "cannot get ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:1846
-#, c-format
-msgid "cannot update program header: %s"
-msgstr ""
-
-#: src/unstrip.c:1851 src/unstrip.c:1934
-#, c-format
-msgid "cannot write output file: %s"
-msgstr ""
-
-#: src/unstrip.c:1903
-#, c-format
-msgid "DWARF data not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-
-#: src/unstrip.c:1906
-#, c-format
-msgid ""
-"DWARF data in '%s' not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-
-#: src/unstrip.c:1925 src/unstrip.c:1976 src/unstrip.c:1988 src/unstrip.c:2074
-#, c-format
-msgid "cannot create ELF descriptor: %s"
-msgstr ""
-
-#: src/unstrip.c:1967
-msgid "WARNING: "
-msgstr ""
-
-#: src/unstrip.c:1969
-msgid ", use --force"
-msgstr ""
-
-#: src/unstrip.c:1992
-msgid "ELF header identification (e_ident) different"
-msgstr ""
-
-#: src/unstrip.c:1995
-msgid "ELF header type (e_type) different"
-msgstr ""
-
-#: src/unstrip.c:1998
-msgid "ELF header machine type (e_machine) different"
-msgstr ""
-
-#: src/unstrip.c:2001
-msgid "stripped program header (e_phnum) smaller than unstripped"
-msgstr ""
-
-#: src/unstrip.c:2031
-#, c-format
-msgid "cannot find stripped file for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2035
-#, c-format
-msgid "cannot open stripped file '%s' for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2050
-#, c-format
-msgid "cannot find debug file for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2054
-#, c-format
-msgid "cannot open debug file '%s' for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2067
-#, c-format
-msgid "module '%s' file '%s' is not stripped"
-msgstr ""
-
-#: src/unstrip.c:2098
-#, c-format
-msgid "cannot cache section addresses for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2231
-#, c-format
-msgid "no matching modules found"
-msgstr ""
-
-#: src/unstrip.c:2240
-#, c-format
-msgid "matched more than one module"
-msgstr ""
-
-#: src/unstrip.c:2287
-msgid ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-msgstr ""
-
-#: src/unstrip.c:2288
-msgid ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-msgstr ""
diff --git a/src/po/en@boldquot.gmo b/src/po/en@boldquot.gmo
deleted file mode 100644
index fbd721f3..00000000
--- a/src/po/en@boldquot.gmo
+++ /dev/null
Binary files differ
diff --git a/src/po/en@boldquot.header b/src/po/en@boldquot.header
deleted file mode 100644
index fedb6a06..00000000
--- a/src/po/en@boldquot.header
+++ /dev/null
@@ -1,25 +0,0 @@
-# All this catalog "translates" are quotation characters.
-# The msgids must be ASCII and therefore cannot contain real quotation
-# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
-# and double quote (0x22). These substitutes look strange; see
-# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
-#
-# This catalog translates grave accent (0x60) and apostrophe (0x27) to
-# left single quotation mark (U+2018) and right single quotation mark (U+2019).
-# It also translates pairs of apostrophe (0x27) to
-# left single quotation mark (U+2018) and right single quotation mark (U+2019)
-# and pairs of quotation mark (0x22) to
-# left double quotation mark (U+201C) and right double quotation mark (U+201D).
-#
-# When output to an UTF-8 terminal, the quotation characters appear perfectly.
-# When output to an ISO-8859-1 terminal, the single quotation marks are
-# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
-# grave/acute accent (by libiconv), and the double quotation marks are
-# transliterated to 0x22.
-# When output to an ASCII terminal, the single quotation marks are
-# transliterated to apostrophes, and the double quotation marks are
-# transliterated to 0x22.
-#
-# This catalog furthermore displays the text between the quotation marks in
-# bold face, assuming the VT100/XTerm escape sequences.
-#
diff --git a/src/po/en@boldquot.po b/src/po/en@boldquot.po
deleted file mode 100644
index 790899b8..00000000
--- a/src/po/en@boldquot.po
+++ /dev/null
@@ -1,6700 +0,0 @@
-# English translations for elfutils package.
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is distributed under the same license as the elfutils package.
-# Automatically generated, 2014.
-#
-# All this catalog "translates" are quotation characters.
-# The msgids must be ASCII and therefore cannot contain real quotation
-# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
-# and double quote (0x22). These substitutes look strange; see
-# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
-#
-# This catalog translates grave accent (0x60) and apostrophe (0x27) to
-# left single quotation mark (U+2018) and right single quotation mark (U+2019).
-# It also translates pairs of apostrophe (0x27) to
-# left single quotation mark (U+2018) and right single quotation mark (U+2019)
-# and pairs of quotation mark (0x22) to
-# left double quotation mark (U+201C) and right double quotation mark (U+201D).
-#
-# When output to an UTF-8 terminal, the quotation characters appear perfectly.
-# When output to an ISO-8859-1 terminal, the single quotation marks are
-# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
-# grave/acute accent (by libiconv), and the double quotation marks are
-# transliterated to 0x22.
-# When output to an ASCII terminal, the single quotation marks are
-# transliterated to apostrophes, and the double quotation marks are
-# transliterated to 0x22.
-#
-# This catalog furthermore displays the text between the quotation marks in
-# bold face, assuming the VT100/XTerm escape sequences.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: elfutils 0.161\n"
-"Report-Msgid-Bugs-To: http://bugzilla.redhat.com/\n"
-"POT-Creation-Date: 2014-12-19 21:45+0100\n"
-"PO-Revision-Date: 2014-12-19 21:45+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
-"Language: en@boldquot\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: lib/xmalloc.c:54 lib/xmalloc.c:68 lib/xmalloc.c:82 src/readelf.c:3182
-#: src/readelf.c:3559 src/readelf.c:8285 src/unstrip.c:2127 src/unstrip.c:2335
-#, c-format
-msgid "memory exhausted"
-msgstr "memory exhausted"
-
-#: libasm/asm_error.c:65 libdw/dwarf_error.c:58 libdwfl/libdwflP.h:53
-#: libelf/elf_error.c:60
-msgid "no error"
-msgstr "no error"
-
-#: libasm/asm_error.c:66 libdw/dwarf_error.c:67 libdwfl/libdwflP.h:55
-#: libelf/elf_error.c:91
-msgid "out of memory"
-msgstr "out of memory"
-
-#: libasm/asm_error.c:67 src/ldgeneric.c:2677
-#, c-format
-msgid "cannot create output file"
-msgstr "cannot create output file"
-
-#: libasm/asm_error.c:68
-msgid "invalid parameter"
-msgstr "invalid parameter"
-
-#: libasm/asm_error.c:69
-msgid "cannot change mode of output file"
-msgstr "cannot change mode of output file"
-
-#: libasm/asm_error.c:70 src/ldgeneric.c:6990
-#, c-format
-msgid "cannot rename output file"
-msgstr "cannot rename output file"
-
-#: libasm/asm_error.c:71
-msgid "duplicate symbol"
-msgstr "duplicate symbol"
-
-#: libasm/asm_error.c:72
-msgid "invalid section type for operation"
-msgstr "invalid section type for operation"
-
-#: libasm/asm_error.c:73
-msgid "error during output of data"
-msgstr "error during output of data"
-
-#: libasm/asm_error.c:74
-msgid "no backend support available"
-msgstr "no backend support available"
-
-#: libasm/asm_error.c:84 libdw/dwarf_error.c:59 libdwfl/libdwflP.h:54
-#: libelf/elf_error.c:63
-msgid "unknown error"
-msgstr "unknown error"
-
-#: libdw/dwarf_error.c:60
-msgid "invalid access"
-msgstr "invalid access"
-
-#: libdw/dwarf_error.c:61
-msgid "no regular file"
-msgstr "no regular file"
-
-#: libdw/dwarf_error.c:62
-msgid "I/O error"
-msgstr "I/O error"
-
-#: libdw/dwarf_error.c:63
-msgid "invalid ELF file"
-msgstr "invalid ELF file"
-
-#: libdw/dwarf_error.c:64
-msgid "no DWARF information"
-msgstr "no DWARF information"
-
-#: libdw/dwarf_error.c:65
-msgid "no ELF file"
-msgstr "no ELF file"
-
-#: libdw/dwarf_error.c:66
-msgid "cannot get ELF header"
-msgstr "cannot get ELF header"
-
-#: libdw/dwarf_error.c:68
-msgid "not implemented"
-msgstr "not implemented"
-
-#: libdw/dwarf_error.c:69 libelf/elf_error.c:107 libelf/elf_error.c:155
-msgid "invalid command"
-msgstr "invalid command"
-
-#: libdw/dwarf_error.c:70
-msgid "invalid version"
-msgstr "invalid version"
-
-#: libdw/dwarf_error.c:71
-msgid "invalid file"
-msgstr "invalid file"
-
-#: libdw/dwarf_error.c:72
-msgid "no entries found"
-msgstr "no entries found"
-
-#: libdw/dwarf_error.c:73
-msgid "invalid DWARF"
-msgstr "invalid DWARF"
-
-#: libdw/dwarf_error.c:74
-msgid "no string data"
-msgstr "no string data"
-
-#: libdw/dwarf_error.c:75
-msgid "no address value"
-msgstr "no address value"
-
-#: libdw/dwarf_error.c:76
-msgid "no constant value"
-msgstr "no constant value"
-
-#: libdw/dwarf_error.c:77
-msgid "no reference value"
-msgstr "no reference value"
-
-#: libdw/dwarf_error.c:78
-msgid "invalid reference value"
-msgstr "invalid reference value"
-
-#: libdw/dwarf_error.c:79
-msgid ".debug_line section missing"
-msgstr ".debug_line section missing"
-
-#: libdw/dwarf_error.c:80
-msgid "invalid .debug_line section"
-msgstr "invalid .debug_line section"
-
-#: libdw/dwarf_error.c:81
-msgid "debug information too big"
-msgstr "debug information too big"
-
-#: libdw/dwarf_error.c:82
-msgid "invalid DWARF version"
-msgstr "invalid DWARF version"
-
-#: libdw/dwarf_error.c:83
-msgid "invalid directory index"
-msgstr "invalid directory index"
-
-#: libdw/dwarf_error.c:84 libdwfl/libdwflP.h:74
-msgid "address out of range"
-msgstr "address out of range"
-
-#: libdw/dwarf_error.c:85
-msgid "no location list value"
-msgstr "no location list value"
-
-#: libdw/dwarf_error.c:86
-msgid "no block data"
-msgstr "no block data"
-
-#: libdw/dwarf_error.c:87
-msgid "invalid line index"
-msgstr "invalid line index"
-
-#: libdw/dwarf_error.c:88
-msgid "invalid address range index"
-msgstr "invalid address range index"
-
-#: libdw/dwarf_error.c:89 libdwfl/libdwflP.h:75
-msgid "no matching address range"
-msgstr "no matching address range"
-
-#: libdw/dwarf_error.c:90
-msgid "no flag value"
-msgstr "no flag value"
-
-#: libdw/dwarf_error.c:91 libelf/elf_error.c:232
-msgid "invalid offset"
-msgstr "invalid offset"
-
-#: libdw/dwarf_error.c:92
-msgid ".debug_ranges section missing"
-msgstr ".debug_ranges section missing"
-
-#: libdw/dwarf_error.c:93
-msgid "invalid CFI section"
-msgstr "invalid CFI section"
-
-#: libdw/dwarf_error.c:94
-msgid "no alternative debug link found"
-msgstr "no alternative debug link found"
-
-#: libdw/dwarf_error.c:95
-msgid "invalid opcode"
-msgstr "invalid opcode"
-
-#: libdwfl/argp-std.c:46 src/unstrip.c:2277
-msgid "Input selection options:"
-msgstr "Input selection options:"
-
-#: libdwfl/argp-std.c:47
-msgid "Find addresses in FILE"
-msgstr "Find addresses in FILE"
-
-#: libdwfl/argp-std.c:49
-msgid "Find addresses from signatures found in COREFILE"
-msgstr "Find addresses from signatures found in COREFILE"
-
-#: libdwfl/argp-std.c:51
-msgid "Find addresses in files mapped into process PID"
-msgstr "Find addresses in files mapped into process PID"
-
-#: libdwfl/argp-std.c:53
-msgid ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-msgstr ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-
-#: libdwfl/argp-std.c:55
-msgid "Find addresses in the running kernel"
-msgstr "Find addresses in the running kernel"
-
-#: libdwfl/argp-std.c:57
-msgid "Kernel with all modules"
-msgstr "Kernel with all modules"
-
-#: libdwfl/argp-std.c:59
-msgid "Search path for separate debuginfo files"
-msgstr "Search path for separate debuginfo files"
-
-#: libdwfl/argp-std.c:157
-msgid "only one of -e, -p, -k, -K, or --core allowed"
-msgstr "only one of -e, -p, -k, -K, or --core allowed"
-
-#: libdwfl/argp-std.c:230
-msgid "cannot load kernel symbols"
-msgstr "cannot load kernel symbols"
-
-#: libdwfl/argp-std.c:234
-msgid "cannot find kernel modules"
-msgstr "cannot find kernel modules"
-
-#: libdwfl/argp-std.c:251
-msgid "cannot find kernel or modules"
-msgstr "cannot find kernel or modules"
-
-#: libdwfl/argp-std.c:290
-#, c-format
-msgid "cannot read ELF core file: %s"
-msgstr "cannot read ELF core file: %s"
-
-#: libdwfl/argp-std.c:311
-msgid "No modules recognized in core file"
-msgstr "No modules recognized in core file"
-
-#: libdwfl/libdwflP.h:56
-msgid "See errno"
-msgstr "See errno"
-
-#: libdwfl/libdwflP.h:57
-msgid "See elf_errno"
-msgstr "See elf_errno"
-
-#: libdwfl/libdwflP.h:58
-msgid "See dwarf_errno"
-msgstr "See dwarf_errno"
-
-#: libdwfl/libdwflP.h:59
-msgid "See ebl_errno (XXX missing)"
-msgstr "See ebl_errno (XXX missing)"
-
-#: libdwfl/libdwflP.h:60
-msgid "gzip decompression failed"
-msgstr "gzip decompression failed"
-
-#: libdwfl/libdwflP.h:61
-msgid "bzip2 decompression failed"
-msgstr "bzip2 decompression failed"
-
-#: libdwfl/libdwflP.h:62
-msgid "LZMA decompression failed"
-msgstr "LZMA decompression failed"
-
-#: libdwfl/libdwflP.h:63
-msgid "no support library found for machine"
-msgstr "no support library found for machine"
-
-#: libdwfl/libdwflP.h:64
-msgid "Callbacks missing for ET_REL file"
-msgstr "Callbacks missing for ET_REL file"
-
-#: libdwfl/libdwflP.h:65
-msgid "Unsupported relocation type"
-msgstr "Unsupported relocation type"
-
-#: libdwfl/libdwflP.h:66
-msgid "r_offset is bogus"
-msgstr "r_offset is bogus"
-
-#: libdwfl/libdwflP.h:67 libelf/elf_error.c:111 libelf/elf_error.c:171
-msgid "offset out of range"
-msgstr "offset out of range"
-
-#: libdwfl/libdwflP.h:68
-msgid "relocation refers to undefined symbol"
-msgstr "relocation refers to undefined symbol"
-
-#: libdwfl/libdwflP.h:69
-msgid "Callback returned failure"
-msgstr "Callback returned failure"
-
-#: libdwfl/libdwflP.h:70
-msgid "No DWARF information found"
-msgstr "No DWARF information found"
-
-#: libdwfl/libdwflP.h:71
-msgid "No symbol table found"
-msgstr "No symbol table found"
-
-#: libdwfl/libdwflP.h:72
-msgid "No ELF program headers"
-msgstr "No ELF program headers"
-
-#: libdwfl/libdwflP.h:73
-msgid "address range overlaps an existing module"
-msgstr "address range overlaps an existing module"
-
-#: libdwfl/libdwflP.h:76
-msgid "image truncated"
-msgstr "image truncated"
-
-#: libdwfl/libdwflP.h:77
-msgid "ELF file opened"
-msgstr "ELF file opened"
-
-#: libdwfl/libdwflP.h:78
-msgid "not a valid ELF file"
-msgstr "not a valid ELF file"
-
-#: libdwfl/libdwflP.h:79
-msgid "cannot handle DWARF type description"
-msgstr "cannot handle DWARF type description"
-
-#: libdwfl/libdwflP.h:80
-msgid "ELF file does not match build ID"
-msgstr "ELF file does not match build ID"
-
-#: libdwfl/libdwflP.h:81
-msgid "corrupt .gnu.prelink_undo section data"
-msgstr "corrupt .gnu.prelink_undo section data"
-
-#: libdwfl/libdwflP.h:82
-msgid "Internal error due to ebl"
-msgstr "Internal error due to ebl"
-
-#: libdwfl/libdwflP.h:83
-msgid "Missing data in core file"
-msgstr "Missing data in core file"
-
-#: libdwfl/libdwflP.h:84
-msgid "Invalid register"
-msgstr "Invalid register"
-
-#: libdwfl/libdwflP.h:85
-msgid "Error reading process memory"
-msgstr "Error reading process memory"
-
-#: libdwfl/libdwflP.h:86
-msgid "Couldn't find architecture of any ELF"
-msgstr "Couldn't find architecture of any ELF"
-
-#: libdwfl/libdwflP.h:87
-msgid "Error parsing /proc filesystem"
-msgstr "Error parsing /proc filesystem"
-
-#: libdwfl/libdwflP.h:88
-msgid "Invalid DWARF"
-msgstr "Invalid DWARF"
-
-#: libdwfl/libdwflP.h:89
-msgid "Unsupported DWARF"
-msgstr "Unsupported DWARF"
-
-#: libdwfl/libdwflP.h:90
-msgid "Unable to find more threads"
-msgstr "Unable to find more threads"
-
-#: libdwfl/libdwflP.h:91
-msgid "Dwfl already has attached state"
-msgstr "Dwfl already has attached state"
-
-#: libdwfl/libdwflP.h:92
-msgid "Dwfl has no attached state"
-msgstr "Dwfl has no attached state"
-
-#: libdwfl/libdwflP.h:93
-msgid "Unwinding not supported for this architecture"
-msgstr "Unwinding not supported for this architecture"
-
-#: libdwfl/libdwflP.h:94
-msgid "Invalid argument"
-msgstr "Invalid argument"
-
-#: libdwfl/libdwflP.h:95
-msgid "Not an ET_CORE ELF file"
-msgstr "Not an ET_CORE ELF file"
-
-#: libebl/eblbackendname.c:42
-msgid "No backend"
-msgstr "No backend"
-
-#: libebl/eblcorenotetypename.c:102 libebl/eblobjecttypename.c:57
-#: libebl/eblobjnotetypename.c:73 libebl/eblosabiname.c:77
-#: libebl/eblsectionname.c:89 libebl/eblsectiontypename.c:119
-#: libebl/eblsegmenttypename.c:83
-msgid "<unknown>"
-msgstr "<unknown>"
-
-#: libebl/ebldynamictagname.c:105
-#, c-format
-msgid "<unknown>: %#<PRIx64>"
-msgstr "<unknown>: %#<PRIx64>"
-
-#: libebl/eblobjnote.c:55
-#, c-format
-msgid "unknown SDT version %u\n"
-msgstr "unknown SDT version %u\n"
-
-#: libebl/eblobjnote.c:73
-#, c-format
-msgid "invalid SDT probe descriptor\n"
-msgstr "invalid SDT probe descriptor\n"
-
-#: libebl/eblobjnote.c:123
-#, c-format
-msgid " PC: "
-msgstr " PC: "
-
-#: libebl/eblobjnote.c:125
-#, c-format
-msgid " Base: "
-msgstr " Base: "
-
-#: libebl/eblobjnote.c:127
-#, c-format
-msgid " Semaphore: "
-msgstr " Semaphore: "
-
-#: libebl/eblobjnote.c:129
-#, c-format
-msgid " Provider: "
-msgstr " Provider: "
-
-#: libebl/eblobjnote.c:131
-#, c-format
-msgid " Name: "
-msgstr " Name: "
-
-#: libebl/eblobjnote.c:133
-#, c-format
-msgid " Args: "
-msgstr " Args: "
-
-#: libebl/eblobjnote.c:143
-#, c-format
-msgid " Build ID: "
-msgstr " Build ID: "
-
-#: libebl/eblobjnote.c:154
-#, c-format
-msgid " Linker version: %.*s\n"
-msgstr " Linker version: %.*s\n"
-
-#: libebl/eblobjnote.c:203
-#, c-format
-msgid " OS: %s, ABI: "
-msgstr " OS: %s, ABI: "
-
-#: libebl/eblosabiname.c:74
-msgid "Stand alone"
-msgstr "Stand alone"
-
-#: libebl/eblsymbolbindingname.c:71 libebl/eblsymboltypename.c:77
-#, c-format
-msgid "<unknown>: %d"
-msgstr "<unknown>: %d"
-
-#: libelf/elf_error.c:67
-msgid "unknown version"
-msgstr "unknown version"
-
-#: libelf/elf_error.c:71
-msgid "unknown type"
-msgstr "unknown type"
-
-#: libelf/elf_error.c:75
-msgid "invalid `Elf' handle"
-msgstr "invalid ‘Elf’ handle"
-
-#: libelf/elf_error.c:79
-msgid "invalid size of source operand"
-msgstr "invalid size of source operand"
-
-#: libelf/elf_error.c:83
-msgid "invalid size of destination operand"
-msgstr "invalid size of destination operand"
-
-#: libelf/elf_error.c:87 src/readelf.c:5367
-#, c-format
-msgid "invalid encoding"
-msgstr "invalid encoding"
-
-#: libelf/elf_error.c:95
-msgid "invalid file descriptor"
-msgstr "invalid file descriptor"
-
-#: libelf/elf_error.c:99
-msgid "invalid operation"
-msgstr "invalid operation"
-
-#: libelf/elf_error.c:103
-msgid "ELF version not set"
-msgstr "ELF version not set"
-
-#: libelf/elf_error.c:115
-msgid "invalid fmag field in archive header"
-msgstr "invalid fmag field in archive header"
-
-#: libelf/elf_error.c:119
-msgid "invalid archive file"
-msgstr "invalid archive file"
-
-#: libelf/elf_error.c:123
-msgid "descriptor is not for an archive"
-msgstr "descriptor is not for an archive"
-
-#: libelf/elf_error.c:127
-msgid "no index available"
-msgstr "no index available"
-
-#: libelf/elf_error.c:131
-msgid "cannot read data from file"
-msgstr "cannot read data from file"
-
-#: libelf/elf_error.c:135
-msgid "cannot write data to file"
-msgstr "cannot write data to file"
-
-#: libelf/elf_error.c:139
-msgid "invalid binary class"
-msgstr "invalid binary class"
-
-#: libelf/elf_error.c:143
-msgid "invalid section index"
-msgstr "invalid section index"
-
-#: libelf/elf_error.c:147
-msgid "invalid operand"
-msgstr "invalid operand"
-
-#: libelf/elf_error.c:151
-msgid "invalid section"
-msgstr "invalid section"
-
-#: libelf/elf_error.c:159
-msgid "executable header not created first"
-msgstr "executable header not created first"
-
-#: libelf/elf_error.c:163
-msgid "file descriptor disabled"
-msgstr "file descriptor disabled"
-
-#: libelf/elf_error.c:167
-msgid "archive/member file descriptor mismatch"
-msgstr "archive/member file descriptor mismatch"
-
-#: libelf/elf_error.c:175
-msgid "cannot manipulate null section"
-msgstr "cannot manipulate null section"
-
-#: libelf/elf_error.c:179
-msgid "data/scn mismatch"
-msgstr "data/scn mismatch"
-
-#: libelf/elf_error.c:183
-msgid "invalid section header"
-msgstr "invalid section header"
-
-#: libelf/elf_error.c:187 src/readelf.c:7235 src/readelf.c:7683
-#: src/readelf.c:7784 src/readelf.c:7954
-#, c-format
-msgid "invalid data"
-msgstr "invalid data"
-
-#: libelf/elf_error.c:191
-msgid "unknown data encoding"
-msgstr "unknown data encoding"
-
-#: libelf/elf_error.c:195
-msgid "section `sh_size' too small for data"
-msgstr "section ‘sh_size’ too small for data"
-
-#: libelf/elf_error.c:199
-msgid "invalid section alignment"
-msgstr "invalid section alignment"
-
-#: libelf/elf_error.c:203
-msgid "invalid section entry size"
-msgstr "invalid section entry size"
-
-#: libelf/elf_error.c:207
-msgid "update() for write on read-only file"
-msgstr "update() for write on read-only file"
-
-#: libelf/elf_error.c:211
-msgid "no such file"
-msgstr "no such file"
-
-#: libelf/elf_error.c:215
-msgid "only relocatable files can contain section groups"
-msgstr "only relocatable files can contain section groups"
-
-#: libelf/elf_error.c:220
-msgid ""
-"program header only allowed in executables, shared objects, and core files"
-msgstr ""
-"program header only allowed in executables, shared objects, and core files"
-
-#: libelf/elf_error.c:227
-msgid "file has no program header"
-msgstr "file has no program header"
-
-#: src/addr2line.c:58
-msgid "Output selection options:"
-msgstr "Output selection options:"
-
-#: src/addr2line.c:59
-msgid "Show only base names of source files"
-msgstr "Show only base names of source files"
-
-#: src/addr2line.c:61
-msgid "Show absolute file names using compilation directory"
-msgstr "Show absolute file names using compilation directory"
-
-#: src/addr2line.c:62
-msgid "Also show function names"
-msgstr "Also show function names"
-
-#: src/addr2line.c:63
-msgid "Also show symbol or section names"
-msgstr "Also show symbol or section names"
-
-#: src/addr2line.c:64
-msgid "Also show symbol and the section names"
-msgstr "Also show symbol and the section names"
-
-#: src/addr2line.c:65
-msgid "Also show line table flags"
-msgstr "Also show line table flags"
-
-#: src/addr2line.c:67
-msgid "Treat addresses as offsets relative to NAME section."
-msgstr "Treat addresses as offsets relative to NAME section."
-
-#: src/addr2line.c:69
-msgid ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-msgstr ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-
-#: src/addr2line.c:72 src/elfcmp.c:72 src/findtextrel.c:67 src/nm.c:100
-#: src/strings.c:75
-msgid "Miscellaneous:"
-msgstr "Miscellaneous:"
-
-#: src/addr2line.c:81
-msgid ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-msgstr ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-
-#: src/addr2line.c:85
-msgid "[ADDR...]"
-msgstr "[ADDR...]"
-
-#: src/addr2line.c:196 src/ar.c:289 src/elfcmp.c:663 src/elflint.c:235
-#: src/findtextrel.c:162 src/ld.c:949 src/nm.c:265 src/objdump.c:181
-#: src/ranlib.c:128 src/readelf.c:500 src/size.c:211 src/strings.c:226
-#: src/strip.c:213 src/unstrip.c:233
-#, c-format
-msgid ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-msgstr ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-
-#: src/addr2line.c:201 src/ar.c:294 src/elfcmp.c:668 src/elflint.c:240
-#: src/findtextrel.c:167 src/ld.c:954 src/nm.c:270 src/objdump.c:186
-#: src/ranlib.c:133 src/readelf.c:505 src/size.c:216 src/strings.c:231
-#: src/strip.c:218 src/unstrip.c:238
-#, c-format
-msgid "Written by %s.\n"
-msgstr "Written by %s.\n"
-
-#: src/addr2line.c:474
-#, c-format
-msgid "Section syntax requires exactly one module"
-msgstr "Section syntax requires exactly one module"
-
-#: src/addr2line.c:497
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside section '%s'"
-msgstr "offset %#<PRIxMAX> lies outside section ‘%s’"
-
-#: src/addr2line.c:563
-#, c-format
-msgid "cannot find symbol '%s'"
-msgstr "cannot find symbol ‘%s’"
-
-#: src/addr2line.c:568
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside contents of '%s'"
-msgstr "offset %#<PRIxMAX> lies outside contents of ‘%s’"
-
-#: src/ar.c:69
-msgid "Commands:"
-msgstr "Commands:"
-
-#: src/ar.c:70
-msgid "Delete files from archive."
-msgstr "Delete files from archive."
-
-#: src/ar.c:71
-msgid "Move files in archive."
-msgstr "Move files in archive."
-
-#: src/ar.c:72
-msgid "Print files in archive."
-msgstr "Print files in archive."
-
-#: src/ar.c:73
-msgid "Quick append files to archive."
-msgstr "Quick append files to archive."
-
-#: src/ar.c:75
-msgid "Replace existing or insert new file into archive."
-msgstr "Replace existing or insert new file into archive."
-
-#: src/ar.c:76
-msgid "Display content of archive."
-msgstr "Display content of archive."
-
-#: src/ar.c:77
-msgid "Extract files from archive."
-msgstr "Extract files from archive."
-
-#: src/ar.c:79
-msgid "Command Modifiers:"
-msgstr "Command Modifiers:"
-
-#: src/ar.c:80
-msgid "Preserve original dates."
-msgstr "Preserve original dates."
-
-#: src/ar.c:81
-msgid "Use instance [COUNT] of name."
-msgstr "Use instance [COUNT] of name."
-
-#: src/ar.c:83
-msgid "Do not replace existing files with extracted files."
-msgstr "Do not replace existing files with extracted files."
-
-#: src/ar.c:84
-msgid "Allow filename to be truncated if necessary."
-msgstr "Allow filename to be truncated if necessary."
-
-#: src/ar.c:86
-msgid "Provide verbose output."
-msgstr "Provide verbose output."
-
-#: src/ar.c:87
-msgid "Force regeneration of symbol table."
-msgstr "Force regeneration of symbol table."
-
-#: src/ar.c:88
-msgid "Insert file after [MEMBER]."
-msgstr "Insert file after [MEMBER]."
-
-#: src/ar.c:89
-msgid "Insert file before [MEMBER]."
-msgstr "Insert file before [MEMBER]."
-
-#: src/ar.c:90
-msgid "Same as -b."
-msgstr "Same as -b."
-
-#: src/ar.c:91
-msgid "Suppress message when library has to be created."
-msgstr "Suppress message when library has to be created."
-
-#: src/ar.c:93
-msgid "Use full path for file matching."
-msgstr "Use full path for file matching."
-
-#: src/ar.c:94
-msgid "Update only older files in archive."
-msgstr "Update only older files in archive."
-
-#: src/ar.c:100
-msgid "Create, modify, and extract from archives."
-msgstr "Create, modify, and extract from archives."
-
-#: src/ar.c:103
-msgid "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-msgstr "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-
-#: src/ar.c:185
-#, c-format
-msgid "'a', 'b', and 'i' are only allowed with the 'm' and 'r' options"
-msgstr ""
-"'a', 'b', and ‘i’ are only allowed with the ‘m’ and ‘r’ "
-"options"
-
-#: src/ar.c:190
-#, c-format
-msgid "MEMBER parameter required for 'a', 'b', and 'i' modifiers"
-msgstr "MEMBER parameter required for 'a', 'b', and ‘i’ modifiers"
-
-#: src/ar.c:206
-#, c-format
-msgid "'N' is only meaningful with the 'x' and 'd' options"
-msgstr "‘N’ is only meaningful with the ‘x’ and ‘d’ options"
-
-#: src/ar.c:211
-#, c-format
-msgid "COUNT parameter required"
-msgstr "COUNT parameter required"
-
-#: src/ar.c:223
-#, c-format
-msgid "invalid COUNT parameter %s"
-msgstr "invalid COUNT parameter %s"
-
-#: src/ar.c:230
-#, c-format
-msgid "'%c' is only meaningful with the 'x' option"
-msgstr "‘%c’ is only meaningful with the ‘x’ option"
-
-#: src/ar.c:236
-#, c-format
-msgid "archive name required"
-msgstr "archive name required"
-
-#: src/ar.c:249
-#, c-format
-msgid "command option required"
-msgstr "command option required"
-
-#: src/ar.c:314
-#, c-format
-msgid "More than one operation specified"
-msgstr "More than one operation specified"
-
-#: src/ar.c:408
-#, c-format
-msgid "cannot open archive '%s'"
-msgstr "cannot open archive ‘%s’"
-
-#: src/ar.c:418
-#, c-format
-msgid "cannot open archive '%s': %s"
-msgstr "cannot open archive '%s': %s"
-
-#: src/ar.c:422
-#, c-format
-msgid "%s: not an archive file"
-msgstr "%s: not an archive file"
-
-#: src/ar.c:426
-#, c-format
-msgid "cannot stat archive '%s'"
-msgstr "cannot stat archive ‘%s’"
-
-#: src/ar.c:438
-#, c-format
-msgid "no entry %s in archive\n"
-msgstr "no entry %s in archive\n"
-
-#: src/ar.c:491 src/ar.c:933 src/ar.c:1133
-#, c-format
-msgid "cannot create hash table"
-msgstr "cannot create hash table"
-
-#: src/ar.c:498 src/ar.c:940 src/ar.c:1142
-#, c-format
-msgid "cannot insert into hash table"
-msgstr "cannot insert into hash table"
-
-#: src/ar.c:506 src/ranlib.c:168
-#, c-format
-msgid "cannot stat '%s'"
-msgstr "cannot stat ‘%s’"
-
-#: src/ar.c:602
-#, c-format
-msgid "cannot read content of %s: %s"
-msgstr "cannot read content of %s: %s"
-
-#: src/ar.c:645
-#, c-format
-msgid "cannot open %.*s"
-msgstr "cannot open %.*s"
-
-#: src/ar.c:667
-#, c-format
-msgid "failed to write %s"
-msgstr "failed to write %s"
-
-#: src/ar.c:679
-#, c-format
-msgid "cannot change mode of %s"
-msgstr "cannot change mode of %s"
-
-#: src/ar.c:695
-#, c-format
-msgid "cannot change modification time of %s"
-msgstr "cannot change modification time of %s"
-
-#: src/ar.c:741
-#, c-format
-msgid "cannot rename temporary file to %.*s"
-msgstr "cannot rename temporary file to %.*s"
-
-#: src/ar.c:777 src/ar.c:1025 src/ar.c:1424 src/ranlib.c:242
-#, c-format
-msgid "cannot create new file"
-msgstr "cannot create new file"
-
-#: src/ar.c:1224
-#, c-format
-msgid "position member %s not found"
-msgstr "position member %s not found"
-
-#: src/ar.c:1234
-#, c-format
-msgid "%s: no entry %s in archive!\n"
-msgstr "%s: no entry %s in archive!\n"
-
-#: src/ar.c:1263 src/ldgeneric.c:509 src/objdump.c:257
-#, c-format
-msgid "cannot open %s"
-msgstr "cannot open %s"
-
-#: src/ar.c:1268
-#, c-format
-msgid "cannot stat %s"
-msgstr "cannot stat %s"
-
-#: src/ar.c:1274
-#, c-format
-msgid "%s is no regular file"
-msgstr "%s is no regular file"
-
-#: src/ar.c:1287
-#, c-format
-msgid "cannot get ELF descriptor for %s: %s\n"
-msgstr "cannot get ELF descriptor for %s: %s\n"
-
-#: src/ar.c:1307
-#, c-format
-msgid "cannot read %s: %s"
-msgstr "cannot read %s: %s"
-
-#: src/arlib.c:209
-#, c-format
-msgid "the archive '%s' is too large"
-msgstr "the archive ‘%s’ is too large"
-
-#: src/arlib.c:222
-#, c-format
-msgid "cannot read ELF header of %s(%s): %s"
-msgstr "cannot read ELF header of %s(%s): %s"
-
-#: src/elfcmp.c:62
-msgid "Control options:"
-msgstr "Control options:"
-
-#: src/elfcmp.c:64
-msgid "Output all differences, not just the first"
-msgstr "Output all differences, not just the first"
-
-#: src/elfcmp.c:65
-msgid ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-msgstr ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-
-#: src/elfcmp.c:67
-msgid "Ignore permutation of buckets in SHT_HASH section"
-msgstr "Ignore permutation of buckets in SHT_HASH section"
-
-#: src/elfcmp.c:69
-msgid "Ignore differences in build ID"
-msgstr "Ignore differences in build ID"
-
-#: src/elfcmp.c:70
-msgid "Output nothing; yield exit status only"
-msgstr "Output nothing; yield exit status only"
-
-#: src/elfcmp.c:77
-msgid "Compare relevant parts of two ELF files for equality."
-msgstr "Compare relevant parts of two ELF files for equality."
-
-#: src/elfcmp.c:81
-msgid "FILE1 FILE2"
-msgstr "FILE1 FILE2"
-
-#: src/elfcmp.c:143
-msgid "Invalid number of parameters.\n"
-msgstr "Invalid number of parameters.\n"
-
-#: src/elfcmp.c:174 src/elfcmp.c:179
-#, c-format
-msgid "cannot get ELF header of '%s': %s"
-msgstr "cannot get ELF header of '%s': %s"
-
-#: src/elfcmp.c:205
-#, c-format
-msgid "%s %s diff: ELF header"
-msgstr "%s %s diff: ELF header"
-
-#: src/elfcmp.c:212 src/elfcmp.c:215
-#, c-format
-msgid "cannot get section count of '%s': %s"
-msgstr "cannot get section count of '%s': %s"
-
-#: src/elfcmp.c:220
-#, c-format
-msgid "%s %s diff: section count"
-msgstr "%s %s diff: section count"
-
-#: src/elfcmp.c:227 src/elfcmp.c:230
-#, c-format
-msgid "cannot get program header count of '%s': %s"
-msgstr "cannot get program header count of '%s': %s"
-
-#: src/elfcmp.c:235
-#, c-format
-msgid "%s %s diff: program header count"
-msgstr "%s %s diff: program header count"
-
-#: src/elfcmp.c:292
-#, c-format
-msgid "%s %s differ: section [%zu], [%zu] name"
-msgstr "%s %s differ: section [%zu], [%zu] name"
-
-#: src/elfcmp.c:315
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' header"
-msgstr "%s %s differ: section [%zu] ‘%s’ header"
-
-#: src/elfcmp.c:323 src/elfcmp.c:329
-#, c-format
-msgid "cannot get content of section %zu in '%s': %s"
-msgstr "cannot get content of section %zu in '%s': %s"
-
-#: src/elfcmp.c:345 src/elfcmp.c:351
-#, c-format
-msgid "cannot get symbol in '%s': %s"
-msgstr "cannot get symbol in '%s': %s"
-
-#: src/elfcmp.c:373
-#, c-format
-msgid "%s %s differ: symbol table [%zu]"
-msgstr "%s %s differ: symbol table [%zu]"
-
-#: src/elfcmp.c:376
-#, c-format
-msgid "%s %s differ: symbol table [%zu,%zu]"
-msgstr "%s %s differ: symbol table [%zu,%zu]"
-
-#: src/elfcmp.c:422 src/elfcmp.c:491
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' number of notes"
-msgstr "%s %s differ: section [%zu] ‘%s’ number of notes"
-
-#: src/elfcmp.c:430
-#, c-format
-msgid "cannot read note section [%zu] '%s' in '%s': %s"
-msgstr "cannot read note section [%zu] ‘%s’ in '%s': %s"
-
-#: src/elfcmp.c:440
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note name"
-msgstr "%s %s differ: section [%zu] ‘%s’ note name"
-
-#: src/elfcmp.c:448
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' type"
-msgstr "%s %s differ: section [%zu] ‘%s’ note ‘%s’ type"
-
-#: src/elfcmp.c:463
-#, c-format
-msgid "%s %s differ: build ID length"
-msgstr "%s %s differ: build ID length"
-
-#: src/elfcmp.c:471
-#, c-format
-msgid "%s %s differ: build ID content"
-msgstr "%s %s differ: build ID content"
-
-#: src/elfcmp.c:480
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' content"
-msgstr "%s %s differ: section [%zu] ‘%s’ note ‘%s’ content"
-
-#: src/elfcmp.c:520
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' content"
-msgstr "%s %s differ: section [%zu] ‘%s’ content"
-
-#: src/elfcmp.c:524
-#, c-format
-msgid "%s %s differ: section [%zu,%zu] '%s' content"
-msgstr "%s %s differ: section [%zu,%zu] ‘%s’ content"
-
-#: src/elfcmp.c:539
-#, c-format
-msgid "%s %s differ: unequal amount of important sections"
-msgstr "%s %s differ: unequal amount of important sections"
-
-#: src/elfcmp.c:572 src/elfcmp.c:577
-#, c-format
-msgid "cannot load data of '%s': %s"
-msgstr "cannot load data of '%s': %s"
-
-#: src/elfcmp.c:596 src/elfcmp.c:602
-#, c-format
-msgid "cannot get program header entry %d of '%s': %s"
-msgstr "cannot get program header entry %d of '%s': %s"
-
-#: src/elfcmp.c:608
-#, c-format
-msgid "%s %s differ: program header %d"
-msgstr "%s %s differ: program header %d"
-
-#: src/elfcmp.c:632
-#, c-format
-msgid "%s %s differ: gap"
-msgstr "%s %s differ: gap"
-
-#: src/elfcmp.c:695
-#, c-format
-msgid "Invalid value '%s' for --gaps parameter."
-msgstr "Invalid value ‘%s’ for --gaps parameter."
-
-#: src/elfcmp.c:723 src/findtextrel.c:221 src/ldgeneric.c:1757
-#: src/ldgeneric.c:4247 src/nm.c:381 src/ranlib.c:161 src/size.c:293
-#: src/strings.c:182 src/strip.c:451 src/strip.c:488 src/unstrip.c:1923
-#: src/unstrip.c:1952
-#, c-format
-msgid "cannot open '%s'"
-msgstr "cannot open ‘%s’"
-
-#: src/elfcmp.c:727 src/findtextrel.c:228 src/ranlib.c:178
-#, c-format
-msgid "cannot create ELF descriptor for '%s': %s"
-msgstr "cannot create ELF descriptor for '%s': %s"
-
-#: src/elfcmp.c:732
-#, c-format
-msgid "cannot create EBL descriptor for '%s'"
-msgstr "cannot create EBL descriptor for ‘%s’"
-
-#: src/elfcmp.c:750
-#, c-format
-msgid "cannot get section header of section %zu: %s"
-msgstr "cannot get section header of section %zu: %s"
-
-#: src/elfcmp.c:760
-#, c-format
-msgid "cannot get content of section %zu: %s"
-msgstr "cannot get content of section %zu: %s"
-
-#: src/elfcmp.c:770 src/elfcmp.c:784
-#, c-format
-msgid "cannot get relocation: %s"
-msgstr "cannot get relocation: %s"
-
-#: src/elflint.c:64
-msgid "Be extremely strict, flag level 2 features."
-msgstr "Be extremely strict, flag level 2 features."
-
-#: src/elflint.c:65
-msgid "Do not print anything if successful"
-msgstr "Do not print anything if successful"
-
-#: src/elflint.c:66
-msgid "Binary is a separate debuginfo file"
-msgstr "Binary is a separate debuginfo file"
-
-#: src/elflint.c:68
-msgid ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-msgstr ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-
-#: src/elflint.c:74
-msgid "Pedantic checking of ELF files compliance with gABI/psABI spec."
-msgstr "Pedantic checking of ELF files compliance with gABI/psABI spec."
-
-#: src/elflint.c:78 src/readelf.c:123
-msgid "FILE..."
-msgstr "FILE..."
-
-#: src/elflint.c:155 src/readelf.c:292
-#, c-format
-msgid "cannot open input file"
-msgstr "cannot open input file"
-
-#: src/elflint.c:162
-#, c-format
-msgid "cannot generate Elf descriptor: %s\n"
-msgstr "cannot generate Elf descriptor: %s\n"
-
-#: src/elflint.c:181
-#, c-format
-msgid "error while closing Elf descriptor: %s\n"
-msgstr "error while closing Elf descriptor: %s\n"
-
-#: src/elflint.c:185
-msgid "No errors"
-msgstr "No errors"
-
-#: src/elflint.c:219 src/readelf.c:468
-msgid "Missing file name.\n"
-msgstr "Missing file name.\n"
-
-#: src/elflint.c:298
-#, c-format
-msgid " error while freeing sub-ELF descriptor: %s\n"
-msgstr " error while freeing sub-ELF descriptor: %s\n"
-
-#: src/elflint.c:306
-#, c-format
-msgid "Not an ELF file - it has the wrong magic bytes at the start\n"
-msgstr "Not an ELF file - it has the wrong magic bytes at the start\n"
-
-#: src/elflint.c:371
-#, c-format
-msgid "e_ident[%d] == %d is no known class\n"
-msgstr "e_ident[%d] == %d is no known class\n"
-
-#: src/elflint.c:376
-#, c-format
-msgid "e_ident[%d] == %d is no known data encoding\n"
-msgstr "e_ident[%d] == %d is no known data encoding\n"
-
-#: src/elflint.c:380
-#, c-format
-msgid "unknown ELF header version number e_ident[%d] == %d\n"
-msgstr "unknown ELF header version number e_ident[%d] == %d\n"
-
-#: src/elflint.c:386
-#, c-format
-msgid "unsupported OS ABI e_ident[%d] == '%s'\n"
-msgstr "unsupported OS ABI e_ident[%d] == ‘%s’\n"
-
-#: src/elflint.c:392
-#, c-format
-msgid "unsupport ABI version e_ident[%d] == %d\n"
-msgstr "unsupport ABI version e_ident[%d] == %d\n"
-
-#: src/elflint.c:397
-#, c-format
-msgid "e_ident[%zu] is not zero\n"
-msgstr "e_ident[%zu] is not zero\n"
-
-#: src/elflint.c:402
-#, c-format
-msgid "unknown object file type %d\n"
-msgstr "unknown object file type %d\n"
-
-#: src/elflint.c:409
-#, c-format
-msgid "unknown machine type %d\n"
-msgstr "unknown machine type %d\n"
-
-#: src/elflint.c:413
-#, c-format
-msgid "unknown object file version\n"
-msgstr "unknown object file version\n"
-
-#: src/elflint.c:419
-#, c-format
-msgid "invalid program header offset\n"
-msgstr "invalid program header offset\n"
-
-#: src/elflint.c:421
-#, c-format
-msgid "executables and DSOs cannot have zero program header offset\n"
-msgstr "executables and DSOs cannot have zero program header offset\n"
-
-#: src/elflint.c:425
-#, c-format
-msgid "invalid number of program header entries\n"
-msgstr "invalid number of program header entries\n"
-
-#: src/elflint.c:433
-#, c-format
-msgid "invalid section header table offset\n"
-msgstr "invalid section header table offset\n"
-
-#: src/elflint.c:436
-#, c-format
-msgid "section header table must be present\n"
-msgstr "section header table must be present\n"
-
-#: src/elflint.c:450
-#, c-format
-msgid "invalid number of section header table entries\n"
-msgstr "invalid number of section header table entries\n"
-
-#: src/elflint.c:467
-#, c-format
-msgid "invalid section header index\n"
-msgstr "invalid section header index\n"
-
-#: src/elflint.c:481
-#, c-format
-msgid "invalid number of program header table entries\n"
-msgstr "invalid number of program header table entries\n"
-
-#: src/elflint.c:490
-#, c-format
-msgid "invalid machine flags: %s\n"
-msgstr "invalid machine flags: %s\n"
-
-#: src/elflint.c:497 src/elflint.c:514
-#, c-format
-msgid "invalid ELF header size: %hd\n"
-msgstr "invalid ELF header size: %hd\n"
-
-#: src/elflint.c:500 src/elflint.c:517
-#, c-format
-msgid "invalid program header size: %hd\n"
-msgstr "invalid program header size: %hd\n"
-
-#: src/elflint.c:503 src/elflint.c:520
-#, c-format
-msgid "invalid program header position or size\n"
-msgstr "invalid program header position or size\n"
-
-#: src/elflint.c:506 src/elflint.c:523
-#, c-format
-msgid "invalid section header size: %hd\n"
-msgstr "invalid section header size: %hd\n"
-
-#: src/elflint.c:509 src/elflint.c:526
-#, c-format
-msgid "invalid section header position or size\n"
-msgstr "invalid section header position or size\n"
-
-#: src/elflint.c:570
-#, c-format
-msgid ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-msgstr ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-
-#: src/elflint.c:574
-#, c-format
-msgid ""
-"section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"
-msgstr ""
-"section [%2d] '%s': section group [%2zu] ‘%s’ does not precede group "
-"member\n"
-
-#: src/elflint.c:590 src/elflint.c:1457 src/elflint.c:1508 src/elflint.c:1614
-#: src/elflint.c:1939 src/elflint.c:2228 src/elflint.c:2742 src/elflint.c:2904
-#: src/elflint.c:3034 src/elflint.c:3206 src/elflint.c:4108
-#, c-format
-msgid "section [%2d] '%s': cannot get section data\n"
-msgstr "section [%2d] '%s': cannot get section data\n"
-
-#: src/elflint.c:603 src/elflint.c:1621
-#, c-format
-msgid ""
-"section [%2d] '%s': referenced as string table for section [%2d] '%s' but "
-"type is not SHT_STRTAB\n"
-msgstr ""
-"section [%2d] '%s': referenced as string table for section [%2d] ‘%s’ "
-"but type is not SHT_STRTAB\n"
-
-#: src/elflint.c:626
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-msgstr ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-
-#: src/elflint.c:638
-#, c-format
-msgid "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-msgstr "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-
-#: src/elflint.c:647
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %d: %s\n"
-msgstr "section [%2d] '%s': cannot get symbol %d: %s\n"
-
-#: src/elflint.c:652 src/elflint.c:655 src/elflint.c:658 src/elflint.c:661
-#: src/elflint.c:664 src/elflint.c:667
-#, c-format
-msgid "section [%2d] '%s': '%s' in zeroth entry not zero\n"
-msgstr "section [%2d] '%s': ‘%s’ in zeroth entry not zero\n"
-
-#: src/elflint.c:670
-#, c-format
-msgid "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-msgstr "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-
-#: src/elflint.c:680
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %zu: %s\n"
-msgstr "section [%2d] '%s': cannot get symbol %zu: %s\n"
-
-#: src/elflint.c:689
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid name value\n"
-msgstr "section [%2d] '%s': symbol %zu: invalid name value\n"
-
-#: src/elflint.c:704
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-
-#: src/elflint.c:710
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-
-#: src/elflint.c:722
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid section index\n"
-msgstr "section [%2d] '%s': symbol %zu: invalid section index\n"
-
-#: src/elflint.c:730
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown type\n"
-msgstr "section [%2d] '%s': symbol %zu: unknown type\n"
-
-#: src/elflint.c:736
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-msgstr "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-
-#: src/elflint.c:741
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-msgstr "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-
-#: src/elflint.c:749
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-
-#: src/elflint.c:753
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-msgstr "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-
-#: src/elflint.c:757
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-
-#: src/elflint.c:804
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-msgstr "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-
-#: src/elflint.c:810 src/elflint.c:835 src/elflint.c:878
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] ‘%s’\n"
-
-#: src/elflint.c:819
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have "
-"SHF_TLS flag set\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] ‘%s’ does not "
-"have SHF_TLS flag set\n"
-
-#: src/elflint.c:829 src/elflint.c:871
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] ‘%s’\n"
-
-#: src/elflint.c:856
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-
-#: src/elflint.c:864
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"'%s'\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"‘%s’\n"
-
-#: src/elflint.c:891
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-
-#: src/elflint.c:898
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-
-#: src/elflint.c:905
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-msgstr "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-
-#: src/elflint.c:955
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-
-#: src/elflint.c:962
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"'%s'\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] ‘"
-"%s’\n"
-
-#: src/elflint.c:978
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-
-#: src/elflint.c:985
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-
-#: src/elflint.c:993
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-
-#: src/elflint.c:1009
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-msgstr ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-
-#: src/elflint.c:1016
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-msgstr ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-
-#: src/elflint.c:1029
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-
-#: src/elflint.c:1033
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-msgstr "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-
-#: src/elflint.c:1082
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-msgstr "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-
-#: src/elflint.c:1093 src/elflint.c:1145
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-msgstr "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-
-#: src/elflint.c:1118 src/elflint.c:1170
-#, c-format
-msgid ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-msgstr ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-
-#: src/elflint.c:1124 src/elflint.c:1176
-#, c-format
-msgid ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-msgstr ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-
-#: src/elflint.c:1136
-#, c-format
-msgid "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-msgstr "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-
-#: src/elflint.c:1218
-#, c-format
-msgid "section [%2d] '%s': invalid destination section index\n"
-msgstr "section [%2d] '%s': invalid destination section index\n"
-
-#: src/elflint.c:1230
-#, c-format
-msgid "section [%2d] '%s': invalid destination section type\n"
-msgstr "section [%2d] '%s': invalid destination section type\n"
-
-#: src/elflint.c:1238
-#, c-format
-msgid "section [%2d] '%s': sh_info should be zero\n"
-msgstr "section [%2d] '%s': sh_info should be zero\n"
-
-#: src/elflint.c:1245
-#, c-format
-msgid "section [%2d] '%s': no relocations for merge-able sections possible\n"
-msgstr "section [%2d] '%s': no relocations for merge-able sections possible\n"
-
-#: src/elflint.c:1253
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-msgstr "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-
-#: src/elflint.c:1313
-#, c-format
-msgid "text relocation flag set but there is no read-only segment\n"
-msgstr "text relocation flag set but there is no read-only segment\n"
-
-#: src/elflint.c:1340
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid type\n"
-msgstr "section [%2d] '%s': relocation %zu: invalid type\n"
-
-#: src/elflint.c:1348
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-msgstr ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-
-#: src/elflint.c:1356
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-msgstr "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-
-#: src/elflint.c:1374
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can "
-"be used with %s\n"
-msgstr ""
-"section [%2d] '%s': relocation %zu: only symbol "
-"‘_GLOBAL_OFFSET_TABLE_’ can be used with %s\n"
-
-#: src/elflint.c:1391
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-msgstr "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-
-#: src/elflint.c:1406
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-msgstr ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-
-#: src/elflint.c:1427
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-msgstr ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-
-#: src/elflint.c:1442
-#, c-format
-msgid "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-msgstr "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-
-#: src/elflint.c:1482 src/elflint.c:1533
-#, c-format
-msgid "section [%2d] '%s': cannot get relocation %zu: %s\n"
-msgstr "section [%2d] '%s': cannot get relocation %zu: %s\n"
-
-#: src/elflint.c:1609
-#, c-format
-msgid "more than one dynamic section present\n"
-msgstr "more than one dynamic section present\n"
-
-#: src/elflint.c:1628
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-msgstr "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-
-#: src/elflint.c:1633 src/elflint.c:1918
-#, c-format
-msgid "section [%2d] '%s': sh_info not zero\n"
-msgstr "section [%2d] '%s': sh_info not zero\n"
-
-#: src/elflint.c:1643
-#, c-format
-msgid "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-msgstr "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-
-#: src/elflint.c:1651
-#, c-format
-msgid "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-msgstr "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-
-#: src/elflint.c:1658
-#, c-format
-msgid "section [%2d] '%s': entry %zu: unknown tag\n"
-msgstr "section [%2d] '%s': entry %zu: unknown tag\n"
-
-#: src/elflint.c:1669
-#, c-format
-msgid "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-msgstr "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-
-#: src/elflint.c:1679
-#, c-format
-msgid "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-msgstr "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-
-#: src/elflint.c:1697
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-msgstr ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-
-#: src/elflint.c:1710
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] '%s' referenced by sh_link\n"
-msgstr ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] ‘%s’ referenced by sh_link\n"
-
-#: src/elflint.c:1753
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-msgstr ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-
-#: src/elflint.c:1768
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] '%s'\n"
-msgstr ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] ‘%s’\n"
-
-#: src/elflint.c:1788 src/elflint.c:1816
-#, c-format
-msgid "section [%2d] '%s': contains %s entry but not %s\n"
-msgstr "section [%2d] '%s': contains %s entry but not %s\n"
-
-#: src/elflint.c:1800
-#, c-format
-msgid "section [%2d] '%s': mandatory tag %s not present\n"
-msgstr "section [%2d] '%s': mandatory tag %s not present\n"
-
-#: src/elflint.c:1809
-#, c-format
-msgid "section [%2d] '%s': no hash section present\n"
-msgstr "section [%2d] '%s': no hash section present\n"
-
-#: src/elflint.c:1824 src/elflint.c:1831
-#, c-format
-msgid "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-msgstr "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-
-#: src/elflint.c:1841 src/elflint.c:1845
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-msgstr "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-
-#: src/elflint.c:1851
-#, c-format
-msgid "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-msgstr "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-
-#: src/elflint.c:1862 src/elflint.c:1866 src/elflint.c:1870 src/elflint.c:1874
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in prelinked executable\n"
-msgstr "section [%2d] '%s': %s tag missing in prelinked executable\n"
-
-#: src/elflint.c:1886
-#, c-format
-msgid ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-msgstr ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-
-#: src/elflint.c:1896
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-msgstr ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-
-#: src/elflint.c:1901
-#, c-format
-msgid "cannot get data for symbol section\n"
-msgstr "cannot get data for symbol section\n"
-
-#: src/elflint.c:1904
-#, c-format
-msgid "section [%2d] '%s': entry size does not match Elf32_Word\n"
-msgstr "section [%2d] '%s': entry size does not match Elf32_Word\n"
-
-#: src/elflint.c:1913
-#, c-format
-msgid "section [%2d] '%s': extended index table too small for symbol table\n"
-msgstr "section [%2d] '%s': extended index table too small for symbol table\n"
-
-#: src/elflint.c:1928
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index in section [%2zu] '%s' refers to "
-"same symbol table\n"
-msgstr ""
-"section [%2d] '%s': extended section index in section [%2zu] ‘%s’ "
-"refers to same symbol table\n"
-
-#: src/elflint.c:1945
-#, c-format
-msgid "symbol 0 should have zero extended section index\n"
-msgstr "symbol 0 should have zero extended section index\n"
-
-#: src/elflint.c:1957
-#, c-format
-msgid "cannot get data for symbol %zu\n"
-msgstr "cannot get data for symbol %zu\n"
-
-#: src/elflint.c:1962
-#, c-format
-msgid "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-msgstr "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-
-#: src/elflint.c:1978 src/elflint.c:2029
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-msgstr ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-
-#: src/elflint.c:1990 src/elflint.c:2041
-#, c-format
-msgid "section [%2d] '%s': chain array too large\n"
-msgstr "section [%2d] '%s': chain array too large\n"
-
-#: src/elflint.c:2004 src/elflint.c:2055
-#, c-format
-msgid "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-msgstr "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-
-#: src/elflint.c:2014
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-msgstr "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-
-#: src/elflint.c:2065
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-msgstr "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-
-#: src/elflint.c:2081
-#, c-format
-msgid "section [%2d] '%s': bitmask size not power of 2: %u\n"
-msgstr "section [%2d] '%s': bitmask size not power of 2: %u\n"
-
-#: src/elflint.c:2092
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-msgstr ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-
-#: src/elflint.c:2100
-#, c-format
-msgid "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-msgstr "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-
-#: src/elflint.c:2132
-#, c-format
-msgid ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-msgstr ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-
-#: src/elflint.c:2153
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-msgstr ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-
-#: src/elflint.c:2164
-#, c-format
-msgid ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-msgstr ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-
-#: src/elflint.c:2195
-#, c-format
-msgid "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-msgstr "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-
-#: src/elflint.c:2200
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-msgstr ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-
-#: src/elflint.c:2206
-#, c-format
-msgid "section [%2d] '%s': bitmask does not match names in the hash table\n"
-msgstr "section [%2d] '%s': bitmask does not match names in the hash table\n"
-
-#: src/elflint.c:2219
-#, c-format
-msgid "section [%2d] '%s': relocatable files cannot have hash tables\n"
-msgstr "section [%2d] '%s': relocatable files cannot have hash tables\n"
-
-#: src/elflint.c:2237
-#, c-format
-msgid "section [%2d] '%s': hash table not for dynamic symbol table\n"
-msgstr "section [%2d] '%s': hash table not for dynamic symbol table\n"
-
-#: src/elflint.c:2245
-#, c-format
-msgid "section [%2d] '%s': hash table entry size incorrect\n"
-msgstr "section [%2d] '%s': hash table entry size incorrect\n"
-
-#: src/elflint.c:2250
-#, c-format
-msgid "section [%2d] '%s': not marked to be allocated\n"
-msgstr "section [%2d] '%s': not marked to be allocated\n"
-
-#: src/elflint.c:2255
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-msgstr ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-
-#: src/elflint.c:2303
-#, c-format
-msgid "sh_link in hash sections [%2zu] '%s' and [%2zu] '%s' not identical\n"
-msgstr ""
-"sh_link in hash sections [%2zu] ‘%s’ and [%2zu] ‘%s’ not "
-"identical\n"
-
-#: src/elflint.c:2381 src/elflint.c:2385
-#, c-format
-msgid "section [%2zu] '%s': reference to symbol index 0\n"
-msgstr "section [%2zu] '%s': reference to symbol index 0\n"
-
-#: src/elflint.c:2392
-#, c-format
-msgid ""
-"symbol %d referenced in new hash table in [%2zu] '%s' but not in old hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"symbol %d referenced in new hash table in [%2zu] ‘%s’ but not in old "
-"hash table in [%2zu] ‘%s’\n"
-
-#: src/elflint.c:2404
-#, c-format
-msgid ""
-"symbol %d referenced in old hash table in [%2zu] '%s' but not in new hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"symbol %d referenced in old hash table in [%2zu] ‘%s’ but not in new "
-"hash table in [%2zu] ‘%s’\n"
-
-#: src/elflint.c:2420
-#, c-format
-msgid "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-msgstr "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-
-#: src/elflint.c:2440
-#, c-format
-msgid ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-msgstr ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-
-#: src/elflint.c:2451
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol table: %s\n"
-msgstr "section [%2d] '%s': cannot get symbol table: %s\n"
-
-#: src/elflint.c:2456
-#, c-format
-msgid "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-msgstr "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-
-#: src/elflint.c:2462
-#, c-format
-msgid "section [%2d] '%s': invalid symbol index in sh_info\n"
-msgstr "section [%2d] '%s': invalid symbol index in sh_info\n"
-
-#: src/elflint.c:2467
-#, c-format
-msgid "section [%2d] '%s': sh_flags not zero\n"
-msgstr "section [%2d] '%s': sh_flags not zero\n"
-
-#: src/elflint.c:2474
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol for signature\n"
-msgstr "section [%2d] '%s': cannot get symbol for signature\n"
-
-#: src/elflint.c:2479
-#, c-format
-msgid "section [%2d] '%s': signature symbol cannot be empty string\n"
-msgstr "section [%2d] '%s': signature symbol cannot be empty string\n"
-
-#: src/elflint.c:2485
-#, c-format
-msgid "section [%2d] '%s': sh_flags not set correctly\n"
-msgstr "section [%2d] '%s': sh_flags not set correctly\n"
-
-#: src/elflint.c:2491
-#, c-format
-msgid "section [%2d] '%s': cannot get data: %s\n"
-msgstr "section [%2d] '%s': cannot get data: %s\n"
-
-#: src/elflint.c:2500
-#, c-format
-msgid "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-msgstr "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-
-#: src/elflint.c:2505
-#, c-format
-msgid "section [%2d] '%s': section group without flags word\n"
-msgstr "section [%2d] '%s': section group without flags word\n"
-
-#: src/elflint.c:2511
-#, c-format
-msgid "section [%2d] '%s': section group without member\n"
-msgstr "section [%2d] '%s': section group without member\n"
-
-#: src/elflint.c:2515
-#, c-format
-msgid "section [%2d] '%s': section group with only one member\n"
-msgstr "section [%2d] '%s': section group with only one member\n"
-
-#: src/elflint.c:2526
-#, c-format
-msgid "section [%2d] '%s': unknown section group flags\n"
-msgstr "section [%2d] '%s': unknown section group flags\n"
-
-#: src/elflint.c:2538
-#, c-format
-msgid "section [%2d] '%s': section index %Zu out of range\n"
-msgstr "section [%2d] '%s': section index %Zu out of range\n"
-
-#: src/elflint.c:2547
-#, c-format
-msgid "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-msgstr "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-
-#: src/elflint.c:2554
-#, c-format
-msgid "section [%2d] '%s': section group contains another group [%2d] '%s'\n"
-msgstr ""
-"section [%2d] '%s': section group contains another group [%2d] ‘%s’\n"
-
-#: src/elflint.c:2560
-#, c-format
-msgid ""
-"section [%2d] '%s': element %Zu references section [%2d] '%s' without "
-"SHF_GROUP flag set\n"
-msgstr ""
-"section [%2d] '%s': element %Zu references section [%2d] ‘%s’ without "
-"SHF_GROUP flag set\n"
-
-#: src/elflint.c:2567
-#, c-format
-msgid "section [%2d] '%s' is contained in more than one section group\n"
-msgstr "section [%2d] ‘%s’ is contained in more than one section group\n"
-
-#: src/elflint.c:2756
-#, c-format
-msgid ""
-"section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no "
-"dynamic symbol table\n"
-msgstr ""
-"section [%2d] ‘%s’ refers in sh_link to section [%2d] ‘%s’ which "
-"is no dynamic symbol table\n"
-
-#: src/elflint.c:2768
-#, c-format
-msgid ""
-"section [%2d] '%s' has different number of entries than symbol table [%2d] "
-"'%s'\n"
-msgstr ""
-"section [%2d] ‘%s’ has different number of entries than symbol table "
-"[%2d] ‘%s’\n"
-
-#: src/elflint.c:2784
-#, c-format
-msgid "section [%2d] '%s': symbol %d: cannot read version data\n"
-msgstr "section [%2d] '%s': symbol %d: cannot read version data\n"
-
-#: src/elflint.c:2800
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-msgstr "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-
-#: src/elflint.c:2808
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with version\n"
-msgstr "section [%2d] '%s': symbol %d: local symbol with version\n"
-
-#: src/elflint.c:2822
-#, c-format
-msgid "section [%2d] '%s': symbol %d: invalid version index %d\n"
-msgstr "section [%2d] '%s': symbol %d: invalid version index %d\n"
-
-#: src/elflint.c:2827
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-msgstr ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-
-#: src/elflint.c:2837
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-msgstr ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-
-#: src/elflint.c:2889
-#, c-format
-msgid "more than one version reference section present\n"
-msgstr "more than one version reference section present\n"
-
-#: src/elflint.c:2897 src/elflint.c:3026
-#, c-format
-msgid "section [%2d] '%s': sh_link does not link to string table\n"
-msgstr "section [%2d] '%s': sh_link does not link to string table\n"
-
-#: src/elflint.c:2920 src/elflint.c:3078
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong version %d\n"
-msgstr "section [%2d] '%s': entry %d has wrong version %d\n"
-
-#: src/elflint.c:2926 src/elflint.c:3084
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-msgstr "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-
-#: src/elflint.c:2934
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid file reference\n"
-msgstr "section [%2d] '%s': entry %d has invalid file reference\n"
-
-#: src/elflint.c:2942
-#, c-format
-msgid "section [%2d] '%s': entry %d references unknown dependency\n"
-msgstr "section [%2d] '%s': entry %d references unknown dependency\n"
-
-#: src/elflint.c:2954
-#, c-format
-msgid "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-msgstr "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-
-#: src/elflint.c:2961
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-msgstr ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-
-#: src/elflint.c:2968
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-msgstr ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-
-#: src/elflint.c:2978
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name '%s'\n"
-msgstr ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name ‘%s’\n"
-
-#: src/elflint.c:2989
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-msgstr ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-
-#: src/elflint.c:3005 src/elflint.c:3163
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-msgstr "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-
-#: src/elflint.c:3018
-#, c-format
-msgid "more than one version definition section present\n"
-msgstr "more than one version definition section present\n"
-
-#: src/elflint.c:3063
-#, c-format
-msgid "section [%2d] '%s': more than one BASE definition\n"
-msgstr "section [%2d] '%s': more than one BASE definition\n"
-
-#: src/elflint.c:3067
-#, c-format
-msgid "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-msgstr "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-
-#: src/elflint.c:3073
-#, c-format
-msgid "section [%2d] '%s': entry %d has unknown flag\n"
-msgstr "section [%2d] '%s': entry %d has unknown flag\n"
-
-#: src/elflint.c:3097
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid name reference\n"
-msgstr "section [%2d] '%s': entry %d has invalid name reference\n"
-
-#: src/elflint.c:3104
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-msgstr "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-
-#: src/elflint.c:3113
-#, c-format
-msgid "section [%2d] '%s': entry %d has duplicate version name '%s'\n"
-msgstr "section [%2d] '%s': entry %d has duplicate version name ‘%s’\n"
-
-#: src/elflint.c:3132
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-msgstr ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-
-#: src/elflint.c:3147
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-msgstr "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-
-#: src/elflint.c:3169
-#, c-format
-msgid "section [%2d] '%s': no BASE definition\n"
-msgstr "section [%2d] '%s': no BASE definition\n"
-
-#: src/elflint.c:3185
-#, c-format
-msgid "section [%2d] '%s': unknown parent version '%s'\n"
-msgstr "section [%2d] '%s': unknown parent version ‘%s’\n"
-
-#: src/elflint.c:3198
-#, c-format
-msgid "section [%2d] '%s': empty object attributes section\n"
-msgstr "section [%2d] '%s': empty object attributes section\n"
-
-#: src/elflint.c:3219
-#, c-format
-msgid "section [%2d] '%s': unrecognized attribute format\n"
-msgstr "section [%2d] '%s': unrecognized attribute format\n"
-
-#: src/elflint.c:3235
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-
-#: src/elflint.c:3244
-#, c-format
-msgid "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-msgstr "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-
-#: src/elflint.c:3256
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-msgstr "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-
-#: src/elflint.c:3273
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-
-#: src/elflint.c:3282
-#, c-format
-msgid "section [%2d] '%s': offset %zu: truncated attribute section\n"
-msgstr "section [%2d] '%s': offset %zu: truncated attribute section\n"
-
-#: src/elflint.c:3291
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-
-#: src/elflint.c:3304
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-
-#: src/elflint.c:3315
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-
-#: src/elflint.c:3333
-#, c-format
-msgid "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-msgstr "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-
-#: src/elflint.c:3344
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-msgstr "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-
-#: src/elflint.c:3357
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-msgstr "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-
-#: src/elflint.c:3361
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-
-#: src/elflint.c:3371
-#, c-format
-msgid "section [%2d] '%s': offset %zu: vendor '%s' unknown\n"
-msgstr "section [%2d] '%s': offset %zu: vendor ‘%s’ unknown\n"
-
-#: src/elflint.c:3377
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-
-#: src/elflint.c:3466
-#, c-format
-msgid "cannot get section header of zeroth section\n"
-msgstr "cannot get section header of zeroth section\n"
-
-#: src/elflint.c:3470
-#, c-format
-msgid "zeroth section has nonzero name\n"
-msgstr "zeroth section has nonzero name\n"
-
-#: src/elflint.c:3472
-#, c-format
-msgid "zeroth section has nonzero type\n"
-msgstr "zeroth section has nonzero type\n"
-
-#: src/elflint.c:3474
-#, c-format
-msgid "zeroth section has nonzero flags\n"
-msgstr "zeroth section has nonzero flags\n"
-
-#: src/elflint.c:3476
-#, c-format
-msgid "zeroth section has nonzero address\n"
-msgstr "zeroth section has nonzero address\n"
-
-#: src/elflint.c:3478
-#, c-format
-msgid "zeroth section has nonzero offset\n"
-msgstr "zeroth section has nonzero offset\n"
-
-#: src/elflint.c:3480
-#, c-format
-msgid "zeroth section has nonzero align value\n"
-msgstr "zeroth section has nonzero align value\n"
-
-#: src/elflint.c:3482
-#, c-format
-msgid "zeroth section has nonzero entry size value\n"
-msgstr "zeroth section has nonzero entry size value\n"
-
-#: src/elflint.c:3485
-#, c-format
-msgid ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-msgstr ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-
-#: src/elflint.c:3489
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-msgstr ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-
-#: src/elflint.c:3493
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-msgstr ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-
-#: src/elflint.c:3510
-#, c-format
-msgid "cannot get section header for section [%2zu] '%s': %s\n"
-msgstr "cannot get section header for section [%2zu] '%s': %s\n"
-
-#: src/elflint.c:3519
-#, c-format
-msgid "section [%2zu]: invalid name\n"
-msgstr "section [%2zu]: invalid name\n"
-
-#: src/elflint.c:3546
-#, c-format
-msgid "section [%2d] '%s' has wrong type: expected %s, is %s\n"
-msgstr "section [%2d] ‘%s’ has wrong type: expected %s, is %s\n"
-
-#: src/elflint.c:3562
-#, c-format
-msgid "section [%2zu] '%s' has wrong flags: expected %s, is %s\n"
-msgstr "section [%2zu] ‘%s’ has wrong flags: expected %s, is %s\n"
-
-#: src/elflint.c:3579
-#, c-format
-msgid ""
-"section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"
-msgstr ""
-"section [%2zu] ‘%s’ has wrong flags: expected %s and possibly %s, is "
-"%s\n"
-
-#: src/elflint.c:3597
-#, c-format
-msgid "section [%2zu] '%s' present in object file\n"
-msgstr "section [%2zu] ‘%s’ present in object file\n"
-
-#: src/elflint.c:3603 src/elflint.c:3635
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"
-msgstr ""
-"section [%2zu] ‘%s’ has SHF_ALLOC flag set but there is no loadable "
-"segment\n"
-
-#: src/elflint.c:3608 src/elflint.c:3640
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-msgstr ""
-"section [%2zu] ‘%s’ has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-
-#: src/elflint.c:3616
-#, c-format
-msgid ""
-"section [%2zu] '%s' is extension section index table in non-object file\n"
-msgstr ""
-"section [%2zu] ‘%s’ is extension section index table in non-object "
-"file\n"
-
-#: src/elflint.c:3659
-#, c-format
-msgid "section [%2zu] '%s': size not multiple of entry size\n"
-msgstr "section [%2zu] '%s': size not multiple of entry size\n"
-
-#: src/elflint.c:3664
-#, c-format
-msgid "cannot get section header\n"
-msgstr "cannot get section header\n"
-
-#: src/elflint.c:3674
-#, c-format
-msgid "section [%2zu] '%s' has unsupported type %d\n"
-msgstr "section [%2zu] ‘%s’ has unsupported type %d\n"
-
-#: src/elflint.c:3688
-#, c-format
-msgid ""
-"section [%2zu] '%s' contains invalid processor-specific flag(s) %#<PRIx64>\n"
-msgstr ""
-"section [%2zu] ‘%s’ contains invalid processor-specific flag(s) "
-"%#<PRIx64>\n"
-
-#: src/elflint.c:3695
-#, c-format
-msgid "section [%2zu] '%s' contains unknown flag(s) %#<PRIx64>\n"
-msgstr "section [%2zu] ‘%s’ contains unknown flag(s) %#<PRIx64>\n"
-
-#: src/elflint.c:3703
-#, c-format
-msgid "section [%2zu] '%s': thread-local data sections address not zero\n"
-msgstr "section [%2zu] '%s': thread-local data sections address not zero\n"
-
-#: src/elflint.c:3711
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in link value\n"
-msgstr "section [%2zu] '%s': invalid section reference in link value\n"
-
-#: src/elflint.c:3716
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in info value\n"
-msgstr "section [%2zu] '%s': invalid section reference in info value\n"
-
-#: src/elflint.c:3723
-#, c-format
-msgid "section [%2zu] '%s': strings flag set without merge flag\n"
-msgstr "section [%2zu] '%s': strings flag set without merge flag\n"
-
-#: src/elflint.c:3728
-#, c-format
-msgid "section [%2zu] '%s': merge flag set but entry size is zero\n"
-msgstr "section [%2zu] '%s': merge flag set but entry size is zero\n"
-
-#: src/elflint.c:3746
-#, c-format
-msgid "section [%2zu] '%s' has unexpected type %d for an executable section\n"
-msgstr ""
-"section [%2zu] ‘%s’ has unexpected type %d for an executable section\n"
-
-#: src/elflint.c:3755
-#, c-format
-msgid "section [%2zu] '%s' is both executable and writable\n"
-msgstr "section [%2zu] ‘%s’ is both executable and writable\n"
-
-#: src/elflint.c:3784
-#, c-format
-msgid ""
-"section [%2zu] '%s' not fully contained in segment of program header entry "
-"%d\n"
-msgstr ""
-"section [%2zu] ‘%s’ not fully contained in segment of program header "
-"entry %d\n"
-
-#: src/elflint.c:3792
-#, c-format
-msgid ""
-"section [%2zu] '%s' has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-msgstr ""
-"section [%2zu] ‘%s’ has type NOBITS but is read from the file in "
-"segment of program header entry %d\n"
-
-#: src/elflint.c:3801
-#, c-format
-msgid ""
-"section [%2zu] '%s' has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-msgstr ""
-"section [%2zu] ‘%s’ has not type NOBITS but is not read from the file "
-"in segment of program header entry %d\n"
-
-#: src/elflint.c:3812
-#, c-format
-msgid "section [%2zu] '%s' is executable in nonexecutable segment %d\n"
-msgstr "section [%2zu] ‘%s’ is executable in nonexecutable segment %d\n"
-
-#: src/elflint.c:3822
-#, c-format
-msgid "section [%2zu] '%s' is writable in unwritable segment %d\n"
-msgstr "section [%2zu] ‘%s’ is writable in unwritable segment %d\n"
-
-#: src/elflint.c:3832
-#, c-format
-msgid ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-msgstr ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-
-#: src/elflint.c:3838
-#, c-format
-msgid ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-msgstr ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-
-#: src/elflint.c:3846
-#, c-format
-msgid ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-msgstr ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-
-#: src/elflint.c:3897
-#, c-format
-msgid "more than one version symbol table present\n"
-msgstr "more than one version symbol table present\n"
-
-#: src/elflint.c:3920
-#, c-format
-msgid "INTERP program header entry but no .interp section\n"
-msgstr "INTERP program header entry but no .interp section\n"
-
-#: src/elflint.c:3931
-#, c-format
-msgid ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-msgstr ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-
-#: src/elflint.c:3937
-#, c-format
-msgid "loadable segment [%u] is writable but contains no writable sections\n"
-msgstr "loadable segment [%u] is writable but contains no writable sections\n"
-
-#: src/elflint.c:3948
-#, c-format
-msgid ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-msgstr ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-
-#: src/elflint.c:3961
-#, c-format
-msgid "duplicate version index %d\n"
-msgstr "duplicate version index %d\n"
-
-#: src/elflint.c:3975
-#, c-format
-msgid ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-msgstr ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-
-#: src/elflint.c:4024
-#, c-format
-msgid "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-msgstr "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-
-#: src/elflint.c:4028
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-
-#: src/elflint.c:4051
-#, c-format
-msgid "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-
-#: src/elflint.c:4055
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-
-#: src/elflint.c:4072
-#, c-format
-msgid "phdr[%d]: no note entries defined for the type of file\n"
-msgstr "phdr[%d]: no note entries defined for the type of file\n"
-
-#: src/elflint.c:4091
-#, c-format
-msgid "phdr[%d]: cannot get content of note section: %s\n"
-msgstr "phdr[%d]: cannot get content of note section: %s\n"
-
-#: src/elflint.c:4094
-#, c-format
-msgid "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-msgstr "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-
-#: src/elflint.c:4115
-#, c-format
-msgid "section [%2d] '%s': no note entries defined for the type of file\n"
-msgstr "section [%2d] '%s': no note entries defined for the type of file\n"
-
-#: src/elflint.c:4122
-#, c-format
-msgid "section [%2d] '%s': cannot get content of note section\n"
-msgstr "section [%2d] '%s': cannot get content of note section\n"
-
-#: src/elflint.c:4125
-#, c-format
-msgid "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-msgstr "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-
-#: src/elflint.c:4143
-#, c-format
-msgid ""
-"only executables, shared objects, and core files can have program headers\n"
-msgstr ""
-"only executables, shared objects, and core files can have program headers\n"
-
-#: src/elflint.c:4158
-#, c-format
-msgid "cannot get program header entry %d: %s\n"
-msgstr "cannot get program header entry %d: %s\n"
-
-#: src/elflint.c:4167
-#, c-format
-msgid "program header entry %d: unknown program header entry type %#<PRIx64>\n"
-msgstr ""
-"program header entry %d: unknown program header entry type %#<PRIx64>\n"
-
-#: src/elflint.c:4178
-#, c-format
-msgid "more than one INTERP entry in program header\n"
-msgstr "more than one INTERP entry in program header\n"
-
-#: src/elflint.c:4186
-#, c-format
-msgid "more than one TLS entry in program header\n"
-msgstr "more than one TLS entry in program header\n"
-
-#: src/elflint.c:4193
-#, c-format
-msgid "static executable cannot have dynamic sections\n"
-msgstr "static executable cannot have dynamic sections\n"
-
-#: src/elflint.c:4207
-#, c-format
-msgid "dynamic section reference in program header has wrong offset\n"
-msgstr "dynamic section reference in program header has wrong offset\n"
-
-#: src/elflint.c:4210
-#, c-format
-msgid "dynamic section size mismatch in program and section header\n"
-msgstr "dynamic section size mismatch in program and section header\n"
-
-#: src/elflint.c:4220
-#, c-format
-msgid "more than one GNU_RELRO entry in program header\n"
-msgstr "more than one GNU_RELRO entry in program header\n"
-
-#: src/elflint.c:4241
-#, c-format
-msgid "loadable segment GNU_RELRO applies to is not writable\n"
-msgstr "loadable segment GNU_RELRO applies to is not writable\n"
-
-#: src/elflint.c:4244
-#, c-format
-msgid "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-msgstr "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-
-#: src/elflint.c:4252 src/elflint.c:4275
-#, c-format
-msgid "%s segment not contained in a loaded segment\n"
-msgstr "%s segment not contained in a loaded segment\n"
-
-#: src/elflint.c:4281
-#, c-format
-msgid "program header offset in ELF header and PHDR entry do not match"
-msgstr "program header offset in ELF header and PHDR entry do not match"
-
-#: src/elflint.c:4305
-#, c-format
-msgid "call frame search table reference in program header has wrong offset\n"
-msgstr "call frame search table reference in program header has wrong offset\n"
-
-#: src/elflint.c:4308
-#, c-format
-msgid "call frame search table size mismatch in program and section header\n"
-msgstr "call frame search table size mismatch in program and section header\n"
-
-#: src/elflint.c:4321
-#, c-format
-msgid "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-msgstr "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-
-#: src/elflint.c:4329
-#, c-format
-msgid "call frame search table must be allocated\n"
-msgstr "call frame search table must be allocated\n"
-
-#: src/elflint.c:4332
-#, c-format
-msgid "section [%2zu] '%s' must be allocated\n"
-msgstr "section [%2zu] ‘%s’ must be allocated\n"
-
-#: src/elflint.c:4336
-#, c-format
-msgid "call frame search table must not be writable\n"
-msgstr "call frame search table must not be writable\n"
-
-#: src/elflint.c:4339
-#, c-format
-msgid "section [%2zu] '%s' must not be writable\n"
-msgstr "section [%2zu] ‘%s’ must not be writable\n"
-
-#: src/elflint.c:4344
-#, c-format
-msgid "call frame search table must not be executable\n"
-msgstr "call frame search table must not be executable\n"
-
-#: src/elflint.c:4347
-#, c-format
-msgid "section [%2zu] '%s' must not be executable\n"
-msgstr "section [%2zu] ‘%s’ must not be executable\n"
-
-#: src/elflint.c:4358
-#, c-format
-msgid "program header entry %d: file size greater than memory size\n"
-msgstr "program header entry %d: file size greater than memory size\n"
-
-#: src/elflint.c:4365
-#, c-format
-msgid "program header entry %d: alignment not a power of 2\n"
-msgstr "program header entry %d: alignment not a power of 2\n"
-
-#: src/elflint.c:4368
-#, c-format
-msgid ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-msgstr ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-
-#: src/elflint.c:4381
-#, c-format
-msgid ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-msgstr ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-
-#: src/elflint.c:4415
-#, c-format
-msgid "cannot read ELF header: %s\n"
-msgstr "cannot read ELF header: %s\n"
-
-#: src/elflint.c:4441
-#, c-format
-msgid "text relocation flag set but not needed\n"
-msgstr "text relocation flag set but not needed\n"
-
-#: src/findtextrel.c:62
-msgid "Input Selection:"
-msgstr "Input Selection:"
-
-#: src/findtextrel.c:63
-msgid "Prepend PATH to all file names"
-msgstr "Prepend PATH to all file names"
-
-#: src/findtextrel.c:65
-msgid "Use PATH as root of debuginfo hierarchy"
-msgstr "Use PATH as root of debuginfo hierarchy"
-
-#: src/findtextrel.c:72
-msgid "Locate source of text relocations in FILEs (a.out by default)."
-msgstr "Locate source of text relocations in FILEs (a.out by default)."
-
-#: src/findtextrel.c:76 src/nm.c:108 src/objdump.c:72 src/size.c:84
-#: src/strings.c:84 src/strip.c:96
-msgid "[FILE...]"
-msgstr "[FILE...]"
-
-#: src/findtextrel.c:238
-#, c-format
-msgid "cannot get ELF header '%s': %s"
-msgstr "cannot get ELF header '%s': %s"
-
-#: src/findtextrel.c:249
-#, c-format
-msgid "'%s' is not a DSO or PIE"
-msgstr "‘%s’ is not a DSO or PIE"
-
-#: src/findtextrel.c:269
-#, c-format
-msgid "getting get section header of section %zu: %s"
-msgstr "getting get section header of section %zu: %s"
-
-#: src/findtextrel.c:292
-#, c-format
-msgid "cannot read dynamic section: %s"
-msgstr "cannot read dynamic section: %s"
-
-#: src/findtextrel.c:313
-#, c-format
-msgid "no text relocations reported in '%s'"
-msgstr "no text relocations reported in ‘%s’"
-
-#: src/findtextrel.c:325
-#, c-format
-msgid "while reading ELF file"
-msgstr "while reading ELF file"
-
-#: src/findtextrel.c:329
-#, c-format
-msgid "cannot get program header count: %s"
-msgstr "cannot get program header count: %s"
-
-#: src/findtextrel.c:340 src/findtextrel.c:357
-#, c-format
-msgid "cannot get program header index at offset %zd: %s"
-msgstr "cannot get program header index at offset %zd: %s"
-
-#: src/findtextrel.c:409
-#, c-format
-msgid "cannot get section header of section %Zu: %s"
-msgstr "cannot get section header of section %Zu: %s"
-
-#: src/findtextrel.c:421
-#, c-format
-msgid "cannot get symbol table section %zu in '%s': %s"
-msgstr "cannot get symbol table section %zu in '%s': %s"
-
-#: src/findtextrel.c:441 src/findtextrel.c:464
-#, c-format
-msgid "cannot get relocation at index %d in section %zu in '%s': %s"
-msgstr "cannot get relocation at index %d in section %zu in '%s': %s"
-
-#: src/findtextrel.c:529
-#, c-format
-msgid "%s not compiled with -fpic/-fPIC\n"
-msgstr "%s not compiled with -fpic/-fPIC\n"
-
-#: src/findtextrel.c:582
-#, c-format
-msgid ""
-"the file containing the function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"the file containing the function ‘%s’ is not compiled with -fpic/-"
-"fPIC\n"
-
-#: src/findtextrel.c:589 src/findtextrel.c:609
-#, c-format
-msgid ""
-"the file containing the function '%s' might not be compiled with -fpic/-"
-"fPIC\n"
-msgstr ""
-"the file containing the function ‘%s’ might not be compiled with -"
-"fpic/-fPIC\n"
-
-#: src/findtextrel.c:597
-#, c-format
-msgid ""
-"either the file containing the function '%s' or the file containing the "
-"function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"either the file containing the function ‘%s’ or the file containing "
-"the function ‘%s’ is not compiled with -fpic/-fPIC\n"
-
-#: src/findtextrel.c:617
-#, c-format
-msgid ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-msgstr ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-
-#: src/i386_ld.c:202
-#, c-format
-msgid "cannot allocate PLT section: %s"
-msgstr "cannot allocate PLT section: %s"
-
-#: src/i386_ld.c:224
-#, c-format
-msgid "cannot allocate PLTREL section: %s"
-msgstr "cannot allocate PLTREL section: %s"
-
-#: src/i386_ld.c:245
-#, c-format
-msgid "cannot allocate GOT section: %s"
-msgstr "cannot allocate GOT section: %s"
-
-#: src/i386_ld.c:266
-#, c-format
-msgid "cannot allocate GOTPLT section: %s"
-msgstr "cannot allocate GOTPLT section: %s"
-
-#: src/i386_ld.c:653
-#, c-format
-msgid "initial-executable TLS relocation cannot be used "
-msgstr "initial-executable TLS relocation cannot be used "
-
-#: src/ld.c:79
-msgid "Input File Control:"
-msgstr "Input File Control:"
-
-#: src/ld.c:81
-msgid "Include whole archives in the output from now on."
-msgstr "Include whole archives in the output from now on."
-
-#: src/ld.c:83
-msgid "Stop including the whole archives in the output."
-msgstr "Stop including the whole archives in the output."
-
-#: src/ld.c:84 src/ld.c:98 src/ld.c:176
-msgid "FILE"
-msgstr "FILE"
-
-#: src/ld.c:85
-msgid "Start a group."
-msgstr "Start a group."
-
-#: src/ld.c:86
-msgid "End a group."
-msgstr "End a group."
-
-#: src/ld.c:87
-msgid "PATH"
-msgstr "PATH"
-
-#: src/ld.c:88
-msgid "Add PATH to list of directories files are searched in."
-msgstr "Add PATH to list of directories files are searched in."
-
-#: src/ld.c:90
-msgid "Only set DT_NEEDED for following dynamic libs if actually used"
-msgstr "Only set DT_NEEDED for following dynamic libs if actually used"
-
-#: src/ld.c:92
-msgid "Always set DT_NEEDED for following dynamic libs"
-msgstr "Always set DT_NEEDED for following dynamic libs"
-
-#: src/ld.c:94
-msgid "Ignore LD_LIBRARY_PATH environment variable."
-msgstr "Ignore LD_LIBRARY_PATH environment variable."
-
-#: src/ld.c:97
-msgid "Output File Control:"
-msgstr "Output File Control:"
-
-#: src/ld.c:98
-msgid "Place output in FILE."
-msgstr "Place output in FILE."
-
-#: src/ld.c:101
-msgid "Object is marked to not use default search path at runtime."
-msgstr "Object is marked to not use default search path at runtime."
-
-#: src/ld.c:103
-msgid "Same as --whole-archive."
-msgstr "Same as --whole-archive."
-
-#: src/ld.c:104
-msgid ""
-"Default rules of extracting from archive; weak references are not enough."
-msgstr ""
-"Default rules of extracting from archive; weak references are not enough."
-
-#: src/ld.c:108
-msgid "Weak references cause extraction from archive."
-msgstr "Weak references cause extraction from archive."
-
-#: src/ld.c:110
-msgid "Allow multiple definitions; first is used."
-msgstr "Allow multiple definitions; first is used."
-
-#: src/ld.c:112
-msgid "Disallow/allow undefined symbols in DSOs."
-msgstr "Disallow/allow undefined symbols in DSOs."
-
-#: src/ld.c:115
-msgid "Object requires immediate handling of $ORIGIN."
-msgstr "Object requires immediate handling of $ORIGIN."
-
-#: src/ld.c:117
-msgid "Relocation will not be processed lazily."
-msgstr "Relocation will not be processed lazily."
-
-#: src/ld.c:119
-msgid "Object cannot be unloaded at runtime."
-msgstr "Object cannot be unloaded at runtime."
-
-#: src/ld.c:121
-msgid "Mark object to be initialized first."
-msgstr "Mark object to be initialized first."
-
-#: src/ld.c:123
-msgid "Enable/disable lazy-loading flag for following dependencies."
-msgstr "Enable/disable lazy-loading flag for following dependencies."
-
-#: src/ld.c:125
-msgid "Mark object as not loadable with 'dlopen'."
-msgstr "Mark object as not loadable with 'dlopen'."
-
-#: src/ld.c:127
-msgid "Ignore/record dependencies on unused DSOs."
-msgstr "Ignore/record dependencies on unused DSOs."
-
-#: src/ld.c:129
-msgid "Generated DSO will be a system library."
-msgstr "Generated DSO will be a system library."
-
-#: src/ld.c:130
-msgid "ADDRESS"
-msgstr "ADDRESS"
-
-#: src/ld.c:130
-msgid "Set entry point address."
-msgstr "Set entry point address."
-
-#: src/ld.c:133
-msgid "Do not link against shared libraries."
-msgstr "Do not link against shared libraries."
-
-#: src/ld.c:136
-msgid "Prefer linking against shared libraries."
-msgstr "Prefer linking against shared libraries."
-
-#: src/ld.c:137
-msgid "Export all dynamic symbols."
-msgstr "Export all dynamic symbols."
-
-#: src/ld.c:138
-msgid "Strip all symbols."
-msgstr "Strip all symbols."
-
-#: src/ld.c:139
-msgid "Strip debugging symbols."
-msgstr "Strip debugging symbols."
-
-#: src/ld.c:141
-msgid "Assume pagesize for the target system to be SIZE."
-msgstr "Assume pagesize for the target system to be SIZE."
-
-#: src/ld.c:143
-msgid "Set runtime DSO search path."
-msgstr "Set runtime DSO search path."
-
-#: src/ld.c:146
-msgid "Set link time DSO search path."
-msgstr "Set link time DSO search path."
-
-#: src/ld.c:147
-msgid "Generate dynamic shared object."
-msgstr "Generate dynamic shared object."
-
-#: src/ld.c:148
-msgid "Generate relocatable object."
-msgstr "Generate relocatable object."
-
-#: src/ld.c:151
-msgid "Causes symbol not assigned to a version be reduced to local."
-msgstr "Causes symbol not assigned to a version be reduced to local."
-
-#: src/ld.c:152
-msgid "Remove unused sections."
-msgstr "Remove unused sections."
-
-#: src/ld.c:155
-msgid "Don't remove unused sections."
-msgstr "Don't remove unused sections."
-
-#: src/ld.c:156
-msgid "Set soname of shared object."
-msgstr "Set soname of shared object."
-
-#: src/ld.c:157
-msgid "Set the dynamic linker name."
-msgstr "Set the dynamic linker name."
-
-#: src/ld.c:160
-msgid "Add/suppress addition indentifying link-editor to .comment section."
-msgstr "Add/suppress addition indentifying link-editor to .comment section."
-
-#: src/ld.c:163
-msgid "Create .eh_frame_hdr section"
-msgstr "Create .eh_frame_hdr section"
-
-#: src/ld.c:165
-msgid "Set hash style to sysv, gnu or both."
-msgstr "Set hash style to sysv, gnu or both."
-
-#: src/ld.c:167
-msgid "Generate build ID note (md5, sha1 (default), uuid)."
-msgstr "Generate build ID note (md5, sha1 (default), uuid)."
-
-#: src/ld.c:169
-msgid "Linker Operation Control:"
-msgstr "Linker Operation Control:"
-
-#: src/ld.c:170
-msgid "Verbose messages."
-msgstr "Verbose messages."
-
-#: src/ld.c:171
-msgid "Trace file opens."
-msgstr "Trace file opens."
-
-#: src/ld.c:173
-msgid "Trade speed for less memory usage"
-msgstr "Trade speed for less memory usage"
-
-#: src/ld.c:174
-msgid "LEVEL"
-msgstr "LEVEL"
-
-#: src/ld.c:175
-msgid "Set optimization level to LEVEL."
-msgstr "Set optimization level to LEVEL."
-
-#: src/ld.c:176
-msgid "Use linker script in FILE."
-msgstr "Use linker script in FILE."
-
-#: src/ld.c:179
-msgid "Select to get parser debug information"
-msgstr "Select to get parser debug information"
-
-#: src/ld.c:182
-msgid "Read version information from FILE."
-msgstr "Read version information from FILE."
-
-#: src/ld.c:183
-msgid "Set emulation to NAME."
-msgstr "Set emulation to NAME."
-
-#: src/ld.c:189
-msgid "Combine object and archive files."
-msgstr "Combine object and archive files."
-
-#: src/ld.c:192
-msgid "[FILE]..."
-msgstr "[FILE]..."
-
-#: src/ld.c:325
-#, c-format
-msgid "At least one input file needed"
-msgstr "At least one input file needed"
-
-#: src/ld.c:341
-#, c-format
-msgid "error while preparing linking"
-msgstr "error while preparing linking"
-
-#: src/ld.c:348
-#, c-format
-msgid "cannot open linker script '%s'"
-msgstr "cannot open linker script ‘%s’"
-
-#: src/ld.c:389
-#, c-format
-msgid "-( without matching -)"
-msgstr "-( without matching -)"
-
-#: src/ld.c:564 src/ld.c:602
-#, c-format
-msgid "only one option of -G and -r is allowed"
-msgstr "only one option of -G and -r is allowed"
-
-#: src/ld.c:586
-#, c-format
-msgid "more than one '-m' parameter"
-msgstr "more than one ‘-m’ parameter"
-
-#: src/ld.c:596 src/ld.c:1005
-#, c-format
-msgid "unknown option `-%c %s'"
-msgstr "unknown option ‘-%c %s’"
-
-#: src/ld.c:638
-#, c-format
-msgid "invalid page size value '%s': ignored"
-msgstr "invalid page size value '%s': ignored"
-
-#: src/ld.c:679
-#, c-format
-msgid "invalid hash style '%s'"
-msgstr "invalid hash style ‘%s’"
-
-#: src/ld.c:689
-#, c-format
-msgid "invalid build-ID style '%s'"
-msgstr "invalid build-ID style ‘%s’"
-
-#: src/ld.c:777
-#, c-format
-msgid "More than one output file name given."
-msgstr "More than one output file name given."
-
-#: src/ld.c:794
-#, c-format
-msgid "Invalid optimization level `%s'"
-msgstr "Invalid optimization level ‘%s’"
-
-#: src/ld.c:842
-#, c-format
-msgid "nested -( -) groups are not allowed"
-msgstr "nested -( -) groups are not allowed"
-
-#: src/ld.c:861
-#, c-format
-msgid "-) without matching -("
-msgstr "-) without matching -("
-
-#: src/ld.c:1038
-#, c-format
-msgid "unknown option '-%c %s'"
-msgstr "unknown option ‘-%c %s’"
-
-#: src/ld.c:1142
-#, c-format
-msgid "could not find input file to determine output file format"
-msgstr "could not find input file to determine output file format"
-
-#: src/ld.c:1144
-#, c-format
-msgid "try again with an appropriate '-m' parameter"
-msgstr "try again with an appropriate ‘-m’ parameter"
-
-#: src/ld.c:1438
-#, c-format
-msgid "cannot read version script '%s'"
-msgstr "cannot read version script ‘%s’"
-
-#: src/ld.c:1504 src/ld.c:1543
-#, c-format
-msgid "duplicate definition of '%s' in linker script"
-msgstr "duplicate definition of ‘%s’ in linker script"
-
-#: src/ldgeneric.c:201 src/ldgeneric.c:5141
-#, c-format
-msgid "cannot create string table"
-msgstr "cannot create string table"
-
-#: src/ldgeneric.c:247
-#, c-format
-msgid "cannot load ld backend library '%s': %s"
-msgstr "cannot load ld backend library '%s': %s"
-
-#: src/ldgeneric.c:257
-#, c-format
-msgid "cannot find init function in ld backend library '%s': %s"
-msgstr "cannot find init function in ld backend library '%s': %s"
-
-#: src/ldgeneric.c:300
-#, c-format
-msgid "%s listed more than once as input"
-msgstr "%s listed more than once as input"
-
-#: src/ldgeneric.c:414
-#, c-format
-msgid "%s (for -l%s)\n"
-msgstr "%s (for -l%s)\n"
-
-#: src/ldgeneric.c:415
-#, c-format
-msgid "%s (for DT_NEEDED %s)\n"
-msgstr "%s (for DT_NEEDED %s)\n"
-
-#: src/ldgeneric.c:563
-#, c-format
-msgid "Warning: type of `%s' changed from %s in %s to %s in %s"
-msgstr "Warning: type of ‘%s’ changed from %s in %s to %s in %s"
-
-#: src/ldgeneric.c:576
-#, c-format
-msgid "Warning: size of `%s' changed from %<PRIu64> in %s to %<PRIu64> in %s"
-msgstr ""
-"Warning: size of ‘%s’ changed from %<PRIu64> in %s to %<PRIu64> in %s"
-
-#: src/ldgeneric.c:651 src/ldgeneric.c:1112 src/readelf.c:527
-#: src/readelf.c:829 src/strip.c:568
-#, c-format
-msgid "cannot determine number of sections: %s"
-msgstr "cannot determine number of sections: %s"
-
-#: src/ldgeneric.c:667
-#, c-format
-msgid "(%s+%#<PRIx64>): multiple definition of %s `%s'\n"
-msgstr "(%s+%#<PRIx64>): multiple definition of %s ‘%s’\n"
-
-#: src/ldgeneric.c:690
-#, c-format
-msgid "(%s+%#<PRIx64>): first defined here\n"
-msgstr "(%s+%#<PRIx64>): first defined here\n"
-
-#: src/ldgeneric.c:809
-#, c-format
-msgid "%s: cannot get section group data: %s"
-msgstr "%s: cannot get section group data: %s"
-
-#: src/ldgeneric.c:830
-#, c-format
-msgid "%s: section '%s' with group flag set does not belong to any group"
-msgstr ""
-"%s: section ‘%s’ with group flag set does not belong to any group"
-
-#: src/ldgeneric.c:875
-#, c-format
-msgid "%s: section [%2d] '%s' is not in the correct section group"
-msgstr "%s: section [%2d] ‘%s’ is not in the correct section group"
-
-#: src/ldgeneric.c:1146 src/ldgeneric.c:1403 src/ldgeneric.c:1412
-#: src/ldgeneric.c:1471 src/ldgeneric.c:1480 src/ldgeneric.c:1743
-#: src/ldgeneric.c:1995
-#, c-format
-msgid "%s: invalid ELF file (%s:%d)\n"
-msgstr "%s: invalid ELF file (%s:%d)\n"
-
-#: src/ldgeneric.c:1240
-#, c-format
-msgid "%s: only files of type ET_REL might contain section groups"
-msgstr "%s: only files of type ET_REL might contain section groups"
-
-#: src/ldgeneric.c:1292
-#, c-format
-msgid "%s: cannot determine signature of section group [%2zd] '%s': %s"
-msgstr "%s: cannot determine signature of section group [%2zd] '%s': %s"
-
-#: src/ldgeneric.c:1304
-#, c-format
-msgid "%s: cannot get content of section group [%2zd] '%s': %s'"
-msgstr "%s: cannot get content of section group [%2zd] '%s': %s'"
-
-#: src/ldgeneric.c:1318
-#, c-format
-msgid ""
-"%s: group member %zu of section group [%2zd] '%s' has too high index: "
-"%<PRIu32>"
-msgstr ""
-"%s: group member %zu of section group [%2zd] ‘%s’ has too high index: "
-"%<PRIu32>"
-
-#: src/ldgeneric.c:1340
-#, c-format
-msgid "%s: section '%s' has unknown type: %d"
-msgstr "%s: section ‘%s’ has unknown type: %d"
-
-#: src/ldgeneric.c:1719
-#, c-format
-msgid "cannot get descriptor for ELF file (%s:%d): %s\n"
-msgstr "cannot get descriptor for ELF file (%s:%d): %s\n"
-
-#: src/ldgeneric.c:1889
-#, c-format
-msgid "cannot read archive `%s': %s"
-msgstr "cannot read archive ‘%s’: %s"
-
-#: src/ldgeneric.c:2010
-#, c-format
-msgid "file of type %s cannot be linked in\n"
-msgstr "file of type %s cannot be linked in\n"
-
-#: src/ldgeneric.c:2022
-#, c-format
-msgid "%s: input file incompatible with ELF machine type %s\n"
-msgstr "%s: input file incompatible with ELF machine type %s\n"
-
-#: src/ldgeneric.c:2034
-#, c-format
-msgid "%s: cannot get section header string table index: %s\n"
-msgstr "%s: cannot get section header string table index: %s\n"
-
-#: src/ldgeneric.c:2063
-#, c-format
-msgid "cannot use DSO '%s' when generating relocatable object file"
-msgstr "cannot use DSO ‘%s’ when generating relocatable object file"
-
-#: src/ldgeneric.c:2148
-#, c-format
-msgid "input file '%s' ignored"
-msgstr "input file ‘%s’ ignored"
-
-#: src/ldgeneric.c:2362
-#, c-format
-msgid "undefined symbol `%s' in %s"
-msgstr "undefined symbol ‘%s’ in %s"
-
-#: src/ldgeneric.c:2692
-#, c-format
-msgid "cannot create ELF descriptor for output file: %s"
-msgstr "cannot create ELF descriptor for output file: %s"
-
-#: src/ldgeneric.c:2699
-#, c-format
-msgid "could not create ELF header for output file: %s"
-msgstr "could not create ELF header for output file: %s"
-
-#: src/ldgeneric.c:3214 src/ldgeneric.c:3284 src/ldgeneric.c:3320
-#: src/ldgeneric.c:4447 src/ldgeneric.c:4496 src/ldgeneric.c:4528
-#: src/ldgeneric.c:4763 src/ldgeneric.c:4818 src/ldgeneric.c:5065
-#: src/ldgeneric.c:5121 src/ldgeneric.c:5590 src/ldgeneric.c:5602
-#, c-format
-msgid "cannot create section for output file: %s"
-msgstr "cannot create section for output file: %s"
-
-#: src/ldgeneric.c:3434
-#, c-format
-msgid "address computation expression contains variable '%s'"
-msgstr "address computation expression contains variable ‘%s’"
-
-#: src/ldgeneric.c:3479
-#, c-format
-msgid ""
-"argument '%<PRIuMAX>' of ALIGN in address computation expression is no power "
-"of two"
-msgstr ""
-"argument ‘%<PRIuMAX>’ of ALIGN in address computation expression is no "
-"power of two"
-
-#: src/ldgeneric.c:3674
-#, c-format
-msgid "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-msgstr "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-
-#: src/ldgeneric.c:3680
-#, c-format
-msgid "no entry symbol specified: defaulting to %#0*<PRIx64>"
-msgstr "no entry symbol specified: defaulting to %#0*<PRIx64>"
-
-#: src/ldgeneric.c:3910
-#, c-format
-msgid "cannot create GNU hash table section for output file: %s"
-msgstr "cannot create GNU hash table section for output file: %s"
-
-#: src/ldgeneric.c:4061
-#, c-format
-msgid "cannot create hash table section for output file: %s"
-msgstr "cannot create hash table section for output file: %s"
-
-#: src/ldgeneric.c:4104
-#, c-format
-msgid "cannot create build ID section: %s"
-msgstr "cannot create build ID section: %s"
-
-#: src/ldgeneric.c:4181
-#, c-format
-msgid "cannot convert section data to file format: %s"
-msgstr "cannot convert section data to file format: %s"
-
-#: src/ldgeneric.c:4190
-#, c-format
-msgid "cannot convert section data to memory format: %s"
-msgstr "cannot convert section data to memory format: %s"
-
-#: src/ldgeneric.c:4251
-#, c-format
-msgid "cannot read enough data for UUID"
-msgstr "cannot read enough data for UUID"
-
-#: src/ldgeneric.c:4348 src/ldgeneric.c:4369 src/ldgeneric.c:4398
-#: src/ldgeneric.c:6051
-#, c-format
-msgid "cannot create symbol table for output file: %s"
-msgstr "cannot create symbol table for output file: %s"
-
-#: src/ldgeneric.c:5290 src/ldgeneric.c:5842
-#, c-format
-msgid "section index too large in dynamic symbol table"
-msgstr "section index too large in dynamic symbol table"
-
-#: src/ldgeneric.c:5735
-#, c-format
-msgid "cannot create versioning section: %s"
-msgstr "cannot create versioning section: %s"
-
-#: src/ldgeneric.c:5808
-#, c-format
-msgid "cannot create dynamic symbol table for output file: %s"
-msgstr "cannot create dynamic symbol table for output file: %s"
-
-#: src/ldgeneric.c:5983
-#, c-format
-msgid "cannot create versioning data: %s"
-msgstr "cannot create versioning data: %s"
-
-#: src/ldgeneric.c:6083 src/ldgeneric.c:6096 src/ldgeneric.c:6160
-#: src/ldgeneric.c:6168
-#, c-format
-msgid "cannot create section header string section: %s"
-msgstr "cannot create section header string section: %s"
-
-#: src/ldgeneric.c:6090
-#, c-format
-msgid "cannot create section header string section"
-msgstr "cannot create section header string section"
-
-#: src/ldgeneric.c:6248
-#, c-format
-msgid "cannot create program header: %s"
-msgstr "cannot create program header: %s"
-
-#: src/ldgeneric.c:6256
-#, c-format
-msgid "while determining file layout: %s"
-msgstr "while determining file layout: %s"
-
-#: src/ldgeneric.c:6377
-#, c-format
-msgid "internal error: non-nobits section follows nobits section"
-msgstr "internal error: non-nobits section follows nobits section"
-
-#: src/ldgeneric.c:6914
-#, c-format
-msgid "cannot get header of 0th section: %s"
-msgstr "cannot get header of 0th section: %s"
-
-#: src/ldgeneric.c:6930 src/unstrip.c:1822
-#, c-format
-msgid "cannot update ELF header: %s"
-msgstr "cannot update ELF header: %s"
-
-#: src/ldgeneric.c:6961
-#, c-format
-msgid "linker backend didn't specify function to relocate section"
-msgstr "linker backend didn't specify function to relocate section"
-
-#: src/ldgeneric.c:6973
-#, c-format
-msgid "while writing output file: %s"
-msgstr "while writing output file: %s"
-
-#: src/ldgeneric.c:6978
-#, c-format
-msgid "while finishing output file: %s"
-msgstr "while finishing output file: %s"
-
-#: src/ldgeneric.c:6984
-#, c-format
-msgid "cannot stat output file"
-msgstr "cannot stat output file"
-
-#: src/ldgeneric.c:7000
-#, c-format
-msgid "WARNING: temporary output file overwritten before linking finished"
-msgstr "WARNING: temporary output file overwritten before linking finished"
-
-#: src/ldgeneric.c:7053 src/ldgeneric.c:7064 src/ldgeneric.c:7075
-#: src/ldgeneric.c:7086 src/ldgeneric.c:7105 src/ldgeneric.c:7118
-#: src/ldgeneric.c:7130
-#, c-format
-msgid "no machine specific '%s' implementation"
-msgstr "no machine specific ‘%s’ implementation"
-
-#: src/ldscript.y:170
-msgid "mode for segment invalid\n"
-msgstr "mode for segment invalid\n"
-
-#: src/ldscript.y:457
-#, c-format
-msgid "while reading version script '%s': %s at line %d"
-msgstr "while reading version script '%s': %s at line %d"
-
-#: src/ldscript.y:458
-#, c-format
-msgid "while reading linker script '%s': %s at line %d"
-msgstr "while reading linker script '%s': %s at line %d"
-
-#: src/ldscript.y:737
-#, c-format
-msgid "symbol '%s' is declared both local and global for unnamed version"
-msgstr ""
-"symbol ‘%s’ is declared both local and global for unnamed version"
-
-#: src/ldscript.y:739
-#, c-format
-msgid "symbol '%s' is declared both local and global for version '%s'"
-msgstr ""
-"symbol ‘%s’ is declared both local and global for version ‘%s’"
-
-#: src/ldscript.y:759 src/ldscript.y:766
-#, c-format
-msgid "default visibility set as local and global"
-msgstr "default visibility set as local and global"
-
-#: src/nm.c:66 src/strip.c:68
-msgid "Output selection:"
-msgstr "Output selection:"
-
-#: src/nm.c:67
-msgid "Display debugger-only symbols"
-msgstr "Display debugger-only symbols"
-
-#: src/nm.c:68
-msgid "Display only defined symbols"
-msgstr "Display only defined symbols"
-
-#: src/nm.c:71
-msgid "Display dynamic symbols instead of normal symbols"
-msgstr "Display dynamic symbols instead of normal symbols"
-
-#: src/nm.c:72
-msgid "Display only external symbols"
-msgstr "Display only external symbols"
-
-#: src/nm.c:73
-msgid "Display only undefined symbols"
-msgstr "Display only undefined symbols"
-
-#: src/nm.c:75
-msgid "Include index for symbols from archive members"
-msgstr "Include index for symbols from archive members"
-
-#: src/nm.c:77 src/size.c:58
-msgid "Output format:"
-msgstr "Output format:"
-
-#: src/nm.c:79
-msgid "Print name of the input file before every symbol"
-msgstr "Print name of the input file before every symbol"
-
-#: src/nm.c:82
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The "
-"default is `sysv'"
-msgstr ""
-"Use the output format FORMAT. FORMAT can be ‘bsd’, ‘sysv’ or "
-"‘posix’. The default is ‘sysv’"
-
-#: src/nm.c:84
-msgid "Same as --format=bsd"
-msgstr "Same as --format=bsd"
-
-#: src/nm.c:85
-msgid "Same as --format=posix"
-msgstr "Same as --format=posix"
-
-#: src/nm.c:86 src/size.c:64
-msgid "Use RADIX for printing symbol values"
-msgstr "Use RADIX for printing symbol values"
-
-#: src/nm.c:87
-msgid "Mark special symbols"
-msgstr "Mark special symbols"
-
-#: src/nm.c:89
-msgid "Print size of defined symbols"
-msgstr "Print size of defined symbols"
-
-#: src/nm.c:91 src/size.c:72 src/strip.c:73 src/unstrip.c:73
-msgid "Output options:"
-msgstr "Output options:"
-
-#: src/nm.c:92
-msgid "Sort symbols numerically by address"
-msgstr "Sort symbols numerically by address"
-
-#: src/nm.c:94
-msgid "Do not sort the symbols"
-msgstr "Do not sort the symbols"
-
-#: src/nm.c:95
-msgid "Reverse the sense of the sort"
-msgstr "Reverse the sense of the sort"
-
-#: src/nm.c:98
-msgid "Decode low-level symbol names into source code names"
-msgstr "Decode low-level symbol names into source code names"
-
-#: src/nm.c:105
-msgid "List symbols from FILEs (a.out by default)."
-msgstr "List symbols from FILEs (a.out by default)."
-
-#: src/nm.c:116 src/objdump.c:80
-msgid "Output formatting"
-msgstr "Output formatting"
-
-#: src/nm.c:140 src/objdump.c:104 src/size.c:109 src/strip.c:120
-#, c-format
-msgid "%s: INTERNAL ERROR %d (%s-%s): %s"
-msgstr "%s: INTERNAL ERROR %d (%s-%s): %s"
-
-#: src/nm.c:398 src/nm.c:410 src/size.c:309 src/size.c:318 src/size.c:329
-#: src/strip.c:2160
-#, c-format
-msgid "while closing '%s'"
-msgstr "while closing ‘%s’"
-
-#: src/nm.c:420 src/objdump.c:296 src/strip.c:376
-#, c-format
-msgid "%s: File format not recognized"
-msgstr "%s: File format not recognized"
-
-#: src/nm.c:460
-msgid ""
-"\n"
-"Archive index:\n"
-msgstr ""
-"\n"
-"Archive index:\n"
-
-#: src/nm.c:469
-#, c-format
-msgid "invalid offset %zu for symbol %s"
-msgstr "invalid offset %zu for symbol %s"
-
-#: src/nm.c:474
-#, c-format
-msgid "%s in %s\n"
-msgstr "%s in %s\n"
-
-#: src/nm.c:482
-#, c-format
-msgid "cannot reset archive offset to beginning"
-msgstr "cannot reset archive offset to beginning"
-
-#: src/nm.c:506 src/objdump.c:344
-#, c-format
-msgid "%s%s%s: file format not recognized"
-msgstr "%s%s%s: file format not recognized"
-
-#: src/nm.c:718
-#, c-format
-msgid "cannot create search tree"
-msgstr "cannot create search tree"
-
-#: src/nm.c:757 src/nm.c:1163 src/objdump.c:793 src/readelf.c:536
-#: src/readelf.c:1085 src/readelf.c:1245 src/readelf.c:1393 src/readelf.c:1579
-#: src/readelf.c:1785 src/readelf.c:1975 src/readelf.c:2202 src/readelf.c:2460
-#: src/readelf.c:2536 src/readelf.c:2623 src/readelf.c:3201 src/readelf.c:3237
-#: src/readelf.c:3300 src/readelf.c:8187 src/readelf.c:9273 src/readelf.c:9420
-#: src/readelf.c:9488 src/size.c:417 src/size.c:486 src/strip.c:503
-#, c-format
-msgid "cannot get section header string table index"
-msgstr "cannot get section header string table index"
-
-#: src/nm.c:784
-#, c-format
-msgid ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-msgstr ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-
-#: src/nm.c:787
-#, c-format
-msgid ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-msgstr ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-
-#: src/nm.c:1173
-#, c-format
-msgid "%s: entry size in section `%s' is not what we expect"
-msgstr "%s: entry size in section ‘%s’ is not what we expect"
-
-#: src/nm.c:1177
-#, c-format
-msgid "%s: size of section `%s' is not multiple of entry size"
-msgstr "%s: size of section ‘%s’ is not multiple of entry size"
-
-#: src/nm.c:1435
-#, c-format
-msgid "%s%s%s%s: Invalid operation"
-msgstr "%s%s%s%s: Invalid operation"
-
-#: src/nm.c:1492
-#, c-format
-msgid "%s%s%s: no symbols"
-msgstr "%s%s%s: no symbols"
-
-#: src/objdump.c:53
-msgid "Mode selection:"
-msgstr "Mode selection:"
-
-#: src/objdump.c:54
-msgid "Display relocation information."
-msgstr "Display relocation information."
-
-#: src/objdump.c:56
-msgid "Display the full contents of all sections requested"
-msgstr "Display the full contents of all sections requested"
-
-#: src/objdump.c:58
-msgid "Display assembler code of executable sections"
-msgstr "Display assembler code of executable sections"
-
-#: src/objdump.c:60
-msgid "Output content selection:"
-msgstr "Output content selection:"
-
-#: src/objdump.c:62
-msgid "Only display information for section NAME."
-msgstr "Only display information for section NAME."
-
-#: src/objdump.c:68
-msgid "Show information from FILEs (a.out by default)."
-msgstr "Show information from FILEs (a.out by default)."
-
-#: src/objdump.c:236 src/readelf.c:473
-msgid "No operation specified.\n"
-msgstr "No operation specified.\n"
-
-#: src/objdump.c:274 src/objdump.c:286
-#, c-format
-msgid "while close `%s'"
-msgstr "while close ‘%s’"
-
-#: src/objdump.c:379 src/readelf.c:1880 src/readelf.c:2072
-msgid "INVALID SYMBOL"
-msgstr "INVALID SYMBOL"
-
-#: src/objdump.c:394 src/readelf.c:1914 src/readelf.c:2108
-msgid "INVALID SECTION"
-msgstr "INVALID SECTION"
-
-#: src/objdump.c:514
-#, c-format
-msgid ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-msgstr ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-
-#: src/objdump.c:517
-msgid "OFFSET"
-msgstr "OFFSET"
-
-#: src/objdump.c:582
-#, c-format
-msgid "Contents of section %s:\n"
-msgstr "Contents of section %s:\n"
-
-#: src/objdump.c:703
-#, c-format
-msgid "cannot disassemble"
-msgstr "cannot disassemble"
-
-#: src/objdump.c:742
-#, c-format
-msgid "cannot allocate memory"
-msgstr "cannot allocate memory"
-
-#: src/ranlib.c:66
-msgid "Generate an index to speed access to archives."
-msgstr "Generate an index to speed access to archives."
-
-#: src/ranlib.c:69
-msgid "ARCHIVE"
-msgstr "ARCHIVE"
-
-#: src/ranlib.c:108
-#, c-format
-msgid "Archive name required"
-msgstr "Archive name required"
-
-#: src/ranlib.c:186
-#, c-format
-msgid "'%s' is no archive"
-msgstr "‘%s’ is no archive"
-
-#: src/ranlib.c:221
-#, c-format
-msgid "error while freeing sub-ELF descriptor: %s"
-msgstr "error while freeing sub-ELF descriptor: %s"
-
-#: src/readelf.c:71
-msgid "ELF input selection:"
-msgstr "ELF input selection:"
-
-#: src/readelf.c:73
-msgid ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-msgstr ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-
-#: src/readelf.c:75
-msgid "ELF output selection:"
-msgstr "ELF output selection:"
-
-#: src/readelf.c:77
-msgid "All these plus -p .strtab -p .dynstr -p .comment"
-msgstr "All these plus -p .strtab -p .dynstr -p .comment"
-
-#: src/readelf.c:78
-msgid "Display the dynamic segment"
-msgstr "Display the dynamic segment"
-
-#: src/readelf.c:79
-msgid "Display the ELF file header"
-msgstr "Display the ELF file header"
-
-#: src/readelf.c:81
-msgid "Display histogram of bucket list lengths"
-msgstr "Display histogram of bucket list lengths"
-
-#: src/readelf.c:82
-msgid "Display the program headers"
-msgstr "Display the program headers"
-
-#: src/readelf.c:84
-msgid "Display relocations"
-msgstr "Display relocations"
-
-#: src/readelf.c:85
-msgid "Display the sections' headers"
-msgstr "Display the sections' headers"
-
-#: src/readelf.c:87
-msgid "Display the symbol table"
-msgstr "Display the symbol table"
-
-#: src/readelf.c:88
-msgid "Display versioning information"
-msgstr "Display versioning information"
-
-#: src/readelf.c:89
-msgid "Display the ELF notes"
-msgstr "Display the ELF notes"
-
-#: src/readelf.c:91
-msgid "Display architecture specific information, if any"
-msgstr "Display architecture specific information, if any"
-
-#: src/readelf.c:93
-msgid "Display sections for exception handling"
-msgstr "Display sections for exception handling"
-
-#: src/readelf.c:95
-msgid "Additional output selection:"
-msgstr "Additional output selection:"
-
-#: src/readelf.c:97
-msgid ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-msgstr ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-
-#: src/readelf.c:101
-msgid "Dump the uninterpreted contents of SECTION, by number or name"
-msgstr "Dump the uninterpreted contents of SECTION, by number or name"
-
-#: src/readelf.c:103
-msgid "Print string contents of sections"
-msgstr "Print string contents of sections"
-
-#: src/readelf.c:106
-msgid "Display the symbol index of an archive"
-msgstr "Display the symbol index of an archive"
-
-#: src/readelf.c:108
-msgid "Output control:"
-msgstr "Output control:"
-
-#: src/readelf.c:110
-msgid "Do not find symbol names for addresses in DWARF data"
-msgstr "Do not find symbol names for addresses in DWARF data"
-
-#: src/readelf.c:112
-msgid ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-msgstr ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-
-#: src/readelf.c:114
-msgid "Ignored for compatibility (lines always wide)"
-msgstr "Ignored for compatibility (lines always wide)"
-
-#: src/readelf.c:119
-msgid "Print information from ELF file in human-readable form."
-msgstr "Print information from ELF file in human-readable form."
-
-#: src/readelf.c:441
-#, c-format
-msgid "Unknown DWARF debug section `%s'.\n"
-msgstr "Unknown DWARF debug section ‘%s’.\n"
-
-#: src/readelf.c:520 src/readelf.c:631
-#, c-format
-msgid "cannot generate Elf descriptor: %s"
-msgstr "cannot generate Elf descriptor: %s"
-
-#: src/readelf.c:545 src/readelf.c:1099 src/readelf.c:1269
-#, c-format
-msgid "cannot get section: %s"
-msgstr "cannot get section: %s"
-
-#: src/readelf.c:554 src/readelf.c:1106 src/readelf.c:1277 src/readelf.c:9440
-#: src/unstrip.c:356 src/unstrip.c:387 src/unstrip.c:436 src/unstrip.c:544
-#: src/unstrip.c:561 src/unstrip.c:597 src/unstrip.c:795 src/unstrip.c:1063
-#: src/unstrip.c:1254 src/unstrip.c:1314 src/unstrip.c:1435 src/unstrip.c:1488
-#: src/unstrip.c:1595 src/unstrip.c:1784
-#, c-format
-msgid "cannot get section header: %s"
-msgstr "cannot get section header: %s"
-
-#: src/readelf.c:562
-#, c-format
-msgid "cannot get section name"
-msgstr "cannot get section name"
-
-#: src/readelf.c:571 src/readelf.c:5398 src/readelf.c:7671 src/readelf.c:7773
-#: src/readelf.c:7939
-#, c-format
-msgid "cannot get %s content: %s"
-msgstr "cannot get %s content: %s"
-
-#: src/readelf.c:587
-#, c-format
-msgid "cannot create temp file '%s'"
-msgstr "cannot create temp file ‘%s’"
-
-#: src/readelf.c:596
-#, c-format
-msgid "cannot write section data"
-msgstr "cannot write section data"
-
-#: src/readelf.c:602 src/readelf.c:619 src/readelf.c:648
-#, c-format
-msgid "error while closing Elf descriptor: %s"
-msgstr "error while closing Elf descriptor: %s"
-
-#: src/readelf.c:609
-#, c-format
-msgid "error while rewinding file descriptor"
-msgstr "error while rewinding file descriptor"
-
-#: src/readelf.c:643
-#, c-format
-msgid "'%s' is not an archive, cannot print archive index"
-msgstr "‘%s’ is not an archive, cannot print archive index"
-
-#: src/readelf.c:742
-#, c-format
-msgid "No such section '%s' in '%s'"
-msgstr "No such section ‘%s’ in ‘%s’"
-
-#: src/readelf.c:769
-#, c-format
-msgid "cannot stat input file"
-msgstr "cannot stat input file"
-
-#: src/readelf.c:771
-#, c-format
-msgid "input file is empty"
-msgstr "input file is empty"
-
-#: src/readelf.c:773
-#, c-format
-msgid "failed reading '%s': %s"
-msgstr "failed reading '%s': %s"
-
-#: src/readelf.c:814
-#, c-format
-msgid "cannot read ELF header: %s"
-msgstr "cannot read ELF header: %s"
-
-#: src/readelf.c:822
-#, c-format
-msgid "cannot create EBL handle"
-msgstr "cannot create EBL handle"
-
-#: src/readelf.c:835
-#, c-format
-msgid "cannot determine number of program headers: %s"
-msgstr "cannot determine number of program headers: %s"
-
-#: src/readelf.c:921
-msgid "NONE (None)"
-msgstr "NONE (None)"
-
-#: src/readelf.c:922
-msgid "REL (Relocatable file)"
-msgstr "REL (Relocatable file)"
-
-#: src/readelf.c:923
-msgid "EXEC (Executable file)"
-msgstr "EXEC (Executable file)"
-
-#: src/readelf.c:924
-msgid "DYN (Shared object file)"
-msgstr "DYN (Shared object file)"
-
-#: src/readelf.c:925
-msgid "CORE (Core file)"
-msgstr "CORE (Core file)"
-
-#: src/readelf.c:930
-#, c-format
-msgid "OS Specific: (%x)\n"
-msgstr "OS Specific: (%x)\n"
-
-#: src/readelf.c:932
-#, c-format
-msgid "Processor Specific: (%x)\n"
-msgstr "Processor Specific: (%x)\n"
-
-#: src/readelf.c:942
-msgid ""
-"ELF Header:\n"
-" Magic: "
-msgstr ""
-"ELF Header:\n"
-" Magic: "
-
-#: src/readelf.c:946
-#, c-format
-msgid ""
-"\n"
-" Class: %s\n"
-msgstr ""
-"\n"
-" Class: %s\n"
-
-#: src/readelf.c:951
-#, c-format
-msgid " Data: %s\n"
-msgstr " Data: %s\n"
-
-#: src/readelf.c:957
-#, c-format
-msgid " Ident Version: %hhd %s\n"
-msgstr " Ident Version: %hhd %s\n"
-
-#: src/readelf.c:959 src/readelf.c:976
-msgid "(current)"
-msgstr "(current)"
-
-#: src/readelf.c:963
-#, c-format
-msgid " OS/ABI: %s\n"
-msgstr " OS/ABI: %s\n"
-
-#: src/readelf.c:966
-#, c-format
-msgid " ABI Version: %hhd\n"
-msgstr " ABI Version: %hhd\n"
-
-#: src/readelf.c:969
-msgid " Type: "
-msgstr " Type: "
-
-#: src/readelf.c:972
-#, c-format
-msgid " Machine: %s\n"
-msgstr " Machine: %s\n"
-
-#: src/readelf.c:974
-#, c-format
-msgid " Version: %d %s\n"
-msgstr " Version: %d %s\n"
-
-#: src/readelf.c:978
-#, c-format
-msgid " Entry point address: %#<PRIx64>\n"
-msgstr " Entry point address: %#<PRIx64>\n"
-
-#: src/readelf.c:981
-#, c-format
-msgid " Start of program headers: %<PRId64> %s\n"
-msgstr " Start of program headers: %<PRId64> %s\n"
-
-#: src/readelf.c:982 src/readelf.c:985
-msgid "(bytes into file)"
-msgstr "(bytes into file)"
-
-#: src/readelf.c:984
-#, c-format
-msgid " Start of section headers: %<PRId64> %s\n"
-msgstr " Start of section headers: %<PRId64> %s\n"
-
-#: src/readelf.c:987
-#, c-format
-msgid " Flags: %s\n"
-msgstr " Flags: %s\n"
-
-#: src/readelf.c:990
-#, c-format
-msgid " Size of this header: %<PRId16> %s\n"
-msgstr " Size of this header: %<PRId16> %s\n"
-
-#: src/readelf.c:991 src/readelf.c:994 src/readelf.c:1011
-msgid "(bytes)"
-msgstr "(bytes)"
-
-#: src/readelf.c:993
-#, c-format
-msgid " Size of program header entries: %<PRId16> %s\n"
-msgstr " Size of program header entries: %<PRId16> %s\n"
-
-#: src/readelf.c:996
-#, c-format
-msgid " Number of program headers entries: %<PRId16>"
-msgstr " Number of program headers entries: %<PRId16>"
-
-#: src/readelf.c:1003
-#, c-format
-msgid " (%<PRIu32> in [0].sh_info)"
-msgstr " (%<PRIu32> in [0].sh_info)"
-
-#: src/readelf.c:1006 src/readelf.c:1023 src/readelf.c:1037
-msgid " ([0] not available)"
-msgstr " ([0] not available)"
-
-#: src/readelf.c:1010
-#, c-format
-msgid " Size of section header entries: %<PRId16> %s\n"
-msgstr " Size of section header entries: %<PRId16> %s\n"
-
-#: src/readelf.c:1013
-#, c-format
-msgid " Number of section headers entries: %<PRId16>"
-msgstr " Number of section headers entries: %<PRId16>"
-
-#: src/readelf.c:1020
-#, c-format
-msgid " (%<PRIu32> in [0].sh_size)"
-msgstr " (%<PRIu32> in [0].sh_size)"
-
-#: src/readelf.c:1033
-#, c-format
-msgid " (%<PRIu32> in [0].sh_link)"
-msgstr " (%<PRIu32> in [0].sh_link)"
-
-#: src/readelf.c:1041
-#, c-format
-msgid ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-msgstr ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-
-#: src/readelf.c:1045
-#, c-format
-msgid ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-msgstr ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-
-#: src/readelf.c:1077
-#, c-format
-msgid ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-
-#: src/readelf.c:1087
-msgid "Section Headers:"
-msgstr "Section Headers:"
-
-#: src/readelf.c:1090
-msgid ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-msgstr ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-
-#: src/readelf.c:1092
-msgid ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-msgstr ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-
-#: src/readelf.c:1164
-msgid "Program Headers:"
-msgstr "Program Headers:"
-
-#: src/readelf.c:1166
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-msgstr ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-
-#: src/readelf.c:1169
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-msgstr ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-
-#: src/readelf.c:1226
-#, c-format
-msgid "\t[Requesting program interpreter: %s]\n"
-msgstr "\t[Requesting program interpreter: %s]\n"
-
-#: src/readelf.c:1247
-msgid ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-msgstr ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-
-#: src/readelf.c:1258 src/unstrip.c:1843 src/unstrip.c:1886 src/unstrip.c:1893
-#, c-format
-msgid "cannot get program header: %s"
-msgstr "cannot get program header: %s"
-
-#: src/readelf.c:1401
-#, c-format
-msgid ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"COMDAT section group [%2zu] ‘%s’ with signature ‘%s’ contains "
-"%zu entry:\n"
-msgstr[1] ""
-"\n"
-"COMDAT section group [%2zu] ‘%s’ with signature ‘%s’ contains "
-"%zu entries:\n"
-
-#: src/readelf.c:1406
-#, c-format
-msgid ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Section group [%2zu] ‘%s’ with signature ‘%s’ contains %zu "
-"entry:\n"
-msgstr[1] ""
-"\n"
-"Section group [%2zu] ‘%s’ with signature ‘%s’ contains %zu "
-"entries:\n"
-
-#: src/readelf.c:1414
-msgid "<INVALID SYMBOL>"
-msgstr "<INVALID SYMBOL>"
-
-#: src/readelf.c:1428
-msgid "<INVALID SECTION>"
-msgstr "<INVALID SECTION>"
-
-#: src/readelf.c:1585 src/readelf.c:2208 src/readelf.c:2466 src/readelf.c:2542
-#: src/readelf.c:2846 src/readelf.c:2920 src/readelf.c:4610
-#, c-format
-msgid "invalid sh_link value in section %Zu"
-msgstr "invalid sh_link value in section %Zu"
-
-#: src/readelf.c:1588
-#, c-format
-msgid ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘"
-"%s’\n"
-msgstr[1] ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘"
-"%s’\n"
-
-#: src/readelf.c:1598
-msgid " Type Value\n"
-msgstr " Type Value\n"
-
-#: src/readelf.c:1622
-#, c-format
-msgid "Shared library: [%s]\n"
-msgstr "Shared library: [%s]\n"
-
-#: src/readelf.c:1627
-#, c-format
-msgid "Library soname: [%s]\n"
-msgstr "Library soname: [%s]\n"
-
-#: src/readelf.c:1632
-#, c-format
-msgid "Library rpath: [%s]\n"
-msgstr "Library rpath: [%s]\n"
-
-#: src/readelf.c:1637
-#, c-format
-msgid "Library runpath: [%s]\n"
-msgstr "Library runpath: [%s]\n"
-
-#: src/readelf.c:1657
-#, c-format
-msgid "%<PRId64> (bytes)\n"
-msgstr "%<PRId64> (bytes)\n"
-
-#: src/readelf.c:1770 src/readelf.c:1960
-#, c-format
-msgid ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-msgstr ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-
-#: src/readelf.c:1788 src/readelf.c:1978
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Relocation section [%2zu] ‘%s’ for section [%2u] ‘%s’ at offset "
-"%#0<PRIx64> contains %d entry:\n"
-msgstr[1] ""
-"\n"
-"Relocation section [%2zu] ‘%s’ for section [%2u] ‘%s’ at offset "
-"%#0<PRIx64> contains %d entries:\n"
-
-#: src/readelf.c:1803 src/readelf.c:1993
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Relocation section [%2u] ‘%s’ at offset %#0<PRIx64> contains %d "
-"entry:\n"
-msgstr[1] ""
-"\n"
-"Relocation section [%2u] ‘%s’ at offset %#0<PRIx64> contains %d "
-"entries:\n"
-
-#: src/readelf.c:1813
-msgid " Offset Type Value Name\n"
-msgstr " Offset Type Value Name\n"
-
-#: src/readelf.c:1815
-msgid " Offset Type Value Name\n"
-msgstr " Offset Type Value Name\n"
-
-#: src/readelf.c:1868 src/readelf.c:1879 src/readelf.c:1892 src/readelf.c:1913
-#: src/readelf.c:1925 src/readelf.c:2059 src/readelf.c:2071 src/readelf.c:2085
-#: src/readelf.c:2107 src/readelf.c:2120
-msgid "<INVALID RELOC>"
-msgstr "<INVALID RELOC>"
-
-#: src/readelf.c:2003
-msgid " Offset Type Value Addend Name\n"
-msgstr " Offset Type Value Addend Name\n"
-
-#: src/readelf.c:2005
-msgid " Offset Type Value Addend Name\n"
-msgstr ""
-" Offset Type Value Addend Name\n"
-
-#: src/readelf.c:2216
-#, c-format
-msgid ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entry:\n"
-msgid_plural ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entries:\n"
-msgstr[0] ""
-"\n"
-"Symbol table [%2u] ‘%s’ contains %u entry:\n"
-msgstr[1] ""
-"\n"
-"Symbol table [%2u] ‘%s’ contains %u entries:\n"
-
-#: src/readelf.c:2221
-#, c-format
-msgid " %lu local symbol String table: [%2u] '%s'\n"
-msgid_plural " %lu local symbols String table: [%2u] '%s'\n"
-msgstr[0] " %lu local symbol String table: [%2u] ‘%s’\n"
-msgstr[1] " %lu local symbols String table: [%2u] ‘%s’\n"
-
-#: src/readelf.c:2229
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " Num: Value Size Type Bind Vis Ndx Name\n"
-
-#: src/readelf.c:2231
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " Num: Value Size Type Bind Vis Ndx Name\n"
-
-#: src/readelf.c:2251
-#, c-format
-msgid "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-msgstr "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-
-#: src/readelf.c:2339
-#, c-format
-msgid "bad dynamic symbol"
-msgstr "bad dynamic symbol"
-
-#: src/readelf.c:2421
-msgid "none"
-msgstr "none"
-
-#: src/readelf.c:2438
-msgid "| <unknown>"
-msgstr "| <unknown>"
-
-#: src/readelf.c:2469
-#, c-format
-msgid ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Version needs section [%2u] ‘%s’ contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘"
-"%s’\n"
-msgstr[1] ""
-"\n"
-"Version needs section [%2u] ‘%s’ contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘"
-"%s’\n"
-
-#: src/readelf.c:2490
-#, c-format
-msgid " %#06x: Version: %hu File: %s Cnt: %hu\n"
-msgstr " %#06x: Version: %hu File: %s Cnt: %hu\n"
-
-#: src/readelf.c:2503
-#, c-format
-msgid " %#06x: Name: %s Flags: %s Version: %hu\n"
-msgstr " %#06x: Name: %s Flags: %s Version: %hu\n"
-
-#: src/readelf.c:2546
-#, c-format
-msgid ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Version definition section [%2u] ‘%s’ contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘"
-"%s’\n"
-msgstr[1] ""
-"\n"
-"Version definition section [%2u] ‘%s’ contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘"
-"%s’\n"
-
-#: src/readelf.c:2574
-#, c-format
-msgid " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-msgstr " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-
-#: src/readelf.c:2589
-#, c-format
-msgid " %#06x: Parent %d: %s\n"
-msgstr " %#06x: Parent %d: %s\n"
-
-#: src/readelf.c:2850
-#, c-format
-msgid ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgid_plural ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgstr[0] ""
-"\n"
-"Version symbols section [%2u] ‘%s’ contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’"
-msgstr[1] ""
-"\n"
-"Version symbols section [%2u] ‘%s’ contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’"
-
-#: src/readelf.c:2878
-msgid " 0 *local* "
-msgstr " 0 *local* "
-
-#: src/readelf.c:2883
-msgid " 1 *global* "
-msgstr " 1 *global* "
-
-#: src/readelf.c:2925
-#, c-format
-msgid ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Histogram for bucket list length in section [%2u] ‘%s’ (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘"
-"%s’\n"
-msgstr[1] ""
-"\n"
-"Histogram for bucket list length in section [%2u] ‘%s’ (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘"
-"%s’\n"
-
-#: src/readelf.c:2947
-#, no-c-format
-msgid " Length Number % of total Coverage\n"
-msgstr " Length Number % of total Coverage\n"
-
-#: src/readelf.c:2949
-#, c-format
-msgid " 0 %6<PRIu32> %5.1f%%\n"
-msgstr " 0 %6<PRIu32> %5.1f%%\n"
-
-#: src/readelf.c:2956
-#, c-format
-msgid "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-msgstr "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-
-#: src/readelf.c:2969
-#, c-format
-msgid ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-msgstr ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-
-#: src/readelf.c:2987 src/readelf.c:3042 src/readelf.c:3098
-#, c-format
-msgid "cannot get data for section %d: %s"
-msgstr "cannot get data for section %d: %s"
-
-#: src/readelf.c:2995
-#, c-format
-msgid "invalid data in sysv.hash section %d"
-msgstr "invalid data in sysv.hash section %d"
-
-#: src/readelf.c:3050
-#, c-format
-msgid "invalid data in sysv.hash64 section %d"
-msgstr "invalid data in sysv.hash64 section %d"
-
-#: src/readelf.c:3106
-#, c-format
-msgid "invalid data in gnu.hash section %d"
-msgstr "invalid data in gnu.hash section %d"
-
-#: src/readelf.c:3173
-#, c-format
-msgid ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-msgstr ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-
-#: src/readelf.c:3248
-#, c-format
-msgid ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Library list section [%2zu] ‘%s’ at offset %#0<PRIx64> contains %d "
-"entry:\n"
-msgstr[1] ""
-"\n"
-"Library list section [%2zu] ‘%s’ at offset %#0<PRIx64> contains %d "
-"entries:\n"
-
-#: src/readelf.c:3262
-msgid ""
-" Library Time Stamp Checksum Version "
-"Flags"
-msgstr ""
-" Library Time Stamp Checksum Version "
-"Flags"
-
-#: src/readelf.c:3312
-#, c-format
-msgid ""
-"\n"
-"Object attributes section [%2zu] '%s' of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Object attributes section [%2zu] ‘%s’ of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:3329
-msgid " Owner Size\n"
-msgstr " Owner Size\n"
-
-#: src/readelf.c:3358
-#, c-format
-msgid " %-13s %4<PRIu32>\n"
-msgstr " %-13s %4<PRIu32>\n"
-
-#: src/readelf.c:3397
-#, c-format
-msgid " %-4u %12<PRIu32>\n"
-msgstr " %-4u %12<PRIu32>\n"
-
-#: src/readelf.c:3402
-#, c-format
-msgid " File: %11<PRIu32>\n"
-msgstr " File: %11<PRIu32>\n"
-
-#: src/readelf.c:3451
-#, c-format
-msgid " %s: %<PRId64>, %s\n"
-msgstr " %s: %<PRId64>, %s\n"
-
-#: src/readelf.c:3454
-#, c-format
-msgid " %s: %<PRId64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:3457
-#, c-format
-msgid " %s: %s\n"
-msgstr " %s: %s\n"
-
-#: src/readelf.c:3467
-#, c-format
-msgid " %u: %<PRId64>\n"
-msgstr " %u: %<PRId64>\n"
-
-#: src/readelf.c:3470
-#, c-format
-msgid " %u: %s\n"
-msgstr " %u: %s\n"
-
-#: src/readelf.c:3515
-#, c-format
-msgid "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3518
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3523
-#, c-format
-msgid "%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3526
-#, c-format
-msgid "%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3532
-#, c-format
-msgid "%s+%#<PRIx64> <%s>"
-msgstr "%s+%#<PRIx64> <%s>"
-
-#: src/readelf.c:3535
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s>"
-msgstr "%s+%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3539
-#, c-format
-msgid "%#<PRIx64> <%s>"
-msgstr "%#<PRIx64> <%s>"
-
-#: src/readelf.c:3542
-#, c-format
-msgid "%#0*<PRIx64> <%s>"
-msgstr "%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3547
-#, c-format
-msgid "%s+%#<PRIx64>"
-msgstr "%s+%#<PRIx64>"
-
-#: src/readelf.c:3550
-#, c-format
-msgid "%s+%#0*<PRIx64>"
-msgstr "%s+%#0*<PRIx64>"
-
-#: src/readelf.c:3932
-msgid "empty block"
-msgstr "empty block"
-
-#: src/readelf.c:3935
-#, c-format
-msgid "%zu byte block:"
-msgstr "%zu byte block:"
-
-#: src/readelf.c:4332
-#, c-format
-msgid "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-msgstr "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-
-#: src/readelf.c:4389
-#, c-format
-msgid "%s %#<PRIx64> used with different address sizes"
-msgstr "%s %#<PRIx64> used with different address sizes"
-
-#: src/readelf.c:4396
-#, c-format
-msgid "%s %#<PRIx64> used with different offset sizes"
-msgstr "%s %#<PRIx64> used with different offset sizes"
-
-#: src/readelf.c:4403
-#, c-format
-msgid "%s %#<PRIx64> used with different base addresses"
-msgstr "%s %#<PRIx64> used with different base addresses"
-
-#: src/readelf.c:4492
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-msgstr " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-
-#: src/readelf.c:4500
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-msgstr " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-
-#: src/readelf.c:4526
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [ Code]\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-" [ Code]\n"
-
-#: src/readelf.c:4534
-#, c-format
-msgid ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-msgstr ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-
-#: src/readelf.c:4547
-#, c-format
-msgid " *** error while reading abbreviation: %s\n"
-msgstr " *** error while reading abbreviation: %s\n"
-
-#: src/readelf.c:4563
-#, c-format
-msgid " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-msgstr " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-
-#: src/readelf.c:4566
-msgid "yes"
-msgstr "yes"
-
-#: src/readelf.c:4566
-msgid "no"
-msgstr "no"
-
-#: src/readelf.c:4600 src/readelf.c:4673
-#, c-format
-msgid "cannot get .debug_aranges content: %s"
-msgstr "cannot get .debug_aranges content: %s"
-
-#: src/readelf.c:4615
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64> contains %zu entry:\n"
-msgstr[1] ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64> contains %zu entries:\n"
-
-#: src/readelf.c:4646
-#, c-format
-msgid " [%*zu] ???\n"
-msgstr " [%*zu] ???\n"
-
-#: src/readelf.c:4648
-#, c-format
-msgid ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-msgstr ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-
-#: src/readelf.c:4678 src/readelf.c:4832 src/readelf.c:5408 src/readelf.c:6362
-#: src/readelf.c:6894 src/readelf.c:7014 src/readelf.c:7177 src/readelf.c:7602
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-
-#: src/readelf.c:4691 src/readelf.c:6388
-#, c-format
-msgid ""
-"\n"
-"Table at offset %Zu:\n"
-msgstr ""
-"\n"
-"Table at offset %Zu:\n"
-
-#: src/readelf.c:4695 src/readelf.c:5432 src/readelf.c:6399
-#, c-format
-msgid "invalid data in section [%zu] '%s'"
-msgstr "invalid data in section [%zu] ‘%s’"
-
-#: src/readelf.c:4711
-#, c-format
-msgid ""
-"\n"
-" Length: %6<PRIu64>\n"
-msgstr ""
-"\n"
-" Length: %6<PRIu64>\n"
-
-#: src/readelf.c:4723
-#, c-format
-msgid " DWARF version: %6<PRIuFAST16>\n"
-msgstr " DWARF version: %6<PRIuFAST16>\n"
-
-#: src/readelf.c:4727
-#, c-format
-msgid "unsupported aranges version"
-msgstr "unsupported aranges version"
-
-#: src/readelf.c:4738
-#, c-format
-msgid " CU offset: %6<PRIx64>\n"
-msgstr " CU offset: %6<PRIx64>\n"
-
-#: src/readelf.c:4744
-#, c-format
-msgid " Address size: %6<PRIu64>\n"
-msgstr " Address size: %6<PRIu64>\n"
-
-#: src/readelf.c:4748
-#, c-format
-msgid "unsupported address size"
-msgstr "unsupported address size"
-
-#: src/readelf.c:4753
-#, c-format
-msgid ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-msgstr ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-
-#: src/readelf.c:4757
-#, c-format
-msgid "unsupported segment size"
-msgstr "unsupported segment size"
-
-#: src/readelf.c:4797
-#, c-format
-msgid " %s..%s (%<PRIx64>)\n"
-msgstr " %s..%s (%<PRIx64>)\n"
-
-#: src/readelf.c:4800
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:4809
-#, c-format
-msgid " %Zu padding bytes\n"
-msgstr " %Zu padding bytes\n"
-
-#: src/readelf.c:4827
-#, c-format
-msgid "cannot get .debug_ranges content: %s"
-msgstr "cannot get .debug_ranges content: %s"
-
-#: src/readelf.c:4857 src/readelf.c:6921
-#, c-format
-msgid " [%6tx] <INVALID DATA>\n"
-msgstr " [%6tx] <INVALID DATA>\n"
-
-#: src/readelf.c:4879 src/readelf.c:6943
-#, c-format
-msgid " [%6tx] base address %s\n"
-msgstr " [%6tx] base address %s\n"
-
-#: src/readelf.c:4886 src/readelf.c:6950
-#, c-format
-msgid " [%6tx] empty list\n"
-msgstr " [%6tx] empty list\n"
-
-#: src/readelf.c:4897
-#, c-format
-msgid " [%6tx] %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4899
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:5078
-msgid " <INVALID DATA>\n"
-msgstr " <INVALID DATA>\n"
-
-#: src/readelf.c:5387
-#, c-format
-msgid "cannot get ELF: %s"
-msgstr "cannot get ELF: %s"
-
-#: src/readelf.c:5404
-#, c-format
-msgid ""
-"\n"
-"Call frame information section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"Call frame information section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-
-#: src/readelf.c:5454
-#, c-format
-msgid ""
-"\n"
-" [%6tx] Zero terminator\n"
-msgstr ""
-"\n"
-" [%6tx] Zero terminator\n"
-
-#: src/readelf.c:5547 src/readelf.c:5702
-#, c-format
-msgid "invalid augmentation length"
-msgstr "invalid augmentation length"
-
-#: src/readelf.c:5562
-msgid "FDE address encoding: "
-msgstr "FDE address encoding: "
-
-#: src/readelf.c:5568
-msgid "LSDA pointer encoding: "
-msgstr "LSDA pointer encoding: "
-
-#: src/readelf.c:5679
-#, c-format
-msgid " (offset: %#<PRIx64>)"
-msgstr " (offset: %#<PRIx64>)"
-
-#: src/readelf.c:5686
-#, c-format
-msgid " (end offset: %#<PRIx64>)"
-msgstr " (end offset: %#<PRIx64>)"
-
-#: src/readelf.c:5723
-#, c-format
-msgid " %-26sLSDA pointer: %#<PRIx64>\n"
-msgstr " %-26sLSDA pointer: %#<PRIx64>\n"
-
-#: src/readelf.c:5778
-#, c-format
-msgid "cannot get attribute code: %s"
-msgstr "cannot get attribute code: %s"
-
-#: src/readelf.c:5787
-#, c-format
-msgid "cannot get attribute form: %s"
-msgstr "cannot get attribute form: %s"
-
-#: src/readelf.c:5802
-#, c-format
-msgid "cannot get attribute value: %s"
-msgstr "cannot get attribute value: %s"
-
-#: src/readelf.c:6101
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [Offset]\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-" [Offset]\n"
-
-#: src/readelf.c:6133
-#, c-format
-msgid ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-msgstr ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-
-#: src/readelf.c:6142
-#, c-format
-msgid ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-msgstr ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-
-#: src/readelf.c:6167
-#, c-format
-msgid "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-msgstr "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-
-#: src/readelf.c:6181
-#, c-format
-msgid "cannot get DIE offset: %s"
-msgstr "cannot get DIE offset: %s"
-
-#: src/readelf.c:6190
-#, c-format
-msgid "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-msgstr "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-
-#: src/readelf.c:6222
-#, c-format
-msgid "cannot get next DIE: %s\n"
-msgstr "cannot get next DIE: %s\n"
-
-#: src/readelf.c:6230
-#, c-format
-msgid "cannot get next DIE: %s"
-msgstr "cannot get next DIE: %s"
-
-#: src/readelf.c:6266
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-"\n"
-
-#: src/readelf.c:6375
-#, c-format
-msgid "cannot get line data section data: %s"
-msgstr "cannot get line data section data: %s"
-
-#: src/readelf.c:6445
-#, c-format
-msgid ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-msgstr ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-
-#: src/readelf.c:6466
-#, c-format
-msgid "invalid data at offset %tu in section [%zu] '%s'"
-msgstr "invalid data at offset %tu in section [%zu] ‘%s’"
-
-#: src/readelf.c:6481
-#, c-format
-msgid " [%*<PRIuFAST8>] %hhu argument\n"
-msgid_plural " [%*<PRIuFAST8>] %hhu arguments\n"
-msgstr[0] " [%*<PRIuFAST8>] %hhu argument\n"
-msgstr[1] " [%*<PRIuFAST8>] %hhu arguments\n"
-
-#: src/readelf.c:6489
-msgid ""
-"\n"
-"Directory table:"
-msgstr ""
-"\n"
-"Directory table:"
-
-#: src/readelf.c:6505
-msgid ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-msgstr ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-
-#: src/readelf.c:6540
-msgid ""
-"\n"
-"Line number statements:"
-msgstr ""
-"\n"
-"Line number statements:"
-
-#: src/readelf.c:6591
-#, c-format
-msgid "invalid maximum operations per instruction is zero"
-msgstr "invalid maximum operations per instruction is zero"
-
-#: src/readelf.c:6627
-#, c-format
-msgid " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-msgstr " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-
-#: src/readelf.c:6632
-#, c-format
-msgid " special opcode %u: address+%u = %s, line%+d = %zu\n"
-msgstr " special opcode %u: address+%u = %s, line%+d = %zu\n"
-
-#: src/readelf.c:6652
-#, c-format
-msgid " extended opcode %u: "
-msgstr " extended opcode %u: "
-
-#: src/readelf.c:6657
-msgid " end of sequence"
-msgstr " end of sequence"
-
-#: src/readelf.c:6676
-#, c-format
-msgid " set address to %s\n"
-msgstr " set address to %s\n"
-
-#: src/readelf.c:6703
-#, c-format
-msgid " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-msgstr " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-
-#: src/readelf.c:6716
-#, c-format
-msgid " set discriminator to %u\n"
-msgstr " set discriminator to %u\n"
-
-#: src/readelf.c:6721
-msgid " unknown opcode"
-msgstr " unknown opcode"
-
-#: src/readelf.c:6733
-msgid " copy"
-msgstr " copy"
-
-#: src/readelf.c:6744
-#, c-format
-msgid " advance address by %u to %s, op_index to %u\n"
-msgstr " advance address by %u to %s, op_index to %u\n"
-
-#: src/readelf.c:6748
-#, c-format
-msgid " advance address by %u to %s\n"
-msgstr " advance address by %u to %s\n"
-
-#: src/readelf.c:6759
-#, c-format
-msgid " advance line by constant %d to %<PRId64>\n"
-msgstr " advance line by constant %d to %<PRId64>\n"
-
-#: src/readelf.c:6767
-#, c-format
-msgid " set file to %<PRIu64>\n"
-msgstr " set file to %<PRIu64>\n"
-
-#: src/readelf.c:6777
-#, c-format
-msgid " set column to %<PRIu64>\n"
-msgstr " set column to %<PRIu64>\n"
-
-#: src/readelf.c:6784
-#, c-format
-msgid " set '%s' to %<PRIuFAST8>\n"
-msgstr " set ‘%s’ to %<PRIuFAST8>\n"
-
-#: src/readelf.c:6790
-msgid " set basic block flag"
-msgstr " set basic block flag"
-
-#: src/readelf.c:6803
-#, c-format
-msgid " advance address by constant %u to %s, op_index to %u\n"
-msgstr " advance address by constant %u to %s, op_index to %u\n"
-
-#: src/readelf.c:6807
-#, c-format
-msgid " advance address by constant %u to %s\n"
-msgstr " advance address by constant %u to %s\n"
-
-#: src/readelf.c:6825
-#, c-format
-msgid " advance address by fixed value %u to %s\n"
-msgstr " advance address by fixed value %u to %s\n"
-
-#: src/readelf.c:6834
-msgid " set prologue end flag"
-msgstr " set prologue end flag"
-
-#: src/readelf.c:6839
-msgid " set epilogue begin flag"
-msgstr " set epilogue begin flag"
-
-#: src/readelf.c:6848
-#, c-format
-msgid " set isa to %u\n"
-msgstr " set isa to %u\n"
-
-#: src/readelf.c:6857
-#, c-format
-msgid " unknown opcode with %<PRIu8> parameter:"
-msgid_plural " unknown opcode with %<PRIu8> parameters:"
-msgstr[0] " unknown opcode with %<PRIu8> parameter:"
-msgstr[1] " unknown opcode with %<PRIu8> parameters:"
-
-#: src/readelf.c:6889
-#, c-format
-msgid "cannot get .debug_loc content: %s"
-msgstr "cannot get .debug_loc content: %s"
-
-#: src/readelf.c:6964
-#, c-format
-msgid " [%6tx] %s..%s"
-msgstr " [%6tx] %s..%s"
-
-#: src/readelf.c:6966
-#, c-format
-msgid " %s..%s"
-msgstr " %s..%s"
-
-#: src/readelf.c:6973 src/readelf.c:7858
-msgid " <INVALID DATA>\n"
-msgstr " <INVALID DATA>\n"
-
-#: src/readelf.c:7025 src/readelf.c:7186
-#, c-format
-msgid "cannot get macro information section data: %s"
-msgstr "cannot get macro information section data: %s"
-
-#: src/readelf.c:7104
-#, c-format
-msgid "%*s*** non-terminated string at end of section"
-msgstr "%*s*** non-terminated string at end of section"
-
-#: src/readelf.c:7127
-#, c-format
-msgid "%*s*** missing DW_MACINFO_start_file argument at end of section"
-msgstr "%*s*** missing DW_MACINFO_start_file argument at end of section"
-
-#: src/readelf.c:7227
-#, c-format
-msgid " Offset: 0x%<PRIx64>\n"
-msgstr " Offset: 0x%<PRIx64>\n"
-
-#: src/readelf.c:7239
-#, c-format
-msgid " Version: %<PRIu16>\n"
-msgstr " Version: %<PRIu16>\n"
-
-#: src/readelf.c:7245 src/readelf.c:7968
-#, c-format
-msgid " unknown version, cannot parse section\n"
-msgstr " unknown version, cannot parse section\n"
-
-#: src/readelf.c:7252
-#, c-format
-msgid " Flag: 0x%<PRIx8>\n"
-msgstr " Flag: 0x%<PRIx8>\n"
-
-#: src/readelf.c:7255
-#, c-format
-msgid " Offset length: %<PRIu8>\n"
-msgstr " Offset length: %<PRIu8>\n"
-
-#: src/readelf.c:7263
-#, c-format
-msgid " .debug_line offset: 0x%<PRIx64>\n"
-msgstr " .debug_line offset: 0x%<PRIx64>\n"
-
-#: src/readelf.c:7276
-#, c-format
-msgid " extension opcode table, %<PRIu8> items:\n"
-msgstr " extension opcode table, %<PRIu8> items:\n"
-
-#: src/readelf.c:7283
-#, c-format
-msgid " [%<PRIx8>]"
-msgstr " [%<PRIx8>]"
-
-#: src/readelf.c:7295
-#, c-format
-msgid " %<PRIu8> arguments:"
-msgstr " %<PRIu8> arguments:"
-
-#: src/readelf.c:7323
-#, c-format
-msgid " no arguments."
-msgstr " no arguments."
-
-#: src/readelf.c:7560
-#, c-format
-msgid "vendor opcode not verified?"
-msgstr "vendor opcode not verified?"
-
-#: src/readelf.c:7588
-#, c-format
-msgid " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-msgstr " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-
-#: src/readelf.c:7629
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" %*s String\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-" %*s String\n"
-
-#: src/readelf.c:7643
-#, c-format
-msgid " *** error while reading strings: %s\n"
-msgstr " *** error while reading strings: %s\n"
-
-#: src/readelf.c:7663
-#, c-format
-msgid ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-msgstr ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-
-#: src/readelf.c:7765
-#, c-format
-msgid ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-msgstr ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-
-#: src/readelf.c:7788
-#, c-format
-msgid " LPStart encoding: %#x "
-msgstr " LPStart encoding: %#x "
-
-#: src/readelf.c:7800
-#, c-format
-msgid " TType encoding: %#x "
-msgstr " TType encoding: %#x "
-
-#: src/readelf.c:7815
-#, c-format
-msgid " Call site encoding: %#x "
-msgstr " Call site encoding: %#x "
-
-#: src/readelf.c:7828
-msgid ""
-"\n"
-" Call site table:"
-msgstr ""
-"\n"
-" Call site table:"
-
-#: src/readelf.c:7842
-#, c-format
-msgid ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-msgstr ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-
-#: src/readelf.c:7909
-#, c-format
-msgid "invalid TType encoding"
-msgstr "invalid TType encoding"
-
-#: src/readelf.c:7930
-#, c-format
-msgid ""
-"\n"
-"GDB section [%2zu] '%s' at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-msgstr ""
-"\n"
-"GDB section [%2zu] ‘%s’ at offset %#<PRIx64> contains %<PRId64> "
-"bytes :\n"
-
-#: src/readelf.c:7959
-#, c-format
-msgid " Version: %<PRId32>\n"
-msgstr " Version: %<PRId32>\n"
-
-#: src/readelf.c:7977
-#, c-format
-msgid " CU offset: %#<PRIx32>\n"
-msgstr " CU offset: %#<PRIx32>\n"
-
-#: src/readelf.c:7984
-#, c-format
-msgid " TU offset: %#<PRIx32>\n"
-msgstr " TU offset: %#<PRIx32>\n"
-
-#: src/readelf.c:7991
-#, c-format
-msgid " address offset: %#<PRIx32>\n"
-msgstr " address offset: %#<PRIx32>\n"
-
-#: src/readelf.c:7998
-#, c-format
-msgid " symbol offset: %#<PRIx32>\n"
-msgstr " symbol offset: %#<PRIx32>\n"
-
-#: src/readelf.c:8005
-#, c-format
-msgid " constant offset: %#<PRIx32>\n"
-msgstr " constant offset: %#<PRIx32>\n"
-
-#: src/readelf.c:8012
-#, c-format
-msgid ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-
-#: src/readelf.c:8034
-#, c-format
-msgid ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-
-#: src/readelf.c:8060
-#, c-format
-msgid ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-
-#: src/readelf.c:8089
-#, c-format
-msgid ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-msgstr ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-
-#: src/readelf.c:8176
-#, c-format
-msgid "cannot get debug context descriptor: %s"
-msgstr "cannot get debug context descriptor: %s"
-
-#: src/readelf.c:8336 src/readelf.c:8942 src/readelf.c:9053 src/readelf.c:9111
-#, c-format
-msgid "cannot convert core note data: %s"
-msgstr "cannot convert core note data: %s"
-
-#: src/readelf.c:8683
-#, c-format
-msgid ""
-"\n"
-"%*s... <repeats %u more times> ..."
-msgstr ""
-"\n"
-"%*s... <repeats %u more times> ..."
-
-#: src/readelf.c:9190
-msgid " Owner Data size Type\n"
-msgstr " Owner Data size Type\n"
-
-#: src/readelf.c:9208
-#, c-format
-msgid " %-13.*s %9<PRId32> %s\n"
-msgstr " %-13.*s %9<PRId32> %s\n"
-
-#: src/readelf.c:9258
-#, c-format
-msgid "cannot get content of note section: %s"
-msgstr "cannot get content of note section: %s"
-
-#: src/readelf.c:9285
-#, c-format
-msgid ""
-"\n"
-"Note section [%2zu] '%s' of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Note section [%2zu] ‘%s’ of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-
-#: src/readelf.c:9308
-#, c-format
-msgid ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-
-#: src/readelf.c:9354
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no data to dump.\n"
-msgstr ""
-"\n"
-"Section [%Zu] ‘%s’ has no data to dump.\n"
-
-#: src/readelf.c:9360 src/readelf.c:9383
-#, c-format
-msgid "cannot get data for section [%Zu] '%s': %s"
-msgstr "cannot get data for section [%Zu] '%s': %s"
-
-#: src/readelf.c:9364
-#, c-format
-msgid ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-
-#: src/readelf.c:9377
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no strings to dump.\n"
-msgstr ""
-"\n"
-"Section [%Zu] ‘%s’ has no strings to dump.\n"
-
-#: src/readelf.c:9387
-#, c-format
-msgid ""
-"\n"
-"String section [%Zu] '%s' contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"String section [%Zu] ‘%s’ contains %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:9435
-#, c-format
-msgid ""
-"\n"
-"section [%lu] does not exist"
-msgstr ""
-"\n"
-"section [%lu] does not exist"
-
-#: src/readelf.c:9464
-#, c-format
-msgid ""
-"\n"
-"section '%s' does not exist"
-msgstr ""
-"\n"
-"section ‘%s’ does not exist"
-
-#: src/readelf.c:9521
-#, c-format
-msgid "cannot get symbol index of archive '%s': %s"
-msgstr "cannot get symbol index of archive '%s': %s"
-
-#: src/readelf.c:9524
-#, c-format
-msgid ""
-"\n"
-"Archive '%s' has no symbol index\n"
-msgstr ""
-"\n"
-"Archive ‘%s’ has no symbol index\n"
-
-#: src/readelf.c:9528
-#, c-format
-msgid ""
-"\n"
-"Index of archive '%s' has %Zu entries:\n"
-msgstr ""
-"\n"
-"Index of archive ‘%s’ has %Zu entries:\n"
-
-#: src/readelf.c:9546
-#, c-format
-msgid "cannot extract member at offset %Zu in '%s': %s"
-msgstr "cannot extract member at offset %Zu in '%s': %s"
-
-#: src/readelf.c:9551
-#, c-format
-msgid "Archive member '%s' contains:\n"
-msgstr "Archive member ‘%s’ contains:\n"
-
-#: src/size.c:60
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd' or `sysv'. The default "
-"is `bsd'"
-msgstr ""
-"Use the output format FORMAT. FORMAT can be ‘bsd’ or ‘sysv’. "
-"The default is ‘bsd’"
-
-#: src/size.c:62
-msgid "Same as `--format=sysv'"
-msgstr "Same as ‘--format=sysv’"
-
-#: src/size.c:63
-msgid "Same as `--format=bsd'"
-msgstr "Same as ‘--format=bsd’"
-
-#: src/size.c:66
-msgid "Same as `--radix=10'"
-msgstr "Same as ‘--radix=10’"
-
-#: src/size.c:67
-msgid "Same as `--radix=8'"
-msgstr "Same as ‘--radix=8’"
-
-#: src/size.c:68
-msgid "Same as `--radix=16'"
-msgstr "Same as ‘--radix=16’"
-
-#: src/size.c:70
-msgid "Similar to `--format=sysv' output but in one line"
-msgstr "Similar to ‘--format=sysv’ output but in one line"
-
-#: src/size.c:74
-msgid "Print size and permission flags for loadable segments"
-msgstr "Print size and permission flags for loadable segments"
-
-#: src/size.c:75
-msgid "Display the total sizes (bsd only)"
-msgstr "Display the total sizes (bsd only)"
-
-#: src/size.c:80
-msgid "List section sizes of FILEs (a.out by default)."
-msgstr "List section sizes of FILEs (a.out by default)."
-
-#: src/size.c:261
-#, c-format
-msgid "Invalid format: %s"
-msgstr "Invalid format: %s"
-
-#: src/size.c:272
-#, c-format
-msgid "Invalid radix: %s"
-msgstr "Invalid radix: %s"
-
-#: src/size.c:331
-#, c-format
-msgid "%s: file format not recognized"
-msgstr "%s: file format not recognized"
-
-#: src/size.c:437 src/size.c:570
-#, c-format
-msgid " (ex %s)"
-msgstr " (ex %s)"
-
-#: src/size.c:595
-msgid "(TOTALS)\n"
-msgstr "(TOTALS)\n"
-
-#: src/strings.c:62
-msgid "Output Selection:"
-msgstr "Output Selection:"
-
-#: src/strings.c:63
-msgid "Scan entire file, not only loaded sections"
-msgstr "Scan entire file, not only loaded sections"
-
-#: src/strings.c:65
-msgid "Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-msgstr ""
-"Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-
-#: src/strings.c:66
-msgid ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-msgstr ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-
-#: src/strings.c:70
-msgid "Print name of the file before each string."
-msgstr "Print name of the file before each string."
-
-#: src/strings.c:72
-msgid "Print location of the string in base 8, 10, or 16 respectively."
-msgstr "Print location of the string in base 8, 10, or 16 respectively."
-
-#: src/strings.c:73
-msgid "Alias for --radix=o"
-msgstr "Alias for --radix=o"
-
-#: src/strings.c:80
-msgid "Print the strings of printable characters in files."
-msgstr "Print the strings of printable characters in files."
-
-#: src/strings.c:267 src/strings.c:302
-#, c-format
-msgid "invalid value '%s' for %s parameter"
-msgstr "invalid value ‘%s’ for %s parameter"
-
-#: src/strings.c:313
-#, c-format
-msgid "invalid minimum length of matched string size"
-msgstr "invalid minimum length of matched string size"
-
-#: src/strings.c:596
-#, c-format
-msgid "lseek64 failed"
-msgstr "lseek64 failed"
-
-#: src/strings.c:613 src/strings.c:677
-#, c-format
-msgid "re-mmap failed"
-msgstr "re-mmap failed"
-
-#: src/strings.c:650
-#, c-format
-msgid "mprotect failed"
-msgstr "mprotect failed"
-
-#: src/strip.c:69
-msgid "Place stripped output into FILE"
-msgstr "Place stripped output into FILE"
-
-#: src/strip.c:70
-msgid "Extract the removed sections into FILE"
-msgstr "Extract the removed sections into FILE"
-
-#: src/strip.c:71
-msgid "Embed name FILE instead of -f argument"
-msgstr "Embed name FILE instead of -f argument"
-
-#: src/strip.c:75
-msgid "Remove all debugging symbols"
-msgstr "Remove all debugging symbols"
-
-#: src/strip.c:79
-msgid "Remove section headers (not recommended)"
-msgstr "Remove section headers (not recommended)"
-
-#: src/strip.c:81
-msgid "Copy modified/access timestamps to the output"
-msgstr "Copy modified/access timestamps to the output"
-
-#: src/strip.c:83
-msgid ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-msgstr ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-
-#: src/strip.c:85
-msgid "Remove .comment section"
-msgstr "Remove .comment section"
-
-#: src/strip.c:88
-msgid "Relax a few rules to handle slightly broken ELF files"
-msgstr "Relax a few rules to handle slightly broken ELF files"
-
-#: src/strip.c:93
-msgid "Discard symbols from object files."
-msgstr "Discard symbols from object files."
-
-#: src/strip.c:181
-#, c-format
-msgid "--reloc-debug-sections used without -f"
-msgstr "--reloc-debug-sections used without -f"
-
-#: src/strip.c:195
-#, c-format
-msgid "Only one input file allowed together with '-o' and '-f'"
-msgstr "Only one input file allowed together with ‘-o’ and ‘-f’"
-
-#: src/strip.c:231
-#, c-format
-msgid "-f option specified twice"
-msgstr "-f option specified twice"
-
-#: src/strip.c:240
-#, c-format
-msgid "-F option specified twice"
-msgstr "-F option specified twice"
-
-#: src/strip.c:249 src/unstrip.c:121
-#, c-format
-msgid "-o option specified twice"
-msgstr "-o option specified twice"
-
-#: src/strip.c:273
-#, c-format
-msgid "-R option supports only .comment section"
-msgstr "-R option supports only .comment section"
-
-#: src/strip.c:315 src/strip.c:339
-#, c-format
-msgid "cannot stat input file '%s'"
-msgstr "cannot stat input file ‘%s’"
-
-#: src/strip.c:329
-#, c-format
-msgid "while opening '%s'"
-msgstr "while opening ‘%s’"
-
-#: src/strip.c:367
-#, c-format
-msgid "%s: cannot use -o or -f when stripping archive"
-msgstr "%s: cannot use -o or -f when stripping archive"
-
-#: src/strip.c:468
-#, c-format
-msgid "cannot open EBL backend"
-msgstr "cannot open EBL backend"
-
-#: src/strip.c:508
-#, c-format
-msgid "cannot get number of phdrs"
-msgstr "cannot get number of phdrs"
-
-#: src/strip.c:523 src/strip.c:547
-#, c-format
-msgid "cannot create new file '%s': %s"
-msgstr "cannot create new file '%s': %s"
-
-#: src/strip.c:613
-#, c-format
-msgid "illformed file '%s'"
-msgstr "illformed file ‘%s’"
-
-#: src/strip.c:935 src/strip.c:1024
-#, c-format
-msgid "while generating output file: %s"
-msgstr "while generating output file: %s"
-
-#: src/strip.c:997 src/strip.c:1962
-#, c-format
-msgid "%s: error while creating ELF header: %s"
-msgstr "%s: error while creating ELF header: %s"
-
-#: src/strip.c:1011
-#, c-format
-msgid "while preparing output for '%s'"
-msgstr "while preparing output for ‘%s’"
-
-#: src/strip.c:1062 src/strip.c:1119
-#, c-format
-msgid "while create section header section: %s"
-msgstr "while create section header section: %s"
-
-#: src/strip.c:1068
-#, c-format
-msgid "cannot allocate section data: %s"
-msgstr "cannot allocate section data: %s"
-
-#: src/strip.c:1128
-#, c-format
-msgid "while create section header string table: %s"
-msgstr "while create section header string table: %s"
-
-#: src/strip.c:1757
-#, c-format
-msgid "bad relocation"
-msgstr "bad relocation"
-
-#: src/strip.c:1874 src/strip.c:1984
-#, c-format
-msgid "while writing '%s': %s"
-msgstr "while writing '%s': %s"
-
-#: src/strip.c:1885
-#, c-format
-msgid "while creating '%s'"
-msgstr "while creating ‘%s’"
-
-#: src/strip.c:1907
-#, c-format
-msgid "while computing checksum for debug information"
-msgstr "while computing checksum for debug information"
-
-#: src/strip.c:1970
-#, c-format
-msgid "%s: error while reading the file: %s"
-msgstr "%s: error while reading the file: %s"
-
-#: src/strip.c:2009 src/strip.c:2029
-#, c-format
-msgid "while writing '%s'"
-msgstr "while writing ‘%s’"
-
-#: src/strip.c:2066 src/strip.c:2073
-#, c-format
-msgid "error while finishing '%s': %s"
-msgstr "error while finishing '%s': %s"
-
-#: src/strip.c:2096 src/strip.c:2153
-#, c-format
-msgid "cannot set access and modification date of '%s'"
-msgstr "cannot set access and modification date of ‘%s’"
-
-#: src/unstrip.c:70
-msgid "Match MODULE against file names, not module names"
-msgstr "Match MODULE against file names, not module names"
-
-#: src/unstrip.c:71
-msgid "Silently skip unfindable files"
-msgstr "Silently skip unfindable files"
-
-#: src/unstrip.c:74
-msgid "Place output into FILE"
-msgstr "Place output into FILE"
-
-#: src/unstrip.c:76
-msgid "Create multiple output files under DIRECTORY"
-msgstr "Create multiple output files under DIRECTORY"
-
-#: src/unstrip.c:77
-msgid "Use module rather than file names"
-msgstr "Use module rather than file names"
-
-#: src/unstrip.c:79
-msgid "Create output for modules that have no separate debug information"
-msgstr "Create output for modules that have no separate debug information"
-
-#: src/unstrip.c:82
-msgid "Apply relocations to section contents in ET_REL files"
-msgstr "Apply relocations to section contents in ET_REL files"
-
-#: src/unstrip.c:84
-msgid "Only list module and file names, build IDs"
-msgstr "Only list module and file names, build IDs"
-
-#: src/unstrip.c:86
-msgid "Force combining files even if some ELF headers don't seem to match"
-msgstr "Force combining files even if some ELF headers don't seem to match"
-
-#: src/unstrip.c:130
-#, c-format
-msgid "-d option specified twice"
-msgstr "-d option specified twice"
-
-#: src/unstrip.c:165
-#, c-format
-msgid "only one of -o or -d allowed"
-msgstr "only one of -o or -d allowed"
-
-#: src/unstrip.c:174
-#, c-format
-msgid "-n cannot be used with explicit files or -o or -d"
-msgstr "-n cannot be used with explicit files or -o or -d"
-
-#: src/unstrip.c:189
-#, c-format
-msgid "output directory '%s'"
-msgstr "output directory ‘%s’"
-
-#: src/unstrip.c:198
-#, c-format
-msgid "exactly two file arguments are required"
-msgstr "exactly two file arguments are required"
-
-#: src/unstrip.c:204
-#, c-format
-msgid "-m, -a, -R, and -i options not allowed with explicit files"
-msgstr "-m, -a, -R, and -i options not allowed with explicit files"
-
-#: src/unstrip.c:217
-#, c-format
-msgid "-o or -d is required when using implicit files"
-msgstr "-o or -d is required when using implicit files"
-
-#: src/unstrip.c:253
-#, c-format
-msgid "cannot create ELF header: %s"
-msgstr "cannot create ELF header: %s"
-
-#: src/unstrip.c:258
-#, c-format
-msgid "cannot copy ELF header: %s"
-msgstr "cannot copy ELF header: %s"
-
-#: src/unstrip.c:262 src/unstrip.c:1832 src/unstrip.c:1876
-#, c-format
-msgid "cannot get number of program headers: %s"
-msgstr "cannot get number of program headers: %s"
-
-#: src/unstrip.c:267 src/unstrip.c:1836
-#, c-format
-msgid "cannot create program headers: %s"
-msgstr "cannot create program headers: %s"
-
-#: src/unstrip.c:273
-#, c-format
-msgid "cannot copy program header: %s"
-msgstr "cannot copy program header: %s"
-
-#: src/unstrip.c:283
-#, c-format
-msgid "cannot copy section header: %s"
-msgstr "cannot copy section header: %s"
-
-#: src/unstrip.c:286 src/unstrip.c:1513
-#, c-format
-msgid "cannot get section data: %s"
-msgstr "cannot get section data: %s"
-
-#: src/unstrip.c:288 src/unstrip.c:1515
-#, c-format
-msgid "cannot copy section data: %s"
-msgstr "cannot copy section data: %s"
-
-#: src/unstrip.c:312
-#, c-format
-msgid "cannot create directory '%s'"
-msgstr "cannot create directory ‘%s’"
-
-#: src/unstrip.c:352 src/unstrip.c:769 src/unstrip.c:1547
-#, c-format
-msgid "cannot get symbol table entry: %s"
-msgstr "cannot get symbol table entry: %s"
-
-#: src/unstrip.c:368 src/unstrip.c:586 src/unstrip.c:607 src/unstrip.c:619
-#: src/unstrip.c:1568 src/unstrip.c:1698 src/unstrip.c:1722
-#, c-format
-msgid "cannot update symbol table: %s"
-msgstr "cannot update symbol table: %s"
-
-#: src/unstrip.c:378
-#, c-format
-msgid "cannot update section header: %s"
-msgstr "cannot update section header: %s"
-
-#: src/unstrip.c:417 src/unstrip.c:428
-#, c-format
-msgid "cannot update relocation: %s"
-msgstr "cannot update relocation: %s"
-
-#: src/unstrip.c:515
-#, c-format
-msgid "cannot get symbol version: %s"
-msgstr "cannot get symbol version: %s"
-
-#: src/unstrip.c:527
-#, c-format
-msgid "unexpected section type in [%Zu] with sh_link to symtab"
-msgstr "unexpected section type in [%Zu] with sh_link to symtab"
-
-#: src/unstrip.c:775
-#, c-format
-msgid "invalid string offset in symbol [%Zu]"
-msgstr "invalid string offset in symbol [%Zu]"
-
-#: src/unstrip.c:917 src/unstrip.c:1258
-#, c-format
-msgid "cannot read section [%Zu] name: %s"
-msgstr "cannot read section [%Zu] name: %s"
-
-#: src/unstrip.c:958 src/unstrip.c:977 src/unstrip.c:1010
-#, c-format
-msgid "cannot read '.gnu.prelink_undo' section: %s"
-msgstr "cannot read ‘.gnu.prelink_undo’ section: %s"
-
-#: src/unstrip.c:998
-#, c-format
-msgid "invalid contents in '%s' section"
-msgstr "invalid contents in ‘%s’ section"
-
-#: src/unstrip.c:1053 src/unstrip.c:1378
-#, c-format
-msgid "cannot find matching section for [%Zu] '%s'"
-msgstr "cannot find matching section for [%Zu] ‘%s’"
-
-#: src/unstrip.c:1178 src/unstrip.c:1193 src/unstrip.c:1459
-#, c-format
-msgid "cannot add section name to string table: %s"
-msgstr "cannot add section name to string table: %s"
-
-#: src/unstrip.c:1202
-#, c-format
-msgid "cannot update section header string table data: %s"
-msgstr "cannot update section header string table data: %s"
-
-#: src/unstrip.c:1229 src/unstrip.c:1233
-#, c-format
-msgid "cannot get section header string table section index: %s"
-msgstr "cannot get section header string table section index: %s"
-
-#: src/unstrip.c:1237 src/unstrip.c:1241 src/unstrip.c:1474
-#, c-format
-msgid "cannot get section count: %s"
-msgstr "cannot get section count: %s"
-
-#: src/unstrip.c:1244
-#, c-format
-msgid "more sections in stripped file than debug file -- arguments reversed?"
-msgstr "more sections in stripped file than debug file -- arguments reversed?"
-
-#: src/unstrip.c:1303 src/unstrip.c:1393
-#, c-format
-msgid "cannot read section header string table: %s"
-msgstr "cannot read section header string table: %s"
-
-#: src/unstrip.c:1453
-#, c-format
-msgid "cannot add new section: %s"
-msgstr "cannot add new section: %s"
-
-#: src/unstrip.c:1555
-#, c-format
-msgid "symbol [%Zu] has invalid section index"
-msgstr "symbol [%Zu] has invalid section index"
-
-#: src/unstrip.c:1793
-#, c-format
-msgid "cannot read section data: %s"
-msgstr "cannot read section data: %s"
-
-#: src/unstrip.c:1814
-#, c-format
-msgid "cannot get ELF header: %s"
-msgstr "cannot get ELF header: %s"
-
-#: src/unstrip.c:1846
-#, c-format
-msgid "cannot update program header: %s"
-msgstr "cannot update program header: %s"
-
-#: src/unstrip.c:1851 src/unstrip.c:1934
-#, c-format
-msgid "cannot write output file: %s"
-msgstr "cannot write output file: %s"
-
-#: src/unstrip.c:1903
-#, c-format
-msgid "DWARF data not adjusted for prelinking bias; consider prelink -u"
-msgstr "DWARF data not adjusted for prelinking bias; consider prelink -u"
-
-#: src/unstrip.c:1906
-#, c-format
-msgid ""
-"DWARF data in '%s' not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-"DWARF data in ‘%s’ not adjusted for prelinking bias; consider prelink -"
-"u"
-
-#: src/unstrip.c:1925 src/unstrip.c:1976 src/unstrip.c:1988 src/unstrip.c:2074
-#, c-format
-msgid "cannot create ELF descriptor: %s"
-msgstr "cannot create ELF descriptor: %s"
-
-#: src/unstrip.c:1967
-msgid "WARNING: "
-msgstr "WARNING: "
-
-#: src/unstrip.c:1969
-msgid ", use --force"
-msgstr ", use --force"
-
-#: src/unstrip.c:1992
-msgid "ELF header identification (e_ident) different"
-msgstr "ELF header identification (e_ident) different"
-
-#: src/unstrip.c:1995
-msgid "ELF header type (e_type) different"
-msgstr "ELF header type (e_type) different"
-
-#: src/unstrip.c:1998
-msgid "ELF header machine type (e_machine) different"
-msgstr "ELF header machine type (e_machine) different"
-
-#: src/unstrip.c:2001
-msgid "stripped program header (e_phnum) smaller than unstripped"
-msgstr "stripped program header (e_phnum) smaller than unstripped"
-
-#: src/unstrip.c:2031
-#, c-format
-msgid "cannot find stripped file for module '%s': %s"
-msgstr "cannot find stripped file for module '%s': %s"
-
-#: src/unstrip.c:2035
-#, c-format
-msgid "cannot open stripped file '%s' for module '%s': %s"
-msgstr "cannot open stripped file ‘%s’ for module '%s': %s"
-
-#: src/unstrip.c:2050
-#, c-format
-msgid "cannot find debug file for module '%s': %s"
-msgstr "cannot find debug file for module '%s': %s"
-
-#: src/unstrip.c:2054
-#, c-format
-msgid "cannot open debug file '%s' for module '%s': %s"
-msgstr "cannot open debug file ‘%s’ for module '%s': %s"
-
-#: src/unstrip.c:2067
-#, c-format
-msgid "module '%s' file '%s' is not stripped"
-msgstr "module ‘%s’ file ‘%s’ is not stripped"
-
-#: src/unstrip.c:2098
-#, c-format
-msgid "cannot cache section addresses for module '%s': %s"
-msgstr "cannot cache section addresses for module '%s': %s"
-
-#: src/unstrip.c:2231
-#, c-format
-msgid "no matching modules found"
-msgstr "no matching modules found"
-
-#: src/unstrip.c:2240
-#, c-format
-msgid "matched more than one module"
-msgstr "matched more than one module"
-
-#: src/unstrip.c:2287
-msgid ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-msgstr ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-
-#: src/unstrip.c:2288
-msgid ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-msgstr ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
diff --git a/src/po/en@quot.gmo b/src/po/en@quot.gmo
deleted file mode 100644
index 57b504f5..00000000
--- a/src/po/en@quot.gmo
+++ /dev/null
Binary files differ
diff --git a/src/po/en@quot.header b/src/po/en@quot.header
deleted file mode 100644
index a9647fc3..00000000
--- a/src/po/en@quot.header
+++ /dev/null
@@ -1,22 +0,0 @@
-# All this catalog "translates" are quotation characters.
-# The msgids must be ASCII and therefore cannot contain real quotation
-# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
-# and double quote (0x22). These substitutes look strange; see
-# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
-#
-# This catalog translates grave accent (0x60) and apostrophe (0x27) to
-# left single quotation mark (U+2018) and right single quotation mark (U+2019).
-# It also translates pairs of apostrophe (0x27) to
-# left single quotation mark (U+2018) and right single quotation mark (U+2019)
-# and pairs of quotation mark (0x22) to
-# left double quotation mark (U+201C) and right double quotation mark (U+201D).
-#
-# When output to an UTF-8 terminal, the quotation characters appear perfectly.
-# When output to an ISO-8859-1 terminal, the single quotation marks are
-# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
-# grave/acute accent (by libiconv), and the double quotation marks are
-# transliterated to 0x22.
-# When output to an ASCII terminal, the single quotation marks are
-# transliterated to apostrophes, and the double quotation marks are
-# transliterated to 0x22.
-#
diff --git a/src/po/en@quot.po b/src/po/en@quot.po
deleted file mode 100644
index baef35e4..00000000
--- a/src/po/en@quot.po
+++ /dev/null
@@ -1,6662 +0,0 @@
-# English translations for elfutils package.
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is distributed under the same license as the elfutils package.
-# Automatically generated, 2014.
-#
-# All this catalog "translates" are quotation characters.
-# The msgids must be ASCII and therefore cannot contain real quotation
-# characters, only substitutes like grave accent (0x60), apostrophe (0x27)
-# and double quote (0x22). These substitutes look strange; see
-# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
-#
-# This catalog translates grave accent (0x60) and apostrophe (0x27) to
-# left single quotation mark (U+2018) and right single quotation mark (U+2019).
-# It also translates pairs of apostrophe (0x27) to
-# left single quotation mark (U+2018) and right single quotation mark (U+2019)
-# and pairs of quotation mark (0x22) to
-# left double quotation mark (U+201C) and right double quotation mark (U+201D).
-#
-# When output to an UTF-8 terminal, the quotation characters appear perfectly.
-# When output to an ISO-8859-1 terminal, the single quotation marks are
-# transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to
-# grave/acute accent (by libiconv), and the double quotation marks are
-# transliterated to 0x22.
-# When output to an ASCII terminal, the single quotation marks are
-# transliterated to apostrophes, and the double quotation marks are
-# transliterated to 0x22.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: elfutils 0.161\n"
-"Report-Msgid-Bugs-To: http://bugzilla.redhat.com/\n"
-"POT-Creation-Date: 2014-12-19 21:45+0100\n"
-"PO-Revision-Date: 2014-12-19 21:45+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
-"Language: en@quot\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#: lib/xmalloc.c:54 lib/xmalloc.c:68 lib/xmalloc.c:82 src/readelf.c:3182
-#: src/readelf.c:3559 src/readelf.c:8285 src/unstrip.c:2127 src/unstrip.c:2335
-#, c-format
-msgid "memory exhausted"
-msgstr "memory exhausted"
-
-#: libasm/asm_error.c:65 libdw/dwarf_error.c:58 libdwfl/libdwflP.h:53
-#: libelf/elf_error.c:60
-msgid "no error"
-msgstr "no error"
-
-#: libasm/asm_error.c:66 libdw/dwarf_error.c:67 libdwfl/libdwflP.h:55
-#: libelf/elf_error.c:91
-msgid "out of memory"
-msgstr "out of memory"
-
-#: libasm/asm_error.c:67 src/ldgeneric.c:2677
-#, c-format
-msgid "cannot create output file"
-msgstr "cannot create output file"
-
-#: libasm/asm_error.c:68
-msgid "invalid parameter"
-msgstr "invalid parameter"
-
-#: libasm/asm_error.c:69
-msgid "cannot change mode of output file"
-msgstr "cannot change mode of output file"
-
-#: libasm/asm_error.c:70 src/ldgeneric.c:6990
-#, c-format
-msgid "cannot rename output file"
-msgstr "cannot rename output file"
-
-#: libasm/asm_error.c:71
-msgid "duplicate symbol"
-msgstr "duplicate symbol"
-
-#: libasm/asm_error.c:72
-msgid "invalid section type for operation"
-msgstr "invalid section type for operation"
-
-#: libasm/asm_error.c:73
-msgid "error during output of data"
-msgstr "error during output of data"
-
-#: libasm/asm_error.c:74
-msgid "no backend support available"
-msgstr "no backend support available"
-
-#: libasm/asm_error.c:84 libdw/dwarf_error.c:59 libdwfl/libdwflP.h:54
-#: libelf/elf_error.c:63
-msgid "unknown error"
-msgstr "unknown error"
-
-#: libdw/dwarf_error.c:60
-msgid "invalid access"
-msgstr "invalid access"
-
-#: libdw/dwarf_error.c:61
-msgid "no regular file"
-msgstr "no regular file"
-
-#: libdw/dwarf_error.c:62
-msgid "I/O error"
-msgstr "I/O error"
-
-#: libdw/dwarf_error.c:63
-msgid "invalid ELF file"
-msgstr "invalid ELF file"
-
-#: libdw/dwarf_error.c:64
-msgid "no DWARF information"
-msgstr "no DWARF information"
-
-#: libdw/dwarf_error.c:65
-msgid "no ELF file"
-msgstr "no ELF file"
-
-#: libdw/dwarf_error.c:66
-msgid "cannot get ELF header"
-msgstr "cannot get ELF header"
-
-#: libdw/dwarf_error.c:68
-msgid "not implemented"
-msgstr "not implemented"
-
-#: libdw/dwarf_error.c:69 libelf/elf_error.c:107 libelf/elf_error.c:155
-msgid "invalid command"
-msgstr "invalid command"
-
-#: libdw/dwarf_error.c:70
-msgid "invalid version"
-msgstr "invalid version"
-
-#: libdw/dwarf_error.c:71
-msgid "invalid file"
-msgstr "invalid file"
-
-#: libdw/dwarf_error.c:72
-msgid "no entries found"
-msgstr "no entries found"
-
-#: libdw/dwarf_error.c:73
-msgid "invalid DWARF"
-msgstr "invalid DWARF"
-
-#: libdw/dwarf_error.c:74
-msgid "no string data"
-msgstr "no string data"
-
-#: libdw/dwarf_error.c:75
-msgid "no address value"
-msgstr "no address value"
-
-#: libdw/dwarf_error.c:76
-msgid "no constant value"
-msgstr "no constant value"
-
-#: libdw/dwarf_error.c:77
-msgid "no reference value"
-msgstr "no reference value"
-
-#: libdw/dwarf_error.c:78
-msgid "invalid reference value"
-msgstr "invalid reference value"
-
-#: libdw/dwarf_error.c:79
-msgid ".debug_line section missing"
-msgstr ".debug_line section missing"
-
-#: libdw/dwarf_error.c:80
-msgid "invalid .debug_line section"
-msgstr "invalid .debug_line section"
-
-#: libdw/dwarf_error.c:81
-msgid "debug information too big"
-msgstr "debug information too big"
-
-#: libdw/dwarf_error.c:82
-msgid "invalid DWARF version"
-msgstr "invalid DWARF version"
-
-#: libdw/dwarf_error.c:83
-msgid "invalid directory index"
-msgstr "invalid directory index"
-
-#: libdw/dwarf_error.c:84 libdwfl/libdwflP.h:74
-msgid "address out of range"
-msgstr "address out of range"
-
-#: libdw/dwarf_error.c:85
-msgid "no location list value"
-msgstr "no location list value"
-
-#: libdw/dwarf_error.c:86
-msgid "no block data"
-msgstr "no block data"
-
-#: libdw/dwarf_error.c:87
-msgid "invalid line index"
-msgstr "invalid line index"
-
-#: libdw/dwarf_error.c:88
-msgid "invalid address range index"
-msgstr "invalid address range index"
-
-#: libdw/dwarf_error.c:89 libdwfl/libdwflP.h:75
-msgid "no matching address range"
-msgstr "no matching address range"
-
-#: libdw/dwarf_error.c:90
-msgid "no flag value"
-msgstr "no flag value"
-
-#: libdw/dwarf_error.c:91 libelf/elf_error.c:232
-msgid "invalid offset"
-msgstr "invalid offset"
-
-#: libdw/dwarf_error.c:92
-msgid ".debug_ranges section missing"
-msgstr ".debug_ranges section missing"
-
-#: libdw/dwarf_error.c:93
-msgid "invalid CFI section"
-msgstr "invalid CFI section"
-
-#: libdw/dwarf_error.c:94
-msgid "no alternative debug link found"
-msgstr "no alternative debug link found"
-
-#: libdw/dwarf_error.c:95
-msgid "invalid opcode"
-msgstr "invalid opcode"
-
-#: libdwfl/argp-std.c:46 src/unstrip.c:2277
-msgid "Input selection options:"
-msgstr "Input selection options:"
-
-#: libdwfl/argp-std.c:47
-msgid "Find addresses in FILE"
-msgstr "Find addresses in FILE"
-
-#: libdwfl/argp-std.c:49
-msgid "Find addresses from signatures found in COREFILE"
-msgstr "Find addresses from signatures found in COREFILE"
-
-#: libdwfl/argp-std.c:51
-msgid "Find addresses in files mapped into process PID"
-msgstr "Find addresses in files mapped into process PID"
-
-#: libdwfl/argp-std.c:53
-msgid ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-msgstr ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-
-#: libdwfl/argp-std.c:55
-msgid "Find addresses in the running kernel"
-msgstr "Find addresses in the running kernel"
-
-#: libdwfl/argp-std.c:57
-msgid "Kernel with all modules"
-msgstr "Kernel with all modules"
-
-#: libdwfl/argp-std.c:59
-msgid "Search path for separate debuginfo files"
-msgstr "Search path for separate debuginfo files"
-
-#: libdwfl/argp-std.c:157
-msgid "only one of -e, -p, -k, -K, or --core allowed"
-msgstr "only one of -e, -p, -k, -K, or --core allowed"
-
-#: libdwfl/argp-std.c:230
-msgid "cannot load kernel symbols"
-msgstr "cannot load kernel symbols"
-
-#: libdwfl/argp-std.c:234
-msgid "cannot find kernel modules"
-msgstr "cannot find kernel modules"
-
-#: libdwfl/argp-std.c:251
-msgid "cannot find kernel or modules"
-msgstr "cannot find kernel or modules"
-
-#: libdwfl/argp-std.c:290
-#, c-format
-msgid "cannot read ELF core file: %s"
-msgstr "cannot read ELF core file: %s"
-
-#: libdwfl/argp-std.c:311
-msgid "No modules recognized in core file"
-msgstr "No modules recognized in core file"
-
-#: libdwfl/libdwflP.h:56
-msgid "See errno"
-msgstr "See errno"
-
-#: libdwfl/libdwflP.h:57
-msgid "See elf_errno"
-msgstr "See elf_errno"
-
-#: libdwfl/libdwflP.h:58
-msgid "See dwarf_errno"
-msgstr "See dwarf_errno"
-
-#: libdwfl/libdwflP.h:59
-msgid "See ebl_errno (XXX missing)"
-msgstr "See ebl_errno (XXX missing)"
-
-#: libdwfl/libdwflP.h:60
-msgid "gzip decompression failed"
-msgstr "gzip decompression failed"
-
-#: libdwfl/libdwflP.h:61
-msgid "bzip2 decompression failed"
-msgstr "bzip2 decompression failed"
-
-#: libdwfl/libdwflP.h:62
-msgid "LZMA decompression failed"
-msgstr "LZMA decompression failed"
-
-#: libdwfl/libdwflP.h:63
-msgid "no support library found for machine"
-msgstr "no support library found for machine"
-
-#: libdwfl/libdwflP.h:64
-msgid "Callbacks missing for ET_REL file"
-msgstr "Callbacks missing for ET_REL file"
-
-#: libdwfl/libdwflP.h:65
-msgid "Unsupported relocation type"
-msgstr "Unsupported relocation type"
-
-#: libdwfl/libdwflP.h:66
-msgid "r_offset is bogus"
-msgstr "r_offset is bogus"
-
-#: libdwfl/libdwflP.h:67 libelf/elf_error.c:111 libelf/elf_error.c:171
-msgid "offset out of range"
-msgstr "offset out of range"
-
-#: libdwfl/libdwflP.h:68
-msgid "relocation refers to undefined symbol"
-msgstr "relocation refers to undefined symbol"
-
-#: libdwfl/libdwflP.h:69
-msgid "Callback returned failure"
-msgstr "Callback returned failure"
-
-#: libdwfl/libdwflP.h:70
-msgid "No DWARF information found"
-msgstr "No DWARF information found"
-
-#: libdwfl/libdwflP.h:71
-msgid "No symbol table found"
-msgstr "No symbol table found"
-
-#: libdwfl/libdwflP.h:72
-msgid "No ELF program headers"
-msgstr "No ELF program headers"
-
-#: libdwfl/libdwflP.h:73
-msgid "address range overlaps an existing module"
-msgstr "address range overlaps an existing module"
-
-#: libdwfl/libdwflP.h:76
-msgid "image truncated"
-msgstr "image truncated"
-
-#: libdwfl/libdwflP.h:77
-msgid "ELF file opened"
-msgstr "ELF file opened"
-
-#: libdwfl/libdwflP.h:78
-msgid "not a valid ELF file"
-msgstr "not a valid ELF file"
-
-#: libdwfl/libdwflP.h:79
-msgid "cannot handle DWARF type description"
-msgstr "cannot handle DWARF type description"
-
-#: libdwfl/libdwflP.h:80
-msgid "ELF file does not match build ID"
-msgstr "ELF file does not match build ID"
-
-#: libdwfl/libdwflP.h:81
-msgid "corrupt .gnu.prelink_undo section data"
-msgstr "corrupt .gnu.prelink_undo section data"
-
-#: libdwfl/libdwflP.h:82
-msgid "Internal error due to ebl"
-msgstr "Internal error due to ebl"
-
-#: libdwfl/libdwflP.h:83
-msgid "Missing data in core file"
-msgstr "Missing data in core file"
-
-#: libdwfl/libdwflP.h:84
-msgid "Invalid register"
-msgstr "Invalid register"
-
-#: libdwfl/libdwflP.h:85
-msgid "Error reading process memory"
-msgstr "Error reading process memory"
-
-#: libdwfl/libdwflP.h:86
-msgid "Couldn't find architecture of any ELF"
-msgstr "Couldn't find architecture of any ELF"
-
-#: libdwfl/libdwflP.h:87
-msgid "Error parsing /proc filesystem"
-msgstr "Error parsing /proc filesystem"
-
-#: libdwfl/libdwflP.h:88
-msgid "Invalid DWARF"
-msgstr "Invalid DWARF"
-
-#: libdwfl/libdwflP.h:89
-msgid "Unsupported DWARF"
-msgstr "Unsupported DWARF"
-
-#: libdwfl/libdwflP.h:90
-msgid "Unable to find more threads"
-msgstr "Unable to find more threads"
-
-#: libdwfl/libdwflP.h:91
-msgid "Dwfl already has attached state"
-msgstr "Dwfl already has attached state"
-
-#: libdwfl/libdwflP.h:92
-msgid "Dwfl has no attached state"
-msgstr "Dwfl has no attached state"
-
-#: libdwfl/libdwflP.h:93
-msgid "Unwinding not supported for this architecture"
-msgstr "Unwinding not supported for this architecture"
-
-#: libdwfl/libdwflP.h:94
-msgid "Invalid argument"
-msgstr "Invalid argument"
-
-#: libdwfl/libdwflP.h:95
-msgid "Not an ET_CORE ELF file"
-msgstr "Not an ET_CORE ELF file"
-
-#: libebl/eblbackendname.c:42
-msgid "No backend"
-msgstr "No backend"
-
-#: libebl/eblcorenotetypename.c:102 libebl/eblobjecttypename.c:57
-#: libebl/eblobjnotetypename.c:73 libebl/eblosabiname.c:77
-#: libebl/eblsectionname.c:89 libebl/eblsectiontypename.c:119
-#: libebl/eblsegmenttypename.c:83
-msgid "<unknown>"
-msgstr "<unknown>"
-
-#: libebl/ebldynamictagname.c:105
-#, c-format
-msgid "<unknown>: %#<PRIx64>"
-msgstr "<unknown>: %#<PRIx64>"
-
-#: libebl/eblobjnote.c:55
-#, c-format
-msgid "unknown SDT version %u\n"
-msgstr "unknown SDT version %u\n"
-
-#: libebl/eblobjnote.c:73
-#, c-format
-msgid "invalid SDT probe descriptor\n"
-msgstr "invalid SDT probe descriptor\n"
-
-#: libebl/eblobjnote.c:123
-#, c-format
-msgid " PC: "
-msgstr " PC: "
-
-#: libebl/eblobjnote.c:125
-#, c-format
-msgid " Base: "
-msgstr " Base: "
-
-#: libebl/eblobjnote.c:127
-#, c-format
-msgid " Semaphore: "
-msgstr " Semaphore: "
-
-#: libebl/eblobjnote.c:129
-#, c-format
-msgid " Provider: "
-msgstr " Provider: "
-
-#: libebl/eblobjnote.c:131
-#, c-format
-msgid " Name: "
-msgstr " Name: "
-
-#: libebl/eblobjnote.c:133
-#, c-format
-msgid " Args: "
-msgstr " Args: "
-
-#: libebl/eblobjnote.c:143
-#, c-format
-msgid " Build ID: "
-msgstr " Build ID: "
-
-#: libebl/eblobjnote.c:154
-#, c-format
-msgid " Linker version: %.*s\n"
-msgstr " Linker version: %.*s\n"
-
-#: libebl/eblobjnote.c:203
-#, c-format
-msgid " OS: %s, ABI: "
-msgstr " OS: %s, ABI: "
-
-#: libebl/eblosabiname.c:74
-msgid "Stand alone"
-msgstr "Stand alone"
-
-#: libebl/eblsymbolbindingname.c:71 libebl/eblsymboltypename.c:77
-#, c-format
-msgid "<unknown>: %d"
-msgstr "<unknown>: %d"
-
-#: libelf/elf_error.c:67
-msgid "unknown version"
-msgstr "unknown version"
-
-#: libelf/elf_error.c:71
-msgid "unknown type"
-msgstr "unknown type"
-
-#: libelf/elf_error.c:75
-msgid "invalid `Elf' handle"
-msgstr "invalid ‘Elf’ handle"
-
-#: libelf/elf_error.c:79
-msgid "invalid size of source operand"
-msgstr "invalid size of source operand"
-
-#: libelf/elf_error.c:83
-msgid "invalid size of destination operand"
-msgstr "invalid size of destination operand"
-
-#: libelf/elf_error.c:87 src/readelf.c:5367
-#, c-format
-msgid "invalid encoding"
-msgstr "invalid encoding"
-
-#: libelf/elf_error.c:95
-msgid "invalid file descriptor"
-msgstr "invalid file descriptor"
-
-#: libelf/elf_error.c:99
-msgid "invalid operation"
-msgstr "invalid operation"
-
-#: libelf/elf_error.c:103
-msgid "ELF version not set"
-msgstr "ELF version not set"
-
-#: libelf/elf_error.c:115
-msgid "invalid fmag field in archive header"
-msgstr "invalid fmag field in archive header"
-
-#: libelf/elf_error.c:119
-msgid "invalid archive file"
-msgstr "invalid archive file"
-
-#: libelf/elf_error.c:123
-msgid "descriptor is not for an archive"
-msgstr "descriptor is not for an archive"
-
-#: libelf/elf_error.c:127
-msgid "no index available"
-msgstr "no index available"
-
-#: libelf/elf_error.c:131
-msgid "cannot read data from file"
-msgstr "cannot read data from file"
-
-#: libelf/elf_error.c:135
-msgid "cannot write data to file"
-msgstr "cannot write data to file"
-
-#: libelf/elf_error.c:139
-msgid "invalid binary class"
-msgstr "invalid binary class"
-
-#: libelf/elf_error.c:143
-msgid "invalid section index"
-msgstr "invalid section index"
-
-#: libelf/elf_error.c:147
-msgid "invalid operand"
-msgstr "invalid operand"
-
-#: libelf/elf_error.c:151
-msgid "invalid section"
-msgstr "invalid section"
-
-#: libelf/elf_error.c:159
-msgid "executable header not created first"
-msgstr "executable header not created first"
-
-#: libelf/elf_error.c:163
-msgid "file descriptor disabled"
-msgstr "file descriptor disabled"
-
-#: libelf/elf_error.c:167
-msgid "archive/member file descriptor mismatch"
-msgstr "archive/member file descriptor mismatch"
-
-#: libelf/elf_error.c:175
-msgid "cannot manipulate null section"
-msgstr "cannot manipulate null section"
-
-#: libelf/elf_error.c:179
-msgid "data/scn mismatch"
-msgstr "data/scn mismatch"
-
-#: libelf/elf_error.c:183
-msgid "invalid section header"
-msgstr "invalid section header"
-
-#: libelf/elf_error.c:187 src/readelf.c:7235 src/readelf.c:7683
-#: src/readelf.c:7784 src/readelf.c:7954
-#, c-format
-msgid "invalid data"
-msgstr "invalid data"
-
-#: libelf/elf_error.c:191
-msgid "unknown data encoding"
-msgstr "unknown data encoding"
-
-#: libelf/elf_error.c:195
-msgid "section `sh_size' too small for data"
-msgstr "section ‘sh_size’ too small for data"
-
-#: libelf/elf_error.c:199
-msgid "invalid section alignment"
-msgstr "invalid section alignment"
-
-#: libelf/elf_error.c:203
-msgid "invalid section entry size"
-msgstr "invalid section entry size"
-
-#: libelf/elf_error.c:207
-msgid "update() for write on read-only file"
-msgstr "update() for write on read-only file"
-
-#: libelf/elf_error.c:211
-msgid "no such file"
-msgstr "no such file"
-
-#: libelf/elf_error.c:215
-msgid "only relocatable files can contain section groups"
-msgstr "only relocatable files can contain section groups"
-
-#: libelf/elf_error.c:220
-msgid ""
-"program header only allowed in executables, shared objects, and core files"
-msgstr ""
-"program header only allowed in executables, shared objects, and core files"
-
-#: libelf/elf_error.c:227
-msgid "file has no program header"
-msgstr "file has no program header"
-
-#: src/addr2line.c:58
-msgid "Output selection options:"
-msgstr "Output selection options:"
-
-#: src/addr2line.c:59
-msgid "Show only base names of source files"
-msgstr "Show only base names of source files"
-
-#: src/addr2line.c:61
-msgid "Show absolute file names using compilation directory"
-msgstr "Show absolute file names using compilation directory"
-
-#: src/addr2line.c:62
-msgid "Also show function names"
-msgstr "Also show function names"
-
-#: src/addr2line.c:63
-msgid "Also show symbol or section names"
-msgstr "Also show symbol or section names"
-
-#: src/addr2line.c:64
-msgid "Also show symbol and the section names"
-msgstr "Also show symbol and the section names"
-
-#: src/addr2line.c:65
-msgid "Also show line table flags"
-msgstr "Also show line table flags"
-
-#: src/addr2line.c:67
-msgid "Treat addresses as offsets relative to NAME section."
-msgstr "Treat addresses as offsets relative to NAME section."
-
-#: src/addr2line.c:69
-msgid ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-msgstr ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-
-#: src/addr2line.c:72 src/elfcmp.c:72 src/findtextrel.c:67 src/nm.c:100
-#: src/strings.c:75
-msgid "Miscellaneous:"
-msgstr "Miscellaneous:"
-
-#: src/addr2line.c:81
-msgid ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-msgstr ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-
-#: src/addr2line.c:85
-msgid "[ADDR...]"
-msgstr "[ADDR...]"
-
-#: src/addr2line.c:196 src/ar.c:289 src/elfcmp.c:663 src/elflint.c:235
-#: src/findtextrel.c:162 src/ld.c:949 src/nm.c:265 src/objdump.c:181
-#: src/ranlib.c:128 src/readelf.c:500 src/size.c:211 src/strings.c:226
-#: src/strip.c:213 src/unstrip.c:233
-#, c-format
-msgid ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-msgstr ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-
-#: src/addr2line.c:201 src/ar.c:294 src/elfcmp.c:668 src/elflint.c:240
-#: src/findtextrel.c:167 src/ld.c:954 src/nm.c:270 src/objdump.c:186
-#: src/ranlib.c:133 src/readelf.c:505 src/size.c:216 src/strings.c:231
-#: src/strip.c:218 src/unstrip.c:238
-#, c-format
-msgid "Written by %s.\n"
-msgstr "Written by %s.\n"
-
-#: src/addr2line.c:474
-#, c-format
-msgid "Section syntax requires exactly one module"
-msgstr "Section syntax requires exactly one module"
-
-#: src/addr2line.c:497
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside section '%s'"
-msgstr "offset %#<PRIxMAX> lies outside section ‘%s’"
-
-#: src/addr2line.c:563
-#, c-format
-msgid "cannot find symbol '%s'"
-msgstr "cannot find symbol ‘%s’"
-
-#: src/addr2line.c:568
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside contents of '%s'"
-msgstr "offset %#<PRIxMAX> lies outside contents of ‘%s’"
-
-#: src/ar.c:69
-msgid "Commands:"
-msgstr "Commands:"
-
-#: src/ar.c:70
-msgid "Delete files from archive."
-msgstr "Delete files from archive."
-
-#: src/ar.c:71
-msgid "Move files in archive."
-msgstr "Move files in archive."
-
-#: src/ar.c:72
-msgid "Print files in archive."
-msgstr "Print files in archive."
-
-#: src/ar.c:73
-msgid "Quick append files to archive."
-msgstr "Quick append files to archive."
-
-#: src/ar.c:75
-msgid "Replace existing or insert new file into archive."
-msgstr "Replace existing or insert new file into archive."
-
-#: src/ar.c:76
-msgid "Display content of archive."
-msgstr "Display content of archive."
-
-#: src/ar.c:77
-msgid "Extract files from archive."
-msgstr "Extract files from archive."
-
-#: src/ar.c:79
-msgid "Command Modifiers:"
-msgstr "Command Modifiers:"
-
-#: src/ar.c:80
-msgid "Preserve original dates."
-msgstr "Preserve original dates."
-
-#: src/ar.c:81
-msgid "Use instance [COUNT] of name."
-msgstr "Use instance [COUNT] of name."
-
-#: src/ar.c:83
-msgid "Do not replace existing files with extracted files."
-msgstr "Do not replace existing files with extracted files."
-
-#: src/ar.c:84
-msgid "Allow filename to be truncated if necessary."
-msgstr "Allow filename to be truncated if necessary."
-
-#: src/ar.c:86
-msgid "Provide verbose output."
-msgstr "Provide verbose output."
-
-#: src/ar.c:87
-msgid "Force regeneration of symbol table."
-msgstr "Force regeneration of symbol table."
-
-#: src/ar.c:88
-msgid "Insert file after [MEMBER]."
-msgstr "Insert file after [MEMBER]."
-
-#: src/ar.c:89
-msgid "Insert file before [MEMBER]."
-msgstr "Insert file before [MEMBER]."
-
-#: src/ar.c:90
-msgid "Same as -b."
-msgstr "Same as -b."
-
-#: src/ar.c:91
-msgid "Suppress message when library has to be created."
-msgstr "Suppress message when library has to be created."
-
-#: src/ar.c:93
-msgid "Use full path for file matching."
-msgstr "Use full path for file matching."
-
-#: src/ar.c:94
-msgid "Update only older files in archive."
-msgstr "Update only older files in archive."
-
-#: src/ar.c:100
-msgid "Create, modify, and extract from archives."
-msgstr "Create, modify, and extract from archives."
-
-#: src/ar.c:103
-msgid "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-msgstr "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-
-#: src/ar.c:185
-#, c-format
-msgid "'a', 'b', and 'i' are only allowed with the 'm' and 'r' options"
-msgstr "'a', 'b', and ‘i’ are only allowed with the ‘m’ and ‘r’ options"
-
-#: src/ar.c:190
-#, c-format
-msgid "MEMBER parameter required for 'a', 'b', and 'i' modifiers"
-msgstr "MEMBER parameter required for 'a', 'b', and ‘i’ modifiers"
-
-#: src/ar.c:206
-#, c-format
-msgid "'N' is only meaningful with the 'x' and 'd' options"
-msgstr "‘N’ is only meaningful with the ‘x’ and ‘d’ options"
-
-#: src/ar.c:211
-#, c-format
-msgid "COUNT parameter required"
-msgstr "COUNT parameter required"
-
-#: src/ar.c:223
-#, c-format
-msgid "invalid COUNT parameter %s"
-msgstr "invalid COUNT parameter %s"
-
-#: src/ar.c:230
-#, c-format
-msgid "'%c' is only meaningful with the 'x' option"
-msgstr "‘%c’ is only meaningful with the ‘x’ option"
-
-#: src/ar.c:236
-#, c-format
-msgid "archive name required"
-msgstr "archive name required"
-
-#: src/ar.c:249
-#, c-format
-msgid "command option required"
-msgstr "command option required"
-
-#: src/ar.c:314
-#, c-format
-msgid "More than one operation specified"
-msgstr "More than one operation specified"
-
-#: src/ar.c:408
-#, c-format
-msgid "cannot open archive '%s'"
-msgstr "cannot open archive ‘%s’"
-
-#: src/ar.c:418
-#, c-format
-msgid "cannot open archive '%s': %s"
-msgstr "cannot open archive '%s': %s"
-
-#: src/ar.c:422
-#, c-format
-msgid "%s: not an archive file"
-msgstr "%s: not an archive file"
-
-#: src/ar.c:426
-#, c-format
-msgid "cannot stat archive '%s'"
-msgstr "cannot stat archive ‘%s’"
-
-#: src/ar.c:438
-#, c-format
-msgid "no entry %s in archive\n"
-msgstr "no entry %s in archive\n"
-
-#: src/ar.c:491 src/ar.c:933 src/ar.c:1133
-#, c-format
-msgid "cannot create hash table"
-msgstr "cannot create hash table"
-
-#: src/ar.c:498 src/ar.c:940 src/ar.c:1142
-#, c-format
-msgid "cannot insert into hash table"
-msgstr "cannot insert into hash table"
-
-#: src/ar.c:506 src/ranlib.c:168
-#, c-format
-msgid "cannot stat '%s'"
-msgstr "cannot stat ‘%s’"
-
-#: src/ar.c:602
-#, c-format
-msgid "cannot read content of %s: %s"
-msgstr "cannot read content of %s: %s"
-
-#: src/ar.c:645
-#, c-format
-msgid "cannot open %.*s"
-msgstr "cannot open %.*s"
-
-#: src/ar.c:667
-#, c-format
-msgid "failed to write %s"
-msgstr "failed to write %s"
-
-#: src/ar.c:679
-#, c-format
-msgid "cannot change mode of %s"
-msgstr "cannot change mode of %s"
-
-#: src/ar.c:695
-#, c-format
-msgid "cannot change modification time of %s"
-msgstr "cannot change modification time of %s"
-
-#: src/ar.c:741
-#, c-format
-msgid "cannot rename temporary file to %.*s"
-msgstr "cannot rename temporary file to %.*s"
-
-#: src/ar.c:777 src/ar.c:1025 src/ar.c:1424 src/ranlib.c:242
-#, c-format
-msgid "cannot create new file"
-msgstr "cannot create new file"
-
-#: src/ar.c:1224
-#, c-format
-msgid "position member %s not found"
-msgstr "position member %s not found"
-
-#: src/ar.c:1234
-#, c-format
-msgid "%s: no entry %s in archive!\n"
-msgstr "%s: no entry %s in archive!\n"
-
-#: src/ar.c:1263 src/ldgeneric.c:509 src/objdump.c:257
-#, c-format
-msgid "cannot open %s"
-msgstr "cannot open %s"
-
-#: src/ar.c:1268
-#, c-format
-msgid "cannot stat %s"
-msgstr "cannot stat %s"
-
-#: src/ar.c:1274
-#, c-format
-msgid "%s is no regular file"
-msgstr "%s is no regular file"
-
-#: src/ar.c:1287
-#, c-format
-msgid "cannot get ELF descriptor for %s: %s\n"
-msgstr "cannot get ELF descriptor for %s: %s\n"
-
-#: src/ar.c:1307
-#, c-format
-msgid "cannot read %s: %s"
-msgstr "cannot read %s: %s"
-
-#: src/arlib.c:209
-#, c-format
-msgid "the archive '%s' is too large"
-msgstr "the archive ‘%s’ is too large"
-
-#: src/arlib.c:222
-#, c-format
-msgid "cannot read ELF header of %s(%s): %s"
-msgstr "cannot read ELF header of %s(%s): %s"
-
-#: src/elfcmp.c:62
-msgid "Control options:"
-msgstr "Control options:"
-
-#: src/elfcmp.c:64
-msgid "Output all differences, not just the first"
-msgstr "Output all differences, not just the first"
-
-#: src/elfcmp.c:65
-msgid ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-msgstr ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-
-#: src/elfcmp.c:67
-msgid "Ignore permutation of buckets in SHT_HASH section"
-msgstr "Ignore permutation of buckets in SHT_HASH section"
-
-#: src/elfcmp.c:69
-msgid "Ignore differences in build ID"
-msgstr "Ignore differences in build ID"
-
-#: src/elfcmp.c:70
-msgid "Output nothing; yield exit status only"
-msgstr "Output nothing; yield exit status only"
-
-#: src/elfcmp.c:77
-msgid "Compare relevant parts of two ELF files for equality."
-msgstr "Compare relevant parts of two ELF files for equality."
-
-#: src/elfcmp.c:81
-msgid "FILE1 FILE2"
-msgstr "FILE1 FILE2"
-
-#: src/elfcmp.c:143
-msgid "Invalid number of parameters.\n"
-msgstr "Invalid number of parameters.\n"
-
-#: src/elfcmp.c:174 src/elfcmp.c:179
-#, c-format
-msgid "cannot get ELF header of '%s': %s"
-msgstr "cannot get ELF header of '%s': %s"
-
-#: src/elfcmp.c:205
-#, c-format
-msgid "%s %s diff: ELF header"
-msgstr "%s %s diff: ELF header"
-
-#: src/elfcmp.c:212 src/elfcmp.c:215
-#, c-format
-msgid "cannot get section count of '%s': %s"
-msgstr "cannot get section count of '%s': %s"
-
-#: src/elfcmp.c:220
-#, c-format
-msgid "%s %s diff: section count"
-msgstr "%s %s diff: section count"
-
-#: src/elfcmp.c:227 src/elfcmp.c:230
-#, c-format
-msgid "cannot get program header count of '%s': %s"
-msgstr "cannot get program header count of '%s': %s"
-
-#: src/elfcmp.c:235
-#, c-format
-msgid "%s %s diff: program header count"
-msgstr "%s %s diff: program header count"
-
-#: src/elfcmp.c:292
-#, c-format
-msgid "%s %s differ: section [%zu], [%zu] name"
-msgstr "%s %s differ: section [%zu], [%zu] name"
-
-#: src/elfcmp.c:315
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' header"
-msgstr "%s %s differ: section [%zu] ‘%s’ header"
-
-#: src/elfcmp.c:323 src/elfcmp.c:329
-#, c-format
-msgid "cannot get content of section %zu in '%s': %s"
-msgstr "cannot get content of section %zu in '%s': %s"
-
-#: src/elfcmp.c:345 src/elfcmp.c:351
-#, c-format
-msgid "cannot get symbol in '%s': %s"
-msgstr "cannot get symbol in '%s': %s"
-
-#: src/elfcmp.c:373
-#, c-format
-msgid "%s %s differ: symbol table [%zu]"
-msgstr "%s %s differ: symbol table [%zu]"
-
-#: src/elfcmp.c:376
-#, c-format
-msgid "%s %s differ: symbol table [%zu,%zu]"
-msgstr "%s %s differ: symbol table [%zu,%zu]"
-
-#: src/elfcmp.c:422 src/elfcmp.c:491
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' number of notes"
-msgstr "%s %s differ: section [%zu] ‘%s’ number of notes"
-
-#: src/elfcmp.c:430
-#, c-format
-msgid "cannot read note section [%zu] '%s' in '%s': %s"
-msgstr "cannot read note section [%zu] ‘%s’ in '%s': %s"
-
-#: src/elfcmp.c:440
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note name"
-msgstr "%s %s differ: section [%zu] ‘%s’ note name"
-
-#: src/elfcmp.c:448
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' type"
-msgstr "%s %s differ: section [%zu] ‘%s’ note ‘%s’ type"
-
-#: src/elfcmp.c:463
-#, c-format
-msgid "%s %s differ: build ID length"
-msgstr "%s %s differ: build ID length"
-
-#: src/elfcmp.c:471
-#, c-format
-msgid "%s %s differ: build ID content"
-msgstr "%s %s differ: build ID content"
-
-#: src/elfcmp.c:480
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' content"
-msgstr "%s %s differ: section [%zu] ‘%s’ note ‘%s’ content"
-
-#: src/elfcmp.c:520
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' content"
-msgstr "%s %s differ: section [%zu] ‘%s’ content"
-
-#: src/elfcmp.c:524
-#, c-format
-msgid "%s %s differ: section [%zu,%zu] '%s' content"
-msgstr "%s %s differ: section [%zu,%zu] ‘%s’ content"
-
-#: src/elfcmp.c:539
-#, c-format
-msgid "%s %s differ: unequal amount of important sections"
-msgstr "%s %s differ: unequal amount of important sections"
-
-#: src/elfcmp.c:572 src/elfcmp.c:577
-#, c-format
-msgid "cannot load data of '%s': %s"
-msgstr "cannot load data of '%s': %s"
-
-#: src/elfcmp.c:596 src/elfcmp.c:602
-#, c-format
-msgid "cannot get program header entry %d of '%s': %s"
-msgstr "cannot get program header entry %d of '%s': %s"
-
-#: src/elfcmp.c:608
-#, c-format
-msgid "%s %s differ: program header %d"
-msgstr "%s %s differ: program header %d"
-
-#: src/elfcmp.c:632
-#, c-format
-msgid "%s %s differ: gap"
-msgstr "%s %s differ: gap"
-
-#: src/elfcmp.c:695
-#, c-format
-msgid "Invalid value '%s' for --gaps parameter."
-msgstr "Invalid value ‘%s’ for --gaps parameter."
-
-#: src/elfcmp.c:723 src/findtextrel.c:221 src/ldgeneric.c:1757
-#: src/ldgeneric.c:4247 src/nm.c:381 src/ranlib.c:161 src/size.c:293
-#: src/strings.c:182 src/strip.c:451 src/strip.c:488 src/unstrip.c:1923
-#: src/unstrip.c:1952
-#, c-format
-msgid "cannot open '%s'"
-msgstr "cannot open ‘%s’"
-
-#: src/elfcmp.c:727 src/findtextrel.c:228 src/ranlib.c:178
-#, c-format
-msgid "cannot create ELF descriptor for '%s': %s"
-msgstr "cannot create ELF descriptor for '%s': %s"
-
-#: src/elfcmp.c:732
-#, c-format
-msgid "cannot create EBL descriptor for '%s'"
-msgstr "cannot create EBL descriptor for ‘%s’"
-
-#: src/elfcmp.c:750
-#, c-format
-msgid "cannot get section header of section %zu: %s"
-msgstr "cannot get section header of section %zu: %s"
-
-#: src/elfcmp.c:760
-#, c-format
-msgid "cannot get content of section %zu: %s"
-msgstr "cannot get content of section %zu: %s"
-
-#: src/elfcmp.c:770 src/elfcmp.c:784
-#, c-format
-msgid "cannot get relocation: %s"
-msgstr "cannot get relocation: %s"
-
-#: src/elflint.c:64
-msgid "Be extremely strict, flag level 2 features."
-msgstr "Be extremely strict, flag level 2 features."
-
-#: src/elflint.c:65
-msgid "Do not print anything if successful"
-msgstr "Do not print anything if successful"
-
-#: src/elflint.c:66
-msgid "Binary is a separate debuginfo file"
-msgstr "Binary is a separate debuginfo file"
-
-#: src/elflint.c:68
-msgid ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-msgstr ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-
-#: src/elflint.c:74
-msgid "Pedantic checking of ELF files compliance with gABI/psABI spec."
-msgstr "Pedantic checking of ELF files compliance with gABI/psABI spec."
-
-#: src/elflint.c:78 src/readelf.c:123
-msgid "FILE..."
-msgstr "FILE..."
-
-#: src/elflint.c:155 src/readelf.c:292
-#, c-format
-msgid "cannot open input file"
-msgstr "cannot open input file"
-
-#: src/elflint.c:162
-#, c-format
-msgid "cannot generate Elf descriptor: %s\n"
-msgstr "cannot generate Elf descriptor: %s\n"
-
-#: src/elflint.c:181
-#, c-format
-msgid "error while closing Elf descriptor: %s\n"
-msgstr "error while closing Elf descriptor: %s\n"
-
-#: src/elflint.c:185
-msgid "No errors"
-msgstr "No errors"
-
-#: src/elflint.c:219 src/readelf.c:468
-msgid "Missing file name.\n"
-msgstr "Missing file name.\n"
-
-#: src/elflint.c:298
-#, c-format
-msgid " error while freeing sub-ELF descriptor: %s\n"
-msgstr " error while freeing sub-ELF descriptor: %s\n"
-
-#: src/elflint.c:306
-#, c-format
-msgid "Not an ELF file - it has the wrong magic bytes at the start\n"
-msgstr "Not an ELF file - it has the wrong magic bytes at the start\n"
-
-#: src/elflint.c:371
-#, c-format
-msgid "e_ident[%d] == %d is no known class\n"
-msgstr "e_ident[%d] == %d is no known class\n"
-
-#: src/elflint.c:376
-#, c-format
-msgid "e_ident[%d] == %d is no known data encoding\n"
-msgstr "e_ident[%d] == %d is no known data encoding\n"
-
-#: src/elflint.c:380
-#, c-format
-msgid "unknown ELF header version number e_ident[%d] == %d\n"
-msgstr "unknown ELF header version number e_ident[%d] == %d\n"
-
-#: src/elflint.c:386
-#, c-format
-msgid "unsupported OS ABI e_ident[%d] == '%s'\n"
-msgstr "unsupported OS ABI e_ident[%d] == ‘%s’\n"
-
-#: src/elflint.c:392
-#, c-format
-msgid "unsupport ABI version e_ident[%d] == %d\n"
-msgstr "unsupport ABI version e_ident[%d] == %d\n"
-
-#: src/elflint.c:397
-#, c-format
-msgid "e_ident[%zu] is not zero\n"
-msgstr "e_ident[%zu] is not zero\n"
-
-#: src/elflint.c:402
-#, c-format
-msgid "unknown object file type %d\n"
-msgstr "unknown object file type %d\n"
-
-#: src/elflint.c:409
-#, c-format
-msgid "unknown machine type %d\n"
-msgstr "unknown machine type %d\n"
-
-#: src/elflint.c:413
-#, c-format
-msgid "unknown object file version\n"
-msgstr "unknown object file version\n"
-
-#: src/elflint.c:419
-#, c-format
-msgid "invalid program header offset\n"
-msgstr "invalid program header offset\n"
-
-#: src/elflint.c:421
-#, c-format
-msgid "executables and DSOs cannot have zero program header offset\n"
-msgstr "executables and DSOs cannot have zero program header offset\n"
-
-#: src/elflint.c:425
-#, c-format
-msgid "invalid number of program header entries\n"
-msgstr "invalid number of program header entries\n"
-
-#: src/elflint.c:433
-#, c-format
-msgid "invalid section header table offset\n"
-msgstr "invalid section header table offset\n"
-
-#: src/elflint.c:436
-#, c-format
-msgid "section header table must be present\n"
-msgstr "section header table must be present\n"
-
-#: src/elflint.c:450
-#, c-format
-msgid "invalid number of section header table entries\n"
-msgstr "invalid number of section header table entries\n"
-
-#: src/elflint.c:467
-#, c-format
-msgid "invalid section header index\n"
-msgstr "invalid section header index\n"
-
-#: src/elflint.c:481
-#, c-format
-msgid "invalid number of program header table entries\n"
-msgstr "invalid number of program header table entries\n"
-
-#: src/elflint.c:490
-#, c-format
-msgid "invalid machine flags: %s\n"
-msgstr "invalid machine flags: %s\n"
-
-#: src/elflint.c:497 src/elflint.c:514
-#, c-format
-msgid "invalid ELF header size: %hd\n"
-msgstr "invalid ELF header size: %hd\n"
-
-#: src/elflint.c:500 src/elflint.c:517
-#, c-format
-msgid "invalid program header size: %hd\n"
-msgstr "invalid program header size: %hd\n"
-
-#: src/elflint.c:503 src/elflint.c:520
-#, c-format
-msgid "invalid program header position or size\n"
-msgstr "invalid program header position or size\n"
-
-#: src/elflint.c:506 src/elflint.c:523
-#, c-format
-msgid "invalid section header size: %hd\n"
-msgstr "invalid section header size: %hd\n"
-
-#: src/elflint.c:509 src/elflint.c:526
-#, c-format
-msgid "invalid section header position or size\n"
-msgstr "invalid section header position or size\n"
-
-#: src/elflint.c:570
-#, c-format
-msgid ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-msgstr ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-
-#: src/elflint.c:574
-#, c-format
-msgid ""
-"section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"
-msgstr ""
-"section [%2d] '%s': section group [%2zu] ‘%s’ does not precede group member\n"
-
-#: src/elflint.c:590 src/elflint.c:1457 src/elflint.c:1508 src/elflint.c:1614
-#: src/elflint.c:1939 src/elflint.c:2228 src/elflint.c:2742 src/elflint.c:2904
-#: src/elflint.c:3034 src/elflint.c:3206 src/elflint.c:4108
-#, c-format
-msgid "section [%2d] '%s': cannot get section data\n"
-msgstr "section [%2d] '%s': cannot get section data\n"
-
-#: src/elflint.c:603 src/elflint.c:1621
-#, c-format
-msgid ""
-"section [%2d] '%s': referenced as string table for section [%2d] '%s' but "
-"type is not SHT_STRTAB\n"
-msgstr ""
-"section [%2d] '%s': referenced as string table for section [%2d] ‘%s’ but "
-"type is not SHT_STRTAB\n"
-
-#: src/elflint.c:626
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-msgstr ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-
-#: src/elflint.c:638
-#, c-format
-msgid "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-msgstr "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-
-#: src/elflint.c:647
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %d: %s\n"
-msgstr "section [%2d] '%s': cannot get symbol %d: %s\n"
-
-#: src/elflint.c:652 src/elflint.c:655 src/elflint.c:658 src/elflint.c:661
-#: src/elflint.c:664 src/elflint.c:667
-#, c-format
-msgid "section [%2d] '%s': '%s' in zeroth entry not zero\n"
-msgstr "section [%2d] '%s': ‘%s’ in zeroth entry not zero\n"
-
-#: src/elflint.c:670
-#, c-format
-msgid "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-msgstr "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-
-#: src/elflint.c:680
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %zu: %s\n"
-msgstr "section [%2d] '%s': cannot get symbol %zu: %s\n"
-
-#: src/elflint.c:689
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid name value\n"
-msgstr "section [%2d] '%s': symbol %zu: invalid name value\n"
-
-#: src/elflint.c:704
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-
-#: src/elflint.c:710
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-
-#: src/elflint.c:722
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid section index\n"
-msgstr "section [%2d] '%s': symbol %zu: invalid section index\n"
-
-#: src/elflint.c:730
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown type\n"
-msgstr "section [%2d] '%s': symbol %zu: unknown type\n"
-
-#: src/elflint.c:736
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-msgstr "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-
-#: src/elflint.c:741
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-msgstr "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-
-#: src/elflint.c:749
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-
-#: src/elflint.c:753
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-msgstr "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-
-#: src/elflint.c:757
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-
-#: src/elflint.c:804
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-msgstr "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-
-#: src/elflint.c:810 src/elflint.c:835 src/elflint.c:878
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] ‘%s’\n"
-
-#: src/elflint.c:819
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have "
-"SHF_TLS flag set\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] ‘%s’ does not have "
-"SHF_TLS flag set\n"
-
-#: src/elflint.c:829 src/elflint.c:871
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] ‘%s’\n"
-
-#: src/elflint.c:856
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-
-#: src/elflint.c:864
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"'%s'\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"‘%s’\n"
-
-#: src/elflint.c:891
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-
-#: src/elflint.c:898
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-
-#: src/elflint.c:905
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-msgstr "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-
-#: src/elflint.c:955
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-
-#: src/elflint.c:962
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"'%s'\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"‘%s’\n"
-
-#: src/elflint.c:978
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-
-#: src/elflint.c:985
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-
-#: src/elflint.c:993
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-msgstr ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-
-#: src/elflint.c:1009
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-msgstr ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-
-#: src/elflint.c:1016
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-msgstr ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-
-#: src/elflint.c:1029
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-msgstr ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-
-#: src/elflint.c:1033
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-msgstr "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-
-#: src/elflint.c:1082
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-msgstr "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-
-#: src/elflint.c:1093 src/elflint.c:1145
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-msgstr "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-
-#: src/elflint.c:1118 src/elflint.c:1170
-#, c-format
-msgid ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-msgstr ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-
-#: src/elflint.c:1124 src/elflint.c:1176
-#, c-format
-msgid ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-msgstr ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-
-#: src/elflint.c:1136
-#, c-format
-msgid "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-msgstr "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-
-#: src/elflint.c:1218
-#, c-format
-msgid "section [%2d] '%s': invalid destination section index\n"
-msgstr "section [%2d] '%s': invalid destination section index\n"
-
-#: src/elflint.c:1230
-#, c-format
-msgid "section [%2d] '%s': invalid destination section type\n"
-msgstr "section [%2d] '%s': invalid destination section type\n"
-
-#: src/elflint.c:1238
-#, c-format
-msgid "section [%2d] '%s': sh_info should be zero\n"
-msgstr "section [%2d] '%s': sh_info should be zero\n"
-
-#: src/elflint.c:1245
-#, c-format
-msgid "section [%2d] '%s': no relocations for merge-able sections possible\n"
-msgstr "section [%2d] '%s': no relocations for merge-able sections possible\n"
-
-#: src/elflint.c:1253
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-msgstr "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-
-#: src/elflint.c:1313
-#, c-format
-msgid "text relocation flag set but there is no read-only segment\n"
-msgstr "text relocation flag set but there is no read-only segment\n"
-
-#: src/elflint.c:1340
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid type\n"
-msgstr "section [%2d] '%s': relocation %zu: invalid type\n"
-
-#: src/elflint.c:1348
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-msgstr ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-
-#: src/elflint.c:1356
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-msgstr "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-
-#: src/elflint.c:1374
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can "
-"be used with %s\n"
-msgstr ""
-"section [%2d] '%s': relocation %zu: only symbol ‘_GLOBAL_OFFSET_TABLE_’ can "
-"be used with %s\n"
-
-#: src/elflint.c:1391
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-msgstr "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-
-#: src/elflint.c:1406
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-msgstr ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-
-#: src/elflint.c:1427
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-msgstr ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-
-#: src/elflint.c:1442
-#, c-format
-msgid "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-msgstr "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-
-#: src/elflint.c:1482 src/elflint.c:1533
-#, c-format
-msgid "section [%2d] '%s': cannot get relocation %zu: %s\n"
-msgstr "section [%2d] '%s': cannot get relocation %zu: %s\n"
-
-#: src/elflint.c:1609
-#, c-format
-msgid "more than one dynamic section present\n"
-msgstr "more than one dynamic section present\n"
-
-#: src/elflint.c:1628
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-msgstr "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-
-#: src/elflint.c:1633 src/elflint.c:1918
-#, c-format
-msgid "section [%2d] '%s': sh_info not zero\n"
-msgstr "section [%2d] '%s': sh_info not zero\n"
-
-#: src/elflint.c:1643
-#, c-format
-msgid "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-msgstr "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-
-#: src/elflint.c:1651
-#, c-format
-msgid "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-msgstr "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-
-#: src/elflint.c:1658
-#, c-format
-msgid "section [%2d] '%s': entry %zu: unknown tag\n"
-msgstr "section [%2d] '%s': entry %zu: unknown tag\n"
-
-#: src/elflint.c:1669
-#, c-format
-msgid "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-msgstr "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-
-#: src/elflint.c:1679
-#, c-format
-msgid "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-msgstr "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-
-#: src/elflint.c:1697
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-msgstr ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-
-#: src/elflint.c:1710
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] '%s' referenced by sh_link\n"
-msgstr ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] ‘%s’ referenced by sh_link\n"
-
-#: src/elflint.c:1753
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-msgstr ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-
-#: src/elflint.c:1768
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] '%s'\n"
-msgstr ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] ‘%s’\n"
-
-#: src/elflint.c:1788 src/elflint.c:1816
-#, c-format
-msgid "section [%2d] '%s': contains %s entry but not %s\n"
-msgstr "section [%2d] '%s': contains %s entry but not %s\n"
-
-#: src/elflint.c:1800
-#, c-format
-msgid "section [%2d] '%s': mandatory tag %s not present\n"
-msgstr "section [%2d] '%s': mandatory tag %s not present\n"
-
-#: src/elflint.c:1809
-#, c-format
-msgid "section [%2d] '%s': no hash section present\n"
-msgstr "section [%2d] '%s': no hash section present\n"
-
-#: src/elflint.c:1824 src/elflint.c:1831
-#, c-format
-msgid "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-msgstr "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-
-#: src/elflint.c:1841 src/elflint.c:1845
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-msgstr "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-
-#: src/elflint.c:1851
-#, c-format
-msgid "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-msgstr "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-
-#: src/elflint.c:1862 src/elflint.c:1866 src/elflint.c:1870 src/elflint.c:1874
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in prelinked executable\n"
-msgstr "section [%2d] '%s': %s tag missing in prelinked executable\n"
-
-#: src/elflint.c:1886
-#, c-format
-msgid ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-msgstr ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-
-#: src/elflint.c:1896
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-msgstr ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-
-#: src/elflint.c:1901
-#, c-format
-msgid "cannot get data for symbol section\n"
-msgstr "cannot get data for symbol section\n"
-
-#: src/elflint.c:1904
-#, c-format
-msgid "section [%2d] '%s': entry size does not match Elf32_Word\n"
-msgstr "section [%2d] '%s': entry size does not match Elf32_Word\n"
-
-#: src/elflint.c:1913
-#, c-format
-msgid "section [%2d] '%s': extended index table too small for symbol table\n"
-msgstr "section [%2d] '%s': extended index table too small for symbol table\n"
-
-#: src/elflint.c:1928
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index in section [%2zu] '%s' refers to "
-"same symbol table\n"
-msgstr ""
-"section [%2d] '%s': extended section index in section [%2zu] ‘%s’ refers to "
-"same symbol table\n"
-
-#: src/elflint.c:1945
-#, c-format
-msgid "symbol 0 should have zero extended section index\n"
-msgstr "symbol 0 should have zero extended section index\n"
-
-#: src/elflint.c:1957
-#, c-format
-msgid "cannot get data for symbol %zu\n"
-msgstr "cannot get data for symbol %zu\n"
-
-#: src/elflint.c:1962
-#, c-format
-msgid "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-msgstr "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-
-#: src/elflint.c:1978 src/elflint.c:2029
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-msgstr ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-
-#: src/elflint.c:1990 src/elflint.c:2041
-#, c-format
-msgid "section [%2d] '%s': chain array too large\n"
-msgstr "section [%2d] '%s': chain array too large\n"
-
-#: src/elflint.c:2004 src/elflint.c:2055
-#, c-format
-msgid "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-msgstr "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-
-#: src/elflint.c:2014
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-msgstr "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-
-#: src/elflint.c:2065
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-msgstr "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-
-#: src/elflint.c:2081
-#, c-format
-msgid "section [%2d] '%s': bitmask size not power of 2: %u\n"
-msgstr "section [%2d] '%s': bitmask size not power of 2: %u\n"
-
-#: src/elflint.c:2092
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-msgstr ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-
-#: src/elflint.c:2100
-#, c-format
-msgid "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-msgstr "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-
-#: src/elflint.c:2132
-#, c-format
-msgid ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-msgstr ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-
-#: src/elflint.c:2153
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-msgstr ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-
-#: src/elflint.c:2164
-#, c-format
-msgid ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-msgstr ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-
-#: src/elflint.c:2195
-#, c-format
-msgid "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-msgstr "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-
-#: src/elflint.c:2200
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-msgstr ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-
-#: src/elflint.c:2206
-#, c-format
-msgid "section [%2d] '%s': bitmask does not match names in the hash table\n"
-msgstr "section [%2d] '%s': bitmask does not match names in the hash table\n"
-
-#: src/elflint.c:2219
-#, c-format
-msgid "section [%2d] '%s': relocatable files cannot have hash tables\n"
-msgstr "section [%2d] '%s': relocatable files cannot have hash tables\n"
-
-#: src/elflint.c:2237
-#, c-format
-msgid "section [%2d] '%s': hash table not for dynamic symbol table\n"
-msgstr "section [%2d] '%s': hash table not for dynamic symbol table\n"
-
-#: src/elflint.c:2245
-#, c-format
-msgid "section [%2d] '%s': hash table entry size incorrect\n"
-msgstr "section [%2d] '%s': hash table entry size incorrect\n"
-
-#: src/elflint.c:2250
-#, c-format
-msgid "section [%2d] '%s': not marked to be allocated\n"
-msgstr "section [%2d] '%s': not marked to be allocated\n"
-
-#: src/elflint.c:2255
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-msgstr ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-
-#: src/elflint.c:2303
-#, c-format
-msgid "sh_link in hash sections [%2zu] '%s' and [%2zu] '%s' not identical\n"
-msgstr "sh_link in hash sections [%2zu] ‘%s’ and [%2zu] ‘%s’ not identical\n"
-
-#: src/elflint.c:2381 src/elflint.c:2385
-#, c-format
-msgid "section [%2zu] '%s': reference to symbol index 0\n"
-msgstr "section [%2zu] '%s': reference to symbol index 0\n"
-
-#: src/elflint.c:2392
-#, c-format
-msgid ""
-"symbol %d referenced in new hash table in [%2zu] '%s' but not in old hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"symbol %d referenced in new hash table in [%2zu] ‘%s’ but not in old hash "
-"table in [%2zu] ‘%s’\n"
-
-#: src/elflint.c:2404
-#, c-format
-msgid ""
-"symbol %d referenced in old hash table in [%2zu] '%s' but not in new hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"symbol %d referenced in old hash table in [%2zu] ‘%s’ but not in new hash "
-"table in [%2zu] ‘%s’\n"
-
-#: src/elflint.c:2420
-#, c-format
-msgid "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-msgstr "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-
-#: src/elflint.c:2440
-#, c-format
-msgid ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-msgstr ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-
-#: src/elflint.c:2451
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol table: %s\n"
-msgstr "section [%2d] '%s': cannot get symbol table: %s\n"
-
-#: src/elflint.c:2456
-#, c-format
-msgid "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-msgstr "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-
-#: src/elflint.c:2462
-#, c-format
-msgid "section [%2d] '%s': invalid symbol index in sh_info\n"
-msgstr "section [%2d] '%s': invalid symbol index in sh_info\n"
-
-#: src/elflint.c:2467
-#, c-format
-msgid "section [%2d] '%s': sh_flags not zero\n"
-msgstr "section [%2d] '%s': sh_flags not zero\n"
-
-#: src/elflint.c:2474
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol for signature\n"
-msgstr "section [%2d] '%s': cannot get symbol for signature\n"
-
-#: src/elflint.c:2479
-#, c-format
-msgid "section [%2d] '%s': signature symbol cannot be empty string\n"
-msgstr "section [%2d] '%s': signature symbol cannot be empty string\n"
-
-#: src/elflint.c:2485
-#, c-format
-msgid "section [%2d] '%s': sh_flags not set correctly\n"
-msgstr "section [%2d] '%s': sh_flags not set correctly\n"
-
-#: src/elflint.c:2491
-#, c-format
-msgid "section [%2d] '%s': cannot get data: %s\n"
-msgstr "section [%2d] '%s': cannot get data: %s\n"
-
-#: src/elflint.c:2500
-#, c-format
-msgid "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-msgstr "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-
-#: src/elflint.c:2505
-#, c-format
-msgid "section [%2d] '%s': section group without flags word\n"
-msgstr "section [%2d] '%s': section group without flags word\n"
-
-#: src/elflint.c:2511
-#, c-format
-msgid "section [%2d] '%s': section group without member\n"
-msgstr "section [%2d] '%s': section group without member\n"
-
-#: src/elflint.c:2515
-#, c-format
-msgid "section [%2d] '%s': section group with only one member\n"
-msgstr "section [%2d] '%s': section group with only one member\n"
-
-#: src/elflint.c:2526
-#, c-format
-msgid "section [%2d] '%s': unknown section group flags\n"
-msgstr "section [%2d] '%s': unknown section group flags\n"
-
-#: src/elflint.c:2538
-#, c-format
-msgid "section [%2d] '%s': section index %Zu out of range\n"
-msgstr "section [%2d] '%s': section index %Zu out of range\n"
-
-#: src/elflint.c:2547
-#, c-format
-msgid "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-msgstr "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-
-#: src/elflint.c:2554
-#, c-format
-msgid "section [%2d] '%s': section group contains another group [%2d] '%s'\n"
-msgstr "section [%2d] '%s': section group contains another group [%2d] ‘%s’\n"
-
-#: src/elflint.c:2560
-#, c-format
-msgid ""
-"section [%2d] '%s': element %Zu references section [%2d] '%s' without "
-"SHF_GROUP flag set\n"
-msgstr ""
-"section [%2d] '%s': element %Zu references section [%2d] ‘%s’ without "
-"SHF_GROUP flag set\n"
-
-#: src/elflint.c:2567
-#, c-format
-msgid "section [%2d] '%s' is contained in more than one section group\n"
-msgstr "section [%2d] ‘%s’ is contained in more than one section group\n"
-
-#: src/elflint.c:2756
-#, c-format
-msgid ""
-"section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no "
-"dynamic symbol table\n"
-msgstr ""
-"section [%2d] ‘%s’ refers in sh_link to section [%2d] ‘%s’ which is no "
-"dynamic symbol table\n"
-
-#: src/elflint.c:2768
-#, c-format
-msgid ""
-"section [%2d] '%s' has different number of entries than symbol table [%2d] "
-"'%s'\n"
-msgstr ""
-"section [%2d] ‘%s’ has different number of entries than symbol table [%2d] "
-"‘%s’\n"
-
-#: src/elflint.c:2784
-#, c-format
-msgid "section [%2d] '%s': symbol %d: cannot read version data\n"
-msgstr "section [%2d] '%s': symbol %d: cannot read version data\n"
-
-#: src/elflint.c:2800
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-msgstr "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-
-#: src/elflint.c:2808
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with version\n"
-msgstr "section [%2d] '%s': symbol %d: local symbol with version\n"
-
-#: src/elflint.c:2822
-#, c-format
-msgid "section [%2d] '%s': symbol %d: invalid version index %d\n"
-msgstr "section [%2d] '%s': symbol %d: invalid version index %d\n"
-
-#: src/elflint.c:2827
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-msgstr ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-
-#: src/elflint.c:2837
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-msgstr ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-
-#: src/elflint.c:2889
-#, c-format
-msgid "more than one version reference section present\n"
-msgstr "more than one version reference section present\n"
-
-#: src/elflint.c:2897 src/elflint.c:3026
-#, c-format
-msgid "section [%2d] '%s': sh_link does not link to string table\n"
-msgstr "section [%2d] '%s': sh_link does not link to string table\n"
-
-#: src/elflint.c:2920 src/elflint.c:3078
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong version %d\n"
-msgstr "section [%2d] '%s': entry %d has wrong version %d\n"
-
-#: src/elflint.c:2926 src/elflint.c:3084
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-msgstr "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-
-#: src/elflint.c:2934
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid file reference\n"
-msgstr "section [%2d] '%s': entry %d has invalid file reference\n"
-
-#: src/elflint.c:2942
-#, c-format
-msgid "section [%2d] '%s': entry %d references unknown dependency\n"
-msgstr "section [%2d] '%s': entry %d references unknown dependency\n"
-
-#: src/elflint.c:2954
-#, c-format
-msgid "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-msgstr "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-
-#: src/elflint.c:2961
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-msgstr ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-
-#: src/elflint.c:2968
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-msgstr ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-
-#: src/elflint.c:2978
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name '%s'\n"
-msgstr ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name ‘%s’\n"
-
-#: src/elflint.c:2989
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-msgstr ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-
-#: src/elflint.c:3005 src/elflint.c:3163
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-msgstr "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-
-#: src/elflint.c:3018
-#, c-format
-msgid "more than one version definition section present\n"
-msgstr "more than one version definition section present\n"
-
-#: src/elflint.c:3063
-#, c-format
-msgid "section [%2d] '%s': more than one BASE definition\n"
-msgstr "section [%2d] '%s': more than one BASE definition\n"
-
-#: src/elflint.c:3067
-#, c-format
-msgid "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-msgstr "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-
-#: src/elflint.c:3073
-#, c-format
-msgid "section [%2d] '%s': entry %d has unknown flag\n"
-msgstr "section [%2d] '%s': entry %d has unknown flag\n"
-
-#: src/elflint.c:3097
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid name reference\n"
-msgstr "section [%2d] '%s': entry %d has invalid name reference\n"
-
-#: src/elflint.c:3104
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-msgstr "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-
-#: src/elflint.c:3113
-#, c-format
-msgid "section [%2d] '%s': entry %d has duplicate version name '%s'\n"
-msgstr "section [%2d] '%s': entry %d has duplicate version name ‘%s’\n"
-
-#: src/elflint.c:3132
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-msgstr ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-
-#: src/elflint.c:3147
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-msgstr "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-
-#: src/elflint.c:3169
-#, c-format
-msgid "section [%2d] '%s': no BASE definition\n"
-msgstr "section [%2d] '%s': no BASE definition\n"
-
-#: src/elflint.c:3185
-#, c-format
-msgid "section [%2d] '%s': unknown parent version '%s'\n"
-msgstr "section [%2d] '%s': unknown parent version ‘%s’\n"
-
-#: src/elflint.c:3198
-#, c-format
-msgid "section [%2d] '%s': empty object attributes section\n"
-msgstr "section [%2d] '%s': empty object attributes section\n"
-
-#: src/elflint.c:3219
-#, c-format
-msgid "section [%2d] '%s': unrecognized attribute format\n"
-msgstr "section [%2d] '%s': unrecognized attribute format\n"
-
-#: src/elflint.c:3235
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-
-#: src/elflint.c:3244
-#, c-format
-msgid "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-msgstr "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-
-#: src/elflint.c:3256
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-msgstr "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-
-#: src/elflint.c:3273
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-
-#: src/elflint.c:3282
-#, c-format
-msgid "section [%2d] '%s': offset %zu: truncated attribute section\n"
-msgstr "section [%2d] '%s': offset %zu: truncated attribute section\n"
-
-#: src/elflint.c:3291
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-
-#: src/elflint.c:3304
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-
-#: src/elflint.c:3315
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-
-#: src/elflint.c:3333
-#, c-format
-msgid "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-msgstr "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-
-#: src/elflint.c:3344
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-msgstr "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-
-#: src/elflint.c:3357
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-msgstr "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-
-#: src/elflint.c:3361
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-
-#: src/elflint.c:3371
-#, c-format
-msgid "section [%2d] '%s': offset %zu: vendor '%s' unknown\n"
-msgstr "section [%2d] '%s': offset %zu: vendor ‘%s’ unknown\n"
-
-#: src/elflint.c:3377
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-msgstr ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-
-#: src/elflint.c:3466
-#, c-format
-msgid "cannot get section header of zeroth section\n"
-msgstr "cannot get section header of zeroth section\n"
-
-#: src/elflint.c:3470
-#, c-format
-msgid "zeroth section has nonzero name\n"
-msgstr "zeroth section has nonzero name\n"
-
-#: src/elflint.c:3472
-#, c-format
-msgid "zeroth section has nonzero type\n"
-msgstr "zeroth section has nonzero type\n"
-
-#: src/elflint.c:3474
-#, c-format
-msgid "zeroth section has nonzero flags\n"
-msgstr "zeroth section has nonzero flags\n"
-
-#: src/elflint.c:3476
-#, c-format
-msgid "zeroth section has nonzero address\n"
-msgstr "zeroth section has nonzero address\n"
-
-#: src/elflint.c:3478
-#, c-format
-msgid "zeroth section has nonzero offset\n"
-msgstr "zeroth section has nonzero offset\n"
-
-#: src/elflint.c:3480
-#, c-format
-msgid "zeroth section has nonzero align value\n"
-msgstr "zeroth section has nonzero align value\n"
-
-#: src/elflint.c:3482
-#, c-format
-msgid "zeroth section has nonzero entry size value\n"
-msgstr "zeroth section has nonzero entry size value\n"
-
-#: src/elflint.c:3485
-#, c-format
-msgid ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-msgstr ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-
-#: src/elflint.c:3489
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-msgstr ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-
-#: src/elflint.c:3493
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-msgstr ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-
-#: src/elflint.c:3510
-#, c-format
-msgid "cannot get section header for section [%2zu] '%s': %s\n"
-msgstr "cannot get section header for section [%2zu] '%s': %s\n"
-
-#: src/elflint.c:3519
-#, c-format
-msgid "section [%2zu]: invalid name\n"
-msgstr "section [%2zu]: invalid name\n"
-
-#: src/elflint.c:3546
-#, c-format
-msgid "section [%2d] '%s' has wrong type: expected %s, is %s\n"
-msgstr "section [%2d] ‘%s’ has wrong type: expected %s, is %s\n"
-
-#: src/elflint.c:3562
-#, c-format
-msgid "section [%2zu] '%s' has wrong flags: expected %s, is %s\n"
-msgstr "section [%2zu] ‘%s’ has wrong flags: expected %s, is %s\n"
-
-#: src/elflint.c:3579
-#, c-format
-msgid ""
-"section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"
-msgstr ""
-"section [%2zu] ‘%s’ has wrong flags: expected %s and possibly %s, is %s\n"
-
-#: src/elflint.c:3597
-#, c-format
-msgid "section [%2zu] '%s' present in object file\n"
-msgstr "section [%2zu] ‘%s’ present in object file\n"
-
-#: src/elflint.c:3603 src/elflint.c:3635
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"
-msgstr ""
-"section [%2zu] ‘%s’ has SHF_ALLOC flag set but there is no loadable segment\n"
-
-#: src/elflint.c:3608 src/elflint.c:3640
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-msgstr ""
-"section [%2zu] ‘%s’ has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-
-#: src/elflint.c:3616
-#, c-format
-msgid ""
-"section [%2zu] '%s' is extension section index table in non-object file\n"
-msgstr ""
-"section [%2zu] ‘%s’ is extension section index table in non-object file\n"
-
-#: src/elflint.c:3659
-#, c-format
-msgid "section [%2zu] '%s': size not multiple of entry size\n"
-msgstr "section [%2zu] '%s': size not multiple of entry size\n"
-
-#: src/elflint.c:3664
-#, c-format
-msgid "cannot get section header\n"
-msgstr "cannot get section header\n"
-
-#: src/elflint.c:3674
-#, c-format
-msgid "section [%2zu] '%s' has unsupported type %d\n"
-msgstr "section [%2zu] ‘%s’ has unsupported type %d\n"
-
-#: src/elflint.c:3688
-#, c-format
-msgid ""
-"section [%2zu] '%s' contains invalid processor-specific flag(s) %#<PRIx64>\n"
-msgstr ""
-"section [%2zu] ‘%s’ contains invalid processor-specific flag(s) %#<PRIx64>\n"
-
-#: src/elflint.c:3695
-#, c-format
-msgid "section [%2zu] '%s' contains unknown flag(s) %#<PRIx64>\n"
-msgstr "section [%2zu] ‘%s’ contains unknown flag(s) %#<PRIx64>\n"
-
-#: src/elflint.c:3703
-#, c-format
-msgid "section [%2zu] '%s': thread-local data sections address not zero\n"
-msgstr "section [%2zu] '%s': thread-local data sections address not zero\n"
-
-#: src/elflint.c:3711
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in link value\n"
-msgstr "section [%2zu] '%s': invalid section reference in link value\n"
-
-#: src/elflint.c:3716
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in info value\n"
-msgstr "section [%2zu] '%s': invalid section reference in info value\n"
-
-#: src/elflint.c:3723
-#, c-format
-msgid "section [%2zu] '%s': strings flag set without merge flag\n"
-msgstr "section [%2zu] '%s': strings flag set without merge flag\n"
-
-#: src/elflint.c:3728
-#, c-format
-msgid "section [%2zu] '%s': merge flag set but entry size is zero\n"
-msgstr "section [%2zu] '%s': merge flag set but entry size is zero\n"
-
-#: src/elflint.c:3746
-#, c-format
-msgid "section [%2zu] '%s' has unexpected type %d for an executable section\n"
-msgstr "section [%2zu] ‘%s’ has unexpected type %d for an executable section\n"
-
-#: src/elflint.c:3755
-#, c-format
-msgid "section [%2zu] '%s' is both executable and writable\n"
-msgstr "section [%2zu] ‘%s’ is both executable and writable\n"
-
-#: src/elflint.c:3784
-#, c-format
-msgid ""
-"section [%2zu] '%s' not fully contained in segment of program header entry "
-"%d\n"
-msgstr ""
-"section [%2zu] ‘%s’ not fully contained in segment of program header entry "
-"%d\n"
-
-#: src/elflint.c:3792
-#, c-format
-msgid ""
-"section [%2zu] '%s' has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-msgstr ""
-"section [%2zu] ‘%s’ has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-
-#: src/elflint.c:3801
-#, c-format
-msgid ""
-"section [%2zu] '%s' has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-msgstr ""
-"section [%2zu] ‘%s’ has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-
-#: src/elflint.c:3812
-#, c-format
-msgid "section [%2zu] '%s' is executable in nonexecutable segment %d\n"
-msgstr "section [%2zu] ‘%s’ is executable in nonexecutable segment %d\n"
-
-#: src/elflint.c:3822
-#, c-format
-msgid "section [%2zu] '%s' is writable in unwritable segment %d\n"
-msgstr "section [%2zu] ‘%s’ is writable in unwritable segment %d\n"
-
-#: src/elflint.c:3832
-#, c-format
-msgid ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-msgstr ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-
-#: src/elflint.c:3838
-#, c-format
-msgid ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-msgstr ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-
-#: src/elflint.c:3846
-#, c-format
-msgid ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-msgstr ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-
-#: src/elflint.c:3897
-#, c-format
-msgid "more than one version symbol table present\n"
-msgstr "more than one version symbol table present\n"
-
-#: src/elflint.c:3920
-#, c-format
-msgid "INTERP program header entry but no .interp section\n"
-msgstr "INTERP program header entry but no .interp section\n"
-
-#: src/elflint.c:3931
-#, c-format
-msgid ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-msgstr ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-
-#: src/elflint.c:3937
-#, c-format
-msgid "loadable segment [%u] is writable but contains no writable sections\n"
-msgstr "loadable segment [%u] is writable but contains no writable sections\n"
-
-#: src/elflint.c:3948
-#, c-format
-msgid ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-msgstr ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-
-#: src/elflint.c:3961
-#, c-format
-msgid "duplicate version index %d\n"
-msgstr "duplicate version index %d\n"
-
-#: src/elflint.c:3975
-#, c-format
-msgid ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-msgstr ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-
-#: src/elflint.c:4024
-#, c-format
-msgid "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-msgstr "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-
-#: src/elflint.c:4028
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-
-#: src/elflint.c:4051
-#, c-format
-msgid "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-
-#: src/elflint.c:4055
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-
-#: src/elflint.c:4072
-#, c-format
-msgid "phdr[%d]: no note entries defined for the type of file\n"
-msgstr "phdr[%d]: no note entries defined for the type of file\n"
-
-#: src/elflint.c:4091
-#, c-format
-msgid "phdr[%d]: cannot get content of note section: %s\n"
-msgstr "phdr[%d]: cannot get content of note section: %s\n"
-
-#: src/elflint.c:4094
-#, c-format
-msgid "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-msgstr "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-
-#: src/elflint.c:4115
-#, c-format
-msgid "section [%2d] '%s': no note entries defined for the type of file\n"
-msgstr "section [%2d] '%s': no note entries defined for the type of file\n"
-
-#: src/elflint.c:4122
-#, c-format
-msgid "section [%2d] '%s': cannot get content of note section\n"
-msgstr "section [%2d] '%s': cannot get content of note section\n"
-
-#: src/elflint.c:4125
-#, c-format
-msgid "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-msgstr "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-
-#: src/elflint.c:4143
-#, c-format
-msgid ""
-"only executables, shared objects, and core files can have program headers\n"
-msgstr ""
-"only executables, shared objects, and core files can have program headers\n"
-
-#: src/elflint.c:4158
-#, c-format
-msgid "cannot get program header entry %d: %s\n"
-msgstr "cannot get program header entry %d: %s\n"
-
-#: src/elflint.c:4167
-#, c-format
-msgid "program header entry %d: unknown program header entry type %#<PRIx64>\n"
-msgstr ""
-"program header entry %d: unknown program header entry type %#<PRIx64>\n"
-
-#: src/elflint.c:4178
-#, c-format
-msgid "more than one INTERP entry in program header\n"
-msgstr "more than one INTERP entry in program header\n"
-
-#: src/elflint.c:4186
-#, c-format
-msgid "more than one TLS entry in program header\n"
-msgstr "more than one TLS entry in program header\n"
-
-#: src/elflint.c:4193
-#, c-format
-msgid "static executable cannot have dynamic sections\n"
-msgstr "static executable cannot have dynamic sections\n"
-
-#: src/elflint.c:4207
-#, c-format
-msgid "dynamic section reference in program header has wrong offset\n"
-msgstr "dynamic section reference in program header has wrong offset\n"
-
-#: src/elflint.c:4210
-#, c-format
-msgid "dynamic section size mismatch in program and section header\n"
-msgstr "dynamic section size mismatch in program and section header\n"
-
-#: src/elflint.c:4220
-#, c-format
-msgid "more than one GNU_RELRO entry in program header\n"
-msgstr "more than one GNU_RELRO entry in program header\n"
-
-#: src/elflint.c:4241
-#, c-format
-msgid "loadable segment GNU_RELRO applies to is not writable\n"
-msgstr "loadable segment GNU_RELRO applies to is not writable\n"
-
-#: src/elflint.c:4244
-#, c-format
-msgid "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-msgstr "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-
-#: src/elflint.c:4252 src/elflint.c:4275
-#, c-format
-msgid "%s segment not contained in a loaded segment\n"
-msgstr "%s segment not contained in a loaded segment\n"
-
-#: src/elflint.c:4281
-#, c-format
-msgid "program header offset in ELF header and PHDR entry do not match"
-msgstr "program header offset in ELF header and PHDR entry do not match"
-
-#: src/elflint.c:4305
-#, c-format
-msgid "call frame search table reference in program header has wrong offset\n"
-msgstr "call frame search table reference in program header has wrong offset\n"
-
-#: src/elflint.c:4308
-#, c-format
-msgid "call frame search table size mismatch in program and section header\n"
-msgstr "call frame search table size mismatch in program and section header\n"
-
-#: src/elflint.c:4321
-#, c-format
-msgid "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-msgstr "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-
-#: src/elflint.c:4329
-#, c-format
-msgid "call frame search table must be allocated\n"
-msgstr "call frame search table must be allocated\n"
-
-#: src/elflint.c:4332
-#, c-format
-msgid "section [%2zu] '%s' must be allocated\n"
-msgstr "section [%2zu] ‘%s’ must be allocated\n"
-
-#: src/elflint.c:4336
-#, c-format
-msgid "call frame search table must not be writable\n"
-msgstr "call frame search table must not be writable\n"
-
-#: src/elflint.c:4339
-#, c-format
-msgid "section [%2zu] '%s' must not be writable\n"
-msgstr "section [%2zu] ‘%s’ must not be writable\n"
-
-#: src/elflint.c:4344
-#, c-format
-msgid "call frame search table must not be executable\n"
-msgstr "call frame search table must not be executable\n"
-
-#: src/elflint.c:4347
-#, c-format
-msgid "section [%2zu] '%s' must not be executable\n"
-msgstr "section [%2zu] ‘%s’ must not be executable\n"
-
-#: src/elflint.c:4358
-#, c-format
-msgid "program header entry %d: file size greater than memory size\n"
-msgstr "program header entry %d: file size greater than memory size\n"
-
-#: src/elflint.c:4365
-#, c-format
-msgid "program header entry %d: alignment not a power of 2\n"
-msgstr "program header entry %d: alignment not a power of 2\n"
-
-#: src/elflint.c:4368
-#, c-format
-msgid ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-msgstr ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-
-#: src/elflint.c:4381
-#, c-format
-msgid ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-msgstr ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-
-#: src/elflint.c:4415
-#, c-format
-msgid "cannot read ELF header: %s\n"
-msgstr "cannot read ELF header: %s\n"
-
-#: src/elflint.c:4441
-#, c-format
-msgid "text relocation flag set but not needed\n"
-msgstr "text relocation flag set but not needed\n"
-
-#: src/findtextrel.c:62
-msgid "Input Selection:"
-msgstr "Input Selection:"
-
-#: src/findtextrel.c:63
-msgid "Prepend PATH to all file names"
-msgstr "Prepend PATH to all file names"
-
-#: src/findtextrel.c:65
-msgid "Use PATH as root of debuginfo hierarchy"
-msgstr "Use PATH as root of debuginfo hierarchy"
-
-#: src/findtextrel.c:72
-msgid "Locate source of text relocations in FILEs (a.out by default)."
-msgstr "Locate source of text relocations in FILEs (a.out by default)."
-
-#: src/findtextrel.c:76 src/nm.c:108 src/objdump.c:72 src/size.c:84
-#: src/strings.c:84 src/strip.c:96
-msgid "[FILE...]"
-msgstr "[FILE...]"
-
-#: src/findtextrel.c:238
-#, c-format
-msgid "cannot get ELF header '%s': %s"
-msgstr "cannot get ELF header '%s': %s"
-
-#: src/findtextrel.c:249
-#, c-format
-msgid "'%s' is not a DSO or PIE"
-msgstr "‘%s’ is not a DSO or PIE"
-
-#: src/findtextrel.c:269
-#, c-format
-msgid "getting get section header of section %zu: %s"
-msgstr "getting get section header of section %zu: %s"
-
-#: src/findtextrel.c:292
-#, c-format
-msgid "cannot read dynamic section: %s"
-msgstr "cannot read dynamic section: %s"
-
-#: src/findtextrel.c:313
-#, c-format
-msgid "no text relocations reported in '%s'"
-msgstr "no text relocations reported in ‘%s’"
-
-#: src/findtextrel.c:325
-#, c-format
-msgid "while reading ELF file"
-msgstr "while reading ELF file"
-
-#: src/findtextrel.c:329
-#, c-format
-msgid "cannot get program header count: %s"
-msgstr "cannot get program header count: %s"
-
-#: src/findtextrel.c:340 src/findtextrel.c:357
-#, c-format
-msgid "cannot get program header index at offset %zd: %s"
-msgstr "cannot get program header index at offset %zd: %s"
-
-#: src/findtextrel.c:409
-#, c-format
-msgid "cannot get section header of section %Zu: %s"
-msgstr "cannot get section header of section %Zu: %s"
-
-#: src/findtextrel.c:421
-#, c-format
-msgid "cannot get symbol table section %zu in '%s': %s"
-msgstr "cannot get symbol table section %zu in '%s': %s"
-
-#: src/findtextrel.c:441 src/findtextrel.c:464
-#, c-format
-msgid "cannot get relocation at index %d in section %zu in '%s': %s"
-msgstr "cannot get relocation at index %d in section %zu in '%s': %s"
-
-#: src/findtextrel.c:529
-#, c-format
-msgid "%s not compiled with -fpic/-fPIC\n"
-msgstr "%s not compiled with -fpic/-fPIC\n"
-
-#: src/findtextrel.c:582
-#, c-format
-msgid ""
-"the file containing the function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"the file containing the function ‘%s’ is not compiled with -fpic/-fPIC\n"
-
-#: src/findtextrel.c:589 src/findtextrel.c:609
-#, c-format
-msgid ""
-"the file containing the function '%s' might not be compiled with -fpic/-"
-"fPIC\n"
-msgstr ""
-"the file containing the function ‘%s’ might not be compiled with -fpic/-"
-"fPIC\n"
-
-#: src/findtextrel.c:597
-#, c-format
-msgid ""
-"either the file containing the function '%s' or the file containing the "
-"function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"either the file containing the function ‘%s’ or the file containing the "
-"function ‘%s’ is not compiled with -fpic/-fPIC\n"
-
-#: src/findtextrel.c:617
-#, c-format
-msgid ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-msgstr ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-
-#: src/i386_ld.c:202
-#, c-format
-msgid "cannot allocate PLT section: %s"
-msgstr "cannot allocate PLT section: %s"
-
-#: src/i386_ld.c:224
-#, c-format
-msgid "cannot allocate PLTREL section: %s"
-msgstr "cannot allocate PLTREL section: %s"
-
-#: src/i386_ld.c:245
-#, c-format
-msgid "cannot allocate GOT section: %s"
-msgstr "cannot allocate GOT section: %s"
-
-#: src/i386_ld.c:266
-#, c-format
-msgid "cannot allocate GOTPLT section: %s"
-msgstr "cannot allocate GOTPLT section: %s"
-
-#: src/i386_ld.c:653
-#, c-format
-msgid "initial-executable TLS relocation cannot be used "
-msgstr "initial-executable TLS relocation cannot be used "
-
-#: src/ld.c:79
-msgid "Input File Control:"
-msgstr "Input File Control:"
-
-#: src/ld.c:81
-msgid "Include whole archives in the output from now on."
-msgstr "Include whole archives in the output from now on."
-
-#: src/ld.c:83
-msgid "Stop including the whole archives in the output."
-msgstr "Stop including the whole archives in the output."
-
-#: src/ld.c:84 src/ld.c:98 src/ld.c:176
-msgid "FILE"
-msgstr "FILE"
-
-#: src/ld.c:85
-msgid "Start a group."
-msgstr "Start a group."
-
-#: src/ld.c:86
-msgid "End a group."
-msgstr "End a group."
-
-#: src/ld.c:87
-msgid "PATH"
-msgstr "PATH"
-
-#: src/ld.c:88
-msgid "Add PATH to list of directories files are searched in."
-msgstr "Add PATH to list of directories files are searched in."
-
-#: src/ld.c:90
-msgid "Only set DT_NEEDED for following dynamic libs if actually used"
-msgstr "Only set DT_NEEDED for following dynamic libs if actually used"
-
-#: src/ld.c:92
-msgid "Always set DT_NEEDED for following dynamic libs"
-msgstr "Always set DT_NEEDED for following dynamic libs"
-
-#: src/ld.c:94
-msgid "Ignore LD_LIBRARY_PATH environment variable."
-msgstr "Ignore LD_LIBRARY_PATH environment variable."
-
-#: src/ld.c:97
-msgid "Output File Control:"
-msgstr "Output File Control:"
-
-#: src/ld.c:98
-msgid "Place output in FILE."
-msgstr "Place output in FILE."
-
-#: src/ld.c:101
-msgid "Object is marked to not use default search path at runtime."
-msgstr "Object is marked to not use default search path at runtime."
-
-#: src/ld.c:103
-msgid "Same as --whole-archive."
-msgstr "Same as --whole-archive."
-
-#: src/ld.c:104
-msgid ""
-"Default rules of extracting from archive; weak references are not enough."
-msgstr ""
-"Default rules of extracting from archive; weak references are not enough."
-
-#: src/ld.c:108
-msgid "Weak references cause extraction from archive."
-msgstr "Weak references cause extraction from archive."
-
-#: src/ld.c:110
-msgid "Allow multiple definitions; first is used."
-msgstr "Allow multiple definitions; first is used."
-
-#: src/ld.c:112
-msgid "Disallow/allow undefined symbols in DSOs."
-msgstr "Disallow/allow undefined symbols in DSOs."
-
-#: src/ld.c:115
-msgid "Object requires immediate handling of $ORIGIN."
-msgstr "Object requires immediate handling of $ORIGIN."
-
-#: src/ld.c:117
-msgid "Relocation will not be processed lazily."
-msgstr "Relocation will not be processed lazily."
-
-#: src/ld.c:119
-msgid "Object cannot be unloaded at runtime."
-msgstr "Object cannot be unloaded at runtime."
-
-#: src/ld.c:121
-msgid "Mark object to be initialized first."
-msgstr "Mark object to be initialized first."
-
-#: src/ld.c:123
-msgid "Enable/disable lazy-loading flag for following dependencies."
-msgstr "Enable/disable lazy-loading flag for following dependencies."
-
-#: src/ld.c:125
-msgid "Mark object as not loadable with 'dlopen'."
-msgstr "Mark object as not loadable with 'dlopen'."
-
-#: src/ld.c:127
-msgid "Ignore/record dependencies on unused DSOs."
-msgstr "Ignore/record dependencies on unused DSOs."
-
-#: src/ld.c:129
-msgid "Generated DSO will be a system library."
-msgstr "Generated DSO will be a system library."
-
-#: src/ld.c:130
-msgid "ADDRESS"
-msgstr "ADDRESS"
-
-#: src/ld.c:130
-msgid "Set entry point address."
-msgstr "Set entry point address."
-
-#: src/ld.c:133
-msgid "Do not link against shared libraries."
-msgstr "Do not link against shared libraries."
-
-#: src/ld.c:136
-msgid "Prefer linking against shared libraries."
-msgstr "Prefer linking against shared libraries."
-
-#: src/ld.c:137
-msgid "Export all dynamic symbols."
-msgstr "Export all dynamic symbols."
-
-#: src/ld.c:138
-msgid "Strip all symbols."
-msgstr "Strip all symbols."
-
-#: src/ld.c:139
-msgid "Strip debugging symbols."
-msgstr "Strip debugging symbols."
-
-#: src/ld.c:141
-msgid "Assume pagesize for the target system to be SIZE."
-msgstr "Assume pagesize for the target system to be SIZE."
-
-#: src/ld.c:143
-msgid "Set runtime DSO search path."
-msgstr "Set runtime DSO search path."
-
-#: src/ld.c:146
-msgid "Set link time DSO search path."
-msgstr "Set link time DSO search path."
-
-#: src/ld.c:147
-msgid "Generate dynamic shared object."
-msgstr "Generate dynamic shared object."
-
-#: src/ld.c:148
-msgid "Generate relocatable object."
-msgstr "Generate relocatable object."
-
-#: src/ld.c:151
-msgid "Causes symbol not assigned to a version be reduced to local."
-msgstr "Causes symbol not assigned to a version be reduced to local."
-
-#: src/ld.c:152
-msgid "Remove unused sections."
-msgstr "Remove unused sections."
-
-#: src/ld.c:155
-msgid "Don't remove unused sections."
-msgstr "Don't remove unused sections."
-
-#: src/ld.c:156
-msgid "Set soname of shared object."
-msgstr "Set soname of shared object."
-
-#: src/ld.c:157
-msgid "Set the dynamic linker name."
-msgstr "Set the dynamic linker name."
-
-#: src/ld.c:160
-msgid "Add/suppress addition indentifying link-editor to .comment section."
-msgstr "Add/suppress addition indentifying link-editor to .comment section."
-
-#: src/ld.c:163
-msgid "Create .eh_frame_hdr section"
-msgstr "Create .eh_frame_hdr section"
-
-#: src/ld.c:165
-msgid "Set hash style to sysv, gnu or both."
-msgstr "Set hash style to sysv, gnu or both."
-
-#: src/ld.c:167
-msgid "Generate build ID note (md5, sha1 (default), uuid)."
-msgstr "Generate build ID note (md5, sha1 (default), uuid)."
-
-#: src/ld.c:169
-msgid "Linker Operation Control:"
-msgstr "Linker Operation Control:"
-
-#: src/ld.c:170
-msgid "Verbose messages."
-msgstr "Verbose messages."
-
-#: src/ld.c:171
-msgid "Trace file opens."
-msgstr "Trace file opens."
-
-#: src/ld.c:173
-msgid "Trade speed for less memory usage"
-msgstr "Trade speed for less memory usage"
-
-#: src/ld.c:174
-msgid "LEVEL"
-msgstr "LEVEL"
-
-#: src/ld.c:175
-msgid "Set optimization level to LEVEL."
-msgstr "Set optimization level to LEVEL."
-
-#: src/ld.c:176
-msgid "Use linker script in FILE."
-msgstr "Use linker script in FILE."
-
-#: src/ld.c:179
-msgid "Select to get parser debug information"
-msgstr "Select to get parser debug information"
-
-#: src/ld.c:182
-msgid "Read version information from FILE."
-msgstr "Read version information from FILE."
-
-#: src/ld.c:183
-msgid "Set emulation to NAME."
-msgstr "Set emulation to NAME."
-
-#: src/ld.c:189
-msgid "Combine object and archive files."
-msgstr "Combine object and archive files."
-
-#: src/ld.c:192
-msgid "[FILE]..."
-msgstr "[FILE]..."
-
-#: src/ld.c:325
-#, c-format
-msgid "At least one input file needed"
-msgstr "At least one input file needed"
-
-#: src/ld.c:341
-#, c-format
-msgid "error while preparing linking"
-msgstr "error while preparing linking"
-
-#: src/ld.c:348
-#, c-format
-msgid "cannot open linker script '%s'"
-msgstr "cannot open linker script ‘%s’"
-
-#: src/ld.c:389
-#, c-format
-msgid "-( without matching -)"
-msgstr "-( without matching -)"
-
-#: src/ld.c:564 src/ld.c:602
-#, c-format
-msgid "only one option of -G and -r is allowed"
-msgstr "only one option of -G and -r is allowed"
-
-#: src/ld.c:586
-#, c-format
-msgid "more than one '-m' parameter"
-msgstr "more than one ‘-m’ parameter"
-
-#: src/ld.c:596 src/ld.c:1005
-#, c-format
-msgid "unknown option `-%c %s'"
-msgstr "unknown option ‘-%c %s’"
-
-#: src/ld.c:638
-#, c-format
-msgid "invalid page size value '%s': ignored"
-msgstr "invalid page size value '%s': ignored"
-
-#: src/ld.c:679
-#, c-format
-msgid "invalid hash style '%s'"
-msgstr "invalid hash style ‘%s’"
-
-#: src/ld.c:689
-#, c-format
-msgid "invalid build-ID style '%s'"
-msgstr "invalid build-ID style ‘%s’"
-
-#: src/ld.c:777
-#, c-format
-msgid "More than one output file name given."
-msgstr "More than one output file name given."
-
-#: src/ld.c:794
-#, c-format
-msgid "Invalid optimization level `%s'"
-msgstr "Invalid optimization level ‘%s’"
-
-#: src/ld.c:842
-#, c-format
-msgid "nested -( -) groups are not allowed"
-msgstr "nested -( -) groups are not allowed"
-
-#: src/ld.c:861
-#, c-format
-msgid "-) without matching -("
-msgstr "-) without matching -("
-
-#: src/ld.c:1038
-#, c-format
-msgid "unknown option '-%c %s'"
-msgstr "unknown option ‘-%c %s’"
-
-#: src/ld.c:1142
-#, c-format
-msgid "could not find input file to determine output file format"
-msgstr "could not find input file to determine output file format"
-
-#: src/ld.c:1144
-#, c-format
-msgid "try again with an appropriate '-m' parameter"
-msgstr "try again with an appropriate ‘-m’ parameter"
-
-#: src/ld.c:1438
-#, c-format
-msgid "cannot read version script '%s'"
-msgstr "cannot read version script ‘%s’"
-
-#: src/ld.c:1504 src/ld.c:1543
-#, c-format
-msgid "duplicate definition of '%s' in linker script"
-msgstr "duplicate definition of ‘%s’ in linker script"
-
-#: src/ldgeneric.c:201 src/ldgeneric.c:5141
-#, c-format
-msgid "cannot create string table"
-msgstr "cannot create string table"
-
-#: src/ldgeneric.c:247
-#, c-format
-msgid "cannot load ld backend library '%s': %s"
-msgstr "cannot load ld backend library '%s': %s"
-
-#: src/ldgeneric.c:257
-#, c-format
-msgid "cannot find init function in ld backend library '%s': %s"
-msgstr "cannot find init function in ld backend library '%s': %s"
-
-#: src/ldgeneric.c:300
-#, c-format
-msgid "%s listed more than once as input"
-msgstr "%s listed more than once as input"
-
-#: src/ldgeneric.c:414
-#, c-format
-msgid "%s (for -l%s)\n"
-msgstr "%s (for -l%s)\n"
-
-#: src/ldgeneric.c:415
-#, c-format
-msgid "%s (for DT_NEEDED %s)\n"
-msgstr "%s (for DT_NEEDED %s)\n"
-
-#: src/ldgeneric.c:563
-#, c-format
-msgid "Warning: type of `%s' changed from %s in %s to %s in %s"
-msgstr "Warning: type of ‘%s’ changed from %s in %s to %s in %s"
-
-#: src/ldgeneric.c:576
-#, c-format
-msgid "Warning: size of `%s' changed from %<PRIu64> in %s to %<PRIu64> in %s"
-msgstr "Warning: size of ‘%s’ changed from %<PRIu64> in %s to %<PRIu64> in %s"
-
-#: src/ldgeneric.c:651 src/ldgeneric.c:1112 src/readelf.c:527
-#: src/readelf.c:829 src/strip.c:568
-#, c-format
-msgid "cannot determine number of sections: %s"
-msgstr "cannot determine number of sections: %s"
-
-#: src/ldgeneric.c:667
-#, c-format
-msgid "(%s+%#<PRIx64>): multiple definition of %s `%s'\n"
-msgstr "(%s+%#<PRIx64>): multiple definition of %s ‘%s’\n"
-
-#: src/ldgeneric.c:690
-#, c-format
-msgid "(%s+%#<PRIx64>): first defined here\n"
-msgstr "(%s+%#<PRIx64>): first defined here\n"
-
-#: src/ldgeneric.c:809
-#, c-format
-msgid "%s: cannot get section group data: %s"
-msgstr "%s: cannot get section group data: %s"
-
-#: src/ldgeneric.c:830
-#, c-format
-msgid "%s: section '%s' with group flag set does not belong to any group"
-msgstr "%s: section ‘%s’ with group flag set does not belong to any group"
-
-#: src/ldgeneric.c:875
-#, c-format
-msgid "%s: section [%2d] '%s' is not in the correct section group"
-msgstr "%s: section [%2d] ‘%s’ is not in the correct section group"
-
-#: src/ldgeneric.c:1146 src/ldgeneric.c:1403 src/ldgeneric.c:1412
-#: src/ldgeneric.c:1471 src/ldgeneric.c:1480 src/ldgeneric.c:1743
-#: src/ldgeneric.c:1995
-#, c-format
-msgid "%s: invalid ELF file (%s:%d)\n"
-msgstr "%s: invalid ELF file (%s:%d)\n"
-
-#: src/ldgeneric.c:1240
-#, c-format
-msgid "%s: only files of type ET_REL might contain section groups"
-msgstr "%s: only files of type ET_REL might contain section groups"
-
-#: src/ldgeneric.c:1292
-#, c-format
-msgid "%s: cannot determine signature of section group [%2zd] '%s': %s"
-msgstr "%s: cannot determine signature of section group [%2zd] '%s': %s"
-
-#: src/ldgeneric.c:1304
-#, c-format
-msgid "%s: cannot get content of section group [%2zd] '%s': %s'"
-msgstr "%s: cannot get content of section group [%2zd] '%s': %s'"
-
-#: src/ldgeneric.c:1318
-#, c-format
-msgid ""
-"%s: group member %zu of section group [%2zd] '%s' has too high index: "
-"%<PRIu32>"
-msgstr ""
-"%s: group member %zu of section group [%2zd] ‘%s’ has too high index: "
-"%<PRIu32>"
-
-#: src/ldgeneric.c:1340
-#, c-format
-msgid "%s: section '%s' has unknown type: %d"
-msgstr "%s: section ‘%s’ has unknown type: %d"
-
-#: src/ldgeneric.c:1719
-#, c-format
-msgid "cannot get descriptor for ELF file (%s:%d): %s\n"
-msgstr "cannot get descriptor for ELF file (%s:%d): %s\n"
-
-#: src/ldgeneric.c:1889
-#, c-format
-msgid "cannot read archive `%s': %s"
-msgstr "cannot read archive ‘%s’: %s"
-
-#: src/ldgeneric.c:2010
-#, c-format
-msgid "file of type %s cannot be linked in\n"
-msgstr "file of type %s cannot be linked in\n"
-
-#: src/ldgeneric.c:2022
-#, c-format
-msgid "%s: input file incompatible with ELF machine type %s\n"
-msgstr "%s: input file incompatible with ELF machine type %s\n"
-
-#: src/ldgeneric.c:2034
-#, c-format
-msgid "%s: cannot get section header string table index: %s\n"
-msgstr "%s: cannot get section header string table index: %s\n"
-
-#: src/ldgeneric.c:2063
-#, c-format
-msgid "cannot use DSO '%s' when generating relocatable object file"
-msgstr "cannot use DSO ‘%s’ when generating relocatable object file"
-
-#: src/ldgeneric.c:2148
-#, c-format
-msgid "input file '%s' ignored"
-msgstr "input file ‘%s’ ignored"
-
-#: src/ldgeneric.c:2362
-#, c-format
-msgid "undefined symbol `%s' in %s"
-msgstr "undefined symbol ‘%s’ in %s"
-
-#: src/ldgeneric.c:2692
-#, c-format
-msgid "cannot create ELF descriptor for output file: %s"
-msgstr "cannot create ELF descriptor for output file: %s"
-
-#: src/ldgeneric.c:2699
-#, c-format
-msgid "could not create ELF header for output file: %s"
-msgstr "could not create ELF header for output file: %s"
-
-#: src/ldgeneric.c:3214 src/ldgeneric.c:3284 src/ldgeneric.c:3320
-#: src/ldgeneric.c:4447 src/ldgeneric.c:4496 src/ldgeneric.c:4528
-#: src/ldgeneric.c:4763 src/ldgeneric.c:4818 src/ldgeneric.c:5065
-#: src/ldgeneric.c:5121 src/ldgeneric.c:5590 src/ldgeneric.c:5602
-#, c-format
-msgid "cannot create section for output file: %s"
-msgstr "cannot create section for output file: %s"
-
-#: src/ldgeneric.c:3434
-#, c-format
-msgid "address computation expression contains variable '%s'"
-msgstr "address computation expression contains variable ‘%s’"
-
-#: src/ldgeneric.c:3479
-#, c-format
-msgid ""
-"argument '%<PRIuMAX>' of ALIGN in address computation expression is no power "
-"of two"
-msgstr ""
-"argument ‘%<PRIuMAX>’ of ALIGN in address computation expression is no power "
-"of two"
-
-#: src/ldgeneric.c:3674
-#, c-format
-msgid "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-msgstr "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-
-#: src/ldgeneric.c:3680
-#, c-format
-msgid "no entry symbol specified: defaulting to %#0*<PRIx64>"
-msgstr "no entry symbol specified: defaulting to %#0*<PRIx64>"
-
-#: src/ldgeneric.c:3910
-#, c-format
-msgid "cannot create GNU hash table section for output file: %s"
-msgstr "cannot create GNU hash table section for output file: %s"
-
-#: src/ldgeneric.c:4061
-#, c-format
-msgid "cannot create hash table section for output file: %s"
-msgstr "cannot create hash table section for output file: %s"
-
-#: src/ldgeneric.c:4104
-#, c-format
-msgid "cannot create build ID section: %s"
-msgstr "cannot create build ID section: %s"
-
-#: src/ldgeneric.c:4181
-#, c-format
-msgid "cannot convert section data to file format: %s"
-msgstr "cannot convert section data to file format: %s"
-
-#: src/ldgeneric.c:4190
-#, c-format
-msgid "cannot convert section data to memory format: %s"
-msgstr "cannot convert section data to memory format: %s"
-
-#: src/ldgeneric.c:4251
-#, c-format
-msgid "cannot read enough data for UUID"
-msgstr "cannot read enough data for UUID"
-
-#: src/ldgeneric.c:4348 src/ldgeneric.c:4369 src/ldgeneric.c:4398
-#: src/ldgeneric.c:6051
-#, c-format
-msgid "cannot create symbol table for output file: %s"
-msgstr "cannot create symbol table for output file: %s"
-
-#: src/ldgeneric.c:5290 src/ldgeneric.c:5842
-#, c-format
-msgid "section index too large in dynamic symbol table"
-msgstr "section index too large in dynamic symbol table"
-
-#: src/ldgeneric.c:5735
-#, c-format
-msgid "cannot create versioning section: %s"
-msgstr "cannot create versioning section: %s"
-
-#: src/ldgeneric.c:5808
-#, c-format
-msgid "cannot create dynamic symbol table for output file: %s"
-msgstr "cannot create dynamic symbol table for output file: %s"
-
-#: src/ldgeneric.c:5983
-#, c-format
-msgid "cannot create versioning data: %s"
-msgstr "cannot create versioning data: %s"
-
-#: src/ldgeneric.c:6083 src/ldgeneric.c:6096 src/ldgeneric.c:6160
-#: src/ldgeneric.c:6168
-#, c-format
-msgid "cannot create section header string section: %s"
-msgstr "cannot create section header string section: %s"
-
-#: src/ldgeneric.c:6090
-#, c-format
-msgid "cannot create section header string section"
-msgstr "cannot create section header string section"
-
-#: src/ldgeneric.c:6248
-#, c-format
-msgid "cannot create program header: %s"
-msgstr "cannot create program header: %s"
-
-#: src/ldgeneric.c:6256
-#, c-format
-msgid "while determining file layout: %s"
-msgstr "while determining file layout: %s"
-
-#: src/ldgeneric.c:6377
-#, c-format
-msgid "internal error: non-nobits section follows nobits section"
-msgstr "internal error: non-nobits section follows nobits section"
-
-#: src/ldgeneric.c:6914
-#, c-format
-msgid "cannot get header of 0th section: %s"
-msgstr "cannot get header of 0th section: %s"
-
-#: src/ldgeneric.c:6930 src/unstrip.c:1822
-#, c-format
-msgid "cannot update ELF header: %s"
-msgstr "cannot update ELF header: %s"
-
-#: src/ldgeneric.c:6961
-#, c-format
-msgid "linker backend didn't specify function to relocate section"
-msgstr "linker backend didn't specify function to relocate section"
-
-#: src/ldgeneric.c:6973
-#, c-format
-msgid "while writing output file: %s"
-msgstr "while writing output file: %s"
-
-#: src/ldgeneric.c:6978
-#, c-format
-msgid "while finishing output file: %s"
-msgstr "while finishing output file: %s"
-
-#: src/ldgeneric.c:6984
-#, c-format
-msgid "cannot stat output file"
-msgstr "cannot stat output file"
-
-#: src/ldgeneric.c:7000
-#, c-format
-msgid "WARNING: temporary output file overwritten before linking finished"
-msgstr "WARNING: temporary output file overwritten before linking finished"
-
-#: src/ldgeneric.c:7053 src/ldgeneric.c:7064 src/ldgeneric.c:7075
-#: src/ldgeneric.c:7086 src/ldgeneric.c:7105 src/ldgeneric.c:7118
-#: src/ldgeneric.c:7130
-#, c-format
-msgid "no machine specific '%s' implementation"
-msgstr "no machine specific ‘%s’ implementation"
-
-#: src/ldscript.y:170
-msgid "mode for segment invalid\n"
-msgstr "mode for segment invalid\n"
-
-#: src/ldscript.y:457
-#, c-format
-msgid "while reading version script '%s': %s at line %d"
-msgstr "while reading version script '%s': %s at line %d"
-
-#: src/ldscript.y:458
-#, c-format
-msgid "while reading linker script '%s': %s at line %d"
-msgstr "while reading linker script '%s': %s at line %d"
-
-#: src/ldscript.y:737
-#, c-format
-msgid "symbol '%s' is declared both local and global for unnamed version"
-msgstr "symbol ‘%s’ is declared both local and global for unnamed version"
-
-#: src/ldscript.y:739
-#, c-format
-msgid "symbol '%s' is declared both local and global for version '%s'"
-msgstr "symbol ‘%s’ is declared both local and global for version ‘%s’"
-
-#: src/ldscript.y:759 src/ldscript.y:766
-#, c-format
-msgid "default visibility set as local and global"
-msgstr "default visibility set as local and global"
-
-#: src/nm.c:66 src/strip.c:68
-msgid "Output selection:"
-msgstr "Output selection:"
-
-#: src/nm.c:67
-msgid "Display debugger-only symbols"
-msgstr "Display debugger-only symbols"
-
-#: src/nm.c:68
-msgid "Display only defined symbols"
-msgstr "Display only defined symbols"
-
-#: src/nm.c:71
-msgid "Display dynamic symbols instead of normal symbols"
-msgstr "Display dynamic symbols instead of normal symbols"
-
-#: src/nm.c:72
-msgid "Display only external symbols"
-msgstr "Display only external symbols"
-
-#: src/nm.c:73
-msgid "Display only undefined symbols"
-msgstr "Display only undefined symbols"
-
-#: src/nm.c:75
-msgid "Include index for symbols from archive members"
-msgstr "Include index for symbols from archive members"
-
-#: src/nm.c:77 src/size.c:58
-msgid "Output format:"
-msgstr "Output format:"
-
-#: src/nm.c:79
-msgid "Print name of the input file before every symbol"
-msgstr "Print name of the input file before every symbol"
-
-#: src/nm.c:82
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The "
-"default is `sysv'"
-msgstr ""
-"Use the output format FORMAT. FORMAT can be ‘bsd’, ‘sysv’ or ‘posix’. The "
-"default is ‘sysv’"
-
-#: src/nm.c:84
-msgid "Same as --format=bsd"
-msgstr "Same as --format=bsd"
-
-#: src/nm.c:85
-msgid "Same as --format=posix"
-msgstr "Same as --format=posix"
-
-#: src/nm.c:86 src/size.c:64
-msgid "Use RADIX for printing symbol values"
-msgstr "Use RADIX for printing symbol values"
-
-#: src/nm.c:87
-msgid "Mark special symbols"
-msgstr "Mark special symbols"
-
-#: src/nm.c:89
-msgid "Print size of defined symbols"
-msgstr "Print size of defined symbols"
-
-#: src/nm.c:91 src/size.c:72 src/strip.c:73 src/unstrip.c:73
-msgid "Output options:"
-msgstr "Output options:"
-
-#: src/nm.c:92
-msgid "Sort symbols numerically by address"
-msgstr "Sort symbols numerically by address"
-
-#: src/nm.c:94
-msgid "Do not sort the symbols"
-msgstr "Do not sort the symbols"
-
-#: src/nm.c:95
-msgid "Reverse the sense of the sort"
-msgstr "Reverse the sense of the sort"
-
-#: src/nm.c:98
-msgid "Decode low-level symbol names into source code names"
-msgstr "Decode low-level symbol names into source code names"
-
-#: src/nm.c:105
-msgid "List symbols from FILEs (a.out by default)."
-msgstr "List symbols from FILEs (a.out by default)."
-
-#: src/nm.c:116 src/objdump.c:80
-msgid "Output formatting"
-msgstr "Output formatting"
-
-#: src/nm.c:140 src/objdump.c:104 src/size.c:109 src/strip.c:120
-#, c-format
-msgid "%s: INTERNAL ERROR %d (%s-%s): %s"
-msgstr "%s: INTERNAL ERROR %d (%s-%s): %s"
-
-#: src/nm.c:398 src/nm.c:410 src/size.c:309 src/size.c:318 src/size.c:329
-#: src/strip.c:2160
-#, c-format
-msgid "while closing '%s'"
-msgstr "while closing ‘%s’"
-
-#: src/nm.c:420 src/objdump.c:296 src/strip.c:376
-#, c-format
-msgid "%s: File format not recognized"
-msgstr "%s: File format not recognized"
-
-#: src/nm.c:460
-msgid ""
-"\n"
-"Archive index:\n"
-msgstr ""
-"\n"
-"Archive index:\n"
-
-#: src/nm.c:469
-#, c-format
-msgid "invalid offset %zu for symbol %s"
-msgstr "invalid offset %zu for symbol %s"
-
-#: src/nm.c:474
-#, c-format
-msgid "%s in %s\n"
-msgstr "%s in %s\n"
-
-#: src/nm.c:482
-#, c-format
-msgid "cannot reset archive offset to beginning"
-msgstr "cannot reset archive offset to beginning"
-
-#: src/nm.c:506 src/objdump.c:344
-#, c-format
-msgid "%s%s%s: file format not recognized"
-msgstr "%s%s%s: file format not recognized"
-
-#: src/nm.c:718
-#, c-format
-msgid "cannot create search tree"
-msgstr "cannot create search tree"
-
-#: src/nm.c:757 src/nm.c:1163 src/objdump.c:793 src/readelf.c:536
-#: src/readelf.c:1085 src/readelf.c:1245 src/readelf.c:1393 src/readelf.c:1579
-#: src/readelf.c:1785 src/readelf.c:1975 src/readelf.c:2202 src/readelf.c:2460
-#: src/readelf.c:2536 src/readelf.c:2623 src/readelf.c:3201 src/readelf.c:3237
-#: src/readelf.c:3300 src/readelf.c:8187 src/readelf.c:9273 src/readelf.c:9420
-#: src/readelf.c:9488 src/size.c:417 src/size.c:486 src/strip.c:503
-#, c-format
-msgid "cannot get section header string table index"
-msgstr "cannot get section header string table index"
-
-#: src/nm.c:784
-#, c-format
-msgid ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-msgstr ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-
-#: src/nm.c:787
-#, c-format
-msgid ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-msgstr ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-
-#: src/nm.c:1173
-#, c-format
-msgid "%s: entry size in section `%s' is not what we expect"
-msgstr "%s: entry size in section ‘%s’ is not what we expect"
-
-#: src/nm.c:1177
-#, c-format
-msgid "%s: size of section `%s' is not multiple of entry size"
-msgstr "%s: size of section ‘%s’ is not multiple of entry size"
-
-#: src/nm.c:1435
-#, c-format
-msgid "%s%s%s%s: Invalid operation"
-msgstr "%s%s%s%s: Invalid operation"
-
-#: src/nm.c:1492
-#, c-format
-msgid "%s%s%s: no symbols"
-msgstr "%s%s%s: no symbols"
-
-#: src/objdump.c:53
-msgid "Mode selection:"
-msgstr "Mode selection:"
-
-#: src/objdump.c:54
-msgid "Display relocation information."
-msgstr "Display relocation information."
-
-#: src/objdump.c:56
-msgid "Display the full contents of all sections requested"
-msgstr "Display the full contents of all sections requested"
-
-#: src/objdump.c:58
-msgid "Display assembler code of executable sections"
-msgstr "Display assembler code of executable sections"
-
-#: src/objdump.c:60
-msgid "Output content selection:"
-msgstr "Output content selection:"
-
-#: src/objdump.c:62
-msgid "Only display information for section NAME."
-msgstr "Only display information for section NAME."
-
-#: src/objdump.c:68
-msgid "Show information from FILEs (a.out by default)."
-msgstr "Show information from FILEs (a.out by default)."
-
-#: src/objdump.c:236 src/readelf.c:473
-msgid "No operation specified.\n"
-msgstr "No operation specified.\n"
-
-#: src/objdump.c:274 src/objdump.c:286
-#, c-format
-msgid "while close `%s'"
-msgstr "while close ‘%s’"
-
-#: src/objdump.c:379 src/readelf.c:1880 src/readelf.c:2072
-msgid "INVALID SYMBOL"
-msgstr "INVALID SYMBOL"
-
-#: src/objdump.c:394 src/readelf.c:1914 src/readelf.c:2108
-msgid "INVALID SECTION"
-msgstr "INVALID SECTION"
-
-#: src/objdump.c:514
-#, c-format
-msgid ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-msgstr ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-
-#: src/objdump.c:517
-msgid "OFFSET"
-msgstr "OFFSET"
-
-#: src/objdump.c:582
-#, c-format
-msgid "Contents of section %s:\n"
-msgstr "Contents of section %s:\n"
-
-#: src/objdump.c:703
-#, c-format
-msgid "cannot disassemble"
-msgstr "cannot disassemble"
-
-#: src/objdump.c:742
-#, c-format
-msgid "cannot allocate memory"
-msgstr "cannot allocate memory"
-
-#: src/ranlib.c:66
-msgid "Generate an index to speed access to archives."
-msgstr "Generate an index to speed access to archives."
-
-#: src/ranlib.c:69
-msgid "ARCHIVE"
-msgstr "ARCHIVE"
-
-#: src/ranlib.c:108
-#, c-format
-msgid "Archive name required"
-msgstr "Archive name required"
-
-#: src/ranlib.c:186
-#, c-format
-msgid "'%s' is no archive"
-msgstr "‘%s’ is no archive"
-
-#: src/ranlib.c:221
-#, c-format
-msgid "error while freeing sub-ELF descriptor: %s"
-msgstr "error while freeing sub-ELF descriptor: %s"
-
-#: src/readelf.c:71
-msgid "ELF input selection:"
-msgstr "ELF input selection:"
-
-#: src/readelf.c:73
-msgid ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-msgstr ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-
-#: src/readelf.c:75
-msgid "ELF output selection:"
-msgstr "ELF output selection:"
-
-#: src/readelf.c:77
-msgid "All these plus -p .strtab -p .dynstr -p .comment"
-msgstr "All these plus -p .strtab -p .dynstr -p .comment"
-
-#: src/readelf.c:78
-msgid "Display the dynamic segment"
-msgstr "Display the dynamic segment"
-
-#: src/readelf.c:79
-msgid "Display the ELF file header"
-msgstr "Display the ELF file header"
-
-#: src/readelf.c:81
-msgid "Display histogram of bucket list lengths"
-msgstr "Display histogram of bucket list lengths"
-
-#: src/readelf.c:82
-msgid "Display the program headers"
-msgstr "Display the program headers"
-
-#: src/readelf.c:84
-msgid "Display relocations"
-msgstr "Display relocations"
-
-#: src/readelf.c:85
-msgid "Display the sections' headers"
-msgstr "Display the sections' headers"
-
-#: src/readelf.c:87
-msgid "Display the symbol table"
-msgstr "Display the symbol table"
-
-#: src/readelf.c:88
-msgid "Display versioning information"
-msgstr "Display versioning information"
-
-#: src/readelf.c:89
-msgid "Display the ELF notes"
-msgstr "Display the ELF notes"
-
-#: src/readelf.c:91
-msgid "Display architecture specific information, if any"
-msgstr "Display architecture specific information, if any"
-
-#: src/readelf.c:93
-msgid "Display sections for exception handling"
-msgstr "Display sections for exception handling"
-
-#: src/readelf.c:95
-msgid "Additional output selection:"
-msgstr "Additional output selection:"
-
-#: src/readelf.c:97
-msgid ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-msgstr ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-
-#: src/readelf.c:101
-msgid "Dump the uninterpreted contents of SECTION, by number or name"
-msgstr "Dump the uninterpreted contents of SECTION, by number or name"
-
-#: src/readelf.c:103
-msgid "Print string contents of sections"
-msgstr "Print string contents of sections"
-
-#: src/readelf.c:106
-msgid "Display the symbol index of an archive"
-msgstr "Display the symbol index of an archive"
-
-#: src/readelf.c:108
-msgid "Output control:"
-msgstr "Output control:"
-
-#: src/readelf.c:110
-msgid "Do not find symbol names for addresses in DWARF data"
-msgstr "Do not find symbol names for addresses in DWARF data"
-
-#: src/readelf.c:112
-msgid ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-msgstr ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-
-#: src/readelf.c:114
-msgid "Ignored for compatibility (lines always wide)"
-msgstr "Ignored for compatibility (lines always wide)"
-
-#: src/readelf.c:119
-msgid "Print information from ELF file in human-readable form."
-msgstr "Print information from ELF file in human-readable form."
-
-#: src/readelf.c:441
-#, c-format
-msgid "Unknown DWARF debug section `%s'.\n"
-msgstr "Unknown DWARF debug section ‘%s’.\n"
-
-#: src/readelf.c:520 src/readelf.c:631
-#, c-format
-msgid "cannot generate Elf descriptor: %s"
-msgstr "cannot generate Elf descriptor: %s"
-
-#: src/readelf.c:545 src/readelf.c:1099 src/readelf.c:1269
-#, c-format
-msgid "cannot get section: %s"
-msgstr "cannot get section: %s"
-
-#: src/readelf.c:554 src/readelf.c:1106 src/readelf.c:1277 src/readelf.c:9440
-#: src/unstrip.c:356 src/unstrip.c:387 src/unstrip.c:436 src/unstrip.c:544
-#: src/unstrip.c:561 src/unstrip.c:597 src/unstrip.c:795 src/unstrip.c:1063
-#: src/unstrip.c:1254 src/unstrip.c:1314 src/unstrip.c:1435 src/unstrip.c:1488
-#: src/unstrip.c:1595 src/unstrip.c:1784
-#, c-format
-msgid "cannot get section header: %s"
-msgstr "cannot get section header: %s"
-
-#: src/readelf.c:562
-#, c-format
-msgid "cannot get section name"
-msgstr "cannot get section name"
-
-#: src/readelf.c:571 src/readelf.c:5398 src/readelf.c:7671 src/readelf.c:7773
-#: src/readelf.c:7939
-#, c-format
-msgid "cannot get %s content: %s"
-msgstr "cannot get %s content: %s"
-
-#: src/readelf.c:587
-#, c-format
-msgid "cannot create temp file '%s'"
-msgstr "cannot create temp file ‘%s’"
-
-#: src/readelf.c:596
-#, c-format
-msgid "cannot write section data"
-msgstr "cannot write section data"
-
-#: src/readelf.c:602 src/readelf.c:619 src/readelf.c:648
-#, c-format
-msgid "error while closing Elf descriptor: %s"
-msgstr "error while closing Elf descriptor: %s"
-
-#: src/readelf.c:609
-#, c-format
-msgid "error while rewinding file descriptor"
-msgstr "error while rewinding file descriptor"
-
-#: src/readelf.c:643
-#, c-format
-msgid "'%s' is not an archive, cannot print archive index"
-msgstr "‘%s’ is not an archive, cannot print archive index"
-
-#: src/readelf.c:742
-#, c-format
-msgid "No such section '%s' in '%s'"
-msgstr "No such section ‘%s’ in ‘%s’"
-
-#: src/readelf.c:769
-#, c-format
-msgid "cannot stat input file"
-msgstr "cannot stat input file"
-
-#: src/readelf.c:771
-#, c-format
-msgid "input file is empty"
-msgstr "input file is empty"
-
-#: src/readelf.c:773
-#, c-format
-msgid "failed reading '%s': %s"
-msgstr "failed reading '%s': %s"
-
-#: src/readelf.c:814
-#, c-format
-msgid "cannot read ELF header: %s"
-msgstr "cannot read ELF header: %s"
-
-#: src/readelf.c:822
-#, c-format
-msgid "cannot create EBL handle"
-msgstr "cannot create EBL handle"
-
-#: src/readelf.c:835
-#, c-format
-msgid "cannot determine number of program headers: %s"
-msgstr "cannot determine number of program headers: %s"
-
-#: src/readelf.c:921
-msgid "NONE (None)"
-msgstr "NONE (None)"
-
-#: src/readelf.c:922
-msgid "REL (Relocatable file)"
-msgstr "REL (Relocatable file)"
-
-#: src/readelf.c:923
-msgid "EXEC (Executable file)"
-msgstr "EXEC (Executable file)"
-
-#: src/readelf.c:924
-msgid "DYN (Shared object file)"
-msgstr "DYN (Shared object file)"
-
-#: src/readelf.c:925
-msgid "CORE (Core file)"
-msgstr "CORE (Core file)"
-
-#: src/readelf.c:930
-#, c-format
-msgid "OS Specific: (%x)\n"
-msgstr "OS Specific: (%x)\n"
-
-#: src/readelf.c:932
-#, c-format
-msgid "Processor Specific: (%x)\n"
-msgstr "Processor Specific: (%x)\n"
-
-#: src/readelf.c:942
-msgid ""
-"ELF Header:\n"
-" Magic: "
-msgstr ""
-"ELF Header:\n"
-" Magic: "
-
-#: src/readelf.c:946
-#, c-format
-msgid ""
-"\n"
-" Class: %s\n"
-msgstr ""
-"\n"
-" Class: %s\n"
-
-#: src/readelf.c:951
-#, c-format
-msgid " Data: %s\n"
-msgstr " Data: %s\n"
-
-#: src/readelf.c:957
-#, c-format
-msgid " Ident Version: %hhd %s\n"
-msgstr " Ident Version: %hhd %s\n"
-
-#: src/readelf.c:959 src/readelf.c:976
-msgid "(current)"
-msgstr "(current)"
-
-#: src/readelf.c:963
-#, c-format
-msgid " OS/ABI: %s\n"
-msgstr " OS/ABI: %s\n"
-
-#: src/readelf.c:966
-#, c-format
-msgid " ABI Version: %hhd\n"
-msgstr " ABI Version: %hhd\n"
-
-#: src/readelf.c:969
-msgid " Type: "
-msgstr " Type: "
-
-#: src/readelf.c:972
-#, c-format
-msgid " Machine: %s\n"
-msgstr " Machine: %s\n"
-
-#: src/readelf.c:974
-#, c-format
-msgid " Version: %d %s\n"
-msgstr " Version: %d %s\n"
-
-#: src/readelf.c:978
-#, c-format
-msgid " Entry point address: %#<PRIx64>\n"
-msgstr " Entry point address: %#<PRIx64>\n"
-
-#: src/readelf.c:981
-#, c-format
-msgid " Start of program headers: %<PRId64> %s\n"
-msgstr " Start of program headers: %<PRId64> %s\n"
-
-#: src/readelf.c:982 src/readelf.c:985
-msgid "(bytes into file)"
-msgstr "(bytes into file)"
-
-#: src/readelf.c:984
-#, c-format
-msgid " Start of section headers: %<PRId64> %s\n"
-msgstr " Start of section headers: %<PRId64> %s\n"
-
-#: src/readelf.c:987
-#, c-format
-msgid " Flags: %s\n"
-msgstr " Flags: %s\n"
-
-#: src/readelf.c:990
-#, c-format
-msgid " Size of this header: %<PRId16> %s\n"
-msgstr " Size of this header: %<PRId16> %s\n"
-
-#: src/readelf.c:991 src/readelf.c:994 src/readelf.c:1011
-msgid "(bytes)"
-msgstr "(bytes)"
-
-#: src/readelf.c:993
-#, c-format
-msgid " Size of program header entries: %<PRId16> %s\n"
-msgstr " Size of program header entries: %<PRId16> %s\n"
-
-#: src/readelf.c:996
-#, c-format
-msgid " Number of program headers entries: %<PRId16>"
-msgstr " Number of program headers entries: %<PRId16>"
-
-#: src/readelf.c:1003
-#, c-format
-msgid " (%<PRIu32> in [0].sh_info)"
-msgstr " (%<PRIu32> in [0].sh_info)"
-
-#: src/readelf.c:1006 src/readelf.c:1023 src/readelf.c:1037
-msgid " ([0] not available)"
-msgstr " ([0] not available)"
-
-#: src/readelf.c:1010
-#, c-format
-msgid " Size of section header entries: %<PRId16> %s\n"
-msgstr " Size of section header entries: %<PRId16> %s\n"
-
-#: src/readelf.c:1013
-#, c-format
-msgid " Number of section headers entries: %<PRId16>"
-msgstr " Number of section headers entries: %<PRId16>"
-
-#: src/readelf.c:1020
-#, c-format
-msgid " (%<PRIu32> in [0].sh_size)"
-msgstr " (%<PRIu32> in [0].sh_size)"
-
-#: src/readelf.c:1033
-#, c-format
-msgid " (%<PRIu32> in [0].sh_link)"
-msgstr " (%<PRIu32> in [0].sh_link)"
-
-#: src/readelf.c:1041
-#, c-format
-msgid ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-msgstr ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-
-#: src/readelf.c:1045
-#, c-format
-msgid ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-msgstr ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-
-#: src/readelf.c:1077
-#, c-format
-msgid ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-
-#: src/readelf.c:1087
-msgid "Section Headers:"
-msgstr "Section Headers:"
-
-#: src/readelf.c:1090
-msgid ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-msgstr ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-
-#: src/readelf.c:1092
-msgid ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-msgstr ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-
-#: src/readelf.c:1164
-msgid "Program Headers:"
-msgstr "Program Headers:"
-
-#: src/readelf.c:1166
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-msgstr ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-
-#: src/readelf.c:1169
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-msgstr ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-
-#: src/readelf.c:1226
-#, c-format
-msgid "\t[Requesting program interpreter: %s]\n"
-msgstr "\t[Requesting program interpreter: %s]\n"
-
-#: src/readelf.c:1247
-msgid ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-msgstr ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-
-#: src/readelf.c:1258 src/unstrip.c:1843 src/unstrip.c:1886 src/unstrip.c:1893
-#, c-format
-msgid "cannot get program header: %s"
-msgstr "cannot get program header: %s"
-
-#: src/readelf.c:1401
-#, c-format
-msgid ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"COMDAT section group [%2zu] ‘%s’ with signature ‘%s’ contains %zu entry:\n"
-msgstr[1] ""
-"\n"
-"COMDAT section group [%2zu] ‘%s’ with signature ‘%s’ contains %zu entries:\n"
-
-#: src/readelf.c:1406
-#, c-format
-msgid ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Section group [%2zu] ‘%s’ with signature ‘%s’ contains %zu entry:\n"
-msgstr[1] ""
-"\n"
-"Section group [%2zu] ‘%s’ with signature ‘%s’ contains %zu entries:\n"
-
-#: src/readelf.c:1414
-msgid "<INVALID SYMBOL>"
-msgstr "<INVALID SYMBOL>"
-
-#: src/readelf.c:1428
-msgid "<INVALID SECTION>"
-msgstr "<INVALID SECTION>"
-
-#: src/readelf.c:1585 src/readelf.c:2208 src/readelf.c:2466 src/readelf.c:2542
-#: src/readelf.c:2846 src/readelf.c:2920 src/readelf.c:4610
-#, c-format
-msgid "invalid sh_link value in section %Zu"
-msgstr "invalid sh_link value in section %Zu"
-
-#: src/readelf.c:1588
-#, c-format
-msgid ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’\n"
-msgstr[1] ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’\n"
-
-#: src/readelf.c:1598
-msgid " Type Value\n"
-msgstr " Type Value\n"
-
-#: src/readelf.c:1622
-#, c-format
-msgid "Shared library: [%s]\n"
-msgstr "Shared library: [%s]\n"
-
-#: src/readelf.c:1627
-#, c-format
-msgid "Library soname: [%s]\n"
-msgstr "Library soname: [%s]\n"
-
-#: src/readelf.c:1632
-#, c-format
-msgid "Library rpath: [%s]\n"
-msgstr "Library rpath: [%s]\n"
-
-#: src/readelf.c:1637
-#, c-format
-msgid "Library runpath: [%s]\n"
-msgstr "Library runpath: [%s]\n"
-
-#: src/readelf.c:1657
-#, c-format
-msgid "%<PRId64> (bytes)\n"
-msgstr "%<PRId64> (bytes)\n"
-
-#: src/readelf.c:1770 src/readelf.c:1960
-#, c-format
-msgid ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-msgstr ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-
-#: src/readelf.c:1788 src/readelf.c:1978
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Relocation section [%2zu] ‘%s’ for section [%2u] ‘%s’ at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgstr[1] ""
-"\n"
-"Relocation section [%2zu] ‘%s’ for section [%2u] ‘%s’ at offset %#0<PRIx64> "
-"contains %d entries:\n"
-
-#: src/readelf.c:1803 src/readelf.c:1993
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Relocation section [%2u] ‘%s’ at offset %#0<PRIx64> contains %d entry:\n"
-msgstr[1] ""
-"\n"
-"Relocation section [%2u] ‘%s’ at offset %#0<PRIx64> contains %d entries:\n"
-
-#: src/readelf.c:1813
-msgid " Offset Type Value Name\n"
-msgstr " Offset Type Value Name\n"
-
-#: src/readelf.c:1815
-msgid " Offset Type Value Name\n"
-msgstr " Offset Type Value Name\n"
-
-#: src/readelf.c:1868 src/readelf.c:1879 src/readelf.c:1892 src/readelf.c:1913
-#: src/readelf.c:1925 src/readelf.c:2059 src/readelf.c:2071 src/readelf.c:2085
-#: src/readelf.c:2107 src/readelf.c:2120
-msgid "<INVALID RELOC>"
-msgstr "<INVALID RELOC>"
-
-#: src/readelf.c:2003
-msgid " Offset Type Value Addend Name\n"
-msgstr " Offset Type Value Addend Name\n"
-
-#: src/readelf.c:2005
-msgid " Offset Type Value Addend Name\n"
-msgstr ""
-" Offset Type Value Addend Name\n"
-
-#: src/readelf.c:2216
-#, c-format
-msgid ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entry:\n"
-msgid_plural ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entries:\n"
-msgstr[0] ""
-"\n"
-"Symbol table [%2u] ‘%s’ contains %u entry:\n"
-msgstr[1] ""
-"\n"
-"Symbol table [%2u] ‘%s’ contains %u entries:\n"
-
-#: src/readelf.c:2221
-#, c-format
-msgid " %lu local symbol String table: [%2u] '%s'\n"
-msgid_plural " %lu local symbols String table: [%2u] '%s'\n"
-msgstr[0] " %lu local symbol String table: [%2u] ‘%s’\n"
-msgstr[1] " %lu local symbols String table: [%2u] ‘%s’\n"
-
-#: src/readelf.c:2229
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " Num: Value Size Type Bind Vis Ndx Name\n"
-
-#: src/readelf.c:2231
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " Num: Value Size Type Bind Vis Ndx Name\n"
-
-#: src/readelf.c:2251
-#, c-format
-msgid "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-msgstr "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-
-#: src/readelf.c:2339
-#, c-format
-msgid "bad dynamic symbol"
-msgstr "bad dynamic symbol"
-
-#: src/readelf.c:2421
-msgid "none"
-msgstr "none"
-
-#: src/readelf.c:2438
-msgid "| <unknown>"
-msgstr "| <unknown>"
-
-#: src/readelf.c:2469
-#, c-format
-msgid ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Version needs section [%2u] ‘%s’ contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’\n"
-msgstr[1] ""
-"\n"
-"Version needs section [%2u] ‘%s’ contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’\n"
-
-#: src/readelf.c:2490
-#, c-format
-msgid " %#06x: Version: %hu File: %s Cnt: %hu\n"
-msgstr " %#06x: Version: %hu File: %s Cnt: %hu\n"
-
-#: src/readelf.c:2503
-#, c-format
-msgid " %#06x: Name: %s Flags: %s Version: %hu\n"
-msgstr " %#06x: Name: %s Flags: %s Version: %hu\n"
-
-#: src/readelf.c:2546
-#, c-format
-msgid ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Version definition section [%2u] ‘%s’ contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’\n"
-msgstr[1] ""
-"\n"
-"Version definition section [%2u] ‘%s’ contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’\n"
-
-#: src/readelf.c:2574
-#, c-format
-msgid " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-msgstr " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-
-#: src/readelf.c:2589
-#, c-format
-msgid " %#06x: Parent %d: %s\n"
-msgstr " %#06x: Parent %d: %s\n"
-
-#: src/readelf.c:2850
-#, c-format
-msgid ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgid_plural ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgstr[0] ""
-"\n"
-"Version symbols section [%2u] ‘%s’ contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’"
-msgstr[1] ""
-"\n"
-"Version symbols section [%2u] ‘%s’ contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’"
-
-#: src/readelf.c:2878
-msgid " 0 *local* "
-msgstr " 0 *local* "
-
-#: src/readelf.c:2883
-msgid " 1 *global* "
-msgstr " 1 *global* "
-
-#: src/readelf.c:2925
-#, c-format
-msgid ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Histogram for bucket list length in section [%2u] ‘%s’ (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’\n"
-msgstr[1] ""
-"\n"
-"Histogram for bucket list length in section [%2u] ‘%s’ (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] ‘%s’\n"
-
-#: src/readelf.c:2947
-#, no-c-format
-msgid " Length Number % of total Coverage\n"
-msgstr " Length Number % of total Coverage\n"
-
-#: src/readelf.c:2949
-#, c-format
-msgid " 0 %6<PRIu32> %5.1f%%\n"
-msgstr " 0 %6<PRIu32> %5.1f%%\n"
-
-#: src/readelf.c:2956
-#, c-format
-msgid "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-msgstr "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-
-#: src/readelf.c:2969
-#, c-format
-msgid ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-msgstr ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-
-#: src/readelf.c:2987 src/readelf.c:3042 src/readelf.c:3098
-#, c-format
-msgid "cannot get data for section %d: %s"
-msgstr "cannot get data for section %d: %s"
-
-#: src/readelf.c:2995
-#, c-format
-msgid "invalid data in sysv.hash section %d"
-msgstr "invalid data in sysv.hash section %d"
-
-#: src/readelf.c:3050
-#, c-format
-msgid "invalid data in sysv.hash64 section %d"
-msgstr "invalid data in sysv.hash64 section %d"
-
-#: src/readelf.c:3106
-#, c-format
-msgid "invalid data in gnu.hash section %d"
-msgstr "invalid data in gnu.hash section %d"
-
-#: src/readelf.c:3173
-#, c-format
-msgid ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-msgstr ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-
-#: src/readelf.c:3248
-#, c-format
-msgid ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Library list section [%2zu] ‘%s’ at offset %#0<PRIx64> contains %d entry:\n"
-msgstr[1] ""
-"\n"
-"Library list section [%2zu] ‘%s’ at offset %#0<PRIx64> contains %d entries:\n"
-
-#: src/readelf.c:3262
-msgid ""
-" Library Time Stamp Checksum Version "
-"Flags"
-msgstr ""
-" Library Time Stamp Checksum Version "
-"Flags"
-
-#: src/readelf.c:3312
-#, c-format
-msgid ""
-"\n"
-"Object attributes section [%2zu] '%s' of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Object attributes section [%2zu] ‘%s’ of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:3329
-msgid " Owner Size\n"
-msgstr " Owner Size\n"
-
-#: src/readelf.c:3358
-#, c-format
-msgid " %-13s %4<PRIu32>\n"
-msgstr " %-13s %4<PRIu32>\n"
-
-#: src/readelf.c:3397
-#, c-format
-msgid " %-4u %12<PRIu32>\n"
-msgstr " %-4u %12<PRIu32>\n"
-
-#: src/readelf.c:3402
-#, c-format
-msgid " File: %11<PRIu32>\n"
-msgstr " File: %11<PRIu32>\n"
-
-#: src/readelf.c:3451
-#, c-format
-msgid " %s: %<PRId64>, %s\n"
-msgstr " %s: %<PRId64>, %s\n"
-
-#: src/readelf.c:3454
-#, c-format
-msgid " %s: %<PRId64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:3457
-#, c-format
-msgid " %s: %s\n"
-msgstr " %s: %s\n"
-
-#: src/readelf.c:3467
-#, c-format
-msgid " %u: %<PRId64>\n"
-msgstr " %u: %<PRId64>\n"
-
-#: src/readelf.c:3470
-#, c-format
-msgid " %u: %s\n"
-msgstr " %u: %s\n"
-
-#: src/readelf.c:3515
-#, c-format
-msgid "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3518
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3523
-#, c-format
-msgid "%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3526
-#, c-format
-msgid "%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3532
-#, c-format
-msgid "%s+%#<PRIx64> <%s>"
-msgstr "%s+%#<PRIx64> <%s>"
-
-#: src/readelf.c:3535
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s>"
-msgstr "%s+%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3539
-#, c-format
-msgid "%#<PRIx64> <%s>"
-msgstr "%#<PRIx64> <%s>"
-
-#: src/readelf.c:3542
-#, c-format
-msgid "%#0*<PRIx64> <%s>"
-msgstr "%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3547
-#, c-format
-msgid "%s+%#<PRIx64>"
-msgstr "%s+%#<PRIx64>"
-
-#: src/readelf.c:3550
-#, c-format
-msgid "%s+%#0*<PRIx64>"
-msgstr "%s+%#0*<PRIx64>"
-
-#: src/readelf.c:3932
-msgid "empty block"
-msgstr "empty block"
-
-#: src/readelf.c:3935
-#, c-format
-msgid "%zu byte block:"
-msgstr "%zu byte block:"
-
-#: src/readelf.c:4332
-#, c-format
-msgid "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-msgstr "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-
-#: src/readelf.c:4389
-#, c-format
-msgid "%s %#<PRIx64> used with different address sizes"
-msgstr "%s %#<PRIx64> used with different address sizes"
-
-#: src/readelf.c:4396
-#, c-format
-msgid "%s %#<PRIx64> used with different offset sizes"
-msgstr "%s %#<PRIx64> used with different offset sizes"
-
-#: src/readelf.c:4403
-#, c-format
-msgid "%s %#<PRIx64> used with different base addresses"
-msgstr "%s %#<PRIx64> used with different base addresses"
-
-#: src/readelf.c:4492
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-msgstr " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-
-#: src/readelf.c:4500
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-msgstr " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-
-#: src/readelf.c:4526
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [ Code]\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-" [ Code]\n"
-
-#: src/readelf.c:4534
-#, c-format
-msgid ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-msgstr ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-
-#: src/readelf.c:4547
-#, c-format
-msgid " *** error while reading abbreviation: %s\n"
-msgstr " *** error while reading abbreviation: %s\n"
-
-#: src/readelf.c:4563
-#, c-format
-msgid " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-msgstr " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-
-#: src/readelf.c:4566
-msgid "yes"
-msgstr "yes"
-
-#: src/readelf.c:4566
-msgid "no"
-msgstr "no"
-
-#: src/readelf.c:4600 src/readelf.c:4673
-#, c-format
-msgid "cannot get .debug_aranges content: %s"
-msgstr "cannot get .debug_aranges content: %s"
-
-#: src/readelf.c:4615
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64> contains %zu entry:\n"
-msgstr[1] ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64> contains %zu entries:\n"
-
-#: src/readelf.c:4646
-#, c-format
-msgid " [%*zu] ???\n"
-msgstr " [%*zu] ???\n"
-
-#: src/readelf.c:4648
-#, c-format
-msgid ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-msgstr ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-
-#: src/readelf.c:4678 src/readelf.c:4832 src/readelf.c:5408 src/readelf.c:6362
-#: src/readelf.c:6894 src/readelf.c:7014 src/readelf.c:7177 src/readelf.c:7602
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-
-#: src/readelf.c:4691 src/readelf.c:6388
-#, c-format
-msgid ""
-"\n"
-"Table at offset %Zu:\n"
-msgstr ""
-"\n"
-"Table at offset %Zu:\n"
-
-#: src/readelf.c:4695 src/readelf.c:5432 src/readelf.c:6399
-#, c-format
-msgid "invalid data in section [%zu] '%s'"
-msgstr "invalid data in section [%zu] ‘%s’"
-
-#: src/readelf.c:4711
-#, c-format
-msgid ""
-"\n"
-" Length: %6<PRIu64>\n"
-msgstr ""
-"\n"
-" Length: %6<PRIu64>\n"
-
-#: src/readelf.c:4723
-#, c-format
-msgid " DWARF version: %6<PRIuFAST16>\n"
-msgstr " DWARF version: %6<PRIuFAST16>\n"
-
-#: src/readelf.c:4727
-#, c-format
-msgid "unsupported aranges version"
-msgstr "unsupported aranges version"
-
-#: src/readelf.c:4738
-#, c-format
-msgid " CU offset: %6<PRIx64>\n"
-msgstr " CU offset: %6<PRIx64>\n"
-
-#: src/readelf.c:4744
-#, c-format
-msgid " Address size: %6<PRIu64>\n"
-msgstr " Address size: %6<PRIu64>\n"
-
-#: src/readelf.c:4748
-#, c-format
-msgid "unsupported address size"
-msgstr "unsupported address size"
-
-#: src/readelf.c:4753
-#, c-format
-msgid ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-msgstr ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-
-#: src/readelf.c:4757
-#, c-format
-msgid "unsupported segment size"
-msgstr "unsupported segment size"
-
-#: src/readelf.c:4797
-#, c-format
-msgid " %s..%s (%<PRIx64>)\n"
-msgstr " %s..%s (%<PRIx64>)\n"
-
-#: src/readelf.c:4800
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:4809
-#, c-format
-msgid " %Zu padding bytes\n"
-msgstr " %Zu padding bytes\n"
-
-#: src/readelf.c:4827
-#, c-format
-msgid "cannot get .debug_ranges content: %s"
-msgstr "cannot get .debug_ranges content: %s"
-
-#: src/readelf.c:4857 src/readelf.c:6921
-#, c-format
-msgid " [%6tx] <INVALID DATA>\n"
-msgstr " [%6tx] <INVALID DATA>\n"
-
-#: src/readelf.c:4879 src/readelf.c:6943
-#, c-format
-msgid " [%6tx] base address %s\n"
-msgstr " [%6tx] base address %s\n"
-
-#: src/readelf.c:4886 src/readelf.c:6950
-#, c-format
-msgid " [%6tx] empty list\n"
-msgstr " [%6tx] empty list\n"
-
-#: src/readelf.c:4897
-#, c-format
-msgid " [%6tx] %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4899
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:5078
-msgid " <INVALID DATA>\n"
-msgstr " <INVALID DATA>\n"
-
-#: src/readelf.c:5387
-#, c-format
-msgid "cannot get ELF: %s"
-msgstr "cannot get ELF: %s"
-
-#: src/readelf.c:5404
-#, c-format
-msgid ""
-"\n"
-"Call frame information section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"Call frame information section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-
-#: src/readelf.c:5454
-#, c-format
-msgid ""
-"\n"
-" [%6tx] Zero terminator\n"
-msgstr ""
-"\n"
-" [%6tx] Zero terminator\n"
-
-#: src/readelf.c:5547 src/readelf.c:5702
-#, c-format
-msgid "invalid augmentation length"
-msgstr "invalid augmentation length"
-
-#: src/readelf.c:5562
-msgid "FDE address encoding: "
-msgstr "FDE address encoding: "
-
-#: src/readelf.c:5568
-msgid "LSDA pointer encoding: "
-msgstr "LSDA pointer encoding: "
-
-#: src/readelf.c:5679
-#, c-format
-msgid " (offset: %#<PRIx64>)"
-msgstr " (offset: %#<PRIx64>)"
-
-#: src/readelf.c:5686
-#, c-format
-msgid " (end offset: %#<PRIx64>)"
-msgstr " (end offset: %#<PRIx64>)"
-
-#: src/readelf.c:5723
-#, c-format
-msgid " %-26sLSDA pointer: %#<PRIx64>\n"
-msgstr " %-26sLSDA pointer: %#<PRIx64>\n"
-
-#: src/readelf.c:5778
-#, c-format
-msgid "cannot get attribute code: %s"
-msgstr "cannot get attribute code: %s"
-
-#: src/readelf.c:5787
-#, c-format
-msgid "cannot get attribute form: %s"
-msgstr "cannot get attribute form: %s"
-
-#: src/readelf.c:5802
-#, c-format
-msgid "cannot get attribute value: %s"
-msgstr "cannot get attribute value: %s"
-
-#: src/readelf.c:6101
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [Offset]\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-" [Offset]\n"
-
-#: src/readelf.c:6133
-#, c-format
-msgid ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-msgstr ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-
-#: src/readelf.c:6142
-#, c-format
-msgid ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-msgstr ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-
-#: src/readelf.c:6167
-#, c-format
-msgid "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-msgstr "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-
-#: src/readelf.c:6181
-#, c-format
-msgid "cannot get DIE offset: %s"
-msgstr "cannot get DIE offset: %s"
-
-#: src/readelf.c:6190
-#, c-format
-msgid "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-msgstr "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-
-#: src/readelf.c:6222
-#, c-format
-msgid "cannot get next DIE: %s\n"
-msgstr "cannot get next DIE: %s\n"
-
-#: src/readelf.c:6230
-#, c-format
-msgid "cannot get next DIE: %s"
-msgstr "cannot get next DIE: %s"
-
-#: src/readelf.c:6266
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-"\n"
-
-#: src/readelf.c:6375
-#, c-format
-msgid "cannot get line data section data: %s"
-msgstr "cannot get line data section data: %s"
-
-#: src/readelf.c:6445
-#, c-format
-msgid ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-msgstr ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-
-#: src/readelf.c:6466
-#, c-format
-msgid "invalid data at offset %tu in section [%zu] '%s'"
-msgstr "invalid data at offset %tu in section [%zu] ‘%s’"
-
-#: src/readelf.c:6481
-#, c-format
-msgid " [%*<PRIuFAST8>] %hhu argument\n"
-msgid_plural " [%*<PRIuFAST8>] %hhu arguments\n"
-msgstr[0] " [%*<PRIuFAST8>] %hhu argument\n"
-msgstr[1] " [%*<PRIuFAST8>] %hhu arguments\n"
-
-#: src/readelf.c:6489
-msgid ""
-"\n"
-"Directory table:"
-msgstr ""
-"\n"
-"Directory table:"
-
-#: src/readelf.c:6505
-msgid ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-msgstr ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-
-#: src/readelf.c:6540
-msgid ""
-"\n"
-"Line number statements:"
-msgstr ""
-"\n"
-"Line number statements:"
-
-#: src/readelf.c:6591
-#, c-format
-msgid "invalid maximum operations per instruction is zero"
-msgstr "invalid maximum operations per instruction is zero"
-
-#: src/readelf.c:6627
-#, c-format
-msgid " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-msgstr " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-
-#: src/readelf.c:6632
-#, c-format
-msgid " special opcode %u: address+%u = %s, line%+d = %zu\n"
-msgstr " special opcode %u: address+%u = %s, line%+d = %zu\n"
-
-#: src/readelf.c:6652
-#, c-format
-msgid " extended opcode %u: "
-msgstr " extended opcode %u: "
-
-#: src/readelf.c:6657
-msgid " end of sequence"
-msgstr " end of sequence"
-
-#: src/readelf.c:6676
-#, c-format
-msgid " set address to %s\n"
-msgstr " set address to %s\n"
-
-#: src/readelf.c:6703
-#, c-format
-msgid " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-msgstr " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-
-#: src/readelf.c:6716
-#, c-format
-msgid " set discriminator to %u\n"
-msgstr " set discriminator to %u\n"
-
-#: src/readelf.c:6721
-msgid " unknown opcode"
-msgstr " unknown opcode"
-
-#: src/readelf.c:6733
-msgid " copy"
-msgstr " copy"
-
-#: src/readelf.c:6744
-#, c-format
-msgid " advance address by %u to %s, op_index to %u\n"
-msgstr " advance address by %u to %s, op_index to %u\n"
-
-#: src/readelf.c:6748
-#, c-format
-msgid " advance address by %u to %s\n"
-msgstr " advance address by %u to %s\n"
-
-#: src/readelf.c:6759
-#, c-format
-msgid " advance line by constant %d to %<PRId64>\n"
-msgstr " advance line by constant %d to %<PRId64>\n"
-
-#: src/readelf.c:6767
-#, c-format
-msgid " set file to %<PRIu64>\n"
-msgstr " set file to %<PRIu64>\n"
-
-#: src/readelf.c:6777
-#, c-format
-msgid " set column to %<PRIu64>\n"
-msgstr " set column to %<PRIu64>\n"
-
-#: src/readelf.c:6784
-#, c-format
-msgid " set '%s' to %<PRIuFAST8>\n"
-msgstr " set ‘%s’ to %<PRIuFAST8>\n"
-
-#: src/readelf.c:6790
-msgid " set basic block flag"
-msgstr " set basic block flag"
-
-#: src/readelf.c:6803
-#, c-format
-msgid " advance address by constant %u to %s, op_index to %u\n"
-msgstr " advance address by constant %u to %s, op_index to %u\n"
-
-#: src/readelf.c:6807
-#, c-format
-msgid " advance address by constant %u to %s\n"
-msgstr " advance address by constant %u to %s\n"
-
-#: src/readelf.c:6825
-#, c-format
-msgid " advance address by fixed value %u to %s\n"
-msgstr " advance address by fixed value %u to %s\n"
-
-#: src/readelf.c:6834
-msgid " set prologue end flag"
-msgstr " set prologue end flag"
-
-#: src/readelf.c:6839
-msgid " set epilogue begin flag"
-msgstr " set epilogue begin flag"
-
-#: src/readelf.c:6848
-#, c-format
-msgid " set isa to %u\n"
-msgstr " set isa to %u\n"
-
-#: src/readelf.c:6857
-#, c-format
-msgid " unknown opcode with %<PRIu8> parameter:"
-msgid_plural " unknown opcode with %<PRIu8> parameters:"
-msgstr[0] " unknown opcode with %<PRIu8> parameter:"
-msgstr[1] " unknown opcode with %<PRIu8> parameters:"
-
-#: src/readelf.c:6889
-#, c-format
-msgid "cannot get .debug_loc content: %s"
-msgstr "cannot get .debug_loc content: %s"
-
-#: src/readelf.c:6964
-#, c-format
-msgid " [%6tx] %s..%s"
-msgstr " [%6tx] %s..%s"
-
-#: src/readelf.c:6966
-#, c-format
-msgid " %s..%s"
-msgstr " %s..%s"
-
-#: src/readelf.c:6973 src/readelf.c:7858
-msgid " <INVALID DATA>\n"
-msgstr " <INVALID DATA>\n"
-
-#: src/readelf.c:7025 src/readelf.c:7186
-#, c-format
-msgid "cannot get macro information section data: %s"
-msgstr "cannot get macro information section data: %s"
-
-#: src/readelf.c:7104
-#, c-format
-msgid "%*s*** non-terminated string at end of section"
-msgstr "%*s*** non-terminated string at end of section"
-
-#: src/readelf.c:7127
-#, c-format
-msgid "%*s*** missing DW_MACINFO_start_file argument at end of section"
-msgstr "%*s*** missing DW_MACINFO_start_file argument at end of section"
-
-#: src/readelf.c:7227
-#, c-format
-msgid " Offset: 0x%<PRIx64>\n"
-msgstr " Offset: 0x%<PRIx64>\n"
-
-#: src/readelf.c:7239
-#, c-format
-msgid " Version: %<PRIu16>\n"
-msgstr " Version: %<PRIu16>\n"
-
-#: src/readelf.c:7245 src/readelf.c:7968
-#, c-format
-msgid " unknown version, cannot parse section\n"
-msgstr " unknown version, cannot parse section\n"
-
-#: src/readelf.c:7252
-#, c-format
-msgid " Flag: 0x%<PRIx8>\n"
-msgstr " Flag: 0x%<PRIx8>\n"
-
-#: src/readelf.c:7255
-#, c-format
-msgid " Offset length: %<PRIu8>\n"
-msgstr " Offset length: %<PRIu8>\n"
-
-#: src/readelf.c:7263
-#, c-format
-msgid " .debug_line offset: 0x%<PRIx64>\n"
-msgstr " .debug_line offset: 0x%<PRIx64>\n"
-
-#: src/readelf.c:7276
-#, c-format
-msgid " extension opcode table, %<PRIu8> items:\n"
-msgstr " extension opcode table, %<PRIu8> items:\n"
-
-#: src/readelf.c:7283
-#, c-format
-msgid " [%<PRIx8>]"
-msgstr " [%<PRIx8>]"
-
-#: src/readelf.c:7295
-#, c-format
-msgid " %<PRIu8> arguments:"
-msgstr " %<PRIu8> arguments:"
-
-#: src/readelf.c:7323
-#, c-format
-msgid " no arguments."
-msgstr " no arguments."
-
-#: src/readelf.c:7560
-#, c-format
-msgid "vendor opcode not verified?"
-msgstr "vendor opcode not verified?"
-
-#: src/readelf.c:7588
-#, c-format
-msgid " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-msgstr " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-
-#: src/readelf.c:7629
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" %*s String\n"
-msgstr ""
-"\n"
-"DWARF section [%2zu] ‘%s’ at offset %#<PRIx64>:\n"
-" %*s String\n"
-
-#: src/readelf.c:7643
-#, c-format
-msgid " *** error while reading strings: %s\n"
-msgstr " *** error while reading strings: %s\n"
-
-#: src/readelf.c:7663
-#, c-format
-msgid ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-msgstr ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-
-#: src/readelf.c:7765
-#, c-format
-msgid ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-msgstr ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-
-#: src/readelf.c:7788
-#, c-format
-msgid " LPStart encoding: %#x "
-msgstr " LPStart encoding: %#x "
-
-#: src/readelf.c:7800
-#, c-format
-msgid " TType encoding: %#x "
-msgstr " TType encoding: %#x "
-
-#: src/readelf.c:7815
-#, c-format
-msgid " Call site encoding: %#x "
-msgstr " Call site encoding: %#x "
-
-#: src/readelf.c:7828
-msgid ""
-"\n"
-" Call site table:"
-msgstr ""
-"\n"
-" Call site table:"
-
-#: src/readelf.c:7842
-#, c-format
-msgid ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-msgstr ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-
-#: src/readelf.c:7909
-#, c-format
-msgid "invalid TType encoding"
-msgstr "invalid TType encoding"
-
-#: src/readelf.c:7930
-#, c-format
-msgid ""
-"\n"
-"GDB section [%2zu] '%s' at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-msgstr ""
-"\n"
-"GDB section [%2zu] ‘%s’ at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-
-#: src/readelf.c:7959
-#, c-format
-msgid " Version: %<PRId32>\n"
-msgstr " Version: %<PRId32>\n"
-
-#: src/readelf.c:7977
-#, c-format
-msgid " CU offset: %#<PRIx32>\n"
-msgstr " CU offset: %#<PRIx32>\n"
-
-#: src/readelf.c:7984
-#, c-format
-msgid " TU offset: %#<PRIx32>\n"
-msgstr " TU offset: %#<PRIx32>\n"
-
-#: src/readelf.c:7991
-#, c-format
-msgid " address offset: %#<PRIx32>\n"
-msgstr " address offset: %#<PRIx32>\n"
-
-#: src/readelf.c:7998
-#, c-format
-msgid " symbol offset: %#<PRIx32>\n"
-msgstr " symbol offset: %#<PRIx32>\n"
-
-#: src/readelf.c:8005
-#, c-format
-msgid " constant offset: %#<PRIx32>\n"
-msgstr " constant offset: %#<PRIx32>\n"
-
-#: src/readelf.c:8012
-#, c-format
-msgid ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-
-#: src/readelf.c:8034
-#, c-format
-msgid ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-
-#: src/readelf.c:8060
-#, c-format
-msgid ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-
-#: src/readelf.c:8089
-#, c-format
-msgid ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-msgstr ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-
-#: src/readelf.c:8176
-#, c-format
-msgid "cannot get debug context descriptor: %s"
-msgstr "cannot get debug context descriptor: %s"
-
-#: src/readelf.c:8336 src/readelf.c:8942 src/readelf.c:9053 src/readelf.c:9111
-#, c-format
-msgid "cannot convert core note data: %s"
-msgstr "cannot convert core note data: %s"
-
-#: src/readelf.c:8683
-#, c-format
-msgid ""
-"\n"
-"%*s... <repeats %u more times> ..."
-msgstr ""
-"\n"
-"%*s... <repeats %u more times> ..."
-
-#: src/readelf.c:9190
-msgid " Owner Data size Type\n"
-msgstr " Owner Data size Type\n"
-
-#: src/readelf.c:9208
-#, c-format
-msgid " %-13.*s %9<PRId32> %s\n"
-msgstr " %-13.*s %9<PRId32> %s\n"
-
-#: src/readelf.c:9258
-#, c-format
-msgid "cannot get content of note section: %s"
-msgstr "cannot get content of note section: %s"
-
-#: src/readelf.c:9285
-#, c-format
-msgid ""
-"\n"
-"Note section [%2zu] '%s' of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Note section [%2zu] ‘%s’ of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-
-#: src/readelf.c:9308
-#, c-format
-msgid ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-
-#: src/readelf.c:9354
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no data to dump.\n"
-msgstr ""
-"\n"
-"Section [%Zu] ‘%s’ has no data to dump.\n"
-
-#: src/readelf.c:9360 src/readelf.c:9383
-#, c-format
-msgid "cannot get data for section [%Zu] '%s': %s"
-msgstr "cannot get data for section [%Zu] '%s': %s"
-
-#: src/readelf.c:9364
-#, c-format
-msgid ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-
-#: src/readelf.c:9377
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no strings to dump.\n"
-msgstr ""
-"\n"
-"Section [%Zu] ‘%s’ has no strings to dump.\n"
-
-#: src/readelf.c:9387
-#, c-format
-msgid ""
-"\n"
-"String section [%Zu] '%s' contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"String section [%Zu] ‘%s’ contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-
-#: src/readelf.c:9435
-#, c-format
-msgid ""
-"\n"
-"section [%lu] does not exist"
-msgstr ""
-"\n"
-"section [%lu] does not exist"
-
-#: src/readelf.c:9464
-#, c-format
-msgid ""
-"\n"
-"section '%s' does not exist"
-msgstr ""
-"\n"
-"section ‘%s’ does not exist"
-
-#: src/readelf.c:9521
-#, c-format
-msgid "cannot get symbol index of archive '%s': %s"
-msgstr "cannot get symbol index of archive '%s': %s"
-
-#: src/readelf.c:9524
-#, c-format
-msgid ""
-"\n"
-"Archive '%s' has no symbol index\n"
-msgstr ""
-"\n"
-"Archive ‘%s’ has no symbol index\n"
-
-#: src/readelf.c:9528
-#, c-format
-msgid ""
-"\n"
-"Index of archive '%s' has %Zu entries:\n"
-msgstr ""
-"\n"
-"Index of archive ‘%s’ has %Zu entries:\n"
-
-#: src/readelf.c:9546
-#, c-format
-msgid "cannot extract member at offset %Zu in '%s': %s"
-msgstr "cannot extract member at offset %Zu in '%s': %s"
-
-#: src/readelf.c:9551
-#, c-format
-msgid "Archive member '%s' contains:\n"
-msgstr "Archive member ‘%s’ contains:\n"
-
-#: src/size.c:60
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd' or `sysv'. The default "
-"is `bsd'"
-msgstr ""
-"Use the output format FORMAT. FORMAT can be ‘bsd’ or ‘sysv’. The default "
-"is ‘bsd’"
-
-#: src/size.c:62
-msgid "Same as `--format=sysv'"
-msgstr "Same as ‘--format=sysv’"
-
-#: src/size.c:63
-msgid "Same as `--format=bsd'"
-msgstr "Same as ‘--format=bsd’"
-
-#: src/size.c:66
-msgid "Same as `--radix=10'"
-msgstr "Same as ‘--radix=10’"
-
-#: src/size.c:67
-msgid "Same as `--radix=8'"
-msgstr "Same as ‘--radix=8’"
-
-#: src/size.c:68
-msgid "Same as `--radix=16'"
-msgstr "Same as ‘--radix=16’"
-
-#: src/size.c:70
-msgid "Similar to `--format=sysv' output but in one line"
-msgstr "Similar to ‘--format=sysv’ output but in one line"
-
-#: src/size.c:74
-msgid "Print size and permission flags for loadable segments"
-msgstr "Print size and permission flags for loadable segments"
-
-#: src/size.c:75
-msgid "Display the total sizes (bsd only)"
-msgstr "Display the total sizes (bsd only)"
-
-#: src/size.c:80
-msgid "List section sizes of FILEs (a.out by default)."
-msgstr "List section sizes of FILEs (a.out by default)."
-
-#: src/size.c:261
-#, c-format
-msgid "Invalid format: %s"
-msgstr "Invalid format: %s"
-
-#: src/size.c:272
-#, c-format
-msgid "Invalid radix: %s"
-msgstr "Invalid radix: %s"
-
-#: src/size.c:331
-#, c-format
-msgid "%s: file format not recognized"
-msgstr "%s: file format not recognized"
-
-#: src/size.c:437 src/size.c:570
-#, c-format
-msgid " (ex %s)"
-msgstr " (ex %s)"
-
-#: src/size.c:595
-msgid "(TOTALS)\n"
-msgstr "(TOTALS)\n"
-
-#: src/strings.c:62
-msgid "Output Selection:"
-msgstr "Output Selection:"
-
-#: src/strings.c:63
-msgid "Scan entire file, not only loaded sections"
-msgstr "Scan entire file, not only loaded sections"
-
-#: src/strings.c:65
-msgid "Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-msgstr ""
-"Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-
-#: src/strings.c:66
-msgid ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-msgstr ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-
-#: src/strings.c:70
-msgid "Print name of the file before each string."
-msgstr "Print name of the file before each string."
-
-#: src/strings.c:72
-msgid "Print location of the string in base 8, 10, or 16 respectively."
-msgstr "Print location of the string in base 8, 10, or 16 respectively."
-
-#: src/strings.c:73
-msgid "Alias for --radix=o"
-msgstr "Alias for --radix=o"
-
-#: src/strings.c:80
-msgid "Print the strings of printable characters in files."
-msgstr "Print the strings of printable characters in files."
-
-#: src/strings.c:267 src/strings.c:302
-#, c-format
-msgid "invalid value '%s' for %s parameter"
-msgstr "invalid value ‘%s’ for %s parameter"
-
-#: src/strings.c:313
-#, c-format
-msgid "invalid minimum length of matched string size"
-msgstr "invalid minimum length of matched string size"
-
-#: src/strings.c:596
-#, c-format
-msgid "lseek64 failed"
-msgstr "lseek64 failed"
-
-#: src/strings.c:613 src/strings.c:677
-#, c-format
-msgid "re-mmap failed"
-msgstr "re-mmap failed"
-
-#: src/strings.c:650
-#, c-format
-msgid "mprotect failed"
-msgstr "mprotect failed"
-
-#: src/strip.c:69
-msgid "Place stripped output into FILE"
-msgstr "Place stripped output into FILE"
-
-#: src/strip.c:70
-msgid "Extract the removed sections into FILE"
-msgstr "Extract the removed sections into FILE"
-
-#: src/strip.c:71
-msgid "Embed name FILE instead of -f argument"
-msgstr "Embed name FILE instead of -f argument"
-
-#: src/strip.c:75
-msgid "Remove all debugging symbols"
-msgstr "Remove all debugging symbols"
-
-#: src/strip.c:79
-msgid "Remove section headers (not recommended)"
-msgstr "Remove section headers (not recommended)"
-
-#: src/strip.c:81
-msgid "Copy modified/access timestamps to the output"
-msgstr "Copy modified/access timestamps to the output"
-
-#: src/strip.c:83
-msgid ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-msgstr ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-
-#: src/strip.c:85
-msgid "Remove .comment section"
-msgstr "Remove .comment section"
-
-#: src/strip.c:88
-msgid "Relax a few rules to handle slightly broken ELF files"
-msgstr "Relax a few rules to handle slightly broken ELF files"
-
-#: src/strip.c:93
-msgid "Discard symbols from object files."
-msgstr "Discard symbols from object files."
-
-#: src/strip.c:181
-#, c-format
-msgid "--reloc-debug-sections used without -f"
-msgstr "--reloc-debug-sections used without -f"
-
-#: src/strip.c:195
-#, c-format
-msgid "Only one input file allowed together with '-o' and '-f'"
-msgstr "Only one input file allowed together with ‘-o’ and ‘-f’"
-
-#: src/strip.c:231
-#, c-format
-msgid "-f option specified twice"
-msgstr "-f option specified twice"
-
-#: src/strip.c:240
-#, c-format
-msgid "-F option specified twice"
-msgstr "-F option specified twice"
-
-#: src/strip.c:249 src/unstrip.c:121
-#, c-format
-msgid "-o option specified twice"
-msgstr "-o option specified twice"
-
-#: src/strip.c:273
-#, c-format
-msgid "-R option supports only .comment section"
-msgstr "-R option supports only .comment section"
-
-#: src/strip.c:315 src/strip.c:339
-#, c-format
-msgid "cannot stat input file '%s'"
-msgstr "cannot stat input file ‘%s’"
-
-#: src/strip.c:329
-#, c-format
-msgid "while opening '%s'"
-msgstr "while opening ‘%s’"
-
-#: src/strip.c:367
-#, c-format
-msgid "%s: cannot use -o or -f when stripping archive"
-msgstr "%s: cannot use -o or -f when stripping archive"
-
-#: src/strip.c:468
-#, c-format
-msgid "cannot open EBL backend"
-msgstr "cannot open EBL backend"
-
-#: src/strip.c:508
-#, c-format
-msgid "cannot get number of phdrs"
-msgstr "cannot get number of phdrs"
-
-#: src/strip.c:523 src/strip.c:547
-#, c-format
-msgid "cannot create new file '%s': %s"
-msgstr "cannot create new file '%s': %s"
-
-#: src/strip.c:613
-#, c-format
-msgid "illformed file '%s'"
-msgstr "illformed file ‘%s’"
-
-#: src/strip.c:935 src/strip.c:1024
-#, c-format
-msgid "while generating output file: %s"
-msgstr "while generating output file: %s"
-
-#: src/strip.c:997 src/strip.c:1962
-#, c-format
-msgid "%s: error while creating ELF header: %s"
-msgstr "%s: error while creating ELF header: %s"
-
-#: src/strip.c:1011
-#, c-format
-msgid "while preparing output for '%s'"
-msgstr "while preparing output for ‘%s’"
-
-#: src/strip.c:1062 src/strip.c:1119
-#, c-format
-msgid "while create section header section: %s"
-msgstr "while create section header section: %s"
-
-#: src/strip.c:1068
-#, c-format
-msgid "cannot allocate section data: %s"
-msgstr "cannot allocate section data: %s"
-
-#: src/strip.c:1128
-#, c-format
-msgid "while create section header string table: %s"
-msgstr "while create section header string table: %s"
-
-#: src/strip.c:1757
-#, c-format
-msgid "bad relocation"
-msgstr "bad relocation"
-
-#: src/strip.c:1874 src/strip.c:1984
-#, c-format
-msgid "while writing '%s': %s"
-msgstr "while writing '%s': %s"
-
-#: src/strip.c:1885
-#, c-format
-msgid "while creating '%s'"
-msgstr "while creating ‘%s’"
-
-#: src/strip.c:1907
-#, c-format
-msgid "while computing checksum for debug information"
-msgstr "while computing checksum for debug information"
-
-#: src/strip.c:1970
-#, c-format
-msgid "%s: error while reading the file: %s"
-msgstr "%s: error while reading the file: %s"
-
-#: src/strip.c:2009 src/strip.c:2029
-#, c-format
-msgid "while writing '%s'"
-msgstr "while writing ‘%s’"
-
-#: src/strip.c:2066 src/strip.c:2073
-#, c-format
-msgid "error while finishing '%s': %s"
-msgstr "error while finishing '%s': %s"
-
-#: src/strip.c:2096 src/strip.c:2153
-#, c-format
-msgid "cannot set access and modification date of '%s'"
-msgstr "cannot set access and modification date of ‘%s’"
-
-#: src/unstrip.c:70
-msgid "Match MODULE against file names, not module names"
-msgstr "Match MODULE against file names, not module names"
-
-#: src/unstrip.c:71
-msgid "Silently skip unfindable files"
-msgstr "Silently skip unfindable files"
-
-#: src/unstrip.c:74
-msgid "Place output into FILE"
-msgstr "Place output into FILE"
-
-#: src/unstrip.c:76
-msgid "Create multiple output files under DIRECTORY"
-msgstr "Create multiple output files under DIRECTORY"
-
-#: src/unstrip.c:77
-msgid "Use module rather than file names"
-msgstr "Use module rather than file names"
-
-#: src/unstrip.c:79
-msgid "Create output for modules that have no separate debug information"
-msgstr "Create output for modules that have no separate debug information"
-
-#: src/unstrip.c:82
-msgid "Apply relocations to section contents in ET_REL files"
-msgstr "Apply relocations to section contents in ET_REL files"
-
-#: src/unstrip.c:84
-msgid "Only list module and file names, build IDs"
-msgstr "Only list module and file names, build IDs"
-
-#: src/unstrip.c:86
-msgid "Force combining files even if some ELF headers don't seem to match"
-msgstr "Force combining files even if some ELF headers don't seem to match"
-
-#: src/unstrip.c:130
-#, c-format
-msgid "-d option specified twice"
-msgstr "-d option specified twice"
-
-#: src/unstrip.c:165
-#, c-format
-msgid "only one of -o or -d allowed"
-msgstr "only one of -o or -d allowed"
-
-#: src/unstrip.c:174
-#, c-format
-msgid "-n cannot be used with explicit files or -o or -d"
-msgstr "-n cannot be used with explicit files or -o or -d"
-
-#: src/unstrip.c:189
-#, c-format
-msgid "output directory '%s'"
-msgstr "output directory ‘%s’"
-
-#: src/unstrip.c:198
-#, c-format
-msgid "exactly two file arguments are required"
-msgstr "exactly two file arguments are required"
-
-#: src/unstrip.c:204
-#, c-format
-msgid "-m, -a, -R, and -i options not allowed with explicit files"
-msgstr "-m, -a, -R, and -i options not allowed with explicit files"
-
-#: src/unstrip.c:217
-#, c-format
-msgid "-o or -d is required when using implicit files"
-msgstr "-o or -d is required when using implicit files"
-
-#: src/unstrip.c:253
-#, c-format
-msgid "cannot create ELF header: %s"
-msgstr "cannot create ELF header: %s"
-
-#: src/unstrip.c:258
-#, c-format
-msgid "cannot copy ELF header: %s"
-msgstr "cannot copy ELF header: %s"
-
-#: src/unstrip.c:262 src/unstrip.c:1832 src/unstrip.c:1876
-#, c-format
-msgid "cannot get number of program headers: %s"
-msgstr "cannot get number of program headers: %s"
-
-#: src/unstrip.c:267 src/unstrip.c:1836
-#, c-format
-msgid "cannot create program headers: %s"
-msgstr "cannot create program headers: %s"
-
-#: src/unstrip.c:273
-#, c-format
-msgid "cannot copy program header: %s"
-msgstr "cannot copy program header: %s"
-
-#: src/unstrip.c:283
-#, c-format
-msgid "cannot copy section header: %s"
-msgstr "cannot copy section header: %s"
-
-#: src/unstrip.c:286 src/unstrip.c:1513
-#, c-format
-msgid "cannot get section data: %s"
-msgstr "cannot get section data: %s"
-
-#: src/unstrip.c:288 src/unstrip.c:1515
-#, c-format
-msgid "cannot copy section data: %s"
-msgstr "cannot copy section data: %s"
-
-#: src/unstrip.c:312
-#, c-format
-msgid "cannot create directory '%s'"
-msgstr "cannot create directory ‘%s’"
-
-#: src/unstrip.c:352 src/unstrip.c:769 src/unstrip.c:1547
-#, c-format
-msgid "cannot get symbol table entry: %s"
-msgstr "cannot get symbol table entry: %s"
-
-#: src/unstrip.c:368 src/unstrip.c:586 src/unstrip.c:607 src/unstrip.c:619
-#: src/unstrip.c:1568 src/unstrip.c:1698 src/unstrip.c:1722
-#, c-format
-msgid "cannot update symbol table: %s"
-msgstr "cannot update symbol table: %s"
-
-#: src/unstrip.c:378
-#, c-format
-msgid "cannot update section header: %s"
-msgstr "cannot update section header: %s"
-
-#: src/unstrip.c:417 src/unstrip.c:428
-#, c-format
-msgid "cannot update relocation: %s"
-msgstr "cannot update relocation: %s"
-
-#: src/unstrip.c:515
-#, c-format
-msgid "cannot get symbol version: %s"
-msgstr "cannot get symbol version: %s"
-
-#: src/unstrip.c:527
-#, c-format
-msgid "unexpected section type in [%Zu] with sh_link to symtab"
-msgstr "unexpected section type in [%Zu] with sh_link to symtab"
-
-#: src/unstrip.c:775
-#, c-format
-msgid "invalid string offset in symbol [%Zu]"
-msgstr "invalid string offset in symbol [%Zu]"
-
-#: src/unstrip.c:917 src/unstrip.c:1258
-#, c-format
-msgid "cannot read section [%Zu] name: %s"
-msgstr "cannot read section [%Zu] name: %s"
-
-#: src/unstrip.c:958 src/unstrip.c:977 src/unstrip.c:1010
-#, c-format
-msgid "cannot read '.gnu.prelink_undo' section: %s"
-msgstr "cannot read ‘.gnu.prelink_undo’ section: %s"
-
-#: src/unstrip.c:998
-#, c-format
-msgid "invalid contents in '%s' section"
-msgstr "invalid contents in ‘%s’ section"
-
-#: src/unstrip.c:1053 src/unstrip.c:1378
-#, c-format
-msgid "cannot find matching section for [%Zu] '%s'"
-msgstr "cannot find matching section for [%Zu] ‘%s’"
-
-#: src/unstrip.c:1178 src/unstrip.c:1193 src/unstrip.c:1459
-#, c-format
-msgid "cannot add section name to string table: %s"
-msgstr "cannot add section name to string table: %s"
-
-#: src/unstrip.c:1202
-#, c-format
-msgid "cannot update section header string table data: %s"
-msgstr "cannot update section header string table data: %s"
-
-#: src/unstrip.c:1229 src/unstrip.c:1233
-#, c-format
-msgid "cannot get section header string table section index: %s"
-msgstr "cannot get section header string table section index: %s"
-
-#: src/unstrip.c:1237 src/unstrip.c:1241 src/unstrip.c:1474
-#, c-format
-msgid "cannot get section count: %s"
-msgstr "cannot get section count: %s"
-
-#: src/unstrip.c:1244
-#, c-format
-msgid "more sections in stripped file than debug file -- arguments reversed?"
-msgstr "more sections in stripped file than debug file -- arguments reversed?"
-
-#: src/unstrip.c:1303 src/unstrip.c:1393
-#, c-format
-msgid "cannot read section header string table: %s"
-msgstr "cannot read section header string table: %s"
-
-#: src/unstrip.c:1453
-#, c-format
-msgid "cannot add new section: %s"
-msgstr "cannot add new section: %s"
-
-#: src/unstrip.c:1555
-#, c-format
-msgid "symbol [%Zu] has invalid section index"
-msgstr "symbol [%Zu] has invalid section index"
-
-#: src/unstrip.c:1793
-#, c-format
-msgid "cannot read section data: %s"
-msgstr "cannot read section data: %s"
-
-#: src/unstrip.c:1814
-#, c-format
-msgid "cannot get ELF header: %s"
-msgstr "cannot get ELF header: %s"
-
-#: src/unstrip.c:1846
-#, c-format
-msgid "cannot update program header: %s"
-msgstr "cannot update program header: %s"
-
-#: src/unstrip.c:1851 src/unstrip.c:1934
-#, c-format
-msgid "cannot write output file: %s"
-msgstr "cannot write output file: %s"
-
-#: src/unstrip.c:1903
-#, c-format
-msgid "DWARF data not adjusted for prelinking bias; consider prelink -u"
-msgstr "DWARF data not adjusted for prelinking bias; consider prelink -u"
-
-#: src/unstrip.c:1906
-#, c-format
-msgid ""
-"DWARF data in '%s' not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-"DWARF data in ‘%s’ not adjusted for prelinking bias; consider prelink -u"
-
-#: src/unstrip.c:1925 src/unstrip.c:1976 src/unstrip.c:1988 src/unstrip.c:2074
-#, c-format
-msgid "cannot create ELF descriptor: %s"
-msgstr "cannot create ELF descriptor: %s"
-
-#: src/unstrip.c:1967
-msgid "WARNING: "
-msgstr "WARNING: "
-
-#: src/unstrip.c:1969
-msgid ", use --force"
-msgstr ", use --force"
-
-#: src/unstrip.c:1992
-msgid "ELF header identification (e_ident) different"
-msgstr "ELF header identification (e_ident) different"
-
-#: src/unstrip.c:1995
-msgid "ELF header type (e_type) different"
-msgstr "ELF header type (e_type) different"
-
-#: src/unstrip.c:1998
-msgid "ELF header machine type (e_machine) different"
-msgstr "ELF header machine type (e_machine) different"
-
-#: src/unstrip.c:2001
-msgid "stripped program header (e_phnum) smaller than unstripped"
-msgstr "stripped program header (e_phnum) smaller than unstripped"
-
-#: src/unstrip.c:2031
-#, c-format
-msgid "cannot find stripped file for module '%s': %s"
-msgstr "cannot find stripped file for module '%s': %s"
-
-#: src/unstrip.c:2035
-#, c-format
-msgid "cannot open stripped file '%s' for module '%s': %s"
-msgstr "cannot open stripped file ‘%s’ for module '%s': %s"
-
-#: src/unstrip.c:2050
-#, c-format
-msgid "cannot find debug file for module '%s': %s"
-msgstr "cannot find debug file for module '%s': %s"
-
-#: src/unstrip.c:2054
-#, c-format
-msgid "cannot open debug file '%s' for module '%s': %s"
-msgstr "cannot open debug file ‘%s’ for module '%s': %s"
-
-#: src/unstrip.c:2067
-#, c-format
-msgid "module '%s' file '%s' is not stripped"
-msgstr "module ‘%s’ file ‘%s’ is not stripped"
-
-#: src/unstrip.c:2098
-#, c-format
-msgid "cannot cache section addresses for module '%s': %s"
-msgstr "cannot cache section addresses for module '%s': %s"
-
-#: src/unstrip.c:2231
-#, c-format
-msgid "no matching modules found"
-msgstr "no matching modules found"
-
-#: src/unstrip.c:2240
-#, c-format
-msgid "matched more than one module"
-msgstr "matched more than one module"
-
-#: src/unstrip.c:2287
-msgid ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-msgstr ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-
-#: src/unstrip.c:2288
-msgid ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-msgstr ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
diff --git a/src/po/es.gmo b/src/po/es.gmo
deleted file mode 100644
index 95331991..00000000
--- a/src/po/es.gmo
+++ /dev/null
Binary files differ
diff --git a/src/po/es.po b/src/po/es.po
deleted file mode 100644
index c3682bdb..00000000
--- a/src/po/es.po
+++ /dev/null
@@ -1,6938 +0,0 @@
-# Fedora Spanish Translation of elfutils.master.
-# This file is distributed under the same license as the elfutils.master package.
-#
-# Domingo Becker <domingobecker@gmail.com>, 2009.
-# Gladys Guerrero Lozano <gguerrer@redhat.com>, 2009.
-# Héctor Daniel Cabrera <logan@fedoraproject.org>, 2009, 2010.
-# Claudio Rodrigo Pereyra Diaz <claudio@pereyradiaz.com.ar>, 2010.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: elfutils.master.es\n"
-"Report-Msgid-Bugs-To: http://bugzilla.redhat.com/\n"
-"POT-Creation-Date: 2014-12-19 21:45+0100\n"
-"PO-Revision-Date: 2011-01-10 15:17-0300\n"
-"Last-Translator: Claudio Rodrigo Pereyra Diaz <claudiorodrigo@pereyradiaz."
-"com.ar>\n"
-"Language-Team: Fedora Spanish <trans-es@lists.fedoraproject.org>\n"
-"Language: es\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-Language: Spanish\n"
-"X-Generator: Lokalize 1.0\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Poedit-Country: ARGENTINA\n"
-
-#: lib/xmalloc.c:54 lib/xmalloc.c:68 lib/xmalloc.c:82 src/readelf.c:3182
-#: src/readelf.c:3559 src/readelf.c:8285 src/unstrip.c:2127 src/unstrip.c:2335
-#, c-format
-msgid "memory exhausted"
-msgstr "memoria agotada"
-
-#: libasm/asm_error.c:65 libdw/dwarf_error.c:58 libdwfl/libdwflP.h:53
-#: libelf/elf_error.c:60
-msgid "no error"
-msgstr "ningún error"
-
-#: libasm/asm_error.c:66 libdw/dwarf_error.c:67 libdwfl/libdwflP.h:55
-#: libelf/elf_error.c:91
-msgid "out of memory"
-msgstr "memoria agotada"
-
-#: libasm/asm_error.c:67 src/ldgeneric.c:2677
-#, c-format
-msgid "cannot create output file"
-msgstr "no se puede crear el archivo de salida"
-
-#: libasm/asm_error.c:68
-msgid "invalid parameter"
-msgstr "Parámetro inválido"
-
-#: libasm/asm_error.c:69
-msgid "cannot change mode of output file"
-msgstr "no sepuede cambiar modo de archivo de salida"
-
-#: libasm/asm_error.c:70 src/ldgeneric.c:6990
-#, c-format
-msgid "cannot rename output file"
-msgstr "no se puede renombrar el archivo de salida"
-
-#: libasm/asm_error.c:71
-msgid "duplicate symbol"
-msgstr "Duplicar símbolo"
-
-#: libasm/asm_error.c:72
-msgid "invalid section type for operation"
-msgstr "tipo de sección inválido para operación"
-
-#: libasm/asm_error.c:73
-msgid "error during output of data"
-msgstr "error durante salida de datos"
-
-#: libasm/asm_error.c:74
-msgid "no backend support available"
-msgstr "No hay soporte de segundo plano"
-
-#: libasm/asm_error.c:84 libdw/dwarf_error.c:59 libdwfl/libdwflP.h:54
-#: libelf/elf_error.c:63
-msgid "unknown error"
-msgstr "error desconocido"
-
-#: libdw/dwarf_error.c:60
-msgid "invalid access"
-msgstr "Acceso inválido"
-
-#: libdw/dwarf_error.c:61
-msgid "no regular file"
-msgstr "no es un archivo regular"
-
-#: libdw/dwarf_error.c:62
-msgid "I/O error"
-msgstr "Error de E/S"
-
-#: libdw/dwarf_error.c:63
-msgid "invalid ELF file"
-msgstr "Archivo ELF inválido"
-
-#: libdw/dwarf_error.c:64
-msgid "no DWARF information"
-msgstr "Sin información de DWARF"
-
-#: libdw/dwarf_error.c:65
-msgid "no ELF file"
-msgstr "No hay archivo ELF"
-
-#: libdw/dwarf_error.c:66
-msgid "cannot get ELF header"
-msgstr "no se puede obtener el encabezamiento ELF"
-
-#: libdw/dwarf_error.c:68
-msgid "not implemented"
-msgstr "sin implementar"
-
-#: libdw/dwarf_error.c:69 libelf/elf_error.c:107 libelf/elf_error.c:155
-msgid "invalid command"
-msgstr "comando inválido"
-
-#: libdw/dwarf_error.c:70
-msgid "invalid version"
-msgstr "versión inválida"
-
-#: libdw/dwarf_error.c:71
-msgid "invalid file"
-msgstr "Archivo inválido"
-
-#: libdw/dwarf_error.c:72
-msgid "no entries found"
-msgstr "No se hallaron entradas"
-
-#: libdw/dwarf_error.c:73
-msgid "invalid DWARF"
-msgstr "DWARF inválido"
-
-#: libdw/dwarf_error.c:74
-msgid "no string data"
-msgstr "no hay datos de cadena"
-
-#: libdw/dwarf_error.c:75
-msgid "no address value"
-msgstr "no hay valor de dirección"
-
-#: libdw/dwarf_error.c:76
-msgid "no constant value"
-msgstr "no hay valor constante"
-
-#: libdw/dwarf_error.c:77
-msgid "no reference value"
-msgstr "no hay valor de referencia"
-
-#: libdw/dwarf_error.c:78
-msgid "invalid reference value"
-msgstr "valor de la referencia inválido"
-
-#: libdw/dwarf_error.c:79
-msgid ".debug_line section missing"
-msgstr ".debug_line section faltante"
-
-#: libdw/dwarf_error.c:80
-msgid "invalid .debug_line section"
-msgstr ".debug_line section inválida"
-
-#: libdw/dwarf_error.c:81
-msgid "debug information too big"
-msgstr "información de depuración muy grande"
-
-#: libdw/dwarf_error.c:82
-msgid "invalid DWARF version"
-msgstr "versión DWARF inválida"
-
-#: libdw/dwarf_error.c:83
-msgid "invalid directory index"
-msgstr "Índice de directorio inválido"
-
-#: libdw/dwarf_error.c:84 libdwfl/libdwflP.h:74
-msgid "address out of range"
-msgstr "dirección fuera de rango"
-
-#: libdw/dwarf_error.c:85
-msgid "no location list value"
-msgstr "valor de lista sin ubicación"
-
-#: libdw/dwarf_error.c:86
-msgid "no block data"
-msgstr "sin datos de bloque "
-
-#: libdw/dwarf_error.c:87
-msgid "invalid line index"
-msgstr "Índice de línea inválido"
-
-#: libdw/dwarf_error.c:88
-msgid "invalid address range index"
-msgstr "Índice de dirección de rango inválido"
-
-#: libdw/dwarf_error.c:89 libdwfl/libdwflP.h:75
-msgid "no matching address range"
-msgstr "dirección de rango no coincidente"
-
-#: libdw/dwarf_error.c:90
-msgid "no flag value"
-msgstr "sin valor de bandera"
-
-#: libdw/dwarf_error.c:91 libelf/elf_error.c:232
-msgid "invalid offset"
-msgstr "desplazamiento inválido"
-
-#: libdw/dwarf_error.c:92
-msgid ".debug_ranges section missing"
-msgstr ".debug_ranges section faltante"
-
-#: libdw/dwarf_error.c:93
-msgid "invalid CFI section"
-msgstr "sección CFI inválida"
-
-#: libdw/dwarf_error.c:94
-msgid "no alternative debug link found"
-msgstr ""
-
-#: libdw/dwarf_error.c:95
-#, fuzzy
-msgid "invalid opcode"
-msgstr "operando inválido"
-
-#: libdwfl/argp-std.c:46 src/unstrip.c:2277
-msgid "Input selection options:"
-msgstr "Opciones de selección de entrada:"
-
-#: libdwfl/argp-std.c:47
-msgid "Find addresses in FILE"
-msgstr "Hallar direcciones en FICHERO"
-
-#: libdwfl/argp-std.c:49
-msgid "Find addresses from signatures found in COREFILE"
-msgstr "Buscar direcciones desde firmas encontradas en COREFILE"
-
-#: libdwfl/argp-std.c:51
-msgid "Find addresses in files mapped into process PID"
-msgstr "Busca direcciones en archivos mapeados sobre procesos PID"
-
-#: libdwfl/argp-std.c:53
-msgid ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-msgstr ""
-"Busca direcciones en archivos asignados como leídos desde FILE en formato "
-"Linux /proc/PID/maps"
-
-#: libdwfl/argp-std.c:55
-msgid "Find addresses in the running kernel"
-msgstr "Busca direcciones en el kernel que está ejecutándose"
-
-#: libdwfl/argp-std.c:57
-msgid "Kernel with all modules"
-msgstr "Kernel con todos los módulos"
-
-#: libdwfl/argp-std.c:59
-msgid "Search path for separate debuginfo files"
-msgstr "Ruta de búsqueda para archivos debugingfo independientes"
-
-#: libdwfl/argp-std.c:157
-msgid "only one of -e, -p, -k, -K, or --core allowed"
-msgstr "Sólo uno de -e, -p, -k, -K, ó --core está permitido"
-
-#: libdwfl/argp-std.c:230
-msgid "cannot load kernel symbols"
-msgstr "No se pueden cargar símbolos de kernel"
-
-#: libdwfl/argp-std.c:234
-msgid "cannot find kernel modules"
-msgstr "no se pueden hallar módulos de kernel"
-
-#: libdwfl/argp-std.c:251
-msgid "cannot find kernel or modules"
-msgstr "imposible encontrar kernel o módulos"
-
-#: libdwfl/argp-std.c:290
-#, c-format
-msgid "cannot read ELF core file: %s"
-msgstr "No se puede leer archivo core ELF: %s"
-
-#: libdwfl/argp-std.c:311
-msgid "No modules recognized in core file"
-msgstr "No hay módulos reconocidos en el archivo core"
-
-#: libdwfl/libdwflP.h:56
-msgid "See errno"
-msgstr "Ve errno"
-
-#: libdwfl/libdwflP.h:57
-msgid "See elf_errno"
-msgstr "Ver elf_errno"
-
-#: libdwfl/libdwflP.h:58
-msgid "See dwarf_errno"
-msgstr "Ver dwarf_errno"
-
-#: libdwfl/libdwflP.h:59
-msgid "See ebl_errno (XXX missing)"
-msgstr "Ver ebl_errno (no se encuentra XXX)"
-
-#: libdwfl/libdwflP.h:60
-msgid "gzip decompression failed"
-msgstr "falló la descompresión gzip"
-
-#: libdwfl/libdwflP.h:61
-msgid "bzip2 decompression failed"
-msgstr "falló la descompresión bzip2"
-
-#: libdwfl/libdwflP.h:62
-msgid "LZMA decompression failed"
-msgstr "falló la descompresión LZMA"
-
-#: libdwfl/libdwflP.h:63
-msgid "no support library found for machine"
-msgstr "no se ha encontrado una biblioteca de soporte para la máquina"
-
-#: libdwfl/libdwflP.h:64
-msgid "Callbacks missing for ET_REL file"
-msgstr "No se encuentran rellamadas para el archivo ET_REL"
-
-#: libdwfl/libdwflP.h:65
-msgid "Unsupported relocation type"
-msgstr "Tipo de reubicación no soportada"
-
-#: libdwfl/libdwflP.h:66
-msgid "r_offset is bogus"
-msgstr "r_offset se encuentra inutilizable"
-
-#: libdwfl/libdwflP.h:67 libelf/elf_error.c:111 libelf/elf_error.c:171
-msgid "offset out of range"
-msgstr "desplazamiento fuera de rango"
-
-#: libdwfl/libdwflP.h:68
-msgid "relocation refers to undefined symbol"
-msgstr "la reubicación hace referencia a un símbolo no definido"
-
-#: libdwfl/libdwflP.h:69
-msgid "Callback returned failure"
-msgstr "La rellamada devolvió un fallo"
-
-#: libdwfl/libdwflP.h:70
-msgid "No DWARF information found"
-msgstr "No se ha encontrado una información DWARF"
-
-#: libdwfl/libdwflP.h:71
-msgid "No symbol table found"
-msgstr "No se ha encontrado una tabla simbólica"
-
-#: libdwfl/libdwflP.h:72
-msgid "No ELF program headers"
-msgstr "No existen encabezados de programa ELF"
-
-#: libdwfl/libdwflP.h:73
-msgid "address range overlaps an existing module"
-msgstr "el rango de dirección se superpone con un módulo existente"
-
-#: libdwfl/libdwflP.h:76
-msgid "image truncated"
-msgstr "imagen truncada"
-
-#: libdwfl/libdwflP.h:77
-msgid "ELF file opened"
-msgstr "Archivo ELF abierto"
-
-#: libdwfl/libdwflP.h:78
-msgid "not a valid ELF file"
-msgstr "no es un archivo ELF válido"
-
-#: libdwfl/libdwflP.h:79
-msgid "cannot handle DWARF type description"
-msgstr "no es posible manipular tipo de descripción DWARF"
-
-#: libdwfl/libdwflP.h:80
-msgid "ELF file does not match build ID"
-msgstr "El archivo ELF no coincide con el ID construido"
-
-#: libdwfl/libdwflP.h:81
-#, fuzzy
-msgid "corrupt .gnu.prelink_undo section data"
-msgstr "no se puede leer sección '.gnu.prelink_undo': %s"
-
-#: libdwfl/libdwflP.h:82
-msgid "Internal error due to ebl"
-msgstr ""
-
-#: libdwfl/libdwflP.h:83
-msgid "Missing data in core file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:84
-#, fuzzy
-msgid "Invalid register"
-msgstr "Parámetro inválido"
-
-#: libdwfl/libdwflP.h:85
-msgid "Error reading process memory"
-msgstr ""
-
-#: libdwfl/libdwflP.h:86
-msgid "Couldn't find architecture of any ELF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:87
-msgid "Error parsing /proc filesystem"
-msgstr ""
-
-#: libdwfl/libdwflP.h:88
-#, fuzzy
-msgid "Invalid DWARF"
-msgstr "DWARF inválido"
-
-#: libdwfl/libdwflP.h:89
-msgid "Unsupported DWARF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:90
-msgid "Unable to find more threads"
-msgstr ""
-
-#: libdwfl/libdwflP.h:91
-msgid "Dwfl already has attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:92
-msgid "Dwfl has no attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:93
-msgid "Unwinding not supported for this architecture"
-msgstr ""
-
-#: libdwfl/libdwflP.h:94
-#, fuzzy
-msgid "Invalid argument"
-msgstr "Parámetro inválido"
-
-#: libdwfl/libdwflP.h:95
-#, fuzzy
-msgid "Not an ET_CORE ELF file"
-msgstr "no es un archivo ELF válido"
-
-#: libebl/eblbackendname.c:42
-msgid "No backend"
-msgstr "No hay segundo plano (Backend)"
-
-#: libebl/eblcorenotetypename.c:102 libebl/eblobjecttypename.c:57
-#: libebl/eblobjnotetypename.c:73 libebl/eblosabiname.c:77
-#: libebl/eblsectionname.c:89 libebl/eblsectiontypename.c:119
-#: libebl/eblsegmenttypename.c:83
-msgid "<unknown>"
-msgstr "<desconocido>"
-
-#: libebl/ebldynamictagname.c:105
-#, c-format
-msgid "<unknown>: %#<PRIx64>"
-msgstr "<desconocido>: %#<PRIx64>"
-
-#: libebl/eblobjnote.c:55
-#, fuzzy, c-format
-msgid "unknown SDT version %u\n"
-msgstr "versión desconocida"
-
-#: libebl/eblobjnote.c:73
-#, fuzzy, c-format
-msgid "invalid SDT probe descriptor\n"
-msgstr "descriptor de archivo inválido"
-
-#: libebl/eblobjnote.c:123
-#, c-format
-msgid " PC: "
-msgstr ""
-
-#: libebl/eblobjnote.c:125
-#, c-format
-msgid " Base: "
-msgstr ""
-
-#: libebl/eblobjnote.c:127
-#, c-format
-msgid " Semaphore: "
-msgstr ""
-
-#: libebl/eblobjnote.c:129
-#, c-format
-msgid " Provider: "
-msgstr ""
-
-#: libebl/eblobjnote.c:131
-#, c-format
-msgid " Name: "
-msgstr ""
-
-#: libebl/eblobjnote.c:133
-#, c-format
-msgid " Args: "
-msgstr ""
-
-#: libebl/eblobjnote.c:143
-#, c-format
-msgid " Build ID: "
-msgstr " Build ID: "
-
-#: libebl/eblobjnote.c:154
-#, c-format
-msgid " Linker version: %.*s\n"
-msgstr " Versión del Enlazador: %.*s\n"
-
-#: libebl/eblobjnote.c:203
-#, c-format
-msgid " OS: %s, ABI: "
-msgstr " OS: %s, ABI: "
-
-#: libebl/eblosabiname.c:74
-msgid "Stand alone"
-msgstr "Autónomo"
-
-#: libebl/eblsymbolbindingname.c:71 libebl/eblsymboltypename.c:77
-#, c-format
-msgid "<unknown>: %d"
-msgstr "<desconocido>: %d"
-
-#: libelf/elf_error.c:67
-msgid "unknown version"
-msgstr "versión desconocida"
-
-#: libelf/elf_error.c:71
-msgid "unknown type"
-msgstr "tipo desconocido"
-
-#: libelf/elf_error.c:75
-msgid "invalid `Elf' handle"
-msgstr "manejo`ELF' inválido"
-
-#: libelf/elf_error.c:79
-msgid "invalid size of source operand"
-msgstr "tamaño inválido del operando fuente"
-
-#: libelf/elf_error.c:83
-msgid "invalid size of destination operand"
-msgstr "tamaño inválido del operando destino"
-
-#: libelf/elf_error.c:87 src/readelf.c:5367
-#, c-format
-msgid "invalid encoding"
-msgstr "codificación inválida"
-
-#: libelf/elf_error.c:95
-msgid "invalid file descriptor"
-msgstr "descriptor de archivo inválido"
-
-#: libelf/elf_error.c:99
-msgid "invalid operation"
-msgstr "operación inválida"
-
-#: libelf/elf_error.c:103
-msgid "ELF version not set"
-msgstr "no se estableció la versión de ELF"
-
-#: libelf/elf_error.c:115
-msgid "invalid fmag field in archive header"
-msgstr "campo fmag no válido en el encabezamiento del archivo"
-
-#: libelf/elf_error.c:119
-msgid "invalid archive file"
-msgstr "fichero de archivo inválido"
-
-#: libelf/elf_error.c:123
-msgid "descriptor is not for an archive"
-msgstr "el descriptor no es de un archivo"
-
-#: libelf/elf_error.c:127
-msgid "no index available"
-msgstr "no hay índice disponible"
-
-#: libelf/elf_error.c:131
-msgid "cannot read data from file"
-msgstr "no se pueden leer los datos del archivo"
-
-#: libelf/elf_error.c:135
-msgid "cannot write data to file"
-msgstr "no se puede escribir los datos al archivo"
-
-#: libelf/elf_error.c:139
-msgid "invalid binary class"
-msgstr "clase de binario inválida"
-
-#: libelf/elf_error.c:143
-msgid "invalid section index"
-msgstr "índice de sección inválido"
-
-#: libelf/elf_error.c:147
-msgid "invalid operand"
-msgstr "operando inválido"
-
-#: libelf/elf_error.c:151
-msgid "invalid section"
-msgstr "sección inválida"
-
-#: libelf/elf_error.c:159
-msgid "executable header not created first"
-msgstr "no se ha creado primero el encabezamiento ejecutable"
-
-#: libelf/elf_error.c:163
-msgid "file descriptor disabled"
-msgstr "descriptor de archivo inhabilitada"
-
-#: libelf/elf_error.c:167
-msgid "archive/member file descriptor mismatch"
-msgstr "archivo/miembro no coincide el descriptor de archivos"
-
-#: libelf/elf_error.c:175
-msgid "cannot manipulate null section"
-msgstr "no se pudo manipular una sección nula"
-
-#: libelf/elf_error.c:179
-msgid "data/scn mismatch"
-msgstr "no coinciden los datos/scn"
-
-#: libelf/elf_error.c:183
-msgid "invalid section header"
-msgstr "encabezamiento de sección inválida"
-
-#: libelf/elf_error.c:187 src/readelf.c:7235 src/readelf.c:7683
-#: src/readelf.c:7784 src/readelf.c:7954
-#, c-format
-msgid "invalid data"
-msgstr "datos inválidos"
-
-#: libelf/elf_error.c:191
-msgid "unknown data encoding"
-msgstr "codificación de caracteres desconocida"
-
-#: libelf/elf_error.c:195
-msgid "section `sh_size' too small for data"
-msgstr "el tamaño de la sección `sh_size' es demasiado pequeño para los datos "
-
-#: libelf/elf_error.c:199
-msgid "invalid section alignment"
-msgstr "alineación de la sección inválida"
-
-#: libelf/elf_error.c:203
-msgid "invalid section entry size"
-msgstr "tamaño de la entrada de la sección inválida"
-
-#: libelf/elf_error.c:207
-msgid "update() for write on read-only file"
-msgstr "update() para escribir sobre archivo de sólo lectura"
-
-#: libelf/elf_error.c:211
-msgid "no such file"
-msgstr "no hay tal archivo"
-
-#: libelf/elf_error.c:215
-msgid "only relocatable files can contain section groups"
-msgstr "solo los archivos reubicables pueden contener grupos de sección"
-
-#: libelf/elf_error.c:220
-msgid ""
-"program header only allowed in executables, shared objects, and core files"
-msgstr ""
-"los encabezamientos de los programas solo son permitidos en archivos "
-"ejecutables, archivos principales, u objetos compartidos"
-
-#: libelf/elf_error.c:227
-msgid "file has no program header"
-msgstr "el archivo no tiene encabezamiento de programa"
-
-#: src/addr2line.c:58
-msgid "Output selection options:"
-msgstr "Opciones de selección de salida:"
-
-#: src/addr2line.c:59
-msgid "Show only base names of source files"
-msgstr "Mostrar sólo nombres de base de ficheros fuente"
-
-#: src/addr2line.c:61
-msgid "Show absolute file names using compilation directory"
-msgstr ""
-"Mostrar nombres de fichero absolutos mediante directorio de compilación"
-
-#: src/addr2line.c:62
-msgid "Also show function names"
-msgstr "También mostrar nombres de función"
-
-#: src/addr2line.c:63
-msgid "Also show symbol or section names"
-msgstr "También mostrar símbolo o nombres de sección"
-
-#: src/addr2line.c:64
-#, fuzzy
-msgid "Also show symbol and the section names"
-msgstr "También mostrar símbolo o nombres de sección"
-
-#: src/addr2line.c:65
-msgid "Also show line table flags"
-msgstr "También mostrar marcas de líneas de tabla"
-
-#: src/addr2line.c:67
-msgid "Treat addresses as offsets relative to NAME section."
-msgstr "Manejar direcciones como compensaciones relativas a sección de NOMBRE."
-
-#: src/addr2line.c:69
-msgid ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-msgstr ""
-
-#: src/addr2line.c:72 src/elfcmp.c:72 src/findtextrel.c:67 src/nm.c:100
-#: src/strings.c:75
-msgid "Miscellaneous:"
-msgstr "Misceláneos:"
-
-#: src/addr2line.c:81
-msgid ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-msgstr ""
-"Localizar archivos fuente e información de línea para DIRECCIONES (en a.out "
-"por defecto)."
-
-#: src/addr2line.c:85
-msgid "[ADDR...]"
-msgstr "[DIREC...]"
-
-#: src/addr2line.c:196 src/ar.c:289 src/elfcmp.c:663 src/elflint.c:235
-#: src/findtextrel.c:162 src/ld.c:949 src/nm.c:265 src/objdump.c:181
-#: src/ranlib.c:128 src/readelf.c:500 src/size.c:211 src/strings.c:226
-#: src/strip.c:213 src/unstrip.c:233
-#, c-format
-msgid ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-msgstr ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"El siguiente es un software libre; consulte el código para conocer las "
-"condiciones de copiado. NO tiene\n"
-"garantía, ni siquiera para SU COMERCIALIZACIÓN o PARA SER USADO CON UN FIN "
-"DETERMINADO.\n"
-
-#: src/addr2line.c:201 src/ar.c:294 src/elfcmp.c:668 src/elflint.c:240
-#: src/findtextrel.c:167 src/ld.c:954 src/nm.c:270 src/objdump.c:186
-#: src/ranlib.c:133 src/readelf.c:505 src/size.c:216 src/strings.c:231
-#: src/strip.c:218 src/unstrip.c:238
-#, c-format
-msgid "Written by %s.\n"
-msgstr "Escrito por %s.\n"
-
-#: src/addr2line.c:474
-#, c-format
-msgid "Section syntax requires exactly one module"
-msgstr "Sintaxis de sección requiere exactamente un módulo"
-
-#: src/addr2line.c:497
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside section '%s'"
-msgstr "Compensación %#<PRIxMAX> se encuentra fuera de sección '%s'"
-
-#: src/addr2line.c:563
-#, c-format
-msgid "cannot find symbol '%s'"
-msgstr "no se puede encontrar símbolo '%s'"
-
-#: src/addr2line.c:568
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside contents of '%s'"
-msgstr "compensación %#<PRIxMAX> se encuentra fuera de contenido de '%s'"
-
-#: src/ar.c:69
-msgid "Commands:"
-msgstr "Comandos:"
-
-#: src/ar.c:70
-msgid "Delete files from archive."
-msgstr "Borrar archivos de un archivo"
-
-#: src/ar.c:71
-msgid "Move files in archive."
-msgstr "Desplazar ficheros en archivo."
-
-#: src/ar.c:72
-msgid "Print files in archive."
-msgstr "Imprimir ficheros en archivo."
-
-#: src/ar.c:73
-msgid "Quick append files to archive."
-msgstr "Adición rápida de ficheros para archivar"
-
-#: src/ar.c:75
-msgid "Replace existing or insert new file into archive."
-msgstr "Remplazar fichero existente o insertar uno nuevo en el archivo."
-
-#: src/ar.c:76
-msgid "Display content of archive."
-msgstr "Mostrar contenido de archivo"
-
-#: src/ar.c:77
-msgid "Extract files from archive."
-msgstr "extraer ficheros de un archivo"
-
-#: src/ar.c:79
-msgid "Command Modifiers:"
-msgstr "Modificadores de comandos:"
-
-#: src/ar.c:80
-msgid "Preserve original dates."
-msgstr "Preservar fechas originales."
-
-#: src/ar.c:81
-msgid "Use instance [COUNT] of name."
-msgstr "Usar instancia [COUNT] de nombre."
-
-#: src/ar.c:83
-msgid "Do not replace existing files with extracted files."
-msgstr "No remplazar los archivos existentes por los archivos extractados."
-
-#: src/ar.c:84
-msgid "Allow filename to be truncated if necessary."
-msgstr "Permitir truncamiento del nombre de archivo de ser necesario."
-
-#: src/ar.c:86
-msgid "Provide verbose output."
-msgstr "Proporcionar salida detallada"
-
-#: src/ar.c:87
-msgid "Force regeneration of symbol table."
-msgstr "Forzar regeneración de tabla de símbolos."
-
-#: src/ar.c:88
-msgid "Insert file after [MEMBER]."
-msgstr "Insertar archivo después de [MIEMBRO]."
-
-#: src/ar.c:89
-msgid "Insert file before [MEMBER]."
-msgstr "Introducir fichero antes de [MIEMBRO]."
-
-#: src/ar.c:90
-msgid "Same as -b."
-msgstr "Igual que -b."
-
-#: src/ar.c:91
-msgid "Suppress message when library has to be created."
-msgstr "Suprimir mensaje cuando se tenga que crear la biblioteca."
-
-#: src/ar.c:93
-msgid "Use full path for file matching."
-msgstr "Usar la ruta total para fichero coincidente."
-
-#: src/ar.c:94
-msgid "Update only older files in archive."
-msgstr "Actualizar sólo ficheros antiguos en archivo."
-
-#: src/ar.c:100
-msgid "Create, modify, and extract from archives."
-msgstr "Crear, modificar, y extraer de archivos."
-
-#: src/ar.c:103
-msgid "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-msgstr "[MIEMBRO] [CONTAR] ARCHIVO [FICHERO...]"
-
-#: src/ar.c:185
-#, c-format
-msgid "'a', 'b', and 'i' are only allowed with the 'm' and 'r' options"
-msgstr "'a', 'b', é 'i' sólo se permiten con las opciones 'm' y 'r'."
-
-#: src/ar.c:190
-#, c-format
-msgid "MEMBER parameter required for 'a', 'b', and 'i' modifiers"
-msgstr "Parámetro MIEMBRO requerido para modificadores 'a', 'b', e 'i'"
-
-#: src/ar.c:206
-#, c-format
-msgid "'N' is only meaningful with the 'x' and 'd' options"
-msgstr "'N' sólo es significativa con las opciones `x' y `d'."
-
-#: src/ar.c:211
-#, c-format
-msgid "COUNT parameter required"
-msgstr "Parámetro CONTAR requerido"
-
-#: src/ar.c:223
-#, c-format
-msgid "invalid COUNT parameter %s"
-msgstr "Parámetro CONTAR inválido %s"
-
-#: src/ar.c:230
-#, c-format
-msgid "'%c' is only meaningful with the 'x' option"
-msgstr "'%c' es sólo significativo con la opción 'x'"
-
-#: src/ar.c:236
-#, c-format
-msgid "archive name required"
-msgstr "nombre de archivo requerido"
-
-#: src/ar.c:249
-#, c-format
-msgid "command option required"
-msgstr ""
-
-#: src/ar.c:314
-#, c-format
-msgid "More than one operation specified"
-msgstr "Más de una operación especificada"
-
-#: src/ar.c:408
-#, c-format
-msgid "cannot open archive '%s'"
-msgstr "Imposible abrir el archivo '%s'"
-
-#: src/ar.c:418
-#, c-format
-msgid "cannot open archive '%s': %s"
-msgstr "Imposible abrir el archivo '%s': %s"
-
-#: src/ar.c:422
-#, c-format
-msgid "%s: not an archive file"
-msgstr "%s: no es un fichero de archivo"
-
-#: src/ar.c:426
-#, c-format
-msgid "cannot stat archive '%s'"
-msgstr "no sepuede stat el archivo '%s'"
-
-#: src/ar.c:438
-#, c-format
-msgid "no entry %s in archive\n"
-msgstr "no hay entrada %s en archivo\n"
-
-#: src/ar.c:491 src/ar.c:933 src/ar.c:1133
-#, c-format
-msgid "cannot create hash table"
-msgstr "Falló al crear la tabla de dispersión"
-
-#: src/ar.c:498 src/ar.c:940 src/ar.c:1142
-#, c-format
-msgid "cannot insert into hash table"
-msgstr "no sepuede insertar en tabla de dispersión"
-
-#: src/ar.c:506 src/ranlib.c:168
-#, c-format
-msgid "cannot stat '%s'"
-msgstr "no se puede stat '%s'"
-
-#: src/ar.c:602
-#, c-format
-msgid "cannot read content of %s: %s"
-msgstr "no se puede leer el contenido de %s: %s"
-
-#: src/ar.c:645
-#, c-format
-msgid "cannot open %.*s"
-msgstr " Imposible abrir %.*s"
-
-#: src/ar.c:667
-#, c-format
-msgid "failed to write %s"
-msgstr "Falló al escribir %s"
-
-#: src/ar.c:679
-#, c-format
-msgid "cannot change mode of %s"
-msgstr "No se puede cambiar el modo de %s"
-
-#: src/ar.c:695
-#, c-format
-msgid "cannot change modification time of %s"
-msgstr "No puede cambiar tiempo de modificación de %s"
-
-#: src/ar.c:741
-#, c-format
-msgid "cannot rename temporary file to %.*s"
-msgstr "no sepuede renombrar fichero temporal para %.*s"
-
-#: src/ar.c:777 src/ar.c:1025 src/ar.c:1424 src/ranlib.c:242
-#, c-format
-msgid "cannot create new file"
-msgstr "no sepuede crear fichero nuevo"
-
-#: src/ar.c:1224
-#, c-format
-msgid "position member %s not found"
-msgstr "no se encuentra miembro de posición %s "
-
-#: src/ar.c:1234
-#, c-format
-msgid "%s: no entry %s in archive!\n"
-msgstr "%s: ¡no hay entrada %s en archive!\n"
-
-#: src/ar.c:1263 src/ldgeneric.c:509 src/objdump.c:257
-#, c-format
-msgid "cannot open %s"
-msgstr "no sepuede abrir %s"
-
-#: src/ar.c:1268
-#, c-format
-msgid "cannot stat %s"
-msgstr "no sepuede efectuar stat %s"
-
-#: src/ar.c:1274
-#, c-format
-msgid "%s is no regular file"
-msgstr " %s no es un fichero ordinario "
-
-#: src/ar.c:1287
-#, c-format
-msgid "cannot get ELF descriptor for %s: %s\n"
-msgstr "no sepuede obtener descriptor ELF para %s: %s\n"
-
-#: src/ar.c:1307
-#, c-format
-msgid "cannot read %s: %s"
-msgstr "no sepuede leer %s: %s"
-
-#: src/arlib.c:209
-#, c-format
-msgid "the archive '%s' is too large"
-msgstr " El archivo '%s' es demasiado grande"
-
-#: src/arlib.c:222
-#, c-format
-msgid "cannot read ELF header of %s(%s): %s"
-msgstr "no se puede leer el encabezamiento ELF de %s(%s): %s"
-
-#: src/elfcmp.c:62
-msgid "Control options:"
-msgstr "Opciones de control:"
-
-#: src/elfcmp.c:64
-msgid "Output all differences, not just the first"
-msgstr ""
-
-#: src/elfcmp.c:65
-msgid ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-msgstr ""
-"Tratamiento de control de brechas en segmento cargables [ignorar|"
-"coincidencia] (por defecto: ignorar)"
-
-#: src/elfcmp.c:67
-msgid "Ignore permutation of buckets in SHT_HASH section"
-msgstr "Ignorar permutación de cubetas en sección SHT_HASH"
-
-#: src/elfcmp.c:69
-msgid "Ignore differences in build ID"
-msgstr ""
-
-#: src/elfcmp.c:70
-msgid "Output nothing; yield exit status only"
-msgstr "Nada de salida; producir estado de salida únicamente"
-
-#: src/elfcmp.c:77
-msgid "Compare relevant parts of two ELF files for equality."
-msgstr "Comparar partes relevantes de dos ficheros ELF para igualdad."
-
-#: src/elfcmp.c:81
-msgid "FILE1 FILE2"
-msgstr "FICHERO1 FICHERO2"
-
-#: src/elfcmp.c:143
-msgid "Invalid number of parameters.\n"
-msgstr "Número inválido de parámetros.\n"
-
-#: src/elfcmp.c:174 src/elfcmp.c:179
-#, c-format
-msgid "cannot get ELF header of '%s': %s"
-msgstr "no se puede obtener encabezamiento de '%s': %s"
-
-#: src/elfcmp.c:205
-#, c-format
-msgid "%s %s diff: ELF header"
-msgstr "%s %s diff: encabezamiento ELF"
-
-#: src/elfcmp.c:212 src/elfcmp.c:215
-#, c-format
-msgid "cannot get section count of '%s': %s"
-msgstr "no se puede obtener un conteo de sección en '%s': %s"
-
-#: src/elfcmp.c:220
-#, c-format
-msgid "%s %s diff: section count"
-msgstr "%s %s diff: conteo de sección"
-
-#: src/elfcmp.c:227 src/elfcmp.c:230
-#, c-format
-msgid "cannot get program header count of '%s': %s"
-msgstr "no se puede obtener un conteo de encabezado de programa de '%s': %s"
-
-#: src/elfcmp.c:235
-#, c-format
-msgid "%s %s diff: program header count"
-msgstr "%s %s diff: encabezado de programa"
-
-#: src/elfcmp.c:292
-#, fuzzy, c-format
-msgid "%s %s differ: section [%zu], [%zu] name"
-msgstr "%s %s differ: sección [%zu,%zu] contenido '%s'"
-
-#: src/elfcmp.c:315
-#, fuzzy, c-format
-msgid "%s %s differ: section [%zu] '%s' header"
-msgstr "%s %s differ: sección [%zu] contenido '%s'"
-
-#: src/elfcmp.c:323 src/elfcmp.c:329
-#, c-format
-msgid "cannot get content of section %zu in '%s': %s"
-msgstr "No se puede obtener contenido de sección %zu en '%s': %s"
-
-#: src/elfcmp.c:345 src/elfcmp.c:351
-#, c-format
-msgid "cannot get symbol in '%s': %s"
-msgstr "No se puede obtener símbolo en '%s': %s"
-
-#: src/elfcmp.c:373
-#, c-format
-msgid "%s %s differ: symbol table [%zu]"
-msgstr "%s %s differ: tabla de símbolos [%zu]"
-
-#: src/elfcmp.c:376
-#, c-format
-msgid "%s %s differ: symbol table [%zu,%zu]"
-msgstr "%s %s differ: tabla de símbolos [%zu,%zu]"
-
-#: src/elfcmp.c:422 src/elfcmp.c:491
-#, fuzzy, c-format
-msgid "%s %s differ: section [%zu] '%s' number of notes"
-msgstr "%s %s differ: sección [%zu] contenido '%s'"
-
-#: src/elfcmp.c:430
-#, fuzzy, c-format
-msgid "cannot read note section [%zu] '%s' in '%s': %s"
-msgstr "No se puede obtener contenido de sección %zu en '%s': %s"
-
-#: src/elfcmp.c:440
-#, fuzzy, c-format
-msgid "%s %s differ: section [%zu] '%s' note name"
-msgstr "%s %s differ: sección [%zu] contenido '%s'"
-
-#: src/elfcmp.c:448
-#, fuzzy, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' type"
-msgstr "%s %s differ: sección [%zu] contenido '%s'"
-
-#: src/elfcmp.c:463
-#, fuzzy, c-format
-msgid "%s %s differ: build ID length"
-msgstr "%s %s differ: brecha"
-
-#: src/elfcmp.c:471
-#, fuzzy, c-format
-msgid "%s %s differ: build ID content"
-msgstr "%s %s differ: sección [%zu] contenido '%s'"
-
-#: src/elfcmp.c:480
-#, fuzzy, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' content"
-msgstr "%s %s differ: sección [%zu] contenido '%s'"
-
-#: src/elfcmp.c:520
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' content"
-msgstr "%s %s differ: sección [%zu] contenido '%s'"
-
-#: src/elfcmp.c:524
-#, c-format
-msgid "%s %s differ: section [%zu,%zu] '%s' content"
-msgstr "%s %s differ: sección [%zu,%zu] contenido '%s'"
-
-#: src/elfcmp.c:539
-#, c-format
-msgid "%s %s differ: unequal amount of important sections"
-msgstr "%s %s differ: cantidad desigual de secciones importantes"
-
-#: src/elfcmp.c:572 src/elfcmp.c:577
-#, c-format
-msgid "cannot load data of '%s': %s"
-msgstr "no se pueden cargar los datos de '%s': %s"
-
-#: src/elfcmp.c:596 src/elfcmp.c:602
-#, c-format
-msgid "cannot get program header entry %d of '%s': %s"
-msgstr ""
-"no se puede obtener entrada de encabezamiento de programa %d de '%s': %s"
-
-#: src/elfcmp.c:608
-#, c-format
-msgid "%s %s differ: program header %d"
-msgstr "%s %s differ: encabezamiento de programa %d"
-
-#: src/elfcmp.c:632
-#, c-format
-msgid "%s %s differ: gap"
-msgstr "%s %s differ: brecha"
-
-#: src/elfcmp.c:695
-#, c-format
-msgid "Invalid value '%s' for --gaps parameter."
-msgstr "Valor inválido '%s' para parámetro --gaps"
-
-#: src/elfcmp.c:723 src/findtextrel.c:221 src/ldgeneric.c:1757
-#: src/ldgeneric.c:4247 src/nm.c:381 src/ranlib.c:161 src/size.c:293
-#: src/strings.c:182 src/strip.c:451 src/strip.c:488 src/unstrip.c:1923
-#: src/unstrip.c:1952
-#, c-format
-msgid "cannot open '%s'"
-msgstr "Imposible abrir '%s'"
-
-#: src/elfcmp.c:727 src/findtextrel.c:228 src/ranlib.c:178
-#, c-format
-msgid "cannot create ELF descriptor for '%s': %s"
-msgstr "No puede crear descriptor ELF para '%s': %s"
-
-#: src/elfcmp.c:732
-#, c-format
-msgid "cannot create EBL descriptor for '%s'"
-msgstr "no se puede crear el descriptor EBL para '%s'"
-
-#: src/elfcmp.c:750
-#, c-format
-msgid "cannot get section header of section %zu: %s"
-msgstr "No se puede obtener el encabezamiento de sección %zu: %s"
-
-#: src/elfcmp.c:760
-#, c-format
-msgid "cannot get content of section %zu: %s"
-msgstr "No se puede obtener contenido de sección %zu: %s"
-
-#: src/elfcmp.c:770 src/elfcmp.c:784
-#, c-format
-msgid "cannot get relocation: %s"
-msgstr "No se puede obtener reubicación: %s"
-
-#: src/elflint.c:64
-msgid "Be extremely strict, flag level 2 features."
-msgstr "Sea extremadamente estricto, característica de marca de nivel 2."
-
-#: src/elflint.c:65
-msgid "Do not print anything if successful"
-msgstr "No imprime nada si está correcto"
-
-#: src/elflint.c:66
-msgid "Binary is a separate debuginfo file"
-msgstr "Binario es un archivo debuginfo independiente"
-
-#: src/elflint.c:68
-msgid ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-msgstr ""
-"Binario ha sido creado con GNU Id y por lo tanto se sabe que puede estar "
-"roto de alguna forma"
-
-#: src/elflint.c:74
-msgid "Pedantic checking of ELF files compliance with gABI/psABI spec."
-msgstr "Chequeo minucioso de ficheros ELF de acuerdo con gABI/psABI "
-
-#: src/elflint.c:78 src/readelf.c:123
-msgid "FILE..."
-msgstr "FICHERO..."
-
-#: src/elflint.c:155 src/readelf.c:292
-#, c-format
-msgid "cannot open input file"
-msgstr "no se puede abrir el fichero de entrada"
-
-#: src/elflint.c:162
-#, c-format
-msgid "cannot generate Elf descriptor: %s\n"
-msgstr "no se puede crear descriptor ELF: %s\n"
-
-#: src/elflint.c:181
-#, c-format
-msgid "error while closing Elf descriptor: %s\n"
-msgstr "error al cerrar el descriptor ELF: %s\n"
-
-#: src/elflint.c:185
-msgid "No errors"
-msgstr "No hay errores"
-
-#: src/elflint.c:219 src/readelf.c:468
-msgid "Missing file name.\n"
-msgstr "Falta el nombre de archivo.\n"
-
-#: src/elflint.c:298
-#, c-format
-msgid " error while freeing sub-ELF descriptor: %s\n"
-msgstr " error al liberar descriptor sub-ELF: %s\n"
-
-#: src/elflint.c:306
-#, c-format
-msgid "Not an ELF file - it has the wrong magic bytes at the start\n"
-msgstr "No es un fichero ELF - tiene los bytes mágicos errados en el inicio\n"
-
-#: src/elflint.c:371
-#, c-format
-msgid "e_ident[%d] == %d is no known class\n"
-msgstr "e_ident[%d] == %d es una clase desconocida\n"
-
-#: src/elflint.c:376
-#, c-format
-msgid "e_ident[%d] == %d is no known data encoding\n"
-msgstr "e_ident[%d] == %d es una codificación de datos desconocida\n"
-
-#: src/elflint.c:380
-#, c-format
-msgid "unknown ELF header version number e_ident[%d] == %d\n"
-msgstr ""
-"número de versión de encabezamiento ELF desconocido e_ident[%d] == %d\n"
-
-#: src/elflint.c:386
-#, c-format
-msgid "unsupported OS ABI e_ident[%d] == '%s'\n"
-msgstr "Sistema operativo OS ABI e_ident[%d] == '%s' incompatible\n"
-
-#: src/elflint.c:392
-#, c-format
-msgid "unsupport ABI version e_ident[%d] == %d\n"
-msgstr "Versión incompatible ABI e_ident[%d] == %d\n"
-
-#: src/elflint.c:397
-#, c-format
-msgid "e_ident[%zu] is not zero\n"
-msgstr "e_ident[%zu] no es cero\n"
-
-#: src/elflint.c:402
-#, c-format
-msgid "unknown object file type %d\n"
-msgstr "tipo de fichero objeto desconocido %d\n"
-
-#: src/elflint.c:409
-#, c-format
-msgid "unknown machine type %d\n"
-msgstr "tipo de máquina desconocido %d\n"
-
-#: src/elflint.c:413
-#, c-format
-msgid "unknown object file version\n"
-msgstr "versión de fichero objeto desconocido\n"
-
-#: src/elflint.c:419
-#, c-format
-msgid "invalid program header offset\n"
-msgstr "Compensación de encabezamiento de programa inválida\n"
-
-#: src/elflint.c:421
-#, c-format
-msgid "executables and DSOs cannot have zero program header offset\n"
-msgstr ""
-"tanto los ejecutables como los DSO no pueden tener compensación de "
-"encabezamiento de programa cero\n"
-
-#: src/elflint.c:425
-#, c-format
-msgid "invalid number of program header entries\n"
-msgstr "cantidad no válida de entradas del encabezamiento del programa\n"
-
-#: src/elflint.c:433
-#, c-format
-msgid "invalid section header table offset\n"
-msgstr "compensación de sección de tabla de encabezamiento inválida\n"
-
-#: src/elflint.c:436
-#, c-format
-msgid "section header table must be present\n"
-msgstr "tabla de encabezamiento de sección debe estar presente\n"
-
-#: src/elflint.c:450
-#, c-format
-msgid "invalid number of section header table entries\n"
-msgstr ""
-"cantidad no válida de entradas en la tabla del encabezamiento de sección\n"
-
-#: src/elflint.c:467
-#, c-format
-msgid "invalid section header index\n"
-msgstr "Índice de sección de encabezamiento inválido\n"
-
-#: src/elflint.c:481
-#, c-format
-msgid "invalid number of program header table entries\n"
-msgstr "cantidad no válida de entradas de tabla de encabezado del programa\n"
-
-#: src/elflint.c:490
-#, c-format
-msgid "invalid machine flags: %s\n"
-msgstr "Indicadores de máquina inválidos: %s\n"
-
-#: src/elflint.c:497 src/elflint.c:514
-#, c-format
-msgid "invalid ELF header size: %hd\n"
-msgstr "tamaño inválido del encabezamiento ELF: %hd\n"
-
-#: src/elflint.c:500 src/elflint.c:517
-#, c-format
-msgid "invalid program header size: %hd\n"
-msgstr "tamaño inválido del encabezamiento del programa: %hd\n"
-
-#: src/elflint.c:503 src/elflint.c:520
-#, c-format
-msgid "invalid program header position or size\n"
-msgstr "tamaño o posición inválidos del encabezamiento del programa\n"
-
-#: src/elflint.c:506 src/elflint.c:523
-#, c-format
-msgid "invalid section header size: %hd\n"
-msgstr "tamaño inválido del encabezamiento de sección: %hd\n"
-
-#: src/elflint.c:509 src/elflint.c:526
-#, c-format
-msgid "invalid section header position or size\n"
-msgstr "tamaño o posición no válidos del encabezamiento de sección\n"
-
-#: src/elflint.c:570
-#, c-format
-msgid ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-msgstr ""
-"sección [%2d] '%s': sección con la bandera SHF_GROUP no es parte de una "
-"sección de grupo\n"
-
-#: src/elflint.c:574
-#, c-format
-msgid ""
-"section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"
-msgstr ""
-"sección [%2d] '%s': el grupo de sección [%2zu] '%s' no precede al miembro de "
-"grupo\n"
-
-#: src/elflint.c:590 src/elflint.c:1457 src/elflint.c:1508 src/elflint.c:1614
-#: src/elflint.c:1939 src/elflint.c:2228 src/elflint.c:2742 src/elflint.c:2904
-#: src/elflint.c:3034 src/elflint.c:3206 src/elflint.c:4108
-#, c-format
-msgid "section [%2d] '%s': cannot get section data\n"
-msgstr "Sección [%2d] '%s': No se pueden obtener datos de sección\n"
-
-#: src/elflint.c:603 src/elflint.c:1621
-#, c-format
-msgid ""
-"section [%2d] '%s': referenced as string table for section [%2d] '%s' but "
-"type is not SHT_STRTAB\n"
-msgstr ""
-"sección [%2d] '%s': nombrado como una tabla de cadena para la sección [%2d] "
-"'%s' pero el tipo no es SHT_STRTAB\n"
-
-#: src/elflint.c:626
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-msgstr ""
-"sección [%2d] '%s': la tabla de símbolo no puede tener más de una sección de "
-"índice extendido\n"
-
-#: src/elflint.c:638
-#, c-format
-msgid "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-msgstr ""
-"sección [%2u] '%s': el tamaño de la entrada no coincide con ElfXX_Sym\n"
-
-#: src/elflint.c:647
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %d: %s\n"
-msgstr "Sección [%2d] '%s': no se puede obtener símbolo %d: %s\n"
-
-#: src/elflint.c:652 src/elflint.c:655 src/elflint.c:658 src/elflint.c:661
-#: src/elflint.c:664 src/elflint.c:667
-#, c-format
-msgid "section [%2d] '%s': '%s' in zeroth entry not zero\n"
-msgstr "Sección [%2d] '%s': '%s' en la entrada zeroth no es cero\n"
-
-#: src/elflint.c:670
-#, c-format
-msgid "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-msgstr "sección [%2d] '%s': XINDEX en la entrada zeroth no es cero\n"
-
-#: src/elflint.c:680
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %zu: %s\n"
-msgstr "sección [%2d] '%s': no es posible obtener el símbolo %zu: %s\n"
-
-#: src/elflint.c:689
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid name value\n"
-msgstr "sección [%2d] '%s': símbolo %zu: valor de nombre inválido\n"
-
-#: src/elflint.c:704
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: el índice de sección es demasiado extenso, "
-"pero no la sección extendida de la sección de índice\n"
-
-#: src/elflint.c:710
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: XINDEX es utilizado para índice que pueda "
-"caber en st_shndx (%<PRIu32>)\n"
-
-#: src/elflint.c:722
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid section index\n"
-msgstr "sección [%2d] '%s': símbolo %zu: índice de sección inválido\n"
-
-#: src/elflint.c:730
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown type\n"
-msgstr "sección [%2d] '%s': símbolo %zu: tipo desconocido\n"
-
-#: src/elflint.c:736
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-msgstr "sección [%2d] '%s': símbolo %zu: asociación de símbolo desconocida\n"
-
-#: src/elflint.c:741
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-msgstr "Sección [%2d] '%s': símbolo %zu: símbolo único no de tipo de objeto\n"
-
-#: src/elflint.c:749
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-msgstr ""
-"sección [%2d] '%s': símbolo %zu: COMMON solo es permitido en archivos "
-"realojables\n"
-
-#: src/elflint.c:753
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: símbolos locales COMMON no tienen sentido\n"
-
-#: src/elflint.c:757
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: función en sección COMMON no tiene sentido\n"
-
-#: src/elflint.c:804
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-msgstr "sección [%2d] '%s': símbolo %zu: st_value fuera de límites\n"
-
-#: src/elflint.c:810 src/elflint.c:835 src/elflint.c:878
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu no se ajusta totalmente en la sección [%2d] "
-"'%s'\n"
-
-#: src/elflint.c:819
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have "
-"SHF_TLS flag set\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: sección de referencia [%2d] '%s' no tiene "
-"establecida bandera SHF_TLS\n"
-
-#: src/elflint.c:829 src/elflint.c:871
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: st_value fuera de límites de sección de "
-"referencia [%2d] '%s'\n"
-
-#: src/elflint.c:856
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: símbolo TLS, pero no hay entrada de "
-"programa TLS\n"
-
-#: src/elflint.c:864
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"'%s'\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: st_value falta sección de referencia [%2d] "
-"'%s'\n"
-
-#: src/elflint.c:891
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: símbolo local fuera del rango descrito en "
-"sh_info\n"
-
-#: src/elflint.c:898
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: símbolo non-local fuera del rango descrito "
-"en sh_info\n"
-
-#: src/elflint.c:905
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-msgstr "Sección [%2d] '%s': símbolo %zu: símbolo de sección non-local\n"
-
-#: src/elflint.c:955
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo _GLOBAL_OFFSET_TABLE_ se refiere a sección "
-"errada [%2d]\n"
-
-#: src/elflint.c:962
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"'%s'\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo _GLOBAL_OFFSET_TABLE_ se refiere a sección [%2d] "
-"'%s'\n"
-
-#: src/elflint.c:978
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-msgstr ""
-"Sección [%2d] '%s': valor del símbolo _GLOBAL_OFFSET_TABLE_ %#<PRIx64> no "
-"coincide con dirección de sección %s %#<PRIx64>\n"
-
-#: src/elflint.c:985
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-msgstr ""
-"Sección [%2d] '%s': tamaño de símbolo _GLOBAL_OFFSET_TABLE_ %<PRIu64> no "
-"coincide con tamaño de sección %s %<PRIu64>\n"
-
-#: src/elflint.c:993
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo _GLOBAL_OFFSET_TABLE_ presente, pero no. sección "
-"got\n"
-
-#: src/elflint.c:1009
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-msgstr ""
-"sección [%2d] '%s': Valor de símbolo _DYNAMIC_ %#<PRIx64> no coincide con la "
-"dirección de segmento%#<PRIx64>\n"
-
-#: src/elflint.c:1016
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-msgstr ""
-"Sección [%2d] '%s': tamaño de símbolo _DYNAMIC %<PRIu64> no coincide con "
-"tamaño de segmento %<PRIu64>\n"
-
-#: src/elflint.c:1029
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: símbolo en tabla de símbolos dinámicos sin "
-"visibilidad predeterminada\n"
-
-#: src/elflint.c:1033
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %zu: bit desconocido establecido en st_other\n"
-
-#: src/elflint.c:1082
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-msgstr "Sección [%2d] '%s': DT_RELCOUNT utilizada para esta sección RELA\n"
-
-#: src/elflint.c:1093 src/elflint.c:1145
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-msgstr ""
-"Sección [%2d] '%s': valor DT_RELCOUNT %d demasiado alto para esta sección\n"
-
-#: src/elflint.c:1118 src/elflint.c:1170
-#, c-format
-msgid ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-msgstr ""
-"Sección [%2d] '%s': reubicaciones relativas después de que el %d de índice "
-"haya sido especificado por DT_RELCOUNT\n"
-
-#: src/elflint.c:1124 src/elflint.c:1176
-#, c-format
-msgid ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-msgstr ""
-"Sección [%2d] '%s': reubicación no-relativa en %zu de índice; DT_RELCOUNT "
-"especificado %d reubicaciones relativas\n"
-
-#: src/elflint.c:1136
-#, c-format
-msgid "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-msgstr "sección [%2d] '%s': DT_RELACOUNT utilizado para esta sección REL\n"
-
-#: src/elflint.c:1218
-#, c-format
-msgid "section [%2d] '%s': invalid destination section index\n"
-msgstr "Sección [%2d] '%s': índice de sección de destino inválido\n"
-
-#: src/elflint.c:1230
-#, c-format
-msgid "section [%2d] '%s': invalid destination section type\n"
-msgstr "Sección [%2d] '%s': tipo de sección de destino inválido\n"
-
-#: src/elflint.c:1238
-#, c-format
-msgid "section [%2d] '%s': sh_info should be zero\n"
-msgstr "Sección [%2d] '%s': sh_info debe ser cero\n"
-
-#: src/elflint.c:1245
-#, c-format
-msgid "section [%2d] '%s': no relocations for merge-able sections possible\n"
-msgstr ""
-"Sección [%2d] '%s': no reubicaciones para secciones de fusión posibles\n"
-
-#: src/elflint.c:1253
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-msgstr ""
-"Sección [%2d] '%s': tamaño de entrada de sección no coincide con ElfXX_Rela\n"
-
-#: src/elflint.c:1313
-#, c-format
-msgid "text relocation flag set but there is no read-only segment\n"
-msgstr "Reubicación de bandera pero no hay segmento de sólo lectura\n"
-
-#: src/elflint.c:1340
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid type\n"
-msgstr "Sección [%2d] '%s': reubicación %zu: tipo inválido\n"
-
-#: src/elflint.c:1348
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-msgstr ""
-"Sección [%2d] '%s': reubicación %zu: tipo de reubicación inválido para el "
-"tipo de archivo\n"
-
-#: src/elflint.c:1356
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-msgstr "Sección [%2d] '%s': reubicación %zu: índice de símbolo inválido\n"
-
-#: src/elflint.c:1374
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can "
-"be used with %s\n"
-msgstr ""
-"Sección [%2d] '%s': reubicación %zu: sólo el símbolo '_GLOBAL_OFFSET_TABLE_' "
-"puede utilizarse con %s\n"
-
-#: src/elflint.c:1391
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-msgstr "Sección [%2d] '%s': reubicación %zu: compensación fuera de límites\n"
-
-#: src/elflint.c:1406
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-msgstr ""
-"Sección [%2d] '%s': reubicación %zu: reubicación de copia con símbolo de "
-"tipo %s\n"
-
-#: src/elflint.c:1427
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-msgstr ""
-"Sección [%2d] '%s': reubicación %zu: sección de sólo-lectura modificada, "
-"pero no se estableció bandera de reubicación\n"
-
-#: src/elflint.c:1442
-#, c-format
-msgid "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-msgstr ""
-"Sección [%2d] '%s': las reubicaciones se hacen con datos cargados y "
-"descargados\n"
-
-#: src/elflint.c:1482 src/elflint.c:1533
-#, c-format
-msgid "section [%2d] '%s': cannot get relocation %zu: %s\n"
-msgstr "Sección [%2d] '%s': no puede obtener reubicación %zu: %s\n"
-
-#: src/elflint.c:1609
-#, c-format
-msgid "more than one dynamic section present\n"
-msgstr "más de una sección dinámica presente\n"
-
-#: src/elflint.c:1628
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-msgstr ""
-"Sección [%2d] '%s': tamaño de entrada de sección no coincide con ElfXX_Dyn\n"
-
-#: src/elflint.c:1633 src/elflint.c:1918
-#, c-format
-msgid "section [%2d] '%s': sh_info not zero\n"
-msgstr "Sección [%2d] '%s': sh_info no es cero\n"
-
-#: src/elflint.c:1643
-#, c-format
-msgid "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-msgstr ""
-"Sección [%2d] '%s': no puede obtener entrada de sección dinámica %zu: %s\n"
-
-#: src/elflint.c:1651
-#, c-format
-msgid "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-msgstr "Sección [%2d] '%s': entradas non-DT_NULL siguen a la entrada DT_NULL\n"
-
-#: src/elflint.c:1658
-#, c-format
-msgid "section [%2d] '%s': entry %zu: unknown tag\n"
-msgstr "Sección [%2d] '%s': entrada %zu: etiqueta desconocida\n"
-
-#: src/elflint.c:1669
-#, c-format
-msgid "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-msgstr "Sección [%2d] '%s': entrada %zu: más de una entrada con etiqueta %s\n"
-
-#: src/elflint.c:1679
-#, c-format
-msgid "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-msgstr "Sección [%2d] '%s': entrada %zu: nivel 2 etiqueta %s utilizada\n"
-
-#: src/elflint.c:1697
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-msgstr ""
-"Sección [%2d] '%s': entrada %zu: el valor DT_PLTREL debe ser DT_REL or "
-"DT_RELA\n"
-
-#: src/elflint.c:1710
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] '%s' referenced by sh_link\n"
-msgstr ""
-"Sección [%2d] '%s': entrada %zu: puntero no coincide con dirección de "
-"sección [%2d] '%s' al que hace referencia sh_link\n"
-
-#: src/elflint.c:1753
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-msgstr ""
-"Sección [%2d] '%s': entrada %zu: valor %s debe apuntar en segmento cargado\n"
-
-#: src/elflint.c:1768
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] '%s'\n"
-msgstr ""
-"sección [%2d] '%s': entrada %zu: valor %s debe ser compensación válida en "
-"sección [%2d] '%s'\n"
-
-#: src/elflint.c:1788 src/elflint.c:1816
-#, c-format
-msgid "section [%2d] '%s': contains %s entry but not %s\n"
-msgstr "Sección [%2d] '%s': contiene entrada %s pero no %s\n"
-
-#: src/elflint.c:1800
-#, c-format
-msgid "section [%2d] '%s': mandatory tag %s not present\n"
-msgstr "Sección [%2d] '%s': etiqueta obligatoria %s no está presente\n"
-
-#: src/elflint.c:1809
-#, c-format
-msgid "section [%2d] '%s': no hash section present\n"
-msgstr "Sección [%2d] '%s': no hay sección de dispersión presente\n"
-
-#: src/elflint.c:1824 src/elflint.c:1831
-#, c-format
-msgid "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-msgstr "Sección [%2d] '%s': no todas las %s, %s, y %s están presentes\n"
-
-#: src/elflint.c:1841 src/elflint.c:1845
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-msgstr ""
-"Sección [%2d] '%s': etiqueta %s faltante en DSO marcada durante el pre-"
-"enlace\n"
-
-#: src/elflint.c:1851
-#, c-format
-msgid "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-msgstr ""
-"Sección [%2d] '%s': archivo no-DSO marcado como dependencia durante el pre-"
-"enlace\n"
-
-#: src/elflint.c:1862 src/elflint.c:1866 src/elflint.c:1870 src/elflint.c:1874
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in prelinked executable\n"
-msgstr "Sección [%2d] '%s': etiqueta %s faltante en pre-enlace ejecutable\n"
-
-#: src/elflint.c:1886
-#, c-format
-msgid ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-msgstr ""
-"Sección [%2d] '%s': sólo los archivos reubicables pueden tener índice de "
-"sección extendido\n"
-
-#: src/elflint.c:1896
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-msgstr ""
-"Sección [%2d] '%s': índice de sección extendido no para tabla de símbolos\n"
-
-#: src/elflint.c:1901
-#, c-format
-msgid "cannot get data for symbol section\n"
-msgstr "no se puede obtener sección para símbolos\n"
-
-#: src/elflint.c:1904
-#, c-format
-msgid "section [%2d] '%s': entry size does not match Elf32_Word\n"
-msgstr "Sección [%2d] '%s': tamaño de entrada no coincide con Elf32_Word\n"
-
-#: src/elflint.c:1913
-#, c-format
-msgid "section [%2d] '%s': extended index table too small for symbol table\n"
-msgstr ""
-"Sección [%2d] '%s': tabla de índice extendida demasiado pequeña para tabla "
-"de símbolos\n"
-
-#: src/elflint.c:1928
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index in section [%2zu] '%s' refers to "
-"same symbol table\n"
-msgstr ""
-"Sección [%2d] '%s': índice de sección extendida en sección [%2zu] '%s' se "
-"refiere a la misma tabla de símbolos\n"
-
-#: src/elflint.c:1945
-#, c-format
-msgid "symbol 0 should have zero extended section index\n"
-msgstr "símbolo 0 debe tener índice de sección extendida cero\n"
-
-#: src/elflint.c:1957
-#, c-format
-msgid "cannot get data for symbol %zu\n"
-msgstr "no puede obtener datos para símbolo %zu\n"
-
-#: src/elflint.c:1962
-#, c-format
-msgid "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-msgstr ""
-"índice de sección extendida es %<PRIu32> pero índice de símbolo no es "
-"XINDEX\n"
-
-#: src/elflint.c:1978 src/elflint.c:2029
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-msgstr ""
-"Sección [%2d] '%s': sección de tabla de dispersión es demasiado pequeña (es "
-"%ld, se espera %ld)\n"
-
-#: src/elflint.c:1990 src/elflint.c:2041
-#, c-format
-msgid "section [%2d] '%s': chain array too large\n"
-msgstr "Sección [%2d] '%s': índice de la cadena es demasiado grande\n"
-
-#: src/elflint.c:2004 src/elflint.c:2055
-#, c-format
-msgid "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-msgstr ""
-"Sección [%2d] '%s': referencia de cubetas de dispersión %zu fuera de "
-"límites\n"
-
-#: src/elflint.c:2014
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-msgstr ""
-"Sección [%2d] '%s': referencia de cadena de dispersión %zu fuera de límites\n"
-
-#: src/elflint.c:2065
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-msgstr ""
-"Sección [%2d] '%s': referencia de cadena de dispersión %<PRIu64> fuera de "
-"límites\n"
-
-#: src/elflint.c:2081
-#, c-format
-msgid "section [%2d] '%s': bitmask size not power of 2: %u\n"
-msgstr "Sección [%2d] '%s': tamaño de bitmask no es potencia de 2: %u\n"
-
-#: src/elflint.c:2092
-#, fuzzy, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-msgstr ""
-"Sección [%2d] '%s': sección de tabla de dispersión es demasiado pequeña (es "
-"%ld, se espera al menos least%ld)\n"
-
-#: src/elflint.c:2100
-#, c-format
-msgid "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-msgstr ""
-"Sección [%2d] '%s': segundo cambio de función de dispersión demasiado "
-"grande: %u\n"
-
-#: src/elflint.c:2132
-#, c-format
-msgid ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-msgstr ""
-"Sección [%2d] '%s': cadena de dispersión para cubetas %zu inferior a "
-"polarización de índice de símbolo\n"
-
-#: src/elflint.c:2153
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-msgstr ""
-"Sección [%2d] '%s': el símbolo %u al que se hace referencia en cadena para "
-"cubeta %zu es indefinido\n"
-
-#: src/elflint.c:2164
-#, c-format
-msgid ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-msgstr ""
-"Sección [%2d] '%s': valor de dispersión para símbolo %u en cadena para "
-"cubeta %zu está errado\n"
-
-#: src/elflint.c:2195
-#, c-format
-msgid "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-msgstr ""
-"Sección [%2d] '%s': cadena de dispersión para cubeta %zu fuera de limites\n"
-
-#: src/elflint.c:2200
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-msgstr ""
-"Sección [%2d] '%s': referencia de símbolo en cadena para cubeta %zu fuera de "
-"límites\n"
-
-#: src/elflint.c:2206
-#, c-format
-msgid "section [%2d] '%s': bitmask does not match names in the hash table\n"
-msgstr ""
-"Sección [%2d] '%s': bitmask no coincide con nombres en la tabla de "
-"dispersión\n"
-
-#: src/elflint.c:2219
-#, c-format
-msgid "section [%2d] '%s': relocatable files cannot have hash tables\n"
-msgstr ""
-"Sección [%2d] '%s': archivos reubicables no pueden tener tablas de "
-"dispersión\n"
-
-#: src/elflint.c:2237
-#, c-format
-msgid "section [%2d] '%s': hash table not for dynamic symbol table\n"
-msgstr ""
-"Sección [%2d] '%s': tabla de dispersión no para tabla de símbolos dinámicos\n"
-
-#: src/elflint.c:2245
-#, c-format
-msgid "section [%2d] '%s': hash table entry size incorrect\n"
-msgstr ""
-"Sección [%2d] '%s': tamaño incorrecto de entrada de tabla de dispersión\n"
-
-#: src/elflint.c:2250
-#, c-format
-msgid "section [%2d] '%s': not marked to be allocated\n"
-msgstr "Sección [%2d] '%s': no marcada para ser asignada\n"
-
-#: src/elflint.c:2255
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-msgstr ""
-"Sección [%2d] '%s': tabla de dispersión no tiene ni siquiera espacio para "
-"entradas administrativas iniciales\n"
-
-#: src/elflint.c:2303
-#, c-format
-msgid "sh_link in hash sections [%2zu] '%s' and [%2zu] '%s' not identical\n"
-msgstr ""
-"sh_link en secciones de dispersión [%2zu] '%s' y [%2zu] '%s' no son "
-"idénticas\n"
-
-#: src/elflint.c:2381 src/elflint.c:2385
-#, c-format
-msgid "section [%2zu] '%s': reference to symbol index 0\n"
-msgstr "Sección [%2zu] '%s': referencia al índice de símbolo 0\n"
-
-#: src/elflint.c:2392
-#, c-format
-msgid ""
-"symbol %d referenced in new hash table in [%2zu] '%s' but not in old hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"Símbolo %d nombrado en nueva tabla de dispersión en [%2zu] '%s' pero no en "
-"la tabla de dispersión anterior en [%2zu] '%s'\n"
-
-#: src/elflint.c:2404
-#, c-format
-msgid ""
-"symbol %d referenced in old hash table in [%2zu] '%s' but not in new hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"Símbolo %d nombrado en la tabla de dispersión anterior en [%2zu] '%s' pero "
-"no en la nueva tabla de dispersión en [%2zu] '%s'\n"
-
-#: src/elflint.c:2420
-#, c-format
-msgid "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-msgstr "Sección [%2d] '%s': nonzero sh_%s para sección NULL\n"
-
-#: src/elflint.c:2440
-#, c-format
-msgid ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-msgstr ""
-"Sección [%2d] '%s': grupos de sección sólo permitidos en archivos de objeto "
-"reubicables\n"
-
-#: src/elflint.c:2451
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol table: %s\n"
-msgstr "Sección [%2d] '%s': no puede obtener tabla de símbolos: %s\n"
-
-#: src/elflint.c:2456
-#, c-format
-msgid "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-msgstr ""
-"Sección [%2d] '%s': referencia de sección en sh_link no es una tabla de "
-"símbolos\n"
-
-#: src/elflint.c:2462
-#, c-format
-msgid "section [%2d] '%s': invalid symbol index in sh_info\n"
-msgstr "Sección [%2d] '%s': índice de símbolo inválido en sh_info\n"
-
-#: src/elflint.c:2467
-#, c-format
-msgid "section [%2d] '%s': sh_flags not zero\n"
-msgstr "Sección [%2d] '%s': sh_flags no cero\n"
-
-#: src/elflint.c:2474
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol for signature\n"
-msgstr "Sección [%2d] '%s': no puede obtener símbolo para firma\n"
-
-#: src/elflint.c:2479
-#, c-format
-msgid "section [%2d] '%s': signature symbol cannot be empty string\n"
-msgstr ""
-"sección [%2d] '%s': el símbolo de firma no puede ser una cadena vacía\n"
-
-#: src/elflint.c:2485
-#, c-format
-msgid "section [%2d] '%s': sh_flags not set correctly\n"
-msgstr "Sección [%2d] '%s': sh_flags no establecida correctamente\n"
-
-#: src/elflint.c:2491
-#, c-format
-msgid "section [%2d] '%s': cannot get data: %s\n"
-msgstr "Sección [%2d] '%s': no puede obtener datos: %s\n"
-
-#: src/elflint.c:2500
-#, c-format
-msgid "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-msgstr ""
-"Sección [%2d] '%s': tamaño de sección no es múltiplo de tamaño de "
-"(Elf32_Word)\n"
-
-#: src/elflint.c:2505
-#, c-format
-msgid "section [%2d] '%s': section group without flags word\n"
-msgstr "Sección [%2d] '%s': grupo de sección sin palabra de banderas\n"
-
-#: src/elflint.c:2511
-#, c-format
-msgid "section [%2d] '%s': section group without member\n"
-msgstr "Sección [%2d] '%s': grupo de sección sin miembro\n"
-
-#: src/elflint.c:2515
-#, c-format
-msgid "section [%2d] '%s': section group with only one member\n"
-msgstr "Sección [%2d] '%s': grupo de sección con sólo un miembro\n"
-
-#: src/elflint.c:2526
-#, c-format
-msgid "section [%2d] '%s': unknown section group flags\n"
-msgstr "Sección [%2d] '%s': banderas de grupo de sección desconocido\n"
-
-#: src/elflint.c:2538
-#, c-format
-msgid "section [%2d] '%s': section index %Zu out of range\n"
-msgstr "Sección [%2d] '%s': índice de sección %Zu fuera de rango\n"
-
-#: src/elflint.c:2547
-#, c-format
-msgid "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-msgstr ""
-"Sección [%2d] '%s': no se puede obtener encabezamiento de sección para "
-"elemento %zu: %s\n"
-
-#: src/elflint.c:2554
-#, c-format
-msgid "section [%2d] '%s': section group contains another group [%2d] '%s'\n"
-msgstr "Sección [%2d] '%s': grupo de sección contiene otro grupo [%2d] '%s'\n"
-
-#: src/elflint.c:2560
-#, c-format
-msgid ""
-"section [%2d] '%s': element %Zu references section [%2d] '%s' without "
-"SHF_GROUP flag set\n"
-msgstr ""
-"Sección [%2d] '%s': elemento %Zu hace referencia a sección [%2d] '%s' sin "
-"establecer bandera SHF_GROUP\n"
-
-#: src/elflint.c:2567
-#, c-format
-msgid "section [%2d] '%s' is contained in more than one section group\n"
-msgstr "Sección [%2d] '%s' está contenida en más de un grupo de sección\n"
-
-#: src/elflint.c:2756
-#, c-format
-msgid ""
-"section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no "
-"dynamic symbol table\n"
-msgstr ""
-"Sección [%2d] '%s' se refiere en sh_link a la sección [%2d] '%s' la cual no "
-"es una tabla de símbolos dinámicos\n"
-
-#: src/elflint.c:2768
-#, c-format
-msgid ""
-"section [%2d] '%s' has different number of entries than symbol table [%2d] "
-"'%s'\n"
-msgstr ""
-"Sección [%2d] '%s' tiene un número diferente de entradas a la de la tabla de "
-"símbolos [%2d] '%s'\n"
-
-#: src/elflint.c:2784
-#, c-format
-msgid "section [%2d] '%s': symbol %d: cannot read version data\n"
-msgstr ""
-"Sección [%2d] '%s': el símbolo %d: no se pueden leer datos de versión\n"
-
-#: src/elflint.c:2800
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-msgstr ""
-"Sección [%2d] '%s': el símbolo %d: el símbolo local con alcance mundial\n"
-
-#: src/elflint.c:2808
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with version\n"
-msgstr "Sección [%2d] '%s': símbolo %d: símbolo local con versión\n"
-
-#: src/elflint.c:2822
-#, c-format
-msgid "section [%2d] '%s': symbol %d: invalid version index %d\n"
-msgstr "Sección [%2d] '%s': símbolo %d: índice de versión inválida %d\n"
-
-#: src/elflint.c:2827
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %d: índice de versión %d es para versión "
-"definida\n"
-
-#: src/elflint.c:2837
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-msgstr ""
-"Sección [%2d] '%s': símbolo %d: índice de versión %d es para la versión "
-"solicitada\n"
-
-#: src/elflint.c:2889
-#, c-format
-msgid "more than one version reference section present\n"
-msgstr "Más de una sección de referencia de versión presente\n"
-
-#: src/elflint.c:2897 src/elflint.c:3026
-#, c-format
-msgid "section [%2d] '%s': sh_link does not link to string table\n"
-msgstr "Sección [%2d] '%s': sh_link no se enlaza a la tabla de cadenas\n"
-
-#: src/elflint.c:2920 src/elflint.c:3078
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong version %d\n"
-msgstr "Sección [%2d] '%s': entrada %d tiene versión %d errada\n"
-
-#: src/elflint.c:2926 src/elflint.c:3084
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-msgstr ""
-"Sección [%2d] '%s': entrada %d tiene compensación errada de datos "
-"auxiliares\n"
-
-#: src/elflint.c:2934
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid file reference\n"
-msgstr "Sección [%2d] '%s': entrada %d tiene referencia de archivo inválida\n"
-
-#: src/elflint.c:2942
-#, c-format
-msgid "section [%2d] '%s': entry %d references unknown dependency\n"
-msgstr "Sección [%2d] '%s': %d hace referencia a dependencia desconocida\n"
-
-#: src/elflint.c:2954
-#, c-format
-msgid "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-msgstr ""
-"sección [%2d] '%s': entrada auxiliar %d de entrada %d tiene bandera "
-"desconocida\n"
-
-#: src/elflint.c:2961
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-msgstr ""
-"Sección [%2d] '%s': entrada auxiliar %d de entrada %d tiene referencia de "
-"nombre inválida\n"
-
-#: src/elflint.c:2968
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-msgstr ""
-"Sección [%2d] '%s': entrada auxiliar %d de entrada %d tiene valor de "
-"dispersión: %#x, esperado %#x\n"
-
-#: src/elflint.c:2978
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name '%s'\n"
-msgstr ""
-"sección [%2d] '%s': entrada auxiliar %d de entrada %d tiene nombre duplicado "
-"'%s'\n"
-
-#: src/elflint.c:2989
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-msgstr ""
-"sección [%2d] '%s': entrada auxiliar %d de entrada %d tiene próximo campo "
-"errado\n"
-
-#: src/elflint.c:3005 src/elflint.c:3163
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-msgstr ""
-"sección [%2d] '%s': entrada %d tiene compensación inválida para próxima "
-"entrada\n"
-
-#: src/elflint.c:3018
-#, c-format
-msgid "more than one version definition section present\n"
-msgstr "más de una definición de versión presente de sección\n"
-
-#: src/elflint.c:3063
-#, c-format
-msgid "section [%2d] '%s': more than one BASE definition\n"
-msgstr "Sección [%2d] '%s': más de una definición de BASE\n"
-
-#: src/elflint.c:3067
-#, c-format
-msgid "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-msgstr ""
-"Sección [%2d] '%s': definición de BASE debe tener índice VER_NDX_GLOBAL\n"
-
-#: src/elflint.c:3073
-#, c-format
-msgid "section [%2d] '%s': entry %d has unknown flag\n"
-msgstr "Sección [%2d] '%s': entrada %d tiene bandera desconocida\n"
-
-#: src/elflint.c:3097
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid name reference\n"
-msgstr "Sección [%2d] '%s': entrada %d tiene referencia de nombre inválida\n"
-
-#: src/elflint.c:3104
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-msgstr ""
-"Sección [%2d] '%s': entrada %d tiene valor de dispersión errado: %#x, "
-"esperado %#x\n"
-
-#: src/elflint.c:3113
-#, c-format
-msgid "section [%2d] '%s': entry %d has duplicate version name '%s'\n"
-msgstr ""
-"Sección [%2d] '%s': entrada %d tiene nombre de versión duplicado '%s'\n"
-
-#: src/elflint.c:3132
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-msgstr ""
-"Sección [%2d] '%s': entrada %d tiene referencia de nombre inválida en datos "
-"auxiliares\n"
-
-#: src/elflint.c:3147
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-msgstr ""
-"Sección [%2d] '%s': entrada %d tiene próximo campo errado en datos "
-"auxiliares\n"
-
-#: src/elflint.c:3169
-#, c-format
-msgid "section [%2d] '%s': no BASE definition\n"
-msgstr "Sección [%2d] '%s': no hay definición de BASE\n"
-
-#: src/elflint.c:3185
-#, c-format
-msgid "section [%2d] '%s': unknown parent version '%s'\n"
-msgstr "Sección [%2d] '%s': desconocida versión principal '%s'\n"
-
-#: src/elflint.c:3198
-#, c-format
-msgid "section [%2d] '%s': empty object attributes section\n"
-msgstr "Sección [%2d] '%s': sección de atributos de objeto vacío\n"
-
-#: src/elflint.c:3219
-#, c-format
-msgid "section [%2d] '%s': unrecognized attribute format\n"
-msgstr "Sección[%2d] '%s': formato de atributo no reconocido\n"
-
-#: src/elflint.c:3235
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-msgstr ""
-"Sección[%2d] '%s': compensación %zu: campo de longitud cero en sección de "
-"atributo\n"
-
-#: src/elflint.c:3244
-#, c-format
-msgid "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-msgstr ""
-"Sección[%2d] '%s': compensación %zu: longitud inválida en sección de "
-"atributo\n"
-
-#: src/elflint.c:3256
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-msgstr ""
-"Sección[%2d] '%s': compensación %zu: cadena de nombre de proveedor sin "
-"terminar\n"
-
-#: src/elflint.c:3273
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-msgstr ""
-"Sección [%2d] '%s': compensación %zu: sin fin ULEB128 en etiqueta de sub-"
-"sección de atributo\n"
-
-#: src/elflint.c:3282
-#, c-format
-msgid "section [%2d] '%s': offset %zu: truncated attribute section\n"
-msgstr "Sección [%2d] '%s': compensación %zu: sección de atributo truncado\n"
-
-#: src/elflint.c:3291
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-msgstr ""
-"Sección [%2d] '%s': compensación %zu: campo de longitud cero length en sub-"
-"sección de atributo\n"
-
-#: src/elflint.c:3304
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-msgstr ""
-"Sección [%2d] '%s': compensación %zu: longitud inválida en sub-sección de "
-"atributo\n"
-
-#: src/elflint.c:3315
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-msgstr ""
-"Sección[%2d] '%s': compensación %zu: sub-sección de atributo tiene etiqueta "
-"inesperada %u\n"
-
-#: src/elflint.c:3333
-#, c-format
-msgid "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-msgstr ""
-"Sección[%2d] '%s': compensación %zu: sin fin ULEB128 en etiqueta de "
-"atributo\n"
-
-#: src/elflint.c:3344
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-msgstr ""
-"Sección [%2d] '%s': compensación %zu: cadena sin terminar en atributo\n"
-
-#: src/elflint.c:3357
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-msgstr ""
-"Sección [%2d] '%s': compensación %zu: etiqueta de atributo no reconocida %u\n"
-
-#: src/elflint.c:3361
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-msgstr ""
-"Sección [%2d] '%s': compensación %zu: no reconocido %s valor de atributo "
-"%<PRIu64>\n"
-
-#: src/elflint.c:3371
-#, c-format
-msgid "section [%2d] '%s': offset %zu: vendor '%s' unknown\n"
-msgstr "Sección [%2d] '%s': compensación %zu: proveedor '%s' desconocido\n"
-
-#: src/elflint.c:3377
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-msgstr ""
-"Sección [%2d] '%s': compensación %zu: extra bytes después de la última "
-"sección de atributo\n"
-
-#: src/elflint.c:3466
-#, c-format
-msgid "cannot get section header of zeroth section\n"
-msgstr "no puede obtener encabezamiento de sección de sección zeroth\n"
-
-#: src/elflint.c:3470
-#, c-format
-msgid "zeroth section has nonzero name\n"
-msgstr "Sección zeroth tiene nombre nonzero\n"
-
-#: src/elflint.c:3472
-#, c-format
-msgid "zeroth section has nonzero type\n"
-msgstr "Sección zeroth tiene tipo nonzero\n"
-
-#: src/elflint.c:3474
-#, c-format
-msgid "zeroth section has nonzero flags\n"
-msgstr "Sección zeroth tiene banderas nonzero\n"
-
-#: src/elflint.c:3476
-#, c-format
-msgid "zeroth section has nonzero address\n"
-msgstr "Sección zeroth tiene dirección nonzero\n"
-
-#: src/elflint.c:3478
-#, c-format
-msgid "zeroth section has nonzero offset\n"
-msgstr "Sección zeroth tiene compensación nonzero\n"
-
-#: src/elflint.c:3480
-#, c-format
-msgid "zeroth section has nonzero align value\n"
-msgstr "Sección zeroth tiene valor de alineación nonzero\n"
-
-#: src/elflint.c:3482
-#, c-format
-msgid "zeroth section has nonzero entry size value\n"
-msgstr "Sección zeroth tiene valor de tamaño de entrada nonzero\n"
-
-#: src/elflint.c:3485
-#, c-format
-msgid ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-msgstr ""
-"Sección zeroth tiene valor de tamaño nonzero mientras que el encabezamiento "
-"ELF tiene valor shnum nonzero\n"
-
-#: src/elflint.c:3489
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-msgstr ""
-"Sección zeroth tiene valor de enlace nonzero mientras que el encabezamiento "
-"ELF no señala sobreflujo en shstrndx\n"
-
-#: src/elflint.c:3493
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-msgstr ""
-"la sección zeroth tiene un valor de enlace distinto a cero mientras que el "
-"encabezamiento ELF no señala desbordamiento en phnum\n"
-
-#: src/elflint.c:3510
-#, c-format
-msgid "cannot get section header for section [%2zu] '%s': %s\n"
-msgstr "No se puede obtener encabezamiento para sección [%2zu] '%s': %s\n"
-
-#: src/elflint.c:3519
-#, c-format
-msgid "section [%2zu]: invalid name\n"
-msgstr "Sección [%2zu]: nombre inválido\n"
-
-#: src/elflint.c:3546
-#, c-format
-msgid "section [%2d] '%s' has wrong type: expected %s, is %s\n"
-msgstr "Sección [%2d] '%s' tiene tipo errado: %s esperado, es %s\n"
-
-#: src/elflint.c:3562
-#, c-format
-msgid "section [%2zu] '%s' has wrong flags: expected %s, is %s\n"
-msgstr "Sección [%2zu] '%s' tiene banderas erradas: %s esperado, es %s\n"
-
-#: src/elflint.c:3579
-#, c-format
-msgid ""
-"section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"
-msgstr ""
-"Sección [%2zu] '%s' tiene banderas erradas: %s esperado y posiblemente %s, "
-"es %s\n"
-
-#: src/elflint.c:3597
-#, c-format
-msgid "section [%2zu] '%s' present in object file\n"
-msgstr "Sección [%2zu] '%s' presente en archivo objeto\n"
-
-#: src/elflint.c:3603 src/elflint.c:3635
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"
-msgstr ""
-"Sección [%2zu] '%s' tiene bandera SHF_ALLOC establecida pero no es un "
-"segmento cargable\n"
-
-#: src/elflint.c:3608 src/elflint.c:3640
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-msgstr ""
-"Sección [%2zu] '%s' no tiene bandera SHF_ALLOC establecida pero hay "
-"segmentos cargables\n"
-
-#: src/elflint.c:3616
-#, c-format
-msgid ""
-"section [%2zu] '%s' is extension section index table in non-object file\n"
-msgstr ""
-"Sección [%2zu] '%s' es tabla de índice de sección de extensión en archivo no-"
-"objeto\n"
-
-#: src/elflint.c:3659
-#, c-format
-msgid "section [%2zu] '%s': size not multiple of entry size\n"
-msgstr "Sección [%2zu] '%s': tamaño no es múltiplo de tamaño de entrada\n"
-
-#: src/elflint.c:3664
-#, c-format
-msgid "cannot get section header\n"
-msgstr "no se puede obtener encabezamiento de sección\n"
-
-#: src/elflint.c:3674
-#, c-format
-msgid "section [%2zu] '%s' has unsupported type %d\n"
-msgstr "sección [%2zu] '%s' tiene tipo %d incompatible \n"
-
-#: src/elflint.c:3688
-#, c-format
-msgid ""
-"section [%2zu] '%s' contains invalid processor-specific flag(s) %#<PRIx64>\n"
-msgstr ""
-"Sección [%2zu] '%s' contiene bandera(s) de procesador-específico inválidas "
-"%#<PRIx64>\n"
-
-#: src/elflint.c:3695
-#, c-format
-msgid "section [%2zu] '%s' contains unknown flag(s) %#<PRIx64>\n"
-msgstr "Sección [%2zu] '%s' contiene bandera(s) desconocidas %#<PRIx64>\n"
-
-#: src/elflint.c:3703
-#, c-format
-msgid "section [%2zu] '%s': thread-local data sections address not zero\n"
-msgstr ""
-"Sección [%2zu] '%s': dirección de secciones de datos de hilo-local no cero\n"
-
-#: src/elflint.c:3711
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in link value\n"
-msgstr ""
-"Sección [%2zu] '%s': referencia de sección inválida en valor de enlace\n"
-
-#: src/elflint.c:3716
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in info value\n"
-msgstr ""
-"Sección [%2zu] '%s': referencia de sección inválida en valor de información\n"
-
-#: src/elflint.c:3723
-#, c-format
-msgid "section [%2zu] '%s': strings flag set without merge flag\n"
-msgstr ""
-"Sección [%2zu] '%s': bandera de cadenas establecida sin bandera de fusión\n"
-
-#: src/elflint.c:3728
-#, c-format
-msgid "section [%2zu] '%s': merge flag set but entry size is zero\n"
-msgstr ""
-"Sección [%2zu] '%s': bandera de fusión establecida pero tamaño de entrada es "
-"cero\n"
-
-#: src/elflint.c:3746
-#, c-format
-msgid "section [%2zu] '%s' has unexpected type %d for an executable section\n"
-msgstr ""
-"Sección [%2zu] '%s' tiene un tipo %d inesperado para una sección ejecutable\n"
-
-#: src/elflint.c:3755
-#, c-format
-msgid "section [%2zu] '%s' is both executable and writable\n"
-msgstr "Sección [%2zu] '%s' es tanto de ejecución como de escritura\n"
-
-#: src/elflint.c:3784
-#, c-format
-msgid ""
-"section [%2zu] '%s' not fully contained in segment of program header entry "
-"%d\n"
-msgstr ""
-"Sección [%2zu] '%s' no contenida totalmente en segmento de entrada de "
-"encabezamiento de programa %d\n"
-
-#: src/elflint.c:3792
-#, c-format
-msgid ""
-"section [%2zu] '%s' has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-msgstr ""
-"Sección [%2zu] '%s' no tiene tipo NOBITS pero es leída desde el archivo en "
-"segmento de entrada de encabezamiento de programa %d\n"
-
-#: src/elflint.c:3801
-#, c-format
-msgid ""
-"section [%2zu] '%s' has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-msgstr ""
-"Sección [%2zu] '%s' no tiene tipo NOBITS pero no es leída desde el fichero "
-"en segmento de entrada de encabezamiento de programa %d\n"
-
-#: src/elflint.c:3812
-#, c-format
-msgid "section [%2zu] '%s' is executable in nonexecutable segment %d\n"
-msgstr "Sección [%2zu] '%s' es ejecutable en segmento no ejecutable %d\n"
-
-#: src/elflint.c:3822
-#, c-format
-msgid "section [%2zu] '%s' is writable in unwritable segment %d\n"
-msgstr ""
-"Sección [%2zu] '%s' es de escritura en segmento que no es de escritura %d\n"
-
-#: src/elflint.c:3832
-#, c-format
-msgid ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-msgstr ""
-"Sección [%2zu] '%s': asignación de bandera establecida pero sección no en "
-"ningún segmento cargado\n"
-
-#: src/elflint.c:3838
-#, c-format
-msgid ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-msgstr ""
-"Sección [%2zu] '%s': encabezamiento ELF dice esta es la tabla de cadena de "
-"encabezamiento de sección, pero el tipo no es SHT_TYPE\n"
-
-#: src/elflint.c:3846
-#, c-format
-msgid ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-msgstr ""
-"sección [%2zu] '%s': ficheros reubicables no pueden tener tablas de símbolos "
-"dinámicos\n"
-
-#: src/elflint.c:3897
-#, c-format
-msgid "more than one version symbol table present\n"
-msgstr "Más de una tabla de símbolos presente\n"
-
-#: src/elflint.c:3920
-#, c-format
-msgid "INTERP program header entry but no .interp section\n"
-msgstr ""
-"Entrada de encabezamiento de programa INTERP pero no la sección .interp\n"
-
-#: src/elflint.c:3931
-#, c-format
-msgid ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-msgstr ""
-"segmento cargable [%u] es ejecutable pero no contiene secciones ejecutables\n"
-
-#: src/elflint.c:3937
-#, c-format
-msgid "loadable segment [%u] is writable but contains no writable sections\n"
-msgstr ""
-"segmento cargable [%u] es de escritura pero contiene secciones protegidas "
-"contra escritura\n"
-
-#: src/elflint.c:3948
-#, c-format
-msgid ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-msgstr ""
-"Sección no .gnu.versym presente, pero la sección .gnu.versym_d o la sección ."
-"gnu.versym_r existen\n"
-
-#: src/elflint.c:3961
-#, c-format
-msgid "duplicate version index %d\n"
-msgstr "Duplicar índice de versión %d\n"
-
-#: src/elflint.c:3975
-#, c-format
-msgid ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-msgstr ""
-"Sección .gnu.versym presente sin las secciones .gnu.versym_d o .gnu."
-"versym_r\n"
-
-#: src/elflint.c:4024
-#, c-format
-msgid "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-msgstr ""
-"phdr[%d]: tipo de nota de fichero core desconocido %<PRIu32> en compensación "
-"%<PRIu64>\n"
-
-#: src/elflint.c:4028
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"Sección [%2d] '%s': tipo de nota de fichero core desconocido %<PRIu32> en "
-"compensación %Zu\n"
-
-#: src/elflint.c:4051
-#, c-format
-msgid "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"phdr[%d]: tipo de nota de fichero objeto desconocido %<PRIu32> en "
-"compensación %Zu\n"
-
-#: src/elflint.c:4055
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"Sección [%2d] '%s': tipo de nota de fichero objeto desconocido %<PRIu32> en "
-"compensación %Zu\n"
-
-#: src/elflint.c:4072
-#, c-format
-msgid "phdr[%d]: no note entries defined for the type of file\n"
-msgstr "phdr[%d]: no hay entradas de nota definidas para el tipo de archivo\n"
-
-#: src/elflint.c:4091
-#, c-format
-msgid "phdr[%d]: cannot get content of note section: %s\n"
-msgstr "phdr[%d]: no puede obtener contenido de sección de nota: %s\n"
-
-#: src/elflint.c:4094
-#, c-format
-msgid "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-msgstr "phdr[%d]: extra %<PRIu64> bytes después de la última nota\n"
-
-#: src/elflint.c:4115
-#, c-format
-msgid "section [%2d] '%s': no note entries defined for the type of file\n"
-msgstr ""
-"Sección [%2d] '%s': no hay entradas de nota definidas para el tipo de "
-"archivo\n"
-
-#: src/elflint.c:4122
-#, c-format
-msgid "section [%2d] '%s': cannot get content of note section\n"
-msgstr ""
-"Sección[%2d] '%s': no se puede obtener el contenido de sección de nota\n"
-
-#: src/elflint.c:4125
-#, c-format
-msgid "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-msgstr "Sección[%2d] '%s': extra %<PRIu64> bytes después de la última nota\n"
-
-#: src/elflint.c:4143
-#, c-format
-msgid ""
-"only executables, shared objects, and core files can have program headers\n"
-msgstr ""
-"Sólo ejecutables, objetos compartidos y ficheros core pueden tener "
-"encabezamientos de programas\n"
-
-#: src/elflint.c:4158
-#, c-format
-msgid "cannot get program header entry %d: %s\n"
-msgstr "no se puede obtener entrada de encabezamiento %d: %s\n"
-
-#: src/elflint.c:4167
-#, c-format
-msgid "program header entry %d: unknown program header entry type %#<PRIx64>\n"
-msgstr ""
-"entrada de encabezamiento de programa %d: tipo %#<PRIx64> de entrada de "
-"encabezamiento de programa desconocido\n"
-
-#: src/elflint.c:4178
-#, c-format
-msgid "more than one INTERP entry in program header\n"
-msgstr "Más de una entrada INTERP en encabezamiento de programa\n"
-
-#: src/elflint.c:4186
-#, c-format
-msgid "more than one TLS entry in program header\n"
-msgstr "más de una entrada TLS en encabezamiento de programa\n"
-
-#: src/elflint.c:4193
-#, c-format
-msgid "static executable cannot have dynamic sections\n"
-msgstr "ejecutable estático no puede tener secciones dinámicas\n"
-
-#: src/elflint.c:4207
-#, c-format
-msgid "dynamic section reference in program header has wrong offset\n"
-msgstr ""
-"Referencia de sección dinámica en encabezamiento de programa tiene "
-"compensación errada\n"
-
-#: src/elflint.c:4210
-#, c-format
-msgid "dynamic section size mismatch in program and section header\n"
-msgstr ""
-"No coinciden tamaño de sección dinámica en programa y encabezamiento de "
-"sección\n"
-
-#: src/elflint.c:4220
-#, c-format
-msgid "more than one GNU_RELRO entry in program header\n"
-msgstr "Más de una entrada GNU_RELRO en encabezamiento de programa\n"
-
-#: src/elflint.c:4241
-#, c-format
-msgid "loadable segment GNU_RELRO applies to is not writable\n"
-msgstr "Segmento cargable GNU_RELRO que se aplica no es de escritura\n"
-
-#: src/elflint.c:4244
-#, c-format
-msgid "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-msgstr ""
-"Banderas de segmento cargable [%u] no coinciden con banderas GNU_RELRO [%u]\n"
-
-#: src/elflint.c:4252 src/elflint.c:4275
-#, c-format
-msgid "%s segment not contained in a loaded segment\n"
-msgstr "Segmento %s no contenido en un segmento cargable\n"
-
-#: src/elflint.c:4281
-#, c-format
-msgid "program header offset in ELF header and PHDR entry do not match"
-msgstr ""
-"Compensación de encabezamiento de programa en encabezamiento ELF y entrada "
-"PHDR no coinciden"
-
-#: src/elflint.c:4305
-#, c-format
-msgid "call frame search table reference in program header has wrong offset\n"
-msgstr ""
-"Referencia de tabla de búsqueda de marco de llamada en encabezamiento de "
-"programa tiene una compensación errada\n"
-
-#: src/elflint.c:4308
-#, c-format
-msgid "call frame search table size mismatch in program and section header\n"
-msgstr ""
-"Tamaño de tabla de búsqueda de marco de llamada no coincide con programa y "
-"encabezamiento de sección\n"
-
-#: src/elflint.c:4321
-#, c-format
-msgid "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-msgstr "PT_GNU_EH_FRAME presente pero no la sección.eh_frame_hdr\n"
-
-#: src/elflint.c:4329
-#, c-format
-msgid "call frame search table must be allocated\n"
-msgstr "tabla de búsqueda de marco de llamada debe ser asignada\n"
-
-#: src/elflint.c:4332
-#, c-format
-msgid "section [%2zu] '%s' must be allocated\n"
-msgstr "sección [%2zu] '%s' debe ser asignada\n"
-
-#: src/elflint.c:4336
-#, c-format
-msgid "call frame search table must not be writable\n"
-msgstr ""
-"tabla de búsqueda de marco de llamada no debe tener permiso de escritura\n"
-
-#: src/elflint.c:4339
-#, c-format
-msgid "section [%2zu] '%s' must not be writable\n"
-msgstr "sección [%2zu] '%s' no debe tener permiso de escritura\n"
-
-#: src/elflint.c:4344
-#, c-format
-msgid "call frame search table must not be executable\n"
-msgstr "tabla de búsqueda de marco de llamada no debe ser ejecutable\n"
-
-#: src/elflint.c:4347
-#, c-format
-msgid "section [%2zu] '%s' must not be executable\n"
-msgstr "sección [%2zu] '%s' no debe ser ejecutable\n"
-
-#: src/elflint.c:4358
-#, c-format
-msgid "program header entry %d: file size greater than memory size\n"
-msgstr ""
-"entrada de encabezamiento de programa %d: tamaño de fichero mayor que el "
-"tamaño de memoria\n"
-
-#: src/elflint.c:4365
-#, c-format
-msgid "program header entry %d: alignment not a power of 2\n"
-msgstr ""
-"entrada de encabezamiento de programa %d: alineamiento no es potencia de 2\n"
-
-#: src/elflint.c:4368
-#, c-format
-msgid ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-msgstr ""
-"entrada de encabezamiento de programa %d: compensación de fichero y "
-"dirección virtual no módulo de alineación\n"
-
-#: src/elflint.c:4381
-#, c-format
-msgid ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-msgstr ""
-"ejecutable/DSO con sección .eh_frame_hdr no tiene una entrada de "
-"encabezamiento de programa PT_GNU_EH_FRAME"
-
-#: src/elflint.c:4415
-#, c-format
-msgid "cannot read ELF header: %s\n"
-msgstr "No se puede leer encabezamiento ELF: %s\n"
-
-#: src/elflint.c:4441
-#, c-format
-msgid "text relocation flag set but not needed\n"
-msgstr "Bandera de reubicación de texto establecida pero no necesaria\n"
-
-#: src/findtextrel.c:62
-msgid "Input Selection:"
-msgstr "Selección de entrada:"
-
-#: src/findtextrel.c:63
-msgid "Prepend PATH to all file names"
-msgstr "Agregar RUTA a todos los nombres de ficheros"
-
-#: src/findtextrel.c:65
-msgid "Use PATH as root of debuginfo hierarchy"
-msgstr "Usar RUTA como root de jerarquía de debuginfo"
-
-#: src/findtextrel.c:72
-msgid "Locate source of text relocations in FILEs (a.out by default)."
-msgstr ""
-"Localizar origen de reubicaciones de texto en FICHEROS (a.out por defecto)."
-
-#: src/findtextrel.c:76 src/nm.c:108 src/objdump.c:72 src/size.c:84
-#: src/strings.c:84 src/strip.c:96
-msgid "[FILE...]"
-msgstr "[FICHERO...]"
-
-#: src/findtextrel.c:238
-#, c-format
-msgid "cannot get ELF header '%s': %s"
-msgstr "No se puede obtener encabezamiento ELF '%s': %s"
-
-#: src/findtextrel.c:249
-#, c-format
-msgid "'%s' is not a DSO or PIE"
-msgstr "'%s' es no un DSO o PIE"
-
-#: src/findtextrel.c:269
-#, c-format
-msgid "getting get section header of section %zu: %s"
-msgstr "obtener encabezamiento de sección get de sección %zu: %s"
-
-#: src/findtextrel.c:292
-#, c-format
-msgid "cannot read dynamic section: %s"
-msgstr "No se puede leer sección dinámica: %s"
-
-#: src/findtextrel.c:313
-#, c-format
-msgid "no text relocations reported in '%s'"
-msgstr "no hay reubicaciones de texto reportado en '%s'"
-
-#: src/findtextrel.c:325
-#, c-format
-msgid "while reading ELF file"
-msgstr "Error al leer fichero ELF"
-
-#: src/findtextrel.c:329
-#, fuzzy, c-format
-msgid "cannot get program header count: %s"
-msgstr "no se puede obtener memoria para encabezamiento del programa: %s"
-
-#: src/findtextrel.c:340 src/findtextrel.c:357
-#, fuzzy, c-format
-msgid "cannot get program header index at offset %zd: %s"
-msgstr ""
-"Nos se puede obtener el índice de encabezamiento de programa en compensación "
-"%d: %s"
-
-#: src/findtextrel.c:409
-#, c-format
-msgid "cannot get section header of section %Zu: %s"
-msgstr "No se puede obtener encabezamiento de sección %Zu: %s"
-
-#: src/findtextrel.c:421
-#, c-format
-msgid "cannot get symbol table section %zu in '%s': %s"
-msgstr "No se puede obtener tabla de símbolos %zu en '%s': %s"
-
-#: src/findtextrel.c:441 src/findtextrel.c:464
-#, c-format
-msgid "cannot get relocation at index %d in section %zu in '%s': %s"
-msgstr ""
-"No se puede obtener reubicación en índice %d en sección %zu en '%s': %s"
-
-#: src/findtextrel.c:529
-#, c-format
-msgid "%s not compiled with -fpic/-fPIC\n"
-msgstr "%s no compilado con -fpic/-fPIC\n"
-
-#: src/findtextrel.c:582
-#, c-format
-msgid ""
-"the file containing the function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"El archivo que contiene la función '%s' no está compilado con -fpic/-fPIC\n"
-
-#: src/findtextrel.c:589 src/findtextrel.c:609
-#, c-format
-msgid ""
-"the file containing the function '%s' might not be compiled with -fpic/-"
-"fPIC\n"
-msgstr ""
-"el fichero que contiene la función '%s' podría no estar compilado con -fpic/-"
-"fPIC\n"
-
-#: src/findtextrel.c:597
-#, c-format
-msgid ""
-"either the file containing the function '%s' or the file containing the "
-"function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"Tanto el fichero que contiene la función '%s' como el fichero que contiene "
-"la función '%s' no están compilados con -fpic/-fPIC\n"
-
-#: src/findtextrel.c:617
-#, c-format
-msgid ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-msgstr ""
-"Una reubicación modifica memoria en compensación %llu en un segmento "
-"protegido contra escritura\n"
-
-#: src/i386_ld.c:202
-#, c-format
-msgid "cannot allocate PLT section: %s"
-msgstr "No se puede asignar sección PLT: %s"
-
-#: src/i386_ld.c:224
-#, c-format
-msgid "cannot allocate PLTREL section: %s"
-msgstr "No se puede asignar sección PLTREL: %s"
-
-#: src/i386_ld.c:245
-#, c-format
-msgid "cannot allocate GOT section: %s"
-msgstr "No se puede asignar sección GOT: %s"
-
-#: src/i386_ld.c:266
-#, c-format
-msgid "cannot allocate GOTPLT section: %s"
-msgstr "No se puede asignar sección GOTPLT: %s"
-
-#: src/i386_ld.c:653
-#, c-format
-msgid "initial-executable TLS relocation cannot be used "
-msgstr "Reubicación TLS ejecutable-inicial no se puede utilizar"
-
-#: src/ld.c:79
-msgid "Input File Control:"
-msgstr "Control de fichero de entrada:"
-
-#: src/ld.c:81
-msgid "Include whole archives in the output from now on."
-msgstr "A partir de ahora incluye archivos completos en la salida."
-
-#: src/ld.c:83
-msgid "Stop including the whole archives in the output."
-msgstr "Deja de incluir archivos completos en la salida."
-
-#: src/ld.c:84 src/ld.c:98 src/ld.c:176
-msgid "FILE"
-msgstr "FICHERO"
-
-#: src/ld.c:85
-msgid "Start a group."
-msgstr "Inicia un grupo"
-
-#: src/ld.c:86
-msgid "End a group."
-msgstr "Termina un grupo."
-
-#: src/ld.c:87
-msgid "PATH"
-msgstr "RUTA"
-
-#: src/ld.c:88
-msgid "Add PATH to list of directories files are searched in."
-msgstr ""
-"Agrega RUTA a la lista de los directorios en los que se realiza la búsqueda."
-
-#: src/ld.c:90
-msgid "Only set DT_NEEDED for following dynamic libs if actually used"
-msgstr ""
-"Sólo se define DT_NEEDED para las siguientes bibliotecas dinámicas, si están "
-"siendo utilizadas"
-
-#: src/ld.c:92
-msgid "Always set DT_NEEDED for following dynamic libs"
-msgstr "Siempre establece DT_NEEDED para las siguientes bibliotecas dinámicas"
-
-#: src/ld.c:94
-msgid "Ignore LD_LIBRARY_PATH environment variable."
-msgstr "Ignora la variable de entorno LD_LIBRARY_PATH."
-
-#: src/ld.c:97
-msgid "Output File Control:"
-msgstr "Control de fichero de salida:"
-
-#: src/ld.c:98
-msgid "Place output in FILE."
-msgstr "Coloca salida en FICHERO."
-
-#: src/ld.c:101
-msgid "Object is marked to not use default search path at runtime."
-msgstr ""
-"Objeto está marcado para no usar ruta de búsqueda predeterminada en tiempo "
-"de ejecución."
-
-#: src/ld.c:103
-msgid "Same as --whole-archive."
-msgstr "Lo mismo que --whole-archive."
-
-#: src/ld.c:104
-msgid ""
-"Default rules of extracting from archive; weak references are not enough."
-msgstr ""
-"Reglas establecidas por defecto para extraer desde el archivo; las "
-"referencias débiles no son suficientes."
-
-#: src/ld.c:108
-msgid "Weak references cause extraction from archive."
-msgstr "Referencias débiles causan extracción del archivo."
-
-#: src/ld.c:110
-msgid "Allow multiple definitions; first is used."
-msgstr "Permite definiciones múltiples; se utiliza la primera."
-
-#: src/ld.c:112
-msgid "Disallow/allow undefined symbols in DSOs."
-msgstr "Habilita/inhabilita símbolos indefinidos en los DSO."
-
-#: src/ld.c:115
-msgid "Object requires immediate handling of $ORIGIN."
-msgstr "Los objetos requieren manipulación inmediata de $ORIGIN."
-
-#: src/ld.c:117
-msgid "Relocation will not be processed lazily."
-msgstr "La reubicación no se procesará de forma perezosa."
-
-#: src/ld.c:119
-msgid "Object cannot be unloaded at runtime."
-msgstr "El objeto no se puede descargar en tiempo de ejecución."
-
-#: src/ld.c:121
-msgid "Mark object to be initialized first."
-msgstr "Marcar objeto a ser inicializado primero."
-
-#: src/ld.c:123
-msgid "Enable/disable lazy-loading flag for following dependencies."
-msgstr ""
-"Activar/desactivar marca lazy-loading para las siguientes dependencias."
-
-#: src/ld.c:125
-msgid "Mark object as not loadable with 'dlopen'."
-msgstr "Marcar el objeto como no cargable con 'dlopen'"
-
-#: src/ld.c:127
-msgid "Ignore/record dependencies on unused DSOs."
-msgstr "Ignorar/registrar dependencias sobre DSO no utilizados."
-
-#: src/ld.c:129
-msgid "Generated DSO will be a system library."
-msgstr "El DSO generado será una biblioteca del sistema."
-
-#: src/ld.c:130
-msgid "ADDRESS"
-msgstr "DIRECCIÓN"
-
-#: src/ld.c:130
-msgid "Set entry point address."
-msgstr "Establecer dirección de entrada de punto"
-
-#: src/ld.c:133
-msgid "Do not link against shared libraries."
-msgstr "No enlazar con bibliotecas compartidas."
-
-#: src/ld.c:136
-msgid "Prefer linking against shared libraries."
-msgstr "No enlazar con bibliotecas compartidas."
-
-#: src/ld.c:137
-msgid "Export all dynamic symbols."
-msgstr "Exportar todos los símbolos dinámicos."
-
-#: src/ld.c:138
-msgid "Strip all symbols."
-msgstr "Descartar todos los símbolos."
-
-#: src/ld.c:139
-msgid "Strip debugging symbols."
-msgstr "Descartar los símbolos de depuración."
-
-#: src/ld.c:141
-msgid "Assume pagesize for the target system to be SIZE."
-msgstr "Asumir que pagesize para el sistema de destino sea SIZE."
-
-#: src/ld.c:143
-msgid "Set runtime DSO search path."
-msgstr "Establecer la ruta de búsqueda tiempo de ejecución DSO."
-
-#: src/ld.c:146
-msgid "Set link time DSO search path."
-msgstr "Establecer ruta de tiempo de enlace DSO."
-
-#: src/ld.c:147
-msgid "Generate dynamic shared object."
-msgstr "Generar objeto compartido dinámico."
-
-#: src/ld.c:148
-msgid "Generate relocatable object."
-msgstr "Generar objeto reubicable"
-
-#: src/ld.c:151
-msgid "Causes symbol not assigned to a version be reduced to local."
-msgstr "Hacer que un símbolo no asignado a una versión sea reducido a local."
-
-#: src/ld.c:152
-msgid "Remove unused sections."
-msgstr "Eliminar las secciones no utilizadas."
-
-#: src/ld.c:155
-msgid "Don't remove unused sections."
-msgstr "No eliminar las secciones no utilizadas."
-
-#: src/ld.c:156
-msgid "Set soname of shared object."
-msgstr "Establecer soname de objeto compartido."
-
-#: src/ld.c:157
-msgid "Set the dynamic linker name."
-msgstr "Establecer el nombre de enlazador dinámico."
-
-#: src/ld.c:160
-msgid "Add/suppress addition indentifying link-editor to .comment section."
-msgstr ""
-"Añadir/suprimir adición identificando enlace-editor para .sección de "
-"comentario."
-
-#: src/ld.c:163
-msgid "Create .eh_frame_hdr section"
-msgstr "Crear una sección .eh_frame_hdr"
-
-#: src/ld.c:165
-msgid "Set hash style to sysv, gnu or both."
-msgstr "Establecer el estilo de dispersión un sysv, gnu o ambos."
-
-#: src/ld.c:167
-msgid "Generate build ID note (md5, sha1 (default), uuid)."
-msgstr "Crear una nota del ID de compilación (md5, sha1 (por defecto), uuid)."
-
-#: src/ld.c:169
-msgid "Linker Operation Control:"
-msgstr "Control de volumen desconocido:"
-
-#: src/ld.c:170
-msgid "Verbose messages."
-msgstr "Mensajes explicativos."
-
-#: src/ld.c:171
-msgid "Trace file opens."
-msgstr "Rastrear apertura de ficheros."
-
-#: src/ld.c:173
-msgid "Trade speed for less memory usage"
-msgstr "Intercambiar velocidad por menor utilización de memoria"
-
-#: src/ld.c:174
-msgid "LEVEL"
-msgstr "NIVEL"
-
-#: src/ld.c:175
-msgid "Set optimization level to LEVEL."
-msgstr "Establecer el nivel de optimización a LEVEL."
-
-#: src/ld.c:176
-msgid "Use linker script in FILE."
-msgstr "Usar script enlazador en FICHERO."
-
-#: src/ld.c:179
-msgid "Select to get parser debug information"
-msgstr "Seleccionar para obtener análisis de información de depuración"
-
-#: src/ld.c:182
-msgid "Read version information from FILE."
-msgstr "Leer información de versión de FICHERO."
-
-#: src/ld.c:183
-msgid "Set emulation to NAME."
-msgstr "Establecer emulación a NOMBRE."
-
-#: src/ld.c:189
-msgid "Combine object and archive files."
-msgstr "Combinar objeto y archivos de almacenamiento."
-
-#: src/ld.c:192
-msgid "[FILE]..."
-msgstr "[FICHERO]..."
-
-#: src/ld.c:325
-#, c-format
-msgid "At least one input file needed"
-msgstr "Se necesita al menos un fichero de entrada"
-
-#: src/ld.c:341
-#, c-format
-msgid "error while preparing linking"
-msgstr "Error al preparar vinculación"
-
-#: src/ld.c:348
-#, c-format
-msgid "cannot open linker script '%s'"
-msgstr "no se puede abrir script enlazador '%s'"
-
-#: src/ld.c:389
-#, c-format
-msgid "-( without matching -)"
-msgstr "-( sin coincidir -)"
-
-#: src/ld.c:564 src/ld.c:602
-#, c-format
-msgid "only one option of -G and -r is allowed"
-msgstr "Solamente una opción de -G y -r es permitida"
-
-#: src/ld.c:586
-#, c-format
-msgid "more than one '-m' parameter"
-msgstr "más de un parámetro '-m'"
-
-#: src/ld.c:596 src/ld.c:1005
-#, c-format
-msgid "unknown option `-%c %s'"
-msgstr "opción desconocida `-%c %s'"
-
-#: src/ld.c:638
-#, c-format
-msgid "invalid page size value '%s': ignored"
-msgstr "Valor de tamaño de página'%s': ignorado"
-
-#: src/ld.c:679
-#, c-format
-msgid "invalid hash style '%s'"
-msgstr "estilo de dispersión inválido '%s'"
-
-#: src/ld.c:689
-#, c-format
-msgid "invalid build-ID style '%s'"
-msgstr "estilo de cuerpo-ID inválido '%s'"
-
-#: src/ld.c:777
-#, c-format
-msgid "More than one output file name given."
-msgstr "Se ha dado más de un nombre de archivo de salida."
-
-#: src/ld.c:794
-#, c-format
-msgid "Invalid optimization level `%s'"
-msgstr "Nivel de optimización inválido `%s'"
-
-#: src/ld.c:842
-#, c-format
-msgid "nested -( -) groups are not allowed"
-msgstr "no se permiten grupos -( -) en nido"
-
-#: src/ld.c:861
-#, c-format
-msgid "-) without matching -("
-msgstr "-) sin coincidir -("
-
-#: src/ld.c:1038
-#, c-format
-msgid "unknown option '-%c %s'"
-msgstr "Opción desconocida '-%c %s'"
-
-#: src/ld.c:1142
-#, c-format
-msgid "could not find input file to determine output file format"
-msgstr ""
-"no se pudo encontrar un archivo de entrada que determine el formato del "
-"archivo de salida"
-
-#: src/ld.c:1144
-#, c-format
-msgid "try again with an appropriate '-m' parameter"
-msgstr "Inténtelo con una parámetro '-m' apropiado"
-
-#: src/ld.c:1438
-#, c-format
-msgid "cannot read version script '%s'"
-msgstr "No se puede leer script de versión '%s'"
-
-#: src/ld.c:1504 src/ld.c:1543
-#, c-format
-msgid "duplicate definition of '%s' in linker script"
-msgstr "Duplicar definición de '%s' en script enlazador"
-
-#: src/ldgeneric.c:201 src/ldgeneric.c:5141
-#, c-format
-msgid "cannot create string table"
-msgstr "no puede crear tabla de cadenas"
-
-#: src/ldgeneric.c:247
-#, c-format
-msgid "cannot load ld backend library '%s': %s"
-msgstr "no se puede cargar biblioteca ID de segundo plano '%s': %s"
-
-#: src/ldgeneric.c:257
-#, c-format
-msgid "cannot find init function in ld backend library '%s': %s"
-msgstr ""
-"no se pudo encontrar la función init en la biblioteca ld de segundo plano "
-"'%s': %s"
-
-#: src/ldgeneric.c:300
-#, c-format
-msgid "%s listed more than once as input"
-msgstr "%s listado más de una vez como entrada"
-
-#: src/ldgeneric.c:414
-#, c-format
-msgid "%s (for -l%s)\n"
-msgstr "%s (para -l%s)\n"
-
-#: src/ldgeneric.c:415
-#, c-format
-msgid "%s (for DT_NEEDED %s)\n"
-msgstr "%s (para DT_NEEDED %s)\n"
-
-#: src/ldgeneric.c:563
-#, c-format
-msgid "Warning: type of `%s' changed from %s in %s to %s in %s"
-msgstr "Advertencia: el tipo de `%s' cambió de %s en %s a %s en %s"
-
-#: src/ldgeneric.c:576
-#, c-format
-msgid "Warning: size of `%s' changed from %<PRIu64> in %s to %<PRIu64> in %s"
-msgstr ""
-"Advertencia: el tamaño de `%s' cambió de %<PRIu64> en %s a %<PRIu64> en %s"
-
-#: src/ldgeneric.c:651 src/ldgeneric.c:1112 src/readelf.c:527
-#: src/readelf.c:829 src/strip.c:568
-#, c-format
-msgid "cannot determine number of sections: %s"
-msgstr "no se pudieron determinar el número de secciones: %s"
-
-#: src/ldgeneric.c:667
-#, c-format
-msgid "(%s+%#<PRIx64>): multiple definition of %s `%s'\n"
-msgstr "(%s+%#<PRIx64>): definición múltiplo de %s `%s'\n"
-
-#: src/ldgeneric.c:690
-#, c-format
-msgid "(%s+%#<PRIx64>): first defined here\n"
-msgstr "(%s+%#<PRIx64>): se definió primero aquí\n"
-
-#: src/ldgeneric.c:809
-#, c-format
-msgid "%s: cannot get section group data: %s"
-msgstr "%s: no se pueden obtener datos de sección de grupo: %s"
-
-#: src/ldgeneric.c:830
-#, c-format
-msgid "%s: section '%s' with group flag set does not belong to any group"
-msgstr ""
-"%s: la sección '%s' con bandera de grupo establecida no pertenece a ningún "
-"grupo"
-
-#: src/ldgeneric.c:875
-#, c-format
-msgid "%s: section [%2d] '%s' is not in the correct section group"
-msgstr ""
-"%s: la sección [%2d] '%s' no se encuentra en el grupo de sección correcto"
-
-#: src/ldgeneric.c:1146 src/ldgeneric.c:1403 src/ldgeneric.c:1412
-#: src/ldgeneric.c:1471 src/ldgeneric.c:1480 src/ldgeneric.c:1743
-#: src/ldgeneric.c:1995
-#, c-format
-msgid "%s: invalid ELF file (%s:%d)\n"
-msgstr "%s: fichero ELF inválido (%s:%d)\n"
-
-#: src/ldgeneric.c:1240
-#, c-format
-msgid "%s: only files of type ET_REL might contain section groups"
-msgstr "%s: solo archivos de tipo ET_REL pueden contener grupos de sección"
-
-#: src/ldgeneric.c:1292
-#, c-format
-msgid "%s: cannot determine signature of section group [%2zd] '%s': %s"
-msgstr ""
-"%s: no es posible determinar la firma del grupo de sección [%2zd] '%s': %s "
-
-#: src/ldgeneric.c:1304
-#, c-format
-msgid "%s: cannot get content of section group [%2zd] '%s': %s'"
-msgstr ""
-"%s: no es posible obtener el contenido de la sección del grupo [%2zd] '%s': "
-"%s'"
-
-#: src/ldgeneric.c:1318
-#, c-format
-msgid ""
-"%s: group member %zu of section group [%2zd] '%s' has too high index: "
-"%<PRIu32>"
-msgstr ""
-"%s el miembro del grupo %zu del grupo de sección [%2zd] '%s' posee el índice "
-"demasiado alto: %<PRIu32>"
-
-#: src/ldgeneric.c:1340
-#, c-format
-msgid "%s: section '%s' has unknown type: %d"
-msgstr "%s: sección '%s' tiene tipo desconocido: %d"
-
-#: src/ldgeneric.c:1719
-#, c-format
-msgid "cannot get descriptor for ELF file (%s:%d): %s\n"
-msgstr "no es posible obtener descriptor para el archivo ELF (%s:%d): %s\n"
-
-#: src/ldgeneric.c:1889
-#, c-format
-msgid "cannot read archive `%s': %s"
-msgstr "no se puede leer archivo `%s': %s"
-
-#: src/ldgeneric.c:2010
-#, c-format
-msgid "file of type %s cannot be linked in\n"
-msgstr "archivo de tipo %s no puede ser enlazado en\n"
-
-#: src/ldgeneric.c:2022
-#, c-format
-msgid "%s: input file incompatible with ELF machine type %s\n"
-msgstr "%s: el archivo ingresado es incompatible con una máquina ELF tipo %s\n"
-
-#: src/ldgeneric.c:2034
-#, c-format
-msgid "%s: cannot get section header string table index: %s\n"
-msgstr ""
-"%s: no se ha podido obtener un índice para la tabla de la cadena del "
-"encabezamiento de la sección: %s\n"
-
-#: src/ldgeneric.c:2063
-#, c-format
-msgid "cannot use DSO '%s' when generating relocatable object file"
-msgstr ""
-"no es posible utilizar DSO '%s' al general un archivo de objeto realojable"
-
-#: src/ldgeneric.c:2148
-#, c-format
-msgid "input file '%s' ignored"
-msgstr "archivo de entrada '%s' ignorado"
-
-#: src/ldgeneric.c:2362
-#, c-format
-msgid "undefined symbol `%s' in %s"
-msgstr "símbolo indefinido `%s' en %s"
-
-#: src/ldgeneric.c:2692
-#, c-format
-msgid "cannot create ELF descriptor for output file: %s"
-msgstr "no es posible crear un descriptor ELF para el archivo de salida: %s"
-
-#: src/ldgeneric.c:2699
-#, c-format
-msgid "could not create ELF header for output file: %s"
-msgstr ""
-"no es posible crear un encabezamiento ELF para el archivo de salida: %s"
-
-#: src/ldgeneric.c:3214 src/ldgeneric.c:3284 src/ldgeneric.c:3320
-#: src/ldgeneric.c:4447 src/ldgeneric.c:4496 src/ldgeneric.c:4528
-#: src/ldgeneric.c:4763 src/ldgeneric.c:4818 src/ldgeneric.c:5065
-#: src/ldgeneric.c:5121 src/ldgeneric.c:5590 src/ldgeneric.c:5602
-#, c-format
-msgid "cannot create section for output file: %s"
-msgstr "no se puede crear sección para archivo de salida: %s"
-
-#: src/ldgeneric.c:3434
-#, c-format
-msgid "address computation expression contains variable '%s'"
-msgstr "la expresión de computación contiene la variable '%s'"
-
-#: src/ldgeneric.c:3479
-#, c-format
-msgid ""
-"argument '%<PRIuMAX>' of ALIGN in address computation expression is no power "
-"of two"
-msgstr ""
-"el argumento '%<PRIuMAX>' de ALIGN en expresión de dirección de computación "
-"no es potencia de dos"
-
-#: src/ldgeneric.c:3674
-#, c-format
-msgid "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-msgstr ""
-"no se puede encontrar símbolo de entrada '%s': predeterminada para "
-"%#0*<PRIx64>"
-
-#: src/ldgeneric.c:3680
-#, c-format
-msgid "no entry symbol specified: defaulting to %#0*<PRIx64>"
-msgstr ""
-"no se ha especificado una entrada de símbolo: estableciendo por defecto a "
-"%#0*<PRIx64>"
-
-#: src/ldgeneric.c:3910
-#, c-format
-msgid "cannot create GNU hash table section for output file: %s"
-msgstr ""
-"no se puede crear una tabla de dispersión GNU para archivo de salida: %s"
-
-#: src/ldgeneric.c:4061
-#, c-format
-msgid "cannot create hash table section for output file: %s"
-msgstr ""
-"no es posible crear una sección para la tabla de dispersión del archivo de "
-"salida: %s"
-
-#: src/ldgeneric.c:4104
-#, c-format
-msgid "cannot create build ID section: %s"
-msgstr "no se puede crear sección de creación de ID: %s"
-
-#: src/ldgeneric.c:4181
-#, c-format
-msgid "cannot convert section data to file format: %s"
-msgstr ""
-"no es posible convertir los datos de la sección en formato de archivo: %s"
-
-#: src/ldgeneric.c:4190
-#, c-format
-msgid "cannot convert section data to memory format: %s"
-msgstr "no es posible convertir datos de la sección en formato de memoria: %s"
-
-#: src/ldgeneric.c:4251
-#, c-format
-msgid "cannot read enough data for UUID"
-msgstr "no es posible leer suficientes datos para el UUID"
-
-#: src/ldgeneric.c:4348 src/ldgeneric.c:4369 src/ldgeneric.c:4398
-#: src/ldgeneric.c:6051
-#, c-format
-msgid "cannot create symbol table for output file: %s"
-msgstr "no es posible crear tabla de símbolo para el comando de salida: %s"
-
-#: src/ldgeneric.c:5290 src/ldgeneric.c:5842
-#, c-format
-msgid "section index too large in dynamic symbol table"
-msgstr ""
-"el índice de la sección es demasiado extenso en la tabla de símbolos "
-"dinámicos"
-
-#: src/ldgeneric.c:5735
-#, c-format
-msgid "cannot create versioning section: %s"
-msgstr "no se puede crear sección de versión: %s"
-
-#: src/ldgeneric.c:5808
-#, c-format
-msgid "cannot create dynamic symbol table for output file: %s"
-msgstr ""
-"no es posible crear tabla de símbolos dinámicos para el archivo de salida: %s"
-
-#: src/ldgeneric.c:5983
-#, c-format
-msgid "cannot create versioning data: %s"
-msgstr "no se pueden crear datos de versión: %s"
-
-#: src/ldgeneric.c:6083 src/ldgeneric.c:6096 src/ldgeneric.c:6160
-#: src/ldgeneric.c:6168
-#, c-format
-msgid "cannot create section header string section: %s"
-msgstr "no se puede crear sección de cadenas de encabezamiento de sección: %s"
-
-#: src/ldgeneric.c:6090
-#, c-format
-msgid "cannot create section header string section"
-msgstr "no se puede crear sección de cadenas de encabezamiento de sección"
-
-#: src/ldgeneric.c:6248
-#, c-format
-msgid "cannot create program header: %s"
-msgstr "no se puede crear encabezamiento de programa: %s"
-
-#: src/ldgeneric.c:6256
-#, c-format
-msgid "while determining file layout: %s"
-msgstr "al determinar diseño de fichero: %s"
-
-#: src/ldgeneric.c:6377
-#, c-format
-msgid "internal error: non-nobits section follows nobits section"
-msgstr "error interno: sección non-nobits sigue a sección nobits"
-
-#: src/ldgeneric.c:6914
-#, c-format
-msgid "cannot get header of 0th section: %s"
-msgstr "No se puede obtener encabezamiento de sección 0th: %s"
-
-#: src/ldgeneric.c:6930 src/unstrip.c:1822
-#, c-format
-msgid "cannot update ELF header: %s"
-msgstr "No se puede actualizar encabezamiento ELF: %s"
-
-#: src/ldgeneric.c:6961
-#, c-format
-msgid "linker backend didn't specify function to relocate section"
-msgstr "enlazador de segundo plano no especificó función para reubicar sección"
-
-#: src/ldgeneric.c:6973
-#, c-format
-msgid "while writing output file: %s"
-msgstr "Ocurrió un error de fichero de salida: %s"
-
-#: src/ldgeneric.c:6978
-#, c-format
-msgid "while finishing output file: %s"
-msgstr "error al cerrar el fichero de salida: %s"
-
-#: src/ldgeneric.c:6984
-#, c-format
-msgid "cannot stat output file"
-msgstr "no se puede generar stat de fichero de salida"
-
-#: src/ldgeneric.c:7000
-#, c-format
-msgid "WARNING: temporary output file overwritten before linking finished"
-msgstr ""
-"ADVERTENCIA: archivo de salida temporal sobreescrito antes que haya "
-"concluido el enlazamiento"
-
-#: src/ldgeneric.c:7053 src/ldgeneric.c:7064 src/ldgeneric.c:7075
-#: src/ldgeneric.c:7086 src/ldgeneric.c:7105 src/ldgeneric.c:7118
-#: src/ldgeneric.c:7130
-#, c-format
-msgid "no machine specific '%s' implementation"
-msgstr "no hay máquina específica de implementación '%s'"
-
-#: src/ldscript.y:170
-msgid "mode for segment invalid\n"
-msgstr "modo para segmento inválido\n"
-
-#: src/ldscript.y:457
-#, c-format
-msgid "while reading version script '%s': %s at line %d"
-msgstr "al leer script de versión '%s': %s en línea %d"
-
-#: src/ldscript.y:458
-#, c-format
-msgid "while reading linker script '%s': %s at line %d"
-msgstr "al leer script de enlace '%s': %s en línea %d"
-
-#: src/ldscript.y:737
-#, c-format
-msgid "symbol '%s' is declared both local and global for unnamed version"
-msgstr ""
-"el símbolo '%s' es declarado tanto local como global para la versión sin "
-"nombre"
-
-#: src/ldscript.y:739
-#, c-format
-msgid "symbol '%s' is declared both local and global for version '%s'"
-msgstr ""
-"el símbolo '%s' es declarado tanto local como global para la versión '%s'"
-
-#: src/ldscript.y:759 src/ldscript.y:766
-#, c-format
-msgid "default visibility set as local and global"
-msgstr "la visibilidad establecida por defecto establecida como local y global"
-
-#: src/nm.c:66 src/strip.c:68
-msgid "Output selection:"
-msgstr "Selección de salida:"
-
-#: src/nm.c:67
-msgid "Display debugger-only symbols"
-msgstr "Mostrar sólo símbolos del depurador"
-
-#: src/nm.c:68
-msgid "Display only defined symbols"
-msgstr "Mostrar sólo símbolos definidos"
-
-#: src/nm.c:71
-msgid "Display dynamic symbols instead of normal symbols"
-msgstr "Mostrar símbolos dinámicos en lugar de símbolos normales"
-
-#: src/nm.c:72
-msgid "Display only external symbols"
-msgstr "Mostrar sólo símbolos externos"
-
-#: src/nm.c:73
-msgid "Display only undefined symbols"
-msgstr "Mostrar sólo símbolos indefinidos"
-
-#: src/nm.c:75
-msgid "Include index for symbols from archive members"
-msgstr "Incluir índices para símbolos de miembros de archivo"
-
-#: src/nm.c:77 src/size.c:58
-msgid "Output format:"
-msgstr "Formato de salida:"
-
-#: src/nm.c:79
-msgid "Print name of the input file before every symbol"
-msgstr "Imprimir nombre de archivo de entrada antes de cada símbolo"
-
-#: src/nm.c:82
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The "
-"default is `sysv'"
-msgstr ""
-"Usar el formato de salida FORMATO. FORMATO puede ser o bien `bsd', o "
-"`sysv', o `posix'. El establecido por defecto es `sysv'"
-
-#: src/nm.c:84
-msgid "Same as --format=bsd"
-msgstr "lo mismo que --format=bsd"
-
-#: src/nm.c:85
-msgid "Same as --format=posix"
-msgstr "lo mismo que --format=posix"
-
-#: src/nm.c:86 src/size.c:64
-msgid "Use RADIX for printing symbol values"
-msgstr "Utilizar RADIX para imprimir valores de símbolo"
-
-#: src/nm.c:87
-#, fuzzy
-msgid "Mark special symbols"
-msgstr "Marcar símbolos débiles"
-
-#: src/nm.c:89
-msgid "Print size of defined symbols"
-msgstr "Tamaño de impresión de símbolos definidos"
-
-#: src/nm.c:91 src/size.c:72 src/strip.c:73 src/unstrip.c:73
-msgid "Output options:"
-msgstr "Opciones de salida:"
-
-#: src/nm.c:92
-msgid "Sort symbols numerically by address"
-msgstr "Ordenar los símbolos numéricos por dirección"
-
-#: src/nm.c:94
-msgid "Do not sort the symbols"
-msgstr "No ordenar los símbolos"
-
-#: src/nm.c:95
-msgid "Reverse the sense of the sort"
-msgstr "Invertir el orden"
-
-#: src/nm.c:98
-msgid "Decode low-level symbol names into source code names"
-msgstr ""
-
-#: src/nm.c:105
-msgid "List symbols from FILEs (a.out by default)."
-msgstr "Listar símbolos de FICHEROS (a.out por defecto)."
-
-#: src/nm.c:116 src/objdump.c:80
-#, fuzzy
-msgid "Output formatting"
-msgstr "Formato de salida:"
-
-#: src/nm.c:140 src/objdump.c:104 src/size.c:109 src/strip.c:120
-#, c-format
-msgid "%s: INTERNAL ERROR %d (%s-%s): %s"
-msgstr "%s: ERROR INTERNO %d (%s-%s): %s"
-
-#: src/nm.c:398 src/nm.c:410 src/size.c:309 src/size.c:318 src/size.c:329
-#: src/strip.c:2160
-#, c-format
-msgid "while closing '%s'"
-msgstr "error al cerrar '%s'"
-
-#: src/nm.c:420 src/objdump.c:296 src/strip.c:376
-#, c-format
-msgid "%s: File format not recognized"
-msgstr "%s: No se reconoce el formato del fichero"
-
-#: src/nm.c:460
-#, fuzzy
-msgid ""
-"\n"
-"Archive index:\n"
-msgstr ""
-"\n"
-"Índice de archivo:"
-
-#: src/nm.c:469
-#, c-format
-msgid "invalid offset %zu for symbol %s"
-msgstr "Compensación %zu inválida para símbolo %s"
-
-#: src/nm.c:474
-#, c-format
-msgid "%s in %s\n"
-msgstr "%s en %s\n"
-
-#: src/nm.c:482
-#, c-format
-msgid "cannot reset archive offset to beginning"
-msgstr "imposible restablecer compensación de archivo al inicio"
-
-#: src/nm.c:506 src/objdump.c:344
-#, c-format
-msgid "%s%s%s: file format not recognized"
-msgstr "%s%s%s: no se reconoció el formato de fichero"
-
-#: src/nm.c:718
-#, c-format
-msgid "cannot create search tree"
-msgstr "No se puede crear el árbol de búsqueda"
-
-#: src/nm.c:757 src/nm.c:1163 src/objdump.c:793 src/readelf.c:536
-#: src/readelf.c:1085 src/readelf.c:1245 src/readelf.c:1393 src/readelf.c:1579
-#: src/readelf.c:1785 src/readelf.c:1975 src/readelf.c:2202 src/readelf.c:2460
-#: src/readelf.c:2536 src/readelf.c:2623 src/readelf.c:3201 src/readelf.c:3237
-#: src/readelf.c:3300 src/readelf.c:8187 src/readelf.c:9273 src/readelf.c:9420
-#: src/readelf.c:9488 src/size.c:417 src/size.c:486 src/strip.c:503
-#, c-format
-msgid "cannot get section header string table index"
-msgstr "no se puede obtener índice de cadena de encabezamiento de sección"
-
-#: src/nm.c:784
-#, c-format
-msgid ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-msgstr ""
-"\n"
-"\n"
-"Símbolos de %s:\n"
-"\n"
-
-#: src/nm.c:787
-#, c-format
-msgid ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-msgstr ""
-"%*s%-*s %-*s Clase Tipo %-*s %*s Sección\n"
-"\n"
-
-#: src/nm.c:1173
-#, c-format
-msgid "%s: entry size in section `%s' is not what we expect"
-msgstr ""
-"%s: el tamaño de la entrada en la sección `%s' no es el que esperábamos "
-
-#: src/nm.c:1177
-#, c-format
-msgid "%s: size of section `%s' is not multiple of entry size"
-msgstr "%s: Tamaño de sección `%s' no es múltiplo de tamaño de entrada"
-
-#: src/nm.c:1435
-#, c-format
-msgid "%s%s%s%s: Invalid operation"
-msgstr "%s%s%s%s: Operación inválida"
-
-#: src/nm.c:1492
-#, c-format
-msgid "%s%s%s: no symbols"
-msgstr "%s%s%s: No hay símbolos"
-
-#: src/objdump.c:53
-msgid "Mode selection:"
-msgstr "Selección de modo:"
-
-#: src/objdump.c:54
-msgid "Display relocation information."
-msgstr "Mostrar la reubicación de información."
-
-#: src/objdump.c:56
-msgid "Display the full contents of all sections requested"
-msgstr "Mostrar el contenido total de todas las secciones solicitadas"
-
-#: src/objdump.c:58
-msgid "Display assembler code of executable sections"
-msgstr "Mostrar código de ensamblador de secciones ejecutables"
-
-#: src/objdump.c:60
-#, fuzzy
-msgid "Output content selection:"
-msgstr "Selección de opción de salida:"
-
-#: src/objdump.c:62
-msgid "Only display information for section NAME."
-msgstr "Sólo muestra información para NOMBRE de sección."
-
-#: src/objdump.c:68
-msgid "Show information from FILEs (a.out by default)."
-msgstr "Muestra información de FICHEROS (a.out por defecto)."
-
-#: src/objdump.c:236 src/readelf.c:473
-msgid "No operation specified.\n"
-msgstr "No se especificó una operación.\n"
-
-#: src/objdump.c:274 src/objdump.c:286
-#, c-format
-msgid "while close `%s'"
-msgstr "mientras cierra `%s'"
-
-#: src/objdump.c:379 src/readelf.c:1880 src/readelf.c:2072
-msgid "INVALID SYMBOL"
-msgstr "SÍMBOLO INVÁLIDO"
-
-#: src/objdump.c:394 src/readelf.c:1914 src/readelf.c:2108
-msgid "INVALID SECTION"
-msgstr "SECCIÓN INVÁLIDA"
-
-#: src/objdump.c:514
-#, c-format
-msgid ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-msgstr ""
-"\n"
-"REUBICACIÓN DE REGISTROS PARA [%s]:\n"
-"%-*s TIPO VALOR\n"
-
-#: src/objdump.c:517
-msgid "OFFSET"
-msgstr "COMPENSACIÓN"
-
-#: src/objdump.c:582
-#, c-format
-msgid "Contents of section %s:\n"
-msgstr "Contenido de la sección %s:\n"
-
-#: src/objdump.c:703
-#, c-format
-msgid "cannot disassemble"
-msgstr "No se puede desensamblar"
-
-#: src/objdump.c:742
-#, fuzzy, c-format
-msgid "cannot allocate memory"
-msgstr "No se puede asignar sección PLT: %s"
-
-#: src/ranlib.c:66
-msgid "Generate an index to speed access to archives."
-msgstr " Generar un índice para acelerar el acceso a los archivos."
-
-#: src/ranlib.c:69
-msgid "ARCHIVE"
-msgstr "ARCHIVO "
-
-#: src/ranlib.c:108
-#, c-format
-msgid "Archive name required"
-msgstr "Se requiere nombre de archivo"
-
-#: src/ranlib.c:186
-#, c-format
-msgid "'%s' is no archive"
-msgstr "%s: no es un archivo"
-
-#: src/ranlib.c:221
-#, c-format
-msgid "error while freeing sub-ELF descriptor: %s"
-msgstr "error al liberar descriptor sub-ELF: %s"
-
-#: src/readelf.c:71
-#, fuzzy
-msgid "ELF input selection:"
-msgstr "Selección de salida de ELF:"
-
-#: src/readelf.c:73
-msgid ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-msgstr ""
-
-#: src/readelf.c:75
-msgid "ELF output selection:"
-msgstr "Selección de salida de ELF:"
-
-#: src/readelf.c:77
-msgid "All these plus -p .strtab -p .dynstr -p .comment"
-msgstr "Todo esto mas -p .strtab -p .dynstr -p .comment"
-
-#: src/readelf.c:78
-msgid "Display the dynamic segment"
-msgstr "Mostrar el segmento dinámico"
-
-#: src/readelf.c:79
-msgid "Display the ELF file header"
-msgstr "Mostrar el encabezamiento del fichero ELF"
-
-#: src/readelf.c:81
-msgid "Display histogram of bucket list lengths"
-msgstr "Mostrar histograma de las longitudes de las listas de cubetas"
-
-#: src/readelf.c:82
-msgid "Display the program headers"
-msgstr "Mostrar encabezamientos de programa"
-
-#: src/readelf.c:84
-msgid "Display relocations"
-msgstr "Mostrar reubicaciones"
-
-#: src/readelf.c:85
-msgid "Display the sections' headers"
-msgstr "Mostrar los encabezados de las secciones"
-
-#: src/readelf.c:87
-msgid "Display the symbol table"
-msgstr "Mostrar la tabla de símbolos"
-
-#: src/readelf.c:88
-msgid "Display versioning information"
-msgstr "Mostrar información de versión"
-
-#: src/readelf.c:89
-msgid "Display the ELF notes"
-msgstr "Mostrar las notas ELF"
-
-#: src/readelf.c:91
-msgid "Display architecture specific information, if any"
-msgstr "Mostrar información específica de la arquitectura (si es que la hay)"
-
-#: src/readelf.c:93
-msgid "Display sections for exception handling"
-msgstr "Muestra secciones para manejo de excepciones"
-
-#: src/readelf.c:95
-msgid "Additional output selection:"
-msgstr "Selección de salida adicional:"
-
-#: src/readelf.c:97
-#, fuzzy
-msgid ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-msgstr ""
-"Mostrar el contenido de la sección DWARF. SECCIÓN puede ser algo de lo "
-"siguiente: abbrev, aranges, frame, info, loc, line, ranges, pubnames, str, "
-"macinfo, o exception"
-
-#: src/readelf.c:101
-msgid "Dump the uninterpreted contents of SECTION, by number or name"
-msgstr "Vuelca los contenidos no interpretados de SECCIÓN, por número o nombre"
-
-#: src/readelf.c:103
-msgid "Print string contents of sections"
-msgstr "Imprime contenido de cadena de secciones"
-
-#: src/readelf.c:106
-msgid "Display the symbol index of an archive"
-msgstr "Muestra el índice de símbolos de un archivo"
-
-#: src/readelf.c:108
-msgid "Output control:"
-msgstr "Control de salida:"
-
-#: src/readelf.c:110
-msgid "Do not find symbol names for addresses in DWARF data"
-msgstr ""
-"No se encuentran los nombres de símbolos para direcciones en datos DWARF"
-
-#: src/readelf.c:112
-#, fuzzy
-msgid ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-msgstr ""
-"No se encuentran los nombres de símbolos para direcciones en datos DWARF"
-
-#: src/readelf.c:114
-msgid "Ignored for compatibility (lines always wide)"
-msgstr ""
-
-#: src/readelf.c:119
-msgid "Print information from ELF file in human-readable form."
-msgstr ""
-"Imprimir información del fichero ELF en una forma comprensible para los "
-"seres humanos."
-
-#: src/readelf.c:441
-#, c-format
-msgid "Unknown DWARF debug section `%s'.\n"
-msgstr "Sección de depuración DWARF desconocida `%s'.\n"
-
-#: src/readelf.c:520 src/readelf.c:631
-#, c-format
-msgid "cannot generate Elf descriptor: %s"
-msgstr "no se puede crear descriptor ELF: %s"
-
-#: src/readelf.c:545 src/readelf.c:1099 src/readelf.c:1269
-#, c-format
-msgid "cannot get section: %s"
-msgstr "No se puede encontrar la sección: %s"
-
-#: src/readelf.c:554 src/readelf.c:1106 src/readelf.c:1277 src/readelf.c:9440
-#: src/unstrip.c:356 src/unstrip.c:387 src/unstrip.c:436 src/unstrip.c:544
-#: src/unstrip.c:561 src/unstrip.c:597 src/unstrip.c:795 src/unstrip.c:1063
-#: src/unstrip.c:1254 src/unstrip.c:1314 src/unstrip.c:1435 src/unstrip.c:1488
-#: src/unstrip.c:1595 src/unstrip.c:1784
-#, c-format
-msgid "cannot get section header: %s"
-msgstr "No se puede obtener encabezamiento de sección: %s"
-
-#: src/readelf.c:562
-#, fuzzy, c-format
-msgid "cannot get section name"
-msgstr "no se puede obtener encabezamiento de sección\n"
-
-#: src/readelf.c:571 src/readelf.c:5398 src/readelf.c:7671 src/readelf.c:7773
-#: src/readelf.c:7939
-#, c-format
-msgid "cannot get %s content: %s"
-msgstr "No se puede obtener el contenido %s: %s"
-
-#: src/readelf.c:587
-#, fuzzy, c-format
-msgid "cannot create temp file '%s'"
-msgstr "no se puede crear fichero nuevo '%s': %s"
-
-#: src/readelf.c:596
-#, fuzzy, c-format
-msgid "cannot write section data"
-msgstr "no se puede leer la sección de datos: %s"
-
-#: src/readelf.c:602 src/readelf.c:619 src/readelf.c:648
-#, c-format
-msgid "error while closing Elf descriptor: %s"
-msgstr "error al cerrar el descriptor ELF: %s"
-
-#: src/readelf.c:609
-#, fuzzy, c-format
-msgid "error while rewinding file descriptor"
-msgstr "error al cerrar el descriptor ELF: %s"
-
-#: src/readelf.c:643
-#, c-format
-msgid "'%s' is not an archive, cannot print archive index"
-msgstr "'%s' no es un archivo, no se puede imprimir índice de archivo"
-
-#: src/readelf.c:742
-#, fuzzy, c-format
-msgid "No such section '%s' in '%s'"
-msgstr "No se puede obtener contenido de sección %zu en '%s': %s"
-
-#: src/readelf.c:769
-#, c-format
-msgid "cannot stat input file"
-msgstr "no sepudo stat archivo de entrada"
-
-#: src/readelf.c:771
-#, c-format
-msgid "input file is empty"
-msgstr "archivo de entrada vacío"
-
-#: src/readelf.c:773
-#, c-format
-msgid "failed reading '%s': %s"
-msgstr "Falló lectura de '%s': %s"
-
-#: src/readelf.c:814
-#, c-format
-msgid "cannot read ELF header: %s"
-msgstr "no se pudo leer encabezamiento ELF: %s"
-
-#: src/readelf.c:822
-#, c-format
-msgid "cannot create EBL handle"
-msgstr "no se puede crear EBL"
-
-#: src/readelf.c:835
-#, c-format
-msgid "cannot determine number of program headers: %s"
-msgstr "no se pudo determinar la cantidad de encabezados de programa: %s"
-
-#: src/readelf.c:921
-msgid "NONE (None)"
-msgstr "NONE (Ninguno)"
-
-#: src/readelf.c:922
-msgid "REL (Relocatable file)"
-msgstr "REL (Fichero reubicable)"
-
-#: src/readelf.c:923
-msgid "EXEC (Executable file)"
-msgstr "EXEC (Fichero ejecutable)"
-
-#: src/readelf.c:924
-msgid "DYN (Shared object file)"
-msgstr "DYN (Fichero objeto compartido)"
-
-#: src/readelf.c:925
-msgid "CORE (Core file)"
-msgstr "CORE (Fichero núcleo)"
-
-#: src/readelf.c:930
-#, c-format
-msgid "OS Specific: (%x)\n"
-msgstr "OS Specific: (%x)\n"
-
-#: src/readelf.c:932
-#, c-format
-msgid "Processor Specific: (%x)\n"
-msgstr "Específico del procesador: (%x)\n"
-
-#: src/readelf.c:942
-msgid ""
-"ELF Header:\n"
-" Magic: "
-msgstr ""
-"Encabezamiento ELF:\n"
-" Mágico: "
-
-#: src/readelf.c:946
-#, c-format
-msgid ""
-"\n"
-" Class: %s\n"
-msgstr ""
-"\n"
-" Clase: %s\n"
-
-#: src/readelf.c:951
-#, c-format
-msgid " Data: %s\n"
-msgstr " Datos: %s\n"
-
-#: src/readelf.c:957
-#, c-format
-msgid " Ident Version: %hhd %s\n"
-msgstr " Versión ident: %hhd %s\n"
-
-#: src/readelf.c:959 src/readelf.c:976
-msgid "(current)"
-msgstr "(actual)"
-
-#: src/readelf.c:963
-#, c-format
-msgid " OS/ABI: %s\n"
-msgstr " OS/ABI: %s\n"
-
-#: src/readelf.c:966
-#, c-format
-msgid " ABI Version: %hhd\n"
-msgstr " Versión ABI: %hhd\n"
-
-#: src/readelf.c:969
-msgid " Type: "
-msgstr " Tipo: "
-
-#: src/readelf.c:972
-#, c-format
-msgid " Machine: %s\n"
-msgstr " Máquina: %s\n"
-
-#: src/readelf.c:974
-#, c-format
-msgid " Version: %d %s\n"
-msgstr " Versión: %d %s\n"
-
-#: src/readelf.c:978
-#, c-format
-msgid " Entry point address: %#<PRIx64>\n"
-msgstr " Dirección de punto de entrada: %#<PRIx64>\n"
-
-#: src/readelf.c:981
-#, c-format
-msgid " Start of program headers: %<PRId64> %s\n"
-msgstr " Inicio de encabezamientos de programa: %<PRId64> %s\n"
-
-#: src/readelf.c:982 src/readelf.c:985
-msgid "(bytes into file)"
-msgstr " (bytes en el archivo)"
-
-#: src/readelf.c:984
-#, c-format
-msgid " Start of section headers: %<PRId64> %s\n"
-msgstr " Inicio de encabezamientos de sección: %<PRId64> %s\n"
-
-#: src/readelf.c:987
-#, c-format
-msgid " Flags: %s\n"
-msgstr " Indicadores: %s\n"
-
-#: src/readelf.c:990
-#, c-format
-msgid " Size of this header: %<PRId16> %s\n"
-msgstr " Tamaño de este encabezamiento: %<PRId16> %s\n"
-
-#: src/readelf.c:991 src/readelf.c:994 src/readelf.c:1011
-msgid "(bytes)"
-msgstr "(bytes)"
-
-#: src/readelf.c:993
-#, c-format
-msgid " Size of program header entries: %<PRId16> %s\n"
-msgstr ""
-" Tamaño de las entradas en encabezamiento del programa: %<PRId16> %s\n"
-
-#: src/readelf.c:996
-#, c-format
-msgid " Number of program headers entries: %<PRId16>"
-msgstr " Cantidad de entradas de encabezados de programa: %<PRId16>"
-
-#: src/readelf.c:1003
-#, c-format
-msgid " (%<PRIu32> in [0].sh_info)"
-msgstr " (%<PRIu32> in [0].sh_info)"
-
-#: src/readelf.c:1006 src/readelf.c:1023 src/readelf.c:1037
-msgid " ([0] not available)"
-msgstr " ([0] no disponible)"
-
-#: src/readelf.c:1010
-#, c-format
-msgid " Size of section header entries: %<PRId16> %s\n"
-msgstr ""
-" Tamaño de las entradas en el encabezamiento de sección: %<PRId16> %s\n"
-
-#: src/readelf.c:1013
-#, c-format
-msgid " Number of section headers entries: %<PRId16>"
-msgstr " Cantidad de entradas en los encabezamientos de sección: %<PRId16>"
-
-#: src/readelf.c:1020
-#, c-format
-msgid " (%<PRIu32> in [0].sh_size)"
-msgstr " (%<PRIu32> en [0].sh_size)"
-
-#: src/readelf.c:1033
-#, c-format
-msgid " (%<PRIu32> in [0].sh_link)"
-msgstr " (%<PRIu32> en [0].sh_link)"
-
-#: src/readelf.c:1041
-#, c-format
-msgid ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-msgstr ""
-" Índice de tabla de cadenas de sección de encabezamiento de : XINDEX%s\n"
-"\n"
-
-#: src/readelf.c:1045
-#, c-format
-msgid ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-msgstr " Índice de tabla de cadenas de sección de encabezamiento: %<PRId16>\n"
-
-#: src/readelf.c:1077
-#, c-format
-msgid ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"Hay %d encabezamientos de sección, comenzando en compensación %#<PRIx64>:\n"
-"\n"
-
-#: src/readelf.c:1087
-msgid "Section Headers:"
-msgstr "encabezamientos de sección:"
-
-#: src/readelf.c:1090
-msgid ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-msgstr ""
-"[Nr] Nombre Tipo Dirección Off Tamaño Inf Al "
-"Enlace banderas ES"
-
-#: src/readelf.c:1092
-msgid ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-msgstr ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-
-#: src/readelf.c:1164
-msgid "Program Headers:"
-msgstr "encabezamientos de programa:"
-
-#: src/readelf.c:1166
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-msgstr ""
-" Tipo Compensación Dirección Virtual Dirección "
-"Física Tamaño de Fichero Tamaño de Memoria Alineación de bandera"
-
-#: src/readelf.c:1169
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-msgstr ""
-" Tipo Compensación Dirección Virtual Dirección "
-"Física Tamaño de Fichero Tamaño de Memoria Alineación de bandera"
-
-#: src/readelf.c:1226
-#, c-format
-msgid "\t[Requesting program interpreter: %s]\n"
-msgstr "\t[Solicitando intérprete de programa: %s]\n"
-
-#: src/readelf.c:1247
-msgid ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-msgstr ""
-"\n"
-" Sección para asignación de segmento:\n"
-" Secciones de segmento..."
-
-#: src/readelf.c:1258 src/unstrip.c:1843 src/unstrip.c:1886 src/unstrip.c:1893
-#, c-format
-msgid "cannot get program header: %s"
-msgstr "no se puede obtener memoria para encabezamiento del programa: %s"
-
-#: src/readelf.c:1401
-#, c-format
-msgid ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Grupo de sección COMDAT [%2zu] '%s' con firma '%s' contiene entrada %zu:\n"
-msgstr[1] ""
-"\n"
-"Grupo de sección COMDAT [%2zu] '%s' con firma '%s' contiene entradas %zu:\n"
-
-#: src/readelf.c:1406
-#, c-format
-msgid ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Grupo de sección [%2zu] '%s' con firma '%s' contiene entrada %zu:\n"
-msgstr[1] ""
-"\n"
-"Grupo de sección [%2zu] '%s' con firma '%s' contiene entradas %zu:\n"
-
-#: src/readelf.c:1414
-msgid "<INVALID SYMBOL>"
-msgstr "<SÍMBOLO INVÁLIDO>"
-
-#: src/readelf.c:1428
-msgid "<INVALID SECTION>"
-msgstr "<SECCIÓN INVÁLIDA>"
-
-#: src/readelf.c:1585 src/readelf.c:2208 src/readelf.c:2466 src/readelf.c:2542
-#: src/readelf.c:2846 src/readelf.c:2920 src/readelf.c:4610
-#, fuzzy, c-format
-msgid "invalid sh_link value in section %Zu"
-msgstr ".debug_line section inválida"
-
-#: src/readelf.c:1588
-#, c-format
-msgid ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Segmento dinámico contiene entrada %lu:\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'\n"
-msgstr[1] ""
-"\n"
-"Segmento dinámico contiene entradas %lu:\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'\n"
-
-#: src/readelf.c:1598
-msgid " Type Value\n"
-msgstr " Tipo Valor\n"
-
-#: src/readelf.c:1622
-#, c-format
-msgid "Shared library: [%s]\n"
-msgstr "Biblioteca compartida: [%s]\n"
-
-#: src/readelf.c:1627
-#, c-format
-msgid "Library soname: [%s]\n"
-msgstr "Nombre-so de la biblioteca: [%s]\n"
-
-#: src/readelf.c:1632
-#, c-format
-msgid "Library rpath: [%s]\n"
-msgstr "Rpath de la biblioteca: [%s]\n"
-
-#: src/readelf.c:1637
-#, c-format
-msgid "Library runpath: [%s]\n"
-msgstr "Ruta de ejecución de la biblioteca: [%s]\n"
-
-#: src/readelf.c:1657
-#, c-format
-msgid "%<PRId64> (bytes)\n"
-msgstr "%<PRId64> (bytes)\n"
-
-#: src/readelf.c:1770 src/readelf.c:1960
-#, c-format
-msgid ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-msgstr ""
-"\n"
-"Tabla de símbolos inválida en compensación %#0<PRIx64>\n"
-
-#: src/readelf.c:1788 src/readelf.c:1978
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Sección de reubicación [%2zu] '%s' para sección [%2u] '%s' en compensación "
-"%#0<PRIx64> contiene entrada %d:\n"
-msgstr[1] ""
-"\n"
-"Sección de reubicación [%2zu] '%s' para sección [%2u] '%s' en compensación "
-"%#0<PRIx64> contiene entradas %d:\n"
-
-#: src/readelf.c:1803 src/readelf.c:1993
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Sección de reubicación[%2u] '%s' en compensación %#0<PRIx64> contiene "
-"entrada %d:\n"
-msgstr[1] ""
-"\n"
-"Sección de reubicación [%2u] '%s' en compensación %#0<PRIx64> contiene "
-"entradas %d:\n"
-
-#: src/readelf.c:1813
-msgid " Offset Type Value Name\n"
-msgstr " Compensación Tipo Valor Nombre\n"
-
-#: src/readelf.c:1815
-msgid " Offset Type Value Name\n"
-msgstr " Compensación Tipo Valor Nombre\n"
-
-#: src/readelf.c:1868 src/readelf.c:1879 src/readelf.c:1892 src/readelf.c:1913
-#: src/readelf.c:1925 src/readelf.c:2059 src/readelf.c:2071 src/readelf.c:2085
-#: src/readelf.c:2107 src/readelf.c:2120
-msgid "<INVALID RELOC>"
-msgstr "<REUBIC INVÁLIDA>"
-
-#: src/readelf.c:2003
-msgid " Offset Type Value Addend Name\n"
-msgstr " Compensación Tipo Valor Nombre Adend\n"
-
-#: src/readelf.c:2005
-msgid " Offset Type Value Addend Name\n"
-msgstr " Compensación Tipo Valor Nombre Adend\n"
-
-#: src/readelf.c:2216
-#, c-format
-msgid ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entry:\n"
-msgid_plural ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entries:\n"
-msgstr[0] ""
-"\n"
-"La tabla de símbolos [%2u] '%s' contiene entrada %u:\n"
-msgstr[1] ""
-"\n"
-"La tabla de símbolos [%2u] '%s' contiene entradas %u:\n"
-
-#: src/readelf.c:2221
-#, c-format
-msgid " %lu local symbol String table: [%2u] '%s'\n"
-msgid_plural " %lu local symbols String table: [%2u] '%s'\n"
-msgstr[0] "símbolos locales %lu Tabla de cadena: [%2u] '%s'\n"
-msgstr[1] " Símbolos locales %lu Tabla de cadenas: [%2u] '%s'\n"
-
-#: src/readelf.c:2229
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " Núm: Valor Tamaño Tipo Unión Vis Nombre Ndx\n"
-
-#: src/readelf.c:2231
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " Num: Valor Tamaño Tipo Unión Vis Nombre Ndx\n"
-
-#: src/readelf.c:2251
-#, c-format
-msgid "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-msgstr "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-
-#: src/readelf.c:2339
-#, c-format
-msgid "bad dynamic symbol"
-msgstr "símbolo dinámico erróneo"
-
-#: src/readelf.c:2421
-msgid "none"
-msgstr "nada"
-
-#: src/readelf.c:2438
-msgid "| <unknown>"
-msgstr "| <desconocido>"
-
-#: src/readelf.c:2469
-#, c-format
-msgid ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Sección de versión necesita [%2u] '%s' contiene entrada %d entry:\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'\n"
-msgstr[1] ""
-"\n"
-"Versión necesita sección [%2u] '%s' contiene entrada %d:\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'\n"
-
-#: src/readelf.c:2490
-#, c-format
-msgid " %#06x: Version: %hu File: %s Cnt: %hu\n"
-msgstr " %#06x: Versión: %hu Fichero: %s Conteo: %hu\n"
-
-#: src/readelf.c:2503
-#, c-format
-msgid " %#06x: Name: %s Flags: %s Version: %hu\n"
-msgstr " %#06x: Nombre: %s Banderas: %s Versión: %hu\n"
-
-#: src/readelf.c:2546
-#, c-format
-msgid ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Sección de definición de versión [%2u] '%s' contiene entrada %d:\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'\n"
-msgstr[1] ""
-"\n"
-"Sección de definición de versión [%2u] '%s' contiene %d entrada:\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'\n"
-
-#: src/readelf.c:2574
-#, c-format
-msgid " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-msgstr ""
-" %#06x: Versión: %hd Banderas: %s Índice: %hd Conteo: %hd Nombre: %s\n"
-
-#: src/readelf.c:2589
-#, c-format
-msgid " %#06x: Parent %d: %s\n"
-msgstr " %#06x: Principal %d: %s\n"
-
-#: src/readelf.c:2850
-#, c-format
-msgid ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgid_plural ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgstr[0] ""
-"\n"
-"Sección de versión de símbolos [%2u] '%s' contiene %d entrada:\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'"
-msgstr[1] ""
-"\n"
-"Sección de versión de símbolos [%2u] '%s' contiene entradas %d:\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'"
-
-#: src/readelf.c:2878
-msgid " 0 *local* "
-msgstr " 0 *local* "
-
-#: src/readelf.c:2883
-msgid " 1 *global* "
-msgstr " 1 *global* "
-
-#: src/readelf.c:2925
-#, c-format
-msgid ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Histograma para longitud de lista de cubeta en sección [%2u] '%s' (total de "
-"cubetas %d):\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'\n"
-msgstr[1] ""
-"\n"
-"Histograma para longitud de lista de cubeta en sección [%2u] '%s' (total de "
-"cubetas %d):\n"
-" Dirección: %#0*<PRIx64> Compensación: %#08<PRIx64> Enlace a sección: "
-"[%2u] '%s'\n"
-
-#: src/readelf.c:2947
-#, no-c-format
-msgid " Length Number % of total Coverage\n"
-msgstr " Longitud Número % of total Cobertura\n"
-
-#: src/readelf.c:2949
-#, c-format
-msgid " 0 %6<PRIu32> %5.1f%%\n"
-msgstr " 0 %6<PRIu32> %5.1f%%\n"
-
-#: src/readelf.c:2956
-#, c-format
-msgid "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-msgstr "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-
-#: src/readelf.c:2969
-#, c-format
-msgid ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-msgstr ""
-" Número promedio de pruebas: búsqueda exitosa: %f\n"
-" búsqueda sin éxito: %f\n"
-
-#: src/readelf.c:2987 src/readelf.c:3042 src/readelf.c:3098
-#, c-format
-msgid "cannot get data for section %d: %s"
-msgstr "No se pueden obtener datos para la sección %d: %s"
-
-#: src/readelf.c:2995
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash section %d"
-msgstr "Datos inválidos en sección [%zu] '%s'"
-
-#: src/readelf.c:3050
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash64 section %d"
-msgstr "Datos inválidos en sección [%zu] '%s'"
-
-#: src/readelf.c:3106
-#, fuzzy, c-format
-msgid "invalid data in gnu.hash section %d"
-msgstr "Datos inválidos en sección [%zu] '%s'"
-
-#: src/readelf.c:3173
-#, c-format
-msgid ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-msgstr ""
-" Polarización de símbolo: %u\n"
-" Tamaño de Bitmask: %zu bytes %<PRIuFAST32>%% bits establecen segundo "
-"cambio de dispersión: %u\n"
-
-#: src/readelf.c:3248
-#, c-format
-msgid ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Sección de lista de biblioteca [%2zu] '%s' en compensación %#0<PRIx64> "
-"contiene entrada %d:\n"
-msgstr[1] ""
-"\n"
-"Sección de lista de biblioteca [%2zu] '%s' en compensación %#0<PRIx64> "
-"contiene entradas %d:\n"
-
-#: src/readelf.c:3262
-msgid ""
-" Library Time Stamp Checksum Version "
-"Flags"
-msgstr ""
-" Biblioteca Marca de tiempo Indicadores "
-"de versión de suma de verificación"
-
-#: src/readelf.c:3312
-#, c-format
-msgid ""
-"\n"
-"Object attributes section [%2zu] '%s' of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sección de atributos de objeto [%2zu] '%s' de %<PRIu64> bytes con "
-"desplazamiento %#0<PRIx64>:\n"
-
-#: src/readelf.c:3329
-msgid " Owner Size\n"
-msgstr " Propietario Tamaño\n"
-
-#: src/readelf.c:3358
-#, c-format
-msgid " %-13s %4<PRIu32>\n"
-msgstr " %-13s %4<PRIu32>\n"
-
-#: src/readelf.c:3397
-#, c-format
-msgid " %-4u %12<PRIu32>\n"
-msgstr " %-4u %12<PRIu32>\n"
-
-#: src/readelf.c:3402
-#, c-format
-msgid " File: %11<PRIu32>\n"
-msgstr " File: %11<PRIu32>\n"
-
-#: src/readelf.c:3451
-#, c-format
-msgid " %s: %<PRId64>, %s\n"
-msgstr " %s: %<PRId64>, %s\n"
-
-#: src/readelf.c:3454
-#, c-format
-msgid " %s: %<PRId64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:3457
-#, c-format
-msgid " %s: %s\n"
-msgstr " %s: %s\n"
-
-#: src/readelf.c:3467
-#, c-format
-msgid " %u: %<PRId64>\n"
-msgstr " %u: %<PRId64>\n"
-
-#: src/readelf.c:3470
-#, c-format
-msgid " %u: %s\n"
-msgstr " %u: %s\n"
-
-#: src/readelf.c:3515
-#, c-format
-msgid "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3518
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3523
-#, c-format
-msgid "%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3526
-#, c-format
-msgid "%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3532
-#, c-format
-msgid "%s+%#<PRIx64> <%s>"
-msgstr "%s+%#<PRIx64> <%s>"
-
-#: src/readelf.c:3535
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s>"
-msgstr "%s+%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3539
-#, c-format
-msgid "%#<PRIx64> <%s>"
-msgstr "%#<PRIx64> <%s>"
-
-#: src/readelf.c:3542
-#, c-format
-msgid "%#0*<PRIx64> <%s>"
-msgstr "%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3547
-#, c-format
-msgid "%s+%#<PRIx64>"
-msgstr "%s+%#<PRIx64>"
-
-#: src/readelf.c:3550
-#, c-format
-msgid "%s+%#0*<PRIx64>"
-msgstr "%s+%#0*<PRIx64>"
-
-#: src/readelf.c:3932
-msgid "empty block"
-msgstr "bloque vacío"
-
-#: src/readelf.c:3935
-#, c-format
-msgid "%zu byte block:"
-msgstr "bloque de byte %zu:"
-
-#: src/readelf.c:4332
-#, c-format
-msgid "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-msgstr "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-
-#: src/readelf.c:4389
-#, c-format
-msgid "%s %#<PRIx64> used with different address sizes"
-msgstr "%s %#<PRIx64> utilizado con direcciones de diferente tamaño"
-
-#: src/readelf.c:4396
-#, c-format
-msgid "%s %#<PRIx64> used with different offset sizes"
-msgstr "%s %#<PRIx64> utilizado con offsetr de diferente tamaño"
-
-#: src/readelf.c:4403
-#, fuzzy, c-format
-msgid "%s %#<PRIx64> used with different base addresses"
-msgstr "%s %#<PRIx64> utilizado con direcciones de diferente tamaño"
-
-#: src/readelf.c:4492
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-msgstr " [%6tx] <MATERIAL INUTIL SIN UTILIZAR EN EL RESTO DE LA SECCION>\n"
-
-#: src/readelf.c:4500
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-msgstr " [%6tx] <MATERIAL INUTIL NO UTILIZADO> ... %<PRIu64> bytes ...\n"
-
-#: src/readelf.c:4526
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [ Code]\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64>:\n"
-" [ Código]\n"
-
-#: src/readelf.c:4534
-#, c-format
-msgid ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-msgstr ""
-"\n"
-"Sección de abreviatura en compensación %<PRIu64>:\n"
-
-#: src/readelf.c:4547
-#, c-format
-msgid " *** error while reading abbreviation: %s\n"
-msgstr " *** error en lectura de abreviatura: %s\n"
-
-#: src/readelf.c:4563
-#, c-format
-msgid " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-msgstr " [%5u] compensación: %<PRId64>, hijos: %s, etiqueta: %s\n"
-
-#: src/readelf.c:4566
-msgid "yes"
-msgstr "sí"
-
-#: src/readelf.c:4566
-msgid "no"
-msgstr "no"
-
-#: src/readelf.c:4600 src/readelf.c:4673
-#, c-format
-msgid "cannot get .debug_aranges content: %s"
-msgstr "no se ha podido obtener contenido de .debug_aranges: %s"
-
-#: src/readelf.c:4615
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64> contiene entrada %zu:\n"
-msgstr[1] ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64> contiene entradas %zu:\n"
-
-#: src/readelf.c:4646
-#, c-format
-msgid " [%*zu] ???\n"
-msgstr " [%*zu] ???\n"
-
-#: src/readelf.c:4648
-#, c-format
-msgid ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-msgstr ""
-" Inicio [%*zu]: %0#*<PRIx64>, longitud: %5<PRIu64>, compensación CU DIE: "
-"%6<PRId64>\n"
-
-#: src/readelf.c:4678 src/readelf.c:4832 src/readelf.c:5408 src/readelf.c:6362
-#: src/readelf.c:6894 src/readelf.c:7014 src/readelf.c:7177 src/readelf.c:7602
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64>:\n"
-
-#: src/readelf.c:4691 src/readelf.c:6388
-#, c-format
-msgid ""
-"\n"
-"Table at offset %Zu:\n"
-msgstr ""
-"\n"
-"Tabla en compensación %Zu:\n"
-
-#: src/readelf.c:4695 src/readelf.c:5432 src/readelf.c:6399
-#, c-format
-msgid "invalid data in section [%zu] '%s'"
-msgstr "Datos inválidos en sección [%zu] '%s'"
-
-#: src/readelf.c:4711
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Length: %6<PRIu64>\n"
-msgstr " (compensación: %#<PRIx64>)"
-
-#: src/readelf.c:4723
-#, fuzzy, c-format
-msgid " DWARF version: %6<PRIuFAST16>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4727
-#, c-format
-msgid "unsupported aranges version"
-msgstr ""
-
-#: src/readelf.c:4738
-#, fuzzy, c-format
-msgid " CU offset: %6<PRIx64>\n"
-msgstr " (compensación: %#<PRIx64>)"
-
-#: src/readelf.c:4744
-#, fuzzy, c-format
-msgid " Address size: %6<PRIu64>\n"
-msgstr " (fin de compensación: %#<PRIx64>)"
-
-#: src/readelf.c:4748
-#, fuzzy, c-format
-msgid "unsupported address size"
-msgstr "no hay valor de dirección"
-
-#: src/readelf.c:4753
-#, fuzzy, c-format
-msgid ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-msgstr " establecer archivo a %<PRIu64>\n"
-
-#: src/readelf.c:4757
-#, c-format
-msgid "unsupported segment size"
-msgstr ""
-
-#: src/readelf.c:4797
-#, fuzzy, c-format
-msgid " %s..%s (%<PRIx64>)\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4800
-#, fuzzy, c-format
-msgid " %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4809
-#, c-format
-msgid " %Zu padding bytes\n"
-msgstr ""
-
-#: src/readelf.c:4827
-#, c-format
-msgid "cannot get .debug_ranges content: %s"
-msgstr "no se ha podido obtener contenido de .debug_ranges: %s"
-
-#: src/readelf.c:4857 src/readelf.c:6921
-#, c-format
-msgid " [%6tx] <INVALID DATA>\n"
-msgstr " [%6tx] <DATOS INVÁLIDOS>\n"
-
-#: src/readelf.c:4879 src/readelf.c:6943
-#, c-format
-msgid " [%6tx] base address %s\n"
-msgstr " [%6tx] (dirección base) %s\n"
-
-#: src/readelf.c:4886 src/readelf.c:6950
-#, c-format
-msgid " [%6tx] empty list\n"
-msgstr " [%6tx] lista vacía\n"
-
-#: src/readelf.c:4897
-#, c-format
-msgid " [%6tx] %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4899
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:5078
-#, fuzzy
-msgid " <INVALID DATA>\n"
-msgstr " <DATOS INVÁLIDOS>\n"
-
-#: src/readelf.c:5387
-#, fuzzy, c-format
-msgid "cannot get ELF: %s"
-msgstr "no se puede leer encabezamiento ELF: %s"
-
-#: src/readelf.c:5404
-#, c-format
-msgid ""
-"\n"
-"Call frame information section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sección de información de marco de llamada [%2zu] '%s' en compensación "
-"%#<PRIx64>:\n"
-
-#: src/readelf.c:5454
-#, c-format
-msgid ""
-"\n"
-" [%6tx] Zero terminator\n"
-msgstr ""
-"\n"
-" [%6tx] Terminator cero\n"
-
-#: src/readelf.c:5547 src/readelf.c:5702
-#, c-format
-msgid "invalid augmentation length"
-msgstr "longitud de aumento inválida"
-
-#: src/readelf.c:5562
-msgid "FDE address encoding: "
-msgstr "Codificación de dirección FDE:"
-
-#: src/readelf.c:5568
-msgid "LSDA pointer encoding: "
-msgstr "Codificación de puntero LSDA:"
-
-#: src/readelf.c:5679
-#, c-format
-msgid " (offset: %#<PRIx64>)"
-msgstr " (compensación: %#<PRIx64>)"
-
-#: src/readelf.c:5686
-#, c-format
-msgid " (end offset: %#<PRIx64>)"
-msgstr " (fin de compensación: %#<PRIx64>)"
-
-#: src/readelf.c:5723
-#, c-format
-msgid " %-26sLSDA pointer: %#<PRIx64>\n"
-msgstr "Puntero %-26sLSDA: %#<PRIx64>\n"
-
-#: src/readelf.c:5778
-#, c-format
-msgid "cannot get attribute code: %s"
-msgstr "No se puede obtener código de atributo: %s"
-
-#: src/readelf.c:5787
-#, c-format
-msgid "cannot get attribute form: %s"
-msgstr "No se puede obtener forma de atributo: %s"
-
-#: src/readelf.c:5802
-#, c-format
-msgid "cannot get attribute value: %s"
-msgstr "No se puede obtener valor: %s"
-
-#: src/readelf.c:6101
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [Offset]\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64>:\n"
-" [Offset]\n"
-
-#: src/readelf.c:6133
-#, c-format
-msgid ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-msgstr ""
-"Tipo de unidad al compensar %<PRIu64>:\n"
-" Versión: %<PRIu16>, Abreviación de sección de compensación: %<PRIu64>, "
-"Tamaño de dirección: %<PRIu8>, Tamaño de compensación: %<PRIu8>\n"
-" Tipo de firma: %#<PRIx64>, Tipo de compensación: %#<PRIx64>\n"
-
-#: src/readelf.c:6142
-#, c-format
-msgid ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-msgstr ""
-"Unidad de compilación en compensación %<PRIu64>:\n"
-" Versión: %<PRIu16>, Compensación de sección de abreviatura: %<PRIu64>, "
-"Tamaño de dirección: %<PRIu8>, Tamaño de compensación: %<PRIu8>\n"
-
-#: src/readelf.c:6167
-#, c-format
-msgid "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-msgstr "no se puede obtener DIE en compensación %<PRIu64> en sección '%s': %s"
-
-#: src/readelf.c:6181
-#, c-format
-msgid "cannot get DIE offset: %s"
-msgstr "no se puede obtener DIE en compensación: %s"
-
-#: src/readelf.c:6190
-#, c-format
-msgid "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-"no se ha podido obtener etiqueta de DIE en compensación%<PRIu64> en sección "
-"'%s': %s"
-
-#: src/readelf.c:6222
-#, c-format
-msgid "cannot get next DIE: %s\n"
-msgstr "No se puede obtener próximo DIE: %s\n"
-
-#: src/readelf.c:6230
-#, c-format
-msgid "cannot get next DIE: %s"
-msgstr "No se puede obtener próximo DIE: %s"
-
-#: src/readelf.c:6266
-#, fuzzy, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64>:\n"
-
-#: src/readelf.c:6375
-#, c-format
-msgid "cannot get line data section data: %s"
-msgstr "No se puede obtener sección de datos de línea: %s"
-
-#: src/readelf.c:6445
-#, c-format
-msgid ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-msgstr ""
-"\n"
-" Longitud: %<PRIu64>\n"
-" Versión DWARF: %<PRIuFAST16>\n"
-" Longitud de prólogo: %<PRIu64>\n"
-" Longitud de instrucción mínima: %<PRIuFAST8>\n"
-" Máximo operaciones por instrucción: %<PRIuFAST8>\n"
-" Valor inicial si '%s': %<PRIuFAST8>\n"
-" Base de línea: %<PRIdFAST8>\n"
-" Rango de línea: %<PRIuFAST8>\n"
-" Base de código operativo: %<PRIuFAST8>\n"
-"\n"
-"Códigos operativos:\n"
-
-#: src/readelf.c:6466
-#, c-format
-msgid "invalid data at offset %tu in section [%zu] '%s'"
-msgstr "datos inválidos en compensación %tu en sección [%zu] '%s'"
-
-#: src/readelf.c:6481
-#, c-format
-msgid " [%*<PRIuFAST8>] %hhu argument\n"
-msgid_plural " [%*<PRIuFAST8>] %hhu arguments\n"
-msgstr[0] " [%*<PRIuFAST8>] argumento %hhu \n"
-msgstr[1] " [%*<PRIuFAST8>] argumento %hhu\n"
-
-#: src/readelf.c:6489
-msgid ""
-"\n"
-"Directory table:"
-msgstr ""
-"\n"
-"Tabla de Directorio:"
-
-#: src/readelf.c:6505
-msgid ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-msgstr ""
-"\n"
-"Tabla de nombre de archivo:\n"
-" Directorio de entrada Tiempo Tamaño Nombre"
-
-#: src/readelf.c:6540
-msgid ""
-"\n"
-"Line number statements:"
-msgstr ""
-"\n"
-" Declaraciones de número de Línea:"
-
-#: src/readelf.c:6591
-#, fuzzy, c-format
-msgid "invalid maximum operations per instruction is zero"
-msgstr "longitud mínima inválida de tamaño de cadena coincidente"
-
-#: src/readelf.c:6627
-#, c-format
-msgid " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-msgstr ""
-" opcode especial %u: dirección+%u = %s, op_index = %u, línea%+d = %zu\n"
-
-#: src/readelf.c:6632
-#, c-format
-msgid " special opcode %u: address+%u = %s, line%+d = %zu\n"
-msgstr " opcode especial %u: dirección+%u = %s, línea%+d = %zu\n"
-
-#: src/readelf.c:6652
-#, c-format
-msgid " extended opcode %u: "
-msgstr " Código operativo extendido %u: "
-
-#: src/readelf.c:6657
-#, fuzzy
-msgid " end of sequence"
-msgstr "Fin de secuencia"
-
-#: src/readelf.c:6676
-#, fuzzy, c-format
-msgid " set address to %s\n"
-msgstr "Establecer dirección a %s\n"
-
-#: src/readelf.c:6703
-#, fuzzy, c-format
-msgid " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-msgstr ""
-"definir nuevo archivo: dir=%u, mtime=%<PRIu64>, longitud=%<PRIu64>, nombre="
-"%s\n"
-
-#: src/readelf.c:6716
-#, c-format
-msgid " set discriminator to %u\n"
-msgstr " establecer discriminador a %u\n"
-
-#: src/readelf.c:6721
-#, fuzzy
-msgid " unknown opcode"
-msgstr "código operativo desconocido "
-
-#: src/readelf.c:6733
-msgid " copy"
-msgstr "Copiar"
-
-#: src/readelf.c:6744
-#, fuzzy, c-format
-msgid " advance address by %u to %s, op_index to %u\n"
-msgstr "dirección avanzada por %u a %s, op_index a %u\n"
-
-#: src/readelf.c:6748
-#, fuzzy, c-format
-msgid " advance address by %u to %s\n"
-msgstr "Dirección de avance por %u a %s\n"
-
-#: src/readelf.c:6759
-#, c-format
-msgid " advance line by constant %d to %<PRId64>\n"
-msgstr " línea de avance por la constante %d a %<PRId64>\n"
-
-#: src/readelf.c:6767
-#, c-format
-msgid " set file to %<PRIu64>\n"
-msgstr " establecer archivo a %<PRIu64>\n"
-
-#: src/readelf.c:6777
-#, c-format
-msgid " set column to %<PRIu64>\n"
-msgstr " Establecer columna a %<PRIu64>\n"
-
-#: src/readelf.c:6784
-#, c-format
-msgid " set '%s' to %<PRIuFAST8>\n"
-msgstr "Establecer '%s' a %<PRIuFAST8>\n"
-
-#: src/readelf.c:6790
-msgid " set basic block flag"
-msgstr "Establecer bandera de bloque básico"
-
-#: src/readelf.c:6803
-#, fuzzy, c-format
-msgid " advance address by constant %u to %s, op_index to %u\n"
-msgstr "dirección avanzada por constante %u a %s, op_index a %u\n"
-
-#: src/readelf.c:6807
-#, fuzzy, c-format
-msgid " advance address by constant %u to %s\n"
-msgstr "Dirección de avance por constante %u a %s\n"
-
-#: src/readelf.c:6825
-#, fuzzy, c-format
-msgid " advance address by fixed value %u to %s\n"
-msgstr "dirección de avance por valor corregido %u a %s\n"
-
-#: src/readelf.c:6834
-msgid " set prologue end flag"
-msgstr " Establecer bandera prologue_end"
-
-#: src/readelf.c:6839
-msgid " set epilogue begin flag"
-msgstr " Establecer bandera epilogue_begin"
-
-#: src/readelf.c:6848
-#, c-format
-msgid " set isa to %u\n"
-msgstr " establecer isa para %u\n"
-
-#: src/readelf.c:6857
-#, c-format
-msgid " unknown opcode with %<PRIu8> parameter:"
-msgid_plural " unknown opcode with %<PRIu8> parameters:"
-msgstr[0] " opcódigo con parámetro %<PRIu8> desconocido:"
-msgstr[1] " opcódigo con parámetros %<PRIu8> desconocido:"
-
-#: src/readelf.c:6889
-#, c-format
-msgid "cannot get .debug_loc content: %s"
-msgstr "no es posible obtener contenido de .debug_loc: %s"
-
-#: src/readelf.c:6964
-#, c-format
-msgid " [%6tx] %s..%s"
-msgstr " [%6tx] %s..%s"
-
-#: src/readelf.c:6966
-#, c-format
-msgid " %s..%s"
-msgstr " %s..%s"
-
-#: src/readelf.c:6973 src/readelf.c:7858
-msgid " <INVALID DATA>\n"
-msgstr " <DATOS INVÁLIDOS>\n"
-
-#: src/readelf.c:7025 src/readelf.c:7186
-#, c-format
-msgid "cannot get macro information section data: %s"
-msgstr "no es posible obtener datos de la sección de macro información: %s"
-
-#: src/readelf.c:7104
-#, c-format
-msgid "%*s*** non-terminated string at end of section"
-msgstr "%*s*** cadena no finalizada al final de la sección"
-
-#: src/readelf.c:7127
-#, fuzzy, c-format
-msgid "%*s*** missing DW_MACINFO_start_file argument at end of section"
-msgstr "%*s*** cadena no finalizada al final de la sección"
-
-#: src/readelf.c:7227
-#, fuzzy, c-format
-msgid " Offset: 0x%<PRIx64>\n"
-msgstr " Propietario Tamaño\n"
-
-#: src/readelf.c:7239
-#, fuzzy, c-format
-msgid " Version: %<PRIu16>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:7245 src/readelf.c:7968
-#, c-format
-msgid " unknown version, cannot parse section\n"
-msgstr ""
-
-#: src/readelf.c:7252
-#, fuzzy, c-format
-msgid " Flag: 0x%<PRIx8>\n"
-msgstr " Dirección de punto de entrada: %#<PRIx64>\n"
-
-#: src/readelf.c:7255
-#, fuzzy, c-format
-msgid " Offset length: %<PRIu8>\n"
-msgstr " (compensación: %#<PRIx64>)"
-
-#: src/readelf.c:7263
-#, fuzzy, c-format
-msgid " .debug_line offset: 0x%<PRIx64>\n"
-msgstr " (fin de compensación: %#<PRIx64>)"
-
-#: src/readelf.c:7276
-#, fuzzy, c-format
-msgid " extension opcode table, %<PRIu8> items:\n"
-msgstr " opcódigo con parámetro %<PRIu8> desconocido:"
-
-#: src/readelf.c:7283
-#, c-format
-msgid " [%<PRIx8>]"
-msgstr ""
-
-#: src/readelf.c:7295
-#, fuzzy, c-format
-msgid " %<PRIu8> arguments:"
-msgstr " [%*<PRIuFAST8>] argumento %hhu \n"
-
-#: src/readelf.c:7323
-#, c-format
-msgid " no arguments."
-msgstr ""
-
-#: src/readelf.c:7560
-#, c-format
-msgid "vendor opcode not verified?"
-msgstr ""
-
-#: src/readelf.c:7588
-#, c-format
-msgid " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-msgstr ""
-" Compensación [%5d] DIE: %6<PRId64>, Compensación CU DIE: %6<PRId64>, "
-"nombre: %s\n"
-
-#: src/readelf.c:7629
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" %*s String\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64>:\n"
-" %*s String\n"
-
-#: src/readelf.c:7643
-#, c-format
-msgid " *** error while reading strings: %s\n"
-msgstr " *** error en lectura de cadenas: %s\n"
-
-#: src/readelf.c:7663
-#, c-format
-msgid ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-msgstr ""
-"\n"
-"Sección de tabla de búsqueda de marco de llamada [%2zu] '.eh_frame_hdr':\n"
-
-#: src/readelf.c:7765
-#, c-format
-msgid ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-msgstr ""
-"\n"
-"Excepción en el manejo de la sección de tabla [%2zu] '.gcc_except_table':\n"
-
-#: src/readelf.c:7788
-#, c-format
-msgid " LPStart encoding: %#x "
-msgstr "Codificación LPStart: %#x "
-
-#: src/readelf.c:7800
-#, c-format
-msgid " TType encoding: %#x "
-msgstr "Codificación TType: %#x "
-
-#: src/readelf.c:7815
-#, c-format
-msgid " Call site encoding: %#x "
-msgstr "Codificación de sitio de llamada: %#x "
-
-#: src/readelf.c:7828
-msgid ""
-"\n"
-" Call site table:"
-msgstr ""
-"\n"
-" Tabla de sitio de llamada:"
-
-#: src/readelf.c:7842
-#, c-format
-msgid ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-msgstr ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-
-#: src/readelf.c:7909
-#, c-format
-msgid "invalid TType encoding"
-msgstr "Codificación TType inválida"
-
-#: src/readelf.c:7930
-#, fuzzy, c-format
-msgid ""
-"\n"
-"GDB section [%2zu] '%s' at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64> contiene entrada %zu:\n"
-
-#: src/readelf.c:7959
-#, fuzzy, c-format
-msgid " Version: %<PRId32>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:7977
-#, fuzzy, c-format
-msgid " CU offset: %#<PRIx32>\n"
-msgstr " (compensación: %#<PRIx64>)"
-
-#: src/readelf.c:7984
-#, fuzzy, c-format
-msgid " TU offset: %#<PRIx32>\n"
-msgstr " (compensación: %#<PRIx64>)"
-
-#: src/readelf.c:7991
-#, fuzzy, c-format
-msgid " address offset: %#<PRIx32>\n"
-msgstr " (fin de compensación: %#<PRIx64>)"
-
-#: src/readelf.c:7998
-#, fuzzy, c-format
-msgid " symbol offset: %#<PRIx32>\n"
-msgstr " (compensación: %#<PRIx64>)"
-
-#: src/readelf.c:8005
-#, fuzzy, c-format
-msgid " constant offset: %#<PRIx32>\n"
-msgstr " (fin de compensación: %#<PRIx64>)"
-
-#: src/readelf.c:8012
-#, fuzzy, c-format
-msgid ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64> contiene entrada %zu:\n"
-
-#: src/readelf.c:8034
-#, fuzzy, c-format
-msgid ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64> contiene entrada %zu:\n"
-
-#: src/readelf.c:8060
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-"Sección DWARF [%2zu] '%s' en compensación %#<PRIx64> contiene entrada %zu:\n"
-
-#: src/readelf.c:8089
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-msgstr ""
-"\n"
-"Tabla de símbolos inválida en compensación %#0<PRIx64>\n"
-
-#: src/readelf.c:8176
-#, c-format
-msgid "cannot get debug context descriptor: %s"
-msgstr "no se puede depurar descriptor de contexto: %s"
-
-#: src/readelf.c:8336 src/readelf.c:8942 src/readelf.c:9053 src/readelf.c:9111
-#, c-format
-msgid "cannot convert core note data: %s"
-msgstr "no es posible convertir datos de la nota principal: %s"
-
-#: src/readelf.c:8683
-#, c-format
-msgid ""
-"\n"
-"%*s... <repeats %u more times> ..."
-msgstr ""
-"\n"
-"%*s... <repeats %u more times> ..."
-
-#: src/readelf.c:9190
-msgid " Owner Data size Type\n"
-msgstr " Owner Data size Type\n"
-
-#: src/readelf.c:9208
-#, c-format
-msgid " %-13.*s %9<PRId32> %s\n"
-msgstr " %-13.*s %9<PRId32> %s\n"
-
-#: src/readelf.c:9258
-#, c-format
-msgid "cannot get content of note section: %s"
-msgstr "no se puede obtener el contenido de sección de nota: %s"
-
-#: src/readelf.c:9285
-#, c-format
-msgid ""
-"\n"
-"Note section [%2zu] '%s' of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sección de nota [%2zu] '%s' de %<PRIu64> bytes en compensación %#0<PRIx64>:\n"
-
-#: src/readelf.c:9308
-#, c-format
-msgid ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Segmento de nota de %<PRIu64> bytes en compensación %#0<PRIx64>:\n"
-
-#: src/readelf.c:9354
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no data to dump.\n"
-msgstr ""
-"\n"
-"Sección [%Zu] '%s' no tiene datos para volcar.\n"
-
-#: src/readelf.c:9360 src/readelf.c:9383
-#, c-format
-msgid "cannot get data for section [%Zu] '%s': %s"
-msgstr "no se pueden obtener datos para sección [%Zu] '%s': %s"
-
-#: src/readelf.c:9364
-#, c-format
-msgid ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Volcado Hex de sección [%Zu] '%s', %<PRIu64> bytes en compensación "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:9377
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no strings to dump.\n"
-msgstr ""
-"\n"
-"Sección [%Zu] '%s' no tiene datos para volcar.\n"
-
-#: src/readelf.c:9387
-#, c-format
-msgid ""
-"\n"
-"String section [%Zu] '%s' contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sección de cadena [%Zu] '%s' contiene %<PRIu64> bytes en compensación "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:9435
-#, c-format
-msgid ""
-"\n"
-"section [%lu] does not exist"
-msgstr ""
-"\n"
-"sección [%lu] no existe"
-
-#: src/readelf.c:9464
-#, c-format
-msgid ""
-"\n"
-"section '%s' does not exist"
-msgstr ""
-"\n"
-"sección '%s' no existe"
-
-#: src/readelf.c:9521
-#, c-format
-msgid "cannot get symbol index of archive '%s': %s"
-msgstr "no se puede obtener el índice de símbolo de archivo '%s': %s"
-
-#: src/readelf.c:9524
-#, c-format
-msgid ""
-"\n"
-"Archive '%s' has no symbol index\n"
-msgstr ""
-"\n"
-"Archivo '%s' no tiene índice de símbolo\n"
-
-#: src/readelf.c:9528
-#, c-format
-msgid ""
-"\n"
-"Index of archive '%s' has %Zu entries:\n"
-msgstr ""
-"\n"
-"Índice de archivo '%s' tiene %Zu entradas:\n"
-
-#: src/readelf.c:9546
-#, c-format
-msgid "cannot extract member at offset %Zu in '%s': %s"
-msgstr "no es posible extraer miembro en compensación %Zu en '%s': %s"
-
-#: src/readelf.c:9551
-#, c-format
-msgid "Archive member '%s' contains:\n"
-msgstr "Miembro de archivo contiene '%s':\n"
-
-#: src/size.c:60
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd' or `sysv'. The default "
-"is `bsd'"
-msgstr ""
-"Utilice el formato de salida FORMAT. FORMAT puede ser tanto `bsd' como "
-"`sysv'. El establecido por defecto es `bsd'"
-
-#: src/size.c:62
-msgid "Same as `--format=sysv'"
-msgstr "lo mismo que `--format=sysv'"
-
-#: src/size.c:63
-msgid "Same as `--format=bsd'"
-msgstr "lo mismo que `--format=bsd'"
-
-#: src/size.c:66
-msgid "Same as `--radix=10'"
-msgstr "lo mismo que `--radix=10'"
-
-#: src/size.c:67
-msgid "Same as `--radix=8'"
-msgstr "lo mismo que `--radix=8'"
-
-#: src/size.c:68
-msgid "Same as `--radix=16'"
-msgstr "lo mismo que`--radix=16'"
-
-#: src/size.c:70
-msgid "Similar to `--format=sysv' output but in one line"
-msgstr "Similar a la salida `--format=sysv' pero en una sola línea"
-
-#: src/size.c:74
-msgid "Print size and permission flags for loadable segments"
-msgstr ""
-"Imprime el tamaño y las marcas de permiso para los segmentos que pueden ser "
-"cargados"
-
-#: src/size.c:75
-msgid "Display the total sizes (bsd only)"
-msgstr "Muestra el tamaño total (bsd solamente)"
-
-#: src/size.c:80
-msgid "List section sizes of FILEs (a.out by default)."
-msgstr "Lista los tamaños de sección de FICHEROS (por defecto a.out). "
-
-#: src/size.c:261
-#, c-format
-msgid "Invalid format: %s"
-msgstr "Formato de archivo inválido: %s"
-
-#: src/size.c:272
-#, c-format
-msgid "Invalid radix: %s"
-msgstr "Radical inválido: %s"
-
-#: src/size.c:331
-#, c-format
-msgid "%s: file format not recognized"
-msgstr "%s: No se reconoce el formato del fichero"
-
-#: src/size.c:437 src/size.c:570
-#, c-format
-msgid " (ex %s)"
-msgstr " (ex %s)"
-
-#: src/size.c:595
-msgid "(TOTALS)\n"
-msgstr "(TOTALES)\n"
-
-#: src/strings.c:62
-msgid "Output Selection:"
-msgstr "Selección de salida:"
-
-#: src/strings.c:63
-msgid "Scan entire file, not only loaded sections"
-msgstr "Explorar todo el archivo, no sólo las secciones cargadas"
-
-#: src/strings.c:65
-msgid "Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-msgstr "Sólo secuencias NUL-terminated de caracteres MIN-LEN o más se imprimen"
-
-#: src/strings.c:66
-msgid ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-msgstr ""
-"Seleccionar tamaño de caracter y Endianess: s = 7-bit, S = 8-bit, {b,l} = 16-"
-"bit, {B,L} = 32-bit"
-
-#: src/strings.c:70
-msgid "Print name of the file before each string."
-msgstr "Imprimir nombre de archivo antes de cada cadena."
-
-#: src/strings.c:72
-msgid "Print location of the string in base 8, 10, or 16 respectively."
-msgstr "Imprimir ubicación de la cadena en base 8, 10, o 16 respectivamente."
-
-#: src/strings.c:73
-msgid "Alias for --radix=o"
-msgstr "Alias para --radix=o"
-
-#: src/strings.c:80
-msgid "Print the strings of printable characters in files."
-msgstr "Imprimir las cadenas de caracteres imprimibles en archivos."
-
-#: src/strings.c:267 src/strings.c:302
-#, c-format
-msgid "invalid value '%s' for %s parameter"
-msgstr "Valor inválido '%s' para parámetro %s"
-
-#: src/strings.c:313
-#, c-format
-msgid "invalid minimum length of matched string size"
-msgstr "longitud mínima inválida de tamaño de cadena coincidente"
-
-#: src/strings.c:596
-#, c-format
-msgid "lseek64 failed"
-msgstr "lseek64 falló"
-
-#: src/strings.c:613 src/strings.c:677
-#, c-format
-msgid "re-mmap failed"
-msgstr "re-mmap falló"
-
-#: src/strings.c:650
-#, c-format
-msgid "mprotect failed"
-msgstr "mprotect falló"
-
-#: src/strip.c:69
-msgid "Place stripped output into FILE"
-msgstr "Colocar la salida obtenida en FICHERO"
-
-#: src/strip.c:70
-msgid "Extract the removed sections into FILE"
-msgstr "Extraer secciones eliminadas en FICHERO"
-
-#: src/strip.c:71
-msgid "Embed name FILE instead of -f argument"
-msgstr "Incorporar nombre FILE en lugar de argumento -f"
-
-#: src/strip.c:75
-msgid "Remove all debugging symbols"
-msgstr "Elimina todos los símbolos de depuración"
-
-#: src/strip.c:79
-msgid "Remove section headers (not recommended)"
-msgstr "Quitar sección de cabeceras (no recomendado)"
-
-#: src/strip.c:81
-msgid "Copy modified/access timestamps to the output"
-msgstr "Copiar marcas de tiempo modificadas/acceso a la salida"
-
-#: src/strip.c:83
-msgid ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-msgstr ""
-
-#: src/strip.c:85
-msgid "Remove .comment section"
-msgstr "Quitar sección de comentario"
-
-#: src/strip.c:88
-msgid "Relax a few rules to handle slightly broken ELF files"
-msgstr "Relaja algunas reglas para manejar ficheros ELF rotos"
-
-#: src/strip.c:93
-msgid "Discard symbols from object files."
-msgstr "Descarta símbolos de archivos objeto."
-
-#: src/strip.c:181
-#, c-format
-msgid "--reloc-debug-sections used without -f"
-msgstr ""
-
-#: src/strip.c:195
-#, c-format
-msgid "Only one input file allowed together with '-o' and '-f'"
-msgstr "Sólo se permite ingresar un archivo junto con '-o' y '-f'"
-
-#: src/strip.c:231
-#, c-format
-msgid "-f option specified twice"
-msgstr "opción -f especificada dos veces"
-
-#: src/strip.c:240
-#, c-format
-msgid "-F option specified twice"
-msgstr "opción -F especificada dos veces"
-
-#: src/strip.c:249 src/unstrip.c:121
-#, c-format
-msgid "-o option specified twice"
-msgstr "opción -o especificada dos veces"
-
-#: src/strip.c:273
-#, c-format
-msgid "-R option supports only .comment section"
-msgstr "la opción -R soporta únicamente. sección de comentario"
-
-#: src/strip.c:315 src/strip.c:339
-#, c-format
-msgid "cannot stat input file '%s'"
-msgstr "no sepuede stat fichero de entrada '%s'"
-
-#: src/strip.c:329
-#, c-format
-msgid "while opening '%s'"
-msgstr "mientras se abría '%s'"
-
-#: src/strip.c:367
-#, c-format
-msgid "%s: cannot use -o or -f when stripping archive"
-msgstr "%s: no puede utilizarse -o o -f cuando se extrae un archivo"
-
-#: src/strip.c:468
-#, c-format
-msgid "cannot open EBL backend"
-msgstr "No se puede abrir el segundo plano EBL"
-
-#: src/strip.c:508
-#, fuzzy, c-format
-msgid "cannot get number of phdrs"
-msgstr "no se pudo determinar la cantidad de encabezados de programa: %s"
-
-#: src/strip.c:523 src/strip.c:547
-#, c-format
-msgid "cannot create new file '%s': %s"
-msgstr "no se puede crear fichero nuevo '%s': %s"
-
-#: src/strip.c:613
-#, c-format
-msgid "illformed file '%s'"
-msgstr "Fichero illformed '%s'"
-
-#: src/strip.c:935 src/strip.c:1024
-#, c-format
-msgid "while generating output file: %s"
-msgstr "al generar fichero de salida: %s"
-
-#: src/strip.c:997 src/strip.c:1962
-#, c-format
-msgid "%s: error while creating ELF header: %s"
-msgstr "%s: error al crear encabezamiento ELF: %s"
-
-#: src/strip.c:1011
-#, c-format
-msgid "while preparing output for '%s'"
-msgstr "al preparar salida para '%s'"
-
-#: src/strip.c:1062 src/strip.c:1119
-#, c-format
-msgid "while create section header section: %s"
-msgstr "al crear sección de encabezamiento de sección: %s"
-
-#: src/strip.c:1068
-#, c-format
-msgid "cannot allocate section data: %s"
-msgstr "no se puede asignar espacio para los datos: %s"
-
-#: src/strip.c:1128
-#, c-format
-msgid "while create section header string table: %s"
-msgstr "al crear tabla de cadenas de encabezamiento de sección: %s"
-
-#: src/strip.c:1757
-#, fuzzy, c-format
-msgid "bad relocation"
-msgstr "Mostrar reubicaciones"
-
-#: src/strip.c:1874 src/strip.c:1984
-#, c-format
-msgid "while writing '%s': %s"
-msgstr "al escribir '%s': %s"
-
-#: src/strip.c:1885
-#, c-format
-msgid "while creating '%s'"
-msgstr "al crear '%s'"
-
-#: src/strip.c:1907
-#, c-format
-msgid "while computing checksum for debug information"
-msgstr "al computar la suma de verificación para información de depuración"
-
-#: src/strip.c:1970
-#, c-format
-msgid "%s: error while reading the file: %s"
-msgstr "%s: error al leer el fichero: %s"
-
-#: src/strip.c:2009 src/strip.c:2029
-#, c-format
-msgid "while writing '%s'"
-msgstr "al escribir '%s'"
-
-#: src/strip.c:2066 src/strip.c:2073
-#, c-format
-msgid "error while finishing '%s': %s"
-msgstr "Error al terminar '%s': %s"
-
-#: src/strip.c:2096 src/strip.c:2153
-#, c-format
-msgid "cannot set access and modification date of '%s'"
-msgstr "no es posible establecer acceso y fecha de modificación de '%s'"
-
-#: src/unstrip.c:70
-msgid "Match MODULE against file names, not module names"
-msgstr "Coincidir MODULO con nombres de archivo, no con nombres de módulo"
-
-#: src/unstrip.c:71
-msgid "Silently skip unfindable files"
-msgstr "Omitir silenciosamente los archivos perdidos"
-
-#: src/unstrip.c:74
-msgid "Place output into FILE"
-msgstr "Colocar salida en FICHERO"
-
-#: src/unstrip.c:76
-msgid "Create multiple output files under DIRECTORY"
-msgstr "Crear archivos de salida múltiple bajo DIRECTORIO"
-
-#: src/unstrip.c:77
-msgid "Use module rather than file names"
-msgstr "Usar módulo en lugar de nombres de archivo"
-
-#: src/unstrip.c:79
-msgid "Create output for modules that have no separate debug information"
-msgstr ""
-"Crear salida para módulos que no tienen información de depuración "
-"independiente"
-
-#: src/unstrip.c:82
-msgid "Apply relocations to section contents in ET_REL files"
-msgstr "Aplicar reubicaciones a contenido de sección en archivos ET_REL"
-
-#: src/unstrip.c:84
-msgid "Only list module and file names, build IDs"
-msgstr "Solamente listar módulo y nombres de archivo, crear los ID"
-
-#: src/unstrip.c:86
-msgid "Force combining files even if some ELF headers don't seem to match"
-msgstr ""
-
-#: src/unstrip.c:130
-#, c-format
-msgid "-d option specified twice"
-msgstr "opción -d especificada dos veces"
-
-#: src/unstrip.c:165
-#, c-format
-msgid "only one of -o or -d allowed"
-msgstr "Sólo se permite usar -o ó -d "
-
-#: src/unstrip.c:174
-#, c-format
-msgid "-n cannot be used with explicit files or -o or -d"
-msgstr "-n no puede utilizarse con archivos explícitos o con -o ó -d"
-
-#: src/unstrip.c:189
-#, c-format
-msgid "output directory '%s'"
-msgstr "Directorio de salida '%s'"
-
-#: src/unstrip.c:198
-#, c-format
-msgid "exactly two file arguments are required"
-msgstr "dos argumentos de archivos se requieren exactamente"
-
-#: src/unstrip.c:204
-#, c-format
-msgid "-m, -a, -R, and -i options not allowed with explicit files"
-msgstr "No se permiten las opciones -m, -a, -R, ni -i con archivos explícitos"
-
-#: src/unstrip.c:217
-#, c-format
-msgid "-o or -d is required when using implicit files"
-msgstr "se requiere -o ó -d cuando se utilizan archivos implícitos"
-
-#: src/unstrip.c:253
-#, c-format
-msgid "cannot create ELF header: %s"
-msgstr "no se puede crear el encabezamiento ELF: %s"
-
-#: src/unstrip.c:258
-#, c-format
-msgid "cannot copy ELF header: %s"
-msgstr "no se puede copiar encabezamiento ELF: %s"
-
-#: src/unstrip.c:262 src/unstrip.c:1832 src/unstrip.c:1876
-#, fuzzy, c-format
-msgid "cannot get number of program headers: %s"
-msgstr "no se pudo determinar la cantidad de encabezados de programa: %s"
-
-#: src/unstrip.c:267 src/unstrip.c:1836
-#, c-format
-msgid "cannot create program headers: %s"
-msgstr "No pueden crear encabezamientos de programa: %s"
-
-#: src/unstrip.c:273
-#, c-format
-msgid "cannot copy program header: %s"
-msgstr "no puede copiar encabezamiento de programa: %s"
-
-#: src/unstrip.c:283
-#, c-format
-msgid "cannot copy section header: %s"
-msgstr "no se puede copiar encabezamiento de sección: %s"
-
-#: src/unstrip.c:286 src/unstrip.c:1513
-#, c-format
-msgid "cannot get section data: %s"
-msgstr "no se pueden obtener datos de sección: %s"
-
-#: src/unstrip.c:288 src/unstrip.c:1515
-#, c-format
-msgid "cannot copy section data: %s"
-msgstr "no pueden copiar datos de sección: %s"
-
-#: src/unstrip.c:312
-#, c-format
-msgid "cannot create directory '%s'"
-msgstr "no se puede crear el directorio '%s'"
-
-#: src/unstrip.c:352 src/unstrip.c:769 src/unstrip.c:1547
-#, c-format
-msgid "cannot get symbol table entry: %s"
-msgstr "no se puede obtener entrada de tabla de símbolos: %s"
-
-#: src/unstrip.c:368 src/unstrip.c:586 src/unstrip.c:607 src/unstrip.c:619
-#: src/unstrip.c:1568 src/unstrip.c:1698 src/unstrip.c:1722
-#, c-format
-msgid "cannot update symbol table: %s"
-msgstr "no se puede actualizar tabla de símbolos: %s"
-
-#: src/unstrip.c:378
-#, c-format
-msgid "cannot update section header: %s"
-msgstr "no se puede actualizar encabezamiento de sección: %s"
-
-#: src/unstrip.c:417 src/unstrip.c:428
-#, c-format
-msgid "cannot update relocation: %s"
-msgstr "no se puede actualizar reubicación: %s"
-
-#: src/unstrip.c:515
-#, c-format
-msgid "cannot get symbol version: %s"
-msgstr "no se puede obtener versión de símbolo: %s"
-
-#: src/unstrip.c:527
-#, c-format
-msgid "unexpected section type in [%Zu] with sh_link to symtab"
-msgstr "tipo de sección inesperado en [%Zu] con sh_link para symtab"
-
-#: src/unstrip.c:775
-#, c-format
-msgid "invalid string offset in symbol [%Zu]"
-msgstr "compensación de cadena inválida en símbolo [%Zu]"
-
-#: src/unstrip.c:917 src/unstrip.c:1258
-#, c-format
-msgid "cannot read section [%Zu] name: %s"
-msgstr "no se puede leer nombre [%Zu]: %s"
-
-#: src/unstrip.c:958 src/unstrip.c:977 src/unstrip.c:1010
-#, c-format
-msgid "cannot read '.gnu.prelink_undo' section: %s"
-msgstr "no se puede leer sección '.gnu.prelink_undo': %s"
-
-#: src/unstrip.c:998
-#, c-format
-msgid "invalid contents in '%s' section"
-msgstr "contenido inválido en sección '%s'"
-
-#: src/unstrip.c:1053 src/unstrip.c:1378
-#, c-format
-msgid "cannot find matching section for [%Zu] '%s'"
-msgstr "no se puede hallar sección coincidente para [%Zu] '%s'"
-
-#: src/unstrip.c:1178 src/unstrip.c:1193 src/unstrip.c:1459
-#, c-format
-msgid "cannot add section name to string table: %s"
-msgstr "no se puede añadir nombre de sección a tabla de cadenas: %s"
-
-#: src/unstrip.c:1202
-#, c-format
-msgid "cannot update section header string table data: %s"
-msgstr ""
-"no se pueden actualizar datos de tabla de cadenas de encabezamiento de "
-"sección: %s"
-
-#: src/unstrip.c:1229 src/unstrip.c:1233
-#, c-format
-msgid "cannot get section header string table section index: %s"
-msgstr ""
-"no se puede obtener índice de sección de tabla de cadenas de encabezamiento "
-"de sección: %s"
-
-#: src/unstrip.c:1237 src/unstrip.c:1241 src/unstrip.c:1474
-#, c-format
-msgid "cannot get section count: %s"
-msgstr "No se puede obtener cuenta de sección: %s"
-
-#: src/unstrip.c:1244
-#, c-format
-msgid "more sections in stripped file than debug file -- arguments reversed?"
-msgstr ""
-"más secciones en el archivo despojado que en el archivo de depuración -- "
-"¿argumentos invertidos?"
-
-#: src/unstrip.c:1303 src/unstrip.c:1393
-#, c-format
-msgid "cannot read section header string table: %s"
-msgstr "no se puede obtener tabla de cadenas de encabezamiento de sección: %s"
-
-#: src/unstrip.c:1453
-#, c-format
-msgid "cannot add new section: %s"
-msgstr "No se puede añadir nueva sección: %s"
-
-#: src/unstrip.c:1555
-#, c-format
-msgid "symbol [%Zu] has invalid section index"
-msgstr "símbolo [%Zu] tiene índice de sección inválido"
-
-#: src/unstrip.c:1793
-#, c-format
-msgid "cannot read section data: %s"
-msgstr "no se puede leer la sección de datos: %s"
-
-#: src/unstrip.c:1814
-#, c-format
-msgid "cannot get ELF header: %s"
-msgstr "no se puede leer encabezamiento ELF: %s"
-
-#: src/unstrip.c:1846
-#, c-format
-msgid "cannot update program header: %s"
-msgstr "no se puede actualizar encabezamiento de programa: %s"
-
-#: src/unstrip.c:1851 src/unstrip.c:1934
-#, c-format
-msgid "cannot write output file: %s"
-msgstr "no se puede escribir al archivo de salida: %s"
-
-#: src/unstrip.c:1903
-#, c-format
-msgid "DWARF data not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-"datos DWARF no se ajustan para polarización de pre-enlace; considere prelink "
-"-u"
-
-#: src/unstrip.c:1906
-#, c-format
-msgid ""
-"DWARF data in '%s' not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-"Datos DWARF en '%s' no se ajustan a polarización de pre-enlace; considere "
-"prelink -u"
-
-#: src/unstrip.c:1925 src/unstrip.c:1976 src/unstrip.c:1988 src/unstrip.c:2074
-#, c-format
-msgid "cannot create ELF descriptor: %s"
-msgstr "no se puede crear un descriptor ELF: %s"
-
-#: src/unstrip.c:1967
-msgid "WARNING: "
-msgstr ""
-
-#: src/unstrip.c:1969
-msgid ", use --force"
-msgstr ""
-
-#: src/unstrip.c:1992
-msgid "ELF header identification (e_ident) different"
-msgstr ""
-
-#: src/unstrip.c:1995
-msgid "ELF header type (e_type) different"
-msgstr ""
-
-#: src/unstrip.c:1998
-msgid "ELF header machine type (e_machine) different"
-msgstr ""
-
-#: src/unstrip.c:2001
-msgid "stripped program header (e_phnum) smaller than unstripped"
-msgstr ""
-
-#: src/unstrip.c:2031
-#, c-format
-msgid "cannot find stripped file for module '%s': %s"
-msgstr "no se puede hallar archivo obtenido para módulo '%s': %s "
-
-#: src/unstrip.c:2035
-#, c-format
-msgid "cannot open stripped file '%s' for module '%s': %s"
-msgstr "No se puede abrir el archivo '%s' obtenido para módulo '%s': %s"
-
-#: src/unstrip.c:2050
-#, c-format
-msgid "cannot find debug file for module '%s': %s"
-msgstr "no puede hallar archivo de depuración para módulo '%s': %su"
-
-#: src/unstrip.c:2054
-#, c-format
-msgid "cannot open debug file '%s' for module '%s': %s"
-msgstr "No puede abrir archivo de depuración '%s' para módulo '%s': %s"
-
-#: src/unstrip.c:2067
-#, c-format
-msgid "module '%s' file '%s' is not stripped"
-msgstr "No se obtuvo el archivo '%s' de módulo '%s' "
-
-#: src/unstrip.c:2098
-#, c-format
-msgid "cannot cache section addresses for module '%s': %s"
-msgstr ""
-"No puede almacenar en cache direcciones de sección para módulo '%s': %s"
-
-#: src/unstrip.c:2231
-#, c-format
-msgid "no matching modules found"
-msgstr "No se encontraron módulos coincidentes"
-
-#: src/unstrip.c:2240
-#, c-format
-msgid "matched more than one module"
-msgstr "coincidió con más de un módulo"
-
-#: src/unstrip.c:2287
-msgid ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-msgstr ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-
-#: src/unstrip.c:2288
-msgid ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-msgstr ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-
-#, fuzzy
-#~ msgid "cannot attach to process"
-#~ msgstr "No se puede crear el árbol de búsqueda"
-
-#, fuzzy
-#~ msgid "cannot attach to core"
-#~ msgstr "No se puede crear el árbol de búsqueda"
-
-#~ msgid "'%s' and '%s' do not seem to match"
-#~ msgstr "Al parecer '%s' y '%s'no coinciden"
-
-#~ msgid "unknown tag %hx"
-#~ msgstr "etiqueta %hx desconocida"
-
-#~ msgid "unknown user tag %hx"
-#~ msgstr "Usuario de etiqueta %hx desconocido "
-
-#~ msgid "unknown attribute %hx"
-#~ msgstr "atributo de sección %hx desconocido"
-
-#~ msgid "unknown user attribute %hx"
-#~ msgstr "Atributo de usuario desconocido %hx"
-
-#, fuzzy
-#~ msgid "unknown form %#<PRIx64>"
-#~ msgstr "Forma %<PRIx64> desconocida"
-
-#~ msgid ""
-#~ "\n"
-#~ "\n"
-#~ "Symbols from %s[%s]:\n"
-#~ "\n"
-#~ msgstr ""
-#~ "\n"
-#~ "\n"
-#~ "Símbolos de %s[%s]:\n"
-#~ "\n"
-
-#~ msgid "%s %s differ: section header"
-#~ msgstr "%s %s differ: encabezamiento de sección"
-
-#~ msgid "Equivalent to: -e -h -l"
-#~ msgstr "Equivalente a: -e -h -l"
-
-#~ msgid "zeroth section has nonzero info field\n"
-#~ msgstr "Sección zeroth tiene campo de información nonzero\n"
-
-#~ msgid " Version String: "
-#~ msgstr "Cadena versión:"
-
-#~ msgid ""
-#~ "\n"
-#~ "Section [%Zu] '%s' is empty.\n"
-#~ msgstr ""
-#~ "\n"
-#~ "Sección [%Zu] '%s' está vacía.\n"
diff --git a/src/po/insert-header.sin b/src/po/insert-header.sin
deleted file mode 100644
index b26de01f..00000000
--- a/src/po/insert-header.sin
+++ /dev/null
@@ -1,23 +0,0 @@
-# Sed script that inserts the file called HEADER before the header entry.
-#
-# At each occurrence of a line starting with "msgid ", we execute the following
-# commands. At the first occurrence, insert the file. At the following
-# occurrences, do nothing. The distinction between the first and the following
-# occurrences is achieved by looking at the hold space.
-/^msgid /{
-x
-# Test if the hold space is empty.
-s/m/m/
-ta
-# Yes it was empty. First occurrence. Read the file.
-r HEADER
-# Output the file's contents by reading the next line. But don't lose the
-# current line while doing this.
-g
-N
-bb
-:a
-# The hold space was nonempty. Following occurrences. Do nothing.
-x
-:b
-}
diff --git a/src/po/ja.gmo b/src/po/ja.gmo
deleted file mode 100644
index d6a4b759..00000000
--- a/src/po/ja.gmo
+++ /dev/null
Binary files differ
diff --git a/src/po/ja.po b/src/po/ja.po
deleted file mode 100644
index 1094e5a1..00000000
--- a/src/po/ja.po
+++ /dev/null
@@ -1,6589 +0,0 @@
-# translation of ja.po to Japanese
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-#
-# Kiyoto Hashida <khashida@redhat.com>, 2009.
-# Hyu_gabaru Ryu_ichi <hyu_gabaru@yahoo.co.jp>, 2009.
-msgid ""
-msgstr ""
-"Project-Id-Version: ja\n"
-"Report-Msgid-Bugs-To: http://bugzilla.redhat.com/\n"
-"POT-Creation-Date: 2014-12-19 21:45+0100\n"
-"PO-Revision-Date: 2009-09-20 15:32+0900\n"
-"Last-Translator: Hyu_gabaru Ryu_ichi <hyu_gabaru@yahoo.co.jp>\n"
-"Language-Team: Japanese <jp@li.org>\n"
-"Language: ja\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: KBabel 1.11.4\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: lib/xmalloc.c:54 lib/xmalloc.c:68 lib/xmalloc.c:82 src/readelf.c:3182
-#: src/readelf.c:3559 src/readelf.c:8285 src/unstrip.c:2127 src/unstrip.c:2335
-#, c-format
-msgid "memory exhausted"
-msgstr "メモリー消費済み"
-
-#: libasm/asm_error.c:65 libdw/dwarf_error.c:58 libdwfl/libdwflP.h:53
-#: libelf/elf_error.c:60
-msgid "no error"
-msgstr "エラー無し"
-
-#: libasm/asm_error.c:66 libdw/dwarf_error.c:67 libdwfl/libdwflP.h:55
-#: libelf/elf_error.c:91
-msgid "out of memory"
-msgstr "メモリー不足"
-
-#: libasm/asm_error.c:67 src/ldgeneric.c:2677
-#, c-format
-msgid "cannot create output file"
-msgstr "出力ファイルを作成できません"
-
-#: libasm/asm_error.c:68
-msgid "invalid parameter"
-msgstr "不当なパラメーター"
-
-#: libasm/asm_error.c:69
-msgid "cannot change mode of output file"
-msgstr "出力ファイルのモードを変更できません"
-
-#: libasm/asm_error.c:70 src/ldgeneric.c:6990
-#, c-format
-msgid "cannot rename output file"
-msgstr "出力ファイルの名前を変更できません"
-
-#: libasm/asm_error.c:71
-msgid "duplicate symbol"
-msgstr "重複シンボル"
-
-#: libasm/asm_error.c:72
-msgid "invalid section type for operation"
-msgstr "操作に不当なセクションタイプ"
-
-#: libasm/asm_error.c:73
-msgid "error during output of data"
-msgstr "データの出力中にエラー"
-
-#: libasm/asm_error.c:74
-msgid "no backend support available"
-msgstr "バックエンドサポートが利用できません"
-
-#: libasm/asm_error.c:84 libdw/dwarf_error.c:59 libdwfl/libdwflP.h:54
-#: libelf/elf_error.c:63
-msgid "unknown error"
-msgstr "不明なエラー"
-
-#: libdw/dwarf_error.c:60
-msgid "invalid access"
-msgstr "不当なアクセス"
-
-#: libdw/dwarf_error.c:61
-msgid "no regular file"
-msgstr "一般ファイルではありません"
-
-#: libdw/dwarf_error.c:62
-msgid "I/O error"
-msgstr "I/O エラー"
-
-#: libdw/dwarf_error.c:63
-msgid "invalid ELF file"
-msgstr "不当な ELF ファイル"
-
-#: libdw/dwarf_error.c:64
-msgid "no DWARF information"
-msgstr "DWARF 情報がありません"
-
-#: libdw/dwarf_error.c:65
-msgid "no ELF file"
-msgstr "ELF ファイルがありません"
-
-#: libdw/dwarf_error.c:66
-msgid "cannot get ELF header"
-msgstr "ELF ヘッダーを得られません"
-
-#: libdw/dwarf_error.c:68
-msgid "not implemented"
-msgstr "未実装"
-
-#: libdw/dwarf_error.c:69 libelf/elf_error.c:107 libelf/elf_error.c:155
-msgid "invalid command"
-msgstr "不当なコマンド"
-
-#: libdw/dwarf_error.c:70
-msgid "invalid version"
-msgstr "不当なバージョン"
-
-#: libdw/dwarf_error.c:71
-msgid "invalid file"
-msgstr "不当なファイル"
-
-#: libdw/dwarf_error.c:72
-msgid "no entries found"
-msgstr "項目が見つかりません"
-
-#: libdw/dwarf_error.c:73
-msgid "invalid DWARF"
-msgstr "不当な DWARF"
-
-#: libdw/dwarf_error.c:74
-msgid "no string data"
-msgstr "文字データがありません"
-
-#: libdw/dwarf_error.c:75
-msgid "no address value"
-msgstr "アドレス値ではありません"
-
-#: libdw/dwarf_error.c:76
-msgid "no constant value"
-msgstr "固定値ではありません"
-
-#: libdw/dwarf_error.c:77
-msgid "no reference value"
-msgstr "参照値がありません"
-
-#: libdw/dwarf_error.c:78
-msgid "invalid reference value"
-msgstr "不当な参照値"
-
-#: libdw/dwarf_error.c:79
-msgid ".debug_line section missing"
-msgstr ".debug_line セクションがありません"
-
-#: libdw/dwarf_error.c:80
-msgid "invalid .debug_line section"
-msgstr "不当な .debug_line セクション"
-
-#: libdw/dwarf_error.c:81
-msgid "debug information too big"
-msgstr "デバッグ情報が大きすぎます"
-
-#: libdw/dwarf_error.c:82
-msgid "invalid DWARF version"
-msgstr "不当な DWARF バージョン"
-
-#: libdw/dwarf_error.c:83
-msgid "invalid directory index"
-msgstr "不当なディレクトリー索引"
-
-#: libdw/dwarf_error.c:84 libdwfl/libdwflP.h:74
-msgid "address out of range"
-msgstr "アドレスが範囲外です"
-
-#: libdw/dwarf_error.c:85
-msgid "no location list value"
-msgstr "ロケーションリスト値ではありません"
-
-#: libdw/dwarf_error.c:86
-msgid "no block data"
-msgstr "ブロックデータではありません"
-
-#: libdw/dwarf_error.c:87
-msgid "invalid line index"
-msgstr "不当な行索引"
-
-#: libdw/dwarf_error.c:88
-msgid "invalid address range index"
-msgstr "不当なアドレス範囲索引"
-
-#: libdw/dwarf_error.c:89 libdwfl/libdwflP.h:75
-msgid "no matching address range"
-msgstr "アドレス範囲に対応しません"
-
-#: libdw/dwarf_error.c:90
-msgid "no flag value"
-msgstr "フラグ値がありません"
-
-#: libdw/dwarf_error.c:91 libelf/elf_error.c:232
-msgid "invalid offset"
-msgstr "不当なオフセット"
-
-#: libdw/dwarf_error.c:92
-msgid ".debug_ranges section missing"
-msgstr ".debug_ranges セクションがありません"
-
-#: libdw/dwarf_error.c:93
-msgid "invalid CFI section"
-msgstr "不当な CFI セクション"
-
-#: libdw/dwarf_error.c:94
-msgid "no alternative debug link found"
-msgstr ""
-
-#: libdw/dwarf_error.c:95
-#, fuzzy
-msgid "invalid opcode"
-msgstr "不当なオペランド"
-
-#: libdwfl/argp-std.c:46 src/unstrip.c:2277
-msgid "Input selection options:"
-msgstr "選択オプションを入力してください:"
-
-#: libdwfl/argp-std.c:47
-msgid "Find addresses in FILE"
-msgstr "ふぁいる 中のアドレスを探す"
-
-#: libdwfl/argp-std.c:49
-msgid "Find addresses from signatures found in COREFILE"
-msgstr "COREFILE 中で見つかった署名からアドレスを探す"
-
-#: libdwfl/argp-std.c:51
-msgid "Find addresses in files mapped into process PID"
-msgstr "プロセス PID に対応するファイル中のアドレスを探す"
-
-#: libdwfl/argp-std.c:53
-msgid ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-msgstr ""
-"Linux の /proc/PID/maps 形式の ふぁいる から読み込んだものに対応するファイル"
-"のアドレスを探す"
-
-#: libdwfl/argp-std.c:55
-msgid "Find addresses in the running kernel"
-msgstr "実行中のカーネルのアドレスを探す"
-
-#: libdwfl/argp-std.c:57
-msgid "Kernel with all modules"
-msgstr "全てのモジュール付きのカーネル"
-
-#: libdwfl/argp-std.c:59
-msgid "Search path for separate debuginfo files"
-msgstr "分離した debuginfo ファイルべきパスを探す"
-
-#: libdwfl/argp-std.c:157
-msgid "only one of -e, -p, -k, -K, or --core allowed"
-msgstr "-e か、-p、-k、-K、--core のひとつだけが認められます"
-
-#: libdwfl/argp-std.c:230
-msgid "cannot load kernel symbols"
-msgstr "カーネルシンボルをロードできません"
-
-#: libdwfl/argp-std.c:234
-msgid "cannot find kernel modules"
-msgstr "カーネルモジュールを見つけられません"
-
-#: libdwfl/argp-std.c:251
-msgid "cannot find kernel or modules"
-msgstr "カーネルかモジュールを見つけられません"
-
-#: libdwfl/argp-std.c:290
-#, c-format
-msgid "cannot read ELF core file: %s"
-msgstr "ELF コアファイルを読めません: %s"
-
-#: libdwfl/argp-std.c:311
-msgid "No modules recognized in core file"
-msgstr "コアファイルの中にモジュールを認識できません"
-
-#: libdwfl/libdwflP.h:56
-msgid "See errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:57
-msgid "See elf_errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:58
-msgid "See dwarf_errno"
-msgstr ""
-
-#: libdwfl/libdwflP.h:59
-msgid "See ebl_errno (XXX missing)"
-msgstr ""
-
-#: libdwfl/libdwflP.h:60
-msgid "gzip decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:61
-msgid "bzip2 decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:62
-msgid "LZMA decompression failed"
-msgstr ""
-
-#: libdwfl/libdwflP.h:63
-msgid "no support library found for machine"
-msgstr ""
-
-#: libdwfl/libdwflP.h:64
-msgid "Callbacks missing for ET_REL file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:65
-msgid "Unsupported relocation type"
-msgstr ""
-
-#: libdwfl/libdwflP.h:66
-msgid "r_offset is bogus"
-msgstr ""
-
-#: libdwfl/libdwflP.h:67 libelf/elf_error.c:111 libelf/elf_error.c:171
-msgid "offset out of range"
-msgstr "オフセットが範囲を越えている"
-
-#: libdwfl/libdwflP.h:68
-#, fuzzy
-msgid "relocation refers to undefined symbol"
-msgstr "定義されたシンボルの印刷サイズ"
-
-#: libdwfl/libdwflP.h:69
-msgid "Callback returned failure"
-msgstr ""
-
-#: libdwfl/libdwflP.h:70
-#, fuzzy
-msgid "No DWARF information found"
-msgstr "DWARF 情報がありません"
-
-#: libdwfl/libdwflP.h:71
-msgid "No symbol table found"
-msgstr ""
-
-#: libdwfl/libdwflP.h:72
-#, fuzzy
-msgid "No ELF program headers"
-msgstr "プログラムヘッダーを得られません: %s"
-
-#: libdwfl/libdwflP.h:73
-msgid "address range overlaps an existing module"
-msgstr ""
-
-#: libdwfl/libdwflP.h:76
-msgid "image truncated"
-msgstr ""
-
-#: libdwfl/libdwflP.h:77
-#, fuzzy
-msgid "ELF file opened"
-msgstr "ファイルのオープンを追跡します。"
-
-#: libdwfl/libdwflP.h:78
-#, fuzzy
-msgid "not a valid ELF file"
-msgstr "不当な ELF ファイル"
-
-#: libdwfl/libdwflP.h:79
-#, fuzzy
-msgid "cannot handle DWARF type description"
-msgstr "Elf 記述子を生成できません: %s"
-
-#: libdwfl/libdwflP.h:80
-msgid "ELF file does not match build ID"
-msgstr ""
-
-#: libdwfl/libdwflP.h:81
-#, fuzzy
-msgid "corrupt .gnu.prelink_undo section data"
-msgstr "ラインデータセクションデータを得られません: %s"
-
-#: libdwfl/libdwflP.h:82
-msgid "Internal error due to ebl"
-msgstr ""
-
-#: libdwfl/libdwflP.h:83
-msgid "Missing data in core file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:84
-#, fuzzy
-msgid "Invalid register"
-msgstr "不当なパラメーター"
-
-#: libdwfl/libdwflP.h:85
-msgid "Error reading process memory"
-msgstr ""
-
-#: libdwfl/libdwflP.h:86
-msgid "Couldn't find architecture of any ELF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:87
-msgid "Error parsing /proc filesystem"
-msgstr ""
-
-#: libdwfl/libdwflP.h:88
-#, fuzzy
-msgid "Invalid DWARF"
-msgstr "不当な DWARF"
-
-#: libdwfl/libdwflP.h:89
-msgid "Unsupported DWARF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:90
-msgid "Unable to find more threads"
-msgstr ""
-
-#: libdwfl/libdwflP.h:91
-msgid "Dwfl already has attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:92
-msgid "Dwfl has no attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:93
-msgid "Unwinding not supported for this architecture"
-msgstr ""
-
-#: libdwfl/libdwflP.h:94
-#, fuzzy
-msgid "Invalid argument"
-msgstr "不当なパラメーター"
-
-#: libdwfl/libdwflP.h:95
-#, fuzzy
-msgid "Not an ET_CORE ELF file"
-msgstr "不当な ELF ファイル"
-
-#: libebl/eblbackendname.c:42
-msgid "No backend"
-msgstr "バックエンドがありません"
-
-#: libebl/eblcorenotetypename.c:102 libebl/eblobjecttypename.c:57
-#: libebl/eblobjnotetypename.c:73 libebl/eblosabiname.c:77
-#: libebl/eblsectionname.c:89 libebl/eblsectiontypename.c:119
-#: libebl/eblsegmenttypename.c:83
-msgid "<unknown>"
-msgstr "<不明>"
-
-#: libebl/ebldynamictagname.c:105
-#, c-format
-msgid "<unknown>: %#<PRIx64>"
-msgstr "<不明>: %#<PRIx64>"
-
-#: libebl/eblobjnote.c:55
-#, fuzzy, c-format
-msgid "unknown SDT version %u\n"
-msgstr "不明なバージョン"
-
-#: libebl/eblobjnote.c:73
-#, fuzzy, c-format
-msgid "invalid SDT probe descriptor\n"
-msgstr "不当なファイル記述子"
-
-#: libebl/eblobjnote.c:123
-#, c-format
-msgid " PC: "
-msgstr ""
-
-#: libebl/eblobjnote.c:125
-#, c-format
-msgid " Base: "
-msgstr ""
-
-#: libebl/eblobjnote.c:127
-#, c-format
-msgid " Semaphore: "
-msgstr ""
-
-#: libebl/eblobjnote.c:129
-#, c-format
-msgid " Provider: "
-msgstr ""
-
-#: libebl/eblobjnote.c:131
-#, c-format
-msgid " Name: "
-msgstr ""
-
-#: libebl/eblobjnote.c:133
-#, c-format
-msgid " Args: "
-msgstr ""
-
-#: libebl/eblobjnote.c:143
-#, c-format
-msgid " Build ID: "
-msgstr " ビルト ID: "
-
-#: libebl/eblobjnote.c:154
-#, c-format
-msgid " Linker version: %.*s\n"
-msgstr ""
-
-#: libebl/eblobjnote.c:203
-#, c-format
-msgid " OS: %s, ABI: "
-msgstr " OS: %s、ABI: "
-
-#: libebl/eblosabiname.c:74
-msgid "Stand alone"
-msgstr "スタンドアローン"
-
-#: libebl/eblsymbolbindingname.c:71 libebl/eblsymboltypename.c:77
-#, c-format
-msgid "<unknown>: %d"
-msgstr "<不明>: %d"
-
-#: libelf/elf_error.c:67
-msgid "unknown version"
-msgstr "不明なバージョン"
-
-#: libelf/elf_error.c:71
-msgid "unknown type"
-msgstr "不明なタイプ"
-
-#: libelf/elf_error.c:75
-msgid "invalid `Elf' handle"
-msgstr "無効な `Elf' の処理"
-
-#: libelf/elf_error.c:79
-msgid "invalid size of source operand"
-msgstr "ソース演算子の大きさが無効"
-
-#: libelf/elf_error.c:83
-msgid "invalid size of destination operand"
-msgstr "宛先演算子の大きさが無効"
-
-#: libelf/elf_error.c:87 src/readelf.c:5367
-#, c-format
-msgid "invalid encoding"
-msgstr "無効なエンコード"
-
-#: libelf/elf_error.c:95
-msgid "invalid file descriptor"
-msgstr "不当なファイル記述子"
-
-#: libelf/elf_error.c:99
-msgid "invalid operation"
-msgstr "不当な操作"
-
-#: libelf/elf_error.c:103
-msgid "ELF version not set"
-msgstr "ELF のバージョンが設定されていない"
-
-#: libelf/elf_error.c:115
-msgid "invalid fmag field in archive header"
-msgstr "アーカイブヘッダーの不当な fmag 領域"
-
-#: libelf/elf_error.c:119
-msgid "invalid archive file"
-msgstr "不当なアーカイブファイル"
-
-#: libelf/elf_error.c:123
-msgid "descriptor is not for an archive"
-msgstr "記述子はアーカイブ用ではありません"
-
-#: libelf/elf_error.c:127
-msgid "no index available"
-msgstr "索引が使えません"
-
-#: libelf/elf_error.c:131
-msgid "cannot read data from file"
-msgstr "ファイルからデータを読みません"
-
-#: libelf/elf_error.c:135
-msgid "cannot write data to file"
-msgstr "ファイルへデータを書けません"
-
-#: libelf/elf_error.c:139
-msgid "invalid binary class"
-msgstr "不当なバイナリークラス"
-
-#: libelf/elf_error.c:143
-msgid "invalid section index"
-msgstr "不当なセクション索引"
-
-#: libelf/elf_error.c:147
-msgid "invalid operand"
-msgstr "不当なオペランド"
-
-#: libelf/elf_error.c:151
-msgid "invalid section"
-msgstr "不当なセクション"
-
-#: libelf/elf_error.c:159
-msgid "executable header not created first"
-msgstr "エクゼキュータブルヘッダーが最初に作られていません"
-
-#: libelf/elf_error.c:163
-msgid "file descriptor disabled"
-msgstr "ファイル記述子が機能しません"
-
-#: libelf/elf_error.c:167
-#, fuzzy
-msgid "archive/member file descriptor mismatch"
-msgstr "アーカイブ/メンバー領域が不整合です"
-
-#: libelf/elf_error.c:175
-msgid "cannot manipulate null section"
-msgstr "null セクションを操作できません"
-
-#: libelf/elf_error.c:179
-msgid "data/scn mismatch"
-msgstr "データ/scnが不整合です"
-
-#: libelf/elf_error.c:183
-msgid "invalid section header"
-msgstr "不当なセクションヘッダー"
-
-#: libelf/elf_error.c:187 src/readelf.c:7235 src/readelf.c:7683
-#: src/readelf.c:7784 src/readelf.c:7954
-#, c-format
-msgid "invalid data"
-msgstr "不当なデータ"
-
-#: libelf/elf_error.c:191
-msgid "unknown data encoding"
-msgstr "不明なデータエンコード"
-
-#: libelf/elf_error.c:195
-msgid "section `sh_size' too small for data"
-msgstr "`sh_size' セクションがデータには小さすぎます"
-
-#: libelf/elf_error.c:199
-msgid "invalid section alignment"
-msgstr "不当なセクション調整"
-
-#: libelf/elf_error.c:203
-msgid "invalid section entry size"
-msgstr "不当なセクション項目の大きさ"
-
-#: libelf/elf_error.c:207
-msgid "update() for write on read-only file"
-msgstr "読込み専用ファイルでの書込みのための update()"
-
-#: libelf/elf_error.c:211
-msgid "no such file"
-msgstr "そのようなファイルはありません"
-
-#: libelf/elf_error.c:215
-msgid "only relocatable files can contain section groups"
-msgstr "リロケータブルファイルのみセクショングループを含むことができます"
-
-#: libelf/elf_error.c:220
-msgid ""
-"program header only allowed in executables, shared objects, and core files"
-msgstr ""
-"プログラムヘッダーはエクゼキュータブルか、共用オブジェクト、コアファイルにの"
-"み認められています"
-
-#: libelf/elf_error.c:227
-msgid "file has no program header"
-msgstr "ファイルにプログラムヘッダーがありません"
-
-#: src/addr2line.c:58
-msgid "Output selection options:"
-msgstr ""
-
-#: src/addr2line.c:59
-msgid "Show only base names of source files"
-msgstr ""
-
-#: src/addr2line.c:61
-msgid "Show absolute file names using compilation directory"
-msgstr ""
-
-#: src/addr2line.c:62
-msgid "Also show function names"
-msgstr ""
-
-#: src/addr2line.c:63
-msgid "Also show symbol or section names"
-msgstr ""
-
-#: src/addr2line.c:64
-msgid "Also show symbol and the section names"
-msgstr ""
-
-#: src/addr2line.c:65
-msgid "Also show line table flags"
-msgstr ""
-
-#: src/addr2line.c:67
-msgid "Treat addresses as offsets relative to NAME section."
-msgstr ""
-
-#: src/addr2line.c:69
-msgid ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-msgstr ""
-
-#: src/addr2line.c:72 src/elfcmp.c:72 src/findtextrel.c:67 src/nm.c:100
-#: src/strings.c:75
-msgid "Miscellaneous:"
-msgstr "雑則:"
-
-#: src/addr2line.c:81
-msgid ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-msgstr ""
-
-#: src/addr2line.c:85
-msgid "[ADDR...]"
-msgstr ""
-
-#: src/addr2line.c:196 src/ar.c:289 src/elfcmp.c:663 src/elflint.c:235
-#: src/findtextrel.c:162 src/ld.c:949 src/nm.c:265 src/objdump.c:181
-#: src/ranlib.c:128 src/readelf.c:500 src/size.c:211 src/strings.c:226
-#: src/strip.c:213 src/unstrip.c:233
-#, c-format
-msgid ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-msgstr ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-
-#: src/addr2line.c:201 src/ar.c:294 src/elfcmp.c:668 src/elflint.c:240
-#: src/findtextrel.c:167 src/ld.c:954 src/nm.c:270 src/objdump.c:186
-#: src/ranlib.c:133 src/readelf.c:505 src/size.c:216 src/strings.c:231
-#: src/strip.c:218 src/unstrip.c:238
-#, c-format
-msgid "Written by %s.\n"
-msgstr "%s によって書かれました。\n"
-
-#: src/addr2line.c:474
-#, c-format
-msgid "Section syntax requires exactly one module"
-msgstr ""
-
-#: src/addr2line.c:497
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside section '%s'"
-msgstr ""
-
-#: src/addr2line.c:563
-#, c-format
-msgid "cannot find symbol '%s'"
-msgstr ""
-
-#: src/addr2line.c:568
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside contents of '%s'"
-msgstr ""
-
-#: src/ar.c:69
-msgid "Commands:"
-msgstr "コマンド:"
-
-#: src/ar.c:70
-msgid "Delete files from archive."
-msgstr "アーカイブからファイルを削除。"
-
-#: src/ar.c:71
-msgid "Move files in archive."
-msgstr "アーカイブ内のファイルを移動。"
-
-#: src/ar.c:72
-msgid "Print files in archive."
-msgstr "アーカイブ内のファイルを印刷。"
-
-#: src/ar.c:73
-msgid "Quick append files to archive."
-msgstr "アーカイブへの即座のファイル追加。"
-
-#: src/ar.c:75
-msgid "Replace existing or insert new file into archive."
-msgstr "アーカイブへの既存のファイルの置き換えか、新しいファイルの挿入。"
-
-#: src/ar.c:76
-msgid "Display content of archive."
-msgstr "アーカイブの内容の表示"
-
-#: src/ar.c:77
-msgid "Extract files from archive."
-msgstr "アーカイブからのファイルの取出し"
-
-#: src/ar.c:79
-msgid "Command Modifiers:"
-msgstr "コマンド修飾子:"
-
-#: src/ar.c:80
-msgid "Preserve original dates."
-msgstr "元データの保存。"
-
-#: src/ar.c:81
-msgid "Use instance [COUNT] of name."
-msgstr "名前のインスタンス [COUNT] の使用。"
-
-#: src/ar.c:83
-msgid "Do not replace existing files with extracted files."
-msgstr "既存のファイルを抽出したファイルで置き換えない。"
-
-#: src/ar.c:84
-msgid "Allow filename to be truncated if necessary."
-msgstr "必要ならばファイル名の切り捨てを認める。"
-
-#: src/ar.c:86
-msgid "Provide verbose output."
-msgstr "饒舌な出力を提供する。"
-
-#: src/ar.c:87
-msgid "Force regeneration of symbol table."
-msgstr "シンボルテーブルの再生成を強制する。"
-
-#: src/ar.c:88
-msgid "Insert file after [MEMBER]."
-msgstr "[MEMBER]の後にファイルを挿入する。"
-
-#: src/ar.c:89
-msgid "Insert file before [MEMBER]."
-msgstr "[MEMBER]の前にファイルを挿入する。"
-
-#: src/ar.c:90
-msgid "Same as -b."
-msgstr "-b と同じ。"
-
-#: src/ar.c:91
-msgid "Suppress message when library has to be created."
-msgstr "ライブラリーを生成しなければならない時にメッセージを抑止する。"
-
-#: src/ar.c:93
-msgid "Use full path for file matching."
-msgstr "ファイル照合にフルパスを使う。"
-
-#: src/ar.c:94
-msgid "Update only older files in archive."
-msgstr "アーカイブの古いファイルのみ更新する。"
-
-#: src/ar.c:100
-msgid "Create, modify, and extract from archives."
-msgstr "アーカイブから作成や、修正、抽出する。"
-
-#: src/ar.c:103
-msgid "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-msgstr "[メンバー] [合計] アーカイブ [ファイル...]"
-
-#: src/ar.c:185
-#, c-format
-msgid "'a', 'b', and 'i' are only allowed with the 'm' and 'r' options"
-msgstr "'a'や、'b'、'i'は、'm' や 'r' オプションと一緒にしか指定できません"
-
-#: src/ar.c:190
-#, c-format
-msgid "MEMBER parameter required for 'a', 'b', and 'i' modifiers"
-msgstr "'a'や、'b'、'i' 修飾子には MEMBER パラメーターが必要です"
-
-#: src/ar.c:206
-#, c-format
-msgid "'N' is only meaningful with the 'x' and 'd' options"
-msgstr "'N' は 'x' や 'd' オプションと一緒の時のみ意味を持ちます"
-
-#: src/ar.c:211
-#, c-format
-msgid "COUNT parameter required"
-msgstr "COUNT パラメーターが必要です"
-
-#: src/ar.c:223
-#, c-format
-msgid "invalid COUNT parameter %s"
-msgstr "不当な COUNT パラメーター %s"
-
-#: src/ar.c:230
-#, c-format
-msgid "'%c' is only meaningful with the 'x' option"
-msgstr "'%c' は 'x' オプションと一緒の時のみ意味を持ちます"
-
-#: src/ar.c:236
-#, c-format
-msgid "archive name required"
-msgstr "アーカイブ名が必要です"
-
-#: src/ar.c:249
-#, c-format
-msgid "command option required"
-msgstr ""
-
-#: src/ar.c:314
-#, c-format
-msgid "More than one operation specified"
-msgstr "1つを越える操作が指定されました"
-
-#: src/ar.c:408
-#, c-format
-msgid "cannot open archive '%s'"
-msgstr "アーカイブ '%s' を開くことができません"
-
-#: src/ar.c:418
-#, c-format
-msgid "cannot open archive '%s': %s"
-msgstr "アーカイブ '%s' を開けません: %s"
-
-#: src/ar.c:422
-#, c-format
-msgid "%s: not an archive file"
-msgstr "%s: アーカイブファイルではありません"
-
-#: src/ar.c:426
-#, c-format
-msgid "cannot stat archive '%s'"
-msgstr "アーカイブに stat できません: '%s'"
-
-#: src/ar.c:438
-#, c-format
-msgid "no entry %s in archive\n"
-msgstr "アーカイブに項目 %s がありません\n"
-
-#: src/ar.c:491 src/ar.c:933 src/ar.c:1133
-#, c-format
-msgid "cannot create hash table"
-msgstr "ハッシュテーブルを生成できません"
-
-#: src/ar.c:498 src/ar.c:940 src/ar.c:1142
-#, c-format
-msgid "cannot insert into hash table"
-msgstr "ハッシュに挿入できません"
-
-#: src/ar.c:506 src/ranlib.c:168
-#, c-format
-msgid "cannot stat '%s'"
-msgstr "'%s' に stat できません"
-
-#: src/ar.c:602
-#, c-format
-msgid "cannot read content of %s: %s"
-msgstr "%s の内容を読むことができません: %s"
-
-#: src/ar.c:645
-#, c-format
-msgid "cannot open %.*s"
-msgstr "%.*s を開けません"
-
-#: src/ar.c:667
-#, c-format
-msgid "failed to write %s"
-msgstr "%s への書込みに失敗しました"
-
-#: src/ar.c:679
-#, c-format
-msgid "cannot change mode of %s"
-msgstr "%s のモードを変更できません"
-
-#: src/ar.c:695
-#, c-format
-msgid "cannot change modification time of %s"
-msgstr "%s の更新時間を変更できません"
-
-#: src/ar.c:741
-#, c-format
-msgid "cannot rename temporary file to %.*s"
-msgstr "一時ファイルを %.*s に名前変更できません"
-
-#: src/ar.c:777 src/ar.c:1025 src/ar.c:1424 src/ranlib.c:242
-#, c-format
-msgid "cannot create new file"
-msgstr "新しいファイルを生成できません"
-
-#: src/ar.c:1224
-#, c-format
-msgid "position member %s not found"
-msgstr "位置メンバー %s が見つかりません"
-
-#: src/ar.c:1234
-#, c-format
-msgid "%s: no entry %s in archive!\n"
-msgstr "%s: 項目 %s がアーカイブにありません!\n"
-
-#: src/ar.c:1263 src/ldgeneric.c:509 src/objdump.c:257
-#, c-format
-msgid "cannot open %s"
-msgstr "%s を開けません"
-
-#: src/ar.c:1268
-#, c-format
-msgid "cannot stat %s"
-msgstr "%s を stat できません"
-
-#: src/ar.c:1274
-#, c-format
-msgid "%s is no regular file"
-msgstr "%s は一般ファイルではありません"
-
-#: src/ar.c:1287
-#, c-format
-msgid "cannot get ELF descriptor for %s: %s\n"
-msgstr "%s の ELF 記述子を得られません: %s\n"
-
-#: src/ar.c:1307
-#, c-format
-msgid "cannot read %s: %s"
-msgstr "%s を読みません: %s"
-
-#: src/arlib.c:209
-#, c-format
-msgid "the archive '%s' is too large"
-msgstr "アーカイブ '%s' は大きすぎます"
-
-#: src/arlib.c:222
-#, c-format
-msgid "cannot read ELF header of %s(%s): %s"
-msgstr "%s(%s) の ELF ヘッダーを読めません: %s"
-
-#: src/elfcmp.c:62
-msgid "Control options:"
-msgstr ""
-
-#: src/elfcmp.c:64
-msgid "Output all differences, not just the first"
-msgstr ""
-
-#: src/elfcmp.c:65
-msgid ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-msgstr ""
-
-#: src/elfcmp.c:67
-msgid "Ignore permutation of buckets in SHT_HASH section"
-msgstr ""
-
-#: src/elfcmp.c:69
-msgid "Ignore differences in build ID"
-msgstr ""
-
-#: src/elfcmp.c:70
-msgid "Output nothing; yield exit status only"
-msgstr ""
-
-#: src/elfcmp.c:77
-msgid "Compare relevant parts of two ELF files for equality."
-msgstr ""
-
-#: src/elfcmp.c:81
-msgid "FILE1 FILE2"
-msgstr ""
-
-#: src/elfcmp.c:143
-msgid "Invalid number of parameters.\n"
-msgstr ""
-
-#: src/elfcmp.c:174 src/elfcmp.c:179
-#, c-format
-msgid "cannot get ELF header of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:205
-#, c-format
-msgid "%s %s diff: ELF header"
-msgstr ""
-
-#: src/elfcmp.c:212 src/elfcmp.c:215
-#, fuzzy, c-format
-msgid "cannot get section count of '%s': %s"
-msgstr "セクションを得られません: %s"
-
-#: src/elfcmp.c:220
-#, c-format
-msgid "%s %s diff: section count"
-msgstr ""
-
-#: src/elfcmp.c:227 src/elfcmp.c:230
-#, fuzzy, c-format
-msgid "cannot get program header count of '%s': %s"
-msgstr "プログラムヘッダーを得られません: %s"
-
-#: src/elfcmp.c:235
-#, fuzzy, c-format
-msgid "%s %s diff: program header count"
-msgstr "ファイルにプログラムヘッダーがありません"
-
-#: src/elfcmp.c:292
-#, c-format
-msgid "%s %s differ: section [%zu], [%zu] name"
-msgstr ""
-
-#: src/elfcmp.c:315
-#, fuzzy, c-format
-msgid "%s %s differ: section [%zu] '%s' header"
-msgstr "セクション [%zu] '%s' の不当なデータ"
-
-#: src/elfcmp.c:323 src/elfcmp.c:329
-#, c-format
-msgid "cannot get content of section %zu in '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:345 src/elfcmp.c:351
-#, c-format
-msgid "cannot get symbol in '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:373
-#, c-format
-msgid "%s %s differ: symbol table [%zu]"
-msgstr ""
-
-#: src/elfcmp.c:376
-#, c-format
-msgid "%s %s differ: symbol table [%zu,%zu]"
-msgstr ""
-
-#: src/elfcmp.c:422 src/elfcmp.c:491
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' number of notes"
-msgstr ""
-
-#: src/elfcmp.c:430
-#, fuzzy, c-format
-msgid "cannot read note section [%zu] '%s' in '%s': %s"
-msgstr "セクション [%Zu] '%s' からデータが得られません: %s"
-
-#: src/elfcmp.c:440
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note name"
-msgstr ""
-
-#: src/elfcmp.c:448
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' type"
-msgstr ""
-
-#: src/elfcmp.c:463
-#, c-format
-msgid "%s %s differ: build ID length"
-msgstr ""
-
-#: src/elfcmp.c:471
-#, c-format
-msgid "%s %s differ: build ID content"
-msgstr ""
-
-#: src/elfcmp.c:480
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:520
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:524
-#, c-format
-msgid "%s %s differ: section [%zu,%zu] '%s' content"
-msgstr ""
-
-#: src/elfcmp.c:539
-#, c-format
-msgid "%s %s differ: unequal amount of important sections"
-msgstr ""
-
-#: src/elfcmp.c:572 src/elfcmp.c:577
-#, c-format
-msgid "cannot load data of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:596 src/elfcmp.c:602
-#, c-format
-msgid "cannot get program header entry %d of '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:608
-#, c-format
-msgid "%s %s differ: program header %d"
-msgstr ""
-
-#: src/elfcmp.c:632
-#, c-format
-msgid "%s %s differ: gap"
-msgstr ""
-
-#: src/elfcmp.c:695
-#, c-format
-msgid "Invalid value '%s' for --gaps parameter."
-msgstr ""
-
-#: src/elfcmp.c:723 src/findtextrel.c:221 src/ldgeneric.c:1757
-#: src/ldgeneric.c:4247 src/nm.c:381 src/ranlib.c:161 src/size.c:293
-#: src/strings.c:182 src/strip.c:451 src/strip.c:488 src/unstrip.c:1923
-#: src/unstrip.c:1952
-#, c-format
-msgid "cannot open '%s'"
-msgstr "'%s' を開けません"
-
-#: src/elfcmp.c:727 src/findtextrel.c:228 src/ranlib.c:178
-#, c-format
-msgid "cannot create ELF descriptor for '%s': %s"
-msgstr ""
-
-#: src/elfcmp.c:732
-#, c-format
-msgid "cannot create EBL descriptor for '%s'"
-msgstr ""
-
-#: src/elfcmp.c:750
-#, c-format
-msgid "cannot get section header of section %zu: %s"
-msgstr ""
-
-#: src/elfcmp.c:760
-#, c-format
-msgid "cannot get content of section %zu: %s"
-msgstr ""
-
-#: src/elfcmp.c:770 src/elfcmp.c:784
-#, c-format
-msgid "cannot get relocation: %s"
-msgstr ""
-
-#: src/elflint.c:64
-msgid "Be extremely strict, flag level 2 features."
-msgstr "非常に厳密にやってください、フラグレベル 2 機能。"
-
-#: src/elflint.c:65
-msgid "Do not print anything if successful"
-msgstr "成功したら何も印刷しない"
-
-#: src/elflint.c:66
-msgid "Binary is a separate debuginfo file"
-msgstr "バイナリーは別の debuginfo ファイルです"
-
-#: src/elflint.c:68
-msgid ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-msgstr ""
-"バイナリーは GNU ld で作成され、従ってある方法で壊れているのが知られている"
-
-#: src/elflint.c:74
-msgid "Pedantic checking of ELF files compliance with gABI/psABI spec."
-msgstr "ELF ファイルが gABI/psABI 仕様へ準拠しているかの厳密なチェック。"
-
-#: src/elflint.c:78 src/readelf.c:123
-msgid "FILE..."
-msgstr "ふぁいる..."
-
-#: src/elflint.c:155 src/readelf.c:292
-#, c-format
-msgid "cannot open input file"
-msgstr "入力ファイルを開けません"
-
-#: src/elflint.c:162
-#, c-format
-msgid "cannot generate Elf descriptor: %s\n"
-msgstr "Elf 記述子を生成できません: %s\n"
-
-#: src/elflint.c:181
-#, c-format
-msgid "error while closing Elf descriptor: %s\n"
-msgstr "Elf 記述子を閉じている時にエラー: %s\n"
-
-#: src/elflint.c:185
-msgid "No errors"
-msgstr "エラーはありません"
-
-#: src/elflint.c:219 src/readelf.c:468
-msgid "Missing file name.\n"
-msgstr "ファイル名がありません。\n"
-
-#: src/elflint.c:298
-#, c-format
-msgid " error while freeing sub-ELF descriptor: %s\n"
-msgstr "副-ELF 記述子を解放している時にエラー: %s\n"
-
-#: src/elflint.c:306
-#, c-format
-msgid "Not an ELF file - it has the wrong magic bytes at the start\n"
-msgstr "ELF ファイルではありません - 最初に誤ったマジックバイトがあります\n"
-
-#: src/elflint.c:371
-#, c-format
-msgid "e_ident[%d] == %d is no known class\n"
-msgstr "e_ident[%d] == %d は既知のクラスではありません\n"
-
-#: src/elflint.c:376
-#, c-format
-msgid "e_ident[%d] == %d is no known data encoding\n"
-msgstr "e_ident[%d] == %d は既知のデータエンコードではありません\n"
-
-#: src/elflint.c:380
-#, c-format
-msgid "unknown ELF header version number e_ident[%d] == %d\n"
-msgstr "不明な ELF ヘッダーバージョン数 e_ident[%d] == %d\n"
-
-#: src/elflint.c:386
-#, c-format
-msgid "unsupported OS ABI e_ident[%d] == '%s'\n"
-msgstr "不明な OS ABI e_ident[%d] == '%s'\n"
-
-#: src/elflint.c:392
-#, c-format
-msgid "unsupport ABI version e_ident[%d] == %d\n"
-msgstr "不明な ABI バージョン e_ident[%d] == %d\n"
-
-#: src/elflint.c:397
-#, c-format
-msgid "e_ident[%zu] is not zero\n"
-msgstr "e_ident[%zu] がゼロではありません\n"
-
-#: src/elflint.c:402
-#, c-format
-msgid "unknown object file type %d\n"
-msgstr "不明なオブジェクトファイルタイプ %d\n"
-
-#: src/elflint.c:409
-#, c-format
-msgid "unknown machine type %d\n"
-msgstr "不明なマシンタイプ %d\n"
-
-#: src/elflint.c:413
-#, c-format
-msgid "unknown object file version\n"
-msgstr "不明なオブジェクトファイルバージョン\n"
-
-#: src/elflint.c:419
-#, c-format
-msgid "invalid program header offset\n"
-msgstr "不当なプログラムヘッダーオフセット\n"
-
-#: src/elflint.c:421
-#, c-format
-msgid "executables and DSOs cannot have zero program header offset\n"
-msgstr ""
-"実行ファイルと DSO はプログラムヘッダーオフセットが 0 であってはいけません\n"
-
-#: src/elflint.c:425
-#, c-format
-msgid "invalid number of program header entries\n"
-msgstr "プログラムヘッダー項目数として不当な数\n"
-
-#: src/elflint.c:433
-#, c-format
-msgid "invalid section header table offset\n"
-msgstr "不当なセクションヘッダーテーブルオフセット\n"
-
-#: src/elflint.c:436
-#, c-format
-msgid "section header table must be present\n"
-msgstr "セクションヘッダーテーブルがなければなりません\n"
-
-#: src/elflint.c:450
-#, c-format
-msgid "invalid number of section header table entries\n"
-msgstr "セクションヘッダーテーブル項目数として不当な数\n"
-
-#: src/elflint.c:467
-#, c-format
-msgid "invalid section header index\n"
-msgstr "不当なセクションヘッダーインデックス\n"
-
-#: src/elflint.c:481
-#, fuzzy, c-format
-msgid "invalid number of program header table entries\n"
-msgstr "プログラムヘッダー項目数として不当な数\n"
-
-#: src/elflint.c:490
-#, c-format
-msgid "invalid machine flags: %s\n"
-msgstr "不当なマシンフラグ: %s\n"
-
-#: src/elflint.c:497 src/elflint.c:514
-#, c-format
-msgid "invalid ELF header size: %hd\n"
-msgstr "不当な ELF ヘッダーサイズ: %hd\n"
-
-#: src/elflint.c:500 src/elflint.c:517
-#, c-format
-msgid "invalid program header size: %hd\n"
-msgstr "不当なプログラムヘッダーサイズ: %hd\n"
-
-#: src/elflint.c:503 src/elflint.c:520
-#, c-format
-msgid "invalid program header position or size\n"
-msgstr "不当なプログラムヘッダー位置かサイズ\n"
-
-#: src/elflint.c:506 src/elflint.c:523
-#, c-format
-msgid "invalid section header size: %hd\n"
-msgstr "不当なセクションヘッダーサイズ: %hd\n"
-
-#: src/elflint.c:509 src/elflint.c:526
-#, c-format
-msgid "invalid section header position or size\n"
-msgstr "不当なセクションヘッダー位置かサイズ\n"
-
-#: src/elflint.c:570
-#, c-format
-msgid ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-msgstr ""
-"セクション [%2d] '%s': SHF_GROUP フラグのあるセクションにセクショングループの"
-"一部分が設定されていません\n"
-
-#: src/elflint.c:574
-#, fuzzy, c-format
-msgid ""
-"section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"
-msgstr ""
-"セクション [%2d] '%s': セクショングループ [%2zu] '%s' がグループメンバーを継"
-"続していません\n"
-
-#: src/elflint.c:590 src/elflint.c:1457 src/elflint.c:1508 src/elflint.c:1614
-#: src/elflint.c:1939 src/elflint.c:2228 src/elflint.c:2742 src/elflint.c:2904
-#: src/elflint.c:3034 src/elflint.c:3206 src/elflint.c:4108
-#, c-format
-msgid "section [%2d] '%s': cannot get section data\n"
-msgstr "セクション [%2d] '%s': セクションデータを得られません\n"
-
-#: src/elflint.c:603 src/elflint.c:1621
-#, c-format
-msgid ""
-"section [%2d] '%s': referenced as string table for section [%2d] '%s' but "
-"type is not SHT_STRTAB\n"
-msgstr ""
-"セクション [%2d] '%s': セクション [%2d] '%s' 用の文字列テーブルとして参照され"
-"ていますが、タイプが SHT_STRTAB ではありません\n"
-
-#: src/elflint.c:626
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-msgstr ""
-"セクション [%2d] '%s': シンボルテーブルは 1 個を越える拡張インデックスセク"
-"ションを持てません\n"
-
-#: src/elflint.c:638
-#, c-format
-msgid "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-msgstr "セクション [%2u] '%s': 項目サイズが ElfXX_Sym と一致しません\n"
-
-#: src/elflint.c:647
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %d: %s\n"
-msgstr "セクション [%2d] '%s': シンボル %d を得られません: %s\n"
-
-#: src/elflint.c:652 src/elflint.c:655 src/elflint.c:658 src/elflint.c:661
-#: src/elflint.c:664 src/elflint.c:667
-#, c-format
-msgid "section [%2d] '%s': '%s' in zeroth entry not zero\n"
-msgstr "セクション [%2d] '%s': 0番目の項目にある '%s' ゼロではありません\n"
-
-#: src/elflint.c:670
-#, c-format
-msgid "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-msgstr "セクション [%2d] '%s': 0番目の項目用の XINDEX がゼロではありません\n"
-
-#: src/elflint.c:680
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %zu: %s\n"
-msgstr "セクション [%2d] '%s': シンボル %zu を得られません: %s\n"
-
-#: src/elflint.c:689
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid name value\n"
-msgstr "セクション [%2d] '%s': シンボル %zu: 不当な名前の値\n"
-
-#: src/elflint.c:704
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: 大きすぎるセクションインデックスだが、拡"
-"張セクションインデックスセクションがありません\n"
-
-#: src/elflint.c:710
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: st_shndx (%<PRIu32>) に適合するインデッ"
-"クス用に使われる XINDEX\n"
-
-#: src/elflint.c:722
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid section index\n"
-msgstr "セクション [%2d] '%s': シンボル %zu: 不当なセクションインデックス\n"
-
-#: src/elflint.c:730
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown type\n"
-msgstr "セクション [%2d] '%s': シンボル %zu: 不明なタイプ\n"
-
-#: src/elflint.c:736
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-msgstr "セクション [%2d] '%s': シンボル %zu: 不明なシンボルバインディング\n"
-
-#: src/elflint.c:741
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: オブジェクトタイプと異なる固有のシンボ"
-"ル\n"
-
-#: src/elflint.c:749
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: COMMON はリロケータブルファイル内のみで"
-"許されます\n"
-
-#: src/elflint.c:753
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: ローカルな COMMON シンボルは意味がありま"
-"せん\n"
-
-#: src/elflint.c:757
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: COMMON セクションの機能は意味がありませ"
-"ん\n"
-
-#: src/elflint.c:804
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-msgstr "セクション [%2d] '%s': シンボル %zu: st_value 境界外\n"
-
-#: src/elflint.c:810 src/elflint.c:835 src/elflint.c:878
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu は参照されるセクション [%2d] '%s' とは完"
-"全に一致しません\n"
-
-#: src/elflint.c:819
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have "
-"SHF_TLS flag set\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: 参照されるセクション [%2d] '%s' は "
-"SHF_TLS フラグが設定されていません\n"
-
-#: src/elflint.c:829 src/elflint.c:871
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: st_value 参照されるセクション [%2d] "
-"'%s' の境界外\n"
-
-#: src/elflint.c:856
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: TLS プログラムヘッダー項目がない TLS シ"
-"ンボル\n"
-
-#: src/elflint.c:864
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"'%s'\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: 参照されるセクション [%2d] '%s' の"
-"st_value 不足\n"
-
-#: src/elflint.c:891
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: sh_info に記述された範囲外のローカルシン"
-"ボル\n"
-
-#: src/elflint.c:898
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: sh_info に記述された範囲外の非ローカルシ"
-"ンボル\n"
-
-#: src/elflint.c:905
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-msgstr "セクション [%2d] '%s': シンボル %zu: 非ローカルセクションシンボル\n"
-
-#: src/elflint.c:955
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-msgstr ""
-"セクション [%2d] '%s': _GLOBAL_OFFSET_TABLE_ シンボルが間違ったセクション "
-"[%2d] を参照しています\n"
-
-#: src/elflint.c:962
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"'%s'\n"
-msgstr ""
-"セクション [%2d] '%s': _GLOBAL_OFFSET_TABLE_ シンボルはセクション [%2d] '%s' "
-"を参照しています\n"
-
-#: src/elflint.c:978
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-msgstr ""
-"セクション [%2d] '%s': _GLOBAL_OFFSET_TABLE_ シンボル値 %#<PRIx64> は %s のセ"
-"クションアドレス %#<PRIx64> と一致しません\n"
-
-#: src/elflint.c:985
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-msgstr ""
-"セクション [%2d] '%s': _GLOBAL_OFFSET_TABLE_ シンボルサイズ %<PRIu64> は %s "
-"のセクションサイズ %<PRIu64> と一致しません\n"
-
-#: src/elflint.c:993
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-msgstr ""
-"セクション [%2d] '%s': _GLOBAL_OFFSET_TABLE_ シンボルはありますが、.got セク"
-"ションがありません\n"
-
-#: src/elflint.c:1009
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-msgstr ""
-"セクション [%2d] '%s': _DYNAMIC_ シンボル値 %#<PRIx64> は動的セグメントアドレ"
-"ス %#<PRIx64> と一致しません\n"
-
-#: src/elflint.c:1016
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-msgstr ""
-"セクション [%2d] '%s': _DYNAMIC シンボルサイズ %<PRIu64> は動的セグメントサイ"
-"ズ %<PRIu64> と一致しません\n"
-
-#: src/elflint.c:1029
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: 省略以外の可視性を持った動的シンボルテー"
-"ブル中のシンボル\n"
-
-#: src/elflint.c:1033
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-msgstr ""
-"セクション [%2d] '%s': シンボル %zu: st_other 中に設定された不明なビット\n"
-
-#: src/elflint.c:1082
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-msgstr "セクション [%2d] '%s': この RELA セクション用に使われる DT_RELCOUNT\n"
-
-#: src/elflint.c:1093 src/elflint.c:1145
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-msgstr ""
-"セクション [%2d] '%s': このセクション用には高すぎる DT_RELCOUNT 値 %d\n"
-
-#: src/elflint.c:1118 src/elflint.c:1170
-#, c-format
-msgid ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-msgstr ""
-"セクション [%2d] '%s': UT_RELOCOUNT で指定されたインデックス %d 後の相対リロ"
-"ケーション\n"
-
-#: src/elflint.c:1124 src/elflint.c:1176
-#, c-format
-msgid ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-msgstr ""
-"セクション [%2d] '%s': インデックス %zu での非相対リロケーション; %d 相対リ"
-"ロケーションで指定された DT_RELCOUNT\n"
-
-#: src/elflint.c:1136
-#, c-format
-msgid "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-msgstr "セクション [%2d] '%s': この REL セクション用に使われる DT_RELACOUNT\n"
-
-#: src/elflint.c:1218
-#, c-format
-msgid "section [%2d] '%s': invalid destination section index\n"
-msgstr "セクション [%2d] '%s': 不当な宛先セクションインデックス\n"
-
-#: src/elflint.c:1230
-#, c-format
-msgid "section [%2d] '%s': invalid destination section type\n"
-msgstr "セクション [%2d] '%s': 不当な宛先セクションタイプ\n"
-
-#: src/elflint.c:1238
-#, c-format
-msgid "section [%2d] '%s': sh_info should be zero\n"
-msgstr "セクション [%2d] '%s': sh_info はゼロでなければなりません\n"
-
-#: src/elflint.c:1245
-#, c-format
-msgid "section [%2d] '%s': no relocations for merge-able sections possible\n"
-msgstr ""
-"セクション [%2d] '%s': マージできるセクションのリロケーションは不可能です\n"
-
-#: src/elflint.c:1253
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-msgstr ""
-"セクション [%2d] '%s': セクション項目サイズが ElfXX_Rela と一致しません\n"
-
-#: src/elflint.c:1313
-#, c-format
-msgid "text relocation flag set but there is no read-only segment\n"
-msgstr ""
-"テキストリロケーションフラグが設定されていますが、読込み専用セグメントがあり"
-"ません\n"
-
-#: src/elflint.c:1340
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid type\n"
-msgstr "セクション [%2d] '%s': リロケーション %zu: 不当なタイプ\n"
-
-#: src/elflint.c:1348
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-msgstr ""
-"セクション [%2d] '%s': リロケーション %zu: このファイル用のリロケーションタイ"
-"プは不当です\n"
-
-#: src/elflint.c:1356
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-msgstr ""
-"セクション [%2d] '%s': リロケーション %zu: 不当なシンボルインデックス\n"
-
-#: src/elflint.c:1374
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can "
-"be used with %s\n"
-msgstr ""
-"セクション [%2d] '%s': リロケーション %zu: シンボル '_GLOBAL_OFFSET_TABLE_' "
-"のみが %s と一緒に使用できます\n"
-
-#: src/elflint.c:1391
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-msgstr "セクション [%2d] '%s': リロケーション %zu: オフセット境界外\n"
-
-#: src/elflint.c:1406
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-msgstr ""
-"セクション [%2d] '%s': リロケーション %zu: タイプ %s のシンボルに対するコピー"
-"リロケーション\n"
-
-#: src/elflint.c:1427
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-msgstr ""
-"セクション [%2d] '%s': リロケーション %zu: 読込み専用セクションが変更されまし"
-"たが、テキストリロケーションフラグが設定されていません\n"
-
-#: src/elflint.c:1442
-#, c-format
-msgid "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-msgstr ""
-"セクション [%2d] '%s': リロケーションがロードされたデータとロードされなかった"
-"データに対してです\n"
-
-#: src/elflint.c:1482 src/elflint.c:1533
-#, c-format
-msgid "section [%2d] '%s': cannot get relocation %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:1609
-#, c-format
-msgid "more than one dynamic section present\n"
-msgstr ""
-
-#: src/elflint.c:1628
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-msgstr ""
-
-#: src/elflint.c:1633 src/elflint.c:1918
-#, c-format
-msgid "section [%2d] '%s': sh_info not zero\n"
-msgstr ""
-
-#: src/elflint.c:1643
-#, c-format
-msgid "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:1651
-#, c-format
-msgid "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-msgstr ""
-
-#: src/elflint.c:1658
-#, c-format
-msgid "section [%2d] '%s': entry %zu: unknown tag\n"
-msgstr ""
-
-#: src/elflint.c:1669
-#, c-format
-msgid "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-msgstr ""
-
-#: src/elflint.c:1679
-#, c-format
-msgid "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-msgstr ""
-
-#: src/elflint.c:1697
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-msgstr ""
-
-#: src/elflint.c:1710
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] '%s' referenced by sh_link\n"
-msgstr ""
-
-#: src/elflint.c:1753
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:1768
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:1788 src/elflint.c:1816
-#, c-format
-msgid "section [%2d] '%s': contains %s entry but not %s\n"
-msgstr ""
-
-#: src/elflint.c:1800
-#, c-format
-msgid "section [%2d] '%s': mandatory tag %s not present\n"
-msgstr ""
-
-#: src/elflint.c:1809
-#, c-format
-msgid "section [%2d] '%s': no hash section present\n"
-msgstr ""
-
-#: src/elflint.c:1824 src/elflint.c:1831
-#, c-format
-msgid "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-msgstr ""
-
-#: src/elflint.c:1841 src/elflint.c:1845
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-msgstr ""
-
-#: src/elflint.c:1851
-#, c-format
-msgid "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-msgstr ""
-
-#: src/elflint.c:1862 src/elflint.c:1866 src/elflint.c:1870 src/elflint.c:1874
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in prelinked executable\n"
-msgstr ""
-
-#: src/elflint.c:1886
-#, c-format
-msgid ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-msgstr ""
-
-#: src/elflint.c:1896
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1901
-#, c-format
-msgid "cannot get data for symbol section\n"
-msgstr ""
-
-#: src/elflint.c:1904
-#, c-format
-msgid "section [%2d] '%s': entry size does not match Elf32_Word\n"
-msgstr ""
-
-#: src/elflint.c:1913
-#, c-format
-msgid "section [%2d] '%s': extended index table too small for symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1928
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index in section [%2zu] '%s' refers to "
-"same symbol table\n"
-msgstr ""
-
-#: src/elflint.c:1945
-#, c-format
-msgid "symbol 0 should have zero extended section index\n"
-msgstr ""
-
-#: src/elflint.c:1957
-#, c-format
-msgid "cannot get data for symbol %zu\n"
-msgstr ""
-
-#: src/elflint.c:1962
-#, c-format
-msgid "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-msgstr ""
-
-#: src/elflint.c:1978 src/elflint.c:2029
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-msgstr ""
-
-#: src/elflint.c:1990 src/elflint.c:2041
-#, c-format
-msgid "section [%2d] '%s': chain array too large\n"
-msgstr ""
-
-#: src/elflint.c:2004 src/elflint.c:2055
-#, c-format
-msgid "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2014
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2065
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2081
-#, c-format
-msgid "section [%2d] '%s': bitmask size not power of 2: %u\n"
-msgstr ""
-
-#: src/elflint.c:2092
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-msgstr ""
-
-#: src/elflint.c:2100
-#, c-format
-msgid "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-msgstr ""
-
-#: src/elflint.c:2132
-#, c-format
-msgid ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-msgstr ""
-
-#: src/elflint.c:2153
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-msgstr ""
-
-#: src/elflint.c:2164
-#, c-format
-msgid ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-msgstr ""
-
-#: src/elflint.c:2195
-#, c-format
-msgid "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2200
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-msgstr ""
-
-#: src/elflint.c:2206
-#, c-format
-msgid "section [%2d] '%s': bitmask does not match names in the hash table\n"
-msgstr ""
-
-#: src/elflint.c:2219
-#, c-format
-msgid "section [%2d] '%s': relocatable files cannot have hash tables\n"
-msgstr ""
-
-#: src/elflint.c:2237
-#, c-format
-msgid "section [%2d] '%s': hash table not for dynamic symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2245
-#, c-format
-msgid "section [%2d] '%s': hash table entry size incorrect\n"
-msgstr ""
-
-#: src/elflint.c:2250
-#, c-format
-msgid "section [%2d] '%s': not marked to be allocated\n"
-msgstr ""
-
-#: src/elflint.c:2255
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-msgstr ""
-
-#: src/elflint.c:2303
-#, c-format
-msgid "sh_link in hash sections [%2zu] '%s' and [%2zu] '%s' not identical\n"
-msgstr ""
-
-#: src/elflint.c:2381 src/elflint.c:2385
-#, c-format
-msgid "section [%2zu] '%s': reference to symbol index 0\n"
-msgstr ""
-
-#: src/elflint.c:2392
-#, c-format
-msgid ""
-"symbol %d referenced in new hash table in [%2zu] '%s' but not in old hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2404
-#, c-format
-msgid ""
-"symbol %d referenced in old hash table in [%2zu] '%s' but not in new hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2420
-#, c-format
-msgid "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-msgstr ""
-
-#: src/elflint.c:2440
-#, c-format
-msgid ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-msgstr ""
-
-#: src/elflint.c:2451
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol table: %s\n"
-msgstr ""
-
-#: src/elflint.c:2456
-#, c-format
-msgid "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2462
-#, c-format
-msgid "section [%2d] '%s': invalid symbol index in sh_info\n"
-msgstr ""
-
-#: src/elflint.c:2467
-#, c-format
-msgid "section [%2d] '%s': sh_flags not zero\n"
-msgstr ""
-
-#: src/elflint.c:2474
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol for signature\n"
-msgstr ""
-
-#: src/elflint.c:2479
-#, fuzzy, c-format
-msgid "section [%2d] '%s': signature symbol cannot be empty string\n"
-msgstr "セクション [%2d] '%s': セクションデータを得られません\n"
-
-#: src/elflint.c:2485
-#, c-format
-msgid "section [%2d] '%s': sh_flags not set correctly\n"
-msgstr ""
-
-#: src/elflint.c:2491
-#, c-format
-msgid "section [%2d] '%s': cannot get data: %s\n"
-msgstr ""
-
-#: src/elflint.c:2500
-#, c-format
-msgid "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-msgstr ""
-
-#: src/elflint.c:2505
-#, c-format
-msgid "section [%2d] '%s': section group without flags word\n"
-msgstr ""
-
-#: src/elflint.c:2511
-#, c-format
-msgid "section [%2d] '%s': section group without member\n"
-msgstr ""
-
-#: src/elflint.c:2515
-#, c-format
-msgid "section [%2d] '%s': section group with only one member\n"
-msgstr ""
-
-#: src/elflint.c:2526
-#, c-format
-msgid "section [%2d] '%s': unknown section group flags\n"
-msgstr ""
-
-#: src/elflint.c:2538
-#, c-format
-msgid "section [%2d] '%s': section index %Zu out of range\n"
-msgstr ""
-
-#: src/elflint.c:2547
-#, c-format
-msgid "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-msgstr ""
-
-#: src/elflint.c:2554
-#, c-format
-msgid "section [%2d] '%s': section group contains another group [%2d] '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2560
-#, c-format
-msgid ""
-"section [%2d] '%s': element %Zu references section [%2d] '%s' without "
-"SHF_GROUP flag set\n"
-msgstr ""
-
-#: src/elflint.c:2567
-#, c-format
-msgid "section [%2d] '%s' is contained in more than one section group\n"
-msgstr ""
-
-#: src/elflint.c:2756
-#, c-format
-msgid ""
-"section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no "
-"dynamic symbol table\n"
-msgstr ""
-
-#: src/elflint.c:2768
-#, c-format
-msgid ""
-"section [%2d] '%s' has different number of entries than symbol table [%2d] "
-"'%s'\n"
-msgstr ""
-
-#: src/elflint.c:2784
-#, c-format
-msgid "section [%2d] '%s': symbol %d: cannot read version data\n"
-msgstr ""
-
-#: src/elflint.c:2800
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-msgstr ""
-
-#: src/elflint.c:2808
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with version\n"
-msgstr ""
-
-#: src/elflint.c:2822
-#, c-format
-msgid "section [%2d] '%s': symbol %d: invalid version index %d\n"
-msgstr ""
-
-#: src/elflint.c:2827
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-msgstr ""
-
-#: src/elflint.c:2837
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-msgstr ""
-
-#: src/elflint.c:2889
-#, c-format
-msgid "more than one version reference section present\n"
-msgstr ""
-
-#: src/elflint.c:2897 src/elflint.c:3026
-#, c-format
-msgid "section [%2d] '%s': sh_link does not link to string table\n"
-msgstr ""
-
-#: src/elflint.c:2920 src/elflint.c:3078
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong version %d\n"
-msgstr ""
-
-#: src/elflint.c:2926 src/elflint.c:3084
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:2934
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid file reference\n"
-msgstr ""
-
-#: src/elflint.c:2942
-#, c-format
-msgid "section [%2d] '%s': entry %d references unknown dependency\n"
-msgstr ""
-
-#: src/elflint.c:2954
-#, c-format
-msgid "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-msgstr ""
-
-#: src/elflint.c:2961
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-msgstr ""
-
-#: src/elflint.c:2968
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-msgstr ""
-
-#: src/elflint.c:2978
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name '%s'\n"
-msgstr ""
-
-#: src/elflint.c:2989
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-msgstr ""
-
-#: src/elflint.c:3005 src/elflint.c:3163
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-msgstr ""
-
-#: src/elflint.c:3018
-#, c-format
-msgid "more than one version definition section present\n"
-msgstr ""
-
-#: src/elflint.c:3063
-#, c-format
-msgid "section [%2d] '%s': more than one BASE definition\n"
-msgstr ""
-
-#: src/elflint.c:3067
-#, c-format
-msgid "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-msgstr ""
-
-#: src/elflint.c:3073
-#, c-format
-msgid "section [%2d] '%s': entry %d has unknown flag\n"
-msgstr ""
-
-#: src/elflint.c:3097
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid name reference\n"
-msgstr ""
-
-#: src/elflint.c:3104
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-msgstr ""
-
-#: src/elflint.c:3113
-#, c-format
-msgid "section [%2d] '%s': entry %d has duplicate version name '%s'\n"
-msgstr ""
-
-#: src/elflint.c:3132
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:3147
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-msgstr ""
-
-#: src/elflint.c:3169
-#, c-format
-msgid "section [%2d] '%s': no BASE definition\n"
-msgstr ""
-
-#: src/elflint.c:3185
-#, c-format
-msgid "section [%2d] '%s': unknown parent version '%s'\n"
-msgstr ""
-
-#: src/elflint.c:3198
-#, c-format
-msgid "section [%2d] '%s': empty object attributes section\n"
-msgstr ""
-
-#: src/elflint.c:3219
-#, c-format
-msgid "section [%2d] '%s': unrecognized attribute format\n"
-msgstr ""
-
-#: src/elflint.c:3235
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3244
-#, c-format
-msgid "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3256
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-msgstr ""
-
-#: src/elflint.c:3273
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-msgstr ""
-
-#: src/elflint.c:3282
-#, c-format
-msgid "section [%2d] '%s': offset %zu: truncated attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3291
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-msgstr ""
-
-#: src/elflint.c:3304
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-msgstr ""
-
-#: src/elflint.c:3315
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-msgstr ""
-
-#: src/elflint.c:3333
-#, c-format
-msgid "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-msgstr ""
-
-#: src/elflint.c:3344
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-msgstr ""
-
-#: src/elflint.c:3357
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-msgstr ""
-
-#: src/elflint.c:3361
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:3371
-#, c-format
-msgid "section [%2d] '%s': offset %zu: vendor '%s' unknown\n"
-msgstr ""
-
-#: src/elflint.c:3377
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-msgstr ""
-
-#: src/elflint.c:3466
-#, c-format
-msgid "cannot get section header of zeroth section\n"
-msgstr ""
-
-#: src/elflint.c:3470
-#, c-format
-msgid "zeroth section has nonzero name\n"
-msgstr ""
-
-#: src/elflint.c:3472
-#, c-format
-msgid "zeroth section has nonzero type\n"
-msgstr ""
-
-#: src/elflint.c:3474
-#, c-format
-msgid "zeroth section has nonzero flags\n"
-msgstr ""
-
-#: src/elflint.c:3476
-#, c-format
-msgid "zeroth section has nonzero address\n"
-msgstr ""
-
-#: src/elflint.c:3478
-#, c-format
-msgid "zeroth section has nonzero offset\n"
-msgstr ""
-
-#: src/elflint.c:3480
-#, c-format
-msgid "zeroth section has nonzero align value\n"
-msgstr ""
-
-#: src/elflint.c:3482
-#, c-format
-msgid "zeroth section has nonzero entry size value\n"
-msgstr ""
-
-#: src/elflint.c:3485
-#, c-format
-msgid ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-msgstr ""
-
-#: src/elflint.c:3489
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-msgstr ""
-
-#: src/elflint.c:3493
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-msgstr ""
-
-#: src/elflint.c:3510
-#, c-format
-msgid "cannot get section header for section [%2zu] '%s': %s\n"
-msgstr ""
-
-#: src/elflint.c:3519
-#, c-format
-msgid "section [%2zu]: invalid name\n"
-msgstr ""
-
-#: src/elflint.c:3546
-#, c-format
-msgid "section [%2d] '%s' has wrong type: expected %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3562
-#, c-format
-msgid "section [%2zu] '%s' has wrong flags: expected %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3579
-#, c-format
-msgid ""
-"section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"
-msgstr ""
-
-#: src/elflint.c:3597
-#, c-format
-msgid "section [%2zu] '%s' present in object file\n"
-msgstr ""
-
-#: src/elflint.c:3603 src/elflint.c:3635
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"
-msgstr ""
-
-#: src/elflint.c:3608 src/elflint.c:3640
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-msgstr ""
-
-#: src/elflint.c:3616
-#, c-format
-msgid ""
-"section [%2zu] '%s' is extension section index table in non-object file\n"
-msgstr ""
-
-#: src/elflint.c:3659
-#, c-format
-msgid "section [%2zu] '%s': size not multiple of entry size\n"
-msgstr ""
-
-#: src/elflint.c:3664
-#, c-format
-msgid "cannot get section header\n"
-msgstr ""
-
-#: src/elflint.c:3674
-#, c-format
-msgid "section [%2zu] '%s' has unsupported type %d\n"
-msgstr ""
-
-#: src/elflint.c:3688
-#, c-format
-msgid ""
-"section [%2zu] '%s' contains invalid processor-specific flag(s) %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:3695
-#, c-format
-msgid "section [%2zu] '%s' contains unknown flag(s) %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:3703
-#, c-format
-msgid "section [%2zu] '%s': thread-local data sections address not zero\n"
-msgstr ""
-
-#: src/elflint.c:3711
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in link value\n"
-msgstr ""
-
-#: src/elflint.c:3716
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in info value\n"
-msgstr ""
-
-#: src/elflint.c:3723
-#, c-format
-msgid "section [%2zu] '%s': strings flag set without merge flag\n"
-msgstr ""
-
-#: src/elflint.c:3728
-#, c-format
-msgid "section [%2zu] '%s': merge flag set but entry size is zero\n"
-msgstr ""
-
-#: src/elflint.c:3746
-#, c-format
-msgid "section [%2zu] '%s' has unexpected type %d for an executable section\n"
-msgstr ""
-
-#: src/elflint.c:3755
-#, c-format
-msgid "section [%2zu] '%s' is both executable and writable\n"
-msgstr ""
-
-#: src/elflint.c:3784
-#, c-format
-msgid ""
-"section [%2zu] '%s' not fully contained in segment of program header entry "
-"%d\n"
-msgstr ""
-
-#: src/elflint.c:3792
-#, c-format
-msgid ""
-"section [%2zu] '%s' has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-msgstr ""
-
-#: src/elflint.c:3801
-#, c-format
-msgid ""
-"section [%2zu] '%s' has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-msgstr ""
-
-#: src/elflint.c:3812
-#, c-format
-msgid "section [%2zu] '%s' is executable in nonexecutable segment %d\n"
-msgstr ""
-
-#: src/elflint.c:3822
-#, c-format
-msgid "section [%2zu] '%s' is writable in unwritable segment %d\n"
-msgstr ""
-
-#: src/elflint.c:3832
-#, c-format
-msgid ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:3838
-#, c-format
-msgid ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-msgstr ""
-
-#: src/elflint.c:3846
-#, c-format
-msgid ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-msgstr ""
-
-#: src/elflint.c:3897
-#, c-format
-msgid "more than one version symbol table present\n"
-msgstr ""
-
-#: src/elflint.c:3920
-#, c-format
-msgid "INTERP program header entry but no .interp section\n"
-msgstr ""
-
-#: src/elflint.c:3931
-#, c-format
-msgid ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-msgstr ""
-
-#: src/elflint.c:3937
-#, c-format
-msgid "loadable segment [%u] is writable but contains no writable sections\n"
-msgstr ""
-
-#: src/elflint.c:3948
-#, c-format
-msgid ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-msgstr ""
-
-#: src/elflint.c:3961
-#, c-format
-msgid "duplicate version index %d\n"
-msgstr ""
-
-#: src/elflint.c:3975
-#, c-format
-msgid ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-msgstr ""
-
-#: src/elflint.c:4024
-#, c-format
-msgid "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-msgstr ""
-
-#: src/elflint.c:4028
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4051
-#, c-format
-msgid "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4055
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-
-#: src/elflint.c:4072
-#, c-format
-msgid "phdr[%d]: no note entries defined for the type of file\n"
-msgstr ""
-
-#: src/elflint.c:4091
-#, c-format
-msgid "phdr[%d]: cannot get content of note section: %s\n"
-msgstr ""
-
-#: src/elflint.c:4094
-#, c-format
-msgid "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-msgstr ""
-
-#: src/elflint.c:4115
-#, c-format
-msgid "section [%2d] '%s': no note entries defined for the type of file\n"
-msgstr ""
-
-#: src/elflint.c:4122
-#, c-format
-msgid "section [%2d] '%s': cannot get content of note section\n"
-msgstr ""
-
-#: src/elflint.c:4125
-#, c-format
-msgid "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-msgstr ""
-
-#: src/elflint.c:4143
-#, c-format
-msgid ""
-"only executables, shared objects, and core files can have program headers\n"
-msgstr ""
-
-#: src/elflint.c:4158
-#, c-format
-msgid "cannot get program header entry %d: %s\n"
-msgstr ""
-
-#: src/elflint.c:4167
-#, c-format
-msgid "program header entry %d: unknown program header entry type %#<PRIx64>\n"
-msgstr ""
-
-#: src/elflint.c:4178
-#, c-format
-msgid "more than one INTERP entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4186
-#, c-format
-msgid "more than one TLS entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4193
-#, c-format
-msgid "static executable cannot have dynamic sections\n"
-msgstr ""
-
-#: src/elflint.c:4207
-#, c-format
-msgid "dynamic section reference in program header has wrong offset\n"
-msgstr ""
-
-#: src/elflint.c:4210
-#, c-format
-msgid "dynamic section size mismatch in program and section header\n"
-msgstr ""
-
-#: src/elflint.c:4220
-#, c-format
-msgid "more than one GNU_RELRO entry in program header\n"
-msgstr ""
-
-#: src/elflint.c:4241
-#, c-format
-msgid "loadable segment GNU_RELRO applies to is not writable\n"
-msgstr ""
-
-#: src/elflint.c:4244
-#, c-format
-msgid "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-msgstr ""
-
-#: src/elflint.c:4252 src/elflint.c:4275
-#, c-format
-msgid "%s segment not contained in a loaded segment\n"
-msgstr ""
-
-#: src/elflint.c:4281
-#, c-format
-msgid "program header offset in ELF header and PHDR entry do not match"
-msgstr ""
-
-#: src/elflint.c:4305
-#, c-format
-msgid "call frame search table reference in program header has wrong offset\n"
-msgstr ""
-
-#: src/elflint.c:4308
-#, c-format
-msgid "call frame search table size mismatch in program and section header\n"
-msgstr ""
-
-#: src/elflint.c:4321
-#, c-format
-msgid "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-msgstr ""
-
-#: src/elflint.c:4329
-#, c-format
-msgid "call frame search table must be allocated\n"
-msgstr ""
-
-#: src/elflint.c:4332
-#, c-format
-msgid "section [%2zu] '%s' must be allocated\n"
-msgstr ""
-
-#: src/elflint.c:4336
-#, c-format
-msgid "call frame search table must not be writable\n"
-msgstr ""
-
-#: src/elflint.c:4339
-#, c-format
-msgid "section [%2zu] '%s' must not be writable\n"
-msgstr ""
-
-#: src/elflint.c:4344
-#, c-format
-msgid "call frame search table must not be executable\n"
-msgstr ""
-
-#: src/elflint.c:4347
-#, c-format
-msgid "section [%2zu] '%s' must not be executable\n"
-msgstr ""
-
-#: src/elflint.c:4358
-#, c-format
-msgid "program header entry %d: file size greater than memory size\n"
-msgstr ""
-
-#: src/elflint.c:4365
-#, c-format
-msgid "program header entry %d: alignment not a power of 2\n"
-msgstr ""
-
-#: src/elflint.c:4368
-#, c-format
-msgid ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-msgstr ""
-
-#: src/elflint.c:4381
-#, c-format
-msgid ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-msgstr ""
-
-#: src/elflint.c:4415
-#, c-format
-msgid "cannot read ELF header: %s\n"
-msgstr ""
-
-#: src/elflint.c:4441
-#, c-format
-msgid "text relocation flag set but not needed\n"
-msgstr ""
-
-#: src/findtextrel.c:62
-msgid "Input Selection:"
-msgstr ""
-
-#: src/findtextrel.c:63
-msgid "Prepend PATH to all file names"
-msgstr ""
-
-#: src/findtextrel.c:65
-msgid "Use PATH as root of debuginfo hierarchy"
-msgstr ""
-
-#: src/findtextrel.c:72
-msgid "Locate source of text relocations in FILEs (a.out by default)."
-msgstr ""
-
-#: src/findtextrel.c:76 src/nm.c:108 src/objdump.c:72 src/size.c:84
-#: src/strings.c:84 src/strip.c:96
-msgid "[FILE...]"
-msgstr "[ふぁいる...]"
-
-#: src/findtextrel.c:238
-#, c-format
-msgid "cannot get ELF header '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:249
-#, c-format
-msgid "'%s' is not a DSO or PIE"
-msgstr ""
-
-#: src/findtextrel.c:269
-#, c-format
-msgid "getting get section header of section %zu: %s"
-msgstr ""
-
-#: src/findtextrel.c:292
-#, c-format
-msgid "cannot read dynamic section: %s"
-msgstr ""
-
-#: src/findtextrel.c:313
-#, c-format
-msgid "no text relocations reported in '%s'"
-msgstr ""
-
-#: src/findtextrel.c:325
-#, c-format
-msgid "while reading ELF file"
-msgstr ""
-
-#: src/findtextrel.c:329
-#, fuzzy, c-format
-msgid "cannot get program header count: %s"
-msgstr "プログラムヘッダーを得られません: %s"
-
-#: src/findtextrel.c:340 src/findtextrel.c:357
-#, fuzzy, c-format
-msgid "cannot get program header index at offset %zd: %s"
-msgstr "プログラムヘッダーを得られません: %s"
-
-#: src/findtextrel.c:409
-#, c-format
-msgid "cannot get section header of section %Zu: %s"
-msgstr ""
-
-#: src/findtextrel.c:421
-#, c-format
-msgid "cannot get symbol table section %zu in '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:441 src/findtextrel.c:464
-#, c-format
-msgid "cannot get relocation at index %d in section %zu in '%s': %s"
-msgstr ""
-
-#: src/findtextrel.c:529
-#, c-format
-msgid "%s not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:582
-#, c-format
-msgid ""
-"the file containing the function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:589 src/findtextrel.c:609
-#, c-format
-msgid ""
-"the file containing the function '%s' might not be compiled with -fpic/-"
-"fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:597
-#, c-format
-msgid ""
-"either the file containing the function '%s' or the file containing the "
-"function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-
-#: src/findtextrel.c:617
-#, c-format
-msgid ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-msgstr ""
-
-#: src/i386_ld.c:202
-#, c-format
-msgid "cannot allocate PLT section: %s"
-msgstr "PLT セクションを割り当てられません: %s"
-
-#: src/i386_ld.c:224
-#, c-format
-msgid "cannot allocate PLTREL section: %s"
-msgstr "PLTREL セクションを割り当てられません: %s"
-
-#: src/i386_ld.c:245
-#, c-format
-msgid "cannot allocate GOT section: %s"
-msgstr "GOT セクションを割り当てられません: %s"
-
-#: src/i386_ld.c:266
-#, c-format
-msgid "cannot allocate GOTPLT section: %s"
-msgstr "GOTPLT セクションを割り当てられません: %s"
-
-#: src/i386_ld.c:653
-#, c-format
-msgid "initial-executable TLS relocation cannot be used "
-msgstr "最初に実行される TLS リロケーションが使用されません "
-
-#: src/ld.c:79
-msgid "Input File Control:"
-msgstr "入力ファイル制御:"
-
-#: src/ld.c:81
-msgid "Include whole archives in the output from now on."
-msgstr "今から出力中の全アーカイブを含める。"
-
-#: src/ld.c:83
-#, fuzzy
-msgid "Stop including the whole archives in the output."
-msgstr "出力中の全アーカイブを含めるのを止める。"
-
-#: src/ld.c:84 src/ld.c:98 src/ld.c:176
-msgid "FILE"
-msgstr "ふぁいる"
-
-#: src/ld.c:85
-msgid "Start a group."
-msgstr "グループの開始。"
-
-#: src/ld.c:86
-msgid "End a group."
-msgstr "グループの終了。"
-
-#: src/ld.c:87
-msgid "PATH"
-msgstr "パス"
-
-#: src/ld.c:88
-msgid "Add PATH to list of directories files are searched in."
-msgstr "ファイルが検索されるディレクトリーの一覧にPATHを追加する。"
-
-#: src/ld.c:90
-msgid "Only set DT_NEEDED for following dynamic libs if actually used"
-msgstr ""
-"実際に使用されるのなら以下のダイナミックライブラリーに DT_NEEDED を設定する"
-
-#: src/ld.c:92
-msgid "Always set DT_NEEDED for following dynamic libs"
-msgstr "以下のダイナミックライブラリーに常に DT_NEEDED を設定する"
-
-#: src/ld.c:94
-msgid "Ignore LD_LIBRARY_PATH environment variable."
-msgstr "LD_LIBRARY_PATH 環境変数を無視する。"
-
-#: src/ld.c:97
-msgid "Output File Control:"
-msgstr "出力ファイル制御:"
-
-#: src/ld.c:98
-msgid "Place output in FILE."
-msgstr "出力を ふぁいる に置く。"
-
-#: src/ld.c:101
-msgid "Object is marked to not use default search path at runtime."
-msgstr "オブジェクトは実行時に省略値の検索パスを使わないと記されています。"
-
-#: src/ld.c:103
-msgid "Same as --whole-archive."
-msgstr "--whole-archive と同じ。"
-
-#: src/ld.c:104
-msgid ""
-"Default rules of extracting from archive; weak references are not enough."
-msgstr ""
-"アーカイブから抽出する時の省略値の規則: 弱い参照では十分ではありません。"
-
-#: src/ld.c:108
-msgid "Weak references cause extraction from archive."
-msgstr "弱い参照はアーカイブから抽出します。"
-
-#: src/ld.c:110
-msgid "Allow multiple definitions; first is used."
-msgstr "複数の定義を認めます: 最初を使用します。"
-
-#: src/ld.c:112
-msgid "Disallow/allow undefined symbols in DSOs."
-msgstr "DSO 中の未定義のシンボルを認めない/認める。"
-
-#: src/ld.c:115
-msgid "Object requires immediate handling of $ORIGIN."
-msgstr "オブジェクトには %ORIGIN の直接ハンドルが必要です。"
-
-#: src/ld.c:117
-msgid "Relocation will not be processed lazily."
-msgstr "リロケーションは遅延処理されません。"
-
-#: src/ld.c:119
-msgid "Object cannot be unloaded at runtime."
-msgstr "オプションは実行時にはアンロードできません。"
-
-#: src/ld.c:121
-msgid "Mark object to be initialized first."
-msgstr "オブジェクトは最初に初期化されると記します。"
-
-#: src/ld.c:123
-msgid "Enable/disable lazy-loading flag for following dependencies."
-msgstr "以下の依存性のための遅延ロードを有効/無効にします。"
-
-#: src/ld.c:125
-msgid "Mark object as not loadable with 'dlopen'."
-msgstr "'dlopen' でロードできないと記します。"
-
-#: src/ld.c:127
-msgid "Ignore/record dependencies on unused DSOs."
-msgstr "使用されない DSO の依存性を無視/記録します。"
-
-#: src/ld.c:129
-msgid "Generated DSO will be a system library."
-msgstr "生成された DSO はシステムライブラリーになります。"
-
-#: src/ld.c:130
-msgid "ADDRESS"
-msgstr "アドレス"
-
-#: src/ld.c:130
-msgid "Set entry point address."
-msgstr "入口点アドレスを設定します。"
-
-#: src/ld.c:133
-msgid "Do not link against shared libraries."
-msgstr "共用ライブラリーに対してリンクを設定してはいけません。"
-
-#: src/ld.c:136
-msgid "Prefer linking against shared libraries."
-msgstr "共用ライブラリーに対してリンクを好みます。"
-
-#: src/ld.c:137
-msgid "Export all dynamic symbols."
-msgstr "全ダイナミックシンボルをエクスポートします。"
-
-#: src/ld.c:138
-msgid "Strip all symbols."
-msgstr "全シンボルを取り除きます。"
-
-#: src/ld.c:139
-msgid "Strip debugging symbols."
-msgstr "デバッグシンボルを取り除きます。"
-
-#: src/ld.c:141
-msgid "Assume pagesize for the target system to be SIZE."
-msgstr "ターゲットシステムのページサイズを SIZE と見做します。"
-
-#: src/ld.c:143
-msgid "Set runtime DSO search path."
-msgstr "実行時 DSO 検索パスを設定します。"
-
-#: src/ld.c:146
-msgid "Set link time DSO search path."
-msgstr "リンク時 DSO 検索パスを設定します。"
-
-#: src/ld.c:147
-msgid "Generate dynamic shared object."
-msgstr "動的共用オブジェクトを生成します。"
-
-#: src/ld.c:148
-msgid "Generate relocatable object."
-msgstr "リロケータブルオブジェクトを生成します。"
-
-#: src/ld.c:151
-msgid "Causes symbol not assigned to a version be reduced to local."
-msgstr "バージョンが指定されていないシンボルはローカルに減少します。"
-
-#: src/ld.c:152
-msgid "Remove unused sections."
-msgstr "使用されていないセクションを取り除きます。"
-
-#: src/ld.c:155
-msgid "Don't remove unused sections."
-msgstr "利用されていていセクションを取り除いてはいけません。"
-
-#: src/ld.c:156
-msgid "Set soname of shared object."
-msgstr "共用ライブラリーの so 名を設定します。"
-
-#: src/ld.c:157
-msgid "Set the dynamic linker name."
-msgstr "動的リンカーの名前を設定します。"
-
-#: src/ld.c:160
-msgid "Add/suppress addition indentifying link-editor to .comment section."
-msgstr ""
-".comment セクションにリンクエディターを識別する追加情報を追加/抑止します。"
-
-#: src/ld.c:163
-msgid "Create .eh_frame_hdr section"
-msgstr ".eh_frame_hdr セクションを生成します"
-
-#: src/ld.c:165
-msgid "Set hash style to sysv, gnu or both."
-msgstr "ハッシュ形式を sysvか、gnu、両方のどれかに設定します。"
-
-#: src/ld.c:167
-msgid "Generate build ID note (md5, sha1 (default), uuid)."
-msgstr "ビルド ID ノート (md5、sh1 (省略値)、uuid) を生成します。"
-
-#: src/ld.c:169
-msgid "Linker Operation Control:"
-msgstr "リンカー操作制御:"
-
-#: src/ld.c:170
-msgid "Verbose messages."
-msgstr "饒舌メッセージ。"
-
-#: src/ld.c:171
-msgid "Trace file opens."
-msgstr "ファイルのオープンを追跡します。"
-
-#: src/ld.c:173
-msgid "Trade speed for less memory usage"
-msgstr "速度と引き換えにメモリー使用量を減らします"
-
-#: src/ld.c:174
-msgid "LEVEL"
-msgstr "れべる"
-
-#: src/ld.c:175
-msgid "Set optimization level to LEVEL."
-msgstr "最適化レベルを れべる に設定します。"
-
-#: src/ld.c:176
-msgid "Use linker script in FILE."
-msgstr "ふぁいる でリンカースクリプトを使用します。"
-
-#: src/ld.c:179
-msgid "Select to get parser debug information"
-msgstr "パーサーのデバッグ情報を得るように選択します"
-
-#: src/ld.c:182
-msgid "Read version information from FILE."
-msgstr "ふぁいる からバージョン情報を読みます。"
-
-#: src/ld.c:183
-msgid "Set emulation to NAME."
-msgstr "エミュレーションを なまえ に設定します。"
-
-#: src/ld.c:189
-msgid "Combine object and archive files."
-msgstr "オブジェクトとアーカイブファイルを一体化します。"
-
-#: src/ld.c:192
-msgid "[FILE]..."
-msgstr "[ふぁいる]..."
-
-#: src/ld.c:325
-#, c-format
-msgid "At least one input file needed"
-msgstr "少なくとも 1 つの入力ファイルが必要です"
-
-#: src/ld.c:341
-#, c-format
-msgid "error while preparing linking"
-msgstr "リンクの準備中にエラー"
-
-#: src/ld.c:348
-#, c-format
-msgid "cannot open linker script '%s'"
-msgstr "リンカースクリプト '%s' を開けません"
-
-#: src/ld.c:389
-#, c-format
-msgid "-( without matching -)"
-msgstr "-( 何も一致しない -)"
-
-#: src/ld.c:564 src/ld.c:602
-#, c-format
-msgid "only one option of -G and -r is allowed"
-msgstr "-G か -r のどちらかひとつのオプションだけ認められます"
-
-#: src/ld.c:586
-#, c-format
-msgid "more than one '-m' parameter"
-msgstr "-m パラメーターが1つを越えています"
-
-#: src/ld.c:596 src/ld.c:1005
-#, c-format
-msgid "unknown option `-%c %s'"
-msgstr "不明なオプション `%c %s'"
-
-#: src/ld.c:638
-#, c-format
-msgid "invalid page size value '%s': ignored"
-msgstr "不当なページサイズ値 '%s': 無視しました"
-
-#: src/ld.c:679
-#, c-format
-msgid "invalid hash style '%s'"
-msgstr "不当なハッシュスタイル '%s'"
-
-#: src/ld.c:689
-#, c-format
-msgid "invalid build-ID style '%s'"
-msgstr "不当なビルド-ID スタイル '%s'"
-
-#: src/ld.c:777
-#, c-format
-msgid "More than one output file name given."
-msgstr "ひとつを越える出力ファイル名が与えられました。"
-
-#: src/ld.c:794
-#, c-format
-msgid "Invalid optimization level `%s'"
-msgstr "不当な最適化レベル `%s'"
-
-#: src/ld.c:842
-#, c-format
-msgid "nested -( -) groups are not allowed"
-msgstr "ネストされた -( -) グループは認められません"
-
-#: src/ld.c:861
-#, c-format
-msgid "-) without matching -("
-msgstr "対応する -( がない -)"
-
-#: src/ld.c:1038
-#, c-format
-msgid "unknown option '-%c %s'"
-msgstr "不明なオプション '-%c %s'"
-
-#: src/ld.c:1142
-#, c-format
-msgid "could not find input file to determine output file format"
-msgstr "出力ファイル形式を決定するための入力ファイルが見つかりません"
-
-#: src/ld.c:1144
-#, c-format
-msgid "try again with an appropriate '-m' parameter"
-msgstr "適切な '-m' パラメーターを付けて再試行してください"
-
-#: src/ld.c:1438
-#, c-format
-msgid "cannot read version script '%s'"
-msgstr "バージョンスクリプト '%s' を読めません"
-
-#: src/ld.c:1504 src/ld.c:1543
-#, c-format
-msgid "duplicate definition of '%s' in linker script"
-msgstr "リンカースクリプトに '%s' の重複定義"
-
-#: src/ldgeneric.c:201 src/ldgeneric.c:5141
-#, c-format
-msgid "cannot create string table"
-msgstr "文字列テーブルを生成できません"
-
-#: src/ldgeneric.c:247
-#, c-format
-msgid "cannot load ld backend library '%s': %s"
-msgstr "ld バックエンドライブラリー '%s' をロードできません: %s"
-
-#: src/ldgeneric.c:257
-#, c-format
-msgid "cannot find init function in ld backend library '%s': %s"
-msgstr "ld バックエンドライブラリー '%s' に初期化機能が見つかりません: %s "
-
-#: src/ldgeneric.c:300
-#, c-format
-msgid "%s listed more than once as input"
-msgstr "入力に %s が 1回を越えて書かれています"
-
-#: src/ldgeneric.c:414
-#, c-format
-msgid "%s (for -l%s)\n"
-msgstr "%s (-l%s 用)\n"
-
-#: src/ldgeneric.c:415
-#, c-format
-msgid "%s (for DT_NEEDED %s)\n"
-msgstr "%s (DT_NEEDED %s 用)\n"
-
-#: src/ldgeneric.c:563
-#, c-format
-msgid "Warning: type of `%s' changed from %s in %s to %s in %s"
-msgstr ""
-"警告: `%1$s' のタイプが %3$s の %2$s から %5$s の %4$s に変更されました"
-
-#: src/ldgeneric.c:576
-#, c-format
-msgid "Warning: size of `%s' changed from %<PRIu64> in %s to %<PRIu64> in %s"
-msgstr ""
-"警告: `%1$s の大きさが %3$s の %2$<PRIu64> から %5$s の %4$<PRIu64> に変更さ"
-"れました"
-
-#: src/ldgeneric.c:651 src/ldgeneric.c:1112 src/readelf.c:527
-#: src/readelf.c:829 src/strip.c:568
-#, c-format
-msgid "cannot determine number of sections: %s"
-msgstr "セクション数を決定できません: %s"
-
-#: src/ldgeneric.c:667
-#, c-format
-msgid "(%s+%#<PRIx64>): multiple definition of %s `%s'\n"
-msgstr "(%s+%#<PRIx64>): %s の複数定義 '%s'\n"
-
-#: src/ldgeneric.c:690
-#, c-format
-msgid "(%s+%#<PRIx64>): first defined here\n"
-msgstr "(%s+%#<PRIx64>): 最初の定義はここ\n"
-
-#: src/ldgeneric.c:809
-#, c-format
-msgid "%s: cannot get section group data: %s"
-msgstr "%s: セクショングループデータを得られません: %s"
-
-#: src/ldgeneric.c:830
-#, c-format
-msgid "%s: section '%s' with group flag set does not belong to any group"
-msgstr ""
-"%s: グループフラグが設定されているセクション '%s' はどのグループにも属してい"
-"ません"
-
-#: src/ldgeneric.c:875
-#, c-format
-msgid "%s: section [%2d] '%s' is not in the correct section group"
-msgstr "%s: セクション [%2d] '%s& は正しいセクショングループに入っていません"
-
-#: src/ldgeneric.c:1146 src/ldgeneric.c:1403 src/ldgeneric.c:1412
-#: src/ldgeneric.c:1471 src/ldgeneric.c:1480 src/ldgeneric.c:1743
-#: src/ldgeneric.c:1995
-#, c-format
-msgid "%s: invalid ELF file (%s:%d)\n"
-msgstr "%s: 不当な ELF ファイル (%s:%d)\n"
-
-#: src/ldgeneric.c:1240
-#, c-format
-msgid "%s: only files of type ET_REL might contain section groups"
-msgstr "%s: タイプ ET_REL のファイルのみセクショングループを含むことができます"
-
-#: src/ldgeneric.c:1292
-#, c-format
-msgid "%s: cannot determine signature of section group [%2zd] '%s': %s"
-msgstr "%s: セクショングループ [%2zd] '%s' の署名を決定できません: %s"
-
-#: src/ldgeneric.c:1304
-#, c-format
-msgid "%s: cannot get content of section group [%2zd] '%s': %s'"
-msgstr "%s: セクショングループ [%2zd] '%s' の内容を得られません: %s'"
-
-#: src/ldgeneric.c:1318
-#, c-format
-msgid ""
-"%s: group member %zu of section group [%2zd] '%s' has too high index: "
-"%<PRIu32>"
-msgstr ""
-"%1$s: セクショングループ [%3$2zd] '%4$s' のグループメンバー %2$zu は大きすぎ"
-"るインデックスを持っています: %5$<PRIu32>"
-
-#: src/ldgeneric.c:1340
-#, c-format
-msgid "%s: section '%s' has unknown type: %d"
-msgstr "%s: セクション '%s' は不明なタイプを持っています: %d"
-
-#: src/ldgeneric.c:1719
-#, c-format
-msgid "cannot get descriptor for ELF file (%s:%d): %s\n"
-msgstr "ELF ファイル (%s:%d) のための記述子を得られません: %s\n"
-
-#: src/ldgeneric.c:1889
-#, c-format
-msgid "cannot read archive `%s': %s"
-msgstr "アーカイブ `%s' を読めません: %s"
-
-#: src/ldgeneric.c:2010
-#, c-format
-msgid "file of type %s cannot be linked in\n"
-msgstr "%s のファイルタイプがリンクされていません\n"
-
-#: src/ldgeneric.c:2022
-#, c-format
-msgid "%s: input file incompatible with ELF machine type %s\n"
-msgstr "%s: 入力ファイルは ELF マシンタイプ %s と互換性がありません\n"
-
-#: src/ldgeneric.c:2034
-#, c-format
-msgid "%s: cannot get section header string table index: %s\n"
-msgstr "%s: セクションヘッダー文字列テーブルインデックスを得られません: %s\n"
-
-#: src/ldgeneric.c:2063
-#, c-format
-msgid "cannot use DSO '%s' when generating relocatable object file"
-msgstr "リロケータブルオブジェクトファイル生成時に DSO '%s' を使えません"
-
-#: src/ldgeneric.c:2148
-#, c-format
-msgid "input file '%s' ignored"
-msgstr "入力ファイル '%s' を無視しました"
-
-#: src/ldgeneric.c:2362
-#, c-format
-msgid "undefined symbol `%s' in %s"
-msgstr "%2$s 中に未定義のシンボル `%1$s'"
-
-#: src/ldgeneric.c:2692
-#, c-format
-msgid "cannot create ELF descriptor for output file: %s"
-msgstr "出力ファイル用の ELF 記述子を生成できません: %s"
-
-#: src/ldgeneric.c:2699
-#, c-format
-msgid "could not create ELF header for output file: %s"
-msgstr "出力ファイル用の ELF ヘッダーを生成できませんでした: %s"
-
-#: src/ldgeneric.c:3214 src/ldgeneric.c:3284 src/ldgeneric.c:3320
-#: src/ldgeneric.c:4447 src/ldgeneric.c:4496 src/ldgeneric.c:4528
-#: src/ldgeneric.c:4763 src/ldgeneric.c:4818 src/ldgeneric.c:5065
-#: src/ldgeneric.c:5121 src/ldgeneric.c:5590 src/ldgeneric.c:5602
-#, c-format
-msgid "cannot create section for output file: %s"
-msgstr "出力ファイル用のセクションを生成できません: %s"
-
-#: src/ldgeneric.c:3434
-#, c-format
-msgid "address computation expression contains variable '%s'"
-msgstr "アドレス計算式が変数 '%s' を含んでいます"
-
-#: src/ldgeneric.c:3479
-#, c-format
-msgid ""
-"argument '%<PRIuMAX>' of ALIGN in address computation expression is no power "
-"of two"
-msgstr ""
-"アドレス計算式中の ALIGN のパラメーター %<PRIuMAX> が 2 の累乗ではありません"
-
-#: src/ldgeneric.c:3674
-#, c-format
-msgid "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-msgstr ""
-"エントリーシンボル '%s' が見つかりません: デフォルトの %#0*<PRIx64> にします"
-
-#: src/ldgeneric.c:3680
-#, c-format
-msgid "no entry symbol specified: defaulting to %#0*<PRIx64>"
-msgstr ""
-"エントリーシンボルが指定されていません: デフォルトの %#0*<PRIx64> にします"
-
-#: src/ldgeneric.c:3910
-#, c-format
-msgid "cannot create GNU hash table section for output file: %s"
-msgstr "出力ファイル用の GNU ハッシュテーブルセクションを生成できません: %s"
-
-#: src/ldgeneric.c:4061
-#, c-format
-msgid "cannot create hash table section for output file: %s"
-msgstr "出力ファイル用のハッシュテーブルセクションを生成できません: %s"
-
-#: src/ldgeneric.c:4104
-#, c-format
-msgid "cannot create build ID section: %s"
-msgstr "ビルド ID セクションを生成できません: %s"
-
-#: src/ldgeneric.c:4181
-#, c-format
-msgid "cannot convert section data to file format: %s"
-msgstr "セクションデータをファイル形式に変換できません: %s"
-
-#: src/ldgeneric.c:4190
-#, c-format
-msgid "cannot convert section data to memory format: %s"
-msgstr "セクションデータをメモリー形式に変換できません: %s"
-
-#: src/ldgeneric.c:4251
-#, c-format
-msgid "cannot read enough data for UUID"
-msgstr "UUID に十分なデータを読めません"
-
-#: src/ldgeneric.c:4348 src/ldgeneric.c:4369 src/ldgeneric.c:4398
-#: src/ldgeneric.c:6051
-#, c-format
-msgid "cannot create symbol table for output file: %s"
-msgstr "出力ファイル用のシンボルテーブルを生成できません: %s"
-
-#: src/ldgeneric.c:5290 src/ldgeneric.c:5842
-#, c-format
-msgid "section index too large in dynamic symbol table"
-msgstr "動的シンボルテーブルのセクションインデックスが大きすぎます"
-
-#: src/ldgeneric.c:5735
-#, c-format
-msgid "cannot create versioning section: %s"
-msgstr "バージョニングセクションを生成できません: %s"
-
-#: src/ldgeneric.c:5808
-#, c-format
-msgid "cannot create dynamic symbol table for output file: %s"
-msgstr "出力ファイル用の動的シンボルテーブルを生成できません: %s"
-
-#: src/ldgeneric.c:5983
-#, c-format
-msgid "cannot create versioning data: %s"
-msgstr "バージョニングデータを生成できません: %s"
-
-#: src/ldgeneric.c:6083 src/ldgeneric.c:6096 src/ldgeneric.c:6160
-#: src/ldgeneric.c:6168
-#, c-format
-msgid "cannot create section header string section: %s"
-msgstr "セクションヘッダー文字列セクションを生成できません: %s"
-
-#: src/ldgeneric.c:6090
-#, c-format
-msgid "cannot create section header string section"
-msgstr "セクションヘッダー文字列セクションを生成できません"
-
-#: src/ldgeneric.c:6248
-#, c-format
-msgid "cannot create program header: %s"
-msgstr "プログラムヘッダーを生成できません: %s"
-
-#: src/ldgeneric.c:6256
-#, c-format
-msgid "while determining file layout: %s"
-msgstr "ファイルレイアウトを決定中: %s"
-
-#: src/ldgeneric.c:6377
-#, c-format
-msgid "internal error: non-nobits section follows nobits section"
-msgstr "内部エラー: 非 nobits セクションが nobits セクションに続きます"
-
-#: src/ldgeneric.c:6914
-#, c-format
-msgid "cannot get header of 0th section: %s"
-msgstr "0番目のセクションのヘッダーを得られません: %s"
-
-#: src/ldgeneric.c:6930 src/unstrip.c:1822
-#, c-format
-msgid "cannot update ELF header: %s"
-msgstr "ELF ヘッダーを更新できません: %s"
-
-#: src/ldgeneric.c:6961
-#, c-format
-msgid "linker backend didn't specify function to relocate section"
-msgstr ""
-"リンカーバックエンドがセクションをリロケートするための機能を指定していません"
-
-#: src/ldgeneric.c:6973
-#, c-format
-msgid "while writing output file: %s"
-msgstr "出力ファイルに書込み中: %s"
-
-#: src/ldgeneric.c:6978
-#, c-format
-msgid "while finishing output file: %s"
-msgstr "出力ファイルの仕上げ中: %s"
-
-#: src/ldgeneric.c:6984
-#, c-format
-msgid "cannot stat output file"
-msgstr "出力ファイルを stat できません"
-
-#: src/ldgeneric.c:7000
-#, c-format
-msgid "WARNING: temporary output file overwritten before linking finished"
-msgstr "警告: リンクを仕上げる前に一時出力ファイルが上書きされました"
-
-#: src/ldgeneric.c:7053 src/ldgeneric.c:7064 src/ldgeneric.c:7075
-#: src/ldgeneric.c:7086 src/ldgeneric.c:7105 src/ldgeneric.c:7118
-#: src/ldgeneric.c:7130
-#, c-format
-msgid "no machine specific '%s' implementation"
-msgstr "マシン固有の '%s' 実装はありません"
-
-#: src/ldscript.y:170
-msgid "mode for segment invalid\n"
-msgstr "セグメント用のモードが不当です\n"
-
-#: src/ldscript.y:457
-#, c-format
-msgid "while reading version script '%s': %s at line %d"
-msgstr "バージョンスクリプト '%1$s' 読込み中: %3$d 行目の %2$s"
-
-#: src/ldscript.y:458
-#, c-format
-msgid "while reading linker script '%s': %s at line %d"
-msgstr "リンカースクリプト '%1$s' 読込み中: %3$d 行目の %2$s"
-
-#: src/ldscript.y:737
-#, fuzzy, c-format
-msgid "symbol '%s' is declared both local and global for unnamed version"
-msgstr "名前なしバージョン用のローカルとグローバルで宣言されたシンボル '%s'"
-
-#: src/ldscript.y:739
-#, fuzzy, c-format
-msgid "symbol '%s' is declared both local and global for version '%s'"
-msgstr "バージョン '%2$s' 用のローカルとグローバルで宣言されたシンボル '%1$s'"
-
-#: src/ldscript.y:759 src/ldscript.y:766
-#, c-format
-msgid "default visibility set as local and global"
-msgstr "ローカルとグローバルに設定されたデフォルトの可視性"
-
-#: src/nm.c:66 src/strip.c:68
-msgid "Output selection:"
-msgstr "出力選択:"
-
-#: src/nm.c:67
-msgid "Display debugger-only symbols"
-msgstr "デバッガー専用シンボルを表示"
-
-#: src/nm.c:68
-msgid "Display only defined symbols"
-msgstr "定義されたシンボルのみを表示"
-
-#: src/nm.c:71
-msgid "Display dynamic symbols instead of normal symbols"
-msgstr "通常シンボルの代わりに動的シンボルを表示"
-
-#: src/nm.c:72
-msgid "Display only external symbols"
-msgstr "外部シンボルのみを表示"
-
-#: src/nm.c:73
-msgid "Display only undefined symbols"
-msgstr "未定義シンボルのみを表示"
-
-#: src/nm.c:75
-msgid "Include index for symbols from archive members"
-msgstr "アーカイブメンバーからのシンボルの索引を含める"
-
-#: src/nm.c:77 src/size.c:58
-msgid "Output format:"
-msgstr "出力形式:"
-
-#: src/nm.c:79
-msgid "Print name of the input file before every symbol"
-msgstr "全てのシンボルの前に入力ファイル名を印刷"
-
-#: src/nm.c:82
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The "
-"default is `sysv'"
-msgstr ""
-"出力形式として FORMATを使う。FORMAT は `bsd'か、`sysv'、`posix' のどれか。省"
-"略値は `sysv'"
-
-#: src/nm.c:84
-msgid "Same as --format=bsd"
-msgstr "--format=bsd と同じ"
-
-#: src/nm.c:85
-msgid "Same as --format=posix"
-msgstr "--format=posix と同じ"
-
-#: src/nm.c:86 src/size.c:64
-msgid "Use RADIX for printing symbol values"
-msgstr "シンボル値を印刷するために RADIX を使う"
-
-#: src/nm.c:87
-#, fuzzy
-msgid "Mark special symbols"
-msgstr "弱いシンボルに印を点ける"
-
-#: src/nm.c:89
-msgid "Print size of defined symbols"
-msgstr "定義されたシンボルの印刷サイズ"
-
-#: src/nm.c:91 src/size.c:72 src/strip.c:73 src/unstrip.c:73
-msgid "Output options:"
-msgstr "出力オプション:"
-
-#: src/nm.c:92
-msgid "Sort symbols numerically by address"
-msgstr "シンボルをアドレスにより数値的に並べ替える"
-
-#: src/nm.c:94
-msgid "Do not sort the symbols"
-msgstr "シンボルを並べ替えない"
-
-#: src/nm.c:95
-msgid "Reverse the sense of the sort"
-msgstr "並べ替えの意味を逆にする"
-
-#: src/nm.c:98
-msgid "Decode low-level symbol names into source code names"
-msgstr ""
-
-#: src/nm.c:105
-msgid "List symbols from FILEs (a.out by default)."
-msgstr "ふぁいる からシンボルを表示 (デフォルトではa.out)。"
-
-#: src/nm.c:116 src/objdump.c:80
-#, fuzzy
-msgid "Output formatting"
-msgstr "出力形式:"
-
-#: src/nm.c:140 src/objdump.c:104 src/size.c:109 src/strip.c:120
-#, c-format
-msgid "%s: INTERNAL ERROR %d (%s-%s): %s"
-msgstr "%s: 内部エラー %d (%s-%s): %s"
-
-#: src/nm.c:398 src/nm.c:410 src/size.c:309 src/size.c:318 src/size.c:329
-#: src/strip.c:2160
-#, c-format
-msgid "while closing '%s'"
-msgstr "'%s' を閉じている最中"
-
-#: src/nm.c:420 src/objdump.c:296 src/strip.c:376
-#, c-format
-msgid "%s: File format not recognized"
-msgstr "%s: ファイル形式を認識できませんでした"
-
-#: src/nm.c:460
-#, fuzzy
-msgid ""
-"\n"
-"Archive index:\n"
-msgstr ""
-"\n"
-"アーカイブ索引:"
-
-#: src/nm.c:469
-#, c-format
-msgid "invalid offset %zu for symbol %s"
-msgstr "シンボル %2$sの不正なオフセット %1$zu "
-
-#: src/nm.c:474
-#, c-format
-msgid "%s in %s\n"
-msgstr "%2$s の中の %1$s\n"
-
-#: src/nm.c:482
-#, c-format
-msgid "cannot reset archive offset to beginning"
-msgstr "アーカイブのオフセットを最初にリセットできません"
-
-#: src/nm.c:506 src/objdump.c:344
-#, c-format
-msgid "%s%s%s: file format not recognized"
-msgstr "%s%s%s: ファイル形式を認識できません"
-
-#: src/nm.c:718
-#, c-format
-msgid "cannot create search tree"
-msgstr "検索ツリーを生成できません"
-
-#: src/nm.c:757 src/nm.c:1163 src/objdump.c:793 src/readelf.c:536
-#: src/readelf.c:1085 src/readelf.c:1245 src/readelf.c:1393 src/readelf.c:1579
-#: src/readelf.c:1785 src/readelf.c:1975 src/readelf.c:2202 src/readelf.c:2460
-#: src/readelf.c:2536 src/readelf.c:2623 src/readelf.c:3201 src/readelf.c:3237
-#: src/readelf.c:3300 src/readelf.c:8187 src/readelf.c:9273 src/readelf.c:9420
-#: src/readelf.c:9488 src/size.c:417 src/size.c:486 src/strip.c:503
-#, c-format
-msgid "cannot get section header string table index"
-msgstr "セクションヘッダー文字列テーブル索引が得られません"
-
-#: src/nm.c:784
-#, c-format
-msgid ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-msgstr ""
-"\n"
-"\n"
-"%s からのシンボル:\n"
-"\n"
-
-#: src/nm.c:787
-#, c-format
-msgid ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-msgstr ""
-"%*s%-*s %-*s クラス タイプ %-*s %*s セクション\n"
-"\n"
-
-#: src/nm.c:1173
-#, c-format
-msgid "%s: entry size in section `%s' is not what we expect"
-msgstr "%s: セクションの項目の大きさ `%s' は予期したものとは異なります"
-
-#: src/nm.c:1177
-#, c-format
-msgid "%s: size of section `%s' is not multiple of entry size"
-msgstr "%s: セクション `%s' の大きさは項目の大きさの整数倍ではありません"
-
-#: src/nm.c:1435
-#, c-format
-msgid "%s%s%s%s: Invalid operation"
-msgstr "%s%s%s%s: 不当な操作"
-
-#: src/nm.c:1492
-#, c-format
-msgid "%s%s%s: no symbols"
-msgstr "%s%s%s: シンボルがありません"
-
-#: src/objdump.c:53
-msgid "Mode selection:"
-msgstr ""
-
-#: src/objdump.c:54
-msgid "Display relocation information."
-msgstr ""
-
-#: src/objdump.c:56
-msgid "Display the full contents of all sections requested"
-msgstr ""
-
-#: src/objdump.c:58
-msgid "Display assembler code of executable sections"
-msgstr ""
-
-#: src/objdump.c:60
-#, fuzzy
-msgid "Output content selection:"
-msgstr "出力選択:"
-
-#: src/objdump.c:62
-msgid "Only display information for section NAME."
-msgstr ""
-
-#: src/objdump.c:68
-msgid "Show information from FILEs (a.out by default)."
-msgstr ""
-
-#: src/objdump.c:236 src/readelf.c:473
-msgid "No operation specified.\n"
-msgstr "操作が指定されていません。\n"
-
-#: src/objdump.c:274 src/objdump.c:286
-#, c-format
-msgid "while close `%s'"
-msgstr ""
-
-#: src/objdump.c:379 src/readelf.c:1880 src/readelf.c:2072
-msgid "INVALID SYMBOL"
-msgstr "不当なシンボル"
-
-#: src/objdump.c:394 src/readelf.c:1914 src/readelf.c:2108
-msgid "INVALID SECTION"
-msgstr "不当なセクション"
-
-#: src/objdump.c:514
-#, c-format
-msgid ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-msgstr ""
-
-#: src/objdump.c:517
-msgid "OFFSET"
-msgstr ""
-
-#: src/objdump.c:582
-#, c-format
-msgid "Contents of section %s:\n"
-msgstr ""
-
-#: src/objdump.c:703
-#, c-format
-msgid "cannot disassemble"
-msgstr ""
-
-#: src/objdump.c:742
-#, fuzzy, c-format
-msgid "cannot allocate memory"
-msgstr "PLT セクションを割り当てられません: %s"
-
-#: src/ranlib.c:66
-msgid "Generate an index to speed access to archives."
-msgstr ""
-
-#: src/ranlib.c:69
-msgid "ARCHIVE"
-msgstr ""
-
-#: src/ranlib.c:108
-#, c-format
-msgid "Archive name required"
-msgstr ""
-
-#: src/ranlib.c:186
-#, c-format
-msgid "'%s' is no archive"
-msgstr ""
-
-#: src/ranlib.c:221
-#, c-format
-msgid "error while freeing sub-ELF descriptor: %s"
-msgstr ""
-
-#: src/readelf.c:71
-#, fuzzy
-msgid "ELF input selection:"
-msgstr "出力選択:"
-
-#: src/readelf.c:73
-msgid ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-msgstr ""
-
-#: src/readelf.c:75
-#, fuzzy
-msgid "ELF output selection:"
-msgstr "出力選択:"
-
-#: src/readelf.c:77
-msgid "All these plus -p .strtab -p .dynstr -p .comment"
-msgstr ""
-
-#: src/readelf.c:78
-msgid "Display the dynamic segment"
-msgstr "動的セグメントを表示"
-
-#: src/readelf.c:79
-msgid "Display the ELF file header"
-msgstr "ELF ファイルヘッダーを表示"
-
-#: src/readelf.c:81
-msgid "Display histogram of bucket list lengths"
-msgstr "バケットリスト長の柱状図を表示"
-
-#: src/readelf.c:82
-msgid "Display the program headers"
-msgstr "プログラムヘッダーを表示"
-
-#: src/readelf.c:84
-msgid "Display relocations"
-msgstr "リロケーションを表示"
-
-#: src/readelf.c:85
-#, fuzzy
-msgid "Display the sections' headers"
-msgstr "セクションのヘッダーを表示"
-
-#: src/readelf.c:87
-msgid "Display the symbol table"
-msgstr "シンボルテーブルを表示"
-
-#: src/readelf.c:88
-msgid "Display versioning information"
-msgstr "バージョニング情報の表示"
-
-#: src/readelf.c:89
-#, fuzzy
-msgid "Display the ELF notes"
-msgstr "コアノートを表示"
-
-#: src/readelf.c:91
-#, fuzzy
-msgid "Display architecture specific information, if any"
-msgstr "(もしあれば)アーキテクチャー固有の情報を表示"
-
-#: src/readelf.c:93
-msgid "Display sections for exception handling"
-msgstr "例外を取り扱うためのセクションを表示"
-
-#: src/readelf.c:95
-#, fuzzy
-msgid "Additional output selection:"
-msgstr "出力選択:"
-
-#: src/readelf.c:97
-#, fuzzy
-msgid ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-msgstr ""
-"DWARF セクションの内容を表示。SECTION は addrevか、aranges、frame、info、"
-"loc、ranges、pubnames、str、macinfo、exception のいずれかです"
-
-#: src/readelf.c:101
-msgid "Dump the uninterpreted contents of SECTION, by number or name"
-msgstr "数字か名前で解釈できないセクションの内容をダンプする"
-
-#: src/readelf.c:103
-msgid "Print string contents of sections"
-msgstr "セクションの文字列内容を印刷する"
-
-#: src/readelf.c:106
-msgid "Display the symbol index of an archive"
-msgstr "アーカイブのシンボル索引を表示"
-
-#: src/readelf.c:108
-msgid "Output control:"
-msgstr "出力制御:"
-
-#: src/readelf.c:110
-msgid "Do not find symbol names for addresses in DWARF data"
-msgstr "DWARFデータ中のアドレスのためのシンボル名を探さない"
-
-#: src/readelf.c:112
-#, fuzzy
-msgid ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-msgstr "DWARFデータ中のアドレスのためのシンボル名を探さない"
-
-#: src/readelf.c:114
-msgid "Ignored for compatibility (lines always wide)"
-msgstr ""
-
-#: src/readelf.c:119
-msgid "Print information from ELF file in human-readable form."
-msgstr "ELF ファイルから人間が読める形で情報を印刷する。"
-
-#: src/readelf.c:441
-#, c-format
-msgid "Unknown DWARF debug section `%s'.\n"
-msgstr "不明な DWARF デバッグセクション `%s'.\n"
-
-#: src/readelf.c:520 src/readelf.c:631
-#, c-format
-msgid "cannot generate Elf descriptor: %s"
-msgstr "Elf 記述子を生成できません: %s"
-
-#: src/readelf.c:545 src/readelf.c:1099 src/readelf.c:1269
-#, c-format
-msgid "cannot get section: %s"
-msgstr "セクションを得られません: %s"
-
-#: src/readelf.c:554 src/readelf.c:1106 src/readelf.c:1277 src/readelf.c:9440
-#: src/unstrip.c:356 src/unstrip.c:387 src/unstrip.c:436 src/unstrip.c:544
-#: src/unstrip.c:561 src/unstrip.c:597 src/unstrip.c:795 src/unstrip.c:1063
-#: src/unstrip.c:1254 src/unstrip.c:1314 src/unstrip.c:1435 src/unstrip.c:1488
-#: src/unstrip.c:1595 src/unstrip.c:1784
-#, c-format
-msgid "cannot get section header: %s"
-msgstr "セクションヘッダーを得られません: %s"
-
-#: src/readelf.c:562
-#, fuzzy, c-format
-msgid "cannot get section name"
-msgstr "セクションを得られません: %s"
-
-#: src/readelf.c:571 src/readelf.c:5398 src/readelf.c:7671 src/readelf.c:7773
-#: src/readelf.c:7939
-#, c-format
-msgid "cannot get %s content: %s"
-msgstr "%s の内容を得られません: %s"
-
-#: src/readelf.c:587
-#, fuzzy, c-format
-msgid "cannot create temp file '%s'"
-msgstr "新しいファイル '%s' を生成できません: %s"
-
-#: src/readelf.c:596
-#, fuzzy, c-format
-msgid "cannot write section data"
-msgstr "セクションデータを割り当てられません: %s"
-
-#: src/readelf.c:602 src/readelf.c:619 src/readelf.c:648
-#, c-format
-msgid "error while closing Elf descriptor: %s"
-msgstr "Elf 記述子を閉じている時にエラー: %s"
-
-#: src/readelf.c:609
-#, fuzzy, c-format
-msgid "error while rewinding file descriptor"
-msgstr "Elf 記述子を閉じている時にエラー: %s"
-
-#: src/readelf.c:643
-#, c-format
-msgid "'%s' is not an archive, cannot print archive index"
-msgstr "'%s' はアーカイブではなく、アーカイブ索引を印刷できません"
-
-#: src/readelf.c:742
-#, fuzzy, c-format
-msgid "No such section '%s' in '%s'"
-msgstr "セクション [%Zu] '%s' からデータが得られません: %s"
-
-#: src/readelf.c:769
-#, c-format
-msgid "cannot stat input file"
-msgstr "入力ファイルを stat できません"
-
-#: src/readelf.c:771
-#, c-format
-msgid "input file is empty"
-msgstr "入力ファイルが空です"
-
-#: src/readelf.c:773
-#, c-format
-msgid "failed reading '%s': %s"
-msgstr "'%s' の読込みに失敗: %s"
-
-#: src/readelf.c:814
-#, c-format
-msgid "cannot read ELF header: %s"
-msgstr "ELF ヘッダーが読めません: %s"
-
-#: src/readelf.c:822
-#, c-format
-msgid "cannot create EBL handle"
-msgstr "EBL ヘッダーを生成できません"
-
-#: src/readelf.c:835
-#, fuzzy, c-format
-msgid "cannot determine number of program headers: %s"
-msgstr "セクション数を決定できません: %s"
-
-#: src/readelf.c:921
-msgid "NONE (None)"
-msgstr "なし (なし)"
-
-#: src/readelf.c:922
-msgid "REL (Relocatable file)"
-msgstr "REL (リロケータブルファイル)"
-
-#: src/readelf.c:923
-msgid "EXEC (Executable file)"
-msgstr "(EXEC (実行ファイル)"
-
-#: src/readelf.c:924
-msgid "DYN (Shared object file)"
-msgstr "DYN (共用オブジェクトファイル)"
-
-#: src/readelf.c:925
-msgid "CORE (Core file)"
-msgstr "CORE (コアファイル)"
-
-#: src/readelf.c:930
-#, c-format
-msgid "OS Specific: (%x)\n"
-msgstr "OS 固有: (%x)\n"
-
-#: src/readelf.c:932
-#, c-format
-msgid "Processor Specific: (%x)\n"
-msgstr "プロセッサー固有: (%x)\n"
-
-#: src/readelf.c:942
-msgid ""
-"ELF Header:\n"
-" Magic: "
-msgstr ""
-"ELF ヘッダー:\n"
-" マジック: "
-
-#: src/readelf.c:946
-#, c-format
-msgid ""
-"\n"
-" Class: %s\n"
-msgstr ""
-"\n"
-" クラス: %s\n"
-
-#: src/readelf.c:951
-#, c-format
-msgid " Data: %s\n"
-msgstr " データ: %s\n"
-
-#: src/readelf.c:957
-#, c-format
-msgid " Ident Version: %hhd %s\n"
-msgstr " 識別バージョン: %hhd %s\n"
-
-#: src/readelf.c:959 src/readelf.c:976
-msgid "(current)"
-msgstr "(現在)"
-
-#: src/readelf.c:963
-#, c-format
-msgid " OS/ABI: %s\n"
-msgstr " OS/ABI: %s\n"
-
-#: src/readelf.c:966
-#, c-format
-msgid " ABI Version: %hhd\n"
-msgstr " ABI バージョン: %hhd\n"
-
-#: src/readelf.c:969
-msgid " Type: "
-msgstr " タイプ: "
-
-#: src/readelf.c:972
-#, c-format
-msgid " Machine: %s\n"
-msgstr " マシン : %s\n"
-
-#: src/readelf.c:974
-#, c-format
-msgid " Version: %d %s\n"
-msgstr " バージョン: %d %s\n"
-
-#: src/readelf.c:978
-#, c-format
-msgid " Entry point address: %#<PRIx64>\n"
-msgstr " 入口点アドレス : %#<PRIx64>\n"
-
-#: src/readelf.c:981
-#, c-format
-msgid " Start of program headers: %<PRId64> %s\n"
-msgstr " プログラムヘッダーの開始: %<PRId64> %s\n"
-
-#: src/readelf.c:982 src/readelf.c:985
-msgid "(bytes into file)"
-msgstr "(ファイルへのバイト数)"
-
-#: src/readelf.c:984
-#, c-format
-msgid " Start of section headers: %<PRId64> %s\n"
-msgstr " セクションヘッダーの開始: %<PRId64> %s\n"
-
-#: src/readelf.c:987
-#, c-format
-msgid " Flags: %s\n"
-msgstr " フラグ: %s\n"
-
-#: src/readelf.c:990
-#, c-format
-msgid " Size of this header: %<PRId16> %s\n"
-msgstr " このヘッダーの大きさ: %<PRId16> %s\n"
-
-#: src/readelf.c:991 src/readelf.c:994 src/readelf.c:1011
-msgid "(bytes)"
-msgstr "(バイト)"
-
-#: src/readelf.c:993
-#, c-format
-msgid " Size of program header entries: %<PRId16> %s\n"
-msgstr " プログラムヘッダー項目の大きさ:%<PRId16> %s\n"
-
-#: src/readelf.c:996
-#, fuzzy, c-format
-msgid " Number of program headers entries: %<PRId16>"
-msgstr " プログラムヘッダー項目の数 : %<PRId16>\n"
-
-#: src/readelf.c:1003
-#, fuzzy, c-format
-msgid " (%<PRIu32> in [0].sh_info)"
-msgstr "([0].sh_link の %<PRIu32>)"
-
-#: src/readelf.c:1006 src/readelf.c:1023 src/readelf.c:1037
-msgid " ([0] not available)"
-msgstr "([0]は使えません)"
-
-#: src/readelf.c:1010
-#, c-format
-msgid " Size of section header entries: %<PRId16> %s\n"
-msgstr " セクションヘッダー項目の大きさ:%<PRId16> %s\n"
-
-#: src/readelf.c:1013
-#, c-format
-msgid " Number of section headers entries: %<PRId16>"
-msgstr " セクションヘッダー項目の数 : %<PRId16>"
-
-#: src/readelf.c:1020
-#, c-format
-msgid " (%<PRIu32> in [0].sh_size)"
-msgstr " ([0].sh_size の %<PRIu32>)"
-
-#: src/readelf.c:1033
-#, c-format
-msgid " (%<PRIu32> in [0].sh_link)"
-msgstr "([0].sh_link の %<PRIu32>)"
-
-#: src/readelf.c:1041
-#, c-format
-msgid ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-msgstr ""
-" セクションヘッダー文字列テーブル索引: XINDEX%s\n"
-"\n"
-
-#: src/readelf.c:1045
-#, c-format
-msgid ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-msgstr ""
-" セクションヘッダー文字列テーブル索引: %<PRId16>\n"
-"\n"
-
-#: src/readelf.c:1077
-#, c-format
-msgid ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"オフセット %2$#<PRIx64> から始まる %1$d 個のセクションヘッダーがあります:\n"
-"\n"
-
-#: src/readelf.c:1087
-msgid "Section Headers:"
-msgstr "セクションヘッダー:"
-
-#: src/readelf.c:1090
-msgid ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-msgstr ""
-"[番] 名前 タイプ アドレス オフセ 大きさ ES フラグLk "
-"Inf Al"
-
-#: src/readelf.c:1092
-msgid ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-msgstr ""
-"[番] 名前 タイプ アドレス オフセ 大きさ ES "
-"フラグLk Inf Al"
-
-#: src/readelf.c:1164
-msgid "Program Headers:"
-msgstr "プログラムヘッダー:"
-
-#: src/readelf.c:1166
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-msgstr ""
-" タイプ オフセ 仮アドレス 物アドレス ファイ量 メモ量 Flg 調整 "
-
-#: src/readelf.c:1169
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-msgstr ""
-" タイプ オフセ 仮想アドレス 物理アドレス ファイル量メモ"
-"量 Flg 調整 "
-
-#: src/readelf.c:1226
-#, c-format
-msgid "\t[Requesting program interpreter: %s]\n"
-msgstr "\t[プログラム割込みを要求: %s]\n"
-
-#: src/readelf.c:1247
-msgid ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-msgstr ""
-"\n"
-" セクションからセグメントへのマッビング:\n"
-" セグメント セクション..."
-
-#: src/readelf.c:1258 src/unstrip.c:1843 src/unstrip.c:1886 src/unstrip.c:1893
-#, c-format
-msgid "cannot get program header: %s"
-msgstr "プログラムヘッダーを得られません: %s"
-
-#: src/readelf.c:1401
-#, c-format
-msgid ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"署名 '%3$s' を持つ COMDAT セクショングループ [%1$2zu] '%2$s' には %4$zu 個の"
-"項目があります:\n"
-
-#: src/readelf.c:1406
-#, c-format
-msgid ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"署名 '%3$s' を持つセクショングループ [%1$2zu] '%2$s' には %4$zu 個の項目があ"
-"ります:\n"
-
-#: src/readelf.c:1414
-msgid "<INVALID SYMBOL>"
-msgstr "<不当なシンボル>"
-
-#: src/readelf.c:1428
-msgid "<INVALID SECTION>"
-msgstr "<不当なセクション>"
-
-#: src/readelf.c:1585 src/readelf.c:2208 src/readelf.c:2466 src/readelf.c:2542
-#: src/readelf.c:2846 src/readelf.c:2920 src/readelf.c:4610
-#, fuzzy, c-format
-msgid "invalid sh_link value in section %Zu"
-msgstr "不当な .debug_line セクション"
-
-#: src/readelf.c:1588
-#, c-format
-msgid ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"動的セグメントには %lu 個の項目があります:\n"
-" アドレス: %#0*<PRIx64> オフセット: %#08<PRIx64> セクションへのリンク: "
-"[%2u] '%s'\n"
-
-#: src/readelf.c:1598
-msgid " Type Value\n"
-msgstr " タイプ 値\n"
-
-#: src/readelf.c:1622
-#, c-format
-msgid "Shared library: [%s]\n"
-msgstr "共用ライブラリー: [%s]\n"
-
-#: src/readelf.c:1627
-#, c-format
-msgid "Library soname: [%s]\n"
-msgstr "ライブラリー so 名: [%s]\n"
-
-#: src/readelf.c:1632
-#, c-format
-msgid "Library rpath: [%s]\n"
-msgstr "ライブラリー rパス: [%s]\n"
-
-#: src/readelf.c:1637
-#, c-format
-msgid "Library runpath: [%s]\n"
-msgstr "ライブラリー run パス: [%s]\n"
-
-#: src/readelf.c:1657
-#, c-format
-msgid "%<PRId64> (bytes)\n"
-msgstr "%<PRId64> (バイト)\n"
-
-#: src/readelf.c:1770 src/readelf.c:1960
-#, c-format
-msgid ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-msgstr ""
-"\n"
-"オフセット %#0<PRIx64> に不当なシンボルテーブル\n"
-
-#: src/readelf.c:1788 src/readelf.c:1978
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"オフセット %5$#0<PRIx64> のセクション [%3$2u] '%4$s' 用のリロケーションセク"
-"ション [%1$2zu] '%2$s' には %6$d 個の項目があります:\n"
-
-#: src/readelf.c:1803 src/readelf.c:1993
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"オフセット %3$#0<PRIx64> のリロケーションセクション [%1$2u] '%2$s' には %4$d "
-"個の項目があります:\n"
-
-#: src/readelf.c:1813
-msgid " Offset Type Value Name\n"
-msgstr " オフセット タイプ 値 名前\n"
-
-#: src/readelf.c:1815
-msgid " Offset Type Value Name\n"
-msgstr " オフセット タイプ 値 名前\n"
-
-#: src/readelf.c:1868 src/readelf.c:1879 src/readelf.c:1892 src/readelf.c:1913
-#: src/readelf.c:1925 src/readelf.c:2059 src/readelf.c:2071 src/readelf.c:2085
-#: src/readelf.c:2107 src/readelf.c:2120
-msgid "<INVALID RELOC>"
-msgstr "<不当なRELOC>"
-
-#: src/readelf.c:2003
-msgid " Offset Type Value Addend Name\n"
-msgstr " オフセット タイプ 値 付加名\n"
-
-#: src/readelf.c:2005
-msgid " Offset Type Value Addend Name\n"
-msgstr " オフセット タイプ 値 付加名\n"
-
-#: src/readelf.c:2216
-#, c-format
-msgid ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entry:\n"
-msgid_plural ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entries:\n"
-msgstr[0] ""
-"\n"
-"シンボルテーブル [%2u] '%s' には %u 個の項目があります:\n"
-
-#: src/readelf.c:2221
-#, c-format
-msgid " %lu local symbol String table: [%2u] '%s'\n"
-msgid_plural " %lu local symbols String table: [%2u] '%s'\n"
-msgstr[0] " %lu ローカルシンボル文字列テーブル: [%2u] '%s'\n"
-
-#: src/readelf.c:2229
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " 数 : 値 大き タイプ Bind Vis Ndx 名前\n"
-
-#: src/readelf.c:2231
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " 数 : 値 大き タイプ Bind Vis Ndx 名前\n"
-
-#: src/readelf.c:2251
-#, c-format
-msgid "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-msgstr "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-
-#: src/readelf.c:2339
-#, c-format
-msgid "bad dynamic symbol"
-msgstr "不正な動的シンボル"
-
-#: src/readelf.c:2421
-msgid "none"
-msgstr "なし"
-
-#: src/readelf.c:2438
-msgid "| <unknown>"
-msgstr "| <不明>"
-
-#: src/readelf.c:2469
-#, c-format
-msgid ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"セクション [%2u] '%s' を必要とするバージョンには %d 個の項目があります:\n"
-" アドレス: %#0*<PRIx64> オフセット: %#08<PRIx64> セクションへのリンク: "
-"[%2u] '%s'\n"
-
-#: src/readelf.c:2490
-#, c-format
-msgid " %#06x: Version: %hu File: %s Cnt: %hu\n"
-msgstr " %#06x: バージョン: %hu ファイル: %s 数: %hu\n"
-
-#: src/readelf.c:2503
-#, c-format
-msgid " %#06x: Name: %s Flags: %s Version: %hu\n"
-msgstr " %#06x: 名前: %s フラグ: %s バージョン: %hu\n"
-
-#: src/readelf.c:2546
-#, c-format
-msgid ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"バージョン定義セクション [%2u] '%s' には %d 個の項目があります:\n"
-" アドレス: %#0*<PRIx64> オフセット: %#08<PRIx64> セクションへのリンク: "
-"[%2u] '%s'\n"
-
-#: src/readelf.c:2574
-#, c-format
-msgid " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-msgstr " %#06x: バージョン: %hd フラグ: %s 索引: %hd 数: %hd 名前: %s\n"
-
-#: src/readelf.c:2589
-#, c-format
-msgid " %#06x: Parent %d: %s\n"
-msgstr " %#06x: 親 %d: %s\n"
-
-#: src/readelf.c:2850
-#, c-format
-msgid ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgid_plural ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgstr[0] ""
-"\n"
-"バージョンシンボルセクション [%2u] '%s' には %d 個の項目があります:\n"
-" アドレス: %#0*<PRIx64> オフセット: %#08<PRIx64> セクションへのリンク: "
-"[%2u] '%s'"
-
-#: src/readelf.c:2878
-msgid " 0 *local* "
-msgstr " 0 *ローカル* "
-
-#: src/readelf.c:2883
-msgid " 1 *global* "
-msgstr " 1 *グローバル* "
-
-#: src/readelf.c:2925
-#, c-format
-msgid ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"セクション [%2u] '%s' のバケット一覧の長さの柱状図(合計 %d バケット):\n"
-" アドレス: %#0*<PRIx64> オフセット: %#08<PRIx64> セクションへのリンク: "
-"[%2u] '%s'\n"
-
-#: src/readelf.c:2947
-#, fuzzy, no-c-format
-msgid " Length Number % of total Coverage\n"
-msgstr " 長さ 数 全体の% 範囲 \n"
-
-#: src/readelf.c:2949
-#, c-format
-msgid " 0 %6<PRIu32> %5.1f%%\n"
-msgstr " 0 %6<PRIu32> %5.1f%%\n"
-
-#: src/readelf.c:2956
-#, c-format
-msgid "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-msgstr "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-
-#: src/readelf.c:2969
-#, fuzzy, c-format
-msgid ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-msgstr ""
-" テストの平均数: 検索成功: %f\n"
-" 検索失敗: %f\n"
-
-#: src/readelf.c:2987 src/readelf.c:3042 src/readelf.c:3098
-#, c-format
-msgid "cannot get data for section %d: %s"
-msgstr "セクションからデータを得られません %d: %s"
-
-#: src/readelf.c:2995
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash section %d"
-msgstr "セクション [%zu] '%s' の不当なデータ"
-
-#: src/readelf.c:3050
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash64 section %d"
-msgstr "セクション [%zu] '%s' の不当なデータ"
-
-#: src/readelf.c:3106
-#, fuzzy, c-format
-msgid "invalid data in gnu.hash section %d"
-msgstr "セクション [%zu] '%s' の不当なデータ"
-
-#: src/readelf.c:3173
-#, c-format
-msgid ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-msgstr ""
-" シンボルの偏り: %u\n"
-" ビットマスクの大きさ: %zu バイト %<PRIuFAST32>%% ビット設定 第2ハッシュシフ"
-"ト: %u\n"
-
-#: src/readelf.c:3248
-#, c-format
-msgid ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"オフセット %3$#0<PRIx64> のライブラリー一覧セクション [%1$2zu] '%2$s' には "
-"%4$d 個の項目があります:\n"
-
-#: src/readelf.c:3262
-msgid ""
-" Library Time Stamp Checksum Version "
-"Flags"
-msgstr ""
-" ライブラリー タイムスタンプ チェックサム バー"
-"ジョン フラグ"
-
-#: src/readelf.c:3312
-#, c-format
-msgid ""
-"\n"
-"Object attributes section [%2zu] '%s' of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"オフセット %4$#0<PRIx64> の %3$<PRIu64> バイトのオブジェクト属性セクション "
-"[%1$2zu] '%2$s':\n"
-
-#: src/readelf.c:3329
-msgid " Owner Size\n"
-msgstr " 所有者 大きさ\n"
-
-#: src/readelf.c:3358
-#, c-format
-msgid " %-13s %4<PRIu32>\n"
-msgstr " %-13s %4<PRIu32>\n"
-
-#: src/readelf.c:3397
-#, c-format
-msgid " %-4u %12<PRIu32>\n"
-msgstr " %-4u %12<PRIu32>\n"
-
-#: src/readelf.c:3402
-#, c-format
-msgid " File: %11<PRIu32>\n"
-msgstr " ファイル: %11<PRIu32>\n"
-
-#: src/readelf.c:3451
-#, c-format
-msgid " %s: %<PRId64>, %s\n"
-msgstr " %s: %<PRId64>、%s\n"
-
-#: src/readelf.c:3454
-#, c-format
-msgid " %s: %<PRId64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:3457
-#, c-format
-msgid " %s: %s\n"
-msgstr " %s: %s\n"
-
-#: src/readelf.c:3467
-#, c-format
-msgid " %u: %<PRId64>\n"
-msgstr " %u: %<PRId64>\n"
-
-#: src/readelf.c:3470
-#, c-format
-msgid " %u: %s\n"
-msgstr " %u: %s\n"
-
-#: src/readelf.c:3515
-#, c-format
-msgid "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3518
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3523
-#, c-format
-msgid "%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3526
-#, c-format
-msgid "%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3532
-#, c-format
-msgid "%s+%#<PRIx64> <%s>"
-msgstr "%s+%#<PRIx64> <%s>"
-
-#: src/readelf.c:3535
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s>"
-msgstr "%s+%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3539
-#, c-format
-msgid "%#<PRIx64> <%s>"
-msgstr "%#<PRIx64> <%s>"
-
-#: src/readelf.c:3542
-#, c-format
-msgid "%#0*<PRIx64> <%s>"
-msgstr "%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3547
-#, c-format
-msgid "%s+%#<PRIx64>"
-msgstr "%s+%#<PRIx64>"
-
-#: src/readelf.c:3550
-#, c-format
-msgid "%s+%#0*<PRIx64>"
-msgstr "%s+%#0*<PRIx64>"
-
-#: src/readelf.c:3932
-msgid "empty block"
-msgstr "空ブロック"
-
-#: src/readelf.c:3935
-#, c-format
-msgid "%zu byte block:"
-msgstr "%zu バイトのブロック:"
-
-#: src/readelf.c:4332
-#, c-format
-msgid "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-msgstr "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-
-#: src/readelf.c:4389
-#, c-format
-msgid "%s %#<PRIx64> used with different address sizes"
-msgstr ""
-
-#: src/readelf.c:4396
-#, c-format
-msgid "%s %#<PRIx64> used with different offset sizes"
-msgstr ""
-
-#: src/readelf.c:4403
-#, c-format
-msgid "%s %#<PRIx64> used with different base addresses"
-msgstr ""
-
-#: src/readelf.c:4492
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-msgstr ""
-
-#: src/readelf.c:4500
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-msgstr ""
-
-#: src/readelf.c:4526
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [ Code]\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s':\n"
-" [ コード]\n"
-
-#: src/readelf.c:4534
-#, c-format
-msgid ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-msgstr ""
-"\n"
-"オフセット %<PRIu64> の略語セクション:\n"
-
-#: src/readelf.c:4547
-#, c-format
-msgid " *** error while reading abbreviation: %s\n"
-msgstr " *** 略語を読んでいる間にエラー: %s\n"
-
-#: src/readelf.c:4563
-#, c-format
-msgid " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-msgstr " [%5u] オフセット: %<PRId64>、子: %s、タグ: %s\n"
-
-#: src/readelf.c:4566
-msgid "yes"
-msgstr "はい"
-
-#: src/readelf.c:4566
-msgid "no"
-msgstr "いいえ"
-
-#: src/readelf.c:4600 src/readelf.c:4673
-#, c-format
-msgid "cannot get .debug_aranges content: %s"
-msgstr ".debug_aragnes の内容を得られません: %s"
-
-#: src/readelf.c:4615
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s' には %4$zu 個の項"
-"目があります:\n"
-
-#: src/readelf.c:4646
-#, c-format
-msgid " [%*zu] ???\n"
-msgstr " [%*zu] ???\n"
-
-#: src/readelf.c:4648
-#, c-format
-msgid ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-msgstr ""
-" [%*zu] 開始: %0#*<PRIx64>、長さ: %5<PRIu64>、CU DIE オフセット: %6<PRId64>\n"
-
-#: src/readelf.c:4678 src/readelf.c:4832 src/readelf.c:5408 src/readelf.c:6362
-#: src/readelf.c:6894 src/readelf.c:7014 src/readelf.c:7177 src/readelf.c:7602
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s':\n"
-
-#: src/readelf.c:4691 src/readelf.c:6388
-#, c-format
-msgid ""
-"\n"
-"Table at offset %Zu:\n"
-msgstr ""
-"\n"
-"オフセット %Zu のテーブル:\n"
-
-#: src/readelf.c:4695 src/readelf.c:5432 src/readelf.c:6399
-#, c-format
-msgid "invalid data in section [%zu] '%s'"
-msgstr "セクション [%zu] '%s' の不当なデータ"
-
-#: src/readelf.c:4711
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Length: %6<PRIu64>\n"
-msgstr " (オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:4723
-#, fuzzy, c-format
-msgid " DWARF version: %6<PRIuFAST16>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4727
-#, c-format
-msgid "unsupported aranges version"
-msgstr ""
-
-#: src/readelf.c:4738
-#, fuzzy, c-format
-msgid " CU offset: %6<PRIx64>\n"
-msgstr " (オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:4744
-#, fuzzy, c-format
-msgid " Address size: %6<PRIu64>\n"
-msgstr " (終了オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:4748
-#, fuzzy, c-format
-msgid "unsupported address size"
-msgstr "アドレス値ではありません"
-
-#: src/readelf.c:4753
-#, fuzzy, c-format
-msgid ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-msgstr " ファイルを %<PRIu64> に設定する\n"
-
-#: src/readelf.c:4757
-#, c-format
-msgid "unsupported segment size"
-msgstr ""
-
-#: src/readelf.c:4797
-#, fuzzy, c-format
-msgid " %s..%s (%<PRIx64>)\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4800
-#, fuzzy, c-format
-msgid " %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4809
-#, c-format
-msgid " %Zu padding bytes\n"
-msgstr ""
-
-#: src/readelf.c:4827
-#, c-format
-msgid "cannot get .debug_ranges content: %s"
-msgstr ".degub_ranges の内容を得られません: %s"
-
-#: src/readelf.c:4857 src/readelf.c:6921
-#, c-format
-msgid " [%6tx] <INVALID DATA>\n"
-msgstr " [%6tx] <不当なデータ>\n"
-
-#: src/readelf.c:4879 src/readelf.c:6943
-#, c-format
-msgid " [%6tx] base address %s\n"
-msgstr " [%6tx] ベースアドレス %s\n"
-
-#: src/readelf.c:4886 src/readelf.c:6950
-#, fuzzy, c-format
-msgid " [%6tx] empty list\n"
-msgstr ""
-"\n"
-" [%6tx] ゼロ終端\n"
-
-#: src/readelf.c:4897
-#, c-format
-msgid " [%6tx] %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4899
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:5078
-#, fuzzy
-msgid " <INVALID DATA>\n"
-msgstr " [%6tx] <不当なデータ>\n"
-
-#: src/readelf.c:5387
-#, fuzzy, c-format
-msgid "cannot get ELF: %s"
-msgstr "次の DIE を得られません: %s"
-
-#: src/readelf.c:5404
-#, c-format
-msgid ""
-"\n"
-"Call frame information section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の フレーム情報呼出しセクション [%1$2zu] '%2$s':\n"
-
-#: src/readelf.c:5454
-#, c-format
-msgid ""
-"\n"
-" [%6tx] Zero terminator\n"
-msgstr ""
-"\n"
-" [%6tx] ゼロ終端\n"
-
-#: src/readelf.c:5547 src/readelf.c:5702
-#, fuzzy, c-format
-msgid "invalid augmentation length"
-msgstr "不当な拡大エンコード"
-
-#: src/readelf.c:5562
-msgid "FDE address encoding: "
-msgstr "FDE アドレスエンコード"
-
-#: src/readelf.c:5568
-msgid "LSDA pointer encoding: "
-msgstr "LSDA ポインターエンコード:"
-
-#: src/readelf.c:5679
-#, c-format
-msgid " (offset: %#<PRIx64>)"
-msgstr " (オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:5686
-#, c-format
-msgid " (end offset: %#<PRIx64>)"
-msgstr " (終了オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:5723
-#, c-format
-msgid " %-26sLSDA pointer: %#<PRIx64>\n"
-msgstr " %-26sLSDA ポインター: %#<PRIx64>\n"
-
-#: src/readelf.c:5778
-#, c-format
-msgid "cannot get attribute code: %s"
-msgstr "属性コードを得られません: %s"
-
-#: src/readelf.c:5787
-#, c-format
-msgid "cannot get attribute form: %s"
-msgstr "属性様式を得られません: %s"
-
-#: src/readelf.c:5802
-#, c-format
-msgid "cannot get attribute value: %s"
-msgstr "属性値を得られません: %s"
-
-#: src/readelf.c:6101
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [Offset]\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s':\n"
-" [オフセット]\n"
-
-#: src/readelf.c:6133
-#, fuzzy, c-format
-msgid ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-msgstr ""
-" オフセット %1$<PRIu64> のコンパイル単位:\n"
-" バージョン: %2$<PRIu16>、略語セクションオフセット: %3$<PRIu64>、アドレスの大"
-"きさ: %4$<PRIu8>、オフセットの大きさ: %5$<PRIu8>\n"
-
-#: src/readelf.c:6142
-#, c-format
-msgid ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-msgstr ""
-" オフセット %1$<PRIu64> のコンパイル単位:\n"
-" バージョン: %2$<PRIu16>、略語セクションオフセット: %3$<PRIu64>、アドレスの大"
-"きさ: %4$<PRIu8>、オフセットの大きさ: %5$<PRIu8>\n"
-
-#: src/readelf.c:6167
-#, c-format
-msgid "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-"セクション '%2$s' の オフセット %1$<PRIu64> の DIE を得られません: %3$s"
-
-#: src/readelf.c:6181
-#, c-format
-msgid "cannot get DIE offset: %s"
-msgstr "DIE オフセットを得られません: %s"
-
-#: src/readelf.c:6190
-#, c-format
-msgid "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-"セクション '%2$s' 中のオフセット %1$<PRIu64> の DIE のタグを得られません: "
-"%3$s"
-
-#: src/readelf.c:6222
-#, c-format
-msgid "cannot get next DIE: %s\n"
-msgstr "次の DIE を得られません: %s\n"
-
-#: src/readelf.c:6230
-#, c-format
-msgid "cannot get next DIE: %s"
-msgstr "次の DIE を得られません: %s"
-
-#: src/readelf.c:6266
-#, fuzzy, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s':\n"
-
-#: src/readelf.c:6375
-#, c-format
-msgid "cannot get line data section data: %s"
-msgstr "ラインデータセクションデータを得られません: %s"
-
-#: src/readelf.c:6445
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-msgstr ""
-"\n"
-" 長さ: %<PRIu64>\n"
-" DWARF バージョン: %<PRIuFAST16>\n"
-" プロローグ長: %<PRIu64>\n"
-" 最小命令長: %<PRIuFAST8>\n"
-" もし '%s' なら初期値: %<PRIuFAST8>\n"
-" 行ベース: %<PRIdFAST8>\n"
-" 行範囲: %<PRIuFAST8>\n"
-" 命令コードベース: %<PRIuFAST8>\n"
-"\n"
-"命令コード:\n"
-
-#: src/readelf.c:6466
-#, c-format
-msgid "invalid data at offset %tu in section [%zu] '%s'"
-msgstr "セクション [%2$zu] '%3$s' 中のオフセット %1$tu に不当なデータ"
-
-#: src/readelf.c:6481
-#, c-format
-msgid " [%*<PRIuFAST8>] %hhu argument\n"
-msgid_plural " [%*<PRIuFAST8>] %hhu arguments\n"
-msgstr[0] " [%*<PRIuFAST8>] %hhu パラメーター\n"
-
-#: src/readelf.c:6489
-msgid ""
-"\n"
-"Directory table:"
-msgstr ""
-"\n"
-"ディレクトリーテーブル:"
-
-#: src/readelf.c:6505
-msgid ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-msgstr ""
-"\n"
-"ファイル名テーブル:\n"
-" Entry Dir 時刻 大きさ 名前"
-
-#: src/readelf.c:6540
-msgid ""
-"\n"
-"Line number statements:"
-msgstr ""
-"\n"
-"行 番号 文:"
-
-#: src/readelf.c:6591
-#, c-format
-msgid "invalid maximum operations per instruction is zero"
-msgstr ""
-
-#: src/readelf.c:6627
-#, fuzzy, c-format
-msgid " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-msgstr " 特殊命令コード %u: アドレス+%u = %s, 行%+d = %zu\n"
-
-#: src/readelf.c:6632
-#, c-format
-msgid " special opcode %u: address+%u = %s, line%+d = %zu\n"
-msgstr " 特殊命令コード %u: アドレス+%u = %s, 行%+d = %zu\n"
-
-#: src/readelf.c:6652
-#, c-format
-msgid " extended opcode %u: "
-msgstr " 拡張命令コード %u: "
-
-#: src/readelf.c:6657
-#, fuzzy
-msgid " end of sequence"
-msgstr "列の終わり"
-
-#: src/readelf.c:6676
-#, fuzzy, c-format
-msgid " set address to %s\n"
-msgstr "アドレスを %s に設定する\n"
-
-#: src/readelf.c:6703
-#, fuzzy, c-format
-msgid " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-msgstr ""
-"新ファイルを定義する: dir=%u、mtime=%<PRIu64>、長さh=%<PRIu64>、名前=%s\n"
-
-#: src/readelf.c:6716
-#, fuzzy, c-format
-msgid " set discriminator to %u\n"
-msgstr "カラムを %<PRIu64> に設定する\n"
-
-#: src/readelf.c:6721
-#, fuzzy
-msgid " unknown opcode"
-msgstr "不明な命令コード"
-
-#: src/readelf.c:6733
-msgid " copy"
-msgstr "複写"
-
-#: src/readelf.c:6744
-#, fuzzy, c-format
-msgid " advance address by %u to %s, op_index to %u\n"
-msgstr "アドレスを %u だけ進めて %s にする\n"
-
-#: src/readelf.c:6748
-#, fuzzy, c-format
-msgid " advance address by %u to %s\n"
-msgstr "アドレスを %u だけ進めて %s にする\n"
-
-#: src/readelf.c:6759
-#, c-format
-msgid " advance line by constant %d to %<PRId64>\n"
-msgstr "行を定数 %d だけ進めて %<PRId64> にする\n"
-
-#: src/readelf.c:6767
-#, c-format
-msgid " set file to %<PRIu64>\n"
-msgstr " ファイルを %<PRIu64> に設定する\n"
-
-#: src/readelf.c:6777
-#, c-format
-msgid " set column to %<PRIu64>\n"
-msgstr "カラムを %<PRIu64> に設定する\n"
-
-#: src/readelf.c:6784
-#, c-format
-msgid " set '%s' to %<PRIuFAST8>\n"
-msgstr " '%s' を %<PRIuFAST8> に設定する\n"
-
-#: src/readelf.c:6790
-msgid " set basic block flag"
-msgstr "基本ブロックフラグを設定する"
-
-#: src/readelf.c:6803
-#, fuzzy, c-format
-msgid " advance address by constant %u to %s, op_index to %u\n"
-msgstr "アドレスを定数 %u だけ済めて %s にする\n"
-
-#: src/readelf.c:6807
-#, fuzzy, c-format
-msgid " advance address by constant %u to %s\n"
-msgstr "アドレスを定数 %u だけ済めて %s にする\n"
-
-#: src/readelf.c:6825
-#, fuzzy, c-format
-msgid " advance address by fixed value %u to %s\n"
-msgstr "アドレスを固定値 %u だけ進めて %s にする\n"
-
-#: src/readelf.c:6834
-msgid " set prologue end flag"
-msgstr "プロローグ終了フラグを設定する"
-
-#: src/readelf.c:6839
-msgid " set epilogue begin flag"
-msgstr "エピローグ開始フラグを設定する"
-
-#: src/readelf.c:6848
-#, fuzzy, c-format
-msgid " set isa to %u\n"
-msgstr " ファイルを %<PRIu64> に設定する\n"
-
-#: src/readelf.c:6857
-#, c-format
-msgid " unknown opcode with %<PRIu8> parameter:"
-msgid_plural " unknown opcode with %<PRIu8> parameters:"
-msgstr[0] " %<PRIu8> 個のパラメーターのある不明な命令コード:"
-
-#: src/readelf.c:6889
-#, c-format
-msgid "cannot get .debug_loc content: %s"
-msgstr ".debug_loc の内容を得られません: %s"
-
-#: src/readelf.c:6964
-#, c-format
-msgid " [%6tx] %s..%s"
-msgstr " [%6tx] %s..%s"
-
-#: src/readelf.c:6966
-#, c-format
-msgid " %s..%s"
-msgstr " %s..%s"
-
-#: src/readelf.c:6973 src/readelf.c:7858
-#, fuzzy
-msgid " <INVALID DATA>\n"
-msgstr " [%6tx] <不当なデータ>\n"
-
-#: src/readelf.c:7025 src/readelf.c:7186
-#, c-format
-msgid "cannot get macro information section data: %s"
-msgstr "マクロ情報セクションのデータを得られません: %s"
-
-#: src/readelf.c:7104
-#, c-format
-msgid "%*s*** non-terminated string at end of section"
-msgstr "%*s*** 最後のセクションの終端していない文字列"
-
-#: src/readelf.c:7127
-#, fuzzy, c-format
-msgid "%*s*** missing DW_MACINFO_start_file argument at end of section"
-msgstr "%*s*** 最後のセクションの終端していない文字列"
-
-#: src/readelf.c:7227
-#, fuzzy, c-format
-msgid " Offset: 0x%<PRIx64>\n"
-msgstr " 所有者 大きさ\n"
-
-#: src/readelf.c:7239
-#, fuzzy, c-format
-msgid " Version: %<PRIu16>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:7245 src/readelf.c:7968
-#, c-format
-msgid " unknown version, cannot parse section\n"
-msgstr ""
-
-#: src/readelf.c:7252
-#, fuzzy, c-format
-msgid " Flag: 0x%<PRIx8>\n"
-msgstr " 入口点アドレス : %#<PRIx64>\n"
-
-#: src/readelf.c:7255
-#, fuzzy, c-format
-msgid " Offset length: %<PRIu8>\n"
-msgstr " (オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:7263
-#, fuzzy, c-format
-msgid " .debug_line offset: 0x%<PRIx64>\n"
-msgstr " (終了オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:7276
-#, fuzzy, c-format
-msgid " extension opcode table, %<PRIu8> items:\n"
-msgstr " %<PRIu8> 個のパラメーターのある不明な命令コード:"
-
-#: src/readelf.c:7283
-#, c-format
-msgid " [%<PRIx8>]"
-msgstr ""
-
-#: src/readelf.c:7295
-#, fuzzy, c-format
-msgid " %<PRIu8> arguments:"
-msgstr " [%*<PRIuFAST8>] %hhu パラメーター\n"
-
-#: src/readelf.c:7323
-#, c-format
-msgid " no arguments."
-msgstr ""
-
-#: src/readelf.c:7560
-#, c-format
-msgid "vendor opcode not verified?"
-msgstr ""
-
-#: src/readelf.c:7588
-#, c-format
-msgid " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-msgstr ""
-" [%5d] DIE オフセット: %6<PRId64>, CU DIE オフセット: %6<PRId64>, 名前: %s\n"
-
-# # "オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s':\n"
-# # " %4$*s 文字列\n" がエラーになるのは何故? 取り敢えず fuzzy扱い
-#: src/readelf.c:7629
-#, fuzzy, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" %*s String\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s':\n"
-" %4$*s 文字列\n"
-
-#: src/readelf.c:7643
-#, c-format
-msgid " *** error while reading strings: %s\n"
-msgstr " *** 文字列の読込み中にエラー: %s\n"
-
-#: src/readelf.c:7663
-#, c-format
-msgid ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-msgstr ""
-"\n"
-"呼出しフレーム検索テーブルセクション [%2zu] '.eh_frame_hdr':\n"
-
-#: src/readelf.c:7765
-#, c-format
-msgid ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-msgstr ""
-"\n"
-"例外取扱いテーブルセクション [%2zu] '.gcc_except_table':\n"
-
-#: src/readelf.c:7788
-#, c-format
-msgid " LPStart encoding: %#x "
-msgstr " LPStart コード化: %#x "
-
-#: src/readelf.c:7800
-#, c-format
-msgid " TType encoding: %#x "
-msgstr "TType コード化: %#x "
-
-#: src/readelf.c:7815
-#, c-format
-msgid " Call site encoding: %#x "
-msgstr "呼出しサイトコード化: %#x "
-
-#: src/readelf.c:7828
-msgid ""
-"\n"
-" Call site table:"
-msgstr ""
-"\n"
-" 呼出しサイトテーブル:"
-
-#: src/readelf.c:7842
-#, c-format
-msgid ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-msgstr ""
-" [%4u] 呼出しサイト開始 : %#<PRIx64>\n"
-" 呼出しサイト長: %<PRIu64>\n"
-" 離着陸場: %#<PRIx64>\n"
-" 行動: %u\n"
-
-#: src/readelf.c:7909
-#, c-format
-msgid "invalid TType encoding"
-msgstr "不当な TType コード化"
-
-#: src/readelf.c:7930
-#, fuzzy, c-format
-msgid ""
-"\n"
-"GDB section [%2zu] '%s' at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s' には %4$zu 個の項"
-"目があります:\n"
-
-#: src/readelf.c:7959
-#, fuzzy, c-format
-msgid " Version: %<PRId32>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:7977
-#, fuzzy, c-format
-msgid " CU offset: %#<PRIx32>\n"
-msgstr " (オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:7984
-#, fuzzy, c-format
-msgid " TU offset: %#<PRIx32>\n"
-msgstr " (オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:7991
-#, fuzzy, c-format
-msgid " address offset: %#<PRIx32>\n"
-msgstr " (終了オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:7998
-#, fuzzy, c-format
-msgid " symbol offset: %#<PRIx32>\n"
-msgstr " (オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:8005
-#, fuzzy, c-format
-msgid " constant offset: %#<PRIx32>\n"
-msgstr " (終了オフセット: %#<PRIx64>)"
-
-#: src/readelf.c:8012
-#, fuzzy, c-format
-msgid ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s' には %4$zu 個の項"
-"目があります:\n"
-
-#: src/readelf.c:8034
-#, fuzzy, c-format
-msgid ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s' には %4$zu 個の項"
-"目があります:\n"
-
-#: src/readelf.c:8060
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-"オフセット %3$#<PRIx64> の DWARF セクション [%1$2zu] '%2$s' には %4$zu 個の項"
-"目があります:\n"
-
-#: src/readelf.c:8089
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-msgstr ""
-"\n"
-"オフセット %#0<PRIx64> に不当なシンボルテーブル\n"
-
-#: src/readelf.c:8176
-#, c-format
-msgid "cannot get debug context descriptor: %s"
-msgstr "デバッグ内容記述子を得られません: %s"
-
-#: src/readelf.c:8336 src/readelf.c:8942 src/readelf.c:9053 src/readelf.c:9111
-#, c-format
-msgid "cannot convert core note data: %s"
-msgstr "コアノートデータの変換ができません: %s"
-
-#: src/readelf.c:8683
-#, c-format
-msgid ""
-"\n"
-"%*s... <repeats %u more times> ..."
-msgstr ""
-"\n"
-"%*s... < %u 回の繰返し> ..."
-
-#: src/readelf.c:9190
-msgid " Owner Data size Type\n"
-msgstr " 所有者 データ大きさタイプ\n"
-
-#: src/readelf.c:9208
-#, c-format
-msgid " %-13.*s %9<PRId32> %s\n"
-msgstr " %-13.*s %9<PRId32> %s\n"
-
-#: src/readelf.c:9258
-#, c-format
-msgid "cannot get content of note section: %s"
-msgstr "ノートセクションの内容を得られません: %s"
-
-#: src/readelf.c:9285
-#, c-format
-msgid ""
-"\n"
-"Note section [%2zu] '%s' of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"オフセット %4$#0<PRIx64> の %3$<PRIu64> バイトのノートセクション [%1$2zu] "
-"'%2$s':\n"
-
-#: src/readelf.c:9308
-#, c-format
-msgid ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"オフセット %2$#0<PRIx64> の %1$<PRIu64> バイトのノートセグメント:\n"
-
-#: src/readelf.c:9354
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no data to dump.\n"
-msgstr ""
-"\n"
-"セクション [%Zu] '%s' にはダンプすべきデータがありません。\n"
-
-#: src/readelf.c:9360 src/readelf.c:9383
-#, c-format
-msgid "cannot get data for section [%Zu] '%s': %s"
-msgstr "セクション [%Zu] '%s' からデータが得られません: %s"
-
-#: src/readelf.c:9364
-#, c-format
-msgid ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"オフセット %4$#0<PRIx64> のセクション [%1$Zu] '%2$s' の16進ダン"
-"プ、%3$<PRIu64> バイト:\n"
-
-#: src/readelf.c:9377
-#, fuzzy, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no strings to dump.\n"
-msgstr ""
-"\n"
-"セクション [%Zu] '%s' にはダンプすべきデータがありません。\n"
-
-#: src/readelf.c:9387
-#, c-format
-msgid ""
-"\n"
-"String section [%Zu] '%s' contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"オフセット %4$#0<PRIx64> 文字列セクション [%1$Zu] '%2$s' には %3$<PRIu64> バ"
-"イトあります:\n"
-
-#: src/readelf.c:9435
-#, c-format
-msgid ""
-"\n"
-"section [%lu] does not exist"
-msgstr ""
-"\n"
-"セクション [%lu] がありません"
-
-#: src/readelf.c:9464
-#, c-format
-msgid ""
-"\n"
-"section '%s' does not exist"
-msgstr ""
-"\n"
-"セクション '%s' がありません"
-
-#: src/readelf.c:9521
-#, c-format
-msgid "cannot get symbol index of archive '%s': %s"
-msgstr "アーカイブのシンボル索引 '%s' を得られません: %s"
-
-#: src/readelf.c:9524
-#, c-format
-msgid ""
-"\n"
-"Archive '%s' has no symbol index\n"
-msgstr ""
-"\n"
-"アーカイブ '%s' にはシンボル索引がありません\n"
-
-#: src/readelf.c:9528
-#, c-format
-msgid ""
-"\n"
-"Index of archive '%s' has %Zu entries:\n"
-msgstr ""
-"\n"
-"アーカイブ '%s' の索引には %Zu 項目あります:\n"
-
-#: src/readelf.c:9546
-#, c-format
-msgid "cannot extract member at offset %Zu in '%s': %s"
-msgstr "'%2$s' の オフセット %1$Zu のメンバーを抽出できません: %3$s"
-
-#: src/readelf.c:9551
-#, c-format
-msgid "Archive member '%s' contains:\n"
-msgstr "アーカイブメンバー '%s' には以下があります:\n"
-
-#: src/size.c:60
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd' or `sysv'. The default "
-"is `bsd'"
-msgstr ""
-"出力形式として FORMAT を使ってください。FORMAT は `bsd'か、`sysv' のどちらか"
-"です。省略値は `bsd'です"
-
-#: src/size.c:62
-msgid "Same as `--format=sysv'"
-msgstr "`--format=sysv' と同じ"
-
-#: src/size.c:63
-msgid "Same as `--format=bsd'"
-msgstr "`--format=bsd' と同じ"
-
-#: src/size.c:66
-msgid "Same as `--radix=10'"
-msgstr "`--radix=10' と同じ"
-
-#: src/size.c:67
-msgid "Same as `--radix=8'"
-msgstr "`--radix=8' と同じ"
-
-#: src/size.c:68
-msgid "Same as `--radix=16'"
-msgstr "`--radix=16' と同じ"
-
-#: src/size.c:70
-msgid "Similar to `--format=sysv' output but in one line"
-msgstr "`--format=sysv' の出力と似ていますが、1行です"
-
-#: src/size.c:74
-msgid "Print size and permission flags for loadable segments"
-msgstr "ロード可能セグメントのための印刷の大きさと許可フラグ"
-
-#: src/size.c:75
-msgid "Display the total sizes (bsd only)"
-msgstr "合計の大きさを表示 (bsd のみ)"
-
-#: src/size.c:80
-msgid "List section sizes of FILEs (a.out by default)."
-msgstr "ふぁいる のセクションの大きさの一覧 (省略値は a.out)"
-
-#: src/size.c:261
-#, c-format
-msgid "Invalid format: %s"
-msgstr "不当な形式: %s"
-
-#: src/size.c:272
-#, c-format
-msgid "Invalid radix: %s"
-msgstr "不当な基数: %s"
-
-#: src/size.c:331
-#, c-format
-msgid "%s: file format not recognized"
-msgstr "%s: ファイル形式を認識できません"
-
-#: src/size.c:437 src/size.c:570
-#, c-format
-msgid " (ex %s)"
-msgstr " (ex %s)"
-
-#: src/size.c:595
-msgid "(TOTALS)\n"
-msgstr "(合計)\n"
-
-#: src/strings.c:62
-msgid "Output Selection:"
-msgstr ""
-
-#: src/strings.c:63
-msgid "Scan entire file, not only loaded sections"
-msgstr ""
-
-#: src/strings.c:65
-msgid "Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-msgstr ""
-
-#: src/strings.c:66
-msgid ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-msgstr ""
-
-#: src/strings.c:70
-msgid "Print name of the file before each string."
-msgstr ""
-
-#: src/strings.c:72
-msgid "Print location of the string in base 8, 10, or 16 respectively."
-msgstr ""
-
-#: src/strings.c:73
-msgid "Alias for --radix=o"
-msgstr ""
-
-#: src/strings.c:80
-msgid "Print the strings of printable characters in files."
-msgstr ""
-
-#: src/strings.c:267 src/strings.c:302
-#, c-format
-msgid "invalid value '%s' for %s parameter"
-msgstr ""
-
-#: src/strings.c:313
-#, c-format
-msgid "invalid minimum length of matched string size"
-msgstr ""
-
-#: src/strings.c:596
-#, c-format
-msgid "lseek64 failed"
-msgstr ""
-
-#: src/strings.c:613 src/strings.c:677
-#, c-format
-msgid "re-mmap failed"
-msgstr ""
-
-#: src/strings.c:650
-#, c-format
-msgid "mprotect failed"
-msgstr ""
-
-#: src/strip.c:69
-msgid "Place stripped output into FILE"
-msgstr "はぎ取った出力を ふぁいる に置く"
-
-#: src/strip.c:70
-msgid "Extract the removed sections into FILE"
-msgstr "抽出した取り除いたセクションを ふぁいる に置く"
-
-#: src/strip.c:71
-msgid "Embed name FILE instead of -f argument"
-msgstr "-f パラメーターの代わりに 名前 ふぁいる を有効にする"
-
-#: src/strip.c:75
-msgid "Remove all debugging symbols"
-msgstr "デバッグ用のシンボルを全て取り除く"
-
-#: src/strip.c:79
-msgid "Remove section headers (not recommended)"
-msgstr ""
-
-#: src/strip.c:81
-msgid "Copy modified/access timestamps to the output"
-msgstr "修正/アクセスタイムスタンプを出力へ複写する"
-
-#: src/strip.c:83
-msgid ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-msgstr ""
-
-#: src/strip.c:85
-msgid "Remove .comment section"
-msgstr ".comment セクションを取り除く"
-
-#: src/strip.c:88
-msgid "Relax a few rules to handle slightly broken ELF files"
-msgstr "少し壊れた ELF ファイルを取り扱うためにルールを少し緩和する"
-
-#: src/strip.c:93
-msgid "Discard symbols from object files."
-msgstr "オブジェクトファイルからシンボルを破棄する"
-
-#: src/strip.c:181
-#, c-format
-msgid "--reloc-debug-sections used without -f"
-msgstr ""
-
-#: src/strip.c:195
-#, c-format
-msgid "Only one input file allowed together with '-o' and '-f'"
-msgstr "'-o' と '-f' と一緒の場合は入力ファイルは 1 つしか認められません"
-
-#: src/strip.c:231
-#, c-format
-msgid "-f option specified twice"
-msgstr "-f オプションが 2 回指定されています"
-
-#: src/strip.c:240
-#, c-format
-msgid "-F option specified twice"
-msgstr "-F オプションが 2 回指定されています"
-
-#: src/strip.c:249 src/unstrip.c:121
-#, c-format
-msgid "-o option specified twice"
-msgstr "-o オプションが 2 回指定されています"
-
-#: src/strip.c:273
-#, c-format
-msgid "-R option supports only .comment section"
-msgstr "-R オプションは .comment セクションのみをサポートします"
-
-#: src/strip.c:315 src/strip.c:339
-#, c-format
-msgid "cannot stat input file '%s'"
-msgstr "入力ファイル '%s' を stat できません"
-
-#: src/strip.c:329
-#, c-format
-msgid "while opening '%s'"
-msgstr "'%s' を開いている間"
-
-#: src/strip.c:367
-#, c-format
-msgid "%s: cannot use -o or -f when stripping archive"
-msgstr "%s: アーカイブから抜き出している時は -o や -f は使えません"
-
-#: src/strip.c:468
-#, c-format
-msgid "cannot open EBL backend"
-msgstr "EBL バックエンドを開けません"
-
-#: src/strip.c:508
-#, fuzzy, c-format
-msgid "cannot get number of phdrs"
-msgstr "セクション数を決定できません: %s"
-
-#: src/strip.c:523 src/strip.c:547
-#, c-format
-msgid "cannot create new file '%s': %s"
-msgstr "新しいファイル '%s' を生成できません: %s"
-
-#: src/strip.c:613
-#, c-format
-msgid "illformed file '%s'"
-msgstr "不適格なファイル '%s'"
-
-#: src/strip.c:935 src/strip.c:1024
-#, c-format
-msgid "while generating output file: %s"
-msgstr "出力ファイルを生成している間: %s"
-
-#: src/strip.c:997 src/strip.c:1962
-#, c-format
-msgid "%s: error while creating ELF header: %s"
-msgstr "%s: ELF ヘッダーを生成している間にエラー: %s"
-
-#: src/strip.c:1011
-#, c-format
-msgid "while preparing output for '%s'"
-msgstr "'%s' のための出力を準備している間"
-
-#: src/strip.c:1062 src/strip.c:1119
-#, c-format
-msgid "while create section header section: %s"
-msgstr "セクションヘッダーセクションを生成している間: %s"
-
-#: src/strip.c:1068
-#, c-format
-msgid "cannot allocate section data: %s"
-msgstr "セクションデータを割り当てられません: %s"
-
-#: src/strip.c:1128
-#, c-format
-msgid "while create section header string table: %s"
-msgstr "セクションヘッダー文字列テーブルを生成中: %s"
-
-#: src/strip.c:1757
-#, fuzzy, c-format
-msgid "bad relocation"
-msgstr "リロケーションを表示"
-
-#: src/strip.c:1874 src/strip.c:1984
-#, c-format
-msgid "while writing '%s': %s"
-msgstr "'%s' を書込み中: %s"
-
-#: src/strip.c:1885
-#, c-format
-msgid "while creating '%s'"
-msgstr "'%s' を生成中"
-
-#: src/strip.c:1907
-#, c-format
-msgid "while computing checksum for debug information"
-msgstr "デバッグ情報のチェックサムを計算中"
-
-#: src/strip.c:1970
-#, c-format
-msgid "%s: error while reading the file: %s"
-msgstr "%s: ファイルを読込み中にエラー: %s"
-
-#: src/strip.c:2009 src/strip.c:2029
-#, fuzzy, c-format
-msgid "while writing '%s'"
-msgstr "'%s' を書込み中: %s"
-
-#: src/strip.c:2066 src/strip.c:2073
-#, c-format
-msgid "error while finishing '%s': %s"
-msgstr "'%s' の終了中にエラー: %s"
-
-#: src/strip.c:2096 src/strip.c:2153
-#, c-format
-msgid "cannot set access and modification date of '%s'"
-msgstr "'%s' のアクセスと変更日付を設定できません"
-
-#: src/unstrip.c:70
-msgid "Match MODULE against file names, not module names"
-msgstr ""
-
-#: src/unstrip.c:71
-msgid "Silently skip unfindable files"
-msgstr ""
-
-#: src/unstrip.c:74
-msgid "Place output into FILE"
-msgstr ""
-
-#: src/unstrip.c:76
-msgid "Create multiple output files under DIRECTORY"
-msgstr ""
-
-#: src/unstrip.c:77
-msgid "Use module rather than file names"
-msgstr ""
-
-#: src/unstrip.c:79
-msgid "Create output for modules that have no separate debug information"
-msgstr ""
-
-#: src/unstrip.c:82
-msgid "Apply relocations to section contents in ET_REL files"
-msgstr ""
-
-#: src/unstrip.c:84
-msgid "Only list module and file names, build IDs"
-msgstr ""
-
-#: src/unstrip.c:86
-msgid "Force combining files even if some ELF headers don't seem to match"
-msgstr ""
-
-#: src/unstrip.c:130
-#, c-format
-msgid "-d option specified twice"
-msgstr ""
-
-#: src/unstrip.c:165
-#, c-format
-msgid "only one of -o or -d allowed"
-msgstr ""
-
-#: src/unstrip.c:174
-#, c-format
-msgid "-n cannot be used with explicit files or -o or -d"
-msgstr ""
-
-#: src/unstrip.c:189
-#, c-format
-msgid "output directory '%s'"
-msgstr ""
-
-#: src/unstrip.c:198
-#, c-format
-msgid "exactly two file arguments are required"
-msgstr ""
-
-#: src/unstrip.c:204
-#, c-format
-msgid "-m, -a, -R, and -i options not allowed with explicit files"
-msgstr ""
-
-#: src/unstrip.c:217
-#, c-format
-msgid "-o or -d is required when using implicit files"
-msgstr ""
-
-#: src/unstrip.c:253
-#, c-format
-msgid "cannot create ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:258
-#, c-format
-msgid "cannot copy ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:262 src/unstrip.c:1832 src/unstrip.c:1876
-#, fuzzy, c-format
-msgid "cannot get number of program headers: %s"
-msgstr "セクション数を決定できません: %s"
-
-#: src/unstrip.c:267 src/unstrip.c:1836
-#, c-format
-msgid "cannot create program headers: %s"
-msgstr ""
-
-#: src/unstrip.c:273
-#, c-format
-msgid "cannot copy program header: %s"
-msgstr ""
-
-#: src/unstrip.c:283
-#, c-format
-msgid "cannot copy section header: %s"
-msgstr ""
-
-#: src/unstrip.c:286 src/unstrip.c:1513
-#, c-format
-msgid "cannot get section data: %s"
-msgstr ""
-
-#: src/unstrip.c:288 src/unstrip.c:1515
-#, c-format
-msgid "cannot copy section data: %s"
-msgstr ""
-
-#: src/unstrip.c:312
-#, c-format
-msgid "cannot create directory '%s'"
-msgstr ""
-
-#: src/unstrip.c:352 src/unstrip.c:769 src/unstrip.c:1547
-#, c-format
-msgid "cannot get symbol table entry: %s"
-msgstr ""
-
-#: src/unstrip.c:368 src/unstrip.c:586 src/unstrip.c:607 src/unstrip.c:619
-#: src/unstrip.c:1568 src/unstrip.c:1698 src/unstrip.c:1722
-#, c-format
-msgid "cannot update symbol table: %s"
-msgstr ""
-
-#: src/unstrip.c:378
-#, c-format
-msgid "cannot update section header: %s"
-msgstr ""
-
-#: src/unstrip.c:417 src/unstrip.c:428
-#, c-format
-msgid "cannot update relocation: %s"
-msgstr ""
-
-#: src/unstrip.c:515
-#, c-format
-msgid "cannot get symbol version: %s"
-msgstr ""
-
-#: src/unstrip.c:527
-#, c-format
-msgid "unexpected section type in [%Zu] with sh_link to symtab"
-msgstr ""
-
-#: src/unstrip.c:775
-#, c-format
-msgid "invalid string offset in symbol [%Zu]"
-msgstr ""
-
-#: src/unstrip.c:917 src/unstrip.c:1258
-#, c-format
-msgid "cannot read section [%Zu] name: %s"
-msgstr ""
-
-#: src/unstrip.c:958 src/unstrip.c:977 src/unstrip.c:1010
-#, c-format
-msgid "cannot read '.gnu.prelink_undo' section: %s"
-msgstr ""
-
-#: src/unstrip.c:998
-#, c-format
-msgid "invalid contents in '%s' section"
-msgstr ""
-
-#: src/unstrip.c:1053 src/unstrip.c:1378
-#, c-format
-msgid "cannot find matching section for [%Zu] '%s'"
-msgstr ""
-
-#: src/unstrip.c:1178 src/unstrip.c:1193 src/unstrip.c:1459
-#, c-format
-msgid "cannot add section name to string table: %s"
-msgstr ""
-
-#: src/unstrip.c:1202
-#, c-format
-msgid "cannot update section header string table data: %s"
-msgstr ""
-
-#: src/unstrip.c:1229 src/unstrip.c:1233
-#, c-format
-msgid "cannot get section header string table section index: %s"
-msgstr ""
-
-#: src/unstrip.c:1237 src/unstrip.c:1241 src/unstrip.c:1474
-#, c-format
-msgid "cannot get section count: %s"
-msgstr ""
-
-#: src/unstrip.c:1244
-#, c-format
-msgid "more sections in stripped file than debug file -- arguments reversed?"
-msgstr ""
-
-#: src/unstrip.c:1303 src/unstrip.c:1393
-#, c-format
-msgid "cannot read section header string table: %s"
-msgstr ""
-
-#: src/unstrip.c:1453
-#, c-format
-msgid "cannot add new section: %s"
-msgstr ""
-
-#: src/unstrip.c:1555
-#, c-format
-msgid "symbol [%Zu] has invalid section index"
-msgstr ""
-
-#: src/unstrip.c:1793
-#, fuzzy, c-format
-msgid "cannot read section data: %s"
-msgstr "セクションデータを割り当てられません: %s"
-
-#: src/unstrip.c:1814
-#, c-format
-msgid "cannot get ELF header: %s"
-msgstr ""
-
-#: src/unstrip.c:1846
-#, c-format
-msgid "cannot update program header: %s"
-msgstr ""
-
-#: src/unstrip.c:1851 src/unstrip.c:1934
-#, c-format
-msgid "cannot write output file: %s"
-msgstr ""
-
-#: src/unstrip.c:1903
-#, c-format
-msgid "DWARF data not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-
-#: src/unstrip.c:1906
-#, c-format
-msgid ""
-"DWARF data in '%s' not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-
-#: src/unstrip.c:1925 src/unstrip.c:1976 src/unstrip.c:1988 src/unstrip.c:2074
-#, c-format
-msgid "cannot create ELF descriptor: %s"
-msgstr ""
-
-#: src/unstrip.c:1967
-msgid "WARNING: "
-msgstr ""
-
-#: src/unstrip.c:1969
-msgid ", use --force"
-msgstr ""
-
-#: src/unstrip.c:1992
-msgid "ELF header identification (e_ident) different"
-msgstr ""
-
-#: src/unstrip.c:1995
-msgid "ELF header type (e_type) different"
-msgstr ""
-
-#: src/unstrip.c:1998
-msgid "ELF header machine type (e_machine) different"
-msgstr ""
-
-#: src/unstrip.c:2001
-msgid "stripped program header (e_phnum) smaller than unstripped"
-msgstr ""
-
-#: src/unstrip.c:2031
-#, c-format
-msgid "cannot find stripped file for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2035
-#, c-format
-msgid "cannot open stripped file '%s' for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2050
-#, c-format
-msgid "cannot find debug file for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2054
-#, c-format
-msgid "cannot open debug file '%s' for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2067
-#, c-format
-msgid "module '%s' file '%s' is not stripped"
-msgstr ""
-
-#: src/unstrip.c:2098
-#, c-format
-msgid "cannot cache section addresses for module '%s': %s"
-msgstr ""
-
-#: src/unstrip.c:2231
-#, c-format
-msgid "no matching modules found"
-msgstr ""
-
-#: src/unstrip.c:2240
-#, c-format
-msgid "matched more than one module"
-msgstr ""
-
-#: src/unstrip.c:2287
-msgid ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-msgstr ""
-
-#: src/unstrip.c:2288
-msgid ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-msgstr ""
-
-#, fuzzy
-#~ msgid "cannot attach to process"
-#~ msgstr "検索ツリーを生成できません"
-
-#, fuzzy
-#~ msgid "cannot attach to core"
-#~ msgstr "検索ツリーを生成できません"
-
-#~ msgid "unknown tag %hx"
-#~ msgstr "不明なタグ %hx"
-
-#~ msgid "unknown user tag %hx"
-#~ msgstr "不明な利用者タグ %hx"
-
-#~ msgid "unknown attribute %hx"
-#~ msgstr "不明な属性 %hx"
-
-#~ msgid "unknown user attribute %hx"
-#~ msgstr "不明な利用者属性 %hx"
-
-#, fuzzy
-#~ msgid "unknown form %#<PRIx64>"
-#~ msgstr "不明な様式 %<PRIx64>"
-
-#~ msgid ""
-#~ "\n"
-#~ "\n"
-#~ "Symbols from %s[%s]:\n"
-#~ "\n"
-#~ msgstr ""
-#~ "\n"
-#~ "\n"
-#~ "%s[%s]からのシンボル:\n"
-#~ "\n"
-
-#~ msgid " Version String: "
-#~ msgstr "バージョン文字列:"
-
-#~ msgid "Equivalent to: -e -h -l"
-#~ msgstr "右記と同等: -e -h -l"
-
-#~ msgid ""
-#~ "\n"
-#~ "Section [%Zu] '%s' is empty.\n"
-#~ msgstr ""
-#~ "\n"
-#~ "セクション [%Zu] '%s' は空です。\n"
diff --git a/src/po/pl.gmo b/src/po/pl.gmo
deleted file mode 100644
index 82b5abeb..00000000
--- a/src/po/pl.gmo
+++ /dev/null
Binary files differ
diff --git a/src/po/pl.po b/src/po/pl.po
deleted file mode 100644
index 9e6c6ed2..00000000
--- a/src/po/pl.po
+++ /dev/null
@@ -1,6853 +0,0 @@
-# translation of pl.po to Polish
-# Jakub Bogusz <qboosh@pld-linux.org>, 2003-2007.
-# Piotr Drąg <piotrdrag@gmail.com>, 2010-2012.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: pl\n"
-"Report-Msgid-Bugs-To: http://bugzilla.redhat.com/\n"
-"POT-Creation-Date: 2014-12-19 21:45+0100\n"
-"PO-Revision-Date: 2012-09-02 19:12+0200\n"
-"Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
-"Language-Team: Polish <trans-pl@lists.fedoraproject.org>\n"
-"Language: pl\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
-"|| n%100>=20) ? 1 : 2);\n"
-
-#: lib/xmalloc.c:54 lib/xmalloc.c:68 lib/xmalloc.c:82 src/readelf.c:3182
-#: src/readelf.c:3559 src/readelf.c:8285 src/unstrip.c:2127 src/unstrip.c:2335
-#, c-format
-msgid "memory exhausted"
-msgstr "pamięć wyczerpana"
-
-#: libasm/asm_error.c:65 libdw/dwarf_error.c:58 libdwfl/libdwflP.h:53
-#: libelf/elf_error.c:60
-msgid "no error"
-msgstr "brak błędu"
-
-#: libasm/asm_error.c:66 libdw/dwarf_error.c:67 libdwfl/libdwflP.h:55
-#: libelf/elf_error.c:91
-msgid "out of memory"
-msgstr "brak pamięci"
-
-#: libasm/asm_error.c:67 src/ldgeneric.c:2677
-#, c-format
-msgid "cannot create output file"
-msgstr "nie można utworzyć pliku wyjściowego"
-
-#: libasm/asm_error.c:68
-msgid "invalid parameter"
-msgstr "nieprawidłowy parametr"
-
-#: libasm/asm_error.c:69
-msgid "cannot change mode of output file"
-msgstr "nie można zmienić trybu pliku wyjściowego"
-
-#: libasm/asm_error.c:70 src/ldgeneric.c:6990
-#, c-format
-msgid "cannot rename output file"
-msgstr "nie można zmienić nazwy pliku wyjściowego"
-
-#: libasm/asm_error.c:71
-msgid "duplicate symbol"
-msgstr "powtórzony symbol"
-
-#: libasm/asm_error.c:72
-msgid "invalid section type for operation"
-msgstr "nieprawidłowy typ sekcji dla działania"
-
-#: libasm/asm_error.c:73
-msgid "error during output of data"
-msgstr "błąd podczas wyprowadzania danych"
-
-#: libasm/asm_error.c:74
-msgid "no backend support available"
-msgstr "brak dostępnej obsługi zaplecza"
-
-#: libasm/asm_error.c:84 libdw/dwarf_error.c:59 libdwfl/libdwflP.h:54
-#: libelf/elf_error.c:63
-msgid "unknown error"
-msgstr "nieznany błąd"
-
-#: libdw/dwarf_error.c:60
-msgid "invalid access"
-msgstr "nieprawidłowy dostęp"
-
-#: libdw/dwarf_error.c:61
-msgid "no regular file"
-msgstr "nie jest zwykłym plikiem"
-
-#: libdw/dwarf_error.c:62
-msgid "I/O error"
-msgstr "błąd wejścia/wyjścia"
-
-#: libdw/dwarf_error.c:63
-msgid "invalid ELF file"
-msgstr "nieprawidłowy plik ELF"
-
-#: libdw/dwarf_error.c:64
-msgid "no DWARF information"
-msgstr "brak informacji DWARF"
-
-#: libdw/dwarf_error.c:65
-msgid "no ELF file"
-msgstr "brak pliku ELF"
-
-#: libdw/dwarf_error.c:66
-msgid "cannot get ELF header"
-msgstr "nie można uzyskać nagłówka ELF"
-
-#: libdw/dwarf_error.c:68
-msgid "not implemented"
-msgstr "niezaimplementowane"
-
-#: libdw/dwarf_error.c:69 libelf/elf_error.c:107 libelf/elf_error.c:155
-msgid "invalid command"
-msgstr "nieprawidłowe polecenie"
-
-#: libdw/dwarf_error.c:70
-msgid "invalid version"
-msgstr "nieprawidłowa wersja"
-
-#: libdw/dwarf_error.c:71
-msgid "invalid file"
-msgstr "nieprawidłowy plik"
-
-#: libdw/dwarf_error.c:72
-msgid "no entries found"
-msgstr "nie odnaleziono wpisów"
-
-#: libdw/dwarf_error.c:73
-msgid "invalid DWARF"
-msgstr "nieprawidłowy DWARF"
-
-#: libdw/dwarf_error.c:74
-msgid "no string data"
-msgstr "brak danych w postaci ciągu"
-
-#: libdw/dwarf_error.c:75
-msgid "no address value"
-msgstr "brak wartości adresu"
-
-#: libdw/dwarf_error.c:76
-msgid "no constant value"
-msgstr "brak wartości stałej"
-
-#: libdw/dwarf_error.c:77
-msgid "no reference value"
-msgstr "brak wartości odwołania"
-
-#: libdw/dwarf_error.c:78
-msgid "invalid reference value"
-msgstr "nieprawidłowa wartość odwołania"
-
-#: libdw/dwarf_error.c:79
-msgid ".debug_line section missing"
-msgstr "brak sekcji .debug_line"
-
-#: libdw/dwarf_error.c:80
-msgid "invalid .debug_line section"
-msgstr "nieprawidłowa sekcja .debug_line"
-
-#: libdw/dwarf_error.c:81
-msgid "debug information too big"
-msgstr "informacje debugowania są za duże"
-
-#: libdw/dwarf_error.c:82
-msgid "invalid DWARF version"
-msgstr "nieprawidłowa wersja DWARF"
-
-#: libdw/dwarf_error.c:83
-msgid "invalid directory index"
-msgstr "nieprawidłowy indeks katalogu"
-
-#: libdw/dwarf_error.c:84 libdwfl/libdwflP.h:74
-msgid "address out of range"
-msgstr "adres jest spoza zakresu"
-
-#: libdw/dwarf_error.c:85
-msgid "no location list value"
-msgstr "brak wartości listy położeń"
-
-#: libdw/dwarf_error.c:86
-msgid "no block data"
-msgstr "brak danych blokowych"
-
-#: libdw/dwarf_error.c:87
-msgid "invalid line index"
-msgstr "nieprawidłowy indeks wiersza"
-
-#: libdw/dwarf_error.c:88
-msgid "invalid address range index"
-msgstr "nieprawidłowy indeks zakresu adresów"
-
-#: libdw/dwarf_error.c:89 libdwfl/libdwflP.h:75
-msgid "no matching address range"
-msgstr "brak pasującego zakresu adresów"
-
-#: libdw/dwarf_error.c:90
-msgid "no flag value"
-msgstr "brak wartości flagi"
-
-#: libdw/dwarf_error.c:91 libelf/elf_error.c:232
-msgid "invalid offset"
-msgstr "nieprawidłowy offset"
-
-#: libdw/dwarf_error.c:92
-msgid ".debug_ranges section missing"
-msgstr "brak sekcji .debug_ranges"
-
-#: libdw/dwarf_error.c:93
-msgid "invalid CFI section"
-msgstr "nieprawidłowa wersja CFI"
-
-#: libdw/dwarf_error.c:94
-msgid "no alternative debug link found"
-msgstr "nie odnaleziono alternatywnego dowiązania debugowania"
-
-#: libdw/dwarf_error.c:95
-#, fuzzy
-msgid "invalid opcode"
-msgstr "nieprawidłowy operand"
-
-#: libdwfl/argp-std.c:46 src/unstrip.c:2277
-msgid "Input selection options:"
-msgstr "Opcje wyboru wejścia:"
-
-#: libdwfl/argp-std.c:47
-msgid "Find addresses in FILE"
-msgstr "Wyszukuje adresy w PLIKU"
-
-#: libdwfl/argp-std.c:49
-msgid "Find addresses from signatures found in COREFILE"
-msgstr "Wyszukuje adresy z podpisów odnalezionych w PLIKU_CORE"
-
-#: libdwfl/argp-std.c:51
-msgid "Find addresses in files mapped into process PID"
-msgstr "Wyszukuje adresy w plikach zmapowanych do PID procesów"
-
-#: libdwfl/argp-std.c:53
-msgid ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-msgstr ""
-"Wyszukuje adresy w plikach zmapowanych jako odczyt z PLIKU w formacie /proc/"
-"PID/maps systemu Linux"
-
-#: libdwfl/argp-std.c:55
-msgid "Find addresses in the running kernel"
-msgstr "Wyszukuje adresy w uruchomionych jądrze"
-
-#: libdwfl/argp-std.c:57
-msgid "Kernel with all modules"
-msgstr "Jądro ze wszystkimi modułami"
-
-#: libdwfl/argp-std.c:59
-msgid "Search path for separate debuginfo files"
-msgstr "Wyszukuje ścieżkę dla oddzielnych plików debuginfo"
-
-#: libdwfl/argp-std.c:157
-msgid "only one of -e, -p, -k, -K, or --core allowed"
-msgstr "dopuszczalna jest tylko jedna z opcji -e, -p, -k, -K lub --core"
-
-#: libdwfl/argp-std.c:230
-msgid "cannot load kernel symbols"
-msgstr "nie można wczytać symboli jądra"
-
-#: libdwfl/argp-std.c:234
-msgid "cannot find kernel modules"
-msgstr "nie można odnaleźć modułów jądra"
-
-#: libdwfl/argp-std.c:251
-msgid "cannot find kernel or modules"
-msgstr "nie można odnaleźć jądra lub modułów"
-
-#: libdwfl/argp-std.c:290
-#, c-format
-msgid "cannot read ELF core file: %s"
-msgstr "nie można odczytać pliku core ELF: %s"
-
-#: libdwfl/argp-std.c:311
-msgid "No modules recognized in core file"
-msgstr "Nie rozpoznano żadnych modułów w pliku core"
-
-#: libdwfl/libdwflP.h:56
-msgid "See errno"
-msgstr "Proszę zobaczyć errno"
-
-#: libdwfl/libdwflP.h:57
-msgid "See elf_errno"
-msgstr "Proszę zobaczyć elf_errno"
-
-#: libdwfl/libdwflP.h:58
-msgid "See dwarf_errno"
-msgstr "Proszę zobaczyć dwarf_errno"
-
-#: libdwfl/libdwflP.h:59
-msgid "See ebl_errno (XXX missing)"
-msgstr "Proszę zobaczyć ebl_errno (brak XXX)"
-
-#: libdwfl/libdwflP.h:60
-msgid "gzip decompression failed"
-msgstr "dekompresja gzip nie powiodła się"
-
-#: libdwfl/libdwflP.h:61
-msgid "bzip2 decompression failed"
-msgstr "dekompresja bzip2 nie powiodła się"
-
-#: libdwfl/libdwflP.h:62
-msgid "LZMA decompression failed"
-msgstr "dekompresja LZMA nie powiodła się"
-
-#: libdwfl/libdwflP.h:63
-msgid "no support library found for machine"
-msgstr "nie odnaleziono biblioteki obsługi dla komputera"
-
-#: libdwfl/libdwflP.h:64
-msgid "Callbacks missing for ET_REL file"
-msgstr "Brak wywołań zwrotnych dla pliku ET_REL"
-
-#: libdwfl/libdwflP.h:65
-msgid "Unsupported relocation type"
-msgstr "Nieobsługiwany typ relokacji"
-
-#: libdwfl/libdwflP.h:66
-msgid "r_offset is bogus"
-msgstr "r_offset jest fałszywe"
-
-#: libdwfl/libdwflP.h:67 libelf/elf_error.c:111 libelf/elf_error.c:171
-msgid "offset out of range"
-msgstr "offset spoza zakresu"
-
-#: libdwfl/libdwflP.h:68
-msgid "relocation refers to undefined symbol"
-msgstr "relokacja odnosi się do nieokreślonego symbolu"
-
-#: libdwfl/libdwflP.h:69
-msgid "Callback returned failure"
-msgstr "Wywołanie zwrotne zwróciło niepowodzenie"
-
-#: libdwfl/libdwflP.h:70
-msgid "No DWARF information found"
-msgstr "Nie odnaleziono informacji DWARF"
-
-#: libdwfl/libdwflP.h:71
-msgid "No symbol table found"
-msgstr "Nie odnaleziono tabeli symboli"
-
-#: libdwfl/libdwflP.h:72
-msgid "No ELF program headers"
-msgstr "Brak nagłówków programu ELF"
-
-#: libdwfl/libdwflP.h:73
-msgid "address range overlaps an existing module"
-msgstr "zakres adresów pokrywa się z istniejącym modułem"
-
-#: libdwfl/libdwflP.h:76
-msgid "image truncated"
-msgstr "skrócono obraz"
-
-#: libdwfl/libdwflP.h:77
-msgid "ELF file opened"
-msgstr "otwarto plik ELF"
-
-#: libdwfl/libdwflP.h:78
-msgid "not a valid ELF file"
-msgstr "nie jest prawidłowym plikiem ELF"
-
-#: libdwfl/libdwflP.h:79
-msgid "cannot handle DWARF type description"
-msgstr "nie można obsłużyć opisu typu DWARF"
-
-#: libdwfl/libdwflP.h:80
-msgid "ELF file does not match build ID"
-msgstr "plik ELF nie posiada pasującego identyfikatora kopii"
-
-#: libdwfl/libdwflP.h:81
-msgid "corrupt .gnu.prelink_undo section data"
-msgstr "uszkodzone dane sekcji .gnu.prelink_undo"
-
-#: libdwfl/libdwflP.h:82
-msgid "Internal error due to ebl"
-msgstr ""
-
-#: libdwfl/libdwflP.h:83
-msgid "Missing data in core file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:84
-#, fuzzy
-msgid "Invalid register"
-msgstr "nieprawidłowy parametr"
-
-#: libdwfl/libdwflP.h:85
-msgid "Error reading process memory"
-msgstr ""
-
-#: libdwfl/libdwflP.h:86
-msgid "Couldn't find architecture of any ELF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:87
-msgid "Error parsing /proc filesystem"
-msgstr ""
-
-#: libdwfl/libdwflP.h:88
-#, fuzzy
-msgid "Invalid DWARF"
-msgstr "nieprawidłowy DWARF"
-
-#: libdwfl/libdwflP.h:89
-msgid "Unsupported DWARF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:90
-msgid "Unable to find more threads"
-msgstr ""
-
-#: libdwfl/libdwflP.h:91
-msgid "Dwfl already has attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:92
-msgid "Dwfl has no attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:93
-msgid "Unwinding not supported for this architecture"
-msgstr ""
-
-#: libdwfl/libdwflP.h:94
-#, fuzzy
-msgid "Invalid argument"
-msgstr "nieprawidłowy parametr"
-
-#: libdwfl/libdwflP.h:95
-#, fuzzy
-msgid "Not an ET_CORE ELF file"
-msgstr "nie jest prawidłowym plikiem ELF"
-
-#: libebl/eblbackendname.c:42
-msgid "No backend"
-msgstr "Brak zaplecza"
-
-#: libebl/eblcorenotetypename.c:102 libebl/eblobjecttypename.c:57
-#: libebl/eblobjnotetypename.c:73 libebl/eblosabiname.c:77
-#: libebl/eblsectionname.c:89 libebl/eblsectiontypename.c:119
-#: libebl/eblsegmenttypename.c:83
-msgid "<unknown>"
-msgstr "<nieznany>"
-
-#: libebl/ebldynamictagname.c:105
-#, c-format
-msgid "<unknown>: %#<PRIx64>"
-msgstr "<nieznany>: %#<PRIx64>"
-
-#: libebl/eblobjnote.c:55
-#, c-format
-msgid "unknown SDT version %u\n"
-msgstr "nieznana wersja SDT %u\n"
-
-#: libebl/eblobjnote.c:73
-#, c-format
-msgid "invalid SDT probe descriptor\n"
-msgstr "nieprawidłowy deskryptor sondy SDT\n"
-
-#: libebl/eblobjnote.c:123
-#, c-format
-msgid " PC: "
-msgstr " PC: "
-
-#: libebl/eblobjnote.c:125
-#, c-format
-msgid " Base: "
-msgstr " Podstawa: "
-
-#: libebl/eblobjnote.c:127
-#, c-format
-msgid " Semaphore: "
-msgstr " Semafor: "
-
-#: libebl/eblobjnote.c:129
-#, c-format
-msgid " Provider: "
-msgstr " Dostawca: "
-
-#: libebl/eblobjnote.c:131
-#, c-format
-msgid " Name: "
-msgstr " Nazwa: "
-
-#: libebl/eblobjnote.c:133
-#, c-format
-msgid " Args: "
-msgstr " Parametry: "
-
-#: libebl/eblobjnote.c:143
-#, c-format
-msgid " Build ID: "
-msgstr " Identyfikator kopii: "
-
-#: libebl/eblobjnote.c:154
-#, c-format
-msgid " Linker version: %.*s\n"
-msgstr " Wersja konsolidatora: %.*s\n"
-
-#: libebl/eblobjnote.c:203
-#, c-format
-msgid " OS: %s, ABI: "
-msgstr " System operacyjny: %s, ABI: "
-
-#: libebl/eblosabiname.c:74
-msgid "Stand alone"
-msgstr "Samodzielny"
-
-#: libebl/eblsymbolbindingname.c:71 libebl/eblsymboltypename.c:77
-#, c-format
-msgid "<unknown>: %d"
-msgstr "<nieznany>: %d"
-
-#: libelf/elf_error.c:67
-msgid "unknown version"
-msgstr "nieznana wersja"
-
-#: libelf/elf_error.c:71
-msgid "unknown type"
-msgstr "nieznany typ"
-
-#: libelf/elf_error.c:75
-msgid "invalid `Elf' handle"
-msgstr "nieprawidłowa obsługa \"Elf\""
-
-#: libelf/elf_error.c:79
-msgid "invalid size of source operand"
-msgstr "nieprawidłowy rozmiar operanda źródłowego"
-
-#: libelf/elf_error.c:83
-msgid "invalid size of destination operand"
-msgstr "nieprawidłowy rozmiar operanda docelowego"
-
-#: libelf/elf_error.c:87 src/readelf.c:5367
-#, c-format
-msgid "invalid encoding"
-msgstr "nieprawidłowe kodowanie"
-
-#: libelf/elf_error.c:95
-msgid "invalid file descriptor"
-msgstr "nieprawidłowy deskryptor pliku"
-
-#: libelf/elf_error.c:99
-msgid "invalid operation"
-msgstr "nieprawidłowe działanie"
-
-#: libelf/elf_error.c:103
-msgid "ELF version not set"
-msgstr "wersja ELF nie została ustawiona"
-
-#: libelf/elf_error.c:115
-msgid "invalid fmag field in archive header"
-msgstr "nieprawidłowe pole fmag w nagłówku archiwum"
-
-#: libelf/elf_error.c:119
-msgid "invalid archive file"
-msgstr "nieprawidłowy plik archiwum"
-
-#: libelf/elf_error.c:123
-msgid "descriptor is not for an archive"
-msgstr "deskryptor nie jest dla archiwum"
-
-#: libelf/elf_error.c:127
-msgid "no index available"
-msgstr "brak dostępnego indeksu"
-
-#: libelf/elf_error.c:131
-msgid "cannot read data from file"
-msgstr "nie można odczytać danych z pliku"
-
-#: libelf/elf_error.c:135
-msgid "cannot write data to file"
-msgstr "nie można zapisać danych do pliku"
-
-#: libelf/elf_error.c:139
-msgid "invalid binary class"
-msgstr "nieprawidłowa klasa pliku binarnego"
-
-#: libelf/elf_error.c:143
-msgid "invalid section index"
-msgstr "nieprawidłowy indeks sekcji"
-
-#: libelf/elf_error.c:147
-msgid "invalid operand"
-msgstr "nieprawidłowy operand"
-
-#: libelf/elf_error.c:151
-msgid "invalid section"
-msgstr "nieprawidłowa sekcja"
-
-#: libelf/elf_error.c:159
-msgid "executable header not created first"
-msgstr "nie utworzono najpierw nagłówka pliku wykonywalnego"
-
-#: libelf/elf_error.c:163
-msgid "file descriptor disabled"
-msgstr "deskryptor pliku jest wyłączony"
-
-#: libelf/elf_error.c:167
-msgid "archive/member file descriptor mismatch"
-msgstr "deskryptory archiwum/elementu nie zgadzają się"
-
-#: libelf/elf_error.c:175
-msgid "cannot manipulate null section"
-msgstr "nie można zmieniać pustej sekcji"
-
-#: libelf/elf_error.c:179
-msgid "data/scn mismatch"
-msgstr "dane/scn nie zgadzają się"
-
-#: libelf/elf_error.c:183
-msgid "invalid section header"
-msgstr "nieprawidłowy nagłówek sekcji"
-
-#: libelf/elf_error.c:187 src/readelf.c:7235 src/readelf.c:7683
-#: src/readelf.c:7784 src/readelf.c:7954
-#, c-format
-msgid "invalid data"
-msgstr "nieprawidłowe dane"
-
-#: libelf/elf_error.c:191
-msgid "unknown data encoding"
-msgstr "nieznane kodowanie danych"
-
-#: libelf/elf_error.c:195
-msgid "section `sh_size' too small for data"
-msgstr "sekcja \"sh_size\" jest za mała dla danych"
-
-#: libelf/elf_error.c:199
-msgid "invalid section alignment"
-msgstr "nieprawidłowe wyrównanie sekcji"
-
-#: libelf/elf_error.c:203
-msgid "invalid section entry size"
-msgstr "nieprawidłowy rozmiar wpisu sekcji"
-
-#: libelf/elf_error.c:207
-msgid "update() for write on read-only file"
-msgstr "update() dla zapisu pliku tylko do odczytu"
-
-#: libelf/elf_error.c:211
-msgid "no such file"
-msgstr "nie ma takiego pliku"
-
-#: libelf/elf_error.c:215
-msgid "only relocatable files can contain section groups"
-msgstr "tylko relokowalne pliki mogą zawierać grupy sekcji"
-
-#: libelf/elf_error.c:220
-msgid ""
-"program header only allowed in executables, shared objects, and core files"
-msgstr ""
-"tylko pliki wykonywalne, obiektów współdzielone i pliki core mogą mieć "
-"nagłówki programu"
-
-#: libelf/elf_error.c:227
-msgid "file has no program header"
-msgstr "plik nie posiada nagłówków programu"
-
-#: src/addr2line.c:58
-msgid "Output selection options:"
-msgstr "Opcje wyboru wyjścia:"
-
-#: src/addr2line.c:59
-msgid "Show only base names of source files"
-msgstr "Wyświetla tylko podstawowe nazwy plików źródłowych"
-
-#: src/addr2line.c:61
-msgid "Show absolute file names using compilation directory"
-msgstr "Wyświetla bezwzględne nazwy plików używając katalogu kompilacji"
-
-#: src/addr2line.c:62
-msgid "Also show function names"
-msgstr "Wyświetla także nazwy funkcji"
-
-#: src/addr2line.c:63
-msgid "Also show symbol or section names"
-msgstr "Wyświetla także nazwy symboli ub sekcji"
-
-#: src/addr2line.c:64
-#, fuzzy
-msgid "Also show symbol and the section names"
-msgstr "Wyświetla także nazwy symboli ub sekcji"
-
-#: src/addr2line.c:65
-msgid "Also show line table flags"
-msgstr "Wyświetla także flagi tabeli wierszy"
-
-#: src/addr2line.c:67
-msgid "Treat addresses as offsets relative to NAME section."
-msgstr "Traktuje adresy jako offsety względne do sekcji NAZWA."
-
-#: src/addr2line.c:69
-msgid ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-msgstr ""
-
-#: src/addr2line.c:72 src/elfcmp.c:72 src/findtextrel.c:67 src/nm.c:100
-#: src/strings.c:75
-msgid "Miscellaneous:"
-msgstr "Różne:"
-
-#: src/addr2line.c:81
-msgid ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-msgstr ""
-"Odnajdywanie plików źródłowych i informacji o wierszu dla ADRESU (domyślne w "
-"a.out)."
-
-#: src/addr2line.c:85
-msgid "[ADDR...]"
-msgstr "[ADRES...]"
-
-#: src/addr2line.c:196 src/ar.c:289 src/elfcmp.c:663 src/elflint.c:235
-#: src/findtextrel.c:162 src/ld.c:949 src/nm.c:265 src/objdump.c:181
-#: src/ranlib.c:128 src/readelf.c:500 src/size.c:211 src/strings.c:226
-#: src/strip.c:213 src/unstrip.c:233
-#, c-format
-msgid ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-msgstr ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"Niniejszy program jest wolnym oprogramowaniem; proszę zobaczyć kod źródłowy\n"
-"w celu poznania warunków kopiowania. Niniejszy program rozprowadzany jest\n"
-"BEZ JAKIEJKOLWIEK GWARANCJI, nawet domyślnej gwarancji PRZYDATNOŚCI\n"
-"HANDLOWEJ albo PRZYDATNOŚCI DO OKREŚLONYCH ZASTOSOWAŃ.\n"
-
-#: src/addr2line.c:201 src/ar.c:294 src/elfcmp.c:668 src/elflint.c:240
-#: src/findtextrel.c:167 src/ld.c:954 src/nm.c:270 src/objdump.c:186
-#: src/ranlib.c:133 src/readelf.c:505 src/size.c:216 src/strings.c:231
-#: src/strip.c:218 src/unstrip.c:238
-#, c-format
-msgid "Written by %s.\n"
-msgstr "Napisane przez %s.\n"
-
-#: src/addr2line.c:474
-#, c-format
-msgid "Section syntax requires exactly one module"
-msgstr "Składnia sekcji wymaga dokładnie jednego modułu"
-
-#: src/addr2line.c:497
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside section '%s'"
-msgstr "offset %#<PRIxMAX> leży poza sekcją \"%s\""
-
-#: src/addr2line.c:563
-#, c-format
-msgid "cannot find symbol '%s'"
-msgstr "nie można odnaleźć symbolu \"%s\""
-
-#: src/addr2line.c:568
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside contents of '%s'"
-msgstr "offset %#<PRIxMAX> leży poza zawartością \"%s\""
-
-#: src/ar.c:69
-msgid "Commands:"
-msgstr "Polecenia:"
-
-#: src/ar.c:70
-msgid "Delete files from archive."
-msgstr "Usuwa pliki z archiwum."
-
-#: src/ar.c:71
-msgid "Move files in archive."
-msgstr "Przenosi pliki w archiwum."
-
-#: src/ar.c:72
-msgid "Print files in archive."
-msgstr "Wyświetla pliki w archiwum."
-
-#: src/ar.c:73
-msgid "Quick append files to archive."
-msgstr "Szybko dodaje pliki do archiwum."
-
-#: src/ar.c:75
-msgid "Replace existing or insert new file into archive."
-msgstr "Zastępuje istniejący lub umieszcza nowy plik w archiwum."
-
-#: src/ar.c:76
-msgid "Display content of archive."
-msgstr "Wyświetla zawartość archiwum."
-
-#: src/ar.c:77
-msgid "Extract files from archive."
-msgstr "Wypakowuje pliki z archiwum."
-
-#: src/ar.c:79
-msgid "Command Modifiers:"
-msgstr "Modyfikatory poleceń:"
-
-#: src/ar.c:80
-msgid "Preserve original dates."
-msgstr "Zachowuje pierwotne daty."
-
-#: src/ar.c:81
-msgid "Use instance [COUNT] of name."
-msgstr "Używa wystąpienia [LICZNIK] nazwy."
-
-#: src/ar.c:83
-msgid "Do not replace existing files with extracted files."
-msgstr "Nie zastępuje istniejących plików wypakowanymi plikami."
-
-#: src/ar.c:84
-msgid "Allow filename to be truncated if necessary."
-msgstr "Zezwala na skrócenie nazwy pliku, jeśli jest to wymagane."
-
-#: src/ar.c:86
-msgid "Provide verbose output."
-msgstr "Wyświetla więcej informacji."
-
-#: src/ar.c:87
-msgid "Force regeneration of symbol table."
-msgstr "Wymusza ponowne utworzenie tabeli symboli."
-
-#: src/ar.c:88
-msgid "Insert file after [MEMBER]."
-msgstr "Umieszcza plik po [ELEMENCIE]."
-
-#: src/ar.c:89
-msgid "Insert file before [MEMBER]."
-msgstr "Umieszcza plik przed [ELEMENTEM]."
-
-#: src/ar.c:90
-msgid "Same as -b."
-msgstr "To samo, co -b."
-
-#: src/ar.c:91
-msgid "Suppress message when library has to be created."
-msgstr "Zmniejsza komunikat, jeśli biblioteka musi zostać utworzona."
-
-#: src/ar.c:93
-msgid "Use full path for file matching."
-msgstr "Używa pełnej ścieżki do dopasowywania plików."
-
-#: src/ar.c:94
-msgid "Update only older files in archive."
-msgstr "Aktualizuje tylko starsze pliki w archiwum."
-
-#: src/ar.c:100
-msgid "Create, modify, and extract from archives."
-msgstr "Tworzenie, modyfikowanie i wypakowywanie archiwów."
-
-#: src/ar.c:103
-msgid "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-msgstr "[ELEMENT] [LICZNIK] ARCHIWUM [PLIK...]"
-
-#: src/ar.c:185
-#, c-format
-msgid "'a', 'b', and 'i' are only allowed with the 'm' and 'r' options"
-msgstr "\"a\", \"b\" i \"i\" są dozwolone tylko z opcjami \"m\" i \"r\""
-
-#: src/ar.c:190
-#, c-format
-msgid "MEMBER parameter required for 'a', 'b', and 'i' modifiers"
-msgstr "parametr ELEMENT jest wymagany dla modyfikatorów \"a\", \"b\" i \"i\""
-
-#: src/ar.c:206
-#, c-format
-msgid "'N' is only meaningful with the 'x' and 'd' options"
-msgstr "\"N\" ma znaczenie tylko z opcjami \"x\" i \"d\""
-
-#: src/ar.c:211
-#, c-format
-msgid "COUNT parameter required"
-msgstr "wymagany jest parametr LICZNIK"
-
-#: src/ar.c:223
-#, c-format
-msgid "invalid COUNT parameter %s"
-msgstr "nieprawidłowy parametr LICZNIK %s"
-
-#: src/ar.c:230
-#, c-format
-msgid "'%c' is only meaningful with the 'x' option"
-msgstr "\"%c\" ma znaczenie tylko z opcją \"x\""
-
-#: src/ar.c:236
-#, c-format
-msgid "archive name required"
-msgstr "wymagana jest nazwa archiwum"
-
-#: src/ar.c:249
-#, c-format
-msgid "command option required"
-msgstr "wymagana jest opcja polecenia"
-
-#: src/ar.c:314
-#, c-format
-msgid "More than one operation specified"
-msgstr "Podano więcej niż jedno działanie"
-
-#: src/ar.c:408
-#, c-format
-msgid "cannot open archive '%s'"
-msgstr "nie można otworzyć archiwum \"%s\""
-
-#: src/ar.c:418
-#, c-format
-msgid "cannot open archive '%s': %s"
-msgstr "nie można otworzyć archiwum \"%s\": %s"
-
-#: src/ar.c:422
-#, c-format
-msgid "%s: not an archive file"
-msgstr "%s: nie jest plikiem archiwum"
-
-#: src/ar.c:426
-#, c-format
-msgid "cannot stat archive '%s'"
-msgstr "nie można wykonać stat na archiwum \"%s\""
-
-#: src/ar.c:438
-#, c-format
-msgid "no entry %s in archive\n"
-msgstr "brak wpisu %s w archiwum\n"
-
-#: src/ar.c:491 src/ar.c:933 src/ar.c:1133
-#, c-format
-msgid "cannot create hash table"
-msgstr "nie można utworzyć tabeli mieszającej"
-
-#: src/ar.c:498 src/ar.c:940 src/ar.c:1142
-#, c-format
-msgid "cannot insert into hash table"
-msgstr "nie można umieścić w tabeli mieszającej"
-
-#: src/ar.c:506 src/ranlib.c:168
-#, c-format
-msgid "cannot stat '%s'"
-msgstr "nie można wykonać stat na \"%s\""
-
-#: src/ar.c:602
-#, c-format
-msgid "cannot read content of %s: %s"
-msgstr "nie można odczytać zawartości %s: %s"
-
-#: src/ar.c:645
-#, c-format
-msgid "cannot open %.*s"
-msgstr "nie można otworzyć %.*s"
-
-#: src/ar.c:667
-#, c-format
-msgid "failed to write %s"
-msgstr "zapisanie %s nie powiodło się"
-
-#: src/ar.c:679
-#, c-format
-msgid "cannot change mode of %s"
-msgstr "nie można zmienić trybu %s"
-
-#: src/ar.c:695
-#, c-format
-msgid "cannot change modification time of %s"
-msgstr "nie można zmienić czasu modyfikacji %s"
-
-#: src/ar.c:741
-#, c-format
-msgid "cannot rename temporary file to %.*s"
-msgstr "nie można zmienić nazwy pliku tymczasowego na %.*s"
-
-#: src/ar.c:777 src/ar.c:1025 src/ar.c:1424 src/ranlib.c:242
-#, c-format
-msgid "cannot create new file"
-msgstr "nie można utworzyć nowego pliku"
-
-#: src/ar.c:1224
-#, c-format
-msgid "position member %s not found"
-msgstr "nie odnaleziono położenia elementu %s"
-
-#: src/ar.c:1234
-#, c-format
-msgid "%s: no entry %s in archive!\n"
-msgstr "%s: brak wpisu %s w archiwum.\n"
-
-#: src/ar.c:1263 src/ldgeneric.c:509 src/objdump.c:257
-#, c-format
-msgid "cannot open %s"
-msgstr "nie można otworzyć %s"
-
-#: src/ar.c:1268
-#, c-format
-msgid "cannot stat %s"
-msgstr "nie można wykonać stat na %s"
-
-#: src/ar.c:1274
-#, c-format
-msgid "%s is no regular file"
-msgstr "%s nie jest zwykłym plikiem"
-
-#: src/ar.c:1287
-#, c-format
-msgid "cannot get ELF descriptor for %s: %s\n"
-msgstr "nie można uzyskać deskryptora ELF dla %s: %s\n"
-
-#: src/ar.c:1307
-#, c-format
-msgid "cannot read %s: %s"
-msgstr "nie można odczytać %s: %s"
-
-#: src/arlib.c:209
-#, c-format
-msgid "the archive '%s' is too large"
-msgstr "archiwum \"%s\" jest za duże"
-
-#: src/arlib.c:222
-#, c-format
-msgid "cannot read ELF header of %s(%s): %s"
-msgstr "nie można odczytać nagłówka ELF %s(%s): %s"
-
-#: src/elfcmp.c:62
-msgid "Control options:"
-msgstr "Opcje sterujące:"
-
-#: src/elfcmp.c:64
-msgid "Output all differences, not just the first"
-msgstr "Wyświetlanie wszystkich różnic, nie tylko pierwszej"
-
-#: src/elfcmp.c:65
-msgid ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-msgstr ""
-"Sterowanie traktowaniem luk w segmentach wczytywalnych [ignore|match] "
-"(domyślne: ignore)"
-
-#: src/elfcmp.c:67
-msgid "Ignore permutation of buckets in SHT_HASH section"
-msgstr "Ignorowanie permutacji kubełków w sekcji SHT_HASH"
-
-#: src/elfcmp.c:69
-msgid "Ignore differences in build ID"
-msgstr "Ignorowanie różnic w identyfikatorze kopii"
-
-#: src/elfcmp.c:70
-msgid "Output nothing; yield exit status only"
-msgstr "Bez wypisywania; przekazanie tylko kodu wyjścia"
-
-#: src/elfcmp.c:77
-msgid "Compare relevant parts of two ELF files for equality."
-msgstr "Porównywanie odpowiednich części dwóch plików ELF pod kątem równości."
-
-#: src/elfcmp.c:81
-msgid "FILE1 FILE2"
-msgstr "PLIK1 PLIK2"
-
-#: src/elfcmp.c:143
-msgid "Invalid number of parameters.\n"
-msgstr "Nieprawidłowa liczba parametrów.\n"
-
-#: src/elfcmp.c:174 src/elfcmp.c:179
-#, c-format
-msgid "cannot get ELF header of '%s': %s"
-msgstr "nie można uzyskać nagłówka ELF \"%s\": %s"
-
-#: src/elfcmp.c:205
-#, c-format
-msgid "%s %s diff: ELF header"
-msgstr "%s %s różnią się: nagłówek ELF"
-
-#: src/elfcmp.c:212 src/elfcmp.c:215
-#, c-format
-msgid "cannot get section count of '%s': %s"
-msgstr "nie można uzyskać licznika sekcji \"%s\": %s"
-
-#: src/elfcmp.c:220
-#, c-format
-msgid "%s %s diff: section count"
-msgstr "%s %s różnią się: licznik sekcji"
-
-#: src/elfcmp.c:227 src/elfcmp.c:230
-#, c-format
-msgid "cannot get program header count of '%s': %s"
-msgstr "nie można uzyskać licznika nagłówka programu \"%s\": %s"
-
-#: src/elfcmp.c:235
-#, c-format
-msgid "%s %s diff: program header count"
-msgstr "%s %s różnią się: licznik nagłówka programu"
-
-#: src/elfcmp.c:292
-#, c-format
-msgid "%s %s differ: section [%zu], [%zu] name"
-msgstr "%s %s różnią się: nazwa sekcji [%zu], [%zu]"
-
-#: src/elfcmp.c:315
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' header"
-msgstr "%s %s różnią się: nagłówek sekcji [%zu] \"%s\""
-
-#: src/elfcmp.c:323 src/elfcmp.c:329
-#, c-format
-msgid "cannot get content of section %zu in '%s': %s"
-msgstr "nie można uzyskać zawartości sekcji %zu w \"%s\": %s"
-
-#: src/elfcmp.c:345 src/elfcmp.c:351
-#, c-format
-msgid "cannot get symbol in '%s': %s"
-msgstr "nie można uzyskać symbolu w \"%s\": %s"
-
-#: src/elfcmp.c:373
-#, c-format
-msgid "%s %s differ: symbol table [%zu]"
-msgstr "%s %s różnią się: tabela symboli [%zu]"
-
-#: src/elfcmp.c:376
-#, c-format
-msgid "%s %s differ: symbol table [%zu,%zu]"
-msgstr "%s %s różnią się: tabela symboli [%zu,%zu]"
-
-#: src/elfcmp.c:422 src/elfcmp.c:491
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' number of notes"
-msgstr "%s %s różnią się: liczba notatek sekcji [%zu] \"%s\""
-
-#: src/elfcmp.c:430
-#, c-format
-msgid "cannot read note section [%zu] '%s' in '%s': %s"
-msgstr "nie można odczytać notatki sekcji [%zu] \"%s\" w \"%s\": %s"
-
-#: src/elfcmp.c:440
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note name"
-msgstr "%s %s różnią się: nazwa notatki sekcji [%zu] \"%s\""
-
-#: src/elfcmp.c:448
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' type"
-msgstr "%s %s różnią się: sekcja [%zu] \"%s\" notatka \"%s\" typ"
-
-#: src/elfcmp.c:463
-#, c-format
-msgid "%s %s differ: build ID length"
-msgstr "%s %s różnią się: długość identyfikatora kopii"
-
-#: src/elfcmp.c:471
-#, c-format
-msgid "%s %s differ: build ID content"
-msgstr "%s %s różnią się: zawartość identyfikatora kopii"
-
-#: src/elfcmp.c:480
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' content"
-msgstr "%s %s różnią się: sekcja [%zu] \"%s\" notatka \"%s\" zawartość"
-
-#: src/elfcmp.c:520
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' content"
-msgstr "%s %s różnią się: zawartość sekcji [%zu] \"%s\""
-
-#: src/elfcmp.c:524
-#, c-format
-msgid "%s %s differ: section [%zu,%zu] '%s' content"
-msgstr "%s %s różnią się: zawartość sekcji [%zu,%zu] \"%s\""
-
-#: src/elfcmp.c:539
-#, c-format
-msgid "%s %s differ: unequal amount of important sections"
-msgstr "%s %s różnią się: różna liczba ważnych sekcji"
-
-#: src/elfcmp.c:572 src/elfcmp.c:577
-#, c-format
-msgid "cannot load data of '%s': %s"
-msgstr "nie można wczytać danych z \"%s\": %s"
-
-#: src/elfcmp.c:596 src/elfcmp.c:602
-#, c-format
-msgid "cannot get program header entry %d of '%s': %s"
-msgstr "nie można uzyskać wpisu nagłówka programu %d z \"%s\": %s"
-
-#: src/elfcmp.c:608
-#, c-format
-msgid "%s %s differ: program header %d"
-msgstr "%s %s różnią się: nagłówek programu %d"
-
-#: src/elfcmp.c:632
-#, c-format
-msgid "%s %s differ: gap"
-msgstr "%s %s różnią się: luka"
-
-#: src/elfcmp.c:695
-#, c-format
-msgid "Invalid value '%s' for --gaps parameter."
-msgstr "Nieprawidłowa wartość \"%s\" dla parametru --gaps."
-
-#: src/elfcmp.c:723 src/findtextrel.c:221 src/ldgeneric.c:1757
-#: src/ldgeneric.c:4247 src/nm.c:381 src/ranlib.c:161 src/size.c:293
-#: src/strings.c:182 src/strip.c:451 src/strip.c:488 src/unstrip.c:1923
-#: src/unstrip.c:1952
-#, c-format
-msgid "cannot open '%s'"
-msgstr "nie można otworzyć \"%s\""
-
-#: src/elfcmp.c:727 src/findtextrel.c:228 src/ranlib.c:178
-#, c-format
-msgid "cannot create ELF descriptor for '%s': %s"
-msgstr "nie można utworzyć deskryptora ELF dla \"%s\": %s"
-
-#: src/elfcmp.c:732
-#, c-format
-msgid "cannot create EBL descriptor for '%s'"
-msgstr "nie można utworzyć deskryptora EBL dla \"%s\""
-
-#: src/elfcmp.c:750
-#, c-format
-msgid "cannot get section header of section %zu: %s"
-msgstr "nie można uzyskać nagłówka sekcji dla sekcji %zu: %s"
-
-#: src/elfcmp.c:760
-#, c-format
-msgid "cannot get content of section %zu: %s"
-msgstr "nie można uzyskać zawartości sekcji %zu: %s"
-
-#: src/elfcmp.c:770 src/elfcmp.c:784
-#, c-format
-msgid "cannot get relocation: %s"
-msgstr "nie można uzyskać relokacji: %s"
-
-#: src/elflint.c:64
-msgid "Be extremely strict, flag level 2 features."
-msgstr "Bardzo ścisłe sprawdzanie, cechy poziomu 2 flag."
-
-#: src/elflint.c:65
-msgid "Do not print anything if successful"
-msgstr "Nie wypisywanie niczego w przypadku powodzenia"
-
-#: src/elflint.c:66
-msgid "Binary is a separate debuginfo file"
-msgstr "Plik binarny jest oddzielnym plikiem debuginfo"
-
-#: src/elflint.c:68
-msgid ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-msgstr ""
-"Plik binarny został utworzony przez program GNU ld, przez co jest uszkodzony "
-"w pewien sposób"
-
-#: src/elflint.c:74
-msgid "Pedantic checking of ELF files compliance with gABI/psABI spec."
-msgstr ""
-"Szczegółowe sprawdzanie zgodności plików ELF ze specyfikacją gABI/psABI."
-
-#: src/elflint.c:78 src/readelf.c:123
-msgid "FILE..."
-msgstr "PLIK..."
-
-#: src/elflint.c:155 src/readelf.c:292
-#, c-format
-msgid "cannot open input file"
-msgstr "nie można otworzyć pliku wejściowego"
-
-#: src/elflint.c:162
-#, c-format
-msgid "cannot generate Elf descriptor: %s\n"
-msgstr "nie można utworzyć deskryptora ELF: %s\n"
-
-#: src/elflint.c:181
-#, c-format
-msgid "error while closing Elf descriptor: %s\n"
-msgstr "błąd podczas zamykania deskryptora ELF: %s\n"
-
-#: src/elflint.c:185
-msgid "No errors"
-msgstr "Brak błędów"
-
-#: src/elflint.c:219 src/readelf.c:468
-msgid "Missing file name.\n"
-msgstr "Brak nazwy pliku.\n"
-
-#: src/elflint.c:298
-#, c-format
-msgid " error while freeing sub-ELF descriptor: %s\n"
-msgstr " błąd podczas zwalniania deskryptora pod-ELF: %s\n"
-
-#: src/elflint.c:306
-#, c-format
-msgid "Not an ELF file - it has the wrong magic bytes at the start\n"
-msgstr "To nie jest plik ELF - posiada błędne bajty magiczne na początku\n"
-
-#: src/elflint.c:371
-#, c-format
-msgid "e_ident[%d] == %d is no known class\n"
-msgstr "e_ident[%d] == %d nie jest znaną klasą\n"
-
-#: src/elflint.c:376
-#, c-format
-msgid "e_ident[%d] == %d is no known data encoding\n"
-msgstr "e_ident[%d] == %d nie jest znanym kodowaniem danych\n"
-
-#: src/elflint.c:380
-#, c-format
-msgid "unknown ELF header version number e_ident[%d] == %d\n"
-msgstr "nieznany numer wersji nagłówka ELF e_ident[%d] == %d\n"
-
-#: src/elflint.c:386
-#, c-format
-msgid "unsupported OS ABI e_ident[%d] == '%s'\n"
-msgstr "nieobsługiwane ABI systemu operacyjnego e_ident[%d] == \"%s\"\n"
-
-#: src/elflint.c:392
-#, c-format
-msgid "unsupport ABI version e_ident[%d] == %d\n"
-msgstr "nieobsługiwana wersja ABI e_ident[%d] == %d\n"
-
-#: src/elflint.c:397
-#, c-format
-msgid "e_ident[%zu] is not zero\n"
-msgstr "e_ident[%zu] nie wynosi zero\n"
-
-#: src/elflint.c:402
-#, c-format
-msgid "unknown object file type %d\n"
-msgstr "nieznany typ pliku obiektu %d\n"
-
-#: src/elflint.c:409
-#, c-format
-msgid "unknown machine type %d\n"
-msgstr "nieznany typ komputera %d\n"
-
-#: src/elflint.c:413
-#, c-format
-msgid "unknown object file version\n"
-msgstr "nieznana wersja pliku obiektu\n"
-
-#: src/elflint.c:419
-#, c-format
-msgid "invalid program header offset\n"
-msgstr "nieprawidłowy offset nagłówka programu\n"
-
-#: src/elflint.c:421
-#, c-format
-msgid "executables and DSOs cannot have zero program header offset\n"
-msgstr ""
-"pliki wykonywalne i DSO nie mogą mieć zerowego offsetu nagłówka programu\n"
-
-#: src/elflint.c:425
-#, c-format
-msgid "invalid number of program header entries\n"
-msgstr "nieprawidłowa liczba wpisów nagłówka programu\n"
-
-#: src/elflint.c:433
-#, c-format
-msgid "invalid section header table offset\n"
-msgstr "nieprawidłowy offset tabeli nagłówków sekcji\n"
-
-#: src/elflint.c:436
-#, c-format
-msgid "section header table must be present\n"
-msgstr "tabela nagłówków sekcji musi istnieć\n"
-
-#: src/elflint.c:450
-#, c-format
-msgid "invalid number of section header table entries\n"
-msgstr "nieprawidłowa liczba wpisów tabeli nagłówków sekcji\n"
-
-#: src/elflint.c:467
-#, c-format
-msgid "invalid section header index\n"
-msgstr "nieprawidłowy indeks nagłówka sekcji\n"
-
-#: src/elflint.c:481
-#, c-format
-msgid "invalid number of program header table entries\n"
-msgstr "nieprawidłowa liczba wpisów tabeli nagłówka programu\n"
-
-#: src/elflint.c:490
-#, c-format
-msgid "invalid machine flags: %s\n"
-msgstr "nieprawidłowe flagi komputera: %s\n"
-
-#: src/elflint.c:497 src/elflint.c:514
-#, c-format
-msgid "invalid ELF header size: %hd\n"
-msgstr "nieprawidłowy rozmiar nagłówka ELF: %hd\n"
-
-#: src/elflint.c:500 src/elflint.c:517
-#, c-format
-msgid "invalid program header size: %hd\n"
-msgstr "nieprawidłowa rozmiar nagłówka programu: %hd\n"
-
-#: src/elflint.c:503 src/elflint.c:520
-#, c-format
-msgid "invalid program header position or size\n"
-msgstr "nieprawidłowe położenie lub rozmiar nagłówka programu\n"
-
-#: src/elflint.c:506 src/elflint.c:523
-#, c-format
-msgid "invalid section header size: %hd\n"
-msgstr "nieprawidłowy rozmiar nagłówka sekcji: %hd\n"
-
-#: src/elflint.c:509 src/elflint.c:526
-#, c-format
-msgid "invalid section header position or size\n"
-msgstr "nieprawidłowe położenie lub rozmiar nagłówka sekcji\n"
-
-#: src/elflint.c:570
-#, c-format
-msgid ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-msgstr ""
-"sekcja [%2d] \"%s\": sekcja z flagą SHF_GROUP nie jest częścią grupy sekcji\n"
-
-#: src/elflint.c:574
-#, c-format
-msgid ""
-"section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"
-msgstr ""
-"sekcja [%2d] \"%s\": grupa sekcji [%2zu] \"%s\" nie poprzedza elementu "
-"grupy\n"
-
-#: src/elflint.c:590 src/elflint.c:1457 src/elflint.c:1508 src/elflint.c:1614
-#: src/elflint.c:1939 src/elflint.c:2228 src/elflint.c:2742 src/elflint.c:2904
-#: src/elflint.c:3034 src/elflint.c:3206 src/elflint.c:4108
-#, c-format
-msgid "section [%2d] '%s': cannot get section data\n"
-msgstr "sekcja [%2d] \"%s\": nie można uzyskać danych sekcji\n"
-
-#: src/elflint.c:603 src/elflint.c:1621
-#, c-format
-msgid ""
-"section [%2d] '%s': referenced as string table for section [%2d] '%s' but "
-"type is not SHT_STRTAB\n"
-msgstr ""
-"sekcja [%2d] \"%s\": użyta jako tabela ciągów dla sekcji [%2d] \"%s\", ale "
-"nie jest typu SHT_STRTAB\n"
-
-#: src/elflint.c:626
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-msgstr ""
-"sekcja [%2d] \"%s\": tabela symboli nie może mieć więcej niż jednej "
-"rozszerzonej sekcji indeksów\n"
-
-#: src/elflint.c:638
-#, c-format
-msgid "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-msgstr "sekcja [%2u] \"%s\": rozmiar wpisu nie zgadza się z ElfXX_Sym\n"
-
-#: src/elflint.c:647
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %d: %s\n"
-msgstr "sekcja [%2d] \"%s\": nie można uzyskać symbolu %d: %s\n"
-
-#: src/elflint.c:652 src/elflint.c:655 src/elflint.c:658 src/elflint.c:661
-#: src/elflint.c:664 src/elflint.c:667
-#, c-format
-msgid "section [%2d] '%s': '%s' in zeroth entry not zero\n"
-msgstr "sekcja [%2d] \"%s\": \"%s\" w zerowym wpisie nie jest zerem\n"
-
-#: src/elflint.c:670
-#, c-format
-msgid "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-msgstr "sekcja [%2d] \"%s\": XINDEX dla zerowego wpisu nie jest zerem\n"
-
-#: src/elflint.c:680
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %zu: %s\n"
-msgstr "sekcja [%2d] \"%s\": nie można uzyskać symbolu %zu: %s\n"
-
-#: src/elflint.c:689
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid name value\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: nieprawidłowa wartość nazwy\n"
-
-#: src/elflint.c:704
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: za duży indeks sekcji, ale nie posiada "
-"sekcji rozszerzonych indeksów sekcji\n"
-
-#: src/elflint.c:710
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: XINDEX użyty dla indeksu, który zmieściłby "
-"się w st_shndx (%<PRIu32>)\n"
-
-#: src/elflint.c:722
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid section index\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: nieprawidłowy indeks sekcji\n"
-
-#: src/elflint.c:730
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown type\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: nieznany typ\n"
-
-#: src/elflint.c:736
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: nieznane dowiązanie symbolu\n"
-
-#: src/elflint.c:741
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: unikalny symbol nie jest typem obiektu\n"
-
-#: src/elflint.c:749
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: COMMON jest dozwolone tylko w plikach "
-"relokowalnych\n"
-
-#: src/elflint.c:753
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: lokalne symbole COMMON to nonsens\n"
-
-#: src/elflint.c:757
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: funkcja w sekcji COMMON to nonsens\n"
-
-#: src/elflint.c:804
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: st_value spoza zakresu\n"
-
-#: src/elflint.c:810 src/elflint.c:835 src/elflint.c:878
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu nie mieści się w całości we wskazywanej "
-"sekcji [%2d] \"%s\"\n"
-
-#: src/elflint.c:819
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have "
-"SHF_TLS flag set\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: wskazywana sekcja [%2d] \"%s\" nie posiada "
-"ustawionej flagi SHF_TLS\n"
-
-#: src/elflint.c:829 src/elflint.c:871
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: st_value spoza zakresu wskazywanej sekcji "
-"[%2d] \"%s\"\n"
-
-#: src/elflint.c:856
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: symbol TLS, ale brak wpisu TLS nagłówka "
-"programu\n"
-
-#: src/elflint.c:864
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"'%s'\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: st_value pomija wskazywaną sekcję [%2d] \"%s"
-"\"\n"
-
-#: src/elflint.c:891
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: lokalny symbol spoza zakresu określonego w "
-"sh_info\n"
-
-#: src/elflint.c:898
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: nielokalny symbol spoza zakresu określonego "
-"w sh_info\n"
-
-#: src/elflint.c:905
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: nielokalny symbol sekcji\n"
-
-#: src/elflint.c:955
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol _GLOBAL_OFFSET_TABLE_ odnosi się do błędnej "
-"sekcji [%2d]\n"
-
-#: src/elflint.c:962
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"'%s'\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol _GLOBAL_OFFSET_TABLE_ odnosi się do sekcji [%2d] "
-"\"%s\"\n"
-
-#: src/elflint.c:978
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wartość symbolu _GLOBAL_OFFSET_TABLE_ %#<PRIx64> nie "
-"pasuje do adresu sekcji %s %#<PRIx64>\n"
-
-#: src/elflint.c:985
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-msgstr ""
-"sekcja [%2d] \"%s\": rozmiar symbolu _GLOBAL_OFFSET_TABLE_ %<PRIu64> nie "
-"pasuje do rozmiaru sekcji %s %<PRIu64>\n"
-
-#: src/elflint.c:993
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol _GLOBAL_OFFSET_TABLE_ istnieje, ale brak sekcji ."
-"got\n"
-
-#: src/elflint.c:1009
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wartość symbolu _DYNAMIC_ %#<PRIx64> nie pasuje do "
-"adresu segmentu dynamicznego %#<PRIx64>\n"
-
-#: src/elflint.c:1016
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-msgstr ""
-"sekcja [%2d] \"%s\": rozmiar symbolu _DYNAMIC_ %<PRIu64> nie pasuje do "
-"rozmiaru segmentu dynamicznego %<PRIu64>\n"
-
-#: src/elflint.c:1029
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %zu: symbol w dynamicznej tabeli symboli z "
-"niedomyślną widocznością\n"
-
-#: src/elflint.c:1033
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-msgstr "sekcja [%2d] \"%s\": symbol %zu: ustawiono nieznany bit w st_other\n"
-
-#: src/elflint.c:1082
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-msgstr "sekcja [%2d] \"%s\": DT_RELCOUNT użyte dla tej sekcji RELA\n"
-
-#: src/elflint.c:1093 src/elflint.c:1145
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-msgstr "sekcja [%2d] \"%s\": DT_RELCOUNT %d za duże dla tej sekcji\n"
-
-#: src/elflint.c:1118 src/elflint.c:1170
-#, c-format
-msgid ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-msgstr ""
-"sekcja [%2d] \"%s\": relokacje względne po indeksie %d podanym przez "
-"DT_RELCOUNT\n"
-
-#: src/elflint.c:1124 src/elflint.c:1176
-#, c-format
-msgid ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-msgstr ""
-"sekcja [%2d] \"%s\": relokacja bezwzględna pod indeksem %zu; DT_RELCOUNT "
-"podał %d relokacji względnych\n"
-
-#: src/elflint.c:1136
-#, c-format
-msgid "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-msgstr "sekcja [%2d] \"%s\": DT_RELACOUNT użyte dla tej sekcji REL\n"
-
-#: src/elflint.c:1218
-#, c-format
-msgid "section [%2d] '%s': invalid destination section index\n"
-msgstr "sekcja [%2d] \"%s\": nieprawidłowy indeks sekcji docelowej\n"
-
-#: src/elflint.c:1230
-#, c-format
-msgid "section [%2d] '%s': invalid destination section type\n"
-msgstr "sekcja [%2d] \"%s\": nieprawidłowy typ sekcji docelowej\n"
-
-#: src/elflint.c:1238
-#, c-format
-msgid "section [%2d] '%s': sh_info should be zero\n"
-msgstr "sekcja [%2d] \"%s\": sh_info powinno wynosić zero\n"
-
-#: src/elflint.c:1245
-#, c-format
-msgid "section [%2d] '%s': no relocations for merge-able sections possible\n"
-msgstr "sekcja [%2d] \"%s\": relokacje dla sekcji złączalnych są niemożliwe\n"
-
-#: src/elflint.c:1253
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-msgstr ""
-"sekcja [%2d] \"%s\": rozmiar wpisu sekcji nie zgadza się z ElfXX_Rela\n"
-
-#: src/elflint.c:1313
-#, c-format
-msgid "text relocation flag set but there is no read-only segment\n"
-msgstr ""
-"flaga relokacji tekstu jest ustawiona, ale nie posiada segmentu tylko do "
-"odczytu\n"
-
-#: src/elflint.c:1340
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid type\n"
-msgstr "sekcja [%2d] \"%s\": relokacja %zu: nieprawidłowy typ\n"
-
-#: src/elflint.c:1348
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-msgstr ""
-"sekcja [%2d] \"%s\": relokacja %zu: typ relokacji nieprawidłowy dla tego "
-"typu pliku\n"
-
-#: src/elflint.c:1356
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-msgstr "sekcja [%2d] \"%s\": relokacja %zu: nieprawidłowy indeks symbolu\n"
-
-#: src/elflint.c:1374
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can "
-"be used with %s\n"
-msgstr ""
-"sekcja [%2d] \"%s\": relokacja %zu: z %s można użyć tylko symbolu "
-"\"_GLOBAL_OFFSET_TABLE_\"\n"
-
-#: src/elflint.c:1391
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-msgstr "sekcja [%2d] \"%s\": relokacja %zu: offset spoza zakresu\n"
-
-#: src/elflint.c:1406
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-msgstr ""
-"sekcja [%2d] \"%s\": relokacja %zu: relokacja kopii względem symbolu typu "
-"%s\n"
-
-#: src/elflint.c:1427
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-msgstr ""
-"sekcja [%2d] \"%s\": relokacja %zu: sekcja tylko do odczytu została "
-"zmodyfikowana, ale nie ustawiono flagi relokacji tekstu\n"
-
-#: src/elflint.c:1442
-#, c-format
-msgid "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-msgstr ""
-"sekcja [%2d] \"%s\": relokacje względem wczytanych i niewczytanych danych\n"
-
-#: src/elflint.c:1482 src/elflint.c:1533
-#, c-format
-msgid "section [%2d] '%s': cannot get relocation %zu: %s\n"
-msgstr "sekcja [%2d] \"%s\": nie można uzyskać relokacji %zu: %s\n"
-
-#: src/elflint.c:1609
-#, c-format
-msgid "more than one dynamic section present\n"
-msgstr "obecna jest więcej niż jedna sekcja dynamiczna\n"
-
-#: src/elflint.c:1628
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-msgstr "sekcja [%2d] \"%s\": rozmiar wpisu sekcji nie zgadza się z ElfXX_Dyn\n"
-
-#: src/elflint.c:1633 src/elflint.c:1918
-#, c-format
-msgid "section [%2d] '%s': sh_info not zero\n"
-msgstr "sekcja [%2d] \"%s\": sh_info nie wynosi zero\n"
-
-#: src/elflint.c:1643
-#, c-format
-msgid "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-msgstr ""
-"sekcja [%2d] \"%s\": nie można uzyskać wpisu %zu sekcji dynamicznej: %s\n"
-
-#: src/elflint.c:1651
-#, c-format
-msgid "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-msgstr "sekcja [%2d] \"%s\": wpisy nie-DT_NULL występują po wpisie DT_NULL\n"
-
-#: src/elflint.c:1658
-#, c-format
-msgid "section [%2d] '%s': entry %zu: unknown tag\n"
-msgstr "sekcja [%2d] \"%s\": wpis %zu: nieznany znacznik\n"
-
-#: src/elflint.c:1669
-#, c-format
-msgid "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %zu: więcej niż jeden wpis ze znacznikiem %s\n"
-
-#: src/elflint.c:1679
-#, c-format
-msgid "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-msgstr "sekcja [%2d] \"%s\": wpis %zu: użyto znacznika %s poziomu 2\n"
-
-#: src/elflint.c:1697
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %zu: wartość DT_PLTREL musi wynosić DT_REL lub "
-"DT_RELA\n"
-
-#: src/elflint.c:1710
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] '%s' referenced by sh_link\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %zu: wskaźnik nie pasuje do adresu sekcji [%2d] "
-"\"%s\" wskazywanej przez sh_link\n"
-
-#: src/elflint.c:1753
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %zu: wartość %s musi wskazywać na wczytany "
-"segment\n"
-
-#: src/elflint.c:1768
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] '%s'\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %zu: wartość %s musi być prawidłowym offsetem w "
-"sekcji [%2d] \"%s\"\n"
-
-#: src/elflint.c:1788 src/elflint.c:1816
-#, c-format
-msgid "section [%2d] '%s': contains %s entry but not %s\n"
-msgstr "sekcja [%2d] \"%s\": zawiera wpis %s, ale nie %s\n"
-
-#: src/elflint.c:1800
-#, c-format
-msgid "section [%2d] '%s': mandatory tag %s not present\n"
-msgstr "sekcja [%2d] \"%s\": brak obowiązkowego znacznika %s\n"
-
-#: src/elflint.c:1809
-#, c-format
-msgid "section [%2d] '%s': no hash section present\n"
-msgstr "sekcja [%2d] \"%s\": brak sekcji skrótów\n"
-
-#: src/elflint.c:1824 src/elflint.c:1831
-#, c-format
-msgid "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-msgstr "sekcja [%2d] \"%s\": nie wszystkie z %s, %s i %s są obecne\n"
-
-#: src/elflint.c:1841 src/elflint.c:1845
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-msgstr ""
-"sekcja [%2d] \"%s\": brak znacznika %s w DSO oznaczonym podczas wstępnej "
-"konsolidacji\n"
-
-#: src/elflint.c:1851
-#, c-format
-msgid "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-msgstr ""
-"sekcja [%2d] \"%s\": plik nie-DSO oznaczony jako zależność podczas wstępnej "
-"konsolidacji\n"
-
-#: src/elflint.c:1862 src/elflint.c:1866 src/elflint.c:1870 src/elflint.c:1874
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in prelinked executable\n"
-msgstr ""
-"sekcja [%2d] \"%s\": brak znacznika %s we wstępnie konsolidowanym pliku "
-"wykonywalnym\n"
-
-#: src/elflint.c:1886
-#, c-format
-msgid ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-msgstr ""
-"sekcja [%2d] \"%s\": tylko pliki relokowalne mogą mieć rozszerzoną sekcję "
-"indeksów\n"
-
-#: src/elflint.c:1896
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-msgstr ""
-"sekcja [%2d] \"%s\": sekcja rozszerzonych indeksów sekcji nie dla tabeli "
-"symboli\n"
-
-#: src/elflint.c:1901
-#, c-format
-msgid "cannot get data for symbol section\n"
-msgstr "nie można uzyskać danych dla sekcji symboli\n"
-
-#: src/elflint.c:1904
-#, c-format
-msgid "section [%2d] '%s': entry size does not match Elf32_Word\n"
-msgstr "sekcja [%2d] \"%s\": rozmiar wpisu nie zgadza się z Elf32_Word\n"
-
-#: src/elflint.c:1913
-#, c-format
-msgid "section [%2d] '%s': extended index table too small for symbol table\n"
-msgstr ""
-"sekcja [%2d] \"%s\": tabela rozszerzonych indeksów jest za mała dla tabeli "
-"symboli\n"
-
-#: src/elflint.c:1928
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index in section [%2zu] '%s' refers to "
-"same symbol table\n"
-msgstr ""
-"sekcja [%2d] \"%s\": rozszerzony indeks sekcji w sekcji [%2zu] \"%s\" "
-"odwołuje się do tej samej tabeli symboli\n"
-
-#: src/elflint.c:1945
-#, c-format
-msgid "symbol 0 should have zero extended section index\n"
-msgstr "symbol 0 powinien mieć zerowy rozszerzony indeks sekcji\n"
-
-#: src/elflint.c:1957
-#, c-format
-msgid "cannot get data for symbol %zu\n"
-msgstr "nie można uzyskać danych dla symbolu %zu\n"
-
-#: src/elflint.c:1962
-#, c-format
-msgid "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-msgstr ""
-"rozszerzony indeks sekcji wynosi %<PRIu32>, ale indeks symbolu nie wynosi "
-"XINDEX\n"
-
-#: src/elflint.c:1978 src/elflint.c:2029
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-msgstr ""
-"sekcja [%2d] \"%s\": sekcja tabeli mieszającej jest za mała (%ld, oczekiwano "
-"%ld)\n"
-
-#: src/elflint.c:1990 src/elflint.c:2041
-#, c-format
-msgid "section [%2d] '%s': chain array too large\n"
-msgstr "sekcja [%2d] \"%s\": tabela łańcuchowa jest za duża\n"
-
-#: src/elflint.c:2004 src/elflint.c:2055
-#, c-format
-msgid "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-msgstr ""
-"sekcja [%2d] \"%s\": odwołanie do kubełka skrótu %zu jest spoza zakresu\n"
-
-#: src/elflint.c:2014
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-msgstr ""
-"sekcja [%2d] \"%s\": odwołanie do łańcucha skrótu %zu jest spoza zakresu\n"
-
-#: src/elflint.c:2065
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-msgstr ""
-"sekcja [%2d] \"%s\": odwołanie do łańcucha skrótu %<PRIu64> jest spoza "
-"zakresu\n"
-
-#: src/elflint.c:2081
-#, c-format
-msgid "section [%2d] '%s': bitmask size not power of 2: %u\n"
-msgstr "sekcja [%2d] \"%s\": rozmiar maski bitowej nie jest potęgą 2: %u\n"
-
-#: src/elflint.c:2092
-#, fuzzy, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-msgstr ""
-"sekcja [%2d] \"%s\": sekcja tabeli mieszającej jest za mała (%ld, oczekiwano "
-"co najmniej %ld)\n"
-
-#: src/elflint.c:2100
-#, c-format
-msgid "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-msgstr ""
-"sekcja [%2d] \"%s\": drugie przesunięcie funkcji mieszającej jest za duże: "
-"%u\n"
-
-#: src/elflint.c:2132
-#, c-format
-msgid ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-msgstr ""
-"sekcja [%2d] \"%s\": łańcuch mieszający dla kubełka %zu jest mniejszy niż "
-"przesunięcie indeksu symboli\n"
-
-#: src/elflint.c:2153
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %u wskazywany w łańcuchu dla kubełka %zu jest "
-"nieokreślony\n"
-
-#: src/elflint.c:2164
-#, c-format
-msgid ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wartość skrótu dla symbolu %u w łańcuchu dla kubełka "
-"%zu jest błędna\n"
-
-#: src/elflint.c:2195
-#, c-format
-msgid "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-msgstr ""
-"sekcja [%2d] \"%s\": łańcuch skrótu dla kubełka %zu jest spoza zakresu\n"
-
-#: src/elflint.c:2200
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-msgstr ""
-"sekcja [%2d] \"%s\": odwołanie do symbolu w łańcuchu dla kubełka %zu jest "
-"spoza zakresu\n"
-
-#: src/elflint.c:2206
-#, c-format
-msgid "section [%2d] '%s': bitmask does not match names in the hash table\n"
-msgstr ""
-"sekcja [%2d] \"%s\": maska bitowa nie pasuje do nazw w tabeli mieszającej\n"
-
-#: src/elflint.c:2219
-#, c-format
-msgid "section [%2d] '%s': relocatable files cannot have hash tables\n"
-msgstr ""
-"sekcja [%2d] \"%s\": pliki relokowalne nie mogą posiadać tabeli "
-"mieszających\n"
-
-#: src/elflint.c:2237
-#, c-format
-msgid "section [%2d] '%s': hash table not for dynamic symbol table\n"
-msgstr ""
-"sekcja [%2d] \"%s\": tabela mieszająca nie dla tabeli dynamicznych symboli\n"
-
-#: src/elflint.c:2245
-#, c-format
-msgid "section [%2d] '%s': hash table entry size incorrect\n"
-msgstr "sekcja [%2d] \"%s\": niepoprawny rozmiar wpisu tabeli mieszającej\n"
-
-#: src/elflint.c:2250
-#, c-format
-msgid "section [%2d] '%s': not marked to be allocated\n"
-msgstr "sekcja [%2d] \"%s\": nieoznaczona do przydzielenia\n"
-
-#: src/elflint.c:2255
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-msgstr ""
-"sekcja [%2d] \"%s\": tabela mieszająca nie posiada miejsca nawet na "
-"początkowe wpisy administracyjne\n"
-
-#: src/elflint.c:2303
-#, c-format
-msgid "sh_link in hash sections [%2zu] '%s' and [%2zu] '%s' not identical\n"
-msgstr ""
-"sh_link w sekcjach skrótu [%2zu] \"%s\" i [%2zu] \"%s\" nie są identyczne\n"
-
-#: src/elflint.c:2381 src/elflint.c:2385
-#, c-format
-msgid "section [%2zu] '%s': reference to symbol index 0\n"
-msgstr "sekcja [%2zu] \"%s\": odwołanie do symbolu o indeksie 0\n"
-
-#: src/elflint.c:2392
-#, c-format
-msgid ""
-"symbol %d referenced in new hash table in [%2zu] '%s' but not in old hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"symbol %d wymieniony w nowej tabeli mieszającej w [%2zu] \"%s\", ale nie w "
-"poprzedniej tabeli mieszającej [%2zu] \"%s\"\n"
-
-#: src/elflint.c:2404
-#, c-format
-msgid ""
-"symbol %d referenced in old hash table in [%2zu] '%s' but not in new hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"symbol %d wymieniony w poprzedniej tabeli mieszającej w [%2zu] \"%s\", ale "
-"nie w nowej tabeli mieszającej w [%2zu] \"%s\"\n"
-
-#: src/elflint.c:2420
-#, c-format
-msgid "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-msgstr "sekcja [%2d] \"%s\": niezerowe sh_%s dla sekcji NULL\n"
-
-#: src/elflint.c:2440
-#, c-format
-msgid ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-msgstr ""
-"sekcja [%2d] \"%s\": w plikach obiektów relokowalnych dozwolone są tylko "
-"grupy sekcji\n"
-
-#: src/elflint.c:2451
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol table: %s\n"
-msgstr "sekcja [%2d] \"%s\": nie można uzyskać tabeli symboli: %s\n"
-
-#: src/elflint.c:2456
-#, c-format
-msgid "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-msgstr ""
-"sekcja [%2d] \"%s\": odwołanie do sekcji w sh_link nie posiada tabeli "
-"symboli\n"
-
-#: src/elflint.c:2462
-#, c-format
-msgid "section [%2d] '%s': invalid symbol index in sh_info\n"
-msgstr "sekcja [%2d] \"%s\": nieprawidłowy indeks symbolu w sh_info\n"
-
-#: src/elflint.c:2467
-#, c-format
-msgid "section [%2d] '%s': sh_flags not zero\n"
-msgstr "sekcja [%2d] \"%s\": niezerowe sh_flags\n"
-
-#: src/elflint.c:2474
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol for signature\n"
-msgstr "sekcja [%2d] \"%s\": nie można uzyskać symbolu dla podpisu\n"
-
-#: src/elflint.c:2479
-#, c-format
-msgid "section [%2d] '%s': signature symbol cannot be empty string\n"
-msgstr "sekcja [%2d] \"%s\": symbol podpisu nie można być pustym ciągiem\n"
-
-#: src/elflint.c:2485
-#, c-format
-msgid "section [%2d] '%s': sh_flags not set correctly\n"
-msgstr "sekcja [%2d] \"%s\": sh_flags nie ustawione poprawnie\n"
-
-#: src/elflint.c:2491
-#, c-format
-msgid "section [%2d] '%s': cannot get data: %s\n"
-msgstr "sekcja [%2d] \"%s\": nie można uzyskać danych: %s\n"
-
-#: src/elflint.c:2500
-#, c-format
-msgid "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-msgstr ""
-"sekcja [%2d] \"%s\": rozmiar sekcji nie jest wielokrotnością "
-"sizeof(Elf32_Word)\n"
-
-#: src/elflint.c:2505
-#, c-format
-msgid "section [%2d] '%s': section group without flags word\n"
-msgstr "sekcja [%2d] \"%s\": grupa sekcji bez słowa flag\n"
-
-#: src/elflint.c:2511
-#, c-format
-msgid "section [%2d] '%s': section group without member\n"
-msgstr "sekcja [%2d] \"%s\": grupa sekcji bez elementów\n"
-
-#: src/elflint.c:2515
-#, c-format
-msgid "section [%2d] '%s': section group with only one member\n"
-msgstr "sekcja [%2d] \"%s\": grupa sekcji z tylko jednym elementem\n"
-
-#: src/elflint.c:2526
-#, c-format
-msgid "section [%2d] '%s': unknown section group flags\n"
-msgstr "sekcja [%2d] \"%s\": nieznane flagi grupy sekcji\n"
-
-#: src/elflint.c:2538
-#, c-format
-msgid "section [%2d] '%s': section index %Zu out of range\n"
-msgstr "sekcja [%2d] \"%s\": indeks sekcji %Zu jest spoza zakresu\n"
-
-#: src/elflint.c:2547
-#, c-format
-msgid "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-msgstr ""
-"sekcja [%2d] \"%s\": nie można uzyskać nagłówka sekcji dla elementu %zu: %s\n"
-
-#: src/elflint.c:2554
-#, c-format
-msgid "section [%2d] '%s': section group contains another group [%2d] '%s'\n"
-msgstr "sekcja [%2d] \"%s\": grupa sekcji zawiera inną grupę [%2d] \"%s\"\n"
-
-#: src/elflint.c:2560
-#, c-format
-msgid ""
-"section [%2d] '%s': element %Zu references section [%2d] '%s' without "
-"SHF_GROUP flag set\n"
-msgstr ""
-"sekcja [%2d] \"%s\": element %Zu odwołuje się do sekcji [%2d] \"%s\" bez "
-"flagi SHF_GROUP\n"
-
-#: src/elflint.c:2567
-#, c-format
-msgid "section [%2d] '%s' is contained in more than one section group\n"
-msgstr "sekcja [%2d] \"%s\" jest zawarta w więcej niż jednej grupie sekcji\n"
-
-#: src/elflint.c:2756
-#, c-format
-msgid ""
-"section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no "
-"dynamic symbol table\n"
-msgstr ""
-"sekcja [%2d] \"%s\" odwołuje się w sh_link do sekcji [%2d] \"%s\", która nie "
-"jest tabelą symboli dynamicznych\n"
-
-#: src/elflint.c:2768
-#, c-format
-msgid ""
-"section [%2d] '%s' has different number of entries than symbol table [%2d] "
-"'%s'\n"
-msgstr ""
-"sekcja [%2d] \"%s\" posiada inną liczbę wpisów niż tabela symboli [%2d] \"%s"
-"\"\n"
-
-#: src/elflint.c:2784
-#, c-format
-msgid "section [%2d] '%s': symbol %d: cannot read version data\n"
-msgstr "sekcja [%2d] \"%s\": symbol %d: nie można odczytać danych wersji\n"
-
-#: src/elflint.c:2800
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-msgstr "sekcja [%2d] \"%s\": symbol %d: symbol lokalny z zakresem globalnym\n"
-
-#: src/elflint.c:2808
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with version\n"
-msgstr "sekcja [%2d] \"%s\": symbol %d: symbol lokalny z wersją\n"
-
-#: src/elflint.c:2822
-#, c-format
-msgid "section [%2d] '%s': symbol %d: invalid version index %d\n"
-msgstr "sekcja [%2d] \"%s\": symbol %d: nieprawidłowy indeks wersji %d\n"
-
-#: src/elflint.c:2827
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %d: indeks wersji %d jest dla wersji określonej\n"
-
-#: src/elflint.c:2837
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-msgstr ""
-"sekcja [%2d] \"%s\": symbol %d: indeks wersji %d jest dla wersji żądanej\n"
-
-#: src/elflint.c:2889
-#, c-format
-msgid "more than one version reference section present\n"
-msgstr "obecna jest więcej niż jedna sekcja odniesienia wersji\n"
-
-#: src/elflint.c:2897 src/elflint.c:3026
-#, c-format
-msgid "section [%2d] '%s': sh_link does not link to string table\n"
-msgstr "sekcja [%2d] \"%s\": sh_link nie łączy się z tabelą ciągów\n"
-
-#: src/elflint.c:2920 src/elflint.c:3078
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong version %d\n"
-msgstr "sekcja [%2d] \"%s\": wpis %d posiada błędną wersję %d\n"
-
-#: src/elflint.c:2926 src/elflint.c:3084
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %d posiada błędny offset dla danych dodatkowych\n"
-
-#: src/elflint.c:2934
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid file reference\n"
-msgstr "sekcja [%2d] \"%s\": symbol %d posiada błędne odniesienie do pliku\n"
-
-#: src/elflint.c:2942
-#, c-format
-msgid "section [%2d] '%s': entry %d references unknown dependency\n"
-msgstr "sekcja [%2d] \"%s\": wpis %d odnosi się do nieznanej zależności\n"
-
-#: src/elflint.c:2954
-#, c-format
-msgid "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis dodatkowy %d do wpisu %d posiada nieznaną flagę\n"
-
-#: src/elflint.c:2961
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis dodatkowy %d do wpisu %d posiada nieprawidłowe "
-"odniesienie do nazwy\n"
-
-#: src/elflint.c:2968
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis dodatkowy %d do wpisu %d posiada błędną wartość "
-"skrótu: %#x, oczekiwano %#x\n"
-
-#: src/elflint.c:2978
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name '%s'\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis dodatkowy %d do wpisu %d posiada powtórzoną nazwę "
-"wersji \"%s\"\n"
-
-#: src/elflint.c:2989
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis dodatkowy %d do wpisu %d posiada błędne następne "
-"pole\n"
-
-#: src/elflint.c:3005 src/elflint.c:3163
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %d posiada błędny offset do następnego wpisu\n"
-
-#: src/elflint.c:3018
-#, c-format
-msgid "more than one version definition section present\n"
-msgstr "obecna jest więcej niż jedna sekcja definicji wersji\n"
-
-#: src/elflint.c:3063
-#, c-format
-msgid "section [%2d] '%s': more than one BASE definition\n"
-msgstr "sekcja [%2d] \"%s\": jest więcej niż jedna definicja BASE\n"
-
-#: src/elflint.c:3067
-#, c-format
-msgid "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-msgstr ""
-"sekcja [%2d] \"%s\": definicja BASE musi posiadać indeks VER_NDX_GLOBAL\n"
-
-#: src/elflint.c:3073
-#, c-format
-msgid "section [%2d] '%s': entry %d has unknown flag\n"
-msgstr "sekcja [%2d] \"%s\": wpis %d posiada nieznaną flagę\n"
-
-#: src/elflint.c:3097
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid name reference\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %d posiada nieprawidłowe odniesienie do nazwy\n"
-
-#: src/elflint.c:3104
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %d posiada błędną wartość skrótu: %#x, oczekiwano "
-"%#x\n"
-
-#: src/elflint.c:3113
-#, c-format
-msgid "section [%2d] '%s': entry %d has duplicate version name '%s'\n"
-msgstr "sekcja [%2d] \"%s\": wpis %d posiada powtórzoną nazwę wersji \"%s\"\n"
-
-#: src/elflint.c:3132
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %d posiada nieprawidłowe odniesienie do nazwy w "
-"danych dodatkowych\n"
-
-#: src/elflint.c:3147
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-msgstr ""
-"sekcja [%2d] \"%s\": wpis %d posiada błędne następne pole w danych "
-"dodatkowych\n"
-
-#: src/elflint.c:3169
-#, c-format
-msgid "section [%2d] '%s': no BASE definition\n"
-msgstr "sekcja [%2d] \"%s\": brak definicji BASE\n"
-
-#: src/elflint.c:3185
-#, c-format
-msgid "section [%2d] '%s': unknown parent version '%s'\n"
-msgstr "sekcja [%2d] \"%s\": nieznana wersja rodzica \"%s\"\n"
-
-#: src/elflint.c:3198
-#, c-format
-msgid "section [%2d] '%s': empty object attributes section\n"
-msgstr "sekcja [%2d] \"%s\": pusta sekcja atrybutów obiektu\n"
-
-#: src/elflint.c:3219
-#, c-format
-msgid "section [%2d] '%s': unrecognized attribute format\n"
-msgstr "sekcja [%2d] \"%s\": nierozpoznany format atrybutu\n"
-
-#: src/elflint.c:3235
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: pole o zerowej długości w sekcji atrybutów\n"
-
-#: src/elflint.c:3244
-#, c-format
-msgid "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: nieprawidłowa długość w sekcji atrybutów\n"
-
-#: src/elflint.c:3256
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-msgstr "sekcja [%2d] \"%s\": offset %zu: niezakończony ciąg nazwy producenta\n"
-
-#: src/elflint.c:3273
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: niekończące się ULEB128 w znaczniku "
-"podsekcji atrybutów\n"
-
-#: src/elflint.c:3282
-#, c-format
-msgid "section [%2d] '%s': offset %zu: truncated attribute section\n"
-msgstr "sekcja [%2d] \"%s\": offset %zu: skrócona sekcja atrybutów\n"
-
-#: src/elflint.c:3291
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: zerowej długości pole w podsekcji "
-"atrybutów\n"
-
-#: src/elflint.c:3304
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: nieprawidłowa długość w podsekcji "
-"atrybutów\n"
-
-#: src/elflint.c:3315
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: podsekcja atrybutów posiada nieoczekiwany "
-"znacznik %u\n"
-
-#: src/elflint.c:3333
-#, c-format
-msgid "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: niekończące się ULEB128 w znaczniku "
-"atrybutu\n"
-
-#: src/elflint.c:3344
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-msgstr "sekcja [%2d] \"%s\": offset %zu: niezakończony ciąg w atrybucie\n"
-
-#: src/elflint.c:3357
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-msgstr "sekcja [%2d] \"%s\": offset %zu: nierozpoznany znacznik atrybutu %u\n"
-
-#: src/elflint.c:3361
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: atrybut %s posiada nierozpoznaną wartość "
-"%<PRIu64>\n"
-
-#: src/elflint.c:3371
-#, c-format
-msgid "section [%2d] '%s': offset %zu: vendor '%s' unknown\n"
-msgstr "sekcja [%2d] \"%s\": offset %zu: producent \"%s\" jest nieznany\n"
-
-#: src/elflint.c:3377
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-msgstr ""
-"sekcja [%2d] \"%s\": offset %zu: dodatkowe bajty po ostatniej sekcji "
-"atrybutów\n"
-
-#: src/elflint.c:3466
-#, c-format
-msgid "cannot get section header of zeroth section\n"
-msgstr "nie można uzyskać nagłówka sekcji zerowej\n"
-
-#: src/elflint.c:3470
-#, c-format
-msgid "zeroth section has nonzero name\n"
-msgstr "sekcja zerowa posiada niezerową nazwę\n"
-
-#: src/elflint.c:3472
-#, c-format
-msgid "zeroth section has nonzero type\n"
-msgstr "sekcja zerowa posiada niezerowy typ\n"
-
-#: src/elflint.c:3474
-#, c-format
-msgid "zeroth section has nonzero flags\n"
-msgstr "sekcja zerowa posiada niezerowe flagi\n"
-
-#: src/elflint.c:3476
-#, c-format
-msgid "zeroth section has nonzero address\n"
-msgstr "sekcja zerowa posiada niezerowy adres\n"
-
-#: src/elflint.c:3478
-#, c-format
-msgid "zeroth section has nonzero offset\n"
-msgstr "sekcja zerowa posiada niezerowy offset\n"
-
-#: src/elflint.c:3480
-#, c-format
-msgid "zeroth section has nonzero align value\n"
-msgstr "sekcja zerowa posiada niezerową wartość wyrównania\n"
-
-#: src/elflint.c:3482
-#, c-format
-msgid "zeroth section has nonzero entry size value\n"
-msgstr "sekcja zerowa posiada niezerową wartość rozmiaru wpisu\n"
-
-#: src/elflint.c:3485
-#, c-format
-msgid ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-msgstr ""
-"sekcja zerowa posiada niezerową wartość rozmiaru, a nagłówek ELF posiada "
-"niezerową wartość shnum\n"
-
-#: src/elflint.c:3489
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-msgstr ""
-"sekcja zerowa posiada niezerową wartość dowiązań, a nagłówek ELF nie "
-"wskazuje przepełnienia w shstrndx\n"
-
-#: src/elflint.c:3493
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-msgstr ""
-"sekcja zerowa posiada niezerową wartość dowiązań, a nagłówek ELF nie "
-"wskazuje przepełnienia w phnum\n"
-
-#: src/elflint.c:3510
-#, c-format
-msgid "cannot get section header for section [%2zu] '%s': %s\n"
-msgstr "nie można uzyskać nagłówka sekcji dla sekcji [%2zu] \"%s\": %s\n"
-
-#: src/elflint.c:3519
-#, c-format
-msgid "section [%2zu]: invalid name\n"
-msgstr "sekcja [%2zu]: nieprawidłowa nazwa\n"
-
-#: src/elflint.c:3546
-#, c-format
-msgid "section [%2d] '%s' has wrong type: expected %s, is %s\n"
-msgstr "sekcja [%2d] \"%s\" posiada błędny typ: oczekiwano %s, jest %s\n"
-
-#: src/elflint.c:3562
-#, c-format
-msgid "section [%2zu] '%s' has wrong flags: expected %s, is %s\n"
-msgstr "sekcja [%2zu] \"%s\" posiada błędne flagi: oczekiwano %s, jest %s\n"
-
-#: src/elflint.c:3579
-#, c-format
-msgid ""
-"section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" posiada błędne flagi: oczekiwano %s i być może %s, jest "
-"%s\n"
-
-#: src/elflint.c:3597
-#, c-format
-msgid "section [%2zu] '%s' present in object file\n"
-msgstr "sekcja [%2zu] \"%s\" jest obecna w pliku obiektu\n"
-
-#: src/elflint.c:3603 src/elflint.c:3635
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" posiada flagę SHF_ALLOC, ale nie posiada segmentu "
-"wczytywalnego\n"
-
-#: src/elflint.c:3608 src/elflint.c:3640
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" nie posiada flagi SHF_ALLOC, ale są segmenty "
-"wczytywalne\n"
-
-#: src/elflint.c:3616
-#, c-format
-msgid ""
-"section [%2zu] '%s' is extension section index table in non-object file\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" jest tabelą indeksów sekcji rozszerzeń w pliku "
-"nieobiektowym\n"
-
-#: src/elflint.c:3659
-#, c-format
-msgid "section [%2zu] '%s': size not multiple of entry size\n"
-msgstr ""
-"sekcja [%2zu] \"%s\": rozmiar nie jest wielokrotnością rozmiaru wpisu\n"
-
-#: src/elflint.c:3664
-#, c-format
-msgid "cannot get section header\n"
-msgstr "nie można uzyskać nagłówka sekcji\n"
-
-#: src/elflint.c:3674
-#, c-format
-msgid "section [%2zu] '%s' has unsupported type %d\n"
-msgstr "sekcja [%2zu] \"%s\" posiada nieobsługiwany typ %d\n"
-
-#: src/elflint.c:3688
-#, c-format
-msgid ""
-"section [%2zu] '%s' contains invalid processor-specific flag(s) %#<PRIx64>\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" zawiera nieprawidłowe flagi specyficzne dla procesora "
-"%#<PRIx64>\n"
-
-#: src/elflint.c:3695
-#, c-format
-msgid "section [%2zu] '%s' contains unknown flag(s) %#<PRIx64>\n"
-msgstr "sekcja [%2zu] \"%s\" zawiera nieznane flagi %#<PRIx64>\n"
-
-#: src/elflint.c:3703
-#, c-format
-msgid "section [%2zu] '%s': thread-local data sections address not zero\n"
-msgstr ""
-"sekcja [%2zu] \"%s\": adres sekcji danych lokalnych dla wątków nie jest "
-"zerem\n"
-
-#: src/elflint.c:3711
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in link value\n"
-msgstr ""
-"sekcja [%2zu] \"%s\": nieprawidłowe odwołanie do sekcji w wartości "
-"dowiązania\n"
-
-#: src/elflint.c:3716
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in info value\n"
-msgstr ""
-"sekcja [%2zu] \"%s\": nieprawidłowe odwołanie do sekcji w wartości "
-"informacyjnej\n"
-
-#: src/elflint.c:3723
-#, c-format
-msgid "section [%2zu] '%s': strings flag set without merge flag\n"
-msgstr "sekcja [%2zu] \"%s\": flaga ciągów jest ustawiona bez flagi merge\n"
-
-#: src/elflint.c:3728
-#, c-format
-msgid "section [%2zu] '%s': merge flag set but entry size is zero\n"
-msgstr ""
-"sekcja [%2zu] \"%s\": flaga merge jest ustawiona, ale rozmiar wpisu jest "
-"zerowy\n"
-
-#: src/elflint.c:3746
-#, c-format
-msgid "section [%2zu] '%s' has unexpected type %d for an executable section\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" posiada nieoczekiwany typ %d dla sekcji wykonywalnej\n"
-
-#: src/elflint.c:3755
-#, c-format
-msgid "section [%2zu] '%s' is both executable and writable\n"
-msgstr "sekcja [%2zu] \"%s\" jest wykonywalne i zapisywalne\n"
-
-#: src/elflint.c:3784
-#, c-format
-msgid ""
-"section [%2zu] '%s' not fully contained in segment of program header entry "
-"%d\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" nie jest w całości zawarta w segmencie wpisu %d "
-"nagłówka programu\n"
-
-#: src/elflint.c:3792
-#, c-format
-msgid ""
-"section [%2zu] '%s' has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" posiada typ NOBITS, a jest odczytywana z pliku w "
-"segmencie wpisu %d nagłówka programu\n"
-
-#: src/elflint.c:3801
-#, c-format
-msgid ""
-"section [%2zu] '%s' has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-msgstr ""
-"sekcja [%2zu] \"%s\" nie posiada typu NOBITS, a nie jest odczytywana z pliku "
-"w segmencie wpisu %d nagłówka programu\n"
-
-#: src/elflint.c:3812
-#, c-format
-msgid "section [%2zu] '%s' is executable in nonexecutable segment %d\n"
-msgstr "sekcja [%2zu] \"%s\" jest wykonywalne w segmencie niewykonywalnym %d\n"
-
-#: src/elflint.c:3822
-#, c-format
-msgid "section [%2zu] '%s' is writable in unwritable segment %d\n"
-msgstr "sekcja [%2zu] \"%s\" jest zapisywalne w niezapisywalnym segmencie %d\n"
-
-#: src/elflint.c:3832
-#, c-format
-msgid ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-msgstr ""
-"sekcja [%2zu] \"%s\": posiada flagę alloc, ale sekcja nie jest w żadnym "
-"segmencie wczytywalnym\n"
-
-#: src/elflint.c:3838
-#, c-format
-msgid ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-msgstr ""
-"sekcja [%2zu] \"%s\": według nagłówka ELF to jest tabela ciągów nagłówków "
-"sekcji, ale typ nie jest SHT_TYPE\n"
-
-#: src/elflint.c:3846
-#, c-format
-msgid ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-msgstr ""
-"sekcja [%2zu] \"%s\": pliki relokowalne nie mogą posiadać tabeli symboli "
-"dynamicznych\n"
-
-#: src/elflint.c:3897
-#, c-format
-msgid "more than one version symbol table present\n"
-msgstr "obecna jest więcej niż jedna tabela symboli wersji\n"
-
-#: src/elflint.c:3920
-#, c-format
-msgid "INTERP program header entry but no .interp section\n"
-msgstr "jest wpis nagłówka programu INTERP, ale nie posiada sekcji .interp\n"
-
-#: src/elflint.c:3931
-#, c-format
-msgid ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-msgstr ""
-"wczytywalny segment [%u] jest wykonywalny, ale nie zawiera wykonywalnych "
-"sekcji\n"
-
-#: src/elflint.c:3937
-#, c-format
-msgid "loadable segment [%u] is writable but contains no writable sections\n"
-msgstr ""
-"wczytywalny segment [%u] jest zapisywalny, ale nie zawiera zapisywalnych "
-"sekcji\n"
-
-#: src/elflint.c:3948
-#, c-format
-msgid ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-msgstr ""
-"brak sekcji .gnu.versym, ale istnieje sekcja .gnu.versym_d lub .gnu."
-"versym_r\n"
-
-#: src/elflint.c:3961
-#, c-format
-msgid "duplicate version index %d\n"
-msgstr "powtórzony indeks wersji %d\n"
-
-#: src/elflint.c:3975
-#, c-format
-msgid ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-msgstr "sekcja .gnu.versym istnieje bez .gnu.versym_d lub .gnu.versym_r\n"
-
-#: src/elflint.c:4024
-#, c-format
-msgid "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-msgstr ""
-"phdr[%d]: nieznany typ notatki pliku core %<PRIu32> pod offsetem %<PRIu64>\n"
-
-#: src/elflint.c:4028
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"phdr[%2d]: \"%s\": nieznany typ notatki pliku core %<PRIu32> pod offsetem "
-"%Zu\n"
-
-#: src/elflint.c:4051
-#, c-format
-msgid "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"phdr[%d]: nieznany typ notatki pliku obiektu %<PRIu32> pod offsetem %Zu\n"
-
-#: src/elflint.c:4055
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"phdr[%d]: \"%s\": nieznany typ notatki pliku obiektu %<PRIu32> pod offsetem "
-"%Zu\n"
-
-#: src/elflint.c:4072
-#, c-format
-msgid "phdr[%d]: no note entries defined for the type of file\n"
-msgstr "phdr[%d]: brak określonych wpisów notatek dla typu pliku\n"
-
-#: src/elflint.c:4091
-#, c-format
-msgid "phdr[%d]: cannot get content of note section: %s\n"
-msgstr "phdr[%d]: nie można uzyskać zawartości sekcji notatki: %s\n"
-
-#: src/elflint.c:4094
-#, c-format
-msgid "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-msgstr "phdr[%d]: dodatkowe %<PRIu64> bajtów po ostatniej notatce\n"
-
-#: src/elflint.c:4115
-#, c-format
-msgid "section [%2d] '%s': no note entries defined for the type of file\n"
-msgstr "sekcja [%2d] \"%s\": brak określonych wpisów notatek dla typu pliku\n"
-
-#: src/elflint.c:4122
-#, c-format
-msgid "section [%2d] '%s': cannot get content of note section\n"
-msgstr "sekcja [%2d] \"%s\": nie można uzyskać zawartości sekcji notatek\n"
-
-#: src/elflint.c:4125
-#, c-format
-msgid "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-msgstr "sekcja [%2d] \"%s\": dodatkowe %<PRIu64> bajtów po ostatniej notatce\n"
-
-#: src/elflint.c:4143
-#, c-format
-msgid ""
-"only executables, shared objects, and core files can have program headers\n"
-msgstr ""
-"tylko pliki wykonywalne, obiekty współdzielone i pliki core mogą posiadać "
-"nagłówki programu\n"
-
-#: src/elflint.c:4158
-#, c-format
-msgid "cannot get program header entry %d: %s\n"
-msgstr "nie można uzyskać wpisu nagłówka programu %d: %s\n"
-
-#: src/elflint.c:4167
-#, c-format
-msgid "program header entry %d: unknown program header entry type %#<PRIx64>\n"
-msgstr ""
-"wpis nagłówka programu %d: nieznany typ wpisu nagłówka programu %#<PRIx64>\n"
-
-#: src/elflint.c:4178
-#, c-format
-msgid "more than one INTERP entry in program header\n"
-msgstr "więcej niż jeden wpis INTERP w nagłówku programu\n"
-
-#: src/elflint.c:4186
-#, c-format
-msgid "more than one TLS entry in program header\n"
-msgstr "więcej niż jeden wpis TLS w nagłówku programu\n"
-
-#: src/elflint.c:4193
-#, c-format
-msgid "static executable cannot have dynamic sections\n"
-msgstr "statyczny plik wykonywalny nie może posiadać sekcji dynamicznych\n"
-
-#: src/elflint.c:4207
-#, c-format
-msgid "dynamic section reference in program header has wrong offset\n"
-msgstr ""
-"odniesienie sekcji dynamicznej w nagłówku programu posiada błędny offset\n"
-
-#: src/elflint.c:4210
-#, c-format
-msgid "dynamic section size mismatch in program and section header\n"
-msgstr "różne rozmiary sekcji dynamicznej w nagłówku programu i sekcji\n"
-
-#: src/elflint.c:4220
-#, c-format
-msgid "more than one GNU_RELRO entry in program header\n"
-msgstr "więcej niż jeden wpis GNU_RELRO w nagłówku programu\n"
-
-#: src/elflint.c:4241
-#, c-format
-msgid "loadable segment GNU_RELRO applies to is not writable\n"
-msgstr "wczytywalny segment wskazywany przez GNU_RELRO nie jest zapisywalny\n"
-
-#: src/elflint.c:4244
-#, c-format
-msgid "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-msgstr "flagi wczytywalnego segmentu [%u] nie pasują do flag GNU_RELRO [%u]\n"
-
-#: src/elflint.c:4252 src/elflint.c:4275
-#, c-format
-msgid "%s segment not contained in a loaded segment\n"
-msgstr "segment %s nie zawiera się we wczytywalnym segmencie\n"
-
-#: src/elflint.c:4281
-#, c-format
-msgid "program header offset in ELF header and PHDR entry do not match"
-msgstr ""
-"offsety nagłówka programu w nagłówku ELF i wpisie PHDR nie zgadzają się"
-
-#: src/elflint.c:4305
-#, c-format
-msgid "call frame search table reference in program header has wrong offset\n"
-msgstr ""
-"odniesienie tabeli wyszukiwania ramki wywołania w nagłówku programu posiada "
-"błędny offset\n"
-
-#: src/elflint.c:4308
-#, c-format
-msgid "call frame search table size mismatch in program and section header\n"
-msgstr ""
-"różne rozmiary tabel wyszukiwania ramki wywołania w nagłówku programu i "
-"sekcji\n"
-
-#: src/elflint.c:4321
-#, c-format
-msgid "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-msgstr "PT_GNU_EH_FRAME jest obecne, ale brak sekcji .eh_frame_hdr\n"
-
-#: src/elflint.c:4329
-#, c-format
-msgid "call frame search table must be allocated\n"
-msgstr "tabela wyszukiwania ramki wywołania musi być przydzielona\n"
-
-#: src/elflint.c:4332
-#, c-format
-msgid "section [%2zu] '%s' must be allocated\n"
-msgstr "sekcja [%2zu] \"%s\": musi być przydzielona\n"
-
-#: src/elflint.c:4336
-#, c-format
-msgid "call frame search table must not be writable\n"
-msgstr "tabela wyszukiwania ramki wywołania nie może być zapisywalna\n"
-
-#: src/elflint.c:4339
-#, c-format
-msgid "section [%2zu] '%s' must not be writable\n"
-msgstr "sekcja [%2zu] \"%s\" nie może być zapisywalna\n"
-
-#: src/elflint.c:4344
-#, c-format
-msgid "call frame search table must not be executable\n"
-msgstr "tabela wyszukiwania ramki wywołania nie może być wykonywalna\n"
-
-#: src/elflint.c:4347
-#, c-format
-msgid "section [%2zu] '%s' must not be executable\n"
-msgstr "sekcja [%2zu] \"%s\" nie może być wykonywalna\n"
-
-#: src/elflint.c:4358
-#, c-format
-msgid "program header entry %d: file size greater than memory size\n"
-msgstr "wpis nagłówka programu %d: rozmiar pliku większy niż rozmiar pamięci\n"
-
-#: src/elflint.c:4365
-#, c-format
-msgid "program header entry %d: alignment not a power of 2\n"
-msgstr "wpis nagłówka programu %d: wyrównanie nie jest potęgą 2\n"
-
-#: src/elflint.c:4368
-#, c-format
-msgid ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-msgstr ""
-"wpis nagłówka programu %d: offset w pliku i adres wirtualny nie są "
-"wielokrotnością wyrównania\n"
-
-#: src/elflint.c:4381
-#, c-format
-msgid ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-msgstr ""
-"plik wykonywalny/DSO z sekcją .eh_frame_hdr nie posiada wpisu nagłówka "
-"programu PT_GNU_EH_FRAME"
-
-#: src/elflint.c:4415
-#, c-format
-msgid "cannot read ELF header: %s\n"
-msgstr "nie można odczytać nagłówka ELF: %s\n"
-
-#: src/elflint.c:4441
-#, c-format
-msgid "text relocation flag set but not needed\n"
-msgstr "flaga relokacji tekstu jest ustawiona, ale niepotrzebna\n"
-
-#: src/findtextrel.c:62
-msgid "Input Selection:"
-msgstr "Wybór wejścia:"
-
-#: src/findtextrel.c:63
-msgid "Prepend PATH to all file names"
-msgstr "Dołącza ŚCIEŻKĘ do wszystkich nazw plików"
-
-#: src/findtextrel.c:65
-msgid "Use PATH as root of debuginfo hierarchy"
-msgstr "Używa ŚCIEŻKI jako korzenia dla hierarchii debuginfo"
-
-#: src/findtextrel.c:72
-msgid "Locate source of text relocations in FILEs (a.out by default)."
-msgstr "Odnajduje źródło relokacji tekstu w PLIKACH (domyślnie a.out)."
-
-#: src/findtextrel.c:76 src/nm.c:108 src/objdump.c:72 src/size.c:84
-#: src/strings.c:84 src/strip.c:96
-msgid "[FILE...]"
-msgstr "[PLIK...]"
-
-#: src/findtextrel.c:238
-#, c-format
-msgid "cannot get ELF header '%s': %s"
-msgstr "nie można uzyskać nagłówka ELF \"%s\": %s"
-
-#: src/findtextrel.c:249
-#, c-format
-msgid "'%s' is not a DSO or PIE"
-msgstr "\"%s\" nie jest DSO ani PIE"
-
-#: src/findtextrel.c:269
-#, c-format
-msgid "getting get section header of section %zu: %s"
-msgstr "uzyskiwanie nagłówka sekcji dla sekcji %zu: %s"
-
-#: src/findtextrel.c:292
-#, c-format
-msgid "cannot read dynamic section: %s"
-msgstr "nie można odczytać sekcji dynamicznej: %s"
-
-#: src/findtextrel.c:313
-#, c-format
-msgid "no text relocations reported in '%s'"
-msgstr "brak relokacji tekstu w \"%s\""
-
-#: src/findtextrel.c:325
-#, c-format
-msgid "while reading ELF file"
-msgstr "podczas odczytywania pliku ELF"
-
-#: src/findtextrel.c:329
-#, fuzzy, c-format
-msgid "cannot get program header count: %s"
-msgstr "nie można uzyskać nagłówka programu: %s"
-
-#: src/findtextrel.c:340 src/findtextrel.c:357
-#, fuzzy, c-format
-msgid "cannot get program header index at offset %zd: %s"
-msgstr "nie można uzyskać indeksu nagłówka programu pod offsetem %d: %s"
-
-#: src/findtextrel.c:409
-#, c-format
-msgid "cannot get section header of section %Zu: %s"
-msgstr "nie można uzyskać nagłówka sekcji dla sekcji %Zu: %s"
-
-#: src/findtextrel.c:421
-#, c-format
-msgid "cannot get symbol table section %zu in '%s': %s"
-msgstr "nie można uzyskać sekcji tabeli symboli %zu w \"%s\": %s"
-
-#: src/findtextrel.c:441 src/findtextrel.c:464
-#, c-format
-msgid "cannot get relocation at index %d in section %zu in '%s': %s"
-msgstr "nie można uzyskać relokacji pod indeksem %d w sekcji %zu w \"%s\": %s"
-
-#: src/findtextrel.c:529
-#, c-format
-msgid "%s not compiled with -fpic/-fPIC\n"
-msgstr "%s nie został skompilowany z -fpic/-fPIC\n"
-
-#: src/findtextrel.c:582
-#, c-format
-msgid ""
-"the file containing the function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"plik zawierający funkcję \"%s\" nie został skompilowany z -fpic/-fPIC\n"
-
-#: src/findtextrel.c:589 src/findtextrel.c:609
-#, c-format
-msgid ""
-"the file containing the function '%s' might not be compiled with -fpic/-"
-"fPIC\n"
-msgstr ""
-"plik zawierający funkcję \"%s\" mógł nie zostać skompilowany z -fpic/-fPIC\n"
-
-#: src/findtextrel.c:597
-#, c-format
-msgid ""
-"either the file containing the function '%s' or the file containing the "
-"function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"plik zawierający funkcję \"%s\" lub plik zawierający funkcję \"%s\" nie "
-"został skompilowany z -fpic/-fPIC\n"
-
-#: src/findtextrel.c:617
-#, c-format
-msgid ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-msgstr ""
-"relokacja modyfikuje pamięć pod offsetem %llu w segmencie zabezpieczonym "
-"przed zapisem\n"
-
-#: src/i386_ld.c:202
-#, c-format
-msgid "cannot allocate PLT section: %s"
-msgstr "nie można przydzielić sekcji PLT: %s"
-
-#: src/i386_ld.c:224
-#, c-format
-msgid "cannot allocate PLTREL section: %s"
-msgstr "nie można przydzielić sekcji PLTREL: %s"
-
-#: src/i386_ld.c:245
-#, c-format
-msgid "cannot allocate GOT section: %s"
-msgstr "nie można przydzielić sekcji GOT: %s"
-
-#: src/i386_ld.c:266
-#, c-format
-msgid "cannot allocate GOTPLT section: %s"
-msgstr "nie można przydzielić sekcji GOTPLT: %s"
-
-#: src/i386_ld.c:653
-#, c-format
-msgid "initial-executable TLS relocation cannot be used "
-msgstr "początkowo wykonywalna relokacja TLS nie może zostać użyta "
-
-#: src/ld.c:79
-msgid "Input File Control:"
-msgstr "Sterowanie plikiem wejściowym:"
-
-#: src/ld.c:81
-msgid "Include whole archives in the output from now on."
-msgstr "Dołącza całe archiwa w wyjściu od teraz."
-
-#: src/ld.c:83
-msgid "Stop including the whole archives in the output."
-msgstr "Przestaje dołączać całe archiwa w wyjściu."
-
-#: src/ld.c:84 src/ld.c:98 src/ld.c:176
-msgid "FILE"
-msgstr "PLIK"
-
-#: src/ld.c:85
-msgid "Start a group."
-msgstr "Rozpoczyna grupę."
-
-#: src/ld.c:86
-msgid "End a group."
-msgstr "Kończy grupę."
-
-#: src/ld.c:87
-msgid "PATH"
-msgstr "ŚCIEŻKA"
-
-#: src/ld.c:88
-msgid "Add PATH to list of directories files are searched in."
-msgstr "Dodaje ŚCIEŻKĘ do listy katalogów, w których są szukane pliki."
-
-#: src/ld.c:90
-msgid "Only set DT_NEEDED for following dynamic libs if actually used"
-msgstr ""
-"Ustawia DT_NEEDED dla następujących bibliotek dynamicznych tylko, jeśli są "
-"używane"
-
-#: src/ld.c:92
-msgid "Always set DT_NEEDED for following dynamic libs"
-msgstr "Ustawia zawsze DT_NEEDED dla następujących bibliotek dynamicznych"
-
-#: src/ld.c:94
-msgid "Ignore LD_LIBRARY_PATH environment variable."
-msgstr "Ignoruje zmienną środowiskową LD_LIBRARY_PATH."
-
-#: src/ld.c:97
-msgid "Output File Control:"
-msgstr "Sterowanie plikiem wyjściowym:"
-
-#: src/ld.c:98
-msgid "Place output in FILE."
-msgstr "Umieszcza wyjście w PLIKU."
-
-#: src/ld.c:101
-msgid "Object is marked to not use default search path at runtime."
-msgstr "Oznacza obiekt, aby nie używał domyślnej ścieżki przeszukiwań."
-
-#: src/ld.c:103
-msgid "Same as --whole-archive."
-msgstr "To samo, co --whole-archive."
-
-#: src/ld.c:104
-msgid ""
-"Default rules of extracting from archive; weak references are not enough."
-msgstr ""
-"Domyślne reguły wydobywania z archiwum; słabe odwołania nie wystarczają."
-
-#: src/ld.c:108
-msgid "Weak references cause extraction from archive."
-msgstr "Słabe odwołania powodują wydobywanie z archiwum."
-
-#: src/ld.c:110
-msgid "Allow multiple definitions; first is used."
-msgstr "Zezwala na wielokrotne definicje; używana jest pierwsza."
-
-#: src/ld.c:112
-msgid "Disallow/allow undefined symbols in DSOs."
-msgstr "Zabrania/zezwala na nieokreślone symbole w DSO."
-
-#: src/ld.c:115
-msgid "Object requires immediate handling of $ORIGIN."
-msgstr "Obiekt wymaga natychmiastowej obsługi $ORIGIN."
-
-#: src/ld.c:117
-msgid "Relocation will not be processed lazily."
-msgstr "Relokacje nie będą przeprowadzane leniwie."
-
-#: src/ld.c:119
-msgid "Object cannot be unloaded at runtime."
-msgstr "Obiekt nie może być wyładowany w czasie działania."
-
-#: src/ld.c:121
-msgid "Mark object to be initialized first."
-msgstr "Oznacza obiekt, aby był inicjowany jako pierwszy."
-
-#: src/ld.c:123
-msgid "Enable/disable lazy-loading flag for following dependencies."
-msgstr "Włącza/wyłącza flagi leniwego wczytywania dla następnych zależności."
-
-#: src/ld.c:125
-msgid "Mark object as not loadable with 'dlopen'."
-msgstr "Oznacza obiekt jako niewczytywalnego przez \"dlopen\"."
-
-#: src/ld.c:127
-msgid "Ignore/record dependencies on unused DSOs."
-msgstr "Ignoruje/zapisuje zależności od nieużywanych DSO."
-
-#: src/ld.c:129
-msgid "Generated DSO will be a system library."
-msgstr "Utworzony DSO będzie biblioteką systemową."
-
-#: src/ld.c:130
-msgid "ADDRESS"
-msgstr "ADRES"
-
-#: src/ld.c:130
-msgid "Set entry point address."
-msgstr "Ustawia adres punktu wejściowego."
-
-#: src/ld.c:133
-msgid "Do not link against shared libraries."
-msgstr "Bez konsolidowania z bibliotekami współdzielonymi."
-
-#: src/ld.c:136
-msgid "Prefer linking against shared libraries."
-msgstr "Preferuje konsolidowanie z bibliotekami dzielonymi."
-
-#: src/ld.c:137
-msgid "Export all dynamic symbols."
-msgstr "Eksportuje wszystkie symbole dynamiczne."
-
-#: src/ld.c:138
-msgid "Strip all symbols."
-msgstr "Skraca wszystkie symbole."
-
-#: src/ld.c:139
-msgid "Strip debugging symbols."
-msgstr "Skraca symbole debugowania."
-
-#: src/ld.c:141
-msgid "Assume pagesize for the target system to be SIZE."
-msgstr "Przyjmuje dla systemu docelowego rozmiaru strony ROZMIAR."
-
-#: src/ld.c:143
-msgid "Set runtime DSO search path."
-msgstr "Ustawia ścieżkę poszukiwania DSO w czasie działania."
-
-#: src/ld.c:146
-msgid "Set link time DSO search path."
-msgstr "Ustawia ścieżki poszukiwania DSO w czasie konsolidowania."
-
-#: src/ld.c:147
-msgid "Generate dynamic shared object."
-msgstr "Tworzy dynamiczny obiekt współdzielony."
-
-#: src/ld.c:148
-msgid "Generate relocatable object."
-msgstr "Tworzy obiekt relokowalny."
-
-#: src/ld.c:151
-msgid "Causes symbol not assigned to a version be reduced to local."
-msgstr "Ogranicza zasięg symboli nieprzypisanych do wersji do lokalnego."
-
-#: src/ld.c:152
-msgid "Remove unused sections."
-msgstr "Usuwa nieużywane sekcje."
-
-#: src/ld.c:155
-msgid "Don't remove unused sections."
-msgstr "Bez usuwania nieużywanych sekcji."
-
-#: src/ld.c:156
-msgid "Set soname of shared object."
-msgstr "Ustawia soname obiektu współdzielonego."
-
-#: src/ld.c:157
-msgid "Set the dynamic linker name."
-msgstr "Ustawia nazwę dynamicznego konsolidatora."
-
-#: src/ld.c:160
-msgid "Add/suppress addition indentifying link-editor to .comment section."
-msgstr ""
-"Dodaje/pomija dodanie identyfikacji edytora konsolidacji do sekcji .comment"
-
-#: src/ld.c:163
-msgid "Create .eh_frame_hdr section"
-msgstr "Tworzy sekcję .eh_frame_hdr"
-
-#: src/ld.c:165
-msgid "Set hash style to sysv, gnu or both."
-msgstr "Ustawia styl sum kontrolnych na sysv, gnu lub oba."
-
-#: src/ld.c:167
-msgid "Generate build ID note (md5, sha1 (default), uuid)."
-msgstr "Tworzy wpis identyfikatora kopii (md5, sha1 (domyślnie), uuid)."
-
-#: src/ld.c:169
-msgid "Linker Operation Control:"
-msgstr "Sterowanie działaniami konsolidatora:"
-
-#: src/ld.c:170
-msgid "Verbose messages."
-msgstr "Szczegółowe komunikaty."
-
-#: src/ld.c:171
-msgid "Trace file opens."
-msgstr "Śledzi otwarcia plików."
-
-#: src/ld.c:173
-msgid "Trade speed for less memory usage"
-msgstr "Poświęca prędkość na mniejsze zużycie pamięci"
-
-#: src/ld.c:174
-msgid "LEVEL"
-msgstr "POZIOM"
-
-#: src/ld.c:175
-msgid "Set optimization level to LEVEL."
-msgstr "Ustawia poziom optymalizacji na POZIOM."
-
-#: src/ld.c:176
-msgid "Use linker script in FILE."
-msgstr "Używa skryptu konsolidatora z PLIKU."
-
-#: src/ld.c:179
-msgid "Select to get parser debug information"
-msgstr "Wybiera pobranie informacji debugowania parsera"
-
-#: src/ld.c:182
-msgid "Read version information from FILE."
-msgstr "Odczytuje informacje o wersji z PLIKU."
-
-#: src/ld.c:183
-msgid "Set emulation to NAME."
-msgstr "Ustawia emulację na NAZWĘ."
-
-#: src/ld.c:189
-msgid "Combine object and archive files."
-msgstr "Łączy pliki obiektów i archiwów."
-
-#: src/ld.c:192
-msgid "[FILE]..."
-msgstr "[PLIK]..."
-
-#: src/ld.c:325
-#, c-format
-msgid "At least one input file needed"
-msgstr "Wymagany jest co najmniej jeden plik wejściowy"
-
-#: src/ld.c:341
-#, c-format
-msgid "error while preparing linking"
-msgstr "błąd podczas przygotowywania konsolidowania"
-
-#: src/ld.c:348
-#, c-format
-msgid "cannot open linker script '%s'"
-msgstr "nie można otworzyć skryptu konsolidatora \"%s\""
-
-#: src/ld.c:389
-#, c-format
-msgid "-( without matching -)"
-msgstr "-( bez pasującego -)"
-
-#: src/ld.c:564 src/ld.c:602
-#, c-format
-msgid "only one option of -G and -r is allowed"
-msgstr "dozwolona jest tylko jedna z opcji -G i -r"
-
-#: src/ld.c:586
-#, c-format
-msgid "more than one '-m' parameter"
-msgstr "podano więcej niż jeden parametr \"-m\""
-
-#: src/ld.c:596 src/ld.c:1005
-#, c-format
-msgid "unknown option `-%c %s'"
-msgstr "nieznana opcja \"-%c %s\""
-
-#: src/ld.c:638
-#, c-format
-msgid "invalid page size value '%s': ignored"
-msgstr "nieprawidłowa wartość rozmiaru strony \"%s\": zignorowano"
-
-#: src/ld.c:679
-#, c-format
-msgid "invalid hash style '%s'"
-msgstr "nieprawidłowy styl sum kontrolnych \"%s\""
-
-#: src/ld.c:689
-#, c-format
-msgid "invalid build-ID style '%s'"
-msgstr "nieprawidłowy styl identyfikatora budowania \"%s\""
-
-#: src/ld.c:777
-#, c-format
-msgid "More than one output file name given."
-msgstr "Podano więcej niż jeden plik wyjściowy."
-
-#: src/ld.c:794
-#, c-format
-msgid "Invalid optimization level `%s'"
-msgstr "Nieprawidłowy poziom optymalizacji \"%s\""
-
-#: src/ld.c:842
-#, c-format
-msgid "nested -( -) groups are not allowed"
-msgstr "zagnieżdżone grupy -( -) nie są dozwolone"
-
-#: src/ld.c:861
-#, c-format
-msgid "-) without matching -("
-msgstr "-) bez pasującego -("
-
-#: src/ld.c:1038
-#, c-format
-msgid "unknown option '-%c %s'"
-msgstr "nieznana opcja \"-%c %s\""
-
-#: src/ld.c:1142
-#, c-format
-msgid "could not find input file to determine output file format"
-msgstr ""
-"nie można odnaleźć pliku wejściowego, aby określić format pliku wyjściowego"
-
-#: src/ld.c:1144
-#, c-format
-msgid "try again with an appropriate '-m' parameter"
-msgstr "proszę spróbować jeszcze raz z odpowiednim parametrem \"-m\""
-
-#: src/ld.c:1438
-#, c-format
-msgid "cannot read version script '%s'"
-msgstr "nie można odczytać skryptu wersji \"%s\""
-
-#: src/ld.c:1504 src/ld.c:1543
-#, c-format
-msgid "duplicate definition of '%s' in linker script"
-msgstr "powtórzona definicja \"%s\" w skrypcie konsolidatora"
-
-#: src/ldgeneric.c:201 src/ldgeneric.c:5141
-#, c-format
-msgid "cannot create string table"
-msgstr "nie można utworzyć tabeli ciągów"
-
-#: src/ldgeneric.c:247
-#, c-format
-msgid "cannot load ld backend library '%s': %s"
-msgstr "nie można odczytać biblioteki zaplecza ld \"%s\": %s"
-
-#: src/ldgeneric.c:257
-#, c-format
-msgid "cannot find init function in ld backend library '%s': %s"
-msgstr "nie można odnaleźć funkcji init w bibliotece zaplecza ld \"%s\": %s"
-
-#: src/ldgeneric.c:300
-#, c-format
-msgid "%s listed more than once as input"
-msgstr "%s podano więcej niż raz w wejściu"
-
-#: src/ldgeneric.c:414
-#, c-format
-msgid "%s (for -l%s)\n"
-msgstr "%s (dla -l%s)\n"
-
-#: src/ldgeneric.c:415
-#, c-format
-msgid "%s (for DT_NEEDED %s)\n"
-msgstr "%s (dla DT_NEEDED %s)\n"
-
-#: src/ldgeneric.c:563
-#, c-format
-msgid "Warning: type of `%s' changed from %s in %s to %s in %s"
-msgstr "Ostrzeżenie: typ \"%s\" zmienił się z %s w %s na %s w %s"
-
-#: src/ldgeneric.c:576
-#, c-format
-msgid "Warning: size of `%s' changed from %<PRIu64> in %s to %<PRIu64> in %s"
-msgstr ""
-"Ostrzeżenie: rozmiar \"%s\" zmienił się z %<PRIu64> w %s na %<PRIu64> w %s"
-
-#: src/ldgeneric.c:651 src/ldgeneric.c:1112 src/readelf.c:527
-#: src/readelf.c:829 src/strip.c:568
-#, c-format
-msgid "cannot determine number of sections: %s"
-msgstr "nie można określić liczby sekcji: %s"
-
-#: src/ldgeneric.c:667
-#, c-format
-msgid "(%s+%#<PRIx64>): multiple definition of %s `%s'\n"
-msgstr "(%s+%#<PRIx64>): wielokrotna definicja %s `%s'\n"
-
-#: src/ldgeneric.c:690
-#, c-format
-msgid "(%s+%#<PRIx64>): first defined here\n"
-msgstr "(%s+%#<PRIx64>): pierwszy raz określono tutaj\n"
-
-#: src/ldgeneric.c:809
-#, c-format
-msgid "%s: cannot get section group data: %s"
-msgstr "%s: nie można uzyskać danych grupy sekcji: %s"
-
-#: src/ldgeneric.c:830
-#, c-format
-msgid "%s: section '%s' with group flag set does not belong to any group"
-msgstr "%s: sekcja \"%s\" z ustawioną flagą grupy nie należy do żadnej grupy"
-
-#: src/ldgeneric.c:875
-#, c-format
-msgid "%s: section [%2d] '%s' is not in the correct section group"
-msgstr "%s: sekcja [%2d] \"%s\" nie jest w poprawnej grupie sekcji"
-
-#: src/ldgeneric.c:1146 src/ldgeneric.c:1403 src/ldgeneric.c:1412
-#: src/ldgeneric.c:1471 src/ldgeneric.c:1480 src/ldgeneric.c:1743
-#: src/ldgeneric.c:1995
-#, c-format
-msgid "%s: invalid ELF file (%s:%d)\n"
-msgstr "%s: nieprawidłowy plik ELF (%s:%d)\n"
-
-#: src/ldgeneric.c:1240
-#, c-format
-msgid "%s: only files of type ET_REL might contain section groups"
-msgstr "%s: tylko pliki typu ET_REL mogą zawierać grupy sekcji"
-
-#: src/ldgeneric.c:1292
-#, c-format
-msgid "%s: cannot determine signature of section group [%2zd] '%s': %s"
-msgstr "%s: nie można określić podpisu grupy sekcji [%2zd] \"%s\": %s"
-
-#: src/ldgeneric.c:1304
-#, c-format
-msgid "%s: cannot get content of section group [%2zd] '%s': %s'"
-msgstr "%s: nie można uzyskać zawartości grupy sekcji [%2zd] \"%s\": %s"
-
-#: src/ldgeneric.c:1318
-#, c-format
-msgid ""
-"%s: group member %zu of section group [%2zd] '%s' has too high index: "
-"%<PRIu32>"
-msgstr ""
-"%s: element grupy %zu grupy sekcji [%2zd] \"%s\" posiada za wysoki indeks: "
-"%<PRIu32>"
-
-#: src/ldgeneric.c:1340
-#, c-format
-msgid "%s: section '%s' has unknown type: %d"
-msgstr "%s: sekcja \"%s\" posiada nieznany typ: %d"
-
-#: src/ldgeneric.c:1719
-#, c-format
-msgid "cannot get descriptor for ELF file (%s:%d): %s\n"
-msgstr "nie można uzyskać deskryptora dla pliku ELF (%s:%d): %s\n"
-
-#: src/ldgeneric.c:1889
-#, c-format
-msgid "cannot read archive `%s': %s"
-msgstr "nie można odczytać archiwum \"%s\": %s"
-
-#: src/ldgeneric.c:2010
-#, c-format
-msgid "file of type %s cannot be linked in\n"
-msgstr "plik typu %s nie może zostać wkonsolidowany\n"
-
-#: src/ldgeneric.c:2022
-#, c-format
-msgid "%s: input file incompatible with ELF machine type %s\n"
-msgstr "%s: plik wejściowy jest niezgodny z rodzajem komputera ELF %s\n"
-
-#: src/ldgeneric.c:2034
-#, c-format
-msgid "%s: cannot get section header string table index: %s\n"
-msgstr "%s: nie można uzyskać indeksu tabeli ciągów nagłówków sekcji: %s\n"
-
-#: src/ldgeneric.c:2063
-#, c-format
-msgid "cannot use DSO '%s' when generating relocatable object file"
-msgstr ""
-"nie można użyć DSO \"%s\" podczas tworzenia relokowalnego pliku obiektu"
-
-#: src/ldgeneric.c:2148
-#, c-format
-msgid "input file '%s' ignored"
-msgstr "plik wejściowy \"%s\" został zignorowany"
-
-#: src/ldgeneric.c:2362
-#, c-format
-msgid "undefined symbol `%s' in %s"
-msgstr "nieokreślony symbol \"%s\" w %s"
-
-#: src/ldgeneric.c:2692
-#, c-format
-msgid "cannot create ELF descriptor for output file: %s"
-msgstr "nie można utworzyć deskryptora ELF dla pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:2699
-#, c-format
-msgid "could not create ELF header for output file: %s"
-msgstr "nie można utworzyć nagłówka ELF dla pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:3214 src/ldgeneric.c:3284 src/ldgeneric.c:3320
-#: src/ldgeneric.c:4447 src/ldgeneric.c:4496 src/ldgeneric.c:4528
-#: src/ldgeneric.c:4763 src/ldgeneric.c:4818 src/ldgeneric.c:5065
-#: src/ldgeneric.c:5121 src/ldgeneric.c:5590 src/ldgeneric.c:5602
-#, c-format
-msgid "cannot create section for output file: %s"
-msgstr "nie można utworzyć sekcji dla pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:3434
-#, c-format
-msgid "address computation expression contains variable '%s'"
-msgstr "wyrażenie obliczenia adresu zawiera zmienną \"%s\""
-
-#: src/ldgeneric.c:3479
-#, c-format
-msgid ""
-"argument '%<PRIuMAX>' of ALIGN in address computation expression is no power "
-"of two"
-msgstr ""
-"parametr \"%<PRIuMAX>\" ALIGN w wyrażeniu obliczenia adresu nie jest potęgą "
-"dwójki"
-
-#: src/ldgeneric.c:3674
-#, c-format
-msgid "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-msgstr ""
-"nie można odnaleźć symbolu wejściowego \"%s\": użycie domyślnego %#0*<PRIx64>"
-
-#: src/ldgeneric.c:3680
-#, c-format
-msgid "no entry symbol specified: defaulting to %#0*<PRIx64>"
-msgstr "nie określono symbolu wejściowego: użycie domyślnego %#0*<PRIx64>"
-
-#: src/ldgeneric.c:3910
-#, c-format
-msgid "cannot create GNU hash table section for output file: %s"
-msgstr ""
-"nie można utworzyć sekcji tabeli mieszającej GNU dla pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:4061
-#, c-format
-msgid "cannot create hash table section for output file: %s"
-msgstr "nie można utworzyć sekcji tabeli mieszającej dla pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:4104
-#, c-format
-msgid "cannot create build ID section: %s"
-msgstr "nie można utworzyć sekcji identyfikatora kopii: %s"
-
-#: src/ldgeneric.c:4181
-#, c-format
-msgid "cannot convert section data to file format: %s"
-msgstr "nie można przekonwertować danych sekcji na format pliku: %s"
-
-#: src/ldgeneric.c:4190
-#, c-format
-msgid "cannot convert section data to memory format: %s"
-msgstr "nie można przekonwertować danych sekcji na format pamięci: %s"
-
-#: src/ldgeneric.c:4251
-#, c-format
-msgid "cannot read enough data for UUID"
-msgstr "nie można odczytać danych wystarczających dla UUID"
-
-#: src/ldgeneric.c:4348 src/ldgeneric.c:4369 src/ldgeneric.c:4398
-#: src/ldgeneric.c:6051
-#, c-format
-msgid "cannot create symbol table for output file: %s"
-msgstr "nie można utworzyć tabeli symboli dla pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:5290 src/ldgeneric.c:5842
-#, c-format
-msgid "section index too large in dynamic symbol table"
-msgstr "indeks sekcji za duży w tabeli symboli dynamicznych"
-
-#: src/ldgeneric.c:5735
-#, c-format
-msgid "cannot create versioning section: %s"
-msgstr "nie można utworzyć sekcji wersjonowania: %s"
-
-#: src/ldgeneric.c:5808
-#, c-format
-msgid "cannot create dynamic symbol table for output file: %s"
-msgstr ""
-"nie można utworzyć tabeli symboli dynamicznych dla pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:5983
-#, c-format
-msgid "cannot create versioning data: %s"
-msgstr "nie można utworzyć danych wersjonowania: %s"
-
-#: src/ldgeneric.c:6083 src/ldgeneric.c:6096 src/ldgeneric.c:6160
-#: src/ldgeneric.c:6168
-#, c-format
-msgid "cannot create section header string section: %s"
-msgstr "nie można utworzyć sekcji ciągów nagłówków sekcji: %s"
-
-#: src/ldgeneric.c:6090
-#, c-format
-msgid "cannot create section header string section"
-msgstr "nie można utworzyć sekcji ciągów nagłówków sekcji"
-
-#: src/ldgeneric.c:6248
-#, c-format
-msgid "cannot create program header: %s"
-msgstr "nie można utworzyć nagłówka programu: %s"
-
-#: src/ldgeneric.c:6256
-#, c-format
-msgid "while determining file layout: %s"
-msgstr "podczas określania układu pliku: %s"
-
-#: src/ldgeneric.c:6377
-#, c-format
-msgid "internal error: non-nobits section follows nobits section"
-msgstr "błąd wewnętrzny: sekcja nie będąca nobits po sekcji nobits"
-
-#: src/ldgeneric.c:6914
-#, c-format
-msgid "cannot get header of 0th section: %s"
-msgstr "nie można uzyskać nagłówka zerowej sekcji: %s"
-
-#: src/ldgeneric.c:6930 src/unstrip.c:1822
-#, c-format
-msgid "cannot update ELF header: %s"
-msgstr "nie można zaktualizować nagłówka ELF: %s"
-
-#: src/ldgeneric.c:6961
-#, c-format
-msgid "linker backend didn't specify function to relocate section"
-msgstr "zaplecze konsolidatora nie określiło funkcji dla sekcji relokacji"
-
-#: src/ldgeneric.c:6973
-#, c-format
-msgid "while writing output file: %s"
-msgstr "podczas zapisywania pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:6978
-#, c-format
-msgid "while finishing output file: %s"
-msgstr "podczas kończenia pliku wyjściowego: %s"
-
-#: src/ldgeneric.c:6984
-#, c-format
-msgid "cannot stat output file"
-msgstr "nie można wykonać stat na pliku wyjściowym"
-
-#: src/ldgeneric.c:7000
-#, c-format
-msgid "WARNING: temporary output file overwritten before linking finished"
-msgstr ""
-"OSTRZEŻENIE: tymczasowy plik wyjściowy został zastąpiony przed ukończeniem "
-"konsolidowania"
-
-#: src/ldgeneric.c:7053 src/ldgeneric.c:7064 src/ldgeneric.c:7075
-#: src/ldgeneric.c:7086 src/ldgeneric.c:7105 src/ldgeneric.c:7118
-#: src/ldgeneric.c:7130
-#, c-format
-msgid "no machine specific '%s' implementation"
-msgstr "brak implementacji \"%s\" specyficznej dla maszyny"
-
-#: src/ldscript.y:170
-msgid "mode for segment invalid\n"
-msgstr "nieprawidłowy tryb dla segmentu\n"
-
-#: src/ldscript.y:457
-#, c-format
-msgid "while reading version script '%s': %s at line %d"
-msgstr "podczas odczytywania skryptu wersji \"%s\": %s w wierszu %d"
-
-#: src/ldscript.y:458
-#, c-format
-msgid "while reading linker script '%s': %s at line %d"
-msgstr "podczas odczytywania skryptu konsolidatora \"%s\": %s w wierszu %d"
-
-#: src/ldscript.y:737
-#, c-format
-msgid "symbol '%s' is declared both local and global for unnamed version"
-msgstr ""
-"symbol \"%s\" jest zadeklarowany jednocześnie lokalny i globalny dla "
-"nienazwanej wersji"
-
-#: src/ldscript.y:739
-#, c-format
-msgid "symbol '%s' is declared both local and global for version '%s'"
-msgstr ""
-"symbol \"%s\" jest zadeklarowany jednocześnie lokalny i globalny dla wersji "
-"\"%s\""
-
-#: src/ldscript.y:759 src/ldscript.y:766
-#, c-format
-msgid "default visibility set as local and global"
-msgstr "domyślna widoczność ustawiona jako lokalna i globalna"
-
-#: src/nm.c:66 src/strip.c:68
-msgid "Output selection:"
-msgstr "Wybór wyjścia:"
-
-#: src/nm.c:67
-msgid "Display debugger-only symbols"
-msgstr "Wyświetla symbole wyłącznie debugowowania"
-
-#: src/nm.c:68
-msgid "Display only defined symbols"
-msgstr "Wyświetla tylko określone symbole"
-
-#: src/nm.c:71
-msgid "Display dynamic symbols instead of normal symbols"
-msgstr "Wyświetla symbole dynamiczne zamiast zwykłych"
-
-#: src/nm.c:72
-msgid "Display only external symbols"
-msgstr "Wyświetla tylko symbole zewnętrzne"
-
-#: src/nm.c:73
-msgid "Display only undefined symbols"
-msgstr "Wyświetla tylko nieokreślone symbole"
-
-#: src/nm.c:75
-msgid "Include index for symbols from archive members"
-msgstr "Dołącza indeks dla symboli z elementów archiwum"
-
-#: src/nm.c:77 src/size.c:58
-msgid "Output format:"
-msgstr "Format wyjścia:"
-
-#: src/nm.c:79
-msgid "Print name of the input file before every symbol"
-msgstr "Wyświetla nazwę pliku wejściowego przed każdym symbolem"
-
-#: src/nm.c:82
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The "
-"default is `sysv'"
-msgstr ""
-"Używa FORMATU wyjściowego. Może to być \"bsd\", \"sysv\" lub \"posix\". "
-"Domyślny jest format \"sysv\""
-
-#: src/nm.c:84
-msgid "Same as --format=bsd"
-msgstr "To samo, co --format=bsd"
-
-#: src/nm.c:85
-msgid "Same as --format=posix"
-msgstr "To samo co, --format=posix"
-
-#: src/nm.c:86 src/size.c:64
-msgid "Use RADIX for printing symbol values"
-msgstr "Używa BAZY do wypisywania wartości symboli"
-
-#: src/nm.c:87
-msgid "Mark special symbols"
-msgstr "Oznacza specjalne symbole"
-
-#: src/nm.c:89
-msgid "Print size of defined symbols"
-msgstr "Wyświetla rozmiar określonych symboli"
-
-#: src/nm.c:91 src/size.c:72 src/strip.c:73 src/unstrip.c:73
-msgid "Output options:"
-msgstr "Opcje wyjścia:"
-
-#: src/nm.c:92
-msgid "Sort symbols numerically by address"
-msgstr "Porządkuje symbole numerycznie według adresu"
-
-#: src/nm.c:94
-msgid "Do not sort the symbols"
-msgstr "Bez porządkowania symboli"
-
-#: src/nm.c:95
-msgid "Reverse the sense of the sort"
-msgstr "Odwraca kierunek porządkowania"
-
-#: src/nm.c:98
-msgid "Decode low-level symbol names into source code names"
-msgstr "Dekoduje niskopoziomowe nazwy symboli na nazwy kodu źródłowego"
-
-#: src/nm.c:105
-msgid "List symbols from FILEs (a.out by default)."
-msgstr "Wyświetla listę symboli z PLIKU (domyślnie a.out)."
-
-#: src/nm.c:116 src/objdump.c:80
-msgid "Output formatting"
-msgstr "Formatowanie wyjścia"
-
-#: src/nm.c:140 src/objdump.c:104 src/size.c:109 src/strip.c:120
-#, c-format
-msgid "%s: INTERNAL ERROR %d (%s-%s): %s"
-msgstr "%s: BŁĄD WEWNĘTRZNY %d (%s-%s): %s"
-
-#: src/nm.c:398 src/nm.c:410 src/size.c:309 src/size.c:318 src/size.c:329
-#: src/strip.c:2160
-#, c-format
-msgid "while closing '%s'"
-msgstr "podczas zamykania \"%s\""
-
-#: src/nm.c:420 src/objdump.c:296 src/strip.c:376
-#, c-format
-msgid "%s: File format not recognized"
-msgstr "%s: nie rozpoznano formatu pliku"
-
-#: src/nm.c:460
-msgid ""
-"\n"
-"Archive index:\n"
-msgstr ""
-"\n"
-"Indeks archiwum:\n"
-
-#: src/nm.c:469
-#, c-format
-msgid "invalid offset %zu for symbol %s"
-msgstr "nieprawidłowy offset %zu dla symbolu %s"
-
-#: src/nm.c:474
-#, c-format
-msgid "%s in %s\n"
-msgstr "%s w %s\n"
-
-#: src/nm.c:482
-#, c-format
-msgid "cannot reset archive offset to beginning"
-msgstr "nie można przywrócić offsetu w archiwum na początek"
-
-#: src/nm.c:506 src/objdump.c:344
-#, c-format
-msgid "%s%s%s: file format not recognized"
-msgstr "%s%s%s: nie rozpoznano formatu pliku"
-
-#: src/nm.c:718
-#, c-format
-msgid "cannot create search tree"
-msgstr "nie można utworzyć drzewa wyszukiwania"
-
-#: src/nm.c:757 src/nm.c:1163 src/objdump.c:793 src/readelf.c:536
-#: src/readelf.c:1085 src/readelf.c:1245 src/readelf.c:1393 src/readelf.c:1579
-#: src/readelf.c:1785 src/readelf.c:1975 src/readelf.c:2202 src/readelf.c:2460
-#: src/readelf.c:2536 src/readelf.c:2623 src/readelf.c:3201 src/readelf.c:3237
-#: src/readelf.c:3300 src/readelf.c:8187 src/readelf.c:9273 src/readelf.c:9420
-#: src/readelf.c:9488 src/size.c:417 src/size.c:486 src/strip.c:503
-#, c-format
-msgid "cannot get section header string table index"
-msgstr "nie można uzyskać indeksu tabeli ciągów nagłówków sekcji"
-
-#: src/nm.c:784
-#, c-format
-msgid ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-msgstr ""
-"\n"
-"\n"
-"Symbole z %s:\n"
-"\n"
-
-#: src/nm.c:787
-#, c-format
-msgid ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-msgstr ""
-"%*s%-*s %-*s Klasa Typ %-*s %*s Sekcja\n"
-"\n"
-
-#: src/nm.c:1173
-#, c-format
-msgid "%s: entry size in section `%s' is not what we expect"
-msgstr "%s: rozmiar wpisu w sekcji \"%s\" nie jest tym, czego oczekiwano"
-
-#: src/nm.c:1177
-#, c-format
-msgid "%s: size of section `%s' is not multiple of entry size"
-msgstr "%s: rozmiar sekcji \"%s\" nie jest wielokrotnością rozmiaru wpisu"
-
-#: src/nm.c:1435
-#, c-format
-msgid "%s%s%s%s: Invalid operation"
-msgstr "%s%s%s%s: nieprawidłowe działanie"
-
-#: src/nm.c:1492
-#, c-format
-msgid "%s%s%s: no symbols"
-msgstr "%s%s%s: brak symboli"
-
-#: src/objdump.c:53
-msgid "Mode selection:"
-msgstr "Wybór trybu:"
-
-#: src/objdump.c:54
-msgid "Display relocation information."
-msgstr "Wyświetla informacje o relokacji."
-
-#: src/objdump.c:56
-msgid "Display the full contents of all sections requested"
-msgstr "Wyświetla pełną zawartość żądanych sekcji"
-
-#: src/objdump.c:58
-msgid "Display assembler code of executable sections"
-msgstr "Wyświetla kod asemblera sekcji wykonywalnych"
-
-#: src/objdump.c:60
-msgid "Output content selection:"
-msgstr "Wybór zawartości wyjścia:"
-
-#: src/objdump.c:62
-msgid "Only display information for section NAME."
-msgstr "Wyświetla tylko informacje o sekcji NAZWA."
-
-#: src/objdump.c:68
-msgid "Show information from FILEs (a.out by default)."
-msgstr "Wyświetla informacje z PLIKÓW (domyślnie a.out)."
-
-#: src/objdump.c:236 src/readelf.c:473
-msgid "No operation specified.\n"
-msgstr "Nie podano działania.\n"
-
-#: src/objdump.c:274 src/objdump.c:286
-#, c-format
-msgid "while close `%s'"
-msgstr "podczas zamykania \"%s\""
-
-#: src/objdump.c:379 src/readelf.c:1880 src/readelf.c:2072
-msgid "INVALID SYMBOL"
-msgstr "NIEPRAWIDŁOWY SYMBOL"
-
-#: src/objdump.c:394 src/readelf.c:1914 src/readelf.c:2108
-msgid "INVALID SECTION"
-msgstr "NIEPRAWIDŁOWA SEKCJA"
-
-#: src/objdump.c:514
-#, c-format
-msgid ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-msgstr ""
-"\n"
-"PISY RELOKACJI DLA [%s]:\n"
-"%-*s TYP WARTOŚĆ\n"
-
-#: src/objdump.c:517
-msgid "OFFSET"
-msgstr "OFFSET"
-
-#: src/objdump.c:582
-#, c-format
-msgid "Contents of section %s:\n"
-msgstr "Zawartość sekcji %s:\n"
-
-#: src/objdump.c:703
-#, c-format
-msgid "cannot disassemble"
-msgstr "nie można deasemblować"
-
-#: src/objdump.c:742
-#, c-format
-msgid "cannot allocate memory"
-msgstr "nie można przydzielić pamięci"
-
-#: src/ranlib.c:66
-msgid "Generate an index to speed access to archives."
-msgstr "Tworzenie indeksu w celu przyspieszenia dostępu do archiwów."
-
-#: src/ranlib.c:69
-msgid "ARCHIVE"
-msgstr "ARCHIWUM"
-
-#: src/ranlib.c:108
-#, c-format
-msgid "Archive name required"
-msgstr "Wymagana jest nazwa archiwum"
-
-#: src/ranlib.c:186
-#, c-format
-msgid "'%s' is no archive"
-msgstr "\"%s\" nie jest archiwum"
-
-#: src/ranlib.c:221
-#, c-format
-msgid "error while freeing sub-ELF descriptor: %s"
-msgstr "błąd podczas zwalniania deskryptora pod-ELF: %s"
-
-#: src/readelf.c:71
-#, fuzzy
-msgid "ELF input selection:"
-msgstr "Wybór wyjścia ELF:"
-
-#: src/readelf.c:73
-msgid ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-msgstr ""
-
-#: src/readelf.c:75
-msgid "ELF output selection:"
-msgstr "Wybór wyjścia ELF:"
-
-#: src/readelf.c:77
-msgid "All these plus -p .strtab -p .dynstr -p .comment"
-msgstr "Wszystkie te plus -p .strtab -p .dynstr -p .comment"
-
-#: src/readelf.c:78
-msgid "Display the dynamic segment"
-msgstr "Wyświetla segment dynamiczny"
-
-#: src/readelf.c:79
-msgid "Display the ELF file header"
-msgstr "Wyświetla nagłówek pliku ELF"
-
-#: src/readelf.c:81
-msgid "Display histogram of bucket list lengths"
-msgstr "Wyświetla histogram długości list kubełków"
-
-#: src/readelf.c:82
-msgid "Display the program headers"
-msgstr "Wyświetla nagłówki programu"
-
-#: src/readelf.c:84
-msgid "Display relocations"
-msgstr "Wyświetla relokacje"
-
-#: src/readelf.c:85
-msgid "Display the sections' headers"
-msgstr "Wyświetla nagłówków sekcji"
-
-#: src/readelf.c:87
-msgid "Display the symbol table"
-msgstr "Wyświetla tabelę symboli"
-
-#: src/readelf.c:88
-msgid "Display versioning information"
-msgstr "Wyświetla informacje o wersjonowaniu"
-
-#: src/readelf.c:89
-msgid "Display the ELF notes"
-msgstr "Wyświetla notatki ELF"
-
-#: src/readelf.c:91
-msgid "Display architecture specific information, if any"
-msgstr "Wyświetla informacje specyficzne dla architektury, jeśli są"
-
-#: src/readelf.c:93
-msgid "Display sections for exception handling"
-msgstr "Wyświetla sekcje do obsługi wyjątków"
-
-#: src/readelf.c:95
-msgid "Additional output selection:"
-msgstr "Dodatkowy wybór wyjścia:"
-
-#: src/readelf.c:97
-#, fuzzy
-msgid ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-msgstr ""
-"Wyświetla zawartość sekcji DWARF. SEKCJA może być jednym z abbrev, aranges, "
-"frame, gdb_index, info, loc, line, ranges, pubnames, str, macinfo, macro lub "
-"exception."
-
-#: src/readelf.c:101
-msgid "Dump the uninterpreted contents of SECTION, by number or name"
-msgstr "Zrzuca niezinterpretowaną zawartość SEKCJI, według liczny lub nazwy"
-
-#: src/readelf.c:103
-msgid "Print string contents of sections"
-msgstr "Wyświetla zawartość ciągów sekcji"
-
-#: src/readelf.c:106
-msgid "Display the symbol index of an archive"
-msgstr "Wyświetla indeks symboli archiwum"
-
-#: src/readelf.c:108
-msgid "Output control:"
-msgstr "Kontrola wyjścia:"
-
-#: src/readelf.c:110
-msgid "Do not find symbol names for addresses in DWARF data"
-msgstr "Bez odnajdywania nazw symboli dla adresów w danych DWARF"
-
-#: src/readelf.c:112
-#, fuzzy
-msgid ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-msgstr "Bez odnajdywania nazw symboli dla adresów w danych DWARF"
-
-#: src/readelf.c:114
-msgid "Ignored for compatibility (lines always wide)"
-msgstr "Ignorowane dla zgodności (wiersze są zawsze szerokie)"
-
-#: src/readelf.c:119
-msgid "Print information from ELF file in human-readable form."
-msgstr "Wyświetla informacje z pliku ELF w postaci czytelnej dla człowieka."
-
-#: src/readelf.c:441
-#, c-format
-msgid "Unknown DWARF debug section `%s'.\n"
-msgstr "Nieznana sekcja debugowania DWARF \"%s\".\n"
-
-#: src/readelf.c:520 src/readelf.c:631
-#, c-format
-msgid "cannot generate Elf descriptor: %s"
-msgstr "nie można utworzyć deskryptora ELF: %s"
-
-#: src/readelf.c:545 src/readelf.c:1099 src/readelf.c:1269
-#, c-format
-msgid "cannot get section: %s"
-msgstr "nie można uzyskać sekcji: %s"
-
-#: src/readelf.c:554 src/readelf.c:1106 src/readelf.c:1277 src/readelf.c:9440
-#: src/unstrip.c:356 src/unstrip.c:387 src/unstrip.c:436 src/unstrip.c:544
-#: src/unstrip.c:561 src/unstrip.c:597 src/unstrip.c:795 src/unstrip.c:1063
-#: src/unstrip.c:1254 src/unstrip.c:1314 src/unstrip.c:1435 src/unstrip.c:1488
-#: src/unstrip.c:1595 src/unstrip.c:1784
-#, c-format
-msgid "cannot get section header: %s"
-msgstr "nie można uzyskać nagłówka sekcji: %s"
-
-#: src/readelf.c:562
-#, fuzzy, c-format
-msgid "cannot get section name"
-msgstr "nie można uzyskać nagłówka sekcji\n"
-
-#: src/readelf.c:571 src/readelf.c:5398 src/readelf.c:7671 src/readelf.c:7773
-#: src/readelf.c:7939
-#, c-format
-msgid "cannot get %s content: %s"
-msgstr "nie można uzyskać zwartości %s: %s"
-
-#: src/readelf.c:587
-#, fuzzy, c-format
-msgid "cannot create temp file '%s'"
-msgstr "nie można utworzyć nowego pliku \"%s\": %s"
-
-#: src/readelf.c:596
-#, fuzzy, c-format
-msgid "cannot write section data"
-msgstr "nie można odczytać danych sekcji: %s"
-
-#: src/readelf.c:602 src/readelf.c:619 src/readelf.c:648
-#, c-format
-msgid "error while closing Elf descriptor: %s"
-msgstr "błąd podczas zamykania deskryptora ELF: %s"
-
-#: src/readelf.c:609
-#, fuzzy, c-format
-msgid "error while rewinding file descriptor"
-msgstr "błąd podczas zamykania deskryptora ELF: %s"
-
-#: src/readelf.c:643
-#, c-format
-msgid "'%s' is not an archive, cannot print archive index"
-msgstr "\"%s\" nie jest archiwum, nie można wyświetlić indeksu archiwum"
-
-#: src/readelf.c:742
-#, fuzzy, c-format
-msgid "No such section '%s' in '%s'"
-msgstr "nie można odczytać notatki sekcji [%zu] \"%s\" w \"%s\": %s"
-
-#: src/readelf.c:769
-#, c-format
-msgid "cannot stat input file"
-msgstr "nie można wykonać stat na pliku wejściowym"
-
-#: src/readelf.c:771
-#, c-format
-msgid "input file is empty"
-msgstr "plik wejściowy jest pusty"
-
-#: src/readelf.c:773
-#, c-format
-msgid "failed reading '%s': %s"
-msgstr "odczytanie \"%s\" nie powiodło się: %s"
-
-#: src/readelf.c:814
-#, c-format
-msgid "cannot read ELF header: %s"
-msgstr "nie można odczytać nagłówka ELF: %s"
-
-#: src/readelf.c:822
-#, c-format
-msgid "cannot create EBL handle"
-msgstr "nie można utworzyć uchwytu EBL"
-
-#: src/readelf.c:835
-#, c-format
-msgid "cannot determine number of program headers: %s"
-msgstr "nie można określić liczby nagłówków programu: %s"
-
-#: src/readelf.c:921
-msgid "NONE (None)"
-msgstr "NONE (żaden)"
-
-#: src/readelf.c:922
-msgid "REL (Relocatable file)"
-msgstr "REL (plik relokowalny)"
-
-#: src/readelf.c:923
-msgid "EXEC (Executable file)"
-msgstr "EXEC (plik wykonywalny)"
-
-#: src/readelf.c:924
-msgid "DYN (Shared object file)"
-msgstr "DYN (plik obiektu współdzielonego)"
-
-#: src/readelf.c:925
-msgid "CORE (Core file)"
-msgstr "CORE (plik core)"
-
-#: src/readelf.c:930
-#, c-format
-msgid "OS Specific: (%x)\n"
-msgstr "Zależny od systemu: (%x)\n"
-
-#: src/readelf.c:932
-#, c-format
-msgid "Processor Specific: (%x)\n"
-msgstr "Zależny od procesora: (%x)\n"
-
-#: src/readelf.c:942
-msgid ""
-"ELF Header:\n"
-" Magic: "
-msgstr ""
-"Nagłówek ELF:\n"
-" Magic: "
-
-#: src/readelf.c:946
-#, c-format
-msgid ""
-"\n"
-" Class: %s\n"
-msgstr ""
-"\n"
-" Klasa: %s\n"
-
-#: src/readelf.c:951
-#, c-format
-msgid " Data: %s\n"
-msgstr " Dane: %s\n"
-
-#: src/readelf.c:957
-#, c-format
-msgid " Ident Version: %hhd %s\n"
-msgstr " Wersja Ident: %hhd %s\n"
-
-#: src/readelf.c:959 src/readelf.c:976
-msgid "(current)"
-msgstr "(bieżąca)"
-
-#: src/readelf.c:963
-#, c-format
-msgid " OS/ABI: %s\n"
-msgstr " System operacyjny/ABI: %s\n"
-
-#: src/readelf.c:966
-#, c-format
-msgid " ABI Version: %hhd\n"
-msgstr " Wersja ABI: %hhd\n"
-
-#: src/readelf.c:969
-msgid " Type: "
-msgstr " Typ: "
-
-#: src/readelf.c:972
-#, c-format
-msgid " Machine: %s\n"
-msgstr " Komputer: %s\n"
-
-#: src/readelf.c:974
-#, c-format
-msgid " Version: %d %s\n"
-msgstr " Wersja: %d %s\n"
-
-#: src/readelf.c:978
-#, c-format
-msgid " Entry point address: %#<PRIx64>\n"
-msgstr " Adres punktu wejściowego: %#<PRIx64>\n"
-
-#: src/readelf.c:981
-#, c-format
-msgid " Start of program headers: %<PRId64> %s\n"
-msgstr " Początek nagłówków programu: %<PRId64> %s\n"
-
-#: src/readelf.c:982 src/readelf.c:985
-msgid "(bytes into file)"
-msgstr "(bajtów w pliku)"
-
-#: src/readelf.c:984
-#, c-format
-msgid " Start of section headers: %<PRId64> %s\n"
-msgstr " Początek nagłówków sekcji: %<PRId64> %s\n"
-
-#: src/readelf.c:987
-#, c-format
-msgid " Flags: %s\n"
-msgstr " Flagi: %s\n"
-
-#: src/readelf.c:990
-#, c-format
-msgid " Size of this header: %<PRId16> %s\n"
-msgstr " Rozmiar tego nagłówka: %<PRId16> %s\n"
-
-#: src/readelf.c:991 src/readelf.c:994 src/readelf.c:1011
-msgid "(bytes)"
-msgstr "(bajtów)"
-
-#: src/readelf.c:993
-#, c-format
-msgid " Size of program header entries: %<PRId16> %s\n"
-msgstr " Rozmiar wpisów nagłówka programu: %<PRId16> %s\n"
-
-#: src/readelf.c:996
-#, c-format
-msgid " Number of program headers entries: %<PRId16>"
-msgstr " Liczba wpisów nagłówków programu: %<PRId16>"
-
-#: src/readelf.c:1003
-#, c-format
-msgid " (%<PRIu32> in [0].sh_info)"
-msgstr " (%<PRIu32> w [0].sh_info)"
-
-#: src/readelf.c:1006 src/readelf.c:1023 src/readelf.c:1037
-msgid " ([0] not available)"
-msgstr " ([0] niedostępny)"
-
-#: src/readelf.c:1010
-#, c-format
-msgid " Size of section header entries: %<PRId16> %s\n"
-msgstr " Rozmiar wpisów nagłówka sekcji: %<PRId16> %s\n"
-
-#: src/readelf.c:1013
-#, c-format
-msgid " Number of section headers entries: %<PRId16>"
-msgstr " Liczba wpisów nagłówków sekcji: %<PRId16>"
-
-#: src/readelf.c:1020
-#, c-format
-msgid " (%<PRIu32> in [0].sh_size)"
-msgstr " (%<PRIu32> w [0].sh_size)"
-
-#: src/readelf.c:1033
-#, c-format
-msgid " (%<PRIu32> in [0].sh_link)"
-msgstr " (%<PRIu32> w [0].sh_link)"
-
-#: src/readelf.c:1041
-#, c-format
-msgid ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-msgstr ""
-" Indeks tabeli ciągów nagłówków sekcji: XINDEX%s\n"
-"\n"
-
-#: src/readelf.c:1045
-#, c-format
-msgid ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-msgstr ""
-" Indeks tabeli ciągów nagłówków sekcji: %<PRId16>\n"
-"\n"
-
-#: src/readelf.c:1077
-#, c-format
-msgid ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"Jest %d nagłówków sekcji, rozpoczynających się od offsetu %#<PRIx64>:\n"
-"\n"
-
-#: src/readelf.c:1087
-msgid "Section Headers:"
-msgstr "Nagłówki sekcji:"
-
-#: src/readelf.c:1090
-msgid ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-msgstr ""
-"[Nr] Nazwa Typ Adres Offset Rozm ES Flagi Lk "
-"Inf Al"
-
-#: src/readelf.c:1092
-msgid ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-msgstr ""
-"[Nr] Nazwa Typ Adres Offset Rozmiar ES "
-"Flagi Lk Inf Al"
-
-#: src/readelf.c:1164
-msgid "Program Headers:"
-msgstr "Nagłówki programu:"
-
-#: src/readelf.c:1166
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-msgstr ""
-" Typ Offset AdresWirt AdresFiz RozmPlik RozmPam Flg "
-"Wyrównanie"
-
-#: src/readelf.c:1169
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-msgstr ""
-" Typ Offset AdresWirtualny AdresFizyczny RozmPlik "
-"RozmPam Flg Wyrównanie"
-
-#: src/readelf.c:1226
-#, c-format
-msgid "\t[Requesting program interpreter: %s]\n"
-msgstr "\t[Wywołanie interpretera programu: %s]\n"
-
-#: src/readelf.c:1247
-msgid ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-msgstr ""
-"\n"
-" mapowanie sekcji do segmentów:\n"
-" Segment sekcji..."
-
-#: src/readelf.c:1258 src/unstrip.c:1843 src/unstrip.c:1886 src/unstrip.c:1893
-#, c-format
-msgid "cannot get program header: %s"
-msgstr "nie można uzyskać nagłówka programu: %s"
-
-#: src/readelf.c:1401
-#, c-format
-msgid ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Grupa sekcji COMDAT [%2zu] \"%s\" z podspiem \"%s\" zawiera %zu wpis:\n"
-msgstr[1] ""
-"\n"
-"Grupa sekcji COMDAT [%2zu] \"%s\" z podpisem \"%s\" zawiera %zu wpisy:\n"
-msgstr[2] ""
-"\n"
-"Grupa sekcji COMDAT [%2zu] \"%s\" z podpisem \"%s\" zawiera %zu wpisów:\n"
-
-#: src/readelf.c:1406
-#, c-format
-msgid ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Grupa sekcji [%2zu] \"%s\" z podpisem \"%s\" zawiera %zu wpis:\n"
-msgstr[1] ""
-"\n"
-"Grupa sekcji [%2zu] \"%s\" z podpisem \"%s\" zawiera %zu wpisy:\n"
-msgstr[2] ""
-"\n"
-"Grupa sekcji [%2zu] \"%s\" z podpisem \"%s\" zawiera %zu wpisów:\n"
-
-#: src/readelf.c:1414
-msgid "<INVALID SYMBOL>"
-msgstr "<NIEPRAWIDŁOWY SYMBOL>"
-
-#: src/readelf.c:1428
-msgid "<INVALID SECTION>"
-msgstr "<NIEPRAWIDŁOWY SEKCJA>"
-
-#: src/readelf.c:1585 src/readelf.c:2208 src/readelf.c:2466 src/readelf.c:2542
-#: src/readelf.c:2846 src/readelf.c:2920 src/readelf.c:4610
-#, fuzzy, c-format
-msgid "invalid sh_link value in section %Zu"
-msgstr "nieprawidłowa sekcja .debug_line"
-
-#: src/readelf.c:1588
-#, c-format
-msgid ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Segment dynamiczny zawiera %lu wpis:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] "
-"'%s'\n"
-msgstr[1] ""
-"\n"
-"Segment dynamiczny zawiera %lu wpisy:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] "
-"'%s'\n"
-msgstr[2] ""
-"\n"
-"Segment dynamiczny zawiera %lu wpisów:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] "
-"'%s'\n"
-
-#: src/readelf.c:1598
-msgid " Type Value\n"
-msgstr " Typ Wartość\n"
-
-#: src/readelf.c:1622
-#, c-format
-msgid "Shared library: [%s]\n"
-msgstr "Biblioteka współdzielona: [%s]\n"
-
-#: src/readelf.c:1627
-#, c-format
-msgid "Library soname: [%s]\n"
-msgstr "soname biblioteki: [%s]\n"
-
-#: src/readelf.c:1632
-#, c-format
-msgid "Library rpath: [%s]\n"
-msgstr "rpath biblioteki: [%s]\n"
-
-#: src/readelf.c:1637
-#, c-format
-msgid "Library runpath: [%s]\n"
-msgstr "runpath biblioteki: [%s]\n"
-
-#: src/readelf.c:1657
-#, c-format
-msgid "%<PRId64> (bytes)\n"
-msgstr "%<PRId64> (bajtów)\n"
-
-#: src/readelf.c:1770 src/readelf.c:1960
-#, c-format
-msgid ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-msgstr ""
-"\n"
-"Nieprawidłowa tabela symboli pod offsetem %#0<PRIx64>\n"
-
-#: src/readelf.c:1788 src/readelf.c:1978
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Sekcja relokacji [%2zu] \"%s\" dla sekcji [%2u] \"%s\" pod offsetem "
-"%#0<PRIx64> zawiera %d wpis:\n"
-msgstr[1] ""
-"\n"
-"Sekcja relokacji [%2zu] \"%s\" dla sekcji [%2u] \"%s\" pod offsetem "
-"%#0<PRIx64> zawiera %d wpisy:\n"
-msgstr[2] ""
-"\n"
-"Sekcja relokacji [%2zu] \"%s\" dla sekcji [%2u] \"%s\" pod offsetem "
-"%#0<PRIx64> zawiera %d wpisów:\n"
-
-#: src/readelf.c:1803 src/readelf.c:1993
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Sekcja relokacji [%2u] \"%s\" pod offsetem %#0<PRIx64> zawiera %d wpis:\n"
-msgstr[1] ""
-"\n"
-"Sekcja relokacji [%2u] \"%s\" pod offsetem %#0<PRIx64> zawiera %d wpisy:\n"
-msgstr[2] ""
-"\n"
-"Sekcja relokacji [%2u] \"%s\" pod offsetem %#0<PRIx64> zawiera %d wpisów:\n"
-
-#: src/readelf.c:1813
-msgid " Offset Type Value Name\n"
-msgstr " Offset Typ Wartość Nazwa\n"
-
-#: src/readelf.c:1815
-msgid " Offset Type Value Name\n"
-msgstr " Offset Typ Wartość Nazwa\n"
-
-#: src/readelf.c:1868 src/readelf.c:1879 src/readelf.c:1892 src/readelf.c:1913
-#: src/readelf.c:1925 src/readelf.c:2059 src/readelf.c:2071 src/readelf.c:2085
-#: src/readelf.c:2107 src/readelf.c:2120
-msgid "<INVALID RELOC>"
-msgstr "<NIEPRAWIDŁOWA RELOKACJA>"
-
-#: src/readelf.c:2003
-msgid " Offset Type Value Addend Name\n"
-msgstr " Offset Typ Wartość Koniec Nazwa\n"
-
-#: src/readelf.c:2005
-msgid " Offset Type Value Addend Name\n"
-msgstr ""
-" Offset Typ Wartość Koniec Nazwa\n"
-
-#: src/readelf.c:2216
-#, c-format
-msgid ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entry:\n"
-msgid_plural ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entries:\n"
-msgstr[0] ""
-"\n"
-"Tabela symboli [%2u] \"%s\" zawiera %u wpis:\n"
-msgstr[1] ""
-"\n"
-"Tabela symboli [%2u] \"%s\" zawiera %u wpisy:\n"
-msgstr[2] ""
-"\n"
-"Tabela symboli [%2u] \"%s\" zawiera %u wpisów:\n"
-
-#: src/readelf.c:2221
-#, c-format
-msgid " %lu local symbol String table: [%2u] '%s'\n"
-msgid_plural " %lu local symbols String table: [%2u] '%s'\n"
-msgstr[0] " %lu symbol lokalny Tabela ciągów: [%2u] \"%s\"\n"
-msgstr[1] " %lu symbole lokalne Tabela ciągów: [%2u] \"%s\"\n"
-msgstr[2] " %lu symboli lokalnych Tabela ciągów: [%2u] \"%s\"\n"
-
-#: src/readelf.c:2229
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " Numer: Wartość Rozm Typ Bind Widoczność Ndx Nazwa\n"
-
-#: src/readelf.c:2231
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " Numer: Wartość Rozm Typ Bind Widoczność Ndx Nazwa\n"
-
-#: src/readelf.c:2251
-#, c-format
-msgid "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-msgstr "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-
-#: src/readelf.c:2339
-#, c-format
-msgid "bad dynamic symbol"
-msgstr "błędny symbol dynamiczny"
-
-#: src/readelf.c:2421
-msgid "none"
-msgstr "brak"
-
-#: src/readelf.c:2438
-msgid "| <unknown>"
-msgstr "| <nieznany>"
-
-#: src/readelf.c:2469
-#, c-format
-msgid ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Sekcja wymaganych wersji [%2u] \"%s\" zawiera %d wpis:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-msgstr[1] ""
-"\n"
-"Sekcja wymaganych wersji [%2u] \"%s\" zawiera %d wpisy:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-msgstr[2] ""
-"\n"
-"Sekcja wymaganych wersji [%2u] \"%s\" zawiera %d wpisów:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-
-#: src/readelf.c:2490
-#, c-format
-msgid " %#06x: Version: %hu File: %s Cnt: %hu\n"
-msgstr " %#06x: Wersja: %hu Plik: %s Licznik: %hu\n"
-
-#: src/readelf.c:2503
-#, c-format
-msgid " %#06x: Name: %s Flags: %s Version: %hu\n"
-msgstr " %#06x: Nazwa: %s Flagi: %s Wersja: %hu\n"
-
-#: src/readelf.c:2546
-#, c-format
-msgid ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Sekcja definicji wersji [%2u] \"%s\" zawiera %d wpis:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-msgstr[1] ""
-"\n"
-"Sekcja definicji wersji [%2u] \"%s\" zawiera %d wpisy:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-msgstr[2] ""
-"\n"
-"Sekcja definicji wersji [%2u] \"%s\" zawiera %d wpisów:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-
-#: src/readelf.c:2574
-#, c-format
-msgid " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-msgstr ""
-" %#06x: Wersja: %hd Flagi: %s Indeks: %hd Licznik: %hd Nazwa: %s\n"
-
-#: src/readelf.c:2589
-#, c-format
-msgid " %#06x: Parent %d: %s\n"
-msgstr " %#06x: Rodzic %d: %s\n"
-
-#: src/readelf.c:2850
-#, c-format
-msgid ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgid_plural ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgstr[0] ""
-"\n"
-"Sekcja symboli wersji [%2u] \"%s\" zawiera %d wpis:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\""
-msgstr[1] ""
-"\n"
-"Sekcja symboli wersji [%2u] \"%s\" zawiera %d wpisy:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\""
-msgstr[2] ""
-"\n"
-"Sekcja symboli wersji [%2u] \"%s\" zawiera %d wpisów:\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\""
-
-#: src/readelf.c:2878
-msgid " 0 *local* "
-msgstr " 0 *lokalny* "
-
-#: src/readelf.c:2883
-msgid " 1 *global* "
-msgstr " 1 *globalny* "
-
-#: src/readelf.c:2925
-#, c-format
-msgid ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Histogram dla długości listy kubełków w sekcji [%2u] \"%s\" (w sumie %d "
-"kubełek):\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-msgstr[1] ""
-"\n"
-"Histogram dla długości listy kubełków w sekcji [%2u] \"%s\" (w sumie %d "
-"kubełki):\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-msgstr[2] ""
-"\n"
-"Histogram dla długości listy kubełków w sekcji [%2u] \"%s\" (w sumie %d "
-"kubełków):\n"
-" Adres: %#0*<PRIx64> Offset: %#08<PRIx64> Dowiązanie do sekcji: [%2u] \"%s"
-"\"\n"
-
-#: src/readelf.c:2947
-#, no-c-format
-msgid " Length Number % of total Coverage\n"
-msgstr " Długość Liczba % całości Pokrycie\n"
-
-#: src/readelf.c:2949
-#, c-format
-msgid " 0 %6<PRIu32> %5.1f%%\n"
-msgstr " 0 %6<PRIu32> %5.1f%%\n"
-
-#: src/readelf.c:2956
-#, c-format
-msgid "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-msgstr "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-
-#: src/readelf.c:2969
-#, c-format
-msgid ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-msgstr ""
-" Średnia liczba testów: udane wyszukania: %f\n"
-"\t\t\t nieudane wyszukania: %f\n"
-
-#: src/readelf.c:2987 src/readelf.c:3042 src/readelf.c:3098
-#, c-format
-msgid "cannot get data for section %d: %s"
-msgstr "nie można uzyskać danych dla sekcji %d: %s"
-
-#: src/readelf.c:2995
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash section %d"
-msgstr "nieprawidłowe dane w sekcji [%zu] \"%s\""
-
-#: src/readelf.c:3050
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash64 section %d"
-msgstr "nieprawidłowe dane w sekcji [%zu] \"%s\""
-
-#: src/readelf.c:3106
-#, fuzzy, c-format
-msgid "invalid data in gnu.hash section %d"
-msgstr "nieprawidłowe dane w sekcji [%zu] \"%s\""
-
-#: src/readelf.c:3173
-#, c-format
-msgid ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-msgstr ""
-" Przesunięcie symboli: %u\n"
-" Rozmiar maski bitowej: %zu bajtów %<PRIuFAST32>%% bitów ustawionych "
-"drugie przesunięcie skrótu: %u\n"
-
-#: src/readelf.c:3248
-#, c-format
-msgid ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Sekcja listy bibliotek [%2zu] \"%s\" pod offsetem %#0<PRIx64> zawiera %d "
-"wpis:\n"
-msgstr[1] ""
-"\n"
-"Sekcja listy bibliotek [%2zu] \"%s\" pod offsetem %#0<PRIx64> zawiera %d "
-"wpisy:\n"
-msgstr[2] ""
-"\n"
-"Sekcja listy bibliotek [%2zu] \"%s\" pod offsetem %#0<PRIx64> zawiera %d "
-"wpisów:\n"
-
-#: src/readelf.c:3262
-msgid ""
-" Library Time Stamp Checksum Version "
-"Flags"
-msgstr ""
-" Biblioteka Oznaczenie czasu Suma k. Wersja "
-"Flagi"
-
-#: src/readelf.c:3312
-#, c-format
-msgid ""
-"\n"
-"Object attributes section [%2zu] '%s' of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sekcja atrybutów obiektu [%2zu] \"%s\" %<PRIu64> bajtów pod offsetem "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:3329
-msgid " Owner Size\n"
-msgstr " Właściciel Rozmiar\n"
-
-#: src/readelf.c:3358
-#, c-format
-msgid " %-13s %4<PRIu32>\n"
-msgstr " %-13s %4<PRIu32>\n"
-
-#: src/readelf.c:3397
-#, c-format
-msgid " %-4u %12<PRIu32>\n"
-msgstr " %-4u %12<PRIu32>\n"
-
-#: src/readelf.c:3402
-#, c-format
-msgid " File: %11<PRIu32>\n"
-msgstr " Plik: %11<PRIu32>\n"
-
-#: src/readelf.c:3451
-#, c-format
-msgid " %s: %<PRId64>, %s\n"
-msgstr " %s: %<PRId64>, %s\n"
-
-#: src/readelf.c:3454
-#, c-format
-msgid " %s: %<PRId64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:3457
-#, c-format
-msgid " %s: %s\n"
-msgstr " %s: %s\n"
-
-#: src/readelf.c:3467
-#, c-format
-msgid " %u: %<PRId64>\n"
-msgstr " %u: %<PRId64>\n"
-
-#: src/readelf.c:3470
-#, c-format
-msgid " %u: %s\n"
-msgstr " %u: %s\n"
-
-#: src/readelf.c:3515
-#, c-format
-msgid "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3518
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3523
-#, c-format
-msgid "%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3526
-#, c-format
-msgid "%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3532
-#, c-format
-msgid "%s+%#<PRIx64> <%s>"
-msgstr "%s+%#<PRIx64> <%s>"
-
-#: src/readelf.c:3535
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s>"
-msgstr "%s+%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3539
-#, c-format
-msgid "%#<PRIx64> <%s>"
-msgstr "%#<PRIx64> <%s>"
-
-#: src/readelf.c:3542
-#, c-format
-msgid "%#0*<PRIx64> <%s>"
-msgstr "%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3547
-#, c-format
-msgid "%s+%#<PRIx64>"
-msgstr "%s+%#<PRIx64>"
-
-#: src/readelf.c:3550
-#, c-format
-msgid "%s+%#0*<PRIx64>"
-msgstr "%s+%#0*<PRIx64>"
-
-#: src/readelf.c:3932
-msgid "empty block"
-msgstr "pusty blok"
-
-#: src/readelf.c:3935
-#, c-format
-msgid "%zu byte block:"
-msgstr "%zu bajtowy blok:"
-
-#: src/readelf.c:4332
-#, c-format
-msgid "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-msgstr "%*s[%4<PRIuMAX>] %s <SKRÓCONE>\n"
-
-#: src/readelf.c:4389
-#, c-format
-msgid "%s %#<PRIx64> used with different address sizes"
-msgstr "%s %#<PRIx64> zostało użyte z różnymi rozmiarami adresu"
-
-#: src/readelf.c:4396
-#, c-format
-msgid "%s %#<PRIx64> used with different offset sizes"
-msgstr "%s %#<PRIx64> zostało użyte z różnymi rozmiarami offsetu"
-
-#: src/readelf.c:4403
-#, fuzzy, c-format
-msgid "%s %#<PRIx64> used with different base addresses"
-msgstr "%s %#<PRIx64> zostało użyte z różnymi rozmiarami adresu"
-
-#: src/readelf.c:4492
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-msgstr " [%6tx] <NIEUŻYWANE ŚMIECIE W RESZCIE SEKCJI>\n"
-
-#: src/readelf.c:4500
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-msgstr " [%6tx] <NIEUŻYWANE ŚMIECIE>... %<PRIu64> bajtów...\n"
-
-#: src/readelf.c:4526
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [ Code]\n"
-msgstr ""
-"\n"
-"Sekcja DWARF [%2zu] \"%s\" pod offsetem %#<PRIx64>:\n"
-" [ Kod]\n"
-
-#: src/readelf.c:4534
-#, c-format
-msgid ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-msgstr ""
-"\n"
-"Sekcja skrótów pod offsetem %<PRIu64>:\n"
-
-#: src/readelf.c:4547
-#, c-format
-msgid " *** error while reading abbreviation: %s\n"
-msgstr " *** błąd podczas odczytywania skrótu: %s\n"
-
-#: src/readelf.c:4563
-#, c-format
-msgid " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-msgstr " [%5u] offset: %<PRId64>, potomek: %s, znacznik: %s\n"
-
-#: src/readelf.c:4566
-msgid "yes"
-msgstr "tak"
-
-#: src/readelf.c:4566
-msgid "no"
-msgstr "nie"
-
-#: src/readelf.c:4600 src/readelf.c:4673
-#, c-format
-msgid "cannot get .debug_aranges content: %s"
-msgstr "nie można uzyskać zawartości .debug_aranges: %s"
-
-#: src/readelf.c:4615
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Sekcja DWARF [%2zu] \"%s\" pod offsetem %#<PRIx64> zawiera %zu wpis:\n"
-msgstr[1] ""
-"\n"
-"Sekcja DWARF [%2zu] \"%s\" pod offsetem %#<PRIx64> zawiera %zu wpisy:\n"
-msgstr[2] ""
-"\n"
-"Sekcja DWARF [%2zu] \"%s\" pod offsetem %#<PRIx64> zawiera %zu wpisów:\n"
-
-#: src/readelf.c:4646
-#, c-format
-msgid " [%*zu] ???\n"
-msgstr " [%*zu] ???\n"
-
-#: src/readelf.c:4648
-#, c-format
-msgid ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-msgstr ""
-" [%*zu] początek: %0#*<PRIx64>, długość: %5<PRIu64>, offset CU DIE: "
-"%6<PRId64>\n"
-
-#: src/readelf.c:4678 src/readelf.c:4832 src/readelf.c:5408 src/readelf.c:6362
-#: src/readelf.c:6894 src/readelf.c:7014 src/readelf.c:7177 src/readelf.c:7602
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sekcja DWARF [%2zu] \"%s\" pod offsetem %#<PRIx64>:\n"
-
-#: src/readelf.c:4691 src/readelf.c:6388
-#, c-format
-msgid ""
-"\n"
-"Table at offset %Zu:\n"
-msgstr ""
-"\n"
-"Tabela pod offsetem %Zu:\n"
-
-#: src/readelf.c:4695 src/readelf.c:5432 src/readelf.c:6399
-#, c-format
-msgid "invalid data in section [%zu] '%s'"
-msgstr "nieprawidłowe dane w sekcji [%zu] \"%s\""
-
-#: src/readelf.c:4711
-#, fuzzy, c-format
-msgid ""
-"\n"
-" Length: %6<PRIu64>\n"
-msgstr " Długość offsetu: %<PRIu8>\n"
-
-#: src/readelf.c:4723
-#, fuzzy, c-format
-msgid " DWARF version: %6<PRIuFAST16>\n"
-msgstr " Wersja: %<PRIu16>\n"
-
-#: src/readelf.c:4727
-#, c-format
-msgid "unsupported aranges version"
-msgstr ""
-
-#: src/readelf.c:4738
-#, fuzzy, c-format
-msgid " CU offset: %6<PRIx64>\n"
-msgstr " offset CU: %#<PRIx32>\n"
-
-#: src/readelf.c:4744
-#, fuzzy, c-format
-msgid " Address size: %6<PRIu64>\n"
-msgstr " offset adresu: %#<PRIx32>\n"
-
-#: src/readelf.c:4748
-#, fuzzy, c-format
-msgid "unsupported address size"
-msgstr "brak wartości adresu"
-
-#: src/readelf.c:4753
-#, fuzzy, c-format
-msgid ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-msgstr " ustawienie pliku na %<PRIu64>\n"
-
-#: src/readelf.c:4757
-#, c-format
-msgid "unsupported segment size"
-msgstr ""
-
-#: src/readelf.c:4797
-#, fuzzy, c-format
-msgid " %s..%s (%<PRIx64>)\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:4800
-#, fuzzy, c-format
-msgid " %s..%s\n"
-msgstr " [%6tx] %s...%s\n"
-
-#: src/readelf.c:4809
-#, c-format
-msgid " %Zu padding bytes\n"
-msgstr ""
-
-#: src/readelf.c:4827
-#, c-format
-msgid "cannot get .debug_ranges content: %s"
-msgstr "nie można uzyskać zawartości .debug_ranges: %s"
-
-#: src/readelf.c:4857 src/readelf.c:6921
-#, c-format
-msgid " [%6tx] <INVALID DATA>\n"
-msgstr " [%6tx] <NIEPRAWIDŁOWE DANE>\n"
-
-#: src/readelf.c:4879 src/readelf.c:6943
-#, c-format
-msgid " [%6tx] base address %s\n"
-msgstr " [%6tx] adres podstawowy %s\n"
-
-#: src/readelf.c:4886 src/readelf.c:6950
-#, c-format
-msgid " [%6tx] empty list\n"
-msgstr " [%6tx] pusta lista\n"
-
-#: src/readelf.c:4897
-#, c-format
-msgid " [%6tx] %s..%s\n"
-msgstr " [%6tx] %s...%s\n"
-
-#: src/readelf.c:4899
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s...%s\n"
-
-#: src/readelf.c:5078
-#, fuzzy
-msgid " <INVALID DATA>\n"
-msgstr " <NIEPRAWIDŁOWE DANE>\n"
-
-#: src/readelf.c:5387
-#, fuzzy, c-format
-msgid "cannot get ELF: %s"
-msgstr "nie można uzyskać nagłówka ELF: %s"
-
-#: src/readelf.c:5404
-#, c-format
-msgid ""
-"\n"
-"Call frame information section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sekcja informacji o ramce wywołania [%2zu] \"%s\" pod offsetem %#0<PRIx64>:\n"
-
-#: src/readelf.c:5454
-#, c-format
-msgid ""
-"\n"
-" [%6tx] Zero terminator\n"
-msgstr ""
-"\n"
-" [%6tx] Zerowy koniec\n"
-
-#: src/readelf.c:5547 src/readelf.c:5702
-#, c-format
-msgid "invalid augmentation length"
-msgstr "nieprawidłowa długość powiększenia"
-
-#: src/readelf.c:5562
-msgid "FDE address encoding: "
-msgstr "Kodowanie adresu FDE: "
-
-#: src/readelf.c:5568
-msgid "LSDA pointer encoding: "
-msgstr "Kodowanie wskaźnika LSDA: "
-
-#: src/readelf.c:5679
-#, c-format
-msgid " (offset: %#<PRIx64>)"
-msgstr " (offset: %#<PRIx64>)"
-
-#: src/readelf.c:5686
-#, c-format
-msgid " (end offset: %#<PRIx64>)"
-msgstr " (kończący offset: %#<PRIx64>)"
-
-#: src/readelf.c:5723
-#, c-format
-msgid " %-26sLSDA pointer: %#<PRIx64>\n"
-msgstr " %-26sWskaźnik LSDA: %#<PRIx64>\n"
-
-#: src/readelf.c:5778
-#, c-format
-msgid "cannot get attribute code: %s"
-msgstr "nie można uzyskać kodu atrybutu: %s"
-
-#: src/readelf.c:5787
-#, c-format
-msgid "cannot get attribute form: %s"
-msgstr "nie można uzyskać formy atrybutu: %s"
-
-#: src/readelf.c:5802
-#, c-format
-msgid "cannot get attribute value: %s"
-msgstr "nie można uzyskać wartości atrybutu: %s"
-
-#: src/readelf.c:6101
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [Offset]\n"
-msgstr ""
-"\n"
-"Sekcja DWARF [%2zu] \"%s\" pod offsetem %#<PRIx64>:\n"
-" [Offset]\n"
-
-#: src/readelf.c:6133
-#, c-format
-msgid ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-msgstr ""
-" Jednostka typu pod offsetem %<PRIu64>:\n"
-" Wersja: %<PRIu16>, offset sekcji skrótów: %<PRIu64>, rozmiar adresu: "
-"%<PRIu8>, rozmiar offsetu: %<PRIu8>\n"
-" Podpis typu: %#<PRIx64>, offset typu: %#<PRIx64>\n"
-
-#: src/readelf.c:6142
-#, c-format
-msgid ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-msgstr ""
-" Jednostka kompilacji pod offsetem %<PRIu64>:\n"
-" Wersja: %<PRIu16>, offset sekcji skrótów: %<PRIu64>, rozmiar adresu: "
-"%<PRIu8>, rozmiar offsetu: %<PRIu8>\n"
-
-#: src/readelf.c:6167
-#, c-format
-msgid "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-msgstr "nie można uzyskać DIE pod offsetem %<PRIu64> w sekcji \"%s\": %s"
-
-#: src/readelf.c:6181
-#, c-format
-msgid "cannot get DIE offset: %s"
-msgstr "nie można uzyskać offsetu DIE: %s"
-
-#: src/readelf.c:6190
-#, c-format
-msgid "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-"nie można uzyskać znacznika DIE pod offsetem %<PRIu64> w sekcji \"%s\": %s"
-
-#: src/readelf.c:6222
-#, c-format
-msgid "cannot get next DIE: %s\n"
-msgstr "nie można uzyskać następnego DIE: %s\n"
-
-#: src/readelf.c:6230
-#, c-format
-msgid "cannot get next DIE: %s"
-msgstr "nie można uzyskać następnego DIE: %s"
-
-#: src/readelf.c:6266
-#, fuzzy, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"\n"
-"Sekcja DWARF [%2zu] \"%s\" pod offsetem %#<PRIx64>:\n"
-
-#: src/readelf.c:6375
-#, c-format
-msgid "cannot get line data section data: %s"
-msgstr "nie można uzyskać danych sekcji danych wiersza: %s"
-
-#: src/readelf.c:6445
-#, c-format
-msgid ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-msgstr ""
-"\n"
-" Długość: %<PRIu64>\n"
-" Wersja DWARF: %<PRIuFAST16>\n"
-" Długość prologu: %<PRIu64>\n"
-" Minimalna długość instrukcji: %<PRIuFAST8>\n"
-" Maksymalna liczba działań na instrukcję: %<PRIuFAST8>\n"
-" Początkowa wartość \"%s\": %<PRIuFAST8>\n"
-" Początek wiersza: %<PRIdFAST8>\n"
-" Przedział wiersza: %<PRIuFAST8>\n"
-" Początek instrukcji: %<PRIuFAST8>\n"
-"\n"
-"Instrukcje:\n"
-
-#: src/readelf.c:6466
-#, c-format
-msgid "invalid data at offset %tu in section [%zu] '%s'"
-msgstr "nieprawidłowe dane pod offsetem %tu w sekcji [%zu] \"%s\""
-
-#: src/readelf.c:6481
-#, c-format
-msgid " [%*<PRIuFAST8>] %hhu argument\n"
-msgid_plural " [%*<PRIuFAST8>] %hhu arguments\n"
-msgstr[0] " [%*<PRIuFAST8>] %hhu parametr\n"
-msgstr[1] " [%*<PRIuFAST8>] %hhu parametry\n"
-msgstr[2] " [%*<PRIuFAST8>] %hhu parametrów\n"
-
-#: src/readelf.c:6489
-msgid ""
-"\n"
-"Directory table:"
-msgstr ""
-"\n"
-"Tabela katalogu:"
-
-#: src/readelf.c:6505
-msgid ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-msgstr ""
-"\n"
-"Tabela nazw plików:\n"
-" Wpis Kat Czas Rozmiar Nazwa"
-
-#: src/readelf.c:6540
-msgid ""
-"\n"
-"Line number statements:"
-msgstr ""
-"\n"
-"Instrukcje numerów wierszy:"
-
-#: src/readelf.c:6591
-#, fuzzy, c-format
-msgid "invalid maximum operations per instruction is zero"
-msgstr "nieprawidłowa minimalna długość dopasowanego rozmiaru ciągu"
-
-#: src/readelf.c:6627
-#, c-format
-msgid " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-msgstr ""
-" instrukcja specjalna %u: adres+%u = %s, op_index = %u, wiersz%+d = %zu\n"
-
-#: src/readelf.c:6632
-#, c-format
-msgid " special opcode %u: address+%u = %s, line%+d = %zu\n"
-msgstr " instrukcja specjalna %u: adres+%u = %s, wiersz%+d = %zu\n"
-
-#: src/readelf.c:6652
-#, c-format
-msgid " extended opcode %u: "
-msgstr " instrukcja rozszerzona %u: "
-
-#: src/readelf.c:6657
-msgid " end of sequence"
-msgstr " koniec sekwencji"
-
-#: src/readelf.c:6676
-#, c-format
-msgid " set address to %s\n"
-msgstr " ustawienie adresu na %s\n"
-
-#: src/readelf.c:6703
-#, c-format
-msgid " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-msgstr ""
-" definicja nowego pliku: dir=%u, mtime=%<PRIu64>, długość=%<PRIu64>, nazwa="
-"%s\n"
-
-#: src/readelf.c:6716
-#, c-format
-msgid " set discriminator to %u\n"
-msgstr " ustawienie dyskryminatora na %u\n"
-
-#: src/readelf.c:6721
-msgid " unknown opcode"
-msgstr " nieznana instrukcja"
-
-#: src/readelf.c:6733
-msgid " copy"
-msgstr " kopiowanie"
-
-#: src/readelf.c:6744
-#, c-format
-msgid " advance address by %u to %s, op_index to %u\n"
-msgstr " zwiększenie adresu o %u do %s, op_index do %u\n"
-
-#: src/readelf.c:6748
-#, c-format
-msgid " advance address by %u to %s\n"
-msgstr " zwiększenie adresu o %u do %s\n"
-
-#: src/readelf.c:6759
-#, c-format
-msgid " advance line by constant %d to %<PRId64>\n"
-msgstr " zwiększenie wiersza o stałą %d do %<PRId64>\n"
-
-#: src/readelf.c:6767
-#, c-format
-msgid " set file to %<PRIu64>\n"
-msgstr " ustawienie pliku na %<PRIu64>\n"
-
-#: src/readelf.c:6777
-#, c-format
-msgid " set column to %<PRIu64>\n"
-msgstr " ustawienie kolumny na %<PRIu64>\n"
-
-#: src/readelf.c:6784
-#, c-format
-msgid " set '%s' to %<PRIuFAST8>\n"
-msgstr " ustawienie \"%s\" na %<PRIuFAST8>\n"
-
-#: src/readelf.c:6790
-msgid " set basic block flag"
-msgstr " ustawienie podstawowej flagi bloku"
-
-#: src/readelf.c:6803
-#, c-format
-msgid " advance address by constant %u to %s, op_index to %u\n"
-msgstr " zwiększenie adresu o stałą %u do %s, op_index do %u\n"
-
-#: src/readelf.c:6807
-#, c-format
-msgid " advance address by constant %u to %s\n"
-msgstr " zwiększenie adresu o stałą %u do %s\n"
-
-#: src/readelf.c:6825
-#, c-format
-msgid " advance address by fixed value %u to %s\n"
-msgstr " zwiększenie adresu o stałą wartość %u do %s\n"
-
-#: src/readelf.c:6834
-msgid " set prologue end flag"
-msgstr " ustawienie flagi końca prologu"
-
-#: src/readelf.c:6839
-msgid " set epilogue begin flag"
-msgstr " ustawienie flagi początku epilogu"
-
-#: src/readelf.c:6848
-#, c-format
-msgid " set isa to %u\n"
-msgstr " ustawienie isa na %u\n"
-
-#: src/readelf.c:6857
-#, c-format
-msgid " unknown opcode with %<PRIu8> parameter:"
-msgid_plural " unknown opcode with %<PRIu8> parameters:"
-msgstr[0] " nieznana instrukcja z %<PRIu8> parametrem:"
-msgstr[1] " nieznana instrukcja z %<PRIu8> parametrami:"
-msgstr[2] " nieznana instrukcja z %<PRIu8> parametrami:"
-
-#: src/readelf.c:6889
-#, c-format
-msgid "cannot get .debug_loc content: %s"
-msgstr "nie można uzyskać zawartości .debug_log: %s"
-
-#: src/readelf.c:6964
-#, c-format
-msgid " [%6tx] %s..%s"
-msgstr " [%6tx] %s...%s"
-
-#: src/readelf.c:6966
-#, c-format
-msgid " %s..%s"
-msgstr " %s...%s"
-
-#: src/readelf.c:6973 src/readelf.c:7858
-msgid " <INVALID DATA>\n"
-msgstr " <NIEPRAWIDŁOWE DANE>\n"
-
-#: src/readelf.c:7025 src/readelf.c:7186
-#, c-format
-msgid "cannot get macro information section data: %s"
-msgstr "nie można uzyskać danych sekcji informacji o makrach: %s"
-
-#: src/readelf.c:7104
-#, c-format
-msgid "%*s*** non-terminated string at end of section"
-msgstr "%*s*** niezakończony ciąg na końcu sekcji"
-
-#: src/readelf.c:7127
-#, fuzzy, c-format
-msgid "%*s*** missing DW_MACINFO_start_file argument at end of section"
-msgstr "%*s*** niezakończony ciąg na końcu sekcji"
-
-#: src/readelf.c:7227
-#, c-format
-msgid " Offset: 0x%<PRIx64>\n"
-msgstr " Offset: 0x%<PRIx64>\n"
-
-#: src/readelf.c:7239
-#, c-format
-msgid " Version: %<PRIu16>\n"
-msgstr " Wersja: %<PRIu16>\n"
-
-#: src/readelf.c:7245 src/readelf.c:7968
-#, c-format
-msgid " unknown version, cannot parse section\n"
-msgstr " nieznana wersja, nie można przetworzyć sekcji\n"
-
-#: src/readelf.c:7252
-#, c-format
-msgid " Flag: 0x%<PRIx8>\n"
-msgstr " Flaga: 0x%<PRIx8>\n"
-
-#: src/readelf.c:7255
-#, c-format
-msgid " Offset length: %<PRIu8>\n"
-msgstr " Długość offsetu: %<PRIu8>\n"
-
-#: src/readelf.c:7263
-#, c-format
-msgid " .debug_line offset: 0x%<PRIx64>\n"
-msgstr " Offset .debug_line: 0x%<PRIx64>\n"
-
-#: src/readelf.c:7276
-#, c-format
-msgid " extension opcode table, %<PRIu8> items:\n"
-msgstr " tablica instrukcji rozszerzenia, %<PRIu8> elementów:\n"
-
-#: src/readelf.c:7283
-#, c-format
-msgid " [%<PRIx8>]"
-msgstr " [%<PRIx8>]"
-
-#: src/readelf.c:7295
-#, c-format
-msgid " %<PRIu8> arguments:"
-msgstr " Parametry %<PRIu8>:"
-
-#: src/readelf.c:7323
-#, c-format
-msgid " no arguments."
-msgstr " brak parametrów."
-
-#: src/readelf.c:7560
-#, c-format
-msgid "vendor opcode not verified?"
-msgstr "instrukcja producenta nie została sprawdzona?"
-
-#: src/readelf.c:7588
-#, c-format
-msgid " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-msgstr " [%5d] offset DIE: %6<PRId64>, offset CU DIE: %6<PRId64>, nazwa: %s\n"
-
-#: src/readelf.c:7629
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" %*s String\n"
-msgstr ""
-"\n"
-"Sekcja DWARF [%2zu] \"%s\" pod offsetem %#<PRIx64>:\n"
-" %*s Ciąg\n"
-
-#: src/readelf.c:7643
-#, c-format
-msgid " *** error while reading strings: %s\n"
-msgstr " *** błąd podczas odczytywania ciągów: %s\n"
-
-#: src/readelf.c:7663
-#, c-format
-msgid ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-msgstr ""
-"\n"
-"Sekcja tabeli wyszukiwania ramki wywołania [%2zu] \".eh_frame_hdr\":\n"
-
-#: src/readelf.c:7765
-#, c-format
-msgid ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-msgstr ""
-"\n"
-"Sekcja tabeli obsługiwania wyjątków [%2zu] \".gcc_except_table\":\n"
-
-#: src/readelf.c:7788
-#, c-format
-msgid " LPStart encoding: %#x "
-msgstr " Kodowanie LPStart: %#x "
-
-#: src/readelf.c:7800
-#, c-format
-msgid " TType encoding: %#x "
-msgstr " Kodowanie TType: %#x "
-
-#: src/readelf.c:7815
-#, c-format
-msgid " Call site encoding: %#x "
-msgstr " Kodowanie strony wywołania: %#x "
-
-#: src/readelf.c:7828
-msgid ""
-"\n"
-" Call site table:"
-msgstr ""
-"\n"
-" Tabela strony wywołania:"
-
-#: src/readelf.c:7842
-#, c-format
-msgid ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-msgstr ""
-" [%4u] Początek strony wywołania: %#<PRIx64>\n"
-" Długość strony wywołania: %<PRIu64>\n"
-" Lądowisko: %#<PRIx64>\n"
-" Działanie: %u\n"
-
-#: src/readelf.c:7909
-#, c-format
-msgid "invalid TType encoding"
-msgstr "nieprawidłowe kodowanie TType"
-
-#: src/readelf.c:7930
-#, c-format
-msgid ""
-"\n"
-"GDB section [%2zu] '%s' at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-msgstr ""
-"\n"
-"Sekcja GDB [%2zu] \"%s\" pod offsetem %#<PRIx64> zawiera %<PRId64> bajtów:\n"
-
-#: src/readelf.c:7959
-#, c-format
-msgid " Version: %<PRId32>\n"
-msgstr " Wersja: %<PRId32>\n"
-
-#: src/readelf.c:7977
-#, c-format
-msgid " CU offset: %#<PRIx32>\n"
-msgstr " offset CU: %#<PRIx32>\n"
-
-#: src/readelf.c:7984
-#, c-format
-msgid " TU offset: %#<PRIx32>\n"
-msgstr " offset TU: %#<PRIx32>\n"
-
-#: src/readelf.c:7991
-#, c-format
-msgid " address offset: %#<PRIx32>\n"
-msgstr " offset adresu: %#<PRIx32>\n"
-
-#: src/readelf.c:7998
-#, c-format
-msgid " symbol offset: %#<PRIx32>\n"
-msgstr " offset symbolu: %#<PRIx32>\n"
-
-#: src/readelf.c:8005
-#, c-format
-msgid " constant offset: %#<PRIx32>\n"
-msgstr " offset stałej: %#<PRIx32>\n"
-
-#: src/readelf.c:8012
-#, c-format
-msgid ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" Lista CU pod offsetem %#<PRIx32> zawiera %zu wpisów:\n"
-
-#: src/readelf.c:8034
-#, c-format
-msgid ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" Lista TU pod offsetem %#<PRIx32> zawiera %zu wpisów:\n"
-
-#: src/readelf.c:8060
-#, c-format
-msgid ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" Lista adresów pod offsetem %#<PRIx32> zawiera %zu wpisów:\n"
-
-#: src/readelf.c:8089
-#, c-format
-msgid ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-msgstr ""
-"\n"
-" Tabela symboli pod offsetem %#<PRIx32> zawiera %zu gniazd:\n"
-
-#: src/readelf.c:8176
-#, c-format
-msgid "cannot get debug context descriptor: %s"
-msgstr "nie można uzyskać deskryptora kontekstu debugowania: %s"
-
-#: src/readelf.c:8336 src/readelf.c:8942 src/readelf.c:9053 src/readelf.c:9111
-#, c-format
-msgid "cannot convert core note data: %s"
-msgstr "nie można przekonwertować danych notatki core: %s"
-
-#: src/readelf.c:8683
-#, c-format
-msgid ""
-"\n"
-"%*s... <repeats %u more times> ..."
-msgstr ""
-"\n"
-"%*s... <powtarza się jeszcze %u razy>..."
-
-#: src/readelf.c:9190
-msgid " Owner Data size Type\n"
-msgstr " Właściciel Rozmiar danych Typ\n"
-
-#: src/readelf.c:9208
-#, c-format
-msgid " %-13.*s %9<PRId32> %s\n"
-msgstr " %-13.*s %9<PRId32> %s\n"
-
-#: src/readelf.c:9258
-#, c-format
-msgid "cannot get content of note section: %s"
-msgstr "nie można uzyskać zawartości sekcji notatki: %s"
-
-#: src/readelf.c:9285
-#, c-format
-msgid ""
-"\n"
-"Note section [%2zu] '%s' of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Segment notatki [%2zu] \"%s\" o długości %<PRIu64> bajtów pod offsetem "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:9308
-#, c-format
-msgid ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Segment notatki o długości %<PRIu64> bajtów pod offsetem %#0<PRIx64>:\n"
-
-#: src/readelf.c:9354
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no data to dump.\n"
-msgstr ""
-"\n"
-"Sekcja [%Zu] \"%s\" nie posiada danych do zrzucenia.\n"
-
-#: src/readelf.c:9360 src/readelf.c:9383
-#, c-format
-msgid "cannot get data for section [%Zu] '%s': %s"
-msgstr "nie można uzyskać danych dla sekcji [%Zu] \"%s\": %s"
-
-#: src/readelf.c:9364
-#, c-format
-msgid ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Segment zrzutu szesnastkowego [%Zu] \"%s\", %<PRIu64> bajtów pod offsetem "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:9377
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no strings to dump.\n"
-msgstr ""
-"\n"
-"Sekcja [%Zu] \"%s\" nie posiada ciągów do zrzucenia.\n"
-
-#: src/readelf.c:9387
-#, c-format
-msgid ""
-"\n"
-"String section [%Zu] '%s' contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Sekcja ciągów [%Zu] \"%s\" zawiera %<PRIu64> bajtów pod offsetem "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:9435
-#, c-format
-msgid ""
-"\n"
-"section [%lu] does not exist"
-msgstr ""
-"\n"
-"sekcja [%lu] nie istnieje"
-
-#: src/readelf.c:9464
-#, c-format
-msgid ""
-"\n"
-"section '%s' does not exist"
-msgstr ""
-"\n"
-"sekcja \"%s\" nie istnieje"
-
-#: src/readelf.c:9521
-#, c-format
-msgid "cannot get symbol index of archive '%s': %s"
-msgstr "nie można uzyskać indeksu symboli archiwum \"%s\": %s"
-
-#: src/readelf.c:9524
-#, c-format
-msgid ""
-"\n"
-"Archive '%s' has no symbol index\n"
-msgstr ""
-"\n"
-"Archiwum \"%s\" nie posiada indeksu symboli\n"
-
-#: src/readelf.c:9528
-#, c-format
-msgid ""
-"\n"
-"Index of archive '%s' has %Zu entries:\n"
-msgstr ""
-"\n"
-"Indeks archiwum \"%s\" posiada %Zu wpisów:\n"
-
-#: src/readelf.c:9546
-#, c-format
-msgid "cannot extract member at offset %Zu in '%s': %s"
-msgstr "nie można wydobyć elementów pod offsetem %Zu w \"%s\": %s"
-
-#: src/readelf.c:9551
-#, c-format
-msgid "Archive member '%s' contains:\n"
-msgstr "Element archiwum \"%s\" zawiera:\n"
-
-#: src/size.c:60
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd' or `sysv'. The default "
-"is `bsd'"
-msgstr ""
-"Używa FORMATU wyjścia. Może to być \"bsd\" lub \"sysv\". Domyślny jest \"bsd"
-"\""
-
-#: src/size.c:62
-msgid "Same as `--format=sysv'"
-msgstr "To samo, co \"--format=sysv\""
-
-#: src/size.c:63
-msgid "Same as `--format=bsd'"
-msgstr "To samo, co \"--format=bsd\""
-
-#: src/size.c:66
-msgid "Same as `--radix=10'"
-msgstr "To samo, co \"--radix=10\""
-
-#: src/size.c:67
-msgid "Same as `--radix=8'"
-msgstr "To samo, co \"--radix=8\""
-
-#: src/size.c:68
-msgid "Same as `--radix=16'"
-msgstr "To samo, co \"--radix=16\""
-
-#: src/size.c:70
-msgid "Similar to `--format=sysv' output but in one line"
-msgstr "Podobne do wyjścia \"--format=sysv\", ale w jednym wierszu"
-
-#: src/size.c:74
-msgid "Print size and permission flags for loadable segments"
-msgstr "Wyświetla rozmiar i flagi uprawnień dla segmentów wczytywalnych"
-
-#: src/size.c:75
-msgid "Display the total sizes (bsd only)"
-msgstr "Wyświetla całkowite rozmiary (tylko bsd)"
-
-#: src/size.c:80
-msgid "List section sizes of FILEs (a.out by default)."
-msgstr "Wyświetla listę rozmiarów sekcji PLIKU (domyślnie a.out)."
-
-#: src/size.c:261
-#, c-format
-msgid "Invalid format: %s"
-msgstr "Nieprawidłowy format: %s"
-
-#: src/size.c:272
-#, c-format
-msgid "Invalid radix: %s"
-msgstr "Nieprawidłowa baza: %s"
-
-#: src/size.c:331
-#, c-format
-msgid "%s: file format not recognized"
-msgstr "%s: nie rozpoznano formatu pliku"
-
-#: src/size.c:437 src/size.c:570
-#, c-format
-msgid " (ex %s)"
-msgstr " (ex %s)"
-
-#: src/size.c:595
-msgid "(TOTALS)\n"
-msgstr "(CAŁKOWITE)\n"
-
-#: src/strings.c:62
-msgid "Output Selection:"
-msgstr "Wybór wyjścia:"
-
-#: src/strings.c:63
-msgid "Scan entire file, not only loaded sections"
-msgstr "Przeszukuje cały plik, nie tylko wczytane sekcje"
-
-#: src/strings.c:65
-msgid "Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-msgstr ""
-"Wyświetlane są tylko zakończone NUL sekwencje o MIN-LEN lub więcej znaków"
-
-#: src/strings.c:66
-msgid ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-msgstr ""
-"Wybór rozmiaru i kolejności znaków: s = 7 bitów, S = 8 bitów, {b,l} = 16 "
-"bitów, {B,L} = 32 bity"
-
-#: src/strings.c:70
-msgid "Print name of the file before each string."
-msgstr "Wyświetla nazwę pliku przed każdym ciągiem."
-
-#: src/strings.c:72
-msgid "Print location of the string in base 8, 10, or 16 respectively."
-msgstr "Wyświetla położenie ciągu z podstawą odpowiednio 8, 10 lub 16."
-
-#: src/strings.c:73
-msgid "Alias for --radix=o"
-msgstr "Alias dla --radix=o"
-
-#: src/strings.c:80
-msgid "Print the strings of printable characters in files."
-msgstr "Wyświetla ciągi znaków drukowalnych w plikach."
-
-#: src/strings.c:267 src/strings.c:302
-#, c-format
-msgid "invalid value '%s' for %s parameter"
-msgstr "nieprawidłowa wartość \"%s\" dla parametru %s"
-
-#: src/strings.c:313
-#, c-format
-msgid "invalid minimum length of matched string size"
-msgstr "nieprawidłowa minimalna długość dopasowanego rozmiaru ciągu"
-
-#: src/strings.c:596
-#, c-format
-msgid "lseek64 failed"
-msgstr "lseek64 nie powiodło się"
-
-#: src/strings.c:613 src/strings.c:677
-#, c-format
-msgid "re-mmap failed"
-msgstr "ponowne mmap nie powiodło się"
-
-#: src/strings.c:650
-#, c-format
-msgid "mprotect failed"
-msgstr "mprotect nie powiodło się"
-
-#: src/strip.c:69
-msgid "Place stripped output into FILE"
-msgstr "Umieszcza okrojone wyjście w PLIKU"
-
-#: src/strip.c:70
-msgid "Extract the removed sections into FILE"
-msgstr "Wydobywa usunięte sekcje do PLIKU"
-
-#: src/strip.c:71
-msgid "Embed name FILE instead of -f argument"
-msgstr "Osadza nazwę PLIKU zamiast parametru -f"
-
-#: src/strip.c:75
-msgid "Remove all debugging symbols"
-msgstr "Usuwa wszystkie symbole debugowania"
-
-#: src/strip.c:79
-msgid "Remove section headers (not recommended)"
-msgstr "Usuwa nagłówki sekcji (niezalecane)"
-
-#: src/strip.c:81
-msgid "Copy modified/access timestamps to the output"
-msgstr "Kopiuje czasy modyfikacji/dostępu do wyjścia"
-
-#: src/strip.c:83
-msgid ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-msgstr ""
-"Rozwiązuje wszystkie proste relokacje między sekcjami debugowania, jeśli "
-"usunięte sekcje zostały umieszczone w pliku debugowania (ma znaczenie tylko "
-"dla plików ET_REL, działanie jest nieodwracalne, wymaga użycia opcji -f)"
-
-#: src/strip.c:85
-msgid "Remove .comment section"
-msgstr "Usuwa sekcję .comment"
-
-#: src/strip.c:88
-msgid "Relax a few rules to handle slightly broken ELF files"
-msgstr "Łagodzi kilka reguł, aby obsłużyć lekko uszkodzone pliki ELF"
-
-#: src/strip.c:93
-msgid "Discard symbols from object files."
-msgstr "Odrzuca symbole z plików obiektów."
-
-#: src/strip.c:181
-#, c-format
-msgid "--reloc-debug-sections used without -f"
-msgstr "Użyto --reloc-debug-sections bez opcji -f"
-
-#: src/strip.c:195
-#, c-format
-msgid "Only one input file allowed together with '-o' and '-f'"
-msgstr "Tylko jeden plik wejściowy jest dozwolony z \"-o\" i \"-f\""
-
-#: src/strip.c:231
-#, c-format
-msgid "-f option specified twice"
-msgstr "Opcję -f podano dwukrotnie"
-
-#: src/strip.c:240
-#, c-format
-msgid "-F option specified twice"
-msgstr "Opcję -F podano dwukrotnie"
-
-#: src/strip.c:249 src/unstrip.c:121
-#, c-format
-msgid "-o option specified twice"
-msgstr "Opcję -o podano dwukrotnie"
-
-#: src/strip.c:273
-#, c-format
-msgid "-R option supports only .comment section"
-msgstr "Opcja -R obsługuje tylko sekcję .comment"
-
-#: src/strip.c:315 src/strip.c:339
-#, c-format
-msgid "cannot stat input file '%s'"
-msgstr "nie można wykonać stat na pliku wejściowym \"%s\""
-
-#: src/strip.c:329
-#, c-format
-msgid "while opening '%s'"
-msgstr "podczas otwierania \"%s\""
-
-#: src/strip.c:367
-#, c-format
-msgid "%s: cannot use -o or -f when stripping archive"
-msgstr "%s: nie można używać -o lub -f podczas okrajania archiwum"
-
-#: src/strip.c:468
-#, c-format
-msgid "cannot open EBL backend"
-msgstr "nie można otworzyć zaplecza EBL"
-
-#: src/strip.c:508
-#, fuzzy, c-format
-msgid "cannot get number of phdrs"
-msgstr "nie można określić liczby nagłówków programu: %s"
-
-#: src/strip.c:523 src/strip.c:547
-#, c-format
-msgid "cannot create new file '%s': %s"
-msgstr "nie można utworzyć nowego pliku \"%s\": %s"
-
-#: src/strip.c:613
-#, c-format
-msgid "illformed file '%s'"
-msgstr "plik \"%s\" posiada błędny format"
-
-#: src/strip.c:935 src/strip.c:1024
-#, c-format
-msgid "while generating output file: %s"
-msgstr "podczas tworzenia pliku wyjściowego: %s"
-
-#: src/strip.c:997 src/strip.c:1962
-#, c-format
-msgid "%s: error while creating ELF header: %s"
-msgstr "%s: błąd podczas tworzenia nagłówka ELF: %s"
-
-#: src/strip.c:1011
-#, c-format
-msgid "while preparing output for '%s'"
-msgstr "podczas przygotowywania wyjścia dla \"%s\""
-
-#: src/strip.c:1062 src/strip.c:1119
-#, c-format
-msgid "while create section header section: %s"
-msgstr "podczas tworzenia sekcji nagłówka sekcji: %s"
-
-#: src/strip.c:1068
-#, c-format
-msgid "cannot allocate section data: %s"
-msgstr "nie można przydzielić danych sekcji: %s"
-
-#: src/strip.c:1128
-#, c-format
-msgid "while create section header string table: %s"
-msgstr "podczas tworzenia tabeli ciągów nagłówka sekcji: %s"
-
-#: src/strip.c:1757
-#, c-format
-msgid "bad relocation"
-msgstr "błędna relokacja"
-
-#: src/strip.c:1874 src/strip.c:1984
-#, c-format
-msgid "while writing '%s': %s"
-msgstr "podczas zapisywania \"%s\": %s"
-
-#: src/strip.c:1885
-#, c-format
-msgid "while creating '%s'"
-msgstr "podczas tworzenia \"%s\""
-
-#: src/strip.c:1907
-#, c-format
-msgid "while computing checksum for debug information"
-msgstr "podczas obliczania sumy kontrolnej dla informacji debugowania"
-
-#: src/strip.c:1970
-#, c-format
-msgid "%s: error while reading the file: %s"
-msgstr "%s: błąd podczas odczytywania pliku: %s"
-
-#: src/strip.c:2009 src/strip.c:2029
-#, c-format
-msgid "while writing '%s'"
-msgstr "podczas zapisywania \"%s\""
-
-#: src/strip.c:2066 src/strip.c:2073
-#, c-format
-msgid "error while finishing '%s': %s"
-msgstr "błąd podczas kończenia \"%s\": %s"
-
-#: src/strip.c:2096 src/strip.c:2153
-#, c-format
-msgid "cannot set access and modification date of '%s'"
-msgstr "nie można ustawić czasu dostępu i modyfikacji \"%s\""
-
-#: src/unstrip.c:70
-msgid "Match MODULE against file names, not module names"
-msgstr "Dopasowuje MODUŁY do nazw plików, a nie nazwy modułów"
-
-#: src/unstrip.c:71
-msgid "Silently skip unfindable files"
-msgstr "Pomija nieodnalezione pliki bez zgłaszania tego"
-
-#: src/unstrip.c:74
-msgid "Place output into FILE"
-msgstr "Umieszcza wyjście w PLIKU"
-
-#: src/unstrip.c:76
-msgid "Create multiple output files under DIRECTORY"
-msgstr "Tworzy wiele plików wyjściowych w KATALOGU"
-
-#: src/unstrip.c:77
-msgid "Use module rather than file names"
-msgstr "Używa nazw modułów zamiast nazw plików"
-
-#: src/unstrip.c:79
-msgid "Create output for modules that have no separate debug information"
-msgstr ""
-"Tworzy wyjście dla modułów nieposiadających oddzielnych informacji "
-"debugowania"
-
-#: src/unstrip.c:82
-msgid "Apply relocations to section contents in ET_REL files"
-msgstr "Zastosowuje relokacje do zawartości sekcji w plikach ET_REL"
-
-#: src/unstrip.c:84
-msgid "Only list module and file names, build IDs"
-msgstr "Wyświetla tylko nazwy modułów i plików, identyfikatory kopii"
-
-#: src/unstrip.c:86
-msgid "Force combining files even if some ELF headers don't seem to match"
-msgstr ""
-
-#: src/unstrip.c:130
-#, c-format
-msgid "-d option specified twice"
-msgstr "opcję -d podano dwukrotnie"
-
-#: src/unstrip.c:165
-#, c-format
-msgid "only one of -o or -d allowed"
-msgstr "dozwolona jest tylko jedna z opcji -o lub -d"
-
-#: src/unstrip.c:174
-#, c-format
-msgid "-n cannot be used with explicit files or -o or -d"
-msgstr "opcja -n nie może być używana z jawnymi plikami albo z opcją -o lub -d"
-
-#: src/unstrip.c:189
-#, c-format
-msgid "output directory '%s'"
-msgstr "katalog wyjściowy \"%s\""
-
-#: src/unstrip.c:198
-#, c-format
-msgid "exactly two file arguments are required"
-msgstr "wymagane są dokładnie dwa parametry plików"
-
-#: src/unstrip.c:204
-#, c-format
-msgid "-m, -a, -R, and -i options not allowed with explicit files"
-msgstr "opcje -m, -a, -R oraz -i nie są dozwolone z jawnymi plikami"
-
-#: src/unstrip.c:217
-#, c-format
-msgid "-o or -d is required when using implicit files"
-msgstr "opcja -o lub -d jest wymagana podczas używania ukrytych plików"
-
-#: src/unstrip.c:253
-#, c-format
-msgid "cannot create ELF header: %s"
-msgstr "nie można utworzyć nagłówka ELF: %s"
-
-#: src/unstrip.c:258
-#, c-format
-msgid "cannot copy ELF header: %s"
-msgstr "nie można skopiować nagłówka ELF: %s"
-
-#: src/unstrip.c:262 src/unstrip.c:1832 src/unstrip.c:1876
-#, fuzzy, c-format
-msgid "cannot get number of program headers: %s"
-msgstr "nie można określić liczby nagłówków programu: %s"
-
-#: src/unstrip.c:267 src/unstrip.c:1836
-#, c-format
-msgid "cannot create program headers: %s"
-msgstr "nie można utworzyć nagłówków programu: %s"
-
-#: src/unstrip.c:273
-#, c-format
-msgid "cannot copy program header: %s"
-msgstr "nie można skopiować nagłówka programu: %s"
-
-#: src/unstrip.c:283
-#, c-format
-msgid "cannot copy section header: %s"
-msgstr "nie można skopiować nagłówka sekcji: %s"
-
-#: src/unstrip.c:286 src/unstrip.c:1513
-#, c-format
-msgid "cannot get section data: %s"
-msgstr "nie można uzyskać danych sekcji: %s"
-
-#: src/unstrip.c:288 src/unstrip.c:1515
-#, c-format
-msgid "cannot copy section data: %s"
-msgstr "nie można skopiować danych sekcji: %s"
-
-#: src/unstrip.c:312
-#, c-format
-msgid "cannot create directory '%s'"
-msgstr "nie można utworzyć katalogu \"%s\""
-
-#: src/unstrip.c:352 src/unstrip.c:769 src/unstrip.c:1547
-#, c-format
-msgid "cannot get symbol table entry: %s"
-msgstr "nie można uzyskać wpisu tabeli symboli: %s"
-
-#: src/unstrip.c:368 src/unstrip.c:586 src/unstrip.c:607 src/unstrip.c:619
-#: src/unstrip.c:1568 src/unstrip.c:1698 src/unstrip.c:1722
-#, c-format
-msgid "cannot update symbol table: %s"
-msgstr "nie można zaktualizować tabeli symboli: %s"
-
-#: src/unstrip.c:378
-#, c-format
-msgid "cannot update section header: %s"
-msgstr "nie można zaktualizować nagłówka sekcji: %s"
-
-#: src/unstrip.c:417 src/unstrip.c:428
-#, c-format
-msgid "cannot update relocation: %s"
-msgstr "nie można zaktualizować relokacji: %s"
-
-#: src/unstrip.c:515
-#, c-format
-msgid "cannot get symbol version: %s"
-msgstr "nie można uzyskać wersji symbolu: %s"
-
-#: src/unstrip.c:527
-#, c-format
-msgid "unexpected section type in [%Zu] with sh_link to symtab"
-msgstr "nieoczekiwany typ sekcji w [%Zu] z sh_link do tabeli symboli"
-
-#: src/unstrip.c:775
-#, c-format
-msgid "invalid string offset in symbol [%Zu]"
-msgstr "nieprawidłowy offset ciągu w symbolu [%Zu]"
-
-#: src/unstrip.c:917 src/unstrip.c:1258
-#, c-format
-msgid "cannot read section [%Zu] name: %s"
-msgstr "nie można odczytać nazwy sekcji [%Zu]: %s"
-
-#: src/unstrip.c:958 src/unstrip.c:977 src/unstrip.c:1010
-#, c-format
-msgid "cannot read '.gnu.prelink_undo' section: %s"
-msgstr "nie można odczytać sekcji \".gnu.prelink_undo\": %s"
-
-#: src/unstrip.c:998
-#, c-format
-msgid "invalid contents in '%s' section"
-msgstr "nieprawidłowa zawartość w sekcji \"%s\""
-
-#: src/unstrip.c:1053 src/unstrip.c:1378
-#, c-format
-msgid "cannot find matching section for [%Zu] '%s'"
-msgstr "nie można odnaleźć pasującej sekcji dla [%Zu] \"%s\""
-
-#: src/unstrip.c:1178 src/unstrip.c:1193 src/unstrip.c:1459
-#, c-format
-msgid "cannot add section name to string table: %s"
-msgstr "nie można nazwy sekcji do tabeli ciągów: %s"
-
-#: src/unstrip.c:1202
-#, c-format
-msgid "cannot update section header string table data: %s"
-msgstr "nie można zaktualizować danych tabeli ciągów nagłówków sekcji: %s"
-
-#: src/unstrip.c:1229 src/unstrip.c:1233
-#, c-format
-msgid "cannot get section header string table section index: %s"
-msgstr "nie można uzyskać indeksu sekcji tabeli ciągów nagłówków sekcji: %s"
-
-#: src/unstrip.c:1237 src/unstrip.c:1241 src/unstrip.c:1474
-#, c-format
-msgid "cannot get section count: %s"
-msgstr "nie można uzyskać licznika sekcji: %s"
-
-#: src/unstrip.c:1244
-#, c-format
-msgid "more sections in stripped file than debug file -- arguments reversed?"
-msgstr ""
-"więcej sekcji w okrojonym pliku niż w pliku debugowania - odwrócono "
-"parametry?"
-
-#: src/unstrip.c:1303 src/unstrip.c:1393
-#, c-format
-msgid "cannot read section header string table: %s"
-msgstr "nie można odczytać tabeli ciągów nagłówków sekcji: %s"
-
-#: src/unstrip.c:1453
-#, c-format
-msgid "cannot add new section: %s"
-msgstr "nie można dodać nowej sekcji: %s"
-
-#: src/unstrip.c:1555
-#, c-format
-msgid "symbol [%Zu] has invalid section index"
-msgstr "symbol [%Zu] posiada nieprawidłowy indeks sekcji"
-
-#: src/unstrip.c:1793
-#, c-format
-msgid "cannot read section data: %s"
-msgstr "nie można odczytać danych sekcji: %s"
-
-#: src/unstrip.c:1814
-#, c-format
-msgid "cannot get ELF header: %s"
-msgstr "nie można uzyskać nagłówka ELF: %s"
-
-#: src/unstrip.c:1846
-#, c-format
-msgid "cannot update program header: %s"
-msgstr "nie można zaktualizować nagłówka programu: %s"
-
-#: src/unstrip.c:1851 src/unstrip.c:1934
-#, c-format
-msgid "cannot write output file: %s"
-msgstr "nie można zapisać pliku wyjściowego: %s"
-
-#: src/unstrip.c:1903
-#, c-format
-msgid "DWARF data not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-"Dane DWARF nie zostały dostosowane do przesunięcia wczesnego konsolidowania; "
-"proszę rozważyć polecenie prelink -u"
-
-#: src/unstrip.c:1906
-#, c-format
-msgid ""
-"DWARF data in '%s' not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-"Dane DWARF w \"%s\" nie zostały dostosowane do przesunięcia wczesnego "
-"konsolidowania; proszę rozważyć polecenie prelink -u"
-
-#: src/unstrip.c:1925 src/unstrip.c:1976 src/unstrip.c:1988 src/unstrip.c:2074
-#, c-format
-msgid "cannot create ELF descriptor: %s"
-msgstr "nie można utworzyć deskryptora ELF: %s"
-
-#: src/unstrip.c:1967
-msgid "WARNING: "
-msgstr ""
-
-#: src/unstrip.c:1969
-msgid ", use --force"
-msgstr ""
-
-#: src/unstrip.c:1992
-msgid "ELF header identification (e_ident) different"
-msgstr ""
-
-#: src/unstrip.c:1995
-msgid "ELF header type (e_type) different"
-msgstr ""
-
-#: src/unstrip.c:1998
-msgid "ELF header machine type (e_machine) different"
-msgstr ""
-
-#: src/unstrip.c:2001
-msgid "stripped program header (e_phnum) smaller than unstripped"
-msgstr ""
-
-#: src/unstrip.c:2031
-#, c-format
-msgid "cannot find stripped file for module '%s': %s"
-msgstr "nie można odnaleźć okrojonego pliku dla modułu \"%s\": %s"
-
-#: src/unstrip.c:2035
-#, c-format
-msgid "cannot open stripped file '%s' for module '%s': %s"
-msgstr "nie można otworzyć okrojonego pliku \"%s\" dla modułu \"%s\": %s"
-
-#: src/unstrip.c:2050
-#, c-format
-msgid "cannot find debug file for module '%s': %s"
-msgstr "nie można odnaleźć pliku debugowania dla modułu \"%s\": %s"
-
-#: src/unstrip.c:2054
-#, c-format
-msgid "cannot open debug file '%s' for module '%s': %s"
-msgstr "nie można otworzyć pliku debugowania \"%s\" dla modułu \"%s\": %s"
-
-#: src/unstrip.c:2067
-#, c-format
-msgid "module '%s' file '%s' is not stripped"
-msgstr "moduł \"%s\" pliku \"%s\" nie został okrojony"
-
-#: src/unstrip.c:2098
-#, c-format
-msgid "cannot cache section addresses for module '%s': %s"
-msgstr ""
-"nie można utworzyć pamięci podręcznej adresów sekcji dla modułu \"%s\": %s"
-
-#: src/unstrip.c:2231
-#, c-format
-msgid "no matching modules found"
-msgstr "nie odnaleziono pasujących modułów"
-
-#: src/unstrip.c:2240
-#, c-format
-msgid "matched more than one module"
-msgstr "pasuje więcej niż jeden moduł"
-
-#: src/unstrip.c:2287
-msgid ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-msgstr ""
-"OKROJONY-PLIK PLIK-DEBUGOWANIA\n"
-"[MODUŁ...]"
-
-#: src/unstrip.c:2288
-msgid ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-msgstr ""
-"Łączy okrojone pliki z oddzielnymi symbolami i informacjami debugowania."
-"\vPierwsza forma umieszcza wynik w PLIKU-DEBUGOWANIA, jeśli nie podano opcji "
-"-o.\n"
-"\n"
-"Parametr MODUŁ podaje wzorce nazw plików dopasowujące moduły do procesów.\n"
-"Za pomocą opcji -f dopasowuje nazwę głównego (okrojonego) pliku (ukośniki "
-"nigdy nie są specjalne), w innym przypadku dopasowują proste nazwy modułów. "
-"Jeśli nie podano parametrów, przetwarza wszystkie odnalezione moduły.\n"
-"\n"
-"Wiele modułów zostaje zapisanych do plików w KATALOGU-WYJŚCIOWYM, tworząc "
-"podkatalogi, jeśli są wymagane. Używając opcji -m te pliki posiadają proste "
-"nazwy modułów, w innym przypadku posiadają nazwy głównego pliku uzupełnione "
-"katalogiem w KATALOGU-WYJŚCIOWYM.\n"
-"\n"
-"Używając opcji -n żadne pliki nie zostają zapisane, a jeden wiersz do "
-"standardowego wyjścia dla każdego modułu:\n"
-"\tPOCZĄTEK+ROZMIAR IDENTYFIKATOR-KOPII PLIK PLIK-DEBUGOWANIA NAZWA-MODUŁU\n"
-"POCZĄTEK i ROZMIAR są liczbami szesnastkowymi podającymi zakres adresów "
-"modułu. IDENTYFIKATOR-KOPII jest liczbą szesnastkową dla bitów "
-"identyfikatora kopii lub \"-\", jeśli identyfikator jest nieznany; liczba "
-"szesnastkowa może być uzupełniona @0xADRES podającym adres, gdzie znajduje "
-"się identyfikator, jeśli jest to wiadome. PLIK jest nazwą pliku "
-"odnalezionego dla modułu lub \"-\", jeśli go nie odnaleziono lub \".\", "
-"jeśli obraz ELF jest dostępny, ale nie z żadnego nazwanego pliku. PLIK-"
-"DEBUGOWANIA jest nazwą oddzielnego pliku debuginfo lub \"-\", jeśli nie "
-"odnaleziono debuginfo lub \".\", jeśli PLIK zawiera informacje debugowania."
-
-#, fuzzy
-#~ msgid "cannot attach to process"
-#~ msgstr "nie można utworzyć drzewa wyszukiwania"
-
-#, fuzzy
-#~ msgid "cannot attach to core"
-#~ msgstr "nie można utworzyć drzewa wyszukiwania"
-
-#~ msgid "'%s' and '%s' do not seem to match"
-#~ msgstr "\"%s\" i \"%s\" nie zgadzają się"
diff --git a/src/po/quot.sed b/src/po/quot.sed
deleted file mode 100644
index 0122c463..00000000
--- a/src/po/quot.sed
+++ /dev/null
@@ -1,6 +0,0 @@
-s/"\([^"]*\)"/“\1”/g
-s/`\([^`']*\)'/‘\1’/g
-s/ '\([^`']*\)' / ‘\1’ /g
-s/ '\([^`']*\)'$/ ‘\1’/g
-s/^'\([^`']*\)' /‘\1’ /g
-s/“”/""/g
diff --git a/src/po/remove-potcdate.sin b/src/po/remove-potcdate.sin
deleted file mode 100644
index 2436c49e..00000000
--- a/src/po/remove-potcdate.sin
+++ /dev/null
@@ -1,19 +0,0 @@
-# Sed script that remove the POT-Creation-Date line in the header entry
-# from a POT file.
-#
-# The distinction between the first and the following occurrences of the
-# pattern is achieved by looking at the hold space.
-/^"POT-Creation-Date: .*"$/{
-x
-# Test if the hold space is empty.
-s/P/P/
-ta
-# Yes it was empty. First occurrence. Remove the line.
-g
-d
-bb
-:a
-# The hold space was nonempty. Following occurrences. Do nothing.
-x
-:b
-}
diff --git a/src/po/stamp-po b/src/po/stamp-po
deleted file mode 100644
index 9788f702..00000000
--- a/src/po/stamp-po
+++ /dev/null
@@ -1 +0,0 @@
-timestamp
diff --git a/src/po/uk.gmo b/src/po/uk.gmo
deleted file mode 100644
index 4ae14cdd..00000000
--- a/src/po/uk.gmo
+++ /dev/null
Binary files differ
diff --git a/src/po/uk.po b/src/po/uk.po
deleted file mode 100644
index 65ee1225..00000000
--- a/src/po/uk.po
+++ /dev/null
@@ -1,6915 +0,0 @@
-# Ukrainian translation of elfutils
-# Copyright (C) 2010 Free Software Foundation, Inc.
-# This file is distributed under the same license as the elfutils package.
-#
-# Yuri Chornoivan <yurchor@ukr.net>, 2010, 2011, 2012, 2013.
-msgid ""
-msgstr ""
-"Project-Id-Version: \n"
-"Report-Msgid-Bugs-To: http://bugzilla.redhat.com/\n"
-"POT-Creation-Date: 2014-12-19 21:45+0100\n"
-"PO-Revision-Date: 2013-10-09 17:50+0300\n"
-"Last-Translator: Yuri Chornoivan <yurchor@ukr.net>\n"
-"Language-Team: Ukrainian <kde-i18n-uk@kde.org>\n"
-"Language: uk\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
-"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
-"X-Generator: Lokalize 1.5\n"
-
-#: lib/xmalloc.c:54 lib/xmalloc.c:68 lib/xmalloc.c:82 src/readelf.c:3182
-#: src/readelf.c:3559 src/readelf.c:8285 src/unstrip.c:2127 src/unstrip.c:2335
-#, c-format
-msgid "memory exhausted"
-msgstr "пам’ять вичерпано"
-
-#: libasm/asm_error.c:65 libdw/dwarf_error.c:58 libdwfl/libdwflP.h:53
-#: libelf/elf_error.c:60
-msgid "no error"
-msgstr "без помилок"
-
-#: libasm/asm_error.c:66 libdw/dwarf_error.c:67 libdwfl/libdwflP.h:55
-#: libelf/elf_error.c:91
-msgid "out of memory"
-msgstr "нестача пам'яті"
-
-#: libasm/asm_error.c:67 src/ldgeneric.c:2677
-#, c-format
-msgid "cannot create output file"
-msgstr "не вдалося створити файл виводу даних"
-
-#: libasm/asm_error.c:68
-msgid "invalid parameter"
-msgstr "некоректний параметр"
-
-#: libasm/asm_error.c:69
-msgid "cannot change mode of output file"
-msgstr "не вдалося змінити права доступу до файла виводу даних"
-
-#: libasm/asm_error.c:70 src/ldgeneric.c:6990
-#, c-format
-msgid "cannot rename output file"
-msgstr "не вдалося перейменувати файл виводу даних"
-
-#: libasm/asm_error.c:71
-msgid "duplicate symbol"
-msgstr "дублювання символів"
-
-#: libasm/asm_error.c:72
-msgid "invalid section type for operation"
-msgstr "некоректний тип розділу для дії"
-
-#: libasm/asm_error.c:73
-msgid "error during output of data"
-msgstr "помилка під час спроби виведення даних"
-
-#: libasm/asm_error.c:74
-msgid "no backend support available"
-msgstr "підтримки серверів не передбачено"
-
-#: libasm/asm_error.c:84 libdw/dwarf_error.c:59 libdwfl/libdwflP.h:54
-#: libelf/elf_error.c:63
-msgid "unknown error"
-msgstr "невідома помилка"
-
-#: libdw/dwarf_error.c:60
-msgid "invalid access"
-msgstr "некоректний доступ"
-
-#: libdw/dwarf_error.c:61
-msgid "no regular file"
-msgstr "не є звичайним файлом"
-
-#: libdw/dwarf_error.c:62
-msgid "I/O error"
-msgstr "помилка вводу/виводу"
-
-#: libdw/dwarf_error.c:63
-msgid "invalid ELF file"
-msgstr "некоректний файл ELF"
-
-#: libdw/dwarf_error.c:64
-msgid "no DWARF information"
-msgstr "немає відомостей DWARF"
-
-#: libdw/dwarf_error.c:65
-msgid "no ELF file"
-msgstr "немає файла ELF"
-
-#: libdw/dwarf_error.c:66
-msgid "cannot get ELF header"
-msgstr "не вдалося отримати заголовок ELF"
-
-#: libdw/dwarf_error.c:68
-msgid "not implemented"
-msgstr "не реалізовано"
-
-#: libdw/dwarf_error.c:69 libelf/elf_error.c:107 libelf/elf_error.c:155
-msgid "invalid command"
-msgstr "некоректна команда"
-
-#: libdw/dwarf_error.c:70
-msgid "invalid version"
-msgstr "некоректна версія"
-
-#: libdw/dwarf_error.c:71
-msgid "invalid file"
-msgstr "некоректний файл"
-
-#: libdw/dwarf_error.c:72
-msgid "no entries found"
-msgstr "запис не знайдено"
-
-#: libdw/dwarf_error.c:73
-msgid "invalid DWARF"
-msgstr "некоректний запис DWARF"
-
-#: libdw/dwarf_error.c:74
-msgid "no string data"
-msgstr "немає рядкових даних"
-
-#: libdw/dwarf_error.c:75
-msgid "no address value"
-msgstr "немає значення адреси"
-
-#: libdw/dwarf_error.c:76
-msgid "no constant value"
-msgstr "немає значення сталої"
-
-#: libdw/dwarf_error.c:77
-msgid "no reference value"
-msgstr "немає значення для порівняння"
-
-#: libdw/dwarf_error.c:78
-msgid "invalid reference value"
-msgstr "некоректне значення для порівняння"
-
-#: libdw/dwarf_error.c:79
-msgid ".debug_line section missing"
-msgstr "немає розділу .debug_line"
-
-#: libdw/dwarf_error.c:80
-msgid "invalid .debug_line section"
-msgstr "некоректний розділ .debug_line"
-
-#: libdw/dwarf_error.c:81
-msgid "debug information too big"
-msgstr "занадто великі відомості для діагностики"
-
-#: libdw/dwarf_error.c:82
-msgid "invalid DWARF version"
-msgstr "некоректна версія DWARF"
-
-#: libdw/dwarf_error.c:83
-msgid "invalid directory index"
-msgstr "некоректний покажчик каталогу"
-
-#: libdw/dwarf_error.c:84 libdwfl/libdwflP.h:74
-msgid "address out of range"
-msgstr "некоректна адреса"
-
-#: libdw/dwarf_error.c:85
-msgid "no location list value"
-msgstr "немає значення списку адрес"
-
-#: libdw/dwarf_error.c:86
-msgid "no block data"
-msgstr "немає блокових даних"
-
-#: libdw/dwarf_error.c:87
-msgid "invalid line index"
-msgstr "некоректний номер рядка"
-
-#: libdw/dwarf_error.c:88
-msgid "invalid address range index"
-msgstr "некоректний індекс діапазону адрес"
-
-#: libdw/dwarf_error.c:89 libdwfl/libdwflP.h:75
-msgid "no matching address range"
-msgstr "не виявлено відповідного діапазону адрес"
-
-#: libdw/dwarf_error.c:90
-msgid "no flag value"
-msgstr "немає значення прапорця"
-
-#: libdw/dwarf_error.c:91 libelf/elf_error.c:232
-msgid "invalid offset"
-msgstr "некоректне значення зміщення"
-
-#: libdw/dwarf_error.c:92
-msgid ".debug_ranges section missing"
-msgstr "немає розділу .debug_ranges"
-
-#: libdw/dwarf_error.c:93
-msgid "invalid CFI section"
-msgstr "некоректний розділ CFI"
-
-#: libdw/dwarf_error.c:94
-msgid "no alternative debug link found"
-msgstr "альтернативного діагностичного посилання не знайдено"
-
-#: libdw/dwarf_error.c:95
-#, fuzzy
-msgid "invalid opcode"
-msgstr "некоректний параметр"
-
-#: libdwfl/argp-std.c:46 src/unstrip.c:2277
-msgid "Input selection options:"
-msgstr "Вибір параметрів виведення даних:"
-
-#: libdwfl/argp-std.c:47
-msgid "Find addresses in FILE"
-msgstr "Знайти адреси у ФАЙЛІ"
-
-#: libdwfl/argp-std.c:49
-msgid "Find addresses from signatures found in COREFILE"
-msgstr "Знайти адреси за сигнатурами з файла COREFILE"
-
-#: libdwfl/argp-std.c:51
-msgid "Find addresses in files mapped into process PID"
-msgstr "Знайти адреси у файлах, відображених на процес з PID"
-
-#: libdwfl/argp-std.c:53
-msgid ""
-"Find addresses in files mapped as read from FILE in Linux /proc/PID/maps "
-"format"
-msgstr ""
-"Знайти адреси у файлах, відображених як read за ФАЙЛОМ у форматі /proc/PID/"
-"maps Linux"
-
-#: libdwfl/argp-std.c:55
-msgid "Find addresses in the running kernel"
-msgstr "Знайти адреси у запущеному ядрі"
-
-#: libdwfl/argp-std.c:57
-msgid "Kernel with all modules"
-msgstr "Ядро з усіма модулями"
-
-#: libdwfl/argp-std.c:59
-msgid "Search path for separate debuginfo files"
-msgstr "Шукати у вказаному каталозі окремі файли debuginfo"
-
-#: libdwfl/argp-std.c:157
-msgid "only one of -e, -p, -k, -K, or --core allowed"
-msgstr ""
-"можна використовувати лише один за параметрів: -e, -p, -k, -K або --core"
-
-#: libdwfl/argp-std.c:230
-msgid "cannot load kernel symbols"
-msgstr "не вдалося завантажити символи ядра"
-
-#: libdwfl/argp-std.c:234
-msgid "cannot find kernel modules"
-msgstr "не вдалося виявити модулі ядра"
-
-#: libdwfl/argp-std.c:251
-msgid "cannot find kernel or modules"
-msgstr "не вдалося виявити ядро або модулі"
-
-#: libdwfl/argp-std.c:290
-#, c-format
-msgid "cannot read ELF core file: %s"
-msgstr "не вдалося прочитати файл core ELF: %s"
-
-#: libdwfl/argp-std.c:311
-msgid "No modules recognized in core file"
-msgstr "Не вдалося виявити модулі у файлі core"
-
-#: libdwfl/libdwflP.h:56
-msgid "See errno"
-msgstr "Див. errno"
-
-#: libdwfl/libdwflP.h:57
-msgid "See elf_errno"
-msgstr "Див. elf_errno"
-
-#: libdwfl/libdwflP.h:58
-msgid "See dwarf_errno"
-msgstr "Див. dwarf_errno"
-
-#: libdwfl/libdwflP.h:59
-msgid "See ebl_errno (XXX missing)"
-msgstr "Див. ebl_errno (не виявлено XXX)"
-
-#: libdwfl/libdwflP.h:60
-msgid "gzip decompression failed"
-msgstr "Помилка під час спроби видобування з gzip"
-
-#: libdwfl/libdwflP.h:61
-msgid "bzip2 decompression failed"
-msgstr "Помилка під час спроби видобування з bzip2"
-
-#: libdwfl/libdwflP.h:62
-msgid "LZMA decompression failed"
-msgstr "Помилка під час спроби видобування з LZMA"
-
-#: libdwfl/libdwflP.h:63
-msgid "no support library found for machine"
-msgstr "у системі не виявлено бібліотеки підтримки"
-
-#: libdwfl/libdwflP.h:64
-msgid "Callbacks missing for ET_REL file"
-msgstr "Немає зворотних викликів для файла ET_REL"
-
-#: libdwfl/libdwflP.h:65
-msgid "Unsupported relocation type"
-msgstr "Непідтримуваний тип пересування"
-
-#: libdwfl/libdwflP.h:66
-msgid "r_offset is bogus"
-msgstr "r_offset є фіктивним"
-
-#: libdwfl/libdwflP.h:67 libelf/elf_error.c:111 libelf/elf_error.c:171
-msgid "offset out of range"
-msgstr "перевищення можливого зміщення"
-
-#: libdwfl/libdwflP.h:68
-msgid "relocation refers to undefined symbol"
-msgstr "пересування посилається на невизначений символ."
-
-#: libdwfl/libdwflP.h:69
-msgid "Callback returned failure"
-msgstr "Зворотним викликом повернуто помилку"
-
-#: libdwfl/libdwflP.h:70
-msgid "No DWARF information found"
-msgstr "Не виявлено відомостей DWARF"
-
-#: libdwfl/libdwflP.h:71
-msgid "No symbol table found"
-msgstr "Не виявлено таблиці символів"
-
-#: libdwfl/libdwflP.h:72
-msgid "No ELF program headers"
-msgstr "Немає заголовків програми ELF"
-
-#: libdwfl/libdwflP.h:73
-msgid "address range overlaps an existing module"
-msgstr "діапазон адрес перекриває існуючий модуль"
-
-#: libdwfl/libdwflP.h:76
-msgid "image truncated"
-msgstr "образ обрізано"
-
-#: libdwfl/libdwflP.h:77
-msgid "ELF file opened"
-msgstr "Відкритий файл ELF"
-
-#: libdwfl/libdwflP.h:78
-msgid "not a valid ELF file"
-msgstr "не є коректним файлом ELF"
-
-#: libdwfl/libdwflP.h:79
-msgid "cannot handle DWARF type description"
-msgstr "не вдалося обробити опис типу DWARF"
-
-#: libdwfl/libdwflP.h:80
-msgid "ELF file does not match build ID"
-msgstr "Файл ELF не відповідає ідентифікатору збирання"
-
-#: libdwfl/libdwflP.h:81
-msgid "corrupt .gnu.prelink_undo section data"
-msgstr "дані розділу «.gnu.prelink_undo» пошкоджено"
-
-#: libdwfl/libdwflP.h:82
-msgid "Internal error due to ebl"
-msgstr ""
-
-#: libdwfl/libdwflP.h:83
-msgid "Missing data in core file"
-msgstr ""
-
-#: libdwfl/libdwflP.h:84
-#, fuzzy
-msgid "Invalid register"
-msgstr "некоректний параметр"
-
-#: libdwfl/libdwflP.h:85
-msgid "Error reading process memory"
-msgstr ""
-
-#: libdwfl/libdwflP.h:86
-msgid "Couldn't find architecture of any ELF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:87
-msgid "Error parsing /proc filesystem"
-msgstr ""
-
-#: libdwfl/libdwflP.h:88
-#, fuzzy
-msgid "Invalid DWARF"
-msgstr "некоректний запис DWARF"
-
-#: libdwfl/libdwflP.h:89
-msgid "Unsupported DWARF"
-msgstr ""
-
-#: libdwfl/libdwflP.h:90
-msgid "Unable to find more threads"
-msgstr ""
-
-#: libdwfl/libdwflP.h:91
-msgid "Dwfl already has attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:92
-msgid "Dwfl has no attached state"
-msgstr ""
-
-#: libdwfl/libdwflP.h:93
-msgid "Unwinding not supported for this architecture"
-msgstr ""
-
-#: libdwfl/libdwflP.h:94
-#, fuzzy
-msgid "Invalid argument"
-msgstr "некоректний параметр"
-
-#: libdwfl/libdwflP.h:95
-#, fuzzy
-msgid "Not an ET_CORE ELF file"
-msgstr "не є коректним файлом ELF"
-
-#: libebl/eblbackendname.c:42
-msgid "No backend"
-msgstr "Немає сервера"
-
-#: libebl/eblcorenotetypename.c:102 libebl/eblobjecttypename.c:57
-#: libebl/eblobjnotetypename.c:73 libebl/eblosabiname.c:77
-#: libebl/eblsectionname.c:89 libebl/eblsectiontypename.c:119
-#: libebl/eblsegmenttypename.c:83
-msgid "<unknown>"
-msgstr "<невідомо>"
-
-#: libebl/ebldynamictagname.c:105
-#, c-format
-msgid "<unknown>: %#<PRIx64>"
-msgstr "<невідомо>: %#<PRIx64>"
-
-#: libebl/eblobjnote.c:55
-#, c-format
-msgid "unknown SDT version %u\n"
-msgstr "невідома версія SDT, %u\n"
-
-#: libebl/eblobjnote.c:73
-#, c-format
-msgid "invalid SDT probe descriptor\n"
-msgstr "некоректний дескриптор зондування SDT\n"
-
-#: libebl/eblobjnote.c:123
-#, c-format
-msgid " PC: "
-msgstr " PC: "
-
-#: libebl/eblobjnote.c:125
-#, c-format
-msgid " Base: "
-msgstr "Основа: "
-
-#: libebl/eblobjnote.c:127
-#, c-format
-msgid " Semaphore: "
-msgstr " Семафор: "
-
-#: libebl/eblobjnote.c:129
-#, c-format
-msgid " Provider: "
-msgstr " Постачальник: "
-
-#: libebl/eblobjnote.c:131
-#, c-format
-msgid " Name: "
-msgstr "Назва: "
-
-#: libebl/eblobjnote.c:133
-#, c-format
-msgid " Args: "
-msgstr " Арг.: "
-
-#: libebl/eblobjnote.c:143
-#, c-format
-msgid " Build ID: "
-msgstr " Ід. збирання: "
-
-#: libebl/eblobjnote.c:154
-#, c-format
-msgid " Linker version: %.*s\n"
-msgstr " Версія компонувальника: %.*s\n"
-
-#: libebl/eblobjnote.c:203
-#, c-format
-msgid " OS: %s, ABI: "
-msgstr " ОС: %s, ABI: "
-
-#: libebl/eblosabiname.c:74
-msgid "Stand alone"
-msgstr "Окремий"
-
-#: libebl/eblsymbolbindingname.c:71 libebl/eblsymboltypename.c:77
-#, c-format
-msgid "<unknown>: %d"
-msgstr "<невідомий>: %d"
-
-#: libelf/elf_error.c:67
-msgid "unknown version"
-msgstr "невідома версія"
-
-#: libelf/elf_error.c:71
-msgid "unknown type"
-msgstr "невизначений тип"
-
-#: libelf/elf_error.c:75
-msgid "invalid `Elf' handle"
-msgstr "некоректний дескриптор «Elf»"
-
-#: libelf/elf_error.c:79
-msgid "invalid size of source operand"
-msgstr "некоректна розмірність вхідного параметра"
-
-#: libelf/elf_error.c:83
-msgid "invalid size of destination operand"
-msgstr "некоректна розмірність вихідного параметра"
-
-#: libelf/elf_error.c:87 src/readelf.c:5367
-#, c-format
-msgid "invalid encoding"
-msgstr "некоректне кодування"
-
-#: libelf/elf_error.c:95
-msgid "invalid file descriptor"
-msgstr "некоректний дескриптор файла"
-
-#: libelf/elf_error.c:99
-msgid "invalid operation"
-msgstr "недійсна дія"
-
-#: libelf/elf_error.c:103
-msgid "ELF version not set"
-msgstr "версію ELF не вказано"
-
-#: libelf/elf_error.c:115
-msgid "invalid fmag field in archive header"
-msgstr "некоректне поле fmag у заголовку архіву"
-
-#: libelf/elf_error.c:119
-msgid "invalid archive file"
-msgstr "некоректний файл архіву"
-
-#: libelf/elf_error.c:123
-msgid "descriptor is not for an archive"
-msgstr "дескриптор не належить архіву"
-
-#: libelf/elf_error.c:127
-msgid "no index available"
-msgstr "такого номера немає"
-
-#: libelf/elf_error.c:131
-msgid "cannot read data from file"
-msgstr "не вдалося прочитати дані з файла"
-
-#: libelf/elf_error.c:135
-msgid "cannot write data to file"
-msgstr "не вдалося записати дані до файла"
-
-#: libelf/elf_error.c:139
-msgid "invalid binary class"
-msgstr "некоректний бінарний клас"
-
-#: libelf/elf_error.c:143
-msgid "invalid section index"
-msgstr "некоректний номер розділу"
-
-#: libelf/elf_error.c:147
-msgid "invalid operand"
-msgstr "некоректний параметр"
-
-#: libelf/elf_error.c:151
-msgid "invalid section"
-msgstr "некоректний розділ"
-
-#: libelf/elf_error.c:159
-msgid "executable header not created first"
-msgstr "заголовок виконуваного файла не було створено першим"
-
-#: libelf/elf_error.c:163
-msgid "file descriptor disabled"
-msgstr "дескриптор файла вимкнено"
-
-#: libelf/elf_error.c:167
-msgid "archive/member file descriptor mismatch"
-msgstr "невідповідність дескрипторів файлів архіву/елемента"
-
-#: libelf/elf_error.c:175
-msgid "cannot manipulate null section"
-msgstr "не можна оперувати нульовим розділом"
-
-#: libelf/elf_error.c:179
-msgid "data/scn mismatch"
-msgstr "невідповідність полів data/scn"
-
-#: libelf/elf_error.c:183
-msgid "invalid section header"
-msgstr "некоректний заголовок розділу"
-
-#: libelf/elf_error.c:187 src/readelf.c:7235 src/readelf.c:7683
-#: src/readelf.c:7784 src/readelf.c:7954
-#, c-format
-msgid "invalid data"
-msgstr "некоректні дані"
-
-#: libelf/elf_error.c:191
-msgid "unknown data encoding"
-msgstr "невідоме кодування даних"
-
-#: libelf/elf_error.c:195
-msgid "section `sh_size' too small for data"
-msgstr "розділ «sh_size» є замалим для даних"
-
-#: libelf/elf_error.c:199
-msgid "invalid section alignment"
-msgstr "некоректне вирівнювання розділу"
-
-#: libelf/elf_error.c:203
-msgid "invalid section entry size"
-msgstr "некоректна розмірність запису розділу"
-
-#: libelf/elf_error.c:207
-msgid "update() for write on read-only file"
-msgstr "update() для запису придатного лише для читання файла"
-
-#: libelf/elf_error.c:211
-msgid "no such file"
-msgstr "такого файла не виявлено"
-
-#: libelf/elf_error.c:215
-msgid "only relocatable files can contain section groups"
-msgstr "містити групи розділів можуть лише придатні до пересування файли"
-
-#: libelf/elf_error.c:220
-msgid ""
-"program header only allowed in executables, shared objects, and core files"
-msgstr ""
-"заголовок програми можна використовувати лише у виконуваних файлах, об’єктах "
-"спільного використання та файлах ядра"
-
-#: libelf/elf_error.c:227
-msgid "file has no program header"
-msgstr "у файлі немає заголовка програми"
-
-#: src/addr2line.c:58
-msgid "Output selection options:"
-msgstr "Параметри вибору виведених даних:"
-
-#: src/addr2line.c:59
-msgid "Show only base names of source files"
-msgstr "Показувати лише базові назви файлів коду програми"
-
-#: src/addr2line.c:61
-msgid "Show absolute file names using compilation directory"
-msgstr "Показувати абсолютні назви файлів з використанням каталогу збирання"
-
-#: src/addr2line.c:62
-msgid "Also show function names"
-msgstr "Показувати також назви функцій"
-
-#: src/addr2line.c:63
-msgid "Also show symbol or section names"
-msgstr "Показувати також назви символів та розділів"
-
-#: src/addr2line.c:64
-#, fuzzy
-msgid "Also show symbol and the section names"
-msgstr "Показувати також назви символів та розділів"
-
-#: src/addr2line.c:65
-msgid "Also show line table flags"
-msgstr "Показувати також прапорці рядків таблиці"
-
-#: src/addr2line.c:67
-msgid "Treat addresses as offsets relative to NAME section."
-msgstr "Вважати адреси зміщеннями відносно розділу НАЗВА."
-
-#: src/addr2line.c:69
-msgid ""
-"Show all source locations that caused inline expansion of subroutines at the "
-"address."
-msgstr ""
-"Показати усі місця у початковому коді, у яких було виявлено вбудоване "
-"розгортання підпрограм за вказаною адресою."
-
-#: src/addr2line.c:72 src/elfcmp.c:72 src/findtextrel.c:67 src/nm.c:100
-#: src/strings.c:75
-msgid "Miscellaneous:"
-msgstr "Інше:"
-
-#: src/addr2line.c:81
-msgid ""
-"Locate source files and line information for ADDRs (in a.out by default)."
-msgstr "Шукати АДРЕСИ у файлах кодів та даних про рядки (типово, у a.out)."
-
-#: src/addr2line.c:85
-msgid "[ADDR...]"
-msgstr "[АДРЕСА...]"
-
-#: src/addr2line.c:196 src/ar.c:289 src/elfcmp.c:663 src/elflint.c:235
-#: src/findtextrel.c:162 src/ld.c:949 src/nm.c:265 src/objdump.c:181
-#: src/ranlib.c:128 src/readelf.c:500 src/size.c:211 src/strings.c:226
-#: src/strip.c:213 src/unstrip.c:233
-#, c-format
-msgid ""
-"Copyright (C) %s Red Hat, Inc.\n"
-"This is free software; see the source for copying conditions. There is NO\n"
-"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
-msgstr ""
-"© Red Hat, Inc., %s\n"
-"Це програмне забезпечення є вільним, умови копіювання викладено у його "
-"початкових кодах. Умовами ліцензування програми НЕ передбачено жодних "
-"гарантій, зокрема гарантій працездатності або придатності для певної мети.\n"
-
-#: src/addr2line.c:201 src/ar.c:294 src/elfcmp.c:668 src/elflint.c:240
-#: src/findtextrel.c:167 src/ld.c:954 src/nm.c:270 src/objdump.c:186
-#: src/ranlib.c:133 src/readelf.c:505 src/size.c:216 src/strings.c:231
-#: src/strip.c:218 src/unstrip.c:238
-#, c-format
-msgid "Written by %s.\n"
-msgstr "Автор — %s.\n"
-
-#: src/addr2line.c:474
-#, c-format
-msgid "Section syntax requires exactly one module"
-msgstr "Синтаксис розділів вимагає точного одного модуля"
-
-#: src/addr2line.c:497
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside section '%s'"
-msgstr "зміщення %#<PRIxMAX> розташовано поза межами розділу «%s»"
-
-#: src/addr2line.c:563
-#, c-format
-msgid "cannot find symbol '%s'"
-msgstr "не вдалося знайти символ «%s»"
-
-#: src/addr2line.c:568
-#, c-format
-msgid "offset %#<PRIxMAX> lies outside contents of '%s'"
-msgstr "зміщення %#<PRIxMAX> розташовано поза межами вмісту «%s»"
-
-#: src/ar.c:69
-msgid "Commands:"
-msgstr "Команди:"
-
-#: src/ar.c:70
-msgid "Delete files from archive."
-msgstr "Вилучити файли з архіву."
-
-#: src/ar.c:71
-msgid "Move files in archive."
-msgstr "Пересунути файли до архіву."
-
-#: src/ar.c:72
-msgid "Print files in archive."
-msgstr "Надрукувати список файлів у архіві."
-
-#: src/ar.c:73
-msgid "Quick append files to archive."
-msgstr "Швидко додати файли до архіву."
-
-#: src/ar.c:75
-msgid "Replace existing or insert new file into archive."
-msgstr "Замінити поточний або вставити новий файл до архіву."
-
-#: src/ar.c:76
-msgid "Display content of archive."
-msgstr "Показати вміст архіву."
-
-#: src/ar.c:77
-msgid "Extract files from archive."
-msgstr "Видобути файли з архіву."
-
-#: src/ar.c:79
-msgid "Command Modifiers:"
-msgstr "Модифікатори команд:"
-
-#: src/ar.c:80
-msgid "Preserve original dates."
-msgstr "Зберігати початкові часові мітки."
-
-#: src/ar.c:81
-msgid "Use instance [COUNT] of name."
-msgstr "Використовувати екземпляр [НОМЕР] назви."
-
-#: src/ar.c:83
-msgid "Do not replace existing files with extracted files."
-msgstr "Не замінювати поточні файли видобутими."
-
-#: src/ar.c:84
-msgid "Allow filename to be truncated if necessary."
-msgstr "Уможливити, за потреби, обрізання назв файлів."
-
-#: src/ar.c:86
-msgid "Provide verbose output."
-msgstr "Докладний вивід даних."
-
-#: src/ar.c:87
-msgid "Force regeneration of symbol table."
-msgstr "Примусове повторне створення таблиці символів."
-
-#: src/ar.c:88
-msgid "Insert file after [MEMBER]."
-msgstr "Вставити файл після [ЕЛЕМЕНТ]."
-
-#: src/ar.c:89
-msgid "Insert file before [MEMBER]."
-msgstr "Вставити файл перед [ЕЛЕМЕНТ]."
-
-#: src/ar.c:90
-msgid "Same as -b."
-msgstr "Те саме, що і -b."
-
-#: src/ar.c:91
-msgid "Suppress message when library has to be created."
-msgstr "Придушити повідомлення, якщо має бути створено бібліотеку."
-
-#: src/ar.c:93
-msgid "Use full path for file matching."
-msgstr "Використовувати для порівняння повний шлях до файла."
-
-#: src/ar.c:94
-msgid "Update only older files in archive."
-msgstr "Оновлювати у архіві лише старіші файли."
-
-#: src/ar.c:100
-msgid "Create, modify, and extract from archives."
-msgstr "Створення, зміна архівів і видобування даних з архівів."
-
-#: src/ar.c:103
-msgid "[MEMBER] [COUNT] ARCHIVE [FILE...]"
-msgstr "[ЕЛЕМЕНТ] [НОМЕР] АРХІВ [ФАЙЛ...]"
-
-#: src/ar.c:185
-#, c-format
-msgid "'a', 'b', and 'i' are only allowed with the 'm' and 'r' options"
-msgstr ""
-"модифікатори «a», «b» і «i» можна використовувати лише разом з параметрами "
-"«m» і «r»"
-
-#: src/ar.c:190
-#, c-format
-msgid "MEMBER parameter required for 'a', 'b', and 'i' modifiers"
-msgstr ""
-"Для модифікаторів «a», «b» та «i» слід використовувати параметр ЕЛЕМЕНТ"
-
-#: src/ar.c:206
-#, c-format
-msgid "'N' is only meaningful with the 'x' and 'd' options"
-msgstr "«N» має значення лише разом з параметрами «x» і «d»"
-
-#: src/ar.c:211
-#, c-format
-msgid "COUNT parameter required"
-msgstr "потрібен параметр НОМЕР"
-
-#: src/ar.c:223
-#, c-format
-msgid "invalid COUNT parameter %s"
-msgstr "некоректний параметр НОМЕР %s"
-
-#: src/ar.c:230
-#, c-format
-msgid "'%c' is only meaningful with the 'x' option"
-msgstr "«%c» має сенс лише у разі використання параметра «x»"
-
-#: src/ar.c:236
-#, c-format
-msgid "archive name required"
-msgstr "слід вказати назву архіву"
-
-#: src/ar.c:249
-#, c-format
-msgid "command option required"
-msgstr "має бути вказано параметр команди"
-
-#: src/ar.c:314
-#, c-format
-msgid "More than one operation specified"
-msgstr "Вказано більше за одну дію"
-
-#: src/ar.c:408
-#, c-format
-msgid "cannot open archive '%s'"
-msgstr "не вдалося відкрити архів «%s»"
-
-#: src/ar.c:418
-#, c-format
-msgid "cannot open archive '%s': %s"
-msgstr "не вдалося відкрити архів «%s»: %s"
-
-#: src/ar.c:422
-#, c-format
-msgid "%s: not an archive file"
-msgstr "%s: не є файлом архіву"
-
-#: src/ar.c:426
-#, c-format
-msgid "cannot stat archive '%s'"
-msgstr "не вдалося отримати дані архіву «%s» за допомогою stat"
-
-#: src/ar.c:438
-#, c-format
-msgid "no entry %s in archive\n"
-msgstr "у архіві немає запису %s\n"
-
-#: src/ar.c:491 src/ar.c:933 src/ar.c:1133
-#, c-format
-msgid "cannot create hash table"
-msgstr "не вдалося створити таблицю хешів"
-
-#: src/ar.c:498 src/ar.c:940 src/ar.c:1142
-#, c-format
-msgid "cannot insert into hash table"
-msgstr "не вдалося вставити запис до таблиці хешів"
-
-#: src/ar.c:506 src/ranlib.c:168
-#, c-format
-msgid "cannot stat '%s'"
-msgstr "не вдалося отримати дані з «%s» за допомогою stat"
-
-#: src/ar.c:602
-#, c-format
-msgid "cannot read content of %s: %s"
-msgstr "не вдалося прочитати вміст з %s: %s"
-
-#: src/ar.c:645
-#, c-format
-msgid "cannot open %.*s"
-msgstr "не вдалося відкрити %.*s"
-
-#: src/ar.c:667
-#, c-format
-msgid "failed to write %s"
-msgstr "не вдалося записати %s"
-
-#: src/ar.c:679
-#, c-format
-msgid "cannot change mode of %s"
-msgstr "не вдалося змінити права доступу до %s"
-
-#: src/ar.c:695
-#, c-format
-msgid "cannot change modification time of %s"
-msgstr "не вдалося змінити часову мітку зміни %s"
-
-#: src/ar.c:741
-#, c-format
-msgid "cannot rename temporary file to %.*s"
-msgstr "не вдалося перейменувати файл тимчасових даних на %.*s"
-
-#: src/ar.c:777 src/ar.c:1025 src/ar.c:1424 src/ranlib.c:242
-#, c-format
-msgid "cannot create new file"
-msgstr "не вдалося створити файл"
-
-#: src/ar.c:1224
-#, c-format
-msgid "position member %s not found"
-msgstr "не виявлено елемента позиції %s"
-
-#: src/ar.c:1234
-#, c-format
-msgid "%s: no entry %s in archive!\n"
-msgstr "%s: у архіві немає запису %s!\n"
-
-#: src/ar.c:1263 src/ldgeneric.c:509 src/objdump.c:257
-#, c-format
-msgid "cannot open %s"
-msgstr "не вдалося відкрити %s"
-
-#: src/ar.c:1268
-#, c-format
-msgid "cannot stat %s"
-msgstr "не вдалося отримати дані %s за допомогою stat"
-
-#: src/ar.c:1274
-#, c-format
-msgid "%s is no regular file"
-msgstr "%s не є звичайним файлом"
-
-#: src/ar.c:1287
-#, c-format
-msgid "cannot get ELF descriptor for %s: %s\n"
-msgstr "не вдалося отримати дескриптор ELF для %s: %s\n"
-
-#: src/ar.c:1307
-#, c-format
-msgid "cannot read %s: %s"
-msgstr "не вдалося прочитати %s: %s"
-
-#: src/arlib.c:209
-#, c-format
-msgid "the archive '%s' is too large"
-msgstr "розмір архіву «%s» є занадто великим"
-
-#: src/arlib.c:222
-#, c-format
-msgid "cannot read ELF header of %s(%s): %s"
-msgstr "не вдалося прочитати заголовок ELF з %s(%s): %s"
-
-#: src/elfcmp.c:62
-msgid "Control options:"
-msgstr "Параметри керування:"
-
-#: src/elfcmp.c:64
-msgid "Output all differences, not just the first"
-msgstr "Показати всі відмінності, не лише першу з них"
-
-#: src/elfcmp.c:65
-msgid ""
-"Control treatment of gaps in loadable segments [ignore|match] (default: "
-"ignore)"
-msgstr ""
-"Керування обробкою проміжків у придатних до завантаження сегментах [ignore|"
-"match] (типово, ignore)"
-
-#: src/elfcmp.c:67
-msgid "Ignore permutation of buckets in SHT_HASH section"
-msgstr "Ігнорувати переставляння блоків у розділі SHT_HASH"
-
-#: src/elfcmp.c:69
-msgid "Ignore differences in build ID"
-msgstr "Ігнорувати відмінності у ідентифікаторі збирання"
-
-#: src/elfcmp.c:70
-msgid "Output nothing; yield exit status only"
-msgstr "Нічого не виводити; визначити лише стан виходу"
-
-#: src/elfcmp.c:77
-msgid "Compare relevant parts of two ELF files for equality."
-msgstr "Порівнює відповідні частини двох файлів ELF."
-
-#: src/elfcmp.c:81
-msgid "FILE1 FILE2"
-msgstr "ФАЙЛ1 ФАЙЛ2"
-
-#: src/elfcmp.c:143
-msgid "Invalid number of parameters.\n"
-msgstr "Некоректна кількість параметрів.\n"
-
-#: src/elfcmp.c:174 src/elfcmp.c:179
-#, c-format
-msgid "cannot get ELF header of '%s': %s"
-msgstr "не вдалося отримати заголовок ELF «%s»: %s"
-
-#: src/elfcmp.c:205
-#, c-format
-msgid "%s %s diff: ELF header"
-msgstr "%s %s diff: заголовок ELF"
-
-#: src/elfcmp.c:212 src/elfcmp.c:215
-#, c-format
-msgid "cannot get section count of '%s': %s"
-msgstr "не вдалося отримати даних щодо кількості розділів «%s»: %s"
-
-#: src/elfcmp.c:220
-#, c-format
-msgid "%s %s diff: section count"
-msgstr "%s %s diff: кількість розділів"
-
-#: src/elfcmp.c:227 src/elfcmp.c:230
-#, c-format
-msgid "cannot get program header count of '%s': %s"
-msgstr ""
-"не вдалося отримати даних щодо кількості заголовків програми у «%s»: %s"
-
-#: src/elfcmp.c:235
-#, c-format
-msgid "%s %s diff: program header count"
-msgstr "%s %s diff: кількість заголовків програми"
-
-#: src/elfcmp.c:292
-#, c-format
-msgid "%s %s differ: section [%zu], [%zu] name"
-msgstr "%s %s diff: розділ [%zu], назва [%zu]"
-
-#: src/elfcmp.c:315
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' header"
-msgstr "%s %s diff: розділ [%zu] заголовок «%s»"
-
-#: src/elfcmp.c:323 src/elfcmp.c:329
-#, c-format
-msgid "cannot get content of section %zu in '%s': %s"
-msgstr "не вдалося отримати вміст розділу %zu у «%s»: %s"
-
-#: src/elfcmp.c:345 src/elfcmp.c:351
-#, c-format
-msgid "cannot get symbol in '%s': %s"
-msgstr "не вдалося отримати символ у «%s»: %s"
-
-#: src/elfcmp.c:373
-#, c-format
-msgid "%s %s differ: symbol table [%zu]"
-msgstr "%s %s diff: таблиця символів [%zu]"
-
-#: src/elfcmp.c:376
-#, c-format
-msgid "%s %s differ: symbol table [%zu,%zu]"
-msgstr "%s %s diff: таблиця символів [%zu,%zu]"
-
-#: src/elfcmp.c:422 src/elfcmp.c:491
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' number of notes"
-msgstr "%s %s diff: розділ [%zu] кількість нотаток «%s»"
-
-#: src/elfcmp.c:430
-#, c-format
-msgid "cannot read note section [%zu] '%s' in '%s': %s"
-msgstr "не вдалося прочитати розділ нотаток [%zu] «%s» у «%s»: %s"
-
-#: src/elfcmp.c:440
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note name"
-msgstr "%s %s diff: розділ [%zu] назва нотатки «%s»"
-
-#: src/elfcmp.c:448
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' type"
-msgstr "%s %s diff: розділ [%zu] нотатка «%s» тип «%s»"
-
-#: src/elfcmp.c:463
-#, c-format
-msgid "%s %s differ: build ID length"
-msgstr "%s %s diff: довжина ідентифікатора збирання"
-
-#: src/elfcmp.c:471
-#, c-format
-msgid "%s %s differ: build ID content"
-msgstr "%s %s diff: вміст ідентифікатора збирання"
-
-#: src/elfcmp.c:480
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' note '%s' content"
-msgstr "%s %s diff: розділ [%zu] нотатка «%s» вміст «%s»"
-
-#: src/elfcmp.c:520
-#, c-format
-msgid "%s %s differ: section [%zu] '%s' content"
-msgstr "%s %s diff: розділ [%zu] «%s», вміст"
-
-#: src/elfcmp.c:524
-#, c-format
-msgid "%s %s differ: section [%zu,%zu] '%s' content"
-msgstr "%s %s diff: розділ [%zu,%zu] «%s», вміст"
-
-#: src/elfcmp.c:539
-#, c-format
-msgid "%s %s differ: unequal amount of important sections"
-msgstr "%s %s diff: невідповідність об’ємів важливих розділів"
-
-#: src/elfcmp.c:572 src/elfcmp.c:577
-#, c-format
-msgid "cannot load data of '%s': %s"
-msgstr "не вдалося завантажити дані «%s»: %s"
-
-#: src/elfcmp.c:596 src/elfcmp.c:602
-#, c-format
-msgid "cannot get program header entry %d of '%s': %s"
-msgstr "не вдалося отримати запис заголовка програми %d «%s»: %s"
-
-#: src/elfcmp.c:608
-#, c-format
-msgid "%s %s differ: program header %d"
-msgstr "%s %s diff: заголовок програми %d"
-
-#: src/elfcmp.c:632
-#, c-format
-msgid "%s %s differ: gap"
-msgstr "%s %s diff: проміжок"
-
-#: src/elfcmp.c:695
-#, c-format
-msgid "Invalid value '%s' for --gaps parameter."
-msgstr "Некоректне значення «%s» параметра --gaps."
-
-#: src/elfcmp.c:723 src/findtextrel.c:221 src/ldgeneric.c:1757
-#: src/ldgeneric.c:4247 src/nm.c:381 src/ranlib.c:161 src/size.c:293
-#: src/strings.c:182 src/strip.c:451 src/strip.c:488 src/unstrip.c:1923
-#: src/unstrip.c:1952
-#, c-format
-msgid "cannot open '%s'"
-msgstr "не вдалося відкрити «%s»"
-
-#: src/elfcmp.c:727 src/findtextrel.c:228 src/ranlib.c:178
-#, c-format
-msgid "cannot create ELF descriptor for '%s': %s"
-msgstr "не вдалося створити дескриптор ELF для «%s»: %s"
-
-#: src/elfcmp.c:732
-#, c-format
-msgid "cannot create EBL descriptor for '%s'"
-msgstr "не вдалося створити дескриптор EBL для «%s»"
-
-#: src/elfcmp.c:750
-#, c-format
-msgid "cannot get section header of section %zu: %s"
-msgstr "не вдалося отримати заголовок розділу %zu: %s"
-
-#: src/elfcmp.c:760
-#, c-format
-msgid "cannot get content of section %zu: %s"
-msgstr "не вдалося отримати вміст розділу %zu: %s"
-
-#: src/elfcmp.c:770 src/elfcmp.c:784
-#, c-format
-msgid "cannot get relocation: %s"
-msgstr "не вдалося отримати пересування: %s"
-
-#: src/elflint.c:64
-msgid "Be extremely strict, flag level 2 features."
-msgstr "Висока строгість, увімкнути можливості рівня 2."
-
-#: src/elflint.c:65
-msgid "Do not print anything if successful"
-msgstr "Не виводити ніяких даних у разі успіху"
-
-#: src/elflint.c:66
-msgid "Binary is a separate debuginfo file"
-msgstr "Бінарний файл є окремим файлом debuginfo"
-
-#: src/elflint.c:68
-msgid ""
-"Binary has been created with GNU ld and is therefore known to be broken in "
-"certain ways"
-msgstr ""
-"Бінарний файл було створено за допомогою GNU ld, тому він, очевидно, є до "
-"певної міри неправильним"
-
-#: src/elflint.c:74
-msgid "Pedantic checking of ELF files compliance with gABI/psABI spec."
-msgstr ""
-"Педантична перевірка файлів ELF на сумісність зі специфікаціями gABI/psABI."
-
-#: src/elflint.c:78 src/readelf.c:123
-msgid "FILE..."
-msgstr "ФАЙЛ..."
-
-#: src/elflint.c:155 src/readelf.c:292
-#, c-format
-msgid "cannot open input file"
-msgstr "не вдалося відкрити вхідний файл."
-
-#: src/elflint.c:162
-#, c-format
-msgid "cannot generate Elf descriptor: %s\n"
-msgstr "не вдалося створити дескриптор Elf: %s\n"
-
-#: src/elflint.c:181
-#, c-format
-msgid "error while closing Elf descriptor: %s\n"
-msgstr "помилка під час спроби закриття дескриптора Elf: %s\n"
-
-#: src/elflint.c:185
-msgid "No errors"
-msgstr "Без помилок"
-
-#: src/elflint.c:219 src/readelf.c:468
-msgid "Missing file name.\n"
-msgstr "Не вказано назви файла.\n"
-
-#: src/elflint.c:298
-#, c-format
-msgid " error while freeing sub-ELF descriptor: %s\n"
-msgstr " помилка під час спроби вивільнення дескриптора суб-ELF: %s\n"
-
-#: src/elflint.c:306
-#, c-format
-msgid "Not an ELF file - it has the wrong magic bytes at the start\n"
-msgstr "Не є файлом ELF. Виявлено помилкові магічні байти на початку файла\n"
-
-#: src/elflint.c:371
-#, c-format
-msgid "e_ident[%d] == %d is no known class\n"
-msgstr "e_ident[%d] == %d не є відомим класом\n"
-
-#: src/elflint.c:376
-#, c-format
-msgid "e_ident[%d] == %d is no known data encoding\n"
-msgstr "e_ident[%d] == %d не є відомим кодуванням даних\n"
-
-#: src/elflint.c:380
-#, c-format
-msgid "unknown ELF header version number e_ident[%d] == %d\n"
-msgstr "невідомий номер версії заголовка ELF e_ident[%d] == %d\n"
-
-#: src/elflint.c:386
-#, c-format
-msgid "unsupported OS ABI e_ident[%d] == '%s'\n"
-msgstr "непідтримуване ABI ОС e_ident[%d] == «%s»\n"
-
-#: src/elflint.c:392
-#, c-format
-msgid "unsupport ABI version e_ident[%d] == %d\n"
-msgstr "непідтримувана версія ABI e_ident[%d] == %d\n"
-
-#: src/elflint.c:397
-#, c-format
-msgid "e_ident[%zu] is not zero\n"
-msgstr "e_ident[%zu] не дорівнює нулеві\n"
-
-#: src/elflint.c:402
-#, c-format
-msgid "unknown object file type %d\n"
-msgstr "невідомий тип об’єктних файлів %d\n"
-
-#: src/elflint.c:409
-#, c-format
-msgid "unknown machine type %d\n"
-msgstr "невідомий тип архітектури %d\n"
-
-#: src/elflint.c:413
-#, c-format
-msgid "unknown object file version\n"
-msgstr "невідома версія об’єктних файлів\n"
-
-#: src/elflint.c:419
-#, c-format
-msgid "invalid program header offset\n"
-msgstr "некоректне зміщення заголовка програми\n"
-
-#: src/elflint.c:421
-#, c-format
-msgid "executables and DSOs cannot have zero program header offset\n"
-msgstr ""
-"виконувані файли і DSO не можуть містити заголовка програми з нульовим "
-"зміщенням\n"
-
-#: src/elflint.c:425
-#, c-format
-msgid "invalid number of program header entries\n"
-msgstr "некоректна кількість записів заголовків програми\n"
-
-#: src/elflint.c:433
-#, c-format
-msgid "invalid section header table offset\n"
-msgstr "некоректне зміщення таблиці заголовків розділів\n"
-
-#: src/elflint.c:436
-#, c-format
-msgid "section header table must be present\n"
-msgstr "має бути вказано таблицю заголовків розділів\n"
-
-#: src/elflint.c:450
-#, c-format
-msgid "invalid number of section header table entries\n"
-msgstr "некоректна кількість записів таблиці заголовків розділів\n"
-
-#: src/elflint.c:467
-#, c-format
-msgid "invalid section header index\n"
-msgstr "некоректний індекс заголовка розділу\n"
-
-#: src/elflint.c:481
-#, c-format
-msgid "invalid number of program header table entries\n"
-msgstr "некоректна кількість записів таблиці заголовків програми\n"
-
-#: src/elflint.c:490
-#, c-format
-msgid "invalid machine flags: %s\n"
-msgstr "некоректні прапорці архітектури: %s\n"
-
-#: src/elflint.c:497 src/elflint.c:514
-#, c-format
-msgid "invalid ELF header size: %hd\n"
-msgstr "некоректний розмір заголовка ELF: %hd\n"
-
-#: src/elflint.c:500 src/elflint.c:517
-#, c-format
-msgid "invalid program header size: %hd\n"
-msgstr "некоректний розмір заголовка програми: %hd\n"
-
-#: src/elflint.c:503 src/elflint.c:520
-#, c-format
-msgid "invalid program header position or size\n"
-msgstr "некоректне розташування або розмір заголовка програми\n"
-
-#: src/elflint.c:506 src/elflint.c:523
-#, c-format
-msgid "invalid section header size: %hd\n"
-msgstr "некоректний розмір заголовка розділу: %hd\n"
-
-#: src/elflint.c:509 src/elflint.c:526
-#, c-format
-msgid "invalid section header position or size\n"
-msgstr "некоректне розташування або розмір заголовка розділу\n"
-
-#: src/elflint.c:570
-#, c-format
-msgid ""
-"section [%2d] '%s': section with SHF_GROUP flag set not part of a section "
-"group\n"
-msgstr ""
-"розділ [%2d] «%s»: розділ з встановленим прапорцем SHF_GROUP не є частиною "
-"групи розділів\n"
-
-#: src/elflint.c:574
-#, c-format
-msgid ""
-"section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"
-msgstr ""
-"розділ [%2d] «%s»: групу розділів [%2zu] «%s» мало бути визначено до розділу-"
-"елемента цієї групи\n"
-
-#: src/elflint.c:590 src/elflint.c:1457 src/elflint.c:1508 src/elflint.c:1614
-#: src/elflint.c:1939 src/elflint.c:2228 src/elflint.c:2742 src/elflint.c:2904
-#: src/elflint.c:3034 src/elflint.c:3206 src/elflint.c:4108
-#, c-format
-msgid "section [%2d] '%s': cannot get section data\n"
-msgstr "розділ [%2d] «%s»: не вдалося отримати дані розділу\n"
-
-#: src/elflint.c:603 src/elflint.c:1621
-#, c-format
-msgid ""
-"section [%2d] '%s': referenced as string table for section [%2d] '%s' but "
-"type is not SHT_STRTAB\n"
-msgstr ""
-"розділ [%2d] «%s»: надано посилання на таблицю рядків розділу [%2d] «%s», "
-"але типом даних не є SHT_STRTAB\n"
-
-#: src/elflint.c:626
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol table cannot have more than one extended index "
-"section\n"
-msgstr ""
-"розділ [%2d] «%s»: у таблиці символів не може бути більше одного розширеного "
-"розділу покажчика\n"
-
-#: src/elflint.c:638
-#, c-format
-msgid "section [%2u] '%s': entry size is does not match ElfXX_Sym\n"
-msgstr "розділ [%2u] «%s»: розмірність запису не відповідає ElfXX_Sym\n"
-
-#: src/elflint.c:647
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %d: %s\n"
-msgstr "розділ [%2d] «%s»: не вдалося отримати символ %d: %s\n"
-
-#: src/elflint.c:652 src/elflint.c:655 src/elflint.c:658 src/elflint.c:661
-#: src/elflint.c:664 src/elflint.c:667
-#, c-format
-msgid "section [%2d] '%s': '%s' in zeroth entry not zero\n"
-msgstr "розділ [%2d] «%s»: «%s» у нульовому записі не є нулем\n"
-
-#: src/elflint.c:670
-#, c-format
-msgid "section [%2d] '%s': XINDEX for zeroth entry not zero\n"
-msgstr "розділ [%2d] «%s»: XINDEX для нульового запису не є нулем\n"
-
-#: src/elflint.c:680
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol %zu: %s\n"
-msgstr "розділ [%2d] «%s»: не вдалося отримати символ %zu: %s\n"
-
-#: src/elflint.c:689
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid name value\n"
-msgstr "розділ [%2d] «%s»: символ %zu: некоректне значення назви\n"
-
-#: src/elflint.c:704
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: too large section index but no extended "
-"section index section\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: занадто великий покажчик розділу за умови, що "
-"не визначено розділу розширеного покажчика розділів\n"
-
-#: src/elflint.c:710
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in "
-"st_shndx (%<PRIu32>)\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: XINDEX використано для індексування, яке не "
-"відповідає st_shndx (%<PRIu32>)\n"
-
-#: src/elflint.c:722
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: invalid section index\n"
-msgstr "розділ [%2d] «%s»: символ %zu: некоректний індекс розділу\n"
-
-#: src/elflint.c:730
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown type\n"
-msgstr "розділ [%2d] «%s»: символ %zu: невідомий тип\n"
-
-#: src/elflint.c:736
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown symbol binding\n"
-msgstr "розділ [%2d] «%s»: символ %zu: невідома прив’язка символу\n"
-
-#: src/elflint.c:741
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unique symbol not of object type\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: унікальний символ, що не належить до типу "
-"об’єктів\n"
-
-#: src/elflint.c:749
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: COMMON можна використовувати лише у файлах, "
-"придатних до пересування\n"
-
-#: src/elflint.c:753
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: використання локальних символів COMMON "
-"позбавлене сенсу\n"
-
-#: src/elflint.c:757
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: використання функції у розділі COMMON "
-"позбавлене сенсу\n"
-
-#: src/elflint.c:804
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: st_value out of bounds\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: значення st_value поза можливим діапазоном\n"
-
-#: src/elflint.c:810 src/elflint.c:835 src/elflint.c:878
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu does not fit completely in referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu не повністю відповідає розділу, на який "
-"посилається, [%2d] «%s»\n"
-
-#: src/elflint.c:819
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have "
-"SHF_TLS flag set\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: для розділу посилання [%2d] «%s» не "
-"встановлено прапорець SHF_TLS\n"
-
-#: src/elflint.c:829 src/elflint.c:871
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section "
-"[%2d] '%s'\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: значення st_value поза межами розділу "
-"посилання, [%2d] «%s»\n"
-
-#: src/elflint.c:856
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: символ TLS без запису заголовка програми TLS\n"
-
-#: src/elflint.c:864
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] "
-"'%s'\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: значення st_value перед розділом посилання, "
-"[%2d] «%s»\n"
-
-#: src/elflint.c:891
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: у sh_info описано локальний символ поза "
-"діапазоном\n"
-
-#: src/elflint.c:898
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: non-local symbol outside range described in "
-"sh_info\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: у sh_info описано нелокальний символ поза "
-"діапазоном\n"
-
-#: src/elflint.c:905
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: non-local section symbol\n"
-msgstr "розділ [%2d] «%s»: символ %zu: нелокальний символ розділу\n"
-
-#: src/elflint.c:955
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to bad section "
-"[%2d]\n"
-msgstr ""
-"розділ [%2d] «%s»: символ _GLOBAL_OFFSET_TABLE_ посилається на помилковий "
-"розділ, [%2d]\n"
-
-#: src/elflint.c:962
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to section [%2d] "
-"'%s'\n"
-msgstr ""
-"розділ [%2d] «%s»: символ _GLOBAL_OFFSET_TABLE_ посилається на розділ [%2d] "
-"'%s'\n"
-
-#: src/elflint.c:978
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#<PRIx64> does not "
-"match %s section address %#<PRIx64>\n"
-msgstr ""
-"розділ [%2d] «%s»: значення символу _GLOBAL_OFFSET_TABLE_ %#<PRIx64> не "
-"відповідає адресі розділу %s %#<PRIx64>\n"
-
-#: src/elflint.c:985
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %<PRIu64> does not "
-"match %s section size %<PRIu64>\n"
-msgstr ""
-"розділ [%2d] «%s»: розмір символу _GLOBAL_OFFSET_TABLE_ %<PRIu64> не "
-"відповідає розміру розділу %s %<PRIu64>\n"
-
-#: src/elflint.c:993
-#, c-format
-msgid ""
-"section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got "
-"section\n"
-msgstr ""
-"розділ [%2d] «%s»: виявлено символ _GLOBAL_OFFSET_TABLE_, але не виявлено "
-"розділу .got\n"
-
-#: src/elflint.c:1009
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC_ symbol value %#<PRIx64> does not match dynamic "
-"segment address %#<PRIx64>\n"
-msgstr ""
-"розділ [%2d] «%s»: значення символу _DYNAMIC_ %#<PRIx64> не відповідає "
-"адресі динамічного сегмента %#<PRIx64>\n"
-
-#: src/elflint.c:1016
-#, c-format
-msgid ""
-"section [%2d] '%s': _DYNAMIC symbol size %<PRIu64> does not match dynamic "
-"segment size %<PRIu64>\n"
-msgstr ""
-"розділ [%2d] «%s»: розмір символу _DYNAMIC %<PRIu64> не відповідає розміру "
-"динамічного сегмента %<PRIu64>\n"
-
-#: src/elflint.c:1029
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-"
-"default visibility\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %zu: символ у динамічній таблиці символів з "
-"нетиповою видимістю\n"
-
-#: src/elflint.c:1033
-#, c-format
-msgid "section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"
-msgstr "розділ [%2d] «%s»: символ %zu: невідомий набір бітів у st_other\n"
-
-#: src/elflint.c:1082
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"
-msgstr "розділ [%2d] «%s»: для цього розділу RELA використано DT_RELCOUNT\n"
-
-#: src/elflint.c:1093 src/elflint.c:1145
-#, c-format
-msgid "section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"
-msgstr ""
-"розділ [%2d] «%s»: значення DT_RELCOUNT %d є занадто високим для цього "
-"розділу\n"
-
-#: src/elflint.c:1118 src/elflint.c:1170
-#, c-format
-msgid ""
-"section [%2d] '%s': relative relocations after index %d as specified by "
-"DT_RELCOUNT\n"
-msgstr ""
-"розділ [%2d] «%s»: відносні пересування після позиції %d, вказаної за "
-"допомогою DT_RELCOUNT\n"
-
-#: src/elflint.c:1124 src/elflint.c:1176
-#, c-format
-msgid ""
-"section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT "
-"specified %d relative relocations\n"
-msgstr ""
-"розділ [%2d] «%s»: безвідносне пересування на позиції %zu; DT_RELCOUNT "
-"визначено %d відносних пересування\n"
-
-#: src/elflint.c:1136
-#, c-format
-msgid "section [%2d] '%s': DT_RELACOUNT used for this REL section\n"
-msgstr "розділ [%2d] «%s»: для цього розділу REL використано DT_RELACOUNT\n"
-
-#: src/elflint.c:1218
-#, c-format
-msgid "section [%2d] '%s': invalid destination section index\n"
-msgstr "розділ [%2d] «%s»: некоректний індекс розділу призначення\n"
-
-#: src/elflint.c:1230
-#, c-format
-msgid "section [%2d] '%s': invalid destination section type\n"
-msgstr "розділ [%2d] «%s»: некоректний тип розділу призначення\n"
-
-#: src/elflint.c:1238
-#, c-format
-msgid "section [%2d] '%s': sh_info should be zero\n"
-msgstr "розділ [%2d] «%s»: sh_info має бути нульовим\n"
-
-#: src/elflint.c:1245
-#, c-format
-msgid "section [%2d] '%s': no relocations for merge-able sections possible\n"
-msgstr ""
-"розділ [%2d] «%s»: пересування у придатних до об’єднання розділах неможливе\n"
-
-#: src/elflint.c:1253
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Rela\n"
-msgstr ""
-"розділ [%2d] «%s»: розмірність запису розділу не відповідає ElfXX_Rela\n"
-
-#: src/elflint.c:1313
-#, c-format
-msgid "text relocation flag set but there is no read-only segment\n"
-msgstr ""
-"встановлено прапорець пересування тексту, але сегмент придатний лише до "
-"читання\n"
-
-#: src/elflint.c:1340
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid type\n"
-msgstr "розділ [%2d] «%s»: пересування %zu: некоректний тип\n"
-
-#: src/elflint.c:1348
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: relocation type invalid for the file "
-"type\n"
-msgstr ""
-"розділ [%2d] «%s»: пересування %zu: некоректний тип пересування для типу "
-"файла\n"
-
-#: src/elflint.c:1356
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: invalid symbol index\n"
-msgstr "розділ [%2d] «%s»: пересування %zu: некоректний індекс символу\n"
-
-#: src/elflint.c:1374
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can "
-"be used with %s\n"
-msgstr ""
-"розділ [%2d] «%s»: пересування %zu: з %s можна використовувати лише символ "
-"«_GLOBAL_OFFSET_TABLE_»\n"
-
-#: src/elflint.c:1391
-#, c-format
-msgid "section [%2d] '%s': relocation %zu: offset out of bounds\n"
-msgstr "розділ [%2d] «%s»: пересування %zu: зміщення за межі діапазону\n"
-
-#: src/elflint.c:1406
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: copy relocation against symbol of type "
-"%s\n"
-msgstr ""
-"розділ [%2d] «%s»: пересування %zu: пересування копіювання для символу типу "
-"%s\n"
-
-#: src/elflint.c:1427
-#, c-format
-msgid ""
-"section [%2d] '%s': relocation %zu: read-only section modified but text "
-"relocation flag not set\n"
-msgstr ""
-"розділ [%2d] «%s»: пересування %zu: змінено придатний лише для читання "
-"розділ, але не встановлено прапорець пересування тексту\n"
-
-#: src/elflint.c:1442
-#, c-format
-msgid "section [%2d] '%s': relocations are against loaded and unloaded data\n"
-msgstr "розділ [%2d] «%s»: пересування завантажених і незавантажених даних\n"
-
-#: src/elflint.c:1482 src/elflint.c:1533
-#, c-format
-msgid "section [%2d] '%s': cannot get relocation %zu: %s\n"
-msgstr "розділ [%2d] «%s»: не вдалося отримати зміщення %zu: %s\n"
-
-#: src/elflint.c:1609
-#, c-format
-msgid "more than one dynamic section present\n"
-msgstr "вказано більше одного динамічного розділу\n"
-
-#: src/elflint.c:1628
-#, c-format
-msgid "section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"
-msgstr ""
-"розділ [%2d] «%s»: розмірність запису розділу не відповідає ElfXX_Dyn\n"
-
-#: src/elflint.c:1633 src/elflint.c:1918
-#, c-format
-msgid "section [%2d] '%s': sh_info not zero\n"
-msgstr "розділ [%2d] «%s»: sh_info не є нульовим\n"
-
-#: src/elflint.c:1643
-#, c-format
-msgid "section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"
-msgstr ""
-"розділ [%2d] «%s»: не вдалося отримати запис динамічного розділу %zu: %s\n"
-
-#: src/elflint.c:1651
-#, c-format
-msgid "section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"
-msgstr ""
-"розділ [%2d] «%s»: за записом DT_NULL вказано записи, що не належать до "
-"DT_NULL\n"
-
-#: src/elflint.c:1658
-#, c-format
-msgid "section [%2d] '%s': entry %zu: unknown tag\n"
-msgstr "розділ [%2d] «%s»: запис %zu: невідома мітка\n"
-
-#: src/elflint.c:1669
-#, c-format
-msgid "section [%2d] '%s': entry %zu: more than one entry with tag %s\n"
-msgstr "розділ [%2d] «%s»: запис %zu: декілька записів з міткою %s\n"
-
-#: src/elflint.c:1679
-#, c-format
-msgid "section [%2d] '%s': entry %zu: level 2 tag %s used\n"
-msgstr "розділ [%2d] «%s»: запис %zu: використано мітку рівня 2 %s\n"
-
-#: src/elflint.c:1697
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"
-msgstr ""
-"розділ [%2d] «%s»: запис %zu: значенням DT_PLTREL має бути DT_REL або "
-"DT_RELA\n"
-
-#: src/elflint.c:1710
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: pointer does not match address of section "
-"[%2d] '%s' referenced by sh_link\n"
-msgstr ""
-"розділ [%2d] «%s»: розділ %zu: вказівник не відповідає адресі розділу [%2d] "
-"«%s», на яку посилається sh_link\n"
-
-#: src/elflint.c:1753
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"
-msgstr ""
-"розділ [%2d] «%s»: запис %zu: значення %s має вказувати на завантажений "
-"сегмент\n"
-
-#: src/elflint.c:1768
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %zu: %s value must be valid offset in section "
-"[%2d] '%s'\n"
-msgstr ""
-"розділ [%2d] «%s»: запис %zu: значенням %s має бути коректне зміщення у "
-"розділі [%2d] «%s»\n"
-
-#: src/elflint.c:1788 src/elflint.c:1816
-#, c-format
-msgid "section [%2d] '%s': contains %s entry but not %s\n"
-msgstr "розділ [%2d] «%s»: містить запис %s, але не %s\n"
-
-#: src/elflint.c:1800
-#, c-format
-msgid "section [%2d] '%s': mandatory tag %s not present\n"
-msgstr "розділ [%2d] «%s»: немає обов’язкової мітки %s\n"
-
-#: src/elflint.c:1809
-#, c-format
-msgid "section [%2d] '%s': no hash section present\n"
-msgstr "розділ [%2d] «%s»: не виявлено розділу хешів\n"
-
-#: src/elflint.c:1824 src/elflint.c:1831
-#, c-format
-msgid "section [%2d] '%s': not all of %s, %s, and %s are present\n"
-msgstr "розділ [%2d] «%s»: вказано не всі зі значень %s, %s і %s\n"
-
-#: src/elflint.c:1841 src/elflint.c:1845
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"
-msgstr ""
-"розділ [%2d] «%s»: у DSO, позначеному на кроці попереднього компонування, "
-"немає мітки %s\n"
-
-#: src/elflint.c:1851
-#, c-format
-msgid "section [%2d] '%s': non-DSO file marked as dependency during prelink\n"
-msgstr ""
-"розділ [%2d] «%s»: під час попереднього компонування як залежність позначено "
-"файл, який не є файлом DSO\n"
-
-#: src/elflint.c:1862 src/elflint.c:1866 src/elflint.c:1870 src/elflint.c:1874
-#, c-format
-msgid "section [%2d] '%s': %s tag missing in prelinked executable\n"
-msgstr ""
-"розділ [%2d] «%s»: у попередньо скомпонованому виконуваному файлі не "
-"міститься мітки %s\n"
-
-#: src/elflint.c:1886
-#, c-format
-msgid ""
-"section [%2d] '%s': only relocatable files can have extended section index\n"
-msgstr ""
-"розділ [%2d] «%s»: розширений розділ покажчика можуть мати лише файли, "
-"придатні до пересування\n"
-
-#: src/elflint.c:1896
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index section not for symbol table\n"
-msgstr ""
-"розділ [%2d] «%s»: розділ розширеного покажчика розділів не призначено для "
-"таблиць символів\n"
-
-#: src/elflint.c:1901
-#, c-format
-msgid "cannot get data for symbol section\n"
-msgstr "не вдалося отримати дані для розділу символів\n"
-
-#: src/elflint.c:1904
-#, c-format
-msgid "section [%2d] '%s': entry size does not match Elf32_Word\n"
-msgstr "розділ [%2d] «%s»: розмірність запису не відповідає Elf32_Word\n"
-
-#: src/elflint.c:1913
-#, c-format
-msgid "section [%2d] '%s': extended index table too small for symbol table\n"
-msgstr ""
-"розділ [%2d] «%s»: розширена таблиця покажчика замала для таблиці символів\n"
-
-#: src/elflint.c:1928
-#, c-format
-msgid ""
-"section [%2d] '%s': extended section index in section [%2zu] '%s' refers to "
-"same symbol table\n"
-msgstr ""
-"розділ [%2d] «%s»: розширений покажчик розділів у розділі [%2zu] «%s» "
-"посилається на ту саму таблицю розділів\n"
-
-#: src/elflint.c:1945
-#, c-format
-msgid "symbol 0 should have zero extended section index\n"
-msgstr "символу 0 має відповідати нульовий індекс розширеного розділу\n"
-
-#: src/elflint.c:1957
-#, c-format
-msgid "cannot get data for symbol %zu\n"
-msgstr "не вдалося отримати дані для символу %zu\n"
-
-#: src/elflint.c:1962
-#, c-format
-msgid "extended section index is %<PRIu32> but symbol index is not XINDEX\n"
-msgstr ""
-"індекс розширеного розділу дорівнює %<PRIu32>, але індекс символу не є "
-"XINDEX\n"
-
-#: src/elflint.c:1978 src/elflint.c:2029
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"
-msgstr ""
-"розділ [%2d] «%s»: розділ таблиці хешів занадто малий (розмір %ld, мало бути "
-"— %ld)\n"
-
-#: src/elflint.c:1990 src/elflint.c:2041
-#, c-format
-msgid "section [%2d] '%s': chain array too large\n"
-msgstr "розділ [%2d] «%s»: масив ланцюжка занадто великий\n"
-
-#: src/elflint.c:2004 src/elflint.c:2055
-#, c-format
-msgid "section [%2d] '%s': hash bucket reference %zu out of bounds\n"
-msgstr ""
-"розділ [%2d] «%s»: посилання на хеш блоку %zu лежить поза межами діапазону\n"
-
-#: src/elflint.c:2014
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %zu out of bounds\n"
-msgstr ""
-"розділ [%2d] «%s»: посилання ланцюжка хешів %zu лежить поза межами "
-"діапазону\n"
-
-#: src/elflint.c:2065
-#, c-format
-msgid "section [%2d] '%s': hash chain reference %<PRIu64> out of bounds\n"
-msgstr ""
-"розділ [%2d] «%s»: посилання ланцюжка хешів %<PRIu64> лежить поза межами "
-"діапазону\n"
-
-#: src/elflint.c:2081
-#, c-format
-msgid "section [%2d] '%s': bitmask size not power of 2: %u\n"
-msgstr "розділ [%2d] «%s»: розмір бітової маски не є степенем 2: %u\n"
-
-#: src/elflint.c:2092
-#, fuzzy, c-format
-msgid ""
-"section [%2d] '%s': hash table section is too small (is %ld, expected at "
-"least %ld)\n"
-msgstr ""
-"розділ [%2d] «%s»: розділ таблиці хешів занадто малий (розмір %ld, мало бути "
-"не менше %ld)\n"
-
-#: src/elflint.c:2100
-#, c-format
-msgid "section [%2d] '%s': 2nd hash function shift too big: %u\n"
-msgstr "розділ [%2d] «%s»: зсув 2-ої функції хешування занадто великий: %u\n"
-
-#: src/elflint.c:2132
-#, c-format
-msgid ""
-"section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"
-msgstr ""
-"розділ [%2d] '%s': ланцюжок хешів для блоку %zu розташовано нижче за позицію "
-"відхилення індексу символу\n"
-
-#: src/elflint.c:2153
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %u referenced in chain for bucket %zu is "
-"undefined\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %u, на який посилається ланцюжок у блоці %zu не "
-"визначено\n"
-
-#: src/elflint.c:2164
-#, c-format
-msgid ""
-"section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"
-msgstr ""
-"розділ [%2d] «%s»: значення хешу для символу %u у ланцюжку для блоку %zu є "
-"помилковим\n"
-
-#: src/elflint.c:2195
-#, c-format
-msgid "section [%2d] '%s': hash chain for bucket %zu out of bounds\n"
-msgstr ""
-"розділ [%2d] «%s»: ланцюжок хешів для блоку %zu лежить поза межами "
-"діапазону\n"
-
-#: src/elflint.c:2200
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"
-msgstr ""
-"розділ [%2d] «%s»: посилання на символ у ланцюжку для блоку %zu лежить поза "
-"межами діапазону\n"
-
-#: src/elflint.c:2206
-#, c-format
-msgid "section [%2d] '%s': bitmask does not match names in the hash table\n"
-msgstr "розділ [%2d] «%s»: бітова маска не відповідає назвам у таблиці хешів\n"
-
-#: src/elflint.c:2219
-#, c-format
-msgid "section [%2d] '%s': relocatable files cannot have hash tables\n"
-msgstr ""
-"розділ [%2d] «%s»: придатні до пересування файли не можуть містити таблиць "
-"хешів\n"
-
-#: src/elflint.c:2237
-#, c-format
-msgid "section [%2d] '%s': hash table not for dynamic symbol table\n"
-msgstr ""
-"розділ [%2d] «%s»: таблицю хешів не призначено для зберігання таблиці "
-"динамічних символів\n"
-
-#: src/elflint.c:2245
-#, c-format
-msgid "section [%2d] '%s': hash table entry size incorrect\n"
-msgstr "розділ [%2d] «%s»: розмірність запису таблиці хешів є некоректною\n"
-
-#: src/elflint.c:2250
-#, c-format
-msgid "section [%2d] '%s': not marked to be allocated\n"
-msgstr "розділ [%2d] «%s»: не позначено для пересування\n"
-
-#: src/elflint.c:2255
-#, c-format
-msgid ""
-"section [%2d] '%s': hash table has not even room for initial administrative "
-"entries\n"
-msgstr ""
-"розділ [%2d] «%s»: у таблиці хешів виявлено незвичайне розташування "
-"початкових адміністративних записів\n"
-
-#: src/elflint.c:2303
-#, c-format
-msgid "sh_link in hash sections [%2zu] '%s' and [%2zu] '%s' not identical\n"
-msgstr "sh_link у розділах хешів [%2zu] «%s» і [%2zu] «%s» не збігаються\n"
-
-#: src/elflint.c:2381 src/elflint.c:2385
-#, c-format
-msgid "section [%2zu] '%s': reference to symbol index 0\n"
-msgstr "розділ [%2zu] «%s»: посилання на індекс символів 0\n"
-
-#: src/elflint.c:2392
-#, c-format
-msgid ""
-"symbol %d referenced in new hash table in [%2zu] '%s' but not in old hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"виявлено посилання на символ %d у новій таблиці хешів у [%2zu] «%s», але "
-"його немає у старій таблиці хешів у [%2zu] «%s»\n"
-
-#: src/elflint.c:2404
-#, c-format
-msgid ""
-"symbol %d referenced in old hash table in [%2zu] '%s' but not in new hash "
-"table in [%2zu] '%s'\n"
-msgstr ""
-"виявлено посилання на символ %d у старій таблиці хешів у [%2zu] «%s», але "
-"його немає у новій таблиці хешів у [%2zu] «%s»\n"
-
-#: src/elflint.c:2420
-#, c-format
-msgid "section [%2d] '%s': nonzero sh_%s for NULL section\n"
-msgstr "розділ [%2d] «%s»: ненульове значення sh_%s для розділу NULL\n"
-
-#: src/elflint.c:2440
-#, c-format
-msgid ""
-"section [%2d] '%s': section groups only allowed in relocatable object files\n"
-msgstr ""
-"розділ [%2d] «%s»: групи розділів передбачено лише для придатних до "
-"пересування об’єктних файлах\n"
-
-#: src/elflint.c:2451
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol table: %s\n"
-msgstr "розділ [%2d] «%s»: не вдалося отримати таблицю символів: %s\n"
-
-#: src/elflint.c:2456
-#, c-format
-msgid "section [%2d] '%s': section reference in sh_link is no symbol table\n"
-msgstr ""
-"розділ [%2d] «%s»: посилання на розділ у sh_link не має таблиці символів\n"
-
-#: src/elflint.c:2462
-#, c-format
-msgid "section [%2d] '%s': invalid symbol index in sh_info\n"
-msgstr "розділ [%2d] «%s»: некоректний індекс символу у sh_info\n"
-
-#: src/elflint.c:2467
-#, c-format
-msgid "section [%2d] '%s': sh_flags not zero\n"
-msgstr "розділ [%2d] «%s»: sh_flags не є нульовим\n"
-
-#: src/elflint.c:2474
-#, c-format
-msgid "section [%2d] '%s': cannot get symbol for signature\n"
-msgstr "розділ [%2d] «%s»: не вдалося отримати символ для підпису\n"
-
-#: src/elflint.c:2479
-#, c-format
-msgid "section [%2d] '%s': signature symbol cannot be empty string\n"
-msgstr "розділ [%2d] «%s»: символ підпису не може бути порожнім рядком\n"
-
-#: src/elflint.c:2485
-#, c-format
-msgid "section [%2d] '%s': sh_flags not set correctly\n"
-msgstr "розділ [%2d] «%s»: для sh_flags встановлено помилкове значення\n"
-
-#: src/elflint.c:2491
-#, c-format
-msgid "section [%2d] '%s': cannot get data: %s\n"
-msgstr "розділ [%2d] «%s»: не вдалося отримати дані: %s\n"
-
-#: src/elflint.c:2500
-#, c-format
-msgid "section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"
-msgstr "розділ [%2d] «%s»: розмір розділу не є кратним до sizeof(Elf32_Word)\n"
-
-#: src/elflint.c:2505
-#, c-format
-msgid "section [%2d] '%s': section group without flags word\n"
-msgstr "розділ [%2d] «%s»: група розділів без значення типу word прапорців\n"
-
-#: src/elflint.c:2511
-#, c-format
-msgid "section [%2d] '%s': section group without member\n"
-msgstr "розділ [%2d] «%s»: група розділів без елементів\n"
-
-#: src/elflint.c:2515
-#, c-format
-msgid "section [%2d] '%s': section group with only one member\n"
-msgstr "розділ [%2d] «%s»: група розділів, що містить лише один елемент\n"
-
-#: src/elflint.c:2526
-#, c-format
-msgid "section [%2d] '%s': unknown section group flags\n"
-msgstr "розділ [%2d] «%s»: невідомі прапорці групи розділів\n"
-
-#: src/elflint.c:2538
-#, c-format
-msgid "section [%2d] '%s': section index %Zu out of range\n"
-msgstr "розділ [%2d] «%s»: індекс розділу %Zu поза межами діапазону\n"
-
-#: src/elflint.c:2547
-#, c-format
-msgid "section [%2d] '%s': cannot get section header for element %zu: %s\n"
-msgstr ""
-"розділ [%2d] «%s»: не вдалося отримати заголовок розділу для елемента %zu: "
-"%s\n"
-
-#: src/elflint.c:2554
-#, c-format
-msgid "section [%2d] '%s': section group contains another group [%2d] '%s'\n"
-msgstr "розділ [%2d] «%s»: група розділів містить іншу групу [%2d] «%s»\n"
-
-#: src/elflint.c:2560
-#, c-format
-msgid ""
-"section [%2d] '%s': element %Zu references section [%2d] '%s' without "
-"SHF_GROUP flag set\n"
-msgstr ""
-"розділ [%2d] «%s»: елемент %Zu посилається на розділ [%2d] «%s» без "
-"встановленого прапорця SHF_GROUP\n"
-
-#: src/elflint.c:2567
-#, c-format
-msgid "section [%2d] '%s' is contained in more than one section group\n"
-msgstr "розділ [%2d] «%s» міститься у більше ніж одній групі розділів\n"
-
-#: src/elflint.c:2756
-#, c-format
-msgid ""
-"section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no "
-"dynamic symbol table\n"
-msgstr ""
-"розділ [%2d] «%s» посилається у sh_link на розділ [%2d] «%s», який не має "
-"динамічної таблиці символів\n"
-
-#: src/elflint.c:2768
-#, c-format
-msgid ""
-"section [%2d] '%s' has different number of entries than symbol table [%2d] "
-"'%s'\n"
-msgstr ""
-"кількість записів у розділі [%2d] «%s» відрізняється від кількості у таблиці "
-"символів [%2d] «%s»\n"
-
-#: src/elflint.c:2784
-#, c-format
-msgid "section [%2d] '%s': symbol %d: cannot read version data\n"
-msgstr "розділ [%2d] «%s»: символ %d: не вдалося прочитати дані щодо версії\n"
-
-#: src/elflint.c:2800
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with global scope\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %d: локальний символ у загальному контексті\n"
-
-#: src/elflint.c:2808
-#, c-format
-msgid "section [%2d] '%s': symbol %d: local symbol with version\n"
-msgstr "розділ [%2d] «%s»: символ %d: локальний символ з версією\n"
-
-#: src/elflint.c:2822
-#, c-format
-msgid "section [%2d] '%s': symbol %d: invalid version index %d\n"
-msgstr "розділ [%2d] «%s»: символ %d: некоректний індекс версії %d\n"
-
-#: src/elflint.c:2827
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for defined version\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %d: індекси версії %d призначено до визначеної "
-"версії\n"
-
-#: src/elflint.c:2837
-#, c-format
-msgid ""
-"section [%2d] '%s': symbol %d: version index %d is for requested version\n"
-msgstr ""
-"розділ [%2d] «%s»: символ %d: індекс версії %d призначено для версії, на яку "
-"надійшов запит\n"
-
-#: src/elflint.c:2889
-#, c-format
-msgid "more than one version reference section present\n"
-msgstr "виявлено більше за один розділ посилань на версії\n"
-
-#: src/elflint.c:2897 src/elflint.c:3026
-#, c-format
-msgid "section [%2d] '%s': sh_link does not link to string table\n"
-msgstr "розділ [%2d] «%s»: sh_link не посилається на таблицю рядків\n"
-
-#: src/elflint.c:2920 src/elflint.c:3078
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong version %d\n"
-msgstr "розділ [%2d] «%s»: запис %d має помилкову версію %d\n"
-
-#: src/elflint.c:2926 src/elflint.c:3084
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"
-msgstr ""
-"розділ [%2d] «%s»: запис %d містить помилкове зміщення у допоміжних даних\n"
-
-#: src/elflint.c:2934
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid file reference\n"
-msgstr "розділ [%2d] «%s»: запис %d містить некоректне посилання на файл\n"
-
-#: src/elflint.c:2942
-#, c-format
-msgid "section [%2d] '%s': entry %d references unknown dependency\n"
-msgstr "розділ [%2d] «%s»: запис %d посилається на невідому залежність\n"
-
-#: src/elflint.c:2954
-#, c-format
-msgid "section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"
-msgstr ""
-"розділ [%2d] «%s»: допоміжний запис %d запису %d позначено невідомим "
-"прапорцем\n"
-
-#: src/elflint.c:2961
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has invalid name "
-"reference\n"
-msgstr ""
-"розділ [%2d] «%s»: допоміжний запис %d запису %d містить некоректне "
-"посилання на назву\n"
-
-#: src/elflint.c:2968
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: "
-"%#x, expected %#x\n"
-msgstr ""
-"розділ [%2d] «%s»: допоміжний запис %d запису %d має помилкове значення "
-"хешу: %#x, мало бути %#x\n"
-
-#: src/elflint.c:2978
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version "
-"name '%s'\n"
-msgstr ""
-"розділ [%2d] «%s»: допоміжний запис %d запису %d містить дублікати назви "
-"версії «%s»\n"
-
-#: src/elflint.c:2989
-#, c-format
-msgid ""
-"section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"
-msgstr ""
-"розділ [%2d] «%s»: допоміжний запис %d запису %d має помилкове наступне "
-"поле\n"
-
-#: src/elflint.c:3005 src/elflint.c:3163
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid offset to next entry\n"
-msgstr ""
-"розділ [%2d] «%s»: запис %d має некоректне зміщення щодо наступного запису\n"
-
-#: src/elflint.c:3018
-#, c-format
-msgid "more than one version definition section present\n"
-msgstr "виявлено більше за один розділ визначення версій\n"
-
-#: src/elflint.c:3063
-#, c-format
-msgid "section [%2d] '%s': more than one BASE definition\n"
-msgstr "розділ [%2d] «%s»: повторне визначення BASE\n"
-
-#: src/elflint.c:3067
-#, c-format
-msgid "section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"
-msgstr ""
-"розділ [%2d] «%s»: визначення BASE повинно мати індекс VER_NDX_GLOBAL\n"
-
-#: src/elflint.c:3073
-#, c-format
-msgid "section [%2d] '%s': entry %d has unknown flag\n"
-msgstr "розділ [%2d] «%s»: невідомий прапорець запису %d\n"
-
-#: src/elflint.c:3097
-#, c-format
-msgid "section [%2d] '%s': entry %d has invalid name reference\n"
-msgstr "розділ [%2d] «%s»: запис %d містить некоректне посилання на назву\n"
-
-#: src/elflint.c:3104
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"
-msgstr ""
-"розділ [%2d] «%s»: запис %d має помилкове значення хешу: %#x, мало бути %#x\n"
-
-#: src/elflint.c:3113
-#, c-format
-msgid "section [%2d] '%s': entry %d has duplicate version name '%s'\n"
-msgstr "розділ [%2d] «%s»: запис %d містить дублікати назви версії «%s»\n"
-
-#: src/elflint.c:3132
-#, c-format
-msgid ""
-"section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"
-msgstr ""
-"розділ [%2d] «%s»: запис %d містить некоректне посилання на назву у "
-"допоміжних даних\n"
-
-#: src/elflint.c:3147
-#, c-format
-msgid "section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"
-msgstr ""
-"розділ [%2d] «%s»: у допоміжних даних запису %d міститься помилкове поле "
-"наступного запису\n"
-
-#: src/elflint.c:3169
-#, c-format
-msgid "section [%2d] '%s': no BASE definition\n"
-msgstr "розділ [%2d] «%s»: немає визначення BASE\n"
-
-#: src/elflint.c:3185
-#, c-format
-msgid "section [%2d] '%s': unknown parent version '%s'\n"
-msgstr "розділ [%2d] «%s»: невідома основна версія «%s»\n"
-
-#: src/elflint.c:3198
-#, c-format
-msgid "section [%2d] '%s': empty object attributes section\n"
-msgstr "розділ [%2d] «%s»: порожній розділ атрибутів об’єкта\n"
-
-#: src/elflint.c:3219
-#, c-format
-msgid "section [%2d] '%s': unrecognized attribute format\n"
-msgstr "розділ [%2d] «%s»: не вдалося визначити формат атрибутів\n"
-
-#: src/elflint.c:3235
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute section\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: поле нульового розміру у розділі атрибутів\n"
-
-#: src/elflint.c:3244
-#, c-format
-msgid "section [%2d] '%s': offset %zu: invalid length in attribute section\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: некоректна довжина у розділі атрибутів\n"
-
-#: src/elflint.c:3256
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated vendor name string\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: незавершений рядок назви постачальника\n"
-
-#: src/elflint.c:3273
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: незавершене поле ULEB128 у тезі підрозділу "
-"атрибутів\n"
-
-#: src/elflint.c:3282
-#, c-format
-msgid "section [%2d] '%s': offset %zu: truncated attribute section\n"
-msgstr "розділ [%2d] «%s»: зміщення %zu: обрізаний розділ атрибутів\n"
-
-#: src/elflint.c:3291
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: поле нульового розміру у підрозділі "
-"атрибутів\n"
-
-#: src/elflint.c:3304
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: некоректна довжина у підрозділі атрибутів\n"
-
-#: src/elflint.c:3315
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: підрозділ атрибутів містить неочікуваний "
-"теґ %u\n"
-
-#: src/elflint.c:3333
-#, c-format
-msgid "section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: незавершене поле ULEB128 у тезі атрибуту\n"
-
-#: src/elflint.c:3344
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unterminated string in attribute\n"
-msgstr "розділ [%2d] «%s»: зміщення %zu: незавершений рядок у атрибуті\n"
-
-#: src/elflint.c:3357
-#, c-format
-msgid "section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"
-msgstr "розділ [%2d] «%s»: зміщення %zu: незавершений теґ атрибуту %u\n"
-
-#: src/elflint.c:3361
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: unrecognized %s attribute value %<PRIu64>\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: невідоме значення %s атрибуту %<PRIu64>\n"
-
-#: src/elflint.c:3371
-#, c-format
-msgid "section [%2d] '%s': offset %zu: vendor '%s' unknown\n"
-msgstr "розділ [%2d] «%s»: зміщення %zu: невідомий постачальник «%s»\n"
-
-#: src/elflint.c:3377
-#, c-format
-msgid ""
-"section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"
-msgstr ""
-"розділ [%2d] «%s»: зміщення %zu: зайві байти після останнього розділу "
-"атрибутів\n"
-
-#: src/elflint.c:3466
-#, c-format
-msgid "cannot get section header of zeroth section\n"
-msgstr "не вдалося отримати заголовок нульового розділу\n"
-
-#: src/elflint.c:3470
-#, c-format
-msgid "zeroth section has nonzero name\n"
-msgstr "нульовий розділ має ненульову назву\n"
-
-#: src/elflint.c:3472
-#, c-format
-msgid "zeroth section has nonzero type\n"
-msgstr "нульовий розділ має ненульовий тип\n"
-
-#: src/elflint.c:3474
-#, c-format
-msgid "zeroth section has nonzero flags\n"
-msgstr "нульовий розділ має ненульові прапорці\n"
-
-#: src/elflint.c:3476
-#, c-format
-msgid "zeroth section has nonzero address\n"
-msgstr "нульовий розділ має ненульову адресу\n"
-
-#: src/elflint.c:3478
-#, c-format
-msgid "zeroth section has nonzero offset\n"
-msgstr "нульовий розділ має ненульове зміщення\n"
-
-#: src/elflint.c:3480
-#, c-format
-msgid "zeroth section has nonzero align value\n"
-msgstr "нульовий розділ має ненульове значення вирівнювання\n"
-
-#: src/elflint.c:3482
-#, c-format
-msgid "zeroth section has nonzero entry size value\n"
-msgstr "нульовий розділ має ненульове значення розміру запису\n"
-
-#: src/elflint.c:3485
-#, c-format
-msgid ""
-"zeroth section has nonzero size value while ELF header has nonzero shnum "
-"value\n"
-msgstr ""
-"нульовий розділ має ненульове значення розміру, хоча заголовок ELF ман "
-"ненульове значення shnum\n"
-
-#: src/elflint.c:3489
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in shstrndx\n"
-msgstr ""
-"нульовий розділ має ненульове значення компонування, хоча у заголовку ELF "
-"немає сигналу переповнення у shstrndx\n"
-
-#: src/elflint.c:3493
-#, c-format
-msgid ""
-"zeroth section has nonzero link value while ELF header does not signal "
-"overflow in phnum\n"
-msgstr ""
-"нульовий розділ має ненульове значення компонування, хоча у заголовку ELF "
-"немає сигналу переповнення у phnum\n"
-
-#: src/elflint.c:3510
-#, c-format
-msgid "cannot get section header for section [%2zu] '%s': %s\n"
-msgstr "не вдалося отримати заголовок розділу [%2zu] «%s»: %s\n"
-
-#: src/elflint.c:3519
-#, c-format
-msgid "section [%2zu]: invalid name\n"
-msgstr "розділ [%2zu]: некоректна назва\n"
-
-#: src/elflint.c:3546
-#, c-format
-msgid "section [%2d] '%s' has wrong type: expected %s, is %s\n"
-msgstr ""
-"розділ [%2d] «%s» належить до помилкового типу: мав бути %s, маємо %s\n"
-
-#: src/elflint.c:3562
-#, c-format
-msgid "section [%2zu] '%s' has wrong flags: expected %s, is %s\n"
-msgstr "розділ [%2zu] «%s» має помилкові прапорці: мало бути %s, маємо %s\n"
-
-#: src/elflint.c:3579
-#, c-format
-msgid ""
-"section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"
-msgstr ""
-"розділ [%2zu] «%s» має помилкові прапорці: мало бути %s, можливо, %s, але "
-"маємо %s\n"
-
-#: src/elflint.c:3597
-#, c-format
-msgid "section [%2zu] '%s' present in object file\n"
-msgstr "у об’єктному файлі виявлено розділ [%2zu] «%s»\n"
-
-#: src/elflint.c:3603 src/elflint.c:3635
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"
-msgstr ""
-"у розділ [%2zu] «%s» встановлено прапорець SHF_ALLOC, але немає придатного "
-"до завантаження сегмента\n"
-
-#: src/elflint.c:3608 src/elflint.c:3640
-#, c-format
-msgid ""
-"section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable "
-"segments\n"
-msgstr ""
-"у розділі [%2zu] «%s» не встановлено прапорець SHF_ALLOC, але є придатні до "
-"завантаження сегменти\n"
-
-#: src/elflint.c:3616
-#, c-format
-msgid ""
-"section [%2zu] '%s' is extension section index table in non-object file\n"
-msgstr ""
-"розділ [%2zu] «%s» є таблицею-покажчиком розділу розширень у файлі, який не "
-"є об’єктним\n"
-
-#: src/elflint.c:3659
-#, c-format
-msgid "section [%2zu] '%s': size not multiple of entry size\n"
-msgstr "розділ [%2zu] «%s»: розмір не є кратним до розміру запису\n"
-
-#: src/elflint.c:3664
-#, c-format
-msgid "cannot get section header\n"
-msgstr "не вдалося отримати заголовок розділу\n"
-
-#: src/elflint.c:3674
-#, c-format
-msgid "section [%2zu] '%s' has unsupported type %d\n"
-msgstr "розділ [%2zu] «%s» належить до непідтримуваного типу %d\n"
-
-#: src/elflint.c:3688
-#, c-format
-msgid ""
-"section [%2zu] '%s' contains invalid processor-specific flag(s) %#<PRIx64>\n"
-msgstr ""
-"розділ [%2zu] «%s» містить некоректні специфічні для процесора прапорці "
-"%#<PRIx64>\n"
-
-#: src/elflint.c:3695
-#, c-format
-msgid "section [%2zu] '%s' contains unknown flag(s) %#<PRIx64>\n"
-msgstr "розділ [%2zu] «%s» містить невідомі прапорці %#<PRIx64>\n"
-
-#: src/elflint.c:3703
-#, c-format
-msgid "section [%2zu] '%s': thread-local data sections address not zero\n"
-msgstr ""
-"розділ [%2zu] «%s»: адреса розділів локальних даних потоків не є нульовою\n"
-
-#: src/elflint.c:3711
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in link value\n"
-msgstr ""
-"розділ [%2zu] «%s»: некоректне посилання на розділ у значенні компонування\n"
-
-#: src/elflint.c:3716
-#, c-format
-msgid "section [%2zu] '%s': invalid section reference in info value\n"
-msgstr ""
-"розділ [%2zu] «%s»: некоректне посилання на розділ у значенні відомостей\n"
-
-#: src/elflint.c:3723
-#, c-format
-msgid "section [%2zu] '%s': strings flag set without merge flag\n"
-msgstr "розділ [%2zu] «%s»: встановлено прапорець strings без прапорця merge\n"
-
-#: src/elflint.c:3728
-#, c-format
-msgid "section [%2zu] '%s': merge flag set but entry size is zero\n"
-msgstr ""
-"розділ [%2zu] «%s»: встановлено прапорець merge, але розмір запису є "
-"нульовим\n"
-
-#: src/elflint.c:3746
-#, c-format
-msgid "section [%2zu] '%s' has unexpected type %d for an executable section\n"
-msgstr "розділ [%2zu] «%s» має неочікуваний тип %d для виконуваного розділу\n"
-
-#: src/elflint.c:3755
-#, c-format
-msgid "section [%2zu] '%s' is both executable and writable\n"
-msgstr "розділ [%2zu] «%s» є одночасно виконуваним і придатним до запису\n"
-
-#: src/elflint.c:3784
-#, c-format
-msgid ""
-"section [%2zu] '%s' not fully contained in segment of program header entry "
-"%d\n"
-msgstr ""
-"розділ [%2zu] «%s» не повністю міститься у сегменті запису заголовка "
-"програми %d\n"
-
-#: src/elflint.c:3792
-#, c-format
-msgid ""
-"section [%2zu] '%s' has type NOBITS but is read from the file in segment of "
-"program header entry %d\n"
-msgstr ""
-"розділ [%2zu] «%s» належить до типу NOBITS, але його читання виконується з "
-"файла у сегментів запису заголовка програми %d\n"
-
-#: src/elflint.c:3801
-#, c-format
-msgid ""
-"section [%2zu] '%s' has not type NOBITS but is not read from the file in "
-"segment of program header entry %d\n"
-msgstr ""
-"розділ [%2zu] «%s» не належить до типу NOBITS, але його читання не "
-"виконується з файла у сегментів запису заголовка програми %d\n"
-
-#: src/elflint.c:3812
-#, c-format
-msgid "section [%2zu] '%s' is executable in nonexecutable segment %d\n"
-msgstr "розділ [%2zu] «%s» є виконуваним у невиконуваному сегменті %d\n"
-
-#: src/elflint.c:3822
-#, c-format
-msgid "section [%2zu] '%s' is writable in unwritable segment %d\n"
-msgstr ""
-"розділ [%2zu] «%s» є придатним до запису у непридатному до запису сегменті "
-"%d\n"
-
-#: src/elflint.c:3832
-#, c-format
-msgid ""
-"section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"
-msgstr ""
-"розділ [%2zu] «%s»: встановлено прапорець alloc, але розділ не перебуває у "
-"жодному завантаженому сегменті\n"
-
-#: src/elflint.c:3838
-#, c-format
-msgid ""
-"section [%2zu] '%s': ELF header says this is the section header string table "
-"but type is not SHT_TYPE\n"
-msgstr ""
-"розділ [%2zu] «%s»: заголовок ELF повідомляє про те, що це таблиця рядків "
-"заголовка розділу, але ця таблиця не належить до типу SHT_TYPE\n"
-
-#: src/elflint.c:3846
-#, c-format
-msgid ""
-"section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"
-msgstr ""
-"розділ [%2zu] «%s»: придатні до пересування файли не можуть містити "
-"динамічних таблиць символів\n"
-
-#: src/elflint.c:3897
-#, c-format
-msgid "more than one version symbol table present\n"
-msgstr "виявлено більше за одну таблицю символів версій\n"
-
-#: src/elflint.c:3920
-#, c-format
-msgid "INTERP program header entry but no .interp section\n"
-msgstr "існує запис заголовка програми INTERP, але не розділ .interp\n"
-
-#: src/elflint.c:3931
-#, c-format
-msgid ""
-"loadable segment [%u] is executable but contains no executable sections\n"
-msgstr ""
-"придатний до завантаження сегмент [%u] є виконуваним, але не містить "
-"виконуваних розділів\n"
-
-#: src/elflint.c:3937
-#, c-format
-msgid "loadable segment [%u] is writable but contains no writable sections\n"
-msgstr ""
-"придатний до завантаження розділ [%u] є придатним до запису, але не містить "
-"придатних до запису розділів\n"
-
-#: src/elflint.c:3948
-#, c-format
-msgid ""
-"no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section "
-"exist\n"
-msgstr ""
-"немає розділу .gnu.versym, хоча існує розділ .gnu.versym_d або .gnu."
-"versym_r\n"
-
-#: src/elflint.c:3961
-#, c-format
-msgid "duplicate version index %d\n"
-msgstr "дублікат індексу версії %d\n"
-
-#: src/elflint.c:3975
-#, c-format
-msgid ".gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n"
-msgstr ""
-"існує розділ .gnu.versym, але немає розділу .gnu.versym_d або .gnu.versym_r\n"
-
-#: src/elflint.c:4024
-#, c-format
-msgid "phdr[%d]: unknown core file note type %<PRIu32> at offset %<PRIu64>\n"
-msgstr ""
-"phdr[%d]: невідомий тип нотатки файла core %<PRIu32> за зміщенням %<PRIu64>\n"
-
-#: src/elflint.c:4028
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown core file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"розділ [%2d] «%s»: невідомий тип нотатки файла core %<PRIu32> за зміщенням "
-"%Zu\n"
-
-#: src/elflint.c:4051
-#, c-format
-msgid "phdr[%d]: unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"phdr[%d]: невідомий тип нотатки об’єктного файла %<PRIu32> за зміщенням %Zu\n"
-
-#: src/elflint.c:4055
-#, c-format
-msgid ""
-"section [%2d] '%s': unknown object file note type %<PRIu32> at offset %Zu\n"
-msgstr ""
-"розділ [%2d] «%s»: невідомий тип нотатки об’єктного файла %<PRIu32> за "
-"зміщенням %Zu\n"
-
-#: src/elflint.c:4072
-#, c-format
-msgid "phdr[%d]: no note entries defined for the type of file\n"
-msgstr "phdr[%d]: для цього типу файлів не визначено записів нотаток\n"
-
-#: src/elflint.c:4091
-#, c-format
-msgid "phdr[%d]: cannot get content of note section: %s\n"
-msgstr "phdr[%d]: не вдалося отримати вміст розділу нотаток: %s\n"
-
-#: src/elflint.c:4094
-#, c-format
-msgid "phdr[%d]: extra %<PRIu64> bytes after last note\n"
-msgstr "phdr[%d]: зайві %<PRIu64> байтів після останнього запису нотатки\n"
-
-#: src/elflint.c:4115
-#, c-format
-msgid "section [%2d] '%s': no note entries defined for the type of file\n"
-msgstr ""
-"розділ [%2d] «%s»: для цього типу файлів не визначено записів нотаток\n"
-
-#: src/elflint.c:4122
-#, c-format
-msgid "section [%2d] '%s': cannot get content of note section\n"
-msgstr "розділ [%2d] «%s»: не вдалося отримати вміст розділу нотаток\n"
-
-#: src/elflint.c:4125
-#, c-format
-msgid "section [%2d] '%s': extra %<PRIu64> bytes after last note\n"
-msgstr ""
-"розділ [%2d] «%s»: додаткові %<PRIu64> байтів після останньої нотатки\n"
-
-#: src/elflint.c:4143
-#, c-format
-msgid ""
-"only executables, shared objects, and core files can have program headers\n"
-msgstr ""
-"заголовки програм можуть бути лише у виконуваних файлів, об’єктних файлів "
-"спільного використання або файлів core\n"
-
-#: src/elflint.c:4158
-#, c-format
-msgid "cannot get program header entry %d: %s\n"
-msgstr "не вдалося отримати запис заголовка програми %d: %s\n"
-
-#: src/elflint.c:4167
-#, c-format
-msgid "program header entry %d: unknown program header entry type %#<PRIx64>\n"
-msgstr ""
-"запис заголовка програми %d: невідомий тип запису заголовка програми "
-"%#<PRIx64>\n"
-
-#: src/elflint.c:4178
-#, c-format
-msgid "more than one INTERP entry in program header\n"
-msgstr "більше за один запис INTERP у заголовку програми\n"
-
-#: src/elflint.c:4186
-#, c-format
-msgid "more than one TLS entry in program header\n"
-msgstr "більше за один запис TLS у заголовку програми\n"
-
-#: src/elflint.c:4193
-#, c-format
-msgid "static executable cannot have dynamic sections\n"
-msgstr "у статичному виконуваному файлі не може бути динамічних розділів\n"
-
-#: src/elflint.c:4207
-#, c-format
-msgid "dynamic section reference in program header has wrong offset\n"
-msgstr ""
-"посилання на динамічний розділ у заголовку програми має помилкове зміщення\n"
-
-#: src/elflint.c:4210
-#, c-format
-msgid "dynamic section size mismatch in program and section header\n"
-msgstr ""
-"розміри динамічного розділу у заголовку програми та у заголовку розділу не "
-"збігаються\n"
-
-#: src/elflint.c:4220
-#, c-format
-msgid "more than one GNU_RELRO entry in program header\n"
-msgstr "більше за один запис GNU_RELRO у заголовку програми\n"
-
-#: src/elflint.c:4241
-#, c-format
-msgid "loadable segment GNU_RELRO applies to is not writable\n"
-msgstr ""
-"придатний до завантаження сегмент, до якого звертається GNU_RELRO, "
-"непридатний до запису\n"
-
-#: src/elflint.c:4244
-#, c-format
-msgid "loadable segment [%u] flags do not match GNU_RELRO [%u] flags\n"
-msgstr ""
-"прапорці придатного до завантаження сегмента [%u] не відповідають прапорцям "
-"GNU_RELRO [%u]\n"
-
-#: src/elflint.c:4252 src/elflint.c:4275
-#, c-format
-msgid "%s segment not contained in a loaded segment\n"
-msgstr "сегмент %s не міститься у завантаженому сегменті\n"
-
-#: src/elflint.c:4281
-#, c-format
-msgid "program header offset in ELF header and PHDR entry do not match"
-msgstr "зміщення заголовка програми у заголовку ELF і запис PHDR не збігаються"
-
-#: src/elflint.c:4305
-#, c-format
-msgid "call frame search table reference in program header has wrong offset\n"
-msgstr ""
-"посилання на таблицю вікон викликів у заголовку програми має помилкове "
-"зміщення\n"
-
-#: src/elflint.c:4308
-#, c-format
-msgid "call frame search table size mismatch in program and section header\n"
-msgstr ""
-"розміри таблиці пошуку вікон виклику у заголовку програми та у заголовку "
-"розділу не збігаються\n"
-
-#: src/elflint.c:4321
-#, c-format
-msgid "PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n"
-msgstr "існує PT_GNU_EH_FRAME, хоча немає розділу .eh_frame_hdr\n"
-
-#: src/elflint.c:4329
-#, c-format
-msgid "call frame search table must be allocated\n"
-msgstr "таблицю пошуку вікон викликів має бути розміщено у пам’яті\n"
-
-#: src/elflint.c:4332
-#, c-format
-msgid "section [%2zu] '%s' must be allocated\n"
-msgstr "розділ [%2zu] «%s» має бути розміщено у пам’яті\n"
-
-#: src/elflint.c:4336
-#, c-format
-msgid "call frame search table must not be writable\n"
-msgstr "таблиця пошуку вікон викликів не повинна бути придатною до запису\n"
-
-#: src/elflint.c:4339
-#, c-format
-msgid "section [%2zu] '%s' must not be writable\n"
-msgstr "розділ [%2zu] «%s» не повинен бути придатним до запису\n"
-
-#: src/elflint.c:4344
-#, c-format
-msgid "call frame search table must not be executable\n"
-msgstr "таблиця пошуку вікон викликів не повинна бути придатною до виконання\n"
-
-#: src/elflint.c:4347
-#, c-format
-msgid "section [%2zu] '%s' must not be executable\n"
-msgstr "розділ [%2zu] «%s» не повинен бути придатним до виконання\n"
-
-#: src/elflint.c:4358
-#, c-format
-msgid "program header entry %d: file size greater than memory size\n"
-msgstr "запис заголовка програми %d: розмір файла перевищує об’єм пам’яті\n"
-
-#: src/elflint.c:4365
-#, c-format
-msgid "program header entry %d: alignment not a power of 2\n"
-msgstr "запис заголовка програми %d: значення вирівнювання не є степенем 2\n"
-
-#: src/elflint.c:4368
-#, c-format
-msgid ""
-"program header entry %d: file offset and virtual address not module of "
-"alignment\n"
-msgstr ""
-"запис заголовка програми %d: зміщення у файлі і віртуальна адреса не "
-"співвідносяться з вирівнюванням\n"
-
-#: src/elflint.c:4381
-#, c-format
-msgid ""
-"executable/DSO with .eh_frame_hdr section does not have a PT_GNU_EH_FRAME "
-"program header entry"
-msgstr ""
-"виконуваний модуль/DSO з розділом .eh_frame_hdr не містить запису заголовка "
-"програми PT_GNU_EH_FRAME"
-
-#: src/elflint.c:4415
-#, c-format
-msgid "cannot read ELF header: %s\n"
-msgstr "не вдалося прочитати заголовок ELF: %s\n"
-
-#: src/elflint.c:4441
-#, c-format
-msgid "text relocation flag set but not needed\n"
-msgstr ""
-"встановлено прапорець пересування тексту, але такий прапорець не потрібен\n"
-
-#: src/findtextrel.c:62
-msgid "Input Selection:"
-msgstr "Вибір параметрів виводу даних:"
-
-#: src/findtextrel.c:63
-msgid "Prepend PATH to all file names"
-msgstr "Додавати ШЛЯХ до всіх назв файлів"
-
-#: src/findtextrel.c:65
-msgid "Use PATH as root of debuginfo hierarchy"
-msgstr "Використовувати ШЛЯХ як кореневий каталог для ієрархії debuginfo"
-
-#: src/findtextrel.c:72
-msgid "Locate source of text relocations in FILEs (a.out by default)."
-msgstr "Шукає джерело пересуваного тексту у ФАЙЛАХ (типово, a.out)."
-
-#: src/findtextrel.c:76 src/nm.c:108 src/objdump.c:72 src/size.c:84
-#: src/strings.c:84 src/strip.c:96
-msgid "[FILE...]"
-msgstr "[ФАЙЛ...]"
-
-#: src/findtextrel.c:238
-#, c-format
-msgid "cannot get ELF header '%s': %s"
-msgstr "не вдалося отримати заголовок ELF «%s»: %s"
-
-#: src/findtextrel.c:249
-#, c-format
-msgid "'%s' is not a DSO or PIE"
-msgstr "«%s» не є DSO або PIE"
-
-#: src/findtextrel.c:269
-#, c-format
-msgid "getting get section header of section %zu: %s"
-msgstr "отримання заголовка розділу get розділу %zu: %s"
-
-#: src/findtextrel.c:292
-#, c-format
-msgid "cannot read dynamic section: %s"
-msgstr "не вдалося прочитати динамічний розділ: %s"
-
-#: src/findtextrel.c:313
-#, c-format
-msgid "no text relocations reported in '%s'"
-msgstr "у «%s» не виявлено пересувань тексту"
-
-#: src/findtextrel.c:325
-#, c-format
-msgid "while reading ELF file"
-msgstr "під час спроби читання файла ELF"
-
-#: src/findtextrel.c:329
-#, fuzzy, c-format
-msgid "cannot get program header count: %s"
-msgstr "не вдалося отримати заголовок програми: %s"
-
-#: src/findtextrel.c:340 src/findtextrel.c:357
-#, fuzzy, c-format
-msgid "cannot get program header index at offset %zd: %s"
-msgstr "не вдалося отримати індекс заголовка програми за зміщенням %d: %s"
-
-#: src/findtextrel.c:409
-#, c-format
-msgid "cannot get section header of section %Zu: %s"
-msgstr "не вдалося отримати заголовок розділу %Zu: %s"
-
-#: src/findtextrel.c:421
-#, c-format
-msgid "cannot get symbol table section %zu in '%s': %s"
-msgstr "не вдалося отримати таблицю символів розділу %zu у «%s»: %s"
-
-#: src/findtextrel.c:441 src/findtextrel.c:464
-#, c-format
-msgid "cannot get relocation at index %d in section %zu in '%s': %s"
-msgstr ""
-"не вдалося отримати пересування за індексом %d у розділі %zu у «%s»: %s"
-
-#: src/findtextrel.c:529
-#, c-format
-msgid "%s not compiled with -fpic/-fPIC\n"
-msgstr "%s не зібрано з -fpic/-fPIC\n"
-
-#: src/findtextrel.c:582
-#, c-format
-msgid ""
-"the file containing the function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"файл, що містить функцію «%s», не було зібрано з параметрами -fpic/-fPIC\n"
-
-#: src/findtextrel.c:589 src/findtextrel.c:609
-#, c-format
-msgid ""
-"the file containing the function '%s' might not be compiled with -fpic/-"
-"fPIC\n"
-msgstr ""
-"файл, що містить функцію «%s», ймовірно, не було зібрано з параметрами -"
-"fpic/-fPIC\n"
-
-#: src/findtextrel.c:597
-#, c-format
-msgid ""
-"either the file containing the function '%s' or the file containing the "
-"function '%s' is not compiled with -fpic/-fPIC\n"
-msgstr ""
-"файл, що містить функцію «%s», або файл, що містить функцію «%s», зібрано "
-"без параметрів -fpic/-fPIC\n"
-
-#: src/findtextrel.c:617
-#, c-format
-msgid ""
-"a relocation modifies memory at offset %llu in a write-protected segment\n"
-msgstr ""
-"пересування призводить до зміни запису пам’яті за зміщенням %llu у "
-"захищеному від запису сегменті\n"
-
-#: src/i386_ld.c:202
-#, c-format
-msgid "cannot allocate PLT section: %s"
-msgstr "не вдалося розмістити PLT-розділ: %s"
-
-#: src/i386_ld.c:224
-#, c-format
-msgid "cannot allocate PLTREL section: %s"
-msgstr "не вдалося розмістити розділ PLTREL: %s"
-
-#: src/i386_ld.c:245
-#, c-format
-msgid "cannot allocate GOT section: %s"
-msgstr "не вдалося розмістити розділ GOT: %s"
-
-#: src/i386_ld.c:266
-#, c-format
-msgid "cannot allocate GOTPLT section: %s"
-msgstr "не вдалося розмістити розділ GOTPLT: %s"
-
-#: src/i386_ld.c:653
-#, c-format
-msgid "initial-executable TLS relocation cannot be used "
-msgstr ""
-"не можна використовувати пересування TLS у початковому виконуваному файлі"
-
-#: src/ld.c:79
-msgid "Input File Control:"
-msgstr "Керування файлом вхідних даних:"
-
-#: src/ld.c:81
-msgid "Include whole archives in the output from now on."
-msgstr "Відтепер включати цілі архіви до виведених даних."
-
-#: src/ld.c:83
-msgid "Stop including the whole archives in the output."
-msgstr "Припинити включення цілих архівів до вихідних даних."
-
-#: src/ld.c:84 src/ld.c:98 src/ld.c:176
-msgid "FILE"
-msgstr "ФАЙЛ"
-
-#: src/ld.c:85
-msgid "Start a group."
-msgstr "Почати групу."
-
-#: src/ld.c:86
-msgid "End a group."
-msgstr "Завершити групу."
-
-#: src/ld.c:87
-msgid "PATH"
-msgstr "ШЛЯХ"
-
-#: src/ld.c:88
-msgid "Add PATH to list of directories files are searched in."
-msgstr "Додати ШЛЯХ до списку каталогів, у яких слід шукати файли."
-
-#: src/ld.c:90
-msgid "Only set DT_NEEDED for following dynamic libs if actually used"
-msgstr ""
-"Встановлювати DT_NEEDED лише для наступних динамічних бібліотек, якщо він "
-"справді використовується"
-
-#: src/ld.c:92
-msgid "Always set DT_NEEDED for following dynamic libs"
-msgstr "Завжди встановлювати DT_NEEDED для наступних динамічних бібліотек"
-
-#: src/ld.c:94
-msgid "Ignore LD_LIBRARY_PATH environment variable."
-msgstr "Ігнорувати змінну середовища LD_LIBRARY_PATH."
-
-#: src/ld.c:97
-msgid "Output File Control:"
-msgstr "Керування файлом виведених даних:"
-
-#: src/ld.c:98
-msgid "Place output in FILE."
-msgstr "Вивести дані до ФАЙЛА."
-
-#: src/ld.c:101
-msgid "Object is marked to not use default search path at runtime."
-msgstr ""
-"Об’єкт позначено, як таких, який не використовує типовий шлях пошуку під час "
-"запуску."
-
-#: src/ld.c:103
-msgid "Same as --whole-archive."
-msgstr "Те саме, що --whole-archive."
-
-#: src/ld.c:104
-msgid ""
-"Default rules of extracting from archive; weak references are not enough."
-msgstr "Типові правила видобування з архівів; слабкого посилання недостатньо."
-
-#: src/ld.c:108
-msgid "Weak references cause extraction from archive."
-msgstr "Слабкі посилання спричиняють видобування з архіву."
-
-#: src/ld.c:110
-msgid "Allow multiple definitions; first is used."
-msgstr "Дозволити декілька визначень. Використовуватиметься лише перше."
-
-#: src/ld.c:112
-msgid "Disallow/allow undefined symbols in DSOs."
-msgstr "Заборонити/Дозволити невизначені символи у DSO."
-
-#: src/ld.c:115
-msgid "Object requires immediate handling of $ORIGIN."
-msgstr "Об’єкт вимагає негайної обробки $ORIGIN."
-
-#: src/ld.c:117
-msgid "Relocation will not be processed lazily."
-msgstr "Переміщення не буде оброблятися у лінивому режимі."
-
-#: src/ld.c:119
-msgid "Object cannot be unloaded at runtime."
-msgstr "Об’єкт не можна вивантажувати під час запуску."
-
-#: src/ld.c:121
-msgid "Mark object to be initialized first."
-msgstr "Позначити об’єкт, як такий, що потребує ініціалізації."
-
-#: src/ld.c:123
-msgid "Enable/disable lazy-loading flag for following dependencies."
-msgstr ""
-"Увімкнути/Вимкнути прапорець лінивого завантаження для наведених нижче "
-"залежностей."
-
-#: src/ld.c:125
-msgid "Mark object as not loadable with 'dlopen'."
-msgstr ""
-"Позначити об’єкт, як непридатний для завантаження за допомогою «dlopen»."
-
-#: src/ld.c:127
-msgid "Ignore/record dependencies on unused DSOs."
-msgstr "Ігнорувати/Записувати залежності невикористаних DSO."
-
-#: src/ld.c:129
-msgid "Generated DSO will be a system library."
-msgstr "Створена DSO буде системною бібліотекою."
-
-#: src/ld.c:130
-msgid "ADDRESS"
-msgstr "АДРЕСА"
-
-#: src/ld.c:130
-msgid "Set entry point address."
-msgstr "Встановити адресу точки входу."
-
-#: src/ld.c:133
-msgid "Do not link against shared libraries."
-msgstr "Не компонувати з бібліотеками спільного використання."
-
-#: src/ld.c:136
-msgid "Prefer linking against shared libraries."
-msgstr "Надавати перевагу компонуванню з бібліотеками спільного використання."
-
-#: src/ld.c:137
-msgid "Export all dynamic symbols."
-msgstr "Експортувати всі динамічні символи."
-
-#: src/ld.c:138
-msgid "Strip all symbols."
-msgstr "Вилучити всі символи."
-
-#: src/ld.c:139
-msgid "Strip debugging symbols."
-msgstr "Вилучити символи зневаджування."
-
-#: src/ld.c:141
-msgid "Assume pagesize for the target system to be SIZE."
-msgstr ""
-"Вважати розмір сторінки для системи призначення рівним значенню РОЗМІР."
-
-#: src/ld.c:143
-msgid "Set runtime DSO search path."
-msgstr "Встановити шлях пошуку DSO під час запуску."
-
-#: src/ld.c:146
-msgid "Set link time DSO search path."
-msgstr "Встановити шлях пошуку DSO під час компонування."
-
-#: src/ld.c:147
-msgid "Generate dynamic shared object."
-msgstr "Створити динамічний об’єкт спільного використання."
-
-#: src/ld.c:148
-msgid "Generate relocatable object."
-msgstr "Створити придатний для пересування об’єкт."
-
-#: src/ld.c:151
-msgid "Causes symbol not assigned to a version be reduced to local."
-msgstr ""
-"Спричиняє перетворення символів, не прив’язаних до версії, на локальні."
-
-#: src/ld.c:152
-msgid "Remove unused sections."
-msgstr "Вилучити невикористані розділи."
-
-#: src/ld.c:155
-msgid "Don't remove unused sections."
-msgstr "Не вилучати невикористані розділи."
-
-#: src/ld.c:156
-msgid "Set soname of shared object."
-msgstr "Встановити soname об’єкта спільного використання."
-
-#: src/ld.c:157
-msgid "Set the dynamic linker name."
-msgstr "Встановити назву динамічного компонувальника."
-
-#: src/ld.c:160
-msgid "Add/suppress addition indentifying link-editor to .comment section."
-msgstr ""
-"Додати/Придушити додавання ідентифікації редактора компонування до розділу ."
-"comment."
-
-#: src/ld.c:163
-msgid "Create .eh_frame_hdr section"
-msgstr "Створити розділ .eh_frame_hdr"
-
-#: src/ld.c:165
-msgid "Set hash style to sysv, gnu or both."
-msgstr "Встановити формат хешування у значення sysv, gnu або both."
-
-#: src/ld.c:167
-msgid "Generate build ID note (md5, sha1 (default), uuid)."
-msgstr "Створити запису ідентифікатора збирання (md5, sha1 (типовий), uuid)."
-
-#: src/ld.c:169
-msgid "Linker Operation Control:"
-msgstr "Керування роботою компонувальника:"
-
-#: src/ld.c:170
-msgid "Verbose messages."
-msgstr "Докладні повідомлення."
-
-#: src/ld.c:171
-msgid "Trace file opens."
-msgstr "Спостерігати за відкриттями файлів."
-
-#: src/ld.c:173
-msgid "Trade speed for less memory usage"
-msgstr "Зменшити споживання пам’яті за рахунок швидкості"
-
-#: src/ld.c:174
-msgid "LEVEL"
-msgstr "РІВЕНЬ"
-
-#: src/ld.c:175
-msgid "Set optimization level to LEVEL."
-msgstr "Встановити рівень оптимізації РІВЕНЬ."
-
-#: src/ld.c:176
-msgid "Use linker script in FILE."
-msgstr "Використати скрипт компонування у ФАЙЛі."
-
-#: src/ld.c:179
-msgid "Select to get parser debug information"
-msgstr "Позначте, щоб отримати діагностичні дані обробника"
-
-#: src/ld.c:182
-msgid "Read version information from FILE."
-msgstr "Прочитати відомості щодо версії з ФАЙЛа."
-
-#: src/ld.c:183
-msgid "Set emulation to NAME."
-msgstr "Встановити режим емуляції на основі НАЗВИ."
-
-#: src/ld.c:189
-msgid "Combine object and archive files."
-msgstr "Комбінує об’єктні файли і файли архівів."
-
-#: src/ld.c:192
-msgid "[FILE]..."
-msgstr "[ФАЙЛ]..."
-
-#: src/ld.c:325
-#, c-format
-msgid "At least one input file needed"
-msgstr "Потрібен принаймні один файл вхідних даних"
-
-#: src/ld.c:341
-#, c-format
-msgid "error while preparing linking"
-msgstr "помилка під час приготування до компонування"
-
-#: src/ld.c:348
-#, c-format
-msgid "cannot open linker script '%s'"
-msgstr "не вдалося відкрити скрипт компонування «%s»"
-
-#: src/ld.c:389
-#, c-format
-msgid "-( without matching -)"
-msgstr "-( без відповідника -)"
-
-#: src/ld.c:564 src/ld.c:602
-#, c-format
-msgid "only one option of -G and -r is allowed"
-msgstr "можна використовувати лише один з параметрів -G або -r"
-
-#: src/ld.c:586
-#, c-format
-msgid "more than one '-m' parameter"
-msgstr "декілька параметрів «-m»"
-
-#: src/ld.c:596 src/ld.c:1005
-#, c-format
-msgid "unknown option `-%c %s'"
-msgstr "невідомий параметр «-%c %s»"
-
-#: src/ld.c:638
-#, c-format
-msgid "invalid page size value '%s': ignored"
-msgstr "некоректне значення розміру сторінки «%s»: проігноровано"
-
-#: src/ld.c:679
-#, c-format
-msgid "invalid hash style '%s'"
-msgstr "некоректний формат хешування «%s»"
-
-#: src/ld.c:689
-#, c-format
-msgid "invalid build-ID style '%s'"
-msgstr "некоректний формат ідентифікатора збирання «%s»"
-
-#: src/ld.c:777
-#, c-format
-msgid "More than one output file name given."
-msgstr "Вказано декілька назв файлів виведення даних."
-
-#: src/ld.c:794
-#, c-format
-msgid "Invalid optimization level `%s'"
-msgstr "Некоректний рівень оптимізації «%s»"
-
-#: src/ld.c:842
-#, c-format
-msgid "nested -( -) groups are not allowed"
-msgstr "підтримки вкладених груп -( -) не передбачено"
-
-#: src/ld.c:861
-#, c-format
-msgid "-) without matching -("
-msgstr "-) без відповідника -("
-
-#: src/ld.c:1038
-#, c-format
-msgid "unknown option '-%c %s'"
-msgstr "невідомий параметр «-%c %s»"
-
-#: src/ld.c:1142
-#, c-format
-msgid "could not find input file to determine output file format"
-msgstr ""
-"не вдалося виявити файл вхідних даних для визначення формату файла вихідних "
-"даних"
-
-#: src/ld.c:1144
-#, c-format
-msgid "try again with an appropriate '-m' parameter"
-msgstr "повторіть спробу з належним параметром «-m»"
-
-#: src/ld.c:1438
-#, c-format
-msgid "cannot read version script '%s'"
-msgstr "не вдалося прочитати скрипт версій «%s»"
-
-#: src/ld.c:1504 src/ld.c:1543
-#, c-format
-msgid "duplicate definition of '%s' in linker script"
-msgstr "повторне визначення «%s» у скрипті компонування"
-
-#: src/ldgeneric.c:201 src/ldgeneric.c:5141
-#, c-format
-msgid "cannot create string table"
-msgstr "не вдалося створити таблицю рядків"
-
-#: src/ldgeneric.c:247
-#, c-format
-msgid "cannot load ld backend library '%s': %s"
-msgstr "не вдалося завантажити бібліотеку сервера ld «%s»: %s"
-
-#: src/ldgeneric.c:257
-#, c-format
-msgid "cannot find init function in ld backend library '%s': %s"
-msgstr "не вдалося виявити функцію init у бібліотеці сервера ld «%s»: %s"
-
-#: src/ldgeneric.c:300
-#, c-format
-msgid "%s listed more than once as input"
-msgstr "%s вказано декілька разів як джерело даних"
-
-#: src/ldgeneric.c:414
-#, c-format
-msgid "%s (for -l%s)\n"
-msgstr "%s (для -l%s)\n"
-
-#: src/ldgeneric.c:415
-#, c-format
-msgid "%s (for DT_NEEDED %s)\n"
-msgstr "%s (для DT_NEEDED %s)\n"
-
-#: src/ldgeneric.c:563
-#, c-format
-msgid "Warning: type of `%s' changed from %s in %s to %s in %s"
-msgstr "Попередження: тип «%s» змінився з %s у %s на %s у %s"
-
-#: src/ldgeneric.c:576
-#, c-format
-msgid "Warning: size of `%s' changed from %<PRIu64> in %s to %<PRIu64> in %s"
-msgstr "Попередження: розмір «%s» змінено з %<PRIu64> у %s на %<PRIu64> у %s"
-
-#: src/ldgeneric.c:651 src/ldgeneric.c:1112 src/readelf.c:527
-#: src/readelf.c:829 src/strip.c:568
-#, c-format
-msgid "cannot determine number of sections: %s"
-msgstr "не вдалося визначити кількість розділів: %s"
-
-#: src/ldgeneric.c:667
-#, c-format
-msgid "(%s+%#<PRIx64>): multiple definition of %s `%s'\n"
-msgstr "(%s+%#<PRIx64>): повторне визначення %s «%s»\n"
-
-#: src/ldgeneric.c:690
-#, c-format
-msgid "(%s+%#<PRIx64>): first defined here\n"
-msgstr "(%s+%#<PRIx64>): вперше визначено тут\n"
-
-#: src/ldgeneric.c:809
-#, c-format
-msgid "%s: cannot get section group data: %s"
-msgstr "%s: не вдалося отримати дані групи розділів: %s"
-
-#: src/ldgeneric.c:830
-#, c-format
-msgid "%s: section '%s' with group flag set does not belong to any group"
-msgstr ""
-"%s: розділ «%s» з встановленим прапорцем групи не належить жодній групі"
-
-#: src/ldgeneric.c:875
-#, c-format
-msgid "%s: section [%2d] '%s' is not in the correct section group"
-msgstr "%s: розділ [%2d] «%s» не належить до відповідної групи розділів"
-
-#: src/ldgeneric.c:1146 src/ldgeneric.c:1403 src/ldgeneric.c:1412
-#: src/ldgeneric.c:1471 src/ldgeneric.c:1480 src/ldgeneric.c:1743
-#: src/ldgeneric.c:1995
-#, c-format
-msgid "%s: invalid ELF file (%s:%d)\n"
-msgstr "%s: некоректний файл ELF (%s:%d)\n"
-
-#: src/ldgeneric.c:1240
-#, c-format
-msgid "%s: only files of type ET_REL might contain section groups"
-msgstr "%s: групи розділів можуть містити лише файли типу ET_REL"
-
-#: src/ldgeneric.c:1292
-#, c-format
-msgid "%s: cannot determine signature of section group [%2zd] '%s': %s"
-msgstr "%s: не вдалося визначити підпис групи розділів [%2zd] «%s»: %s"
-
-#: src/ldgeneric.c:1304
-#, c-format
-msgid "%s: cannot get content of section group [%2zd] '%s': %s'"
-msgstr "%s: не вдалося отримати вміст групи розділів [%2zd] «%s»: %s'"
-
-#: src/ldgeneric.c:1318
-#, c-format
-msgid ""
-"%s: group member %zu of section group [%2zd] '%s' has too high index: "
-"%<PRIu32>"
-msgstr ""
-"%s: елемент групи %zu групи розділів [%2zd] «%s» має надто високий індекс: "
-"%<PRIu32>"
-
-#: src/ldgeneric.c:1340
-#, c-format
-msgid "%s: section '%s' has unknown type: %d"
-msgstr "%s: розділ «%s» належить до невідомого типу: %d"
-
-#: src/ldgeneric.c:1719
-#, c-format
-msgid "cannot get descriptor for ELF file (%s:%d): %s\n"
-msgstr "не вдалося отримати дескриптор файла ELF (%s:%d): %s\n"
-
-#: src/ldgeneric.c:1889
-#, c-format
-msgid "cannot read archive `%s': %s"
-msgstr "не вдалося прочитати архів «%s»: %s"
-
-#: src/ldgeneric.c:2010
-#, c-format
-msgid "file of type %s cannot be linked in\n"
-msgstr "файл типу %s не можна скомпонувати у\n"
-
-#: src/ldgeneric.c:2022
-#, c-format
-msgid "%s: input file incompatible with ELF machine type %s\n"
-msgstr "%s: файл вхідних даних несумісний з типом архітектури ELF %s\n"
-
-#: src/ldgeneric.c:2034
-#, c-format
-msgid "%s: cannot get section header string table index: %s\n"
-msgstr ""
-"%s: не вдалося отримати покажчик таблиці рядків заголовка розділу: %s\n"
-
-#: src/ldgeneric.c:2063
-#, c-format
-msgid "cannot use DSO '%s' when generating relocatable object file"
-msgstr ""
-"не вдалося використати DSO «%s» під час створення придатного до пересування "
-"об’єктного файла"
-
-#: src/ldgeneric.c:2148
-#, c-format
-msgid "input file '%s' ignored"
-msgstr "файл вхідних даних «%s» проігноровано"
-
-#: src/ldgeneric.c:2362
-#, c-format
-msgid "undefined symbol `%s' in %s"
-msgstr "невизначений символ «%s» у %s"
-
-#: src/ldgeneric.c:2692
-#, c-format
-msgid "cannot create ELF descriptor for output file: %s"
-msgstr "не вдалося створити дескриптор ELF для файла вихідних даних: %s"
-
-#: src/ldgeneric.c:2699
-#, c-format
-msgid "could not create ELF header for output file: %s"
-msgstr "не вдалося створити заголовок ELF для файла виведених даних: %s"
-
-#: src/ldgeneric.c:3214 src/ldgeneric.c:3284 src/ldgeneric.c:3320
-#: src/ldgeneric.c:4447 src/ldgeneric.c:4496 src/ldgeneric.c:4528
-#: src/ldgeneric.c:4763 src/ldgeneric.c:4818 src/ldgeneric.c:5065
-#: src/ldgeneric.c:5121 src/ldgeneric.c:5590 src/ldgeneric.c:5602
-#, c-format
-msgid "cannot create section for output file: %s"
-msgstr "не вдалося створити розділ для файла вихідних даних: %s"
-
-#: src/ldgeneric.c:3434
-#, c-format
-msgid "address computation expression contains variable '%s'"
-msgstr "вираз обчислення адреси містить змінну «%s»"
-
-#: src/ldgeneric.c:3479
-#, c-format
-msgid ""
-"argument '%<PRIuMAX>' of ALIGN in address computation expression is no power "
-"of two"
-msgstr ""
-"значення «%<PRIuMAX>» ALIGN у виразі обчислення адреси не є степенем двійки"
-
-#: src/ldgeneric.c:3674
-#, c-format
-msgid "cannot find entry symbol '%s': defaulting to %#0*<PRIx64>"
-msgstr ""
-"не вдалося знайти символ запису «%s»: встановлено типове значення "
-"%#0*<PRIx64>"
-
-#: src/ldgeneric.c:3680
-#, c-format
-msgid "no entry symbol specified: defaulting to %#0*<PRIx64>"
-msgstr "не вказано символу запису: встановлено типове значення %#0*<PRIx64>"
-
-#: src/ldgeneric.c:3910
-#, c-format
-msgid "cannot create GNU hash table section for output file: %s"
-msgstr ""
-"не вдалося створити розділ таблиці хешів GNU для файла вихідних даних: %s"
-
-#: src/ldgeneric.c:4061
-#, c-format
-msgid "cannot create hash table section for output file: %s"
-msgstr "не вдалося створити розділ таблиці хешів для файла вихідних даних: %s"
-
-#: src/ldgeneric.c:4104
-#, c-format
-msgid "cannot create build ID section: %s"
-msgstr "не вдалося створити розділу ідентифікатора збирання: %s"
-
-#: src/ldgeneric.c:4181
-#, c-format
-msgid "cannot convert section data to file format: %s"
-msgstr "не вдалося перетворити дані розділу у формат файла: %s"
-
-#: src/ldgeneric.c:4190
-#, c-format
-msgid "cannot convert section data to memory format: %s"
-msgstr "не вдалося перетворити дані розділу у формат вмісту пам’яті: %s"
-
-#: src/ldgeneric.c:4251
-#, c-format
-msgid "cannot read enough data for UUID"
-msgstr "не вдалося прочитати достатньо даних для встановлення UUID"
-
-#: src/ldgeneric.c:4348 src/ldgeneric.c:4369 src/ldgeneric.c:4398
-#: src/ldgeneric.c:6051
-#, c-format
-msgid "cannot create symbol table for output file: %s"
-msgstr "не вдалося створити таблицю символів для файла вихідних даних: %s"
-
-#: src/ldgeneric.c:5290 src/ldgeneric.c:5842
-#, c-format
-msgid "section index too large in dynamic symbol table"
-msgstr "у таблиці динамічних символів покажчик є занадто великим"
-
-#: src/ldgeneric.c:5735
-#, c-format
-msgid "cannot create versioning section: %s"
-msgstr "не вдалося створити розділ версій: %s"
-
-#: src/ldgeneric.c:5808
-#, c-format
-msgid "cannot create dynamic symbol table for output file: %s"
-msgstr ""
-"не вдалося створити динамічну таблицю символів для файла вихідних даних: %s"
-
-#: src/ldgeneric.c:5983
-#, c-format
-msgid "cannot create versioning data: %s"
-msgstr "не вдалося створити даних версії: %s"
-
-#: src/ldgeneric.c:6083 src/ldgeneric.c:6096 src/ldgeneric.c:6160
-#: src/ldgeneric.c:6168
-#, c-format
-msgid "cannot create section header string section: %s"
-msgstr "не вдалося створити розділ рядків заголовка розділу: %s"
-
-#: src/ldgeneric.c:6090
-#, c-format
-msgid "cannot create section header string section"
-msgstr "не вдалося створити розділ рядків заголовка розділу"
-
-#: src/ldgeneric.c:6248
-#, c-format
-msgid "cannot create program header: %s"
-msgstr "не вдалося створити заголовок програми: %s"
-
-#: src/ldgeneric.c:6256
-#, c-format
-msgid "while determining file layout: %s"
-msgstr "під час визначення компонування файла: %s"
-
-#: src/ldgeneric.c:6377
-#, c-format
-msgid "internal error: non-nobits section follows nobits section"
-msgstr "внутрішня помилка: небезбітовий розділ слідом за безбітовим розділом"
-
-#: src/ldgeneric.c:6914
-#, c-format
-msgid "cannot get header of 0th section: %s"
-msgstr "не вдалося отримати заголовок 0-го розділу: %s"
-
-#: src/ldgeneric.c:6930 src/unstrip.c:1822
-#, c-format
-msgid "cannot update ELF header: %s"
-msgstr "не вдалося оновити заголовок ELF: %s"
-
-#: src/ldgeneric.c:6961
-#, c-format
-msgid "linker backend didn't specify function to relocate section"
-msgstr "у сервері компонування не визначено функції для розділу пересування"
-
-#: src/ldgeneric.c:6973
-#, c-format
-msgid "while writing output file: %s"
-msgstr "під час запису файла вихідних даних: %s"
-
-#: src/ldgeneric.c:6978
-#, c-format
-msgid "while finishing output file: %s"
-msgstr "під час закриття файла вихідних даних: %s"
-
-#: src/ldgeneric.c:6984
-#, c-format
-msgid "cannot stat output file"
-msgstr "не вдалося обробити stat файл виводу даних"
-
-#: src/ldgeneric.c:7000
-#, c-format
-msgid "WARNING: temporary output file overwritten before linking finished"
-msgstr ""
-"ПОПЕРЕДЖЕННЯ: файл тимчасового виводу даних було перезаписано до завершення "
-"компонування"
-
-#: src/ldgeneric.c:7053 src/ldgeneric.c:7064 src/ldgeneric.c:7075
-#: src/ldgeneric.c:7086 src/ldgeneric.c:7105 src/ldgeneric.c:7118
-#: src/ldgeneric.c:7130
-#, c-format
-msgid "no machine specific '%s' implementation"
-msgstr "не специфічна для архітектури реалізація «%s»"
-
-#: src/ldscript.y:170
-msgid "mode for segment invalid\n"
-msgstr "режим сегмента є некоректним\n"
-
-#: src/ldscript.y:457
-#, c-format
-msgid "while reading version script '%s': %s at line %d"
-msgstr "під час читання скрипту версій «%s»: %s у рядку %d"
-
-#: src/ldscript.y:458
-#, c-format
-msgid "while reading linker script '%s': %s at line %d"
-msgstr "під час читання скрипту компонування «%s»: %s у рядку %d"
-
-#: src/ldscript.y:737
-#, c-format
-msgid "symbol '%s' is declared both local and global for unnamed version"
-msgstr ""
-"символ «%s» оголошено локально і на загальному рівні для версії без назви"
-
-#: src/ldscript.y:739
-#, c-format
-msgid "symbol '%s' is declared both local and global for version '%s'"
-msgstr "символ «%s» оголошено локально і на загальному рівні для версії «%s»"
-
-#: src/ldscript.y:759 src/ldscript.y:766
-#, c-format
-msgid "default visibility set as local and global"
-msgstr "типову видимість визначено як локальну і загальну"
-
-#: src/nm.c:66 src/strip.c:68
-msgid "Output selection:"
-msgstr "Вибір виводу:"
-
-#: src/nm.c:67
-msgid "Display debugger-only symbols"
-msgstr "Показувати лише діагностичні символи"
-
-#: src/nm.c:68
-msgid "Display only defined symbols"
-msgstr "Показувати лише визначені символи"
-
-#: src/nm.c:71
-msgid "Display dynamic symbols instead of normal symbols"
-msgstr "Показувати динамічні символи замість звичайних символів"
-
-#: src/nm.c:72
-msgid "Display only external symbols"
-msgstr "Показувати лише зовнішні символи"
-
-#: src/nm.c:73
-msgid "Display only undefined symbols"
-msgstr "Показувати лише невизначені символи"
-
-#: src/nm.c:75
-msgid "Include index for symbols from archive members"
-msgstr "Включити покажчик для символів з елементів архіву"
-
-#: src/nm.c:77 src/size.c:58
-msgid "Output format:"
-msgstr "Формат виводу:"
-
-#: src/nm.c:79
-msgid "Print name of the input file before every symbol"
-msgstr "Виводити перед кожним символом назву вхідного файла"
-
-#: src/nm.c:82
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd', `sysv' or `posix'. The "
-"default is `sysv'"
-msgstr ""
-"Використовувати формат виводу ФОРМАТ. ФОРМАТом може бути «bsd», «sysv» або "
-"«posix». Типовим форматом є «sysv»"
-
-#: src/nm.c:84
-msgid "Same as --format=bsd"
-msgstr "Те саме, що і --format=bsd"
-
-#: src/nm.c:85
-msgid "Same as --format=posix"
-msgstr "Те саме, що і --format=posix"
-
-#: src/nm.c:86 src/size.c:64
-msgid "Use RADIX for printing symbol values"
-msgstr "Використовувати ОСНОВУ числення для виводу символьних значень"
-
-#: src/nm.c:87
-msgid "Mark special symbols"
-msgstr "Позначати спеціальні символи"
-
-#: src/nm.c:89
-msgid "Print size of defined symbols"
-msgstr "Вивести розмір визначених символів"
-
-#: src/nm.c:91 src/size.c:72 src/strip.c:73 src/unstrip.c:73
-msgid "Output options:"
-msgstr "Параметри виводу:"
-
-#: src/nm.c:92
-msgid "Sort symbols numerically by address"
-msgstr "Числове впорядкування символів за адресою"
-
-#: src/nm.c:94
-msgid "Do not sort the symbols"
-msgstr "Не впорядковувати символи"
-
-#: src/nm.c:95
-msgid "Reverse the sense of the sort"
-msgstr "Змінити порядок на протилежний"
-
-#: src/nm.c:98
-msgid "Decode low-level symbol names into source code names"
-msgstr "Визначати за низькорівневими назвами символів назви у початковому коді"
-
-#: src/nm.c:105
-msgid "List symbols from FILEs (a.out by default)."
-msgstr "Показати список символів з ФАЙЛів (типово з a.out)."
-
-#: src/nm.c:116 src/objdump.c:80
-msgid "Output formatting"
-msgstr "Форматування виводу"
-
-#: src/nm.c:140 src/objdump.c:104 src/size.c:109 src/strip.c:120
-#, c-format
-msgid "%s: INTERNAL ERROR %d (%s-%s): %s"
-msgstr "%s: ВНУТРІШНЯ ПОМИЛКА %d (%s-%s): %s"
-
-#: src/nm.c:398 src/nm.c:410 src/size.c:309 src/size.c:318 src/size.c:329
-#: src/strip.c:2160
-#, c-format
-msgid "while closing '%s'"
-msgstr "під час закриття «%s»"
-
-#: src/nm.c:420 src/objdump.c:296 src/strip.c:376
-#, c-format
-msgid "%s: File format not recognized"
-msgstr "%s: не вдалося розпізнати формат файла"
-
-#: src/nm.c:460
-msgid ""
-"\n"
-"Archive index:\n"
-msgstr ""
-"\n"
-"Покажчик архіву:\n"
-
-#: src/nm.c:469
-#, c-format
-msgid "invalid offset %zu for symbol %s"
-msgstr "некоректне зміщення %zu для символу %s"
-
-#: src/nm.c:474
-#, c-format
-msgid "%s in %s\n"
-msgstr "%s у %s\n"
-
-#: src/nm.c:482
-#, c-format
-msgid "cannot reset archive offset to beginning"
-msgstr "не вдалося відновити зміщення початку архіву"
-
-#: src/nm.c:506 src/objdump.c:344
-#, c-format
-msgid "%s%s%s: file format not recognized"
-msgstr "%s%s%s: не вдалося розпізнати формат файла"
-
-#: src/nm.c:718
-#, c-format
-msgid "cannot create search tree"
-msgstr "не вдалося створити дерево пошуку"
-
-#: src/nm.c:757 src/nm.c:1163 src/objdump.c:793 src/readelf.c:536
-#: src/readelf.c:1085 src/readelf.c:1245 src/readelf.c:1393 src/readelf.c:1579
-#: src/readelf.c:1785 src/readelf.c:1975 src/readelf.c:2202 src/readelf.c:2460
-#: src/readelf.c:2536 src/readelf.c:2623 src/readelf.c:3201 src/readelf.c:3237
-#: src/readelf.c:3300 src/readelf.c:8187 src/readelf.c:9273 src/readelf.c:9420
-#: src/readelf.c:9488 src/size.c:417 src/size.c:486 src/strip.c:503
-#, c-format
-msgid "cannot get section header string table index"
-msgstr "не вдалося визначити індекс заголовка розділу у таблиці рядків"
-
-#: src/nm.c:784
-#, c-format
-msgid ""
-"\n"
-"\n"
-"Symbols from %s:\n"
-"\n"
-msgstr ""
-"\n"
-"\n"
-"Символи з %s:\n"
-"\n"
-
-#: src/nm.c:787
-#, c-format
-msgid ""
-"%*s%-*s %-*s Class Type %-*s %*s Section\n"
-"\n"
-msgstr ""
-"%*s%-*s %-*s Клас Тип %-*s %*s Розділ\n"
-"\n"
-
-#: src/nm.c:1173
-#, c-format
-msgid "%s: entry size in section `%s' is not what we expect"
-msgstr "%s: розмір запису у розділі «%s» не є очікуваним"
-
-#: src/nm.c:1177
-#, c-format
-msgid "%s: size of section `%s' is not multiple of entry size"
-msgstr "%s: розмір розділу «%s» не є кратним до розміру запису"
-
-#: src/nm.c:1435
-#, c-format
-msgid "%s%s%s%s: Invalid operation"
-msgstr "%s%s%s%s: некоректна дія"
-
-#: src/nm.c:1492
-#, c-format
-msgid "%s%s%s: no symbols"
-msgstr "%s%s%s: немає символів"
-
-#: src/objdump.c:53
-msgid "Mode selection:"
-msgstr "Вибір режиму:"
-
-#: src/objdump.c:54
-msgid "Display relocation information."
-msgstr "Показати інформацію про пересування."
-
-#: src/objdump.c:56
-msgid "Display the full contents of all sections requested"
-msgstr "Показати весь вміст всіх вказаних розділів"
-
-#: src/objdump.c:58
-msgid "Display assembler code of executable sections"
-msgstr "Показати код асемблера виконуваних розділів"
-
-#: src/objdump.c:60
-msgid "Output content selection:"
-msgstr "Вибір виведених даних:"
-
-#: src/objdump.c:62
-msgid "Only display information for section NAME."
-msgstr "Показати інформацію лише з розділу НАЗВА."
-
-#: src/objdump.c:68
-msgid "Show information from FILEs (a.out by default)."
-msgstr "Показати інформацію з ФАЙЛів (типово a.out)."
-
-#: src/objdump.c:236 src/readelf.c:473
-msgid "No operation specified.\n"
-msgstr "Не вказано дії.\n"
-
-#: src/objdump.c:274 src/objdump.c:286
-#, c-format
-msgid "while close `%s'"
-msgstr "під час закриття «%s»"
-
-#: src/objdump.c:379 src/readelf.c:1880 src/readelf.c:2072
-msgid "INVALID SYMBOL"
-msgstr "НЕКОРЕКТНИЙ СИМВОЛ"
-
-#: src/objdump.c:394 src/readelf.c:1914 src/readelf.c:2108
-msgid "INVALID SECTION"
-msgstr "НЕКОРЕКТНИЙ РОЗДІЛ"
-
-#: src/objdump.c:514
-#, c-format
-msgid ""
-"\n"
-"RELOCATION RECORDS FOR [%s]:\n"
-"%-*s TYPE VALUE\n"
-msgstr ""
-"\n"
-"ЗАПИСИ ПЕРЕМІЩЕННЯ ДЛЯ [%s]:\n"
-"%-*s ТИП ЗНАЧЕННЯ\n"
-
-#: src/objdump.c:517
-msgid "OFFSET"
-msgstr "ЗМІЩЕННЯ"
-
-#: src/objdump.c:582
-#, c-format
-msgid "Contents of section %s:\n"
-msgstr "Вміст розділу %s:\n"
-
-#: src/objdump.c:703
-#, c-format
-msgid "cannot disassemble"
-msgstr "не вдалося дизасемблювати"
-
-#: src/objdump.c:742
-#, c-format
-msgid "cannot allocate memory"
-msgstr "не вдалося розподілити пам’ять"
-
-#: src/ranlib.c:66
-msgid "Generate an index to speed access to archives."
-msgstr "Створювати покажчик для пришвидшення доступу до архівів."
-
-#: src/ranlib.c:69
-msgid "ARCHIVE"
-msgstr "АРХІВ"
-
-#: src/ranlib.c:108
-#, c-format
-msgid "Archive name required"
-msgstr "Слід вказати назву архіву"
-
-#: src/ranlib.c:186
-#, c-format
-msgid "'%s' is no archive"
-msgstr "«%s» не є архівом"
-
-#: src/ranlib.c:221
-#, c-format
-msgid "error while freeing sub-ELF descriptor: %s"
-msgstr "помилка під час спроби вивільнення дескриптора під-ELF: %s"
-
-#: src/readelf.c:71
-msgid "ELF input selection:"
-msgstr "Вибір вихідних даних ELF:"
-
-#: src/readelf.c:73
-msgid ""
-"Use the named SECTION (default .gnu_debugdata) as (compressed) ELF input data"
-msgstr ""
-"Використовувати вказаний за іменем РОЗДІЛ (типово .gnu_debugdata) як "
-"(стиснені) вхідні дані ELF"
-
-#: src/readelf.c:75
-msgid "ELF output selection:"
-msgstr "Вибір виводу ELF:"
-
-#: src/readelf.c:77
-msgid "All these plus -p .strtab -p .dynstr -p .comment"
-msgstr "Все це плюс -p .strtab -p .dynstr -p .comment"
-
-#: src/readelf.c:78
-msgid "Display the dynamic segment"
-msgstr "Показувати динамічний сегмент"
-
-#: src/readelf.c:79
-msgid "Display the ELF file header"
-msgstr "Показувати заголовок файла ELF"
-
-#: src/readelf.c:81
-msgid "Display histogram of bucket list lengths"
-msgstr "Показати гістограму довжин списку блоків"
-
-#: src/readelf.c:82
-msgid "Display the program headers"
-msgstr "Показувати заголовки програми"
-
-#: src/readelf.c:84
-msgid "Display relocations"
-msgstr "Показувати пересування"
-
-#: src/readelf.c:85
-msgid "Display the sections' headers"
-msgstr "Показувати заголовки розділів"
-
-#: src/readelf.c:87
-msgid "Display the symbol table"
-msgstr "Показувати таблицю символів"
-
-#: src/readelf.c:88
-msgid "Display versioning information"
-msgstr "Показувати відомості щодо версії"
-
-#: src/readelf.c:89
-msgid "Display the ELF notes"
-msgstr "Показувати нотатки ELF"
-
-#: src/readelf.c:91
-msgid "Display architecture specific information, if any"
-msgstr "Показувати специфічні для архітектури дані, якщо такі буде виявлено"
-
-#: src/readelf.c:93
-msgid "Display sections for exception handling"
-msgstr "Показувати розділи для обробки виключень"
-
-#: src/readelf.c:95
-msgid "Additional output selection:"
-msgstr "Додатковий вибір виводу:"
-
-#: src/readelf.c:97
-msgid ""
-"Display DWARF section content. SECTION can be one of abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro or exception"
-msgstr ""
-"Показати вміст розділу DWARF. Значенням РОЗДІЛ може бути abbrev, aranges, "
-"decodedaranges, frame, gdb_index, info, loc, line, decodedline, ranges, "
-"pubnames, str, macinfo, macro або exception"
-
-#: src/readelf.c:101
-msgid "Dump the uninterpreted contents of SECTION, by number or name"
-msgstr ""
-"Створити дамп даних РОЗДІЛ, які не вдалося інтерпретувати, за номером або "
-"назвами"
-
-#: src/readelf.c:103
-msgid "Print string contents of sections"
-msgstr "Виводити вміст рядків розділів"
-
-#: src/readelf.c:106
-msgid "Display the symbol index of an archive"
-msgstr "Показувати покажчик символів архіву"
-
-#: src/readelf.c:108
-msgid "Output control:"
-msgstr "Керування виводом:"
-
-#: src/readelf.c:110
-msgid "Do not find symbol names for addresses in DWARF data"
-msgstr "Не шукати назви символів для адрес у даних DWARF"
-
-#: src/readelf.c:112
-msgid ""
-"Display just offsets instead of resolving values to addresses in DWARF data"
-msgstr "Показати лише зміщення, а не визначені значення адреси у даних DWARF"
-
-#: src/readelf.c:114
-msgid "Ignored for compatibility (lines always wide)"
-msgstr "Ігнорується з міркувань сумісності (рядки завжди широкі)"
-
-#: src/readelf.c:119
-msgid "Print information from ELF file in human-readable form."
-msgstr "Виводити відомості з файла ELF у придатному для читання форматі."
-
-#: src/readelf.c:441
-#, c-format
-msgid "Unknown DWARF debug section `%s'.\n"
-msgstr "Невідомий діагностичний розділ DWARF «%s».\n"
-
-#: src/readelf.c:520 src/readelf.c:631
-#, c-format
-msgid "cannot generate Elf descriptor: %s"
-msgstr "не вдалося створити дескриптор Elf: %s"
-
-#: src/readelf.c:545 src/readelf.c:1099 src/readelf.c:1269
-#, c-format
-msgid "cannot get section: %s"
-msgstr "не вдалося отримати розділ: %s"
-
-#: src/readelf.c:554 src/readelf.c:1106 src/readelf.c:1277 src/readelf.c:9440
-#: src/unstrip.c:356 src/unstrip.c:387 src/unstrip.c:436 src/unstrip.c:544
-#: src/unstrip.c:561 src/unstrip.c:597 src/unstrip.c:795 src/unstrip.c:1063
-#: src/unstrip.c:1254 src/unstrip.c:1314 src/unstrip.c:1435 src/unstrip.c:1488
-#: src/unstrip.c:1595 src/unstrip.c:1784
-#, c-format
-msgid "cannot get section header: %s"
-msgstr "не вдалося отримати заголовок розділу: %s"
-
-#: src/readelf.c:562
-#, c-format
-msgid "cannot get section name"
-msgstr "не вдалося отримати назву розділу"
-
-#: src/readelf.c:571 src/readelf.c:5398 src/readelf.c:7671 src/readelf.c:7773
-#: src/readelf.c:7939
-#, c-format
-msgid "cannot get %s content: %s"
-msgstr "не вдалося отримати дані %s: %s"
-
-#: src/readelf.c:587
-#, c-format
-msgid "cannot create temp file '%s'"
-msgstr "не вдалося створити файл тимчасових даних «%s»"
-
-#: src/readelf.c:596
-#, c-format
-msgid "cannot write section data"
-msgstr "не вдалося записати дані розділу"
-
-#: src/readelf.c:602 src/readelf.c:619 src/readelf.c:648
-#, c-format
-msgid "error while closing Elf descriptor: %s"
-msgstr "помилка під час спроби закриття дескриптора Elf: %s"
-
-#: src/readelf.c:609
-#, c-format
-msgid "error while rewinding file descriptor"
-msgstr "помилка під час повернення до початкового значення дескриптора файла"
-
-#: src/readelf.c:643
-#, c-format
-msgid "'%s' is not an archive, cannot print archive index"
-msgstr "«%s» не є архівом, виведення покажчика архіву неможливе"
-
-#: src/readelf.c:742
-#, c-format
-msgid "No such section '%s' in '%s'"
-msgstr "У «%2$s» немає розділу «%1$s»"
-
-#: src/readelf.c:769
-#, c-format
-msgid "cannot stat input file"
-msgstr "не вдалося отримати дані з вхідного файла за допомогою stat"
-
-#: src/readelf.c:771
-#, c-format
-msgid "input file is empty"
-msgstr "вхідний файл є порожнім"
-
-#: src/readelf.c:773
-#, c-format
-msgid "failed reading '%s': %s"
-msgstr "не вдалося прочитати «%s»: %s"
-
-#: src/readelf.c:814
-#, c-format
-msgid "cannot read ELF header: %s"
-msgstr "не вдалося прочитати заголовок ELF: %s"
-
-#: src/readelf.c:822
-#, c-format
-msgid "cannot create EBL handle"
-msgstr "не вдалося створити дескриптор EBL"
-
-#: src/readelf.c:835
-#, c-format
-msgid "cannot determine number of program headers: %s"
-msgstr "не вдалося визначити кількість заголовків програми: %s"
-
-#: src/readelf.c:921
-msgid "NONE (None)"
-msgstr "NONE (Немає)"
-
-#: src/readelf.c:922
-msgid "REL (Relocatable file)"
-msgstr "REL (Придатний до пересування файл)"
-
-#: src/readelf.c:923
-msgid "EXEC (Executable file)"
-msgstr "EXEC (Виконуваний файл)"
-
-#: src/readelf.c:924
-msgid "DYN (Shared object file)"
-msgstr "DYN (Файл об’єктів спільного використання)"
-
-#: src/readelf.c:925
-msgid "CORE (Core file)"
-msgstr "CORE (Файл ядра)"
-
-#: src/readelf.c:930
-#, c-format
-msgid "OS Specific: (%x)\n"
-msgstr "ОС-специфічне: (%x)\n"
-
-#: src/readelf.c:932
-#, c-format
-msgid "Processor Specific: (%x)\n"
-msgstr "Специфічне для процесора: (%x)\n"
-
-#: src/readelf.c:942
-msgid ""
-"ELF Header:\n"
-" Magic: "
-msgstr ""
-"Заголовок ELF:\n"
-" Magic: "
-
-#: src/readelf.c:946
-#, c-format
-msgid ""
-"\n"
-" Class: %s\n"
-msgstr ""
-"\n"
-" Клас: %s\n"
-
-#: src/readelf.c:951
-#, c-format
-msgid " Data: %s\n"
-msgstr " Дані: %s\n"
-
-#: src/readelf.c:957
-#, c-format
-msgid " Ident Version: %hhd %s\n"
-msgstr " Версія Ident: %hhd %s\n"
-
-#: src/readelf.c:959 src/readelf.c:976
-msgid "(current)"
-msgstr "(поточний)"
-
-#: src/readelf.c:963
-#, c-format
-msgid " OS/ABI: %s\n"
-msgstr " ОС/ABI: %s\n"
-
-#: src/readelf.c:966
-#, c-format
-msgid " ABI Version: %hhd\n"
-msgstr " Версія ABI: %hhd\n"
-
-#: src/readelf.c:969
-msgid " Type: "
-msgstr " Тип: "
-
-#: src/readelf.c:972
-#, c-format
-msgid " Machine: %s\n"
-msgstr " Архітектура: %s\n"
-
-#: src/readelf.c:974
-#, c-format
-msgid " Version: %d %s\n"
-msgstr " Версія: %d %s\n"
-
-#: src/readelf.c:978
-#, c-format
-msgid " Entry point address: %#<PRIx64>\n"
-msgstr " Адреса вхідної точки: %#<PRIx64>\n"
-
-#: src/readelf.c:981
-#, c-format
-msgid " Start of program headers: %<PRId64> %s\n"
-msgstr " Початок заголовків програм: %<PRId64> %s\n"
-
-#: src/readelf.c:982 src/readelf.c:985
-msgid "(bytes into file)"
-msgstr "(байтів у файл)"
-
-#: src/readelf.c:984
-#, c-format
-msgid " Start of section headers: %<PRId64> %s\n"
-msgstr " Початок заголовків розділів: %<PRId64> %s\n"
-
-#: src/readelf.c:987
-#, c-format
-msgid " Flags: %s\n"
-msgstr " Прапорці: %s\n"
-
-#: src/readelf.c:990
-#, c-format
-msgid " Size of this header: %<PRId16> %s\n"
-msgstr " Розмір цього заголовка: %<PRId16> %s\n"
-
-#: src/readelf.c:991 src/readelf.c:994 src/readelf.c:1011
-msgid "(bytes)"
-msgstr "(байтів)"
-
-#: src/readelf.c:993
-#, c-format
-msgid " Size of program header entries: %<PRId16> %s\n"
-msgstr " Розмір записів заголовка програми: %<PRId16> %s\n"
-
-#: src/readelf.c:996
-#, c-format
-msgid " Number of program headers entries: %<PRId16>"
-msgstr " Кількість записів заголовків програми: %<PRId16>"
-
-#: src/readelf.c:1003
-#, c-format
-msgid " (%<PRIu32> in [0].sh_info)"
-msgstr " (%<PRIu32> у [0].sh_info)"
-
-#: src/readelf.c:1006 src/readelf.c:1023 src/readelf.c:1037
-msgid " ([0] not available)"
-msgstr " ([0] недоступний)"
-
-#: src/readelf.c:1010
-#, c-format
-msgid " Size of section header entries: %<PRId16> %s\n"
-msgstr " Розмір записів заголовків розділів: %<PRId16> %s\n"
-
-#: src/readelf.c:1013
-#, c-format
-msgid " Number of section headers entries: %<PRId16>"
-msgstr " Кількість записів заголовків розділів: %<PRId16>"
-
-#: src/readelf.c:1020
-#, c-format
-msgid " (%<PRIu32> in [0].sh_size)"
-msgstr " (%<PRIu32> у [0].sh_size)"
-
-#: src/readelf.c:1033
-#, c-format
-msgid " (%<PRIu32> in [0].sh_link)"
-msgstr " (%<PRIu32> у [0].sh_link)"
-
-#: src/readelf.c:1041
-#, c-format
-msgid ""
-" Section header string table index: XINDEX%s\n"
-"\n"
-msgstr ""
-" Індекс заголовка розділу у таблиці рядків: XINDEX%s\n"
-"\n"
-
-#: src/readelf.c:1045
-#, c-format
-msgid ""
-" Section header string table index: %<PRId16>\n"
-"\n"
-msgstr ""
-" Індекс заголовка розділу у таблиці рядків: %<PRId16>\n"
-"\n"
-
-#: src/readelf.c:1077
-#, c-format
-msgid ""
-"There are %d section headers, starting at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"Виявлено %d заголовків розділів, зміщення початку — %#<PRIx64>:\n"
-"\n"
-
-#: src/readelf.c:1087
-msgid "Section Headers:"
-msgstr "Заголовки розділів:"
-
-#: src/readelf.c:1090
-msgid ""
-"[Nr] Name Type Addr Off Size ES Flags Lk "
-"Inf Al"
-msgstr ""
-"[№ ] Назва Тип Адр Змі Розмір ES Прап Lk "
-"Інф Al"
-
-#: src/readelf.c:1092
-msgid ""
-"[Nr] Name Type Addr Off Size ES "
-"Flags Lk Inf Al"
-msgstr ""
-"[№ ] Назва Тип Адр Змі Розмір ES "
-"Прап Lk Інф Al"
-
-#: src/readelf.c:1164
-msgid "Program Headers:"
-msgstr "Заголовки програми:"
-
-#: src/readelf.c:1166
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align"
-msgstr ""
-" Тип Зміщен ВіртАдр ФізАдр РозмФайл РозмПам Пра Вирів"
-
-#: src/readelf.c:1169
-msgid ""
-" Type Offset VirtAddr PhysAddr FileSiz "
-"MemSiz Flg Align"
-msgstr ""
-" Тип Зміщен ВіртАдр ФізАдр "
-"РозмФайлРозмПам Пра Вирів"
-
-#: src/readelf.c:1226
-#, c-format
-msgid "\t[Requesting program interpreter: %s]\n"
-msgstr "\t[Запит щодо інтерпретатора програми: %s]\n"
-
-#: src/readelf.c:1247
-msgid ""
-"\n"
-" Section to Segment mapping:\n"
-" Segment Sections..."
-msgstr ""
-"\n"
-" Відображення розділів на сегмент:\n"
-" Розділи сегмента..."
-
-#: src/readelf.c:1258 src/unstrip.c:1843 src/unstrip.c:1886 src/unstrip.c:1893
-#, c-format
-msgid "cannot get program header: %s"
-msgstr "не вдалося отримати заголовок програми: %s"
-
-#: src/readelf.c:1401
-#, c-format
-msgid ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"COMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Група розділів COMDAT [%2zu] «%s» з підписом «%s» містить %zu запис:\n"
-msgstr[1] ""
-"\n"
-"Група розділів COMDAT [%2zu] «%s» з підписом «%s» містить %zu записи:\n"
-msgstr[2] ""
-"\n"
-"Група розділів COMDAT [%2zu] «%s» з підписом «%s» містить %zu записів:\n"
-
-#: src/readelf.c:1406
-#, c-format
-msgid ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"Section group [%2zu] '%s' with signature '%s' contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Група розділів [%2zu] «%s» з підписом «%s» містить %zu запис:\n"
-msgstr[1] ""
-"\n"
-"Група розділів [%2zu] «%s» з підписом «%s» містить %zu записи:\n"
-msgstr[2] ""
-"\n"
-"Група розділів [%2zu] «%s» з підписом «%s» містить %zu записів:\n"
-
-#: src/readelf.c:1414
-msgid "<INVALID SYMBOL>"
-msgstr "<НЕКОРЕКТНИЙ СИМВОЛ>"
-
-#: src/readelf.c:1428
-msgid "<INVALID SECTION>"
-msgstr "<НЕКОРЕКТНИЙ РОЗДІЛ>"
-
-#: src/readelf.c:1585 src/readelf.c:2208 src/readelf.c:2466 src/readelf.c:2542
-#: src/readelf.c:2846 src/readelf.c:2920 src/readelf.c:4610
-#, fuzzy, c-format
-msgid "invalid sh_link value in section %Zu"
-msgstr "некоректний розділ .debug_line"
-
-#: src/readelf.c:1588
-#, c-format
-msgid ""
-"\n"
-"Dynamic segment contains %lu entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Dynamic segment contains %lu entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Динамічний сегмент містить %lu запис:\n"
-" Адр: %#0*<PRIx64> Зміщення: %#08<PRIx64> Пос. на розділ: [%2u] '%s'\n"
-msgstr[1] ""
-"\n"
-"Динамічний сегмент містить %lu записи:\n"
-" Адр: %#0*<PRIx64> Зміщення: %#08<PRIx64> Пос. на розділ: [%2u] '%s'\n"
-msgstr[2] ""
-"\n"
-"Динамічний сегмент містить %lu записів:\n"
-" Адр: %#0*<PRIx64> Зміщення: %#08<PRIx64> Пос. на розділ: [%2u] '%s'\n"
-
-#: src/readelf.c:1598
-msgid " Type Value\n"
-msgstr " Тип Значення\n"
-
-#: src/readelf.c:1622
-#, c-format
-msgid "Shared library: [%s]\n"
-msgstr "Спільна бібліотека: [%s]\n"
-
-#: src/readelf.c:1627
-#, c-format
-msgid "Library soname: [%s]\n"
-msgstr "Назва so бібліотеки: [%s]\n"
-
-#: src/readelf.c:1632
-#, c-format
-msgid "Library rpath: [%s]\n"
-msgstr "Rpath бібліотеки: [%s]\n"
-
-#: src/readelf.c:1637
-#, c-format
-msgid "Library runpath: [%s]\n"
-msgstr "Runpath бібліотеки: [%s]\n"
-
-#: src/readelf.c:1657
-#, c-format
-msgid "%<PRId64> (bytes)\n"
-msgstr "%<PRId64> (байт)\n"
-
-#: src/readelf.c:1770 src/readelf.c:1960
-#, c-format
-msgid ""
-"\n"
-"Invalid symbol table at offset %#0<PRIx64>\n"
-msgstr ""
-"\n"
-"Некоректна таблиця символів за зміщенням %#0<PRIx64>\n"
-
-#: src/readelf.c:1788 src/readelf.c:1978
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0<PRIx64> "
-"contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Розділ пересування [%2zu] «%s» для розділу [%2u] «%s» за зміщенням "
-"%#0<PRIx64> містить %d запис:\n"
-msgstr[1] ""
-"\n"
-"Розділ пересування [%2zu] «%s» для розділу [%2u] «%s» за зміщенням "
-"%#0<PRIx64> містить %d записи:\n"
-msgstr[2] ""
-"\n"
-"Розділ пересування [%2zu] «%s» для розділу [%2u] «%s» за зміщенням "
-"%#0<PRIx64> містить %d записів:\n"
-
-#: src/readelf.c:1803 src/readelf.c:1993
-#, c-format
-msgid ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Relocation section [%2u] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Розділ пересування [%2u] «%s» за зміщенням %#0<PRIx64> містить %d запис:\n"
-msgstr[1] ""
-"\n"
-"Розділ пересування [%2u] «%s» за зміщенням %#0<PRIx64> містить %d записи:\n"
-msgstr[2] ""
-"\n"
-"Розділ пересування [%2u] «%s» за зміщенням %#0<PRIx64> містить %d записів:\n"
-
-#: src/readelf.c:1813
-msgid " Offset Type Value Name\n"
-msgstr " Зміщення Тип Значення Назва\n"
-
-#: src/readelf.c:1815
-msgid " Offset Type Value Name\n"
-msgstr " Зміщення Тип Значення Назва\n"
-
-#: src/readelf.c:1868 src/readelf.c:1879 src/readelf.c:1892 src/readelf.c:1913
-#: src/readelf.c:1925 src/readelf.c:2059 src/readelf.c:2071 src/readelf.c:2085
-#: src/readelf.c:2107 src/readelf.c:2120
-msgid "<INVALID RELOC>"
-msgstr "<НЕКОРЕКТНЕ ПЕРЕМІЩЕННЯ>"
-
-#: src/readelf.c:2003
-msgid " Offset Type Value Addend Name\n"
-msgstr " Зміщення Тип Значення Назва додатка\n"
-
-#: src/readelf.c:2005
-msgid " Offset Type Value Addend Name\n"
-msgstr ""
-" Зміщення Тип Значення Назва додатка\n"
-
-#: src/readelf.c:2216
-#, c-format
-msgid ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entry:\n"
-msgid_plural ""
-"\n"
-"Symbol table [%2u] '%s' contains %u entries:\n"
-msgstr[0] ""
-"\n"
-"Таблиця символів [%2u] «%s» містить %u запис:\n"
-msgstr[1] ""
-"\n"
-"Таблиця символів [%2u] «%s» містить %u записи:\n"
-msgstr[2] ""
-"\n"
-"Таблиця символів [%2u] «%s» містить %u записів:\n"
-
-#: src/readelf.c:2221
-#, c-format
-msgid " %lu local symbol String table: [%2u] '%s'\n"
-msgid_plural " %lu local symbols String table: [%2u] '%s'\n"
-msgstr[0] " %lu лок. символ Таблиця символів: [%2u] «%s»\n"
-msgstr[1] " %lu лок. символи Таблиця символів: [%2u] «%s»\n"
-msgstr[2] " %lu лок. символів Таблиця символів: [%2u] «%s»\n"
-
-#: src/readelf.c:2229
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " №№ Знач. Роз. Тип Зв’яз Вид. Інд Назва\n"
-
-#: src/readelf.c:2231
-msgid " Num: Value Size Type Bind Vis Ndx Name\n"
-msgstr " №№ Знач. Роз. Тип Зв’яз Вид. Інд Назва\n"
-
-#: src/readelf.c:2251
-#, c-format
-msgid "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-msgstr "%5u: %0*<PRIx64> %6<PRId64> %-7s %-6s %-9s %6s %s"
-
-#: src/readelf.c:2339
-#, c-format
-msgid "bad dynamic symbol"
-msgstr "помилковий динамічний символ"
-
-#: src/readelf.c:2421
-msgid "none"
-msgstr "немає"
-
-#: src/readelf.c:2438
-msgid "| <unknown>"
-msgstr "| <невідомо>"
-
-#: src/readelf.c:2469
-#, c-format
-msgid ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version needs section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Розділ потреби у версіях [%2u] «%s», що містить %d запис:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-msgstr[1] ""
-"\n"
-"Розділ потреби у версіях [%2u] «%s», що містить %d записи:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-msgstr[2] ""
-"\n"
-"Розділ потреби у версіях [%2u] «%s», що містить %d записів:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-
-#: src/readelf.c:2490
-#, c-format
-msgid " %#06x: Version: %hu File: %s Cnt: %hu\n"
-msgstr " %#06x: Версія: %hu Файл: %s Кть: %hu\n"
-
-#: src/readelf.c:2503
-#, c-format
-msgid " %#06x: Name: %s Flags: %s Version: %hu\n"
-msgstr " %#06x: Назва: %s Прап: %s Версія: %hu\n"
-
-#: src/readelf.c:2546
-#, c-format
-msgid ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Version definition section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Розділ визначення версії [%2u] «%s», що містить %d запис:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-msgstr[1] ""
-"\n"
-"Розділ визначення версії [%2u] «%s», що містить %d записи:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-msgstr[2] ""
-"\n"
-"Розділ визначення версії [%2u] «%s», що містить %d записів:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-
-#: src/readelf.c:2574
-#, c-format
-msgid " %#06x: Version: %hd Flags: %s Index: %hd Cnt: %hd Name: %s\n"
-msgstr " %#06x: Версія: %hd Прап.: %s Індекс: %hd К-ть: %hd Назва: %s\n"
-
-#: src/readelf.c:2589
-#, c-format
-msgid " %#06x: Parent %d: %s\n"
-msgstr " %#06x: батьківський %d: %s\n"
-
-#: src/readelf.c:2850
-#, c-format
-msgid ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entry:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgid_plural ""
-"\n"
-"Version symbols section [%2u] '%s' contains %d entries:\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'"
-msgstr[0] ""
-"\n"
-"Розділ символів версій [%2u] «%s», що містить %d запис:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»"
-msgstr[1] ""
-"\n"
-"Розділ символів версій [%2u] «%s», що містить %d записи:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»"
-msgstr[2] ""
-"\n"
-"Розділ символів версій [%2u] «%s», що містить %d записів:\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»"
-
-#: src/readelf.c:2878
-msgid " 0 *local* "
-msgstr " 0 *локальний* "
-
-#: src/readelf.c:2883
-msgid " 1 *global* "
-msgstr " 1 *загальний* "
-
-#: src/readelf.c:2925
-#, c-format
-msgid ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"bucket):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgid_plural ""
-"\n"
-"Histogram for bucket list length in section [%2u] '%s' (total of %d "
-"buckets):\n"
-" Addr: %#0*<PRIx64> Offset: %#08<PRIx64> Link to section: [%2u] '%s'\n"
-msgstr[0] ""
-"\n"
-"Гістограма довжин списків блоків у розділі [%2u] «%s» (загальні дані за %d "
-"блоком):\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-msgstr[1] ""
-"\n"
-"Гістограма довжин списків блоків у розділі [%2u] «%s» (загальні дані за %d "
-"блоками):\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-msgstr[2] ""
-"\n"
-"Гістограма довжин списків блоків у розділі [%2u] «%s» (загальні дані за %d "
-"блоками):\n"
-" Адр.: %#0*<PRIx64> Зміщ.: %#08<PRIx64> Посилання на розділ: [%2u] «%s»\n"
-
-#: src/readelf.c:2947
-#, no-c-format
-msgid " Length Number % of total Coverage\n"
-msgstr " Довжина Номер % від загал. Покриття\n"
-
-#: src/readelf.c:2949
-#, c-format
-msgid " 0 %6<PRIu32> %5.1f%%\n"
-msgstr " 0 %6<PRIu32> %5.1f%%\n"
-
-#: src/readelf.c:2956
-#, c-format
-msgid "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-msgstr "%7d %6<PRIu32> %5.1f%% %5.1f%%\n"
-
-#: src/readelf.c:2969
-#, c-format
-msgid ""
-" Average number of tests: successful lookup: %f\n"
-"\t\t\t unsuccessful lookup: %f\n"
-msgstr ""
-" Середня кількість тестів: успішний пошук: %f\n"
-"\t\t\t неуспішний пошук: %f\n"
-
-#: src/readelf.c:2987 src/readelf.c:3042 src/readelf.c:3098
-#, c-format
-msgid "cannot get data for section %d: %s"
-msgstr "не вдалося отримати дані для розділу %d: %s"
-
-#: src/readelf.c:2995
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash section %d"
-msgstr "некоректні дані у розділі [%zu] «%s»"
-
-#: src/readelf.c:3050
-#, fuzzy, c-format
-msgid "invalid data in sysv.hash64 section %d"
-msgstr "некоректні дані у розділі [%zu] «%s»"
-
-#: src/readelf.c:3106
-#, fuzzy, c-format
-msgid "invalid data in gnu.hash section %d"
-msgstr "некоректні дані у розділі [%zu] «%s»"
-
-#: src/readelf.c:3173
-#, c-format
-msgid ""
-" Symbol Bias: %u\n"
-" Bitmask Size: %zu bytes %<PRIuFAST32>%% bits set 2nd hash shift: %u\n"
-msgstr ""
-" Відхилення символу: %u\n"
-" Розмір бітової маски: %zu байтів %<PRIuFAST32>%% встановлених бітів зсув "
-"2-го хешу: %u\n"
-
-#: src/readelf.c:3248
-#, c-format
-msgid ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entry:\n"
-msgid_plural ""
-"\n"
-"Library list section [%2zu] '%s' at offset %#0<PRIx64> contains %d entries:\n"
-msgstr[0] ""
-"\n"
-"Розділ списку бібліотек [%2zu] «%s» за зміщенням %#0<PRIx64> містить %d "
-"запис:\n"
-msgstr[1] ""
-"\n"
-"Розділ списку бібліотек [%2zu] «%s» за зміщенням %#0<PRIx64> містить %d "
-"записи:\n"
-msgstr[2] ""
-"\n"
-"Розділ списку бібліотек [%2zu] «%s» за зміщенням %#0<PRIx64> містить %d "
-"записів:\n"
-
-#: src/readelf.c:3262
-msgid ""
-" Library Time Stamp Checksum Version "
-"Flags"
-msgstr ""
-" Бібліотека Часовий штамп Версія суми "
-"Прапорці"
-
-#: src/readelf.c:3312
-#, c-format
-msgid ""
-"\n"
-"Object attributes section [%2zu] '%s' of %<PRIu64> bytes at offset "
-"%#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Розділ атрибутів об’єктів [%2zu] «%s» з %<PRIu64> байтів за зміщенням "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:3329
-msgid " Owner Size\n"
-msgstr " Власник Розмір\n"
-
-#: src/readelf.c:3358
-#, c-format
-msgid " %-13s %4<PRIu32>\n"
-msgstr " %-13s %4<PRIu32>\n"
-
-#: src/readelf.c:3397
-#, c-format
-msgid " %-4u %12<PRIu32>\n"
-msgstr " %-4u %12<PRIu32>\n"
-
-#: src/readelf.c:3402
-#, c-format
-msgid " File: %11<PRIu32>\n"
-msgstr " Файл: %11<PRIu32>\n"
-
-#: src/readelf.c:3451
-#, c-format
-msgid " %s: %<PRId64>, %s\n"
-msgstr " %s: %<PRId64>, %s\n"
-
-#: src/readelf.c:3454
-#, c-format
-msgid " %s: %<PRId64>\n"
-msgstr " %s: %<PRId64>\n"
-
-#: src/readelf.c:3457
-#, c-format
-msgid " %s: %s\n"
-msgstr " %s: %s\n"
-
-#: src/readelf.c:3467
-#, c-format
-msgid " %u: %<PRId64>\n"
-msgstr " %u: %<PRId64>\n"
-
-#: src/readelf.c:3470
-#, c-format
-msgid " %u: %s\n"
-msgstr " %u: %s\n"
-
-#: src/readelf.c:3515
-#, c-format
-msgid "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3518
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%s+%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3523
-#, c-format
-msgid "%#<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3526
-#, c-format
-msgid "%#0*<PRIx64> <%s+%#<PRIx64>>"
-msgstr "%#0*<PRIx64> <%s+%#<PRIx64>>"
-
-#: src/readelf.c:3532
-#, c-format
-msgid "%s+%#<PRIx64> <%s>"
-msgstr "%s+%#<PRIx64> <%s>"
-
-#: src/readelf.c:3535
-#, c-format
-msgid "%s+%#0*<PRIx64> <%s>"
-msgstr "%s+%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3539
-#, c-format
-msgid "%#<PRIx64> <%s>"
-msgstr "%#<PRIx64> <%s>"
-
-#: src/readelf.c:3542
-#, c-format
-msgid "%#0*<PRIx64> <%s>"
-msgstr "%#0*<PRIx64> <%s>"
-
-#: src/readelf.c:3547
-#, c-format
-msgid "%s+%#<PRIx64>"
-msgstr "%s+%#<PRIx64>"
-
-#: src/readelf.c:3550
-#, c-format
-msgid "%s+%#0*<PRIx64>"
-msgstr "%s+%#0*<PRIx64>"
-
-#: src/readelf.c:3932
-msgid "empty block"
-msgstr "порожній блок"
-
-#: src/readelf.c:3935
-#, c-format
-msgid "%zu byte block:"
-msgstr "%zu-байтовий блок:"
-
-#: src/readelf.c:4332
-#, c-format
-msgid "%*s[%4<PRIuMAX>] %s <TRUNCATED>\n"
-msgstr "%*s[%4<PRIuMAX>] %s <ОБРІЗАНО>\n"
-
-#: src/readelf.c:4389
-#, c-format
-msgid "%s %#<PRIx64> used with different address sizes"
-msgstr "%s %#<PRIx64> використано з різними розмірами адрес"
-
-#: src/readelf.c:4396
-#, c-format
-msgid "%s %#<PRIx64> used with different offset sizes"
-msgstr "%s %#<PRIx64> використано з різними розмірами зміщень"
-
-#: src/readelf.c:4403
-#, c-format
-msgid "%s %#<PRIx64> used with different base addresses"
-msgstr "%s %#<PRIx64> використано з різними базовими адресами"
-
-#: src/readelf.c:4492
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE IN REST OF SECTION>\n"
-msgstr " [%6tx] <НЕВИКОРИСТОВУВАНІ ДАНІ У РЕШТІ РОЗДІЛУ>\n"
-
-#: src/readelf.c:4500
-#, c-format
-msgid " [%6tx] <UNUSED GARBAGE> ... %<PRIu64> bytes ...\n"
-msgstr " [%6tx] <НЕВИКОРИСТОВУВАНІ ДАНІ> ... %<PRIu64> байтів ...\n"
-
-#: src/readelf.c:4526
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [ Code]\n"
-msgstr ""
-"\n"
-"Розділ DWARF [%2zu] «%s» зі зміщенням %#<PRIx64>:\n"
-" [ Код]\n"
-
-#: src/readelf.c:4534
-#, c-format
-msgid ""
-"\n"
-"Abbreviation section at offset %<PRIu64>:\n"
-msgstr ""
-"\n"
-"Розділ скорочень за зміщенням %<PRIu64>:\n"
-
-#: src/readelf.c:4547
-#, c-format
-msgid " *** error while reading abbreviation: %s\n"
-msgstr " *** помилка під час читання скорочення: %s\n"
-
-#: src/readelf.c:4563
-#, c-format
-msgid " [%5u] offset: %<PRId64>, children: %s, tag: %s\n"
-msgstr " [%5u] зміщення: %<PRId64>, дочірній: %s, мітка: %s\n"
-
-#: src/readelf.c:4566
-msgid "yes"
-msgstr "так"
-
-#: src/readelf.c:4566
-msgid "no"
-msgstr "ні"
-
-#: src/readelf.c:4600 src/readelf.c:4673
-#, c-format
-msgid "cannot get .debug_aranges content: %s"
-msgstr "не вдалося отримати дані get .debug_aranges: %s"
-
-#: src/readelf.c:4615
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entry:\n"
-msgid_plural ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64> contains %zu entries:\n"
-msgstr[0] ""
-"\n"
-"Розділ DWARF [%2zu] «%s» за зміщенням %#<PRIx64> містить %zu запис:\n"
-msgstr[1] ""
-"\n"
-"Розділ DWARF [%2zu] «%s» за зміщенням %#<PRIx64> містить %zu записи:\n"
-msgstr[2] ""
-"\n"
-"Розділ DWARF [%2zu] «%s» за зміщенням %#<PRIx64> містить %zu записів:\n"
-
-#: src/readelf.c:4646
-#, c-format
-msgid " [%*zu] ???\n"
-msgstr " [%*zu] ???\n"
-
-#: src/readelf.c:4648
-#, c-format
-msgid ""
-" [%*zu] start: %0#*<PRIx64>, length: %5<PRIu64>, CU DIE offset: %6<PRId64>\n"
-msgstr ""
-" [%*zu] початок: %0#*<PRIx64>, довжина: %5<PRIu64>, зміщення CU DIE: "
-"%6<PRId64>\n"
-
-#: src/readelf.c:4678 src/readelf.c:4832 src/readelf.c:5408 src/readelf.c:6362
-#: src/readelf.c:6894 src/readelf.c:7014 src/readelf.c:7177 src/readelf.c:7602
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"Розділ DWARF [%2zu] «%s» зі зміщенням %#<PRIx64>:\n"
-
-#: src/readelf.c:4691 src/readelf.c:6388
-#, c-format
-msgid ""
-"\n"
-"Table at offset %Zu:\n"
-msgstr ""
-"\n"
-"Таблиця за зміщенням %Zu:\n"
-
-#: src/readelf.c:4695 src/readelf.c:5432 src/readelf.c:6399
-#, c-format
-msgid "invalid data in section [%zu] '%s'"
-msgstr "некоректні дані у розділі [%zu] «%s»"
-
-#: src/readelf.c:4711
-#, c-format
-msgid ""
-"\n"
-" Length: %6<PRIu64>\n"
-msgstr ""
-"\n"
-" Довжина: %6<PRIu64>\n"
-
-#: src/readelf.c:4723
-#, c-format
-msgid " DWARF version: %6<PRIuFAST16>\n"
-msgstr " версія DWARF: %6<PRIuFAST16>\n"
-
-#: src/readelf.c:4727
-#, c-format
-msgid "unsupported aranges version"
-msgstr "непідтримувана версія aranges"
-
-#: src/readelf.c:4738
-#, c-format
-msgid " CU offset: %6<PRIx64>\n"
-msgstr " зміщення CU: %6<PRIx64>\n"
-
-#: src/readelf.c:4744
-#, c-format
-msgid " Address size: %6<PRIu64>\n"
-msgstr " Розмір адреси: %6<PRIu64>\n"
-
-#: src/readelf.c:4748
-#, c-format
-msgid "unsupported address size"
-msgstr "непідтримуваний розмір адреси"
-
-#: src/readelf.c:4753
-#, c-format
-msgid ""
-" Segment size: %6<PRIu64>\n"
-"\n"
-msgstr ""
-" Розмір сегмента: %6<PRIu64>\n"
-"\n"
-
-#: src/readelf.c:4757
-#, c-format
-msgid "unsupported segment size"
-msgstr "непідтримуваний розмір сегмента"
-
-#: src/readelf.c:4797
-#, c-format
-msgid " %s..%s (%<PRIx64>)\n"
-msgstr " %s..%s (%<PRIx64>)\n"
-
-#: src/readelf.c:4800
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:4809
-#, c-format
-msgid " %Zu padding bytes\n"
-msgstr " %Zu байтів доповнення\n"
-
-#: src/readelf.c:4827
-#, c-format
-msgid "cannot get .debug_ranges content: %s"
-msgstr "не вдалося отримати дані .debug_ranges: %s"
-
-#: src/readelf.c:4857 src/readelf.c:6921
-#, c-format
-msgid " [%6tx] <INVALID DATA>\n"
-msgstr " [%6tx] <НЕКОРЕКТНІ ДАНІ>\n"
-
-#: src/readelf.c:4879 src/readelf.c:6943
-#, c-format
-msgid " [%6tx] base address %s\n"
-msgstr " [%6tx] базова адреса %s\n"
-
-#: src/readelf.c:4886 src/readelf.c:6950
-#, c-format
-msgid " [%6tx] empty list\n"
-msgstr " [%6tx] порожній список\n"
-
-#: src/readelf.c:4897
-#, c-format
-msgid " [%6tx] %s..%s\n"
-msgstr " [%6tx] %s..%s\n"
-
-#: src/readelf.c:4899
-#, c-format
-msgid " %s..%s\n"
-msgstr " %s..%s\n"
-
-#: src/readelf.c:5078
-#, fuzzy
-msgid " <INVALID DATA>\n"
-msgstr " <НЕКОРЕКТНІ ДАНІ>\n"
-
-#: src/readelf.c:5387
-#, c-format
-msgid "cannot get ELF: %s"
-msgstr "не вдалося отримати ELF: %s"
-
-#: src/readelf.c:5404
-#, c-format
-msgid ""
-"\n"
-"Call frame information section [%2zu] '%s' at offset %#<PRIx64>:\n"
-msgstr ""
-"\n"
-"Розділ відомостей щодо вікна викликів [%2zu] «%s» за зміщенням %#<PRIx64>:\n"
-
-#: src/readelf.c:5454
-#, c-format
-msgid ""
-"\n"
-" [%6tx] Zero terminator\n"
-msgstr ""
-"\n"
-" [%6tx] нульовий переривач\n"
-
-#: src/readelf.c:5547 src/readelf.c:5702
-#, c-format
-msgid "invalid augmentation length"
-msgstr "некоректна довжина збільшення"
-
-#: src/readelf.c:5562
-msgid "FDE address encoding: "
-msgstr "Кодування адреси FDE: "
-
-#: src/readelf.c:5568
-msgid "LSDA pointer encoding: "
-msgstr "Кодування вказівника LSDA: "
-
-#: src/readelf.c:5679
-#, c-format
-msgid " (offset: %#<PRIx64>)"
-msgstr " (зміщення: %#<PRIx64>)"
-
-#: src/readelf.c:5686
-#, c-format
-msgid " (end offset: %#<PRIx64>)"
-msgstr " (зміщення від кінця: %#<PRIx64>)"
-
-#: src/readelf.c:5723
-#, c-format
-msgid " %-26sLSDA pointer: %#<PRIx64>\n"
-msgstr " %-26sвказівник LSDA: %#<PRIx64>\n"
-
-#: src/readelf.c:5778
-#, c-format
-msgid "cannot get attribute code: %s"
-msgstr "не вдалося отримати код атрибута: %s"
-
-#: src/readelf.c:5787
-#, c-format
-msgid "cannot get attribute form: %s"
-msgstr "не вдалося отримати форму атрибута: %s"
-
-#: src/readelf.c:5802
-#, c-format
-msgid "cannot get attribute value: %s"
-msgstr "не вдалося отримати значення атрибута: %s"
-
-#: src/readelf.c:6101
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" [Offset]\n"
-msgstr ""
-"\n"
-"Розділ DWARF [%2zu] «%s» за зміщенням %#<PRIx64>:\n"
-" [Зміщення]\n"
-
-#: src/readelf.c:6133
-#, c-format
-msgid ""
-" Type unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-" Type signature: %#<PRIx64>, Type offset: %#<PRIx64>\n"
-msgstr ""
-" Модуль типів за зміщенням %<PRIu64>:\n"
-" Версія: %<PRIu16>, Зміщення розділу скорочень: %<PRIu64>, Адреса: %<PRIu8>, "
-"Зміщення: %<PRIu8>\n"
-" Підпис типу: %#<PRIx64>, Зміщення типу: %#<PRIx64>\n"
-
-#: src/readelf.c:6142
-#, c-format
-msgid ""
-" Compilation unit at offset %<PRIu64>:\n"
-" Version: %<PRIu16>, Abbreviation section offset: %<PRIu64>, Address size: "
-"%<PRIu8>, Offset size: %<PRIu8>\n"
-msgstr ""
-" Модуль компіляції за зміщенням %<PRIu64>:\n"
-" Версія: %<PRIu16>, Зміщення розділу скорочень: %<PRIu64>, Адреса: %<PRIu8>, "
-"Зміщення: %<PRIu8>\n"
-
-#: src/readelf.c:6167
-#, c-format
-msgid "cannot get DIE at offset %<PRIu64> in section '%s': %s"
-msgstr "не вдалося отримати DIE за зміщенням %<PRIu64> у розділі «%s»: %s"
-
-#: src/readelf.c:6181
-#, c-format
-msgid "cannot get DIE offset: %s"
-msgstr "не вдалося отримати зміщення DIE: %s"
-
-#: src/readelf.c:6190
-#, c-format
-msgid "cannot get tag of DIE at offset %<PRIu64> in section '%s': %s"
-msgstr ""
-"не вдалося отримати мітку DIE за зміщенням %<PRIu64> у розділі «%s»: %s"
-
-#: src/readelf.c:6222
-#, c-format
-msgid "cannot get next DIE: %s\n"
-msgstr "не вдалося визначити наступний DIE: %s\n"
-
-#: src/readelf.c:6230
-#, c-format
-msgid "cannot get next DIE: %s"
-msgstr "не вдалося визначити наступний DIE: %s"
-
-#: src/readelf.c:6266
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-"\n"
-msgstr ""
-"\n"
-"Розділ DWARF [%2zu] «%s» зі зміщенням %#<PRIx64>:\n"
-"\n"
-
-#: src/readelf.c:6375
-#, c-format
-msgid "cannot get line data section data: %s"
-msgstr "не вдалося отримати дані розділу лінійних даних: %s"
-
-#: src/readelf.c:6445
-#, c-format
-msgid ""
-"\n"
-" Length: %<PRIu64>\n"
-" DWARF version: %<PRIuFAST16>\n"
-" Prologue length: %<PRIu64>\n"
-" Minimum instruction length: %<PRIuFAST8>\n"
-" Maximum operations per instruction: %<PRIuFAST8>\n"
-" Initial value if '%s': %<PRIuFAST8>\n"
-" Line base: %<PRIdFAST8>\n"
-" Line range: %<PRIuFAST8>\n"
-" Opcode base: %<PRIuFAST8>\n"
-"\n"
-"Opcodes:\n"
-msgstr ""
-"\n"
-" Довжина: %<PRIu64>\n"
-" Версія DWARF: %<PRIuFAST16>\n"
-" Довжина вступу: %<PRIu64>\n"
-" Мінімальна довж. інстр.: %<PRIuFAST8>\n"
-" Макс. к-ть операцій на інструкцію: %<PRIuFAST8>\n"
-" Поч. значення, якщо «%s»: %<PRIuFAST8>\n"
-" Основа рядків: %<PRIdFAST8>\n"
-" Діапазон рядків: %<PRIuFAST8>\n"
-" Основа кодів операцій: %<PRIuFAST8>\n"
-"\n"
-"Коди операцій:\n"
-
-#: src/readelf.c:6466
-#, c-format
-msgid "invalid data at offset %tu in section [%zu] '%s'"
-msgstr "некоректні дані зі зміщенням %tu у розділі [%zu] «%s»"
-
-#: src/readelf.c:6481
-#, c-format
-msgid " [%*<PRIuFAST8>] %hhu argument\n"
-msgid_plural " [%*<PRIuFAST8>] %hhu arguments\n"
-msgstr[0] " [%*<PRIuFAST8>] %hhu аргумент\n"
-msgstr[1] " [%*<PRIuFAST8>] %hhu аргументи\n"
-msgstr[2] " [%*<PRIuFAST8>] %hhu аргументів\n"
-
-#: src/readelf.c:6489
-msgid ""
-"\n"
-"Directory table:"
-msgstr ""
-"\n"
-"Таблиця каталогу:"
-
-#: src/readelf.c:6505
-msgid ""
-"\n"
-"File name table:\n"
-" Entry Dir Time Size Name"
-msgstr ""
-"\n"
-"Таблиця назв файлів:\n"
-" Запис Кат Час Розмір Назва"
-
-#: src/readelf.c:6540
-msgid ""
-"\n"
-"Line number statements:"
-msgstr ""
-"\n"
-"Оператори номерів рядків:"
-
-#: src/readelf.c:6591
-#, fuzzy, c-format
-msgid "invalid maximum operations per instruction is zero"
-msgstr "некоректна мінімальна довжина розмірності рядка для порівняння"
-
-#: src/readelf.c:6627
-#, c-format
-msgid " special opcode %u: address+%u = %s, op_index = %u, line%+d = %zu\n"
-msgstr ""
-" спеціальний код операції %u: адреса+%u = %s, індекс_оп = %u, рядок%+d = "
-"%zu\n"
-
-#: src/readelf.c:6632
-#, c-format
-msgid " special opcode %u: address+%u = %s, line%+d = %zu\n"
-msgstr " спеціальний код операції %u: адреса+%u = %s, рядок%+d = %zu\n"
-
-#: src/readelf.c:6652
-#, c-format
-msgid " extended opcode %u: "
-msgstr " розширений код операції %u: "
-
-#: src/readelf.c:6657
-msgid " end of sequence"
-msgstr " кінець послідовності"
-
-#: src/readelf.c:6676
-#, c-format
-msgid " set address to %s\n"
-msgstr " встановити адресу у значення %s\n"
-
-#: src/readelf.c:6703
-#, c-format
-msgid " define new file: dir=%u, mtime=%<PRIu64>, length=%<PRIu64>, name=%s\n"
-msgstr ""
-" визначення нового файла: dir=%u, mtime=%<PRIu64>, довжина=%<PRIu64>, назва="
-"%s\n"
-
-#: src/readelf.c:6716
-#, c-format
-msgid " set discriminator to %u\n"
-msgstr " встановити розрізнення для %u\n"
-
-#: src/readelf.c:6721
-msgid " unknown opcode"
-msgstr " невідомий код операції"
-
-#: src/readelf.c:6733
-msgid " copy"
-msgstr " копія"
-
-#: src/readelf.c:6744
-#, c-format
-msgid " advance address by %u to %s, op_index to %u\n"
-msgstr " збільшення адреси на %u до %s, індекс_оп до %u\n"
-
-#: src/readelf.c:6748
-#, c-format
-msgid " advance address by %u to %s\n"
-msgstr " збільшення адреси на %u до %s\n"
-
-#: src/readelf.c:6759
-#, c-format
-msgid " advance line by constant %d to %<PRId64>\n"
-msgstr " просувати рядок на сталу %d до %<PRId64>\n"
-
-#: src/readelf.c:6767
-#, c-format
-msgid " set file to %<PRIu64>\n"
-msgstr " встановити файл у %<PRIu64>\n"
-
-#: src/readelf.c:6777
-#, c-format
-msgid " set column to %<PRIu64>\n"
-msgstr " встановити значення стовпчика %<PRIu64>\n"
-
-#: src/readelf.c:6784
-#, c-format
-msgid " set '%s' to %<PRIuFAST8>\n"
-msgstr " встановити «%s» у %<PRIuFAST8>\n"
-
-#: src/readelf.c:6790
-msgid " set basic block flag"
-msgstr " встановити прапорець базового блоку"
-
-#: src/readelf.c:6803
-#, c-format
-msgid " advance address by constant %u to %s, op_index to %u\n"
-msgstr " збільшити адресу на сталу величину %u до %s, індекс_оп до %u\n"
-
-#: src/readelf.c:6807
-#, c-format
-msgid " advance address by constant %u to %s\n"
-msgstr " збільшити адресу на сталу величину %u до %s\n"
-
-#: src/readelf.c:6825
-#, c-format
-msgid " advance address by fixed value %u to %s\n"
-msgstr " збільшити адресу на фіксовану величину %u до %s\n"
-
-#: src/readelf.c:6834
-msgid " set prologue end flag"
-msgstr " встановити прапорець кінця вступу"
-
-#: src/readelf.c:6839
-msgid " set epilogue begin flag"
-msgstr " встановити прапорець початку епілогу"
-
-#: src/readelf.c:6848
-#, c-format
-msgid " set isa to %u\n"
-msgstr " встановити isa у %u\n"
-
-#: src/readelf.c:6857
-#, c-format
-msgid " unknown opcode with %<PRIu8> parameter:"
-msgid_plural " unknown opcode with %<PRIu8> parameters:"
-msgstr[0] " невідомий код операції з %<PRIu8> параметром:"
-msgstr[1] " невідомий код операції з %<PRIu8> параметрами:"
-msgstr[2] " невідомий код операції з %<PRIu8> параметрами:"
-
-#: src/readelf.c:6889
-#, c-format
-msgid "cannot get .debug_loc content: %s"
-msgstr "не вдалося отримати вміст .debug_loc: %s"
-
-#: src/readelf.c:6964
-#, c-format
-msgid " [%6tx] %s..%s"
-msgstr " [%6tx] %s..%s"
-
-#: src/readelf.c:6966
-#, c-format
-msgid " %s..%s"
-msgstr " %s..%s"
-
-#: src/readelf.c:6973 src/readelf.c:7858
-msgid " <INVALID DATA>\n"
-msgstr " <НЕКОРЕКТНІ ДАНІ>\n"
-
-#: src/readelf.c:7025 src/readelf.c:7186
-#, c-format
-msgid "cannot get macro information section data: %s"
-msgstr "не вдалося отримати дані розділу відомостей щодо макросів: %s"
-
-#: src/readelf.c:7104
-#, c-format
-msgid "%*s*** non-terminated string at end of section"
-msgstr "%*s*** незавершений рядок наприкінці розділу"
-
-#: src/readelf.c:7127
-#, fuzzy, c-format
-msgid "%*s*** missing DW_MACINFO_start_file argument at end of section"
-msgstr "%*s*** незавершений рядок наприкінці розділу"
-
-#: src/readelf.c:7227
-#, c-format
-msgid " Offset: 0x%<PRIx64>\n"
-msgstr " Зміщення: 0x%<PRIx64>\n"
-
-#: src/readelf.c:7239
-#, c-format
-msgid " Version: %<PRIu16>\n"
-msgstr " Версія: %<PRIu16>\n"
-
-#: src/readelf.c:7245 src/readelf.c:7968
-#, c-format
-msgid " unknown version, cannot parse section\n"
-msgstr " невідома версія, не вдалося обробити розділ\n"
-
-#: src/readelf.c:7252
-#, c-format
-msgid " Flag: 0x%<PRIx8>\n"
-msgstr " Прапорець: 0x%<PRIx8>\n"
-
-#: src/readelf.c:7255
-#, c-format
-msgid " Offset length: %<PRIu8>\n"
-msgstr " Довжина зміщення: %<PRIu8>\n"
-
-#: src/readelf.c:7263
-#, c-format
-msgid " .debug_line offset: 0x%<PRIx64>\n"
-msgstr " зміщення .debug_line: 0x%<PRIx64>\n"
-
-#: src/readelf.c:7276
-#, c-format
-msgid " extension opcode table, %<PRIu8> items:\n"
-msgstr " таблиця кодів операцій розширень, записів — %<PRIu8>:\n"
-
-#: src/readelf.c:7283
-#, c-format
-msgid " [%<PRIx8>]"
-msgstr " [%<PRIx8>]"
-
-#: src/readelf.c:7295
-#, c-format
-msgid " %<PRIu8> arguments:"
-msgstr " %<PRIu8> аргументів:"
-
-#: src/readelf.c:7323
-#, c-format
-msgid " no arguments."
-msgstr " немає аргументів."
-
-#: src/readelf.c:7560
-#, c-format
-msgid "vendor opcode not verified?"
-msgstr "код операції постачальника не перевірено?"
-
-#: src/readelf.c:7588
-#, c-format
-msgid " [%5d] DIE offset: %6<PRId64>, CU DIE offset: %6<PRId64>, name: %s\n"
-msgstr ""
-" [%5d] зміщення DIE: %6<PRId64>, зміщення CU DIE: %6<PRId64>, назва: %s\n"
-
-#: src/readelf.c:7629
-#, c-format
-msgid ""
-"\n"
-"DWARF section [%2zu] '%s' at offset %#<PRIx64>:\n"
-" %*s String\n"
-msgstr ""
-"\n"
-"Розділ DWARF [%2zu] «%s» зі зміщенням %#<PRIx64>:\n"
-" %*s Рядок\n"
-
-#: src/readelf.c:7643
-#, c-format
-msgid " *** error while reading strings: %s\n"
-msgstr " *** помилка під час читання рядків: %s\n"
-
-#: src/readelf.c:7663
-#, c-format
-msgid ""
-"\n"
-"Call frame search table section [%2zu] '.eh_frame_hdr':\n"
-msgstr ""
-"\n"
-"Розділ таблиці пошуку вікон виклику [%2zu] '.eh_frame_hdr':\n"
-
-#: src/readelf.c:7765
-#, c-format
-msgid ""
-"\n"
-"Exception handling table section [%2zu] '.gcc_except_table':\n"
-msgstr ""
-"\n"
-"Розділ таблиці обробки виключень [%2zu] '.gcc_except_table':\n"
-
-#: src/readelf.c:7788
-#, c-format
-msgid " LPStart encoding: %#x "
-msgstr " Кодування LPStart: %#x "
-
-#: src/readelf.c:7800
-#, c-format
-msgid " TType encoding: %#x "
-msgstr " Кодування TType: %#x "
-
-#: src/readelf.c:7815
-#, c-format
-msgid " Call site encoding: %#x "
-msgstr " Кодування місця виклику:%#x "
-
-#: src/readelf.c:7828
-msgid ""
-"\n"
-" Call site table:"
-msgstr ""
-"\n"
-" Таблиця місця виклику:"
-
-#: src/readelf.c:7842
-#, c-format
-msgid ""
-" [%4u] Call site start: %#<PRIx64>\n"
-" Call site length: %<PRIu64>\n"
-" Landing pad: %#<PRIx64>\n"
-" Action: %u\n"
-msgstr ""
-" [%4u] Поч. місця виклику: %#<PRIx64>\n"
-" Довж. місця виклику: %<PRIu64>\n"
-" Місце застосування: %#<PRIx64>\n"
-" Дія: %u\n"
-
-#: src/readelf.c:7909
-#, c-format
-msgid "invalid TType encoding"
-msgstr "некоректне кодування TType"
-
-#: src/readelf.c:7930
-#, c-format
-msgid ""
-"\n"
-"GDB section [%2zu] '%s' at offset %#<PRIx64> contains %<PRId64> bytes :\n"
-msgstr ""
-"\n"
-"Розділ GDB [%2zu] «%s» за зміщенням %#<PRIx64> містить %<PRId64> байтів:\n"
-
-#: src/readelf.c:7959
-#, c-format
-msgid " Version: %<PRId32>\n"
-msgstr " Версія: %<PRId32>\n"
-
-#: src/readelf.c:7977
-#, c-format
-msgid " CU offset: %#<PRIx32>\n"
-msgstr " зміщення CU: %#<PRIx32>\n"
-
-#: src/readelf.c:7984
-#, c-format
-msgid " TU offset: %#<PRIx32>\n"
-msgstr " зміщення TU: %#<PRIx32>\n"
-
-#: src/readelf.c:7991
-#, c-format
-msgid " address offset: %#<PRIx32>\n"
-msgstr " зміщення адреси: %#<PRIx32>\n"
-
-#: src/readelf.c:7998
-#, c-format
-msgid " symbol offset: %#<PRIx32>\n"
-msgstr " зміщення символу: %#<PRIx32>\n"
-
-#: src/readelf.c:8005
-#, c-format
-msgid " constant offset: %#<PRIx32>\n"
-msgstr " стале зміщення: %#<PRIx32>\n"
-
-#: src/readelf.c:8012
-#, c-format
-msgid ""
-"\n"
-" CU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" Список CU зі зміщенням %#<PRIx32> містить %zu записів:\n"
-
-#: src/readelf.c:8034
-#, c-format
-msgid ""
-"\n"
-" TU list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" Список TU зі зміщенням %#<PRIx32> містить %zu записів:\n"
-
-#: src/readelf.c:8060
-#, c-format
-msgid ""
-"\n"
-" Address list at offset %#<PRIx32> contains %zu entries:\n"
-msgstr ""
-"\n"
-" Список адрес зі зміщенням %#<PRIx32> містить %zu записів:\n"
-
-#: src/readelf.c:8089
-#, c-format
-msgid ""
-"\n"
-" Symbol table at offset %#<PRIx32> contains %zu slots:\n"
-msgstr ""
-"\n"
-" Таблиця символів за зміщенням %#<PRIx32> містить %zu позицій:\n"
-
-#: src/readelf.c:8176
-#, c-format
-msgid "cannot get debug context descriptor: %s"
-msgstr "не вдалося отримати дескриптор контексту зневаджування: %s"
-
-#: src/readelf.c:8336 src/readelf.c:8942 src/readelf.c:9053 src/readelf.c:9111
-#, c-format
-msgid "cannot convert core note data: %s"
-msgstr "не вдалося перетворити дані запису ядра: %s"
-
-#: src/readelf.c:8683
-#, c-format
-msgid ""
-"\n"
-"%*s... <repeats %u more times> ..."
-msgstr ""
-"\n"
-"%*s... <повторюється %u разів> ..."
-
-#: src/readelf.c:9190
-msgid " Owner Data size Type\n"
-msgstr " Власник Розм. даних Тип\n"
-
-#: src/readelf.c:9208
-#, c-format
-msgid " %-13.*s %9<PRId32> %s\n"
-msgstr " %-13.*s %9<PRId32> %s\n"
-
-#: src/readelf.c:9258
-#, c-format
-msgid "cannot get content of note section: %s"
-msgstr "не вдалося отримати вміст розділу записів: %s"
-
-#: src/readelf.c:9285
-#, c-format
-msgid ""
-"\n"
-"Note section [%2zu] '%s' of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Розділ записів (note) [%2zu] «%s» з %<PRIu64> байтів за зміщенням "
-"%#0<PRIx64>:\n"
-
-#: src/readelf.c:9308
-#, c-format
-msgid ""
-"\n"
-"Note segment of %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Сегмент записів з %<PRIu64> байтів за зміщенням %#0<PRIx64>:\n"
-
-#: src/readelf.c:9354
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no data to dump.\n"
-msgstr ""
-"\n"
-"У розділі [%Zu] «%s» не міститься даних для створення дампу.\n"
-
-#: src/readelf.c:9360 src/readelf.c:9383
-#, c-format
-msgid "cannot get data for section [%Zu] '%s': %s"
-msgstr "не вдалося отримати дані для розділу [%Zu] «%s»: %s"
-
-#: src/readelf.c:9364
-#, c-format
-msgid ""
-"\n"
-"Hex dump of section [%Zu] '%s', %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Шіст. дамп розділу [%Zu] «%s», %<PRIu64> байтів за зміщенням %#0<PRIx64>:\n"
-
-#: src/readelf.c:9377
-#, c-format
-msgid ""
-"\n"
-"Section [%Zu] '%s' has no strings to dump.\n"
-msgstr ""
-"\n"
-"У розділі [%Zu] «%s» не міститься рядків для створення дампу.\n"
-
-#: src/readelf.c:9387
-#, c-format
-msgid ""
-"\n"
-"String section [%Zu] '%s' contains %<PRIu64> bytes at offset %#0<PRIx64>:\n"
-msgstr ""
-"\n"
-"Розділ рядків [%Zu] «%s» містить %<PRIu64> байтів за зміщенням %#0<PRIx64>:\n"
-
-#: src/readelf.c:9435
-#, c-format
-msgid ""
-"\n"
-"section [%lu] does not exist"
-msgstr ""
-"\n"
-"розділу [%lu] не існує"
-
-#: src/readelf.c:9464
-#, c-format
-msgid ""
-"\n"
-"section '%s' does not exist"
-msgstr ""
-"\n"
-"розділу «%s» не існує"
-
-#: src/readelf.c:9521
-#, c-format
-msgid "cannot get symbol index of archive '%s': %s"
-msgstr "не вдалося отримати покажчик символів архіву «%s»: %s"
-
-#: src/readelf.c:9524
-#, c-format
-msgid ""
-"\n"
-"Archive '%s' has no symbol index\n"
-msgstr ""
-"\n"
-"У архіві «%s» немає покажчика символів\n"
-
-#: src/readelf.c:9528
-#, c-format
-msgid ""
-"\n"
-"Index of archive '%s' has %Zu entries:\n"
-msgstr ""
-"\n"
-"Покажчик архіву «%s» містить %Zu записів:\n"
-
-#: src/readelf.c:9546
-#, c-format
-msgid "cannot extract member at offset %Zu in '%s': %s"
-msgstr "не вдалося видобути елемент за зміщенням %Zu у «%s»: %s"
-
-#: src/readelf.c:9551
-#, c-format
-msgid "Archive member '%s' contains:\n"
-msgstr "Елемент архіву «%s» містить:\n"
-
-#: src/size.c:60
-msgid ""
-"Use the output format FORMAT. FORMAT can be `bsd' or `sysv'. The default "
-"is `bsd'"
-msgstr ""
-"Використовувати формат виводу ФОРМАТ. ФОРМАТом може бути «bsd» або «sysv». "
-"Типовим є значення «bsd»"
-
-#: src/size.c:62
-msgid "Same as `--format=sysv'"
-msgstr "Те саме, що і «--format=sysv»"
-
-#: src/size.c:63
-msgid "Same as `--format=bsd'"
-msgstr "Те саме, що і «--format=bsd»"
-
-#: src/size.c:66
-msgid "Same as `--radix=10'"
-msgstr "Те саме, що і «--radix=10»"
-
-#: src/size.c:67
-msgid "Same as `--radix=8'"
-msgstr "Те саме, що і «--radix=8»"
-
-#: src/size.c:68
-msgid "Same as `--radix=16'"
-msgstr "Те саме, що і «--radix=16»"
-
-#: src/size.c:70
-msgid "Similar to `--format=sysv' output but in one line"
-msgstr "Вивід даних у форматі, подібному до «--format=sysv», але у один рядок"
-
-#: src/size.c:74
-msgid "Print size and permission flags for loadable segments"
-msgstr ""
-"Вивести розмір і прапорці прав доступу для придатних до завантаження "
-"сегментів"
-
-#: src/size.c:75
-msgid "Display the total sizes (bsd only)"
-msgstr "Показувати загальні розміри (лише bsd)"
-
-#: src/size.c:80
-msgid "List section sizes of FILEs (a.out by default)."
-msgstr "Показати розміри розділів ФАЙЛів (типово a.out)."
-
-#: src/size.c:261
-#, c-format
-msgid "Invalid format: %s"
-msgstr "Некоректний формат: %s"
-
-#: src/size.c:272
-#, c-format
-msgid "Invalid radix: %s"
-msgstr "Некоректна основа числення: %s"
-
-#: src/size.c:331
-#, c-format
-msgid "%s: file format not recognized"
-msgstr "%s: не вдалося розпізнати формат файла"
-
-#: src/size.c:437 src/size.c:570
-#, c-format
-msgid " (ex %s)"
-msgstr " (прикл. %s)"
-
-#: src/size.c:595
-msgid "(TOTALS)\n"
-msgstr "(ЗАГАЛОМ)\n"
-
-#: src/strings.c:62
-msgid "Output Selection:"
-msgstr "Вибір виводу:"
-
-#: src/strings.c:63
-msgid "Scan entire file, not only loaded sections"
-msgstr "Шукати у всьому файлі, а не лише у завантажених розділах"
-
-#: src/strings.c:65
-msgid "Only NUL-terminated sequences of MIN-LEN characters or more are printed"
-msgstr ""
-"Буде виведено лише послідовності з не менше, ніж MIN-LEN символів, що "
-"завершуються на NUL"
-
-#: src/strings.c:66
-msgid ""
-"Select character size and endianess: s = 7-bit, S = 8-bit, {b,l} = 16-bit, "
-"{B,L} = 32-bit"
-msgstr ""
-"Визначення розмірності та порядку бітів символів: s = 7-бітові, S = 8-"
-"бітові, {b,l} = 16-бітові, {B,L} = 32-бітові"
-
-#: src/strings.c:70
-msgid "Print name of the file before each string."
-msgstr "Виводити назву файла перед кожним рядком."
-
-#: src/strings.c:72
-msgid "Print location of the string in base 8, 10, or 16 respectively."
-msgstr "Виводити адресу рядка за основами 8, 10 та 16, відповідно."
-
-#: src/strings.c:73
-msgid "Alias for --radix=o"
-msgstr "Замінник --radix=o"
-
-#: src/strings.c:80
-msgid "Print the strings of printable characters in files."
-msgstr "Вивести рядки файлів з символів, придатних для друку."
-
-#: src/strings.c:267 src/strings.c:302
-#, c-format
-msgid "invalid value '%s' for %s parameter"
-msgstr "некоректне значення «%s» параметра %s"
-
-#: src/strings.c:313
-#, c-format
-msgid "invalid minimum length of matched string size"
-msgstr "некоректна мінімальна довжина розмірності рядка для порівняння"
-
-#: src/strings.c:596
-#, c-format
-msgid "lseek64 failed"
-msgstr "помилка lseek64"
-
-#: src/strings.c:613 src/strings.c:677
-#, c-format
-msgid "re-mmap failed"
-msgstr "помилка повторного використання mmap"
-
-#: src/strings.c:650
-#, c-format
-msgid "mprotect failed"
-msgstr "помилка mprotect"
-
-#: src/strip.c:69
-msgid "Place stripped output into FILE"
-msgstr "Вивести дані після вилучення до ФАЙЛа"
-
-#: src/strip.c:70
-msgid "Extract the removed sections into FILE"
-msgstr "Видобути вилучені розділи до ФАЙЛа"
-
-#: src/strip.c:71
-msgid "Embed name FILE instead of -f argument"
-msgstr "Вбудувати назву ФАЙЛа замість аргументу -f"
-
-#: src/strip.c:75
-msgid "Remove all debugging symbols"
-msgstr "Вилучити всі символи зневаджування"
-
-#: src/strip.c:79
-msgid "Remove section headers (not recommended)"
-msgstr "Вилучити заголовки розділів (не рекомендовано)"
-
-#: src/strip.c:81
-msgid "Copy modified/access timestamps to the output"
-msgstr "Скопіювати часові позначки зміни/доступу до виведених даних"
-
-#: src/strip.c:83
-msgid ""
-"Resolve all trivial relocations between debug sections if the removed "
-"sections are placed in a debug file (only relevant for ET_REL files, "
-"operation is not reversable, needs -f)"
-msgstr ""
-"Розв’язати всі очевидні пересування між діагностичними розділами, якщо "
-"вилучені розділи було розташовано у діагностичному файлі (стосується лише "
-"файлів ET_REL, скасувати дію неможливо, потребує параметра -f)"
-
-#: src/strip.c:85
-msgid "Remove .comment section"
-msgstr "Вилучити розділ .comment"
-
-#: src/strip.c:88
-msgid "Relax a few rules to handle slightly broken ELF files"
-msgstr ""
-"Знехтувати декількома правилами для обробки трохи пошкоджених файлів ELF"
-
-#: src/strip.c:93
-msgid "Discard symbols from object files."
-msgstr "Відкинути символи з об’єктних файлів"
-
-#: src/strip.c:181
-#, c-format
-msgid "--reloc-debug-sections used without -f"
-msgstr "--reloc-debug-sections використано без -f"
-
-#: src/strip.c:195
-#, c-format
-msgid "Only one input file allowed together with '-o' and '-f'"
-msgstr ""
-"Разом з «-o» або «-f» можна використовувати лише один файл вхідних даних"
-
-#: src/strip.c:231
-#, c-format
-msgid "-f option specified twice"
-msgstr "параметр -f вказано двічі"
-
-#: src/strip.c:240
-#, c-format
-msgid "-F option specified twice"
-msgstr "параметр -F вказано двічі"
-
-#: src/strip.c:249 src/unstrip.c:121
-#, c-format
-msgid "-o option specified twice"
-msgstr "параметр -o вказано двічі"
-
-#: src/strip.c:273
-#, c-format
-msgid "-R option supports only .comment section"
-msgstr "Для параметра -R передбачено підтримку лише розділу .comment"
-
-#: src/strip.c:315 src/strip.c:339
-#, c-format
-msgid "cannot stat input file '%s'"
-msgstr "не вдалося отримати дані з вхідного файла «%s» за допомогою stat"
-
-#: src/strip.c:329
-#, c-format
-msgid "while opening '%s'"
-msgstr "під час спроби відкриття «%s»"
-
-#: src/strip.c:367
-#, c-format
-msgid "%s: cannot use -o or -f when stripping archive"
-msgstr ""
-"%s: не можна використовувати -o або -f під час вилучення додаткового вмісту "
-"архіву"
-
-#: src/strip.c:468
-#, c-format
-msgid "cannot open EBL backend"
-msgstr "не вдалося відкрити канал сервера EBL"
-
-#: src/strip.c:508
-#, fuzzy, c-format
-msgid "cannot get number of phdrs"
-msgstr "не вдалося визначити кількість заголовків програми: %s"
-
-#: src/strip.c:523 src/strip.c:547
-#, c-format
-msgid "cannot create new file '%s': %s"
-msgstr "не вдалося створити файл «%s»: %s"
-
-#: src/strip.c:613
-#, c-format
-msgid "illformed file '%s'"
-msgstr "помилкове форматування файла «%s»"
-
-#: src/strip.c:935 src/strip.c:1024
-#, c-format
-msgid "while generating output file: %s"
-msgstr "під час спроби створення файла з виведеними даними: %s"
-
-#: src/strip.c:997 src/strip.c:1962
-#, c-format
-msgid "%s: error while creating ELF header: %s"
-msgstr "%s: помилка під час створення заголовка ELF: %s"
-
-#: src/strip.c:1011
-#, c-format
-msgid "while preparing output for '%s'"
-msgstr "під час приготування виведених даних для «%s»"
-
-#: src/strip.c:1062 src/strip.c:1119
-#, c-format
-msgid "while create section header section: %s"
-msgstr "під час створення розділу заголовка розділу: %s"
-
-#: src/strip.c:1068
-#, c-format
-msgid "cannot allocate section data: %s"
-msgstr "не вдалося розмістити дані розділу: %s"
-
-#: src/strip.c:1128
-#, c-format
-msgid "while create section header string table: %s"
-msgstr "під час створення таблиці рядків заголовка розділу: %s"
-
-#: src/strip.c:1757
-#, c-format
-msgid "bad relocation"
-msgstr "помилкове пересування"
-
-#: src/strip.c:1874 src/strip.c:1984
-#, c-format
-msgid "while writing '%s': %s"
-msgstr "під час запису «%s»: %s"
-
-#: src/strip.c:1885
-#, c-format
-msgid "while creating '%s'"
-msgstr "під час спроби створення «%s»"
-
-#: src/strip.c:1907
-#, c-format
-msgid "while computing checksum for debug information"
-msgstr "під час обчислення контрольної суми для діагностичних даних"
-
-#: src/strip.c:1970
-#, c-format
-msgid "%s: error while reading the file: %s"
-msgstr "%s: помилка під час читання файла: %s"
-
-#: src/strip.c:2009 src/strip.c:2029
-#, c-format
-msgid "while writing '%s'"
-msgstr "під час спроби запису «%s»"
-
-#: src/strip.c:2066 src/strip.c:2073
-#, c-format
-msgid "error while finishing '%s': %s"
-msgstr "помилка під час завершення «%s»: %s"
-
-#: src/strip.c:2096 src/strip.c:2153
-#, c-format
-msgid "cannot set access and modification date of '%s'"
-msgstr "не вдалося встановити права доступу та дату зміни «%s»"
-
-#: src/unstrip.c:70
-msgid "Match MODULE against file names, not module names"
-msgstr ""
-"Встановити відповідність МОДУЛЯ назвам файлів, а не назвам модулів names"
-
-#: src/unstrip.c:71
-msgid "Silently skip unfindable files"
-msgstr "Пропустити незнайдені файли без додаткових повідомлень"
-
-#: src/unstrip.c:74
-msgid "Place output into FILE"
-msgstr "Вивести дані у ФАЙЛ"
-
-#: src/unstrip.c:76
-msgid "Create multiple output files under DIRECTORY"
-msgstr "Створити декілька файлів виведених даних у КАТАЛОЗІ"
-
-#: src/unstrip.c:77
-msgid "Use module rather than file names"
-msgstr "Використовувати назви модулів, а не файлів"
-
-#: src/unstrip.c:79
-msgid "Create output for modules that have no separate debug information"
-msgstr ""
-"Вивести дані для модулів, які не містять окремих діагностичних відомостей"
-
-#: src/unstrip.c:82
-msgid "Apply relocations to section contents in ET_REL files"
-msgstr "Застосувати пересування до вмісту розділів у файлах ET_REL"
-
-#: src/unstrip.c:84
-msgid "Only list module and file names, build IDs"
-msgstr "Вивести лише список назв модулів, файлів, побудувати ідентифікатори"
-
-#: src/unstrip.c:86
-msgid "Force combining files even if some ELF headers don't seem to match"
-msgstr ""
-
-#: src/unstrip.c:130
-#, c-format
-msgid "-d option specified twice"
-msgstr "параметр -d вказано двічі"
-
-#: src/unstrip.c:165
-#, c-format
-msgid "only one of -o or -d allowed"
-msgstr "можна використовувати лише один з параметрів: -o або -d"
-
-#: src/unstrip.c:174
-#, c-format
-msgid "-n cannot be used with explicit files or -o or -d"
-msgstr ""
-"-n не можна використовувати з файлами, заданими явно, або параметрами -o і -d"
-
-#: src/unstrip.c:189
-#, c-format
-msgid "output directory '%s'"
-msgstr "каталог виведення даних «%s»"
-
-#: src/unstrip.c:198
-#, c-format
-msgid "exactly two file arguments are required"
-msgstr "як аргументи має бути вказано точно два файла"
-
-#: src/unstrip.c:204
-#, c-format
-msgid "-m, -a, -R, and -i options not allowed with explicit files"
-msgstr ""
-"для файлів, заданих явно, не можна використовувати параметри -m, -a, -R і -i"
-
-#: src/unstrip.c:217
-#, c-format
-msgid "-o or -d is required when using implicit files"
-msgstr ""
-"якщо використовуються файли, задані неявно, слід додавати параметр -o або -d"
-
-#: src/unstrip.c:253
-#, c-format
-msgid "cannot create ELF header: %s"
-msgstr "не вдалося створити заголовок ELF: %s"
-
-#: src/unstrip.c:258
-#, c-format
-msgid "cannot copy ELF header: %s"
-msgstr "не вдалося скопіювати заголовок ELF: %s"
-
-#: src/unstrip.c:262 src/unstrip.c:1832 src/unstrip.c:1876
-#, fuzzy, c-format
-msgid "cannot get number of program headers: %s"
-msgstr "не вдалося визначити кількість заголовків програми: %s"
-
-#: src/unstrip.c:267 src/unstrip.c:1836
-#, c-format
-msgid "cannot create program headers: %s"
-msgstr "не вдалося створити заголовки програми: %s"
-
-#: src/unstrip.c:273
-#, c-format
-msgid "cannot copy program header: %s"
-msgstr "не вдалося скопіювати заголовок програми: %s"
-
-#: src/unstrip.c:283
-#, c-format
-msgid "cannot copy section header: %s"
-msgstr "не вдалося скопіювати заголовок розділу: %s"
-
-#: src/unstrip.c:286 src/unstrip.c:1513
-#, c-format
-msgid "cannot get section data: %s"
-msgstr "не вдалося отримати дані розділу: %s"
-
-#: src/unstrip.c:288 src/unstrip.c:1515
-#, c-format
-msgid "cannot copy section data: %s"
-msgstr "не вдалося скопіювати дані розділу: %s"
-
-#: src/unstrip.c:312
-#, c-format
-msgid "cannot create directory '%s'"
-msgstr "не вдалося створити каталог «%s»"
-
-#: src/unstrip.c:352 src/unstrip.c:769 src/unstrip.c:1547
-#, c-format
-msgid "cannot get symbol table entry: %s"
-msgstr "не вдалося отримати запис таблиці символів: %s"
-
-#: src/unstrip.c:368 src/unstrip.c:586 src/unstrip.c:607 src/unstrip.c:619
-#: src/unstrip.c:1568 src/unstrip.c:1698 src/unstrip.c:1722
-#, c-format
-msgid "cannot update symbol table: %s"
-msgstr "не вдалося оновити таблицю символів: %s"
-
-#: src/unstrip.c:378
-#, c-format
-msgid "cannot update section header: %s"
-msgstr "не вдалося оновити заголовок розділу: %s"
-
-#: src/unstrip.c:417 src/unstrip.c:428
-#, c-format
-msgid "cannot update relocation: %s"
-msgstr "не вдалося оновити пересування: %s"
-
-#: src/unstrip.c:515
-#, c-format
-msgid "cannot get symbol version: %s"
-msgstr "не вдалося отримати версію символу: %s"
-
-#: src/unstrip.c:527
-#, c-format
-msgid "unexpected section type in [%Zu] with sh_link to symtab"
-msgstr "неочікуваний тип розділу у [%Zu] з посиланням sh_link на symtab"
-
-#: src/unstrip.c:775
-#, c-format
-msgid "invalid string offset in symbol [%Zu]"
-msgstr "некоректне зміщення рядка у символі [%Zu]"
-
-#: src/unstrip.c:917 src/unstrip.c:1258
-#, c-format
-msgid "cannot read section [%Zu] name: %s"
-msgstr "не вдалося прочитати назву розділу [%Zu]: %s"
-
-#: src/unstrip.c:958 src/unstrip.c:977 src/unstrip.c:1010
-#, c-format
-msgid "cannot read '.gnu.prelink_undo' section: %s"
-msgstr "не вдалося прочитати розділ «.gnu.prelink_undo»: %s"
-
-#: src/unstrip.c:998
-#, c-format
-msgid "invalid contents in '%s' section"
-msgstr "некоректний вміст розділу «%s»"
-
-#: src/unstrip.c:1053 src/unstrip.c:1378
-#, c-format
-msgid "cannot find matching section for [%Zu] '%s'"
-msgstr "не вдалося знайти відповідний розділ для [%Zu] «%s»"
-
-#: src/unstrip.c:1178 src/unstrip.c:1193 src/unstrip.c:1459
-#, c-format
-msgid "cannot add section name to string table: %s"
-msgstr "не вдалося додати назву розділу до таблиці рядків: %s"
-
-#: src/unstrip.c:1202
-#, c-format
-msgid "cannot update section header string table data: %s"
-msgstr "не вдалося оновити дані заголовка розділу у таблиці рядків: %s"
-
-#: src/unstrip.c:1229 src/unstrip.c:1233
-#, c-format
-msgid "cannot get section header string table section index: %s"
-msgstr ""
-"не вдалося визначити індекс розділу заголовка розділу у таблиці рядків: %s"
-
-#: src/unstrip.c:1237 src/unstrip.c:1241 src/unstrip.c:1474
-#, c-format
-msgid "cannot get section count: %s"
-msgstr "не вдалося отримати кількість розділів: %s"
-
-#: src/unstrip.c:1244
-#, c-format
-msgid "more sections in stripped file than debug file -- arguments reversed?"
-msgstr ""
-"у очищеному файлі більше розділів ніж у файлі з даними для зневаджування — "
-"помилковий порядок параметрів?"
-
-#: src/unstrip.c:1303 src/unstrip.c:1393
-#, c-format
-msgid "cannot read section header string table: %s"
-msgstr "не вдалося прочитати таблицю рядків заголовка розділу: %s"
-
-#: src/unstrip.c:1453
-#, c-format
-msgid "cannot add new section: %s"
-msgstr "не вдалося додати новий розділ: %s"
-
-#: src/unstrip.c:1555
-#, c-format
-msgid "symbol [%Zu] has invalid section index"
-msgstr "символ [%Zu] має некоректний індекс розділу"
-
-#: src/unstrip.c:1793
-#, c-format
-msgid "cannot read section data: %s"
-msgstr "не вдалося прочитати дані розділу: %s"
-
-#: src/unstrip.c:1814
-#, c-format
-msgid "cannot get ELF header: %s"
-msgstr "не вдалося отримати заголовок ELF: %s"
-
-#: src/unstrip.c:1846
-#, c-format
-msgid "cannot update program header: %s"
-msgstr "не вдалося оновити заголовок програми: %s"
-
-#: src/unstrip.c:1851 src/unstrip.c:1934
-#, c-format
-msgid "cannot write output file: %s"
-msgstr "не вдалося записати файл виведених даних: %s"
-
-#: src/unstrip.c:1903
-#, c-format
-msgid "DWARF data not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-"Дані DWARF не скориговано відповідно до відхилення перед компонуванням; "
-"спробуйте виправити це командою prelink -u"
-
-#: src/unstrip.c:1906
-#, c-format
-msgid ""
-"DWARF data in '%s' not adjusted for prelinking bias; consider prelink -u"
-msgstr ""
-"Дані DWARF у «%s» не скориговано відповідно до відхилення перед "
-"компонуванням; спробуйте виправити це командою prelink -u"
-
-#: src/unstrip.c:1925 src/unstrip.c:1976 src/unstrip.c:1988 src/unstrip.c:2074
-#, c-format
-msgid "cannot create ELF descriptor: %s"
-msgstr "не вдалося створити дескриптор ELF: %s"
-
-#: src/unstrip.c:1967
-msgid "WARNING: "
-msgstr ""
-
-#: src/unstrip.c:1969
-msgid ", use --force"
-msgstr ""
-
-#: src/unstrip.c:1992
-msgid "ELF header identification (e_ident) different"
-msgstr ""
-
-#: src/unstrip.c:1995
-msgid "ELF header type (e_type) different"
-msgstr ""
-
-#: src/unstrip.c:1998
-msgid "ELF header machine type (e_machine) different"
-msgstr ""
-
-#: src/unstrip.c:2001
-msgid "stripped program header (e_phnum) smaller than unstripped"
-msgstr ""
-
-#: src/unstrip.c:2031
-#, c-format
-msgid "cannot find stripped file for module '%s': %s"
-msgstr "не вдалося знайти очищений файл для модуля «%s»: %s"
-
-#: src/unstrip.c:2035
-#, c-format
-msgid "cannot open stripped file '%s' for module '%s': %s"
-msgstr "не вдалося відкрити очищений файл «%s» для модуля «%s»: %s"
-
-#: src/unstrip.c:2050
-#, c-format
-msgid "cannot find debug file for module '%s': %s"
-msgstr "не вдалося знайти файл діагностичних даних для модуля «%s»: %s"
-
-#: src/unstrip.c:2054
-#, c-format
-msgid "cannot open debug file '%s' for module '%s': %s"
-msgstr "не вдалося відкрити файл діагностичних даних «%s» для модуля «%s»: %s"
-
-#: src/unstrip.c:2067
-#, c-format
-msgid "module '%s' file '%s' is not stripped"
-msgstr "у модулі «%s» файл «%s» не очищено strip"
-
-#: src/unstrip.c:2098
-#, c-format
-msgid "cannot cache section addresses for module '%s': %s"
-msgstr "не вдалося кешувати адреси розділів для модуля «%s»: %s"
-
-#: src/unstrip.c:2231
-#, c-format
-msgid "no matching modules found"
-msgstr "відповідних модулів не виявлено"
-
-#: src/unstrip.c:2240
-#, c-format
-msgid "matched more than one module"
-msgstr "встановлено відповідність декількох модулів"
-
-#: src/unstrip.c:2287
-msgid ""
-"STRIPPED-FILE DEBUG-FILE\n"
-"[MODULE...]"
-msgstr ""
-"ОЧИЩЕНИЙ-ФАЙЛ ФАЙЛ-DEBUG\n"
-"[МОДУЛЬ...]"
-
-#: src/unstrip.c:2288
-msgid ""
-"Combine stripped files with separate symbols and debug information.\vThe "
-"first form puts the result in DEBUG-FILE if -o was not given.\n"
-"\n"
-"MODULE arguments give file name patterns matching modules to process.\n"
-"With -f these match the file name of the main (stripped) file (slashes are "
-"never special), otherwise they match the simple module names. With no "
-"arguments, process all modules found.\n"
-"\n"
-"Multiple modules are written to files under OUTPUT-DIRECTORY, creating "
-"subdirectories as needed. With -m these files have simple module names, "
-"otherwise they have the name of the main file complete with directory "
-"underneath OUTPUT-DIRECTORY.\n"
-"\n"
-"With -n no files are written, but one line to standard output for each "
-"module:\n"
-"\tSTART+SIZE BUILDID FILE DEBUGFILE MODULENAME\n"
-"START and SIZE are hexadecimal giving the address bounds of the module. "
-"BUILDID is hexadecimal for the build ID bits, or - if no ID is known; the "
-"hexadecimal may be followed by @0xADDR giving the address where the ID "
-"resides if that is known. FILE is the file name found for the module, or - "
-"if none was found, or . if an ELF image is available but not from any named "
-"file. DEBUGFILE is the separate debuginfo file name, or - if no debuginfo "
-"was found, or . if FILE contains the debug information."
-msgstr ""
-"Комбінувати очищені файли з окремими даними щодо символів та діагностичними "
-"даними.\vЗа використання першої форми команди, результати буде виведено до "
-"ФАЙЛА-DEBUG, якщо не файл виведених даних не вказано параметром -o.\n"
-"\n"
-"За допомогою аргументів МОДУЛЬ можна вказати шаблони назв файлів модулів, "
-"які слід обробити.\n"
-"З -f ці назви модулів відповідатимуть назві основного (очищеного strip) "
-"файла (похилі риски не є спеціальними символами), якщо ж -f не вказано, "
-"назви вважатимуться простими назвами модулів. Якщо аргументів не буде "
-"вказано, програма обробить всі знайдені модулі.\n"
-"\n"
-"Вказані модулі буде записано до файлів у КАТАЛОЗІ-ВИВОДУ, зі створенням, за "
-"потреби, підкаталогів. З параметром -m файли виведених даних "
-"створюватимуться за назвами модулів, якщо ж цього параметра вказано не буде, "
-"програма створюватиме файл з назвою основного файла у основному КАТАЛОЗІ-"
-"ВИВОДУ.\n"
-"\n"
-"Якщо буде вказано параметр -n, дані до файлів не виводитимуться, програма "
-"виведе для кожного модуля до стандартного виводу такі дані:\n"
-"\tПОЧАТОК+РОЗМІР ІДЕНТИФІКАТОР-ЗБИРАННЯ ФАЙЛ ФАЙЛ-DEBUG НАЗВА-МОДУЛЯ\n"
-"ПОЧАТОК і РОЗМІР буде виведено як шістнадцяткові числа у межах адресного "
-"простору модуля. ІДЕНТИФІКАТОР-ЗБИРАННЯ — це шістнадцяткове число, що "
-"відповідає бітам ідентифікатора збирання, або «-», якщо ідентифікатор "
-"невідомий; за шістнадцятковим числом може слідувати @0xАДРЕСА, яка вказує "
-"місце розташування ідентифікатора, якщо воно відоме. ФАЙЛ відповідає назві "
-"файла, знайденого для модуля, або «-», якщо файл не знайдено, і «.», якщо "
-"вдалося знайти образ ELF, але без жодного файла з назвою. ФАЙЛ-DEBUG — назва "
-"окремого файла діагностичних даних або «-», якщо файла діагностичних даних "
-"не вдалося знайти, і «.», якщо ФАЙЛ сам містить діагностичні дані."
-
-#, fuzzy
-#~ msgid "cannot attach to process"
-#~ msgstr "не вдалося створити дерево пошуку"
-
-#, fuzzy
-#~ msgid "cannot attach to core"
-#~ msgstr "не вдалося створити дерево пошуку"
-
-#~ msgid "'%s' and '%s' do not seem to match"
-#~ msgstr "«%s» і «%s» не відповідають одне одному"
-
-#~ msgid "unknown tag %hx"
-#~ msgstr "невідомий теґ %hx"
-
-#~ msgid "unknown user tag %hx"
-#~ msgstr "невідомий теґ користувача %hx"
-
-#~ msgid "unknown attribute %hx"
-#~ msgstr "невідомий атрибут %hx"
-
-#~ msgid "unknown user attribute %hx"
-#~ msgstr "невідомий атрибут користувача %hx"
-
-#~ msgid "unknown form %#<PRIx64>"
-#~ msgstr "невідома форма %#<PRIx64>"
-
-#~ msgid ""
-#~ "\n"
-#~ "\n"
-#~ "Symbols from %s[%s]:\n"
-#~ "\n"
-#~ msgstr ""
-#~ "\n"
-#~ "\n"
-#~ "Символи з %s[%s]:\n"
-#~ "\n"
-
-#~ msgid "%s %s differ: section header"
-#~ msgstr "%s %s diff: заголовок розділу"
diff --git a/src/src/ranlib.c b/src/ranlib.c
index 8435fc1b..8435fc1b 100644
--- a/src/src/ranlib.c
+++ b/src/ranlib.c
diff --git a/src/src/readelf.c b/src/readelf.c
index df0a874d..df0a874d 100644
--- a/src/src/readelf.c
+++ b/src/readelf.c
diff --git a/src/src/sectionhash.c b/src/sectionhash.c
index 83a7cca6..83a7cca6 100644
--- a/src/src/sectionhash.c
+++ b/src/sectionhash.c
diff --git a/src/src/sectionhash.h b/src/sectionhash.h
index 96da3367..96da3367 100644
--- a/src/src/sectionhash.h
+++ b/src/sectionhash.h
diff --git a/src/src/size.c b/src/size.c
index 0e7e41e4..0e7e41e4 100644
--- a/src/src/size.c
+++ b/src/size.c
diff --git a/src/src/ChangeLog b/src/src/ChangeLog
deleted file mode 100644
index 0ae863ed..00000000
--- a/src/src/ChangeLog
+++ /dev/null
@@ -1,3202 +0,0 @@
-2014-12-18 Ulrich Drepper <drepper@gmail.com>
-
- * Makefile.am: Suppress output of textrel_check command.
-
-2014-12-17 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_cfa_program): Add bounds check before each op that
- takes at least one argument.
-
-2014-12-16 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_decoded_line_section): Print dwarf_errmsg if
- dwarf_onesrcline or dwarf_linesrc fails.
-
-2014-12-16 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_line_section): Correct overflow check for
- unit_length.
- (print_debug_aranges_section): Correct overflow check for length.
-
-2014-12-15 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (notice_listptr): Return false if offset doesn't fit
- in 61-bits.
- (attr_callback): Warn if loclist or rangelist offset doesn't fit.
-
-2014-12-15 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): Don't assert when addr_size or ref_size
- is not 4 or 8, just report invalid data.
-
-2014-12-15 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_gdb_index_section): Add more bounds checks.
-
-2014-12-15 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_line_section): Check there is enough room
- for DW_LNE_set_address argument. Make sure there is enough room
- for the the initial unit_length.
-
-2014-12-14 Mark Wielaard <mjw@redhat.com>
-
- * elflint.c (check_attributes): Call get_uleb128 with end pointer.
- * readelf.c (print_attributes): Likewise.
- (print_ops): Likewise and also for get_sleb128.
- (print_cfa_program): Likewise and add more readp bounds checks.
- (read_encoded): Likewise.
- (print_debug_frame_section): Likewise.
- (print_debug_line_section): Likewise.
- (print_debug_macinfo_section): Likewise.
- (print_debug_macro_section): Likewise.
- (print_debug_exception_table): Likewise.
-
-2014-12-16 Mark Wielaard <mjw@redhat.com>
-
- * elfcmp.c (compare_Elf32_Word): Make sure (unsigned) Elf32_Word
- difference doesn't wrap around before returning as int.
-
-2014-12-11 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_exception_table): Check TType base offset
- and Action table are sane.
-
-2014-12-11 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_frame_section): Check number of augmentation
- chars to print.
-
-2014-12-09 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_file_note): Check count fits data section and
- doesn't overflow fptr.
-
-2014-12-08 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_exception_table): Report invalid data if
- action table doesn't immediately follow call site table.
-
-2014-12-10 Josh Stone <jistone@redhat.com>
-
- * addr2line.c (get_diename): New, get linkage_name or name.
- * addr2line.c (print_dwarf_function): Use get_diename.
- * addr2line.c (handle_address): Likewise.
- * addr2line.c (print_diesym): Removed.
-
-2014-12-10 Josh Stone <jistone@redhat.com>
-
- * addr2line.c (handle_address): Find the proper inline parents.
-
-2014-12-07 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_line_section): max_ops_per_instr cannot
- be zero.
-
-2014-12-07 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): Handle zero ref_size for DW_OP_call_ref
- and DW_OP_GNU_implicit_pointer.
-
-2014-12-04 Mark Wielaard <mjw@redhat.com>
-
- * objdump.c (show_relocs_x): Make sure destshdr exists.
- (show_relocs_rel): Don't rely on shdr->sh_entsize, use gelf_fsize.
- (show_relocs_rela): Likewise.
- (show_relocs): Make sure destshdr, symshdr and symdata exists.
-
-2014-11-30 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_sysv_hash64): Fix overflow check.
-
-2014-11-28 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_relocs_rel): Don't reuse destshdr to store
- section header of a relocation against a STT_SECTION symbol. Use
- a new local variable secshdr.
- (handle_relocs_rela): Likewise.
-
-2014-11-26 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_aranges_section): Cast Dwarf_Word length
- to ptrdiff_t for comparison.
-
-2014-11-24 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_line_section): Check line_range is not zero
- before usage.
-
-2014-11-23 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_aranges_section): Check length to catch
- nexthdr overflow.
-
-2014-11-21 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_attributes): Guard against empty section.
- Document attribute format. Break when vendor name isn't terminated.
- Add overflow check for subsection_len. Handle both gnu and non-gnu
- attribute tags.
-
-2014-11-22 Mark Wielaard <mjw@redhat.com>
-
- * elflint.c (check_sections): Call ebl_bss_plt_p without ehdr.
- * findtextrel.c (process_file): Use elf_getphdrnum.
- * readelf.c (process_elf_file): Remove redundant ehdr->e_phoff check.
- (print_phdr): Check phnum.
- * size.c (show_segments): Use elf_getphdrnum.
- * strip.c (handle_elf): Likewise.
- * unstrip.c (copy_elf): Likewise.
- (copy_elided_sections): Likewise.
- (handle_file): Likewise.
-
-2014-11-18 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_cfa_program): Fix sanity check of DW_FORM_block
- length.
-
-2014-11-17 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_verneed): Check vna_next and vn_next exist.
- (handle_verdef): Check vda_next and vd_next exist.
- (handle_versym): Check vd_next, vna_next and vn_next exist.
- Check vername and filename are not NULL before use.
-
-2014-11-17 Mark Wielaard <mjw@redhat.com>
-
- * elfcmp.c (main): Check section names are NULL before use.
- * objdump.c (section_match): Likewise.
- * size.c (show_sysv): Likewise.
-
-2014-11-17 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_frame_section): Warn if ptr_size is not 4
- or 8 instead of just calling print_cfa_program.
-
-2014-11-16 Mark Wielaard <mjw@redhat.com>
-
- * readelf (process_elf_file): Set phnum to zero if there aren't
- actually any pheaders.
- (print_phdr): Check there actually is a phdr.
-
-2014-11-16 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_cfa_program): Check block len before calling
- print_ops.
-
-2014-11-14 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_frame_section): Sanity Check CIE
- unit_length and augmentationlen.
-
-2014-11-14 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_versym): Check def == NULL before use.
-
-2014-11-08 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_versym): Initialize vername and filename array
- elements.
-
-2014-11-07 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_sysv_hash): Sanity check section contents.
- (handle_sysv_hash64): Likewise.
- (handle_gnu_hash): Likewise.
-
-2014-09-14 Petr Machata <pmachata@redhat.com>
-
- * readelf.c (handle_relocs_rela): Typo fix, test DESTSHDR properly.
-
-2014-09-12 Petr Machata <pmachata@redhat.com>
-
- * readelf.c (encoded_ptr_size): In the switch statement, change
- magic constants 3 and 4 to DW_EH_PE_* counterparts. Still accept
- 0. Print diagnostic for anything else.
-
-2014-08-25 Josh Stone <jistone@redhat.com>
-
- * Makefile.am: Prevent premature @AR@ replacement in a sed expression.
-
-2014-07-04 Menanteau Guy <menantea@linux.vnet.ibm.com>
- Mark Wielaard <mjw@redhat.com>
-
- * elflint (check_symtab): Add ".TOC." to the list of possibly
- dangling symbols because of sourceware PR13621.
-
-2014-06-14 Mark Wielaard <mjw@redhat.com>
-
- * elflint (check_symtab): Use ebl_func_addr_mask on st_value.
-
-2014-05-27 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug): Skip section if name is NULL.
-
-2014-05-26 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_relocs_rela): Print header like handle_relocs_rel
- does, when sh_info == 0.
-
-2014-05-26 Mark Wielaard <mjw@redhat.com>
-
- * unstrip.c (find_alloc_sections_prelink): Allow non-split .bss
- section when sh_size of the original and undo .bss section are equal.
-
-2014-05-26 Mark Wielaard <mjw@redhat.com>
-
- * unstrip.c (options): Add --force, -F.
- (struct arg_info): Add bool force.
- (parse_opt): Handle 'F', set force.
- (handle_explicit_files): Add force argument, add warn function,
- separate check ehdr field checks, use warn.
- (handle_dwfl_module): Add force argument, pass on to
- handle_explicit_files.
- (handle_output_dir_module): Add force argument, pass on to
- handle_dwfl_module.
- (handle_implicit_modules): Pass info->force to handle_dwfl_module and
- handle_output_dir_module.
- (main): Pass info.force to handle_explicit_files.
-
-2014-05-19 Mark Wielaard <mjw@redhat.com>
-
- * elflint.c (check_reloc_shdr): Check ebl_check_reloc_target_type.
-
-2014-05-01 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (find_no_debuginfo): Call dwfl_standard_find_debuginfo
- if looking for alternate debug file.
-
-2014-04-11 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (AM_CPPFLAGS): Add -I libdwelf.
-
-2014-04-22 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_core_item): Make sure variable length array
- contains at least enough space for terminating zero char.
-
-2014-04-22 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_gdb_index_section): Use unsigned int for 31 bits
- left shift.
-
-2014-03-13 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Remove no_mudflap.os. Remove libmudflap from all
- LDADD lines.
- * strings.c (process_chunk): Remove _MUDFLAP condition.
-
-2014-04-09 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_aranges_section): Don't get the raw section
- data, use the possibly decompressed .[z]debug sectiondata.
- (print_debug_ranges_section): Likewise.
- (print_debug_frame_section): Likewise.
- (print_debug_line_section): Likewise.
- (print_debug_loc_section): Likewise.
- (print_debug_macinfo_section): Likewise.
- (print_debug_macro_section): Likewise.
-
-2014-04-10 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (buf_read_ulong): Pass actual long size to convert.
-
-2014-03-05 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (attr_callback): Print DW_FORM_sdata values as signed
- numbers.
-
-2014-02-24 Mark Wielaard <mjw@redhat.com>
-
- * readelf (print_phdr): Check there is a SHT_PROGBITS section at the
- offset given by p_offsets for a PT_INTERP segment before trying to
- display the interpreter string.
-
-2014-02-07 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_phdr): Check phdr->p_filesz and make sure
- interpreter string is zero terminated before calling printf.
-
-2014-01-22 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (nm_no_Wformat): Removed.
- (size_no_Wformat): Likewise.
- (strings_no_Wformat): Likewise.
- (addr2line_no_Wformat): Likewise.
- * size.c (show_sysv): Use fmtstr directly as literal in printf.
- (show_sysv_one_line): Likewise.
- * strings.c (locfmt): Removed.
- (radix): New static enum.
- (parse_opt): Set radix, not locfmt.
- (process_chunk_mb): Use fmtstr directly as literal in printf based
- on radix.
- (process_chunk): Likewise.
- * nm.c (show_symbols_sysv): Use fmtstr directly as literal in printf.
- (show_symbols_bsd): Likewise.
- (show_symbols_posix): Likewise.
-
-2014-01-21 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (show_inlines): New static boolean.
- (print_frame): New function split out from...
- (print_frames): ..here. If show_inlines is true and we found a
- DIE for the frame address, call print_inline_frames otherwise
- call print_frame. Keep track of and track frame_nr.
- (print_inline_frames): New function.
- (parse_opt): Handle '-i'.
- (main): Add 'i' to options.
-
-2014-01-27 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (maxframes): Initialize to 256.
- (main): Document new default in options. Document magic number
- used in frames.allocated initialization.
-
-2014-01-20 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (show_debugname): New static boolean.
- (die_name): New function.
- (print_frames): If show_debugname is true set symname to the
- first function-like DIE with a name in scope for the address in
- the debuginfo.
- (parse_opt): Handle '-d'.
- (main): Add 'd' to options.
-
-2014-01-20 Mark Wielaard <mjw@redhat.com>
-
- * addr2line.c (handle_address): Initialize scopes to NULL.
-
-2014-01-17 Roland McGrath <roland@redhat.com>
-
- * strip.c (handle_elf): Check for bogus values in sh_link, sh_info,
- st_shndx, e_shstrndx, and SHT_GROUP or SHT_SYMTAB_SHNDX data.
- Don't use assert on input values, instead bail with "illformed" error.
-
-2014-01-17 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_dynamic, handle_symtab): Check for bogus sh_link.
- (handle_verneed, handle_verdef, handle_versym, handle_hash): Likewise.
- (handle_scngrp): Check for bogus sh_info.
-
-2014-01-17 Jakub Jelinek <jakub@redhat.com>
-
- * elflint.c (section_name): Return "<invalid>" instead of
- crashing on invalid section name.
- (check_symtab, is_rel_dyn, check_rela, check_rel, check_dynamic,
- check_symtab_shndx, check_hash, check_versym): Robustify.
- (check_hash): Don't check entries beyond end of section.
- (check_note): Don't crash if gelf_rawchunk fails.
-
-2014-01-17 Petr Machata <pmachata@redhat.com>
-
- * readelf.c (handle_dynamic, handle_relocs_rel)
- (handle_relocs_rela, handle_versym, print_liblist):
- Use gelf_fsize instead of relying on shdr->sh_entsize.
-
-2014-01-14 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_macro_section): Clear vendor array before
- use.
-
-2014-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix corruption of non-C++ symbols by the demangler.
- * nm.c (show_symbols_sysv, show_symbols_bsd, show_symbols_posix)
- (show_symbols): Check for _Z.
- * stack.c (print_frames) <USE_DEMANGLE>: Check for _Z.
-
-2014-01-02 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (show_raw): Declare unconditionally.
- (parse_opt): Handle '-r' unconditionally.
- (main): Show "raw" option even without USE_DEMANGLE.
-
-2014-01-02 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (print_frames): Print 0x before build-id hex-offset.
-
-2014-01-02 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (maxframes): Increase to 2048.
- (struct frames): Add allocated field.
- (frame_callback): If frames used is frames allocated, realloc.
- (print_frames): Show an error if maxframes has been reached.
- (parse_opt): Allow -n 0 for unlimited frames.
- (main): Document -n 0 and new default 2048 frames. Allocate initial
- number of frames with malloc.
-
-2013-12-30 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (parse_opt): Explicitly call dwfl_linux_proc_attach
- or dwfl_core_file_attach and check for errors.
-
-2013-12-28 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (print_frames): Remove address width code and use...
- (get_addr_width): ...this new function.
- (show_modules): New static boolean.
- (module_callback): New static function.
- (parse_opt): Handle '-l'.
- (main): Add 'l' to options. If show_modules then use dwfl_getmodules
- with module_callback to show all detected modules and possible
- build_id, elf and dwarf files.
-
-2013-12-27 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (frames_shown): New static boolean.
- (EXIT_OK,EXIT_ERROR,EXIT_BAD,EXIT_USAGES): New defines.
- (frame_callback): Return -1 on error. Don't print error.
- (print_frames): Add arguments, tid, dwflerr and what. Print tid.
- If there was an error report it with address and module if possible.
- Record whether any frames were actually printed.
- (thread_callback): Collect tid and err, pass it to print_frames.
- (parse_opt): Use EXIT_BAD for errors. On ARGP_KEY_END print errno
- if dwfl_linux_proc_report returned it. Check whether we are properly
- attached with dwfl_pid.
- (main): Document exit status. Don't report DWARF_CB_ABORT from
- callbacks as error. Pass real errors to print_frames. Return
- EXIT_BAD if no frames could be shown. Return EXIT_ERROR if there
- were any non-fatal errors.
-
-2013-12-23 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (stack_LDADD): Add demanglelib.
- * stack.c (show_quiet): New static boolean, default false.
- (show_raw): Likewise.
- (demangle_buffer_len): New static size_t.
- (demangle_buffer): New static char *.
- (print_frames): Don't resolve pc name if show_quiet. Demangle name
- unless show_raw.
- (parse_opt): Handle '-q' and '-r'.
- (main): Add 'q' and 'r' to options. Free demangle_buffer.
-
-2013-12-23 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (OPT_DEBUGINFO): New define.
- (OPT_COREFILE): Likewise.
- (pid): New static.
- (core_fd): Likewise.
- (core): Likewise.
- (exec): Likewise.
- (debuginfo_path): Likewise.
- (parse_opt): Handle '-p', '--core', '-e' and '--debuginfo-path'.
- Do argument sanity checking. Setup Dwfl.
- (main): Add 'p', 'core', 'e' and 'debuginfo-path' to options.
- Remove argp_child children, simplify argp doc, remove custom
- usage message and construction of dwfl with dwfl_standard_argp.
- Use pid directly as tid. close core and core_fd if opened. Print
- pid of process or core.
-
-2013-12-23 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (show_build_id): New static boolean.
- (print_frames): Print module build-id, load address and pc offset
- if show_build_id is true.
- (parse_opt): Handle '-b'.
- (main): Add -b to options.
-
-2013-12-22 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (maxframes): New static unsigned. Initialize to 64.
- (struct frame): New struct.
- (struct frames): Likewise.
- (dwfl): New static Dwfl pointer.
- (frame_callback): Use arg as struct frames and fill it next frame.
- Return DWARF_CB_ABORT when maxframes has been reached. Move
- printing of frame to...
- (print_frames): ...here. New function.
- (thread_callback): Use arg as struct frames and set frames to zero.
- Call print_frames.
- (parse_opt): Handle '-n'.
- (main): Add -n to options. Allocate frames using maxframes. Pass
- frames to frame_callback and thread_callback.
-
-2013-12-20 Mark Wielaard <mjw@redhat.com>
-
- * stack.c (show_one_tid): New static boolean.
- (parse_opt): Handle '-1'.
- (main): Add -1 to options. Call dwfl_getthread_frames when
- show_one_tid is true.
-
-2013-12-18 Mark Wielaard <mjw@redhat.com>
-
- * addr2line.c (options): Add symbol-sections, 'x'.
- (show_symbol_sections): New static bool.
- (parse_opt): Handle 'x'.
- (print_addrsym): Use dwfl_module_addrinfo value.r
- Also show section of address with show_symbol_sections.
- (find_symbol): Use dwfl_module_getsym_info and set value.
- (handle_address): Request value and use it instead of sym.st_value.
- * readelf.c (format_dwarf_addr): Use dwfl_module_addrinfo to get
- name and offset.
-
-2013-12-17 Masatake YAMATO <yamato@redhat.com>
- Mark Wielaard <mjw@redhat.com>
-
- * stack.c (show_activation, show_module, show_source): New variables.
- (parse_opt): Set show_activation if -a option is given.
- Set show_module if -m option is given. Set show_source if -s option
- is given. Set all show booleans when -v option is given.
- (main): Added `-a', `-m', `-s', and `-v' to the help message.
- (frame_callback): Print module and source file information.
-
-2013-11-25 Petr Machata <pmachata@redhat.com>
-
- * elflint.c (valid_e_machine): Add EM_AARCH64.
-
-2013-11-14 Petr Machata <pmachata@redhat.com>
-
- * readelf.c (handle_core_item) <'h'>: New branch for handling
- fields that shouldn't be displayed.
-
-2013-11-10 Mark Wielaard <mjw@redhat.com>
-
- * stack.c: Use ARGP_PROGRAM_VERSION_HOOK_DEF and
- ARGP_PROGRAM_BUG_ADDRESS_DEF.
- (print_version): New function.
-
-2013-11-09 Mark Wielaard <mjw@redhat.com>
-
- * arlib.c (arlib_init): Call snprintf before using the result
- with memcpy.
- (arlib_finalize): Likewise.
- * nm.c (show_symbols_sysv): Don't modify cnt inside assert.
-
-2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * Makefile.am (bin_PROGRAMS): Add stack.
- (stack_LDADD): New.
- * stack.c: New file.
-
-2013-11-05 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_ranges_section): Cast address to size_t
- before comparison.
- (print_debug_loc_section): Likewise.
-
-2013-10-18 Mark Wielaard <mjw@redhat.com>
-
- * ar.c (main): Correct operation check when instance_specifed is set.
-
-2013-09-26 Petr Machata <pmachata@redhat.com>
-
- * readelf.c (handle_file_note): New function.
- (handle_notes_data): Call it to handle NT_FILE notes.
-
-2013-09-26 Petr Machata <pmachata@redhat.com>
-
- * readelf.c (handle_siginfo_note): New function.
- (handle_notes_data): Call it to handle NT_SIGINFO notes.
- (buf_read_int, buf_read_ulong, buf_has_data): New functions.
-
-2013-08-13 Mark Wielaard <mjw@redhat.com>
-
- * addr2line.c (options): Add "inlines", 'i'.
- (show_inlines): New bool.
- (parse_opt): Handle 'i'.
- (print_diesym): New static function.
- (print_src): New function taking code from...
- (handle_address): here. Call print_src. Print inlines.
-
-2013-08-12 Mark Wielaard <mjw@redhat.com>
-
- * addr2line.c (main): If there is a newline char at end of buf,
- then remove it.
-
-2013-07-05 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): Take CU as argument, use it to print
- parameter_ref DIE offset.
- (struct listptr): Replace base field with cu.
- (listptr_base): New function.
- (compare_listptr): Use listptr_base.
- (notice_listptr): Take CU as argument.
- (skip_listptr_hole): Likewise.
- (print_debug_ranges_section): Pass NULL as CU to skip_listptr_hole.
- (print_cfa_program): Pass NULL as CU to print_ops.
- (struct attrcb_args): Replace cu_base field with cu.
- (attr_callback): Pass cu not cu_base to notice_listptr.
- (print_debug_units): Don't calculate base, just set cu.
- (print_debug_loc_section): Pass cu to skip_listptr_hole and
- print_ops.
-
-2013-05-06 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): Format first DW_OP_GNU_implicit_pointer
- argument as DIE offset.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2013-03-25 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (argp_options): Add decodedline.
- (decodedline): New boolean initialized to false.
- (parse_opt): Set decodedline when arg is decodedline.
- (print_decoded_line_section): New function.
- (print_debug_line_section): Call print_decoded_line_section when
- decodedline is true.
-
-2013-03-25 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (argp_option): Add decodedaranges.
- (decodedaranges): New boolean initialized to false.
- (parse_opt): Set decodedaranges when arg is decodedaranges.
- (print_debug_aranges_section): Reimplemented and original
- implementation renamed to...
- (print_decoded_aranges_section): this.
-
-2013-03-25 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (attrcb_args): Add Dwarf_Die.
- (attr_callback): When highpc is in constant form also print as
- address.
- (print_debug_units): Set args.die.
-
-2013-03-19 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_gdb_index_section): Free format_dwarf_addr results.
-
-2013-03-18 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_gdb_index_section): Accept version 8.
-
-2013-03-01 Mark Wielaard <mjw@redhat.com>
-
- * findtextrel.c (process_file): Release ELF and close file when not
- text relocations are found.
- * strip.c (handle_elf): Track memory used for .debuglink section data
- and free when done.
-
-2013-02-24 Mark Wielaard <mjw@redhat.com>
-
- * elflint.c (check_symtab): Add __bss_start__ to the list of symbols
- allowed to have out of section values because of GNU ld bugs.
-
-2013-02-06 Mark Wielaard <mjw@redhat.com>
-
- * elflint.c (check_symtab): Add __bss_start and __TMC_END__ to the
- list of symbols allowed to have out of section values because of
- GNU ld bugs in either .symtab or .dynsym, but only when they are
- zero sized.
-
-2013-01-24 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (argp_option): Add unresolved-address-offsets, U.
- (print_unresolved_addresses): New static.
- (parse_opt): Handle 'U', set print_unprocessed_values.
- (format_dwarf_addr): Take and handle new raw argument.
- (print_ops): Call format_dwarf_addr with raw offset values.
- (print_debug_ranges_section): Likewise.
- (print_debug_frame_section): Likewise.
- (attr_callback): Likewise.
- (print_debug_line_section): Likewise.
- (print_debug_loc_section): Likewise.
- (print_gdb_index_section): Likewise.
-
-2013-01-18 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (struct listptr): Add base Dwarf_Addr field.
- (compare_listptr): Warn for same offset with different base.
- (notice_listptr): Take base argument and set it.
- (skip_listptr_hole): Likewise.
- (struct attrcb_args): Removed unused cu_offset field.
- Add cu_base Dwarf_Addr field.
- (attr_callback): Call notice_listptr with cbargs->cu_base.
- (print_debug_units): Set args.cu_base.
- (print_debug_ranges_section): Get base and use for format_dwarf_addr.
- (print_debug_loc_section): Likewise.
-
-2013-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * readelf.c (handle_core_items): Limit special repeated items handling
- to single-item formats '\n', 'b' and 'B', assert OFFSET 0 there.
-
-2012-12-18 Mark Wielaard <mark@bordewijk.wildebeest.org>
-
- * readelf.c (ELF_INPUT_SECTION): New argp key value.
- (argp_option): Add elf-section.
- (elf_input_section): New static.
- (parse_opt): Handle ELF_INPUT_SECTION and set elf_input_section.
- (open_input_section): New function.
- (process_file): Call open_input_section if elf_input_section set.
-
-2013-01-13 David Abdurachmanov <David.Abdurachmanov@cern.ch>
-
- ar.c (do_oper_delete): Fix num passed to memset.
-
-2012-12-21 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_frame_section): Adjust FDE start address
- if pcrel before feeding it to format_dwarf_addr.
-
-2012-12-21 Mark Wielaard <mjw@redhat.com>
-
- * addr2line.c (main): Call dwfl_end.
-
-2012-12-11 Roland McGrath <roland@hack.frob.com>
-
- * nm.c (show_symbols_sysv): Fix size passed to snprintf for invalid
- sh_name case.
- Reported by David Abdurachmanov <David.Abdurachmanov@cern.ch>.
-
-2012-10-16 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): DW_OP_skip and DW_OP_bra targets are
- calculated beginning after the operand and 2-byte constant.
-
-2012-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * readelf.c (ITEM_WRAP_COLUMN, REGISTER_WRAP_COLUMN): Merge to ...
- (WRAP_COLUMN): ... here.
- (print_core_item): Remove parameter format_max. Update function
- comment. Replace FORMAT_MAX by the real output width.
- (handle_core_item): Remove the FORMAT_MAX values in TYPES, DO_TYPE,
- calls of print_core_item, remove variable maxfmt, change
- ITEM_WRAP_COLUMN to WRAP_COLUMN.
- (handle_core_register): Remove the FORMAT_MAX values in TYPES, BITS,
- calls of print_core_item, change REGISTER_WRAP_COLUMN to WRAP_COLUMN.
-
-2012-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * readelf.c (handle_core_item) <b>: Make run an outer block variable.
- Increase run only if LASTBIT != 0. Print last element only if RUN > 0.
-
-2012-08-27 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_macro_section): Print offset as PRIx64.
-
-2012-08-27 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (register_info): Handle loc == NULL.
-
-2012-08-22 Jeff Kenton <jkenton@tilera.com>
-
- * elflint.c (valid_e_machine): Add EM_TILEGX and EM_TILEPRO.
-
-2012-08-16 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (dwarf_tag_name): Renamed from dwarf_tag_string.
- Uses new dwarf_tag_string or adds ??? or lo_user+%#x when
- appropriate.
- (dwarf_attr_name): Likewise.
- (dwarf_form_name): Likewise.
- (dwarf_lang_name): Likewise.
- (dwarf_inline_name): Likewise.
- (dwarf_encoding_name): Likewise.
- (dwarf_access_name): Likewise.
- (dwarf_visibility_name): Likewise.
- (dwarf_virtuality_name): Likewise.
- (dwarf_identifier_case_name): Likewise.
- (dwarf_calling_convention_name): Likewise.
- (dwarf_ordering_name): Likewise.
- (dwarf_discr_list_name): Likewise.
- (print_ops): Remove KNOWN. Use dwarf_locexpr_opcode_string.
- (attr_callback): Call new dwarf_foobar_name instead of old
- dwarf_foobar_string functions.
- (dwarf_tag_string): New function using known-dwarf.h macros.
- (dwarf_attr_string): Likewise.
- (dwarf_form_string): Likewise.
- (dwarf_lang_string): Likewise.
- (dwarf_inline_string): Likewise.
- (dwarf_encoding_string): Likewise.
- (dwarf_access_string): Likewise.
- (dwarf_visibility_string): Likewise.
- (dwarf_virtuality_string): Likewise.
- (dwarf_identifier_case_string): Likewise.
- (dwarf_calling_convention_string): Likewise.
- (dwarf_ordering_string): Likewise.
- (dwarf_discr_list_string): Likewise.
- (dwarf_locexpr_opcode_string): Likewise.
-
-2012-06-27 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (dwarf_form_string): Handle DW_FORM_GNU_ref_alt and
- DW_FORM_GNU_strp_alt.
- (attr_callback): Likewise.
-
-2012-07-30 Petr Machata <pmachata@redhat.com>
-
- * nm.c (show_symbols_bsd): Reorder arguments in {S,}FMTSTRS (and
- corresponding printf) so that those that are referenced by only
- one of the formatting strings are at the end.
-
-2012-07-29 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (dwarf_lang_string): Use DW_LANG_ObjC, not DW_LANG_Objc.
- (print_ops): Use known[op], not op_name, for DW_OP_GNU_parameter_ref.
-
-2012-07-19 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): Handle DW_OP_GNU_parameter_ref.
-
-2012-07-11 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (options): Add macro to help of debug-dump.
- (section_e): Add section_macro.
- (section_all): Add section_macro.
- (parse_opt): Handle macro.
- (print_debug_macro_section): New function.
- (print_debug): Add NEW_SECTION (macro).
-
-2012-07-10 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_gdb_index_section): Add version 7 support.
- Keep track of cu_nr. Print kind and static/global flag for each
- symbol. When a symbol is in the TU list add 'T'.
-
-2012-06-26 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (dwarf_attr_string): Add DW_AT_GNU_macros.
-
-2012-06-22 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): Cast printf PRIu/x64 arguments to uint64_t
- for gcc 4.7 -Wformat.
-
-2012-05-09 Roland McGrath <roland@hack.frob.com>
-
- * elflint (check_sections): Allow zero sized sections at (filesz) end
- of segment. And make check overflow-proofed.
-
-2012-04-24 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): Add DW_OP_GNU_push_tls_address,
- DW_OP_GNU_uinit and DW_OP_GNU_encoded_addr.
-
-2012-03-28 Roland McGrath <roland@hack.frob.com>
-
- * elflint.c (special_sections): Accept SHF_INFO_LINK for reloc sections.
-
-2012-03-28 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_debug_abbrev_section): Check there is Dwarf
- section data.
- (print_debug_str_section): Likewise.
-
-2012-03-21 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_gdb_index_section): Accept version 6.
-
-2012-01-31 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (attr_callback): Don't special case DW_FORM_sec_offset.
-
-2012-01-21 Ulrich Drepper <drepper@gmail.com>
-
- * addr2line.c: Update copyright year.
- * ar.c: Likewise.
- * elfcmp.c: Likewise.
- * elflint.c: Likewise.
- * findtextrel.c: Likewise.
- * ld.c: Likewise.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * ranlib.c: Likewise.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strings.c: Likewise.
- * strip.c: Likewise.
- * unstrip.c: Likewise.
-
- * nm.c (argp_children): Define.
- (argp): Hook up argp_children.
- (handle_ar): Optimize puts call.
- (show_symbols_bsd): Use positional parameters to also print color
- codes. Don't print STT_FILE symbols.
- * objdump.c (options): Improve help text.
- (argp_children): Define.
- (argp): Hook up argp_children.
- (disasm_info): Add elements for color codes.
- (disasm_output): Print color codes as well.
- (show_disasm): Set up disasm_info data for callback.
-
-2012-01-20 Roland McGrath <roland@hack.frob.com>
-
- * arlib-argp.c (arlib_deterministic_output): Initialize from
- configured value.
- (help_filter): New function.
- (argp): Use it.
-
- * ar.c (main): Handle oper_none as usage error.
-
- * arlib-argp.c (options, parse_opt): Grok -U as inverse of -D.
-
- * ranlib.c (argp): Use arlib_argp_children.
-
- * arlib.c (arlib_init): Obey arlib_deterministic_output.
-
- * arlib-argp.c: New file.
- * Makefile.am (libar_a_SOURCES): Add it.
- * arlib.h (arlib_deterministic_output, arlib_argp_children):
- Declare new variables.
- * ar.c (deterministic_output): Variable removed.
- (do_oper_insert): Use arlib_deterministic_output instead.
- (options, parse_opt): Don't handle -D here. Add group numbers.
- (argp): Use arlib_argp_children.
-
-2011-12-20 Roland McGrath <roland@hack.frob.com>
-
- * readelf.c (print_debug): Initialize DUMMY_DBG.elf.
- Reported by Karel Klic <kklic@redhat.com>.
-
-2011-11-05 Roland McGrath <roland@hack.frob.com>
-
- * ar.c (deterministic_output): New flag variable.
- (options, parse_opt): Grok -D to set it.
- (do_oper_insert): When set, use zero from mtime, uid, and gid.
-
- * ar.c (do_oper_insert): Fix check on elf_rawfile return value.
-
-2011-10-04 Marek Polacek <mpolacek@redhat.com>
-
- * readelf.c (register_info): Assume the right size of an array.
-
-2011-10-03 Ulrich Drepper <drepper@gmail.com>
-
- * nm.c: Recognize option --mark-special. Still recognize --mark-weak
- but don't show it in help anymore.
- (mark_special): Renamed from mark_weak.
- (parse_opt): Adjust.
- (class_type_char): Take additional parameters for ELF file and ELF
- header. Treat TLS symbols like objects.
- In case of D symbols, show u for unique symbols, R for symbols in
- read-only sections, B for symbols in BSS sections.
- (show_symbols_bsd): Take additional parameters for ELF file and ELF
- header. Adjust for class_type_char change. Show TLS symbols with
- @ after them in case --mark-special is selected.
- (show_symbols_posix): Likewise.
- (show_symbols): Adjust calls to show_symbols_bsd and
- show_symbols_posix.
- (show_symbols_sysv): Avoid printing adress and size for undefined
- symbols. Don't print initial special entry and section entries.
-
-2011-10-02 Ulrich Drepper <drepper@gmail.com>
-
- * Makefile.am (demanglelib): Define.
- (nm_LDADD): Add demanglelib.
- * nm.c (options): Add -C option.
- (demangle): Define as global variable.
- (parse_opt): Recognize -C.
- (show_symbols_sysv): Handle demangling.
- (show_symbols_bad): Likewise.
- (show_symbols_posix): Likewise.
- (show_symbols): Likewise.
-
-2011-07-09 Roland McGrath <roland@hack.frob.com>
-
- * readelf.c (options, parse_opt): Grok -W/--wide and ignore it.
-
- * ar.c (parse_opt): Grok -u.
-
-2011-05-30 Mark Wielaard <mjw@redhat.com>
-
- * strip.c (relocate): Make offset check overflow-proof.
-
-2011-05-23 Mark Wielaard <mjw@redhat.com>
-
- * strip.c (relocate): Take new arguments is_rela to indicate
- whether the relocation is from a SHT_REL or SHT_RELA section.
- Relocate against any debug section symbol, not just STT_SECTION
- symbols. For SHT_REL relocations, fetch addend from offset and
- add it to symbol value if not zero.
-
-2011-05-23 Mark Wielaard <mjw@redhat.com>
-
- * strip.c (OPT_RELOC_DEBUG): New option.
- (argp_option): Add new --reloc-debug-sections option.
- (main): Check new option.
- (parse_opt): Likewise.
- (handle_elf): Remove any relocations between debug sections
- in ET_REL for the debug file when requested.
-
-2011-05-18 Mark Wielaard <mjw@redhat.com>
-
- * strip.c (handle_elf): Make sure all sections of a removed group
- section are removed too. Don't discard SHT_GROUP sections, copy
- section table before it gets modified. Section group signature
- symbols don't have to be retained.
-
-2011-05-16 Jakub Jelinek <jakub@redhat.com>
-
- * readelf.c (print_ops): Handle DW_OP_GNU_const_type,
- DW_OP_GNU_regval_type, DW_OP_GNU_deref_type, DW_OP_GNU_convert
- and DW_OP_GNU_reinterpret.
-
-2011-05-17 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (dwarf_tag_string): Fixup DW_TAG_GNU_call_site and
- DW_TAG_GNU_call_site_parameter return strings.
-
-2011-05-11 Marek Polacek <mpolacek@redhat.com>
-
- * nm.c (show_symbols_sysv): Remove unused if/else, remove
- unused `prefix' and `fname' parameters.
-
-2011-05-07 Marek Polacek <mpolacek@redhat.com>
-
- * unstrip.c (compare_sections_nonrel): Mark this function as static.
-
-2011-04-26 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (handle_notes_data): Call ebl_object_note_type_name
- with note name.
-
-2011-04-14 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (options): Add gdb_index.
- (section_e): Define section_gdb_index.
- (parse_opt): Recognize gdb_index debug-dump argument.
- (print_gdb_index_section): New function.
- (print_debug): Add gdb_index to debug_sections.
-
-2011-03-24 Petr Machata <pmachata@redhat.com>
-
- * readelf.c (print_debug_line_section): Emit initial space for all
- opcode lines. Print offset in front of each opcode.
-
-2011-03-22 Marek Polacek <mpolacek@redhat.com>
-
- * readelf.c (handle_dynamic): Don't segfault at DT_PLTREL case.
-
-2011-03-22 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (dwarf_tag_string): Support DW_TAG_GNU_call_site
- and DW_TAG_GNU_call_site_parameter.
- (dwarf_attr_string): Support DW_AT_GNU_call_site_value,
- DW_AT_GNU_call_site_data_value,
- DW_AT_GNU_call_site_target,
- DW_AT_GNU_call_site_target_clobbered,
- DW_AT_GNU_tail_call,
- DW_AT_GNU_all_tail_call_sites,
- DW_AT_GNU_all_call_sites,
- and DW_AT_GNU_all_source_call_sites.
- (print_ops): Handle DW_OP_GNU_entry_value.
- (attr_callback): Handle DW_AT_GNU_call_site_value,
- DW_AT_GNU_call_site_data_value,
- DW_AT_GNU_call_site_target,
- and DW_AT_GNU_call_site_target_clobbered.
-
-2011-03-10 Mark Wielaard <mjw@redhat.com>
-
- * elflint.c (check_symtab): Use ebl_check_st_other_bits.
-
-2011-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * readelf.c (reset_listptr): Clear TABLE->TABLE.
-
-2011-02-25 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (dwarf_attr_string): Add DW_AT_GNU_* handling.
- (dwarf_form_string): Properly format and return unknown form.
-
-2011-02-23 Roland McGrath <roland@redhat.com>
-
- * readelf.c (section_name): New function.
- (print_debug_abbrev_section): Use it instead of constant.
- (print_debug_aranges_section): Likewise.
- (print_debug_ranges_section): Likewise.
- (print_debug_units): Likewise.
- (print_debug_line_section): Likewise.
- (print_debug_loc_section): Likewise.
- (print_debug_macinfo_section): Likewise.
- (print_debug_pubnames_section): Likewise.
- (print_debug_str_section): Likewise.
- (print_debug) [USE_ZLIB]: Match .zdebug_* sections too.
- (print_debug_abbrev_section): Use decoded d_size, not sh_size.
- (print_debug_str_section): Likewise.
-
- * readelf.c (dwarf_attr_string): Grok DW_AT_GNU_odr_signature.
-
-2011-02-11 Roland McGrath <roland@redhat.com>
-
- * elfcmp.c (verbose): New variable.
- (options, parse_opt): Grok -l/--verbose to set it.
- (main): Under -l, keep going after first difference.
-
- * elfcmp.c (ignore_build_id): New variable.
- (options, parse_opt): Grok --ignore-build-id to set it.
- (main): For SHT_NOTE sections, compare note details rather than raw
- bytes. Under --ignore-build-id, don't complain about differing build
- ID contents if lengths match.
-
-2011-02-08 Roland McGrath <roland@redhat.com>
-
- * ldscript.y (filename_id_star): Remove unused variable.
-
- * unstrip.c (copy_elided_sections): Remove unused variable.
-
- * elflint.c (check_dynamic): Remove unused variables.
-
- * elflint.c (check_symtab): Warn about missing xndx section only once.
-
- * ldgeneric.c (check_for_duplicate2): Remove unused variable.
-
-2011-01-06 Roland McGrath <roland@redhat.com>
-
- * strip.c (handle_elf): Under --strip-sections, remove all
- non-allocated sections and never generate .gnu_debuglink.
-
-2011-01-04 Roland McGrath <roland@redhat.com>
-
- * strip.c (remove_shdrs): New variable.
- (options, parse_opt): Grok --strip-sections to set it.
- (handle_elf): When that's set, truncate off .shstrtab and shdrs.
-
-2010-11-10 Roland McGrath <roland@redhat.com>
-
- * findtextrel.c (process_file): Don't assume order of sections.
- Reported by Mike Hommey <mh@glandium.org>.
-
-2010-07-26 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_ops): Handle DW_OP_GNU_implicit_pointer.
-
-2010-08-30 Roland McGrath <roland@redhat.com>
-
- Print .debug_loc/.debug_ranges with cognizance of actual DIE uses.
- * readelf.c (parse_opt): Add section_info to implicit_debug_sections
- for ranges, loc.
- (struct listptr, struct listptr_table): New types.
- (compare_listptr, reset_listptr, sort_listptr): New functions.
- (notice_listptr, skip_listptr_hole): New functions.
- (struct attrcb_args): Add silent member.
- (attr_callback): Call notice_listptr for loclistptr and rangelistptr.
- Suppress output if silent, but still call notice_listptr.
- (print_debug_units): Suppress output if section_info not requested.
- (print_debug_loc_section): Call sort_listptr, skip_listptr_hole.
- (print_debug_ranges_section): Likewise.
- (print_debug): Call reset_listptr on both tables.
-
- * readelf.c (print_debug_ranges_section): Print empty list.
- (print_debug_loc_section): Likewise.
-
- * readelf.c (print_debug_loc_section): Check for bogus length
- before calling print_ops.
- (print_ops): Check harder for bogus data that would read off end.
-
-2010-08-11 Roland McGrath <roland@redhat.com>
-
- * readelf.c (for_each_section_argument): Process all sections with
- matching name, not just the first.
-
-2010-07-26 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_ops): Take new argument for CU version.
- Fix DW_OP_call_ref decoding to depend on it.
- (print_debug_loc_section): Update caller.
- (print_cfa_program): Take new argument, pass it down.
- (print_debug_frame_section): Update caller.
- (struct attrcb_args): New member version.
- (print_debug_units): Initialize it.
-
-2010-07-02 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_debug_frame_section): Use format_dwarf_addr for
- initial_location.
-
-2010-06-30 Roland McGrath <roland@redhat.com>
-
- * strings.c (main): Use STDIN_FILENO, not STDOUT_FILENO.
- Ignore st_size for a non-S_ISREG file descriptor.
- (read_block): Move assert after no-mmap bail-out.
- (read_block_no_mmap): Fix size calculations for moving buffer remnant.
-
-2010-06-22 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_debug_line_section): Fix braino in DW_LNS_set_isa.
-
-2010-06-21 Roland McGrath <roland@redhat.com>
-
- * readelf.c (dwarf_tag_string): Handle new v4 tags.
- (dwarf_attr_string): Add new attributes.
- (dwarf_tag_string): Handle DW_TAG_GNU_*.
-
- * readelf.c (print_ops): Use 64-bit types for LEB128 operands.
- (print_cfa_program): Likewise.
-
-2010-06-20 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_debug_units): New function, broken out of ...
- (print_debug_info_section): ... here. Call it.
- (print_debug_types_section): New function.
- (enum section_e): Add section_types alias for section_info.
- (print_debug): Add types to the sections table.
-
- * readelf.c (print_debug_frame_section): Handle version 4 format.
-
- * readelf.c (print_debug_line_section): Handle version 4 format.
-
-2010-06-14 Roland McGrath <roland@redhat.com>
-
- * unstrip.c (copy_elided_sections): Make sure all sections' data have
- been read in before we write anything out.
-
-2010-06-04 Roland McGrath <roland@redhat.com>
-
- * unstrip.c (update_shdr): New function.
- (update_sh_size): Call it instead of gelf_update_shdr.
- (adjust_relocs, add_new_section_symbols): Likewise.
- (new_shstrtab, copy_elided_sections): Likewise.
-
- * unstrip.c (copy_elided_sections): Bail if stripped file has more
- sections than unstripped file, rather than getting confused later.
-
-2010-06-01 Roland McGrath <roland@redhat.com>
-
- * readelf.c (dwarf_form_string): Handle DWARF 4 forms.
- (attr_callback): Handle DW_FORM_flag_present, DW_FORM_exprloc,
- DW_FORM_sec_offset, DW_FORM_ref_sig8.
-
- * readelf.c (print_debug): Don't bail if libdw setup fails.
- Suppress complaint if we only want .eh_frame anyway.
-
-2010-05-28 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (attr_callback): Also print form information.
-
-2010-05-19 Roland McGrath <roland@redhat.com>
-
- * addr2line.c (find_symbol): Short-circuit on empty name.
- (handle_address): Handle SYMBOL with no +OFFSET.
-
-2010-05-08 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_ops): Take new arg OFFSET_SIZE.
- Use that for DW_OP_call_ref, not ADDRSIZE.
- (print_cfa_program): Update caller.
- (struct attrcb_args): Add offset_size field.
- (attr_callback): Use it for print_ops call.
- (print_debug_info_section): Initialize it.
- (print_ops): Likewise.
-
-2010-04-14 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_core_item): Fix bitmask printing.
-
-2010-04-06 Roland McGrath <roland@redhat.com>
-
- * ld.c (options): Fix some typos in messages.
- * elflint.c (check_scn_group, check_group): Likewise.
- * ldscript.y (add_id_list): Likewise.
- * readelf.c (print_hash_info): Add xgettext:no-c-format magic comment
- before translated string containing a literal %.
-
-2010-02-26 Roland McGrath <roland@redhat.com>
-
- * readelf.c (process_file): Don't leak an fd in failure case.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
- * readelf.c (print_debug_frame_section): Add a cast to avoid sign
- mismatch in comparison.
-
-2010-02-02 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_encoding_base): Handle DW_EH_PE_absptr (zero).
- (read_encoded): Likewise.
- (print_debug_frame_section): Check for bogus augmentation length.
- For P augmentation, use read_encoded, print the encoding description,
- and use hex for unsigned values.
-
-2010-01-15 Roland McGrath <roland@redhat.com>
-
- * ar.c: Include <sys/stat.h>.
- * elflint.c: Likewise.
- * readelf.c: Likewise.
- * strip.c: Likewise.
- * unstrip.c: Likewise
-
-2010-01-07 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_ehdr): Handle PN_XNUM.
- (phnum): New static variable.
- (process_elf_file): Set it with elf_getphdrnum.
- (print_phdr): Use phnum instead of EHDR->e_phnum.
- (print_dynamic, handle_notes): Likewise.
- (handle_relocs_rel, handle_relocs_rela): Likewise.
-
- * elfcmp.c (main): Use elf_getshdrnum and elf_getphdrnum.
-
- * elflint.c (phnum): New static variable.
- (check_elf_header): Set it, handling PN_XNUM.
- Use that in place of EHDR->e_phnum throughout.
- (check_symtab, check_reloc_shdr, check_dynamic): Likewise.
- (unknown_dependency_p, check_sections, check_program_header): Likewise.
-
-2010-01-05 Roland McGrath <roland@redhat.com>
-
- * readelf.c (dwarf_attr_string): Match DW_AT_GNU_vector and
- DW_AT_GNU_template_name.
-
-2010-01-04 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_notes_data): Grab NT_AUXV only for name "CORE".
- (handle_core_note): Pass NHDR and NAME to ebl_core_note.
- (handle_core_item): Handle .format of '\n' as \n-separated strings.
-
- * readelf.c (implicit_debug_sections): New variable.
- (parse_opt): Set it instead of print_debug_sections for -a.
- OR them together for print_debug check.
- (print_debug): OR them together for section check.
-
- * readelf.c (options): Repartition into set implied by -a and others.
- Correct -a text to match reality.
-
- * readelf.c (struct section_argument): Add bool member 'implicit'.
- (parse_opt): Set it for -a cases, clear it for -x args.
- (for_each_section_argument): Don't complain about a missing section by
- name if it's implicit.
-
-2009-11-16 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_string_section): Punt SHT_NOBITS like empty
- sections, just as dump_data_section already does.
-
-2009-09-21 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (special_sections): Allow MERGE and STRINGS flags to be
- set for .comment section.
- Patch by Mark Wielaard <mjw@redhat.com>.
-
-2009-09-08 Roland McGrath <roland@redhat.com>
-
- * ar.c (main): Fix typo in message format.
-
-2009-08-21 Roland McGrath <roland@redhat.com>
-
- * readelf.c (attr_callback): Use print_block only when we don't use
- print_ops.
-
-2009-08-14 Roland McGrath <roland@redhat.com>
-
- * ar.c (do_oper_extract): Use pathconf instead of statfs.
-
-2009-08-01 Ulrich Drepper <drepper@redhat.com>
-
- * debugpred.h: Add two most const.
-
-2009-07-26 Mark Wielaard <mjw@redhat.com>
-
- * elflint.c (check_note_data): Recognize NT_GNU_GOLD_VERSION.
-
-2009-07-25 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (addr2line_LDADD): Add $(libelf).
-
-2009-07-24 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_block): New function.
- (print_ops): Use it.
- (attr_callback): Use it for DW_FORM_block* forms.
-
-2009-07-20 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (print_ops): Add handling of DW_OP_implicit_value
- and DW_OP_stack_value.
-
-2009-07-14 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_elf_header): Allow Linux ABI.
- (check_symtab): Handle STB_GNU_UNIQUE.
-
-2009-07-08 Mark Wielaard <mjw@redhat.com>
-
- * readelf.c (attr_callback): Handle DW_Form constants for
- DW_AT_data_member_location.
-
-2009-07-06 Roland McGrath <roland@redhat.com>
-
- * readelf.c (register_info): New function. Handle unknown register #s.
- (print_cfa_program): Use it.
- (handle_core_register, handle_core_registers): Likewise.
-
-2009-06-28 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_address_names): New static variable.
- (options, parse_opt): Grok -N/--numeric-addresses to clear it.
- (format_dwarf_addr): Don't look up name if !print_address_names.
-
-2009-06-13 Ulrich Drepper <drepper@redhat.com>
-
- * ldgeneric.c: Don't use deprecated libelf functions.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strip.c: Likewise.
- * unstrip.c: Likewise.
- * ld.h: Fix up comment.
-
-2009-06-01 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_relocs): Expect ELF header argument and pass on
- to handle_relocs_rel* functions. Adjust caller.
- (handle_relocs_rel): Add ELF header argument. Add special case for
- the IRELATIVE relocations in statically linked executables.
- (handle_relocs_rela): Likewise.
-
-2009-04-29 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_symtab): Add tests of st_other field.
-
-2009-04-23 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile [BUILD_STATIC] (libdw): Add $(zip_LIBS).
-
-2009-04-20 Roland McGrath <roland@redhat.com>
-
- * addr2line.c (print_dwarf_function): Honor -s and -A for file names
- of inline call sites.
-
- * addr2line.c (just_section): New variable.
- (adjust_to_section): New function, broken out of ...
- (handle_address): ... here.
- (options, parse_opt): Add -j/--section=NAME to set it.
-
-2009-04-15 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_debug_frame_section): Check for DW_CIE_ID_64 in
- 64-bit format header, DW_CIE_ID_32 in 32-bit format header.
-
-2009-04-14 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_attributes): Treat SHT_ARM_ATTRIBUTES on EM_ARM
- like SHT_GNU_ATTRIBUTES.
-
- * readelf.c (handle_core_registers): Fix error message.
-
- * strip.c (handle_elf: check_preserved): Don't note any change when
- .debug_data is already filled from a previous pass.
-
-2009-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * objdump.c (show_relocs_x): Minor cleanups.
-
- * readelf.c (print_cfa_program): Correct a few labels.
- Print first DW_CFA_expression and DW_CFA_val_expression parameter
- as register.
-
-2009-02-01 Ulrich Drepper <drepper@redhat.com>
-
- * objdump.c (show_relocs_rel, show_relocs_rela): Split common parts
- into ...
- (show_relocs_x): ...here. New function.
- (show_relocs): Better spacing in output.
-
- * objdump.c (show_relocs_rela): Show offsets as signed values.
-
- * ar.c (main): Fix recognition of invalid modes for a, b, i modifiers.
- Improve some error messages.
- Use program_invocation_short_name instead of AR macro.
- * Makefile.am (CFLAGS_ar): Remove.
- * elflint.c (parse_opt): ARGP_HELP_EXIT_ERR does nothing for argp_help.
- * objdump.c (parse_opt): Likewise.
- * readelf.c (parse_opt): Likewise.
-
-2009-01-27 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_ops): Notice short length, don't overrun buffer
- (still need to fix LEB128).
-
- * readelf.c (print_ops): Fix DW_OP_call[24] decoding.
-
- * readelf.c (print_ops): Print (empty)\n when LEN == 0.
-
-2009-01-24 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_debug_frame_section): Fix computation of vma_base
- for PC-relative mode.
-
-2009-01-23 Ulrich Drepper <drepper@redhat.com>
-
- * size.c (process_file): When handling archive, close file descriptor
- here. For unknown file format also close file descriptor.
- (handle_ar): Don't close file descriptor here.
-
- * readelf.c (parse_opt): Move code to add to dump_data_sections and
- string_sections list in local function add_dump_section. Adjust 'x'
- key handling. For 'a' key add .strtab, .dynstr, and .comment section
- to string_sections list.
-
-2009-01-22 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_phdr): Don't print section mapping when no sections.
-
- * Makefile.am (AM_CFLAGS): Pass -Wno-format for *_no_Wformat.
-
- * readelf.c (print_debug_frame_section): Initialize IS_SIGNED to false
- and reset it only for the 'true' cases.
-
- * Makefile.am (addr2line_no_Wformat): New variable.
-
- * readelf.c (print_debug_frame_section): Use t instead of j formats
- for ptrdiff_t OFFSET.
-
-2009-01-21 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_program_header): Fix typo in .eh_frame_hdr section
- test. Handle debuginfo files.
- (check_exception_data): First sanity test.
-
-2009-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_debug_exception_table): Show target of ar_disp
- field.
-
- * elflint.c (check_program_header): Add most consistency checks for
- PT_GNU_EH_FRAME entry.
-
- * addr2line.c: Use ARGP_PROGRAM_VERSION_HOOK_DEF and
- ARGP_PROGRAM_BUG_ADDRESS_DEF.
- * ar.c: Likewise.
- * elfcmp.c: Likewise.
- * elflint.c: Likewise.
- * findtextrel.c: Likewise.
- * ld.c: Likewise.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * ranlib.c: Likewise.
- * readelf.c: Likewise.
-
- * size.c: Likewise.
- * strings.c: Likewise.
- * strip.c: Likewise.
- * unstrip.c: Likewise.
-
-2009-01-16 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_program_header): Check that PT_GNU_EH_FRAME entry
- matches .eh_frame_hdr section, if it is available. Also check that
- the segment is allocated, not writable, not executable.
-
- * readelf.c: Add -e option. Dump exception and unwind related
- sections. Add -e to -a.
- (print_encoding_base): Handle DW_EH_PE_omit.
- (print_debug_exception_table): Beginning of support.
- (print_debug): Hook up print_debug_exception_table for
- .gcc_except_table sections.
-
- * readelf.c (print_debug_frame_section): Some fixes for last change.
-
-2009-01-15 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_encoding): Now a toplevel function.
- (print_relinfo): Likewise.
- (print_encoding_base): Broken out of print_debug_frame_section.
- (print_debug_frame_section): Print different header for .eh_frame
- sections. Fix recognition of matching CIEs in .debug_frame sections.
- Print absolute offset for PC-relative FDE locations. Don't print
- table header for FDEs if the table is empty.
- (read_encoded): New function.
- (print_debug_frame_hdr_section): New function.
- (print_debug): Hook up print_debug_frame_hdr_section for .eh_frame_hdr
- sections.
-
- * readelf.c (handle_relocs_rel): Print section number.
- (print_debug_abbrev_section): Likewise.
- (print_debug_aranges_section): Likewise.
- (print_debug_ranges_section): Likewise.
- (print_debug_info_section): Likewise.
- (print_debug_line_section): Likewise.
- (print_debug_loc_section): Likewise.
- (print_debug_macinfo_section): Likewise.
- (print_debug_pubnames_section): Likewise.
- (print_debug_str_section): Likewise.
-
-2009-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * strings.c (read_block): Fix typo in error message string.
-
-2009-01-07 Ulrich Drepper <drepper@redhat.com>
-
- * ld.c (ld_new_searchdir): Fix adding to search path list.
-
-2009-01-06 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c: Implement call frame debug section dumping.
-
-2009-01-05 Roland McGrath <roland@redhat.com>
-
- * elfcmp.c: Exit with status 2 for errors (like cmp, diff, grep).
- Status 1 (aka EXIT_FAILURE) is only for completed OK but not equal.
-
-2009-01-01 Ulrich Drepper <drepper@redhat.com>
-
- * addr2line.c: Update copyright year.
- * ar.c: Likewise.
- * elfcmp.c: Likewise.
- * elflint.c: Likewise.
- * findtextrel.c: Likewise.
- * ld.c: Likewise.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * ranlib.c: Likewise.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strings.c: Likewise.
- * strip.c: Likewise.
- * unstrip.c: Likewise.
-
-2008-12-11 Roland McGrath <roland@redhat.com>
-
- * nm.c (sym_name): New function.
- (show_symbols_sysv): Use it in place of elf_strptr.
- (show_symbols_bsd, show_symbols_posix): Likewise.
- Fixes RHBZ#476136.
-
- * nm.c (show_symbols_sysv): Use an alloca'd backup section name when
- elf_strptr fails.
-
-2008-12-02 Roland McGrath <roland@redhat.com>
-
- * readelf.c (count_dwflmod, process_file): Don't presume encoding of
- nonzero OFFSET argument to dwfl_getmodules.
-
-2008-08-07 Roland McGrath <roland@redhat.com>
-
- * addr2line.c (main): Pass string to handle_address.
- (see_one_module): New function, subroutine of handle_address.
- (find_symbol): Likewise.
- (handle_address): Take string argument rather than address.
- Convert plain number, or handle strings like "(section)+offset"
- or "symbol+offset".
-
-2008-08-01 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_core_item): Handle 'B' type for 1-origin bitset.
- For 'b' and 'B', print <x-y,z> or ~<x,y-z> rather than 1/0 string.
-
- * readelf.c (convert): Take new argument SIZE.
- (handle_core_register, handle_core_item): Update callers.
- (handle_core_item): Take new arg REPEATED_SIZE.
- (handle_core_items): Special case for a singleton item,
- let handle_core_item handle repeats if it wants to.
-
- * readelf.c (handle_core_items): Give abridged output
- for identical groups repeated more than twice.
-
-2008-07-04 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_core_items): Handle ELF_T_ADDR.
-
-2008-04-10 Roland McGrath <roland@redhat.com>
-
- * strip.c (handle_elf): Don't keep sections that kept symbol tables
- refer to. Instead, just be sure to preserve the original symbol
- table in the debug file so those symbols go with their sections and
- can be elided from the stripped version of the symbol table.
-
- * strip.c (handle_elf): When a discarded section kept in the debug
- file refers to a nondiscard section via sh_link/sh_info, preserve
- that nondiscarded section unmodified in the debug file as well.
- Skip adjustment of discarded sections symbol table references when
- that symbol table is copied in this way.
-
- * elflint.c (check_symtab): Don't crash from missing symbol names
- after diagnosing bogus strtab.
-
- * strip.c (handle_elf): Cosmetic cleanup in special section contents
- adjustment for symtab changes.
-
-2008-03-31 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_sections): Add checks on SHF_EXECINSTR sections:
- must be SHT_PROGBITS, must not be SHF_WRITE. Let backend hook
- excuse a special section.
-
-2008-03-27 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_sections): Check that executability and writability
- of sections is reflected in segment p_flags.
-
-2008-03-26 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_program_header): Accept PT_GNU_RELRO p_flags
- that matches its PT_LOAD's p_flags &~ PF_W. On sparc, PF_X really
- is valid in RELRO.
-
-2008-02-29 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_attributes): Add a cast.
- * elflint.c (check_attributes): Likewise.
-
- * unaligned.h (add_8ubyte_unaligned): Cast PTR argument for parity
- with [UNALIGNED_ACCESS_CLASS == BYTE_ORDER] definition.
- (add_4ubyte_unaligned, add_2ubyte_unaligned): Likewise.
-
-2008-02-03 Ulrich Drepper <drepper@redhat.com>
-
- * i386_ld.c (elf_i386_count_relocations): Implement R_386_TLS_GD
- when linked into executable.
- (elf_i386_create_relocations): Likewise.
-
-2008-02-20 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_attributes): New function.
- (process_elf_file): Call it under -A.
-
- * elflint.c (check_attributes): Implement it for real.
-
-2008-02-19 Roland McGrath <roland@redhat.com>
-
- * elflint.c (special_sections): Handle .gnu.attributes section.
- (check_sections): Likewise.
- (check_attributes): New function.
-
-2008-02-10 Roland McGrath <roland@redhat.com>
-
- * elfcmp.c (main): Ignore sh_offset differences in non-SHF_ALLOC
- sections and ET_REL files.
-
-2008-02-02 Ulrich Drepper <drepper@redhat.com>
-
- * elf32-i386.script: Add .eh_frame_hdr, .tdata, and .tbss sections.
- * i386_ld.c (elf_i386_count_relocations): Handle R_386_TLS_LDO_32
- and R_386_TLS_LE.
- (elf_i386_create_relocations): Likewise.
- * ld.h (struct ld_state): Add need_tls, tls_start, and tls_tcb
- elements.
- * ldgeneric.c (add_section): If TLS section is used, set need_tls flag.
- (ld_generic_create_outfile): Add PT_TLS entry to program header.
- Fix generation of PT_GNU_STACK entry.
-
-2008-02-01 Ulrich Drepper <drepper@redhat.com>
-
- * ld.c (replace_args): Prevent loop over replacements if the parameter
- is only two characters long.
-
- * ld.c: Recognize sha1 argument for --build-id parameter.
- * ldgeneric.c (create_build_id_section): Handle sha1.
- (compute_hash_sum): New function. Broken out of compute_build_id.
- Take hash function and context as parameters.
- (compute_build_id): Use compute_hash_sum for md5 and the new sha1
- implementation.
-
-2008-01-31 Ulrich Drepper <drepper@redhat.com>
-
- * elf32-i386.script: Add .note.ABI-tag and .note.gnu.build-id sections.
- * ld.c: Recognize --build-id command line parameter.
- * ld.h: Define scn_dot_note_gnu_build_id.
- (struct ld_state): Add build_id and buildidscnidx elements.
- * ldgeneric.c: Implement --build-id command line parameter.
- * ldlex.l (ID): Recognize - as valid character after the first one.
-
-2008-01-29 Ulrich Drepper <drepper@redhat.com>
-
- * ld.c (replace_args): New function.
- (main): Use it to rewrite old-style parameters.
-
- * elf32-i386.script: Add .gnu.hash section.
- * ldgeneric.c (optimal_bucket_size): A tiny bit more efficient.
- (fillin_special_symbol): Initialize st_size.
- (sortfct_hashval): New function.
- (create_gnu_hash): New function.
- (create_hash): New function.
- (ld_generic_create_outfile): Use the new functions to create the
- hash tables.
-
- * elflint.c (check_gnu_hash): Fix index value printed in error message.
-
-2008-01-24 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_group): Check that signature symbol for section
- group is not an empty string.
- * ldgeneric.c: Remove magic assignment of indeces in the dynsym
- section. Start implementation of --hash-style.
- * i386_ld.c: Likewise.
- * ld.c: Recognize --hash-style.
- * ld.h (struct scninfo): Add comdat_group.
- Add additional parameter to finalize_plt callback.
-
-2008-01-22 Ulrich Drepper <drepper@redhat.com>
-
- * ld.h (struct callbacks): Add initialize_gotplt.
- (struct scnhead): Add scn_dot_gotplt.
- (struct ld_state): Add gotpltscnidx.
- * i386_ld.c (elf_i386_initialize_plt): Minor optimization.
- (elf_i386_initialize_pltrel): Likewise.
- (elf_i386_initialize_got): There is now a separate .got.plt, so
- don't do the PLT-related work here. Initialize d_type.
- (elf_i386_initialize_gotplt): New function.
- (elf_i386_plt0): Use ud2a after indirect jump.
- (elf_i386_pic_plt0_entry): Likewise.
- (elf_i386_finalize_plt): Reference now .got.plt.
- (elf_i386_count_relocations): For GOT entries which need no relocation
- don't bump nrel_got.
- (elf_i386_create_relocations): Also get .got.plt. Rewrite R-386_GOT32
- handling for split .got/.got.plt.
- (elf_i386_ld_init): Initialize callbacks.initialize_gotplt.
- * elf32-i386.script: Sort sections for security. There are no .got
- input sections. Add .got.plt.
- * ldgeneric.c (ld_generic_generate_sections): Add .got.plt section.
- (ld_generic_create_outfile): Initialize .got.plt section.
- Use .got.plt address for _GLOBAL_OFFSET_TABLE_ symbol and DT_PLTGOT.
-
-2008-01-19 Ulrich Drepper <drepper@redhat.com>
-
- * i386_ld.c (elf_i386_count_relocations): PLT relocations for undefined
- symbols are not carried over into statically linked output files.
- Add dummy entries for more TLS relocations.
-
- * ld.c (options): Add long names for -( and -).
-
- * ldgeneric.c (check_definition): For newly found definitions don't
- mark section as used if symbol is absolute.
- (extract_from_archive): Only assign archive sequence number the first
- time the archive is handled. Update ld_state.last_archive_used
- if any symbol was used. Remove nround variable.
- (file_process2): When using symbol from an archive, update
- ld_state.group_start_archive, ld_state.archives, and
- ld_state.tailarchives.
- (ld_generic_file_process): If group is not handled anymore, after
- freeing ELF handles for the archives, clear ld_state.archives and
- *nextp. Fix wrong logic in recognizing first iteration of group
- loop. When clearing flags, also clear ld_state.group_start_archive.
-
-2008-01-11 Ulrich Drepper <drepper@redhat.com>
-
- * objdump.c (show_disasm): Adjust disassembler format string for
- removal of %e.
-
-2008-01-04 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_core_items): Take new arg DESCSZ; if nonzero,
- a size greater than the items cover means multiple sets of items.
- (handle_core_note): Update caller.
-
-2008-01-04 Roland McGrath <roland@redhat.com>
-
- * strip.c (handle_elf): Move SHDRIDX defn to silence gcc warning.
-
-2008-01-03 Roland McGrath <roland@redhat.com>
-
- * ld.h (linked_from_dso_p): Use __attribute__ ((__gnu_inline__)).
-
- * elflint.c (check_dynamic): Remove duplicate initializer.
-
-2008-01-02 Ulrich Drepper <drepper@redhat.com>
-
- * addr2line.c: Update copyright year.
- * ar.c: Likewise.
- * elfcmp.c: Likewise.
- * elflint.c: Likewise.
- * findtextrel.c: Likewise.
- * ld.c: Likewise.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * ranlib.c: Likewise.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strings.c: Likewise.
- * strip.c: Likewise.
- * unstrip.c: Likewise.
-
-2007-12-30 Ulrich Drepper <drepper@redhat.com>
-
- * objdump (show_disasm): Use %e after third parameter.
-
-2007-12-21 Ulrich Drepper <drepper@redhat.com>
-
- * strip.c: Fix wrong parenthesis in a few branch predictions.
- * strings.c: Likewise.
-
-2007-12-20 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (DEFS): Add DEBUGPRED.
- * addr2line.c: Include debugpred.h.
- * ar.c: Likewise.
- * elfcmp.c: Likewise.
- * elflint.c: Likewise.
- * findtextrel.c: Likewise.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * ranlib.c: Likewise.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strings.c: Likewise.
- * strip.c: Likewise.
- * unstrip.c: Likewise.
- * debugpred.h: New file.
-
- * readelf.c (handle_relocs_rel): Use elf_scnshndx.
- (handle_relocs_rela): Likewise.
-
- * readelf.c: Add lots of likely/unlikely.
-
- * elflint.c: Minor cleanups.
-
-2007-11-19 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_ops): Handle all bad op codes gracefully.
- Print their numbers instead of just ???.
-
-2007-11-09 Roland McGrath <roland@redhat.com>
-
- * readelf.c (attr_callback): Handle DW_AT_data_location.
- Handle block forms to mean a DWARF expression for DW_AT_allocated,
- DW_AT_associated, DW_AT_bit_size, DW_AT_bit_offset, DW_AT_bit_stride,
- DW_AT_byte_size, DW_AT_byte_stride, DW_AT_count, DW_AT_lower_bound,
- DW_AT_upper_bound.
-
-2007-10-20 Roland McGrath <roland@redhat.com>
-
- * unstrip.c (options): Update -R description.
- (struct symbol): Put symbol details a union with a size_t pointer
- `duplicate'.
- (compare_symbols_output): Use null ->name as marker for discard
- symbols, not zero *->map.
- (copy_elided_sections): Record forwarding pointers for discarded
- duplicates and fill SYMNDX_MAP elements through them.
-
- * readelf.c (process_file): Set offline_next_address to 0 at start.
- (struct process_dwflmod_args): New type.
- (process_dwflmod): Take args in it, pass fd to process_elf_file.
- (process_file): Update caller; dup FD for passing to libdwfl.
- (process_elf_file): Take new arg FD. For ET_REL file when
- displaying data affected by libdwfl relocation, open a new Elf handle.
-
-2007-10-17 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_debug_line_section): For invalid data inside a
- unit with plausible length, keep printing at the next unit boundary.
-
- * readelf.c (attr_callback): Use dwarf_formref_die, not dwarf_formref.
-
-2007-10-16 Roland McGrath <roland@redhat.com>
-
- * readelf.c (hex_dump): Fix rounding error in whitespace calculation.
-
-2007-10-15 Roland McGrath <roland@redhat.com>
-
- * make-debug-archive.in: New file.
- * Makefile.am (EXTRA_DIST): Add it.
- (make-debug-archive): New target.
- (bin_SCRIPTS, CLEANFILES): Add it.
-
-2007-10-10 Roland McGrath <roland@redhat.com>
-
- * elflint.c (special_sections): Add new attrflag value exact_or_gnuld.
- Use it to check MERGE|STRINGS for .debug_str.
- (check_sections): Handle exact_or_gnuld.
-
-2007-10-08 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_core_item): Handle 'T'|0x80 to indicate
- 64-bit struct timeval with 32-bit tv_usec.
-
-2007-10-07 Roland McGrath <roland@redhat.com>
-
- * readelf.c (check_archive_index): New function.
- (process_file): Call it. Change signature to take only fd and name.
- Use libdwfl to open the file, then iterate on its modules (multiple
- for an archive) to print file name and call process_elf_file.
- (main): Update caller. Let process_file do elf_begin.
- (count_dwflmod, process_dwflmod, find_no_debuginfo): New functions.
- (process_elf_file): Take only Dwfl_Module * argument.
- Don't print the file name here.
- (print_debug_*_section): Take Dwfl_Module * argument.
- (print_debug): Likewise. Update caller.
- (format_dwarf_addr): New function.
- (print_debug_ranges_section): Use it.
- (attr_callback): Likewise.
- (print_debug_line_section, print_debug_loc_section): Likewise.
-
- * readelf.c (print_debug_ranges_section): Translate all strings.
- (print_debug_loc_section): Likewise.
-
- * unstrip.c (copy_elided_sections): Initialize SEC.
-
- * ar.c (do_oper_insert): Put trailing / on short names.
-
- * arlib.h (MAX_AR_NAME_LEN): Decrease by one.
-
- * arlib2.c (arlib_add_long_name): Adjust for header size.
-
- * arlib.c (arlib_finalize): Pad long name table to keep size even.
-
- * ar.c (do_oper_insert): Use write_retry for padding write.
-
- * ar.c (do_oper_insert): Initialize CUR_OFF in no_old case.
- Unconditionally set FOUND[CNT]->elf when setting ->mem.
- (remember_long_name): New function.
- (do_oper_insert): Call it. Correctly use length of basename,
- not original name. Don't store long name twice for new member.
-
-2007-10-06 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_note): Skip empty segment.
- (check_note_section): Skip empty section.
-
- * unstrip.c (options, parse_opt, struct arg_info): Grok -R/--relocate.
- (handle_output_dir_module, handle_implicit_modules): Pass it down.
- (handle_dwfl_module): When set, use ET_REL already loaded by Dwfl.
- (compare_alloc_sections): Take new arg REL, ignore address if true.
- (compare_sections): Likewise, pass it down.
- (compare_sections_rel, compare_sections_nonrel): New functions.
- (find_alloc_sections_prelink, copy_elided_sections): Use them
- instead of compare_sections.
- (sections_match): New function, broken out of ...
- (find_alloc_section): ... here.
- (copy_elided_sections): Reorganize section match-up logic.
- Use sections_match for SHF_ALLOC in ET_REL.
- For ET_REL, let the nonzero sh_addr from the debug file dominate.
-
- * unstrip.c (add_new_section_symbols): Take new arg REL.
- When true, do not update section symbol values.
- (collect_symbols): Likewise. Update section symbols with address
- of chosen output section, not original section.
- (check_symtab_section_symbols, copy_elided_sections): Update callers.
-
- * unstrip.c (compare_alloc_sections): At the same address, preserve
- original section order.
-
- * elflint.c (special_sections): Don't require MERGE|STRINGS for
- .debug_str, it didn't always have them with older tools.
-
- * elflint.c (check_symtab, check_one_reloc): Ignore sh_addr in ET_REL.
-
-2007-10-05 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_symtab): Allow SHN_UNDEF _GLOBAL_OFFSET_TABLE_ in
- ET_REL file.
-
- * elflint.c (check_symtab): For _GLOBAL_OFFSET_TABLE_, diagnose
- SHN_UNDEF as "bad section". Use shndx value in messages.
-
- * elflint.c (special_sections): Add ".debug_str". Decrement namelen
- for ".debug" so it matches as a prefix.
- (IS_KNOWN_SPECIAL): New macro.
- (check_sections): Use it for ".plt" match. Cite wrong SHT_NOBITS
- type even under -d, for a .debug* or .shstrtab section.
-
- * readelf.c (print_ops): Use hex for address operand.
-
-2007-10-04 Roland McGrath <roland@redhat.com>
-
- * unstrip.c (copy_elided_sections): Initialize NDX_SECTION element for
- .gnu_debuglink section to SHN_UNDEF. Drop STT_SECTION symbols for
- sections mapped to SHN_UNDEF.
-
-2007-10-04 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (dump_archive_index): Avoid warning about uninitialized
- variable with older glibc versions.
- Add some branch prediction.
-
-2007-10-04 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_archive_index): New variable.
- (options, parse_opt): Accept -c/--archive-index to set it.
- (dump_archive_index): New function.
- (process_file): Take new arg WILL_PRINT_ARCHIVE_INDEX.
- Call dump_archive_index on archives if set.
- (main): Update caller.
- (any_control_option): Give it file scope, moved out of ...
- (parse_opt): ... here.
-
-2007-10-03 Roland McGrath <roland@redhat.com>
-
- * unstrip.c (struct arg_info): Add `list' flag.
- (options, parse_opt): Grok -n/--list to set it.
- (list_module): New function.
- (handle_implicit_modules): Call it under -n.
-
- * elflint.c (check_note_section): New function.
- (check_sections): Call it for SHT_NOTE.
-
- * readelf.c (handle_notes): Use sections when available.
-
- * elflint.c (check_note_data): New function, broken out of ...
- (check_note): ... here. Call it and elf_getdata_rawchunk.
-
- * readelf.c (handle_auxv_note): Take offset as argument, not buffer.
- Use elf_getdata_rawchunk and gelf_getauxv.
- (handle_notes_data): New function, broken out of ...
- (handle_notes): ... here. Call it and elf_getdata_rawchunk.
-
-2007-10-01 Roland McGrath <roland@redhat.com>
-
- * readelf.c (hex_dump): Fix transposed subtraction generating spaces.
-
- * readelf.c (hex_dump): Fix line header to be hex instead of decimal.
-
-2007-09-10 Roland McGrath <roland@redhat.com>
-
- * readelf.c (options): Give -p optional argument, alias --string-dump.
- (string_sections, string_sections_tail): New static variables.
- (parse_opt): Set them when -p has an argument.
- (print_string_section): New function, broken out of ...
- (print_strings): ... here. Call it.
- (dump_data_section): New function, broken out of ...
- (dump_data): ... here. Call it.
- (for_each_section_argument): New function, broken out of ...
- (dump_data): ... here. Call it.
- (dump_strings): New function.
-
-2007-08-31 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_strings): Typo fix.
-
-2007-08-23 Roland McGrath <roland@redhat.com>
-
- * readelf.c (printf_with_wrap): Function removed.
- (REGISTER_WRAP_COLUMN): New macro.
- (handle_core_register): Use print_core_item instead.
- (struct register_info): New type.
- (compare_registers, compare_register_sets): New functions.
- (register_bitpos, compare_sets_by_info): New functions.
- (handle_core_registers): Use those to segregate and sort registers
- for display.
-
- * readelf.c (ITEM_WRAP_COLUMN): New macro.
- (print_core_item): New function.
- (handle_core_item): Use it instead of printf_with_wrap.
- (compare_core_items, compare_core_item_groups): New functions.
- (handle_core_items): Use them. Sort by group and force line breaks
- between groups.
-
- * readelf.c (handle_core_registers, handle_core_items): New functions,
- broken out of ...
- (handle_core_note): ... here. Call them.
-
-2007-08-22 Roland McGrath <roland@redhat.com>
-
- * unstrip.c (new_shstrtab): New function, broken out of ...
- (copy_elided_sections): ... here.
-
-2007-08-20 Roland McGrath <roland@redhat.com>
-
- Avoid local function trampolines in nm binary.
- * nm.c (sort_by_address): Move to a static function instead of local
- inside show_symbols.
- (sort_by_name_strtab): New static variable.
- (sort_by_name): Use it. Move to a static function instead of local
- inside show_symbols.
- (show_symbols): Set sort_by_name_strtab.
-
-2007-08-19 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_auxv_note): New function.
- (handle_notes): Call it.
-
- * readelf.c (printf_with_wrap, convert): New functions.
- (handle_core_item, (handle_core_register): New functions.
- (handle_notes): Call those with details from ebl_core_note.
-
-2007-08-12 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_note): Accept type 0 with name "Linux".
-
- * elflint.c (special_sections): Accept SHF_ALLOC for ".note".
-
- * elflint.c (section_flags_string): Return "none" for 0, not "".
-
-2007-08-11 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_note): Accept NT_GNU_HWCAP, NT_GNU_BUILD_ID.
-
-2007-08-04 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (hex_dump): Use isprint to determine whether to print
- character itself or full stop character.
- (dump_data): No need to check endp for NULL after strtol call.
-
-2007-08-03 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_string_sections): New variable.
- (options, parse_opt): Handle --strings/-p to set it.
- (print_strings): New function.
- (process_elf_file): Call it under -p.
-
- * readelf.c (options): Add hidden aliases --segments, --sections,
- as taken by binutils readelf.
-
-2007-08-01 Roland McGrath <roland@redhat.com>
-
- * readelf.c (dump_data_sections, dump_data_sections_tail):
- New variables.
- (options, parse_opt): Handle --hex-dump/-x, set them.
- (hex_dump): New function.
- (dump_data): New function, call it.
- (process_elf_file): Call it.
-
-2007-07-25 Roland McGrath <roland@redhat.com>
-
- * addr2line.c (show_symbols): New variable.
- (print_addrsym): New function.
- (handle_address): Call it.
- (options, parse_opt): Handle -S/--symbols.
-
-2007-06-05 Ulrich Drepper <drepper@redhat.com>
-
- * addr2line.c: Update for latest autoconf header.
- * ar.c: Likewise.
- * elfcmp.c: Likewise.
- * elflint.c: Likewise.
- * findtextrel.c: Likewise.
- * ld.c: Likewise.
- * ldgeneric.c: Likewise.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * ranlib.c: Likewise.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strings.c: Likewise.
- * strip.c: Likewise.
- * unstrip.c: Likewise.
-
-2007-05-18 Roland McGrath <roland@redhat.com>
-
- * unstrip.c (copy_elided_sections): Match up non-NOBITS sections with
- stripped file, so as not to duplicate a section copied in both.
-
- * strip.c (handle_elf): Keep SHT_NOTE section copies in the debug file.
-
-2007-05-17 Roland McGrath <roland@redhat.com>
-
- * unstrip.c (copy_elided_sections): Don't call gelf_newphdr for 0.
-
- * unstrip.c (handle_file): Tweak BIAS != 0 warning.
-
- * unstrip.c (handle_file): Take new arg CREATE_DIRS. If set,
- call make_directories here.
- (handle_explicit_files): Take new arg CREATE_DIRS, pass it down.
- (handle_dwfl_module): Likewise.
- (handle_implicit_modules): Update callers.
- (handle_output_dir_module): Likewise. Don't do make_directories here.
-
- * unstrip.c (get_section_name): New function, broken out of ...
- (copy_elided_sections): here. Update callers.
- (find_alloc_section): Broken out of ...
- (copy_elided_sections): ... here. Update caller.
- (symtab_count_leading_section_symbols): Take new arg NEWSYMDATA,
- update STT_SECTION symbols' st_value fields as a side effect.
- (check_symtab_section_symbols): Update caller.
- (add_new_section_symbols): Set st_value in symbols added.
- (collect_symbols): Reset S->value for STT_SECTION symbols recorded.
- Take new arg SPLIT_BSS. Adjust S->shndx recorded for symbols moved
- from .bss to .dynbss.
- (find_alloc_sections_prelink): New function. Associate debug file
- allocated SHT_NOBITS shdrs with stripped moved by prelink via
- .gnu.prelink_undo information.
- (copy_elided_sections): Call it when we couldn't find every allocated
- section. Don't use a debug file non-NOBITS section if SHF_ALLOC.
- Take STRIPPED_EHDR arg instead of E_TYPE and PHNUM.
- (handle_file): Update callers.
-
- * unstrip.c (copy_elided_sections): Ignore unfound unallocated section
- named ".comment".
-
- * elflint.c (check_sections): Fix association of segments with
- sections when p_memsz > p_filesz.
-
-2007-04-29 Roland McGrath <roland@redhat.com>
-
- * addr2line.c (options, main): Tweak argp group settings to fix
- usage output.
-
-2007-04-28 Roland McGrath <roland@redhat.com>
-
- * strip.c (handle_elf): Update debug file's SHT_NOBITS sections'
- sizes to match sections adjusted in the stripped file.
-
-2007-04-24 Roland McGrath <roland@redhat.com>
-
- * elfcmp.c (OPT_HASH_INEXACT): New macro.
- (hash_inexact): New variable.
- (options, parse_opt): Add --hash-inexact option to set it.
- (hash_content_equivalent): New function.
- (main): Call it for differing SHT_HASH sections under --hash-inexact.
-
-2007-04-23 Roland McGrath <roland@redhat.com>
-
- * unstrip.c: New file.
- * Makefile.am (bin_PROGRAMS): Add it.
- (unstrip_LDADD): New variable.
-
- * strip.c (options): Allow --output for -o.
-
-2007-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c: Remove unused code. Add a few consts.
-
-2007-02-15 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_debug): Fix brainos in SHDR test.
-
-2007-02-05 Roland McGrath <roland@redhat.com>
-
- * ar.c: Include <limits.h>, since we use LONG_MAX.
-
-2007-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * ar.c: Add ugly hack to work around gcc complaining that we
- ignore fchown's return value.
- (do_oper_insert): Handle error when writing padding.
- * ranlib.c: Add fchown complain work around.
-
- * arlib.c: Make symtab a global variable. Change all users.
- * arlib2.c: Likewise.
- * ranlib.c: Likewise.
- * ar.c: Likewise.
- * arlib.h: Declare it.
-
-2007-01-11 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_sections): Use ebl_machine_section_flag_check on
- SHF_MASKPROC bits separately from generic sh_flags validation.
-
-2007-02-04 Ulrich Drepper <drepper@redhat.com>
-
- * ar.c: New file.
- * arlib.c: New file.
- * arlib2.c: New file.
- * arlib.h: New file.
- * Makefile (noinst_LIBRARIES): Add libar.
- (libar_a_SOURCES): Define.
- (ar_LDADD): Define.
- (CFLAGS_ar): Define.
- * ranlib.c: Change to use arlib.
-
- * elflint.c (check_symtab): Work around GNU ld bug which omits
- sections but not symbols in those sections.
-
-2007-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * addr2line.c: Update copyright year.
- * elfcmp.c: Likewise.
- * elflint.c: Likewise.
- * findtextrel.c: Likewise.
- * ld.c: Likewise.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * ranlib.c: Likewise.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strings.c: Likewise.
- * strip.c: Likewise.
-
-2006-12-09 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (compare_hash_gnu_hash): New function. Report if the
- two hash tables have different content (module expected omission
- of undefined symbols).
-
-2006-10-31 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_program_header): Don't complain about
- p_filesz > p_memsz if p_memsz is zero and p_type is PT_NOTE.
-
-2006-09-19 Jakub Jelinek <jakub@redhat.com>
-
- * strip.c (process_file): Disallow -f on archives.
-
-2006-10-09 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (libld_elf_i386.so): Use $(LINK), not $(CC).
-
-2006-08-29 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (MAINTAINERCLEANFILES): New variable.
-
- * readelf.c (handle_relocs_rel): Typo fix, test DESTSHDR properly.
- Reported by Christian Aichinger <Greek0@gmx.net>.
-
- * elflint.c (valid_e_machine): Add EM_ALPHA.
- Reported by Christian Aichinger <Greek0@gmx.net>.
-
-2006-08-08 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB.
- Keep track of which "high DT" entries are present.
- Check that either old or GNU-style hash table is present.
- If GNU-style hash table is used a symbol table is mandatory.
- Check that if any prelink entry is present all of them are.
- (check_gnu_hash): Only fail for undefined symbols in GNU-style hash
- table if they don't refer to functions.
-
-2006-07-17 Roland McGrath <roland@redhat.com>
-
- * elflint.c (struct version_namelist): Use GElf_Versym for `ndx' field.
- (add_version): Likewise for argument.
- (check_versym): Cast constant to GElf_Versym for comparison.
-
-2006-07-12 Roland McGrath <roland@redhat.com>
-
- * readelf.c (handle_gnu_hash): Add casts for machines where
- Elf32_Word != unsigned int.
-
-2006-07-12 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_sysv_hash64): Fix printf format.
-
-2006-07-11 Roland McGrath <roland@redhat.com>
-
- * addr2line.c (options): English fix in -f doc string.
-
- * addr2line.c (use_comp_dir): New variable.
- (options, parse_opt): Grok -A/--absolute to set it.
- (handle_address): If set, prepend dwfl_line_comp_dir results to
- relative file names.
-
-2006-07-06 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c: Adjust for latest new hash table format.
- * readelf.c: Likewise.
-
- * elflint.c (check_versym): Ignore hidden bit when comparing version
- numbers.
-
-2006-07-05 Ulrich Drepper <drepper@redhat.com>
-
- * ldgeneric.c (ld_generic_create_outfile): Correctly recognize
- discarded COMDAT symbols.
-
- * i386_ld.c (elf_i386_count_relocations): Lot of corrections.
- (elf_i386_create_relocations): Likewise.
- * ld.h (struct symbol): Add local and hidden bits.
- * ld.c (create_special_section_symbol): These synthsized symbols
- are local and hidden.
- * ldgeneric.c (file_process2): Check whether input file matches
- the emulation.
- (fillin_special_symbol): Create symbols as local and/or hidden
- if requested.
- (ld_generic_create_outfile): Make local copy of symbol.
- Don't hide global, defined symbols in dynamic symbol table unless
- requested. Synthetic symbols have no version information.
-
- * elflint.c: Add support for checking 64-bit SysV-style hash tables.
- * readelf.c: Add support for printing 64-bit SysV-style hash tables.
-
-2006-07-04 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (is_rel_dyn): Fix and extend DT_RELCOUNT/DT_RELACOUNT
- testing.
-
-2006-07-03 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c: Add testing of DT_GNU_HASH.
- * readelf.c: Implement showing histogram for DT_GNU_HASH section.
-
- * Makefile.am: Add hacks to create dependency files for non-generic
- linker.
-
-2006-06-12 Ulrich Drepper <drepper@redhat.com>
-
- * ldgeneric.c (ld_generic_generate_sections): Don't create .interp
- section if creating a DSO and no interpreter is given.
- (ld_generic_create_outfile): Don't store reference to symbols in
- discarded COMDAT groups. Don't create PHDR and INTERP program header
- for DSO if no interpreter is specified.
- (create_verneed_data): Pretty printing.
-
- * ldscript.y (content): If a DSO is created don't set default
- interpreter from linker script.
-
- * i386_ld.c (elf_i386_count_relocations): Do not add relocations
- for symbols in discarded COMDAT groups.
- (elf_i386_create_relocations): Likewise.
- * ld.h (struct scninfo): Add unused_comdat.
- * ldgeneric.c (add_section): Also check group signature when
- matching COMDAT sections.
- (add_relocatable_file): Ignore symbols in COMDAT group which are
- discarded.
-
- * elflint.c (check_one_reloc): For *_NONE relocs only check type
- and symbol reference.
-
-2006-06-11 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_dynamic): Fix checking value of tags which are
- offsets in the string section. Make sure DT_STRTAB points to the
- section referenced in sh_link.
-
- * ld.c (options): Add headers. Add short option 'R' for '--rpath'.
-
- * ld.c: Recognize --eh-frame-hdr option.
- * ld.h (struct ld_state): Add eh_frame_hdr field.
- * ldgeneric.c (struct unw_eh_frame_hdr): Define.
-
- * ldgeneric.c (add_section): Use ebl_sh_flags_combine instead of
- SH_FLAGS_COMBINE.
- (add_relocatable_file): Minor optimization of last change.
- (match_section): Don't preserve SHF_GROUP flag any longer.
-
-2006-06-10 Ulrich Drepper <drepper@redhat.com>
-
- * ld.c (parse_z_option): Recognize execstack and noexecstack.
- Handle record and ignore as position dependent options.
- (parse_z_option_2): Handle ignore and record here.
- * ld.h (struct ld_state): Add execstack field.
- * ldgeneric.c (add_relocatable_file): Recognize .note.GNU-stack
- sections.
- (ld_generic_create_outfile): Fix program header creation in native
- linker. Add PT_GNU_STACK program header.
-
-2006-06-09 Ulrich Drepper <drepper@redhat.com>
-
- * i386_ld.c (elf_i386_finalize_plt): Don't change symbol table entries
- for PLT entries if there is no local definition.
-
- * ld.c (parse_option): Handle -z ignore like --as-needed and
- -z record like --no-as-needed.
- * ld.h (struct ld_state): Remove ignore_unused_dsos field.
- * ldgeneric.c (new_generated_scn): Always compute ndt_needed by
- looping over DSOs. When deciding about adding DT_NEEDED entries
- use ->as_needed instead of ignore_unused_dsos.
-
-2006-05-31 Ulrich Drepper <drepper@redhat.com>
-
- * ld.c: Recognize --as-needed and --no-as-needed options.
- * ld.h (struct usedfile): Add as_needed field.
- (struct ld_state): Likewise.
- * ldgeneric.c (ld_handle_filename_list): Copy as_needed flag from
- the list.
- * ldscript.y (filename_id_list): Split to correctly parse all
- combinations.
- (mark_as_needed): Fix loop.
-
-2006-05-28 Ulrich Drepper <drepper@redhat.com>
-
- * addr2line.c (print_dwarf_function): Use unsigned type for lineno
- and colno.
-
-2006-05-27 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (handle_relocs_rela): Better notations for addon value.
- (print_ehdr): Distinguish e_ident[EI_VERSION] from e_version.
-
-2006-04-04 Ulrich Drepper <drepper@redhat.com>
-
- * addr2line.c: Update copyright year.
- * elfcmp.c: Likewise.
- * elflint.c: Likewise.
- * findtextrel.c: Likewise.
- * ld.c: Likewise.
- * nm.c: Likewise.
- * objdump.c: Likewise.
- * ranlib.c: Likewise.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strings.c: Likewise.
- * strip.c: Likewise.
-
-2006-03-09 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (AM_LDFLAGS): New variable.
-
-2006-03-01 Roland McGrath <roland@redhat.com>
-
- * readelf.c (dwarf_tag_string, dwarf_attr_string): Update name tables
- for dwarf.h changes matching 3.0 spec.
- (dwarf_encoding_string, dwarf_lang_string, print_ops): Likewise.
-
-2005-12-04 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_one_reloc): If relocation section is not loaded,
- don't check whether the relocations modify read-only sections or
- loaded and unloaded sections.
-
-2005-11-28 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_one_reloc): Take additional parameters. Use
- them to determine whether relocation is valid in this type of
- file. DSOs and executables can contain relocation sections in
- unloaded sections which just show the relocations the linker
- applied. Adjust all callers.
- (check_program_header): Check that PT_PHDR is loaded and that offset
- matches the one in the ELF header.
-
-2005-10-26 Roland McGrath <roland@redhat.com>
-
- * nm.c (get_var_range): dwarf_getloclist -> dwarf_getlocation.
-
-2005-09-03 Ulrich Drepper <drepper@redhat.com>
-
- * strip.c (handle_elf): Unify some error messages.
- * ld.c (main): Likewise.
- * ldgeneric.c (open_elf): Likewise.
- * elfcmp.c (main): Likewise.
- * elflint.c (check_elf_header): Likewise.
-
- * size.c (process_file): Fix typo in error message.
-
- * readelf.c: Lots of little cleanups. Use _unlocked functions.
-
-2005-09-02 Ulrich Drepper <drepper@redhat.com>
-
- * strings.c (main): Reset elfmap variable after munmap call.
- [_MUDFLAP] (map_file): Simplify mudflap debugging by not using mmap.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * ranlib.c: Don't define pread_retry and write_retry here.
-
- * Makefile.an [BUILD_STATIC] (libdw): Add -ldl.
- (CLEANFILES): Add *.gcno *.gcda *.gconv.
-
- * strings.c (process_chunk): Reorder expressions in conditional
- (process_chunk_mb): Likewise.
-
- * strings.c: New file.
- * Makefile.am (bin_PROGRAMS): Add strings.
- (strings_no_Wstring): Define.
- (strings_LDADD): Define.
-
-2005-08-27 Roland McGrath <roland@redhat.com>
-
- * addr2line.c (dwarf_diename_integrate): Function removed.
- (print_dwarf_function): Use plain dwarf_diename.
-
-2005-08-24 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_versym): Versioned symbols should not have
- local binding.
-
-2005-08-15 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_versym): Allow VER_NDX_LOCAL symbols to be
- undefined.
-
- * Makefile.am: Add rules to build ranlib.
- * ranlib.c: New file.
-
-2005-08-14 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_sections): Use ebl_section_type_name and allow any
- sh_type it recognizes.
-
- * elflint.c (check_sections): Print unknown flags in hex, don't
- truncate high bits. Print section number and name for unknown type.
-
-2005-08-13 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_program_header): Use ebl_segment_type_name and
- allow any p_type it recognizes. Include p_type value in error
- message for unknown type.
-
-2005-08-13 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_symtab): Simplify last change a bit. Pass ehdr
- to ebl_check_special_symbol.
- (check_sections): Pass ehdr to ebl_bss_plt_p.
-
-2005-08-12 Roland McGrath <roland@redhat.com>
-
- * elflint.c (check_symtab): Check that _GLOBAL_OFFSET_TABLE_ st_shndx
- refers to the right section if it's not SHN_ABS.
- Let ebl_check_special_symbol override _G_O_T_ value and size checks.
-
- * elflint.c (check_sections): Don't complain about a non-NOBITS
- section taking no segment space, if it's sh_size is 0.
-
- * elflint.c (check_sections): Use ebl_bss_plt_p to see if .plt should
- be PROGBITS or NOBITS.
-
- * elflint.c (check_symtab): Use ebl_check_special_symbol to override
- standard st_value and st_size checks.
-
-2005-07-28 Roland McGrath <roland@redhat.com>
-
- * addr2line.c (options, parse_opt): Don't handle -e here.
- (executable): Variable removed.
- (argp_children): New static variable.
- (argp): Use it. Make const.
- (main): Fill in argp_children from dwfl_standard_argp ().
- Let libdwfl handle file selection, pass Dwfl handle to handle_address.
- (print_dwarf_function): New function. Try to figure out inline chain.
- (elf_getname): Function removed, libdwfl does it for us.
- (handle_address): Take Dwfl handle instead of Elf, Dwarf handles.
- Use dwfl_module_addrname instead of elf_getname.
- Use dwfl_module_getsrc and dwfl_lineinfo instead of libdw calls.
- * Makefile.am (INCLUDES): Add libdwfl directory to path.
-
-2005-08-10 Ulrich Drepper <drepper@redhat.com>
-
- * strip.c (parse_opt): STATE parameter is now used.
- Various little cleanups.
-
- * readelf.c (print_debug_line_section): Correct fallout of renaming
- of DW_LNS_set_epilog_begin.
-
-2005-08-08 Roland McGrath <roland@redhat.com>
-
- * strip.c (options, parse_opt): Grok -R .comment for compatibility
- with binutils strip. Likewise -d, -S, as aliases for -g.
- Likewise ignore -s/--strip-all.
-
-2005-08-07 Roland McGrath <roland@redhat.com>
-
- * strip.c (process_file): Open read-only when using a different output
- file.
-
-2005-08-06 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (in_nobits_scn): New function.
- (check_versym): Allow references for defined symbols against versions
- of other DSOs also for symbols in nobits sections.
- Move a few variables around.
-
- * Makefile.am (AM_CFLAGS): Avoid duplication.
- Link with statis libs if BUILD_STATIC.
-
-2005-08-05 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c: Many, many more tests. Mostly related to symbol
- versioning. Those sections should now be completely checked.
-
- * readelf.c (print_dynamic): Use gelf_offscn.
-
-2005-08-04 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c: Add lots more tests: more extension symbol table sanity,
- versioning section tests, hash table tests. General cleanup.
-
-2005-08-02 Ulrich Drepper <drepper@redhat.com>
-
- * objdump.c: New file.
- * Makefile.am (bin_PROGRAMS): Add objdump.
- (objdump_LDADD): Define.
-
- * elflint.c (check_reloc_shdr): New function split out from check_rela
- and check_rel.
- (check_one_reloc): New function. Likewise.
- (check_rela): Use check_reloc_shdr and check_one_reloc.
- (check_rel): Likewise.
- (check_program_header): Check that PT_DYNAMIC entry matches .dynamic
- section.
- Add checks that relocations against read-only segments are flagged,
- that the text relocation flag is not set unnecessarily, and that
- relocations in one section are either against loaded or not-loaded
- segments.
-
-2005-08-01 Ulrich Drepper <drepper@redhat.com>
-
- * elfcmp.c (main): Ignore section count and section name string table
- section index.
-
-2005-07-27 Roland McGrath <roland@redhat.com>
-
- * elfcmp.c: Include <locale.h>.
-
-2005-07-27 Ulrich Drepper <drepper@redhat.com>
-
- * elfcmp.c: Print name and index of differing section.
-
-2005-07-24 Ulrich Drepper <drepper@redhat.com>
-
- * elfcmp.c: Implement comparing gaps between sections.
-
-2005-07-23 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c: Include libeblP.h instead of libebl.h.
- * nm.c: Likewise.
- * readelf.c: Likewise.
- * elfcmp.c: Likewise.
-
- * elfcmp.c (main): Compare individual ELF header fields, excluding
- e_shoff instead of the whole struct at once.
- Use ebl_section_strip_p instead of SECTION_STRIP_P.
- * strip.c: Use ebl_section_strip_p instead of SECTION_STRIP_P.
-
-2005-07-22 Ulrich Drepper <drepper@redhat.com>
-
- * elfcmp.c (main): Take empty section into account when comparing
- section content.
-
- * elflint.c (check_dynamic): Check that d_tag value is >= 0 before
- using it.
-
-2005-07-21 Ulrich Drepper <drepper@redhat.com>
-
- * elfcmp.c: New file.
- * Makefile.am (bin_PROGRAMS): Add elfcmp.
- (elfcmp_LDADD): Define.
-
- * elflint.c (check_rela): Check that copy relocations only reference
- object symbols or symbols with unknown type.
- (check_rel): Likewise.
-
-2005-06-08 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_ops): Add consts.
-
-2005-05-31 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_debug_abbrev_section): Don't bail after first CU's
- abbreviations. Print a header line before each CU section.
-
- * readelf.c (print_debug_loc_section): Fix indentation for larger
- address size.
-
-2005-05-30 Roland McGrath <roland@redhat.com>
-
- * readelf.c (print_debug_line_section): Print section offset of each
- CU's table, so they are easy to find from seeing the stmt_list value.
-
- * readelf.c (dwarf_attr_string): Add all attributes in <dwarf.h>.
- (attr_callback): Grok DW_AT_ranges and print offset in hex.
-
- * readelf.c (attr_callback): Add 2 to addrsize * 2 for %#0* format.
- (print_debug_ranges_section, print_debug_loc_section): Likewise.
-
- * readelf.c (print_ops): Take different args for indentation control.
- (attr_callback): Caller updated.
- Grok several more block-form attributes as being location expressions.
- For those same attributes with udata forms, format output differently
- for location list offset.
- (print_debug_loc_section): Implement it for real.
-
- * readelf.c (options): Mention ranges for --debug-dump.
- (enum section_e): Add section_ranges.
- (parse_opt): Grok "ranges" for -w/--debug-dump.
- (print_debug_ranges_section): New function.
- (print_debug): Handle .debug_ranges section.
-
-2005-05-30 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (handle_notes): At least x86-64 need not have the note
- section values aligned to 8 bytes.
-
-2005-05-18 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (dwarf_tag_string): Add new tags.
-
-2005-05-08 Roland McGrath <roland@redhat.com>
-
- * strip.c (handle_elf): Don't translate hash and versym data formats,
- elf_getdata already did it for us.
-
-2005-05-07 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (findtextrel_LDADD): Add $(libmudflap).
- (addr2line_LDADD): Likewise.
-
-2005-05-03 Roland McGrath <roland@redhat.com>
-
- * strip.c (handle_elf): Apply symbol table fixups to discarded
- relocation sections when they are being saved in the debug file.
-
- * strip.c (handle_elf): Pass EHDR->e_ident[EI_DATA] to gelf_xlatetom
- and gelf_xlatetof, not the native byte order.
-
- * strip.c (parse_opt): Give error if -f or -o is repeated.
- (main): Exit if argp_parse returns nonzero.
-
- * strip.c (debug_fname_embed): New variable.
- (options, parse_opt): New option -F to set it.
-
-2005-05-07 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (parse_opt): Make any_control_option variable
- local. Simplify some tests.
-
-2005-05-03 Roland McGrath <roland@redhat.com>
-
- * strip.c (crc32_file): Function removed (now in ../lib).
-
-2005-05-03 Roland McGrath <roland@redhat.com>
-
- * elflint.c (is_debuginfo): New variable.
- (options, parse_opt): New option --debuginfo/-d to set it.
- (check_sections): If is_debuginfo, don't complain about SHT_NOBITS.
- (check_note): If is_debuginfo, don't try to get note contents.
-
-2005-04-24 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_debug_abbrev_section): Don't print error when end of
- section reached.
-
-2005-04-14 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (dwarf_encoding_string): New function.
- (dwarf_inline_string): New function.
- (dwarf_access_string): New function.
- (dwarf_visibility_string): New function.
- (dwarf_virtuality_string): New function.
- (dwarf_identifier_case_string): New function.
- (dwarf_calling_convention_string): New function.
- (dwarf_ordering_string): New function.
- (dwarf_discr_list_string): New function.
- (attr_callback): Decode man more attribute values.
-
-2005-04-01 Ulrich Drepper <drepper@redhat.com>
-
- * addr2line.c: Finish implementation of -f option.
-
-2005-03-29 Ulrich Drepper <drepper@redhat.com>
-
- * addr2line.c: New file.
- * Makefile.am (bin_PROGRAMS): Add addr2line.
- Define addr2line_LDADD.
-
- * findtextrel.c: Use new dwarf_addrdie function.
-
- * findtextrel.c: Fix usage message and re-add accidentally removed
- line.
-
-2005-03-28 Ulrich Drepper <drepper@redhat.com>
-
- * findtextrel.c: New file.
- * Makefile: Add rules to build findtextrel.
-
-2005-02-15 Ulrich Drepper <drepper@redhat.com>
-
- * ldlex.l: Provide ECHO definition to avoid warning.
-
- * elflint.c (check_program_header): Fix typo in RELRO test.
-
- * Makefile.am (AM_CFLAGS): Add more warning options.
- * elflint.c: Fix warnings introduced by the new warning options.
- * i386_ld.c: Likewise.
- * ld.c: Likewise.
- * ld.h: Likewise.
- * ldgeneric.c: Likewise.
- * nm.c: Likewise.
- * readelf.c: Likewise.
- * sectionhash.c: Likewise.
- * size.c: Likewise.
- * string.c: Likewise.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Check for text relocations in constructed DSOs.
-
- * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. Link all apps
- with -lmudflap.
-
- * ldscript.y: Add as_needed handling.
- * ldlex.l: Recognize AS_NEEDED token.
- * ld.h (struct filename_list): Add as_needed flag.
-
-2005-02-04 Ulrich Drepper <drepper@redhat.com>
-
- * elflint.c (check_symtab): Correctly determine size of GOT section.
-
-2005-01-19 Ulrich Drepper <drepper@redhat.com>
-
- * ld.c: Remove unnecessary more_help function. Print bug report
- address using argp.
- * strip.c: Likewise.
- * size.c: Likewise.
- * nm.c: Likewise.
- * readelf.c: Likewise.
- * elflint.c: Likewise.
-
- * elflint.c (main): Don't check for parameter problems here.
- (parse_opt): Do it here, where we get informed about some of them
- anyway.
-
- * readelf.c (main): Don't check for parameter problems here.
- (parse_opt): Do it here, where we get informed about some of them
- anyway.
-
-2005-01-11 Ulrich Drepper <drepper@redhat.com>
-
- * strip.c: Update copyright year.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * nm.c: Likewise.
- * ld.c: Likewise.
- * elflint.c: Likewise.
-
- * elflint.c (check_symtab): Don't warn about wrong size for
- _DYNAMIC and __GLOBAL_OFFSET_TABLE__ for --gnu-ld.
-
-2004-10-05 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_phdr): In section mapping, also indicate
- sections in read-only segments.
-
-2004-09-25 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c: Make compile with gcc 4.0.
- * strip.c: Likewise.
-
-2004-08-16 Ulrich Drepper <drepper@redhat.com>
-
- * strip.c (handle_elf): Rewrite dynamic memory handling to use of
- allocate to work around gcc 3.4 bug.
-
-2004-01-25 Ulrich Drepper <drepper@redhat.com>
-
- * ldlex.l (invalid_char): Better error message.
-
-2004-01-23 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c: Print SHT_GNU_LIBLIST sections.
-
- * none_ld.c: New file.
-
-2004-01-21 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Enable building of machine specific linker.
-
-2004-01-20 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
- * i386_ld.c: Fix warnings gcc 3.4 spits out.
- * ldgeneric.c: Likewise.
- * ldscript.y: Likewise.
- * readelf.c: Likewise.
- * strip.c: Likewise.
-
- * readelf.c (print_debug_line_section): Determine address size
- correctly.
-
-2004-01-19 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_phdr): Show which sections are covered by the
- PT_GNU_RELRO entry.
-
- * elflint.c (check_program_header): Check PT_GNU_RELRO entry.
-
- * readelf.c (print_debug_macinfo_section): Implement.
-
-2004-01-18 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_debug_line_section): Implement.
-
-2004-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * src/elflint.c: Use PACKAGE_NAME instead of PACKAGE.
- * src/ld.c: Likewise.
- * src/nm.c: Likewise.
- * src/readelf.c: Likewise.
- * src/size.c: Likewise.
- * src/strip.c: Likewise.
-
- * strip.c: Add a few more unlikely. Reduce scope of some variables.
-
- * Makefile.am: Support building with mudflap.
-
-2004-01-16 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_debug_info_section): Free dies memory.
-
- * readelf.c: Print .debug_info section content.
-
-2004-01-13 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE.
-
-2004-01-12 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (print_debug_aranges): Implement using libdw.
-
-2004-01-11 Ulrich Drepper <drepper@redhat.com>
-
- * nm.c: Adjust for Dwarf_Files type and dwarf_lineno interface change.
-
- * readelf.c: Use libdw instead of libdwarf. Not all of the old
- behavior is available yet.
- * Makefile.am: Link readelf with libdw. Remove libdwarf include path.
-
-2004-01-09 Ulrich Drepper <drepper@redhat.com>
-
- * nm.c (get_local_names): Adjust call to dwarf_nextcu.
-
- * nm.c: Implement getting information about local variables.
-
-2004-01-07 Ulrich Drepper <drepper@redhat.com>
-
- * nm.c: Read also debug information for local symbols.
-
-2004-01-05 Ulrich Drepper <drepper@redhat.com>
-
- * nm.c: Shuffle dwarf handling code around so the maximum column
- width can be computed ahead of printing. Avoid collection symbols
- which are not printed anyway.
-
- * nm.c: Rewrite dwarf handling to use libdw.
- * Makefile.am (AM_CFLAGS): Add -std parameter.
- (INCLUDES): Find header in libdw subdir.
- (nm_LDADD): Replace libdwarf with libdw.
-
- * elflint.c: Update copyright year.
- * readelf.c: Likewise.
- * size.c: Likewise.
- * strip.c: Likewise.
- * nm.c: Likewise.
-
-2003-12-31 Ulrich Drepper <drepper@redhat.com>
-
- * strip.c (process_file): Close file before returning.
-
-2003-11-19 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (handle_dynamic): Make column for tag name wider.
-
-2003-09-29 Ulrich Drepper <drepper@redhat.com>
-
- * readelf.c (handle_dynamic): Always terminate tag name with a space.
-
-2003-09-25 Ulrich Drepper <drepper@redhat.com>
-
- * strip.c (process_file): Don't mmap the input file, we modify the
- data structures and don't want the change end up on disk.
-
-2003-09-23 Jakub Jelinek <jakub@redhat.com>
-
- * unaligned.h (union u_2ubyte_unaligned,
- union u_4ubyte_unaligned, union u_8ubyte_unaligned): Add
- packed attribute.
- (add_2ubyte_unaligned, add_4ubyte_unaligned,
- add_8ubyte_unaligned): Avoid nesting bswap_NN macros.
- Read/store value through _ptr->u instead of *_ptr.
-
-2003-09-22 Ulrich Drepper <drepper@redhat.com>
-
- * size.c (show_sysv): Change type of maxlen to int.
-
- * strip.c (handle_elf): Handle the 64-bit archs which is 64-bit
- buckets.
-
- * i386_ld.c: Many many fixes and extensions.
- * ld.c: Likewise.
- * ldgeneric.c: Likewise.
-
-2003-08-16 Ulrich Drepper <drepper@redhat.com>
-
- * ldgeneric.c (check_definition): Don't add symbol on dso_list if
- the reference is from another DSO.
-
-2003-08-15 Ulrich Drepper <drepper@redhat.com>
-
- * ldgeneric.c (find_entry_point): It is no fatal error if no entry
- point is found when creating a DSO.
-
-2003-08-14 Ulrich Drepper <drepper@redhat.com>
-
- * ld.c (main): Always call FLAG_UNRESOLVED.
- * ldgeneric.c (ld_generic_flag_unresolved): Only complain about
- undefined symbols if not creating DSO or ld_state.nodefs is not set.
-
-2003-08-13 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.in: Depend on libebl.a, not libebl.so.
-
- * ld.c (main): Mark stream for linker script as locked by caller.
- (read_version_script): Likewise.
- * ldlex.c: Define fread and fwrite to _unlocked variant.
-
- * i386_ld.c (elf_i386_finalize_plt): Replace #ifdefs with uses of
- target_bswap_32.
- * unaligned.h: Define target_bswap_16, target_bswap_32, and
- target_bswap_64.
- (store_2ubyte_unaligned, store_4ubyte_unaligned,
- store_8ubyte_unaligned): Define using new macros.
-
-2003-08-12 Ulrich Drepper <drepper@redhat.com>
-
- * i386_ld.c (elf_i386_finalize_plt): Use packed structs to access
- possibly unaligned memory. Support use of big endian machines.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/src/Makefile b/src/src/Makefile
deleted file mode 100644
index 5a90099a..00000000
--- a/src/src/Makefile
+++ /dev/null
@@ -1,1041 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# src/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am ldlex.c ldscript.c \
- $(top_srcdir)/config/depcomp $(top_srcdir)/config/ylwrap \
- $(noinst_HEADERS) ChangeLog
-bin_PROGRAMS = readelf$(EXEEXT) nm$(EXEEXT) size$(EXEEXT) \
- strip$(EXEEXT) ld$(EXEEXT) elflint$(EXEEXT) \
- findtextrel$(EXEEXT) addr2line$(EXEEXT) elfcmp$(EXEEXT) \
- objdump$(EXEEXT) ranlib$(EXEEXT) strings$(EXEEXT) ar$(EXEEXT) \
- unstrip$(EXEEXT) stack$(EXEEXT)
-noinst_PROGRAMS = $(am__EXEEXT_1)
-# We never build this library but we need to get the dependency files
-# of all the linker backends that might be used in a non-generic linker.
-#am__append_1 = libdummy.a
-# -ldl is always needed for libebl.
-#am__append_2 = libld_elf.a
-#am_libld_elf_i386_pic_a_OBJECTS =
-subdir = src
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_$(V))
-am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libar_a_AR = $(AR) $(ARFLAGS)
-libar_a_LIBADD =
-am_libar_a_OBJECTS = arlib.$(OBJEXT) arlib2.$(OBJEXT) \
- arlib-argp.$(OBJEXT)
-libar_a_OBJECTS = $(am_libar_a_OBJECTS)
-libdummy_a_AR = $(AR) $(ARFLAGS)
-libdummy_a_LIBADD =
-am__libdummy_a_SOURCES_DIST = i386_ld.c
-#am_libdummy_a_OBJECTS = i386_ld.$(OBJEXT)
-libdummy_a_OBJECTS = $(am_libdummy_a_OBJECTS)
-libld_elf_a_AR = $(AR) $(ARFLAGS)
-libld_elf_a_LIBADD =
-am__libld_elf_a_SOURCES_DIST = $(base_cpu)_ld.c
-#am_libld_elf_a_OBJECTS = $(base_cpu)_ld.$(OBJEXT)
-libld_elf_a_OBJECTS = $(am_libld_elf_a_OBJECTS)
-libld_elf_i386_pic_a_AR = $(AR) $(ARFLAGS)
-libld_elf_i386_pic_a_LIBADD =
-libld_elf_i386_pic_a_OBJECTS = $(am_libld_elf_i386_pic_a_OBJECTS)
-am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"
-am__EXEEXT_1 = libld_elf_i386.so$(EXEEXT)
-PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
-addr2line_SOURCES = addr2line.c
-addr2line_OBJECTS = addr2line.$(OBJEXT)
-am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = ../libdw/libdw.so
-#am__DEPENDENCIES_2 = ../libdw/libdw.a \
-# $(am__DEPENDENCIES_1) $(libelf) $(libebl)
-addr2line_DEPENDENCIES = $(am__DEPENDENCIES_2) $(libelf)
-ar_SOURCES = ar.c
-ar_OBJECTS = ar.$(OBJEXT)
-ar_DEPENDENCIES = libar.a $(libelf) $(libeu)
-elfcmp_SOURCES = elfcmp.c
-elfcmp_OBJECTS = elfcmp.$(OBJEXT)
-elfcmp_DEPENDENCIES = $(libebl) $(libelf)
-elflint_SOURCES = elflint.c
-elflint_OBJECTS = elflint.$(OBJEXT)
-elflint_DEPENDENCIES = $(libebl) $(libelf) $(libeu)
-findtextrel_SOURCES = findtextrel.c
-findtextrel_OBJECTS = findtextrel.$(OBJEXT)
-findtextrel_DEPENDENCIES = $(am__DEPENDENCIES_2) $(libelf)
-am_ld_OBJECTS = ld.$(OBJEXT) ldgeneric.$(OBJEXT) ldlex.$(OBJEXT) \
- ldscript.$(OBJEXT) symbolhash.$(OBJEXT) sectionhash.$(OBJEXT) \
- versionhash.$(OBJEXT)
-ld_OBJECTS = $(am_ld_OBJECTS)
-ld_DEPENDENCIES = $(libebl) $(libelf) $(libeu) $(am__append_2)
-ld_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(ld_LDFLAGS) $(LDFLAGS) -o \
- $@
-am_libld_elf_i386_so_OBJECTS =
-libld_elf_i386_so_OBJECTS = $(am_libld_elf_i386_so_OBJECTS)
-libld_elf_i386_so_LDADD = $(LDADD)
-nm_SOURCES = nm.c
-nm_OBJECTS = nm.$(OBJEXT)
-nm_DEPENDENCIES = $(am__DEPENDENCIES_2) $(libebl) $(libelf) $(libeu) \
- $(am__DEPENDENCIES_1)
-objdump_SOURCES = objdump.c
-objdump_OBJECTS = objdump.$(OBJEXT)
-objdump_DEPENDENCIES = $(libasm) $(libebl) $(libelf) $(libeu)
-ranlib_SOURCES = ranlib.c
-ranlib_OBJECTS = ranlib.$(OBJEXT)
-ranlib_DEPENDENCIES = libar.a $(libelf) $(libeu)
-readelf_SOURCES = readelf.c
-readelf_OBJECTS = readelf.$(OBJEXT)
-readelf_DEPENDENCIES = $(am__DEPENDENCIES_2) $(libebl) $(libelf) \
- $(libeu)
-size_SOURCES = size.c
-size_OBJECTS = size.$(OBJEXT)
-size_DEPENDENCIES = $(libelf) $(libeu)
-stack_SOURCES = stack.c
-stack_OBJECTS = stack.$(OBJEXT)
-stack_DEPENDENCIES = $(libebl) $(libelf) $(am__DEPENDENCIES_2) \
- $(libeu) $(am__DEPENDENCIES_1)
-strings_SOURCES = strings.c
-strings_OBJECTS = strings.$(OBJEXT)
-strings_DEPENDENCIES = $(libelf) $(libeu)
-strip_SOURCES = strip.c
-strip_OBJECTS = strip.$(OBJEXT)
-strip_DEPENDENCIES = $(libebl) $(libelf) $(libeu)
-unstrip_SOURCES = unstrip.c
-unstrip_OBJECTS = unstrip.$(OBJEXT)
-unstrip_DEPENDENCIES = $(libebl) $(libelf) $(am__DEPENDENCIES_2) \
- $(libeu)
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-SCRIPTS = $(bin_SCRIPTS)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-am__skiplex = test -f $@ ||
-LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS)
-AM_V_LEX = $(am__v_LEX_$(V))
-am__v_LEX_ = $(am__v_LEX_$(AM_DEFAULT_VERBOSITY))
-am__v_LEX_0 = @echo " LEX " $@;
-am__v_LEX_1 =
-YLWRAP = $(top_srcdir)/config/ylwrap
-am__skipyacc = test -f $@ ||
-am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \
- -e s/c++$$/h++/ -e s/c$$/h/
-YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS)
-AM_V_YACC = $(am__v_YACC_$(V))
-am__v_YACC_ = $(am__v_YACC_$(AM_DEFAULT_VERBOSITY))
-am__v_YACC_0 = @echo " YACC " $@;
-am__v_YACC_1 =
-SOURCES = $(libar_a_SOURCES) $(libdummy_a_SOURCES) \
- $(libld_elf_a_SOURCES) $(libld_elf_i386_pic_a_SOURCES) \
- addr2line.c ar.c elfcmp.c elflint.c findtextrel.c \
- $(ld_SOURCES) $(libld_elf_i386_so_SOURCES) nm.c objdump.c \
- ranlib.c readelf.c size.c stack.c strings.c strip.c unstrip.c
-DIST_SOURCES = $(libar_a_SOURCES) $(am__libdummy_a_SOURCES_DIST) \
- $(am__libld_elf_a_SOURCES_DIST) \
- $(libld_elf_i386_pic_a_SOURCES) addr2line.c ar.c elfcmp.c \
- elflint.c findtextrel.c $(ld_SOURCES) \
- $(libld_elf_i386_so_SOURCES) nm.c objdump.c ranlib.c readelf.c \
- size.c stack.c strings.c strip.c unstrip.c
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"' \
- $(YYDEBUG) -DDEBUGPRED=0 -DSRCDIR=\"$(shell cd \
- $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 0.161
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y -d
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/src
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/src
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf \
- -I$(srcdir)/../libdwfl -I$(srcdir)/../libasm
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda make-debug-archive none_ld.os \
- $(ld_modules:.c=.os) *.gconv
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw
-AM_YFLAGS = -pld
-AM_LFLAGS = -Pld -olex.yy.c
-native_ld = @native_ld@
-ld_dsos = libld_elf_i386_pic.a
-noinst_LIBRARIES = libld_elf.a libar.a $(ld_dsos) \
- $(am__append_1)
-#noinst_LIBRARIES = libld_elf.a libar.a $(am__append_1)
-#native_ld_cflags = -DBASE_ELF_NAME=elf_$(base_cpu)
-#libdummy_a_SOURCES = i386_ld.c
-ld_SOURCES = ld.c ldgeneric.c ldlex.l ldscript.y symbolhash.c sectionhash.c \
- versionhash.c
-
-libar_a_SOURCES = arlib.c arlib2.c arlib-argp.c
-noinst_HEADERS = ld.h symbolhash.h sectionhash.h versionhash.h \
- ldscript.h xelf.h unaligned.h
-
-EXTRA_DIST = elf32-i386.script libld_elf_i386.map $(ld_modules) \
- arlib.h debugpred.h make-debug-archive.in
-ld_modules = i386_ld.c
-bin_SCRIPTS = make-debug-archive
-libasm = ../libasm/libasm.so
-#libasm = ../libasm/libasm.a
-libdw = ../libdw/libdw.so
-#libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
-libelf = ../libelf/libelf.so
-#libelf = ../libelf/libelf.a
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-demanglelib = -lstdc++
-
-# XXX While the file is not finished, don't warn about this
-ldgeneric_no_Wunused = yes
-readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl
-nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl \
- $(demanglelib)
-
-size_LDADD = $(libelf) $(libeu)
-strip_LDADD = $(libebl) $(libelf) $(libeu) -ldl
-ld_LDADD = $(libebl) $(libelf) $(libeu) -ldl $(am__append_2)
-ld_LDFLAGS = -rdynamic
-elflint_LDADD = $(libebl) $(libelf) $(libeu) -ldl
-findtextrel_LDADD = $(libdw) $(libelf)
-addr2line_LDADD = $(libdw) $(libelf)
-elfcmp_LDADD = $(libebl) $(libelf) -ldl
-objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) -ldl
-ranlib_LDADD = libar.a $(libelf) $(libeu)
-strings_LDADD = $(libelf) $(libeu)
-ar_LDADD = libar.a $(libelf) $(libeu)
-unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl
-stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl $(demanglelib)
-ldlex_no_Werror = yes
-
-# Machine-specific linker code.
-#libld_elf_a_SOURCES := $(base_cpu)_ld.c
-libld_elf_i386_pic_a_SOURCES =
-am_libld_elf_i386_pic_a_OBJECTS = i386_ld.os
-libld_elf_i386_so_SOURCES =
-MAINTAINERCLEANFILES = ldlex.c ldscript.c ldscript.h
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .l .o .obj .y
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits src/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libar.a: $(libar_a_OBJECTS) $(libar_a_DEPENDENCIES) $(EXTRA_libar_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libar.a
- $(AM_V_AR)$(libar_a_AR) libar.a $(libar_a_OBJECTS) $(libar_a_LIBADD)
- $(AM_V_at)$(RANLIB) libar.a
-
-libdummy.a: $(libdummy_a_OBJECTS) $(libdummy_a_DEPENDENCIES) $(EXTRA_libdummy_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdummy.a
- $(AM_V_AR)$(libdummy_a_AR) libdummy.a $(libdummy_a_OBJECTS) $(libdummy_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdummy.a
-
-libld_elf.a: $(libld_elf_a_OBJECTS) $(libld_elf_a_DEPENDENCIES) $(EXTRA_libld_elf_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libld_elf.a
- $(AM_V_AR)$(libld_elf_a_AR) libld_elf.a $(libld_elf_a_OBJECTS) $(libld_elf_a_LIBADD)
- $(AM_V_at)$(RANLIB) libld_elf.a
-
-libld_elf_i386_pic.a: $(libld_elf_i386_pic_a_OBJECTS) $(libld_elf_i386_pic_a_DEPENDENCIES) $(EXTRA_libld_elf_i386_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libld_elf_i386_pic.a
- $(AM_V_AR)$(libld_elf_i386_pic_a_AR) libld_elf_i386_pic.a $(libld_elf_i386_pic_a_OBJECTS) $(libld_elf_i386_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libld_elf_i386_pic.a
-install-binPROGRAMS: $(bin_PROGRAMS)
- @$(NORMAL_INSTALL)
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
- fi; \
- for p in $$list; do echo "$$p $$p"; done | \
- sed 's/$(EXEEXT)$$//' | \
- while read p p1; do if test -f $$p \
- ; then echo "$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n;h' \
- -e 's|.*|.|' \
- -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
- sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) files[d] = files[d] " " $$1; \
- else { print "f", $$3 "/" $$4, $$1; } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
- $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-binPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
- -e 's/$$/$(EXEEXT)/' \
- `; \
- test -n "$$list" || exit 0; \
- echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
- cd "$(DESTDIR)$(bindir)" && rm -f $$files
-
-clean-binPROGRAMS:
- -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-addr2line$(EXEEXT): $(addr2line_OBJECTS) $(addr2line_DEPENDENCIES) $(EXTRA_addr2line_DEPENDENCIES)
- @rm -f addr2line$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(addr2line_OBJECTS) $(addr2line_LDADD) $(LIBS)
-
-ar$(EXEEXT): $(ar_OBJECTS) $(ar_DEPENDENCIES) $(EXTRA_ar_DEPENDENCIES)
- @rm -f ar$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(ar_OBJECTS) $(ar_LDADD) $(LIBS)
-
-elfcmp$(EXEEXT): $(elfcmp_OBJECTS) $(elfcmp_DEPENDENCIES) $(EXTRA_elfcmp_DEPENDENCIES)
- @rm -f elfcmp$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(elfcmp_OBJECTS) $(elfcmp_LDADD) $(LIBS)
-
-elflint$(EXEEXT): $(elflint_OBJECTS) $(elflint_DEPENDENCIES) $(EXTRA_elflint_DEPENDENCIES)
- @rm -f elflint$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(elflint_OBJECTS) $(elflint_LDADD) $(LIBS)
-
-findtextrel$(EXEEXT): $(findtextrel_OBJECTS) $(findtextrel_DEPENDENCIES) $(EXTRA_findtextrel_DEPENDENCIES)
- @rm -f findtextrel$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(findtextrel_OBJECTS) $(findtextrel_LDADD) $(LIBS)
-
-ld$(EXEEXT): $(ld_OBJECTS) $(ld_DEPENDENCIES) $(EXTRA_ld_DEPENDENCIES)
- @rm -f ld$(EXEEXT)
- $(AM_V_CCLD)$(ld_LINK) $(ld_OBJECTS) $(ld_LDADD) $(LIBS)
-
-#libld_elf_i386.so$(EXEEXT): $(libld_elf_i386_so_OBJECTS) $(libld_elf_i386_so_DEPENDENCIES) $(EXTRA_libld_elf_i386_so_DEPENDENCIES)
-# @rm -f libld_elf_i386.so$(EXEEXT)
-# $(AM_V_CCLD)$(LINK) $(libld_elf_i386_so_OBJECTS) $(libld_elf_i386_so_LDADD) $(LIBS)
-
-nm$(EXEEXT): $(nm_OBJECTS) $(nm_DEPENDENCIES) $(EXTRA_nm_DEPENDENCIES)
- @rm -f nm$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(nm_OBJECTS) $(nm_LDADD) $(LIBS)
-
-objdump$(EXEEXT): $(objdump_OBJECTS) $(objdump_DEPENDENCIES) $(EXTRA_objdump_DEPENDENCIES)
- @rm -f objdump$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(objdump_OBJECTS) $(objdump_LDADD) $(LIBS)
-
-ranlib$(EXEEXT): $(ranlib_OBJECTS) $(ranlib_DEPENDENCIES) $(EXTRA_ranlib_DEPENDENCIES)
- @rm -f ranlib$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(ranlib_OBJECTS) $(ranlib_LDADD) $(LIBS)
-
-readelf$(EXEEXT): $(readelf_OBJECTS) $(readelf_DEPENDENCIES) $(EXTRA_readelf_DEPENDENCIES)
- @rm -f readelf$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(readelf_OBJECTS) $(readelf_LDADD) $(LIBS)
-
-size$(EXEEXT): $(size_OBJECTS) $(size_DEPENDENCIES) $(EXTRA_size_DEPENDENCIES)
- @rm -f size$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(size_OBJECTS) $(size_LDADD) $(LIBS)
-
-stack$(EXEEXT): $(stack_OBJECTS) $(stack_DEPENDENCIES) $(EXTRA_stack_DEPENDENCIES)
- @rm -f stack$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(stack_OBJECTS) $(stack_LDADD) $(LIBS)
-
-strings$(EXEEXT): $(strings_OBJECTS) $(strings_DEPENDENCIES) $(EXTRA_strings_DEPENDENCIES)
- @rm -f strings$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(strings_OBJECTS) $(strings_LDADD) $(LIBS)
-
-strip$(EXEEXT): $(strip_OBJECTS) $(strip_DEPENDENCIES) $(EXTRA_strip_DEPENDENCIES)
- @rm -f strip$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(strip_OBJECTS) $(strip_LDADD) $(LIBS)
-
-unstrip$(EXEEXT): $(unstrip_OBJECTS) $(unstrip_DEPENDENCIES) $(EXTRA_unstrip_DEPENDENCIES)
- @rm -f unstrip$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(unstrip_OBJECTS) $(unstrip_LDADD) $(LIBS)
-install-binSCRIPTS: $(bin_SCRIPTS)
- @$(NORMAL_INSTALL)
- @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n' \
- -e 'h;s|.*|.|' \
- -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) { files[d] = files[d] " " $$1; \
- if (++n[d] == $(am__install_max)) { \
- print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
- else { print "f", d "/" $$4, $$1 } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
- $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-binSCRIPTS:
- @$(NORMAL_UNINSTALL)
- @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 's,.*/,,;$(transform)'`; \
- dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir)
-
-installcheck-binSCRIPTS: $(bin_SCRIPTS)
- bad=0; pid=$$$$; list="$(bin_SCRIPTS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/$(base_cpu)_ld.Po
-include ./$(DEPDIR)/addr2line.Po
-include ./$(DEPDIR)/ar.Po
-include ./$(DEPDIR)/arlib-argp.Po
-include ./$(DEPDIR)/arlib.Po
-include ./$(DEPDIR)/arlib2.Po
-include ./$(DEPDIR)/elfcmp.Po
-include ./$(DEPDIR)/elflint.Po
-include ./$(DEPDIR)/findtextrel.Po
-include ./$(DEPDIR)/i386_ld.Po
-include ./$(DEPDIR)/ld.Po
-include ./$(DEPDIR)/ldgeneric.Po
-include ./$(DEPDIR)/ldlex.Po
-include ./$(DEPDIR)/ldscript.Po
-include ./$(DEPDIR)/nm.Po
-include ./$(DEPDIR)/objdump.Po
-include ./$(DEPDIR)/ranlib.Po
-include ./$(DEPDIR)/readelf.Po
-include ./$(DEPDIR)/sectionhash.Po
-include ./$(DEPDIR)/size.Po
-include ./$(DEPDIR)/stack.Po
-include ./$(DEPDIR)/strings.Po
-include ./$(DEPDIR)/strip.Po
-include ./$(DEPDIR)/symbolhash.Po
-include ./$(DEPDIR)/unstrip.Po
-include ./$(DEPDIR)/versionhash.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.l.c:
- $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
-
-.y.c:
- $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(SCRIPTS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -rm -f ldlex.c
- -rm -f ldscript.c
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-binPROGRAMS clean-generic clean-noinstLIBRARIES \
- clean-noinstPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-binPROGRAMS install-binSCRIPTS
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am: installcheck-binPROGRAMS installcheck-binSCRIPTS
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
- clean-binPROGRAMS clean-generic clean-noinstLIBRARIES \
- clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-binPROGRAMS install-binSCRIPTS install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installcheck-binPROGRAMS \
- installcheck-binSCRIPTS installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am uninstall-binPROGRAMS uninstall-binSCRIPTS
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-ldlex.o: ldscript.c
-ldscript.h: ldscript.c
-libld_elf_i386.so: libld_elf_i386_pic.a libld_elf_i386.map
- $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- $(libelf) $(libeu) \
- -Wl,--version-script,$(srcdir)/libld_elf_i386.map
- @$(textrel_check)
-
-# Special rule to make it possible to define libld_elf_a_SOURCES as we do.
-# Otherwise make would complain.
-.deps/none_ld.Po: none_ld.os
- -:
-
-installcheck-binPROGRAMS: $(bin_PROGRAMS)
- bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | \
- sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- for opt in --help --version; do \
- if LD_LIBRARY_PATH=$(DESTDIR)$(libdir) \
- $(DESTDIR)$(bindir)/$$f $$opt > c$${pid}_.out 2> c$${pid}_.err \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-make-debug-archive: $(srcdir)/make-debug-archive.in
- UNSTRIP=$(bindir)/`echo unstrip | sed '$(transform)'`; \
- AR=$(bindir)/`echo ar | sed '$(transform)'`; \
- sed -e "s,[@]UNSTRIP[@],$$UNSTRIP,g" -e "s,[@]AR[@],$$AR,g" \
- -e "s%[@]PACKAGE_NAME[@]%$(PACKAGE_NAME)%g" \
- -e "s%[@]PACKAGE_VERSION[@]%$(PACKAGE_VERSION)%g" \
- $(srcdir)/make-debug-archive.in > $@.new
- chmod +x $@.new
- mv -f $@.new $@
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/src/Makefile.am b/src/src/Makefile.am
deleted file mode 100644
index 7a253745..00000000
--- a/src/src/Makefile.am
+++ /dev/null
@@ -1,168 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 1996-2014 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program. If not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-DEFS += $(YYDEBUG) -DDEBUGPRED=@DEBUGPRED@ \
- -DSRCDIR=\"$(shell cd $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
-AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf \
- -I$(srcdir)/../libdwfl -I$(srcdir)/../libasm
-
-AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw
-
-YACC = @YACC@ -d
-AM_YFLAGS = -pld
-AM_LFLAGS = -Pld -olex.yy.c
-## Uncomment to enable debugging of linker script parser
-##YYDEBUG = -DYYDEBUG=1
-
-native_ld = @native_ld@
-base_cpu = @base_cpu@
-
-bin_PROGRAMS = readelf nm size strip ld elflint findtextrel addr2line \
- elfcmp objdump ranlib strings ar unstrip stack
-
-
-ld_dsos = libld_elf_i386_pic.a
-if NATIVE_LD
-noinst_LIBRARIES = libld_elf.a libar.a
-native_ld_cflags = -DBASE_ELF_NAME=elf_$(base_cpu)
-else
-noinst_LIBRARIES = libld_elf.a libar.a $(ld_dsos)
-noinst_PROGRAMS = $(ld_dsos:_pic.a=.so)
-endif
-if NEVER
-# We never build this library but we need to get the dependency files
-# of all the linker backends that might be used in a non-generic linker.
-noinst_LIBRARIES += libdummy.a
-libdummy_a_SOURCES = i386_ld.c
-endif
-
-
-ld_SOURCES = ld.c ldgeneric.c ldlex.l ldscript.y symbolhash.c sectionhash.c \
- versionhash.c
-
-libar_a_SOURCES = arlib.c arlib2.c arlib-argp.c
-
-noinst_HEADERS = ld.h symbolhash.h sectionhash.h versionhash.h \
- ldscript.h xelf.h unaligned.h
-
-EXTRA_DIST = elf32-i386.script libld_elf_i386.map $(ld_modules) arlib.h \
- debugpred.h
-ld_modules = i386_ld.c
-
-bin_SCRIPTS = make-debug-archive
-EXTRA_DIST += make-debug-archive.in
-CLEANFILES += make-debug-archive
-
-if BUILD_STATIC
-libasm = ../libasm/libasm.a
-libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
-libelf = ../libelf/libelf.a
-else
-libasm = ../libasm/libasm.so
-libdw = ../libdw/libdw.so
-libelf = ../libelf/libelf.so
-endif
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-
-if DEMANGLE
-demanglelib = -lstdc++
-endif
-
-# XXX While the file is not finished, don't warn about this
-ldgeneric_no_Wunused = yes
-
-readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl
-nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl \
- $(demanglelib)
-size_LDADD = $(libelf) $(libeu)
-strip_LDADD = $(libebl) $(libelf) $(libeu) -ldl
-ld_LDADD = $(libebl) $(libelf) $(libeu) -ldl
-if NATIVE_LD
-# -ldl is always needed for libebl.
-ld_LDADD += libld_elf.a
-endif
-ld_LDFLAGS = -rdynamic
-elflint_LDADD = $(libebl) $(libelf) $(libeu) -ldl
-findtextrel_LDADD = $(libdw) $(libelf)
-addr2line_LDADD = $(libdw) $(libelf)
-elfcmp_LDADD = $(libebl) $(libelf) -ldl
-objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) -ldl
-ranlib_LDADD = libar.a $(libelf) $(libeu)
-strings_LDADD = $(libelf) $(libeu)
-ar_LDADD = libar.a $(libelf) $(libeu)
-unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl
-stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl $(demanglelib)
-
-ldlex.o: ldscript.c
-ldlex_no_Werror = yes
-ldscript.h: ldscript.c
-
-if NATIVE_LD
-# Machine-specific linker code.
-libld_elf_a_SOURCES := $(base_cpu)_ld.c
-else
-libld_elf_i386_pic_a_SOURCES =
-am_libld_elf_i386_pic_a_OBJECTS = i386_ld.os
-
-libld_elf_i386_so_SOURCES =
-libld_elf_i386.so: libld_elf_i386_pic.a libld_elf_i386.map
- $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
- $(libelf) $(libeu) \
- -Wl,--version-script,$(srcdir)/libld_elf_i386.map
- @$(textrel_check)
-endif
-
-# Special rule to make it possible to define libld_elf_a_SOURCES as we do.
-# Otherwise make would complain.
-.deps/none_ld.Po: none_ld.os
- -:
-
-
-installcheck-binPROGRAMS: $(bin_PROGRAMS)
- bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | \
- sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- for opt in --help --version; do \
- if LD_LIBRARY_PATH=$(DESTDIR)$(libdir) \
- $(DESTDIR)$(bindir)/$$f $$opt > c$${pid}_.out 2> c$${pid}_.err \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-CLEANFILES += none_ld.os $(ld_modules:.c=.os) *.gconv
-
-MAINTAINERCLEANFILES = ldlex.c ldscript.c ldscript.h
-
-
-make-debug-archive: $(srcdir)/make-debug-archive.in
- UNSTRIP=$(bindir)/`echo unstrip | sed '$(transform)'`; \
- AR=$(bindir)/`echo ar | sed '$(transform)'`; \
- sed -e "s,[@]UNSTRIP[@],$$UNSTRIP,g" -e "s,[@]AR[@],$$AR,g" \
- -e "s%[@]PACKAGE_NAME[@]%$(PACKAGE_NAME)%g" \
- -e "s%[@]PACKAGE_VERSION[@]%$(PACKAGE_VERSION)%g" \
- $(srcdir)/make-debug-archive.in > $@.new
- chmod +x $@.new
- mv -f $@.new $@
diff --git a/src/src/Makefile.in b/src/src/Makefile.in
deleted file mode 100644
index 19009c7a..00000000
--- a/src/src/Makefile.in
+++ /dev/null
@@ -1,1041 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-
-
-
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am ldlex.c ldscript.c \
- $(top_srcdir)/config/depcomp $(top_srcdir)/config/ylwrap \
- $(noinst_HEADERS) ChangeLog
-bin_PROGRAMS = readelf$(EXEEXT) nm$(EXEEXT) size$(EXEEXT) \
- strip$(EXEEXT) ld$(EXEEXT) elflint$(EXEEXT) \
- findtextrel$(EXEEXT) addr2line$(EXEEXT) elfcmp$(EXEEXT) \
- objdump$(EXEEXT) ranlib$(EXEEXT) strings$(EXEEXT) ar$(EXEEXT) \
- unstrip$(EXEEXT) stack$(EXEEXT)
-@NATIVE_LD_FALSE@noinst_PROGRAMS = $(am__EXEEXT_1)
-# We never build this library but we need to get the dependency files
-# of all the linker backends that might be used in a non-generic linker.
-@NEVER_TRUE@am__append_1 = libdummy.a
-# -ldl is always needed for libebl.
-@NATIVE_LD_TRUE@am__append_2 = libld_elf.a
-@NATIVE_LD_TRUE@am_libld_elf_i386_pic_a_OBJECTS =
-subdir = src
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-LIBRARIES = $(noinst_LIBRARIES)
-ARFLAGS = cru
-AM_V_AR = $(am__v_AR_@AM_V@)
-am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
-am__v_AR_0 = @echo " AR " $@;
-am__v_AR_1 =
-libar_a_AR = $(AR) $(ARFLAGS)
-libar_a_LIBADD =
-am_libar_a_OBJECTS = arlib.$(OBJEXT) arlib2.$(OBJEXT) \
- arlib-argp.$(OBJEXT)
-libar_a_OBJECTS = $(am_libar_a_OBJECTS)
-libdummy_a_AR = $(AR) $(ARFLAGS)
-libdummy_a_LIBADD =
-am__libdummy_a_SOURCES_DIST = i386_ld.c
-@NEVER_TRUE@am_libdummy_a_OBJECTS = i386_ld.$(OBJEXT)
-libdummy_a_OBJECTS = $(am_libdummy_a_OBJECTS)
-libld_elf_a_AR = $(AR) $(ARFLAGS)
-libld_elf_a_LIBADD =
-am__libld_elf_a_SOURCES_DIST = $(base_cpu)_ld.c
-@NATIVE_LD_TRUE@am_libld_elf_a_OBJECTS = $(base_cpu)_ld.$(OBJEXT)
-libld_elf_a_OBJECTS = $(am_libld_elf_a_OBJECTS)
-libld_elf_i386_pic_a_AR = $(AR) $(ARFLAGS)
-libld_elf_i386_pic_a_LIBADD =
-libld_elf_i386_pic_a_OBJECTS = $(am_libld_elf_i386_pic_a_OBJECTS)
-am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"
-am__EXEEXT_1 = libld_elf_i386.so$(EXEEXT)
-PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
-addr2line_SOURCES = addr2line.c
-addr2line_OBJECTS = addr2line.$(OBJEXT)
-am__DEPENDENCIES_1 =
-@BUILD_STATIC_FALSE@am__DEPENDENCIES_2 = ../libdw/libdw.so
-@BUILD_STATIC_TRUE@am__DEPENDENCIES_2 = ../libdw/libdw.a \
-@BUILD_STATIC_TRUE@ $(am__DEPENDENCIES_1) $(libelf) $(libebl)
-addr2line_DEPENDENCIES = $(am__DEPENDENCIES_2) $(libelf)
-ar_SOURCES = ar.c
-ar_OBJECTS = ar.$(OBJEXT)
-ar_DEPENDENCIES = libar.a $(libelf) $(libeu)
-elfcmp_SOURCES = elfcmp.c
-elfcmp_OBJECTS = elfcmp.$(OBJEXT)
-elfcmp_DEPENDENCIES = $(libebl) $(libelf)
-elflint_SOURCES = elflint.c
-elflint_OBJECTS = elflint.$(OBJEXT)
-elflint_DEPENDENCIES = $(libebl) $(libelf) $(libeu)
-findtextrel_SOURCES = findtextrel.c
-findtextrel_OBJECTS = findtextrel.$(OBJEXT)
-findtextrel_DEPENDENCIES = $(am__DEPENDENCIES_2) $(libelf)
-am_ld_OBJECTS = ld.$(OBJEXT) ldgeneric.$(OBJEXT) ldlex.$(OBJEXT) \
- ldscript.$(OBJEXT) symbolhash.$(OBJEXT) sectionhash.$(OBJEXT) \
- versionhash.$(OBJEXT)
-ld_OBJECTS = $(am_ld_OBJECTS)
-ld_DEPENDENCIES = $(libebl) $(libelf) $(libeu) $(am__append_2)
-ld_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(ld_LDFLAGS) $(LDFLAGS) -o \
- $@
-am_libld_elf_i386_so_OBJECTS =
-libld_elf_i386_so_OBJECTS = $(am_libld_elf_i386_so_OBJECTS)
-libld_elf_i386_so_LDADD = $(LDADD)
-nm_SOURCES = nm.c
-nm_OBJECTS = nm.$(OBJEXT)
-nm_DEPENDENCIES = $(am__DEPENDENCIES_2) $(libebl) $(libelf) $(libeu) \
- $(am__DEPENDENCIES_1)
-objdump_SOURCES = objdump.c
-objdump_OBJECTS = objdump.$(OBJEXT)
-objdump_DEPENDENCIES = $(libasm) $(libebl) $(libelf) $(libeu)
-ranlib_SOURCES = ranlib.c
-ranlib_OBJECTS = ranlib.$(OBJEXT)
-ranlib_DEPENDENCIES = libar.a $(libelf) $(libeu)
-readelf_SOURCES = readelf.c
-readelf_OBJECTS = readelf.$(OBJEXT)
-readelf_DEPENDENCIES = $(am__DEPENDENCIES_2) $(libebl) $(libelf) \
- $(libeu)
-size_SOURCES = size.c
-size_OBJECTS = size.$(OBJEXT)
-size_DEPENDENCIES = $(libelf) $(libeu)
-stack_SOURCES = stack.c
-stack_OBJECTS = stack.$(OBJEXT)
-stack_DEPENDENCIES = $(libebl) $(libelf) $(am__DEPENDENCIES_2) \
- $(libeu) $(am__DEPENDENCIES_1)
-strings_SOURCES = strings.c
-strings_OBJECTS = strings.$(OBJEXT)
-strings_DEPENDENCIES = $(libelf) $(libeu)
-strip_SOURCES = strip.c
-strip_OBJECTS = strip.$(OBJEXT)
-strip_DEPENDENCIES = $(libebl) $(libelf) $(libeu)
-unstrip_SOURCES = unstrip.c
-unstrip_OBJECTS = unstrip.$(OBJEXT)
-unstrip_DEPENDENCIES = $(libebl) $(libelf) $(am__DEPENDENCIES_2) \
- $(libeu)
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-SCRIPTS = $(bin_SCRIPTS)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-@MAINTAINER_MODE_FALSE@am__skiplex = test -f $@ ||
-LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS)
-AM_V_LEX = $(am__v_LEX_@AM_V@)
-am__v_LEX_ = $(am__v_LEX_@AM_DEFAULT_V@)
-am__v_LEX_0 = @echo " LEX " $@;
-am__v_LEX_1 =
-YLWRAP = $(top_srcdir)/config/ylwrap
-@MAINTAINER_MODE_FALSE@am__skipyacc = test -f $@ ||
-am__yacc_c2h = sed -e s/cc$$/hh/ -e s/cpp$$/hpp/ -e s/cxx$$/hxx/ \
- -e s/c++$$/h++/ -e s/c$$/h/
-YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS)
-AM_V_YACC = $(am__v_YACC_@AM_V@)
-am__v_YACC_ = $(am__v_YACC_@AM_DEFAULT_V@)
-am__v_YACC_0 = @echo " YACC " $@;
-am__v_YACC_1 =
-SOURCES = $(libar_a_SOURCES) $(libdummy_a_SOURCES) \
- $(libld_elf_a_SOURCES) $(libld_elf_i386_pic_a_SOURCES) \
- addr2line.c ar.c elfcmp.c elflint.c findtextrel.c \
- $(ld_SOURCES) $(libld_elf_i386_so_SOURCES) nm.c objdump.c \
- ranlib.c readelf.c size.c stack.c strings.c strip.c unstrip.c
-DIST_SOURCES = $(libar_a_SOURCES) $(am__libdummy_a_SOURCES_DIST) \
- $(am__libld_elf_a_SOURCES_DIST) \
- $(libld_elf_i386_pic_a_SOURCES) addr2line.c ar.c elfcmp.c \
- elflint.c findtextrel.c $(ld_SOURCES) \
- $(libld_elf_i386_so_SOURCES) nm.c objdump.c ranlib.c readelf.c \
- size.c stack.c strings.c strip.c unstrip.c
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-HEADERS = $(noinst_HEADERS)
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"' \
- $(YYDEBUG) -DDEBUGPRED=@DEBUGPRED@ -DSRCDIR=\"$(shell cd \
- $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@ -d
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
- -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
- -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf \
- -I$(srcdir)/../libdwfl -I$(srcdir)/../libasm
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda make-debug-archive none_ld.os \
- $(ld_modules:.c=.os) *.gconv
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-AM_LDFLAGS = -Wl,-rpath-link,../libelf:../libdw
-AM_YFLAGS = -pld
-AM_LFLAGS = -Pld -olex.yy.c
-native_ld = @native_ld@
-ld_dsos = libld_elf_i386_pic.a
-@NATIVE_LD_FALSE@noinst_LIBRARIES = libld_elf.a libar.a $(ld_dsos) \
-@NATIVE_LD_FALSE@ $(am__append_1)
-@NATIVE_LD_TRUE@noinst_LIBRARIES = libld_elf.a libar.a $(am__append_1)
-@NATIVE_LD_TRUE@native_ld_cflags = -DBASE_ELF_NAME=elf_$(base_cpu)
-@NEVER_TRUE@libdummy_a_SOURCES = i386_ld.c
-ld_SOURCES = ld.c ldgeneric.c ldlex.l ldscript.y symbolhash.c sectionhash.c \
- versionhash.c
-
-libar_a_SOURCES = arlib.c arlib2.c arlib-argp.c
-noinst_HEADERS = ld.h symbolhash.h sectionhash.h versionhash.h \
- ldscript.h xelf.h unaligned.h
-
-EXTRA_DIST = elf32-i386.script libld_elf_i386.map $(ld_modules) \
- arlib.h debugpred.h make-debug-archive.in
-ld_modules = i386_ld.c
-bin_SCRIPTS = make-debug-archive
-@BUILD_STATIC_FALSE@libasm = ../libasm/libasm.so
-@BUILD_STATIC_TRUE@libasm = ../libasm/libasm.a
-@BUILD_STATIC_FALSE@libdw = ../libdw/libdw.so
-@BUILD_STATIC_TRUE@libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
-@BUILD_STATIC_FALSE@libelf = ../libelf/libelf.so
-@BUILD_STATIC_TRUE@libelf = ../libelf/libelf.a
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-@DEMANGLE_TRUE@demanglelib = -lstdc++
-
-# XXX While the file is not finished, don't warn about this
-ldgeneric_no_Wunused = yes
-readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl
-nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) -ldl \
- $(demanglelib)
-
-size_LDADD = $(libelf) $(libeu)
-strip_LDADD = $(libebl) $(libelf) $(libeu) -ldl
-ld_LDADD = $(libebl) $(libelf) $(libeu) -ldl $(am__append_2)
-ld_LDFLAGS = -rdynamic
-elflint_LDADD = $(libebl) $(libelf) $(libeu) -ldl
-findtextrel_LDADD = $(libdw) $(libelf)
-addr2line_LDADD = $(libdw) $(libelf)
-elfcmp_LDADD = $(libebl) $(libelf) -ldl
-objdump_LDADD = $(libasm) $(libebl) $(libelf) $(libeu) -ldl
-ranlib_LDADD = libar.a $(libelf) $(libeu)
-strings_LDADD = $(libelf) $(libeu)
-ar_LDADD = libar.a $(libelf) $(libeu)
-unstrip_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl
-stack_LDADD = $(libebl) $(libelf) $(libdw) $(libeu) -ldl $(demanglelib)
-ldlex_no_Werror = yes
-
-# Machine-specific linker code.
-@NATIVE_LD_TRUE@libld_elf_a_SOURCES := $(base_cpu)_ld.c
-@NATIVE_LD_FALSE@libld_elf_i386_pic_a_SOURCES =
-@NATIVE_LD_FALSE@am_libld_elf_i386_pic_a_OBJECTS = i386_ld.os
-@NATIVE_LD_FALSE@libld_elf_i386_so_SOURCES =
-MAINTAINERCLEANFILES = ldlex.c ldscript.c ldscript.h
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .l .o .obj .y
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits src/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-noinstLIBRARIES:
- -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
-
-libar.a: $(libar_a_OBJECTS) $(libar_a_DEPENDENCIES) $(EXTRA_libar_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libar.a
- $(AM_V_AR)$(libar_a_AR) libar.a $(libar_a_OBJECTS) $(libar_a_LIBADD)
- $(AM_V_at)$(RANLIB) libar.a
-
-libdummy.a: $(libdummy_a_OBJECTS) $(libdummy_a_DEPENDENCIES) $(EXTRA_libdummy_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libdummy.a
- $(AM_V_AR)$(libdummy_a_AR) libdummy.a $(libdummy_a_OBJECTS) $(libdummy_a_LIBADD)
- $(AM_V_at)$(RANLIB) libdummy.a
-
-libld_elf.a: $(libld_elf_a_OBJECTS) $(libld_elf_a_DEPENDENCIES) $(EXTRA_libld_elf_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libld_elf.a
- $(AM_V_AR)$(libld_elf_a_AR) libld_elf.a $(libld_elf_a_OBJECTS) $(libld_elf_a_LIBADD)
- $(AM_V_at)$(RANLIB) libld_elf.a
-
-libld_elf_i386_pic.a: $(libld_elf_i386_pic_a_OBJECTS) $(libld_elf_i386_pic_a_DEPENDENCIES) $(EXTRA_libld_elf_i386_pic_a_DEPENDENCIES)
- $(AM_V_at)-rm -f libld_elf_i386_pic.a
- $(AM_V_AR)$(libld_elf_i386_pic_a_AR) libld_elf_i386_pic.a $(libld_elf_i386_pic_a_OBJECTS) $(libld_elf_i386_pic_a_LIBADD)
- $(AM_V_at)$(RANLIB) libld_elf_i386_pic.a
-install-binPROGRAMS: $(bin_PROGRAMS)
- @$(NORMAL_INSTALL)
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
- fi; \
- for p in $$list; do echo "$$p $$p"; done | \
- sed 's/$(EXEEXT)$$//' | \
- while read p p1; do if test -f $$p \
- ; then echo "$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n;h' \
- -e 's|.*|.|' \
- -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
- sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) files[d] = files[d] " " $$1; \
- else { print "f", $$3 "/" $$4, $$1; } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
- $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-binPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
- -e 's/$$/$(EXEEXT)/' \
- `; \
- test -n "$$list" || exit 0; \
- echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
- cd "$(DESTDIR)$(bindir)" && rm -f $$files
-
-clean-binPROGRAMS:
- -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
-
-clean-noinstPROGRAMS:
- -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
-
-addr2line$(EXEEXT): $(addr2line_OBJECTS) $(addr2line_DEPENDENCIES) $(EXTRA_addr2line_DEPENDENCIES)
- @rm -f addr2line$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(addr2line_OBJECTS) $(addr2line_LDADD) $(LIBS)
-
-ar$(EXEEXT): $(ar_OBJECTS) $(ar_DEPENDENCIES) $(EXTRA_ar_DEPENDENCIES)
- @rm -f ar$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(ar_OBJECTS) $(ar_LDADD) $(LIBS)
-
-elfcmp$(EXEEXT): $(elfcmp_OBJECTS) $(elfcmp_DEPENDENCIES) $(EXTRA_elfcmp_DEPENDENCIES)
- @rm -f elfcmp$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(elfcmp_OBJECTS) $(elfcmp_LDADD) $(LIBS)
-
-elflint$(EXEEXT): $(elflint_OBJECTS) $(elflint_DEPENDENCIES) $(EXTRA_elflint_DEPENDENCIES)
- @rm -f elflint$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(elflint_OBJECTS) $(elflint_LDADD) $(LIBS)
-
-findtextrel$(EXEEXT): $(findtextrel_OBJECTS) $(findtextrel_DEPENDENCIES) $(EXTRA_findtextrel_DEPENDENCIES)
- @rm -f findtextrel$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(findtextrel_OBJECTS) $(findtextrel_LDADD) $(LIBS)
-
-ld$(EXEEXT): $(ld_OBJECTS) $(ld_DEPENDENCIES) $(EXTRA_ld_DEPENDENCIES)
- @rm -f ld$(EXEEXT)
- $(AM_V_CCLD)$(ld_LINK) $(ld_OBJECTS) $(ld_LDADD) $(LIBS)
-
-@NATIVE_LD_TRUE@libld_elf_i386.so$(EXEEXT): $(libld_elf_i386_so_OBJECTS) $(libld_elf_i386_so_DEPENDENCIES) $(EXTRA_libld_elf_i386_so_DEPENDENCIES)
-@NATIVE_LD_TRUE@ @rm -f libld_elf_i386.so$(EXEEXT)
-@NATIVE_LD_TRUE@ $(AM_V_CCLD)$(LINK) $(libld_elf_i386_so_OBJECTS) $(libld_elf_i386_so_LDADD) $(LIBS)
-
-nm$(EXEEXT): $(nm_OBJECTS) $(nm_DEPENDENCIES) $(EXTRA_nm_DEPENDENCIES)
- @rm -f nm$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(nm_OBJECTS) $(nm_LDADD) $(LIBS)
-
-objdump$(EXEEXT): $(objdump_OBJECTS) $(objdump_DEPENDENCIES) $(EXTRA_objdump_DEPENDENCIES)
- @rm -f objdump$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(objdump_OBJECTS) $(objdump_LDADD) $(LIBS)
-
-ranlib$(EXEEXT): $(ranlib_OBJECTS) $(ranlib_DEPENDENCIES) $(EXTRA_ranlib_DEPENDENCIES)
- @rm -f ranlib$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(ranlib_OBJECTS) $(ranlib_LDADD) $(LIBS)
-
-readelf$(EXEEXT): $(readelf_OBJECTS) $(readelf_DEPENDENCIES) $(EXTRA_readelf_DEPENDENCIES)
- @rm -f readelf$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(readelf_OBJECTS) $(readelf_LDADD) $(LIBS)
-
-size$(EXEEXT): $(size_OBJECTS) $(size_DEPENDENCIES) $(EXTRA_size_DEPENDENCIES)
- @rm -f size$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(size_OBJECTS) $(size_LDADD) $(LIBS)
-
-stack$(EXEEXT): $(stack_OBJECTS) $(stack_DEPENDENCIES) $(EXTRA_stack_DEPENDENCIES)
- @rm -f stack$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(stack_OBJECTS) $(stack_LDADD) $(LIBS)
-
-strings$(EXEEXT): $(strings_OBJECTS) $(strings_DEPENDENCIES) $(EXTRA_strings_DEPENDENCIES)
- @rm -f strings$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(strings_OBJECTS) $(strings_LDADD) $(LIBS)
-
-strip$(EXEEXT): $(strip_OBJECTS) $(strip_DEPENDENCIES) $(EXTRA_strip_DEPENDENCIES)
- @rm -f strip$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(strip_OBJECTS) $(strip_LDADD) $(LIBS)
-
-unstrip$(EXEEXT): $(unstrip_OBJECTS) $(unstrip_DEPENDENCIES) $(EXTRA_unstrip_DEPENDENCIES)
- @rm -f unstrip$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(unstrip_OBJECTS) $(unstrip_LDADD) $(LIBS)
-install-binSCRIPTS: $(bin_SCRIPTS)
- @$(NORMAL_INSTALL)
- @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
- if test -n "$$list"; then \
- echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
- $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
- fi; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n' \
- -e 'h;s|.*|.|' \
- -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) { files[d] = files[d] " " $$1; \
- if (++n[d] == $(am__install_max)) { \
- print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
- else { print "f", d "/" $$4, $$1 } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
- $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-binSCRIPTS:
- @$(NORMAL_UNINSTALL)
- @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 's,.*/,,;$(transform)'`; \
- dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir)
-
-installcheck-binSCRIPTS: $(bin_SCRIPTS)
- bad=0; pid=$$$$; list="$(bin_SCRIPTS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | sed 's,^.*/,,;$(transform)'`; \
- for opt in --help --version; do \
- if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \
- 2>c$${pid}_.err </dev/null \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/$(base_cpu)_ld.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/addr2line.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ar.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arlib-argp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arlib.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arlib2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfcmp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elflint.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/findtextrel.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i386_ld.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ld.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldgeneric.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldlex.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldscript.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nm.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/objdump.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ranlib.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readelf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sectionhash.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/size.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stack.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strings.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strip.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symbolhash.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unstrip.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/versionhash.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-.l.c:
- $(AM_V_LEX)$(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
-
-.y.c:
- $(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE)
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-am
-all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(SCRIPTS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -rm -f ldlex.c
- -rm -f ldscript.c
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-binPROGRAMS clean-generic clean-noinstLIBRARIES \
- clean-noinstPROGRAMS mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-binPROGRAMS install-binSCRIPTS
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am: installcheck-binPROGRAMS installcheck-binSCRIPTS
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
- clean-binPROGRAMS clean-generic clean-noinstLIBRARIES \
- clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \
- distclean-compile distclean-generic distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-binPROGRAMS install-binSCRIPTS install-data \
- install-data-am install-dvi install-dvi-am install-exec \
- install-exec-am install-html install-html-am install-info \
- install-info-am install-man install-pdf install-pdf-am \
- install-ps install-ps-am install-strip installcheck \
- installcheck-am installcheck-binPROGRAMS \
- installcheck-binSCRIPTS installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-compile \
- mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am uninstall-binPROGRAMS uninstall-binSCRIPTS
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-ldlex.o: ldscript.c
-ldscript.h: ldscript.c
-@NATIVE_LD_FALSE@libld_elf_i386.so: libld_elf_i386_pic.a libld_elf_i386.map
-@NATIVE_LD_FALSE@ $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
-@NATIVE_LD_FALSE@ $(libelf) $(libeu) \
-@NATIVE_LD_FALSE@ -Wl,--version-script,$(srcdir)/libld_elf_i386.map
-@NATIVE_LD_FALSE@ @$(textrel_check)
-
-# Special rule to make it possible to define libld_elf_a_SOURCES as we do.
-# Otherwise make would complain.
-.deps/none_ld.Po: none_ld.os
- -:
-
-installcheck-binPROGRAMS: $(bin_PROGRAMS)
- bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
- case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
- *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
- esac; \
- f=`echo "$$p" | \
- sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
- for opt in --help --version; do \
- if LD_LIBRARY_PATH=$(DESTDIR)$(libdir) \
- $(DESTDIR)$(bindir)/$$f $$opt > c$${pid}_.out 2> c$${pid}_.err \
- && test -n "`cat c$${pid}_.out`" \
- && test -z "`cat c$${pid}_.err`"; then :; \
- else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
- done; \
- done; rm -f c$${pid}_.???; exit $$bad
-
-make-debug-archive: $(srcdir)/make-debug-archive.in
- UNSTRIP=$(bindir)/`echo unstrip | sed '$(transform)'`; \
- AR=$(bindir)/`echo ar | sed '$(transform)'`; \
- sed -e "s,[@]UNSTRIP[@],$$UNSTRIP,g" -e "s,[@]AR[@],$$AR,g" \
- -e "s%[@]PACKAGE_NAME[@]%$(PACKAGE_NAME)%g" \
- -e "s%[@]PACKAGE_VERSION[@]%$(PACKAGE_VERSION)%g" \
- $(srcdir)/make-debug-archive.in > $@.new
- chmod +x $@.new
- mv -f $@.new $@
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/src/stack.c b/src/stack.c
index c277dfd0..c277dfd0 100644
--- a/src/src/stack.c
+++ b/src/stack.c
diff --git a/src/stamp-h1 b/src/stamp-h1
deleted file mode 100644
index 4547fe1b..00000000
--- a/src/stamp-h1
+++ /dev/null
@@ -1 +0,0 @@
-timestamp for config.h
diff --git a/src/src/strings.c b/src/strings.c
index f60e4b4d..f60e4b4d 100644
--- a/src/src/strings.c
+++ b/src/strings.c
diff --git a/src/src/strip.c b/src/strip.c
index 2b217996..2b217996 100644
--- a/src/src/strip.c
+++ b/src/strip.c
diff --git a/src/src/symbolhash.c b/src/symbolhash.c
index 3fd96499..3fd96499 100644
--- a/src/src/symbolhash.c
+++ b/src/symbolhash.c
diff --git a/src/src/symbolhash.h b/src/symbolhash.h
index 062dadec..062dadec 100644
--- a/src/src/symbolhash.h
+++ b/src/symbolhash.h
diff --git a/src/tests/ChangeLog b/src/tests/ChangeLog
deleted file mode 100644
index 59048f65..00000000
--- a/src/tests/ChangeLog
+++ /dev/null
@@ -1,2114 +0,0 @@
-2014-12-19 Mark Wielaard <mjw@redhat.com>
-
- * run-deleted.sh: Don't check libfunc on ppc64.
-
-2014-12-19 Mark Wielaard <mjw@redhat.com>
-
- * vdsosyms.c (vdso_seen): Removed.
- (vdso_syms): New global.
- (module_callback): Set and check vdso_syms.
- (main): Return value depends on vdso_syms.
-
-2014-12-19 Mark Wielaard <mjw@redhat.com>
-
- * backtrace-subr.sh (check_native_unsupported): Relax special ARM
- grep a little.
- * run-deleted.sh: Call check_native_unsupported.
-
-2014-12-18 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add testfile-macros-0xff.bz2.
-
-2014-12-12 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (deleted_lib_so_CFLAGS): Add
- -fasynchronous-unwind-tables.
-
-2014-12-11 Josh Stone <jistone@redhat.com>
-
- * run-addr2line-i-lex-test.sh: New test.
- * testfile-lex-inlines.bz2: New testfile.
- * Makefile.am (EXTRA_DIST): Add run-addr2line-i-lex-test.sh and
- testfile-lex-inlines.bz2.
- (TESTS): Add run-addr2line-i-lex-test.sh.
-
-2014-12-10 Josh Stone <jistone@redhat.com>
-
- * run-addr2line-i-test.sh: Test 0x5f0 to make sure linkage_name is
- preferred over the plain die name.
-
-2014-12-02 Petr Machata <pmachata@redhat.com>
-
- * dwarf-getmacros.c (mac): Skip over DW_MACINFO_undef,
- DW_MACRO_GNU_undef_indirect opcodes. Add a default branch.
- (main): Initialize off to DWARF_GETMACROS_START when an extra
- command line argument is passed.
- * testfile-macros-0xff.bz2: New test case.
- * testfile-macros-0xff.s: New file (source for the above).
- * run-dwarf-getmacros.sh: Add two tests.
-
-2014-11-27 Mark Wielaard <mjw@redhat.com>
-
- * vdsosyms.c (main): Call dwfl_linux_proc_attach.
-
-2014-11-21 Mark Wielaard <mjw@redhat.com>
-
- * run-readelf-A.sh: New test.
- * testfileppc32attrs.o.bz2: New test file.
- * Makefile.am (TESTS): Add run-readelf-A.sh.
- (EXTRA_DIST): Add run-readelf-A.sh and testfileppc32attrs.o.bz2.
-
-2014-11-10 Mark Wielaard <mjw@redhat.com>
-
- * vdsosyms.c: New test.
- * Makefile.am (check_PROGRAMS): Add vdsosyms.
- (TESTS): Likewise.
- (vdsosyms_LDADD): New variable.
-
-2014-09-10 Petr Machata <pmachata@redhat.com>
-
- * dwarf-getmacros.c: Update to use the new macro iteration
- interfaces.
- * run-dwarf-getmacros.sh: Adjust, add a test that uses
- testfile-macros.
-
-2014-10-06 Mark Wielaard <mjw@redhat.com>
-
- * run-aggregate-size.sh: Add testfile-sizes3.o test case.
- * testfile-sizes3.o.bz2: New test file.
- * Makefile.am (EXTRA_DIST): Add testfile-sizes3.o.bz2.
-
-2014-10-02 Mark Wielaard <mjw@redhat.com>
-
- * run-deleted.sh: Unset VALGRIND_CMD before running deleted.
-
-2014-10-02 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (check_PROGRAMS): Add aggregate_size.c.
- (TESTS): Add run-aggregate-size.sh.
- (EXTRA_DIST): Add run-aggregate-size.sh, testfile-sizes1.o.bz2
- and testfile-sizes2.o.bz2.
- (aggregate_size_LDADD): New variable.
- * aggregate_size.c: New file.
- * run-aggregate-size.sh: New test.
- * testfile-sizes1.o.bz2: New test file.
- * testfile-sizes2.o.bz2: Likewise.
-
-2014-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Support NT_FILE for locating files.
- * Makefile.am (TESTS): Add run-linkmap-cut.sh.
- (EXTRA_DIST): Add run-linkmap-cut.sh, linkmap-cut-lib.so.bz2,
- linkmap-cut.bz2 and linkmap-cut.core.bz2 .
- * linkmap-cut-lib.so.bz2: New file.
- * linkmap-cut.bz2: New file.
- * linkmap-cut.core.bz2: New file.
- * run-linkmap-cut.sh: New file.
- * run-unstrip-n.sh: Update its expected output.
-
-2014-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * Makefile.am (check_PROGRAMS): Add deleted and deleted-lib.so.
- (TESTS, EXTRA_DIST): Add run-deleted.sh.
- (deleted_LDADD, deleted_lib_so_LDFLAGS, deleted_lib_so_CFLAGS): New.
- * deleted-lib.c: New file.
- * deleted.c: New file.
- * run-deleted.sh: New file.
-
-2014-06-15 Mark Wielaard <mjw@redhat.com>
-
- * backtrace.c (frame_callback): Error on seeing more than 16 frames.
-
-2014-06-13 Mark Wielaard <mjw@redhat.com>
-
- * backtrace.c (callback_verify): Accept "__libc_do_syscall" as first
- frame symname.
-
-2014-06-13 Mark Wielaard <mjw@redhat.com>
-
- * backtrace-subr.sh (check_native_unsupported): New function.
- (check_native): Call it.
- (check_native_core): Likewise.
- * run-backtrace-dwarf.sh: Likewise.
-
-2014-06-11 Mark Wielaard <mjw@redhat.com>
-
- * backtrace.c (main): Check that Dwfl was attached by calling
- dwfl_pid and printing the error when it is not.
-
-2014-05-18 Mark Wielaard <mjw@redhat.com>
-
- * testfile-backtrace-demangle.cc (cxxfunc): Make non-static.
- (f): Likewise.
- * testfile-backtrace-demangle.bz2: Regenerate.
- * testfile-backtrace-demangle.core.bz2: Likewise.
-
-2014-05-02 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): run-readelf-dwz-multi.sh and
- run-allfcts-multi.sh are now added unconditionally.
-
-2014-05-01 Mark Wielaard <mjw@redhat.com>
-
- * run-readelf-dwz-multi.sh: Add tests with alt debug files in .dwz
- subdir.
-
-2014-04-30 Mark Wielaard <mjw@redhat.com>
-
- * buildid.c, buildid.sh, testfile42_noshdrs.bz2: New files.
- * Makefile.am (check_PROGRAMS): Add buildid.
- (TESTS): Add run-buildid.sh.
- (EXTRA_DISTS): Add run-buildid.sh and testfile42_noshdrs.bz2.
- (buildid_LDADD): New variable.
-
-2014-04-24 Florian Weimer <fweimer@redhat.com>
-
- * allfcts.c (setup_alt): New function.
- (main): Call it. Implementation additional error checking and
- reporting.
-
-2014-04-24 Florian Weimer <fweimer@redhat.com>
-
- * debugaltlink.c, run-debugaltlink.sh: New files.
- * Makefile.am (check_PROGRAMS): Add debugaltlink.
- (TESTS): Add run-debugaltlink.sh.
- (debugaltlink_LDADD): New variable.
-
-2014-04-11 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (AM_CPPFLAGS): Add -I libdwelf.
- (check_PROGRAMS): Add debuglink.
- (TESTS): Add run-debuglink.sh
- (EXTRA_DIST): Likewise.
- (debuglink_LDADD): New.
- * debuglink.c: New file.
- * run-debuglink.sh: Likewise.
-
-2014-03-23 Mark Wielaard <mjw@redhat.com>
-
- * run-nm-self.sh: Use test = not == for string comparisons.
-
-2014-04-22 Kurt Roeckx <kurt@roeckx.be>
-
- * backtrace.c: Make Linux only.
- * backtrace-child.c: Make Linux only.
- * backtrace-data.c: Make Linux only.
- * backtrace-dwarf.c: Make Linux only.
- * backtrace-subr.sh: Skip core file unwinding tests when not supported.
-
-2014-03-14 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Remove MUDFLAP conditions. Remove libmudflap from all
- LDADD lines.
- * configure.ac: Remove MUDFLAP conditional.
-
-2014-04-09 Mark Wielaard <mjw@redhat.com>
-
- * run-readelf-zdebug.sh: New test.
- * testfile-debug.bz2: New testfile.
- * testfile-zdebug.bz2: New testfile.
- * Makefile.am (TESTS): Add run-readelf-zdebug.sh if ZLIB.
- (EXTRA_DIST): Add run-readelf-zdebug.sh, testfile-debug.bz2 and
- testfile-zdebug.bz2.
-
-2014-04-10 Mark Wielaard <mjw@redhat.com>
-
- * testfile_i686_core.bz2: New test file.
- * run-readelf-mixed-corenote.sh: Add testfile_i686_core test.
- * Makefile.am (EXTRA_DIST): Add testfile_i686_core.bz2
-
-2014-04-09 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Add run-backtrace-core-aarch64.sh.
- (EXTRA_DIST): Add run-backtrace-core-aarch64.sh,
- backtrace.aarch64.core.bz2 and backtrace.aarch64.exec.bz2.
- * run-backtrace-core-aarch64.sh: New test.
-
-2014-03-11 Josh Stone <jistone@redhat.com>
-
- * testfilebaxmin.bz2: New testfile.
- * Makefile.am (EXTRA_DIST): Add testfilebaxmin.bz2.
- * run-readelf-s.sh: Test testfilebaxmin.
- * run-dwflsyms.sh: Likewise.
-
-2014-01-26 Mark Wielaard <mjw@redhat.com>
-
- * backtrace-subr.sh (check_unsupported): Special case arm*.
-
-2014-01-25 Mark Wielaard <mjw@redhat.com>
-
- * run-addrcfi.sh (EM_ARM): Change reg13 (sp) from undefined to
- location expression: call_frame_cfa stack_value.
-
-2014-01-22 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (line2addr_no_Wformat): Removed.
-
-2014-01-21 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Add run-stack-i-test.sh.
- (EXTRA_DIST): Likewise.
- * run-stack-i-test.sh: New test.
-
-2014-01-20 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Add run-stack-d-test.sh.
- (EXTRA_DIST): Add run-stack-d-test.sh, testfiledwarfinlines.bz2
- testfiledwarfinlines.core.bz2.
- * run-stack-d-test.sh: New test.
- * testfiledwarfinlines.bz2: New test file.
- * testfiledwarfinlines.core.bz2: Likewise.
-
-2014-01-16 Mark Wielaard <mjw@redhat.com>
-
- * run-nm-self.sh: Don't use testrun_on_self_quiet but just testrun
- on one ET_REL, one ET_EXEC and one ET_DYN file.
- * test-subr.sh (self_test_files): Add two ET_REL files, only add
- two libebl ET_DYN backend files.
-
-2014-01-16 Mark Wielaard <mjw@redhat.com>
-
- * run-backtrace-demangle.sh: Check exitcode and max number of frames.
-
-2014-01-18 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix false FAILs on testsuite with ulimit -c unlimited.
- * backtrace-child.c (sigusr2): Call pthread_exit.
- (main): Return, do not call abort.
-
-2014-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix corruption of non-C++ symbols by the demangler.
- * Makefile.am (TESTS): Add run-backtrace-demangle.sh.
- <!DEMANGLE>: Add ELFUTILS_DISABLE_DEMANGLE export.
- (EXTRA_DIST): Add run-backtrace-demangle.sh,
- testfile-backtrace-demangle.bz2, testfile-backtrace-demangle.cc,
- testfile-backtrace-demangle.core.bz2.
- * backtrace-demangle.cc: New file.
- * run-backtrace-demangle.sh: New file.
- * testfile-backtrace-demangle.bz2: New file.
- * testfile-backtrace-demangle.cc: New file.
- * testfile-backtrace-demangle.core.bz2: New file.
-
-2014-01-07 Matthias Klose <doko@ubuntu.com>
-
- * backtrace-subr.sh (check_native_core): Check to see if core file
- was created without ".PID" extension, if so mv core to core.PID.
- Skip test if no core file was created or could be found.
-
-2014-01-04 Mark Wielaard <mjw@redhat.com>
-
- * backtrace-data.c (main): Don't assert if raise returns.
- * backtrace-dwarf.c (report_pid): Call dwfl_linux_proc_attach with
- assume_ptrace_attached true.
- (ptrace_detach_stopped): Removed function.
- (main): Don't call ptrace_detach_stopped.
- * backtrace.c (ptrace_detach_stopped): Removed function.
- (report_pid): Call dwfl_linux_proc_attach with assume_ptrace_attached
- true.
- (exec_dump): Don't call ptrace_detach_stopped.
-
-2014-01-04 Mark Wielaard <mjw@redhat.com>
-
- * backtrace-subr.sh (check_native_core): Skip, exit 77, the test
- if we cannot adjust core ulimit.
-
-2014-01-04 Mark Wielaard <mjw@redhat.com>
-
- * cleanup-13.c (force_unwind_stop): Removed.
- (force_unwind): Just call abort. Don't setup _Unwind_Exception and
- don't call _Unwind_ForcedUnwind.
-
-2014-01-03 Mark Wielaard <mjw@redhat.com>
-
- * run-addrcfi.sh: Add case for EM_AARCH64.
- * testfileaarch64.bz2: New testfile.
- * Makefile.am (EXTRA_DIST): Add testfilesaarch64.bz2.
-
-2013-12-30 Mark Wielaard <mjw@redhat.com>
-
- * backtrace-dwarf.c (report_pid): Explicitly call
- dwfl_linux_proc_attach and check for errors.
- * backtrace.c (report_pid): Likewise.
-
-2013-12-21 Mark Wielaard <mjw@redhat.com>
-
- * backtrace.c (callback_verify): Only assert that case 5 is the last
- instruction of backtracegen on x86_64 native.
-
-2013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
- Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add testfile66.bz2, testfile66.core.bz2
- and testfilebaz*ppc64*.bz2 files.
- * dwflsyms.c (list_syms): Remove unused from parameter mod_name. Print
- error on dwfl_module_getsymtab error.
- (list_syms): Use dwfl_module_getsym and dwfl_module_getsym_info.
- Compare values for non-ET_REL. Use dwfl_module_addrinfo.
- Also print section of actual value if different from sym.
- * run-addrname-test.sh (testfile66, testfile66.core): New tests.
- Test addr2line -x by showing different sections for address and
- found name in testfile66.
- * run-dwflsyms.sh (testfile66, testfile66.core, hello_ppc64.ko,
- testfilebaz*ppc64): New tests.
- * testfile66.bz2, testfile66.core.bz2, testfilebazdbgppc64.bz2,
- testfilebazdbgppc64.debug.bz2, testfilebazdbgppc64_pl.bz2,
- testfilebazdbgppc64_plr.bz2, testfilebazdynppc64.bz2,
- testfilebazmdbppc64.bz2, testfilebazminppc64.bz2,
- testfilebazminppc64_pl.bz2, testfilebazminppc64_plr.bz2,
- testfilebaztabppc64.bz2: New test files.
-
-2013-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- unwinder: s390 and s390x
- * Makefile.am (TESTS): Add run-backtrace-core-s390x.sh and
- run-backtrace-core-s390.sh.
- (EXTRA_DIST): Add backtrace.s390x.core.bz2, backtrace.s390x.exec.bz2,
- backtrace.s390.core.bz2, backtrace.s390.exec.bz2,
- run-backtrace-core-s390x.sh and run-backtrace-core-s390.sh.
- * backtrace.s390.core.bz2: New file.
- * backtrace.s390.exec.bz2: New file.
- * backtrace.s390x.core.bz2: New file.
- * backtrace.s390x.exec.bz2: New file.
- * run-backtrace-core-s390.sh: New file.
- * run-backtrace-core-s390x.sh: New file.
-
-2013-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * backtrace-dwarf.c (executable, find_elf, dwfl_offline): Remove unused
- code.
-
-2013-12-15 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- unwinder: ppc
- * Makefile.am (TESTS): Add run-backtrace-core-ppc.sh.
- (EXTRA_DIST): Add backtrace.ppc.core.bz2,
- backtrace.ppc.exec.bz2 and run-backtrace-core-ppc.sh.
- * backtrace.ppc.core.bz2: New file.
- * backtrace.ppc.exec.bz2: New file.
- * run-backtrace-core-ppc.sh: New file.
-
-2013-12-10 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (backtrace_child_biarch_SOURCES): New backtrace-child.c.
-
-2013-12-10 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (valgrind_cmd): Remove --trace-children=yes.
- * backtrace-subr.sh (check_native_core): Disable valgrind while
- dumping core.
- * run-backtrace-data.sh: Disable valgrind.
- * run-backtrace-dwarf.sh: Likewise.
-
-2013-12-09 Mark Wielaard <mjw@redhat.com>
-
- * varlocs.c (print_expr): Update comment to explain empty location
- associated with DW_OP_GNU_implicit_pointer.
-
-2013-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- Fix test FAIL with -O2.
- * backtrace-child.c (sigusr2): Add NOINLINE_NOCLONE and final asm stub.
-
-2013-12-05 Mark Wielaard <mjw@redhat.com>
-
- * backtrace-data.c (main): If unsupported also print to stderr.
- * run-backtrace-dwarf.sh: Add check_unsupported and check_main.
-
-2013-12-04 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (backtrace-child-biarch): Add $(EXEEXT).
-
-2013-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * Makefile.am (check_PROGRAMS): Add backtrace, backtrace-child,
- backtrace-data and backtrace-dwarf.
- (BUILT_SOURCES, clean-local, backtrace-child-biarch): New.
- (TESTS): Add run-backtrace-native.sh, run-backtrace-data.sh,
- run-backtrace-dwarf.sh, run-backtrace-native-biarch.sh,
- run-backtrace-native-core.sh, run-backtrace-native-core-biarch.sh,
- run-backtrace-core-x86_64.sh and run-backtrace-core-i386.sh.
- <!BIARCH> Add export of ELFUTILS_DISABLE_BIARCH.
- (EXTRA_DIST): Add run-backtrace-data.sh, run-backtrace-dwarf.sh,
- cleanup-13.c, run-backtrace-native.sh, run-backtrace-native-biarch.sh,
- run-backtrace-native-core.sh, run-backtrace-native-core-biarch.sh,
- run-backtrace-core-x86_64.sh, run-backtrace-core-i386.sh,
- backtrace-subr.sh, backtrace.i386.core.bz2, backtrace.i386.exec.bz2,
- backtrace.x86_64.core.bz2, backtrace.x86_64.exec.bz2.
- (backtrace_LDADD, backtrace_child_CFLAGS, backtrace_child_LDFLAGS)
- (backtrace_data_LDADD, backtrace_dwarf_CFLAGS, backtrace_dwarf_LDADD):
- New.
- * backtrace-child.c: New file.
- * backtrace-data.c: New file.
- * backtrace-dwarf.c: New file.
- * backtrace-subr.sh: New file.
- * backtrace.c: New file.
- * cleanup-13.c: New file.
- * backtrace.i386.core.bz2: New file.
- * backtrace.i386.exec.bz2: New file.
- * backtrace.x86_64.core.bz2: New file.
- * backtrace.x86_64.exec.bz2: New file.
- * run-backtrace-core-i386.sh: New file.
- * run-backtrace-core-x86_64.sh: New file.
- * run-backtrace-native-biarch.sh: New file.
- * run-backtrace-native-core-biarch.sh: New file.
- * run-backtrace-native-core.sh: New file.
- * run-backtrace-native.sh: New file.
- * run-backtrace-data.sh: New file.
- * run-backtrace-dwarf.sh: New file.
-
-2013-11-27 Mark Wielaard <mjw@redhat.com>
-
- * dwflsyms.c (gelf_bind_order): New function.
- (elf_section_name): Likewise.
- (addr_in_section): Likewise.
- (list_syms): Use dwfl_module_getsym_elf and dwfl_module_addrsym_elf.
- Refine assert using gelf_bind_order. Print elf_section_name. Check
- bias with addr_in_section.
- * run-dwflsyms.sh: Add section names to expected output.
-
-2013-11-26 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add run-funcretval.sh.
-
-2013-11-25 Petr Machata <pmachata@redhat.com>
-
- * testfile_aarch64_core.bz2, hello_aarch64.ko.bz2: New files.
- * funcretval_test.c, funcretval_test_aarch64.bz2: Likewise.
- * Makefile.am (EXTRA_DIST): Add these.
- (TESTS): Add run-funcretval.sh.
- * run-allregs.sh: Use testfile_aarch64_core.bz2 for a regs_test.
- * run-readelf-mixed-corenote.sh: ... and for a readelf -n test.
- * run-strip-reloc.sh: Add a test on hello_aarch64.ko.bz2.
- * run-funcretval.sh: New file.
-
-2013-11-18 Josh Stone <jistone@redhat.com>
-
- * testfilebazdbg_plr.bz2: New testfile.
- * testfilebazmin_plr.bz2: Likewise.
- * Makefile.am (EXTRA_DIST): Add the above files.
- * run-dwflsyms.sh: Add prelink -r tests.
-
-2013-11-15 Mark Wielaard <mjw@redhat.com>
-
- * testfilebazmdb.bz2: Regenerated.
- * testfilebazmin.bz2: Likewise.
- * testfilebazdbg_pl.bz2: New testfile.
- * testfilebazmin_pl.bz2: Likewise.
- * Makefile.am (EXTRA_DIST): Add testfilebazdbg_pl.bz2 and
- testfilebazmin_pl.bz2.
- * dwflsyms.c (list_syms): Call dwfl_module_relocate_address and
- print relative address of function symbols.
- * run-dwflsyms.sh: Add prelink tests and adjust expected output.
-
-2013-11-01 Michael Forney <mforney@mforney.org>
-
- * Makefile.am (TESTS_ENVIRONMENT): Use and export NM.
- * run-arsymtest.sh: Use NM.
-
-2013-11-05 Mark Wielaard <mjw@redhat.com>
-
- * allfcts.c (main): Correct dwarf_getfuncs return value check.
-
-2013-10-10 Mark Wielaard <mjw@redhat.com>
- Josh Stone <jistone@redhat.com>
-
- * run-allfcts-multi.sh: New test.
- * test-offset-loop.bz2: New testfile.
- * test-offset-loop.alt.bz2: New testfile.
- * Makefile.am (TESTS): Add run-allcft-multi.sh if ENABLE_DWZ.
- (EXTRA_DIST): Add run-allfcts-multi.sh, test-offset-loop.bz2 and
- test-offset-loop.alt.bz2.
-
-2013-10-15 Mark Wielaard <mjw@redhat.com>
-
- * run-unstrip-M.sh: New test.
- * Makefile.am (TESTS): Add run-unstrip-M.sh.
- (EXTRA_DIST): Likewise.
-
-2013-10-06 Mark Wielaard <mjw@redhat.com>
-
- * run-addrcfi.sh: Remove nop from expected ppc and ppc64
- location expression.
-
-2013-10-03 Josh Stone <jistone@redhat.com>
-
- * typeiter2.c: New file, reversing typeiter.c.
- * run-typeiter.sh: Also run typeiter2.
- * Makefile.am (check_PROGRAMS): Add typeiter2.
- (typeiter2_LDADD): New variable.
-
-2013-09-26 Petr Machata <pmachata@redhat.com>
-
- * run-readelf-mixed-corenote.sh: Update output of testfile71
- dump--readelf can newly decode the NT_FILE note.
-
-2013-09-26 Petr Machata <pmachata@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add testfile71.bz2.
- * run-readelf-mixed-corenote.sh: New test for this file.
- * testfile71.bz2: New file.
-
-2013-09-20 Mark Wielaard <mjw@redhat.com>
-
- * allfcts.c (cb): Return DWARF_CB_ABORT.
- (main): Iterate over all offsets returned by dwarf_getfuncs.
- * run-allfcts.sh: Add nested_funcs and class_func testcases.
- * testfile_nested_funcs.bz2: New test file.
- * testfile_class_func.bz2: Likewise.
- * Makefile.am (EXTRA_DIST): Add testfile_class_func.bz2 and
- testfile_nested_funcs.bz2.
-
-2013-08-30 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (check_PROGRAMS): Add varlocs.
- (TESTS): Add run-varlocs.sh.
- (EXTRA_DIST): Add run-varlocs.sh, testfile_const_type.c,
- testfile_const_type.bz2, testfile_implicit_pointer.c,
- testfile_implicit_pointer.bz2, testfile_parameter_ref.c,
- testfile_entry_value.c, testfile_entry_value.bz2,
- testfile_implicit_value.c and testfile_implicit_value.bz2.
- (varlocs_LDADD): New.
- * run-varlocs: New test.
- * testfile_const_type.c: New test source file.
- * testfile_entry_value.c: Likewise.
- * testfile_implicit_pointer.c: Likewise.
- * testfile_implicit_value.c: Likewise.
- * testfile_parameter_ref.c: Likewise.
- * testfile_const_type.bz2: New test file.
- * testfile_entry_value.bz2: Likewise.
- * testfile_implicit_pointer.bz2: Likewise.
- * testfile_implicit_value.bz2: Likewise.
- * testfile_parameter_ref.bz2: Likewise.
- * varlocs.c: New test source.
-
-2013-08-29 Mark Wielaard <mjw@redhat.com>
-
- * run-addrcfi.sh: Add case for EM_ARM.
- * testfilearm.bz2: New testfile.
- * Makefile.am (EXTRA_DIST): Add testfilesarm.bz2.
-
-2013-08-28 Mark Wielaard <mjw@redhat.com>
-
- * addrcfi.c (handle_cfi): Handle .debug_frame or .eh_frame
- completely missing.
- * run-addrcfi.sh: Add case for EM_S390 ELFCLASS32 and ELFCLASS64.
- * testfiles390.bz2: New testfile.
- * testfiles390x.bz2: Likewise.
- * Makefile.am (EXTRA_DIST): Add testfiles390.bz2 and
- testfiles390x.bz2.
-
-2013-08-28 Mark Wielaard <mjw@redhat.com>
-
- * addrcfi.c (handle_cfi): Use printf not error.
- * run-addrcfi.sh: Add case for EM_PPC and EM_PPC64.
- * testfileppc32.bz2: New testfile.
- * testfileppc64.bz2: Likewise.
- * Makefile.am (EXTRA_DIST): Add testfileppc32.bz2 and
- testfileppc64.bz2.
-
-2013-08-27 Mark Wielaard <mjw@redhat.com>
-
- * run-addrcfi.sh: New test.
- * Makefile.am (TESTS): Add run-addrcfi.sh.
- (EXTRA_DIST): Likewise.
- * addrcfi.c (op_name): New function.
- (print_detail): Call and print op_name. Check ops, not result
- to check if this is "same value" or "undefined".
- (handle_cfi): Make sure cfa_ops doesn't point to NULL.
-
-2013-08-13 Mark Wielaard <mjw@redhat.com>
-
- * run-addr2line-i-test.sh: New test.
- * testfile-inlines.bz2: New testfile.
- * Makefile.am (EXTRA_DIST): Add run-addr2line-i-test.sh and
- testfile-inlines.bz2.
- (TESTS): Add run-addr2line-i-test.sh.
-
-2013-08-12 Mark Wielaard <mjw@redhat.com>
-
- * run-addr2line-test.sh: New test.
- * Makefile.am (EXTRA_DIST): Add run-addr2line-test.sh.
- (TESTS): Likewise.
-
-2013-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * run-unstrip-n.sh (test-core.*): Ignore libc.so.6 entry and order of
- the entries.
-
-2013-07-02 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Fix typo, forgot extension in
- testfilenolines.bz2.
-
-2013-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add test-core-lib.so.bz2,
- test-core.core.bz2 and test-core.exec.bz2.
- * run-addrname-test.sh: New test for these files.
- * run-unstrip-n.sh: Update expected output. New test for these files.
- * test-core-lib.so.bz2: New file.
- * test-core.core.bz2: New file.
- * test-core.exec.bz2: New file.
-
-2013-05-03 Mark Wielaard <mjw@redhat.com>
-
- * testfilenolines.bz2: New test file.
- * Makefile.am (EXTRA_DIST): Add testfilenolines.bz2.
- * run-get-lines.sh: Run testrun_compare on testfilenolines.
-
-2013-04-30 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * dwfl-report-elf-align.c: Use false add_p_vaddr for dwfl_report_elf.
-
-2013-04-29 Mark Wielaard <mjw@redhat.com>
-
- * test-subr.sh: Don't use pushd, just cd into test-dir.
- (exit_cleanup): Don't use popd, just cd .. to get out.
-
-2013-04-27 Mark Wielaard <mjw@redhat.com>
-
- * test-subr.sh (exit_cleanup): New function.
- (trap): Use exit_cleanup as argument.
- * run-native-test.sh (native_exit): New function.
- (trap): For EXIT (0) use native_exit as argument.
-
-2013-04-27 Mark Wielaard <mjw@redhat.com>
-
- * update1.c (main): Use unique tempfile name and unlink file.
- * update2.c (main): Likewise.
- * update3.c (main): Likewise.
- * update4.c (main): Use unique tempfile name.
-
-2013-04-27 Mark Wielaard <mjw@redhat.com>
-
- * run-alldts.sh: Add testfile-alldts to tempfiles.
- * run-elf_cntl_gelf_getshdr.sh: Add test_shdr.out to tempfiles.
- * run-macro-test.sh: Add readelf.macros.out to tempfiles.
- * run-strip-reloc.sh: Add readelf.out, readelf.out1, readelf.out2
- and out.stripped1, out.debug1, out.stripped2, out.debug2 to tempfiles.
-
-2013-04-26 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (installed_TESTS_ENVIRONMENT): Export environment,
- remove wrapper.
- (TESTS_ENVIRONMENT): Likewise.
- (installed_LOG_COMPILER): New variable defining wrapper.
- (LOG_COMPILER): Likewise.
- * run-*.sh: Fixup location of input and output files.
- * test-subr.sh: Create test_dir, pushd to execute test in.
- (trap): Remove test_dir.
- (testfiles): Use abs_srcdir.
- (installed_testrun): Match on abs_builddir or abs_top_builddir.
- (self_test_files): Adjust path.
-
-2013-04-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
-
-2013-03-25 Mark Wielaard <mjw@redhat.com>
-
- * run-readelf-aranges.sh: New test.
- * testfilefoobarbaz.bz2: New test file.
- * Makefile.am (TESTS): Add run-readelf-aranges.sh.
- (EXTRA_DIST): Add run-readelf-aranges.sh and testfilefoobarbaz.bz2.
-
-2013-03-25 Mark Wielaard <mjw@redhat.com>
-
- * run-readelf-dwz-multi.sh: Expect high_pc also as address.
-
-2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * Makefile.am (check_PROGRAMS): Add dwfl-report-elf-align.
- (TESTS): Add run-dwfl-report-elf-align.sh.
- (EXTRA_DIST): Add run-dwfl-report-elf-align.sh and
- testfile-dwfl-report-elf-align-shlib.so.bz2 .
- (dwfl_report_elf_align_LDADD): New.
- * dwfl-report-elf-align.c: New file.
- * run-dwfl-report-elf-align.sh: New file.
- * testfile-dwfl-report-elf-align-shlib.so.bz2: New file.
-
-2013-03-12 Mark Wielaard <mjw@redhat.com>
-
- * run-dwfllines.sh: New test.
- * dwfllines.c: New test program.
- * Makefile.am (TESTS): Add run-dwfllines.sh.
- (EXTRA_DIST): Likewise.
- (dwfllines_LDADD): New variable.
-
-2013-02-22 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Remove run-readelf-s.sh and run-dwflsyms.sh.
- (LZMA): Add run-readelf-s.sh and run-dwflsyms.sh to TESTS.
-
-2013-02-15 Mark Wielaard <mjw@redhat.com>
-
- * testfile-dwzstr.bz2: New testfile.
- * testfile-dwzstr.multi.bz2: Likewise.
- * run-readelf-dwz-multi.sh: Add readelf testfile-dwzstr test.
- * Makefile.am (EXTRA_DIST): Add testfile-dwzstr.bz2 and
- testfile-dwzstr.multi.bz2.
-
-2013-01-30 Mark Wielaard <mjw@redhat.com>
-
- * testfileloc.bz2: New testfile.
- * run-readelf-loc.sh: New test.
- * Makefile.am (TESTS): Add run-readelf-loc.sh.
- (EXTRA_DIST): Add run-readelf-loc.sh and testfileloc.bz2.
-
-2013-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * run-readelf-mixed-corenote.sh: New testcase for readelf -n of s390
- and s390x core notes.
- * testfile67.bz2: New file.
- * testfile68.bz2: New file.
- * Makefile.am (EXTRA_DIST): Add testfile67.bz2 and testfile68.bz2 .
-
-2013-01-23 Mark Wielaard <mjw@redhat.com>
-
- * testfilebasmin.bz2: New testfile.
- * Makefile.am (EXTRA_DIST): Add testfilebasmin.bz2.
- * run-readelf-s.sh: Test testfilebasmin.
- * run-dwflsyms.sh: Likewise.
-
-2013-01-16 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (check_PROGRAMS): Add dwflsyms.
- (TESTS): Add run-readelf-s.sh and run-dwflsyms.sh.
- (EXTRA_DIST): Add run-readelf-s.sh, testfilebazdbg.bz2,
- testfilebazdyn.bz2, testfilebazmin.bz2, testfilebazdbg.debug.bz2,
- testfilebazmdb.bz2, testfilebaztab.bz2 and run-dwflsyms.sh.
- (dwflsyms_LDADD): New variable.
-
-2013-01-07 Roland McGrath <roland@hack.frob.com>
-
- * run-prelink-addr-test.sh: Use ln -snf.
-
-2012-12-03 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (valgrind_cmd): Add --run-libc-freeres=no.
-
-2012-11-29 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * run-addrname-test.sh: New test for PIE relocation.
- * testfile70.core.bz2: New file.
- * testfile70.exec.bz2: New file.
- * Makefile.am (EXTRA_DIST): Add testfile70.core.bz2 and
- testfile70.exec.bz2 .
-
-2012-10-27 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add testfile64.bz2, testfile65.bz2,
- testfile69.core.bz2 and testfile69.so.bz2 .
-
-2012-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * run-addrname-test.sh: New test for DSO with build-id bias.
- * testfile69.core.bz2: New file.
- * testfile69.so.bz2: New file.
-
-2012-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * run-addrname-test.sh: New test for core vDSO bias.
- * testfile65.bz2: New file.
-
-2012-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * run-addrname-test.sh: New test for symbol preferences.
- * testfile64.bz2: New file.
-
-2012-10-01 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS_ENVIRONMENT): Define valgrind_cmd if USE_VALGRIND.
- * test-wrapper.sh: Export VALGRIND_CMD if available.
- * test-subr.sh (built_testrun): Use VALGRIND_CMD to invoke test prog.
- (installed_testrun): Likewise.
-
-2012-09-24 Petr Machata <pmachata@redhat.com>
-
- * testfile63.bz2: New testfile.
- * run-readelf-mixed-corenote.sh: New test.
- * Makefile.am (TEST): Add run-readelf-mixed-corenote.sh.
- (EXTRA_DIST): Add testfile63.bz2 and run-readelf-mixed-corenote.sh.
-
-2012-09-24 Petr Machata <pmachata@redhat.com>
-
- * testfile62.bz2: New testfile.
- * run-readelf-vmcoreinfo.sh: New test.
- * Makefile.am (TEST): Add run-readelf-vmcoreinfo.sh.
- (EXTRA_DIST): Add testfile62.bz2 and run-readelf-vmcoreinfo.sh.
-
-2012-09-18 Petr Machata <pmachata@redhat.com>
-
- * testfile61.bz2: New testfile.
- * run-allregs.sh: Run reg_test testfile61.
- * Makefile.am (EXTRA_DIST): Add testfile61.bz2.
-
-2012-08-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add testfile60.bz2.
-
-2012-08-22 Jeff Kenton <jkenton@tilera.com>
-
- * testfile60.bz2: New testfile.
- * run-allregs.sh: Run reg_test testfile60.
-
-2012-08-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Only add run-readelf-dwz-multi.sh if
- ENABLE_DWZ.
-
-2012-08-16 Mark Wielaard <mjw@redhat.com>
-
- * allregs.c (dwarf_encoding_string): Rewritten using known-dwarf
- macros.
- * show-die-info.c (tagnames): Removed.
- (attrs): Removed.
- (dwarf_tag_string): New function using known-dwarf macros.
- (dwarf_attr_string): Likewise.
- (handle): Call dwarf_tag_string and dwarf_attr_string instead.
- * run-readelf-dwz-multi.sh: Expect language C89, not ISO C89.
-
-2012-06-27 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Add run-readelf-dwz-multi.sh.
- (EXTRA_DIST): Add run-readelf-dwz-multi.sh,
- libtestfile_multi_shared.so.bz2, testfile_multi.dwz.bz2 and
- testfile_multi_main.bz2.
- * run-readelf-dwz-multi.sh: New test.
- * libtestfile_multi_shared.so.bz2: New testfile.
- * testfile_multi.dwz.bz2: New testifle.
- * testfile_multi_main.bz2: New testifle.
-
-2012-08-01 Petr Machata <pmachata@redhat.com>
-
- * run-test-archive64.sh: New test.
- * testarchive64.a.bz2: New testfile.
- * Makefile.am (TESTS): Add run-test-archive64.sh.
- (EXTRA_DIST): Likewise.
-
-2012-08-01 Mark Wielaard <mjw@redhat.com>
-
- * run-nm-self.sh: New test.
- * run-readelf-self.sh: Likewise.
- * test-subr.sh (testrun_on_self_quiet): New function.
- * Makefile.am (TESTS): Add run-nm-self.sh and run-readelf-self.sh.
- (EXTRA_DIST): Likewise.
-
-2012-08-01 Mark Wielaard <mjw@redhat.com>
-
- * test-subr.sh (self_test_files): New list of files.
- (testrun_on_self): New function.
- * run-elflint-self.sh: Use testrun_on_self.
-
-2012-07-19 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (check_PROGRAMS): Add test-elf_cntl_gelf_getshdr.
- (TESTS): Add run-elf_cntl_gelf_getshdr.sh.
- (EXTRA_DIST): Likewise.
- (test_elf_cntl_gelf_getshdr_LDADD): New.
- test-elf_cntl_gelf_getshdr.c: New test program.
- run-elf_cntl_gelf_getshdr.sh: New test script.
-
-2012-07-19 Mark Wielaard <mjw@redhat.com>
-
- * run-elflint-self.sh: runtests on ../backends/*so files.
-
-2012-07-19 Mark Wielaard <mjw@redhat.com>
-
- * run-unstrip-n.sh: test_cleanup.
- * Makefile.am (EXTRA_DIST): Add testcore-rtlib-ppc.bz2.
-
-2012-07-11 Mark Wielaard <mjw@redhat.com>
-
- * run-readelf-macro.sh: New test.
- * testfilemacro.bz2: New testfile.
- * Makefile.am (TESTS): Add run-readelf-macro.sh.
- (EXTRA_DIST): Add run-readelf-macro.sh and testfilemacro.bz2.
-
-2012-06-27 Mark Wielaard <mjw@redhat.com>
-
- * run-readelf-gdb-index.sh: New test.
- * testfilegdbindex5.bz2: New testfile.
- * testfilegdbindex7.bz2: Likewise.
- * Makefile.am (TESTS): Add run-readelf-gdb-index.sh.
- (EXTRA_DIST): run-readelf-gdb_index.sh, testfilegdbindex5.bz2 and
- testfilegdbindex7.bz2.
-
-2012-07-17 Mark Wielaard <mjw@redhat.com>
-
- * testcore-rtlib-ppc.bz2: New testfile.
- * run-unstrip-n.sh: Check new ppc core testfile.
-
-2012-06-26 Mike Frysinger <vapier@gentoo.org>
-
- * Makefile.am (check_PROGRAMS): Rename from noinst_PROGRAMS.
-
-2012-06-26 Mark Wielaard <mjw@redhat.com>
-
- * run-macro-test.sh: New test.
- * testfile-macinfo.bz2: New testfile.
- * testfile-macros.bz2: Likewise.
-
-2012-05-07 Mark Wielaard <mjw@redhat.com>
-
- * low_high_pc.c: Use proper inttypes in printf formats.
-
-2012-05-11 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS_ENVIRONMENT): Set LC_ALL and LANG to C.
-
-2012-05-07 Mark Wielaard <mjw@redhat.com>
-
- * low_high_pc.c: Allow highpc == lowpc for CU DIEs for buggy GCC.
-
-2012-04-27 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Add run-low_high_pc.sh
- (EXTRA_DIST): Add run-low_high_pc.sh and testfile_low_high_pc.bz2
- (noinst_PROGRAMS): Add low_high_pc.
- (low_high_pc_LDADD): New variable.
- * low_high_pc.c: New test.
-
-2012-04-26 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Remove run-show-ciefde.sh.
- * run-show-ciefde.sh: Removed old libdwarf test.
- * show-ciefde.c: Likewise.
-
-2012-04-02 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Add run-unstrip-n.sh.
- (EXTRA_DIST): Add testcore-rtlib.bz2 and run-unstrip-n.sh.
- * run-unstrip-n.sh: New test.
- * testcore-rtlib.bz2: New testfile.
-
-2012-04-02 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Add run-readelf-d.sh.
- (EXTRA_DIST): Add testlib_dynseg.so.bz2 and run-readelf-d.sh.
- * run-readelf-d.sh: New test.
- * run-elflint-test.sh: Check new testfile.
-
-2012-03-21 Tom Tromey <tromey@redhat.com>
-
- * typeiter.c: New file.
- * run-typeiter.sh: New file.
- * testfile59.bz2: New file.
- * Makefile.am (noinst_PROGRAMS): Add typeiter.
- (TESTS): Add run-typeiter.sh.
- (EXTRA_DIST): Add run-typeiter.sh, testfile59.bz2.
- (typeiter_LDADD): New variable.
-
-2012-02-21 Kurt Roeckx <kurt@roeckx.be>
-
- * run-alldts.sh: testrun ./alldts.
-
-2012-02-21 Roland McGrath <roland@hack.frob.com>
-
- * test-wrapper.sh: Add ${libdir}/elfutils to LD_LIBRARY_PATH.
- * test-subr.sh (installed_testrun): Likewise.
-
-2012-01-18 Roland McGrath <roland@hack.frob.com>
-
- * asm-tst4.c (main): Don't set LD_LIBRARY_PATH in system invocation;
- it will have been inherited correctly from the test harness.
- * asm-tst5.c (main): Likewise.
- * asm-tst6.c (main): Likewise.
- Reported by Serge Pavlov <serge.pavlov.at.gnu@gmail.com>.
-
-2011-07-09 Roland McGrath <roland@hack.frob.com>
-
- * sha1-tst.c: File removed.
- * Makefile.am (noinst_PROGRAMS, TESTS): Remove it.
- (sha1_tst_LDADD): Variable removed.
-
- * md5-sha1-test.c: New file.
- * Makefile.am [!STANDALONE] (noinst_PROGRAMS, TESTS): Add it.
- (md5_sha1_test_LDADD): New variable.
-
-2011-05-30 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add run-readelf-twofiles.sh and
- run-rerequest_tag.sh
-
-2011-05-24 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add hello_s390.ko.bz2.
- * run-strip-reloc.sh: Add hello_s390.ko testcase.
- * hello_s390.ko.bz2: New test file.
-
-2011-05-23 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (TESTS): Add run-strip-reloc.sh.
- (EXTRA_DIST): Add run-strip-reloc.sh, hello_i386.ko.bz2
- hello_x86_64.ko.bz2 and hello_ppc64.ko.bz2
- * run-strip-reloc.sh: New test.
- * hello_i386.ko.bz2: New test file.
- * hello_x86_64.ko.bz2: Likewise.
- * hello_ppc64.ko.bz2: Likewise.
-
-2011-05-18 Mark Wielaard <mjw@redhat.com>
-
- * run-strip-groups.sh: New test.
- * testfile58.bz2: New test file.
- * Makefile.am (EXTRA_DIST): Add testfile58.bz2.
- (TESTS): Add run-strip-groups.sh.
- (EXTRA_DIST): Likewise.
-
-2011-03-28 Marek Polacek <mpolacek@redhat.com>
-
- * alldts.c: New file.
- * run-alldts.sh: Use it.
- * Makefile.am (TESTS, EXTRA_DIST, noinst_PROGRAMS): Add them.
- (alldts_LDADD): New variable.
-
-2011-03-02 Marek Polacek <mpolacek@redhat.com>
-
- * dwarf-getstring.c: New test.
- * run-dwarf-getstring.sh: And its wrapper.
- * Makefile.am (EXTRA_DIST): Add and update all.
-
-2011-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
-
- * Makefile.am (TESTS): Add run-readelf-twofiles.sh.
- * run-readelf-twofiles.sh: New file.
-
-2011-02-25 Mark Wielaard <mjw@redhat.com>
-
- * Makefile.am (BUILD_RPATH): Be consistent in naming.
-
-2011-02-02 Josh Stone <jistone@redhat.com>
-
- * run-prelink-addr-test.sh: Add testfile55, 32 and 64-bit.
- * testfile55-64.bz2, testfile55-64.debug.bz2,
- testfile55-64.prelink.bz2, testfile55-32.bz2,
- testfile55-32.debug.bz2, testfile55-32.prelink.bz2: New.
- * Makefile.am (EXTRA_DIST): Add and update all.
-
-2011-01-12 Roland McGrath <roland@redhat.com>
-
- * run-prelink-addr-test.sh: Make symlinks to find .debug files
- corresponding to .noshdrs files.
-
-2011-01-11 Josh Stone <jistone@redhat.com>
-
- * run-prelink-addr-test.sh: Add testfile54, 32 and 64-bit.
- * testfile54-32.so.bz2, testfile54-32.so.debug.bz2,
- testfile54-32.prelink.so.bz2, testfile54-32.noshdrs.so.bz2,
- testfile54-64.so.bz2, testfile54-64.so.debug.bz2,
- testfile54-64.prelink.so.bz2, testfile54-64.noshdrs.so.bz2: New.
- * Makefile.am (EXTRA_DIST): Add and update all.
-
- * run-prelink-addr-test.sh: Run 32 and 64-bit testfile53 tests.
- * testfile53.bz2, testfile53.debug.bz2,
- testfile53.prelink.bz2: Deleted, so...
- * testfile53-64.bz2, testfile53-64.debug.bz2,
- testfile53-64.prelink.bz2: Recreated with 64-bit names.
- * testfile53-32.bz2, testfile53-32.debug.bz2,
- testfile53-32.prelink.bz2: New in 32-bit.
- * Makefile.am (EXTRA_DIST): Add and update all.
-
- * run-prelink-addr-test.sh: Run 32 and 64-bit testfile52 tests.
- * testfile52.so.bz2, testfile52.so.debug.bz2,
- testfile52.prelink.so.bz2: Deleted, so...
- * testfile52-32.so.bz2, testfile52-32.so.debug.bz2,
- testfile52-32.prelink.so.bz2: Recreated with 32-bit names.
- * testfile52-32.noshdrs.so.bz2: New data file, stripped of headers.
- * testfile52-64.so.bz2, testfile52-64.so.debug.bz2,
- testfile52-64.prelink.so.bz2, testfile52-64.noshdrs.so.bz2: New files.
- * Makefile.am (EXTRA_DIST): Add and update all.
-
-2011-01-10 Josh Stone <jistone@redhat.com>
-
- * run-prelink-addr-test.sh: New test for prelinked addrs.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
- * testfile52.so.bz2, testfile52.so.debug.bz2: New data files.
- * testfile52.prelink.so.bz2: New data file, shows REL->RELA.
- * testfile53.bz2, testfile53.debug.bz2: New data files.
- * testfile53.prelink.bz2: New data file, shows ET_EXEC remap.
- * Makefile.am (EXTRA_DIST): Add them.
-
-2010-06-04 Roland McGrath <roland@redhat.com>
-
- * run-unstrip-test.sh: Also test modifying the file in place.
-
-2010-04-22 Roland McGrath <roland@redhat.com>
-
- * addrcfi.c (handle_cfi): Fix function name in error message.
- Use dwarf_errmsg, not dwfl_errmsg, after dwarf_cfi_addrframe.
-
-2010-04-14 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add run-test-flag-nobits.sh here too.
-
-2010-04-10 Ulrich Drepper <drepper@redhat.com>
-
- * msg_tst.c: Adjust expected error message.
-
-2010-04-01 Petr Machata <pmachata@redhat.com>
-
- * test-flag-nobits.c: New test.
- * run-test-flag-nobits.sh: And its wrapper.
- * Makefile.am (noinst_PROGRAMS, TESTS): Add them.
- (test_flag_nobits_LDADD): New variable.
-
-2010-02-15 Roland McGrath <roland@redhat.com>
-
- * Makefile.am: Use config/eu.am for common stuff.
-
- * asm-tst9.c (main): Rename local to avoid shadowing another local.
-
-2009-07-22 Roland McGrath <roland@redhat.com>
-
- * addrcfi.c: Update dwarf_frame_{cfa,register} calling convention.
-
-2009-07-08 Roland McGrath <roland@redhat.com>
-
- * addrcfi.c: New file.
- * Makefile.am (noinst_PROGRAMS): Add it.
- (addrcfi_LDADD): New variable.
-
-2009-05-07 Petr Machata <pmachata@redhat.com>
-
- * testfile51.bz2: New data file.
- * dwarf-getmacros.c: New test core.
- * run-dwarf-getmacros.sh: New test wrapper.
- * Makefile.am (TESTS, EXTRA_DIST, noinst_PROGRAMS): Add them.
- (dwarf_getmacros_LDADD): New variable.
-
-2009-04-23 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile [BUILD_STATIC] (libdw): Add $(zip_LIBS).
- (rdwrmmap_LDADD): Add $(libmudflap).
-
-2009-04-21 Roland McGrath <roland@redhat.com>
-
- * testfile50.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
- * run-dwfl-addr-sect.sh: Add a case using it.
-
-2008-12-31 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: Add tests for dppd, dpps, insertps, movntdqa,
- mpsadbw, packusdw, pblendvb, pblendw, pcmpeqq, pcmpestri, pcmpestrm,
- pcmpistri, pcmpistrm, pcmpgtq, phminposuw, pinsrb, pinsrd, pmaxsb,
- pmaxsd, pmaxud, pmaxuw, pminsb, pminsd, pminud, pminuw, pmovsxbw,
- pmovsxbd, pmovsxbq, pmovsxwd, pmovsxwq, pmovsxdq, pmovsxbw, pmovsxbd,
- pmovsxbq, pmovsxwd, pmovsxwq, pmovsxdq, pmuldq, pmulld, popcnt, ptest,
- roundss, roundps, roundpd, and roundsd.
- * testfile45.S.bz2: Likewise.
- * testfile44.expect.bz2: Adjust accordingly.
- * testfile45.expect.bz2: Likewise.
-
- * testfile44.S.bz2: Add tests for blendvpd and blendvps.
- * testfile45.S.bz2: Likewise.
- * testfile44.expect.bz2: Adjust accordingly.
- * testfile45.expect.bz2: Likewise.
-
-2008-12-30 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: Add tests for blendpd and blendps.
- * testfile45.S.bz2: Likewise.
- * testfile44.expect.bz2: Adjust accordingly.
- * testfile45.expect.bz2: Likewise.
-
-2008-12-19 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: Add tests for AMD 3DNOW.
- * testfile45.S.bz2: Likewise.
- * testfile44.expect.bz2: Adjust accordingly.
- * testfile45.expect.bz2: Likewise.
-
-2008-11-26 Roland McGrath <roland@redhat.com>
-
- * dwfl-bug-getmodules.c: New file.
- * Makefile.am (noinst_PROGRAMS): Add it.
- (dwfl_bug_getmodules_LDADD): New variable.
-
-2008-09-10 Roland McGrath <roland@redhat.com>
-
- * test-subr.sh (LC_ALL): Export it set to "C".
- * run-dwfl-addr-sect.sh: Don't do it here.
- * run-strings-test.sh: Likewise.
-
-2008-08-21 Denys Vlasenko <dvlasenk@redhat.com>
-
- * run-addrname-test.sh: Add a new case.
- * testfile49.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
-
-2008-04-10 Roland McGrath <roland@redhat.com>
-
- * testfile48.bz2, testfile48.bz2.debug: New data files.
- * Makefile.am (EXTRA_DIST): Add them.
- * run-strip-test8.sh: Use them.
-
- * testfile16.bz2, testfile16.debug.bz2: Replace data files.
-
- * run-strip-test.sh: Fail if stripped output has ".debug_*" sections.
- * run-strip-test8.sh: New file.
- * testfile47.bz2: New data file.
- * Makefile.am (TESTS, EXTRA_DIST): Add them.
-
-2008-03-31 Roland McGrath <roland@redhat.com>
-
- * run-early-offscn.sh: New file.
- * early-offscn.c: New file.
- * Makefile.am (noinst_PROGRAMS, TESTS, EXTRA_DIST): Add them.
- (early_offscn_LDADD): New variable.
-
-2008-03-19 Roland McGrath <roland@redhat.com>
-
- * run-addrname-test.sh: Add a new case.
-
-2008-02-22 Roland McGrath <roland@redhat.com>
-
- * run-elflint-test.sh: Typo fix.
-
-2008-02-21 Roland McGrath <roland@redhat.com>
-
- * run-disasm-x86.sh: Use uname instead of arch, keep tools required
- for the build down to minimum.
- * run-disasm-x86-64.sh: Likewise.
-
-2008-02-20 Roland McGrath <roland@redhat.com>
-
- * testfile46.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
- * run-elflint-test.sh: Test on it.
-
-2008-02-01 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Hook up sha1-tst.c.
- * sha1-tst.c: New file.
-
-2008-01-21 Roland McGrath <roland@redhat.com>
-
- * testfile45.S.bz2: Add tests for cltq, cqto.
- * testfile45.expect.bz2: Adjust.
-
-2008-01-14 Ulrich Drepper <drepper@redhat.com>
-
- * testfile45.S.bz2: Add more tests.
- * testfile45.expect.bz2: Adjust.
-
-2008-01-11 Ulrich Drepper <drepper@redhat.com>
-
- * testfile45.expect.bz2: Adjust for adding of address for %rip based
- address mode.
-
-2008-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * testfile45.S.bz2: Add more tests.
- * testfile45.expect.bz2: Adjust.
-
-2008-01-08 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (TESTS): Add run-disasm-x86-64.sh.
- (EXTRA): Add testfile45.S.bz2, testfile45.expect.bz2,
- run-disasm-x86-64.sh.
- * run-disasm-x86-64.sh: New file.
- * testfile45.S.bz2: New file.
- * testfile45.expect.bz2: New file.
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2008-01-04 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2008-01-04 Roland McGrath <roland@redhat.com>
-
- * dwfl-bug-fd-leak.c (main): Add a cast.
-
-2008-01-03 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2008-01-01 Ulrich Drepper <drepper@redhat.com>
-
- * line2addr.c: Use %m modifier instead of %a to appease gcc.
-
-2008-01-01 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2007-12-31 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2007-12-30 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2007-12-29 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.s.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2007-12-28 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2007-12-27 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust.
-
-2007-12-26 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: New tests.
- * testfile44.expect.bz2: Adjust
-
-2007-12-21 Ulrich Drepper <drepper@redhat.com>
-
- * testfile44.S.bz2: More tests.
- * testfile44.expect.bz2: Adjust appropriately.
-
-2007-12-19 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (TESTS): Add run-disasm.sh.
- (EXTRA_DIST): Add run-disasm.sh, testfile44.S.bz2, and
- testfile44.expect.bz2.
- * run-disasm.sh: New file.
- * testfile44.S.bz2: New file.
- * testfile44.expect.bz2: New file.
-
-2007-12-15 Roland McGrath <roland@redhat.com>
-
- * run-allregs.sh: Change expected output for powerpc spefscr.
-
-2007-10-20 Roland McGrath <roland@redhat.com>
-
- * run-dwfl-addr-sect.sh: Change expected output, no errors.
-
-2007-10-19 Roland McGrath <roland@redhat.com>
-
- * dwfl-addr-sect.c (handle_address): Return int.
- Don't exit on error, just return nonzero.
- (main): Collect results.
- * run-dwfl-addr-sect.sh: New file.
- * testfile43.bz2: New data file.
- * Makefile.am (EXTRA_DIST, TESTS): Add them.
-
-2007-10-18 Roland McGrath <roland@redhat.com>
-
- * run-allregs.sh: Update expected ppc output for vrsave/vscr.
-
-2007-10-16 Roland McGrath <roland@redhat.com>
-
- * test-subr.sh (remove_files): Don't pass -Bb to diff.
-
-2007-10-09 Roland McGrath <roland@redhat.com>
-
- * dwflmodtest.c (print_module): Don't use %p in output.
- * run-dwfl-bug-offline-rel.sh: Updated expected output.
-
-2007-10-08 Roland McGrath <roland@redhat.com>
-
- * testfile42.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
- * run-elflint-test.sh: New test on that file.
-
-2007-10-04 Roland McGrath <roland@redhat.com>
-
- * run-readelf-test4.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
-
-2007-10-03 Roland McGrath <roland@redhat.com>
-
- * run-readelf-test3.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
-
-2007-10-01 Roland McGrath <roland@redhat.com>
-
- * run-readelf-test2.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
-
-2007-09-11 Roland McGrath <roland@redhat.com>
-
- * run-addrname-test.sh: Add a new case.
- * testfile41.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
-
-2007-08-23 Roland McGrath <roland@redhat.com>
-
- * run-allregs.sh: Update expected x86-64 output for %rflags.
-
-2007-08-12 Roland McGrath <roland@redhat.com>
-
- * run-strip-test7.sh: New file.
- * testfile39.bz2: New data file.
- * testfile40.bz2: New data file.
- * testfile40.debug.bz2: New data file.
- * Makefile.am (TESTS, EXTRA_DIST): Add them.
-
-2007-08-09 Roland McGrath <roland@redhat.com>
-
- * dwfl-bug-report.c: Fix header inclusion.
-
-2007-08-08 Roland McGrath <roland@redhat.com>
-
- * run-addrname-test.sh: Add a new case using addr2line -S.
- * testfile38.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
-
-2007-07-16 Roland McGrath <roland@redhat.com>
-
- * dwfl-bug-report.c: New file.
- * Makefile.am (noinst_PROGRAMS, TESTS): Add it.
- (dwfl_bug_report_LDADD): New variable.
-
-2007-06-06 Roland McGrath <roland@redhat.com>
-
- * run-unstrip-test.sh: Declare testfile.unstrip for removal.
-
-2007-06-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add missing line continuation and
- testfile37.bz and testfile37.debug.bz2.
-
-2007-05-23 Roland McGrath <roland@redhat.com>
-
- * run-allregs.sh: Update expected Alpha results.
-
-2007-05-18 Roland McGrath <roland@redhat.com>
-
- * run-strip-test4.sh (stripped, debugfile): Use new reference files.
- * testfile37.bz2: New data file.
- * testfile37.debug.bz2: New data file.
- * run-unstrip-test2.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add them.
-
-2007-05-10 Roland McGrath <roland@redhat.com>
-
- * run-dwfl-bug-offline-rel.sh: New file.
- * testfile36.bz2: New data file.
- * testfile36.debug.bz2: New data file.
- * Makefile.am (TESTS, EXTRA_DIST): Add them.
-
-2007-04-28 Roland McGrath <roland@redhat.com>
-
- * run-strip-test6.sh (stripped, debugfile): Use new reference files.
- * testfile35.bz2: New data file.
- * testfile35.debug.bz2: New data file.
- * run-unstrip-test.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add them.
-
- * run-strip-test.sh: Do all elflint and cmp runs even when some fail.
-
-2007-04-26 Roland McGrath <roland@redhat.com>
-
- * run-elflint-self.sh: Run all tests even if one fails.
-
- * run-allregs.sh: Add expected output for alpha.
-
-2007-04-24 Roland McGrath <roland@redhat.com>
-
- * run-strip-test.sh: When we saved the debug info, test unstrip too.
-
-2007-04-22 Roland McGrath <roland@redhat.com>
-
- * run-allregs.sh: Update expected register info.
-
-2007-04-16 Roland McGrath <roland@redhat.com>
-
- * dwfl-addr-sect.c: New file.
- * Makefile.am (noinst_PROGRAMS): Add it.
- (dwfl_addr_sect_LDADD): New variable.
-
-2007-04-05 Roland McGrath <roland@redhat.com>
-
- * get-files.c: Test dwarf_getsrcdirs.
- * run-get-files.sh: Update expected output.
-
-2007-04-01 Roland McGrath <roland@redhat.com>
-
- * run-allregs.sh: Updated expected output for x86_64.
-
-2007-03-04 Roland McGrath <roland@redhat.com>
-
- * dwfl-bug-fd-leak.c: New file.
- * Makefile.am (noinst_PROGRAMS, TESTS): Add it.
- (dwfl_bug_fd_leak_LDADD): New variable.
-
- * dwflmodtest.c: Test dwfl_getmodules before and after getdwarf,
- show what files have been located.
-
-2007-02-02 Roland McGrath <roland@redhat.com>
-
- * run-addrname-test.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
- * testfile34.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
-
-2007-01-20 Roland McGrath <roland@redhat.com>
-
- * testfile33.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
- * run-elflint-test.sh: Test on it too.
-
-2007-01-18 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (CFLAGS): Don't molest it.
-
-2007-01-11 Roland McGrath <roland@redhat.com>
-
- * testfile32.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
- * run-elflint-test.sh: Test on it too.
-
-2007-02-04 Ulrich Drepper <drepper@redhat.com>
-
- * arls.c: New file.
- * Makefile (noinst_PROGRAMS): Add arls.
-
- * run-ranlib-test2.sh: Fix type in comment.
-
-2007-01-10 Ulrich Drepper <drepper@redhat.com>
-
- * run-elflint-self.sh (runtest): Show which file has the problem.
-
-2007-01-10 Roland McGrath <roland@redhat.com>
-
- * dwfl-bug-addr-overflow.c: New file.
- * Makefile.am (TESTS): Add it.
- (dwfl_bug_addr_overflow_LDADD): New variable.
-
-2006-12-17 Roland McGrath <roland@redhat.com>
-
- * msg_tst.c (libelf_msgs): Fix ELF_E_INVALID_PHDR msg.
-
-2006-09-05 Roland McGrath <roland@redhat.com>
-
- * run-strings-test.sh: Export LC_ALL=C for the test.
-
-2006-08-29 Roland McGrath <roland@redhat.com>
-
- * run-arextract.sh: Use testrun, tempfiles functions from test-subr.sh.
- * run-arsymtest.sh: Likewise.
-
- * run-native-test.sh (native.c compilation): Add some braces.
-
-2006-08-22 Roland McGrath <roland@redhat.com>
-
- * allregs.c (dwarf_encoding_string): New function, swiped from readelf.
- (struct reginfo): New members bits, type.
- (one_register, match_register): Update to take new args,
- record and display new info.
- (main): Display new info.
- * run-allregs.sh: Update expected results.
-
-2006-08-03 Roland McGrath <roland@redhat.com>
-
- * run-allregs.sh: Add sparc cases.
- * testfile30.bz2: New data file.
- * testfile31.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add them.
-
-2006-07-21 Roland McGrath <roland@redhat.com>
-
- * allregs.c (struct reginfo): Increase size of name.
- (one_register): Assert that it's big enough.
-
-2006-04-04 Roland McGrath <roland@redhat.com>
-
- * run-bug1-test.sh: Test a second case, to cover both byte orders.
- * testfile29.bz2: New file.
- * testfile29.rdwr.bz2: New file.
- * Makefile.am (EXTRA_DIST): Add them.
-
-2006-04-04 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Add rules to run run-bug1-test.sh.
- * rdwrmmap.c: New file.
- * run-bug1-test.sh: New file.
- * testfile28.bz2: New file.
- * testfile28.rdwr.bz2: New file.
-
-2006-03-09 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (AM_LDFLAGS): Define to pass -rpath-link.
-
-2006-03-01 Roland McGrath <roland@redhat.com>
-
- * show-die-info.c (tagnames, attrs): Update name tables for dwarf.h
- changes matching 3.0 spec.
-
-2006-01-13 Roland McGrath <roland@redhat.com>
-
- * run-native-test.sh: Do kill -9 and reap explicitly at end, since
- bash 3.1 whines when it's done in the trap 0 handler.
-
-2006-01-11 Roland McGrath <roland@redhat.com>
-
- * testfile26.bz2: New data file.
- * testfile27.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add them.
- * run-allregs.sh: Test s390 data.
-
-2005-12-14 Roland McGrath <roland@redhat.com>
-
- * run-native-test.sh: Redirect output from native test process.
-
-2005-12-13 Roland McGrath <roland@redhat.com>
-
- * allregs.c (main): Fail if we find no registers.
-
- * run-native-test.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
-
-2005-12-10 Ulrich Drepper <drepper@redhat.com
-
- * run-readelf-test1.sh: New file.
- * Makefile.am (TESTS): Add run-readelf-test1.sh.
- (EXTRA_DIST): Likewise.
-
-2005-12-07 Roland McGrath <roland@redhat.com>
-
- * ecp.c (main): Use elf_end to clean up.
-
-2005-11-25 Roland McGrath <roland@redhat.com>
-
- * coverage.sh: Given -v argument, print names of unused files.
-
- * addrscopes.c (main): Use dwfl_end before return.
- * allregs.c (main): Likewise.
- * find-prologues.c (main): Likewise.
- * funcretval.c (main): Likewise.
- * funcscopes.c (main): Likewise.
- * line2addr.c (main): Likewise.
-
- * run-allregs.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
-
- * allregs.c: Use libdwfl wrapper instead of direct libebl calls.
- * Makefile.am (allregs_LDADD): Updated.
-
- * allregs.c: New file.
- * Makefile.am (noinst_PROGRAMS): Add it.
- (allregs_LDADD): New variable.
-
-2005-11-18 Roland McGrath <roland@redhat.com>
-
- * test-subr.sh (installed_testrun): Treat /usr/lib64 like /usr/lib.
- * test-wrapper.sh: Likewise.
-
-2005-11-17 Roland McGrath <roland@redhat.com>
-
- * Makefile.am (installed_TESTS_ENVIRONMENT): Set libdir, bindir in
- environment for test-wrapper.sh.
- * test-wrapper.sh: Set LD_LIBRARY_PATH from ${libdir} if not /usr/lib.
- * test-subr.sh (installed_testrun): Likewise.
- Use explicit path in ${bindir}.
-
- * Makefile.am (installcheck-local): Fix typo in last change.
-
-2005-11-16 Roland McGrath <roland@redhat.com>
-
- * configure.ac: New file, for standalone build/dist of test suite.
- * Makefile.am [!STANDALONE] (INCLUDES): Don't define it.
- (asm_TESTS): New variable, broken out of ...
- (TESTS): ... here. Also remove msg_tst.
- [!STANDALONE] (TESTS, noinst_PROGRAMS): Add in $(asm_TESTS), msg_tst.
- (installed_TESTS_ENVIRONMENT): New variable.
- [STANDALONE] (TESTS_ENVIRONMENT): Use that.
- [!STANDALONE] (installcheck-local): Likewise.
- [STANDALONE] (libdw, libelf, libasm, libebl): Define using -lfoo.
- * addrscopes.c: Include <config.h>.
- Use ELFUTILS_HEADER macro in #include of installed elfutils/ headers.
- * allfcts.c: Likewise.
- * asm-tst1.c: Likewise.
- * asm-tst2.c: Likewise.
- * asm-tst3.c: Likewise.
- * asm-tst4.c: Likewise.
- * asm-tst5.c: Likewise.
- * asm-tst6.c: Likewise.
- * asm-tst7.c: Likewise.
- * asm-tst8.c: Likewise.
- * asm-tst9.c: Likewise.
- * dwflmodtest.c: Likewise.
- * find-prologues.c: Likewise.
- * funcscopes.c: Likewise.
- * get-aranges.c: Likewise.
- * get-files.c: Likewise.
- * get-lines.c: Likewise.
- * get-pubnames.c: Likewise.
- * line2addr.c: Likewise.
- * newscn.c: Likewise.
- * show-abbrev.c: Likewise.
- * show-die-info.c: Likewise.
- * update3.c: Likewise.
- * update4.c: Likewise.
- * funcretval.c: Likewise.
-
- * dwflmodtest.c (print_instance): Don't use INTUSE.
- (options): Don't use N_ macro.
-
-2005-11-15 Roland McGrath <roland@redhat.com>
-
- * coverage.sh: Look in backends.
- * Makefile.am (BUILD_RPATH): Search ../backends, not ../libebl.
- (TESTS_ENVIRONMENT): Likewise.
-
- * funcretval.c (handle_function): Don't take DW_AT_type of FUNCDIE,
- pass FUNCDIE direclty to dwfl_module_return_value_location.
-
- * Makefile.am (BUILD_RPATH): New variable.
- [TESTS_RPATH] (AM_LDFLAGS): Pass -rpath option using that value.
- (tests_rpath): New variable.
- (installcheck-local): Pass it to test-wrapper.sh.
- * test-wrapper.sh: In "installed" format, take yes/no value
- for elfutils_tests_rpath, which export. When running a test
- binary for installcheck, exit 77.
- * test-subr.sh (installed_testrun): When running a test binary
- for installcheck, exit 77 if $elfutils_tests_rpath = yes.
-
-2005-11-14 Roland McGrath <roland@redhat.com>
-
- * test-subr.sh: New file.
- * test-wrapper.sh: New file.
- * Makefile.am (EXTRA_DIST): Add them.
- (AM_LDFLAGS): Variable removed.
- (TESTS_ENVIRONMENT): New variable.
- (installcheck-local): New target.
- * run-addrscopes.sh: Use test-subr.sh.
- * run-allfcts.sh: Likewise.
- * run-ecp-test.sh: Likewise.
- * run-ecp-test2.sh: Likewise.
- * run-elflint-self.sh: Likewise.
- * run-elflint-test.sh: Likewise.
- * run-find-prologues.sh: Likewise.
- * run-funcscopes.sh: Likewise.
- * run-get-aranges.sh: Likewise.
- * run-get-files.sh: Likewise.
- * run-get-lines.sh: Likewise.
- * run-get-pubnames.sh: Likewise.
- * run-line2addr.sh: Likewise.
- * run-ranlib-test.sh: Likewise.
- * run-ranlib-test2.sh: Likewise.
- * run-show-abbrev.sh: Likewise.
- * run-show-ciefde.sh: Likewise.
- * run-show-die-info.sh: Likewise.
- * run-strings-test.sh: Likewise.
- * run-strip-test.sh: Likewise.
-
-2005-11-13 Roland McGrath <roland@redhat.com>
-
- * funcretval.c: New file.
- * Makefile.am (noinst_PROGRAMS): Add it.
- (funcretval_LDADD): New variable.
-
-2005-11-09 Ulrich Drepper <drepper@redhat.com>
-
- * line2addr.c (handle_module): Add missing parameter to printf.
-
-2005-10-27 Roland McGrath <roland@redhat.com>
-
- * allfcts.c (cb): Update for dwarf_func_* -> dwarf_decl_* changes.
- * funcscopes.c (handle_function): Likewise.
- * dwflmodtest.c (print_inline, print_func): Likewise.
- * find-prologues.c (handle_function): Likewise.
-
-2005-10-27 Roland McGrath <roland@redhat.com>
-
- * run-find-prologues.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
-
- * find-prologues.c (handle_function): Skip inlines.
-
-2005-10-25 Roland McGrath <roland@redhat.com>
-
- * find-prologues.c: New file.
- * Makefile.am (noinst_PROGRAMS): Add it.
- (find_prologues_LDADD): New variable.
-
-2005-09-02 Ulrich Drepper <drepper@redhat.com>
-
- * run-strings-test.sh: Remove strings.out in the end.
-
-2005-08-31 Ulrich Drepper <drepper@redhat.com>
-
- * run-addrscopes.sh: Use correct exit code if test cannot be performed.
- * run-allfcts.sh: Likewise.
- * run-ecp-test.sh: Likewise.
- * run-ecp-test2.sh: Likewise.
- * run-elflint-test.sh: Likewise.
- * run-funcscopes.sh: Likewise.
- * run-get-aranges.sh: Likewise.
- * run-get-files.sh: Likewise.
- * run-get-lines.sh: Likewise.
- * run-get-pubnames.sh: Likewise.
- * run-line2addr.sh: Likewise.
- * run-ranlib-test2.sh: Likewise.
- * run-show-abbrev.sh: Likewise.
- * run-show-ciefde.sh: Likewise.
- * run-show-die-info.sh: Likewise.
- * run-strings-test.sh: Likewise.
- * run-strip-test.sh: Likewise.
-
-2005-08-30 Ulrich Drepper <drepper@redhat.com>
-
- * coverage.sh: Handle case where there is no .gcno file at all.
-
-2005-08-29 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (EXTRA_DIST): Add coverage.
- [GCOV]: Generate coverage summary after the tests ran
- * coverage.sh: New file.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.an [BUILD_STATIC] (libdw): Add -ldl.
- (CLEANFILES): Add *.gcno *.gcda *.gconv.
-
-2005-08-28 Ulrich Drepper <drepper@redhat.com>
-
- * run-strings-test.sh: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add it.
-
-2005-08-27 Roland McGrath <roland@redhat.com>
-
- * addrscopes.c (handle_address): Apply bias to PC addresses.
-
- * run-funcscopes.sh: New file.
- * testfile25.bz2: New data file.
- * Makefile.am (TESTS, EXTRA_DIST): Add them.
-
-2005-08-26 Roland McGrath <roland@redhat.com>
-
- * addrscopes.c (dwarf_diename_integrate): Removed.
- (print_vars, handle_address): Use plain dwarf_diename.
-
-2005-08-25 Roland McGrath <roland@redhat.com>
-
- * funcscopes.c: New file.
- * Makefile.am (noinst_PROGRAMS): Add it.
- (funcscopes_LDADD): New variable.
-
- * run-addrscopes.sh: Add another case.
- * testfile24.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
-
- * addrscopes.c (handle_address): Take new argument IGNORE_INLINES,
- pass it to dwarf_getscopes.
- (main): Pass it, true when '=' follows an address.
-
-2005-08-24 Roland McGrath <roland@redhat.com>
-
- * line2addr.c (print_address): Omit () for DSOs.
-
-2005-08-24 Ulrich Drepper <drepper@redhat.com>
-
- * run-line2addr.sh: Remove testfile23 in the end.
-
- * Makefile.am [BUILD_STATIC] (libdw): Add $(libelf) and $(libebl).
- [MUDFLAP] (AM_LDFLAGS): Define to find libebl modules.
-
-2005-08-22 Roland McGrath <roland@redhat.com>
-
- * run-line2addr.sh: Add a case.
- * testfile23.bz2: New data file.
- * Makefile.am (EXTRA_DIST): Add it.
-
-2005-08-18 Roland McGrath <roland@redhat.com>
-
- * run-addrscopes.sh: New file.
- * testfile22.bz2: New data file.
- * Makefile.am (TESTS, EXTRA_DIST): Add them.
-
- * addrscopes.c: New file.
- * Makefile.am (noinst_PROGRAMS): Add it.
- (addrscopes_LDADD): New variable.
-
-2005-08-15 Ulrich Drepper <drepper@redhat.com>
-
- * run-elflint-self.sh: Don't run test if the file doesn't exist.
-
-2005-08-15 Roland McGrath <roland@redhat.com>
-
- * dwflmodtest.c (print_instance, print_inline): New functions.
- (print_func): Call print_inline.
- (options, parse_opt): Grok -i/--inlines.
-
-2005-08-07 Roland McGrath <roland@redhat.com>
-
- * dwflmodtest.c: Print function details only if -f flag is given.
-
-2005-08-06 Ulrich Drepper <drepper@redhat.com>
-
- * run-elflint-self.sh: New file.
- * Makefile.am (TESTS): Add run-elflint-self.sh.
- (EXTRA_DIST): Likewise.
-
- * Makefile.am: Link with statis libs if BUILD_STATIC.
- (dwflmodtest_LDADD): Also link with -ldl.
-
-2005-08-02 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Add -ldl to asm_tst[1-9]_LDASS.
- * asm-tst1.c: Adjust for new asm_begin interface. Open backend
- library first.
- * asm-tst2.c: Likewise.
- * asm-tst3.c: Likewise.
- * asm-tst4.c: Likewise.
- * asm-tst5.c: Likewise.
- * asm-tst6.c: Likewise.
- * asm-tst7.c: Likewise.
- * asm-tst8.c: Likewise.
- * asm-tst9.c: Likewise.
-
- * msg_tst.c: Add new error message.
-
-2005-07-28 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am (dwflmodtest_LDADD): Add $(libebl).
-
-2005-06-01 Roland McGrath <roland@redhat.com>
-
- * line2addr.c: Rewritten using libdwfl.
- * run-line2addr.sh: Update test for changed arguments.
- * Makefile.am (INCLUDES): Add libdwfl source directory to path.
- (libdwfl): New variable.
- (line2addr_LDADD): Use it.
-
-2005-07-28 Roland McGrath <roland@redhat.com>
-
- * dwflmodtest.c: New file, moved from ../libdwfl/ptest.c to here.
- * Makefile.am (noinst_PROGRAMS): Add dwflmodtest.
- (dwflmodtest_LDADD): New variable.
- (INCLUDES): Add -I$(top_srcdir)/libdwfl here.
-
-2005-07-21 Ulrich Drepper <drepper@redhat.com>
-
- * testfile18.bz2: New file.
- * run-elflint-test.sh: New file.
- * Makefile.am (TESTS): Add run-elflint-test.sh.
- (EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.
-
-2005-05-24 Ulrich Drepper <drepper@redhat.com>
-
- * get-files.c (main): Use correct format specifier.
-
-2005-05-21 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Add -Wextra to CFLAGS.
- * get-files.c: Remove warning this produced.
- * get-pubnames.c: Likewise.
- * newfile.c: Likewise.
- * newscn.c: Likewise.
- * scnnames.c: Likewise.
- * showptable.c: Likewise.
- * test-nlist.c: Likewise.
- * update1.c: Likewise.
- * update2.c: Likewise.
- * update3.c: Likewise.
- * update4.c: Likewise.
-
-2005-05-08 Ulrich Drepper <drepper@redhat.com>
-
- * run-line2addr.sh: Remove testfile14 at the end.
-
- * run-strip-test.sh: Remove debuginfo test input file as well.
-
- * Makefile.am (EXTRA_DIST): Newly added files incorrectly used
- .bz, not .bz2.
-
-2005-05-03 Roland McGrath <roland@redhat.com>
-
- * run-strip-test.sh: Use variables for test file names.
- Optionally produce separate debug file and check it.
- * run-strip-test2.sh: Use run-strip-test.sh via ., no duplication.
- * run-strip-test3.sh: Likewise.
- * run-strip-test4.sh: New file.
- * run-strip-test5.sh: New file.
- * run-strip-test6.sh: New file.
- * testfile15.bz: New file.
- * testfile15.debug.bz: New file.
- * testfile16.bz: New file.
- * testfile16.debug.bz: New file.
- * testfile17.bz: New file.
- * testfile17.debug.bz: New file.
- * Makefile.am (TESTS, EXTRA_DIST): Add them.
-
-2005-04-25 Ulrich Drepper <drepper@redhat.com>
-
- * run-line2addr.sh: Also use testfile14. Adjust for correct
- return of multiple matches.
- * testfile14.bz2: New file.
- * Makefile.am (EXTRA_DIST): Add testfile14.bz2.
-
- * show-abbrev.c (main): Adjust for dwarf_getabbrev interface change.
-
-2005-04-04 Roland McGrath <roland@redhat.com>
-
- * line2addr.c (main): Initialize LINES and NLINES before calling
- dwarf_getsrc_file, and free LINES afterwards.
-
- * allfcts.c (main): Use size_t for CUHL.
-
-2005-04-04 Ulrich Drepper <drepper@redhat.com>
-
- * line2addr.c: New file.
- * run-line2addr.sh: New file.
- * Makefile.am: Add rules to build, run, and distribute new code.
-
-2005-04-02 Ulrich Drepper <drepper@redhat.com>
-
- * allfcts.c: New file.
- * run-allfcts.sh: New file.
- * Makefile.am: Add rules to build, run, and distribute new code.
-
-2005-02-05 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. Link all test
- programs with -lmudflap.
-
-2004-09-25 Ulrich Drepper <drepper@redhat.com>
-
- * asm-tst4.c (main): Add LD_LIBRARY_PATH to elflint invocation.
- * asm-tst5.c (main): Likewise.
- * asm-tst6.c (main): Likewise.
-
-2004-01-17 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.am: Support building with mudflap.
-
-2004-01-12 Ulrich Drepper <drepper@redhat.com>
-
- * get-aranges.c: Rewrite to use libdw.
- * Makefile.am: Reenable get-aranges test.
-
-2004-01-11 Ulrich Drepper <drepper@redhat.com>
-
- * get-lines.c: New file.
- * get-files.c: Adjust for libdw.
- * run-get-files.sh: Adjust expected result.
- * run-get-lines.sh: Likewise.
- * Makefile.am: Run get-lines test. Don't run get-aranges and
- get-ciefde test for now.
-
- * show-abbrev.c: Adjust call to dwarf_getabbrevattr after interface
- change. Print attribute offset information.
- * run-show-abbrev.sh: Adjust expected output.
-
-2004-01-09 Ulrich Drepper <drepper@redhat.com>
-
- * show-abbrev.c: Adjust call to dwarf_nextcu after interface change.
- * show-die-info.c: Likewise.
- * run-show-die-info.sh: Adjust expected output.
-
-2003-08-13 Ulrich Drepper <drepper@redhat.com>
-
- * Makefile.in: Depend on libebl.a, not libebl.so.
-
-2003-08-11 Ulrich Drepper <drepper@redhat.com>
-
- * Moved to CVS archive.
diff --git a/src/tests/Makefile b/src/tests/Makefile
deleted file mode 100644
index b810dd0c..00000000
--- a/src/tests/Makefile
+++ /dev/null
@@ -1,2932 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# tests/Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/elfutils
-pkgincludedir = $(includedir)/elfutils
-pkglibdir = $(libdir)/elfutils
-pkglibexecdir = $(libexecdir)/elfutils
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = x86_64-unknown-linux-gnu
-host_triplet = x86_64-unknown-linux-gnu
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(top_srcdir)/config/test-driver ChangeLog
-am__append_1 = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
- -I$(top_srcdir)/libdwfl -I$(top_srcdir)/libdwelf \
- -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
- -I$(top_srcdir)/lib -I..
-
-am__append_2 = -Wl,-rpath-link,../libasm:../libdw:../libelf
-#am__append_3 = -Wl,-rpath,$(BUILD_RPATH)
-check_PROGRAMS = arextract$(EXEEXT) arsymtest$(EXEEXT) \
- newfile$(EXEEXT) saridx$(EXEEXT) scnnames$(EXEEXT) \
- sectiondump$(EXEEXT) showptable$(EXEEXT) update1$(EXEEXT) \
- update2$(EXEEXT) update3$(EXEEXT) update4$(EXEEXT) \
- test-nlist$(EXEEXT) show-die-info$(EXEEXT) get-files$(EXEEXT) \
- get-lines$(EXEEXT) get-pubnames$(EXEEXT) get-aranges$(EXEEXT) \
- allfcts$(EXEEXT) line2addr$(EXEEXT) addrscopes$(EXEEXT) \
- funcscopes$(EXEEXT) show-abbrev$(EXEEXT) hash$(EXEEXT) \
- newscn$(EXEEXT) ecp$(EXEEXT) dwflmodtest$(EXEEXT) \
- find-prologues$(EXEEXT) funcretval$(EXEEXT) allregs$(EXEEXT) \
- rdwrmmap$(EXEEXT) dwfl-bug-addr-overflow$(EXEEXT) \
- arls$(EXEEXT) dwfl-bug-fd-leak$(EXEEXT) \
- dwfl-addr-sect$(EXEEXT) dwfl-bug-report$(EXEEXT) \
- early-offscn$(EXEEXT) dwfl-bug-getmodules$(EXEEXT) \
- dwarf-getmacros$(EXEEXT) addrcfi$(EXEEXT) \
- test-flag-nobits$(EXEEXT) dwarf-getstring$(EXEEXT) \
- rerequest_tag$(EXEEXT) alldts$(EXEEXT) md5-sha1-test$(EXEEXT) \
- typeiter$(EXEEXT) typeiter2$(EXEEXT) low_high_pc$(EXEEXT) \
- test-elf_cntl_gelf_getshdr$(EXEEXT) dwflsyms$(EXEEXT) \
- dwfllines$(EXEEXT) dwfl-report-elf-align$(EXEEXT) \
- varlocs$(EXEEXT) backtrace$(EXEEXT) backtrace-child$(EXEEXT) \
- backtrace-data$(EXEEXT) backtrace-dwarf$(EXEEXT) \
- debuglink$(EXEEXT) debugaltlink$(EXEEXT) buildid$(EXEEXT) \
- deleted$(EXEEXT) deleted-lib.so$(EXEEXT) \
- aggregate_size$(EXEEXT) vdsosyms$(EXEEXT) $(am__EXEEXT_1) \
- $(am__EXEEXT_2) $(am__EXEEXT_4)
-am__append_4 = backtrace-child-biarch
-TESTS = run-arextract.sh run-arsymtest.sh newfile$(EXEEXT) \
- test-nlist$(EXEEXT) update1$(EXEEXT) update2$(EXEEXT) \
- update3$(EXEEXT) update4$(EXEEXT) run-show-die-info.sh \
- run-get-files.sh run-get-lines.sh run-get-pubnames.sh \
- run-get-aranges.sh run-allfcts.sh run-show-abbrev.sh \
- run-line2addr.sh hash$(EXEEXT) newscn$(EXEEXT) \
- run-strip-test.sh run-strip-test2.sh run-strip-test3.sh \
- run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
- run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \
- run-strip-reloc.sh run-unstrip-test.sh run-unstrip-test2.sh \
- run-unstrip-M.sh run-ecp-test.sh run-ecp-test2.sh \
- run-alldts.sh run-elflint-test.sh run-elflint-self.sh \
- run-ranlib-test.sh run-ranlib-test2.sh run-ranlib-test3.sh \
- run-ranlib-test4.sh run-addrscopes.sh run-strings-test.sh \
- run-funcscopes.sh run-find-prologues.sh run-allregs.sh \
- run-addrcfi.sh run-nm-self.sh run-readelf-self.sh \
- run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
- run-readelf-test4.sh run-readelf-twofiles.sh \
- run-readelf-macro.sh run-readelf-loc.sh run-readelf-aranges.sh \
- run-readelf-line.sh run-native-test.sh run-bug1-test.sh \
- run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
- dwfl-bug-addr-overflow$(EXEEXT) run-addrname-test.sh \
- dwfl-bug-fd-leak$(EXEEXT) dwfl-bug-report$(EXEEXT) \
- run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \
- run-disasm-x86.sh run-disasm-x86-64.sh run-early-offscn.sh \
- run-dwarf-getmacros.sh run-test-flag-nobits.sh \
- run-prelink-addr-test.sh run-dwarf-getstring.sh \
- run-rerequest_tag.sh run-typeiter.sh run-readelf-d.sh \
- run-readelf-gdb_index.sh run-unstrip-n.sh run-low_high_pc.sh \
- run-macro-test.sh run-elf_cntl_gelf_getshdr.sh \
- run-test-archive64.sh run-readelf-vmcoreinfo.sh \
- run-readelf-mixed-corenote.sh run-dwfllines.sh \
- run-dwfl-report-elf-align.sh run-addr2line-test.sh \
- run-addr2line-i-test.sh run-addr2line-i-lex-test.sh \
- run-varlocs.sh run-funcretval.sh run-backtrace-native.sh \
- run-backtrace-data.sh run-backtrace-dwarf.sh \
- run-backtrace-native-biarch.sh run-backtrace-native-core.sh \
- run-backtrace-native-core-biarch.sh \
- run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
- run-backtrace-core-ppc.sh run-backtrace-core-s390x.sh \
- run-backtrace-core-s390.sh run-backtrace-core-aarch64.sh \
- run-backtrace-demangle.sh run-stack-d-test.sh \
- run-stack-i-test.sh run-readelf-dwz-multi.sh \
- run-allfcts-multi.sh run-deleted.sh run-linkmap-cut.sh \
- run-aggregate-size.sh vdsosyms$(EXEEXT) run-readelf-A.sh \
- $(am__EXEEXT_2) $(am__append_7) $(am__append_8) \
- $(am__EXEEXT_4)
-am__append_5 = msg_tst md5-sha1-test
-am__append_6 = msg_tst md5-sha1-test
-#am__append_7 = run-readelf-s.sh run-dwflsyms.sh
-am__append_8 = run-readelf-zdebug.sh
-am__append_9 = $(asm_TESTS)
-am__append_10 = $(asm_TESTS)
-subdir = tests
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__EXEEXT_1 = backtrace-child-biarch$(EXEEXT)
-am__EXEEXT_2 = msg_tst$(EXEEXT) \
- md5-sha1-test$(EXEEXT)
-am__EXEEXT_3 = asm-tst1$(EXEEXT) asm-tst2$(EXEEXT) asm-tst3$(EXEEXT) \
- asm-tst4$(EXEEXT) asm-tst5$(EXEEXT) asm-tst6$(EXEEXT) \
- asm-tst7$(EXEEXT) asm-tst8$(EXEEXT) asm-tst9$(EXEEXT)
-am__EXEEXT_4 = $(am__EXEEXT_3)
-addrcfi_SOURCES = addrcfi.c
-addrcfi_OBJECTS = addrcfi.$(OBJEXT)
-am__DEPENDENCIES_1 =
-am__DEPENDENCIES_2 = \
- ../libelf/libelf.so
-#am__DEPENDENCIES_2 = \
-# ../libelf/libelf.a
-am__DEPENDENCIES_3 = ../libebl/libebl.a
-am__DEPENDENCIES_4 = \
- ../libdw/libdw.so
-#am__DEPENDENCIES_4 = \
-# ../libdw/libdw.a \
-# $(am__DEPENDENCIES_1) \
-# $(am__DEPENDENCIES_2) \
-# $(am__DEPENDENCIES_3)
-addrcfi_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-addrscopes_SOURCES = addrscopes.c
-addrscopes_OBJECTS = addrscopes.$(OBJEXT)
-addrscopes_DEPENDENCIES = $(am__DEPENDENCIES_4)
-aggregate_size_SOURCES = aggregate_size.c
-aggregate_size_OBJECTS = aggregate_size.$(OBJEXT)
-aggregate_size_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-alldts_SOURCES = alldts.c
-alldts_OBJECTS = alldts.$(OBJEXT)
-alldts_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-allfcts_SOURCES = allfcts.c
-allfcts_OBJECTS = allfcts.$(OBJEXT)
-allfcts_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-allregs_SOURCES = allregs.c
-allregs_OBJECTS = allregs.$(OBJEXT)
-allregs_DEPENDENCIES = $(am__DEPENDENCIES_4)
-arextract_SOURCES = arextract.c
-arextract_OBJECTS = arextract.$(OBJEXT)
-arextract_DEPENDENCIES = $(am__DEPENDENCIES_2)
-arls_SOURCES = arls.c
-arls_OBJECTS = arls.$(OBJEXT)
-arls_DEPENDENCIES = $(am__DEPENDENCIES_2)
-arsymtest_SOURCES = arsymtest.c
-arsymtest_OBJECTS = arsymtest.$(OBJEXT)
-arsymtest_DEPENDENCIES = $(am__DEPENDENCIES_2)
-asm_tst1_SOURCES = asm-tst1.c
-asm_tst1_OBJECTS = asm-tst1.$(OBJEXT)
-am__DEPENDENCIES_5 = \
- ../libasm/libasm.so
-#am__DEPENDENCIES_5 = \
-# ../libasm/libasm.a
-asm_tst1_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst2_SOURCES = asm-tst2.c
-asm_tst2_OBJECTS = asm-tst2.$(OBJEXT)
-asm_tst2_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst3_SOURCES = asm-tst3.c
-asm_tst3_OBJECTS = asm-tst3.$(OBJEXT)
-asm_tst3_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst4_SOURCES = asm-tst4.c
-asm_tst4_OBJECTS = asm-tst4.$(OBJEXT)
-asm_tst4_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst5_SOURCES = asm-tst5.c
-asm_tst5_OBJECTS = asm-tst5.$(OBJEXT)
-asm_tst5_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst6_SOURCES = asm-tst6.c
-asm_tst6_OBJECTS = asm-tst6.$(OBJEXT)
-asm_tst6_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst7_SOURCES = asm-tst7.c
-asm_tst7_OBJECTS = asm-tst7.$(OBJEXT)
-asm_tst7_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst8_SOURCES = asm-tst8.c
-asm_tst8_OBJECTS = asm-tst8.$(OBJEXT)
-asm_tst8_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst9_SOURCES = asm-tst9.c
-asm_tst9_OBJECTS = asm-tst9.$(OBJEXT)
-asm_tst9_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-backtrace_SOURCES = backtrace.c
-backtrace_OBJECTS = backtrace.$(OBJEXT)
-backtrace_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-backtrace_child_SOURCES = backtrace-child.c
-backtrace_child_OBJECTS = backtrace_child-backtrace-child.$(OBJEXT)
-backtrace_child_LDADD = $(LDADD)
-backtrace_child_LINK = $(CCLD) $(backtrace_child_CFLAGS) $(CFLAGS) \
- $(backtrace_child_LDFLAGS) $(LDFLAGS) -o $@
-am_backtrace_child_biarch_OBJECTS = backtrace-child.$(OBJEXT)
-backtrace_child_biarch_OBJECTS = $(am_backtrace_child_biarch_OBJECTS)
-backtrace_child_biarch_LDADD = $(LDADD)
-backtrace_data_SOURCES = backtrace-data.c
-backtrace_data_OBJECTS = backtrace-data.$(OBJEXT)
-backtrace_data_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-backtrace_dwarf_SOURCES = backtrace-dwarf.c
-backtrace_dwarf_OBJECTS = backtrace_dwarf-backtrace-dwarf.$(OBJEXT)
-backtrace_dwarf_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-backtrace_dwarf_LINK = $(CCLD) $(backtrace_dwarf_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-buildid_SOURCES = buildid.c
-buildid_OBJECTS = buildid.$(OBJEXT)
-buildid_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-debugaltlink_SOURCES = debugaltlink.c
-debugaltlink_OBJECTS = debugaltlink.$(OBJEXT)
-debugaltlink_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-debuglink_SOURCES = debuglink.c
-debuglink_OBJECTS = debuglink.$(OBJEXT)
-debuglink_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-deleted_SOURCES = deleted.c
-deleted_OBJECTS = deleted.$(OBJEXT)
-deleted_DEPENDENCIES = ./deleted-lib.so
-deleted_lib_so_SOURCES = deleted-lib.c
-deleted_lib_so_OBJECTS = deleted_lib_so-deleted-lib.$(OBJEXT)
-deleted_lib_so_LDADD = $(LDADD)
-deleted_lib_so_LINK = $(CCLD) $(deleted_lib_so_CFLAGS) $(CFLAGS) \
- $(deleted_lib_so_LDFLAGS) $(LDFLAGS) -o $@
-dwarf_getmacros_SOURCES = dwarf-getmacros.c
-dwarf_getmacros_OBJECTS = dwarf-getmacros.$(OBJEXT)
-dwarf_getmacros_DEPENDENCIES = $(am__DEPENDENCIES_4)
-dwarf_getstring_SOURCES = dwarf-getstring.c
-dwarf_getstring_OBJECTS = dwarf-getstring.$(OBJEXT)
-dwarf_getstring_DEPENDENCIES = $(am__DEPENDENCIES_4)
-dwfl_addr_sect_SOURCES = dwfl-addr-sect.c
-dwfl_addr_sect_OBJECTS = dwfl-addr-sect.$(OBJEXT)
-dwfl_addr_sect_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_bug_addr_overflow_SOURCES = dwfl-bug-addr-overflow.c
-dwfl_bug_addr_overflow_OBJECTS = dwfl-bug-addr-overflow.$(OBJEXT)
-dwfl_bug_addr_overflow_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_bug_fd_leak_SOURCES = dwfl-bug-fd-leak.c
-dwfl_bug_fd_leak_OBJECTS = dwfl-bug-fd-leak.$(OBJEXT)
-dwfl_bug_fd_leak_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_bug_getmodules_SOURCES = dwfl-bug-getmodules.c
-dwfl_bug_getmodules_OBJECTS = dwfl-bug-getmodules.$(OBJEXT)
-dwfl_bug_getmodules_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_bug_report_SOURCES = dwfl-bug-report.c
-dwfl_bug_report_OBJECTS = dwfl-bug-report.$(OBJEXT)
-dwfl_bug_report_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_report_elf_align_SOURCES = dwfl-report-elf-align.c
-dwfl_report_elf_align_OBJECTS = dwfl-report-elf-align.$(OBJEXT)
-dwfl_report_elf_align_DEPENDENCIES = $(am__DEPENDENCIES_4)
-dwfllines_SOURCES = dwfllines.c
-dwfllines_OBJECTS = dwfllines.$(OBJEXT)
-dwfllines_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-dwflmodtest_SOURCES = dwflmodtest.c
-dwflmodtest_OBJECTS = dwflmodtest.$(OBJEXT)
-dwflmodtest_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-dwflsyms_SOURCES = dwflsyms.c
-dwflsyms_OBJECTS = dwflsyms.$(OBJEXT)
-dwflsyms_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-early_offscn_SOURCES = early-offscn.c
-early_offscn_OBJECTS = early-offscn.$(OBJEXT)
-early_offscn_DEPENDENCIES = $(am__DEPENDENCIES_2)
-ecp_SOURCES = ecp.c
-ecp_OBJECTS = ecp.$(OBJEXT)
-ecp_DEPENDENCIES = $(am__DEPENDENCIES_2)
-find_prologues_SOURCES = find-prologues.c
-find_prologues_OBJECTS = find-prologues.$(OBJEXT)
-find_prologues_DEPENDENCIES = $(am__DEPENDENCIES_4)
-funcretval_SOURCES = funcretval.c
-funcretval_OBJECTS = funcretval.$(OBJEXT)
-funcretval_DEPENDENCIES = $(am__DEPENDENCIES_4)
-funcscopes_SOURCES = funcscopes.c
-funcscopes_OBJECTS = funcscopes.$(OBJEXT)
-funcscopes_DEPENDENCIES = $(am__DEPENDENCIES_4)
-get_aranges_SOURCES = get-aranges.c
-get_aranges_OBJECTS = get-aranges.$(OBJEXT)
-get_aranges_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-get_files_SOURCES = get-files.c
-get_files_OBJECTS = get-files.$(OBJEXT)
-get_files_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-get_lines_SOURCES = get-lines.c
-get_lines_OBJECTS = get-lines.$(OBJEXT)
-get_lines_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-get_pubnames_SOURCES = get-pubnames.c
-get_pubnames_OBJECTS = get-pubnames.$(OBJEXT)
-get_pubnames_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-hash_SOURCES = hash.c
-hash_OBJECTS = hash.$(OBJEXT)
-hash_DEPENDENCIES = $(am__DEPENDENCIES_2)
-line2addr_SOURCES = line2addr.c
-line2addr_OBJECTS = line2addr.$(OBJEXT)
-line2addr_DEPENDENCIES = $(am__DEPENDENCIES_4)
-low_high_pc_SOURCES = low_high_pc.c
-low_high_pc_OBJECTS = low_high_pc.$(OBJEXT)
-low_high_pc_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-md5_sha1_test_SOURCES = md5-sha1-test.c
-md5_sha1_test_OBJECTS = md5-sha1-test.$(OBJEXT)
-md5_sha1_test_DEPENDENCIES = $(libeu)
-msg_tst_SOURCES = msg_tst.c
-msg_tst_OBJECTS = msg_tst.$(OBJEXT)
-msg_tst_DEPENDENCIES = $(am__DEPENDENCIES_2)
-newfile_SOURCES = newfile.c
-newfile_OBJECTS = newfile.$(OBJEXT)
-newfile_DEPENDENCIES = $(am__DEPENDENCIES_2)
-newscn_SOURCES = newscn.c
-newscn_OBJECTS = newscn.$(OBJEXT)
-newscn_DEPENDENCIES = $(am__DEPENDENCIES_2)
-rdwrmmap_SOURCES = rdwrmmap.c
-rdwrmmap_OBJECTS = rdwrmmap.$(OBJEXT)
-rdwrmmap_DEPENDENCIES = $(am__DEPENDENCIES_2)
-rerequest_tag_SOURCES = rerequest_tag.c
-rerequest_tag_OBJECTS = rerequest_tag.$(OBJEXT)
-rerequest_tag_DEPENDENCIES = $(am__DEPENDENCIES_4)
-saridx_SOURCES = saridx.c
-saridx_OBJECTS = saridx.$(OBJEXT)
-saridx_DEPENDENCIES = $(am__DEPENDENCIES_2)
-scnnames_SOURCES = scnnames.c
-scnnames_OBJECTS = scnnames.$(OBJEXT)
-scnnames_DEPENDENCIES = $(am__DEPENDENCIES_2)
-sectiondump_SOURCES = sectiondump.c
-sectiondump_OBJECTS = sectiondump.$(OBJEXT)
-sectiondump_DEPENDENCIES = $(am__DEPENDENCIES_2)
-show_abbrev_SOURCES = show-abbrev.c
-show_abbrev_OBJECTS = show-abbrev.$(OBJEXT)
-show_abbrev_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-show_die_info_SOURCES = show-die-info.c
-show_die_info_OBJECTS = show-die-info.$(OBJEXT)
-show_die_info_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-showptable_SOURCES = showptable.c
-showptable_OBJECTS = showptable.$(OBJEXT)
-showptable_DEPENDENCIES = $(am__DEPENDENCIES_2)
-test_elf_cntl_gelf_getshdr_SOURCES = test-elf_cntl_gelf_getshdr.c
-test_elf_cntl_gelf_getshdr_OBJECTS = \
- test-elf_cntl_gelf_getshdr.$(OBJEXT)
-test_elf_cntl_gelf_getshdr_DEPENDENCIES = $(am__DEPENDENCIES_2)
-test_flag_nobits_SOURCES = test-flag-nobits.c
-test_flag_nobits_OBJECTS = test-flag-nobits.$(OBJEXT)
-test_flag_nobits_DEPENDENCIES = $(am__DEPENDENCIES_2)
-test_nlist_SOURCES = test-nlist.c
-test_nlist_OBJECTS = test-nlist.$(OBJEXT)
-test_nlist_DEPENDENCIES = $(am__DEPENDENCIES_2)
-typeiter_SOURCES = typeiter.c
-typeiter_OBJECTS = typeiter.$(OBJEXT)
-typeiter_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-typeiter2_SOURCES = typeiter2.c
-typeiter2_OBJECTS = typeiter2.$(OBJEXT)
-typeiter2_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-update1_SOURCES = update1.c
-update1_OBJECTS = update1.$(OBJEXT)
-update1_DEPENDENCIES = $(am__DEPENDENCIES_2)
-update2_SOURCES = update2.c
-update2_OBJECTS = update2.$(OBJEXT)
-update2_DEPENDENCIES = $(am__DEPENDENCIES_2)
-update3_SOURCES = update3.c
-update3_OBJECTS = update3.$(OBJEXT)
-update3_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-update4_SOURCES = update4.c
-update4_OBJECTS = update4.$(OBJEXT)
-update4_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-varlocs_SOURCES = varlocs.c
-varlocs_OBJECTS = varlocs.$(OBJEXT)
-varlocs_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-vdsosyms_SOURCES = vdsosyms.c
-vdsosyms_OBJECTS = vdsosyms.$(OBJEXT)
-vdsosyms_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-AM_V_P = $(am__v_P_$(V))
-am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_$(V))
-am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_$(V))
-am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I. -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-AM_V_lt = $(am__v_lt_$(V))
-am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
-am__v_lt_0 = --silent
-am__v_lt_1 =
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_$(V))
-am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_$(V))
-am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = addrcfi.c addrscopes.c aggregate_size.c alldts.c allfcts.c \
- allregs.c arextract.c arls.c arsymtest.c asm-tst1.c asm-tst2.c \
- asm-tst3.c asm-tst4.c asm-tst5.c asm-tst6.c asm-tst7.c \
- asm-tst8.c asm-tst9.c backtrace.c backtrace-child.c \
- $(backtrace_child_biarch_SOURCES) backtrace-data.c \
- backtrace-dwarf.c buildid.c debugaltlink.c debuglink.c \
- deleted.c deleted-lib.c dwarf-getmacros.c dwarf-getstring.c \
- dwfl-addr-sect.c dwfl-bug-addr-overflow.c dwfl-bug-fd-leak.c \
- dwfl-bug-getmodules.c dwfl-bug-report.c \
- dwfl-report-elf-align.c dwfllines.c dwflmodtest.c dwflsyms.c \
- early-offscn.c ecp.c find-prologues.c funcretval.c \
- funcscopes.c get-aranges.c get-files.c get-lines.c \
- get-pubnames.c hash.c line2addr.c low_high_pc.c \
- md5-sha1-test.c msg_tst.c newfile.c newscn.c rdwrmmap.c \
- rerequest_tag.c saridx.c scnnames.c sectiondump.c \
- show-abbrev.c show-die-info.c showptable.c \
- test-elf_cntl_gelf_getshdr.c test-flag-nobits.c test-nlist.c \
- typeiter.c typeiter2.c update1.c update2.c update3.c update4.c \
- varlocs.c vdsosyms.c
-DIST_SOURCES = addrcfi.c addrscopes.c aggregate_size.c alldts.c \
- allfcts.c allregs.c arextract.c arls.c arsymtest.c asm-tst1.c \
- asm-tst2.c asm-tst3.c asm-tst4.c asm-tst5.c asm-tst6.c \
- asm-tst7.c asm-tst8.c asm-tst9.c backtrace.c backtrace-child.c \
- $(backtrace_child_biarch_SOURCES) backtrace-data.c \
- backtrace-dwarf.c buildid.c debugaltlink.c debuglink.c \
- deleted.c deleted-lib.c dwarf-getmacros.c dwarf-getstring.c \
- dwfl-addr-sect.c dwfl-bug-addr-overflow.c dwfl-bug-fd-leak.c \
- dwfl-bug-getmodules.c dwfl-bug-report.c \
- dwfl-report-elf-align.c dwfllines.c dwflmodtest.c dwflsyms.c \
- early-offscn.c ecp.c find-prologues.c funcretval.c \
- funcscopes.c get-aranges.c get-files.c get-lines.c \
- get-pubnames.c hash.c line2addr.c low_high_pc.c \
- md5-sha1-test.c msg_tst.c newfile.c newscn.c rdwrmmap.c \
- rerequest_tag.c saridx.c scnnames.c sectiondump.c \
- show-abbrev.c show-die-info.c showptable.c \
- test-elf_cntl_gelf_getshdr.c test-flag-nobits.c test-nlist.c \
- typeiter.c typeiter2.c update1.c update2.c update3.c update4.c \
- varlocs.c vdsosyms.c
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-RECHECK_LOGS = $(TEST_LOGS)
-AM_RECURSIVE_TARGETS = check recheck
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = .test
-LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver
-LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing aclocal-1.14
-AMTAR = $${TAR-tar}
-AM_DEFAULT_VERBOSITY = 1
-AR = ar
-AUTOCONF = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoconf
-AUTOHEADER = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing autoheader
-AUTOMAKE = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing automake-1.14
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CC_BIARCH = gcc -m32
-CFLAGS = -g -O2
-CPP = gcc -E
-CPPFLAGS =
-CYGPATH_W = echo
-DEBUGPRED = 0
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EGREP = /bin/grep -E
-EXEEXT =
-GETTEXT_MACRO_VERSION = 0.18
-GMSGFMT = /usr/bin/msgfmt
-GMSGFMT_015 = /usr/bin/msgfmt
-GREP = /bin/grep
-HAVE_VALGRIND =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LEX = flex
-LEXLIB = -lfl
-LEX_OUTPUT_ROOT = lex.yy
-LIBEBL_SUBDIR = elfutils
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAINT = #
-MAKEINFO = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/missing makeinfo
-MKDIR_P = /bin/mkdir -p
-MODVERSION = Build on enh.mtv.corp.google.com 2015-02-18T19:32:04-0800
-MSGFMT = /usr/bin/msgfmt
-MSGFMT_015 = /usr/bin/msgfmt
-MSGMERGE = /usr/bin/msgmerge
-NM = nm
-OBJEXT = o
-PACKAGE = elfutils
-PACKAGE_BUGREPORT = https://bugzilla.redhat.com/
-PACKAGE_NAME = elfutils
-PACKAGE_STRING = elfutils 0.161
-PACKAGE_TARNAME = elfutils
-PACKAGE_URL =
-PACKAGE_VERSION = 0.161
-PATH_SEPARATOR = :
-RANLIB = ranlib
-READELF = readelf
-SET_MAKE =
-SHELL = /bin/sh
-STRIP =
-USE_NLS = yes
-VERSION = 0.161
-XGETTEXT = /usr/bin/xgettext
-XGETTEXT_015 = /usr/bin/xgettext
-XGETTEXT_EXTRA_OPTIONS =
-YACC = bison -y
-YFLAGS =
-abs_builddir = /huge-ssd/aosp-arm64/external/elfutils/src/tests
-abs_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src/tests
-abs_top_builddir = /huge-ssd/aosp-arm64/external/elfutils/src
-abs_top_srcdir = /huge-ssd/aosp-arm64/external/elfutils/src
-ac_ct_AR = ar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = $${TAR-tar} chof - "$$tardir"
-am__untar = $${TAR-tar} xf -
-base_cpu = none
-bindir = ${exec_prefix}/bin
-build = x86_64-unknown-linux-gnu
-build_alias =
-build_cpu = x86_64
-build_os = linux-gnu
-build_vendor = unknown
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-eu_version = 161
-exec_prefix = ${prefix}
-host = x86_64-unknown-linux-gnu
-host_alias =
-host_cpu = x86_64
-host_os = linux-gnu
-host_vendor = unknown
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /huge-ssd/aosp-arm64/external/elfutils/src/config/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = $(MKDIR_P)
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix = ../
-top_builddir = ..
-top_srcdir = ..
-zip_LIBS = -lz
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. $(am__append_1)
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-#textrel_found = $(textrel_msg)
-textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-BUILD_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
-AM_LDFLAGS = $(am__append_2) $(am__append_3)
-tests_rpath = no
-#tests_rpath = yes
-asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
- asm-tst6 asm-tst7 asm-tst8 asm-tst9
-
-EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
- run-show-die-info.sh run-get-files.sh run-get-lines.sh \
- run-get-pubnames.sh run-get-aranges.sh \
- run-show-abbrev.sh run-strip-test.sh \
- run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \
- testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
- testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \
- testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \
- testfile13.bz2 run-strip-test3.sh run-allfcts.sh \
- testfile_class_func.bz2 testfile_nested_funcs.bz2 \
- run-line2addr.sh run-elflint-test.sh testfile14.bz2 \
- run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
- run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \
- run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \
- hello_ppc64.ko.bz2 hello_s390.ko.bz2 hello_aarch64.ko.bz2 \
- run-unstrip-test.sh run-unstrip-test2.sh run-unstrip-M.sh\
- run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \
- run-ranlib-test3.sh run-ranlib-test4.sh \
- run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
- run-nm-self.sh run-readelf-self.sh run-addrcfi.sh \
- run-find-prologues.sh run-allregs.sh run-native-test.sh \
- run-addrname-test.sh run-dwfl-bug-offline-rel.sh \
- run-dwfl-addr-sect.sh run-early-offscn.sh \
- run-dwarf-getmacros.sh run-test-flag-nobits.sh \
- run-dwarf-getstring.sh run-rerequest_tag.sh run-alldts.sh \
- testfile15.bz2 testfile15.debug.bz2 \
- testfile16.bz2 testfile16.debug.bz2 \
- testfile17.bz2 testfile17.debug.bz2 \
- testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \
- testfile20.bz2 testfile20.index.bz2 \
- testfile21.bz2 testfile21.index.bz2 \
- testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \
- testfile26.bz2 testfile27.bz2 \
- coverage.sh test-subr.sh test-wrapper.sh \
- run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
- run-readelf-test4.sh run-readelf-twofiles.sh \
- run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \
- run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
- testfile29.bz2 testfile29.rdwr.bz2 \
- testfile30.bz2 testfile31.bz2 testfile32.bz2 testfile33.bz2 \
- testfile34.bz2 testfile35.bz2 testfile35.debug.bz2 \
- testfile36.bz2 testfile36.debug.bz2 \
- testfile37.bz2 testfile37.debug.bz2 \
- testfile38.bz2 testfile39.bz2 testfile40.bz2 testfile40.debug.bz2 \
- testfile41.bz2 testfile42.bz2 testfile42_noshdrs.bz2 \
- testfile43.bz2 \
- testfile44.S.bz2 testfile44.expect.bz2 run-disasm-x86.sh \
- testfile45.S.bz2 testfile45.expect.bz2 run-disasm-x86-64.sh \
- testfile46.bz2 testfile47.bz2 testfile48.bz2 testfile48.debug.bz2 \
- testfile49.bz2 testfile50.bz2 testfile51.bz2 \
- testfile-macros-0xff.bz2 \
- run-readelf-macro.sh testfilemacro.bz2 \
- run-readelf-loc.sh testfileloc.bz2 \
- run-readelf-aranges.sh run-readelf-line.sh testfilefoobarbaz.bz2 \
- run-readelf-dwz-multi.sh libtestfile_multi_shared.so.bz2 \
- testfile_multi.dwz.bz2 testfile_multi_main.bz2 \
- testfile-dwzstr.bz2 testfile-dwzstr.multi.bz2 \
- run-allfcts-multi.sh \
- test-offset-loop.bz2 test-offset-loop.alt.bz2 \
- run-prelink-addr-test.sh \
- testfile52-32.so.bz2 testfile52-32.so.debug.bz2 \
- testfile52-32.prelink.so.bz2 testfile52-32.noshdrs.so.bz2 \
- testfile52-64.so.bz2 testfile52-64.so.debug.bz2 \
- testfile52-64.prelink.so.bz2 testfile52-64.noshdrs.so.bz2 \
- testfile53-32.bz2 testfile53-32.debug.bz2 \
- testfile53-32.prelink.bz2 testfile53-64.bz2 \
- testfile53-64.debug.bz2 testfile53-64.prelink.bz2 \
- testfile54-32.so.bz2 testfile54-32.so.debug.bz2 \
- testfile54-32.prelink.so.bz2 testfile54-32.noshdrs.so.bz2 \
- testfile54-64.so.bz2 testfile54-64.so.debug.bz2 \
- testfile54-64.prelink.so.bz2 testfile54-64.noshdrs.so.bz2 \
- testfile55-32.bz2 testfile55-32.debug.bz2 \
- testfile55-32.prelink.bz2 testfile55-64.bz2 \
- testfile55-64.debug.bz2 testfile55-64.prelink.bz2 \
- testfile56.bz2 testfile57.bz2 testfile58.bz2 \
- run-typeiter.sh testfile59.bz2 \
- run-readelf-d.sh testlib_dynseg.so.bz2 \
- run-readelf-gdb_index.sh testfilegdbindex5.bz2 \
- testfilegdbindex7.bz2 \
- run-readelf-s.sh testfilebazdbg.bz2 testfilebazdyn.bz2 \
- testfilebazmin.bz2 testfilebazdbg.debug.bz2 testfilebazmdb.bz2 \
- testfilebaztab.bz2 testfilebasmin.bz2 testfilebaxmin.bz2 \
- testfilebazdbg_pl.bz2 testfilebazmin_pl.bz2 \
- testfilebazdbg_plr.bz2 testfilebazmin_plr.bz2 \
- testfilebazdbgppc64.bz2 testfilebazdbgppc64.debug.bz2 \
- testfilebazdbgppc64_pl.bz2 testfilebazdbgppc64_plr.bz2 \
- testfilebazdynppc64.bz2 testfilebazmdbppc64.bz2 \
- testfilebazminppc64.bz2 testfilebazminppc64_pl.bz2 \
- testfilebazminppc64_plr.bz2 testfilebaztabppc64.bz2 \
- run-dwflsyms.sh \
- run-unstrip-n.sh testcore-rtlib.bz2 testcore-rtlib-ppc.bz2 \
- run-low_high_pc.sh testfile_low_high_pc.bz2 \
- run-macro-test.sh testfile-macinfo.bz2 testfile-macros.bz2 \
- run-elf_cntl_gelf_getshdr.sh \
- run-test-archive64.sh testarchive64.a.bz2 \
- testfile60.bz2 testfile61.bz2 \
- run-readelf-vmcoreinfo.sh testfile62.bz2 \
- run-readelf-mixed-corenote.sh testfile63.bz2 testfile64.bz2 \
- testfile65.bz2 testfile67.bz2 testfile68.bz2 \
- testfile69.core.bz2 testfile69.so.bz2 \
- testfile70.core.bz2 testfile70.exec.bz2 testfile71.bz2 \
- run-dwfllines.sh run-dwfl-report-elf-align.sh \
- testfile-dwfl-report-elf-align-shlib.so.bz2 \
- testfilenolines.bz2 test-core-lib.so.bz2 test-core.core.bz2 \
- test-core.exec.bz2 run-addr2line-test.sh \
- run-addr2line-i-test.sh testfile-inlines.bz2 \
- run-addr2line-i-lex-test.sh testfile-lex-inlines.bz2 \
- testfileppc32.bz2 testfileppc64.bz2 \
- testfiles390.bz2 testfiles390x.bz2 \
- testfilearm.bz2 testfileaarch64.bz2 \
- run-varlocs.sh \
- testfile_const_type.c testfile_const_type.bz2 \
- testfile_implicit_pointer.c testfile_implicit_pointer.bz2 \
- testfile_parameter_ref.c testfile_parameter_ref.bz2 \
- testfile_entry_value.c testfile_entry_value.bz2 \
- testfile_implicit_value.c testfile_implicit_value.bz2 \
- testfile_aarch64_core.bz2 testfile_i686_core.bz2 \
- run-funcretval.sh funcretval_test.c funcretval_test_aarch64.bz2 \
- run-backtrace-data.sh run-backtrace-dwarf.sh cleanup-13.c \
- run-backtrace-native.sh run-backtrace-native-biarch.sh \
- run-backtrace-native-core.sh run-backtrace-native-core-biarch.sh \
- run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
- backtrace-subr.sh backtrace.i386.core.bz2 backtrace.i386.exec.bz2 \
- backtrace.x86_64.core.bz2 backtrace.x86_64.exec.bz2 \
- backtrace.ppc.core.bz2 backtrace.ppc.exec.bz2 \
- run-backtrace-core-ppc.sh testfile66.bz2 testfile66.core.bz2 \
- backtrace.s390x.core.bz2 backtrace.s390x.exec.bz2 \
- backtrace.s390.core.bz2 backtrace.s390.exec.bz2 \
- run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
- run-backtrace-core-aarch64.sh \
- backtrace.aarch64.core.bz2 backtrace.aarch64.exec.bz2 \
- run-backtrace-demangle.sh testfile-backtrace-demangle.bz2 \
- testfile-backtrace-demangle.cc \
- testfile-backtrace-demangle.core.bz2 \
- run-stack-d-test.sh run-stack-i-test.sh \
- testfiledwarfinlines.bz2 testfiledwarfinlines.core.bz2 \
- run-readelf-zdebug.sh testfile-debug.bz2 testfile-zdebug.bz2 \
- run-deleted.sh run-linkmap-cut.sh linkmap-cut-lib.so.bz2 \
- linkmap-cut.bz2 linkmap-cut.core.bz2 \
- run-aggregate-size.sh testfile-sizes1.o.bz2 testfile-sizes2.o.bz2 \
- testfile-sizes3.o.bz2 \
- run-readelf-A.sh testfileppc32attrs.o.bz2
-
-#valgrind_cmd = 'valgrind -q --error-exitcode=1 --run-libc-freeres=no'
-installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \
- bindir=$(DESTDIR)$(bindir); \
- LC_ALL=C; LANG=C; \
- VALGRIND_CMD=$(valgrind_cmd); \
- abs_srcdir=$(abs_srcdir); \
- abs_builddir=$(abs_builddir); \
- abs_top_builddir=$(abs_top_builddir); \
- export abs_srcdir; export abs_builddir; \
- export abs_top_builddir; \
- export libdir; export bindir; \
- export LC_ALL; export LANG; export VALGRIND_CMD; \
- NM=$(NM); export NM;
-
-installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
- installed $(tests_rpath) \
- '$(program_transform_name)'
-
-TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD=$(valgrind_cmd); \
- abs_srcdir=$(abs_srcdir); abs_builddir=$(abs_builddir); \
- abs_top_builddir=$(abs_top_builddir); \
- export abs_srcdir; export abs_builddir; \
- export abs_top_builddir; \
- export LC_ALL; export LANG; export VALGRIND_CMD; \
- NM=$(NM); export NM;
-
-#TESTS_ENVIRONMENT = $(installed_TESTS_ENVIRONMENT)
-LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
- $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm
-
-#LOG_COMPILER = $(installed_LOG_COMPILER)
-libdw = ../libdw/libdw.so
-#libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
-#libdw = -ldw
-libelf = ../libelf/libelf.so
-#libelf = ../libelf/libelf.a
-#libelf = -lelf
-libasm = ../libasm/libasm.so
-#libasm = ../libasm/libasm.a
-#libasm = -lasm
-libebl = ../libebl/libebl.a
-#libebl = -lebl
-libeu = ../lib/libeu.a
-arextract_LDADD = $(libelf)
-arsymtest_LDADD = $(libelf)
-newfile_LDADD = $(libelf)
-saridx_LDADD = $(libelf)
-scnnames_LDADD = $(libelf)
-sectiondump_LDADD = $(libelf)
-showptable_LDADD = $(libelf)
-hash_LDADD = $(libelf)
-test_nlist_LDADD = $(libelf)
-msg_tst_LDADD = $(libelf)
-newscn_LDADD = $(libelf)
-early_offscn_LDADD = $(libelf)
-ecp_LDADD = $(libelf)
-update1_LDADD = $(libelf)
-update2_LDADD = $(libelf)
-update3_LDADD = $(libebl) $(libelf)
-update4_LDADD = $(libebl) $(libelf)
-show_die_info_LDADD = $(libdw) $(libelf)
-get_pubnames_LDADD = $(libdw) $(libelf)
-show_abbrev_LDADD = $(libdw) $(libelf)
-get_lines_LDADD = $(libdw) $(libelf)
-get_files_LDADD = $(libdw) $(libelf)
-get_aranges_LDADD = $(libdw) $(libelf)
-allfcts_LDADD = $(libdw) $(libelf)
-line2addr_LDADD = $(libdw)
-addrscopes_LDADD = $(libdw)
-funcscopes_LDADD = $(libdw)
-funcretval_LDADD = $(libdw)
-allregs_LDADD = $(libdw)
-find_prologues_LDADD = $(libdw)
-#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf)
-asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-rdwrmmap_LDADD = $(libelf)
-dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-arls_LDADD = $(libelf)
-dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwarf_getmacros_LDADD = $(libdw)
-dwarf_getstring_LDADD = $(libdw)
-addrcfi_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-test_flag_nobits_LDADD = $(libelf)
-rerequest_tag_LDADD = $(libdw)
-alldts_LDADD = $(libebl) $(libelf)
-md5_sha1_test_LDADD = $(libeu)
-typeiter_LDADD = $(libdw) $(libelf)
-typeiter2_LDADD = $(libdw) $(libelf)
-low_high_pc_LDADD = $(libdw) $(libelf)
-test_elf_cntl_gelf_getshdr_LDADD = $(libelf)
-dwflsyms_LDADD = $(libdw) $(libelf)
-dwfllines_LDADD = $(libdw) $(libelf)
-dwfl_report_elf_align_LDADD = $(libdw)
-varlocs_LDADD = $(libdw) $(libelf)
-backtrace_LDADD = $(libdw) $(libelf)
-# backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables:
-backtrace_child_CFLAGS = -fPIE
-backtrace_child_LDFLAGS = -pie -pthread
-backtrace_child_biarch_SOURCES = backtrace-child.c
-backtrace_data_LDADD = $(libdw) $(libelf)
-backtrace_dwarf_CFLAGS = -Wno-unused-parameter
-backtrace_dwarf_LDADD = $(libdw) $(libelf)
-debuglink_LDADD = $(libdw) $(libelf)
-debugaltlink_LDADD = $(libdw) $(libelf)
-buildid_LDADD = $(libdw) $(libelf)
-deleted_LDADD = ./deleted-lib.so
-deleted_lib_so_LDFLAGS = -shared -rdynamic
-deleted_lib_so_CFLAGS = -fPIC -fasynchronous-unwind-tables
-aggregate_size_LDADD = $(libdw) $(libelf)
-vdsosyms_LDADD = $(libdw) $(libelf)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .log .o .obj .test .test$(EXEEXT) .trs
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits tests/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: # $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
-
-addrcfi$(EXEEXT): $(addrcfi_OBJECTS) $(addrcfi_DEPENDENCIES) $(EXTRA_addrcfi_DEPENDENCIES)
- @rm -f addrcfi$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(addrcfi_OBJECTS) $(addrcfi_LDADD) $(LIBS)
-
-addrscopes$(EXEEXT): $(addrscopes_OBJECTS) $(addrscopes_DEPENDENCIES) $(EXTRA_addrscopes_DEPENDENCIES)
- @rm -f addrscopes$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(addrscopes_OBJECTS) $(addrscopes_LDADD) $(LIBS)
-
-aggregate_size$(EXEEXT): $(aggregate_size_OBJECTS) $(aggregate_size_DEPENDENCIES) $(EXTRA_aggregate_size_DEPENDENCIES)
- @rm -f aggregate_size$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(aggregate_size_OBJECTS) $(aggregate_size_LDADD) $(LIBS)
-
-alldts$(EXEEXT): $(alldts_OBJECTS) $(alldts_DEPENDENCIES) $(EXTRA_alldts_DEPENDENCIES)
- @rm -f alldts$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(alldts_OBJECTS) $(alldts_LDADD) $(LIBS)
-
-allfcts$(EXEEXT): $(allfcts_OBJECTS) $(allfcts_DEPENDENCIES) $(EXTRA_allfcts_DEPENDENCIES)
- @rm -f allfcts$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(allfcts_OBJECTS) $(allfcts_LDADD) $(LIBS)
-
-allregs$(EXEEXT): $(allregs_OBJECTS) $(allregs_DEPENDENCIES) $(EXTRA_allregs_DEPENDENCIES)
- @rm -f allregs$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(allregs_OBJECTS) $(allregs_LDADD) $(LIBS)
-
-arextract$(EXEEXT): $(arextract_OBJECTS) $(arextract_DEPENDENCIES) $(EXTRA_arextract_DEPENDENCIES)
- @rm -f arextract$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(arextract_OBJECTS) $(arextract_LDADD) $(LIBS)
-
-arls$(EXEEXT): $(arls_OBJECTS) $(arls_DEPENDENCIES) $(EXTRA_arls_DEPENDENCIES)
- @rm -f arls$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(arls_OBJECTS) $(arls_LDADD) $(LIBS)
-
-arsymtest$(EXEEXT): $(arsymtest_OBJECTS) $(arsymtest_DEPENDENCIES) $(EXTRA_arsymtest_DEPENDENCIES)
- @rm -f arsymtest$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(arsymtest_OBJECTS) $(arsymtest_LDADD) $(LIBS)
-
-asm-tst1$(EXEEXT): $(asm_tst1_OBJECTS) $(asm_tst1_DEPENDENCIES) $(EXTRA_asm_tst1_DEPENDENCIES)
- @rm -f asm-tst1$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst1_OBJECTS) $(asm_tst1_LDADD) $(LIBS)
-
-asm-tst2$(EXEEXT): $(asm_tst2_OBJECTS) $(asm_tst2_DEPENDENCIES) $(EXTRA_asm_tst2_DEPENDENCIES)
- @rm -f asm-tst2$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst2_OBJECTS) $(asm_tst2_LDADD) $(LIBS)
-
-asm-tst3$(EXEEXT): $(asm_tst3_OBJECTS) $(asm_tst3_DEPENDENCIES) $(EXTRA_asm_tst3_DEPENDENCIES)
- @rm -f asm-tst3$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst3_OBJECTS) $(asm_tst3_LDADD) $(LIBS)
-
-asm-tst4$(EXEEXT): $(asm_tst4_OBJECTS) $(asm_tst4_DEPENDENCIES) $(EXTRA_asm_tst4_DEPENDENCIES)
- @rm -f asm-tst4$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst4_OBJECTS) $(asm_tst4_LDADD) $(LIBS)
-
-asm-tst5$(EXEEXT): $(asm_tst5_OBJECTS) $(asm_tst5_DEPENDENCIES) $(EXTRA_asm_tst5_DEPENDENCIES)
- @rm -f asm-tst5$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst5_OBJECTS) $(asm_tst5_LDADD) $(LIBS)
-
-asm-tst6$(EXEEXT): $(asm_tst6_OBJECTS) $(asm_tst6_DEPENDENCIES) $(EXTRA_asm_tst6_DEPENDENCIES)
- @rm -f asm-tst6$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst6_OBJECTS) $(asm_tst6_LDADD) $(LIBS)
-
-asm-tst7$(EXEEXT): $(asm_tst7_OBJECTS) $(asm_tst7_DEPENDENCIES) $(EXTRA_asm_tst7_DEPENDENCIES)
- @rm -f asm-tst7$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst7_OBJECTS) $(asm_tst7_LDADD) $(LIBS)
-
-asm-tst8$(EXEEXT): $(asm_tst8_OBJECTS) $(asm_tst8_DEPENDENCIES) $(EXTRA_asm_tst8_DEPENDENCIES)
- @rm -f asm-tst8$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst8_OBJECTS) $(asm_tst8_LDADD) $(LIBS)
-
-asm-tst9$(EXEEXT): $(asm_tst9_OBJECTS) $(asm_tst9_DEPENDENCIES) $(EXTRA_asm_tst9_DEPENDENCIES)
- @rm -f asm-tst9$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst9_OBJECTS) $(asm_tst9_LDADD) $(LIBS)
-
-backtrace$(EXEEXT): $(backtrace_OBJECTS) $(backtrace_DEPENDENCIES) $(EXTRA_backtrace_DEPENDENCIES)
- @rm -f backtrace$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(backtrace_OBJECTS) $(backtrace_LDADD) $(LIBS)
-
-backtrace-child$(EXEEXT): $(backtrace_child_OBJECTS) $(backtrace_child_DEPENDENCIES) $(EXTRA_backtrace_child_DEPENDENCIES)
- @rm -f backtrace-child$(EXEEXT)
- $(AM_V_CCLD)$(backtrace_child_LINK) $(backtrace_child_OBJECTS) $(backtrace_child_LDADD) $(LIBS)
-
-backtrace-data$(EXEEXT): $(backtrace_data_OBJECTS) $(backtrace_data_DEPENDENCIES) $(EXTRA_backtrace_data_DEPENDENCIES)
- @rm -f backtrace-data$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(backtrace_data_OBJECTS) $(backtrace_data_LDADD) $(LIBS)
-
-backtrace-dwarf$(EXEEXT): $(backtrace_dwarf_OBJECTS) $(backtrace_dwarf_DEPENDENCIES) $(EXTRA_backtrace_dwarf_DEPENDENCIES)
- @rm -f backtrace-dwarf$(EXEEXT)
- $(AM_V_CCLD)$(backtrace_dwarf_LINK) $(backtrace_dwarf_OBJECTS) $(backtrace_dwarf_LDADD) $(LIBS)
-
-buildid$(EXEEXT): $(buildid_OBJECTS) $(buildid_DEPENDENCIES) $(EXTRA_buildid_DEPENDENCIES)
- @rm -f buildid$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(buildid_OBJECTS) $(buildid_LDADD) $(LIBS)
-
-debugaltlink$(EXEEXT): $(debugaltlink_OBJECTS) $(debugaltlink_DEPENDENCIES) $(EXTRA_debugaltlink_DEPENDENCIES)
- @rm -f debugaltlink$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(debugaltlink_OBJECTS) $(debugaltlink_LDADD) $(LIBS)
-
-debuglink$(EXEEXT): $(debuglink_OBJECTS) $(debuglink_DEPENDENCIES) $(EXTRA_debuglink_DEPENDENCIES)
- @rm -f debuglink$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(debuglink_OBJECTS) $(debuglink_LDADD) $(LIBS)
-
-deleted$(EXEEXT): $(deleted_OBJECTS) $(deleted_DEPENDENCIES) $(EXTRA_deleted_DEPENDENCIES)
- @rm -f deleted$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(deleted_OBJECTS) $(deleted_LDADD) $(LIBS)
-
-deleted-lib.so$(EXEEXT): $(deleted_lib_so_OBJECTS) $(deleted_lib_so_DEPENDENCIES) $(EXTRA_deleted_lib_so_DEPENDENCIES)
- @rm -f deleted-lib.so$(EXEEXT)
- $(AM_V_CCLD)$(deleted_lib_so_LINK) $(deleted_lib_so_OBJECTS) $(deleted_lib_so_LDADD) $(LIBS)
-
-dwarf-getmacros$(EXEEXT): $(dwarf_getmacros_OBJECTS) $(dwarf_getmacros_DEPENDENCIES) $(EXTRA_dwarf_getmacros_DEPENDENCIES)
- @rm -f dwarf-getmacros$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwarf_getmacros_OBJECTS) $(dwarf_getmacros_LDADD) $(LIBS)
-
-dwarf-getstring$(EXEEXT): $(dwarf_getstring_OBJECTS) $(dwarf_getstring_DEPENDENCIES) $(EXTRA_dwarf_getstring_DEPENDENCIES)
- @rm -f dwarf-getstring$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwarf_getstring_OBJECTS) $(dwarf_getstring_LDADD) $(LIBS)
-
-dwfl-addr-sect$(EXEEXT): $(dwfl_addr_sect_OBJECTS) $(dwfl_addr_sect_DEPENDENCIES) $(EXTRA_dwfl_addr_sect_DEPENDENCIES)
- @rm -f dwfl-addr-sect$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_addr_sect_OBJECTS) $(dwfl_addr_sect_LDADD) $(LIBS)
-
-dwfl-bug-addr-overflow$(EXEEXT): $(dwfl_bug_addr_overflow_OBJECTS) $(dwfl_bug_addr_overflow_DEPENDENCIES) $(EXTRA_dwfl_bug_addr_overflow_DEPENDENCIES)
- @rm -f dwfl-bug-addr-overflow$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_bug_addr_overflow_OBJECTS) $(dwfl_bug_addr_overflow_LDADD) $(LIBS)
-
-dwfl-bug-fd-leak$(EXEEXT): $(dwfl_bug_fd_leak_OBJECTS) $(dwfl_bug_fd_leak_DEPENDENCIES) $(EXTRA_dwfl_bug_fd_leak_DEPENDENCIES)
- @rm -f dwfl-bug-fd-leak$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_bug_fd_leak_OBJECTS) $(dwfl_bug_fd_leak_LDADD) $(LIBS)
-
-dwfl-bug-getmodules$(EXEEXT): $(dwfl_bug_getmodules_OBJECTS) $(dwfl_bug_getmodules_DEPENDENCIES) $(EXTRA_dwfl_bug_getmodules_DEPENDENCIES)
- @rm -f dwfl-bug-getmodules$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_bug_getmodules_OBJECTS) $(dwfl_bug_getmodules_LDADD) $(LIBS)
-
-dwfl-bug-report$(EXEEXT): $(dwfl_bug_report_OBJECTS) $(dwfl_bug_report_DEPENDENCIES) $(EXTRA_dwfl_bug_report_DEPENDENCIES)
- @rm -f dwfl-bug-report$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_bug_report_OBJECTS) $(dwfl_bug_report_LDADD) $(LIBS)
-
-dwfl-report-elf-align$(EXEEXT): $(dwfl_report_elf_align_OBJECTS) $(dwfl_report_elf_align_DEPENDENCIES) $(EXTRA_dwfl_report_elf_align_DEPENDENCIES)
- @rm -f dwfl-report-elf-align$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_report_elf_align_OBJECTS) $(dwfl_report_elf_align_LDADD) $(LIBS)
-
-dwfllines$(EXEEXT): $(dwfllines_OBJECTS) $(dwfllines_DEPENDENCIES) $(EXTRA_dwfllines_DEPENDENCIES)
- @rm -f dwfllines$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfllines_OBJECTS) $(dwfllines_LDADD) $(LIBS)
-
-dwflmodtest$(EXEEXT): $(dwflmodtest_OBJECTS) $(dwflmodtest_DEPENDENCIES) $(EXTRA_dwflmodtest_DEPENDENCIES)
- @rm -f dwflmodtest$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwflmodtest_OBJECTS) $(dwflmodtest_LDADD) $(LIBS)
-
-dwflsyms$(EXEEXT): $(dwflsyms_OBJECTS) $(dwflsyms_DEPENDENCIES) $(EXTRA_dwflsyms_DEPENDENCIES)
- @rm -f dwflsyms$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwflsyms_OBJECTS) $(dwflsyms_LDADD) $(LIBS)
-
-early-offscn$(EXEEXT): $(early_offscn_OBJECTS) $(early_offscn_DEPENDENCIES) $(EXTRA_early_offscn_DEPENDENCIES)
- @rm -f early-offscn$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(early_offscn_OBJECTS) $(early_offscn_LDADD) $(LIBS)
-
-ecp$(EXEEXT): $(ecp_OBJECTS) $(ecp_DEPENDENCIES) $(EXTRA_ecp_DEPENDENCIES)
- @rm -f ecp$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(ecp_OBJECTS) $(ecp_LDADD) $(LIBS)
-
-find-prologues$(EXEEXT): $(find_prologues_OBJECTS) $(find_prologues_DEPENDENCIES) $(EXTRA_find_prologues_DEPENDENCIES)
- @rm -f find-prologues$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(find_prologues_OBJECTS) $(find_prologues_LDADD) $(LIBS)
-
-funcretval$(EXEEXT): $(funcretval_OBJECTS) $(funcretval_DEPENDENCIES) $(EXTRA_funcretval_DEPENDENCIES)
- @rm -f funcretval$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(funcretval_OBJECTS) $(funcretval_LDADD) $(LIBS)
-
-funcscopes$(EXEEXT): $(funcscopes_OBJECTS) $(funcscopes_DEPENDENCIES) $(EXTRA_funcscopes_DEPENDENCIES)
- @rm -f funcscopes$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(funcscopes_OBJECTS) $(funcscopes_LDADD) $(LIBS)
-
-get-aranges$(EXEEXT): $(get_aranges_OBJECTS) $(get_aranges_DEPENDENCIES) $(EXTRA_get_aranges_DEPENDENCIES)
- @rm -f get-aranges$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(get_aranges_OBJECTS) $(get_aranges_LDADD) $(LIBS)
-
-get-files$(EXEEXT): $(get_files_OBJECTS) $(get_files_DEPENDENCIES) $(EXTRA_get_files_DEPENDENCIES)
- @rm -f get-files$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(get_files_OBJECTS) $(get_files_LDADD) $(LIBS)
-
-get-lines$(EXEEXT): $(get_lines_OBJECTS) $(get_lines_DEPENDENCIES) $(EXTRA_get_lines_DEPENDENCIES)
- @rm -f get-lines$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(get_lines_OBJECTS) $(get_lines_LDADD) $(LIBS)
-
-get-pubnames$(EXEEXT): $(get_pubnames_OBJECTS) $(get_pubnames_DEPENDENCIES) $(EXTRA_get_pubnames_DEPENDENCIES)
- @rm -f get-pubnames$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(get_pubnames_OBJECTS) $(get_pubnames_LDADD) $(LIBS)
-
-hash$(EXEEXT): $(hash_OBJECTS) $(hash_DEPENDENCIES) $(EXTRA_hash_DEPENDENCIES)
- @rm -f hash$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(hash_OBJECTS) $(hash_LDADD) $(LIBS)
-
-line2addr$(EXEEXT): $(line2addr_OBJECTS) $(line2addr_DEPENDENCIES) $(EXTRA_line2addr_DEPENDENCIES)
- @rm -f line2addr$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(line2addr_OBJECTS) $(line2addr_LDADD) $(LIBS)
-
-low_high_pc$(EXEEXT): $(low_high_pc_OBJECTS) $(low_high_pc_DEPENDENCIES) $(EXTRA_low_high_pc_DEPENDENCIES)
- @rm -f low_high_pc$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(low_high_pc_OBJECTS) $(low_high_pc_LDADD) $(LIBS)
-
-md5-sha1-test$(EXEEXT): $(md5_sha1_test_OBJECTS) $(md5_sha1_test_DEPENDENCIES) $(EXTRA_md5_sha1_test_DEPENDENCIES)
- @rm -f md5-sha1-test$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(md5_sha1_test_OBJECTS) $(md5_sha1_test_LDADD) $(LIBS)
-
-msg_tst$(EXEEXT): $(msg_tst_OBJECTS) $(msg_tst_DEPENDENCIES) $(EXTRA_msg_tst_DEPENDENCIES)
- @rm -f msg_tst$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(msg_tst_OBJECTS) $(msg_tst_LDADD) $(LIBS)
-
-newfile$(EXEEXT): $(newfile_OBJECTS) $(newfile_DEPENDENCIES) $(EXTRA_newfile_DEPENDENCIES)
- @rm -f newfile$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(newfile_OBJECTS) $(newfile_LDADD) $(LIBS)
-
-newscn$(EXEEXT): $(newscn_OBJECTS) $(newscn_DEPENDENCIES) $(EXTRA_newscn_DEPENDENCIES)
- @rm -f newscn$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(newscn_OBJECTS) $(newscn_LDADD) $(LIBS)
-
-rdwrmmap$(EXEEXT): $(rdwrmmap_OBJECTS) $(rdwrmmap_DEPENDENCIES) $(EXTRA_rdwrmmap_DEPENDENCIES)
- @rm -f rdwrmmap$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(rdwrmmap_OBJECTS) $(rdwrmmap_LDADD) $(LIBS)
-
-rerequest_tag$(EXEEXT): $(rerequest_tag_OBJECTS) $(rerequest_tag_DEPENDENCIES) $(EXTRA_rerequest_tag_DEPENDENCIES)
- @rm -f rerequest_tag$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(rerequest_tag_OBJECTS) $(rerequest_tag_LDADD) $(LIBS)
-
-saridx$(EXEEXT): $(saridx_OBJECTS) $(saridx_DEPENDENCIES) $(EXTRA_saridx_DEPENDENCIES)
- @rm -f saridx$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(saridx_OBJECTS) $(saridx_LDADD) $(LIBS)
-
-scnnames$(EXEEXT): $(scnnames_OBJECTS) $(scnnames_DEPENDENCIES) $(EXTRA_scnnames_DEPENDENCIES)
- @rm -f scnnames$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(scnnames_OBJECTS) $(scnnames_LDADD) $(LIBS)
-
-sectiondump$(EXEEXT): $(sectiondump_OBJECTS) $(sectiondump_DEPENDENCIES) $(EXTRA_sectiondump_DEPENDENCIES)
- @rm -f sectiondump$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(sectiondump_OBJECTS) $(sectiondump_LDADD) $(LIBS)
-
-show-abbrev$(EXEEXT): $(show_abbrev_OBJECTS) $(show_abbrev_DEPENDENCIES) $(EXTRA_show_abbrev_DEPENDENCIES)
- @rm -f show-abbrev$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(show_abbrev_OBJECTS) $(show_abbrev_LDADD) $(LIBS)
-
-show-die-info$(EXEEXT): $(show_die_info_OBJECTS) $(show_die_info_DEPENDENCIES) $(EXTRA_show_die_info_DEPENDENCIES)
- @rm -f show-die-info$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(show_die_info_OBJECTS) $(show_die_info_LDADD) $(LIBS)
-
-showptable$(EXEEXT): $(showptable_OBJECTS) $(showptable_DEPENDENCIES) $(EXTRA_showptable_DEPENDENCIES)
- @rm -f showptable$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(showptable_OBJECTS) $(showptable_LDADD) $(LIBS)
-
-test-elf_cntl_gelf_getshdr$(EXEEXT): $(test_elf_cntl_gelf_getshdr_OBJECTS) $(test_elf_cntl_gelf_getshdr_DEPENDENCIES) $(EXTRA_test_elf_cntl_gelf_getshdr_DEPENDENCIES)
- @rm -f test-elf_cntl_gelf_getshdr$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_elf_cntl_gelf_getshdr_OBJECTS) $(test_elf_cntl_gelf_getshdr_LDADD) $(LIBS)
-
-test-flag-nobits$(EXEEXT): $(test_flag_nobits_OBJECTS) $(test_flag_nobits_DEPENDENCIES) $(EXTRA_test_flag_nobits_DEPENDENCIES)
- @rm -f test-flag-nobits$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_flag_nobits_OBJECTS) $(test_flag_nobits_LDADD) $(LIBS)
-
-test-nlist$(EXEEXT): $(test_nlist_OBJECTS) $(test_nlist_DEPENDENCIES) $(EXTRA_test_nlist_DEPENDENCIES)
- @rm -f test-nlist$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_nlist_OBJECTS) $(test_nlist_LDADD) $(LIBS)
-
-typeiter$(EXEEXT): $(typeiter_OBJECTS) $(typeiter_DEPENDENCIES) $(EXTRA_typeiter_DEPENDENCIES)
- @rm -f typeiter$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(typeiter_OBJECTS) $(typeiter_LDADD) $(LIBS)
-
-typeiter2$(EXEEXT): $(typeiter2_OBJECTS) $(typeiter2_DEPENDENCIES) $(EXTRA_typeiter2_DEPENDENCIES)
- @rm -f typeiter2$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(typeiter2_OBJECTS) $(typeiter2_LDADD) $(LIBS)
-
-update1$(EXEEXT): $(update1_OBJECTS) $(update1_DEPENDENCIES) $(EXTRA_update1_DEPENDENCIES)
- @rm -f update1$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(update1_OBJECTS) $(update1_LDADD) $(LIBS)
-
-update2$(EXEEXT): $(update2_OBJECTS) $(update2_DEPENDENCIES) $(EXTRA_update2_DEPENDENCIES)
- @rm -f update2$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(update2_OBJECTS) $(update2_LDADD) $(LIBS)
-
-update3$(EXEEXT): $(update3_OBJECTS) $(update3_DEPENDENCIES) $(EXTRA_update3_DEPENDENCIES)
- @rm -f update3$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(update3_OBJECTS) $(update3_LDADD) $(LIBS)
-
-update4$(EXEEXT): $(update4_OBJECTS) $(update4_DEPENDENCIES) $(EXTRA_update4_DEPENDENCIES)
- @rm -f update4$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(update4_OBJECTS) $(update4_LDADD) $(LIBS)
-
-varlocs$(EXEEXT): $(varlocs_OBJECTS) $(varlocs_DEPENDENCIES) $(EXTRA_varlocs_DEPENDENCIES)
- @rm -f varlocs$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(varlocs_OBJECTS) $(varlocs_LDADD) $(LIBS)
-
-vdsosyms$(EXEEXT): $(vdsosyms_OBJECTS) $(vdsosyms_DEPENDENCIES) $(EXTRA_vdsosyms_DEPENDENCIES)
- @rm -f vdsosyms$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(vdsosyms_OBJECTS) $(vdsosyms_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-include ./$(DEPDIR)/addrcfi.Po
-include ./$(DEPDIR)/addrscopes.Po
-include ./$(DEPDIR)/aggregate_size.Po
-include ./$(DEPDIR)/alldts.Po
-include ./$(DEPDIR)/allfcts.Po
-include ./$(DEPDIR)/allregs.Po
-include ./$(DEPDIR)/arextract.Po
-include ./$(DEPDIR)/arls.Po
-include ./$(DEPDIR)/arsymtest.Po
-include ./$(DEPDIR)/asm-tst1.Po
-include ./$(DEPDIR)/asm-tst2.Po
-include ./$(DEPDIR)/asm-tst3.Po
-include ./$(DEPDIR)/asm-tst4.Po
-include ./$(DEPDIR)/asm-tst5.Po
-include ./$(DEPDIR)/asm-tst6.Po
-include ./$(DEPDIR)/asm-tst7.Po
-include ./$(DEPDIR)/asm-tst8.Po
-include ./$(DEPDIR)/asm-tst9.Po
-include ./$(DEPDIR)/backtrace-child.Po
-include ./$(DEPDIR)/backtrace-data.Po
-include ./$(DEPDIR)/backtrace.Po
-include ./$(DEPDIR)/backtrace_child-backtrace-child.Po
-include ./$(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Po
-include ./$(DEPDIR)/buildid.Po
-include ./$(DEPDIR)/debugaltlink.Po
-include ./$(DEPDIR)/debuglink.Po
-include ./$(DEPDIR)/deleted.Po
-include ./$(DEPDIR)/deleted_lib_so-deleted-lib.Po
-include ./$(DEPDIR)/dwarf-getmacros.Po
-include ./$(DEPDIR)/dwarf-getstring.Po
-include ./$(DEPDIR)/dwfl-addr-sect.Po
-include ./$(DEPDIR)/dwfl-bug-addr-overflow.Po
-include ./$(DEPDIR)/dwfl-bug-fd-leak.Po
-include ./$(DEPDIR)/dwfl-bug-getmodules.Po
-include ./$(DEPDIR)/dwfl-bug-report.Po
-include ./$(DEPDIR)/dwfl-report-elf-align.Po
-include ./$(DEPDIR)/dwfllines.Po
-include ./$(DEPDIR)/dwflmodtest.Po
-include ./$(DEPDIR)/dwflsyms.Po
-include ./$(DEPDIR)/early-offscn.Po
-include ./$(DEPDIR)/ecp.Po
-include ./$(DEPDIR)/find-prologues.Po
-include ./$(DEPDIR)/funcretval.Po
-include ./$(DEPDIR)/funcscopes.Po
-include ./$(DEPDIR)/get-aranges.Po
-include ./$(DEPDIR)/get-files.Po
-include ./$(DEPDIR)/get-lines.Po
-include ./$(DEPDIR)/get-pubnames.Po
-include ./$(DEPDIR)/hash.Po
-include ./$(DEPDIR)/line2addr.Po
-include ./$(DEPDIR)/low_high_pc.Po
-include ./$(DEPDIR)/md5-sha1-test.Po
-include ./$(DEPDIR)/msg_tst.Po
-include ./$(DEPDIR)/newfile.Po
-include ./$(DEPDIR)/newscn.Po
-include ./$(DEPDIR)/rdwrmmap.Po
-include ./$(DEPDIR)/rerequest_tag.Po
-include ./$(DEPDIR)/saridx.Po
-include ./$(DEPDIR)/scnnames.Po
-include ./$(DEPDIR)/sectiondump.Po
-include ./$(DEPDIR)/show-abbrev.Po
-include ./$(DEPDIR)/show-die-info.Po
-include ./$(DEPDIR)/showptable.Po
-include ./$(DEPDIR)/test-elf_cntl_gelf_getshdr.Po
-include ./$(DEPDIR)/test-flag-nobits.Po
-include ./$(DEPDIR)/test-nlist.Po
-include ./$(DEPDIR)/typeiter.Po
-include ./$(DEPDIR)/typeiter2.Po
-include ./$(DEPDIR)/update1.Po
-include ./$(DEPDIR)/update2.Po
-include ./$(DEPDIR)/update3.Po
-include ./$(DEPDIR)/update4.Po
-include ./$(DEPDIR)/varlocs.Po
-include ./$(DEPDIR)/vdsosyms.Po
-
-.c.o:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
-
-.c.obj:
- $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
- $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-# $(AM_V_CC)source='$<' object='$@' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-backtrace_child-backtrace-child.o: backtrace-child.c
- $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_child_CFLAGS) $(CFLAGS) -MT backtrace_child-backtrace-child.o -MD -MP -MF $(DEPDIR)/backtrace_child-backtrace-child.Tpo -c -o backtrace_child-backtrace-child.o `test -f 'backtrace-child.c' || echo '$(srcdir)/'`backtrace-child.c
- $(AM_V_at)$(am__mv) $(DEPDIR)/backtrace_child-backtrace-child.Tpo $(DEPDIR)/backtrace_child-backtrace-child.Po
-# $(AM_V_CC)source='backtrace-child.c' object='backtrace_child-backtrace-child.o' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_child_CFLAGS) $(CFLAGS) -c -o backtrace_child-backtrace-child.o `test -f 'backtrace-child.c' || echo '$(srcdir)/'`backtrace-child.c
-
-backtrace_child-backtrace-child.obj: backtrace-child.c
- $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_child_CFLAGS) $(CFLAGS) -MT backtrace_child-backtrace-child.obj -MD -MP -MF $(DEPDIR)/backtrace_child-backtrace-child.Tpo -c -o backtrace_child-backtrace-child.obj `if test -f 'backtrace-child.c'; then $(CYGPATH_W) 'backtrace-child.c'; else $(CYGPATH_W) '$(srcdir)/backtrace-child.c'; fi`
- $(AM_V_at)$(am__mv) $(DEPDIR)/backtrace_child-backtrace-child.Tpo $(DEPDIR)/backtrace_child-backtrace-child.Po
-# $(AM_V_CC)source='backtrace-child.c' object='backtrace_child-backtrace-child.obj' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_child_CFLAGS) $(CFLAGS) -c -o backtrace_child-backtrace-child.obj `if test -f 'backtrace-child.c'; then $(CYGPATH_W) 'backtrace-child.c'; else $(CYGPATH_W) '$(srcdir)/backtrace-child.c'; fi`
-
-backtrace_dwarf-backtrace-dwarf.o: backtrace-dwarf.c
- $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_dwarf_CFLAGS) $(CFLAGS) -MT backtrace_dwarf-backtrace-dwarf.o -MD -MP -MF $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Tpo -c -o backtrace_dwarf-backtrace-dwarf.o `test -f 'backtrace-dwarf.c' || echo '$(srcdir)/'`backtrace-dwarf.c
- $(AM_V_at)$(am__mv) $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Tpo $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Po
-# $(AM_V_CC)source='backtrace-dwarf.c' object='backtrace_dwarf-backtrace-dwarf.o' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_dwarf_CFLAGS) $(CFLAGS) -c -o backtrace_dwarf-backtrace-dwarf.o `test -f 'backtrace-dwarf.c' || echo '$(srcdir)/'`backtrace-dwarf.c
-
-backtrace_dwarf-backtrace-dwarf.obj: backtrace-dwarf.c
- $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_dwarf_CFLAGS) $(CFLAGS) -MT backtrace_dwarf-backtrace-dwarf.obj -MD -MP -MF $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Tpo -c -o backtrace_dwarf-backtrace-dwarf.obj `if test -f 'backtrace-dwarf.c'; then $(CYGPATH_W) 'backtrace-dwarf.c'; else $(CYGPATH_W) '$(srcdir)/backtrace-dwarf.c'; fi`
- $(AM_V_at)$(am__mv) $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Tpo $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Po
-# $(AM_V_CC)source='backtrace-dwarf.c' object='backtrace_dwarf-backtrace-dwarf.obj' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_dwarf_CFLAGS) $(CFLAGS) -c -o backtrace_dwarf-backtrace-dwarf.obj `if test -f 'backtrace-dwarf.c'; then $(CYGPATH_W) 'backtrace-dwarf.c'; else $(CYGPATH_W) '$(srcdir)/backtrace-dwarf.c'; fi`
-
-deleted_lib_so-deleted-lib.o: deleted-lib.c
- $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -MT deleted_lib_so-deleted-lib.o -MD -MP -MF $(DEPDIR)/deleted_lib_so-deleted-lib.Tpo -c -o deleted_lib_so-deleted-lib.o `test -f 'deleted-lib.c' || echo '$(srcdir)/'`deleted-lib.c
- $(AM_V_at)$(am__mv) $(DEPDIR)/deleted_lib_so-deleted-lib.Tpo $(DEPDIR)/deleted_lib_so-deleted-lib.Po
-# $(AM_V_CC)source='deleted-lib.c' object='deleted_lib_so-deleted-lib.o' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -c -o deleted_lib_so-deleted-lib.o `test -f 'deleted-lib.c' || echo '$(srcdir)/'`deleted-lib.c
-
-deleted_lib_so-deleted-lib.obj: deleted-lib.c
- $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -MT deleted_lib_so-deleted-lib.obj -MD -MP -MF $(DEPDIR)/deleted_lib_so-deleted-lib.Tpo -c -o deleted_lib_so-deleted-lib.obj `if test -f 'deleted-lib.c'; then $(CYGPATH_W) 'deleted-lib.c'; else $(CYGPATH_W) '$(srcdir)/deleted-lib.c'; fi`
- $(AM_V_at)$(am__mv) $(DEPDIR)/deleted_lib_so-deleted-lib.Tpo $(DEPDIR)/deleted_lib_so-deleted-lib.Po
-# $(AM_V_CC)source='deleted-lib.c' object='deleted_lib_so-deleted-lib.obj' libtool=no \
-# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
-# $(AM_V_CC_no)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -c -o deleted_lib_so-deleted-lib.obj `if test -f 'deleted-lib.c'; then $(CYGPATH_W) 'deleted-lib.c'; else $(CYGPATH_W) '$(srcdir)/deleted-lib.c'; fi`
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- else \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all $(check_PROGRAMS)
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-run-arextract.sh.log: run-arextract.sh
- @p='run-arextract.sh'; \
- b='run-arextract.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-arsymtest.sh.log: run-arsymtest.sh
- @p='run-arsymtest.sh'; \
- b='run-arsymtest.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-newfile.log: newfile$(EXEEXT)
- @p='newfile$(EXEEXT)'; \
- b='newfile'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-nlist.log: test-nlist$(EXEEXT)
- @p='test-nlist$(EXEEXT)'; \
- b='test-nlist'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-update1.log: update1$(EXEEXT)
- @p='update1$(EXEEXT)'; \
- b='update1'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-update2.log: update2$(EXEEXT)
- @p='update2$(EXEEXT)'; \
- b='update2'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-update3.log: update3$(EXEEXT)
- @p='update3$(EXEEXT)'; \
- b='update3'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-update4.log: update4$(EXEEXT)
- @p='update4$(EXEEXT)'; \
- b='update4'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-show-die-info.sh.log: run-show-die-info.sh
- @p='run-show-die-info.sh'; \
- b='run-show-die-info.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-get-files.sh.log: run-get-files.sh
- @p='run-get-files.sh'; \
- b='run-get-files.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-get-lines.sh.log: run-get-lines.sh
- @p='run-get-lines.sh'; \
- b='run-get-lines.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-get-pubnames.sh.log: run-get-pubnames.sh
- @p='run-get-pubnames.sh'; \
- b='run-get-pubnames.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-get-aranges.sh.log: run-get-aranges.sh
- @p='run-get-aranges.sh'; \
- b='run-get-aranges.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-allfcts.sh.log: run-allfcts.sh
- @p='run-allfcts.sh'; \
- b='run-allfcts.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-show-abbrev.sh.log: run-show-abbrev.sh
- @p='run-show-abbrev.sh'; \
- b='run-show-abbrev.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-line2addr.sh.log: run-line2addr.sh
- @p='run-line2addr.sh'; \
- b='run-line2addr.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-hash.log: hash$(EXEEXT)
- @p='hash$(EXEEXT)'; \
- b='hash'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-newscn.log: newscn$(EXEEXT)
- @p='newscn$(EXEEXT)'; \
- b='newscn'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test.sh.log: run-strip-test.sh
- @p='run-strip-test.sh'; \
- b='run-strip-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test2.sh.log: run-strip-test2.sh
- @p='run-strip-test2.sh'; \
- b='run-strip-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test3.sh.log: run-strip-test3.sh
- @p='run-strip-test3.sh'; \
- b='run-strip-test3.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test4.sh.log: run-strip-test4.sh
- @p='run-strip-test4.sh'; \
- b='run-strip-test4.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test5.sh.log: run-strip-test5.sh
- @p='run-strip-test5.sh'; \
- b='run-strip-test5.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test6.sh.log: run-strip-test6.sh
- @p='run-strip-test6.sh'; \
- b='run-strip-test6.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test7.sh.log: run-strip-test7.sh
- @p='run-strip-test7.sh'; \
- b='run-strip-test7.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test8.sh.log: run-strip-test8.sh
- @p='run-strip-test8.sh'; \
- b='run-strip-test8.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-groups.sh.log: run-strip-groups.sh
- @p='run-strip-groups.sh'; \
- b='run-strip-groups.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-reloc.sh.log: run-strip-reloc.sh
- @p='run-strip-reloc.sh'; \
- b='run-strip-reloc.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-unstrip-test.sh.log: run-unstrip-test.sh
- @p='run-unstrip-test.sh'; \
- b='run-unstrip-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-unstrip-test2.sh.log: run-unstrip-test2.sh
- @p='run-unstrip-test2.sh'; \
- b='run-unstrip-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-unstrip-M.sh.log: run-unstrip-M.sh
- @p='run-unstrip-M.sh'; \
- b='run-unstrip-M.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ecp-test.sh.log: run-ecp-test.sh
- @p='run-ecp-test.sh'; \
- b='run-ecp-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ecp-test2.sh.log: run-ecp-test2.sh
- @p='run-ecp-test2.sh'; \
- b='run-ecp-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-alldts.sh.log: run-alldts.sh
- @p='run-alldts.sh'; \
- b='run-alldts.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-elflint-test.sh.log: run-elflint-test.sh
- @p='run-elflint-test.sh'; \
- b='run-elflint-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-elflint-self.sh.log: run-elflint-self.sh
- @p='run-elflint-self.sh'; \
- b='run-elflint-self.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ranlib-test.sh.log: run-ranlib-test.sh
- @p='run-ranlib-test.sh'; \
- b='run-ranlib-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ranlib-test2.sh.log: run-ranlib-test2.sh
- @p='run-ranlib-test2.sh'; \
- b='run-ranlib-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ranlib-test3.sh.log: run-ranlib-test3.sh
- @p='run-ranlib-test3.sh'; \
- b='run-ranlib-test3.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ranlib-test4.sh.log: run-ranlib-test4.sh
- @p='run-ranlib-test4.sh'; \
- b='run-ranlib-test4.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addrscopes.sh.log: run-addrscopes.sh
- @p='run-addrscopes.sh'; \
- b='run-addrscopes.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strings-test.sh.log: run-strings-test.sh
- @p='run-strings-test.sh'; \
- b='run-strings-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-funcscopes.sh.log: run-funcscopes.sh
- @p='run-funcscopes.sh'; \
- b='run-funcscopes.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-find-prologues.sh.log: run-find-prologues.sh
- @p='run-find-prologues.sh'; \
- b='run-find-prologues.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-allregs.sh.log: run-allregs.sh
- @p='run-allregs.sh'; \
- b='run-allregs.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addrcfi.sh.log: run-addrcfi.sh
- @p='run-addrcfi.sh'; \
- b='run-addrcfi.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-nm-self.sh.log: run-nm-self.sh
- @p='run-nm-self.sh'; \
- b='run-nm-self.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-self.sh.log: run-readelf-self.sh
- @p='run-readelf-self.sh'; \
- b='run-readelf-self.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-test1.sh.log: run-readelf-test1.sh
- @p='run-readelf-test1.sh'; \
- b='run-readelf-test1.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-test2.sh.log: run-readelf-test2.sh
- @p='run-readelf-test2.sh'; \
- b='run-readelf-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-test3.sh.log: run-readelf-test3.sh
- @p='run-readelf-test3.sh'; \
- b='run-readelf-test3.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-test4.sh.log: run-readelf-test4.sh
- @p='run-readelf-test4.sh'; \
- b='run-readelf-test4.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-twofiles.sh.log: run-readelf-twofiles.sh
- @p='run-readelf-twofiles.sh'; \
- b='run-readelf-twofiles.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-macro.sh.log: run-readelf-macro.sh
- @p='run-readelf-macro.sh'; \
- b='run-readelf-macro.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-loc.sh.log: run-readelf-loc.sh
- @p='run-readelf-loc.sh'; \
- b='run-readelf-loc.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-aranges.sh.log: run-readelf-aranges.sh
- @p='run-readelf-aranges.sh'; \
- b='run-readelf-aranges.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-line.sh.log: run-readelf-line.sh
- @p='run-readelf-line.sh'; \
- b='run-readelf-line.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-native-test.sh.log: run-native-test.sh
- @p='run-native-test.sh'; \
- b='run-native-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-bug1-test.sh.log: run-bug1-test.sh
- @p='run-bug1-test.sh'; \
- b='run-bug1-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-debuglink.sh.log: run-debuglink.sh
- @p='run-debuglink.sh'; \
- b='run-debuglink.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-debugaltlink.sh.log: run-debugaltlink.sh
- @p='run-debugaltlink.sh'; \
- b='run-debugaltlink.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-buildid.sh.log: run-buildid.sh
- @p='run-buildid.sh'; \
- b='run-buildid.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-dwfl-bug-addr-overflow.log: dwfl-bug-addr-overflow$(EXEEXT)
- @p='dwfl-bug-addr-overflow$(EXEEXT)'; \
- b='dwfl-bug-addr-overflow'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addrname-test.sh.log: run-addrname-test.sh
- @p='run-addrname-test.sh'; \
- b='run-addrname-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-dwfl-bug-fd-leak.log: dwfl-bug-fd-leak$(EXEEXT)
- @p='dwfl-bug-fd-leak$(EXEEXT)'; \
- b='dwfl-bug-fd-leak'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-dwfl-bug-report.log: dwfl-bug-report$(EXEEXT)
- @p='dwfl-bug-report$(EXEEXT)'; \
- b='dwfl-bug-report'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwfl-bug-offline-rel.sh.log: run-dwfl-bug-offline-rel.sh
- @p='run-dwfl-bug-offline-rel.sh'; \
- b='run-dwfl-bug-offline-rel.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwfl-addr-sect.sh.log: run-dwfl-addr-sect.sh
- @p='run-dwfl-addr-sect.sh'; \
- b='run-dwfl-addr-sect.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-disasm-x86.sh.log: run-disasm-x86.sh
- @p='run-disasm-x86.sh'; \
- b='run-disasm-x86.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-disasm-x86-64.sh.log: run-disasm-x86-64.sh
- @p='run-disasm-x86-64.sh'; \
- b='run-disasm-x86-64.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-early-offscn.sh.log: run-early-offscn.sh
- @p='run-early-offscn.sh'; \
- b='run-early-offscn.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwarf-getmacros.sh.log: run-dwarf-getmacros.sh
- @p='run-dwarf-getmacros.sh'; \
- b='run-dwarf-getmacros.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-test-flag-nobits.sh.log: run-test-flag-nobits.sh
- @p='run-test-flag-nobits.sh'; \
- b='run-test-flag-nobits.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-prelink-addr-test.sh.log: run-prelink-addr-test.sh
- @p='run-prelink-addr-test.sh'; \
- b='run-prelink-addr-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwarf-getstring.sh.log: run-dwarf-getstring.sh
- @p='run-dwarf-getstring.sh'; \
- b='run-dwarf-getstring.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-rerequest_tag.sh.log: run-rerequest_tag.sh
- @p='run-rerequest_tag.sh'; \
- b='run-rerequest_tag.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-typeiter.sh.log: run-typeiter.sh
- @p='run-typeiter.sh'; \
- b='run-typeiter.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-d.sh.log: run-readelf-d.sh
- @p='run-readelf-d.sh'; \
- b='run-readelf-d.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-gdb_index.sh.log: run-readelf-gdb_index.sh
- @p='run-readelf-gdb_index.sh'; \
- b='run-readelf-gdb_index.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-unstrip-n.sh.log: run-unstrip-n.sh
- @p='run-unstrip-n.sh'; \
- b='run-unstrip-n.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-low_high_pc.sh.log: run-low_high_pc.sh
- @p='run-low_high_pc.sh'; \
- b='run-low_high_pc.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-macro-test.sh.log: run-macro-test.sh
- @p='run-macro-test.sh'; \
- b='run-macro-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-elf_cntl_gelf_getshdr.sh.log: run-elf_cntl_gelf_getshdr.sh
- @p='run-elf_cntl_gelf_getshdr.sh'; \
- b='run-elf_cntl_gelf_getshdr.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-test-archive64.sh.log: run-test-archive64.sh
- @p='run-test-archive64.sh'; \
- b='run-test-archive64.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-vmcoreinfo.sh.log: run-readelf-vmcoreinfo.sh
- @p='run-readelf-vmcoreinfo.sh'; \
- b='run-readelf-vmcoreinfo.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-mixed-corenote.sh.log: run-readelf-mixed-corenote.sh
- @p='run-readelf-mixed-corenote.sh'; \
- b='run-readelf-mixed-corenote.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwfllines.sh.log: run-dwfllines.sh
- @p='run-dwfllines.sh'; \
- b='run-dwfllines.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwfl-report-elf-align.sh.log: run-dwfl-report-elf-align.sh
- @p='run-dwfl-report-elf-align.sh'; \
- b='run-dwfl-report-elf-align.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addr2line-test.sh.log: run-addr2line-test.sh
- @p='run-addr2line-test.sh'; \
- b='run-addr2line-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addr2line-i-test.sh.log: run-addr2line-i-test.sh
- @p='run-addr2line-i-test.sh'; \
- b='run-addr2line-i-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addr2line-i-lex-test.sh.log: run-addr2line-i-lex-test.sh
- @p='run-addr2line-i-lex-test.sh'; \
- b='run-addr2line-i-lex-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-varlocs.sh.log: run-varlocs.sh
- @p='run-varlocs.sh'; \
- b='run-varlocs.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-funcretval.sh.log: run-funcretval.sh
- @p='run-funcretval.sh'; \
- b='run-funcretval.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-native.sh.log: run-backtrace-native.sh
- @p='run-backtrace-native.sh'; \
- b='run-backtrace-native.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-data.sh.log: run-backtrace-data.sh
- @p='run-backtrace-data.sh'; \
- b='run-backtrace-data.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-dwarf.sh.log: run-backtrace-dwarf.sh
- @p='run-backtrace-dwarf.sh'; \
- b='run-backtrace-dwarf.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-native-biarch.sh.log: run-backtrace-native-biarch.sh
- @p='run-backtrace-native-biarch.sh'; \
- b='run-backtrace-native-biarch.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-native-core.sh.log: run-backtrace-native-core.sh
- @p='run-backtrace-native-core.sh'; \
- b='run-backtrace-native-core.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-native-core-biarch.sh.log: run-backtrace-native-core-biarch.sh
- @p='run-backtrace-native-core-biarch.sh'; \
- b='run-backtrace-native-core-biarch.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-x86_64.sh.log: run-backtrace-core-x86_64.sh
- @p='run-backtrace-core-x86_64.sh'; \
- b='run-backtrace-core-x86_64.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-i386.sh.log: run-backtrace-core-i386.sh
- @p='run-backtrace-core-i386.sh'; \
- b='run-backtrace-core-i386.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-ppc.sh.log: run-backtrace-core-ppc.sh
- @p='run-backtrace-core-ppc.sh'; \
- b='run-backtrace-core-ppc.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-s390x.sh.log: run-backtrace-core-s390x.sh
- @p='run-backtrace-core-s390x.sh'; \
- b='run-backtrace-core-s390x.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-s390.sh.log: run-backtrace-core-s390.sh
- @p='run-backtrace-core-s390.sh'; \
- b='run-backtrace-core-s390.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-aarch64.sh.log: run-backtrace-core-aarch64.sh
- @p='run-backtrace-core-aarch64.sh'; \
- b='run-backtrace-core-aarch64.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-demangle.sh.log: run-backtrace-demangle.sh
- @p='run-backtrace-demangle.sh'; \
- b='run-backtrace-demangle.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-stack-d-test.sh.log: run-stack-d-test.sh
- @p='run-stack-d-test.sh'; \
- b='run-stack-d-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-stack-i-test.sh.log: run-stack-i-test.sh
- @p='run-stack-i-test.sh'; \
- b='run-stack-i-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-dwz-multi.sh.log: run-readelf-dwz-multi.sh
- @p='run-readelf-dwz-multi.sh'; \
- b='run-readelf-dwz-multi.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-allfcts-multi.sh.log: run-allfcts-multi.sh
- @p='run-allfcts-multi.sh'; \
- b='run-allfcts-multi.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-deleted.sh.log: run-deleted.sh
- @p='run-deleted.sh'; \
- b='run-deleted.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-linkmap-cut.sh.log: run-linkmap-cut.sh
- @p='run-linkmap-cut.sh'; \
- b='run-linkmap-cut.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-aggregate-size.sh.log: run-aggregate-size.sh
- @p='run-aggregate-size.sh'; \
- b='run-aggregate-size.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-vdsosyms.log: vdsosyms$(EXEEXT)
- @p='vdsosyms$(EXEEXT)'; \
- b='vdsosyms'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-A.sh.log: run-readelf-A.sh
- @p='run-readelf-A.sh'; \
- b='run-readelf-A.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-msg_tst.log: msg_tst$(EXEEXT)
- @p='msg_tst$(EXEEXT)'; \
- b='msg_tst'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-md5-sha1-test.log: md5-sha1-test$(EXEEXT)
- @p='md5-sha1-test$(EXEEXT)'; \
- b='md5-sha1-test'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-s.sh.log: run-readelf-s.sh
- @p='run-readelf-s.sh'; \
- b='run-readelf-s.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwflsyms.sh.log: run-dwflsyms.sh
- @p='run-dwflsyms.sh'; \
- b='run-dwflsyms.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-zdebug.sh.log: run-readelf-zdebug.sh
- @p='run-readelf-zdebug.sh'; \
- b='run-readelf-zdebug.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst1.log: asm-tst1$(EXEEXT)
- @p='asm-tst1$(EXEEXT)'; \
- b='asm-tst1'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst2.log: asm-tst2$(EXEEXT)
- @p='asm-tst2$(EXEEXT)'; \
- b='asm-tst2'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst3.log: asm-tst3$(EXEEXT)
- @p='asm-tst3$(EXEEXT)'; \
- b='asm-tst3'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst4.log: asm-tst4$(EXEEXT)
- @p='asm-tst4$(EXEEXT)'; \
- b='asm-tst4'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst5.log: asm-tst5$(EXEEXT)
- @p='asm-tst5$(EXEEXT)'; \
- b='asm-tst5'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst6.log: asm-tst6$(EXEEXT)
- @p='asm-tst6$(EXEEXT)'; \
- b='asm-tst6'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst7.log: asm-tst7$(EXEEXT)
- @p='asm-tst7$(EXEEXT)'; \
- b='asm-tst7'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst8.log: asm-tst8$(EXEEXT)
- @p='asm-tst8$(EXEEXT)'; \
- b='asm-tst8'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst9.log: asm-tst9$(EXEEXT)
- @p='asm-tst9$(EXEEXT)'; \
- b='asm-tst9'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-#.test$(EXEEXT).log:
-# @p='$<'; \
-# $(am__set_b); \
-# $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-# --log-file $$b.log --trs-file $$b.trs \
-# $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-# "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-#installcheck-local:
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am: installcheck-local
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: check-am install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic cscopelist-am ctags ctags-am \
- distclean distclean-compile distclean-generic distclean-tags \
- distdir dvi dvi-am html html-am info info-am install \
- install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installcheck-local \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am recheck tags tags-am uninstall uninstall-am
-
-
-%.os: %.c %.o
- if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
- -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
- then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
- rm -f "$(DEPDIR)/$*.Tpo"; \
- else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
- fi
-# $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Substitute $(COMPILE).
-backtrace-child-biarch$(EXEEXT): backtrace-child.c
- $(CC_BIARCH) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS) $(backtrace_child_CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \
- -o $@ $<
-
-#export ELFUTILS_DISABLE_BIARCH = 1
-
-#export ELFUTILS_DISABLE_DEMANGLE = 1
-
-installcheck-local:
- $(MAKE) $(AM_MAKEFLAGS) \
- TESTS_ENVIRONMENT="$(installed_TESTS_ENVIRONMENT)" \
- LOG_COMPILER="$(installed_LOG_COMPILER)" check-TESTS
-
-#check: check-am coverage
-#.PHONY: coverage
-#coverage:
-# -$(srcdir)/coverage.sh
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
deleted file mode 100644
index 303f7836..00000000
--- a/src/tests/Makefile.am
+++ /dev/null
@@ -1,429 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## Copyright (C) 1996-2014 Red Hat, Inc.
-## This file is part of elfutils.
-##
-## This file is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 3 of the License, or
-## (at your option) any later version.
-##
-## elfutils is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program. If not, see <http://www.gnu.org/licenses/>.
-##
-include $(top_srcdir)/config/eu.am
-BUILD_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
-
-AM_LDFLAGS =
-
-if !STANDALONE
-AM_CPPFLAGS += -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
- -I$(top_srcdir)/libdwfl -I$(top_srcdir)/libdwelf \
- -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
- -I$(top_srcdir)/lib -I..
-AM_LDFLAGS += -Wl,-rpath-link,../libasm:../libdw:../libelf
-endif
-
-if TESTS_RPATH
-AM_LDFLAGS += -Wl,-rpath,$(BUILD_RPATH)
-tests_rpath = yes
-else
-tests_rpath = no
-endif
-
-check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
- showptable update1 update2 update3 update4 test-nlist \
- show-die-info get-files get-lines get-pubnames \
- get-aranges allfcts line2addr addrscopes funcscopes \
- show-abbrev hash newscn ecp dwflmodtest \
- find-prologues funcretval allregs rdwrmmap \
- dwfl-bug-addr-overflow arls dwfl-bug-fd-leak \
- dwfl-addr-sect dwfl-bug-report early-offscn \
- dwfl-bug-getmodules dwarf-getmacros addrcfi \
- test-flag-nobits dwarf-getstring rerequest_tag \
- alldts md5-sha1-test typeiter typeiter2 low_high_pc \
- test-elf_cntl_gelf_getshdr dwflsyms dwfllines \
- dwfl-report-elf-align varlocs backtrace backtrace-child \
- backtrace-data backtrace-dwarf debuglink debugaltlink \
- buildid deleted deleted-lib.so aggregate_size vdsosyms
-
-asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
- asm-tst6 asm-tst7 asm-tst8 asm-tst9
-
-if BIARCH
-check_PROGRAMS += backtrace-child-biarch
-endif
-
-# Substitute $(COMPILE).
-backtrace-child-biarch$(EXEEXT): backtrace-child.c
- $(CC_BIARCH) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS) $(backtrace_child_CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \
- -o $@ $<
-
-TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \
- update1 update2 update3 update4 \
- run-show-die-info.sh run-get-files.sh run-get-lines.sh \
- run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \
- run-show-abbrev.sh run-line2addr.sh hash \
- newscn run-strip-test.sh run-strip-test2.sh \
- run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \
- run-strip-test6.sh run-strip-test7.sh run-strip-test8.sh \
- run-strip-groups.sh run-strip-reloc.sh \
- run-unstrip-test.sh run-unstrip-test2.sh run-unstrip-M.sh \
- run-ecp-test.sh run-ecp-test2.sh run-alldts.sh \
- run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \
- run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh \
- run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
- run-find-prologues.sh run-allregs.sh run-addrcfi.sh \
- run-nm-self.sh run-readelf-self.sh \
- run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
- run-readelf-test4.sh run-readelf-twofiles.sh \
- run-readelf-macro.sh run-readelf-loc.sh \
- run-readelf-aranges.sh run-readelf-line.sh \
- run-native-test.sh run-bug1-test.sh \
- run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
- dwfl-bug-addr-overflow run-addrname-test.sh \
- dwfl-bug-fd-leak dwfl-bug-report \
- run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \
- run-disasm-x86.sh run-disasm-x86-64.sh \
- run-early-offscn.sh run-dwarf-getmacros.sh \
- run-test-flag-nobits.sh run-prelink-addr-test.sh \
- run-dwarf-getstring.sh run-rerequest_tag.sh run-typeiter.sh \
- run-readelf-d.sh run-readelf-gdb_index.sh run-unstrip-n.sh \
- run-low_high_pc.sh run-macro-test.sh run-elf_cntl_gelf_getshdr.sh \
- run-test-archive64.sh run-readelf-vmcoreinfo.sh \
- run-readelf-mixed-corenote.sh run-dwfllines.sh \
- run-dwfl-report-elf-align.sh run-addr2line-test.sh \
- run-addr2line-i-test.sh run-addr2line-i-lex-test.sh \
- run-varlocs.sh run-funcretval.sh \
- run-backtrace-native.sh run-backtrace-data.sh run-backtrace-dwarf.sh \
- run-backtrace-native-biarch.sh run-backtrace-native-core.sh \
- run-backtrace-native-core-biarch.sh run-backtrace-core-x86_64.sh \
- run-backtrace-core-i386.sh run-backtrace-core-ppc.sh \
- run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
- run-backtrace-core-aarch64.sh \
- run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \
- run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
- run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh
-
-if !BIARCH
-export ELFUTILS_DISABLE_BIARCH = 1
-endif
-
-if !DEMANGLE
-export ELFUTILS_DISABLE_DEMANGLE = 1
-endif
-
-if !STANDALONE
-check_PROGRAMS += msg_tst md5-sha1-test
-TESTS += msg_tst md5-sha1-test
-endif
-
-if LZMA
-TESTS += run-readelf-s.sh run-dwflsyms.sh
-endif
-
-if ZLIB
-TESTS += run-readelf-zdebug.sh
-endif
-
-if HAVE_LIBASM
-check_PROGRAMS += $(asm_TESTS)
-TESTS += $(asm_TESTS)
-endif
-
-EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
- run-show-die-info.sh run-get-files.sh run-get-lines.sh \
- run-get-pubnames.sh run-get-aranges.sh \
- run-show-abbrev.sh run-strip-test.sh \
- run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \
- testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
- testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \
- testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \
- testfile13.bz2 run-strip-test3.sh run-allfcts.sh \
- testfile_class_func.bz2 testfile_nested_funcs.bz2 \
- run-line2addr.sh run-elflint-test.sh testfile14.bz2 \
- run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
- run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \
- run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \
- hello_ppc64.ko.bz2 hello_s390.ko.bz2 hello_aarch64.ko.bz2 \
- run-unstrip-test.sh run-unstrip-test2.sh run-unstrip-M.sh\
- run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \
- run-ranlib-test3.sh run-ranlib-test4.sh \
- run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
- run-nm-self.sh run-readelf-self.sh run-addrcfi.sh \
- run-find-prologues.sh run-allregs.sh run-native-test.sh \
- run-addrname-test.sh run-dwfl-bug-offline-rel.sh \
- run-dwfl-addr-sect.sh run-early-offscn.sh \
- run-dwarf-getmacros.sh run-test-flag-nobits.sh \
- run-dwarf-getstring.sh run-rerequest_tag.sh run-alldts.sh \
- testfile15.bz2 testfile15.debug.bz2 \
- testfile16.bz2 testfile16.debug.bz2 \
- testfile17.bz2 testfile17.debug.bz2 \
- testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \
- testfile20.bz2 testfile20.index.bz2 \
- testfile21.bz2 testfile21.index.bz2 \
- testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \
- testfile26.bz2 testfile27.bz2 \
- coverage.sh test-subr.sh test-wrapper.sh \
- run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
- run-readelf-test4.sh run-readelf-twofiles.sh \
- run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \
- run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
- testfile29.bz2 testfile29.rdwr.bz2 \
- testfile30.bz2 testfile31.bz2 testfile32.bz2 testfile33.bz2 \
- testfile34.bz2 testfile35.bz2 testfile35.debug.bz2 \
- testfile36.bz2 testfile36.debug.bz2 \
- testfile37.bz2 testfile37.debug.bz2 \
- testfile38.bz2 testfile39.bz2 testfile40.bz2 testfile40.debug.bz2 \
- testfile41.bz2 testfile42.bz2 testfile42_noshdrs.bz2 \
- testfile43.bz2 \
- testfile44.S.bz2 testfile44.expect.bz2 run-disasm-x86.sh \
- testfile45.S.bz2 testfile45.expect.bz2 run-disasm-x86-64.sh \
- testfile46.bz2 testfile47.bz2 testfile48.bz2 testfile48.debug.bz2 \
- testfile49.bz2 testfile50.bz2 testfile51.bz2 \
- testfile-macros-0xff.bz2 \
- run-readelf-macro.sh testfilemacro.bz2 \
- run-readelf-loc.sh testfileloc.bz2 \
- run-readelf-aranges.sh run-readelf-line.sh testfilefoobarbaz.bz2 \
- run-readelf-dwz-multi.sh libtestfile_multi_shared.so.bz2 \
- testfile_multi.dwz.bz2 testfile_multi_main.bz2 \
- testfile-dwzstr.bz2 testfile-dwzstr.multi.bz2 \
- run-allfcts-multi.sh \
- test-offset-loop.bz2 test-offset-loop.alt.bz2 \
- run-prelink-addr-test.sh \
- testfile52-32.so.bz2 testfile52-32.so.debug.bz2 \
- testfile52-32.prelink.so.bz2 testfile52-32.noshdrs.so.bz2 \
- testfile52-64.so.bz2 testfile52-64.so.debug.bz2 \
- testfile52-64.prelink.so.bz2 testfile52-64.noshdrs.so.bz2 \
- testfile53-32.bz2 testfile53-32.debug.bz2 \
- testfile53-32.prelink.bz2 testfile53-64.bz2 \
- testfile53-64.debug.bz2 testfile53-64.prelink.bz2 \
- testfile54-32.so.bz2 testfile54-32.so.debug.bz2 \
- testfile54-32.prelink.so.bz2 testfile54-32.noshdrs.so.bz2 \
- testfile54-64.so.bz2 testfile54-64.so.debug.bz2 \
- testfile54-64.prelink.so.bz2 testfile54-64.noshdrs.so.bz2 \
- testfile55-32.bz2 testfile55-32.debug.bz2 \
- testfile55-32.prelink.bz2 testfile55-64.bz2 \
- testfile55-64.debug.bz2 testfile55-64.prelink.bz2 \
- testfile56.bz2 testfile57.bz2 testfile58.bz2 \
- run-typeiter.sh testfile59.bz2 \
- run-readelf-d.sh testlib_dynseg.so.bz2 \
- run-readelf-gdb_index.sh testfilegdbindex5.bz2 \
- testfilegdbindex7.bz2 \
- run-readelf-s.sh testfilebazdbg.bz2 testfilebazdyn.bz2 \
- testfilebazmin.bz2 testfilebazdbg.debug.bz2 testfilebazmdb.bz2 \
- testfilebaztab.bz2 testfilebasmin.bz2 testfilebaxmin.bz2 \
- testfilebazdbg_pl.bz2 testfilebazmin_pl.bz2 \
- testfilebazdbg_plr.bz2 testfilebazmin_plr.bz2 \
- testfilebazdbgppc64.bz2 testfilebazdbgppc64.debug.bz2 \
- testfilebazdbgppc64_pl.bz2 testfilebazdbgppc64_plr.bz2 \
- testfilebazdynppc64.bz2 testfilebazmdbppc64.bz2 \
- testfilebazminppc64.bz2 testfilebazminppc64_pl.bz2 \
- testfilebazminppc64_plr.bz2 testfilebaztabppc64.bz2 \
- run-dwflsyms.sh \
- run-unstrip-n.sh testcore-rtlib.bz2 testcore-rtlib-ppc.bz2 \
- run-low_high_pc.sh testfile_low_high_pc.bz2 \
- run-macro-test.sh testfile-macinfo.bz2 testfile-macros.bz2 \
- run-elf_cntl_gelf_getshdr.sh \
- run-test-archive64.sh testarchive64.a.bz2 \
- testfile60.bz2 testfile61.bz2 \
- run-readelf-vmcoreinfo.sh testfile62.bz2 \
- run-readelf-mixed-corenote.sh testfile63.bz2 testfile64.bz2 \
- testfile65.bz2 testfile67.bz2 testfile68.bz2 \
- testfile69.core.bz2 testfile69.so.bz2 \
- testfile70.core.bz2 testfile70.exec.bz2 testfile71.bz2 \
- run-dwfllines.sh run-dwfl-report-elf-align.sh \
- testfile-dwfl-report-elf-align-shlib.so.bz2 \
- testfilenolines.bz2 test-core-lib.so.bz2 test-core.core.bz2 \
- test-core.exec.bz2 run-addr2line-test.sh \
- run-addr2line-i-test.sh testfile-inlines.bz2 \
- run-addr2line-i-lex-test.sh testfile-lex-inlines.bz2 \
- testfileppc32.bz2 testfileppc64.bz2 \
- testfiles390.bz2 testfiles390x.bz2 \
- testfilearm.bz2 testfileaarch64.bz2 \
- run-varlocs.sh \
- testfile_const_type.c testfile_const_type.bz2 \
- testfile_implicit_pointer.c testfile_implicit_pointer.bz2 \
- testfile_parameter_ref.c testfile_parameter_ref.bz2 \
- testfile_entry_value.c testfile_entry_value.bz2 \
- testfile_implicit_value.c testfile_implicit_value.bz2 \
- testfile_aarch64_core.bz2 testfile_i686_core.bz2 \
- run-funcretval.sh funcretval_test.c funcretval_test_aarch64.bz2 \
- run-backtrace-data.sh run-backtrace-dwarf.sh cleanup-13.c \
- run-backtrace-native.sh run-backtrace-native-biarch.sh \
- run-backtrace-native-core.sh run-backtrace-native-core-biarch.sh \
- run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
- backtrace-subr.sh backtrace.i386.core.bz2 backtrace.i386.exec.bz2 \
- backtrace.x86_64.core.bz2 backtrace.x86_64.exec.bz2 \
- backtrace.ppc.core.bz2 backtrace.ppc.exec.bz2 \
- run-backtrace-core-ppc.sh testfile66.bz2 testfile66.core.bz2 \
- backtrace.s390x.core.bz2 backtrace.s390x.exec.bz2 \
- backtrace.s390.core.bz2 backtrace.s390.exec.bz2 \
- run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
- run-backtrace-core-aarch64.sh \
- backtrace.aarch64.core.bz2 backtrace.aarch64.exec.bz2 \
- run-backtrace-demangle.sh testfile-backtrace-demangle.bz2 \
- testfile-backtrace-demangle.cc \
- testfile-backtrace-demangle.core.bz2 \
- run-stack-d-test.sh run-stack-i-test.sh \
- testfiledwarfinlines.bz2 testfiledwarfinlines.core.bz2 \
- run-readelf-zdebug.sh testfile-debug.bz2 testfile-zdebug.bz2 \
- run-deleted.sh run-linkmap-cut.sh linkmap-cut-lib.so.bz2 \
- linkmap-cut.bz2 linkmap-cut.core.bz2 \
- run-aggregate-size.sh testfile-sizes1.o.bz2 testfile-sizes2.o.bz2 \
- testfile-sizes3.o.bz2 \
- run-readelf-A.sh testfileppc32attrs.o.bz2
-
-if USE_VALGRIND
-valgrind_cmd='valgrind -q --error-exitcode=1 --run-libc-freeres=no'
-endif
-
-
-installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \
- bindir=$(DESTDIR)$(bindir); \
- LC_ALL=C; LANG=C; \
- VALGRIND_CMD=$(valgrind_cmd); \
- abs_srcdir=$(abs_srcdir); \
- abs_builddir=$(abs_builddir); \
- abs_top_builddir=$(abs_top_builddir); \
- export abs_srcdir; export abs_builddir; \
- export abs_top_builddir; \
- export libdir; export bindir; \
- export LC_ALL; export LANG; export VALGRIND_CMD; \
- NM=$(NM); export NM;
-installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
- installed $(tests_rpath) \
- '$(program_transform_name)'
-if STANDALONE
-TESTS_ENVIRONMENT = $(installed_TESTS_ENVIRONMENT)
-LOG_COMPILER = $(installed_LOG_COMPILER)
-else !STANDALONE
-TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD=$(valgrind_cmd); \
- abs_srcdir=$(abs_srcdir); abs_builddir=$(abs_builddir); \
- abs_top_builddir=$(abs_top_builddir); \
- export abs_srcdir; export abs_builddir; \
- export abs_top_builddir; \
- export LC_ALL; export LANG; export VALGRIND_CMD; \
- NM=$(NM); export NM;
-LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
- $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm
-
-installcheck-local:
- $(MAKE) $(AM_MAKEFLAGS) \
- TESTS_ENVIRONMENT="$(installed_TESTS_ENVIRONMENT)" \
- LOG_COMPILER="$(installed_LOG_COMPILER)" check-TESTS
-endif !STANDALONE
-
-if STANDALONE
-libdw = -ldw
-libelf = -lelf
-libasm = -lasm
-libebl = -lebl
-else !STANDALONE
-if BUILD_STATIC
-libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
-libelf = ../libelf/libelf.a
-libasm = ../libasm/libasm.a
-else
-libdw = ../libdw/libdw.so
-libelf = ../libelf/libelf.so
-libasm = ../libasm/libasm.so
-endif
-libebl = ../libebl/libebl.a
-libeu = ../lib/libeu.a
-endif !STANDALONE
-
-arextract_LDADD = $(libelf)
-arsymtest_LDADD = $(libelf)
-newfile_LDADD = $(libelf)
-saridx_LDADD = $(libelf)
-scnnames_LDADD = $(libelf)
-sectiondump_LDADD = $(libelf)
-showptable_LDADD = $(libelf)
-hash_LDADD = $(libelf)
-test_nlist_LDADD = $(libelf)
-msg_tst_LDADD = $(libelf)
-newscn_LDADD = $(libelf)
-early_offscn_LDADD = $(libelf)
-ecp_LDADD = $(libelf)
-update1_LDADD = $(libelf)
-update2_LDADD = $(libelf)
-update3_LDADD = $(libebl) $(libelf)
-update4_LDADD = $(libebl) $(libelf)
-show_die_info_LDADD = $(libdw) $(libelf)
-get_pubnames_LDADD = $(libdw) $(libelf)
-show_abbrev_LDADD = $(libdw) $(libelf)
-get_lines_LDADD = $(libdw) $(libelf)
-get_files_LDADD = $(libdw) $(libelf)
-get_aranges_LDADD = $(libdw) $(libelf)
-allfcts_LDADD = $(libdw) $(libelf)
-line2addr_LDADD = $(libdw)
-addrscopes_LDADD = $(libdw)
-funcscopes_LDADD = $(libdw)
-funcretval_LDADD = $(libdw)
-allregs_LDADD = $(libdw)
-find_prologues_LDADD = $(libdw)
-#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf)
-asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-rdwrmmap_LDADD = $(libelf)
-dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-arls_LDADD = $(libelf)
-dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwarf_getmacros_LDADD = $(libdw)
-dwarf_getstring_LDADD = $(libdw)
-addrcfi_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-test_flag_nobits_LDADD = $(libelf)
-rerequest_tag_LDADD = $(libdw)
-alldts_LDADD = $(libebl) $(libelf)
-md5_sha1_test_LDADD = $(libeu)
-typeiter_LDADD = $(libdw) $(libelf)
-typeiter2_LDADD = $(libdw) $(libelf)
-low_high_pc_LDADD = $(libdw) $(libelf)
-test_elf_cntl_gelf_getshdr_LDADD = $(libelf)
-dwflsyms_LDADD = $(libdw) $(libelf)
-dwfllines_LDADD = $(libdw) $(libelf)
-dwfl_report_elf_align_LDADD = $(libdw)
-varlocs_LDADD = $(libdw) $(libelf)
-backtrace_LDADD = $(libdw) $(libelf)
-# backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables:
-backtrace_child_CFLAGS = -fPIE
-backtrace_child_LDFLAGS = -pie -pthread
-backtrace_child_biarch_SOURCES = backtrace-child.c
-backtrace_data_LDADD = $(libdw) $(libelf)
-backtrace_dwarf_CFLAGS = -Wno-unused-parameter
-backtrace_dwarf_LDADD = $(libdw) $(libelf)
-debuglink_LDADD = $(libdw) $(libelf)
-debugaltlink_LDADD = $(libdw) $(libelf)
-buildid_LDADD = $(libdw) $(libelf)
-deleted_LDADD = ./deleted-lib.so
-deleted_lib_so_LDFLAGS = -shared -rdynamic
-deleted_lib_so_CFLAGS = -fPIC -fasynchronous-unwind-tables
-aggregate_size_LDADD = $(libdw) $(libelf)
-vdsosyms_LDADD = $(libdw) $(libelf)
-
-if GCOV
-check: check-am coverage
-.PHONY: coverage
-coverage:
- -$(srcdir)/coverage.sh
-endif
diff --git a/src/tests/Makefile.in b/src/tests/Makefile.in
deleted file mode 100644
index e7ea9223..00000000
--- a/src/tests/Makefile.in
+++ /dev/null
@@ -1,2932 +0,0 @@
-# Makefile.in generated by automake 1.14.1 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994-2013 Free Software Foundation, Inc.
-
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
-am__make_running_with_option = \
- case $${target_option-} in \
- ?) ;; \
- *) echo "am__make_running_with_option: internal error: invalid" \
- "target option '$${target_option-}' specified" >&2; \
- exit 1;; \
- esac; \
- has_opt=no; \
- sane_makeflags=$$MAKEFLAGS; \
- if $(am__is_gnu_make); then \
- sane_makeflags=$$MFLAGS; \
- else \
- case $$MAKEFLAGS in \
- *\\[\ \ ]*) \
- bs=\\; \
- sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
- | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
- esac; \
- fi; \
- skip_next=no; \
- strip_trailopt () \
- { \
- flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
- }; \
- for flg in $$sane_makeflags; do \
- test $$skip_next = yes && { skip_next=no; continue; }; \
- case $$flg in \
- *=*|--*) continue;; \
- -*I) strip_trailopt 'I'; skip_next=yes;; \
- -*I?*) strip_trailopt 'I';; \
- -*O) strip_trailopt 'O'; skip_next=yes;; \
- -*O?*) strip_trailopt 'O';; \
- -*l) strip_trailopt 'l'; skip_next=yes;; \
- -*l?*) strip_trailopt 'l';; \
- -[dEDm]) skip_next=yes;; \
- -[JT]) skip_next=yes;; \
- esac; \
- case $$flg in \
- *$$target_option*) has_opt=yes; break;; \
- esac; \
- done; \
- test $$has_opt = yes
-am__make_dryrun = (target_option=n; $(am__make_running_with_option))
-am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-DIST_COMMON = $(top_srcdir)/config/eu.am $(srcdir)/Makefile.in \
- $(srcdir)/Makefile.am $(top_srcdir)/config/depcomp \
- $(top_srcdir)/config/test-driver ChangeLog
-@STANDALONE_FALSE@am__append_1 = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
-@STANDALONE_FALSE@ -I$(top_srcdir)/libdwfl -I$(top_srcdir)/libdwelf \
-@STANDALONE_FALSE@ -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
-@STANDALONE_FALSE@ -I$(top_srcdir)/lib -I..
-
-@STANDALONE_FALSE@am__append_2 = -Wl,-rpath-link,../libasm:../libdw:../libelf
-@TESTS_RPATH_TRUE@am__append_3 = -Wl,-rpath,$(BUILD_RPATH)
-check_PROGRAMS = arextract$(EXEEXT) arsymtest$(EXEEXT) \
- newfile$(EXEEXT) saridx$(EXEEXT) scnnames$(EXEEXT) \
- sectiondump$(EXEEXT) showptable$(EXEEXT) update1$(EXEEXT) \
- update2$(EXEEXT) update3$(EXEEXT) update4$(EXEEXT) \
- test-nlist$(EXEEXT) show-die-info$(EXEEXT) get-files$(EXEEXT) \
- get-lines$(EXEEXT) get-pubnames$(EXEEXT) get-aranges$(EXEEXT) \
- allfcts$(EXEEXT) line2addr$(EXEEXT) addrscopes$(EXEEXT) \
- funcscopes$(EXEEXT) show-abbrev$(EXEEXT) hash$(EXEEXT) \
- newscn$(EXEEXT) ecp$(EXEEXT) dwflmodtest$(EXEEXT) \
- find-prologues$(EXEEXT) funcretval$(EXEEXT) allregs$(EXEEXT) \
- rdwrmmap$(EXEEXT) dwfl-bug-addr-overflow$(EXEEXT) \
- arls$(EXEEXT) dwfl-bug-fd-leak$(EXEEXT) \
- dwfl-addr-sect$(EXEEXT) dwfl-bug-report$(EXEEXT) \
- early-offscn$(EXEEXT) dwfl-bug-getmodules$(EXEEXT) \
- dwarf-getmacros$(EXEEXT) addrcfi$(EXEEXT) \
- test-flag-nobits$(EXEEXT) dwarf-getstring$(EXEEXT) \
- rerequest_tag$(EXEEXT) alldts$(EXEEXT) md5-sha1-test$(EXEEXT) \
- typeiter$(EXEEXT) typeiter2$(EXEEXT) low_high_pc$(EXEEXT) \
- test-elf_cntl_gelf_getshdr$(EXEEXT) dwflsyms$(EXEEXT) \
- dwfllines$(EXEEXT) dwfl-report-elf-align$(EXEEXT) \
- varlocs$(EXEEXT) backtrace$(EXEEXT) backtrace-child$(EXEEXT) \
- backtrace-data$(EXEEXT) backtrace-dwarf$(EXEEXT) \
- debuglink$(EXEEXT) debugaltlink$(EXEEXT) buildid$(EXEEXT) \
- deleted$(EXEEXT) deleted-lib.so$(EXEEXT) \
- aggregate_size$(EXEEXT) vdsosyms$(EXEEXT) $(am__EXEEXT_1) \
- $(am__EXEEXT_2) $(am__EXEEXT_4)
-@BIARCH_TRUE@am__append_4 = backtrace-child-biarch
-TESTS = run-arextract.sh run-arsymtest.sh newfile$(EXEEXT) \
- test-nlist$(EXEEXT) update1$(EXEEXT) update2$(EXEEXT) \
- update3$(EXEEXT) update4$(EXEEXT) run-show-die-info.sh \
- run-get-files.sh run-get-lines.sh run-get-pubnames.sh \
- run-get-aranges.sh run-allfcts.sh run-show-abbrev.sh \
- run-line2addr.sh hash$(EXEEXT) newscn$(EXEEXT) \
- run-strip-test.sh run-strip-test2.sh run-strip-test3.sh \
- run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
- run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \
- run-strip-reloc.sh run-unstrip-test.sh run-unstrip-test2.sh \
- run-unstrip-M.sh run-ecp-test.sh run-ecp-test2.sh \
- run-alldts.sh run-elflint-test.sh run-elflint-self.sh \
- run-ranlib-test.sh run-ranlib-test2.sh run-ranlib-test3.sh \
- run-ranlib-test4.sh run-addrscopes.sh run-strings-test.sh \
- run-funcscopes.sh run-find-prologues.sh run-allregs.sh \
- run-addrcfi.sh run-nm-self.sh run-readelf-self.sh \
- run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
- run-readelf-test4.sh run-readelf-twofiles.sh \
- run-readelf-macro.sh run-readelf-loc.sh run-readelf-aranges.sh \
- run-readelf-line.sh run-native-test.sh run-bug1-test.sh \
- run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
- dwfl-bug-addr-overflow$(EXEEXT) run-addrname-test.sh \
- dwfl-bug-fd-leak$(EXEEXT) dwfl-bug-report$(EXEEXT) \
- run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \
- run-disasm-x86.sh run-disasm-x86-64.sh run-early-offscn.sh \
- run-dwarf-getmacros.sh run-test-flag-nobits.sh \
- run-prelink-addr-test.sh run-dwarf-getstring.sh \
- run-rerequest_tag.sh run-typeiter.sh run-readelf-d.sh \
- run-readelf-gdb_index.sh run-unstrip-n.sh run-low_high_pc.sh \
- run-macro-test.sh run-elf_cntl_gelf_getshdr.sh \
- run-test-archive64.sh run-readelf-vmcoreinfo.sh \
- run-readelf-mixed-corenote.sh run-dwfllines.sh \
- run-dwfl-report-elf-align.sh run-addr2line-test.sh \
- run-addr2line-i-test.sh run-addr2line-i-lex-test.sh \
- run-varlocs.sh run-funcretval.sh run-backtrace-native.sh \
- run-backtrace-data.sh run-backtrace-dwarf.sh \
- run-backtrace-native-biarch.sh run-backtrace-native-core.sh \
- run-backtrace-native-core-biarch.sh \
- run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
- run-backtrace-core-ppc.sh run-backtrace-core-s390x.sh \
- run-backtrace-core-s390.sh run-backtrace-core-aarch64.sh \
- run-backtrace-demangle.sh run-stack-d-test.sh \
- run-stack-i-test.sh run-readelf-dwz-multi.sh \
- run-allfcts-multi.sh run-deleted.sh run-linkmap-cut.sh \
- run-aggregate-size.sh vdsosyms$(EXEEXT) run-readelf-A.sh \
- $(am__EXEEXT_2) $(am__append_7) $(am__append_8) \
- $(am__EXEEXT_4)
-@STANDALONE_FALSE@am__append_5 = msg_tst md5-sha1-test
-@STANDALONE_FALSE@am__append_6 = msg_tst md5-sha1-test
-@LZMA_TRUE@am__append_7 = run-readelf-s.sh run-dwflsyms.sh
-@ZLIB_TRUE@am__append_8 = run-readelf-zdebug.sh
-@HAVE_LIBASM_TRUE@am__append_9 = $(asm_TESTS)
-@HAVE_LIBASM_TRUE@am__append_10 = $(asm_TESTS)
-subdir = tests
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
- $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/zip.m4 \
- $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-@BIARCH_TRUE@am__EXEEXT_1 = backtrace-child-biarch$(EXEEXT)
-@STANDALONE_FALSE@am__EXEEXT_2 = msg_tst$(EXEEXT) \
-@STANDALONE_FALSE@ md5-sha1-test$(EXEEXT)
-am__EXEEXT_3 = asm-tst1$(EXEEXT) asm-tst2$(EXEEXT) asm-tst3$(EXEEXT) \
- asm-tst4$(EXEEXT) asm-tst5$(EXEEXT) asm-tst6$(EXEEXT) \
- asm-tst7$(EXEEXT) asm-tst8$(EXEEXT) asm-tst9$(EXEEXT)
-@HAVE_LIBASM_TRUE@am__EXEEXT_4 = $(am__EXEEXT_3)
-addrcfi_SOURCES = addrcfi.c
-addrcfi_OBJECTS = addrcfi.$(OBJEXT)
-am__DEPENDENCIES_1 =
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@am__DEPENDENCIES_2 = \
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@ ../libelf/libelf.so
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@am__DEPENDENCIES_2 = \
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@ ../libelf/libelf.a
-@STANDALONE_FALSE@am__DEPENDENCIES_3 = ../libebl/libebl.a
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@am__DEPENDENCIES_4 = \
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@ ../libdw/libdw.so
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@am__DEPENDENCIES_4 = \
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@ ../libdw/libdw.a \
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@ $(am__DEPENDENCIES_1) \
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@ $(am__DEPENDENCIES_2) \
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@ $(am__DEPENDENCIES_3)
-addrcfi_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-addrscopes_SOURCES = addrscopes.c
-addrscopes_OBJECTS = addrscopes.$(OBJEXT)
-addrscopes_DEPENDENCIES = $(am__DEPENDENCIES_4)
-aggregate_size_SOURCES = aggregate_size.c
-aggregate_size_OBJECTS = aggregate_size.$(OBJEXT)
-aggregate_size_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-alldts_SOURCES = alldts.c
-alldts_OBJECTS = alldts.$(OBJEXT)
-alldts_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-allfcts_SOURCES = allfcts.c
-allfcts_OBJECTS = allfcts.$(OBJEXT)
-allfcts_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-allregs_SOURCES = allregs.c
-allregs_OBJECTS = allregs.$(OBJEXT)
-allregs_DEPENDENCIES = $(am__DEPENDENCIES_4)
-arextract_SOURCES = arextract.c
-arextract_OBJECTS = arextract.$(OBJEXT)
-arextract_DEPENDENCIES = $(am__DEPENDENCIES_2)
-arls_SOURCES = arls.c
-arls_OBJECTS = arls.$(OBJEXT)
-arls_DEPENDENCIES = $(am__DEPENDENCIES_2)
-arsymtest_SOURCES = arsymtest.c
-arsymtest_OBJECTS = arsymtest.$(OBJEXT)
-arsymtest_DEPENDENCIES = $(am__DEPENDENCIES_2)
-asm_tst1_SOURCES = asm-tst1.c
-asm_tst1_OBJECTS = asm-tst1.$(OBJEXT)
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@am__DEPENDENCIES_5 = \
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@ ../libasm/libasm.so
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@am__DEPENDENCIES_5 = \
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@ ../libasm/libasm.a
-asm_tst1_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst2_SOURCES = asm-tst2.c
-asm_tst2_OBJECTS = asm-tst2.$(OBJEXT)
-asm_tst2_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst3_SOURCES = asm-tst3.c
-asm_tst3_OBJECTS = asm-tst3.$(OBJEXT)
-asm_tst3_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst4_SOURCES = asm-tst4.c
-asm_tst4_OBJECTS = asm-tst4.$(OBJEXT)
-asm_tst4_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst5_SOURCES = asm-tst5.c
-asm_tst5_OBJECTS = asm-tst5.$(OBJEXT)
-asm_tst5_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst6_SOURCES = asm-tst6.c
-asm_tst6_OBJECTS = asm-tst6.$(OBJEXT)
-asm_tst6_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst7_SOURCES = asm-tst7.c
-asm_tst7_OBJECTS = asm-tst7.$(OBJEXT)
-asm_tst7_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst8_SOURCES = asm-tst8.c
-asm_tst8_OBJECTS = asm-tst8.$(OBJEXT)
-asm_tst8_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-asm_tst9_SOURCES = asm-tst9.c
-asm_tst9_OBJECTS = asm-tst9.$(OBJEXT)
-asm_tst9_DEPENDENCIES = $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-backtrace_SOURCES = backtrace.c
-backtrace_OBJECTS = backtrace.$(OBJEXT)
-backtrace_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-backtrace_child_SOURCES = backtrace-child.c
-backtrace_child_OBJECTS = backtrace_child-backtrace-child.$(OBJEXT)
-backtrace_child_LDADD = $(LDADD)
-backtrace_child_LINK = $(CCLD) $(backtrace_child_CFLAGS) $(CFLAGS) \
- $(backtrace_child_LDFLAGS) $(LDFLAGS) -o $@
-am_backtrace_child_biarch_OBJECTS = backtrace-child.$(OBJEXT)
-backtrace_child_biarch_OBJECTS = $(am_backtrace_child_biarch_OBJECTS)
-backtrace_child_biarch_LDADD = $(LDADD)
-backtrace_data_SOURCES = backtrace-data.c
-backtrace_data_OBJECTS = backtrace-data.$(OBJEXT)
-backtrace_data_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-backtrace_dwarf_SOURCES = backtrace-dwarf.c
-backtrace_dwarf_OBJECTS = backtrace_dwarf-backtrace-dwarf.$(OBJEXT)
-backtrace_dwarf_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-backtrace_dwarf_LINK = $(CCLD) $(backtrace_dwarf_CFLAGS) $(CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) -o $@
-buildid_SOURCES = buildid.c
-buildid_OBJECTS = buildid.$(OBJEXT)
-buildid_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-debugaltlink_SOURCES = debugaltlink.c
-debugaltlink_OBJECTS = debugaltlink.$(OBJEXT)
-debugaltlink_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-debuglink_SOURCES = debuglink.c
-debuglink_OBJECTS = debuglink.$(OBJEXT)
-debuglink_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-deleted_SOURCES = deleted.c
-deleted_OBJECTS = deleted.$(OBJEXT)
-deleted_DEPENDENCIES = ./deleted-lib.so
-deleted_lib_so_SOURCES = deleted-lib.c
-deleted_lib_so_OBJECTS = deleted_lib_so-deleted-lib.$(OBJEXT)
-deleted_lib_so_LDADD = $(LDADD)
-deleted_lib_so_LINK = $(CCLD) $(deleted_lib_so_CFLAGS) $(CFLAGS) \
- $(deleted_lib_so_LDFLAGS) $(LDFLAGS) -o $@
-dwarf_getmacros_SOURCES = dwarf-getmacros.c
-dwarf_getmacros_OBJECTS = dwarf-getmacros.$(OBJEXT)
-dwarf_getmacros_DEPENDENCIES = $(am__DEPENDENCIES_4)
-dwarf_getstring_SOURCES = dwarf-getstring.c
-dwarf_getstring_OBJECTS = dwarf-getstring.$(OBJEXT)
-dwarf_getstring_DEPENDENCIES = $(am__DEPENDENCIES_4)
-dwfl_addr_sect_SOURCES = dwfl-addr-sect.c
-dwfl_addr_sect_OBJECTS = dwfl-addr-sect.$(OBJEXT)
-dwfl_addr_sect_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_bug_addr_overflow_SOURCES = dwfl-bug-addr-overflow.c
-dwfl_bug_addr_overflow_OBJECTS = dwfl-bug-addr-overflow.$(OBJEXT)
-dwfl_bug_addr_overflow_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_bug_fd_leak_SOURCES = dwfl-bug-fd-leak.c
-dwfl_bug_fd_leak_OBJECTS = dwfl-bug-fd-leak.$(OBJEXT)
-dwfl_bug_fd_leak_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_bug_getmodules_SOURCES = dwfl-bug-getmodules.c
-dwfl_bug_getmodules_OBJECTS = dwfl-bug-getmodules.$(OBJEXT)
-dwfl_bug_getmodules_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_bug_report_SOURCES = dwfl-bug-report.c
-dwfl_bug_report_OBJECTS = dwfl-bug-report.$(OBJEXT)
-dwfl_bug_report_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-dwfl_report_elf_align_SOURCES = dwfl-report-elf-align.c
-dwfl_report_elf_align_OBJECTS = dwfl-report-elf-align.$(OBJEXT)
-dwfl_report_elf_align_DEPENDENCIES = $(am__DEPENDENCIES_4)
-dwfllines_SOURCES = dwfllines.c
-dwfllines_OBJECTS = dwfllines.$(OBJEXT)
-dwfllines_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-dwflmodtest_SOURCES = dwflmodtest.c
-dwflmodtest_OBJECTS = dwflmodtest.$(OBJEXT)
-dwflmodtest_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_3) \
- $(am__DEPENDENCIES_2)
-dwflsyms_SOURCES = dwflsyms.c
-dwflsyms_OBJECTS = dwflsyms.$(OBJEXT)
-dwflsyms_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-early_offscn_SOURCES = early-offscn.c
-early_offscn_OBJECTS = early-offscn.$(OBJEXT)
-early_offscn_DEPENDENCIES = $(am__DEPENDENCIES_2)
-ecp_SOURCES = ecp.c
-ecp_OBJECTS = ecp.$(OBJEXT)
-ecp_DEPENDENCIES = $(am__DEPENDENCIES_2)
-find_prologues_SOURCES = find-prologues.c
-find_prologues_OBJECTS = find-prologues.$(OBJEXT)
-find_prologues_DEPENDENCIES = $(am__DEPENDENCIES_4)
-funcretval_SOURCES = funcretval.c
-funcretval_OBJECTS = funcretval.$(OBJEXT)
-funcretval_DEPENDENCIES = $(am__DEPENDENCIES_4)
-funcscopes_SOURCES = funcscopes.c
-funcscopes_OBJECTS = funcscopes.$(OBJEXT)
-funcscopes_DEPENDENCIES = $(am__DEPENDENCIES_4)
-get_aranges_SOURCES = get-aranges.c
-get_aranges_OBJECTS = get-aranges.$(OBJEXT)
-get_aranges_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-get_files_SOURCES = get-files.c
-get_files_OBJECTS = get-files.$(OBJEXT)
-get_files_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-get_lines_SOURCES = get-lines.c
-get_lines_OBJECTS = get-lines.$(OBJEXT)
-get_lines_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-get_pubnames_SOURCES = get-pubnames.c
-get_pubnames_OBJECTS = get-pubnames.$(OBJEXT)
-get_pubnames_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-hash_SOURCES = hash.c
-hash_OBJECTS = hash.$(OBJEXT)
-hash_DEPENDENCIES = $(am__DEPENDENCIES_2)
-line2addr_SOURCES = line2addr.c
-line2addr_OBJECTS = line2addr.$(OBJEXT)
-line2addr_DEPENDENCIES = $(am__DEPENDENCIES_4)
-low_high_pc_SOURCES = low_high_pc.c
-low_high_pc_OBJECTS = low_high_pc.$(OBJEXT)
-low_high_pc_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-md5_sha1_test_SOURCES = md5-sha1-test.c
-md5_sha1_test_OBJECTS = md5-sha1-test.$(OBJEXT)
-md5_sha1_test_DEPENDENCIES = $(libeu)
-msg_tst_SOURCES = msg_tst.c
-msg_tst_OBJECTS = msg_tst.$(OBJEXT)
-msg_tst_DEPENDENCIES = $(am__DEPENDENCIES_2)
-newfile_SOURCES = newfile.c
-newfile_OBJECTS = newfile.$(OBJEXT)
-newfile_DEPENDENCIES = $(am__DEPENDENCIES_2)
-newscn_SOURCES = newscn.c
-newscn_OBJECTS = newscn.$(OBJEXT)
-newscn_DEPENDENCIES = $(am__DEPENDENCIES_2)
-rdwrmmap_SOURCES = rdwrmmap.c
-rdwrmmap_OBJECTS = rdwrmmap.$(OBJEXT)
-rdwrmmap_DEPENDENCIES = $(am__DEPENDENCIES_2)
-rerequest_tag_SOURCES = rerequest_tag.c
-rerequest_tag_OBJECTS = rerequest_tag.$(OBJEXT)
-rerequest_tag_DEPENDENCIES = $(am__DEPENDENCIES_4)
-saridx_SOURCES = saridx.c
-saridx_OBJECTS = saridx.$(OBJEXT)
-saridx_DEPENDENCIES = $(am__DEPENDENCIES_2)
-scnnames_SOURCES = scnnames.c
-scnnames_OBJECTS = scnnames.$(OBJEXT)
-scnnames_DEPENDENCIES = $(am__DEPENDENCIES_2)
-sectiondump_SOURCES = sectiondump.c
-sectiondump_OBJECTS = sectiondump.$(OBJEXT)
-sectiondump_DEPENDENCIES = $(am__DEPENDENCIES_2)
-show_abbrev_SOURCES = show-abbrev.c
-show_abbrev_OBJECTS = show-abbrev.$(OBJEXT)
-show_abbrev_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-show_die_info_SOURCES = show-die-info.c
-show_die_info_OBJECTS = show-die-info.$(OBJEXT)
-show_die_info_DEPENDENCIES = $(am__DEPENDENCIES_4) \
- $(am__DEPENDENCIES_2)
-showptable_SOURCES = showptable.c
-showptable_OBJECTS = showptable.$(OBJEXT)
-showptable_DEPENDENCIES = $(am__DEPENDENCIES_2)
-test_elf_cntl_gelf_getshdr_SOURCES = test-elf_cntl_gelf_getshdr.c
-test_elf_cntl_gelf_getshdr_OBJECTS = \
- test-elf_cntl_gelf_getshdr.$(OBJEXT)
-test_elf_cntl_gelf_getshdr_DEPENDENCIES = $(am__DEPENDENCIES_2)
-test_flag_nobits_SOURCES = test-flag-nobits.c
-test_flag_nobits_OBJECTS = test-flag-nobits.$(OBJEXT)
-test_flag_nobits_DEPENDENCIES = $(am__DEPENDENCIES_2)
-test_nlist_SOURCES = test-nlist.c
-test_nlist_OBJECTS = test-nlist.$(OBJEXT)
-test_nlist_DEPENDENCIES = $(am__DEPENDENCIES_2)
-typeiter_SOURCES = typeiter.c
-typeiter_OBJECTS = typeiter.$(OBJEXT)
-typeiter_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-typeiter2_SOURCES = typeiter2.c
-typeiter2_OBJECTS = typeiter2.$(OBJEXT)
-typeiter2_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-update1_SOURCES = update1.c
-update1_OBJECTS = update1.$(OBJEXT)
-update1_DEPENDENCIES = $(am__DEPENDENCIES_2)
-update2_SOURCES = update2.c
-update2_OBJECTS = update2.$(OBJEXT)
-update2_DEPENDENCIES = $(am__DEPENDENCIES_2)
-update3_SOURCES = update3.c
-update3_OBJECTS = update3.$(OBJEXT)
-update3_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-update4_SOURCES = update4.c
-update4_OBJECTS = update4.$(OBJEXT)
-update4_DEPENDENCIES = $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_2)
-varlocs_SOURCES = varlocs.c
-varlocs_OBJECTS = varlocs.$(OBJEXT)
-varlocs_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-vdsosyms_SOURCES = vdsosyms.c
-vdsosyms_OBJECTS = vdsosyms.$(OBJEXT)
-vdsosyms_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
-AM_V_P = $(am__v_P_@AM_V@)
-am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
-am__v_P_0 = false
-am__v_P_1 = :
-AM_V_GEN = $(am__v_GEN_@AM_V@)
-am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
-am__v_GEN_0 = @echo " GEN " $@;
-am__v_GEN_1 =
-AM_V_at = $(am__v_at_@AM_V@)
-am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
-am__v_at_0 = @
-am__v_at_1 =
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/config/depcomp
-am__depfiles_maybe = depfiles
-am__mv = mv -f
-AM_V_lt = $(am__v_lt_@AM_V@)
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
-am__v_lt_0 = --silent
-am__v_lt_1 =
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-AM_V_CC = $(am__v_CC_@AM_V@)
-am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
-am__v_CC_0 = @echo " CC " $@;
-am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-AM_V_CCLD = $(am__v_CCLD_@AM_V@)
-am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
-am__v_CCLD_0 = @echo " CCLD " $@;
-am__v_CCLD_1 =
-SOURCES = addrcfi.c addrscopes.c aggregate_size.c alldts.c allfcts.c \
- allregs.c arextract.c arls.c arsymtest.c asm-tst1.c asm-tst2.c \
- asm-tst3.c asm-tst4.c asm-tst5.c asm-tst6.c asm-tst7.c \
- asm-tst8.c asm-tst9.c backtrace.c backtrace-child.c \
- $(backtrace_child_biarch_SOURCES) backtrace-data.c \
- backtrace-dwarf.c buildid.c debugaltlink.c debuglink.c \
- deleted.c deleted-lib.c dwarf-getmacros.c dwarf-getstring.c \
- dwfl-addr-sect.c dwfl-bug-addr-overflow.c dwfl-bug-fd-leak.c \
- dwfl-bug-getmodules.c dwfl-bug-report.c \
- dwfl-report-elf-align.c dwfllines.c dwflmodtest.c dwflsyms.c \
- early-offscn.c ecp.c find-prologues.c funcretval.c \
- funcscopes.c get-aranges.c get-files.c get-lines.c \
- get-pubnames.c hash.c line2addr.c low_high_pc.c \
- md5-sha1-test.c msg_tst.c newfile.c newscn.c rdwrmmap.c \
- rerequest_tag.c saridx.c scnnames.c sectiondump.c \
- show-abbrev.c show-die-info.c showptable.c \
- test-elf_cntl_gelf_getshdr.c test-flag-nobits.c test-nlist.c \
- typeiter.c typeiter2.c update1.c update2.c update3.c update4.c \
- varlocs.c vdsosyms.c
-DIST_SOURCES = addrcfi.c addrscopes.c aggregate_size.c alldts.c \
- allfcts.c allregs.c arextract.c arls.c arsymtest.c asm-tst1.c \
- asm-tst2.c asm-tst3.c asm-tst4.c asm-tst5.c asm-tst6.c \
- asm-tst7.c asm-tst8.c asm-tst9.c backtrace.c backtrace-child.c \
- $(backtrace_child_biarch_SOURCES) backtrace-data.c \
- backtrace-dwarf.c buildid.c debugaltlink.c debuglink.c \
- deleted.c deleted-lib.c dwarf-getmacros.c dwarf-getstring.c \
- dwfl-addr-sect.c dwfl-bug-addr-overflow.c dwfl-bug-fd-leak.c \
- dwfl-bug-getmodules.c dwfl-bug-report.c \
- dwfl-report-elf-align.c dwfllines.c dwflmodtest.c dwflsyms.c \
- early-offscn.c ecp.c find-prologues.c funcretval.c \
- funcscopes.c get-aranges.c get-files.c get-lines.c \
- get-pubnames.c hash.c line2addr.c low_high_pc.c \
- md5-sha1-test.c msg_tst.c newfile.c newscn.c rdwrmmap.c \
- rerequest_tag.c saridx.c scnnames.c sectiondump.c \
- show-abbrev.c show-die-info.c showptable.c \
- test-elf_cntl_gelf_getshdr.c test-flag-nobits.c test-nlist.c \
- typeiter.c typeiter2.c update1.c update2.c update3.c update4.c \
- varlocs.c vdsosyms.c
-am__can_run_installinfo = \
- case $$AM_UPDATE_INFO_DIR in \
- n|no|NO) false;; \
- *) (install-info --version) >/dev/null 2>&1;; \
- esac
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
-# Read a list of newline-separated strings from the standard input,
-# and print each of them once, without duplicates. Input order is
-# *not* preserved.
-am__uniquify_input = $(AWK) '\
- BEGIN { nonempty = 0; } \
- { items[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in items) print i; }; } \
-'
-# Make sure the list of sources is unique. This is necessary because,
-# e.g., the same source file might be shared among _SOURCES variables
-# for different programs/libraries.
-am__define_uniq_tagged_files = \
- list='$(am__tagged_files)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | $(am__uniquify_input)`
-ETAGS = etags
-CTAGS = ctags
-am__tty_colors_dummy = \
- mgn= red= grn= lgn= blu= brg= std=; \
- am__color_tests=no
-am__tty_colors = { \
- $(am__tty_colors_dummy); \
- if test "X$(AM_COLOR_TESTS)" = Xno; then \
- am__color_tests=no; \
- elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
- am__color_tests=yes; \
- elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
- am__color_tests=yes; \
- fi; \
- if test $$am__color_tests = yes; then \
- red=''; \
- grn=''; \
- lgn=''; \
- blu=''; \
- mgn=''; \
- brg=''; \
- std=''; \
- fi; \
-}
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__uninstall_files_from_dir = { \
- test -z "$$files" \
- || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
- || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
-am__recheck_rx = ^[ ]*:recheck:[ ]*
-am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
-am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
-# A command that, given a newline-separated list of test names on the
-# standard input, print the name of the tests that are to be re-run
-# upon "make recheck".
-am__list_recheck_tests = $(AWK) '{ \
- recheck = 1; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- { \
- if ((getline line2 < ($$0 ".log")) < 0) \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
- { \
- recheck = 0; \
- break; \
- } \
- else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
- { \
- break; \
- } \
- }; \
- if (recheck) \
- print $$0; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# A command that, given a newline-separated list of test names on the
-# standard input, create the global log from their .trs and .log files.
-am__create_global_log = $(AWK) ' \
-function fatal(msg) \
-{ \
- print "fatal: making $@: " msg | "cat >&2"; \
- exit 1; \
-} \
-function rst_section(header) \
-{ \
- print header; \
- len = length(header); \
- for (i = 1; i <= len; i = i + 1) \
- printf "="; \
- printf "\n\n"; \
-} \
-{ \
- copy_in_global_log = 1; \
- global_test_result = "RUN"; \
- while ((rc = (getline line < ($$0 ".trs"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".trs"); \
- if (line ~ /$(am__global_test_result_rx)/) \
- { \
- sub("$(am__global_test_result_rx)", "", line); \
- sub("[ ]*$$", "", line); \
- global_test_result = line; \
- } \
- else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
- copy_in_global_log = 0; \
- }; \
- if (copy_in_global_log) \
- { \
- rst_section(global_test_result ": " $$0); \
- while ((rc = (getline line < ($$0 ".log"))) != 0) \
- { \
- if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
- print line; \
- }; \
- printf "\n"; \
- }; \
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
-}'
-# Restructured Text title.
-am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
-# Solaris 10 'make', and several other traditional 'make' implementations,
-# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
-# by disabling -e (using the XSI extension "set +e") if it's set.
-am__sh_e_setup = case $$- in *e*) set +e;; esac
-# Default flags passed to test drivers.
-am__common_driver_flags = \
- --color-tests "$$am__color_tests" \
- --enable-hard-errors "$$am__enable_hard_errors" \
- --expect-failure "$$am__expect_failure"
-# To be inserted before the command running the test. Creates the
-# directory for the log if needed. Stores in $dir the directory
-# containing $f, in $tst the test, in $log the log. Executes the
-# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
-# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
-# will run the test scripts (or their associated LOG_COMPILER, if
-# thy have one).
-am__check_pre = \
-$(am__sh_e_setup); \
-$(am__vpath_adj_setup) $(am__vpath_adj) \
-$(am__tty_colors); \
-srcdir=$(srcdir); export srcdir; \
-case "$@" in \
- */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
- *) am__odir=.;; \
-esac; \
-test "x$$am__odir" = x"." || test -d "$$am__odir" \
- || $(MKDIR_P) "$$am__odir" || exit $$?; \
-if test -f "./$$f"; then dir=./; \
-elif test -f "$$f"; then dir=; \
-else dir="$(srcdir)/"; fi; \
-tst=$$dir$$f; log='$@'; \
-if test -n '$(DISABLE_HARD_ERRORS)'; then \
- am__enable_hard_errors=no; \
-else \
- am__enable_hard_errors=yes; \
-fi; \
-case " $(XFAIL_TESTS) " in \
- *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
- am__expect_failure=yes;; \
- *) \
- am__expect_failure=no;; \
-esac; \
-$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
-# A shell command to get the names of the tests scripts with any registered
-# extension removed (i.e., equivalently, the names of the test logs, with
-# the '.log' extension removed). The result is saved in the shell variable
-# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
-# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
-# since that might cause problem with VPATH rewrites for suffix-less tests.
-# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
-am__set_TESTS_bases = \
- bases='$(TEST_LOGS)'; \
- bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
- bases=`echo $$bases`
-RECHECK_LOGS = $(TEST_LOGS)
-AM_RECURSIVE_TARGETS = check recheck
-TEST_SUITE_LOG = test-suite.log
-TEST_EXTENSIONS = @EXEEXT@ .test
-LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver
-LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
-am__set_b = \
- case '$@' in \
- */*) \
- case '$*' in \
- */*) b='$*';; \
- *) b=`echo '$@' | sed 's/\.log$$//'`; \
- esac;; \
- *) \
- b='$*';; \
- esac
-am__test_logs1 = $(TESTS:=.log)
-am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
-TEST_LOGS = $(am__test_logs2:.test.log=.log)
-TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/config/test-driver
-TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
- $(TEST_LOG_FLAGS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CC_BIARCH = @CC_BIARCH@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEBUGPRED = @DEBUGPRED@
-DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"'
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GREP = @GREP@
-HAVE_VALGRIND = @HAVE_VALGRIND@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LEX = @LEX@
-LEXLIB = @LEXLIB@
-LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
-LIBEBL_SUBDIR = @LIBEBL_SUBDIR@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-MODVERSION = @MODVERSION@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NM = @NM@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-RANLIB = @RANLIB@
-READELF = @READELF@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_AR = @ac_ct_AR@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-base_cpu = @base_cpu@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-eu_version = @eu_version@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-zip_LIBS = @zip_LIBS@
-AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. $(am__append_1)
-AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
- $(if $($(*F)_no_Werror),,-Werror) \
- $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
- $($(*F)_CFLAGS)
-
-COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
-CLEANFILES = *.gcno *.gcda
-textrel_msg = echo "WARNING: TEXTREL found in '$@'"
-@FATAL_TEXTREL_FALSE@textrel_found = $(textrel_msg)
-@FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
-textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
-BUILD_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
-AM_LDFLAGS = $(am__append_2) $(am__append_3)
-@TESTS_RPATH_FALSE@tests_rpath = no
-@TESTS_RPATH_TRUE@tests_rpath = yes
-asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
- asm-tst6 asm-tst7 asm-tst8 asm-tst9
-
-EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
- run-show-die-info.sh run-get-files.sh run-get-lines.sh \
- run-get-pubnames.sh run-get-aranges.sh \
- run-show-abbrev.sh run-strip-test.sh \
- run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \
- testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
- testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \
- testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \
- testfile13.bz2 run-strip-test3.sh run-allfcts.sh \
- testfile_class_func.bz2 testfile_nested_funcs.bz2 \
- run-line2addr.sh run-elflint-test.sh testfile14.bz2 \
- run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
- run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \
- run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \
- hello_ppc64.ko.bz2 hello_s390.ko.bz2 hello_aarch64.ko.bz2 \
- run-unstrip-test.sh run-unstrip-test2.sh run-unstrip-M.sh\
- run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \
- run-ranlib-test3.sh run-ranlib-test4.sh \
- run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
- run-nm-self.sh run-readelf-self.sh run-addrcfi.sh \
- run-find-prologues.sh run-allregs.sh run-native-test.sh \
- run-addrname-test.sh run-dwfl-bug-offline-rel.sh \
- run-dwfl-addr-sect.sh run-early-offscn.sh \
- run-dwarf-getmacros.sh run-test-flag-nobits.sh \
- run-dwarf-getstring.sh run-rerequest_tag.sh run-alldts.sh \
- testfile15.bz2 testfile15.debug.bz2 \
- testfile16.bz2 testfile16.debug.bz2 \
- testfile17.bz2 testfile17.debug.bz2 \
- testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \
- testfile20.bz2 testfile20.index.bz2 \
- testfile21.bz2 testfile21.index.bz2 \
- testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \
- testfile26.bz2 testfile27.bz2 \
- coverage.sh test-subr.sh test-wrapper.sh \
- run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
- run-readelf-test4.sh run-readelf-twofiles.sh \
- run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \
- run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
- testfile29.bz2 testfile29.rdwr.bz2 \
- testfile30.bz2 testfile31.bz2 testfile32.bz2 testfile33.bz2 \
- testfile34.bz2 testfile35.bz2 testfile35.debug.bz2 \
- testfile36.bz2 testfile36.debug.bz2 \
- testfile37.bz2 testfile37.debug.bz2 \
- testfile38.bz2 testfile39.bz2 testfile40.bz2 testfile40.debug.bz2 \
- testfile41.bz2 testfile42.bz2 testfile42_noshdrs.bz2 \
- testfile43.bz2 \
- testfile44.S.bz2 testfile44.expect.bz2 run-disasm-x86.sh \
- testfile45.S.bz2 testfile45.expect.bz2 run-disasm-x86-64.sh \
- testfile46.bz2 testfile47.bz2 testfile48.bz2 testfile48.debug.bz2 \
- testfile49.bz2 testfile50.bz2 testfile51.bz2 \
- testfile-macros-0xff.bz2 \
- run-readelf-macro.sh testfilemacro.bz2 \
- run-readelf-loc.sh testfileloc.bz2 \
- run-readelf-aranges.sh run-readelf-line.sh testfilefoobarbaz.bz2 \
- run-readelf-dwz-multi.sh libtestfile_multi_shared.so.bz2 \
- testfile_multi.dwz.bz2 testfile_multi_main.bz2 \
- testfile-dwzstr.bz2 testfile-dwzstr.multi.bz2 \
- run-allfcts-multi.sh \
- test-offset-loop.bz2 test-offset-loop.alt.bz2 \
- run-prelink-addr-test.sh \
- testfile52-32.so.bz2 testfile52-32.so.debug.bz2 \
- testfile52-32.prelink.so.bz2 testfile52-32.noshdrs.so.bz2 \
- testfile52-64.so.bz2 testfile52-64.so.debug.bz2 \
- testfile52-64.prelink.so.bz2 testfile52-64.noshdrs.so.bz2 \
- testfile53-32.bz2 testfile53-32.debug.bz2 \
- testfile53-32.prelink.bz2 testfile53-64.bz2 \
- testfile53-64.debug.bz2 testfile53-64.prelink.bz2 \
- testfile54-32.so.bz2 testfile54-32.so.debug.bz2 \
- testfile54-32.prelink.so.bz2 testfile54-32.noshdrs.so.bz2 \
- testfile54-64.so.bz2 testfile54-64.so.debug.bz2 \
- testfile54-64.prelink.so.bz2 testfile54-64.noshdrs.so.bz2 \
- testfile55-32.bz2 testfile55-32.debug.bz2 \
- testfile55-32.prelink.bz2 testfile55-64.bz2 \
- testfile55-64.debug.bz2 testfile55-64.prelink.bz2 \
- testfile56.bz2 testfile57.bz2 testfile58.bz2 \
- run-typeiter.sh testfile59.bz2 \
- run-readelf-d.sh testlib_dynseg.so.bz2 \
- run-readelf-gdb_index.sh testfilegdbindex5.bz2 \
- testfilegdbindex7.bz2 \
- run-readelf-s.sh testfilebazdbg.bz2 testfilebazdyn.bz2 \
- testfilebazmin.bz2 testfilebazdbg.debug.bz2 testfilebazmdb.bz2 \
- testfilebaztab.bz2 testfilebasmin.bz2 testfilebaxmin.bz2 \
- testfilebazdbg_pl.bz2 testfilebazmin_pl.bz2 \
- testfilebazdbg_plr.bz2 testfilebazmin_plr.bz2 \
- testfilebazdbgppc64.bz2 testfilebazdbgppc64.debug.bz2 \
- testfilebazdbgppc64_pl.bz2 testfilebazdbgppc64_plr.bz2 \
- testfilebazdynppc64.bz2 testfilebazmdbppc64.bz2 \
- testfilebazminppc64.bz2 testfilebazminppc64_pl.bz2 \
- testfilebazminppc64_plr.bz2 testfilebaztabppc64.bz2 \
- run-dwflsyms.sh \
- run-unstrip-n.sh testcore-rtlib.bz2 testcore-rtlib-ppc.bz2 \
- run-low_high_pc.sh testfile_low_high_pc.bz2 \
- run-macro-test.sh testfile-macinfo.bz2 testfile-macros.bz2 \
- run-elf_cntl_gelf_getshdr.sh \
- run-test-archive64.sh testarchive64.a.bz2 \
- testfile60.bz2 testfile61.bz2 \
- run-readelf-vmcoreinfo.sh testfile62.bz2 \
- run-readelf-mixed-corenote.sh testfile63.bz2 testfile64.bz2 \
- testfile65.bz2 testfile67.bz2 testfile68.bz2 \
- testfile69.core.bz2 testfile69.so.bz2 \
- testfile70.core.bz2 testfile70.exec.bz2 testfile71.bz2 \
- run-dwfllines.sh run-dwfl-report-elf-align.sh \
- testfile-dwfl-report-elf-align-shlib.so.bz2 \
- testfilenolines.bz2 test-core-lib.so.bz2 test-core.core.bz2 \
- test-core.exec.bz2 run-addr2line-test.sh \
- run-addr2line-i-test.sh testfile-inlines.bz2 \
- run-addr2line-i-lex-test.sh testfile-lex-inlines.bz2 \
- testfileppc32.bz2 testfileppc64.bz2 \
- testfiles390.bz2 testfiles390x.bz2 \
- testfilearm.bz2 testfileaarch64.bz2 \
- run-varlocs.sh \
- testfile_const_type.c testfile_const_type.bz2 \
- testfile_implicit_pointer.c testfile_implicit_pointer.bz2 \
- testfile_parameter_ref.c testfile_parameter_ref.bz2 \
- testfile_entry_value.c testfile_entry_value.bz2 \
- testfile_implicit_value.c testfile_implicit_value.bz2 \
- testfile_aarch64_core.bz2 testfile_i686_core.bz2 \
- run-funcretval.sh funcretval_test.c funcretval_test_aarch64.bz2 \
- run-backtrace-data.sh run-backtrace-dwarf.sh cleanup-13.c \
- run-backtrace-native.sh run-backtrace-native-biarch.sh \
- run-backtrace-native-core.sh run-backtrace-native-core-biarch.sh \
- run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
- backtrace-subr.sh backtrace.i386.core.bz2 backtrace.i386.exec.bz2 \
- backtrace.x86_64.core.bz2 backtrace.x86_64.exec.bz2 \
- backtrace.ppc.core.bz2 backtrace.ppc.exec.bz2 \
- run-backtrace-core-ppc.sh testfile66.bz2 testfile66.core.bz2 \
- backtrace.s390x.core.bz2 backtrace.s390x.exec.bz2 \
- backtrace.s390.core.bz2 backtrace.s390.exec.bz2 \
- run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
- run-backtrace-core-aarch64.sh \
- backtrace.aarch64.core.bz2 backtrace.aarch64.exec.bz2 \
- run-backtrace-demangle.sh testfile-backtrace-demangle.bz2 \
- testfile-backtrace-demangle.cc \
- testfile-backtrace-demangle.core.bz2 \
- run-stack-d-test.sh run-stack-i-test.sh \
- testfiledwarfinlines.bz2 testfiledwarfinlines.core.bz2 \
- run-readelf-zdebug.sh testfile-debug.bz2 testfile-zdebug.bz2 \
- run-deleted.sh run-linkmap-cut.sh linkmap-cut-lib.so.bz2 \
- linkmap-cut.bz2 linkmap-cut.core.bz2 \
- run-aggregate-size.sh testfile-sizes1.o.bz2 testfile-sizes2.o.bz2 \
- testfile-sizes3.o.bz2 \
- run-readelf-A.sh testfileppc32attrs.o.bz2
-
-@USE_VALGRIND_TRUE@valgrind_cmd = 'valgrind -q --error-exitcode=1 --run-libc-freeres=no'
-installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \
- bindir=$(DESTDIR)$(bindir); \
- LC_ALL=C; LANG=C; \
- VALGRIND_CMD=$(valgrind_cmd); \
- abs_srcdir=$(abs_srcdir); \
- abs_builddir=$(abs_builddir); \
- abs_top_builddir=$(abs_top_builddir); \
- export abs_srcdir; export abs_builddir; \
- export abs_top_builddir; \
- export libdir; export bindir; \
- export LC_ALL; export LANG; export VALGRIND_CMD; \
- NM=$(NM); export NM;
-
-installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
- installed $(tests_rpath) \
- '$(program_transform_name)'
-
-@STANDALONE_FALSE@TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD=$(valgrind_cmd); \
-@STANDALONE_FALSE@ abs_srcdir=$(abs_srcdir); abs_builddir=$(abs_builddir); \
-@STANDALONE_FALSE@ abs_top_builddir=$(abs_top_builddir); \
-@STANDALONE_FALSE@ export abs_srcdir; export abs_builddir; \
-@STANDALONE_FALSE@ export abs_top_builddir; \
-@STANDALONE_FALSE@ export LC_ALL; export LANG; export VALGRIND_CMD; \
-@STANDALONE_FALSE@ NM=$(NM); export NM;
-
-@STANDALONE_TRUE@TESTS_ENVIRONMENT = $(installed_TESTS_ENVIRONMENT)
-@STANDALONE_FALSE@LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
-@STANDALONE_FALSE@ $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm
-
-@STANDALONE_TRUE@LOG_COMPILER = $(installed_LOG_COMPILER)
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@libdw = ../libdw/libdw.so
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) $(libebl) -ldl
-@STANDALONE_TRUE@libdw = -ldw
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@libelf = ../libelf/libelf.so
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@libelf = ../libelf/libelf.a
-@STANDALONE_TRUE@libelf = -lelf
-@BUILD_STATIC_FALSE@@STANDALONE_FALSE@libasm = ../libasm/libasm.so
-@BUILD_STATIC_TRUE@@STANDALONE_FALSE@libasm = ../libasm/libasm.a
-@STANDALONE_TRUE@libasm = -lasm
-@STANDALONE_FALSE@libebl = ../libebl/libebl.a
-@STANDALONE_TRUE@libebl = -lebl
-@STANDALONE_FALSE@libeu = ../lib/libeu.a
-arextract_LDADD = $(libelf)
-arsymtest_LDADD = $(libelf)
-newfile_LDADD = $(libelf)
-saridx_LDADD = $(libelf)
-scnnames_LDADD = $(libelf)
-sectiondump_LDADD = $(libelf)
-showptable_LDADD = $(libelf)
-hash_LDADD = $(libelf)
-test_nlist_LDADD = $(libelf)
-msg_tst_LDADD = $(libelf)
-newscn_LDADD = $(libelf)
-early_offscn_LDADD = $(libelf)
-ecp_LDADD = $(libelf)
-update1_LDADD = $(libelf)
-update2_LDADD = $(libelf)
-update3_LDADD = $(libebl) $(libelf)
-update4_LDADD = $(libebl) $(libelf)
-show_die_info_LDADD = $(libdw) $(libelf)
-get_pubnames_LDADD = $(libdw) $(libelf)
-show_abbrev_LDADD = $(libdw) $(libelf)
-get_lines_LDADD = $(libdw) $(libelf)
-get_files_LDADD = $(libdw) $(libelf)
-get_aranges_LDADD = $(libdw) $(libelf)
-allfcts_LDADD = $(libdw) $(libelf)
-line2addr_LDADD = $(libdw)
-addrscopes_LDADD = $(libdw)
-funcscopes_LDADD = $(libdw)
-funcretval_LDADD = $(libdw)
-allregs_LDADD = $(libdw)
-find_prologues_LDADD = $(libdw)
-#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf)
-asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) -ldl
-dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-rdwrmmap_LDADD = $(libelf)
-dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-arls_LDADD = $(libelf)
-dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-dwarf_getmacros_LDADD = $(libdw)
-dwarf_getstring_LDADD = $(libdw)
-addrcfi_LDADD = $(libdw) $(libebl) $(libelf) -ldl
-test_flag_nobits_LDADD = $(libelf)
-rerequest_tag_LDADD = $(libdw)
-alldts_LDADD = $(libebl) $(libelf)
-md5_sha1_test_LDADD = $(libeu)
-typeiter_LDADD = $(libdw) $(libelf)
-typeiter2_LDADD = $(libdw) $(libelf)
-low_high_pc_LDADD = $(libdw) $(libelf)
-test_elf_cntl_gelf_getshdr_LDADD = $(libelf)
-dwflsyms_LDADD = $(libdw) $(libelf)
-dwfllines_LDADD = $(libdw) $(libelf)
-dwfl_report_elf_align_LDADD = $(libdw)
-varlocs_LDADD = $(libdw) $(libelf)
-backtrace_LDADD = $(libdw) $(libelf)
-# backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables:
-backtrace_child_CFLAGS = -fPIE
-backtrace_child_LDFLAGS = -pie -pthread
-backtrace_child_biarch_SOURCES = backtrace-child.c
-backtrace_data_LDADD = $(libdw) $(libelf)
-backtrace_dwarf_CFLAGS = -Wno-unused-parameter
-backtrace_dwarf_LDADD = $(libdw) $(libelf)
-debuglink_LDADD = $(libdw) $(libelf)
-debugaltlink_LDADD = $(libdw) $(libelf)
-buildid_LDADD = $(libdw) $(libelf)
-deleted_LDADD = ./deleted-lib.so
-deleted_lib_so_LDFLAGS = -shared -rdynamic
-deleted_lib_so_CFLAGS = -fPIC -fasynchronous-unwind-tables
-aggregate_size_LDADD = $(libdw) $(libelf)
-vdsosyms_LDADD = $(libdw) $(libelf)
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .log .o .obj .test .test$(EXEEXT) .trs
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/config/eu.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnits tests/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-$(top_srcdir)/config/eu.am:
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(am__aclocal_m4_deps):
-
-clean-checkPROGRAMS:
- -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
-
-addrcfi$(EXEEXT): $(addrcfi_OBJECTS) $(addrcfi_DEPENDENCIES) $(EXTRA_addrcfi_DEPENDENCIES)
- @rm -f addrcfi$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(addrcfi_OBJECTS) $(addrcfi_LDADD) $(LIBS)
-
-addrscopes$(EXEEXT): $(addrscopes_OBJECTS) $(addrscopes_DEPENDENCIES) $(EXTRA_addrscopes_DEPENDENCIES)
- @rm -f addrscopes$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(addrscopes_OBJECTS) $(addrscopes_LDADD) $(LIBS)
-
-aggregate_size$(EXEEXT): $(aggregate_size_OBJECTS) $(aggregate_size_DEPENDENCIES) $(EXTRA_aggregate_size_DEPENDENCIES)
- @rm -f aggregate_size$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(aggregate_size_OBJECTS) $(aggregate_size_LDADD) $(LIBS)
-
-alldts$(EXEEXT): $(alldts_OBJECTS) $(alldts_DEPENDENCIES) $(EXTRA_alldts_DEPENDENCIES)
- @rm -f alldts$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(alldts_OBJECTS) $(alldts_LDADD) $(LIBS)
-
-allfcts$(EXEEXT): $(allfcts_OBJECTS) $(allfcts_DEPENDENCIES) $(EXTRA_allfcts_DEPENDENCIES)
- @rm -f allfcts$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(allfcts_OBJECTS) $(allfcts_LDADD) $(LIBS)
-
-allregs$(EXEEXT): $(allregs_OBJECTS) $(allregs_DEPENDENCIES) $(EXTRA_allregs_DEPENDENCIES)
- @rm -f allregs$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(allregs_OBJECTS) $(allregs_LDADD) $(LIBS)
-
-arextract$(EXEEXT): $(arextract_OBJECTS) $(arextract_DEPENDENCIES) $(EXTRA_arextract_DEPENDENCIES)
- @rm -f arextract$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(arextract_OBJECTS) $(arextract_LDADD) $(LIBS)
-
-arls$(EXEEXT): $(arls_OBJECTS) $(arls_DEPENDENCIES) $(EXTRA_arls_DEPENDENCIES)
- @rm -f arls$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(arls_OBJECTS) $(arls_LDADD) $(LIBS)
-
-arsymtest$(EXEEXT): $(arsymtest_OBJECTS) $(arsymtest_DEPENDENCIES) $(EXTRA_arsymtest_DEPENDENCIES)
- @rm -f arsymtest$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(arsymtest_OBJECTS) $(arsymtest_LDADD) $(LIBS)
-
-asm-tst1$(EXEEXT): $(asm_tst1_OBJECTS) $(asm_tst1_DEPENDENCIES) $(EXTRA_asm_tst1_DEPENDENCIES)
- @rm -f asm-tst1$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst1_OBJECTS) $(asm_tst1_LDADD) $(LIBS)
-
-asm-tst2$(EXEEXT): $(asm_tst2_OBJECTS) $(asm_tst2_DEPENDENCIES) $(EXTRA_asm_tst2_DEPENDENCIES)
- @rm -f asm-tst2$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst2_OBJECTS) $(asm_tst2_LDADD) $(LIBS)
-
-asm-tst3$(EXEEXT): $(asm_tst3_OBJECTS) $(asm_tst3_DEPENDENCIES) $(EXTRA_asm_tst3_DEPENDENCIES)
- @rm -f asm-tst3$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst3_OBJECTS) $(asm_tst3_LDADD) $(LIBS)
-
-asm-tst4$(EXEEXT): $(asm_tst4_OBJECTS) $(asm_tst4_DEPENDENCIES) $(EXTRA_asm_tst4_DEPENDENCIES)
- @rm -f asm-tst4$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst4_OBJECTS) $(asm_tst4_LDADD) $(LIBS)
-
-asm-tst5$(EXEEXT): $(asm_tst5_OBJECTS) $(asm_tst5_DEPENDENCIES) $(EXTRA_asm_tst5_DEPENDENCIES)
- @rm -f asm-tst5$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst5_OBJECTS) $(asm_tst5_LDADD) $(LIBS)
-
-asm-tst6$(EXEEXT): $(asm_tst6_OBJECTS) $(asm_tst6_DEPENDENCIES) $(EXTRA_asm_tst6_DEPENDENCIES)
- @rm -f asm-tst6$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst6_OBJECTS) $(asm_tst6_LDADD) $(LIBS)
-
-asm-tst7$(EXEEXT): $(asm_tst7_OBJECTS) $(asm_tst7_DEPENDENCIES) $(EXTRA_asm_tst7_DEPENDENCIES)
- @rm -f asm-tst7$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst7_OBJECTS) $(asm_tst7_LDADD) $(LIBS)
-
-asm-tst8$(EXEEXT): $(asm_tst8_OBJECTS) $(asm_tst8_DEPENDENCIES) $(EXTRA_asm_tst8_DEPENDENCIES)
- @rm -f asm-tst8$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst8_OBJECTS) $(asm_tst8_LDADD) $(LIBS)
-
-asm-tst9$(EXEEXT): $(asm_tst9_OBJECTS) $(asm_tst9_DEPENDENCIES) $(EXTRA_asm_tst9_DEPENDENCIES)
- @rm -f asm-tst9$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(asm_tst9_OBJECTS) $(asm_tst9_LDADD) $(LIBS)
-
-backtrace$(EXEEXT): $(backtrace_OBJECTS) $(backtrace_DEPENDENCIES) $(EXTRA_backtrace_DEPENDENCIES)
- @rm -f backtrace$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(backtrace_OBJECTS) $(backtrace_LDADD) $(LIBS)
-
-backtrace-child$(EXEEXT): $(backtrace_child_OBJECTS) $(backtrace_child_DEPENDENCIES) $(EXTRA_backtrace_child_DEPENDENCIES)
- @rm -f backtrace-child$(EXEEXT)
- $(AM_V_CCLD)$(backtrace_child_LINK) $(backtrace_child_OBJECTS) $(backtrace_child_LDADD) $(LIBS)
-
-backtrace-data$(EXEEXT): $(backtrace_data_OBJECTS) $(backtrace_data_DEPENDENCIES) $(EXTRA_backtrace_data_DEPENDENCIES)
- @rm -f backtrace-data$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(backtrace_data_OBJECTS) $(backtrace_data_LDADD) $(LIBS)
-
-backtrace-dwarf$(EXEEXT): $(backtrace_dwarf_OBJECTS) $(backtrace_dwarf_DEPENDENCIES) $(EXTRA_backtrace_dwarf_DEPENDENCIES)
- @rm -f backtrace-dwarf$(EXEEXT)
- $(AM_V_CCLD)$(backtrace_dwarf_LINK) $(backtrace_dwarf_OBJECTS) $(backtrace_dwarf_LDADD) $(LIBS)
-
-buildid$(EXEEXT): $(buildid_OBJECTS) $(buildid_DEPENDENCIES) $(EXTRA_buildid_DEPENDENCIES)
- @rm -f buildid$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(buildid_OBJECTS) $(buildid_LDADD) $(LIBS)
-
-debugaltlink$(EXEEXT): $(debugaltlink_OBJECTS) $(debugaltlink_DEPENDENCIES) $(EXTRA_debugaltlink_DEPENDENCIES)
- @rm -f debugaltlink$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(debugaltlink_OBJECTS) $(debugaltlink_LDADD) $(LIBS)
-
-debuglink$(EXEEXT): $(debuglink_OBJECTS) $(debuglink_DEPENDENCIES) $(EXTRA_debuglink_DEPENDENCIES)
- @rm -f debuglink$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(debuglink_OBJECTS) $(debuglink_LDADD) $(LIBS)
-
-deleted$(EXEEXT): $(deleted_OBJECTS) $(deleted_DEPENDENCIES) $(EXTRA_deleted_DEPENDENCIES)
- @rm -f deleted$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(deleted_OBJECTS) $(deleted_LDADD) $(LIBS)
-
-deleted-lib.so$(EXEEXT): $(deleted_lib_so_OBJECTS) $(deleted_lib_so_DEPENDENCIES) $(EXTRA_deleted_lib_so_DEPENDENCIES)
- @rm -f deleted-lib.so$(EXEEXT)
- $(AM_V_CCLD)$(deleted_lib_so_LINK) $(deleted_lib_so_OBJECTS) $(deleted_lib_so_LDADD) $(LIBS)
-
-dwarf-getmacros$(EXEEXT): $(dwarf_getmacros_OBJECTS) $(dwarf_getmacros_DEPENDENCIES) $(EXTRA_dwarf_getmacros_DEPENDENCIES)
- @rm -f dwarf-getmacros$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwarf_getmacros_OBJECTS) $(dwarf_getmacros_LDADD) $(LIBS)
-
-dwarf-getstring$(EXEEXT): $(dwarf_getstring_OBJECTS) $(dwarf_getstring_DEPENDENCIES) $(EXTRA_dwarf_getstring_DEPENDENCIES)
- @rm -f dwarf-getstring$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwarf_getstring_OBJECTS) $(dwarf_getstring_LDADD) $(LIBS)
-
-dwfl-addr-sect$(EXEEXT): $(dwfl_addr_sect_OBJECTS) $(dwfl_addr_sect_DEPENDENCIES) $(EXTRA_dwfl_addr_sect_DEPENDENCIES)
- @rm -f dwfl-addr-sect$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_addr_sect_OBJECTS) $(dwfl_addr_sect_LDADD) $(LIBS)
-
-dwfl-bug-addr-overflow$(EXEEXT): $(dwfl_bug_addr_overflow_OBJECTS) $(dwfl_bug_addr_overflow_DEPENDENCIES) $(EXTRA_dwfl_bug_addr_overflow_DEPENDENCIES)
- @rm -f dwfl-bug-addr-overflow$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_bug_addr_overflow_OBJECTS) $(dwfl_bug_addr_overflow_LDADD) $(LIBS)
-
-dwfl-bug-fd-leak$(EXEEXT): $(dwfl_bug_fd_leak_OBJECTS) $(dwfl_bug_fd_leak_DEPENDENCIES) $(EXTRA_dwfl_bug_fd_leak_DEPENDENCIES)
- @rm -f dwfl-bug-fd-leak$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_bug_fd_leak_OBJECTS) $(dwfl_bug_fd_leak_LDADD) $(LIBS)
-
-dwfl-bug-getmodules$(EXEEXT): $(dwfl_bug_getmodules_OBJECTS) $(dwfl_bug_getmodules_DEPENDENCIES) $(EXTRA_dwfl_bug_getmodules_DEPENDENCIES)
- @rm -f dwfl-bug-getmodules$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_bug_getmodules_OBJECTS) $(dwfl_bug_getmodules_LDADD) $(LIBS)
-
-dwfl-bug-report$(EXEEXT): $(dwfl_bug_report_OBJECTS) $(dwfl_bug_report_DEPENDENCIES) $(EXTRA_dwfl_bug_report_DEPENDENCIES)
- @rm -f dwfl-bug-report$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_bug_report_OBJECTS) $(dwfl_bug_report_LDADD) $(LIBS)
-
-dwfl-report-elf-align$(EXEEXT): $(dwfl_report_elf_align_OBJECTS) $(dwfl_report_elf_align_DEPENDENCIES) $(EXTRA_dwfl_report_elf_align_DEPENDENCIES)
- @rm -f dwfl-report-elf-align$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfl_report_elf_align_OBJECTS) $(dwfl_report_elf_align_LDADD) $(LIBS)
-
-dwfllines$(EXEEXT): $(dwfllines_OBJECTS) $(dwfllines_DEPENDENCIES) $(EXTRA_dwfllines_DEPENDENCIES)
- @rm -f dwfllines$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwfllines_OBJECTS) $(dwfllines_LDADD) $(LIBS)
-
-dwflmodtest$(EXEEXT): $(dwflmodtest_OBJECTS) $(dwflmodtest_DEPENDENCIES) $(EXTRA_dwflmodtest_DEPENDENCIES)
- @rm -f dwflmodtest$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwflmodtest_OBJECTS) $(dwflmodtest_LDADD) $(LIBS)
-
-dwflsyms$(EXEEXT): $(dwflsyms_OBJECTS) $(dwflsyms_DEPENDENCIES) $(EXTRA_dwflsyms_DEPENDENCIES)
- @rm -f dwflsyms$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(dwflsyms_OBJECTS) $(dwflsyms_LDADD) $(LIBS)
-
-early-offscn$(EXEEXT): $(early_offscn_OBJECTS) $(early_offscn_DEPENDENCIES) $(EXTRA_early_offscn_DEPENDENCIES)
- @rm -f early-offscn$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(early_offscn_OBJECTS) $(early_offscn_LDADD) $(LIBS)
-
-ecp$(EXEEXT): $(ecp_OBJECTS) $(ecp_DEPENDENCIES) $(EXTRA_ecp_DEPENDENCIES)
- @rm -f ecp$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(ecp_OBJECTS) $(ecp_LDADD) $(LIBS)
-
-find-prologues$(EXEEXT): $(find_prologues_OBJECTS) $(find_prologues_DEPENDENCIES) $(EXTRA_find_prologues_DEPENDENCIES)
- @rm -f find-prologues$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(find_prologues_OBJECTS) $(find_prologues_LDADD) $(LIBS)
-
-funcretval$(EXEEXT): $(funcretval_OBJECTS) $(funcretval_DEPENDENCIES) $(EXTRA_funcretval_DEPENDENCIES)
- @rm -f funcretval$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(funcretval_OBJECTS) $(funcretval_LDADD) $(LIBS)
-
-funcscopes$(EXEEXT): $(funcscopes_OBJECTS) $(funcscopes_DEPENDENCIES) $(EXTRA_funcscopes_DEPENDENCIES)
- @rm -f funcscopes$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(funcscopes_OBJECTS) $(funcscopes_LDADD) $(LIBS)
-
-get-aranges$(EXEEXT): $(get_aranges_OBJECTS) $(get_aranges_DEPENDENCIES) $(EXTRA_get_aranges_DEPENDENCIES)
- @rm -f get-aranges$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(get_aranges_OBJECTS) $(get_aranges_LDADD) $(LIBS)
-
-get-files$(EXEEXT): $(get_files_OBJECTS) $(get_files_DEPENDENCIES) $(EXTRA_get_files_DEPENDENCIES)
- @rm -f get-files$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(get_files_OBJECTS) $(get_files_LDADD) $(LIBS)
-
-get-lines$(EXEEXT): $(get_lines_OBJECTS) $(get_lines_DEPENDENCIES) $(EXTRA_get_lines_DEPENDENCIES)
- @rm -f get-lines$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(get_lines_OBJECTS) $(get_lines_LDADD) $(LIBS)
-
-get-pubnames$(EXEEXT): $(get_pubnames_OBJECTS) $(get_pubnames_DEPENDENCIES) $(EXTRA_get_pubnames_DEPENDENCIES)
- @rm -f get-pubnames$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(get_pubnames_OBJECTS) $(get_pubnames_LDADD) $(LIBS)
-
-hash$(EXEEXT): $(hash_OBJECTS) $(hash_DEPENDENCIES) $(EXTRA_hash_DEPENDENCIES)
- @rm -f hash$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(hash_OBJECTS) $(hash_LDADD) $(LIBS)
-
-line2addr$(EXEEXT): $(line2addr_OBJECTS) $(line2addr_DEPENDENCIES) $(EXTRA_line2addr_DEPENDENCIES)
- @rm -f line2addr$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(line2addr_OBJECTS) $(line2addr_LDADD) $(LIBS)
-
-low_high_pc$(EXEEXT): $(low_high_pc_OBJECTS) $(low_high_pc_DEPENDENCIES) $(EXTRA_low_high_pc_DEPENDENCIES)
- @rm -f low_high_pc$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(low_high_pc_OBJECTS) $(low_high_pc_LDADD) $(LIBS)
-
-md5-sha1-test$(EXEEXT): $(md5_sha1_test_OBJECTS) $(md5_sha1_test_DEPENDENCIES) $(EXTRA_md5_sha1_test_DEPENDENCIES)
- @rm -f md5-sha1-test$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(md5_sha1_test_OBJECTS) $(md5_sha1_test_LDADD) $(LIBS)
-
-msg_tst$(EXEEXT): $(msg_tst_OBJECTS) $(msg_tst_DEPENDENCIES) $(EXTRA_msg_tst_DEPENDENCIES)
- @rm -f msg_tst$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(msg_tst_OBJECTS) $(msg_tst_LDADD) $(LIBS)
-
-newfile$(EXEEXT): $(newfile_OBJECTS) $(newfile_DEPENDENCIES) $(EXTRA_newfile_DEPENDENCIES)
- @rm -f newfile$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(newfile_OBJECTS) $(newfile_LDADD) $(LIBS)
-
-newscn$(EXEEXT): $(newscn_OBJECTS) $(newscn_DEPENDENCIES) $(EXTRA_newscn_DEPENDENCIES)
- @rm -f newscn$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(newscn_OBJECTS) $(newscn_LDADD) $(LIBS)
-
-rdwrmmap$(EXEEXT): $(rdwrmmap_OBJECTS) $(rdwrmmap_DEPENDENCIES) $(EXTRA_rdwrmmap_DEPENDENCIES)
- @rm -f rdwrmmap$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(rdwrmmap_OBJECTS) $(rdwrmmap_LDADD) $(LIBS)
-
-rerequest_tag$(EXEEXT): $(rerequest_tag_OBJECTS) $(rerequest_tag_DEPENDENCIES) $(EXTRA_rerequest_tag_DEPENDENCIES)
- @rm -f rerequest_tag$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(rerequest_tag_OBJECTS) $(rerequest_tag_LDADD) $(LIBS)
-
-saridx$(EXEEXT): $(saridx_OBJECTS) $(saridx_DEPENDENCIES) $(EXTRA_saridx_DEPENDENCIES)
- @rm -f saridx$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(saridx_OBJECTS) $(saridx_LDADD) $(LIBS)
-
-scnnames$(EXEEXT): $(scnnames_OBJECTS) $(scnnames_DEPENDENCIES) $(EXTRA_scnnames_DEPENDENCIES)
- @rm -f scnnames$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(scnnames_OBJECTS) $(scnnames_LDADD) $(LIBS)
-
-sectiondump$(EXEEXT): $(sectiondump_OBJECTS) $(sectiondump_DEPENDENCIES) $(EXTRA_sectiondump_DEPENDENCIES)
- @rm -f sectiondump$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(sectiondump_OBJECTS) $(sectiondump_LDADD) $(LIBS)
-
-show-abbrev$(EXEEXT): $(show_abbrev_OBJECTS) $(show_abbrev_DEPENDENCIES) $(EXTRA_show_abbrev_DEPENDENCIES)
- @rm -f show-abbrev$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(show_abbrev_OBJECTS) $(show_abbrev_LDADD) $(LIBS)
-
-show-die-info$(EXEEXT): $(show_die_info_OBJECTS) $(show_die_info_DEPENDENCIES) $(EXTRA_show_die_info_DEPENDENCIES)
- @rm -f show-die-info$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(show_die_info_OBJECTS) $(show_die_info_LDADD) $(LIBS)
-
-showptable$(EXEEXT): $(showptable_OBJECTS) $(showptable_DEPENDENCIES) $(EXTRA_showptable_DEPENDENCIES)
- @rm -f showptable$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(showptable_OBJECTS) $(showptable_LDADD) $(LIBS)
-
-test-elf_cntl_gelf_getshdr$(EXEEXT): $(test_elf_cntl_gelf_getshdr_OBJECTS) $(test_elf_cntl_gelf_getshdr_DEPENDENCIES) $(EXTRA_test_elf_cntl_gelf_getshdr_DEPENDENCIES)
- @rm -f test-elf_cntl_gelf_getshdr$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_elf_cntl_gelf_getshdr_OBJECTS) $(test_elf_cntl_gelf_getshdr_LDADD) $(LIBS)
-
-test-flag-nobits$(EXEEXT): $(test_flag_nobits_OBJECTS) $(test_flag_nobits_DEPENDENCIES) $(EXTRA_test_flag_nobits_DEPENDENCIES)
- @rm -f test-flag-nobits$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_flag_nobits_OBJECTS) $(test_flag_nobits_LDADD) $(LIBS)
-
-test-nlist$(EXEEXT): $(test_nlist_OBJECTS) $(test_nlist_DEPENDENCIES) $(EXTRA_test_nlist_DEPENDENCIES)
- @rm -f test-nlist$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(test_nlist_OBJECTS) $(test_nlist_LDADD) $(LIBS)
-
-typeiter$(EXEEXT): $(typeiter_OBJECTS) $(typeiter_DEPENDENCIES) $(EXTRA_typeiter_DEPENDENCIES)
- @rm -f typeiter$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(typeiter_OBJECTS) $(typeiter_LDADD) $(LIBS)
-
-typeiter2$(EXEEXT): $(typeiter2_OBJECTS) $(typeiter2_DEPENDENCIES) $(EXTRA_typeiter2_DEPENDENCIES)
- @rm -f typeiter2$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(typeiter2_OBJECTS) $(typeiter2_LDADD) $(LIBS)
-
-update1$(EXEEXT): $(update1_OBJECTS) $(update1_DEPENDENCIES) $(EXTRA_update1_DEPENDENCIES)
- @rm -f update1$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(update1_OBJECTS) $(update1_LDADD) $(LIBS)
-
-update2$(EXEEXT): $(update2_OBJECTS) $(update2_DEPENDENCIES) $(EXTRA_update2_DEPENDENCIES)
- @rm -f update2$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(update2_OBJECTS) $(update2_LDADD) $(LIBS)
-
-update3$(EXEEXT): $(update3_OBJECTS) $(update3_DEPENDENCIES) $(EXTRA_update3_DEPENDENCIES)
- @rm -f update3$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(update3_OBJECTS) $(update3_LDADD) $(LIBS)
-
-update4$(EXEEXT): $(update4_OBJECTS) $(update4_DEPENDENCIES) $(EXTRA_update4_DEPENDENCIES)
- @rm -f update4$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(update4_OBJECTS) $(update4_LDADD) $(LIBS)
-
-varlocs$(EXEEXT): $(varlocs_OBJECTS) $(varlocs_DEPENDENCIES) $(EXTRA_varlocs_DEPENDENCIES)
- @rm -f varlocs$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(varlocs_OBJECTS) $(varlocs_LDADD) $(LIBS)
-
-vdsosyms$(EXEEXT): $(vdsosyms_OBJECTS) $(vdsosyms_DEPENDENCIES) $(EXTRA_vdsosyms_DEPENDENCIES)
- @rm -f vdsosyms$(EXEEXT)
- $(AM_V_CCLD)$(LINK) $(vdsosyms_OBJECTS) $(vdsosyms_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/addrcfi.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/addrscopes.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aggregate_size.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alldts.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allfcts.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/allregs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arextract.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arls.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arsymtest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst1.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst3.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst4.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst5.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst6.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst7.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst8.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asm-tst9.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/backtrace-child.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/backtrace-data.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/backtrace.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/backtrace_child-backtrace-child.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buildid.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debugaltlink.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debuglink.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/deleted.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/deleted_lib_so-deleted-lib.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf-getmacros.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf-getstring.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl-addr-sect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl-bug-addr-overflow.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl-bug-fd-leak.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl-bug-getmodules.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl-bug-report.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl-report-elf-align.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfllines.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwflmodtest.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwflsyms.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/early-offscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/find-prologues.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/funcretval.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/funcscopes.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get-aranges.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get-files.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get-lines.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get-pubnames.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/line2addr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/low_high_pc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5-sha1-test.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msg_tst.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/newfile.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/newscn.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdwrmmap.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rerequest_tag.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/saridx.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scnnames.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sectiondump.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/show-abbrev.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/show-die-info.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/showptable.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-elf_cntl_gelf_getshdr.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-flag-nobits.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-nlist.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/typeiter.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/typeiter2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/update1.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/update2.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/update3.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/update4.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/varlocs.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vdsosyms.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
-
-.c.obj:
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
-
-backtrace_child-backtrace-child.o: backtrace-child.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_child_CFLAGS) $(CFLAGS) -MT backtrace_child-backtrace-child.o -MD -MP -MF $(DEPDIR)/backtrace_child-backtrace-child.Tpo -c -o backtrace_child-backtrace-child.o `test -f 'backtrace-child.c' || echo '$(srcdir)/'`backtrace-child.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/backtrace_child-backtrace-child.Tpo $(DEPDIR)/backtrace_child-backtrace-child.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='backtrace-child.c' object='backtrace_child-backtrace-child.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_child_CFLAGS) $(CFLAGS) -c -o backtrace_child-backtrace-child.o `test -f 'backtrace-child.c' || echo '$(srcdir)/'`backtrace-child.c
-
-backtrace_child-backtrace-child.obj: backtrace-child.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_child_CFLAGS) $(CFLAGS) -MT backtrace_child-backtrace-child.obj -MD -MP -MF $(DEPDIR)/backtrace_child-backtrace-child.Tpo -c -o backtrace_child-backtrace-child.obj `if test -f 'backtrace-child.c'; then $(CYGPATH_W) 'backtrace-child.c'; else $(CYGPATH_W) '$(srcdir)/backtrace-child.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/backtrace_child-backtrace-child.Tpo $(DEPDIR)/backtrace_child-backtrace-child.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='backtrace-child.c' object='backtrace_child-backtrace-child.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_child_CFLAGS) $(CFLAGS) -c -o backtrace_child-backtrace-child.obj `if test -f 'backtrace-child.c'; then $(CYGPATH_W) 'backtrace-child.c'; else $(CYGPATH_W) '$(srcdir)/backtrace-child.c'; fi`
-
-backtrace_dwarf-backtrace-dwarf.o: backtrace-dwarf.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_dwarf_CFLAGS) $(CFLAGS) -MT backtrace_dwarf-backtrace-dwarf.o -MD -MP -MF $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Tpo -c -o backtrace_dwarf-backtrace-dwarf.o `test -f 'backtrace-dwarf.c' || echo '$(srcdir)/'`backtrace-dwarf.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Tpo $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='backtrace-dwarf.c' object='backtrace_dwarf-backtrace-dwarf.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_dwarf_CFLAGS) $(CFLAGS) -c -o backtrace_dwarf-backtrace-dwarf.o `test -f 'backtrace-dwarf.c' || echo '$(srcdir)/'`backtrace-dwarf.c
-
-backtrace_dwarf-backtrace-dwarf.obj: backtrace-dwarf.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_dwarf_CFLAGS) $(CFLAGS) -MT backtrace_dwarf-backtrace-dwarf.obj -MD -MP -MF $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Tpo -c -o backtrace_dwarf-backtrace-dwarf.obj `if test -f 'backtrace-dwarf.c'; then $(CYGPATH_W) 'backtrace-dwarf.c'; else $(CYGPATH_W) '$(srcdir)/backtrace-dwarf.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Tpo $(DEPDIR)/backtrace_dwarf-backtrace-dwarf.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='backtrace-dwarf.c' object='backtrace_dwarf-backtrace-dwarf.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(backtrace_dwarf_CFLAGS) $(CFLAGS) -c -o backtrace_dwarf-backtrace-dwarf.obj `if test -f 'backtrace-dwarf.c'; then $(CYGPATH_W) 'backtrace-dwarf.c'; else $(CYGPATH_W) '$(srcdir)/backtrace-dwarf.c'; fi`
-
-deleted_lib_so-deleted-lib.o: deleted-lib.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -MT deleted_lib_so-deleted-lib.o -MD -MP -MF $(DEPDIR)/deleted_lib_so-deleted-lib.Tpo -c -o deleted_lib_so-deleted-lib.o `test -f 'deleted-lib.c' || echo '$(srcdir)/'`deleted-lib.c
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/deleted_lib_so-deleted-lib.Tpo $(DEPDIR)/deleted_lib_so-deleted-lib.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='deleted-lib.c' object='deleted_lib_so-deleted-lib.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -c -o deleted_lib_so-deleted-lib.o `test -f 'deleted-lib.c' || echo '$(srcdir)/'`deleted-lib.c
-
-deleted_lib_so-deleted-lib.obj: deleted-lib.c
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -MT deleted_lib_so-deleted-lib.obj -MD -MP -MF $(DEPDIR)/deleted_lib_so-deleted-lib.Tpo -c -o deleted_lib_so-deleted-lib.obj `if test -f 'deleted-lib.c'; then $(CYGPATH_W) 'deleted-lib.c'; else $(CYGPATH_W) '$(srcdir)/deleted-lib.c'; fi`
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/deleted_lib_so-deleted-lib.Tpo $(DEPDIR)/deleted_lib_so-deleted-lib.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='deleted-lib.c' object='deleted_lib_so-deleted-lib.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -c -o deleted_lib_so-deleted-lib.obj `if test -f 'deleted-lib.c'; then $(CYGPATH_W) 'deleted-lib.c'; else $(CYGPATH_W) '$(srcdir)/deleted-lib.c'; fi`
-
-ID: $(am__tagged_files)
- $(am__define_uniq_tagged_files); mkid -fID $$unique
-tags: tags-am
-TAGS: tags
-
-tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- set x; \
- here=`pwd`; \
- $(am__define_uniq_tagged_files); \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: ctags-am
-
-CTAGS: ctags
-ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
- $(am__define_uniq_tagged_files); \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-cscopelist: cscopelist-am
-
-cscopelist-am: $(am__tagged_files)
- list='$(am__tagged_files)'; \
- case "$(srcdir)" in \
- [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
- *) sdir=$(subdir)/$(srcdir) ;; \
- esac; \
- for i in $$list; do \
- if test -f "$$i"; then \
- echo "$(subdir)/$$i"; \
- else \
- echo "$$sdir/$$i"; \
- fi; \
- done >> $(top_builddir)/cscope.files
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-# Recover from deleted '.trs' file; this should ensure that
-# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
-# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
-# to avoid problems with "make -n".
-.log.trs:
- rm -f $< $@
- $(MAKE) $(AM_MAKEFLAGS) $<
-
-# Leading 'am--fnord' is there to ensure the list of targets does not
-# expand to empty, as could happen e.g. with make check TESTS=''.
-am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
-am--force-recheck:
- @:
-
-$(TEST_SUITE_LOG): $(TEST_LOGS)
- @$(am__set_TESTS_bases); \
- am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
- redo_bases=`for i in $$bases; do \
- am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
- done`; \
- if test -n "$$redo_bases"; then \
- redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
- redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
- if $(am__make_dryrun); then :; else \
- rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
- fi; \
- fi; \
- if test -n "$$am__remaking_logs"; then \
- echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
- "recursion detected" >&2; \
- else \
- am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
- fi; \
- if $(am__make_dryrun); then :; else \
- st=0; \
- errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
- for i in $$redo_bases; do \
- test -f $$i.trs && test -r $$i.trs \
- || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
- test -f $$i.log && test -r $$i.log \
- || { echo "$$errmsg $$i.log" >&2; st=1; }; \
- done; \
- test $$st -eq 0 || exit 1; \
- fi
- @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
- ws='[ ]'; \
- results=`for b in $$bases; do echo $$b.trs; done`; \
- test -n "$$results" || results=/dev/null; \
- all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
- pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
- fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
- skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
- xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
- xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
- error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
- if test `expr $$fail + $$xpass + $$error` -eq 0; then \
- success=true; \
- else \
- success=false; \
- fi; \
- br='==================='; br=$$br$$br$$br$$br; \
- result_count () \
- { \
- if test x"$$1" = x"--maybe-color"; then \
- maybe_colorize=yes; \
- elif test x"$$1" = x"--no-color"; then \
- maybe_colorize=no; \
- else \
- echo "$@: invalid 'result_count' usage" >&2; exit 4; \
- fi; \
- shift; \
- desc=$$1 count=$$2; \
- if test $$maybe_colorize = yes && test $$count -gt 0; then \
- color_start=$$3 color_end=$$std; \
- else \
- color_start= color_end=; \
- fi; \
- echo "$${color_start}# $$desc $$count$${color_end}"; \
- }; \
- create_testsuite_report () \
- { \
- result_count $$1 "TOTAL:" $$all "$$brg"; \
- result_count $$1 "PASS: " $$pass "$$grn"; \
- result_count $$1 "SKIP: " $$skip "$$blu"; \
- result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
- result_count $$1 "FAIL: " $$fail "$$red"; \
- result_count $$1 "XPASS:" $$xpass "$$red"; \
- result_count $$1 "ERROR:" $$error "$$mgn"; \
- }; \
- { \
- echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
- $(am__rst_title); \
- create_testsuite_report --no-color; \
- echo; \
- echo ".. contents:: :depth: 2"; \
- echo; \
- for b in $$bases; do echo $$b; done \
- | $(am__create_global_log); \
- } >$(TEST_SUITE_LOG).tmp || exit 1; \
- mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
- if $$success; then \
- col="$$grn"; \
- else \
- col="$$red"; \
- test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
- fi; \
- echo "$${col}$$br$${std}"; \
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
- echo "$${col}$$br$${std}"; \
- create_testsuite_report --maybe-color; \
- echo "$$col$$br$$std"; \
- if $$success; then :; else \
- echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
- if test -n "$(PACKAGE_BUGREPORT)"; then \
- echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
- fi; \
- echo "$$col$$br$$std"; \
- fi; \
- $$success || exit 1
-
-check-TESTS:
- @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
- @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- trs_list=`for i in $$bases; do echo $$i.trs; done`; \
- log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
- exit $$?;
-recheck: all $(check_PROGRAMS)
- @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
- @set +e; $(am__set_TESTS_bases); \
- bases=`for i in $$bases; do echo $$i; done \
- | $(am__list_recheck_tests)` || exit 1; \
- log_list=`for i in $$bases; do echo $$i.log; done`; \
- log_list=`echo $$log_list`; \
- $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
- am__force_recheck=am--force-recheck \
- TEST_LOGS="$$log_list"; \
- exit $$?
-run-arextract.sh.log: run-arextract.sh
- @p='run-arextract.sh'; \
- b='run-arextract.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-arsymtest.sh.log: run-arsymtest.sh
- @p='run-arsymtest.sh'; \
- b='run-arsymtest.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-newfile.log: newfile$(EXEEXT)
- @p='newfile$(EXEEXT)'; \
- b='newfile'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-test-nlist.log: test-nlist$(EXEEXT)
- @p='test-nlist$(EXEEXT)'; \
- b='test-nlist'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-update1.log: update1$(EXEEXT)
- @p='update1$(EXEEXT)'; \
- b='update1'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-update2.log: update2$(EXEEXT)
- @p='update2$(EXEEXT)'; \
- b='update2'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-update3.log: update3$(EXEEXT)
- @p='update3$(EXEEXT)'; \
- b='update3'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-update4.log: update4$(EXEEXT)
- @p='update4$(EXEEXT)'; \
- b='update4'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-show-die-info.sh.log: run-show-die-info.sh
- @p='run-show-die-info.sh'; \
- b='run-show-die-info.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-get-files.sh.log: run-get-files.sh
- @p='run-get-files.sh'; \
- b='run-get-files.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-get-lines.sh.log: run-get-lines.sh
- @p='run-get-lines.sh'; \
- b='run-get-lines.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-get-pubnames.sh.log: run-get-pubnames.sh
- @p='run-get-pubnames.sh'; \
- b='run-get-pubnames.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-get-aranges.sh.log: run-get-aranges.sh
- @p='run-get-aranges.sh'; \
- b='run-get-aranges.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-allfcts.sh.log: run-allfcts.sh
- @p='run-allfcts.sh'; \
- b='run-allfcts.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-show-abbrev.sh.log: run-show-abbrev.sh
- @p='run-show-abbrev.sh'; \
- b='run-show-abbrev.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-line2addr.sh.log: run-line2addr.sh
- @p='run-line2addr.sh'; \
- b='run-line2addr.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-hash.log: hash$(EXEEXT)
- @p='hash$(EXEEXT)'; \
- b='hash'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-newscn.log: newscn$(EXEEXT)
- @p='newscn$(EXEEXT)'; \
- b='newscn'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test.sh.log: run-strip-test.sh
- @p='run-strip-test.sh'; \
- b='run-strip-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test2.sh.log: run-strip-test2.sh
- @p='run-strip-test2.sh'; \
- b='run-strip-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test3.sh.log: run-strip-test3.sh
- @p='run-strip-test3.sh'; \
- b='run-strip-test3.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test4.sh.log: run-strip-test4.sh
- @p='run-strip-test4.sh'; \
- b='run-strip-test4.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test5.sh.log: run-strip-test5.sh
- @p='run-strip-test5.sh'; \
- b='run-strip-test5.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test6.sh.log: run-strip-test6.sh
- @p='run-strip-test6.sh'; \
- b='run-strip-test6.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test7.sh.log: run-strip-test7.sh
- @p='run-strip-test7.sh'; \
- b='run-strip-test7.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-test8.sh.log: run-strip-test8.sh
- @p='run-strip-test8.sh'; \
- b='run-strip-test8.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-groups.sh.log: run-strip-groups.sh
- @p='run-strip-groups.sh'; \
- b='run-strip-groups.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strip-reloc.sh.log: run-strip-reloc.sh
- @p='run-strip-reloc.sh'; \
- b='run-strip-reloc.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-unstrip-test.sh.log: run-unstrip-test.sh
- @p='run-unstrip-test.sh'; \
- b='run-unstrip-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-unstrip-test2.sh.log: run-unstrip-test2.sh
- @p='run-unstrip-test2.sh'; \
- b='run-unstrip-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-unstrip-M.sh.log: run-unstrip-M.sh
- @p='run-unstrip-M.sh'; \
- b='run-unstrip-M.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ecp-test.sh.log: run-ecp-test.sh
- @p='run-ecp-test.sh'; \
- b='run-ecp-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ecp-test2.sh.log: run-ecp-test2.sh
- @p='run-ecp-test2.sh'; \
- b='run-ecp-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-alldts.sh.log: run-alldts.sh
- @p='run-alldts.sh'; \
- b='run-alldts.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-elflint-test.sh.log: run-elflint-test.sh
- @p='run-elflint-test.sh'; \
- b='run-elflint-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-elflint-self.sh.log: run-elflint-self.sh
- @p='run-elflint-self.sh'; \
- b='run-elflint-self.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ranlib-test.sh.log: run-ranlib-test.sh
- @p='run-ranlib-test.sh'; \
- b='run-ranlib-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ranlib-test2.sh.log: run-ranlib-test2.sh
- @p='run-ranlib-test2.sh'; \
- b='run-ranlib-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ranlib-test3.sh.log: run-ranlib-test3.sh
- @p='run-ranlib-test3.sh'; \
- b='run-ranlib-test3.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-ranlib-test4.sh.log: run-ranlib-test4.sh
- @p='run-ranlib-test4.sh'; \
- b='run-ranlib-test4.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addrscopes.sh.log: run-addrscopes.sh
- @p='run-addrscopes.sh'; \
- b='run-addrscopes.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-strings-test.sh.log: run-strings-test.sh
- @p='run-strings-test.sh'; \
- b='run-strings-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-funcscopes.sh.log: run-funcscopes.sh
- @p='run-funcscopes.sh'; \
- b='run-funcscopes.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-find-prologues.sh.log: run-find-prologues.sh
- @p='run-find-prologues.sh'; \
- b='run-find-prologues.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-allregs.sh.log: run-allregs.sh
- @p='run-allregs.sh'; \
- b='run-allregs.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addrcfi.sh.log: run-addrcfi.sh
- @p='run-addrcfi.sh'; \
- b='run-addrcfi.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-nm-self.sh.log: run-nm-self.sh
- @p='run-nm-self.sh'; \
- b='run-nm-self.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-self.sh.log: run-readelf-self.sh
- @p='run-readelf-self.sh'; \
- b='run-readelf-self.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-test1.sh.log: run-readelf-test1.sh
- @p='run-readelf-test1.sh'; \
- b='run-readelf-test1.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-test2.sh.log: run-readelf-test2.sh
- @p='run-readelf-test2.sh'; \
- b='run-readelf-test2.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-test3.sh.log: run-readelf-test3.sh
- @p='run-readelf-test3.sh'; \
- b='run-readelf-test3.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-test4.sh.log: run-readelf-test4.sh
- @p='run-readelf-test4.sh'; \
- b='run-readelf-test4.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-twofiles.sh.log: run-readelf-twofiles.sh
- @p='run-readelf-twofiles.sh'; \
- b='run-readelf-twofiles.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-macro.sh.log: run-readelf-macro.sh
- @p='run-readelf-macro.sh'; \
- b='run-readelf-macro.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-loc.sh.log: run-readelf-loc.sh
- @p='run-readelf-loc.sh'; \
- b='run-readelf-loc.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-aranges.sh.log: run-readelf-aranges.sh
- @p='run-readelf-aranges.sh'; \
- b='run-readelf-aranges.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-line.sh.log: run-readelf-line.sh
- @p='run-readelf-line.sh'; \
- b='run-readelf-line.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-native-test.sh.log: run-native-test.sh
- @p='run-native-test.sh'; \
- b='run-native-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-bug1-test.sh.log: run-bug1-test.sh
- @p='run-bug1-test.sh'; \
- b='run-bug1-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-debuglink.sh.log: run-debuglink.sh
- @p='run-debuglink.sh'; \
- b='run-debuglink.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-debugaltlink.sh.log: run-debugaltlink.sh
- @p='run-debugaltlink.sh'; \
- b='run-debugaltlink.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-buildid.sh.log: run-buildid.sh
- @p='run-buildid.sh'; \
- b='run-buildid.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-dwfl-bug-addr-overflow.log: dwfl-bug-addr-overflow$(EXEEXT)
- @p='dwfl-bug-addr-overflow$(EXEEXT)'; \
- b='dwfl-bug-addr-overflow'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addrname-test.sh.log: run-addrname-test.sh
- @p='run-addrname-test.sh'; \
- b='run-addrname-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-dwfl-bug-fd-leak.log: dwfl-bug-fd-leak$(EXEEXT)
- @p='dwfl-bug-fd-leak$(EXEEXT)'; \
- b='dwfl-bug-fd-leak'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-dwfl-bug-report.log: dwfl-bug-report$(EXEEXT)
- @p='dwfl-bug-report$(EXEEXT)'; \
- b='dwfl-bug-report'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwfl-bug-offline-rel.sh.log: run-dwfl-bug-offline-rel.sh
- @p='run-dwfl-bug-offline-rel.sh'; \
- b='run-dwfl-bug-offline-rel.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwfl-addr-sect.sh.log: run-dwfl-addr-sect.sh
- @p='run-dwfl-addr-sect.sh'; \
- b='run-dwfl-addr-sect.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-disasm-x86.sh.log: run-disasm-x86.sh
- @p='run-disasm-x86.sh'; \
- b='run-disasm-x86.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-disasm-x86-64.sh.log: run-disasm-x86-64.sh
- @p='run-disasm-x86-64.sh'; \
- b='run-disasm-x86-64.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-early-offscn.sh.log: run-early-offscn.sh
- @p='run-early-offscn.sh'; \
- b='run-early-offscn.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwarf-getmacros.sh.log: run-dwarf-getmacros.sh
- @p='run-dwarf-getmacros.sh'; \
- b='run-dwarf-getmacros.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-test-flag-nobits.sh.log: run-test-flag-nobits.sh
- @p='run-test-flag-nobits.sh'; \
- b='run-test-flag-nobits.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-prelink-addr-test.sh.log: run-prelink-addr-test.sh
- @p='run-prelink-addr-test.sh'; \
- b='run-prelink-addr-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwarf-getstring.sh.log: run-dwarf-getstring.sh
- @p='run-dwarf-getstring.sh'; \
- b='run-dwarf-getstring.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-rerequest_tag.sh.log: run-rerequest_tag.sh
- @p='run-rerequest_tag.sh'; \
- b='run-rerequest_tag.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-typeiter.sh.log: run-typeiter.sh
- @p='run-typeiter.sh'; \
- b='run-typeiter.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-d.sh.log: run-readelf-d.sh
- @p='run-readelf-d.sh'; \
- b='run-readelf-d.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-gdb_index.sh.log: run-readelf-gdb_index.sh
- @p='run-readelf-gdb_index.sh'; \
- b='run-readelf-gdb_index.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-unstrip-n.sh.log: run-unstrip-n.sh
- @p='run-unstrip-n.sh'; \
- b='run-unstrip-n.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-low_high_pc.sh.log: run-low_high_pc.sh
- @p='run-low_high_pc.sh'; \
- b='run-low_high_pc.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-macro-test.sh.log: run-macro-test.sh
- @p='run-macro-test.sh'; \
- b='run-macro-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-elf_cntl_gelf_getshdr.sh.log: run-elf_cntl_gelf_getshdr.sh
- @p='run-elf_cntl_gelf_getshdr.sh'; \
- b='run-elf_cntl_gelf_getshdr.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-test-archive64.sh.log: run-test-archive64.sh
- @p='run-test-archive64.sh'; \
- b='run-test-archive64.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-vmcoreinfo.sh.log: run-readelf-vmcoreinfo.sh
- @p='run-readelf-vmcoreinfo.sh'; \
- b='run-readelf-vmcoreinfo.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-mixed-corenote.sh.log: run-readelf-mixed-corenote.sh
- @p='run-readelf-mixed-corenote.sh'; \
- b='run-readelf-mixed-corenote.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwfllines.sh.log: run-dwfllines.sh
- @p='run-dwfllines.sh'; \
- b='run-dwfllines.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwfl-report-elf-align.sh.log: run-dwfl-report-elf-align.sh
- @p='run-dwfl-report-elf-align.sh'; \
- b='run-dwfl-report-elf-align.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addr2line-test.sh.log: run-addr2line-test.sh
- @p='run-addr2line-test.sh'; \
- b='run-addr2line-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addr2line-i-test.sh.log: run-addr2line-i-test.sh
- @p='run-addr2line-i-test.sh'; \
- b='run-addr2line-i-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-addr2line-i-lex-test.sh.log: run-addr2line-i-lex-test.sh
- @p='run-addr2line-i-lex-test.sh'; \
- b='run-addr2line-i-lex-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-varlocs.sh.log: run-varlocs.sh
- @p='run-varlocs.sh'; \
- b='run-varlocs.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-funcretval.sh.log: run-funcretval.sh
- @p='run-funcretval.sh'; \
- b='run-funcretval.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-native.sh.log: run-backtrace-native.sh
- @p='run-backtrace-native.sh'; \
- b='run-backtrace-native.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-data.sh.log: run-backtrace-data.sh
- @p='run-backtrace-data.sh'; \
- b='run-backtrace-data.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-dwarf.sh.log: run-backtrace-dwarf.sh
- @p='run-backtrace-dwarf.sh'; \
- b='run-backtrace-dwarf.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-native-biarch.sh.log: run-backtrace-native-biarch.sh
- @p='run-backtrace-native-biarch.sh'; \
- b='run-backtrace-native-biarch.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-native-core.sh.log: run-backtrace-native-core.sh
- @p='run-backtrace-native-core.sh'; \
- b='run-backtrace-native-core.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-native-core-biarch.sh.log: run-backtrace-native-core-biarch.sh
- @p='run-backtrace-native-core-biarch.sh'; \
- b='run-backtrace-native-core-biarch.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-x86_64.sh.log: run-backtrace-core-x86_64.sh
- @p='run-backtrace-core-x86_64.sh'; \
- b='run-backtrace-core-x86_64.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-i386.sh.log: run-backtrace-core-i386.sh
- @p='run-backtrace-core-i386.sh'; \
- b='run-backtrace-core-i386.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-ppc.sh.log: run-backtrace-core-ppc.sh
- @p='run-backtrace-core-ppc.sh'; \
- b='run-backtrace-core-ppc.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-s390x.sh.log: run-backtrace-core-s390x.sh
- @p='run-backtrace-core-s390x.sh'; \
- b='run-backtrace-core-s390x.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-s390.sh.log: run-backtrace-core-s390.sh
- @p='run-backtrace-core-s390.sh'; \
- b='run-backtrace-core-s390.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-core-aarch64.sh.log: run-backtrace-core-aarch64.sh
- @p='run-backtrace-core-aarch64.sh'; \
- b='run-backtrace-core-aarch64.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-backtrace-demangle.sh.log: run-backtrace-demangle.sh
- @p='run-backtrace-demangle.sh'; \
- b='run-backtrace-demangle.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-stack-d-test.sh.log: run-stack-d-test.sh
- @p='run-stack-d-test.sh'; \
- b='run-stack-d-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-stack-i-test.sh.log: run-stack-i-test.sh
- @p='run-stack-i-test.sh'; \
- b='run-stack-i-test.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-dwz-multi.sh.log: run-readelf-dwz-multi.sh
- @p='run-readelf-dwz-multi.sh'; \
- b='run-readelf-dwz-multi.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-allfcts-multi.sh.log: run-allfcts-multi.sh
- @p='run-allfcts-multi.sh'; \
- b='run-allfcts-multi.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-deleted.sh.log: run-deleted.sh
- @p='run-deleted.sh'; \
- b='run-deleted.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-linkmap-cut.sh.log: run-linkmap-cut.sh
- @p='run-linkmap-cut.sh'; \
- b='run-linkmap-cut.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-aggregate-size.sh.log: run-aggregate-size.sh
- @p='run-aggregate-size.sh'; \
- b='run-aggregate-size.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-vdsosyms.log: vdsosyms$(EXEEXT)
- @p='vdsosyms$(EXEEXT)'; \
- b='vdsosyms'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-A.sh.log: run-readelf-A.sh
- @p='run-readelf-A.sh'; \
- b='run-readelf-A.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-msg_tst.log: msg_tst$(EXEEXT)
- @p='msg_tst$(EXEEXT)'; \
- b='msg_tst'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-md5-sha1-test.log: md5-sha1-test$(EXEEXT)
- @p='md5-sha1-test$(EXEEXT)'; \
- b='md5-sha1-test'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-s.sh.log: run-readelf-s.sh
- @p='run-readelf-s.sh'; \
- b='run-readelf-s.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-dwflsyms.sh.log: run-dwflsyms.sh
- @p='run-dwflsyms.sh'; \
- b='run-dwflsyms.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-run-readelf-zdebug.sh.log: run-readelf-zdebug.sh
- @p='run-readelf-zdebug.sh'; \
- b='run-readelf-zdebug.sh'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst1.log: asm-tst1$(EXEEXT)
- @p='asm-tst1$(EXEEXT)'; \
- b='asm-tst1'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst2.log: asm-tst2$(EXEEXT)
- @p='asm-tst2$(EXEEXT)'; \
- b='asm-tst2'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst3.log: asm-tst3$(EXEEXT)
- @p='asm-tst3$(EXEEXT)'; \
- b='asm-tst3'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst4.log: asm-tst4$(EXEEXT)
- @p='asm-tst4$(EXEEXT)'; \
- b='asm-tst4'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst5.log: asm-tst5$(EXEEXT)
- @p='asm-tst5$(EXEEXT)'; \
- b='asm-tst5'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst6.log: asm-tst6$(EXEEXT)
- @p='asm-tst6$(EXEEXT)'; \
- b='asm-tst6'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst7.log: asm-tst7$(EXEEXT)
- @p='asm-tst7$(EXEEXT)'; \
- b='asm-tst7'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst8.log: asm-tst8$(EXEEXT)
- @p='asm-tst8$(EXEEXT)'; \
- b='asm-tst8'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-asm-tst9.log: asm-tst9$(EXEEXT)
- @p='asm-tst9$(EXEEXT)'; \
- b='asm-tst9'; \
- $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-.test.log:
- @p='$<'; \
- $(am__set_b); \
- $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
- --log-file $$b.log --trs-file $$b.trs \
- $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
- "$$tst" $(AM_TESTS_FD_REDIRECT)
-@am__EXEEXT_TRUE@.test$(EXEEXT).log:
-@am__EXEEXT_TRUE@ @p='$<'; \
-@am__EXEEXT_TRUE@ $(am__set_b); \
-@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
-@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
-@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
-@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- if test -z '$(STRIP)'; then \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- install; \
- else \
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
- fi
-mostlyclean-generic:
- -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
- -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
- -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
- -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-@STANDALONE_TRUE@installcheck-local:
-clean: clean-am
-
-clean-am: clean-checkPROGRAMS clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am: installcheck-local
-
-maintainer-clean: maintainer-clean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: check-am install-am install-strip
-
-.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
- clean-checkPROGRAMS clean-generic cscopelist-am ctags ctags-am \
- distclean distclean-compile distclean-generic distclean-tags \
- distdir dvi dvi-am html html-am info info-am install \
- install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installcheck-local \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
- ps ps-am recheck tags tags-am uninstall uninstall-am
-
-
-%.os: %.c %.o
-@AMDEP_TRUE@ if $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \
-@AMDEP_TRUE@ -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \
-@AMDEP_TRUE@ then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \
-@AMDEP_TRUE@ rm -f "$(DEPDIR)/$*.Tpo"; \
-@AMDEP_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@AMDEP_TRUE@ fi
-@AMDEP_FALSE@ $(COMPILE.os) -c -o $@ -fpic -DPIC -DSHARED $<
-
-# Substitute $(COMPILE).
-backtrace-child-biarch$(EXEEXT): backtrace-child.c
- $(CC_BIARCH) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) \
- $(AM_CFLAGS) $(CFLAGS) $(backtrace_child_CFLAGS) \
- $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \
- -o $@ $<
-
-@BIARCH_FALSE@export ELFUTILS_DISABLE_BIARCH = 1
-
-@DEMANGLE_FALSE@export ELFUTILS_DISABLE_DEMANGLE = 1
-
-@STANDALONE_FALSE@installcheck-local:
-@STANDALONE_FALSE@ $(MAKE) $(AM_MAKEFLAGS) \
-@STANDALONE_FALSE@ TESTS_ENVIRONMENT="$(installed_TESTS_ENVIRONMENT)" \
-@STANDALONE_FALSE@ LOG_COMPILER="$(installed_LOG_COMPILER)" check-TESTS
-
-@GCOV_TRUE@check: check-am coverage
-@GCOV_TRUE@.PHONY: coverage
-@GCOV_TRUE@coverage:
-@GCOV_TRUE@ -$(srcdir)/coverage.sh
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/tests/addrcfi.c b/src/tests/addrcfi.c
deleted file mode 100644
index 8a2d126c..00000000
--- a/src/tests/addrcfi.c
+++ /dev/null
@@ -1,226 +0,0 @@
-/* Test program for CFI handling.
- Copyright (C) 2009-2010, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-#include <argp.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "../libdw/known-dwarf.h"
-
-static const char *
-op_name (unsigned int code)
-{
- static const char *const known[] =
- {
-#define ONE_KNOWN_DW_OP_DESC(NAME, CODE, DESC) ONE_KNOWN_DW_OP (NAME, CODE)
-#define ONE_KNOWN_DW_OP(NAME, CODE) [CODE] = #NAME,
- ALL_KNOWN_DW_OP
-#undef ONE_KNOWN_DW_OP
-#undef ONE_KNOWN_DW_OP_DESC
- };
-
- if (likely (code < sizeof (known) / sizeof (known[0])))
- return known[code];
-
- return NULL;
-}
-
-static void
-print_detail (int result, const Dwarf_Op *ops, size_t nops, Dwarf_Addr bias)
-{
- if (result < 0)
- printf ("indeterminate (%s)\n", dwarf_errmsg (-1));
- else if (nops == 0)
- printf ("%s\n", ops == NULL ? "same_value" : "undefined");
- else
- {
- printf ("%s expression:", result == 0 ? "location" : "value");
- for (size_t i = 0; i < nops; ++i)
- {
- printf (" %s", op_name(ops[i].atom));
- if (ops[i].number2 == 0)
- {
- if (ops[i].atom == DW_OP_addr)
- printf ("(%#" PRIx64 ")", ops[i].number + bias);
- else if (ops[i].number != 0)
- printf ("(%" PRId64 ")", ops[i].number);
- }
- else
- printf ("(%" PRId64 ",%" PRId64 ")",
- ops[i].number, ops[i].number2);
- }
- puts ("");
- }
-}
-
-struct stuff
-{
- Dwarf_Frame *frame;
- Dwarf_Addr bias;
-};
-
-static int
-print_register (void *arg,
- int regno,
- const char *setname,
- const char *prefix,
- const char *regname,
- int bits __attribute__ ((unused)),
- int type __attribute__ ((unused)))
-{
- struct stuff *stuff = arg;
-
- printf ("\t%s reg%u (%s%s): ", setname, regno, prefix, regname);
-
- Dwarf_Op ops_mem[2];
- Dwarf_Op *ops;
- size_t nops;
- int result = dwarf_frame_register (stuff->frame, regno, ops_mem, &ops, &nops);
- print_detail (result, ops, nops, stuff->bias);
-
- return DWARF_CB_OK;
-}
-
-static int
-handle_cfi (Dwfl *dwfl, const char *which, Dwarf_CFI *cfi,
- GElf_Addr pc, struct stuff *stuff)
-{
- if (cfi == NULL)
- {
- printf ("handle_cfi no CFI (%s): %s\n", which, dwarf_errmsg (-1));
- return -1;
- }
-
- int result = dwarf_cfi_addrframe (cfi, pc - stuff->bias, &stuff->frame);
- if (result != 0)
- {
- printf ("dwarf_cfi_addrframe (%s): %s\n", which, dwarf_errmsg (-1));
- return 1;
- }
-
- Dwarf_Addr start = pc;
- Dwarf_Addr end = pc;
- bool signalp;
- int ra_regno = dwarf_frame_info (stuff->frame, &start, &end, &signalp);
- if (ra_regno >= 0)
- {
- start += stuff->bias;
- end += stuff->bias;
- }
-
- printf ("%s has %#" PRIx64 " => [%#" PRIx64 ", %#" PRIx64 "):\n",
- which, pc, start, end);
-
- if (ra_regno < 0)
- printf ("\treturn address register unavailable (%s)\n",
- dwarf_errmsg (0));
- else
- printf ("\treturn address in reg%u%s\n",
- ra_regno, signalp ? " (signal frame)" : "");
-
- // Point cfa_ops to dummy to match print_detail expectations.
- // (nops == 0 && cfa_ops != NULL => "undefined")
- Dwarf_Op dummy;
- Dwarf_Op *cfa_ops = &dummy;
- size_t cfa_nops;
- result = dwarf_frame_cfa (stuff->frame, &cfa_ops, &cfa_nops);
-
- printf ("\tCFA ");
- print_detail (result, cfa_ops, cfa_nops, stuff->bias);
-
- (void) dwfl_module_register_names (dwfl_addrmodule (dwfl, pc),
- &print_register, stuff);
-
- return 0;
-}
-
-static int
-handle_address (GElf_Addr pc, Dwfl *dwfl)
-{
- Dwfl_Module *mod = dwfl_addrmodule (dwfl, pc);
-
- struct stuff stuff;
- return (handle_cfi (dwfl, ".eh_frame",
- dwfl_module_eh_cfi (mod, &stuff.bias), pc, &stuff)
- & handle_cfi (dwfl, ".debug_frame",
- dwfl_module_dwarf_cfi (mod, &stuff.bias), pc, &stuff));
-}
-
-int
-main (int argc, char *argv[])
-{
- int remaining;
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- Dwfl *dwfl = NULL;
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining, &dwfl);
- assert (dwfl != NULL);
-
- int result = 0;
-
- /* Now handle the addresses. In case none are given on the command
- line, read from stdin. */
- if (remaining == argc)
- {
- /* We use no threads here which can interfere with handling a stream. */
- (void) __fsetlocking (stdin, FSETLOCKING_BYCALLER);
-
- char *buf = NULL;
- size_t len = 0;
- while (!feof_unlocked (stdin))
- {
- if (getline (&buf, &len, stdin) < 0)
- break;
-
- char *endp;
- uintmax_t addr = strtoumax (buf, &endp, 0);
- if (endp != buf)
- result |= handle_address (addr, dwfl);
- else
- result = 1;
- }
-
- free (buf);
- }
- else
- {
- do
- {
- char *endp;
- uintmax_t addr = strtoumax (argv[remaining], &endp, 0);
- if (endp != argv[remaining])
- result |= handle_address (addr, dwfl);
- else
- result = 1;
- }
- while (++remaining < argc);
- }
-
- dwfl_end (dwfl);
-
- return result;
-}
diff --git a/src/tests/addrscopes.c b/src/tests/addrscopes.c
deleted file mode 100644
index fca61d33..00000000
--- a/src/tests/addrscopes.c
+++ /dev/null
@@ -1,195 +0,0 @@
-/* Test program for dwarf_getscopes.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-#include <argp.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <stdlib.h>
-#include <error.h>
-#include <string.h>
-
-
-static void
-paddr (const char *prefix, Dwarf_Addr addr, Dwfl_Line *line)
-{
- const char *src;
- int lineno, linecol;
- if (line != NULL
- && (src = dwfl_lineinfo (line, &addr, &lineno, &linecol,
- NULL, NULL)) != NULL)
- {
- if (linecol != 0)
- printf ("%s%#" PRIx64 " (%s:%d:%d)",
- prefix, addr, src, lineno, linecol);
- else
- printf ("%s%#" PRIx64 " (%s:%d)",
- prefix, addr, src, lineno);
- }
- else
- printf ("%s%#" PRIx64, prefix, addr);
-}
-
-static void
-print_vars (unsigned int indent, Dwarf_Die *die)
-{
- Dwarf_Die child;
- if (dwarf_child (die, &child) == 0)
- do
- switch (dwarf_tag (&child))
- {
- case DW_TAG_variable:
- case DW_TAG_formal_parameter:
- printf ("%*s%-30s[%6" PRIx64 "]\n", indent, "",
- dwarf_diename (&child),
- (uint64_t) dwarf_dieoffset (&child));
- break;
- default:
- break;
- }
- while (dwarf_siblingof (&child, &child) == 0);
-
- Dwarf_Attribute attr_mem;
- Dwarf_Die origin;
- if (dwarf_hasattr (die, DW_AT_abstract_origin)
- && dwarf_formref_die (dwarf_attr (die, DW_AT_abstract_origin, &attr_mem),
- &origin) != NULL
- && dwarf_child (&origin, &child) == 0)
- do
- switch (dwarf_tag (&child))
- {
- case DW_TAG_variable:
- case DW_TAG_formal_parameter:
- printf ("%*s%s (abstract)\n", indent, "",
- dwarf_diename (&child));
- break;
- default:
- break;
- }
- while (dwarf_siblingof (&child, &child) == 0);
-}
-
-
-#define INDENT 4
-
-static void
-handle_address (GElf_Addr pc, Dwfl *dwfl)
-{
- Dwarf_Addr cubias;
- Dwarf_Die *cudie = dwfl_addrdie (dwfl, pc, &cubias);
- if (cudie == NULL)
- error (EXIT_FAILURE, 0, "dwfl_addrdie: %s", dwfl_errmsg (-1));
-
- Dwarf_Die *scopes;
- int n = dwarf_getscopes (cudie, pc - cubias, &scopes);
- if (n < 0)
- error (EXIT_FAILURE, 0, "dwarf_getscopes: %s", dwarf_errmsg (-1));
- else if (n == 0)
- printf ("%#" PRIx64 ": not in any scope\n", pc);
- else
- {
- printf ("%#" PRIx64 ":\n", pc);
- unsigned int indent = 0;
- while (n-- > 0)
- {
- Dwarf_Die *const die = &scopes[n];
-
- indent += INDENT;
- printf ("%*s%s (%#x)", indent, "",
- dwarf_diename (die) ?: "<unnamed>",
- dwarf_tag (die));
-
- Dwarf_Addr lowpc, highpc;
- if (dwarf_lowpc (die, &lowpc) == 0
- && dwarf_highpc (die, &highpc) == 0)
- {
- lowpc += cubias;
- highpc += cubias;
- Dwfl_Line *loline = dwfl_getsrc (dwfl, lowpc);
- Dwfl_Line *hiline = dwfl_getsrc (dwfl, highpc);
- paddr (": ", lowpc, loline);
- if (highpc != lowpc)
- paddr (" .. ", lowpc, hiline == loline ? NULL : hiline);
- }
- puts ("");
-
- print_vars (indent + INDENT, die);
- }
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- int remaining;
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- Dwfl *dwfl = NULL;
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining, &dwfl);
- assert (dwfl != NULL);
-
- int result = 0;
-
- /* Now handle the addresses. In case none are given on the command
- line, read from stdin. */
- if (remaining == argc)
- {
- /* We use no threads here which can interfere with handling a stream. */
- (void) __fsetlocking (stdin, FSETLOCKING_BYCALLER);
-
- char *buf = NULL;
- size_t len = 0;
- while (!feof_unlocked (stdin))
- {
- if (getline (&buf, &len, stdin) < 0)
- break;
-
- char *endp;
- uintmax_t addr = strtoumax (buf, &endp, 0);
- if (endp != buf)
- handle_address (addr, dwfl);
- else
- result = 1;
- }
-
- free (buf);
- }
- else
- {
- do
- {
- char *endp;
- uintmax_t addr = strtoumax (argv[remaining], &endp, 0);
- if (endp != argv[remaining])
- handle_address (addr, dwfl);
- else
- result = 1;
- }
- while (++remaining < argc);
- }
-
- dwfl_end (dwfl);
-
- return result;
-}
diff --git a/src/tests/aggregate_size.c b/src/tests/aggregate_size.c
deleted file mode 100644
index 930eafa7..00000000
--- a/src/tests/aggregate_size.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* Test program for dwarf_aggregate_size. Prints size of top-level vars.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <argp.h>
-#include <inttypes.h>
-#include <fcntl.h>
-#include ELFUTILS_HEADER(dw)
-#include ELFUTILS_HEADER(dwfl)
-#include <stdio.h>
-#include <unistd.h>
-#include <dwarf.h>
-
-void
-print_var_type_size (Dwarf_Die *var)
-{
- Dwarf_Attribute attr_mem;
- Dwarf_Die type_mem;
- Dwarf_Die *type;
- const char *name = dwarf_diename (var);
-
- type = dwarf_formref_die (dwarf_attr (var, DW_AT_type, &attr_mem),
- &type_mem);
- if (type != NULL)
- {
- Dwarf_Word size;
- if (dwarf_aggregate_size (type, &size) < 0)
- printf ("%s no size: %s\n", name, dwarf_errmsg (-1));
- else
- printf ("%s size %" PRIu64 "\n", name, size);
- }
- else
- printf ("%s has no type.\n", name);
-}
-
-int
-main (int argc, char *argv[])
-{
-
- int remaining;
- Dwfl *dwfl;
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining,
- &dwfl);
- assert (dwfl != NULL);
-
- Dwarf_Die *cu = NULL;
- Dwarf_Addr dwbias;
- while ((cu = dwfl_nextcu (dwfl, cu, &dwbias)) != NULL)
- {
- Dwarf_Die die_mem;
- Dwarf_Die *die = &die_mem;
- dwarf_child (cu, &die_mem);
-
- while (1)
- {
- if (dwarf_tag (die) == DW_TAG_variable)
- print_var_type_size (die);
-
- if (dwarf_siblingof (die, &die_mem) != 0)
- break;
- }
- }
-
- dwfl_end (dwfl);
-}
diff --git a/src/tests/alldts.c b/src/tests/alldts.c
deleted file mode 100644
index 378aa412..00000000
--- a/src/tests/alldts.c
+++ /dev/null
@@ -1,267 +0,0 @@
-/* Create an ELF file with all the DT_* flags set.
- Copyright (C) 2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Marek Polacek <mpolacek@redhat.com>, 2011.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include ELFUTILS_HEADER(ebl)
-#include <elf.h>
-#include <gelf.h>
-#include <fcntl.h>
-#include <libelf.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <stdint.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-
-int
-main (void)
-{
- static const char fname[] = "testfile-alldts";
- struct Ebl_Strtab *shst;
- struct Ebl_Strent *dynscn;
- struct Ebl_Strent *shstrtabse;
- const Elf32_Sword dtflags[] =
- {
- DT_NULL, DT_NEEDED, DT_PLTRELSZ, DT_PLTGOT,
- DT_HASH, DT_STRTAB, DT_SYMTAB, DT_RELA,
- DT_RELASZ, DT_RELAENT, DT_STRSZ, DT_SYMENT,
- DT_INIT, DT_FINI, DT_SONAME, DT_RPATH,
- DT_SYMBOLIC, DT_REL, DT_RELSZ, DT_RELENT,
- DT_PLTREL, DT_DEBUG, DT_TEXTREL, DT_JMPREL,
- DT_BIND_NOW, DT_INIT_ARRAY, DT_FINI_ARRAY,
- DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ, DT_RUNPATH,
- DT_FLAGS, DT_ENCODING, DT_PREINIT_ARRAY,
- DT_PREINIT_ARRAYSZ, DT_VERSYM, DT_GNU_PRELINKED,
- DT_GNU_CONFLICTSZ, DT_GNU_LIBLISTSZ, DT_CHECKSUM,
- DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE_1,
- DT_POSFLAG_1, DT_SYMINSZ, DT_SYMINENT, DT_GNU_HASH,
- DT_TLSDESC_PLT, DT_TLSDESC_GOT, DT_GNU_CONFLICT,
- DT_GNU_LIBLIST, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
- DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT,
- DT_RELCOUNT, DT_FLAGS_1, DT_VERDEF, DT_VERDEFNUM,
- DT_VERNEED, DT_VERNEEDNUM, DT_AUXILIARY, DT_FILTER
- };
- const int ndtflags = sizeof (dtflags) / sizeof (dtflags[0]);
-
- /* We use no threads here which can interfere with handling a stream. */
- (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER);
-
- /* Open the file. */
- int fd = open64 (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
- if (fd == -1)
- {
- printf ("cannot open `%s': %m\n", fname);
- return 1;
- }
-
- /* Tell the library which version are we expecting. */
- elf_version (EV_CURRENT);
-
- /* Create an ELF descriptor. */
- Elf *elf = elf_begin (fd, ELF_C_WRITE, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- /* Create an ELF header. */
- Elf32_Ehdr *ehdr = elf32_newehdr (elf);
- if (ehdr == NULL)
- {
- printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- ehdr->e_ident[0] = 42;
- ehdr->e_ident[5] = 1;
- ehdr->e_ident[6] = 2;
- ehdr->e_type = ET_EXEC;
- ehdr->e_machine = EM_386;
- ehdr->e_version = 1;
- ehdr->e_ehsize = 1;
- ehdr->e_shnum = 3;
-
- elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY);
-
- /* Create the program headers. */
- Elf32_Phdr *phdr = elf32_newphdr (elf, 2);
- if (phdr == NULL)
- {
- printf ("cannot create program headers: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- phdr[0].p_type = PT_PHDR;
- phdr[1].p_type = PT_DYNAMIC;
-
- elf_flagphdr (elf, ELF_C_SET, ELF_F_DIRTY);
- shst = ebl_strtabinit (true);
-
- /* Create the .dynamic section. */
- Elf_Scn *scn = elf_newscn (elf);
- if (scn == NULL)
- {
- printf ("cannot create DYNAMIC section: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- Elf32_Shdr *shdr = elf32_getshdr (scn);
- if (shdr == NULL)
- {
- printf ("cannot get header for DYNAMIC section: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- dynscn = ebl_strtabadd (shst, ".dynamic", 0);
-
- /* We'll need to know the section offset. But this will be set up
- by elf_update later, so for now just store the address. */
- const Elf32_Off *const dynscn_offset = &shdr->sh_offset;
- shdr->sh_type = SHT_DYNAMIC;
- shdr->sh_flags = SHF_ALLOC | SHF_WRITE;
- shdr->sh_link = SHN_UNDEF;
- shdr->sh_info = SHN_UNDEF;
- /* This section will start here. */
- shdr->sh_addr = 0x1a0;
-
- /* Create new section data. */
- Elf_Data *data = elf_newdata (scn);
- if (data == NULL)
- {
- printf ("cannot create data for DYNAMIC section: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- /* Allocate memory for all the .dynamic entries. */
- Elf32_Dyn *dyn = malloc (ndtflags * sizeof (Elf32_Dyn));
- if (dyn == NULL)
- {
- printf ("malloc failed: %m\n");
- return 1;
- }
-
- /* Now write all the DT_* flags. */
- for (int i = 0; i < ndtflags; ++i)
- {
- dyn[i].d_tag = dtflags[i];
- dyn[i].d_un.d_val = 0xdeadbeef;
- }
-
- /* Set the pointer to allocated memory. */
- data->d_buf = dyn;
- data->d_type = ELF_T_DYN;
- data->d_version = EV_CURRENT;
- data->d_size = ndtflags * sizeof (Elf32_Dyn);
- data->d_align = 0x8;
-
- /* Create .shstrtab section. */
- scn = elf_newscn (elf);
- if (scn == NULL)
- {
- printf ("cannot create SHSTRTAB section: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- shdr = elf32_getshdr (scn);
- if (shdr == NULL)
- {
- printf ("cannot get header for SHSTRTAB section: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- shstrtabse = ebl_strtabadd (shst, ".shstrtab", 0);
-
- shdr->sh_type = SHT_STRTAB;
- shdr->sh_flags = 0;
- shdr->sh_addr = 0;
- shdr->sh_link = SHN_UNDEF;
- shdr->sh_info = SHN_UNDEF;
- shdr->sh_entsize = 1;
-
- /* We have to store the section index in the ELF header. */
- ehdr->e_shstrndx = elf_ndxscn (scn);
-
- data = elf_newdata (scn);
- if (data == NULL)
- {
- printf ("cannot create data SHSTRTAB section: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- /* No more sections, finalize the section header string table. */
- ebl_strtabfinalize (shst, data);
-
- elf32_getshdr (elf_getscn (elf, 1))->sh_name = ebl_strtaboffset (dynscn);
- shdr->sh_name = ebl_strtaboffset (shstrtabse);
-
- /* Let the library compute the internal structure information. */
- if (elf_update (elf, ELF_C_NULL) < 0)
- {
- printf ("failure in elf_update(NULL): %s\n", elf_errmsg (-1));
- return 1;
- }
-
- ehdr = elf32_getehdr (elf);
-
- phdr[0].p_offset = ehdr->e_phoff;
- phdr[0].p_vaddr = ehdr->e_phoff;
- phdr[0].p_paddr = ehdr->e_phoff;
- phdr[0].p_flags = PF_R | PF_X;
- phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
- phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
- phdr[0].p_align = sizeof (Elf32_Word);
-
- phdr[1].p_flags = PF_W | PF_R;
- phdr[1].p_offset = *dynscn_offset;
- /* Set up the start of this segment to equal start address of the
- .dynamic section. */
- phdr[1].p_vaddr = 0x1a0;
- phdr[1].p_paddr = 0x1a0;
- phdr[1].p_align = 2 * sizeof (Elf32_Word);
- phdr[1].p_filesz = ndtflags * sizeof (Elf32_Dyn);
- phdr[1].p_memsz = ndtflags * sizeof (Elf32_Dyn);
-
- /* Write out the file. */
- if (elf_update (elf, ELF_C_WRITE) < 0)
- {
- printf ("failure in elf_update(WRITE): %s\n", elf_errmsg (-1));
- return 1;
- }
-
- /* We don't need the string table anymore. */
- ebl_strtabfree (shst);
-
- /* And the data allocated in the .shstrtab section. */
- free (data->d_buf);
-
- /* All done. */
- if (elf_end (elf) != 0)
- {
- printf ("failure in elf_end: %s\n", elf_errmsg (-1));
- return 1;
- }
-
- return 0;
-}
diff --git a/src/tests/allfcts.c b/src/tests/allfcts.c
deleted file mode 100644
index d3c8d26a..00000000
--- a/src/tests/allfcts.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* Copyright (C) 2005, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <err.h>
-#include <fcntl.h>
-#include ELFUTILS_HEADER(dw)
-#include ELFUTILS_HEADER(dwelf)
-#include <stdio.h>
-#include <unistd.h>
-
-
-static int
-cb (Dwarf_Die *func, void *arg __attribute__ ((unused)))
-{
- const char *file = dwarf_decl_file (func);
- int line = -1;
- dwarf_decl_line (func, &line);
- const char *fct = dwarf_diename (func);
-
- printf ("%s:%d:%s\n", file, line, fct);
-
- return DWARF_CB_ABORT;
-}
-
-static Dwarf *
-setup_alt (Dwarf *main)
-{
- const char *alt_name;
- const void *build_id;
- ssize_t ret = dwelf_dwarf_gnu_debugaltlink (main, &alt_name, &build_id);
- if (ret == 0)
- return NULL;
- if (ret == -1)
- errx (1, "dwelf_dwarf_gnu_debugaltlink: %s", dwarf_errmsg (-1));
- int fd = open (alt_name, O_RDONLY);
- if (fd < 0)
- err (1, "open (%s)", alt_name);
- Dwarf *dbg_alt = dwarf_begin (fd, DWARF_C_READ);
- if (dbg_alt == NULL)
- errx (1, "dwarf_begin (%s): %s", alt_name, dwarf_errmsg (-1));
- if (elf_cntl (dwarf_getelf (dbg_alt), ELF_C_FDREAD) != 0)
- errx (1, "elf_cntl (%s, ELF_C_FDREAD): %s", alt_name, elf_errmsg (-1));
- close (fd);
- dwarf_setalt (main, dbg_alt);
- return dbg_alt;
-}
-
-int
-main (int argc, char *argv[])
-{
- for (int i = 1; i < argc; ++i)
- {
- int fd = open (argv[i], O_RDONLY);
- if (fd < 0)
- err (1, "open (%s)", argv[i]);
-
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg != NULL)
- {
- Dwarf_Off off = 0;
- size_t cuhl;
- Dwarf_Off noff;
- Dwarf *dbg_alt = setup_alt (dbg);
-
- while (dwarf_nextcu (dbg, off, &noff, &cuhl, NULL, NULL, NULL) == 0)
- {
- Dwarf_Die die_mem;
- Dwarf_Die *die = dwarf_offdie (dbg, off + cuhl, &die_mem);
-
- /* Explicitly stop in the callback and then resume each time. */
- ptrdiff_t doff = 0;
- do
- {
- doff = dwarf_getfuncs (die, cb, NULL, doff);
- if (dwarf_errno () != 0)
- errx (1, "dwarf_getfuncs (%s): %s",
- argv[i], dwarf_errmsg (-1));
- }
- while (doff != 0);
-
- off = noff;
- }
-
- dwarf_end (dbg_alt);
- dwarf_end (dbg);
- }
- else
- errx (1, "dwarf_begin (%s): %s", argv[i], dwarf_errmsg (-1));
-
- close (fd);
- }
-}
diff --git a/src/tests/allregs.c b/src/tests/allregs.c
deleted file mode 100644
index b103ce18..00000000
--- a/src/tests/allregs.c
+++ /dev/null
@@ -1,203 +0,0 @@
-/* Copyright (C) 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <error.h>
-#include <locale.h>
-#include <argp.h>
-#include <assert.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-
-#include "../libdw/known-dwarf.h"
-
-static const char *
-dwarf_encoding_string (unsigned int code)
-{
- static const char *const known[] =
- {
-#define ONE_KNOWN_DW_ATE(NAME, CODE) [CODE] = #NAME,
- ALL_KNOWN_DW_ATE
-#undef ONE_KNOWN_DW_ATE
- };
-
- if (likely (code < sizeof (known) / sizeof (known[0])))
- return known[code];
-
- return NULL;
-}
-
-
-static int
-first_module (Dwfl_Module *mod,
- void **userdatap __attribute__ ((unused)),
- const char *name __attribute__ ((unused)),
- Dwarf_Addr low_addr __attribute__ ((unused)),
- void *arg)
-{
- Dwarf_Addr bias;
- if (dwfl_module_getelf (mod, &bias) == NULL) /* Not really a module. */
- return DWARF_CB_OK;
-
- *(Dwfl_Module **) arg = mod;
- return DWARF_CB_ABORT;
-}
-
-
-struct state
-{
- struct reginfo *info;
- int nregs;
-};
-
-struct reginfo
-{
- const char *set, *pfx;
- int regno;
- int bits;
- int type;
- char name[32];
-};
-
-static int
-compare (const void *r1, const void *r2)
-{
- const struct reginfo *a = r1, *b = r2;
- if (a->set == b->set)
- return a->regno - b->regno;
- if (a->set == NULL)
- return 1;
- if (b->set == NULL)
- return -1;
- if (!strcmp (a->set, "integer"))
- return -1;
- if (!strcmp (b->set, "integer"))
- return 1;
- return strcmp (a->set, b->set);
-}
-
-static int
-one_register (void *arg,
- int regno,
- const char *setname,
- const char *prefix,
- const char *regname,
- int bits, int type)
-{
- struct state *state = arg;
-
- if (regno >= state->nregs)
- {
- state->info = realloc (state->info, (regno + 1) * sizeof state->info[0]);
- memset (&state->info[state->nregs], 0,
- ((void *) &state->info[regno + 1]
- - (void *) &state->info[state->nregs]));
- state->nregs = regno + 1;
- }
-
- state->info[regno].regno = regno;
- state->info[regno].set = setname;
- state->info[regno].pfx = prefix;
- state->info[regno].bits = bits;
- state->info[regno].type = type;
- assert (strlen (regname) < sizeof state->info[regno].name);
- strcpy (state->info[regno].name, regname);
-
- return DWARF_CB_OK;
-}
-
-
-static int
-match_register (void *arg,
- int regno,
- const char *setname,
- const char *prefix,
- const char *regname,
- int bits, int type)
-{
- if (regno == *(int *) arg)
- printf ("%5d => %s register %s%s %s %d bits\n",
- regno, setname, prefix, regname,
- dwarf_encoding_string (type), bits);
-
- return DWARF_CB_ABORT;
-}
-
-
-int
-main (int argc, char **argv)
-{
- int remaining;
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- Dwfl *dwfl = NULL;
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining, &dwfl);
- assert (dwfl != NULL);
-
- Dwfl_Module *mod = NULL;
- if (dwfl_getmodules (dwfl, &first_module, &mod, 0) < 0)
- error (EXIT_FAILURE, 0, "dwfl_getmodules: %s", dwfl_errmsg (-1));
-
- if (remaining == argc)
- {
- struct state state = { NULL, 0 };
- int result = dwfl_module_register_names (mod, &one_register, &state);
- if (result != 0 || state.nregs == 0)
- error (EXIT_FAILURE, 0, "dwfl_module_register_names: %s",
- result ? dwfl_errmsg (-1) : "no backend registers known");
-
- qsort (state.info, state.nregs, sizeof state.info[0], &compare);
-
- const char *set = NULL;
- for (int i = 0; i < state.nregs; ++i)
- if (state.info[i].set != NULL)
- {
- if (set != state.info[i].set)
- printf ("%s registers:\n", state.info[i].set);
- set = state.info[i].set;
-
- printf ("\t%3d: %s%s (%s), %s %d bits\n",
- state.info[i].regno,
- state.info[i].pfx ?: "", state.info[i].name,
- state.info[i].name,
- dwarf_encoding_string (state.info[i].type),
- state.info[i].bits);
- }
- }
- else
- do
- {
- const char *arg = argv[remaining++];
- int regno = atoi (arg);
- int result = dwfl_module_register_names (mod, &match_register, &regno);
- if (result != DWARF_CB_ABORT)
- error (EXIT_FAILURE, 0, "dwfl_module_register_names: %s",
- result ? dwfl_errmsg (-1) : "no backend registers known");
- }
- while (remaining < argc);
-
- dwfl_end (dwfl);
-
- return 0;
-}
diff --git a/src/tests/arextract.c b/src/tests/arextract.c
deleted file mode 100644
index 21850b6c..00000000
--- a/src/tests/arextract.c
+++ /dev/null
@@ -1,159 +0,0 @@
-/* Copyright (C) 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <gelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/param.h>
-
-
-int
-main (int argc, char *argv[])
-{
- int fd;
- Elf *elf;
- Elf *subelf;
- Elf_Cmd cmd;
- off_t offset;
- size_t todo;
-
- if (argc < 4)
- exit (1);
-
- /* Open the archive. */
- fd = open (argv[1], O_RDONLY);
- if (fd == -1)
- {
- printf ("Cannot open input file: %m");
- exit (1);
- }
-
- /* Set the ELF version. */
- elf_version (EV_CURRENT);
-
- /* Create an ELF descriptor. */
- cmd = ELF_C_READ;
- elf = elf_begin (fd, cmd, NULL);
- if (elf == NULL)
- {
- printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* If it is no archive punt. */
- if (elf_kind (elf) != ELF_K_AR)
- {
- printf ("`%s' is no archive\n", argv[1]);
- exit (1);
- }
-
- /* Get the elements of the archive one after the other. */
- while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
- {
- /* The the header for this element. */
- Elf_Arhdr *arhdr = elf_getarhdr (subelf);
-
- if (arhdr == NULL)
- {
- printf ("cannot get arhdr: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- if (strcmp (arhdr->ar_name, argv[2]) == 0)
- {
- int outfd;
-
- /* Get the offset of the file in the archive. */
- offset = elf_getbase (subelf);
- if (offset == -1)
- {
- printf ("\
-Failed to get base address for the archive element: %s\n",
- elf_errmsg (-1));
- exit (1);
- }
-
- /* Open the output file. */
- outfd = open (argv[3], O_CREAT | O_TRUNC | O_RDWR, 0666);
- if (outfd == -1)
- {
- printf ("cannot open output file: %m");
- exit (1);
- }
-
- /* Now write out the data. */
- todo = arhdr->ar_size;
- while (todo > 0)
- {
- char buf[1024];
- ssize_t n = pread (fd, buf, MIN (sizeof buf, todo), offset);
- if (n == 0)
- break;
-
- if (write (outfd, buf, n) != n)
- {
- puts ("Writing output failed");
- exit (1);
- }
-
- offset += n;
- todo -= n;
- }
-
- /* Check whether all the date was read and written out. */
- if (todo != 0)
- {
- puts ("Reading archive member failed.");
- exit (1);
- }
-
- /* Close the descriptors. */
- if (elf_end (subelf) != 0 || elf_end (elf) != 0)
- {
- printf ("Freeing ELF descriptors failed: %s", elf_errmsg (-1));
- exit (1);
- }
-
- close (outfd);
- close (fd);
-
- /* All went well. */
- exit (0);
- }
-
- /* Get next archive element. */
- cmd = elf_next (subelf);
- if (elf_end (subelf) != 0)
- {
- printf ("error while freeing sub-ELF descriptor: %s\n",
- elf_errmsg (-1));
- exit (1);
- }
- }
-
- /* When we reach this point we haven't found the given file in the
- archive. */
- printf ("File `%s' not found in archive\n", argv[2]);
- exit (1);
-}
diff --git a/src/tests/arls.c b/src/tests/arls.c
deleted file mode 100644
index cd8e4b81..00000000
--- a/src/tests/arls.c
+++ /dev/null
@@ -1,107 +0,0 @@
-/* Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <ar.h>
-#include <fcntl.h>
-#include <libelf.h>
-#include <stdio.h>
-#include <unistd.h>
-
-
-static int handle (const char *fname);
-
-
-int
-main (int argc, char *argv[])
-{
- elf_version (EV_CURRENT);
-
- int result = 0;
- if (argc == 1)
- result = handle ("a.out");
- else
- for (int i = 1; i < argc; ++i)
- result |= handle (argv[1]);
-
- return result;
-}
-
-
-static int
-handle (const char *fname)
-{
- int fd = open (fname, O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open '%s': %m\n", fname);
- return 1;
- }
-
- Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL);
- if (elf == NULL)
- {
- printf ("cannot get ELF handling for '%s': %s\n",
- fname, elf_errmsg (-1));
- close (fd);
- return 1;
- }
-
- if (elf_kind (elf) != ELF_K_AR)
- {
- printf ("'%s' is no archive\n", fname);
- elf_end (elf);
- close (fd);
- return 1;
- }
-
- printf ("%s:\n", fname);
- Elf *subelf = NULL;
- Elf_Cmd cmd = ELF_C_READ_MMAP;
- while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
- {
- Elf_Arhdr *arhdr = elf_getarhdr (subelf);
- if (arhdr == NULL)
- {
- printf ("cannot get archive header in '%s': %s\n",
- fname, elf_errmsg (-1));
- elf_end (subelf);
- elf_end (elf);
- close (fd);
- return 1;
- }
-
- off_t off = elf_getaroff (subelf);
-
- printf ("\nOffset %llu\n"
- " Name %s\n"
- " Date %ld\n"
- " UID %d\n"
- " GID %d\n"
- " Mode %o\n"
- " Size %lld\n",
- (unsigned long long int) off,
- arhdr->ar_name, (long int) arhdr->ar_date, (int) arhdr->ar_uid,
- (int) arhdr->ar_gid,
- (int) arhdr->ar_mode, (long long int) arhdr->ar_size);
-
- cmd = elf_next (subelf);
- elf_end (subelf);
- }
-
- close (fd);
-
- return 0;
-}
diff --git a/src/tests/arsymtest.c b/src/tests/arsymtest.c
deleted file mode 100644
index c724863f..00000000
--- a/src/tests/arsymtest.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/* Copyright (C) 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <fcntl.h>
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-
-int
-main (int argc, char *argv[])
-{
- int fd;
- FILE *fp;
- Elf *elf;
- Elf_Arsym *arsym;
- size_t narsym;
-
- if (argc < 3)
- exit (1);
-
- /* Open the archive. */
- fd = open (argv[1], O_RDONLY);
- if (fd == -1)
- {
- printf ("Cannot open input file: %m");
- exit (1);
- }
-
- /* Open the output file. */
- fp = fopen (argv[2], "w");
- if (fp == NULL)
- {
- printf ("Cannot open output file: %m");
- exit (1);
- }
-
- /* Set the ELF version. */
- elf_version (EV_CURRENT);
-
- /* Create an ELF descriptor. */
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("Cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* If it is no archive punt. */
- if (elf_kind (elf) != ELF_K_AR)
- {
- printf ("`%s' is no archive\n", argv[1]);
- exit (1);
- }
-
- /* Now get the index of the archive. */
- arsym = elf_getarsym (elf, &narsym);
- if (arsym == NULL)
- {
- printf ("Cannot get archive index: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* If there is no element in the index do nothing. There always is
- an empty entry at the end which is included in the count and
- which we want to skip. */
- if (narsym-- > 1)
- while (narsym-- > 0)
- {
- Elf *subelf;
- Elf_Arhdr *arhdr;
-
- if (elf_rand (elf, arsym[narsym].as_off) != arsym[narsym].as_off)
- {
- printf ("random access for symbol `%s' fails: %s\n",
- arsym[narsym].as_name, elf_errmsg (-1));
- exit (1);
- }
-
- subelf = elf_begin (fd, ELF_C_READ, elf);
- if (subelf == NULL)
- {
- printf ("Cannot create ELF descriptor for archive member: %s\n",
- elf_errmsg (-1));
- exit (1);
- }
-
- arhdr = elf_getarhdr (subelf);
- if (arhdr == NULL)
- {
- printf ("Cannot get archive header for element `%s': %s\n",
- arsym[narsym].as_name, elf_errmsg (-1));
- exit (1);
- }
-
- /* Now print what we actually want. */
- fprintf (fp, "%s in %s\n", arsym[narsym].as_name, arhdr->ar_name);
-
- /* Free the ELF descriptor. */
- if (elf_end (subelf) != 0)
- {
- printf ("Error while freeing subELF descriptor: %s\n",
- elf_errmsg (-1));
- exit (1);
- }
- }
-
- /* Free the ELF descriptor. */
- if (elf_end (elf) != 0)
- {
- printf ("Error while freeing ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- close (fd);
- fclose (fp);
-
- return 0;
-}
diff --git a/src/tests/asm-tst1.c b/src/tests/asm-tst1.c
deleted file mode 100644
index f611d66b..00000000
--- a/src/tests/asm-tst1.c
+++ /dev/null
@@ -1,256 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-
-
-static const char fname[] = "asm-tst1-out.o";
-
-
-static const GElf_Ehdr expected_ehdr =
- {
- .e_ident = { [EI_MAG0] = ELFMAG0,
- [EI_MAG1] = ELFMAG1,
- [EI_MAG2] = ELFMAG2,
- [EI_MAG3] = ELFMAG3,
- [EI_CLASS] = ELFCLASS32,
- [EI_DATA] = ELFDATA2LSB,
- [EI_VERSION] = EV_CURRENT },
- .e_type = ET_REL,
- .e_machine = EM_386,
- .e_version = EV_CURRENT,
- .e_shoff = 88,
- .e_ehsize = sizeof (Elf32_Ehdr),
- .e_shentsize = sizeof (Elf32_Shdr),
- .e_shnum = 4,
- .e_shstrndx = 3
- };
-
-
-static const char *scnnames[4] =
- {
- [0] = "",
- [1] = ".text",
- [2] = ".data",
- [3] = ".shstrtab"
- };
-
-
-int
-main (void)
-{
- AsmCtx_t *ctx;
- AsmScn_t *scn1;
- AsmScn_t *scn2;
- int fd;
- Elf *elf;
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr;
- int result = 0;
- size_t cnt;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- /* Create two sections. */
- scn1 = asm_newscn (ctx, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR);
- scn2 = asm_newscn (ctx, ".data", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE);
- if (scn1 == NULL || scn2 == NULL)
- {
- printf ("cannot create section in output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Special alignment for the .text section. */
- if (asm_align (scn1, 32) != 0)
- {
- printf ("cannot align .text section: %s\n", asm_errmsg (-1));
- result = 1;
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Check the file. */
- fd = open (fname, O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open generated file: %m\n");
- result = 1;
- goto out;
- }
-
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close;
- }
- if (elf_kind (elf) != ELF_K_ELF)
- {
- puts ("not a valid ELF file");
- result = 1;
- goto out_close2;
- }
-
- ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close2;
- }
-
- if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
- {
- puts ("ELF header does not match");
- result = 1;
- goto out_close2;
- }
-
- for (cnt = 1; cnt < 4; ++cnt)
- {
- Elf_Scn *scn;
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
-
- scn = elf_getscn (elf, cnt);
- if (scn == NULL)
- {
- printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- {
- printf ("cannot get section header for section %Zd: %s\n",
- cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- scnnames[cnt]) != 0)
- {
- printf ("section %Zd's name differs: %s vs %s\n", cnt,
- elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- scnnames[cnt]);
- result = 1;
- }
-
- if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS))
- {
- printf ("section %Zd's type differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_EXECINSTR))
- || (cnt == 2 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
- || (cnt == 3 && shdr->sh_flags != 0))
- {
- printf ("section %Zd's flags differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_addr != 0)
- {
- printf ("section %Zd's address differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 31) & ~31))
- {
- printf ("section %Zd's offset differs\n", cnt);
- result = 1;
- }
-
- if ((cnt != 3 && shdr->sh_size != 0)
- || (cnt == 3 && shdr->sh_size != 23))
- {
- printf ("section %Zd's size differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_link != 0)
- {
- printf ("section %Zd's link differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_info != 0)
- {
- printf ("section %Zd's info differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_addralign != 32)
- || (cnt != 1 && shdr->sh_addralign != 1))
- {
- printf ("section %Zd's addralign differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_entsize != 0)
- {
- printf ("section %Zd's entsize differs\n", cnt);
- result = 1;
- }
- }
-
- out_close2:
- elf_end (elf);
- out_close:
- close (fd);
- out:
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/asm-tst2.c b/src/tests/asm-tst2.c
deleted file mode 100644
index 41bf13ae..00000000
--- a/src/tests/asm-tst2.c
+++ /dev/null
@@ -1,278 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-
-
-static const char fname[] = "asm-tst2-out.o";
-
-
-static const GElf_Ehdr expected_ehdr =
- {
- .e_ident = { [EI_MAG0] = ELFMAG0,
- [EI_MAG1] = ELFMAG1,
- [EI_MAG2] = ELFMAG2,
- [EI_MAG3] = ELFMAG3,
- [EI_CLASS] = ELFCLASS32,
- [EI_DATA] = ELFDATA2LSB,
- [EI_VERSION] = EV_CURRENT },
- .e_type = ET_REL,
- .e_machine = EM_386,
- .e_version = EV_CURRENT,
- .e_shoff = 96,
- .e_ehsize = sizeof (Elf32_Ehdr),
- .e_shentsize = sizeof (Elf32_Shdr),
- .e_shnum = 3,
- .e_shstrndx = 2
- };
-
-
-static const char *scnnames[3] =
- {
- [0] = "",
- [1] = ".data",
- [2] = ".shstrtab"
- };
-
-
-int
-main (void)
-{
- AsmCtx_t *ctx;
- AsmScn_t *scn1;
- AsmScn_t *scn2;
- int result = 0;
- int fd;
- Elf *elf;
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr;
- size_t cnt;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- /* Create two sections. */
- scn1 = asm_newscn (ctx, ".data", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE);
- scn2 = asm_newsubscn (scn1, 1);
- if (scn1 == NULL || scn2 == NULL)
- {
- printf ("cannot create section in output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Special alignment for the .text section. */
- if (asm_align (scn1, 16) != 0)
- {
- printf ("cannot align .text section: %s\n", asm_errmsg (-1));
- result = 1;
- }
-
- /* Add a few strings. */
- if (asm_addstrz (scn1, "one", 4) != 0)
- {
- printf ("cannot insert first string: %s\n", asm_errmsg (-1));
- result = 1;
- }
- if (asm_addstrz (scn2, "three", 0) != 0)
- {
- printf ("cannot insert second string: %s\n", asm_errmsg (-1));
- result = 1;
- }
- if (asm_addstrz (scn1, "two", 4) != 0)
- {
- printf ("cannot insert third string: %s\n", asm_errmsg (-1));
- result = 1;
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Check the file. */
- fd = open (fname, O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open generated file: %m\n");
- result = 1;
- goto out;
- }
-
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close;
- }
- if (elf_kind (elf) != ELF_K_ELF)
- {
- puts ("not a valid ELF file");
- result = 1;
- goto out_close2;
- }
-
- ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close2;
- }
-
- if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
- {
- puts ("ELF header does not match");
- result = 1;
- goto out_close2;
- }
-
- for (cnt = 1; cnt < 3; ++cnt)
- {
- Elf_Scn *scn;
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
-
- scn = elf_getscn (elf, cnt);
- if (scn == NULL)
- {
- printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- {
- printf ("cannot get section header for section %Zd: %s\n",
- cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- scnnames[cnt]) != 0)
- {
- printf ("section %Zd's name differs: %s vs %s\n", cnt,
- elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- scnnames[cnt]);
- result = 1;
- }
-
- if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
- {
- printf ("section %Zd's type differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
- || (cnt == 2 && shdr->sh_flags != 0))
- {
- printf ("section %Zd's flags differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_addr != 0)
- {
- printf ("section %Zd's address differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
- || (cnt == 2
- && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15)
- + strlen ("one") + 1
- + strlen ("two") + 1
- + strlen ("three") + 1)))
- {
- printf ("section %Zd's offset differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_size != (strlen ("one") + 1
- + strlen ("two") + 1
- + strlen ("three") + 1))
- || (cnt == 2 && shdr->sh_size != 17))
- {
- printf ("section %Zd's size differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_link != 0)
- {
- printf ("section %Zd's link differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_info != 0)
- {
- printf ("section %Zd's info differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_addralign != 16)
- || (cnt != 1 && shdr->sh_addralign != 1))
- {
- printf ("section %Zd's addralign differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_entsize != 0)
- {
- printf ("section %Zd's entsize differs\n", cnt);
- result = 1;
- }
- }
-
- out_close2:
- elf_end (elf);
- out_close:
- close (fd);
- out:
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/asm-tst3.c b/src/tests/asm-tst3.c
deleted file mode 100644
index acec1a48..00000000
--- a/src/tests/asm-tst3.c
+++ /dev/null
@@ -1,339 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-
-
-static const char fname[] = "asm-tst3-out.o";
-
-
-static const char *scnnames[5] =
- {
- [0] = "",
- [1] = ".data",
- [2] = ".strtab",
- [3] = ".symtab",
- [4] = ".shstrtab"
- };
-
-
-static unsigned int scntypes[5] =
- {
- [0] = SHT_NULL,
- [1] = SHT_PROGBITS,
- [2] = SHT_STRTAB,
- [3] = SHT_SYMTAB,
- [4] = SHT_STRTAB
- };
-
-
-int
-main (void)
-{
- AsmCtx_t *ctx;
- AsmScn_t *scn1;
- AsmScn_t *scn2;
- int result = 0;
- int fd;
- Elf *elf;
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr;
- size_t cnt;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- /* Create two sections. */
- scn1 = asm_newscn (ctx, ".data", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE);
- scn2 = asm_newsubscn (scn1, 1);
- if (scn1 == NULL || scn2 == NULL)
- {
- printf ("cannot create section in output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Special alignment for the .text section. */
- if (asm_align (scn1, 16) != 0)
- {
- printf ("cannot align .text section: %s\n", asm_errmsg (-1));
- result = 1;
- }
-
- /* Add a few strings with names. */
- if (asm_newsym (scn1, "one", 4, STT_OBJECT, STB_GLOBAL) == NULL)
- {
- printf ("cannot create first name: %s\n", asm_errmsg (-1));
- result = 1;
- }
- if (asm_addstrz (scn1, "one", 4) != 0)
- {
- printf ("cannot insert first string: %s\n", asm_errmsg (-1));
- result = 1;
- }
- if (asm_newsym (scn2, "three", 6, STT_OBJECT, STB_WEAK) == NULL)
- {
- printf ("cannot create second name: %s\n", asm_errmsg (-1));
- result = 1;
- }
- if (asm_addstrz (scn2, "three", 0) != 0)
- {
- printf ("cannot insert second string: %s\n", asm_errmsg (-1));
- result = 1;
- }
- if (asm_newsym (scn1, "two", 4, STT_OBJECT, STB_LOCAL) == NULL)
- {
- printf ("cannot create third name: %s\n", asm_errmsg (-1));
- result = 1;
- }
- if (asm_addstrz (scn1, "two", 4) != 0)
- {
- printf ("cannot insert third string: %s\n", asm_errmsg (-1));
- result = 1;
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Check the file. */
- fd = open (fname, O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open generated file: %m\n");
- result = 1;
- goto out;
- }
-
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close;
- }
- if (elf_kind (elf) != ELF_K_ELF)
- {
- puts ("not a valid ELF file");
- result = 1;
- goto out_close2;
- }
-
- ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close2;
- }
-
- for (cnt = 1; cnt < 5; ++cnt)
- {
- Elf_Scn *scn;
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
-
- scn = elf_getscn (elf, cnt);
- if (scn == NULL)
- {
- printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- {
- printf ("cannot get section header for section %Zd: %s\n",
- cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- scnnames[cnt]) != 0)
- {
- printf ("section %Zd's name differs: %s vs %s\n", cnt,
- elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- scnnames[cnt]);
- result = 1;
- }
-
- if (shdr->sh_type != scntypes[cnt])
- {
- printf ("section %Zd's type differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
- || (cnt != 1 && shdr->sh_flags != 0))
- {
- printf ("section %Zd's flags differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_addr != 0)
- {
- printf ("section %Zd's address differs\n", cnt);
- result = 1;
- }
-
- if (cnt == 3)
- {
- Elf_Data *data;
-
- if (shdr->sh_link != 2)
- {
- puts ("symbol table has incorrect link");
- result = 1;
- }
-
- data = elf_getdata (scn, NULL);
- if (data == NULL)
- {
- puts ("cannot get data of symbol table");
- result = 1;
- }
- else
- {
- size_t inner;
-
- for (inner = 1;
- inner < (shdr->sh_size
- / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT));
- ++inner)
- {
- GElf_Sym sym_mem;
- GElf_Sym *sym;
-
- sym = gelf_getsym (data, inner, &sym_mem);
- if (sym == NULL)
- {
- printf ("cannot get symbol %zu: %s\n",
- inner, elf_errmsg (-1));
- result = 1;
- }
- else
- {
- /* The order of the third and fourth entry depends
- on how the hash table is organized. */
- static const char *names[4] =
- {
- [0] = "",
- [1] = "two",
- [2] = "one",
- [3] = "three"
- };
- static const int info[4] =
- {
- [0] = GELF_ST_INFO (STB_LOCAL, STT_NOTYPE),
- [1] = GELF_ST_INFO (STB_LOCAL, STT_OBJECT),
- [2] = GELF_ST_INFO (STB_GLOBAL, STT_OBJECT),
- [3] = GELF_ST_INFO (STB_WEAK, STT_OBJECT)
- };
- static const unsigned value[4] =
- {
- [0] = 0,
- [1] = 4,
- [2] = 0,
- [3] = 8
- };
-
- if (strcmp (names[inner],
- elf_strptr (elf, shdr->sh_link,
- sym->st_name)) != 0)
- {
- printf ("symbol %zu has different name\n", inner);
- result = 1;
- }
-
- if (sym->st_value != value[inner])
- {
- printf ("symbol %zu has wrong value\n", inner);
- result = 1;
- }
-
- if (sym->st_other != 0)
- {
- printf ("symbol %zu has wrong other info\n", inner);
- result = 1;
- }
-
- if (sym->st_shndx != 1)
- {
- printf ("symbol %zu has wrong section reference\n",
- inner);
- result = 1;
- }
-
- if (sym->st_info != info[inner])
- {
- printf ("symbol %zu has wrong type or binding\n",
- inner);
- result = 1;
- }
-
- if ((inner != 3 && sym->st_size != 4)
- || (inner == 3 && sym->st_size != 6))
- {
- printf ("symbol %zu has wrong size\n", inner);
- result = 1;
- }
- }
- }
- }
- }
- }
-
- out_close2:
- elf_end (elf);
- out_close:
- close (fd);
- out:
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/asm-tst4.c b/src/tests/asm-tst4.c
deleted file mode 100644
index 4788b79e..00000000
--- a/src/tests/asm-tst4.c
+++ /dev/null
@@ -1,104 +0,0 @@
-/* Copyright (C) 2002-2012 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/wait.h>
-
-
-static const char fname[] = "asm-tst4-out.o";
-
-
-int
-main (void)
-{
- AsmCtx_t *ctx;
- int result = 0;
- size_t cnt;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- /* Create 66000 sections. */
- for (cnt = 0; cnt < 66000; ++cnt)
- {
- char buf[20];
- AsmScn_t *scn;
-
- /* Create a unique name. */
- snprintf (buf, sizeof (buf), ".data.%Zu", cnt);
-
- /* Create the section. */
- scn = asm_newscn (ctx, buf, SHT_PROGBITS, SHF_ALLOC | SHF_WRITE);
- if (scn == NULL)
- {
- printf ("cannot create section \"%s\" in output file: %s\n",
- buf, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Add some content. */
- if (asm_adduint32 (scn, cnt) != 0)
- {
- printf ("cannot create content of section \"%s\": %s\n",
- buf, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- if (result == 0)
- result = WEXITSTATUS (system ("../src/elflint -q asm-tst4-out.o"));
-
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/asm-tst5.c b/src/tests/asm-tst5.c
deleted file mode 100644
index d97d4be9..00000000
--- a/src/tests/asm-tst5.c
+++ /dev/null
@@ -1,116 +0,0 @@
-/* Copyright (C) 2002-2012 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/wait.h>
-
-#include "system.h"
-
-
-static const char fname[] = "asm-tst5-out.o";
-
-
-int
-main (void)
-{
- AsmCtx_t *ctx;
- int result = 0;
- size_t cnt;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- /* Create 66000 sections. */
- for (cnt = 0; cnt < 66000; ++cnt)
- {
- char buf[20];
- AsmScn_t *scn;
-
- /* Create a unique name. */
- snprintf (buf, sizeof (buf), ".data.%Zu", cnt);
-
- /* Create the section. */
- scn = asm_newscn (ctx, buf, SHT_PROGBITS, SHF_ALLOC | SHF_WRITE);
- if (scn == NULL)
- {
- printf ("cannot create section \"%s\" in output file: %s\n",
- buf, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Add a name. */
- snprintf (buf, sizeof (buf), "%Zu", cnt);
- if (asm_newsym (scn, buf, sizeof (uint32_t), STT_OBJECT,
- STB_GLOBAL) == NULL)
- {
- printf ("cannot create symbol \"%s\": %s\n", buf, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Add some content. */
- if (asm_adduint32 (scn, cnt) != 0)
- {
- printf ("cannot create content of section \"%s\": %s\n",
- buf, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- if (result == 0)
- result = WEXITSTATUS (system ("../src/elflint -q asm-tst5-out.o"));
-
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/asm-tst6.c b/src/tests/asm-tst6.c
deleted file mode 100644
index 35854d52..00000000
--- a/src/tests/asm-tst6.c
+++ /dev/null
@@ -1,150 +0,0 @@
-/* Copyright (C) 2002-2012 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/wait.h>
-
-#include <system.h>
-
-
-static const char fname[] = "asm-tst6-out.o";
-
-
-int
-main (void)
-{
- AsmCtx_t *ctx;
- int result = 0;
- size_t cnt;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- for (cnt = 0; cnt < 22000; ++cnt)
- {
- char buf[512];
- AsmScnGrp_t *grp;
- AsmScn_t *scn;
- AsmSym_t *sym;
-
- snprintf (buf, sizeof (buf), ".grp%Zu", cnt);
- grp = asm_newscngrp (ctx, buf, NULL, 0);
- if (grp == NULL)
- {
- printf ("cannot section group %Zu: %s\n", cnt, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- scn = asm_newscn_ingrp (ctx, ".data", SHT_PROGBITS,
- SHF_ALLOC | SHF_WRITE, grp);
- if (scn == NULL)
- {
- printf ("cannot data section for group %Zu: %s\n",
- cnt, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Add a name. */
- snprintf (buf, sizeof (buf), "%Zu", cnt);
- sym = asm_newsym (scn, buf, sizeof (uint32_t), STT_OBJECT,
- STB_GLOBAL);
- if (sym == NULL)
- {
- printf ("cannot create symbol \"%s\": %s\n", buf, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Add some content. */
- if (asm_adduint32 (scn, cnt) != 0)
- {
- printf ("cannot create content of section \"%s\": %s\n",
- buf, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Now we have a symbol, use it as the signature. */
- if (asm_scngrp_newsignature (grp, sym) != 0)
- {
- printf ("cannot set signature for section group %Zu: %s\n",
- cnt, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Create a phony debug info section. */
- scn = asm_newscn_ingrp (ctx, ".stab", SHT_PROGBITS, 0, grp);
- if (scn == NULL)
- {
- printf ("cannot stab section for group %Zu: %s\n",
- cnt, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Add some content. */
- if (asm_adduint32 (scn, cnt) != 0)
- {
- printf ("cannot create content of section \"%s\": %s\n",
- buf, asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- if (result == 0)
- result = WEXITSTATUS (system ("../src/elflint -q asm-tst6-out.o"));
-
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/asm-tst7.c b/src/tests/asm-tst7.c
deleted file mode 100644
index a875eb4c..00000000
--- a/src/tests/asm-tst7.c
+++ /dev/null
@@ -1,181 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <unistd.h>
-
-
-static const char fname[] = "asm-tst7-out.o";
-
-
-int
-main (void)
-{
- int result = 0;
- size_t cnt;
- AsmCtx_t *ctx;
- Elf *elf;
- int fd;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- if (asm_newcomsym (ctx, "commsym", 4, 16) == NULL)
- {
- printf ("cannot create common symbol: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Check the file. */
- fd = open (fname, O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open generated file: %m\n");
- result = 1;
- goto out;
- }
-
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close;
- }
- if (elf_kind (elf) != ELF_K_ELF)
- {
- puts ("not a valid ELF file");
- result = 1;
- goto out_close2;
- }
-
- for (cnt = 1; 1; ++cnt)
- {
- Elf_Scn *scn;
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
-
- scn = elf_getscn (elf, cnt);
- if (scn == NULL)
- {
- printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- {
- printf ("cannot get section header for section %Zd: %s\n",
- cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
- /* We are looking for the symbol table. */
- if (shdr->sh_type != SHT_SYMTAB)
- continue;
-
- for (cnt = 1; cnt< (shdr->sh_size
- / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT));
- ++cnt)
- {
- GElf_Sym sym_mem;
- GElf_Sym *sym;
-
- if (cnt > 1)
- {
- puts ("too many symbol");
- result = 1;
- break;
- }
-
- sym = gelf_getsym (elf_getdata (scn, NULL), cnt, &sym_mem);
- if (sym == NULL)
- {
- printf ("cannot get symbol %zu: %s\n", cnt, elf_errmsg (-1));
- result = 1;
- }
- else
- {
- if (sym->st_shndx != SHN_COMMON)
- {
- printf ("expected common symbol, got section %u\n",
- (unsigned int) sym->st_shndx);
- result = 1;
- }
-
- if (sym->st_value != 16)
- {
- printf ("requested alignment 16, is %" PRIuMAX "\n",
- (uintmax_t) sym->st_value);
- result = 1;
- }
-
- if (sym->st_size != 4)
- {
- printf ("requested size 4, is %" PRIuMAX "\n",
- (uintmax_t) sym->st_value);
- result = 1;
- }
- }
- }
-
- break;
- }
-
- out_close2:
- elf_end (elf);
- out_close:
- close (fd);
- out:
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/asm-tst8.c b/src/tests/asm-tst8.c
deleted file mode 100644
index 597c5cb3..00000000
--- a/src/tests/asm-tst8.c
+++ /dev/null
@@ -1,189 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <unistd.h>
-
-
-static const char fname[] = "asm-tst8-out.o";
-
-
-int
-main (void)
-{
- int result = 0;
- size_t cnt;
- AsmCtx_t *ctx;
- Elf *elf;
- int fd;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- if (asm_newabssym (ctx, "tst8-out.s", 4, 0xfeedbeef, STT_FILE, STB_LOCAL)
- == NULL)
- {
- printf ("cannot create absolute symbol: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Check the file. */
- fd = open (fname, O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open generated file: %m\n");
- result = 1;
- goto out;
- }
-
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close;
- }
- if (elf_kind (elf) != ELF_K_ELF)
- {
- puts ("not a valid ELF file");
- result = 1;
- goto out_close2;
- }
-
- for (cnt = 1; 1; ++cnt)
- {
- Elf_Scn *scn;
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
-
- scn = elf_getscn (elf, cnt);
- if (scn == NULL)
- {
- printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- shdr = gelf_getshdr (scn, &shdr_mem);
- if (shdr == NULL)
- {
- printf ("cannot get section header for section %Zd: %s\n",
- cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
- /* We are looking for the symbol table. */
- if (shdr->sh_type != SHT_SYMTAB)
- continue;
-
- for (cnt = 1; cnt< (shdr->sh_size
- / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT));
- ++cnt)
- {
- GElf_Sym sym_mem;
- GElf_Sym *sym;
-
- if (cnt > 1)
- {
- puts ("too many symbol");
- result = 1;
- break;
- }
-
- sym = gelf_getsym (elf_getdata (scn, NULL), cnt, &sym_mem);
- if (sym == NULL)
- {
- printf ("cannot get symbol %zu: %s\n", cnt, elf_errmsg (-1));
- result = 1;
- }
- else
- {
- if (sym->st_shndx != SHN_ABS)
- {
- printf ("expected common symbol, got section %u\n",
- (unsigned int) sym->st_shndx);
- result = 1;
- }
-
- if (sym->st_value != 0xfeedbeef)
- {
- printf ("requested value 0xfeedbeef, is %#" PRIxMAX "\n",
- (uintmax_t) sym->st_value);
- result = 1;
- }
-
- if (sym->st_size != 4)
- {
- printf ("requested size 4, is %" PRIuMAX "\n",
- (uintmax_t) sym->st_value);
- result = 1;
- }
-
- if (GELF_ST_TYPE (sym->st_info) != STT_FILE)
- {
- printf ("requested type FILE, is %u\n",
- (unsigned int) GELF_ST_TYPE (sym->st_info));
- result = 1;
- }
- }
- }
-
- break;
- }
-
- out_close2:
- elf_end (elf);
- out_close:
- close (fd);
- out:
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/asm-tst9.c b/src/tests/asm-tst9.c
deleted file mode 100644
index b9fcdd4d..00000000
--- a/src/tests/asm-tst9.c
+++ /dev/null
@@ -1,335 +0,0 @@
-/* Copyright (C) 2002-2010 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(asm)
-#include <libelf.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-
-
-static const char fname[] = "asm-tst9-out.o";
-
-
-static int32_t input[] =
- {
- 0, 1, 129, 510, 2000, 33000, 0x7ffffff, 0x7fffffff
- };
-#define ninput (sizeof (input) / sizeof (input[0]))
-
-
-static const GElf_Ehdr expected_ehdr =
- {
- .e_ident = { [EI_MAG0] = ELFMAG0,
- [EI_MAG1] = ELFMAG1,
- [EI_MAG2] = ELFMAG2,
- [EI_MAG3] = ELFMAG3,
- [EI_CLASS] = ELFCLASS32,
- [EI_DATA] = ELFDATA2LSB,
- [EI_VERSION] = EV_CURRENT },
- .e_type = ET_REL,
- .e_machine = EM_386,
- .e_version = EV_CURRENT,
- .e_shoff = 180,
- .e_ehsize = sizeof (Elf32_Ehdr),
- .e_shentsize = sizeof (Elf32_Shdr),
- .e_shnum = 3,
- .e_shstrndx = 2
- };
-
-
-static const char *scnnames[3] =
- {
- [0] = "",
- [1] = ".data",
- [2] = ".shstrtab"
- };
-
-
-static const char expecteddata[] =
- {
- 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0xff, 0xff, 0xff, 0xff, 0x0f, 0x7f,
- 0x81, 0x01, 0x81, 0x01, 0xff, 0xfe, 0xff, 0xff, 0x0f, 0xff, 0x7e, 0xfe,
- 0x03, 0xfe, 0x03, 0x82, 0xfc, 0xff, 0xff, 0x0f, 0x82, 0x7c, 0xd0, 0x0f,
- 0xd0, 0x0f, 0xb0, 0xf0, 0xff, 0xff, 0x0f, 0xb0, 0x70, 0xe8, 0x81, 0x02,
- 0xe8, 0x81, 0x02, 0x98, 0xfe, 0xfd, 0xff, 0x0f, 0x98, 0xfe, 0x7d, 0xff,
- 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0x3f, 0x81, 0x80, 0x80, 0xc0, 0x0f,
- 0x81, 0x80, 0x80, 0x40, 0xff, 0xff, 0xff, 0xff, 0x07, 0xff, 0xff, 0xff,
- 0xff, 0x07, 0x81, 0x80, 0x80, 0x80, 0x08, 0x81, 0x80, 0x80, 0x80, 0x78
- };
-
-
-int
-main (void)
-{
- AsmCtx_t *ctx;
- AsmScn_t *scn;
- int result = 0;
- int fd;
- Elf *elf;
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr;
- size_t cnt;
-
- elf_version (EV_CURRENT);
-
- Ebl *ebl = ebl_openbackend_machine (EM_386);
- if (ebl == NULL)
- {
- puts ("cannot open backend library");
- return 1;
- }
-
- ctx = asm_begin (fname, ebl, false);
- if (ctx == NULL)
- {
- printf ("cannot create assembler context: %s\n", asm_errmsg (-1));
- return 1;
- }
-
- /* Create two sections. */
- scn = asm_newscn (ctx, ".data", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE);
- if (scn == NULL)
- {
- printf ("cannot create section in output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Special alignment for the .text section. */
- if (asm_align (scn, 16) != 0)
- {
- printf ("cannot align .text section: %s\n", asm_errmsg (-1));
- result = 1;
- }
-
- /* Add a few ULEB128 and SLEB128 numbers. */
- for (cnt = 0; cnt < ninput; ++cnt)
- {
- if (asm_adduleb128 (scn, input[cnt]) != 0)
- {
- printf ("cannot insert uleb %" PRIu32 ": %s\n",
- (uint32_t) input[cnt], asm_errmsg (-1));
- result = 1;
- }
-
- if (asm_addsleb128 (scn, input[cnt]) != 0)
- {
- printf ("cannot insert sleb %" PRId32 ": %s\n",
- input[cnt], asm_errmsg (-1));
- result = 1;
- }
-
- if (asm_adduleb128 (scn, -input[cnt]) != 0)
- {
- printf ("cannot insert uleb %" PRIu32 ": %s\n",
- (uint32_t) -input[cnt], asm_errmsg (-1));
- result = 1;
- }
-
- if (asm_addsleb128 (scn, -input[cnt]) != 0)
- {
- printf ("cannot insert sleb %" PRId32 ": %s\n",
- -input[cnt], asm_errmsg (-1));
- result = 1;
- }
- }
-
- /* Create the output file. */
- if (asm_end (ctx) != 0)
- {
- printf ("cannot create output file: %s\n", asm_errmsg (-1));
- asm_abort (ctx);
- return 1;
- }
-
- /* Check the file. */
- fd = open (fname, O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open generated file: %m\n");
- result = 1;
- goto out;
- }
-
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close;
- }
- if (elf_kind (elf) != ELF_K_ELF)
- {
- puts ("not a valid ELF file");
- result = 1;
- goto out_close2;
- }
-
- ehdr = gelf_getehdr (elf, &ehdr_mem);
- if (ehdr == NULL)
- {
- printf ("cannot get ELF header: %s\n", elf_errmsg (-1));
- result = 1;
- goto out_close2;
- }
-
- if (memcmp (ehdr, &expected_ehdr, sizeof (GElf_Ehdr)) != 0)
- {
- puts ("ELF header does not match");
- result = 1;
- goto out_close2;
- }
-
- for (cnt = 1; cnt < 3; ++cnt)
- {
- Elf_Scn *escn;
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr;
-
- escn = elf_getscn (elf, cnt);
- if (escn == NULL)
- {
- printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- shdr = gelf_getshdr (escn, &shdr_mem);
- if (shdr == NULL)
- {
- printf ("cannot get section header for section %Zd: %s\n",
- cnt, elf_errmsg (-1));
- result = 1;
- continue;
- }
-
- if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- scnnames[cnt]) != 0)
- {
- printf ("section %Zd's name differs: %s vs %s\n", cnt,
- elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- scnnames[cnt]);
- result = 1;
- }
-
- if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS))
- {
- printf ("section %Zd's type differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_flags != (SHF_ALLOC | SHF_WRITE))
- || (cnt == 2 && shdr->sh_flags != 0))
- {
- printf ("section %Zd's flags differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_addr != 0)
- {
- printf ("section %Zd's address differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15))
- || (cnt == 2
- && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15)
- + sizeof (expecteddata))))
- {
- printf ("section %Zd's offset differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_size != sizeof (expecteddata))
- || (cnt == 2 && shdr->sh_size != 17))
- {
- printf ("section %Zd's size differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_link != 0)
- {
- printf ("section %Zd's link differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_info != 0)
- {
- printf ("section %Zd's info differs\n", cnt);
- result = 1;
- }
-
- if ((cnt == 1 && shdr->sh_addralign != 16)
- || (cnt != 1 && shdr->sh_addralign != 1))
- {
- printf ("section %Zd's addralign differs\n", cnt);
- result = 1;
- }
-
- if (shdr->sh_entsize != 0)
- {
- printf ("section %Zd's entsize differs\n", cnt);
- result = 1;
- }
-
- if (cnt == 1)
- {
- Elf_Data *data = elf_getdata (escn, NULL);
-
- if (data == NULL)
- {
- printf ("cannot get data of section %Zd\n", cnt);
- result = 1;
- }
- else
- {
- if (data->d_size != sizeof (expecteddata))
- {
- printf ("data block size of section %Zd wrong: got %Zd, "
- "expected 96\n", cnt, data->d_size);
- result = 1;
- }
-
- if (memcmp (data->d_buf, expecteddata, sizeof (expecteddata))
- != 0)
- {
- printf ("data block content of section %Zd wrong\n", cnt);
- result = 1;
- }
- }
- }
- }
-
- out_close2:
- elf_end (elf);
- out_close:
- close (fd);
- out:
- /* We don't need the file anymore. */
- unlink (fname);
-
- ebl_closebackend (ebl);
-
- return result;
-}
diff --git a/src/tests/backtrace-child.c b/src/tests/backtrace-child.c
deleted file mode 100644
index 788801c3..00000000
--- a/src/tests/backtrace-child.c
+++ /dev/null
@@ -1,240 +0,0 @@
-/* Test child for parent backtrace test.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-/* Command line syntax: ./backtrace-child [--ptraceme|--gencore]
- --ptraceme will call ptrace (PTRACE_TRACEME) in the two threads.
- --gencore will call abort () at its end.
- Main thread will signal SIGUSR2. Other thread will signal SIGUSR1.
- On x86_64 only:
- PC will get changed to function 'jmp' by backtrace.c function
- prepare_thread. Then SIGUSR2 will be signalled to backtrace-child
- which will invoke function sigusr2.
- This is all done so that signal interrupts execution of the very first
- instruction of a function. Properly handled unwind should not slip into
- the previous unrelated function.
- The tested functionality is arch-independent but the code reproducing it
- has to be arch-specific.
- On non-x86_64:
- sigusr2 gets called by normal function call from function stdarg.
- On any arch then sigusr2 calls raise (SIGUSR1) for --ptraceme.
- abort () is called otherwise, expected for --gencore core dump.
-
- Expected x86_64 output:
- TID 10276:
- # 0 0x7f7ab61e9e6b raise
- # 1 0x7f7ab661af47 - 1 main
- # 2 0x7f7ab5e3bb45 - 1 __libc_start_main
- # 3 0x7f7ab661aa09 - 1 _start
- TID 10278:
- # 0 0x7f7ab61e9e6b raise
- # 1 0x7f7ab661ab3c - 1 sigusr2
- # 2 0x7f7ab5e4fa60 __restore_rt
- # 3 0x7f7ab661ab47 jmp
- # 4 0x7f7ab661ac92 - 1 stdarg
- # 5 0x7f7ab661acba - 1 backtracegen
- # 6 0x7f7ab661acd1 - 1 start
- # 7 0x7f7ab61e2c53 - 1 start_thread
- # 8 0x7f7ab5f0fdbd - 1 __clone
-
- Expected non-x86_64 (i386) output; __kernel_vsyscall are skipped if found:
- TID 10408:
- # 0 0xf779f430 __kernel_vsyscall
- # 1 0xf7771466 - 1 raise
- # 2 0xf77c1d07 - 1 main
- # 3 0xf75bd963 - 1 __libc_start_main
- # 4 0xf77c1761 - 1 _start
- TID 10412:
- # 0 0xf779f430 __kernel_vsyscall
- # 1 0xf7771466 - 1 raise
- # 2 0xf77c18f4 - 1 sigusr2
- # 3 0xf77c1a10 - 1 stdarg
- # 4 0xf77c1a2c - 1 backtracegen
- # 5 0xf77c1a48 - 1 start
- # 6 0xf77699da - 1 start_thread
- # 7 0xf769bbfe - 1 __clone
- */
-
-#include <config.h>
-#include <assert.h>
-#include <stdlib.h>
-#include <signal.h>
-#include <errno.h>
-#include <sys/ptrace.h>
-#include <string.h>
-#include <pthread.h>
-#include <stdio.h>
-#include <unistd.h>
-
-#ifndef __linux__
-
-int
-main (int argc __attribute__ ((unused)), char **argv)
-{
- fprintf (stderr, "%s: Unwinding not supported for this architecture\n",
- argv[0]);
- return 77;
-}
-
-#else /* __linux__ */
-
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
-#define NOINLINE_NOCLONE __attribute__ ((noinline, noclone))
-#else
-#define NOINLINE_NOCLONE __attribute__ ((noinline))
-#endif
-
-#define NORETURN __attribute__ ((noreturn))
-#define UNUSED __attribute__ ((unused))
-#define USED __attribute__ ((used))
-
-static int ptraceme, gencore;
-
-/* Execution will arrive here from jmp by an artificial ptrace-spawn signal. */
-
-static NOINLINE_NOCLONE void
-sigusr2 (int signo)
-{
- assert (signo == SIGUSR2);
- if (! gencore)
- {
- raise (SIGUSR1);
- /* Do not return as stack may be invalid due to ptrace-patched PC to the
- jmp function. */
- pthread_exit (NULL);
- /* Not reached. */
- abort ();
- }
- /* Here we dump the core for --gencore. */
- raise (SIGABRT);
- /* Avoid tail call optimization for the raise call. */
- asm volatile ("");
-}
-
-static NOINLINE_NOCLONE void
-dummy1 (void)
-{
- asm volatile ("");
-}
-
-#ifdef __x86_64__
-static NOINLINE_NOCLONE USED void
-jmp (void)
-{
- /* Not reached, signal will get ptrace-spawn to jump into sigusr2. */
- abort ();
-}
-#endif
-
-static NOINLINE_NOCLONE void
-dummy2 (void)
-{
- asm volatile ("");
-}
-
-static NOINLINE_NOCLONE NORETURN void
-stdarg (int f UNUSED, ...)
-{
- sighandler_t sigusr2_orig = signal (SIGUSR2, sigusr2);
- assert (sigusr2_orig == SIG_DFL);
- errno = 0;
- if (ptraceme)
- {
- long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL);
- assert_perror (errno);
- assert (l == 0);
- }
-#ifdef __x86_64__
- if (! gencore)
- {
- /* Execution will get PC patched into function jmp. */
- raise (SIGUSR1);
- }
-#endif
- sigusr2 (SIGUSR2);
- /* Not reached. */
- abort ();
-}
-
-static NOINLINE_NOCLONE void
-dummy3 (void)
-{
- asm volatile ("");
-}
-
-static NOINLINE_NOCLONE void
-backtracegen (void)
-{
- stdarg (1);
- /* Here should be no instruction after the stdarg call as it is noreturn
- function. It must be stdarg so that it is a call and not jump (jump as
- a tail-call). */
-}
-
-static NOINLINE_NOCLONE void
-dummy4 (void)
-{
- asm volatile ("");
-}
-
-static void *
-start (void *arg UNUSED)
-{
- backtracegen ();
- /* Not reached. */
- abort ();
-}
-
-int
-main (int argc UNUSED, char **argv)
-{
- setbuf (stdout, NULL);
- assert (*argv++);
- ptraceme = (*argv && strcmp (*argv, "--ptraceme") == 0);
- argv += ptraceme;
- gencore = (*argv && strcmp (*argv, "--gencore") == 0);
- argv += gencore;
- assert (!*argv);
- /* These dummy* functions are there so that each of their surrounding
- functions has some unrelated code around. The purpose of some of the
- tests is verify unwinding the very first / after the very last instruction
- does not inappropriately slip into the unrelated code around. */
- dummy1 ();
- dummy2 ();
- dummy3 ();
- dummy4 ();
- if (gencore)
- printf ("%ld\n", (long) getpid ());
- pthread_t thread;
- int i = pthread_create (&thread, NULL, start, NULL);
- // pthread_* functions do not set errno.
- assert (i == 0);
- if (ptraceme)
- {
- errno = 0;
- long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL);
- assert_perror (errno);
- assert (l == 0);
- }
- if (gencore)
- pthread_join (thread, NULL);
- else
- raise (SIGUSR2);
- return 0;
-}
-
-#endif /* ! __linux__ */
-
diff --git a/src/tests/backtrace-data.c b/src/tests/backtrace-data.c
deleted file mode 100644
index 01c1c004..00000000
--- a/src/tests/backtrace-data.c
+++ /dev/null
@@ -1,328 +0,0 @@
-/* Test custom provided Dwfl_Thread_Callbacks vector.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-/* Test custom provided Dwfl_Thread_Callbacks vector. Test mimics what
- a ptrace based vector would do. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <dirent.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <error.h>
-#include <unistd.h>
-#include <dwarf.h>
-#include <sys/resource.h>
-#include <sys/ptrace.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/user.h>
-#include <fcntl.h>
-#include <string.h>
-#include ELFUTILS_HEADER(dwfl)
-
-#if !defined(__x86_64__) || !defined(__linux__)
-
-int
-main (int argc __attribute__ ((unused)), char **argv)
-{
- fprintf (stderr, "%s: Unwinding not supported for this architecture\n",
- argv[0]);
- return 77;
-}
-
-#else /* __x86_64__ && __linux__ */
-
-/* The only arch specific code is set_initial_registers. */
-
-static int
-find_elf (Dwfl_Module *mod __attribute__ ((unused)),
- void **userdata __attribute__ ((unused)),
- const char *modname __attribute__ ((unused)),
- Dwarf_Addr base __attribute__ ((unused)),
- char **file_name __attribute__ ((unused)),
- Elf **elfp __attribute__ ((unused)))
-{
- /* Not used as modules are reported explicitly. */
- assert (0);
-}
-
-static bool
-memory_read (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Word *result,
- void *dwfl_arg __attribute__ ((unused)))
-{
- pid_t child = dwfl_pid (dwfl);
-
- errno = 0;
- long l = ptrace (PTRACE_PEEKDATA, child, (void *) (uintptr_t) addr, NULL);
- assert_perror (errno);
- *result = l;
-
- /* We could also return false for failed ptrace. */
- return true;
-}
-
-/* Return filename and VMA address *BASEP where its mapping starts which
- contains ADDR. */
-
-static char *
-maps_lookup (pid_t pid, Dwarf_Addr addr, GElf_Addr *basep)
-{
- char *fname;
- int i = asprintf (&fname, "/proc/%ld/maps", (long) pid);
- assert_perror (errno);
- assert (i > 0);
- FILE *f = fopen (fname, "r");
- assert_perror (errno);
- assert (f);
- free (fname);
- for (;;)
- {
- // 37e3c22000-37e3c23000 rw-p 00022000 00:11 49532 /lib64/ld-2.14.90.so */
- unsigned long start, end, offset;
- i = fscanf (f, "%lx-%lx %*s %lx %*x:%*x %*x", &start, &end, &offset);
- assert_perror (errno);
- assert (i == 3);
- char *filename = strdup ("");
- assert (filename);
- size_t filename_len = 0;
- for (;;)
- {
- int c = fgetc (f);
- assert (c != EOF);
- if (c == '\n')
- break;
- if (c == ' ' && *filename == '\0')
- continue;
- filename = realloc (filename, filename_len + 2);
- assert (filename);
- filename[filename_len++] = c;
- filename[filename_len] = '\0';
- }
- if (start <= addr && addr < end)
- {
- i = fclose (f);
- assert_perror (errno);
- assert (i == 0);
-
- *basep = start - offset;
- return filename;
- }
- free (filename);
- }
-}
-
-/* Add module containing ADDR to the DWFL address space.
-
- dwfl_report_elf call here violates Dwfl manipulation as one should call
- dwfl_report only between dwfl_report_begin_add and dwfl_report_end.
- Current elfutils implementation does not mind as dwfl_report_begin_add is
- empty. */
-
-static Dwfl_Module *
-report_module (Dwfl *dwfl, pid_t child, Dwarf_Addr addr)
-{
- GElf_Addr base;
- char *long_name = maps_lookup (child, addr, &base);
- Dwfl_Module *mod = dwfl_report_elf (dwfl, long_name, long_name, -1,
- base, false /* add_p_vaddr */);
- assert (mod);
- free (long_name);
- assert (dwfl_addrmodule (dwfl, addr) == mod);
- return mod;
-}
-
-static pid_t
-next_thread (Dwfl *dwfl, void *dwfl_arg __attribute__ ((unused)),
- void **thread_argp)
-{
- if (*thread_argp != NULL)
- return 0;
- /* Put arbitrary non-NULL value into *THREAD_ARGP as a marker so that this
- function returns non-zero PID only once. */
- *thread_argp = thread_argp;
- return dwfl_pid (dwfl);
-}
-
-static bool
-set_initial_registers (Dwfl_Thread *thread,
- void *thread_arg __attribute__ ((unused)))
-{
- pid_t child = dwfl_pid (dwfl_thread_dwfl (thread));
-
- struct user_regs_struct user_regs;
- long l = ptrace (PTRACE_GETREGS, child, NULL, &user_regs);
- assert_perror (errno);
- assert (l == 0);
-
- Dwarf_Word dwarf_regs[17];
- dwarf_regs[0] = user_regs.rax;
- dwarf_regs[1] = user_regs.rdx;
- dwarf_regs[2] = user_regs.rcx;
- dwarf_regs[3] = user_regs.rbx;
- dwarf_regs[4] = user_regs.rsi;
- dwarf_regs[5] = user_regs.rdi;
- dwarf_regs[6] = user_regs.rbp;
- dwarf_regs[7] = user_regs.rsp;
- dwarf_regs[8] = user_regs.r8;
- dwarf_regs[9] = user_regs.r9;
- dwarf_regs[10] = user_regs.r10;
- dwarf_regs[11] = user_regs.r11;
- dwarf_regs[12] = user_regs.r12;
- dwarf_regs[13] = user_regs.r13;
- dwarf_regs[14] = user_regs.r14;
- dwarf_regs[15] = user_regs.r15;
- dwarf_regs[16] = user_regs.rip;
- bool ok = dwfl_thread_state_registers (thread, 0, 17, dwarf_regs);
- assert (ok);
-
- /* x86_64 has PC contained in its CFI subset of DWARF register set so
- elfutils will figure out the real PC value from REGS.
- So no need to explicitly call dwfl_thread_state_register_pc. */
-
- return true;
-}
-
-static const Dwfl_Thread_Callbacks callbacks =
-{
- next_thread,
- NULL, /* get_thread */
- memory_read,
- set_initial_registers,
- NULL, /* detach */
- NULL, /* thread_detach */
-};
-
-static int
-frame_callback (Dwfl_Frame *state, void *arg)
-{
- unsigned *framenop = arg;
- Dwarf_Addr pc;
- bool isactivation;
- if (! dwfl_frame_pc (state, &pc, &isactivation))
- {
- error (1, 0, "%s", dwfl_errmsg (-1));
- return 1;
- }
- Dwarf_Addr pc_adjusted = pc - (isactivation ? 0 : 1);
-
- /* Get PC->SYMNAME. */
- Dwfl *dwfl = dwfl_thread_dwfl (dwfl_frame_thread (state));
- Dwfl_Module *mod = dwfl_addrmodule (dwfl, pc_adjusted);
- if (mod == NULL)
- mod = report_module (dwfl, dwfl_pid (dwfl), pc_adjusted);
- const char *symname = NULL;
- symname = dwfl_module_addrname (mod, pc_adjusted);
-
- printf ("#%2u %#" PRIx64 "%4s\t%s\n", (*framenop)++, (uint64_t) pc,
- ! isactivation ? "- 1" : "", symname);
- return DWARF_CB_OK;
-}
-
-static int
-thread_callback (Dwfl_Thread *thread, void *thread_arg __attribute__ ((unused)))
-{
- unsigned frameno = 0;
- switch (dwfl_thread_getframes (thread, frame_callback, &frameno))
- {
- case 0:
- break;
- case -1:
- error (1, 0, "dwfl_thread_getframes: %s", dwfl_errmsg (-1));
- default:
- abort ();
- }
- return DWARF_CB_OK;
-}
-
-int
-main (int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)))
-{
- /* We use no threads here which can interfere with handling a stream. */
- __fsetlocking (stdin, FSETLOCKING_BYCALLER);
- __fsetlocking (stdout, FSETLOCKING_BYCALLER);
- __fsetlocking (stderr, FSETLOCKING_BYCALLER);
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- elf_version (EV_CURRENT);
-
- pid_t child = fork ();
- switch (child)
- {
- case -1:
- assert_perror (errno);
- assert (0);
- case 0:;
- long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL);
- assert_perror (errno);
- assert (l == 0);
- raise (SIGUSR1);
- return 0;
- default:
- break;
- }
-
- int status;
- pid_t pid = waitpid (child, &status, 0);
- assert_perror (errno);
- assert (pid == child);
- assert (WIFSTOPPED (status));
- assert (WSTOPSIG (status) == SIGUSR1);
-
- static char *debuginfo_path;
- static const Dwfl_Callbacks offline_callbacks =
- {
- .find_debuginfo = dwfl_standard_find_debuginfo,
- .debuginfo_path = &debuginfo_path,
- .section_address = dwfl_offline_section_address,
- .find_elf = find_elf,
- };
- Dwfl *dwfl = dwfl_begin (&offline_callbacks);
- assert (dwfl);
-
- struct user_regs_struct user_regs;
- long l = ptrace (PTRACE_GETREGS, child, NULL, &user_regs);
- assert_perror (errno);
- assert (l == 0);
- report_module (dwfl, child, user_regs.rip);
-
- bool ok = dwfl_attach_state (dwfl, EM_NONE, child, &callbacks, NULL);
- assert (ok);
-
- /* Multiple threads are not handled here. */
- int err = dwfl_getthreads (dwfl, thread_callback, NULL);
- assert (! err);
-
- dwfl_end (dwfl);
- kill (child, SIGKILL);
- pid = waitpid (child, &status, 0);
- assert_perror (errno);
- assert (pid == child);
- assert (WIFSIGNALED (status));
- assert (WTERMSIG (status) == SIGKILL);
-
- return EXIT_SUCCESS;
-}
-
-#endif /* x86_64 */
diff --git a/src/tests/backtrace-dwarf.c b/src/tests/backtrace-dwarf.c
deleted file mode 100644
index 87d088aa..00000000
--- a/src/tests/backtrace-dwarf.c
+++ /dev/null
@@ -1,165 +0,0 @@
-/* Test program for unwinding of complicated DWARF expressions.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <signal.h>
-#include <inttypes.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <errno.h>
-#include <sys/ptrace.h>
-#include ELFUTILS_HEADER(dwfl)
-
-#ifndef __linux__
-
-int
-main (int argc __attribute__ ((unused)), char **argv)
-{
- fprintf (stderr, "%s: Unwinding not supported for this architecture\n",
- argv[0]);
- return 77;
-}
-
-#else /* __linux__ */
-
-static void cleanup_13_abort (void);
-#define main cleanup_13_main
-#include "cleanup-13.c"
-#undef main
-
-static void
-report_pid (Dwfl *dwfl, pid_t pid)
-{
- int result = dwfl_linux_proc_report (dwfl, pid);
- if (result < 0)
- error (2, 0, "dwfl_linux_proc_report: %s", dwfl_errmsg (-1));
- else if (result > 0)
- error (2, result, "dwfl_linux_proc_report");
-
- if (dwfl_report_end (dwfl, NULL, NULL) != 0)
- error (2, 0, "dwfl_report_end: %s", dwfl_errmsg (-1));
-
- result = dwfl_linux_proc_attach (dwfl, pid, true);
- if (result < 0)
- error (2, 0, "dwfl_linux_proc_attach: %s", dwfl_errmsg (-1));
- else if (result > 0)
- error (2, result, "dwfl_linux_proc_attach");
-}
-
-static Dwfl *
-pid_to_dwfl (pid_t pid)
-{
- static char *debuginfo_path;
- static const Dwfl_Callbacks proc_callbacks =
- {
- .find_debuginfo = dwfl_standard_find_debuginfo,
- .debuginfo_path = &debuginfo_path,
-
- .find_elf = dwfl_linux_proc_find_elf,
- };
- Dwfl *dwfl = dwfl_begin (&proc_callbacks);
- if (dwfl == NULL)
- error (2, 0, "dwfl_begin: %s", dwfl_errmsg (-1));
- report_pid (dwfl, pid);
- return dwfl;
-}
-
-static int
-frame_callback (Dwfl_Frame *state, void *frame_arg)
-{
- Dwarf_Addr pc;
- bool isactivation;
- if (! dwfl_frame_pc (state, &pc, &isactivation))
- {
- error (0, 0, "%s", dwfl_errmsg (-1));
- return DWARF_CB_ABORT;
- }
- Dwarf_Addr pc_adjusted = pc - (isactivation ? 0 : 1);
-
- /* Get PC->SYMNAME. */
- Dwfl_Thread *thread = dwfl_frame_thread (state);
- Dwfl *dwfl = dwfl_thread_dwfl (thread);
- Dwfl_Module *mod = dwfl_addrmodule (dwfl, pc_adjusted);
- const char *symname = NULL;
- if (mod)
- symname = dwfl_module_addrname (mod, pc_adjusted);
-
- printf ("%#" PRIx64 "\t%s\n", (uint64_t) pc, symname);
-
- if (symname && (strcmp (symname, "main") == 0
- || strcmp (symname, ".main") == 0))
- {
- kill (dwfl_pid (dwfl), SIGKILL);
- exit (0);
- }
-
- return DWARF_CB_OK;
-}
-
-static int
-thread_callback (Dwfl_Thread *thread, void *thread_arg)
-{
- dwfl_thread_getframes (thread, frame_callback, NULL);
- error (1, 0, "dwfl_thread_getframes: %s", dwfl_errmsg (-1));
-}
-
-int
-main (int argc __attribute__ ((unused)), char **argv)
-{
- /* We use no threads here which can interfere with handling a stream. */
- __fsetlocking (stdin, FSETLOCKING_BYCALLER);
- __fsetlocking (stdout, FSETLOCKING_BYCALLER);
- __fsetlocking (stderr, FSETLOCKING_BYCALLER);
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- elf_version (EV_CURRENT);
-
- pid_t pid = fork ();
- switch (pid)
- {
- case -1:
- abort ();
- case 0:;
- long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL);
- assert_perror (errno);
- assert (l == 0);
- cleanup_13_main ();
- abort ();
- default:
- break;
- }
-
- errno = 0;
- int status;
- pid_t got = waitpid (pid, &status, 0);
- assert_perror (errno);
- assert (got == pid);
- assert (WIFSTOPPED (status));
- assert (WSTOPSIG (status) == SIGABRT);
-
- Dwfl *dwfl = pid_to_dwfl (pid);
- dwfl_getthreads (dwfl, thread_callback, NULL);
-
- /* There is an exit (0) call if we find the "main" frame, */
- error (1, 0, "dwfl_getthreads: %s", dwfl_errmsg (-1));
-}
-
-#endif /* ! __linux__ */
-
diff --git a/src/tests/backtrace-subr.sh b/src/tests/backtrace-subr.sh
deleted file mode 100644
index f04721cf..00000000
--- a/src/tests/backtrace-subr.sh
+++ /dev/null
@@ -1,152 +0,0 @@
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Verify one of the backtraced threads contains function 'main'.
-check_main()
-{
- if grep -w main $1; then
- return
- fi
- echo >&2 $2: no main
- false
-}
-
-# Without proper ELF symbols resolution we could get inappropriate weak
-# symbol "gsignal" with the same address as the correct symbol "raise".
-# It was fixed by GIT commit 78dec228b3cfb2f9300cd0b682ebf416c9674c91 .
-# [patch] Improve ELF symbols preference (global > weak)
-# https://lists.fedorahosted.org/pipermail/elfutils-devel/2012-October/002624.html
-check_gsignal()
-{
- if ! grep -w gsignal $1; then
- return
- fi
- echo >&2 $2: found gsignal
- false
-}
-
-# Verify the STDERR output does not contain unexpected errors.
-# In some cases we cannot reliably find out we got behind _start as some
-# operating system do not properly terminate CFI by undefined PC.
-# Ignore it here as it is a bug of OS, not a bug of elfutils.
-check_err()
-{
- if [ $(egrep -v <$1 'dwfl_thread_getframes: (No DWARF information found|no matching address range)$' \
- | wc -c) \
- -eq 0 ]
- then
- return
- fi
- echo >&2 $2: neither empty nor just out of DWARF
- false
-}
-
-check_all()
-{
- bt=$1
- err=$2
- testname=$3
- check_main $bt $testname
- check_gsignal $bt $testname
- check_err $err $testname
-}
-
-check_unsupported()
-{
- err=$1
- testname=$2
- if grep -q ': Unwinding not supported for this architecture$' $err; then
- echo >&2 $testname: arch not supported
- exit 77
- fi
-}
-
-check_native_unsupported()
-{
- err=$1
- testname=$2
- check_unsupported $err $testname
-
- # ARM is special. It is supported, but it doesn't use .eh_frame by default
- # making the native tests fail unless debuginfo (for glibc) is installed
- # and we can fall back on .debug_frame for the CFI.
- case "`uname -m`" in
- arm* )
- if egrep 'dwfl_thread_getframes(.*)No DWARF information found' $err; then
- echo >&2 $testname: arm needs debuginfo installed for all libraries
- exit 77
- fi
- ;;
- esac
-}
-
-check_core()
-{
- arch=$1
- testfiles backtrace.$arch.{exec,core}
- tempfiles backtrace.$arch.{bt,err}
- echo ./backtrace ./backtrace.$arch.{exec,core}
- testrun ${abs_builddir}/backtrace -e ./backtrace.$arch.exec --core=./backtrace.$arch.core 1>backtrace.$arch.bt 2>backtrace.$arch.err || true
- cat backtrace.$arch.{bt,err}
- check_unsupported backtrace.$arch.err backtrace.$arch.core
- check_all backtrace.$arch.{bt,err} backtrace.$arch.core
-}
-
-# Backtrace live process.
-# Do not abort on non-zero exit code due to some warnings of ./backtrace
-# - see function check_err.
-check_native()
-{
- child=$1
- tempfiles $child.{bt,err}
- (set +ex; testrun ${abs_builddir}/backtrace --backtrace-exec=${abs_builddir}/$child 1>$child.bt 2>$child.err; true)
- cat $child.{bt,err}
- check_native_unsupported $child.err $child
- check_all $child.{bt,err} $child
-}
-
-# Backtrace core file.
-check_native_core()
-{
- child=$1
-
- # Disable valgrind while dumping core.
- SAVED_VALGRIND_CMD="$VALGRIND_CMD"
- unset VALGRIND_CMD
-
- # Skip the test if we cannot adjust core ulimit.
- core="core.`ulimit -c unlimited || exit 77; set +ex; testrun ${abs_builddir}/$child --gencore; true`"
- # see if /proc/sys/kernel/core_uses_pid is set to 0
- if [ -f core ]; then
- mv core "$core"
- fi
- if [ ! -f "$core" ]; then exit 77; fi
-
- if [ "x$SAVED_VALGRIND_CMD" != "x" ]; then
- VALGRIND_CMD="$SAVED_VALGRIND_CMD"
- export VALGRIND_CMD
- fi
-
- # Do not abort on non-zero exit code due to some warnings of ./backtrace
- # - see function check_err.
- tempfiles $core{,.{bt,err}}
- (set +ex; testrun ${abs_builddir}/backtrace -e ${abs_builddir}/$child --core=$core 1>$core.bt 2>$core.err; true)
- cat $core.{bt,err}
- check_native_unsupported $core.err $child-$core
- check_all $core.{bt,err} $child-$core
-}
diff --git a/src/tests/backtrace.aarch64.core.bz2 b/src/tests/backtrace.aarch64.core.bz2
deleted file mode 100644
index 3082a5ac..00000000
--- a/src/tests/backtrace.aarch64.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.aarch64.exec.bz2 b/src/tests/backtrace.aarch64.exec.bz2
deleted file mode 100755
index 66216b52..00000000
--- a/src/tests/backtrace.aarch64.exec.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.c b/src/tests/backtrace.c
deleted file mode 100644
index 331ba0f2..00000000
--- a/src/tests/backtrace.c
+++ /dev/null
@@ -1,479 +0,0 @@
-/* Test program for unwinding of frames.
- Copyright (C) 2013, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <dirent.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <error.h>
-#include <unistd.h>
-#include <dwarf.h>
-#include <sys/resource.h>
-#include <sys/ptrace.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/user.h>
-#include <fcntl.h>
-#include <string.h>
-#include <argp.h>
-#include ELFUTILS_HEADER(dwfl)
-
-#ifndef __linux__
-
-int
-main (int argc __attribute__ ((unused)), char **argv)
-{
- fprintf (stderr, "%s: Unwinding not supported for this architecture\n",
- argv[0]);
- return 77;
-}
-
-#else /* __linux__ */
-
-static int
-dump_modules (Dwfl_Module *mod, void **userdata __attribute__ ((unused)),
- const char *name, Dwarf_Addr start,
- void *arg __attribute__ ((unused)))
-{
- Dwarf_Addr end;
- dwfl_module_info (mod, NULL, NULL, &end, NULL, NULL, NULL, NULL);
- printf ("%#" PRIx64 "\t%#" PRIx64 "\t%s\n", (uint64_t) start, (uint64_t) end,
- name);
- return DWARF_CB_OK;
-}
-
-static bool is_x86_64_native;
-static pid_t check_tid;
-
-static void
-callback_verify (pid_t tid, unsigned frameno, Dwarf_Addr pc,
- const char *symname, Dwfl *dwfl)
-{
- static bool seen_main = false;
- if (symname && *symname == '.')
- symname++;
- if (symname && strcmp (symname, "main") == 0)
- seen_main = true;
- if (pc == 0)
- {
- assert (seen_main);
- return;
- }
- if (check_tid == 0)
- check_tid = tid;
- if (tid != check_tid)
- {
- // For the main thread we are only interested if we can unwind till
- // we see the "main" symbol.
- return;
- }
- Dwfl_Module *mod;
- static bool reduce_frameno = false;
- if (reduce_frameno)
- frameno--;
- if (! is_x86_64_native && frameno >= 2)
- frameno += 2;
- const char *symname2 = NULL;
- switch (frameno)
- {
- case 0:
- if (! reduce_frameno && symname
- && (strcmp (symname, "__kernel_vsyscall") == 0
- || strcmp (symname, "__libc_do_syscall") == 0))
- reduce_frameno = true;
- else
- assert (symname && strcmp (symname, "raise") == 0);
- break;
- case 1:
- assert (symname != NULL && strcmp (symname, "sigusr2") == 0);
- break;
- case 2: // x86_64 only
- /* __restore_rt - glibc maybe does not have to have this symbol. */
- break;
- case 3: // x86_64 only
- if (is_x86_64_native)
- {
- /* Verify we trapped on the very first instruction of jmp. */
- assert (symname != NULL && strcmp (symname, "jmp") == 0);
- mod = dwfl_addrmodule (dwfl, pc - 1);
- if (mod)
- symname2 = dwfl_module_addrname (mod, pc - 1);
- assert (symname2 == NULL || strcmp (symname2, "jmp") != 0);
- break;
- }
- /* PASSTHRU */
- case 4:
- assert (symname != NULL && strcmp (symname, "stdarg") == 0);
- break;
- case 5:
- /* Verify we trapped on the very last instruction of child. */
- assert (symname != NULL && strcmp (symname, "backtracegen") == 0);
- mod = dwfl_addrmodule (dwfl, pc);
- if (mod)
- symname2 = dwfl_module_addrname (mod, pc);
-
- // Note that the following assert might in theory even fail on x86_64,
- // there is no guarantee that the compiler doesn't reorder the
- // instructions or even inserts some padding instructions at the end
- // (which apparently happens on ppc64).
- if (is_x86_64_native)
- assert (symname2 == NULL || strcmp (symname2, "backtracegen") != 0);
- break;
- }
-}
-
-static int
-frame_callback (Dwfl_Frame *state, void *frame_arg)
-{
- int *framenop = frame_arg;
- Dwarf_Addr pc;
- bool isactivation;
-
- if (*framenop > 16)
- {
- error (0, 0, "Too many frames: %d\n", *framenop);
- return DWARF_CB_ABORT;
- }
-
- if (! dwfl_frame_pc (state, &pc, &isactivation))
- {
- error (0, 0, "%s", dwfl_errmsg (-1));
- return DWARF_CB_ABORT;
- }
- Dwarf_Addr pc_adjusted = pc - (isactivation ? 0 : 1);
-
- /* Get PC->SYMNAME. */
- Dwfl_Thread *thread = dwfl_frame_thread (state);
- Dwfl *dwfl = dwfl_thread_dwfl (thread);
- Dwfl_Module *mod = dwfl_addrmodule (dwfl, pc_adjusted);
- const char *symname = NULL;
- if (mod)
- symname = dwfl_module_addrname (mod, pc_adjusted);
-
- printf ("#%2d %#" PRIx64 "%4s\t%s\n", *framenop, (uint64_t) pc,
- ! isactivation ? "- 1" : "", symname);
- pid_t tid = dwfl_thread_tid (thread);
- callback_verify (tid, *framenop, pc, symname, dwfl);
- (*framenop)++;
-
- return DWARF_CB_OK;
-}
-
-static int
-thread_callback (Dwfl_Thread *thread, void *thread_arg __attribute__((unused)))
-{
- printf ("TID %ld:\n", (long) dwfl_thread_tid (thread));
- int frameno = 0;
- switch (dwfl_thread_getframes (thread, frame_callback, &frameno))
- {
- case 0:
- break;
- case DWARF_CB_ABORT:
- return DWARF_CB_ABORT;
- case -1:
- error (0, 0, "dwfl_thread_getframes: %s", dwfl_errmsg (-1));
- /* All platforms do not have yet proper unwind termination. */
- break;
- default:
- abort ();
- }
- return DWARF_CB_OK;
-}
-
-static void
-dump (Dwfl *dwfl)
-{
- ptrdiff_t ptrdiff = dwfl_getmodules (dwfl, dump_modules, NULL, 0);
- assert (ptrdiff == 0);
- bool err = false;
- switch (dwfl_getthreads (dwfl, thread_callback, NULL))
- {
- case 0:
- break;
- case DWARF_CB_ABORT:
- err = true;
- break;
- case -1:
- error (0, 0, "dwfl_getthreads: %s", dwfl_errmsg (-1));
- err = true;
- break;
- default:
- abort ();
- }
- callback_verify (0, 0, 0, NULL, dwfl);
- if (err)
- exit (EXIT_FAILURE);
-}
-
-struct see_exec_module
-{
- Dwfl_Module *mod;
- char selfpath[PATH_MAX + 1];
-};
-
-static int
-see_exec_module (Dwfl_Module *mod, void **userdata __attribute__ ((unused)),
- const char *name __attribute__ ((unused)),
- Dwarf_Addr start __attribute__ ((unused)), void *arg)
-{
- struct see_exec_module *data = arg;
- if (strcmp (name, data->selfpath) != 0)
- return DWARF_CB_OK;
- assert (data->mod == NULL);
- data->mod = mod;
- return DWARF_CB_OK;
-}
-
-/* On x86_64 only:
- PC will get changed to function 'jmp' by backtrace.c function
- prepare_thread. Then SIGUSR2 will be signalled to backtrace-child
- which will invoke function sigusr2.
- This is all done so that signal interrupts execution of the very first
- instruction of a function. Properly handled unwind should not slip into
- the previous unrelated function. */
-
-static void
-prepare_thread (pid_t pid2 __attribute__ ((unused)),
- void (*jmp) (void) __attribute__ ((unused)))
-{
-#ifndef __x86_64__
- abort ();
-#else /* x86_64 */
- long l;
- errno = 0;
- l = ptrace (PTRACE_POKEUSER, pid2,
- (void *) (intptr_t) offsetof (struct user_regs_struct, rip), jmp);
- assert_perror (errno);
- assert (l == 0);
- l = ptrace (PTRACE_CONT, pid2, NULL, (void *) (intptr_t) SIGUSR2);
- int status;
- pid_t got = waitpid (pid2, &status, __WALL);
- assert_perror (errno);
- assert (got == pid2);
- assert (WIFSTOPPED (status));
- assert (WSTOPSIG (status) == SIGUSR1);
-#endif /* __x86_64__ */
-}
-
-#include <asm/unistd.h>
-#include <unistd.h>
-#define tgkill(pid, tid, sig) syscall (__NR_tgkill, (pid), (tid), (sig))
-
-static void
-report_pid (Dwfl *dwfl, pid_t pid)
-{
- int result = dwfl_linux_proc_report (dwfl, pid);
- if (result < 0)
- error (2, 0, "dwfl_linux_proc_report: %s", dwfl_errmsg (-1));
- else if (result > 0)
- error (2, result, "dwfl_linux_proc_report");
-
- if (dwfl_report_end (dwfl, NULL, NULL) != 0)
- error (2, 0, "dwfl_report_end: %s", dwfl_errmsg (-1));
-
- result = dwfl_linux_proc_attach (dwfl, pid, true);
- if (result < 0)
- error (2, 0, "dwfl_linux_proc_attach: %s", dwfl_errmsg (-1));
- else if (result > 0)
- error (2, result, "dwfl_linux_proc_attach");
-}
-
-static Dwfl *
-pid_to_dwfl (pid_t pid)
-{
- static char *debuginfo_path;
- static const Dwfl_Callbacks proc_callbacks =
- {
- .find_debuginfo = dwfl_standard_find_debuginfo,
- .debuginfo_path = &debuginfo_path,
-
- .find_elf = dwfl_linux_proc_find_elf,
- };
- Dwfl *dwfl = dwfl_begin (&proc_callbacks);
- if (dwfl == NULL)
- error (2, 0, "dwfl_begin: %s", dwfl_errmsg (-1));
- report_pid (dwfl, pid);
- return dwfl;
-}
-
-static void
-exec_dump (const char *exec)
-{
- pid_t pid = fork ();
- switch (pid)
- {
- case -1:
- abort ();
- case 0:
- execl (exec, exec, "--ptraceme", NULL);
- abort ();
- default:
- break;
- }
-
- /* Catch the main thread. Catch it first otherwise the /proc evaluation of
- PID may have caught still ourselves before executing execl above. */
- errno = 0;
- int status;
- pid_t got = waitpid (pid, &status, 0);
- assert_perror (errno);
- assert (got == pid);
- assert (WIFSTOPPED (status));
- // Main thread will signal SIGUSR2. Other thread will signal SIGUSR1.
- assert (WSTOPSIG (status) == SIGUSR2);
-
- /* Catch the spawned thread. Do not use __WCLONE as we could get racy
- __WCLONE, probably despite pthread_create already had to be called the new
- task is not yet alive enough for waitpid. */
- pid_t pid2 = waitpid (-1, &status, __WALL);
- assert_perror (errno);
- assert (pid2 > 0);
- assert (pid2 != pid);
- assert (WIFSTOPPED (status));
- // Main thread will signal SIGUSR2. Other thread will signal SIGUSR1.
- assert (WSTOPSIG (status) == SIGUSR1);
-
- Dwfl *dwfl = pid_to_dwfl (pid);
- char *selfpathname;
- int i = asprintf (&selfpathname, "/proc/%ld/exe", (long) pid);
- assert (i > 0);
- struct see_exec_module data;
- ssize_t ssize = readlink (selfpathname, data.selfpath,
- sizeof (data.selfpath));
- free (selfpathname);
- assert (ssize > 0 && ssize < (ssize_t) sizeof (data.selfpath));
- data.selfpath[ssize] = '\0';
- data.mod = NULL;
- ptrdiff_t ptrdiff = dwfl_getmodules (dwfl, see_exec_module, &data, 0);
- assert (ptrdiff == 0);
- assert (data.mod != NULL);
- GElf_Addr loadbase;
- Elf *elf = dwfl_module_getelf (data.mod, &loadbase);
- GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
- assert (ehdr != NULL);
- /* It is false also on x86_64 with i386 inferior. */
-#ifndef __x86_64__
- is_x86_64_native = false;
-#else /* __x86_64__ */
- is_x86_64_native = ehdr->e_ident[EI_CLASS] == ELFCLASS64;
-#endif /* __x86_64__ */
- void (*jmp) (void);
- if (is_x86_64_native)
- {
- // Find inferior symbol named "jmp".
- int nsym = dwfl_module_getsymtab (data.mod);
- int symi;
- for (symi = 1; symi < nsym; ++symi)
- {
- GElf_Sym symbol;
- const char *symbol_name = dwfl_module_getsym (data.mod, symi, &symbol, NULL);
- if (symbol_name == NULL)
- continue;
- switch (GELF_ST_TYPE (symbol.st_info))
- {
- case STT_SECTION:
- case STT_FILE:
- case STT_TLS:
- continue;
- default:
- if (strcmp (symbol_name, "jmp") != 0)
- continue;
- break;
- }
- /* LOADBASE is already applied here. */
- jmp = (void (*) (void)) (uintptr_t) symbol.st_value;
- break;
- }
- assert (symi < nsym);
- prepare_thread (pid2, jmp);
- }
- dwfl_end (dwfl);
- check_tid = pid2;
- dwfl = pid_to_dwfl (pid);
- dump (dwfl);
- dwfl_end (dwfl);
-}
-
-#define OPT_BACKTRACE_EXEC 0x100
-
-static const struct argp_option options[] =
- {
- { "backtrace-exec", OPT_BACKTRACE_EXEC, "EXEC", 0, N_("Run executable"), 0 },
- { NULL, 0, NULL, 0, NULL, 0 }
- };
-
-
-static error_t
-parse_opt (int key, char *arg, struct argp_state *state)
-{
- switch (key)
- {
- case ARGP_KEY_INIT:
- state->child_inputs[0] = state->input;
- break;
-
- case OPT_BACKTRACE_EXEC:
- exec_dump (arg);
- exit (0);
-
- default:
- return ARGP_ERR_UNKNOWN;
- }
- return 0;
-}
-
-int
-main (int argc __attribute__ ((unused)), char **argv)
-{
- /* We use no threads here which can interfere with handling a stream. */
- __fsetlocking (stdin, FSETLOCKING_BYCALLER);
- __fsetlocking (stdout, FSETLOCKING_BYCALLER);
- __fsetlocking (stderr, FSETLOCKING_BYCALLER);
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- elf_version (EV_CURRENT);
-
- Dwfl *dwfl = NULL;
- const struct argp_child argp_children[] =
- {
- { .argp = dwfl_standard_argp () },
- { .argp = NULL }
- };
- const struct argp argp =
- {
- options, parse_opt, NULL, NULL, argp_children, NULL, NULL
- };
- (void) argp_parse (&argp, argc, argv, 0, NULL, &dwfl);
- assert (dwfl != NULL);
- /* We want to make sure the dwfl was properly attached. */
- if (dwfl_pid (dwfl) < 0)
- error (2, 0, "dwfl_pid: %s", dwfl_errmsg (-1));
- dump (dwfl);
- dwfl_end (dwfl);
- return 0;
-}
-
-#endif /* ! __linux__ */
-
diff --git a/src/tests/backtrace.i386.core.bz2 b/src/tests/backtrace.i386.core.bz2
deleted file mode 100644
index e120d9bd..00000000
--- a/src/tests/backtrace.i386.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.i386.exec.bz2 b/src/tests/backtrace.i386.exec.bz2
deleted file mode 100644
index 1b0f001c..00000000
--- a/src/tests/backtrace.i386.exec.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.ppc.core.bz2 b/src/tests/backtrace.ppc.core.bz2
deleted file mode 100644
index f20cd9f3..00000000
--- a/src/tests/backtrace.ppc.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.ppc.exec.bz2 b/src/tests/backtrace.ppc.exec.bz2
deleted file mode 100644
index 057c25a6..00000000
--- a/src/tests/backtrace.ppc.exec.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.s390.core.bz2 b/src/tests/backtrace.s390.core.bz2
deleted file mode 100644
index db346948..00000000
--- a/src/tests/backtrace.s390.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.s390.exec.bz2 b/src/tests/backtrace.s390.exec.bz2
deleted file mode 100644
index 4c1b4aee..00000000
--- a/src/tests/backtrace.s390.exec.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.s390x.core.bz2 b/src/tests/backtrace.s390x.core.bz2
deleted file mode 100644
index 61c23ec4..00000000
--- a/src/tests/backtrace.s390x.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.s390x.exec.bz2 b/src/tests/backtrace.s390x.exec.bz2
deleted file mode 100644
index 8009239d..00000000
--- a/src/tests/backtrace.s390x.exec.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.x86_64.core.bz2 b/src/tests/backtrace.x86_64.core.bz2
deleted file mode 100644
index 1f34e206..00000000
--- a/src/tests/backtrace.x86_64.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/backtrace.x86_64.exec.bz2 b/src/tests/backtrace.x86_64.exec.bz2
deleted file mode 100644
index 70a151be..00000000
--- a/src/tests/backtrace.x86_64.exec.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/buildid.c b/src/tests/buildid.c
deleted file mode 100644
index 87c18773..00000000
--- a/src/tests/buildid.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Test program for dwelf_elf_gnu_build_id, print build ID.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <err.h>
-#include <errno.h>
-#include ELFUTILS_HEADER(elf)
-#include ELFUTILS_HEADER(dwelf)
-#include <stdio.h>
-#include <error.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-int
-main (int argc, char *argv[])
-{
- if (argc < 2)
- error (EXIT_FAILURE, 0, "No input file given");
-
- elf_version (EV_CURRENT);
-
- for (int i = 1; i < argc; i++)
- {
- const char *file = argv[i];
- int fd = open (file, O_RDONLY);
- if (fd < 0)
- error (EXIT_FAILURE, errno, "couldn't open file '%s'", file);
-
- Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf("%s: elf_begin failed: %s\n", file, elf_errmsg (-1));
- close (fd);
- continue;
- }
-
- const void *build_id;
- ssize_t len = dwelf_elf_gnu_build_id (elf, &build_id);
- switch (len)
- {
- case 0:
- printf ("%s: <no NT_GNU_BUILD_ID note>\n", file);
- break;
- case -1:
- errx (1, "dwelf_elf_gnu_build_id (%s): %s",
- file, elf_errmsg (-1));
- default:
- printf ("%s: build ID: ", file);
- const unsigned char *p = build_id;
- const unsigned char *end = p + len;
- while (p < end)
- printf("%02x", (unsigned)*p++);
- putchar('\n');
- }
-
- elf_end (elf);
- close (fd);
- }
-
- return 0;
-}
diff --git a/src/tests/cleanup-13.c b/src/tests/cleanup-13.c
deleted file mode 100644
index 3919b91a..00000000
--- a/src/tests/cleanup-13.c
+++ /dev/null
@@ -1,316 +0,0 @@
-// http://gcc.gnu.org/viewcvs/gcc/trunk/gcc/testsuite/gcc.dg/cleanup-13.c?view=co&content-type=text%2Fplain
-
-/* HP-UX libunwind.so doesn't provide _UA_END_OF_STACK */
-/* { dg-do run } */
-/* { dg-options "-fexceptions" } */
-/* { dg-skip-if "" { "ia64-*-hpux11.*" } { "*" } { "" } } */
-/* Verify DW_OP_* handling in the unwinder. */
-
-#include <unwind.h>
-#include <stdlib.h>
-#include <string.h>
-
-/* #define OP_addr(x) 0x06, ... */
-#define OP_deref 0x06,
-#define SLEB128(x) (x)&0x7f /* Assume here the value is -0x40 ... 0x3f. */
-#define ULEB128(x) (x)&0x7f /* Assume here the value is 0 ... 0x7f. */
-#define VAL1(x) (x)&0xff
-#if defined (__BIG_ENDIAN__)
-#define VAL2(x) ((x)>>8)&0xff,(x)&0xff
-#define VAL4(x) ((x)>>24)&0xff,((x)>>16)&0xff,((x)>>8)&0xff,(x)&0xff
-#define VAL8(x) ((x)>>56)&0xff,((x)>>48)&0xff,((x)>>40)&0xff,((x)>>32)&0xff,((x)>>24)&0xff,((x)>>16)&0xff,((x)>>8)&0xff,(x)&0xff
-#elif defined(__LITTLE_ENDIAN__) || defined(__x86_64__) || defined(__i386__)
-#define VAL2(x) (x)&0xff,((x)>>8)&0xff
-#define VAL4(x) (x)&0xff,((x)>>8)&0xff,((x)>>16)&0xff,((x)>>24)&0xff
-#define VAL8(x) (x)&0xff,((x)>>8)&0xff,((x)>>16)&0xff,((x)>>24)&0xff,((x)>>32)&0xff,((x)>>40)&0xff,((x)>>48)&0xff,((x)>>56)&0xff
-#endif
-#define OP_const1u(x) 0x08,VAL1(x),
-#define OP_const1s(x) 0x09,VAL1(x),
-#define OP_const2u(x) 0x0a,VAL2(x),
-#define OP_const2s(x) 0x0b,VAL2(x),
-#define OP_const4u(x) 0x0c,VAL4(x),
-#define OP_const4s(x) 0x0d,VAL4(x),
-#define OP_const8u(x) 0x0e,VAL8(x),
-#define OP_const8s(x) 0x0f,VAL8(x),
-#define OP_constu(x) 0x10,ULEB128(x),
-#define OP_consts(x) 0x11,SLEB128(x),
-#define OP_dup 0x12,
-#define OP_drop 0x13,
-#define OP_over 0x14,
-#define OP_pick(x) 0x15,VAL1(x),
-#define OP_swap 0x16,
-#define OP_rot 0x17,
-#define OP_xderef 0x18,
-#define OP_abs 0x19,
-#define OP_and 0x1a,
-#define OP_div 0x1b,
-#define OP_minus 0x1c,
-#define OP_mod 0x1d,
-#define OP_mul 0x1e,
-#define OP_neg 0x1f,
-#define OP_not 0x20,
-#define OP_or 0x21,
-#define OP_plus 0x22,
-#define OP_plus_uconst(x) 0x23,ULEB128(x),
-#define OP_shl 0x24,
-#define OP_shr 0x25,
-#define OP_shra 0x26,
-#define OP_xor 0x27,
-#define OP_bra(x) 0x28,VAL2(x),
-#define OP_eq 0x29,
-#define OP_ge 0x2a,
-#define OP_gt 0x2b,
-#define OP_le 0x2c,
-#define OP_lt 0x2d,
-#define OP_ne 0x2e,
-#define OP_skip(x) 0x2f,VAL2(x),
-#define OP_lit0 0x30,
-#define OP_lit1 0x31,
-#define OP_lit2 0x32,
-#define OP_lit3 0x33,
-#define OP_lit4 0x34,
-#define OP_lit5 0x35,
-#define OP_lit6 0x36,
-#define OP_lit7 0x37,
-#define OP_lit8 0x38,
-#define OP_lit9 0x39,
-#define OP_lit10 0x3a,
-#define OP_lit11 0x3b,
-#define OP_lit12 0x3c,
-#define OP_lit13 0x3d,
-#define OP_lit14 0x3e,
-#define OP_lit15 0x3f,
-#define OP_lit16 0x40,
-#define OP_lit17 0x41,
-#define OP_lit18 0x42,
-#define OP_lit19 0x43,
-#define OP_lit20 0x44,
-#define OP_lit21 0x45,
-#define OP_lit22 0x46,
-#define OP_lit23 0x47,
-#define OP_lit24 0x48,
-#define OP_lit25 0x49,
-#define OP_lit26 0x4a,
-#define OP_lit27 0x4b,
-#define OP_lit28 0x4c,
-#define OP_lit29 0x4d,
-#define OP_lit30 0x4e,
-#define OP_lit31 0x4f,
-#define OP_reg0 0x50,
-#define OP_reg1 0x51,
-#define OP_reg2 0x52,
-#define OP_reg3 0x53,
-#define OP_reg4 0x54,
-#define OP_reg5 0x55,
-#define OP_reg6 0x56,
-#define OP_reg7 0x57,
-#define OP_reg8 0x58,
-#define OP_reg9 0x59,
-#define OP_reg10 0x5a,
-#define OP_reg11 0x5b,
-#define OP_reg12 0x5c,
-#define OP_reg13 0x5d,
-#define OP_reg14 0x5e,
-#define OP_reg15 0x5f,
-#define OP_reg16 0x60,
-#define OP_reg17 0x61,
-#define OP_reg18 0x62,
-#define OP_reg19 0x63,
-#define OP_reg20 0x64,
-#define OP_reg21 0x65,
-#define OP_reg22 0x66,
-#define OP_reg23 0x67,
-#define OP_reg24 0x68,
-#define OP_reg25 0x69,
-#define OP_reg26 0x6a,
-#define OP_reg27 0x6b,
-#define OP_reg28 0x6c,
-#define OP_reg29 0x6d,
-#define OP_reg30 0x6e,
-#define OP_reg31 0x6f,
-#define OP_breg0(x) 0x70,SLEB128(x),
-#define OP_breg1(x) 0x71,SLEB128(x),
-#define OP_breg2(x) 0x72,SLEB128(x),
-#define OP_breg3(x) 0x73,SLEB128(x),
-#define OP_breg4(x) 0x74,SLEB128(x),
-#define OP_breg5(x) 0x75,SLEB128(x),
-#define OP_breg6(x) 0x76,SLEB128(x),
-#define OP_breg7(x) 0x77,SLEB128(x),
-#define OP_breg8(x) 0x78,SLEB128(x),
-#define OP_breg9(x) 0x79,SLEB128(x),
-#define OP_breg10(x) 0x7a,SLEB128(x),
-#define OP_breg11(x) 0x7b,SLEB128(x),
-#define OP_breg12(x) 0x7c,SLEB128(x),
-#define OP_breg13(x) 0x7d,SLEB128(x),
-#define OP_breg14(x) 0x7e,SLEB128(x),
-#define OP_breg15(x) 0x7f,SLEB128(x),
-#define OP_breg16(x) 0x80,SLEB128(x),
-#define OP_breg17(x) 0x81,SLEB128(x),
-#define OP_breg18(x) 0x82,SLEB128(x),
-#define OP_breg19(x) 0x83,SLEB128(x),
-#define OP_breg20(x) 0x84,SLEB128(x),
-#define OP_breg21(x) 0x85,SLEB128(x),
-#define OP_breg22(x) 0x86,SLEB128(x),
-#define OP_breg23(x) 0x87,SLEB128(x),
-#define OP_breg24(x) 0x88,SLEB128(x),
-#define OP_breg25(x) 0x89,SLEB128(x),
-#define OP_breg26(x) 0x8a,SLEB128(x),
-#define OP_breg27(x) 0x8b,SLEB128(x),
-#define OP_breg28(x) 0x8c,SLEB128(x),
-#define OP_breg29(x) 0x8d,SLEB128(x),
-#define OP_breg30(x) 0x8e,SLEB128(x),
-#define OP_breg31(x) 0x8f,SLEB128(x),
-#define OP_regx(x) 0x90,SLEB128(x),
-#define OP_fbreg(x) 0x91,SLEB128(x),
-#define OP_bregx(x,y) 0x92,ULEB128(x),SLEB128(y),
-#define OP_piece(x) 0x93,ULEB128(x),
-#define OP_deref_size(x) 0x94,VAL1(x),
-#define OP_xderef_size(x) 0x95,VAL1(x),
-#define OP_nop 0x96,
-#define OP_nop_termination 0x96
-#define OP_push_object_address 0x97,
-#define OP_call2(x) 0x98,VAL2(x),
-#define OP_call4(x) 0x99,VAL4(x),
-/* #define OP_call_ref(x) 0x9a,... */
-#define OP_form_tls_address(x) 0x9b,
-#define OP_call_frame_cfa 0x9c,
-#define OP_bit_piece(x) 0x9d,ULEB128(x),
-/* #define OP_implicit_value(x...) 0x9e,... */
-#define OP_stack_value 0x9f,
-#define OP_GNU_push_tls_address 0xe0,
-/* #define OP_GNU_encoded_addr(x...) 0xf1, */
-
-#define ASSERT_TOS_NON0 OP_bra(3) OP_skip(-3)
-#define ASSERT_TOS_0 OP_lit0 OP_eq ASSERT_TOS_NON0
-
-/* Initially there is CFA value on the stack, we want to
- keep it there at the end. */
-#define CFI_PROGRAM \
-OP_lit0 OP_nop ASSERT_TOS_0 \
-OP_lit1 ASSERT_TOS_NON0 \
-OP_lit1 OP_const1u(1) OP_eq ASSERT_TOS_NON0 \
-OP_lit16 OP_const2u(16) OP_eq ASSERT_TOS_NON0 \
-OP_lit31 OP_const4u(31) OP_ne ASSERT_TOS_0 \
-OP_lit1 OP_neg OP_const1s(-1) OP_eq ASSERT_TOS_NON0 \
-OP_lit16 OP_neg OP_const2s(-16) OP_ne ASSERT_TOS_0 \
-OP_lit31 OP_const4s(-31) OP_neg OP_ne ASSERT_TOS_0 \
-OP_lit7 OP_dup OP_plus_uconst(2) OP_lit9 OP_eq ASSERT_TOS_NON0 \
- OP_lit7 OP_eq ASSERT_TOS_NON0 \
-OP_lit20 OP_lit1 OP_drop OP_lit20 OP_eq ASSERT_TOS_NON0 \
-OP_lit17 OP_lit19 OP_over OP_lit17 OP_eq ASSERT_TOS_NON0 \
- OP_lit19 OP_eq ASSERT_TOS_NON0 OP_lit17 OP_eq ASSERT_TOS_NON0 \
-OP_lit1 OP_lit2 OP_lit3 OP_lit4 OP_pick(2) OP_lit2 OP_eq ASSERT_TOS_NON0\
- OP_lit4 OP_eq ASSERT_TOS_NON0 OP_lit3 OP_eq ASSERT_TOS_NON0 \
- OP_pick(0) OP_lit2 OP_eq ASSERT_TOS_NON0 \
- OP_lit2 OP_eq ASSERT_TOS_NON0 OP_lit1 OP_eq ASSERT_TOS_NON0 \
-OP_lit6 OP_lit12 OP_swap OP_lit6 OP_eq ASSERT_TOS_NON0 \
- OP_lit12 OP_eq ASSERT_TOS_NON0 \
-OP_lit7 OP_lit8 OP_lit9 OP_rot OP_lit8 OP_eq ASSERT_TOS_NON0 \
- OP_lit7 OP_eq ASSERT_TOS_NON0 OP_lit9 OP_eq ASSERT_TOS_NON0 \
-OP_lit7 OP_abs OP_lit7 OP_eq ASSERT_TOS_NON0 \
-OP_const1s(-123) OP_abs OP_const1u(123) OP_eq ASSERT_TOS_NON0 \
-OP_lit3 OP_lit6 OP_and OP_lit2 OP_eq ASSERT_TOS_NON0 \
-OP_lit3 OP_lit6 OP_or OP_lit7 OP_eq ASSERT_TOS_NON0 \
-OP_lit17 OP_lit2 OP_minus OP_lit15 OP_eq ASSERT_TOS_NON0 \
-/* Divide is signed truncating toward zero. */ \
-OP_const1s(-6) OP_const1s(-2) OP_div OP_lit3 OP_eq ASSERT_TOS_NON0 \
-OP_const1s(-7) OP_const1s(3) OP_div OP_const1s(-2) \
- OP_eq ASSERT_TOS_NON0 \
-/* Modulo is unsigned. */ \
-OP_const1s(-6) OP_const1s(-4) OP_mod OP_const1s(-6) \
- OP_eq ASSERT_TOS_NON0 \
-OP_const1s(-6) OP_lit4 OP_mod OP_lit2 OP_eq ASSERT_TOS_NON0 \
-OP_lit6 OP_const1s(-4) OP_mod OP_lit6 OP_eq ASSERT_TOS_NON0 \
-/* Signed modulo can be implemented using "over over div mul minus". */\
-OP_const1s(-6) OP_const1s(-4) OP_over OP_over OP_div OP_mul OP_minus \
- OP_const1s(-2) OP_eq ASSERT_TOS_NON0 \
-OP_const1s(-7) OP_lit3 OP_over OP_over OP_div OP_mul OP_minus \
- OP_const1s(-1) OP_eq ASSERT_TOS_NON0 \
-OP_lit7 OP_const1s(-3) OP_over OP_over OP_div OP_mul OP_minus \
- OP_lit1 OP_eq ASSERT_TOS_NON0 \
-OP_lit16 OP_lit31 OP_plus_uconst(1) OP_mul OP_const2u(512) \
- OP_eq ASSERT_TOS_NON0 \
-OP_lit5 OP_not OP_lit31 OP_and OP_lit26 OP_eq ASSERT_TOS_NON0 \
-OP_lit12 OP_lit31 OP_plus OP_const1u(43) OP_eq ASSERT_TOS_NON0 \
-OP_const1s(-6) OP_lit2 OP_plus OP_const1s(-4) OP_eq ASSERT_TOS_NON0 \
-OP_const1s(-6) OP_plus_uconst(3) OP_const1s(-3) OP_eq ASSERT_TOS_NON0 \
-OP_lit16 OP_lit4 OP_shl OP_const2u(256) OP_eq ASSERT_TOS_NON0 \
-OP_lit16 OP_lit3 OP_shr OP_lit2 OP_eq ASSERT_TOS_NON0 \
-OP_const1s(-16) OP_lit3 OP_shra OP_const1s(-2) OP_eq ASSERT_TOS_NON0 \
-OP_lit3 OP_lit6 OP_xor OP_lit5 OP_eq ASSERT_TOS_NON0 \
-OP_lit3 OP_lit6 OP_le ASSERT_TOS_NON0 \
-OP_lit3 OP_lit3 OP_le ASSERT_TOS_NON0 \
-OP_lit6 OP_lit3 OP_le ASSERT_TOS_0 \
-OP_lit3 OP_lit6 OP_lt ASSERT_TOS_NON0 \
-OP_lit3 OP_lit3 OP_lt ASSERT_TOS_0 \
-OP_lit6 OP_lit3 OP_lt ASSERT_TOS_0 \
-OP_lit3 OP_lit6 OP_ge ASSERT_TOS_0 \
-OP_lit3 OP_lit3 OP_ge ASSERT_TOS_NON0 \
-OP_lit6 OP_lit3 OP_ge ASSERT_TOS_NON0 \
-OP_lit3 OP_lit6 OP_gt ASSERT_TOS_0 \
-OP_lit3 OP_lit3 OP_gt ASSERT_TOS_0 \
-OP_lit6 OP_lit3 OP_gt ASSERT_TOS_NON0 \
-OP_const1s(-6) OP_lit1 OP_shr OP_lit0 OP_gt ASSERT_TOS_NON0 \
-OP_const1s(-6) OP_lit1 OP_shra OP_lit0 OP_lt ASSERT_TOS_NON0
-
-#define CFI_ESCAPE_VAL_2(VALUES...) #VALUES
-#define CFI_ESCAPE_VAL_1(VALUES...) CFI_ESCAPE_VAL_2(VALUES)
-#define CFI_ESCAPE_VAL(VALUES...) CFI_ESCAPE_VAL_1(VALUES)
-#define CFI_ESCAPE do { } while (0)
-#define CFI_ARCH_PROGRAM OP_nop_termination
-#ifdef __GCC_HAVE_DWARF2_CFI_ASM
-#if defined (__x86_64__)
-#undef CFI_ESCAPE
-#undef CFI_ARCH_PROGRAM
-#define CFI_ARCH_PROGRAM CFI_PROGRAM OP_lit8 OP_minus OP_nop_termination
-unsigned char cfi_arch_program[] = { CFI_ARCH_PROGRAM };
-extern char verify_it[sizeof (cfi_arch_program) - 0x80 < 0x3f80 ? 1 : -1];
-/* DW_CFA_expression %rip, uleb128(l2-l1), l1: program DW_OP_lit8 DW_OP_minus DW_OP_nop l2: */
-#define CFI_ESCAPE \
- asm volatile (".cfi_escape 0x10, 0x10, (%P0&0x7f)+0x80, %P0>>7, " \
- CFI_ESCAPE_VAL (CFI_ARCH_PROGRAM) \
- : : "i" (sizeof (cfi_arch_program)))
-#elif defined (__i386__)
-#undef CFI_ESCAPE
-#undef CFI_ARCH_PROGRAM
-#define CFI_ARCH_PROGRAM CFI_PROGRAM OP_lit4 OP_minus OP_nop_termination
-unsigned char cfi_arch_program[] = { CFI_ARCH_PROGRAM };
-extern char verify_it[sizeof (cfi_arch_program) - 0x80 < 0x3f80 ? 1 : -1];
-/* DW_CFA_expression %eip, uleb128(l2-l1), l1: program DW_OP_lit4 DW_OP_minus DW_OP_nop l2: */
-#define CFI_ESCAPE \
- asm volatile (".cfi_escape 0x10, 8, (%P0&0x7f)+0x80, %P0>>7, " \
- CFI_ESCAPE_VAL (CFI_ARCH_PROGRAM) \
- : : "i" (sizeof (cfi_arch_program)))
-#endif
-#endif
-
-/* The original GCC testcase tests the runtime unwinder using
- _Unwind_ForcedUnwind, we just inspect the child when it aborts. */
-
-static void force_unwind ()
-{
- abort ();
-}
-
-static void handler (void *p __attribute__((unused)))
-{
- exit (0);
-}
-
-__attribute__((noinline)) static void callme ()
-{
- CFI_ESCAPE;
- force_unwind ();
-}
-
-__attribute__((noinline)) static void doit ()
-{
- char dummy __attribute__((cleanup (handler)));
- callme ();
-}
-
-int main()
-{
- doit ();
- abort ();
-}
diff --git a/src/tests/coverage.sh b/src/tests/coverage.sh
deleted file mode 100755
index 5cc353c9..00000000
--- a/src/tests/coverage.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#! /bin/bash
-
-if [ "x$1" = "x-v" ]; then
- verbose=yes
-else
- verbose=no
-fi
-
-cd ..
-
-for d in lib libasm libdw libdwfl libebl libelf backends src; do
- tmp=$d-data
- cd $d
- unused=0
- unused_files=
- for f in *.gcno; do
- base="$(basename $f .gcno)"
- fc="$base.c"
- gcda="$base.gcda"
- if [ -f "$gcda" ]; then
- gcov -n -a "$fc" |
- gawk "/$d.$fc/ { getline; co=gensub(/.*:(.*)% .*/, \"\\\\1\", \"g\"); co=co+0.0; li=\$4+0; printf \"%-35s %6.2f %5d\n\", \"$d/$fc\", co, li } " >> $tmp
- else
- unused=$(($unused + 1))
- unused_files="$unused_files $fc"
- fi
- done
- if [ -f $tmp ]; then
- gawk "{ copct=\$2; co=(\$3*copct)/100; toco+=(co+0); toli += (\$3+0); } END { printf \"%-12s %6.2f%% covered unused files: %3d\n\", \"$d\", (toco*100)/toli, \"$unused\" }" $tmp
- rm -f $tmp
- else
- printf "%-12s 0.00%% covered unused files: %3d\n" "$d" $unused
- fi
- if [ $verbose = yes ]; then
- for f in $unused_files; do
- printf '%-42s%s\n' '' $f
- done
- fi
- cd ..
-done
diff --git a/src/tests/debugaltlink.c b/src/tests/debugaltlink.c
deleted file mode 100644
index 6d97d500..00000000
--- a/src/tests/debugaltlink.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* Test program for dwelf_dwarf_gnu_debugaltlink, print name and build ID.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <err.h>
-#include <errno.h>
-#include ELFUTILS_HEADER(dw)
-#include ELFUTILS_HEADER(dwelf)
-#include <stdio.h>
-#include <error.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-int
-main (int argc, char *argv[])
-{
- if (argc < 2)
- error (EXIT_FAILURE, 0, "No input file given");
-
- elf_version (EV_CURRENT);
-
- for (int i = 1; i < argc; i++)
- {
- const char *file = argv[i];
- int fd = open (file, O_RDONLY);
- if (fd < 0)
- error (EXIT_FAILURE, errno, "couldn't open file '%s'", file);
-
- Dwarf *dwarf = dwarf_begin (fd, DWARF_C_READ);
- if (dwarf == NULL)
- {
- printf("%s: dwarf_begin failed: %s\n", file, dwarf_errmsg (-1));
- close (fd);
- continue;
- }
-
- const char *name;
- const void *build_id;
- ssize_t ret = dwelf_dwarf_gnu_debugaltlink
- (dwarf, &name, &build_id);
- switch (ret)
- {
- case 0:
- printf ("%s: <no .gnu_debugaltlink section>\n", file);
- break;
- case -1:
- errx (1, "dwelf_dwarf_gnu_debugaltlink (%s): %s",
- file, dwarf_errmsg (-1));
- default:
- printf ("%s: %s, build ID: ", file, name);
- const unsigned char *p = build_id;
- const unsigned char *end = p + ret;
- while (p < end)
- printf("%02x", (unsigned)*p++);
- putchar('\n');
- }
-
- dwarf_end (dwarf);
- close (fd);
- }
-
- return 0;
-}
diff --git a/src/tests/debuglink.c b/src/tests/debuglink.c
deleted file mode 100644
index 935d1029..00000000
--- a/src/tests/debuglink.c
+++ /dev/null
@@ -1,64 +0,0 @@
-/* Test program for dwelf_elf_gnu_debuglink, print name and crc.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <errno.h>
-#include ELFUTILS_HEADER(dwelf)
-#include <stdio.h>
-#include <error.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-int
-main (int argc, char *argv[])
-{
- if (argc < 2)
- error (EXIT_FAILURE, 0, "No input file given");
-
- elf_version (EV_CURRENT);
-
- for (int i = 1; i < argc; i++)
- {
- const char *file = argv[i];
- int fd = open (file, O_RDONLY);
- if (fd < 0)
- error (EXIT_FAILURE, errno, "couldn't open file '%s'", file);
-
- Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- error (EXIT_FAILURE, 0, "elf_begin failed for '%s': %s",
- file, elf_errmsg (-1));
-
- GElf_Word crc;
- const char *debug = dwelf_elf_gnu_debuglink (elf, &crc);
- if (debug == NULL)
- printf ("%s: <no gnu_debuglink file>\n", file);
- else
- printf ("%s: %s, crc: %" PRIx32 "\n", file, debug, crc);
-
- elf_end (elf);
- close (fd);
- }
-
- return 0;
-}
diff --git a/src/tests/deleted-lib.c b/src/tests/deleted-lib.c
deleted file mode 100644
index 1ff411b7..00000000
--- a/src/tests/deleted-lib.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Test program for opening already deleted running binaries.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <unistd.h>
-
-void
-libfunc (void)
-{
- sleep (60000);
- /* Avoid tail call optimization for the sleep call. */
- asm volatile ("");
-}
diff --git a/src/tests/deleted.c b/src/tests/deleted.c
deleted file mode 100644
index 32a310b6..00000000
--- a/src/tests/deleted.c
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Test program for opening already deleted running binaries.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <locale.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <assert.h>
-#include <stdio.h>
-#include <error.h>
-#include <errno.h>
-
-extern void libfunc (void);
-
-int
-main (int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)))
-{
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- pid_t pid = fork ();
- assert (pid != -1);
- if (pid == 0)
- {
- int err = close (0);
- assert (!err);
- err = close (1);
- assert (!err);
- err = close (2);
- assert (!err);
- libfunc ();
- abort ();
- }
- printf ("%d\n", pid);
- return EXIT_SUCCESS;
-}
diff --git a/src/tests/dwarf-getmacros.c b/src/tests/dwarf-getmacros.c
deleted file mode 100644
index 92e093ca..00000000
--- a/src/tests/dwarf-getmacros.c
+++ /dev/null
@@ -1,144 +0,0 @@
-/* Test program for dwarf_getmacros and related
- Copyright (C) 2009, 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include ELFUTILS_HEADER(dw)
-#include <dwarf.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <inttypes.h>
-
-static void include (Dwarf *dbg, Dwarf_Off macoff, ptrdiff_t token);
-
-static int
-mac (Dwarf_Macro *macro, void *dbg)
-{
- static int level = 0;
-
- unsigned int opcode;
- dwarf_macro_opcode (macro, &opcode);
- switch (opcode)
- {
- case DW_MACRO_GNU_transparent_include:
- {
- Dwarf_Attribute at;
- int r = dwarf_macro_param (macro, 0, &at);
- assert (r == 0);
-
- Dwarf_Word w;
- r = dwarf_formudata (&at, &w);
- assert (r == 0);
-
- printf ("%*sinclude %#" PRIx64 "\n", level, "", w);
- ++level;
- include (dbg, w, DWARF_GETMACROS_START);
- --level;
- printf ("%*s/include\n", level, "");
- break;
- }
-
- case DW_MACRO_GNU_start_file:
- {
- Dwarf_Files *files;
- size_t nfiles;
- if (dwarf_macro_getsrcfiles (dbg, macro, &files, &nfiles) < 0)
- printf ("dwarf_macro_getsrcfiles: %s\n",
- dwarf_errmsg (dwarf_errno ()));
-
- Dwarf_Word w = 0;
- dwarf_macro_param2 (macro, &w, NULL);
-
- const char *name = dwarf_filesrc (files, (size_t) w, NULL, NULL);
- printf ("%*sfile %s\n", level, "", name);
- ++level;
- break;
- }
-
- case DW_MACRO_GNU_end_file:
- {
- --level;
- printf ("%*s/file\n", level, "");
- break;
- }
-
- case DW_MACINFO_define:
- case DW_MACRO_GNU_define_indirect:
- {
- const char *value;
- dwarf_macro_param2 (macro, NULL, &value);
- printf ("%*s%s\n", level, "", value);
- break;
- }
-
- case DW_MACINFO_undef:
- case DW_MACRO_GNU_undef_indirect:
- break;
-
- default:
- {
- size_t paramcnt;
- dwarf_macro_getparamcnt (macro, &paramcnt);
- printf ("%*sopcode %u with %zd arguments\n",
- level, "", opcode, paramcnt);
- break;
- }
- }
-
- return DWARF_CB_ABORT;
-}
-
-static void
-include (Dwarf *dbg, Dwarf_Off macoff, ptrdiff_t token)
-{
- while ((token = dwarf_getmacros_off (dbg, macoff, mac, dbg, token)) != 0)
- if (token == -1)
- {
- puts (dwarf_errmsg (dwarf_errno ()));
- break;
- }
-}
-
-int
-main (int argc, char *argv[])
-{
- assert (argc >= 3);
- const char *name = argv[1];
- ptrdiff_t cuoff = strtol (argv[2], NULL, 0);
- bool new_style = argc > 3;
-
- int fd = open (name, O_RDONLY);
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
-
- Dwarf_Die cudie_mem, *cudie = dwarf_offdie (dbg, cuoff, &cudie_mem);
-
- for (ptrdiff_t off = new_style ? DWARF_GETMACROS_START : 0;
- (off = dwarf_getmacros (cudie, mac, dbg, off)); )
- if (off == -1)
- {
- puts (dwarf_errmsg (dwarf_errno ()));
- break;
- }
-
- dwarf_end (dbg);
-
- return 0;
-}
diff --git a/src/tests/dwarf-getstring.c b/src/tests/dwarf-getstring.c
deleted file mode 100644
index b70c2a70..00000000
--- a/src/tests/dwarf-getstring.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/* Copyright (C) 2011 Red Hat, Inc.
- This file is part of elfutils.
- Written by Marek Polacek <mpolacek@redhat.com>, 2011.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include ELFUTILS_HEADER(dwfl)
-#include <assert.h>
-#include <dwarf.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <unistd.h>
-
-
-int
-main (int argc, char *argv[])
-{
- int cnt;
-
- for (cnt = 1; cnt < argc; ++cnt)
- {
- Dwarf_Off offset = 0;
- size_t len;
-
- int fd = open64 (argv[cnt], O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open '%s': %m\n", argv[cnt]);
- return 1;
- }
-
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg == NULL)
- {
- printf ("%s not usable: %s\n", argv[cnt], dwarf_errmsg (-1));
- close (fd);
- return 1;
- }
-
- /* Try to use NULL Dwarf object. */
- const char *str = dwarf_getstring (NULL, offset, &len);
- assert (str == NULL);
-
- /* Use insane offset. */
- str = dwarf_getstring (dbg, ~0UL, &len);
- assert (str == NULL);
-
- /* Now do some real work. */
- for (int i = 0; i < 100; ++i)
- {
- str = dwarf_getstring (dbg, offset, &len);
- puts (str);
-
- /* Advance. */
- offset += len + 1;
- }
-
- close (fd);
- }
-
- return 0;
-}
diff --git a/src/tests/dwfl-addr-sect.c b/src/tests/dwfl-addr-sect.c
deleted file mode 100644
index 21e470a3..00000000
--- a/src/tests/dwfl-addr-sect.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/* Test program for libdwfl ... foo
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <stdlib.h>
-#include <string.h>
-#include <error.h>
-#include <locale.h>
-#include <argp.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-
-static int
-handle_address (Dwfl *dwfl, Dwarf_Addr address)
-{
- Dwfl_Module *mod = dwfl_addrmodule (dwfl, address);
- Dwarf_Addr adjusted = address;
- Dwarf_Addr bias;
- Elf_Scn *scn = dwfl_module_address_section (mod, &adjusted, &bias);
- if (scn == NULL)
- {
- error (0, 0, "%#" PRIx64 ": dwfl_module_address_section: %s",
- address, dwfl_errmsg (-1));
- return 1;
- }
- printf ("address %#" PRIx64 " => module \"%s\" section %zu + %#" PRIx64 "\n",
- address,
- dwfl_module_info (mod, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
- elf_ndxscn (scn), adjusted);
- return 0;
-}
-
-int
-main (int argc, char **argv)
-{
- /* We use no threads here which can interfere with handling a stream. */
- (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER);
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- int remaining;
- Dwfl *dwfl = NULL;
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining, &dwfl);
- assert (dwfl != NULL);
-
- int result = 0;
- for (; remaining < argc; ++remaining)
- {
- char *endp;
- uintmax_t addr = strtoumax (argv[remaining], &endp, 0);
- if (endp != argv[remaining])
- result |= handle_address (dwfl, addr);
- else
- result = 1;
- }
-
- dwfl_end (dwfl);
-
- return result;
-}
diff --git a/src/tests/dwfl-bug-addr-overflow.c b/src/tests/dwfl-bug-addr-overflow.c
deleted file mode 100644
index aa8030e1..00000000
--- a/src/tests/dwfl-bug-addr-overflow.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/* Test program for libdwfl basic module tracking, relocation.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <error.h>
-#include <locale.h>
-#include ELFUTILS_HEADER(dwfl)
-
-
-static const Dwfl_Callbacks offline_callbacks =
- {
- .find_debuginfo = INTUSE(dwfl_standard_find_debuginfo),
- .section_address = INTUSE(dwfl_offline_section_address),
- };
-
-
-int
-main (void)
-{
- /* We use no threads here which can interfere with handling a stream. */
- (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER);
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- Dwfl *dwfl = dwfl_begin (&offline_callbacks);
- assert (dwfl != NULL);
-
- Dwfl_Module *high = dwfl_report_module (dwfl, "high",
- UINT64_C (0xffffffff00010000),
- UINT64_C (0xffffffff00020000));
- assert (high);
- Dwfl_Module *low = dwfl_report_module (dwfl, "low",
- UINT64_C (0x00010000),
- UINT64_C (0x00020000));
- assert (low);
- Dwfl_Module *middle = dwfl_report_module (dwfl, "middle",
- UINT64_C (0xffff00010000),
- UINT64_C (0xffff00020000));
- assert (middle);
-
- int ret = dwfl_report_end (dwfl, NULL, NULL);
- assert (ret == 0);
-
- Dwfl_Module *mod = dwfl_addrmodule (dwfl, UINT64_C (0xffffffff00010123));
- assert (mod == high);
- mod = dwfl_addrmodule (dwfl, UINT64_C (0x00010123));
- assert (mod == low);
- mod = dwfl_addrmodule (dwfl, UINT64_C (0xffff00010123));
- assert (mod == middle);
-
- dwfl_end (dwfl);
-
- return 0;
-}
diff --git a/src/tests/dwfl-bug-fd-leak.c b/src/tests/dwfl-bug-fd-leak.c
deleted file mode 100644
index 170a61a7..00000000
--- a/src/tests/dwfl-bug-fd-leak.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/* Test program for libdwfl file decriptors leakage.
- Copyright (C) 2007, 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <dirent.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <error.h>
-#include <unistd.h>
-#include <dwarf.h>
-#include <sys/resource.h>
-#include ELFUTILS_HEADER(dwfl)
-
-
-static Dwfl *
-elfutils_open (pid_t pid, Dwarf_Addr address)
-{
- static char *debuginfo_path;
- static const Dwfl_Callbacks proc_callbacks =
- {
- .find_debuginfo = dwfl_standard_find_debuginfo,
- .debuginfo_path = &debuginfo_path,
-
- .find_elf = dwfl_linux_proc_find_elf,
- };
- Dwfl *dwfl = dwfl_begin (&proc_callbacks);
- if (dwfl == NULL)
- error (2, 0, "dwfl_begin: %s", dwfl_errmsg (-1));
-
- int result = dwfl_linux_proc_report (dwfl, pid);
- if (result < 0)
- error (2, 0, "dwfl_linux_proc_report: %s", dwfl_errmsg (-1));
- else if (result > 0)
- error (2, result, "dwfl_linux_proc_report");
-
- if (dwfl_report_end (dwfl, NULL, NULL) != 0)
- error (2, 0, "dwfl_report_end: %s", dwfl_errmsg (-1));
-
- Dwarf_Addr bias;
- Dwarf *dbg = dwfl_addrdwarf (dwfl, address, &bias);
- if (dbg != NULL)
- {
- Elf *elf = dwarf_getelf (dbg);
- if (elf == NULL)
- error (2, 0, "dwarf_getelf: %s", dwarf_errmsg (-1));
- }
- else
- {
- Elf *elf = dwfl_module_getelf (dwfl_addrmodule (dwfl, address), &bias);
- if (elf == NULL)
- error (2, 0, "dwfl_module_getelf: %s", dwfl_errmsg (-1));
- }
-
- return dwfl;
-}
-
-static void
-elfutils_close (Dwfl *dwfl)
-{
- dwfl_end (dwfl);
-}
-
-int
-main (void)
-{
- /* We use no threads here which can interfere with handling a stream. */
- (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER);
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- struct rlimit fd_limit = { .rlim_cur = 32, .rlim_max = 32 };
- if (setrlimit (RLIMIT_NOFILE, &fd_limit) < 0)
- error (2, errno, "setrlimit");
-
- for (int i = 0; i < 5000; ++i)
- {
- Dwfl *dwfl = elfutils_open (getpid (), (Dwarf_Addr) (uintptr_t) &main);
- elfutils_close (dwfl);
- }
-
- return 0;
-}
diff --git a/src/tests/dwfl-bug-getmodules.c b/src/tests/dwfl-bug-getmodules.c
deleted file mode 100644
index 1ee989f8..00000000
--- a/src/tests/dwfl-bug-getmodules.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Test program for dwfl_getmodules bug.
- Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include ELFUTILS_HEADER(dwfl)
-
-#include <error.h>
-
-static const Dwfl_Callbacks callbacks =
- {
- .find_elf = dwfl_linux_proc_find_elf,
- .find_debuginfo = dwfl_standard_find_debuginfo,
- };
-
-static int
-iterate (Dwfl_Module *mod __attribute__ ((unused)),
- void **userdata __attribute__ ((unused)),
- const char *name __attribute__ ((unused)),
- Dwarf_Addr base, void *arg)
-{
- if (base != 0x2000)
- return DWARF_CB_OK;
-
- if (dwfl_addrmodule (arg, 0x2100) == NULL)
- error (1, 0, "dwfl_addrmodule: %s", dwfl_errmsg (-1));
-
- return DWARF_CB_ABORT;
-}
-
-int
-main (void)
-{
- Dwfl *dwfl = dwfl_begin (&callbacks);
-
- dwfl_report_module (dwfl, "m1", 0, 0x1000);
- dwfl_report_module (dwfl, "m2", 0x2000, 0x3000);
- dwfl_report_module (dwfl, "m3", 0x4000, 0x5000);
-
- dwfl_report_end (dwfl, NULL, NULL);
-
- ptrdiff_t offset = dwfl_getmodules (dwfl, &iterate, dwfl, 0);
- if (offset <= 0)
- error (1, 0, "dwfl_getmodules: %s", dwfl_errmsg (-1));
-
- offset = dwfl_getmodules (dwfl, &iterate, NULL, offset);
- if (offset != 0)
- error (1, 0, "dwfl_getmodules (%d): %s", (int) offset, dwfl_errmsg (-1));
-
- dwfl_end (dwfl);
-
- return 0;
-}
diff --git a/src/tests/dwfl-bug-report.c b/src/tests/dwfl-bug-report.c
deleted file mode 100644
index 80ff8066..00000000
--- a/src/tests/dwfl-bug-report.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Test program for dwfl_report_end bug.
- Copyright (C) 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include ELFUTILS_HEADER(dwfl)
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <errno.h>
-
-static const Dwfl_Callbacks callbacks =
- {
- .find_elf = dwfl_linux_proc_find_elf,
- .find_debuginfo = dwfl_standard_find_debuginfo,
- };
-
-int
-main (void)
-{
- Dwfl *dwfl = dwfl_begin (&callbacks);
-
- for (int i = 0; i < 5; ++i)
- {
- dwfl_report_begin (dwfl);
- dwfl_report_module (dwfl, "module1", 0, 10);
- dwfl_report_end (dwfl, NULL, NULL);
- }
-
- dwfl_end (dwfl);
-
- return 0;
-}
diff --git a/src/tests/dwfl-report-elf-align.c b/src/tests/dwfl-report-elf-align.c
deleted file mode 100644
index a4e97d3c..00000000
--- a/src/tests/dwfl-report-elf-align.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* Test program for dwfl_report_elf incorrect BASE alignment.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <error.h>
-#include <locale.h>
-#include <string.h>
-#include <stdlib.h>
-#include ELFUTILS_HEADER(dwfl)
-
-
-static const Dwfl_Callbacks offline_callbacks =
- {
- .find_debuginfo = INTUSE(dwfl_standard_find_debuginfo),
- .section_address = INTUSE(dwfl_offline_section_address),
- };
-
-
-int
-main (int argc, char **argv)
-{
- /* We use no threads here which can interfere with handling a stream. */
- (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER);
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- if (argc != 5)
- error (1, 0, "dwfl-report-elf-align shlib.so base funcaddr funcname");
-
- Dwfl *dwfl = dwfl_begin (&offline_callbacks);
- assert (dwfl != NULL);
-
- char *endptr;
- uintptr_t base = strtoull (argv[2], &endptr, 0);
- assert (endptr && !*endptr);
-
- Dwfl_Module *mod = dwfl_report_elf (dwfl, argv[1], argv[1], -1, base, false);
- assert (mod != NULL);
-
- uintptr_t funcaddr = strtoull (argv[3], &endptr, 0);
- assert (endptr && !*endptr);
-
- Dwfl_Module *mod_found = dwfl_addrmodule (dwfl, funcaddr);
- assert (mod_found == mod);
-
- const char *symname = dwfl_module_addrname (mod, funcaddr);
- assert (symname != NULL);
- assert (strcmp (symname, argv[4]) == 0);
-
- dwfl_end (dwfl);
-
- return 0;
-}
diff --git a/src/tests/dwfllines.c b/src/tests/dwfllines.c
deleted file mode 100644
index 90379dd2..00000000
--- a/src/tests/dwfllines.c
+++ /dev/null
@@ -1,164 +0,0 @@
-/* Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <assert.h>
-#include ELFUTILS_HEADER(dw)
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-#include <argp.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <error.h>
-
-int
-main (int argc, char *argv[])
-{
- int cnt;
-
- Dwfl *dwfl = NULL;
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &cnt, &dwfl);
- assert (dwfl != NULL);
-
- Dwarf_Die *cu = NULL;
- Dwarf_Addr bias;
- do
- {
- cu = dwfl_nextcu (dwfl, cu, &bias);
- if (cu != NULL)
- {
- Dwfl_Module *mod = dwfl_cumodule (cu);
- const char *modname = (dwfl_module_info (mod, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL)
- ?: "<unknown>");
- const char *cuname = (dwarf_diename (cu) ?: "<unknown>");
-
- printf ("mod: %s CU: [%" PRIx64 "] %s\n", modname,
- dwarf_dieoffset (cu), cuname);
-
- size_t lines;
- if (dwfl_getsrclines (cu, &lines) != 0)
- continue; // No lines...
-
- for (size_t i = 0; i < lines; i++)
- {
- Dwfl_Line *line = dwfl_onesrcline (cu, i);
-
- Dwarf_Addr addr;
- int lineno;
- int colno;
- Dwarf_Word mtime;
- Dwarf_Word length;
- const char *src = dwfl_lineinfo (line, &addr, &lineno, &colno,
- &mtime, &length);
-
- Dwarf_Addr dw_bias;
- Dwarf_Line *dw_line = dwfl_dwarf_line (line, &dw_bias);
- assert (bias == dw_bias);
-
- Dwarf_Addr dw_addr;
- if (dwarf_lineaddr (dw_line, &dw_addr) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineaddr: %s",
- dwarf_errmsg (-1));
- assert (addr == dw_addr + dw_bias);
-
- unsigned int dw_op_index;
- if (dwarf_lineop_index (dw_line, &dw_op_index) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineop_index: %s",
- dwarf_errmsg (-1));
-
- int dw_lineno;
- if (dwarf_lineno (dw_line, &dw_lineno) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineno: %s",
- dwarf_errmsg (-1));
- assert (lineno == dw_lineno);
-
- int dw_colno;
- if (dwarf_linecol (dw_line, &dw_colno) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineno: %s",
- dwarf_errmsg (-1));
- assert (colno == dw_colno);
-
- bool begin;
- if (dwarf_linebeginstatement (dw_line, &begin) != 0)
- error (EXIT_FAILURE, 0, "dwarf_linebeginstatement: %s",
- dwarf_errmsg (-1));
-
- bool end;
- if (dwarf_lineendsequence (dw_line, &end) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineendsequence: %s",
- dwarf_errmsg (-1));
-
- bool pend;
- if (dwarf_lineprologueend (dw_line, &pend) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineprologueend: %s",
- dwarf_errmsg (-1));
-
- bool ebegin;
- if (dwarf_lineepiloguebegin (dw_line, &ebegin) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineepiloguebegin: %s",
- dwarf_errmsg (-1));
-
- bool block;
- if (dwarf_lineblock (dw_line, &block) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineblock: %s",
- dwarf_errmsg (-1));
-
- unsigned int isa;
- if (dwarf_lineisa (dw_line, &isa) != 0)
- error (EXIT_FAILURE, 0, "dwarf_lineisa: %s",
- dwarf_errmsg (-1));
-
- unsigned int disc;
- if (dwarf_linediscriminator (dw_line, &disc) != 0)
- error (EXIT_FAILURE, 0, "dwarf_linediscriminator: %s",
- dwarf_errmsg (-1));
-
- const char *dw_src;
- Dwarf_Word dw_mtime;
- Dwarf_Word dw_length;
- dw_src = dwarf_linesrc (dw_line, &dw_mtime, &dw_length);
- assert (strcmp (src, dw_src) == 0);
- assert (mtime == dw_mtime);
- assert (length == dw_length);
-
- printf ("%zd %#" PRIx64 " %s:%d:%d\n"
- " time: %#" PRIX64 ", len: %" PRIu64
- ", idx: %d, b: %d, e: %d"
- ", pe: %d, eb: %d, block: %d"
- ", isa: %d, disc: %d\n",
- i, addr, src, lineno, colno, mtime, length,
- dw_op_index, begin, end, pend, ebegin, block, isa, disc);
-
- Dwarf_Die *linecu = dwfl_linecu (line);
- assert (cu == linecu);
-
- Dwfl_Module *linemod = dwfl_linemodule (line);
- assert (mod == linemod);
- }
- }
- }
- while (cu != NULL);
-
- dwfl_end (dwfl);
-
- return 0;
-}
diff --git a/src/tests/dwflmodtest.c b/src/tests/dwflmodtest.c
deleted file mode 100644
index 0027f96b..00000000
--- a/src/tests/dwflmodtest.c
+++ /dev/null
@@ -1,287 +0,0 @@
-/* Test program for libdwfl basic module tracking, relocation.
- Copyright (C) 2005, 2007 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <stdlib.h>
-#include <string.h>
-#include <error.h>
-#include <locale.h>
-#include <argp.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-
-static bool show_inlines;
-
-struct info
-{
- Dwarf_Die *cudie;
- Dwarf_Addr dwbias;
-};
-
-static int
-print_instance (Dwarf_Die *instance, void *arg)
-{
- const struct info *info = arg;
-
- printf (" inlined");
-
- Dwarf_Files *files;
- if (dwarf_getsrcfiles (info->cudie, &files, NULL) == 0)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Word val;
- if (dwarf_formudata (dwarf_attr (instance, DW_AT_call_file,
- &attr_mem), &val) == 0)
- {
- const char *file = dwarf_filesrc (files, val, NULL, NULL);
- int lineno = 0, colno = 0;
- if (dwarf_formudata (dwarf_attr (instance, DW_AT_call_line,
- &attr_mem), &val) == 0)
- lineno = val;
- if (dwarf_formudata (dwarf_attr (instance, DW_AT_call_column,
- &attr_mem), &val) == 0)
- colno = val;
- if (lineno == 0)
- {
- if (file != NULL)
- printf (" from %s", file);
- }
- else if (colno == 0)
- printf (" at %s:%u", file, lineno);
- else
- printf (" at %s:%u:%u", file, lineno, colno);
- }
- }
-
- Dwarf_Addr lo = -1, hi = -1, entry = -1;
- if (dwarf_lowpc (instance, &lo) == 0)
- lo += info->dwbias;
- else
- printf (" (lowpc => %s)", dwarf_errmsg (-1));
- if (dwarf_highpc (instance, &hi) == 0)
- hi += info->dwbias;
- else
- printf (" (highpc => %s)", dwarf_errmsg (-1));
-
- Dwarf_Attribute attr_mem;
- Dwarf_Attribute *attr = dwarf_attr (instance, DW_AT_entry_pc, &attr_mem);
- if (attr != NULL)
- {
- if (dwarf_formaddr (attr, &entry) == 0)
- entry += info->dwbias;
- else
- printf (" (entrypc => %s)", dwarf_errmsg (-1));
- }
-
- if (lo != (Dwarf_Addr) -1 || hi != (Dwarf_Addr) -1)
- printf (" %#" PRIx64 "..%#" PRIx64, lo, hi);
- if (entry != (Dwarf_Addr) -1)
- printf (" => %#" PRIx64 "\n", entry);
- else
- puts ("");
-
- return DWARF_CB_OK;
-}
-
-static void
-print_inline (Dwarf_Die *func, void *arg)
-{
- if (dwarf_func_inline_instances (func, &print_instance, arg) != 0)
- printf (" error finding instances: %s\n", dwarf_errmsg (-1));
-}
-
-static int
-print_func (Dwarf_Die *func, void *arg)
-{
- const struct info *info = arg;
-
- const char *file = dwarf_decl_file (func);
- int line = -1;
- dwarf_decl_line (func, &line);
- const char *fct = dwarf_diename (func);
-
- printf (" %s:%d: %s:", file, line, fct);
-
- if (dwarf_func_inline (func))
- {
- puts (" inline function");
- if (show_inlines)
- print_inline (func, arg);
- }
- else
- {
- Dwarf_Addr lo = -1, hi = -1, entry = -1;
- if (dwarf_lowpc (func, &lo) == 0)
- lo += info->dwbias;
- else
- printf (" (lowpc => %s)", dwarf_errmsg (-1));
- if (dwarf_highpc (func, &hi) == 0)
- hi += info->dwbias;
- else
- printf (" (highpc => %s)", dwarf_errmsg (-1));
- if (dwarf_entrypc (func, &entry) == 0)
- entry += info->dwbias;
- else
- printf (" (entrypc => %s)", dwarf_errmsg (-1));
-
- if (lo != (Dwarf_Addr) -1 || hi != (Dwarf_Addr) -1
- || entry != (Dwarf_Addr) -1)
- printf (" %#" PRIx64 "..%#" PRIx64 " => %#" PRIx64 "\n",
- lo, hi, entry);
- else
- puts ("");
- }
-
- return DWARF_CB_OK;
-}
-
-static int
-list_module (Dwfl_Module *mod __attribute__ ((unused)),
- void **userdata __attribute__ ((unused)),
- const char *name, Dwarf_Addr base,
- void *arg __attribute__ ((unused)))
-{
- Dwarf_Addr start;
- Dwarf_Addr end;
- const char *file;
- const char *debug;
- if (dwfl_module_info (mod, NULL, &start, &end,
- NULL, NULL, &file, &debug) != name
- || start != base)
- abort ();
- printf ("module: %30s %08" PRIx64 "..%08" PRIx64 " %s %s\n",
- name, start, end, file, debug);
- return DWARF_CB_OK;
-}
-
-static int
-print_module (Dwfl_Module *mod __attribute__ ((unused)),
- void **userdata __attribute__ ((unused)),
- const char *name, Dwarf_Addr base,
- Dwarf *dw, Dwarf_Addr bias,
- void *arg)
-{
- printf ("module: %30s %08" PRIx64 " %s %" PRIx64 " (%s)\n",
- name, base, dw == NULL ? "no" : "DWARF", bias, dwfl_errmsg (-1));
-
- if (dw != NULL && *(const bool *) arg)
- {
- Dwarf_Off off = 0;
- size_t cuhl;
- Dwarf_Off noff;
-
- while (dwarf_nextcu (dw, off, &noff, &cuhl, NULL, NULL, NULL) == 0)
- {
- Dwarf_Die die_mem;
- struct info info = { dwarf_offdie (dw, off + cuhl, &die_mem), bias };
- (void) dwarf_getfuncs (info.cudie, print_func, &info, 0);
-
- off = noff;
- }
- }
-
- return DWARF_CB_OK;
-}
-
-static bool show_functions;
-
-/* gettext helper macro. */
-#undef N_
-#define N_(Str) Str
-
-static const struct argp_option options[] =
- {
- { "functions", 'f', NULL, 0, N_("Additionally show function names"), 0 },
- { "inlines", 'i', NULL, 0, N_("Show instances of inlined functions"), 0 },
- { NULL, 0, NULL, 0, NULL, 0 }
- };
-
-static error_t
-parse_opt (int key, char *arg __attribute__ ((unused)),
- struct argp_state *state __attribute__ ((unused)))
-{
- switch (key)
- {
- case ARGP_KEY_INIT:
- state->child_inputs[0] = state->input;
- break;
-
- case 'f':
- show_functions = true;
- break;
-
- case 'i':
- show_inlines = show_functions = true;
- break;
-
- default:
- return ARGP_ERR_UNKNOWN;
- }
- return 0;
-}
-
-int
-main (int argc, char **argv)
-{
- /* We use no threads here which can interfere with handling a stream. */
- (void) __fsetlocking (stdout, FSETLOCKING_BYCALLER);
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- Dwfl *dwfl = NULL;
- const struct argp_child argp_children[] =
- {
- { .argp = dwfl_standard_argp () },
- { .argp = NULL }
- };
- const struct argp argp =
- {
- options, parse_opt, NULL, NULL, argp_children, NULL, NULL
- };
- (void) argp_parse (&argp, argc, argv, 0, NULL, &dwfl);
- assert (dwfl != NULL);
-
- ptrdiff_t p = 0;
- do
- p = dwfl_getmodules (dwfl, &list_module, NULL, p);
- while (p > 0);
- if (p < 0)
- error (2, 0, "dwfl_getmodules: %s", dwfl_errmsg (-1));
-
- do
- p = dwfl_getdwarf (dwfl, &print_module, &show_functions, p);
- while (p > 0);
- if (p < 0)
- error (2, 0, "dwfl_getdwarf: %s", dwfl_errmsg (-1));
-
- p = 0;
- do
- p = dwfl_getmodules (dwfl, &list_module, NULL, p);
- while (p > 0);
- if (p < 0)
- error (2, 0, "dwfl_getmodules: %s", dwfl_errmsg (-1));
-
- dwfl_end (dwfl);
-
- return 0;
-}
diff --git a/src/tests/dwflsyms.c b/src/tests/dwflsyms.c
deleted file mode 100644
index 49ac3346..00000000
--- a/src/tests/dwflsyms.c
+++ /dev/null
@@ -1,226 +0,0 @@
-/* Test program for libdwfl symbol resolving
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <elf.h>
-#include <dwarf.h>
-#include <argp.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <stdlib.h>
-#include <error.h>
-#include <string.h>
-
-static const char *
-gelf_type (GElf_Sym *sym)
-{
- switch (GELF_ST_TYPE (sym->st_info))
- {
- case STT_NOTYPE:
- return "NOTYPE";
- case STT_OBJECT:
- return "OBJECT";
- case STT_FUNC:
- return "FUNC";
- case STT_SECTION:
- return "SECTION";
- case STT_FILE:
- return "FILE";
- case STT_COMMON:
- return "COMMON";
- case STT_TLS:
- return "TLS";
- default:
- return "UNKNOWN";
- }
-}
-
-static const char *
-gelf_bind (GElf_Sym *sym)
-{
- switch (GELF_ST_BIND (sym->st_info))
- {
- case STB_LOCAL:
- return "LOCAL";
- case STB_GLOBAL:
- return "GLOBAL";
- case STB_WEAK:
- return "WEAK";
- default:
- return "UNKNOWN";
- }
-}
-
-static int
-gelf_bind_order (GElf_Sym *sym)
-{
- switch (GELF_ST_BIND (sym->st_info))
- {
- case STB_LOCAL:
- return 1;
- case STB_WEAK:
- return 2;
- case STB_GLOBAL:
- return 3;
- default:
- return 0;
- }
-}
-
-static const char *
-elf_section_name (Elf *elf, GElf_Word shndx)
-{
- GElf_Ehdr ehdr;
- GElf_Shdr shdr;
- Elf_Scn *scn = elf_getscn (elf, shndx);
- gelf_getshdr (scn, &shdr);
- gelf_getehdr (elf, &ehdr);
- return elf_strptr (elf, ehdr.e_shstrndx, shdr.sh_name);
-}
-
-bool
-addr_in_section (Elf *elf, GElf_Word shndx, GElf_Addr addr)
-{
- GElf_Shdr shdr;
- Elf_Scn *scn = elf_getscn (elf, shndx);
- gelf_getshdr (scn, &shdr);
- return addr >= shdr.sh_addr && addr < shdr.sh_addr + shdr.sh_size;
-}
-
-static int
-list_syms (struct Dwfl_Module *mod,
- void **user __attribute__ ((unused)), const char *mod_name,
- Dwarf_Addr low_addr __attribute__ ((unused)),
- void *arg __attribute__ ((unused)))
-{
- int syms = dwfl_module_getsymtab (mod);
- if (syms < 0)
- {
- printf ("%s: %s\n", mod_name, dwfl_errmsg (-1));
- return DWARF_CB_OK;
- }
-
- for (int ndx = 0; ndx < syms; ndx++)
- {
- GElf_Sym sym;
- GElf_Word shndxp;
- Elf *elf;
- Dwarf_Addr bias;
- const char *name = dwfl_module_getsym (mod, ndx, &sym, &shndxp);
-
- printf("%4d: %s\t%s\t%s (%" PRIu64 ") %#" PRIx64,
- ndx, gelf_type (&sym), gelf_bind (&sym), name,
- sym.st_size, sym.st_value);
-
- /* The info variant doesn't adjust st_value but returns the (possible)
- adjusted value separately. */
- GElf_Addr value;
- GElf_Sym isym;
- name = dwfl_module_getsym_info (mod, ndx, &isym, &value, &shndxp,
- &elf, &bias);
-
- GElf_Ehdr ehdr;
- gelf_getehdr (elf, &ehdr);
-
- // getsym st_values might or might not be adjusted depending on section.
- // For ET_REL the adjustment is section relative.
- assert (sym.st_value == isym.st_value
- || sym.st_value == isym.st_value + bias
- || ehdr.e_type == ET_REL);
-
- /* And the reverse, which works for function symbols at least.
- Note this only works because the st.value is adjusted by
- dwfl_module_getsym (). */
- if (GELF_ST_TYPE (sym.st_info) == STT_FUNC && shndxp != SHN_UNDEF)
- {
- /* Make sure the adjusted value really falls in the elf section. */
- assert (addr_in_section (elf, shndxp, sym.st_value - bias));
-
- GElf_Addr addr = value;
- GElf_Sym asym;
- GElf_Word ashndxp;
- Elf *aelf;
- Dwarf_Addr abias;
- GElf_Off off;
- const char *aname = dwfl_module_addrinfo (mod, addr, &off, &asym,
- &ashndxp, &aelf, &abias);
-
- /* Make sure the adjusted value really falls in the elf section. */
- assert (addr_in_section (aelf, ashndxp, asym.st_value)
- || ehdr.e_type == ET_REL);
-
- /* Either they are the same symbol (name), the binding of
- asym is "stronger" (or equal) to sym or asym is more specific
- (has a lower address) than sym. */
- assert ((strcmp (name, aname) == 0
- || gelf_bind_order (&asym) >= gelf_bind_order (&sym))
- && value <= sym.st_value);
-
- addr = sym.st_value;
- int res = dwfl_module_relocate_address (mod, &addr);
- assert (res != -1);
- if (shndxp < SHN_LORESERVE)
- printf(", rel: %#" PRIx64 " (%s)", addr,
- elf_section_name (elf, shndxp));
- else
- printf(", rel: %#" PRIx64 "", addr);
-
- /* Print the section of the actual value if different from sym. */
- if (value != isym.st_value + bias && ehdr.e_type != ET_REL)
- {
- GElf_Addr ebias;
- addr = value;
- Elf_Scn *scn = dwfl_module_address_section (mod, &addr, &ebias);
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- Elf *melf = dwfl_module_getelf (mod, &ebias);
- gelf_getehdr (melf, &ehdr);
- const char *sname = elf_strptr (melf, ehdr.e_shstrndx,
- shdr->sh_name);
- printf (" [%#" PRIx64 ", rel: %#" PRIx64 " (%s)]",
- value, addr, sname);
- }
-
- }
- printf ("\n");
- }
-
- return DWARF_CB_OK;
-}
-
-int
-main (int argc, char *argv[])
-{
- int remaining;
- Dwfl *dwfl;
- error_t res;
-
- res = argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining, &dwfl);
- assert (res == 0 && dwfl != NULL);
-
- ptrdiff_t off = 0;
- do
- off = dwfl_getmodules (dwfl, list_syms, NULL, off);
- while (off > 0);
-
- dwfl_end (dwfl);
-
- return off;
-}
diff --git a/src/tests/early-offscn.c b/src/tests/early-offscn.c
deleted file mode 100644
index 924cb9ef..00000000
--- a/src/tests/early-offscn.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Copyright (C) 2008 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <error.h>
-#include <fcntl.h>
-#include <gelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main (int argc, char *argv[])
-{
- if (argc < 2)
- error (1, 0, "Usage: %s FILE OFFSET", argv[0]);
-
- /* Set the ELF version. */
- elf_version (EV_CURRENT);
-
- /* Open the archive. */
- int fd = open (argv[1], O_RDONLY);
- if (fd < 0)
- error (1, errno, "cannot open '%s'", argv[1]);
-
- Elf *elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- error (2, 0, "elf_begin: %s", elf_errmsg (-1));
-
- Elf_Scn *scn = gelf_offscn (elf, strtoull (argv[2], NULL, 0));
- if (scn == NULL)
- error (3, 0, "gelf_offscn: %s", elf_errmsg (-1));
-
- elf_end (elf);
- return 0;
-}
diff --git a/src/tests/ecp.c b/src/tests/ecp.c
deleted file mode 100644
index 39a48510..00000000
--- a/src/tests/ecp.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <errno.h>
-#include <error.h>
-#include <fcntl.h>
-#include <gelf.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-int
-main (int argc, char *argv[])
-{
- if (argc < 3)
- error (EXIT_FAILURE, 0, "usage: %s FROMNAME TONAME", argv[0]);
-
- elf_version (EV_CURRENT);
-
- int infd = open (argv[1], O_RDONLY);
- if (infd == -1)
- error (EXIT_FAILURE, errno, "cannot open input file '%s'", argv[1]);
-
- Elf *inelf = elf_begin (infd, ELF_C_READ, NULL);
- if (inelf == NULL)
- error (EXIT_FAILURE, 0, "problems opening '%s' as ELF file: %s",
- argv[1], elf_errmsg (-1));
-
- int outfd = creat (argv[2], 0666);
- if (outfd == -1)
- error (EXIT_FAILURE, errno, "cannot open output file '%s'", argv[2]);
-
- Elf *outelf = elf_begin (outfd, ELF_C_WRITE, NULL);
- if (outelf == NULL)
- error (EXIT_FAILURE, 0, "problems opening '%s' as ELF file: %s",
- argv[2], elf_errmsg (-1));
-
- gelf_newehdr (outelf, gelf_getclass (inelf));
-
- GElf_Ehdr ehdr_mem;
- GElf_Ehdr *ehdr;
- gelf_update_ehdr (outelf, (ehdr = gelf_getehdr (inelf, &ehdr_mem)));
-
- if (ehdr->e_phnum > 0)
- {
- int cnt;
-
- if (gelf_newphdr (outelf, ehdr->e_phnum) == 0)
- error (EXIT_FAILURE, 0, "cannot create program header: %s",
- elf_errmsg (-1));
-
- for (cnt = 0; cnt < ehdr->e_phnum; ++cnt)
- {
- GElf_Phdr phdr_mem;
-
- gelf_update_phdr (outelf, cnt, gelf_getphdr (inelf, cnt, &phdr_mem));
- }
- }
-
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (inelf, scn)) != NULL)
- {
- Elf_Scn *newscn = elf_newscn (outelf);
-
- GElf_Shdr shdr_mem;
- gelf_update_shdr (newscn, gelf_getshdr (scn, &shdr_mem));
-
- *elf_newdata (newscn) = *elf_getdata (scn, NULL);
- }
-
- elf_flagelf (outelf, ELF_C_SET, ELF_F_LAYOUT);
-
- if (elf_update (outelf, ELF_C_WRITE) == -1)
- error (EXIT_FAILURE, 0, "elf_update failed: %s", elf_errmsg (-1));
-
- elf_end (outelf);
- close (outfd);
-
- elf_end (inelf);
-
- return 0;
-}
diff --git a/src/tests/find-prologues.c b/src/tests/find-prologues.c
deleted file mode 100644
index ba8ae371..00000000
--- a/src/tests/find-prologues.c
+++ /dev/null
@@ -1,108 +0,0 @@
-/* Test program for dwarf_entry_breakpoints.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-#include <argp.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <stdlib.h>
-#include <error.h>
-#include <string.h>
-#include <fnmatch.h>
-
-
-struct args
-{
- Dwfl *dwfl;
- Dwarf_Die *cu;
- Dwarf_Addr dwbias;
- char **argv;
-};
-
-static int
-handle_function (Dwarf_Die *func, void *arg)
-{
- struct args *a = arg;
-
- const char *name = dwarf_diename (func);
- char **argv = a->argv;
- if (argv[0] != NULL)
- {
- bool match;
- do
- match = fnmatch (*argv, name, 0) == 0;
- while (!match && *++argv);
- if (!match)
- return 0;
- }
-
- if (dwarf_func_inline (func))
- return 0;
-
- Dwarf_Addr entrypc;
- if (dwarf_entrypc (func, &entrypc) != 0)
- error (EXIT_FAILURE, 0, "dwarf_entrypc: %s: %s",
- dwarf_diename (func), dwarf_errmsg (-1));
- entrypc += a->dwbias;
-
- printf ("%-16s %#.16" PRIx64, dwarf_diename (func), entrypc);
-
- Dwarf_Addr *bkpts = NULL;
- int result = dwarf_entry_breakpoints (func, &bkpts);
- if (result <= 0)
- printf ("\t%s\n", dwarf_errmsg (-1));
- else
- {
- for (int i = 0; i < result; ++i)
- printf (" %#.16" PRIx64 "%s", bkpts[i] + a->dwbias,
- i == result - 1 ? "\n" : "");
- free (bkpts);
- }
-
- return 0;
-}
-
-
-int
-main (int argc, char *argv[])
-{
- int remaining;
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- struct args a = { .dwfl = NULL, .cu = NULL };
-
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining,
- &a.dwfl);
- assert (a.dwfl != NULL);
- a.argv = &argv[remaining];
-
- int result = 0;
-
- while ((a.cu = dwfl_nextcu (a.dwfl, a.cu, &a.dwbias)) != NULL)
- dwarf_getfuncs (a.cu, &handle_function, &a, 0);
-
- dwfl_end (a.dwfl);
-
- return result;
-}
diff --git a/src/tests/funcretval.c b/src/tests/funcretval.c
deleted file mode 100644
index 8d19d117..00000000
--- a/src/tests/funcretval.c
+++ /dev/null
@@ -1,106 +0,0 @@
-/* Test program for dwfl_module_return_value_location.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-#include <argp.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <stdlib.h>
-#include <error.h>
-#include <string.h>
-#include <fnmatch.h>
-
-
-struct args
-{
- Dwfl *dwfl;
- Dwarf_Die *cu;
- Dwarf_Addr dwbias;
- char **argv;
-};
-
-static int
-handle_function (Dwarf_Die *funcdie, void *arg)
-{
- struct args *a = arg;
-
- const char *name = dwarf_diename (funcdie);
- char **argv = a->argv;
- if (argv[0] != NULL)
- {
- bool match;
- do
- match = fnmatch (*argv, name, 0) == 0;
- while (!match && *++argv);
- if (!match)
- return 0;
- }
-
- printf ("(%s) %s: ", dwfl_module_info (dwfl_cumodule (a->cu), NULL,
- NULL, NULL,
- NULL, NULL,
- NULL, NULL), name);
-
- const Dwarf_Op *locops;
- int nlocops = dwfl_module_return_value_location (dwfl_cumodule (a->cu),
- funcdie, &locops);
- if (nlocops < 0)
- error (EXIT_FAILURE, 0, "dwfl_module_return_value_location: %s",
- dwfl_errmsg (-1));
- else if (nlocops == 0)
- puts ("returns no value");
- else
- {
- printf ("return value location:");
- for (int i = 0; i < nlocops; ++i)
- printf (" {%#x, %#" PRIx64 "}", locops[i].atom, locops[i].number);
- puts ("");
- }
-
- return 0;
-}
-
-
-int
-main (int argc, char *argv[])
-{
- int remaining;
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- struct args a = { .dwfl = NULL, .cu = NULL };
-
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining,
- &a.dwfl);
- assert (a.dwfl != NULL);
- a.argv = &argv[remaining];
-
- int result = 0;
-
- while ((a.cu = dwfl_nextcu (a.dwfl, a.cu, &a.dwbias)) != NULL)
- dwarf_getfuncs (a.cu, &handle_function, &a, 0);
-
- dwfl_end (a.dwfl);
-
- return result;
-}
diff --git a/src/tests/funcretval_test.c b/src/tests/funcretval_test.c
deleted file mode 100644
index 7e20f526..00000000
--- a/src/tests/funcretval_test.c
+++ /dev/null
@@ -1,828 +0,0 @@
-signed char fun_char (void) { return 5; }
-short fun_short (void) { return 6; }
-int fun_int (void) { return 7; }
-void *fun_ptr (void) { return &fun_ptr; }
-int fun_iptr (void) { return 8; }
-long fun_long (void) { return 9; }
-__int128 fun_int128 (void) { return 10; }
-
-typedef struct { int i[10]; } large_struct1_t;
-large_struct1_t fun_large_struct1 (void) {
- large_struct1_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } };
- return ret;
-}
-
-typedef struct { int i1; int i2; int i3; int i4; int i5;
- int i6; int i7; int i8; int i9; int i10; } large_struct2_t;
-large_struct2_t fun_large_struct2 (void) {
- large_struct2_t ret = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
- return ret;
-}
-
-float fun_float (void) { return 1.5; }
-float _Complex fun_float_complex (void) { return 1.5 + 2.5i; }
-
-double fun_double (void) { return 2.5; }
-double _Complex fun_double_complex (void) { return 2.5 + 3.5i; }
-
-long double fun_long_double (void) { return 3.5; }
-long double _Complex fun_long_double_complex (void) { return 4.5 + 5.5i; }
-
-#ifdef FLOAT128
-__float128 fun_float128 (void) { return 3.5; }
-#endif
-
-// 8 byte vectors.
-
-typedef signed char __attribute__ ((vector_size (8))) vec_char_8_t;
-vec_char_8_t fun_vec_char_8 (void) {
- vec_char_8_t ret = { 1, 2, 3, 4, 5, 6, 7, 8 };
- return ret;
-}
-
-typedef short __attribute__ ((vector_size (8))) vec_short_8_t;
-vec_short_8_t fun_vec_short_8 (void) {
- vec_short_8_t ret = { 2, 3, 4, 5 };
- return ret;
-}
-
-typedef int __attribute__ ((vector_size (8))) vec_int_8_t;
-vec_int_8_t fun_vec_int_8 (void) {
- vec_int_8_t ret = { 3, 4 };
- return ret;
-}
-
-typedef long __attribute__ ((vector_size (8))) vec_long_8_t;
-vec_long_8_t fun_vec_long_8 (void) {
- vec_long_8_t ret = { 5 };
- return ret;
-}
-
-typedef float __attribute__ ((vector_size (8))) vec_float_8_t;
-vec_float_8_t fun_vec_float_8 (void) {
- vec_float_8_t ret = { 1.5, 2.5 };
- return ret;
-}
-
-typedef double __attribute__ ((vector_size (8))) vec_double_8_t;
-#ifndef AARCH64_BUG_1032854
-// https://bugzilla.redhat.com/show_bug.cgi?id=1032854
-vec_double_8_t fun_vec_double_8 (void) {
- vec_double_8_t ret = { 3.5 };
- return ret;
-}
-#endif
-
-// 16 byte vectors.
-
-typedef signed char __attribute__ ((vector_size (16))) vec_char_16_t;
-vec_char_16_t fun_vec_char_16 (void) {
- vec_char_16_t ret = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
- return ret;
-}
-
-typedef short __attribute__ ((vector_size (16))) vec_short_16_t;
-vec_short_16_t fun_vec_short_16 (void) {
- vec_short_16_t ret = { 2, 3, 4, 5, 6, 7, 8 };
- return ret;
-}
-
-typedef int __attribute__ ((vector_size (16))) vec_int_16_t;
-vec_int_16_t fun_vec_int_16 (void) {
- vec_int_16_t ret = { 2, 3, 4 };
- return ret;
-}
-
-typedef long __attribute__ ((vector_size (16))) vec_long_16_t;
-vec_long_16_t fun_vec_long_16 (void) {
- vec_long_16_t ret = { 3, 4 };
- return ret;
-}
-
-typedef __int128 __attribute__ ((vector_size (16))) vec_int128_16_t;
-vec_int128_16_t fun_vec_int128_16 (void) {
- vec_int128_16_t ret = { 999 };
- return ret;
-}
-
-typedef float __attribute__ ((vector_size (16))) vec_float_16_t;
-vec_float_16_t fun_vec_float_16 (void) {
- vec_float_16_t ret = { 1.5, 2.5, 3.5, 4.5 };
- return ret;
-}
-
-typedef double __attribute__ ((vector_size (16))) vec_double_16_t;
-vec_double_16_t fun_vec_double_16 (void) {
- vec_double_16_t ret = { 2.5, 5 };
- return ret;
-}
-
-#ifdef FLOAT128
-typedef __float128 __attribute__ ((vector_size (16))) vec_float128_16_t;
-vec_float128_16_t fun_vec_float128_16 (void) {
- vec_float128_16_t ret = { 7.5 };
- return ret;
-}
-#endif
-
-// Homogeneous floating-point aggregates.
-
-typedef struct { float f; } hfa1_float_t;
-hfa1_float_t fun_hfa1_float (void) {
- hfa1_float_t ret = { 1.5 };
- return ret;
-}
-
-typedef struct { double f; } hfa1_double_t;
-hfa1_double_t fun_hfa1_double (void) {
- hfa1_double_t ret = { 3.0 };
- return ret;
-}
-
-typedef struct { long double f; } hfa1_long_double_t;
-hfa1_long_double_t fun_hfa1_long_double (void) {
- hfa1_long_double_t ret = { 3.0 };
- return ret;
-}
-
-typedef struct { float f[1]; } hfa1_float_a_t;
-hfa1_float_a_t fun_hfa1_float_a (void) {
- hfa1_float_a_t ret = { { 1.5 } };
- return ret;
-}
-
-typedef struct { double f[1]; } hfa1_double_a_t;
-hfa1_double_a_t fun_hfa1_double_a (void) {
- hfa1_double_a_t ret = { { 3.0 } };
- return ret;
-}
-
-typedef struct { long double f[1]; } hfa1_long_double_a_t;
-hfa1_long_double_a_t fun_hfa1_long_double_a (void) {
- hfa1_long_double_a_t ret = { { 3.0 } };
- return ret;
-}
-
-typedef struct { float f; float g; } hfa2_float_t;
-hfa2_float_t fun_hfa2_float (void) {
- hfa2_float_t ret = { 1.5, 3.0 };
- return ret;
-}
-
-typedef struct { double f; double g; } hfa2_double_t;
-hfa2_double_t fun_hfa2_double (void) {
- hfa2_double_t ret = { 3.0, 4.5 };
- return ret;
-}
-
-typedef struct { long double f; long double g; } hfa2_long_double_t;
-hfa2_long_double_t fun_hfa2_long_double (void) {
- hfa2_long_double_t ret = { 3.0, 4.5 };
- return ret;
-}
-
-typedef struct { float f[2]; } hfa2_float_a_t;
-hfa2_float_a_t fun_hfa2_float_a (void) {
- hfa2_float_a_t ret = { { 2.5, 3.5 } };
- return ret;
-}
-
-typedef struct { double f[2]; } hfa2_double_a_t;
-hfa2_double_a_t fun_hfa2_double_a (void) {
- hfa2_double_a_t ret = { { 3.0, 3.5 } };
- return ret;
-}
-
-typedef struct { long double f[2]; } hfa2_long_double_a_t;
-hfa2_long_double_a_t fun_hfa2_long_double_a (void) {
- hfa2_long_double_a_t ret = { { 3.0, 4.0 } };
- return ret;
-}
-
-typedef struct { float f; float g; float h; } hfa3_float_t;
-hfa3_float_t fun_hfa3_float (void) {
- hfa3_float_t ret = { 1.5, 3.0, 4.5 };
- return ret;
-}
-
-typedef struct { double f; double g; double h; } hfa3_double_t;
-hfa3_double_t fun_hfa3_double (void) {
- hfa3_double_t ret = { 3.0, 4.5, 9.5 };
- return ret;
-}
-
-typedef struct { long double f; long double g; long double h; } hfa3_long_double_t;
-hfa3_long_double_t fun_hfa3_long_double (void) {
- hfa3_long_double_t ret = { 3.0, 4.5, 9.5 };
- return ret;
-}
-
-typedef struct { float f[3]; } hfa3_float_a_t;
-hfa3_float_a_t fun_hfa3_float_a (void) {
- hfa3_float_a_t ret = { { 3.5, 4.5, 5.5 } };
- return ret;
-}
-
-typedef struct { double f[3]; } hfa3_double_a_t;
-hfa3_double_a_t fun_hfa3_double_a (void) {
- hfa3_double_a_t ret = { { 3.0, 3.5, 4.0 } };
- return ret;
-}
-
-typedef struct { long double f[3]; } hfa3_long_double_a_t;
-hfa3_long_double_a_t fun_hfa3_long_double_a (void) {
- hfa3_long_double_a_t ret = { { 3.0, 4.0, 5.0 } };
- return ret;
-}
-
-typedef struct { float f; float g; float h; float i; } hfa4_float_t;
-hfa4_float_t fun_hfa4_float (void) {
- hfa4_float_t ret = { 1.5, 3.5, 4.5, 9.5 };
- return ret;
-}
-
-typedef struct { double f; double g; double h; double i; } hfa4_double_t;
-hfa4_double_t fun_hfa4_double (void) {
- hfa4_double_t ret = { 3.5, 4.5, 9.5, 1.5 };
- return ret;
-}
-
-typedef struct { long double f; long double g; long double h; long double i; } hfa4_long_double_t;
-hfa4_long_double_t fun_hfa4_long_double (void) {
- hfa4_long_double_t ret = { 3.5, 4.5, 9.5, 1.5 };
- return ret;
-}
-
-typedef struct { float f[4]; } hfa4_float_a_t;
-hfa4_float_a_t fun_hfa4_float_a (void) {
- hfa4_float_a_t ret = { { 4.5, 5.5, 6.5, 7.5 } };
- return ret;
-}
-
-typedef struct { double f[4]; } hfa4_double_a_t;
-hfa4_double_a_t fun_hfa4_double_a (void) {
- hfa4_double_a_t ret = { { 3.0, 4.5, 5.0, 5.5 } };
- return ret;
-}
-
-typedef struct { long double f[4]; } hfa4_long_double_a_t;
-hfa4_long_double_a_t fun_hfa4_long_double_a (void) {
- hfa4_long_double_a_t ret = { { 3.0, 4.0, 5.0, 6.0 } };
- return ret;
-}
-
-typedef struct { float f; float g; float h; float i; float j; } nfa5_float_t;
-nfa5_float_t fun_nfa5_float (void) {
- nfa5_float_t ret = { 1.5, 3.5, 4.5, 9.5, 10.5 };
- return ret;
-}
-
-typedef struct { double f; double g; double h; double i; double j; } nfa5_double_t;
-nfa5_double_t fun_nfa5_double (void) {
- nfa5_double_t ret = { 3.5, 4.5, 9.5, 1.5, 2.5 };
- return ret;
-}
-
-typedef struct { long double f; long double g; long double h; long double i; long double j; } nfa5_long_double_t;
-nfa5_long_double_t fun_nfa5_long_double (void) {
- nfa5_long_double_t ret = { 3.5, 4.5, 9.5, 1.5, 2.5 };
- return ret;
-}
-
-typedef struct { float f[5]; } nfa5_float_a_t;
-nfa5_float_a_t fun_nfa5_float_a (void) {
- nfa5_float_a_t ret = { { 4.5, 5.5, 6.5, 7.5, 9.5 } };
- return ret;
-}
-
-typedef struct { double f[5]; } nfa5_double_a_t;
-nfa5_double_a_t fun_nfa5_double_a (void) {
- nfa5_double_a_t ret = { { 3.0, 4.5, 5.0, 5.5, 6.5 } };
- return ret;
-}
-
-typedef struct { long double f[5]; } nfa5_long_double_a_t;
-nfa5_long_double_a_t fun_nfa5_long_double_a (void) {
- nfa5_long_double_a_t ret = { { 3.0, 4.0, 5.0, 6.0, 7.0 } };
- return ret;
-}
-
-#ifdef FLOAT128
-typedef struct { __float128 f; } hfa1_float128_t;
-hfa1_float128_t fun_hfa1_float128 (void) {
- hfa1_float128_t ret = { 4.5 };
- return ret;
-}
-
-typedef struct { __float128 f; __float128 g; } hfa2_float128_t;
-hfa2_float128_t fun_hfa2_float128 (void) {
- hfa2_float128_t ret = { 4.5, 9.5 };
- return ret;
-}
-
-typedef struct { __float128 f; __float128 g; __float128 h; } hfa3_float128_t;
-hfa3_float128_t fun_hfa3_float128 (void) {
- hfa3_float128_t ret = { 4.5, 9.5, 12.5 };
- return ret;
-}
-
-typedef struct { __float128 f; __float128 g; __float128 h; __float128 i; } hfa4_float128_t;
-hfa4_float128_t fun_hfa4_float128 (void) {
- hfa4_float128_t ret = { 4.5, 9.5, 3.5, 1.5 };
- return ret;
-}
-#endif
-
-// Homogeneous vector aggregates of 1 element.
-
-typedef struct { vec_char_8_t a; } hva1_vec_char_8_t;
-hva1_vec_char_8_t fun_hva1_vec_char_8 (void) {
- hva1_vec_char_8_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8 } };
- return ret;
-}
-
-typedef struct { vec_short_8_t a; } hva1_vec_short_8_t;
-hva1_vec_short_8_t fun_hva1_vec_short_8 (void) {
- hva1_vec_short_8_t ret = { { 2, 3, 4, 5 } };
- return ret;
-}
-
-typedef struct { vec_int_8_t a; } hva1_vec_int_8_t;
-hva1_vec_int_8_t fun_hva1_vec_int_8 (void) {
- hva1_vec_int_8_t ret = { { 3, 4 } };
- return ret;
-}
-
-typedef struct { vec_long_8_t a; } hva1_vec_long_8_t;
-hva1_vec_long_8_t fun_hva1_vec_long_8 (void) {
- hva1_vec_long_8_t ret = { { 5 } };
- return ret;
-}
-
-typedef struct { vec_float_8_t a; } hva1_vec_float_8_t;
-hva1_vec_float_8_t fun_hva1_vec_float_8 (void) {
- hva1_vec_float_8_t ret = { { 1.5, 2.5 } };
- return ret;
-}
-
-typedef struct { vec_double_8_t a; } hva1_vec_double_8_t;
-hva1_vec_double_8_t fun_hva1_vec_double_8 (void) {
- hva1_vec_double_8_t ret = { { 3.5 } };
- return ret;
-}
-
-typedef struct { vec_char_16_t a; } hva1_vec_char_16_t;
-hva1_vec_char_16_t fun_hva1_vec_char_16_t (void) {
- hva1_vec_char_16_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8,
- 9, 10, 11, 12, 13, 14, 15, 16 } };
- return ret;
-}
-
-typedef struct { vec_short_16_t a; } hva1_vec_short_16_t;
-hva1_vec_short_16_t fun_hva1_vec_short_16_t (void) {
- hva1_vec_short_16_t ret = { { 2, 3, 4, 5, 6, 7, 8, 9 } };
- return ret;
-}
-
-typedef struct { vec_int_16_t a; } hva1_vec_int_16_t;
-hva1_vec_int_16_t fun_hva1_vec_int_16_t (void) {
- hva1_vec_int_16_t ret = { { 3, 4, 5, 6 } };
- return ret;
-}
-
-typedef struct { vec_long_16_t a; } hva1_vec_long_16_t;
-hva1_vec_long_16_t fun_hva1_vec_long_16_t (void) {
- hva1_vec_long_16_t ret = { { 4, 5 } };
- return ret;
-}
-
-typedef struct { vec_int128_16_t a; } hva1_vec_int128_16_t;
-hva1_vec_int128_16_t fun_hva1_vec_int128_16_t (void) {
- hva1_vec_int128_16_t ret = { { 6 } };
- return ret;
-}
-
-typedef struct { vec_float_16_t a; } hva1_vec_float_16_t;
-hva1_vec_float_16_t fun_hva1_vec_float_16_t (void) {
- hva1_vec_float_16_t ret = { { 1.5, 2.5, 3.5, 4.5 } };
- return ret;
-}
-
-typedef struct { vec_double_16_t a; } hva1_vec_double_16_t;
-hva1_vec_double_16_t fun_hva1_vec_double_16_t (void) {
- hva1_vec_double_16_t ret = { { 2.5, 3.5 } };
- return ret;
-}
-
-#ifdef FLOAT128
-typedef struct { vec_float128_16_t a; } hva1_vec_float128_16_t;
-hva1_vec_float128_16_t fun_hva1_vec_float128_16_t (void) {
- hva1_vec_float128_16_t ret = { { 4.5 } };
- return ret;
-}
-#endif
-
-// Homogeneous vector aggregates of 2 elements.
-
-typedef struct { vec_char_8_t a; vec_char_8_t b; } hva2_vec_char_8_t;
-hva2_vec_char_8_t fun_hva2_vec_char_8 (void) {
- hva2_vec_char_8_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8 },
- { 2, 3, 4, 5, 6, 7, 8, 9 } };
- return ret;
-}
-
-typedef struct { vec_short_8_t a; vec_short_8_t b; } hva2_vec_short_8_t;
-hva2_vec_short_8_t fun_hva2_vec_short_8 (void) {
- hva2_vec_short_8_t ret = { { 2, 3, 4, 5 },
- { 3, 4, 5, 6 } };
- return ret;
-}
-
-typedef struct { vec_int_8_t a; vec_int_8_t b; } hva2_vec_int_8_t;
-hva2_vec_int_8_t fun_hva2_vec_int_8 (void) {
- hva2_vec_int_8_t ret = { { 3, 4 },
- { 4, 5 } };
- return ret;
-}
-
-typedef struct { vec_long_8_t a; vec_long_8_t b; } hva2_vec_long_8_t;
-hva2_vec_long_8_t fun_hva2_vec_long_8 (void) {
- hva2_vec_long_8_t ret = { { 5 },
- { 6 } };
- return ret;
-}
-
-typedef struct { vec_float_8_t a; vec_float_8_t b; } hva2_vec_float_8_t;
-hva2_vec_float_8_t fun_hva2_vec_float_8 (void) {
- hva2_vec_float_8_t ret = { { 1.5, 2.5 },
- { 2.5, 3.5 } };
- return ret;
-}
-
-typedef struct { vec_double_8_t a; vec_double_8_t b; } hva2_vec_double_8_t;
-hva2_vec_double_8_t fun_hva2_vec_double_8 (void) {
- hva2_vec_double_8_t ret = { { 3.5 },
- { 4.5 } };
- return ret;
-}
-
-typedef struct { vec_char_16_t a; vec_char_16_t b; } hva2_vec_char_16_t;
-hva2_vec_char_16_t fun_hva2_vec_char_16_t (void) {
- hva2_vec_char_16_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8,
- 9, 10, 11, 12, 13, 14, 15, 16 },
- { 2, 3, 4, 5, 6, 7, 8, 9,
- 10, 11, 12, 13, 14, 15, 16, 17 } };
- return ret;
-}
-
-typedef struct { vec_short_16_t a; vec_short_16_t b; } hva2_vec_short_16_t;
-hva2_vec_short_16_t fun_hva2_vec_short_16_t (void) {
- hva2_vec_short_16_t ret = { { 2, 3, 4, 5, 6, 7, 8, 9 },
- { 3, 4, 5, 6, 7, 8, 9, 10 } };
- return ret;
-}
-
-typedef struct { vec_int_16_t a; vec_int_16_t b; } hva2_vec_int_16_t;
-hva2_vec_int_16_t fun_hva2_vec_int_16_t (void) {
- hva2_vec_int_16_t ret = { { 3, 4, 5, 6 },
- { 4, 5, 6, 7 } };
- return ret;
-}
-
-typedef struct { vec_long_16_t a; vec_long_16_t b; } hva2_vec_long_16_t;
-hva2_vec_long_16_t fun_hva2_vec_long_16_t (void) {
- hva2_vec_long_16_t ret = { { 4, 5 },
- { 5, 6 } };
- return ret;
-}
-
-typedef struct { vec_int128_16_t a; vec_int128_16_t b; } hva2_vec_int128_16_t;
-hva2_vec_int128_16_t fun_hva2_vec_int128_16_t (void) {
- hva2_vec_int128_16_t ret = { { 6 },
- { 7 } };
- return ret;
-}
-
-typedef struct { vec_float_16_t a; vec_float_16_t b; } hva2_vec_float_16_t;
-hva2_vec_float_16_t fun_hva2_vec_float_16_t (void) {
- hva2_vec_float_16_t ret = { { 1.5, 2.5, 3.5, 4.5 },
- { 2.5, 3.5, 4.5, 5.5 } };
- return ret;
-}
-
-typedef struct { vec_double_16_t a; vec_double_16_t b; } hva2_vec_double_16_t;
-hva2_vec_double_16_t fun_hva2_vec_double_16_t (void) {
- hva2_vec_double_16_t ret = { { 2.5, 3.5 },
- { 3.5, 4.5 } };
- return ret;
-}
-
-#ifdef FLOAT128
-typedef struct { vec_float128_16_t a; vec_float128_16_t b; } hva2_vec_float128_16_t;
-hva2_vec_float128_16_t fun_hva2_vec_float128_16_t (void) {
- hva2_vec_float128_16_t ret = { { 4.5 },
- { 5.5 } };
- return ret;
-}
-#endif
-
-// Homogeneous vector aggregates of 3 elements.
-
-typedef struct { vec_char_8_t a; vec_char_8_t b; vec_char_8_t c; } hva3_vec_char_8_t;
-hva3_vec_char_8_t fun_hva3_vec_char_8 (void) {
- hva3_vec_char_8_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8 },
- { 2, 3, 4, 5, 6, 7, 8, 9 },
- { 3, 4, 5, 6, 7, 8, 9, 10 } };
- return ret;
-}
-
-typedef struct { vec_short_8_t a; vec_short_8_t b; vec_short_8_t c; } hva3_vec_short_8_t;
-hva3_vec_short_8_t fun_hva3_vec_short_8 (void) {
- hva3_vec_short_8_t ret = { { 2, 3, 4, 5 },
- { 3, 4, 5, 6 },
- { 4, 5, 6, 7 } };
- return ret;
-}
-
-typedef struct { vec_int_8_t a; vec_int_8_t b; vec_int_8_t c; } hva3_vec_int_8_t;
-hva3_vec_int_8_t fun_hva3_vec_int_8 (void) {
- hva3_vec_int_8_t ret = { { 3, 4 },
- { 4, 5 },
- { 5, 6 } };
- return ret;
-}
-
-typedef struct { vec_long_8_t a; vec_long_8_t b; vec_long_8_t c; } hva3_vec_long_8_t;
-hva3_vec_long_8_t fun_hva3_vec_long_8 (void) {
- hva3_vec_long_8_t ret = { { 5 },
- { 6 },
- { 7 } };
- return ret;
-}
-
-typedef struct { vec_float_8_t a; vec_float_8_t b; vec_float_8_t c; } hva3_vec_float_8_t;
-hva3_vec_float_8_t fun_hva3_vec_float_8 (void) {
- hva3_vec_float_8_t ret = { { 1.5, 2.5 },
- { 2.5, 3.5 },
- { 3.5, 4.5 } };
- return ret;
-}
-
-typedef struct { vec_double_8_t a; vec_double_8_t b; vec_double_8_t c; } hva3_vec_double_8_t;
-hva3_vec_double_8_t fun_hva3_vec_double_8 (void) {
- hva3_vec_double_8_t ret = { { 3.5 },
- { 4.5 },
- { 5.5 } };
- return ret;
-}
-
-typedef struct { vec_char_16_t a; vec_char_16_t b; vec_char_16_t c; } hva3_vec_char_16_t;
-hva3_vec_char_16_t fun_hva3_vec_char_16_t (void) {
- hva3_vec_char_16_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8,
- 9, 10, 11, 12, 13, 14, 15, 16 },
- { 2, 3, 4, 5, 6, 7, 8, 9,
- 10, 11, 12, 13, 14, 15, 16, 17 },
- { 3, 4, 5, 6, 7, 8, 9, 10,
- 11, 12, 13, 14, 15, 16, 17, 18 } };
- return ret;
-}
-
-typedef struct { vec_short_16_t a; vec_short_16_t b; vec_short_16_t c; } hva3_vec_short_16_t;
-hva3_vec_short_16_t fun_hva3_vec_short_16_t (void) {
- hva3_vec_short_16_t ret = { { 2, 3, 4, 5, 6, 7, 8, 9 },
- { 3, 4, 5, 6, 7, 8, 9, 10 },
- { 4, 5, 6, 7, 8, 9, 10, 11 } };
- return ret;
-}
-
-typedef struct { vec_int_16_t a; vec_int_16_t b; vec_int_16_t c; } hva3_vec_int_16_t;
-hva3_vec_int_16_t fun_hva3_vec_int_16_t (void) {
- hva3_vec_int_16_t ret = { { 3, 4, 5, 6 },
- { 4, 5, 6, 7 },
- { 5, 6, 7, 8 } };
- return ret;
-}
-
-typedef struct { vec_long_16_t a; vec_long_16_t b; vec_long_16_t c; } hva3_vec_long_16_t;
-hva3_vec_long_16_t fun_hva3_vec_long_16_t (void) {
- hva3_vec_long_16_t ret = { { 3, 4 },
- { 4, 5 },
- { 5, 6 } };
- return ret;
-}
-
-typedef struct { vec_int128_16_t a; vec_int128_16_t b; vec_int128_16_t c; } hva3_vec_int128_16_t;
-hva3_vec_int128_16_t fun_hva3_vec_int128_16_t (void) {
- hva3_vec_int128_16_t ret = { { 6 },
- { 7 },
- { 8 } };
- return ret;
-}
-
-typedef struct { vec_float_16_t a; vec_float_16_t b; vec_float_16_t c; } hva3_vec_float_16_t;
-hva3_vec_float_16_t fun_hva3_vec_float_16_t (void) {
- hva3_vec_float_16_t ret = { { 1.5, 2.5, 3.5, 4.5 },
- { 2.5, 3.5, 4.5, 5.5 },
- { 3.5, 4.5, 5.5, 6.5 } };
- return ret;
-}
-
-typedef struct { vec_double_16_t a; vec_double_16_t b; vec_double_16_t c; } hva3_vec_double_16_t;
-hva3_vec_double_16_t fun_hva3_vec_double_16_t (void) {
- hva3_vec_double_16_t ret = { { 2.5, 3.5 },
- { 3.5, 4.5 },
- { 4.5, 5.5 } };
- return ret;
-}
-
-#ifdef FLOAT128
-typedef struct { vec_float128_16_t a; vec_float128_16_t b; vec_float128_16_t c; } hva3_vec_float128_16_t;
-hva3_vec_float128_16_t fun_hva3_vec_float128_16_t (void) {
- hva3_vec_float128_16_t ret = { { 4.5 },
- { 5.5 },
- { 6.5 } };
- return ret;
-}
-#endif
-
-// Homogeneous vector aggregates of 3 elements.
-
-typedef struct { vec_char_8_t a; vec_char_8_t b; vec_char_8_t c; vec_char_8_t d; } hva4_vec_char_8_t;
-hva4_vec_char_8_t fun_hva4_vec_char_8 (void) {
- hva4_vec_char_8_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8 },
- { 2, 3, 4, 5, 6, 7, 8, 9 },
- { 3, 4, 5, 6, 7, 8, 9, 10 },
- { 4, 5, 6, 7, 8, 9, 10, 11 } };
- return ret;
-}
-
-typedef struct { vec_short_8_t a; vec_short_8_t b; vec_short_8_t c; vec_short_8_t d; } hva4_vec_short_8_t;
-hva4_vec_short_8_t fun_hva4_vec_short_8 (void) {
- hva4_vec_short_8_t ret = { { 2, 3, 4, 5 },
- { 3, 4, 5, 6 },
- { 4, 5, 6, 7 },
- { 5, 6, 7, 8 } };
- return ret;
-}
-
-typedef struct { vec_int_8_t a; vec_int_8_t b; vec_int_8_t c; vec_int_8_t d; } hva4_vec_int_8_t;
-hva4_vec_int_8_t fun_hva4_vec_int_8 (void) {
- hva4_vec_int_8_t ret = { { 3, 4 },
- { 4, 5 },
- { 5, 6 },
- { 6, 7 } };
- return ret;
-}
-
-typedef struct { vec_long_8_t a; vec_long_8_t b; vec_long_8_t c; vec_long_8_t d; } hva4_vec_long_8_t;
-hva4_vec_long_8_t fun_hva4_vec_long_8 (void) {
- hva4_vec_long_8_t ret = { { 5 },
- { 6 },
- { 7 },
- { 8 } };
- return ret;
-}
-
-typedef struct { vec_float_8_t a; vec_float_8_t b; vec_float_8_t c; vec_float_8_t d; } hva4_vec_float_8_t;
-hva4_vec_float_8_t fun_hva4_vec_float_8 (void) {
- hva4_vec_float_8_t ret = { { 1.5, 2.5 },
- { 2.5, 3.5 },
- { 3.5, 4.5 },
- { 4.5, 5.5 } };
- return ret;
-}
-
-typedef struct { vec_double_8_t a; vec_double_8_t b; vec_double_8_t c; vec_double_8_t d; } hva4_vec_double_8_t;
-hva4_vec_double_8_t fun_hva4_vec_double_8 (void) {
- hva4_vec_double_8_t ret = { { 3.5 },
- { 4.5 },
- { 5.5 },
- { 6.5 } };
- return ret;
-}
-
-typedef struct { vec_char_16_t a; vec_char_16_t b; vec_char_16_t c; vec_char_16_t d; } hva4_vec_char_16_t;
-hva4_vec_char_16_t fun_hva4_vec_char_16_t (void) {
- hva4_vec_char_16_t ret = { { 1, 2, 3, 4, 5, 6, 7, 8,
- 9, 10, 11, 12, 13, 14, 15, 16 },
- { 2, 3, 4, 5, 6, 7, 8, 9,
- 10, 11, 12, 13, 14, 15, 16, 17 },
- { 3, 4, 5, 6, 7, 8, 9, 10,
- 11, 12, 13, 14, 15, 16, 17, 18 },
- { 4, 5, 6, 7, 8, 9, 10, 11,
- 12, 13, 14, 15, 16, 17, 18, 19 } };
- return ret;
-}
-
-typedef struct { vec_short_16_t a; vec_short_16_t b; vec_short_16_t c; vec_short_16_t d; } hva4_vec_short_16_t;
-hva4_vec_short_16_t fun_hva4_vec_short_16_t (void) {
- hva4_vec_short_16_t ret = { { 2, 3, 4, 5, 6, 7, 8, 9 },
- { 3, 4, 5, 6, 7, 8, 9, 10 },
- { 4, 5, 6, 7, 8, 9, 10, 11 },
- { 5, 6, 7, 8, 9, 10, 11, 12 } };
- return ret;
-}
-
-typedef struct { vec_int_16_t a; vec_int_16_t b; vec_int_16_t c; vec_int_16_t d; } hva4_vec_int_16_t;
-hva4_vec_int_16_t fun_hva4_vec_int_16_t (void) {
- hva4_vec_int_16_t ret = { { 3, 4, 5, 6 },
- { 4, 5, 6, 7 },
- { 5, 6, 7, 8 },
- { 6, 7, 8, 9 } };
- return ret;
-}
-
-typedef struct { vec_long_16_t a; vec_long_16_t b; vec_long_16_t c; vec_long_16_t d; } hva4_vec_long_16_t;
-hva4_vec_long_16_t fun_hva4_vec_long_16_t (void) {
- hva4_vec_long_16_t ret = { { 3, 4 },
- { 4, 5 },
- { 5, 6 },
- { 6, 7 } };
- return ret;
-}
-
-typedef struct { vec_int128_16_t a; vec_int128_16_t b; vec_int128_16_t c; vec_int128_16_t d; } hva4_vec_int128_16_t;
-hva4_vec_int128_16_t fun_hva4_vec_int128_16_t (void) {
- hva4_vec_int128_16_t ret = { { 6 },
- { 7 },
- { 8 },
- { 9 } };
- return ret;
-}
-
-typedef struct { vec_float_16_t a; vec_float_16_t b; vec_float_16_t c; vec_float_16_t d; } hva4_vec_float_16_t;
-hva4_vec_float_16_t fun_hva4_vec_float_16_t (void) {
- hva4_vec_float_16_t ret = { { 1.5, 2.5, 3.5, 4.5 },
- { 2.5, 3.5, 4.5, 5.5 },
- { 3.5, 4.5, 5.5, 6.5 },
- { 4.5, 5.5, 6.5, 7.5 } };
- return ret;
-}
-
-typedef struct { vec_double_16_t a; vec_double_16_t b; vec_double_16_t c; vec_double_16_t d; } hva4_vec_double_16_t;
-hva4_vec_double_16_t fun_hva4_vec_double_16_t (void) {
- hva4_vec_double_16_t ret = { { 2.5, 3.5 },
- { 3.5, 4.5 },
- { 4.5, 5.5 },
- { 5.5, 6.5 } };
- return ret;
-}
-
-#ifdef FLOAT128
-typedef struct { vec_float128_16_t a; vec_float128_16_t b; vec_float128_16_t c; vec_float128_16_t d; } hva4_vec_float128_16_t;
-hva4_vec_float128_16_t fun_hva4_vec_float128_16_t (void) {
- hva4_vec_float128_16_t ret = { { 4.5 },
- { 5.5 },
- { 6.5 },
- { 7.5 } };
- return ret;
-}
-#endif
-
-// Mixed HFA.
-typedef struct { float _Complex a; float b; } mixed_hfa3_cff_t;
-mixed_hfa3_cff_t fun_mixed_hfa3_cff (void) {
- mixed_hfa3_cff_t ret = { 1.5 + 2.5i, 3.5 };
- return ret;
-}
-
-typedef struct { double _Complex a; double b; } mixed_hfa3_cdd_t;
-mixed_hfa3_cdd_t fun_mixed_hfa3_cdd (void) {
- mixed_hfa3_cdd_t ret = { 1.5 + 2.5i, 3.5 };
- return ret;
-}
-
-typedef struct { long double _Complex a; long double b; } mixed_hfa3_cldld_t;
-mixed_hfa3_cldld_t fun_mixed_hfa3_cldld (void) {
- mixed_hfa3_cldld_t ret = { 1.5 + 2.5i, 3.5 };
- return ret;
-}
-
-typedef struct { float b; float _Complex a; } mixed_hfa3_fcf_t;
-mixed_hfa3_fcf_t fun_mixed_hfa3_fcf (void) {
- mixed_hfa3_fcf_t ret = { 3.5, 1.5 + 2.5i };
- return ret;
-}
-
-typedef struct { double b; double _Complex a; } mixed_hfa3_dcd_t;
-mixed_hfa3_dcd_t fun_mixed_hfa3_dcd (void) {
- mixed_hfa3_dcd_t ret = { 3.5, 1.5 + 2.5i };
- return ret;
-}
-
-typedef struct { long double b; long double _Complex a; } mixed_hfa3_ldcld_t;
-mixed_hfa3_ldcld_t fun_mixed_hfa3_ldcld (void) {
- mixed_hfa3_ldcld_t ret = { 3.5, 1.5 + 2.5i };
- return ret;
-}
-
-typedef struct { vec_float_8_t a; vec_short_8_t b; } mixed_hfa2_fltsht_t;
-mixed_hfa2_fltsht_t fun_mixed_hfa2_fltsht_t (void) {
- mixed_hfa2_fltsht_t ret = { { 3.5, 4.5 }, { 1, 2, 3, 4 } };
- return ret;
-}
-
-int main(int argc, char *argv[])
-{
- return 0;
-}
diff --git a/src/tests/funcretval_test_aarch64.bz2 b/src/tests/funcretval_test_aarch64.bz2
deleted file mode 100755
index 5494e102..00000000
--- a/src/tests/funcretval_test_aarch64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/funcscopes.c b/src/tests/funcscopes.c
deleted file mode 100644
index 720ff3b9..00000000
--- a/src/tests/funcscopes.c
+++ /dev/null
@@ -1,194 +0,0 @@
-/* Test program for dwarf_getscopes.
- Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-#include <argp.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <stdlib.h>
-#include <error.h>
-#include <string.h>
-#include <fnmatch.h>
-
-
-static void
-paddr (const char *prefix, Dwarf_Addr addr, Dwfl_Line *line)
-{
- const char *src;
- int lineno, linecol;
- if (line != NULL
- && (src = dwfl_lineinfo (line, &addr, &lineno, &linecol,
- NULL, NULL)) != NULL)
- {
- if (linecol != 0)
- printf ("%s%#" PRIx64 " (%s:%d:%d)",
- prefix, addr, src, lineno, linecol);
- else
- printf ("%s%#" PRIx64 " (%s:%d)",
- prefix, addr, src, lineno);
- }
- else
- printf ("%s%#" PRIx64, prefix, addr);
-}
-
-
-static void
-print_vars (unsigned int indent, Dwarf_Die *die)
-{
- Dwarf_Die child;
- if (dwarf_child (die, &child) == 0)
- do
- switch (dwarf_tag (&child))
- {
- case DW_TAG_variable:
- case DW_TAG_formal_parameter:
- printf ("%*s%-30s[%6" PRIx64 "]\n", indent, "",
- dwarf_diename (&child),
- (uint64_t) dwarf_dieoffset (&child));
- break;
- default:
- break;
- }
- while (dwarf_siblingof (&child, &child) == 0);
-
- Dwarf_Attribute attr_mem;
- Dwarf_Die origin;
- if (dwarf_hasattr (die, DW_AT_abstract_origin)
- && dwarf_formref_die (dwarf_attr (die, DW_AT_abstract_origin, &attr_mem),
- &origin) != NULL
- && dwarf_child (&origin, &child) == 0)
- do
- switch (dwarf_tag (&child))
- {
- case DW_TAG_variable:
- case DW_TAG_formal_parameter:
- printf ("%*s%s (abstract)\n", indent, "",
- dwarf_diename (&child));
- break;
- default:
- break;
- }
- while (dwarf_siblingof (&child, &child) == 0);
-}
-
-
-#define INDENT 4
-
-struct args
-{
- Dwfl *dwfl;
- Dwarf_Die *cu;
- Dwarf_Addr dwbias;
- char **argv;
-};
-
-static int
-handle_function (Dwarf_Die *funcdie, void *arg)
-{
- struct args *a = arg;
-
- const char *name = dwarf_diename (funcdie);
- char **argv = a->argv;
- if (argv[0] != NULL)
- {
- bool match;
- do
- match = fnmatch (*argv, name, 0) == 0;
- while (!match && *++argv);
- if (!match)
- return 0;
- }
-
- Dwarf_Die *scopes;
- int n = dwarf_getscopes_die (funcdie, &scopes);
- if (n <= 0)
- error (EXIT_FAILURE, 0, "dwarf_getscopes_die: %s", dwarf_errmsg (-1));
- else
- {
- Dwarf_Addr start, end;
- const char *fname;
- const char *modname = dwfl_module_info (dwfl_cumodule (a->cu), NULL,
- &start, &end,
- NULL, NULL,
- &fname, NULL);
- if (modname == NULL)
- error (EXIT_FAILURE, 0, "dwfl_module_info: %s", dwarf_errmsg (-1));
- if (modname[0] == '\0')
- modname = fname;
- printf ("%s: %#" PRIx64 " .. %#" PRIx64 "\n", modname, start, end);
-
- unsigned int indent = 0;
- while (n-- > 0)
- {
- Dwarf_Die *const die = &scopes[n];
-
- indent += INDENT;
- printf ("%*s%s (%#x)", indent, "",
- dwarf_diename (die) ?: "<unnamed>",
- dwarf_tag (die));
-
- Dwarf_Addr lowpc, highpc;
- if (dwarf_lowpc (die, &lowpc) == 0
- && dwarf_highpc (die, &highpc) == 0)
- {
- lowpc += a->dwbias;
- highpc += a->dwbias;
- Dwfl_Line *loline = dwfl_getsrc (a->dwfl, lowpc);
- Dwfl_Line *hiline = dwfl_getsrc (a->dwfl, highpc);
- paddr (": ", lowpc, loline);
- if (highpc != lowpc)
- paddr (" .. ", lowpc, hiline == loline ? NULL : hiline);
- }
- puts ("");
-
- print_vars (indent + INDENT, die);
- }
- }
-
- return 0;
-}
-
-
-int
-main (int argc, char *argv[])
-{
- int remaining;
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- struct args a = { .dwfl = NULL, .cu = NULL };
-
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining,
- &a.dwfl);
- assert (a.dwfl != NULL);
- a.argv = &argv[remaining];
-
- int result = 0;
-
- while ((a.cu = dwfl_nextcu (a.dwfl, a.cu, &a.dwbias)) != NULL)
- dwarf_getfuncs (a.cu, &handle_function, &a, 0);
-
- dwfl_end (a.dwfl);
-
- return result;
-}
diff --git a/src/tests/get-aranges.c b/src/tests/get-aranges.c
deleted file mode 100644
index 7f85cdad..00000000
--- a/src/tests/get-aranges.c
+++ /dev/null
@@ -1,142 +0,0 @@
-/* Copyright (C) 2002, 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <libelf.h>
-#include ELFUTILS_HEADER(dw)
-#include <stdio.h>
-#include <unistd.h>
-
-
-static const Dwarf_Addr testaddr[] =
-{
- 0x804842b, 0x804842c, 0x804843c, 0x8048459, 0x804845a,
- 0x804845b, 0x804845c, 0x8048460, 0x8048465, 0x8048466,
- 0x8048467, 0x8048468, 0x8048470, 0x8048471, 0x8048472
-};
-#define ntestaddr (sizeof (testaddr) / sizeof (testaddr[0]))
-
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- int cnt;
-
- for (cnt = 1; cnt < argc; ++cnt)
- {
- int fd = open (argv[cnt], O_RDONLY);
-
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg == NULL)
- {
- printf ("%s not usable\n", argv[cnt]);
- result = 1;
- close (fd);
- continue;
- }
-
- Dwarf_Aranges *aranges;
- size_t naranges;
- if (dwarf_getaranges (dbg, &aranges, &naranges) != 0)
- printf ("%s: cannot get aranges\n", argv[cnt]);
- else
- {
- for (size_t i = 0; i < ntestaddr; ++i)
- {
- Dwarf_Arange *found;
-
- found = dwarf_getarange_addr (aranges, testaddr[i]);
- if (found != NULL)
- {
- Dwarf_Off cu_offset;
-
- if (dwarf_getarangeinfo (found, NULL, NULL, &cu_offset) != 0)
- {
- puts ("failed to get CU die offset");
- result = 1;
- }
- else
- {
- const char *cuname;
- Dwarf_Die cu_die;
-
- if (dwarf_offdie (dbg, cu_offset, &cu_die) == NULL
- || (cuname = dwarf_diename (&cu_die)) == NULL)
- {
- puts ("failed to get CU die");
- result = 1;
- }
- else
- printf ("CU name: \"%s\"\n", cuname);
- }
- }
- else
- printf ("%#llx: not in range\n",
- (unsigned long long int) testaddr[i]);
- }
-
- for (size_t i = 0; i < naranges; ++i)
- {
- Dwarf_Arange *arange = dwarf_onearange (aranges, i);
- if (arange == NULL)
- {
- printf ("cannot get arange %zu: %s\n", i, dwarf_errmsg (-1));
- break;
- }
-
- Dwarf_Addr start;
- Dwarf_Word length;
- Dwarf_Off cu_offset;
-
- if (dwarf_getarangeinfo (arange, &start, &length, &cu_offset)
- != 0)
- {
- printf ("cannot get info from aranges[%zu]\n", i);
- result = 1;
- }
- else
- {
- printf (" [%2zu] start: %#llx, length: %llu, cu: %llu\n",
- i, (unsigned long long int) start,
- (unsigned long long int) length,
- (unsigned long long int) cu_offset);
-
- const char *cuname;
- Dwarf_Die cu_die;
- if (dwarf_offdie (dbg, cu_offset, &cu_die) == NULL
- || (cuname = dwarf_diename (&cu_die)) == NULL)
- {
- puts ("failed to get CU die");
- result = 1;
- }
- else
- printf ("CU name: \"%s\"\n", cuname);
- }
- }
- }
-
- dwarf_end (dbg);
- close (fd);
- }
-
- return result;
-}
diff --git a/src/tests/get-files.c b/src/tests/get-files.c
deleted file mode 100644
index 04091733..00000000
--- a/src/tests/get-files.c
+++ /dev/null
@@ -1,107 +0,0 @@
-/* Copyright (C) 2002, 2004, 2005, 2007 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <libelf.h>
-#include ELFUTILS_HEADER(dw)
-#include <stdio.h>
-#include <unistd.h>
-
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- int cnt;
-
- for (cnt = 1; cnt < argc; ++cnt)
- {
- int fd = open (argv[cnt], O_RDONLY);
-
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg == NULL)
- {
- printf ("%s not usable\n", argv[cnt]);
- result = 1;
- if (fd != -1)
- close (fd);
- continue;
- }
-
- Dwarf_Off o = 0;
- Dwarf_Off ncu;
- Dwarf_Off ao;
- size_t cuhl;
- uint8_t asz;
- uint8_t osz;
- while (dwarf_nextcu (dbg, o, &ncu, &cuhl, &ao, &asz, &osz) == 0)
- {
- printf ("cuhl = %zu, o = %llu, asz = %hhu, osz = %hhu, ncu = %llu\n",
- cuhl, (unsigned long long int) ao,
- asz, osz, (unsigned long long int) ncu);
-
- Dwarf_Die die_mem;
- Dwarf_Die *die = dwarf_offdie (dbg, o + cuhl, &die_mem);
- if (die == NULL)
- {
- printf ("%s: cannot get CU die\n", argv[cnt]);
- result = 1;
- break;
- }
-
- Dwarf_Files *files;
- size_t nfiles;
- if (dwarf_getsrcfiles (die, &files, &nfiles) != 0)
- {
- printf ("%s: cannot get files\n", argv[cnt]);
- result = 1;
- break;
- }
-
- const char *const *dirs;
- size_t ndirs;
- if (dwarf_getsrcdirs (files, &dirs, &ndirs) != 0)
- {
- printf ("%s: cannot get include directories\n", argv[cnt]);
- result = 1;
- break;
- }
-
- if (dirs[0] == NULL)
- puts (" dirs[0] = (null)");
- else
- printf (" dirs[0] = \"%s\"\n", dirs[0]);
- for (size_t i = 1; i < ndirs; ++i)
- printf (" dirs[%zu] = \"%s\"\n", i, dirs[i]);
-
- for (size_t i = 0; i < nfiles; ++i)
- printf (" file[%zu] = \"%s\"\n", i,
- dwarf_filesrc (files, i, NULL, NULL));
-
- o = ncu;
- }
-
- dwarf_end (dbg);
- close (fd);
- }
-
- return result;
-}
diff --git a/src/tests/get-lines.c b/src/tests/get-lines.c
deleted file mode 100644
index c361a2c3..00000000
--- a/src/tests/get-lines.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/* Copyright (C) 2002, 2004 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <inttypes.h>
-#include <libelf.h>
-#include ELFUTILS_HEADER(dw)
-#include <stdio.h>
-#include <unistd.h>
-
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- int cnt;
-
- for (cnt = 1; cnt < argc; ++cnt)
- {
- int fd = open (argv[cnt], O_RDONLY);
-
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg == NULL)
- {
- printf ("%s not usable: %s\n", argv[cnt], dwarf_errmsg (-1));
- close (fd);
- continue;
- }
-
- Dwarf_Off cuoff = 0;
- Dwarf_Off old_cuoff = 0;
- size_t hsize;
- Dwarf_Off ao;
- uint8_t asz;
- uint8_t osz;
- while (dwarf_nextcu (dbg, cuoff, &cuoff, &hsize, &ao, &asz, &osz) == 0)
- {
- printf ("cuhl = %zu, o = %llu, asz = %hhu, osz = %hhu, ncu = %llu\n",
- hsize, (unsigned long long int) ao,
- asz, osz, (unsigned long long int) cuoff);
-
- /* Get the DIE for the CU. */
- Dwarf_Die die;
- if (dwarf_offdie (dbg, old_cuoff + hsize, &die) == NULL)
- {
- /* Something went wrong. */
- printf ("%s: cannot get CU die\n", argv[cnt]);
- result = 1;
- break;
- }
- old_cuoff = cuoff;
-
- Dwarf_Lines *lb;
- size_t nlb;
- if (dwarf_getsrclines (&die, &lb, &nlb) != 0)
- {
- printf ("%s: cannot get lines\n", argv[cnt]);
- result = 1;
- break;
- }
-
- printf (" %zu lines\n", nlb);
-
- for (size_t i = 0; i < nlb; ++i)
- {
- Dwarf_Line *l = dwarf_onesrcline (lb, i);
- if (l == NULL)
- {
- printf ("%s: cannot get individual line\n", argv[cnt]);
- result = 1;
- break;
- }
-
- Dwarf_Addr addr;
- if (dwarf_lineaddr (l, &addr) != 0)
- addr = 0;
- const char *file = dwarf_linesrc (l, NULL, NULL);
- int line;
- if (dwarf_lineno (l, &line) != 0)
- line = 0;
-
- printf ("%" PRIx64 ": %s:%d:", (uint64_t) addr,
- file ?: "???", line);
-
- int column;
- if (dwarf_linecol (l, &column) != 0)
- column = 0;
- if (column >= 0)
- printf ("%d:", column);
-
- bool is_stmt;
- if (dwarf_linebeginstatement (l, &is_stmt) != 0)
- is_stmt = false;
- bool end_sequence;
- if (dwarf_lineendsequence (l, &end_sequence) != 0)
- end_sequence = false;
- bool basic_block;
- if (dwarf_lineblock (l, &basic_block) != 0)
- basic_block = false;
- bool prologue_end;
- if (dwarf_lineprologueend (l, &prologue_end) != 0)
- prologue_end = false;
- bool epilogue_begin;
- if (dwarf_lineepiloguebegin (l, &epilogue_begin) != 0)
- epilogue_begin = false;
-
- printf (" is_stmt:%s, end_seq:%s, bb:%s, prologue:%s, epilogue:%s\n",
- is_stmt ? "yes" : "no", end_sequence ? "yes" : "no",
- basic_block ? "yes" : "no", prologue_end ? "yes" : "no",
- epilogue_begin ? "yes" : "no");
- }
- }
-
- dwarf_end (dbg);
- close (fd);
- }
-
- return result;
-}
diff --git a/src/tests/get-pubnames.c b/src/tests/get-pubnames.c
deleted file mode 100644
index 4777f49d..00000000
--- a/src/tests/get-pubnames.c
+++ /dev/null
@@ -1,98 +0,0 @@
-/* Copyright (C) 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include <libelf.h>
-#include ELFUTILS_HEADER(dw)
-#include <stdio.h>
-#include <unistd.h>
-
-
-static int globcnt;
-
-static int
-callback (Dwarf *dbg, Dwarf_Global *gl, void *arg __attribute__ ((unused)))
-{
- int result = DWARF_CB_OK;
-
- printf (" [%2d] \"%s\", die: %llu, cu: %llu\n",
- globcnt++, gl->name, (unsigned long long int) gl->die_offset,
- (unsigned long long int) gl->cu_offset);
-
- Dwarf_Die cu_die;
- const char *cuname;
- if (dwarf_offdie (dbg, gl->cu_offset, &cu_die) == NULL
- || (cuname = dwarf_diename (&cu_die)) == NULL)
- {
- puts ("failed to get CU die");
- result = DWARF_CB_ABORT;
- }
- else
- printf ("CU name: \"%s\"\n", cuname);
-
- const char *diename;
- Dwarf_Die die;
- if (dwarf_offdie (dbg, gl->die_offset, &die) == NULL
- || (diename = dwarf_diename (&die)) == NULL)
- {
- puts ("failed to get object die");
- result = DWARF_CB_ABORT;
- }
- else
- printf ("object name: \"%s\"\n", diename);
-
- return result;
-}
-
-
-int
-main (int argc, char *argv[])
-{
- int result = 0;
- int cnt;
-
- for (cnt = 1; cnt < argc; ++cnt)
- {
- int fd = open (argv[cnt], O_RDONLY);
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg == NULL)
- {
- printf ("%s not usable: %s\n", argv[cnt], dwarf_errmsg (-1));
- result = 1;
- close (fd);
- continue;
- }
-
- globcnt = 0;
-
- if (dwarf_getpubnames (dbg, callback, NULL, 0) != 0)
- {
- printf ("dwarf_get_pubnames didn't return zero: %s\n",
- dwarf_errmsg (-1));
- result = 1;
- }
-
- dwarf_end (dbg);
- close (fd);
- }
-
- return result;
-}
diff --git a/src/tests/hash.c b/src/tests/hash.c
deleted file mode 100644
index 86b6ad85..00000000
--- a/src/tests/hash.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Copyright (C) 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <libelf.h>
-#include <stdio.h>
-
-
-static int
-check (const char *name, unsigned long int expected)
-{
- unsigned long int actual = elf_hash (name);
-
- return actual != expected;
-}
-
-
-int
-main (void)
-{
- int status;
-
- /* Check some names. We know what the expected result is. */
- status = check ("_DYNAMIC", 165832675);
- status |= check ("_GLOBAL_OFFSET_TABLE_", 102264335);
-
- return status;
-}
diff --git a/src/tests/hello_aarch64.ko.bz2 b/src/tests/hello_aarch64.ko.bz2
deleted file mode 100644
index 431d89f9..00000000
--- a/src/tests/hello_aarch64.ko.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/hello_i386.ko.bz2 b/src/tests/hello_i386.ko.bz2
deleted file mode 100644
index f89b292c..00000000
--- a/src/tests/hello_i386.ko.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/hello_ppc64.ko.bz2 b/src/tests/hello_ppc64.ko.bz2
deleted file mode 100644
index f4d3ff20..00000000
--- a/src/tests/hello_ppc64.ko.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/hello_s390.ko.bz2 b/src/tests/hello_s390.ko.bz2
deleted file mode 100644
index 41525bf5..00000000
--- a/src/tests/hello_s390.ko.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/hello_x86_64.ko.bz2 b/src/tests/hello_x86_64.ko.bz2
deleted file mode 100644
index ba06f91e..00000000
--- a/src/tests/hello_x86_64.ko.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/libtestfile_multi_shared.so.bz2 b/src/tests/libtestfile_multi_shared.so.bz2
deleted file mode 100755
index e9eb6a70..00000000
--- a/src/tests/libtestfile_multi_shared.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/line2addr.c b/src/tests/line2addr.c
deleted file mode 100644
index e0d65d3d..00000000
--- a/src/tests/line2addr.c
+++ /dev/null
@@ -1,148 +0,0 @@
-/* Copyright (C) 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <inttypes.h>
-#include <assert.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <argp.h>
-#include <stdio.h>
-#include <locale.h>
-#include <stdlib.h>
-#include <string.h>
-#include <error.h>
-
-
-static void
-print_address (Dwfl_Module *mod, Dwarf_Addr address)
-{
- int n = dwfl_module_relocations (mod);
- if (n < 0)
- error (0, 0, "dwfl_module_relocations: %s", dwfl_errmsg (-1));
- else if (n > 0)
- {
- int i = dwfl_module_relocate_address (mod, &address);
- if (i < 0)
- error (0, 0, "dwfl_module_relocate_address: %s", dwfl_errmsg (-1));
- else
- {
- const char *modname = dwfl_module_info (mod, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL);
- const char *secname = dwfl_module_relocation_info (mod, i, NULL);
- if (n > 1 || secname[0] != '\0')
- printf ("%s(%s)+%#" PRIx64, modname, secname, address);
- else
- printf ("%s+%#" PRIx64, modname, address);
- return;
- }
- }
-
- printf ("%#" PRIx64, address);
-}
-
-
-struct args
-{
- const char *arg;
- char *file;
- int line;
-};
-
-static int
-handle_module (Dwfl_Module *mod __attribute__ ((unused)),
- void **udata __attribute__ ((unused)),
- const char *modname, Dwarf_Addr base __attribute__ ((unused)),
- Dwarf *dbg __attribute__ ((unused)),
- Dwarf_Addr bias __attribute__ ((unused)), void *arg)
-{
- const struct args *const a = arg;
-
- Dwfl_Line **lines = NULL;
- size_t nlines = 0;
-
- if (dwfl_module_getsrc_file (mod, a->file, a->line, 0, &lines, &nlines) == 0)
- {
- for (size_t inner = 0; inner < nlines; ++inner)
- {
- Dwarf_Addr addr;
- int line = a->line, col = 0;
- const char *file = dwfl_lineinfo (lines[inner], &addr, &line, &col,
- NULL, NULL);
- if (file != NULL)
- {
- printf ("%s -> ", a->arg);
- print_address (mod, addr);
- if (modname[0] != '\0')
- printf (" (%s:", modname);
- if (strcmp (file, a->file) || line != a->line || col != 0)
- printf (" %s%s:%d", modname[0] != '\0' ? "" : "(",
- file, line);
- if (col != 0)
- printf (":%d", col);
- if (modname[0] != '\0'
- || strcmp (file, a->file) || line != a->line || col != 0)
- puts (")");
- else
- puts ("");
- }
- }
- free (lines);
- }
-
- return DWARF_CB_OK;
-}
-
-int
-main (int argc, char *argv[])
-{
- int cnt;
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- Dwfl *dwfl = NULL;
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &cnt, &dwfl);
- assert (dwfl != NULL);
-
- for (; cnt < argc; ++cnt)
- {
- struct args a = { .arg = argv[cnt] };
-
- switch (sscanf (a.arg, "%m[^:]:%d", &a.file, &a.line))
- {
- default:
- case 0:
- printf ("ignored %s\n", argv[cnt]);
- continue;
- case 1:
- a.line = 0;
- break;
- case 2:
- break;
- }
-
- (void) dwfl_getdwarf (dwfl, &handle_module, &a, 0);
-
- free (a.file);
- }
-
- dwfl_end (dwfl);
-
- return 0;
-}
diff --git a/src/tests/linkmap-cut-lib.so.bz2 b/src/tests/linkmap-cut-lib.so.bz2
deleted file mode 100644
index a1bda5c0..00000000
--- a/src/tests/linkmap-cut-lib.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/linkmap-cut.bz2 b/src/tests/linkmap-cut.bz2
deleted file mode 100644
index f2ccd7ca..00000000
--- a/src/tests/linkmap-cut.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/linkmap-cut.core.bz2 b/src/tests/linkmap-cut.core.bz2
deleted file mode 100644
index b55b2f21..00000000
--- a/src/tests/linkmap-cut.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/low_high_pc.c b/src/tests/low_high_pc.c
deleted file mode 100644
index d0f43023..00000000
--- a/src/tests/low_high_pc.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* Test program for dwarf_lowpc and dwarf_highpc
- Copyright (C) 2012 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-#include <argp.h>
-#include <stdio.h>
-#include <stdio_ext.h>
-#include <locale.h>
-#include <stdlib.h>
-#include <error.h>
-#include <string.h>
-#include <fnmatch.h>
-
-struct args
-{
- Dwfl *dwfl;
- Dwarf_Die *cu;
- Dwarf_Addr dwbias;
- char **argv;
- const char *file;
-};
-
-static struct args *args;
-
-static void
-fail(Dwarf_Off off, const char *name, const char *msg)
-{
- printf("%s: [%" PRIx64 "] '%s' %s\n", args->file, off, name, msg);
- exit(-1);
-}
-
-static int
-handle_die (Dwarf_Die *die, void *arg)
-{
- args = arg;
- Dwarf_Off off = dwarf_dieoffset (die);
-
- const char *name = dwarf_diename (die);
- if (name == NULL)
- fail (off, "<no name>", "die without a name");
-
- Dwarf_Addr lowpc = 0;
- Dwarf_Addr highpc = 0;
- if (dwarf_lowpc (die, &lowpc) != 0 && dwarf_hasattr (die, DW_AT_low_pc))
- fail (off, name, "has DW_AT_low_pc but dwarf_lowpc fails");
- if (dwarf_highpc (die, &highpc) != 0 && dwarf_hasattr (die, DW_AT_high_pc))
- fail (off, name, "has DW_AT_high_pc but dwarf_highpc fails");
-
- /* GCC < 4.7 had a bug where no code CUs got a highpc == lowpc.
- Allow that, because it is not the main purpose of this test. */
- if (dwarf_hasattr (die, DW_AT_low_pc)
- && dwarf_hasattr (die, DW_AT_high_pc)
- && highpc <= lowpc
- && ! (dwarf_tag (die) == DW_TAG_compile_unit && highpc == lowpc))
- {
- printf("lowpc: %" PRIx64 ", highpc: %" PRIx64 "lx\n", lowpc, highpc);
- fail (off, name, "highpc <= lowpc");
- }
-
- return 0;
-}
-
-
-int
-main (int argc, char *argv[])
-{
- int remaining;
-
- /* Set locale. */
- (void) setlocale (LC_ALL, "");
-
- struct args a = { .dwfl = NULL, .cu = NULL };
-
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining,
- &a.dwfl);
- assert (a.dwfl != NULL);
- a.argv = &argv[remaining];
-
- int result = 0;
-
- while ((a.cu = dwfl_nextcu (a.dwfl, a.cu, &a.dwbias)) != NULL)
- {
- a.file = dwarf_diename (a.cu);
- handle_die (a.cu, &a);
- dwarf_getfuncs (a.cu, &handle_die, &a, 0);
- }
-
- dwfl_end (a.dwfl);
-
- return result;
-}
diff --git a/src/tests/md5-sha1-test.c b/src/tests/md5-sha1-test.c
deleted file mode 100644
index 49de0785..00000000
--- a/src/tests/md5-sha1-test.c
+++ /dev/null
@@ -1,101 +0,0 @@
-/* Copyright (C) 2011 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <string.h>
-#include <error.h>
-
-#include "md5.h"
-#include "sha1.h"
-
-static const struct expected
-{
- const char *sample;
- const char *md5_expected;
- const char *sha1_expected;
-} tests[] =
- {
- {
- "abc",
- "\x90\x01\x50\x98\x3c\xd2\x4f\xb0\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
- "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
- "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d"
- },
- {
- "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
- "\x82\x15\xef\x07\x96\xa2\x0b\xca\xaa\xe1\x16\xd3\x87\x6c\x66\x4a",
- "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
- "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1"
- },
- {
- "\0a",
- "\x77\x07\xd6\xae\x4e\x02\x7c\x70\xee\xa2\xa9\x35\xc2\x29\x6f\x21",
- "\x34\xaa\x97\x3c\xd4\xc4\xda\xa4\xf6\x1e"
- "\xeb\x2b\xdb\xad\x27\x31\x65\x34\x01\x6f",
- },
- {
- "When in the Course of human events it becomes necessary",
- "\x62\x6b\x5e\x22\xcd\x3d\x02\xea\x07\xde\xd4\x50\x62\x3d\xb9\x96",
- "\x66\xc3\xc6\x8d\x62\x91\xc5\x1e\x63\x0c"
- "\x85\xc8\x6c\xc4\x4b\x3a\x79\x3e\x07\x28",
- },
- };
-#define NTESTS (sizeof tests / sizeof tests[0])
-
-#define md5_size 16
-#define sha1_size 20
-
-static const char md5_expected[] =
- {
- };
-
-static const char sha1_expected[] =
- {
- };
-
-#define TEST_HASH(ALGO, I) \
- { \
- struct ALGO##_ctx ctx; \
- uint32_t result_buffer[(ALGO##_size + 3) / 4]; \
- ALGO##_init_ctx (&ctx); \
- if (tests[I].sample[0] == '\0') \
- { \
- char input_buffer[1000]; \
- memset (input_buffer, tests[I].sample[1], sizeof input_buffer); \
- for (int rept = 0; rept < 1000; ++rept) \
- ALGO##_process_bytes (input_buffer, sizeof input_buffer, &ctx); \
- } \
- else \
- ALGO##_process_bytes (tests[I].sample, strlen (tests[I].sample), &ctx); \
- char *result = ALGO##_finish_ctx (&ctx, result_buffer); \
- if (result != (void *) result_buffer \
- || memcmp (result, tests[I].ALGO##_expected, ALGO##_size) != 0) \
- error (0, 0, #ALGO " test %zu failed", 1 + I); \
- }
-
-int
-main (void)
-{
- for (size_t i = 0; i < NTESTS; ++i)
- {
- TEST_HASH (md5, i);
- TEST_HASH (sha1, i);
- }
- return error_message_count;
-}
diff --git a/src/tests/msg_tst.c b/src/tests/msg_tst.c
deleted file mode 100644
index 10ff0f73..00000000
--- a/src/tests/msg_tst.c
+++ /dev/null
@@ -1,104 +0,0 @@
-/* Copyright (C) 2002, 2005, 2006 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2002.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <libelfP.h>
-
-static struct
-{
- int id;
- const char *expected;
-} libelf_msgs[ELF_E_NUM] =
- {
- { ELF_E_NOERROR, "no error" },
- { ELF_E_UNKNOWN_ERROR, "unknown error" },
- { ELF_E_UNKNOWN_VERSION, "unknown version" },
- { ELF_E_UNKNOWN_TYPE, "unknown type" },
- { ELF_E_INVALID_HANDLE, "invalid `Elf' handle" },
- { ELF_E_SOURCE_SIZE, "invalid size of source operand" },
- { ELF_E_DEST_SIZE, "invalid size of destination operand" },
- { ELF_E_INVALID_ENCODING, "invalid encoding" },
- { ELF_E_NOMEM, "out of memory" },
- { ELF_E_INVALID_FILE, "invalid file descriptor" },
- { ELF_E_INVALID_OP, "invalid operation" },
- { ELF_E_NO_VERSION, "ELF version not set" },
- { ELF_E_INVALID_CMD, "invalid command" },
- { ELF_E_RANGE, "offset out of range" },
- { ELF_E_ARCHIVE_FMAG, "invalid fmag field in archive header" },
- { ELF_E_INVALID_ARCHIVE, "invalid archive file" },
- { ELF_E_NO_ARCHIVE, "descriptor is not for an archive" },
- { ELF_E_NO_INDEX, "no index available" },
- { ELF_E_READ_ERROR, "cannot read data from file" },
- { ELF_E_WRITE_ERROR, "cannot write data to file" },
- { ELF_E_INVALID_CLASS, "invalid binary class" },
- { ELF_E_INVALID_INDEX, "invalid section index" },
- { ELF_E_INVALID_OPERAND, "invalid operand" },
- { ELF_E_INVALID_SECTION, "invalid section" },
- { ELF_E_INVALID_COMMAND, "invalid command" },
- { ELF_E_WRONG_ORDER_EHDR, "executable header not created first" },
- { ELF_E_FD_DISABLED, "file descriptor disabled" },
- { ELF_E_FD_MISMATCH, "archive/member file descriptor mismatch" },
- { ELF_E_OFFSET_RANGE, "offset out of range" },
- { ELF_E_NOT_NUL_SECTION, "cannot manipulate null section" },
- { ELF_E_DATA_MISMATCH, "data/scn mismatch" },
- { ELF_E_INVALID_SECTION_HEADER, "invalid section header" },
- { ELF_E_INVALID_DATA, "invalid data" },
- { ELF_E_DATA_ENCODING, "unknown data encoding" },
- { ELF_E_SECTION_TOO_SMALL, "section `sh_size' too small for data" },
- { ELF_E_INVALID_ALIGN, "invalid section alignment" },
- { ELF_E_INVALID_SHENTSIZE, "invalid section entry size" },
- { ELF_E_UPDATE_RO, "update() for write on read-only file" },
- { ELF_E_NOFILE, "no such file" },
- { ELF_E_GROUP_NOT_REL,
- "only relocatable files can contain section groups" },
- { ELF_E_INVALID_PHDR,
- "program header only allowed in executables, shared objects, \
-and core files" },
- { ELF_E_NO_PHDR, "file has no program header" },
- { ELF_E_INVALID_OFFSET, "invalid offset" }
- };
-
-
-int
-main (void)
-{
- size_t cnt;
- int result = EXIT_SUCCESS;
-
- /* Clear the error state. */
- (void) elf_errno ();
-
- /* Check all the messages of libelf. */
- for (cnt = 1; cnt < ELF_E_NUM; ++cnt)
- {
- const char *str = elf_errmsg (libelf_msgs[cnt].id);
-
- if (strcmp (str, libelf_msgs[cnt].expected) != 0)
- {
- printf ("libelf msg %zu: expected \"%s\", got \"%s\"\n",
- cnt, libelf_msgs[cnt].expected, str);
- result = EXIT_FAILURE;
- }
- }
-
- return result;
-}
diff --git a/src/tests/newfile.c b/src/tests/newfile.c
deleted file mode 100644
index 5eabdcb7..00000000
--- a/src/tests/newfile.c
+++ /dev/null
@@ -1,170 +0,0 @@
-/* Copyright (C) 1999, 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-static void
-print_ehdr (Elf32_Ehdr *ehdr)
-{
- int n;
-
- for (n = 0; n < EI_NIDENT; ++n)
- printf (" %02x", ehdr->e_ident[n]);
-
- printf ("\ntype = %d\nmachine = %d\nversion = %d\nentry = %d\n"
- "phoff = %d\nshoff = %d\nflags = %d\nehsize = %d\n"
- "phentsize = %d\nphnum = %d\nshentsize = %d\nshnum = %d\n"
- "shstrndx = %d\n",
- ehdr->e_type,
- ehdr->e_machine,
- ehdr->e_version,
- ehdr->e_entry,
- ehdr->e_phoff,
- ehdr->e_shoff,
- ehdr->e_flags,
- ehdr->e_ehsize,
- ehdr->e_phentsize,
- ehdr->e_phnum,
- ehdr->e_shentsize,
- ehdr->e_shnum,
- ehdr->e_shstrndx);
-}
-
-int
-main (int argc, char *argv[] __attribute__ ((unused)))
-{
- Elf *elf;
- int result = 0;
- int fd;
- char fname[] = "newfile-XXXXXX";
-
- fd = mkstemp (fname);
- if (fd == -1)
- {
- printf ("cannot create temporary file: %m\n");
- exit (1);
- }
- /* Remove the file when we exit. */
- unlink (fname);
-
- elf_version (EV_CURRENT);
- elf = elf_begin (fd, ELF_C_WRITE, NULL);
- if (elf == NULL)
- {
- printf ("elf_begin: %s\n", elf_errmsg (-1));
- result = 1;
- }
- else
- {
- if (elf32_newehdr (elf) == NULL)
- {
- printf ("elf32_newehdr: %s\n", elf_errmsg (-1));
- result = 1;
- }
- else
- {
- Elf32_Ehdr *ehdr = elf32_getehdr (elf);
-
- if (ehdr == NULL)
- {
- printf ("elf32_getehdr: %s\n", elf_errmsg (-1));
- result = 1;
- }
- else
- {
- int i;
-
- if (argc > 1)
- /* Use argc as a debugging flag. */
- print_ehdr (ehdr);
-
- /* Some tests. */
- for (i = 0; i < EI_NIDENT; ++i)
- if (ehdr->e_ident[i] != 0)
- {
- printf ("ehdr->e_ident[%d] != 0\n", i);
- result = 1;
- break;
- }
-
-#define VALUE_TEST(name, val) \
- if (ehdr->name != val) \
- { \
- printf ("ehdr->%s != %d\n", #name, val); \
- result = 1; \
- }
-#define ZERO_TEST(name) VALUE_TEST (name, 0)
- ZERO_TEST (e_type);
- ZERO_TEST (e_machine);
- ZERO_TEST (e_version);
- ZERO_TEST (e_entry);
- ZERO_TEST (e_phoff);
- ZERO_TEST (e_shoff);
- ZERO_TEST (e_flags);
- ZERO_TEST (e_ehsize);
- ZERO_TEST (e_phentsize);
- ZERO_TEST (e_phnum);
- ZERO_TEST (e_shentsize);
- ZERO_TEST (e_shnum);
- ZERO_TEST (e_shstrndx);
-
- if (elf32_newphdr (elf, 10) == NULL)
- {
- printf ("elf32_newphdr: %s\n", elf_errmsg (-1));
- result = 1;
- }
- else
- {
- if (argc > 1)
- print_ehdr (ehdr);
-
- ehdr = elf32_getehdr (elf);
- if (ehdr == NULL)
- {
- printf ("elf32_getehdr (#2): %s\n", elf_errmsg (-1));
- result = 1;
- }
- else
- {
- ZERO_TEST (e_type);
- ZERO_TEST (e_machine);
- ZERO_TEST (e_version);
- ZERO_TEST (e_entry);
- ZERO_TEST (e_phoff);
- ZERO_TEST (e_shoff);
- ZERO_TEST (e_flags);
- ZERO_TEST (e_ehsize);
- VALUE_TEST (e_phentsize, (int) sizeof (Elf32_Phdr));
- VALUE_TEST (e_phnum, 10);
- ZERO_TEST (e_shentsize);
- ZERO_TEST (e_shnum);
- ZERO_TEST (e_shstrndx);
- }
- }
- }
- }
-
- (void) elf_end (elf);
- }
-
- return result;
-}
diff --git a/src/tests/newscn.c b/src/tests/newscn.c
deleted file mode 100644
index 466f2f68..00000000
--- a/src/tests/newscn.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/* Copyright (C) 1999, 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <assert.h>
-#include <fcntl.h>
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-
-int
-main (void)
-{
- Elf *elf;
- int fd;
- Elf_Scn *section;
-
- if (elf_version (EV_CURRENT) == EV_NONE)
- {
- fprintf (stderr, "library fd of date\n");
- exit (1);
- }
-
- char name[] = "test.XXXXXX";
- fd = mkstemp (name);
- if (fd < 0)
- {
- fprintf (stderr, "Failed to open fdput file: %s\n", name);
- exit (1);
- }
- unlink (name);
-
- elf = elf_begin (fd, ELF_C_WRITE, NULL);
- if (elf == NULL)
- {
- fprintf (stderr, "Failed to elf_begin fdput file: %s\n", name);
- exit (1);
- }
-
- section = elf_newscn (elf);
- section = elf_nextscn (elf, section);
- assert (section == NULL);
-
- elf_end (elf);
- close (fd);
-
- return 0;
-}
diff --git a/src/tests/rdwrmmap.c b/src/tests/rdwrmmap.c
deleted file mode 100644
index 95a4df35..00000000
--- a/src/tests/rdwrmmap.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* Copyright (C) 2006 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <errno.h>
-#include <error.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <libelf.h>
-
-int
-main (int argc __attribute__ ((unused)), char *argv[])
-{
- int fd = open (argv[1], O_RDWR);
- if (fd < 0)
- error (2, errno, "open: %s", argv[1]);
-
- if (elf_version (EV_CURRENT) == EV_NONE)
- error (1, 0, "libelf version mismatch");
-
- Elf *elf = elf_begin (fd, ELF_C_RDWR_MMAP, NULL);
- if (elf == NULL)
- error (1, 0, "elf_begin: %s", elf_errmsg (-1));
-
- if (elf_update (elf, ELF_C_WRITE) < 0)
- error (1, 0, "elf_update: %s", elf_errmsg (-1));
-
- elf_end (elf);
- close (fd);
-
- return 0;
-}
diff --git a/src/tests/rerequest_tag.c b/src/tests/rerequest_tag.c
deleted file mode 100644
index d0bf5f24..00000000
--- a/src/tests/rerequest_tag.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Copyright (C) 2011 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include ELFUTILS_HEADER(dw)
-#include <fcntl.h>
-#include <stdio.h>
-#include <string.h>
-#include <assert.h>
-
-int
-main (int argc, char **argv)
-{
- assert (argc > 1);
-
- int i = open (argv[1], O_RDONLY);
- assert (i >= 0);
-
- Dwarf *dw = dwarf_begin (i, DWARF_C_READ);
- assert (dw != NULL);
-
- Dwarf_Die die_mem, *die;
- die = dwarf_offdie (dw, 11, &die_mem);
- assert (die == &die_mem);
- assert (dwarf_tag (die) == 0);
-
- die = dwarf_offdie (dw, 11, &die_mem);
- assert (die == &die_mem);
- assert (dwarf_tag (die) == 0);
-
- return 0;
-}
diff --git a/src/tests/run-addr2line-i-lex-test.sh b/src/tests/run-addr2line-i-lex-test.sh
deleted file mode 100755
index c391fd99..00000000
--- a/src/tests/run-addr2line-i-lex-test.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# // g++ x.cpp -g -fPIC -olibx.so -shared -O3 -fvisibility=hidden
-#
-# void foobar()
-# {
-# __asm__ ( "nop" ::: );
-# }
-#
-# void foo()
-# {
-# {
-# void (*bar) () = foobar;
-# bar();
-# }
-# }
-
-testfiles testfile-lex-inlines
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-lex-inlines 0x0000000000000680 <<\EOF
-/tmp/x.cpp:5
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-lex-inlines 0x0000000000000681 <<\EOF
-/tmp/x.cpp:5
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-lex-inlines 0x0000000000000690 <<\EOF
-/tmp/x.cpp:5
-/tmp/x.cpp:12
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-lex-inlines 0x0000000000000691 <<\EOF
-/tmp/x.cpp:5
-/tmp/x.cpp:12
-EOF
-
-# All together now (plus function names).
-testrun_compare ${abs_top_builddir}/src/addr2line -f -i -e testfile-lex-inlines 0x0000000000000680 0x0000000000000681 0x0000000000000690 0x0000000000000691 <<\EOF
-_Z6foobarv
-/tmp/x.cpp:5
-_Z6foobarv
-/tmp/x.cpp:5
-foobar inlined at /tmp/x.cpp:12 in _Z3foov
-/tmp/x.cpp:5
-_Z3foov
-/tmp/x.cpp:12
-foobar inlined at /tmp/x.cpp:12 in _Z3foov
-/tmp/x.cpp:5
-_Z3foov
-/tmp/x.cpp:12
-EOF
-
-exit 0
diff --git a/src/tests/run-addr2line-i-test.sh b/src/tests/run-addr2line-i-test.sh
deleted file mode 100755
index 183916c7..00000000
--- a/src/tests/run-addr2line-i-test.sh
+++ /dev/null
@@ -1,147 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# // g++ x.cpp -g -fPIC -olibx.so -shared -O3 -fvisibility=hidden
-#
-# void foobar()
-# {
-# __asm__ ( "nop" ::: );
-# }
-#
-# void fubar()
-# {
-# __asm__ ( "nop" ::: );
-# }
-#
-# void bar()
-# {
-# foobar();
-# }
-#
-# void baz()
-# {
-# fubar();
-# }
-#
-# void foo()
-# {
-# bar();
-# baz();
-# }
-#
-# void fu()
-# {
-# __asm__ ( "nop" ::: );
-# fubar();
-# foobar();
-# }
-
-testfiles testfile-inlines
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005a0 <<\EOF
-/tmp/x.cpp:5
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005a1 <<\EOF
-/tmp/x.cpp:6
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005b0 <<\EOF
-/tmp/x.cpp:10
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005b1 <<\EOF
-/tmp/x.cpp:11
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005c0 <<\EOF
-/tmp/x.cpp:5
-/tmp/x.cpp:15
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005d0 <<\EOF
-/tmp/x.cpp:10
-/tmp/x.cpp:20
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005e0 <<\EOF
-/tmp/x.cpp:5
-/tmp/x.cpp:15
-/tmp/x.cpp:25
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005e1 <<\EOF
-/tmp/x.cpp:10
-/tmp/x.cpp:20
-/tmp/x.cpp:26
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005f1 <<\EOF
-/tmp/x.cpp:10
-/tmp/x.cpp:32
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -i -e testfile-inlines 0x00000000000005f2 <<\EOF
-/tmp/x.cpp:5
-/tmp/x.cpp:33
-EOF
-
-# All together now (plus function names).
-testrun_compare ${abs_top_builddir}/src/addr2line -f -i -e testfile-inlines 0x00000000000005a0 0x00000000000005a1 0x00000000000005b0 0x00000000000005b1 0x00000000000005c0 0x00000000000005d0 0x00000000000005e0 0x00000000000005e1 0x00000000000005f0 0x00000000000005f1 0x00000000000005f2 <<\EOF
-foobar
-/tmp/x.cpp:5
-foobar
-/tmp/x.cpp:6
-fubar
-/tmp/x.cpp:10
-fubar
-/tmp/x.cpp:11
-foobar inlined at /tmp/x.cpp:15 in _Z3barv
-/tmp/x.cpp:5
-bar
-/tmp/x.cpp:15
-fubar inlined at /tmp/x.cpp:20 in _Z3bazv
-/tmp/x.cpp:10
-baz
-/tmp/x.cpp:20
-foobar inlined at /tmp/x.cpp:15 in _Z3foov
-/tmp/x.cpp:5
-bar
-/tmp/x.cpp:15
-_Z3foov
-/tmp/x.cpp:25
-fubar inlined at /tmp/x.cpp:20 in _Z3foov
-/tmp/x.cpp:10
-baz
-/tmp/x.cpp:20
-_Z3foov
-/tmp/x.cpp:26
-_Z2fuv
-/tmp/x.cpp:31
-fubar inlined at /tmp/x.cpp:32 in _Z2fuv
-/tmp/x.cpp:10
-_Z2fuv
-/tmp/x.cpp:32
-foobar inlined at /tmp/x.cpp:33 in _Z2fuv
-/tmp/x.cpp:5
-_Z2fuv
-/tmp/x.cpp:33
-EOF
-
-exit 0
diff --git a/src/tests/run-addr2line-test.sh b/src/tests/run-addr2line-test.sh
deleted file mode 100755
index 768006bf..00000000
--- a/src/tests/run-addr2line-test.sh
+++ /dev/null
@@ -1,74 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile
-tempfiles good.out stdin.nl stdin.nl.out stdin.nonl stdin.nonl.out foo.out
-tempfiles addr2line.out
-
-cat > good.out <<\EOF
-foo
-/home/drepper/gnu/new-bu/build/ttt/f.c:3
-bar
-/home/drepper/gnu/new-bu/build/ttt/b.c:4
-foo
-/home/drepper/gnu/new-bu/build/ttt/f.c:3
-bar
-/home/drepper/gnu/new-bu/build/ttt/b.c:4
-foo
-/home/drepper/gnu/new-bu/build/ttt/f.c:3
-bar
-/home/drepper/gnu/new-bu/build/ttt/b.c:4
-foo
-/home/drepper/gnu/new-bu/build/ttt/f.c:3
-bar
-/home/drepper/gnu/new-bu/build/ttt/b.c:4
-EOF
-
-echo "# Everything on the command line"
-cat good.out | testrun_compare ${abs_top_builddir}/src/addr2line -f -e testfile 0x08048468 0x0804845c foo bar foo+0x0 bar+0x0 foo-0x0 bar-0x0
-
-cat > stdin.nl <<\EOF
-0x08048468
-0x0804845c
-foo
-bar
-foo+0x0
-bar+0x0
-foo-0x0
-bar-0x0
-EOF
-
-echo "# Everything from stdin (with newlines)."
-cat stdin.nl | testrun ${abs_top_builddir}/src/addr2line -f -e testfile > stdin.nl.out || exit 1
-cmp good.out stdin.nl.out || exit 1
-
-cat > foo.out <<\EOF
-foo
-/home/drepper/gnu/new-bu/build/ttt/f.c:3
-EOF
-
-echo "# stdin without newline address, just EOF."
-echo -n "0x08048468" | testrun ${abs_top_builddir}/src/addr2line -f -e testfile > stdin.nonl.out || exit 1
-cmp foo.out stdin.nonl.out || exit 1
-
-echo "# stdin without newline symbol, just EOF."
-echo -n "foo" | testrun ${abs_top_builddir}/src/addr2line -f -e testfile > stdin.nl.out || exit 1
-cmp foo.out stdin.nonl.out || exit 1
-
-exit 0
diff --git a/src/tests/run-addrcfi.sh b/src/tests/run-addrcfi.sh
deleted file mode 100755
index 5d33246a..00000000
--- a/src/tests/run-addrcfi.sh
+++ /dev/null
@@ -1,2650 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Note some testfiles are also used in run-allregs.sh.
-
-# Shows return address, CFA location expression and register rules
-# from ABI's default CFI program as setup by arch ebl backend hook
-# abi_cfi unless overridden by CIE and FDE program at given address.
-
-# EM_386 (function main 0x080489b8)
-testfiles testfile11
-testrun_compare ${abs_builddir}/addrcfi -e testfile11 0x080489b8 <<\EOF
-.eh_frame has 0x80489b8 => [0x80489b8, 0x80489b9):
- return address in reg8
- CFA location expression: bregx(4,4)
- integer reg0 (%eax): undefined
- integer reg1 (%ecx): undefined
- integer reg2 (%edx): undefined
- integer reg3 (%ebx): same_value
- integer reg4 (%esp): location expression: call_frame_cfa stack_value
- integer reg5 (%ebp): same_value
- integer reg6 (%esi): same_value
- integer reg7 (%edi): same_value
- integer reg8 (%eip): location expression: call_frame_cfa plus_uconst(-4)
- integer reg9 (%eflags): undefined
- integer reg10 (%trapno): undefined
- x87 reg11 (%st0): undefined
- x87 reg12 (%st1): undefined
- x87 reg13 (%st2): undefined
- x87 reg14 (%st3): undefined
- x87 reg15 (%st4): undefined
- x87 reg16 (%st5): undefined
- x87 reg17 (%st6): undefined
- x87 reg18 (%st7): undefined
- SSE reg21 (%xmm0): undefined
- SSE reg22 (%xmm1): undefined
- SSE reg23 (%xmm2): undefined
- SSE reg24 (%xmm3): undefined
- SSE reg25 (%xmm4): undefined
- SSE reg26 (%xmm5): undefined
- SSE reg27 (%xmm6): undefined
- SSE reg28 (%xmm7): undefined
- MMX reg29 (%mm0): undefined
- MMX reg30 (%mm1): undefined
- MMX reg31 (%mm2): undefined
- MMX reg32 (%mm3): undefined
- MMX reg33 (%mm4): undefined
- MMX reg34 (%mm5): undefined
- MMX reg35 (%mm6): undefined
- MMX reg36 (%mm7): undefined
- FPU-control reg37 (%fctrl): undefined
- FPU-control reg38 (%fstat): undefined
- FPU-control reg39 (%mxcsr): undefined
- segment reg40 (%es): same_value
- segment reg41 (%cs): same_value
- segment reg42 (%ss): same_value
- segment reg43 (%ds): same_value
- segment reg44 (%fs): same_value
- segment reg45 (%gs): same_value
-.debug_frame has 0x80489b8 => [0x80489b8, 0x80489b9):
- return address in reg8
- CFA location expression: bregx(4,4)
- integer reg0 (%eax): undefined
- integer reg1 (%ecx): undefined
- integer reg2 (%edx): undefined
- integer reg3 (%ebx): same_value
- integer reg4 (%esp): location expression: call_frame_cfa stack_value
- integer reg5 (%ebp): same_value
- integer reg6 (%esi): same_value
- integer reg7 (%edi): same_value
- integer reg8 (%eip): location expression: call_frame_cfa plus_uconst(-4)
- integer reg9 (%eflags): undefined
- integer reg10 (%trapno): undefined
- x87 reg11 (%st0): undefined
- x87 reg12 (%st1): undefined
- x87 reg13 (%st2): undefined
- x87 reg14 (%st3): undefined
- x87 reg15 (%st4): undefined
- x87 reg16 (%st5): undefined
- x87 reg17 (%st6): undefined
- x87 reg18 (%st7): undefined
- SSE reg21 (%xmm0): undefined
- SSE reg22 (%xmm1): undefined
- SSE reg23 (%xmm2): undefined
- SSE reg24 (%xmm3): undefined
- SSE reg25 (%xmm4): undefined
- SSE reg26 (%xmm5): undefined
- SSE reg27 (%xmm6): undefined
- SSE reg28 (%xmm7): undefined
- MMX reg29 (%mm0): undefined
- MMX reg30 (%mm1): undefined
- MMX reg31 (%mm2): undefined
- MMX reg32 (%mm3): undefined
- MMX reg33 (%mm4): undefined
- MMX reg34 (%mm5): undefined
- MMX reg35 (%mm6): undefined
- MMX reg36 (%mm7): undefined
- FPU-control reg37 (%fctrl): undefined
- FPU-control reg38 (%fstat): undefined
- FPU-control reg39 (%mxcsr): undefined
- segment reg40 (%es): same_value
- segment reg41 (%cs): same_value
- segment reg42 (%ss): same_value
- segment reg43 (%ds): same_value
- segment reg44 (%fs): same_value
- segment reg45 (%gs): same_value
-EOF
-
-# EM_X86_64 (function foo 0x00000000000009d0)
-testfiles testfile12
-testrun_compare ${abs_builddir}/addrcfi -e testfile12 0x00000000000009d0 <<\EOF
-.eh_frame has 0x9d0 => [0x9d0, 0x9d1):
- return address in reg16
- CFA location expression: bregx(7,8)
- integer reg0 (%rax): same_value
- integer reg1 (%rdx): undefined
- integer reg2 (%rcx): undefined
- integer reg3 (%rbx): undefined
- integer reg4 (%rsi): undefined
- integer reg5 (%rdi): undefined
- integer reg6 (%rbp): same_value
- integer reg7 (%rsp): location expression: call_frame_cfa stack_value
- integer reg8 (%r8): undefined
- integer reg9 (%r9): undefined
- integer reg10 (%r10): undefined
- integer reg11 (%r11): undefined
- integer reg12 (%r12): same_value
- integer reg13 (%r13): same_value
- integer reg14 (%r14): same_value
- integer reg15 (%r15): same_value
- integer reg16 (%rip): location expression: call_frame_cfa plus_uconst(-8)
- SSE reg17 (%xmm0): undefined
- SSE reg18 (%xmm1): undefined
- SSE reg19 (%xmm2): undefined
- SSE reg20 (%xmm3): undefined
- SSE reg21 (%xmm4): undefined
- SSE reg22 (%xmm5): undefined
- SSE reg23 (%xmm6): undefined
- SSE reg24 (%xmm7): undefined
- SSE reg25 (%xmm8): undefined
- SSE reg26 (%xmm9): undefined
- SSE reg27 (%xmm10): undefined
- SSE reg28 (%xmm11): undefined
- SSE reg29 (%xmm12): undefined
- SSE reg30 (%xmm13): undefined
- SSE reg31 (%xmm14): undefined
- SSE reg32 (%xmm15): undefined
- x87 reg33 (%st0): undefined
- x87 reg34 (%st1): undefined
- x87 reg35 (%st2): undefined
- x87 reg36 (%st3): undefined
- x87 reg37 (%st4): undefined
- x87 reg38 (%st5): undefined
- x87 reg39 (%st6): undefined
- x87 reg40 (%st7): undefined
- MMX reg41 (%mm0): undefined
- MMX reg42 (%mm1): undefined
- MMX reg43 (%mm2): undefined
- MMX reg44 (%mm3): undefined
- MMX reg45 (%mm4): undefined
- MMX reg46 (%mm5): undefined
- MMX reg47 (%mm6): undefined
- MMX reg48 (%mm7): undefined
- integer reg49 (%rflags): undefined
- segment reg50 (%es): undefined
- segment reg51 (%cs): undefined
- segment reg52 (%ss): undefined
- segment reg53 (%ds): undefined
- segment reg54 (%fs): undefined
- segment reg55 (%gs): undefined
- segment reg58 (%fs.base): undefined
- segment reg59 (%gs.base): undefined
- control reg62 (%tr): undefined
- control reg63 (%ldtr): undefined
- control reg64 (%mxcsr): undefined
- control reg65 (%fcw): undefined
- control reg66 (%fsw): undefined
-.debug_frame has 0x9d0 => [0x9d0, 0x9d1):
- return address in reg16
- CFA location expression: bregx(7,8)
- integer reg0 (%rax): same_value
- integer reg1 (%rdx): undefined
- integer reg2 (%rcx): undefined
- integer reg3 (%rbx): undefined
- integer reg4 (%rsi): undefined
- integer reg5 (%rdi): undefined
- integer reg6 (%rbp): same_value
- integer reg7 (%rsp): location expression: call_frame_cfa stack_value
- integer reg8 (%r8): undefined
- integer reg9 (%r9): undefined
- integer reg10 (%r10): undefined
- integer reg11 (%r11): undefined
- integer reg12 (%r12): same_value
- integer reg13 (%r13): same_value
- integer reg14 (%r14): same_value
- integer reg15 (%r15): same_value
- integer reg16 (%rip): location expression: call_frame_cfa plus_uconst(-8)
- SSE reg17 (%xmm0): undefined
- SSE reg18 (%xmm1): undefined
- SSE reg19 (%xmm2): undefined
- SSE reg20 (%xmm3): undefined
- SSE reg21 (%xmm4): undefined
- SSE reg22 (%xmm5): undefined
- SSE reg23 (%xmm6): undefined
- SSE reg24 (%xmm7): undefined
- SSE reg25 (%xmm8): undefined
- SSE reg26 (%xmm9): undefined
- SSE reg27 (%xmm10): undefined
- SSE reg28 (%xmm11): undefined
- SSE reg29 (%xmm12): undefined
- SSE reg30 (%xmm13): undefined
- SSE reg31 (%xmm14): undefined
- SSE reg32 (%xmm15): undefined
- x87 reg33 (%st0): undefined
- x87 reg34 (%st1): undefined
- x87 reg35 (%st2): undefined
- x87 reg36 (%st3): undefined
- x87 reg37 (%st4): undefined
- x87 reg38 (%st5): undefined
- x87 reg39 (%st6): undefined
- x87 reg40 (%st7): undefined
- MMX reg41 (%mm0): undefined
- MMX reg42 (%mm1): undefined
- MMX reg43 (%mm2): undefined
- MMX reg44 (%mm3): undefined
- MMX reg45 (%mm4): undefined
- MMX reg46 (%mm5): undefined
- MMX reg47 (%mm6): undefined
- MMX reg48 (%mm7): undefined
- integer reg49 (%rflags): undefined
- segment reg50 (%es): undefined
- segment reg51 (%cs): undefined
- segment reg52 (%ss): undefined
- segment reg53 (%ds): undefined
- segment reg54 (%fs): undefined
- segment reg55 (%gs): undefined
- segment reg58 (%fs.base): undefined
- segment reg59 (%gs.base): undefined
- control reg62 (%tr): undefined
- control reg63 (%ldtr): undefined
- control reg64 (%mxcsr): undefined
- control reg65 (%fcw): undefined
- control reg66 (%fsw): undefined
-EOF
-
-# EM_PPC (function bar 0x100004c0)
-# Note. Only in .debug_frame, not in .eh_frame.
-#
-# = bar.c =
-#
-# static int b1 = 1;
-# int b2 = 1;
-#
-# static int
-# foo (int a)
-# {
-# return a + b2;
-# }
-#
-# int bar (int b)
-# {
-# return b - foo (b - b1);
-# }
-#
-# = foo.c =
-#
-# extern int bar (int b);
-# extern int b2;
-#
-# int
-# main (int argc, char ** argv)
-# {
-# return bar (argc + b2);
-# }
-#
-# gcc -g -O2 -m32 -c foo.c
-# gcc -g -O2 -m32 -c bar.c
-# gcc -g -O2 m32 -o testfileppc32 foo.o bar.o
-testfiles testfileppc32
-testrun_compare ${abs_builddir}/addrcfi -e testfileppc32 0x100004c0 <<\EOF
-dwarf_cfi_addrframe (.eh_frame): no matching address range
-.debug_frame has 0x100004c0 => [0x100004c0, 0x100004d0):
- return address in reg65
- CFA location expression: bregx(1)
- integer reg0 (r0): undefined
- integer reg1 (r1): location expression: call_frame_cfa stack_value
- integer reg2 (r2): same_value
- integer reg3 (r3): undefined
- integer reg4 (r4): undefined
- integer reg5 (r5): undefined
- integer reg6 (r6): undefined
- integer reg7 (r7): undefined
- integer reg8 (r8): undefined
- integer reg9 (r9): undefined
- integer reg10 (r10): undefined
- integer reg11 (r11): undefined
- integer reg12 (r12): undefined
- integer reg13 (r13): same_value
- integer reg14 (r14): same_value
- integer reg15 (r15): same_value
- integer reg16 (r16): same_value
- integer reg17 (r17): same_value
- integer reg18 (r18): same_value
- integer reg19 (r19): same_value
- integer reg20 (r20): same_value
- integer reg21 (r21): same_value
- integer reg22 (r22): same_value
- integer reg23 (r23): same_value
- integer reg24 (r24): same_value
- integer reg25 (r25): same_value
- integer reg26 (r26): same_value
- integer reg27 (r27): same_value
- integer reg28 (r28): same_value
- integer reg29 (r29): same_value
- integer reg30 (r30): same_value
- integer reg31 (r31): same_value
- FPU reg32 (f0): undefined
- FPU reg33 (f1): undefined
- FPU reg34 (f2): undefined
- FPU reg35 (f3): undefined
- FPU reg36 (f4): undefined
- FPU reg37 (f5): undefined
- FPU reg38 (f6): undefined
- FPU reg39 (f7): undefined
- FPU reg40 (f8): undefined
- FPU reg41 (f9): undefined
- FPU reg42 (f10): undefined
- FPU reg43 (f11): undefined
- FPU reg44 (f12): undefined
- FPU reg45 (f13): undefined
- FPU reg46 (f14): undefined
- FPU reg47 (f15): undefined
- FPU reg48 (f16): undefined
- FPU reg49 (f17): undefined
- FPU reg50 (f18): undefined
- FPU reg51 (f19): undefined
- FPU reg52 (f20): undefined
- FPU reg53 (f21): undefined
- FPU reg54 (f22): undefined
- FPU reg55 (f23): undefined
- FPU reg56 (f24): undefined
- FPU reg57 (f25): undefined
- FPU reg58 (f26): undefined
- FPU reg59 (f27): undefined
- FPU reg60 (f28): undefined
- FPU reg61 (f29): undefined
- FPU reg62 (f30): undefined
- FPU reg63 (f31): undefined
- integer reg64 (cr): undefined
- FPU reg65 (fpscr): same_value
- integer reg66 (msr): undefined
- vector reg67 (vscr): undefined
- privileged reg70 (sr0): undefined
- privileged reg71 (sr1): undefined
- privileged reg72 (sr2): undefined
- privileged reg73 (sr3): undefined
- privileged reg74 (sr4): undefined
- privileged reg75 (sr5): undefined
- privileged reg76 (sr6): undefined
- privileged reg77 (sr7): undefined
- privileged reg78 (sr8): undefined
- privileged reg79 (sr9): undefined
- privileged reg80 (sr10): undefined
- privileged reg81 (sr11): undefined
- privileged reg82 (sr12): undefined
- privileged reg83 (sr13): undefined
- privileged reg84 (sr14): undefined
- privileged reg85 (sr15): undefined
- privileged reg100 (mq): undefined
- privileged reg101 (xer): undefined
- privileged reg102 (spr2): undefined
- privileged reg103 (spr3): undefined
- privileged reg104 (spr4): undefined
- privileged reg105 (spr5): undefined
- privileged reg106 (spr6): undefined
- privileged reg107 (spr7): undefined
- privileged reg108 (lr): undefined
- privileged reg109 (ctr): undefined
- privileged reg110 (spr10): undefined
- privileged reg111 (spr11): undefined
- privileged reg112 (spr12): undefined
- privileged reg113 (spr13): undefined
- privileged reg114 (spr14): undefined
- privileged reg115 (spr15): undefined
- privileged reg116 (spr16): undefined
- privileged reg117 (spr17): undefined
- privileged reg118 (dsisr): undefined
- privileged reg119 (dar): undefined
- privileged reg120 (spr20): undefined
- privileged reg121 (spr21): undefined
- privileged reg122 (dec): undefined
- privileged reg123 (spr23): undefined
- privileged reg124 (spr24): undefined
- privileged reg125 (spr25): undefined
- privileged reg126 (spr26): undefined
- privileged reg127 (spr27): undefined
- privileged reg128 (spr28): undefined
- privileged reg129 (spr29): undefined
- privileged reg130 (spr30): undefined
- privileged reg131 (spr31): undefined
- privileged reg132 (spr32): undefined
- privileged reg133 (spr33): undefined
- privileged reg134 (spr34): undefined
- privileged reg135 (spr35): undefined
- privileged reg136 (spr36): undefined
- privileged reg137 (spr37): undefined
- privileged reg138 (spr38): undefined
- privileged reg139 (spr39): undefined
- privileged reg140 (spr40): undefined
- privileged reg141 (spr41): undefined
- privileged reg142 (spr42): undefined
- privileged reg143 (spr43): undefined
- privileged reg144 (spr44): undefined
- privileged reg145 (spr45): undefined
- privileged reg146 (spr46): undefined
- privileged reg147 (spr47): undefined
- privileged reg148 (spr48): undefined
- privileged reg149 (spr49): undefined
- privileged reg150 (spr50): undefined
- privileged reg151 (spr51): undefined
- privileged reg152 (spr52): undefined
- privileged reg153 (spr53): undefined
- privileged reg154 (spr54): undefined
- privileged reg155 (spr55): undefined
- privileged reg156 (spr56): undefined
- privileged reg157 (spr57): undefined
- privileged reg158 (spr58): undefined
- privileged reg159 (spr59): undefined
- privileged reg160 (spr60): undefined
- privileged reg161 (spr61): undefined
- privileged reg162 (spr62): undefined
- privileged reg163 (spr63): undefined
- privileged reg164 (spr64): undefined
- privileged reg165 (spr65): undefined
- privileged reg166 (spr66): undefined
- privileged reg167 (spr67): undefined
- privileged reg168 (spr68): undefined
- privileged reg169 (spr69): undefined
- privileged reg170 (spr70): undefined
- privileged reg171 (spr71): undefined
- privileged reg172 (spr72): undefined
- privileged reg173 (spr73): undefined
- privileged reg174 (spr74): undefined
- privileged reg175 (spr75): undefined
- privileged reg176 (spr76): undefined
- privileged reg177 (spr77): undefined
- privileged reg178 (spr78): undefined
- privileged reg179 (spr79): undefined
- privileged reg180 (spr80): undefined
- privileged reg181 (spr81): undefined
- privileged reg182 (spr82): undefined
- privileged reg183 (spr83): undefined
- privileged reg184 (spr84): undefined
- privileged reg185 (spr85): undefined
- privileged reg186 (spr86): undefined
- privileged reg187 (spr87): undefined
- privileged reg188 (spr88): undefined
- privileged reg189 (spr89): undefined
- privileged reg190 (spr90): undefined
- privileged reg191 (spr91): undefined
- privileged reg192 (spr92): undefined
- privileged reg193 (spr93): undefined
- privileged reg194 (spr94): undefined
- privileged reg195 (spr95): undefined
- privileged reg196 (spr96): undefined
- privileged reg197 (spr97): undefined
- privileged reg198 (spr98): undefined
- privileged reg199 (spr99): undefined
- privileged reg200 (spr100): undefined
- privileged reg201 (spr101): undefined
- privileged reg202 (spr102): undefined
- privileged reg203 (spr103): undefined
- privileged reg204 (spr104): undefined
- privileged reg205 (spr105): undefined
- privileged reg206 (spr106): undefined
- privileged reg207 (spr107): undefined
- privileged reg208 (spr108): undefined
- privileged reg209 (spr109): undefined
- privileged reg210 (spr110): undefined
- privileged reg211 (spr111): undefined
- privileged reg212 (spr112): undefined
- privileged reg213 (spr113): undefined
- privileged reg214 (spr114): undefined
- privileged reg215 (spr115): undefined
- privileged reg216 (spr116): undefined
- privileged reg217 (spr117): undefined
- privileged reg218 (spr118): undefined
- privileged reg219 (spr119): undefined
- privileged reg220 (spr120): undefined
- privileged reg221 (spr121): undefined
- privileged reg222 (spr122): undefined
- privileged reg223 (spr123): undefined
- privileged reg224 (spr124): undefined
- privileged reg225 (spr125): undefined
- privileged reg226 (spr126): undefined
- privileged reg227 (spr127): undefined
- privileged reg228 (spr128): undefined
- privileged reg229 (spr129): undefined
- privileged reg230 (spr130): undefined
- privileged reg231 (spr131): undefined
- privileged reg232 (spr132): undefined
- privileged reg233 (spr133): undefined
- privileged reg234 (spr134): undefined
- privileged reg235 (spr135): undefined
- privileged reg236 (spr136): undefined
- privileged reg237 (spr137): undefined
- privileged reg238 (spr138): undefined
- privileged reg239 (spr139): undefined
- privileged reg240 (spr140): undefined
- privileged reg241 (spr141): undefined
- privileged reg242 (spr142): undefined
- privileged reg243 (spr143): undefined
- privileged reg244 (spr144): undefined
- privileged reg245 (spr145): undefined
- privileged reg246 (spr146): undefined
- privileged reg247 (spr147): undefined
- privileged reg248 (spr148): undefined
- privileged reg249 (spr149): undefined
- privileged reg250 (spr150): undefined
- privileged reg251 (spr151): undefined
- privileged reg252 (spr152): undefined
- privileged reg253 (spr153): undefined
- privileged reg254 (spr154): undefined
- privileged reg255 (spr155): undefined
- privileged reg256 (spr156): undefined
- privileged reg257 (spr157): undefined
- privileged reg258 (spr158): undefined
- privileged reg259 (spr159): undefined
- privileged reg260 (spr160): undefined
- privileged reg261 (spr161): undefined
- privileged reg262 (spr162): undefined
- privileged reg263 (spr163): undefined
- privileged reg264 (spr164): undefined
- privileged reg265 (spr165): undefined
- privileged reg266 (spr166): undefined
- privileged reg267 (spr167): undefined
- privileged reg268 (spr168): undefined
- privileged reg269 (spr169): undefined
- privileged reg270 (spr170): undefined
- privileged reg271 (spr171): undefined
- privileged reg272 (spr172): undefined
- privileged reg273 (spr173): undefined
- privileged reg274 (spr174): undefined
- privileged reg275 (spr175): undefined
- privileged reg276 (spr176): undefined
- privileged reg277 (spr177): undefined
- privileged reg278 (spr178): undefined
- privileged reg279 (spr179): undefined
- privileged reg280 (spr180): undefined
- privileged reg281 (spr181): undefined
- privileged reg282 (spr182): undefined
- privileged reg283 (spr183): undefined
- privileged reg284 (spr184): undefined
- privileged reg285 (spr185): undefined
- privileged reg286 (spr186): undefined
- privileged reg287 (spr187): undefined
- privileged reg288 (spr188): undefined
- privileged reg289 (spr189): undefined
- privileged reg290 (spr190): undefined
- privileged reg291 (spr191): undefined
- privileged reg292 (spr192): undefined
- privileged reg293 (spr193): undefined
- privileged reg294 (spr194): undefined
- privileged reg295 (spr195): undefined
- privileged reg296 (spr196): undefined
- privileged reg297 (spr197): undefined
- privileged reg298 (spr198): undefined
- privileged reg299 (spr199): undefined
- privileged reg300 (spr200): undefined
- privileged reg301 (spr201): undefined
- privileged reg302 (spr202): undefined
- privileged reg303 (spr203): undefined
- privileged reg304 (spr204): undefined
- privileged reg305 (spr205): undefined
- privileged reg306 (spr206): undefined
- privileged reg307 (spr207): undefined
- privileged reg308 (spr208): undefined
- privileged reg309 (spr209): undefined
- privileged reg310 (spr210): undefined
- privileged reg311 (spr211): undefined
- privileged reg312 (spr212): undefined
- privileged reg313 (spr213): undefined
- privileged reg314 (spr214): undefined
- privileged reg315 (spr215): undefined
- privileged reg316 (spr216): undefined
- privileged reg317 (spr217): undefined
- privileged reg318 (spr218): undefined
- privileged reg319 (spr219): undefined
- privileged reg320 (spr220): undefined
- privileged reg321 (spr221): undefined
- privileged reg322 (spr222): undefined
- privileged reg323 (spr223): undefined
- privileged reg324 (spr224): undefined
- privileged reg325 (spr225): undefined
- privileged reg326 (spr226): undefined
- privileged reg327 (spr227): undefined
- privileged reg328 (spr228): undefined
- privileged reg329 (spr229): undefined
- privileged reg330 (spr230): undefined
- privileged reg331 (spr231): undefined
- privileged reg332 (spr232): undefined
- privileged reg333 (spr233): undefined
- privileged reg334 (spr234): undefined
- privileged reg335 (spr235): undefined
- privileged reg336 (spr236): undefined
- privileged reg337 (spr237): undefined
- privileged reg338 (spr238): undefined
- privileged reg339 (spr239): undefined
- privileged reg340 (spr240): undefined
- privileged reg341 (spr241): undefined
- privileged reg342 (spr242): undefined
- privileged reg343 (spr243): undefined
- privileged reg344 (spr244): undefined
- privileged reg345 (spr245): undefined
- privileged reg346 (spr246): undefined
- privileged reg347 (spr247): undefined
- privileged reg348 (spr248): undefined
- privileged reg349 (spr249): undefined
- privileged reg350 (spr250): undefined
- privileged reg351 (spr251): undefined
- privileged reg352 (spr252): undefined
- privileged reg353 (spr253): undefined
- privileged reg354 (spr254): undefined
- privileged reg355 (spr255): undefined
- vector reg356 (vrsave): undefined
- privileged reg357 (spr257): undefined
- privileged reg358 (spr258): undefined
- privileged reg359 (spr259): undefined
- privileged reg360 (spr260): undefined
- privileged reg361 (spr261): undefined
- privileged reg362 (spr262): undefined
- privileged reg363 (spr263): undefined
- privileged reg364 (spr264): undefined
- privileged reg365 (spr265): undefined
- privileged reg366 (spr266): undefined
- privileged reg367 (spr267): undefined
- privileged reg368 (spr268): undefined
- privileged reg369 (spr269): undefined
- privileged reg370 (spr270): undefined
- privileged reg371 (spr271): undefined
- privileged reg372 (spr272): undefined
- privileged reg373 (spr273): undefined
- privileged reg374 (spr274): undefined
- privileged reg375 (spr275): undefined
- privileged reg376 (spr276): undefined
- privileged reg377 (spr277): undefined
- privileged reg378 (spr278): undefined
- privileged reg379 (spr279): undefined
- privileged reg380 (spr280): undefined
- privileged reg381 (spr281): undefined
- privileged reg382 (spr282): undefined
- privileged reg383 (spr283): undefined
- privileged reg384 (spr284): undefined
- privileged reg385 (spr285): undefined
- privileged reg386 (spr286): undefined
- privileged reg387 (spr287): undefined
- privileged reg388 (spr288): undefined
- privileged reg389 (spr289): undefined
- privileged reg390 (spr290): undefined
- privileged reg391 (spr291): undefined
- privileged reg392 (spr292): undefined
- privileged reg393 (spr293): undefined
- privileged reg394 (spr294): undefined
- privileged reg395 (spr295): undefined
- privileged reg396 (spr296): undefined
- privileged reg397 (spr297): undefined
- privileged reg398 (spr298): undefined
- privileged reg399 (spr299): undefined
- privileged reg400 (spr300): undefined
- privileged reg401 (spr301): undefined
- privileged reg402 (spr302): undefined
- privileged reg403 (spr303): undefined
- privileged reg404 (spr304): undefined
- privileged reg405 (spr305): undefined
- privileged reg406 (spr306): undefined
- privileged reg407 (spr307): undefined
- privileged reg408 (spr308): undefined
- privileged reg409 (spr309): undefined
- privileged reg410 (spr310): undefined
- privileged reg411 (spr311): undefined
- privileged reg412 (spr312): undefined
- privileged reg413 (spr313): undefined
- privileged reg414 (spr314): undefined
- privileged reg415 (spr315): undefined
- privileged reg416 (spr316): undefined
- privileged reg417 (spr317): undefined
- privileged reg418 (spr318): undefined
- privileged reg419 (spr319): undefined
- privileged reg420 (spr320): undefined
- privileged reg421 (spr321): undefined
- privileged reg422 (spr322): undefined
- privileged reg423 (spr323): undefined
- privileged reg424 (spr324): undefined
- privileged reg425 (spr325): undefined
- privileged reg426 (spr326): undefined
- privileged reg427 (spr327): undefined
- privileged reg428 (spr328): undefined
- privileged reg429 (spr329): undefined
- privileged reg430 (spr330): undefined
- privileged reg431 (spr331): undefined
- privileged reg432 (spr332): undefined
- privileged reg433 (spr333): undefined
- privileged reg434 (spr334): undefined
- privileged reg435 (spr335): undefined
- privileged reg436 (spr336): undefined
- privileged reg437 (spr337): undefined
- privileged reg438 (spr338): undefined
- privileged reg439 (spr339): undefined
- privileged reg440 (spr340): undefined
- privileged reg441 (spr341): undefined
- privileged reg442 (spr342): undefined
- privileged reg443 (spr343): undefined
- privileged reg444 (spr344): undefined
- privileged reg445 (spr345): undefined
- privileged reg446 (spr346): undefined
- privileged reg447 (spr347): undefined
- privileged reg448 (spr348): undefined
- privileged reg449 (spr349): undefined
- privileged reg450 (spr350): undefined
- privileged reg451 (spr351): undefined
- privileged reg452 (spr352): undefined
- privileged reg453 (spr353): undefined
- privileged reg454 (spr354): undefined
- privileged reg455 (spr355): undefined
- privileged reg456 (spr356): undefined
- privileged reg457 (spr357): undefined
- privileged reg458 (spr358): undefined
- privileged reg459 (spr359): undefined
- privileged reg460 (spr360): undefined
- privileged reg461 (spr361): undefined
- privileged reg462 (spr362): undefined
- privileged reg463 (spr363): undefined
- privileged reg464 (spr364): undefined
- privileged reg465 (spr365): undefined
- privileged reg466 (spr366): undefined
- privileged reg467 (spr367): undefined
- privileged reg468 (spr368): undefined
- privileged reg469 (spr369): undefined
- privileged reg470 (spr370): undefined
- privileged reg471 (spr371): undefined
- privileged reg472 (spr372): undefined
- privileged reg473 (spr373): undefined
- privileged reg474 (spr374): undefined
- privileged reg475 (spr375): undefined
- privileged reg476 (spr376): undefined
- privileged reg477 (spr377): undefined
- privileged reg478 (spr378): undefined
- privileged reg479 (spr379): undefined
- privileged reg480 (spr380): undefined
- privileged reg481 (spr381): undefined
- privileged reg482 (spr382): undefined
- privileged reg483 (spr383): undefined
- privileged reg484 (spr384): undefined
- privileged reg485 (spr385): undefined
- privileged reg486 (spr386): undefined
- privileged reg487 (spr387): undefined
- privileged reg488 (spr388): undefined
- privileged reg489 (spr389): undefined
- privileged reg490 (spr390): undefined
- privileged reg491 (spr391): undefined
- privileged reg492 (spr392): undefined
- privileged reg493 (spr393): undefined
- privileged reg494 (spr394): undefined
- privileged reg495 (spr395): undefined
- privileged reg496 (spr396): undefined
- privileged reg497 (spr397): undefined
- privileged reg498 (spr398): undefined
- privileged reg499 (spr399): undefined
- privileged reg500 (spr400): undefined
- privileged reg501 (spr401): undefined
- privileged reg502 (spr402): undefined
- privileged reg503 (spr403): undefined
- privileged reg504 (spr404): undefined
- privileged reg505 (spr405): undefined
- privileged reg506 (spr406): undefined
- privileged reg507 (spr407): undefined
- privileged reg508 (spr408): undefined
- privileged reg509 (spr409): undefined
- privileged reg510 (spr410): undefined
- privileged reg511 (spr411): undefined
- privileged reg512 (spr412): undefined
- privileged reg513 (spr413): undefined
- privileged reg514 (spr414): undefined
- privileged reg515 (spr415): undefined
- privileged reg516 (spr416): undefined
- privileged reg517 (spr417): undefined
- privileged reg518 (spr418): undefined
- privileged reg519 (spr419): undefined
- privileged reg520 (spr420): undefined
- privileged reg521 (spr421): undefined
- privileged reg522 (spr422): undefined
- privileged reg523 (spr423): undefined
- privileged reg524 (spr424): undefined
- privileged reg525 (spr425): undefined
- privileged reg526 (spr426): undefined
- privileged reg527 (spr427): undefined
- privileged reg528 (spr428): undefined
- privileged reg529 (spr429): undefined
- privileged reg530 (spr430): undefined
- privileged reg531 (spr431): undefined
- privileged reg532 (spr432): undefined
- privileged reg533 (spr433): undefined
- privileged reg534 (spr434): undefined
- privileged reg535 (spr435): undefined
- privileged reg536 (spr436): undefined
- privileged reg537 (spr437): undefined
- privileged reg538 (spr438): undefined
- privileged reg539 (spr439): undefined
- privileged reg540 (spr440): undefined
- privileged reg541 (spr441): undefined
- privileged reg542 (spr442): undefined
- privileged reg543 (spr443): undefined
- privileged reg544 (spr444): undefined
- privileged reg545 (spr445): undefined
- privileged reg546 (spr446): undefined
- privileged reg547 (spr447): undefined
- privileged reg548 (spr448): undefined
- privileged reg549 (spr449): undefined
- privileged reg550 (spr450): undefined
- privileged reg551 (spr451): undefined
- privileged reg552 (spr452): undefined
- privileged reg553 (spr453): undefined
- privileged reg554 (spr454): undefined
- privileged reg555 (spr455): undefined
- privileged reg556 (spr456): undefined
- privileged reg557 (spr457): undefined
- privileged reg558 (spr458): undefined
- privileged reg559 (spr459): undefined
- privileged reg560 (spr460): undefined
- privileged reg561 (spr461): undefined
- privileged reg562 (spr462): undefined
- privileged reg563 (spr463): undefined
- privileged reg564 (spr464): undefined
- privileged reg565 (spr465): undefined
- privileged reg566 (spr466): undefined
- privileged reg567 (spr467): undefined
- privileged reg568 (spr468): undefined
- privileged reg569 (spr469): undefined
- privileged reg570 (spr470): undefined
- privileged reg571 (spr471): undefined
- privileged reg572 (spr472): undefined
- privileged reg573 (spr473): undefined
- privileged reg574 (spr474): undefined
- privileged reg575 (spr475): undefined
- privileged reg576 (spr476): undefined
- privileged reg577 (spr477): undefined
- privileged reg578 (spr478): undefined
- privileged reg579 (spr479): undefined
- privileged reg580 (spr480): undefined
- privileged reg581 (spr481): undefined
- privileged reg582 (spr482): undefined
- privileged reg583 (spr483): undefined
- privileged reg584 (spr484): undefined
- privileged reg585 (spr485): undefined
- privileged reg586 (spr486): undefined
- privileged reg587 (spr487): undefined
- privileged reg588 (spr488): undefined
- privileged reg589 (spr489): undefined
- privileged reg590 (spr490): undefined
- privileged reg591 (spr491): undefined
- privileged reg592 (spr492): undefined
- privileged reg593 (spr493): undefined
- privileged reg594 (spr494): undefined
- privileged reg595 (spr495): undefined
- privileged reg596 (spr496): undefined
- privileged reg597 (spr497): undefined
- privileged reg598 (spr498): undefined
- privileged reg599 (spr499): undefined
- privileged reg600 (spr500): undefined
- privileged reg601 (spr501): undefined
- privileged reg602 (spr502): undefined
- privileged reg603 (spr503): undefined
- privileged reg604 (spr504): undefined
- privileged reg605 (spr505): undefined
- privileged reg606 (spr506): undefined
- privileged reg607 (spr507): undefined
- privileged reg608 (spr508): undefined
- privileged reg609 (spr509): undefined
- privileged reg610 (spr510): undefined
- privileged reg611 (spr511): undefined
- vector reg612 (spefscr): undefined
- privileged reg613 (spr513): undefined
- privileged reg614 (spr514): undefined
- privileged reg615 (spr515): undefined
- privileged reg616 (spr516): undefined
- privileged reg617 (spr517): undefined
- privileged reg618 (spr518): undefined
- privileged reg619 (spr519): undefined
- privileged reg620 (spr520): undefined
- privileged reg621 (spr521): undefined
- privileged reg622 (spr522): undefined
- privileged reg623 (spr523): undefined
- privileged reg624 (spr524): undefined
- privileged reg625 (spr525): undefined
- privileged reg626 (spr526): undefined
- privileged reg627 (spr527): undefined
- privileged reg628 (spr528): undefined
- privileged reg629 (spr529): undefined
- privileged reg630 (spr530): undefined
- privileged reg631 (spr531): undefined
- privileged reg632 (spr532): undefined
- privileged reg633 (spr533): undefined
- privileged reg634 (spr534): undefined
- privileged reg635 (spr535): undefined
- privileged reg636 (spr536): undefined
- privileged reg637 (spr537): undefined
- privileged reg638 (spr538): undefined
- privileged reg639 (spr539): undefined
- privileged reg640 (spr540): undefined
- privileged reg641 (spr541): undefined
- privileged reg642 (spr542): undefined
- privileged reg643 (spr543): undefined
- privileged reg644 (spr544): undefined
- privileged reg645 (spr545): undefined
- privileged reg646 (spr546): undefined
- privileged reg647 (spr547): undefined
- privileged reg648 (spr548): undefined
- privileged reg649 (spr549): undefined
- privileged reg650 (spr550): undefined
- privileged reg651 (spr551): undefined
- privileged reg652 (spr552): undefined
- privileged reg653 (spr553): undefined
- privileged reg654 (spr554): undefined
- privileged reg655 (spr555): undefined
- privileged reg656 (spr556): undefined
- privileged reg657 (spr557): undefined
- privileged reg658 (spr558): undefined
- privileged reg659 (spr559): undefined
- privileged reg660 (spr560): undefined
- privileged reg661 (spr561): undefined
- privileged reg662 (spr562): undefined
- privileged reg663 (spr563): undefined
- privileged reg664 (spr564): undefined
- privileged reg665 (spr565): undefined
- privileged reg666 (spr566): undefined
- privileged reg667 (spr567): undefined
- privileged reg668 (spr568): undefined
- privileged reg669 (spr569): undefined
- privileged reg670 (spr570): undefined
- privileged reg671 (spr571): undefined
- privileged reg672 (spr572): undefined
- privileged reg673 (spr573): undefined
- privileged reg674 (spr574): undefined
- privileged reg675 (spr575): undefined
- privileged reg676 (spr576): undefined
- privileged reg677 (spr577): undefined
- privileged reg678 (spr578): undefined
- privileged reg679 (spr579): undefined
- privileged reg680 (spr580): undefined
- privileged reg681 (spr581): undefined
- privileged reg682 (spr582): undefined
- privileged reg683 (spr583): undefined
- privileged reg684 (spr584): undefined
- privileged reg685 (spr585): undefined
- privileged reg686 (spr586): undefined
- privileged reg687 (spr587): undefined
- privileged reg688 (spr588): undefined
- privileged reg689 (spr589): undefined
- privileged reg690 (spr590): undefined
- privileged reg691 (spr591): undefined
- privileged reg692 (spr592): undefined
- privileged reg693 (spr593): undefined
- privileged reg694 (spr594): undefined
- privileged reg695 (spr595): undefined
- privileged reg696 (spr596): undefined
- privileged reg697 (spr597): undefined
- privileged reg698 (spr598): undefined
- privileged reg699 (spr599): undefined
- privileged reg700 (spr600): undefined
- privileged reg701 (spr601): undefined
- privileged reg702 (spr602): undefined
- privileged reg703 (spr603): undefined
- privileged reg704 (spr604): undefined
- privileged reg705 (spr605): undefined
- privileged reg706 (spr606): undefined
- privileged reg707 (spr607): undefined
- privileged reg708 (spr608): undefined
- privileged reg709 (spr609): undefined
- privileged reg710 (spr610): undefined
- privileged reg711 (spr611): undefined
- privileged reg712 (spr612): undefined
- privileged reg713 (spr613): undefined
- privileged reg714 (spr614): undefined
- privileged reg715 (spr615): undefined
- privileged reg716 (spr616): undefined
- privileged reg717 (spr617): undefined
- privileged reg718 (spr618): undefined
- privileged reg719 (spr619): undefined
- privileged reg720 (spr620): undefined
- privileged reg721 (spr621): undefined
- privileged reg722 (spr622): undefined
- privileged reg723 (spr623): undefined
- privileged reg724 (spr624): undefined
- privileged reg725 (spr625): undefined
- privileged reg726 (spr626): undefined
- privileged reg727 (spr627): undefined
- privileged reg728 (spr628): undefined
- privileged reg729 (spr629): undefined
- privileged reg730 (spr630): undefined
- privileged reg731 (spr631): undefined
- privileged reg732 (spr632): undefined
- privileged reg733 (spr633): undefined
- privileged reg734 (spr634): undefined
- privileged reg735 (spr635): undefined
- privileged reg736 (spr636): undefined
- privileged reg737 (spr637): undefined
- privileged reg738 (spr638): undefined
- privileged reg739 (spr639): undefined
- privileged reg740 (spr640): undefined
- privileged reg741 (spr641): undefined
- privileged reg742 (spr642): undefined
- privileged reg743 (spr643): undefined
- privileged reg744 (spr644): undefined
- privileged reg745 (spr645): undefined
- privileged reg746 (spr646): undefined
- privileged reg747 (spr647): undefined
- privileged reg748 (spr648): undefined
- privileged reg749 (spr649): undefined
- privileged reg750 (spr650): undefined
- privileged reg751 (spr651): undefined
- privileged reg752 (spr652): undefined
- privileged reg753 (spr653): undefined
- privileged reg754 (spr654): undefined
- privileged reg755 (spr655): undefined
- privileged reg756 (spr656): undefined
- privileged reg757 (spr657): undefined
- privileged reg758 (spr658): undefined
- privileged reg759 (spr659): undefined
- privileged reg760 (spr660): undefined
- privileged reg761 (spr661): undefined
- privileged reg762 (spr662): undefined
- privileged reg763 (spr663): undefined
- privileged reg764 (spr664): undefined
- privileged reg765 (spr665): undefined
- privileged reg766 (spr666): undefined
- privileged reg767 (spr667): undefined
- privileged reg768 (spr668): undefined
- privileged reg769 (spr669): undefined
- privileged reg770 (spr670): undefined
- privileged reg771 (spr671): undefined
- privileged reg772 (spr672): undefined
- privileged reg773 (spr673): undefined
- privileged reg774 (spr674): undefined
- privileged reg775 (spr675): undefined
- privileged reg776 (spr676): undefined
- privileged reg777 (spr677): undefined
- privileged reg778 (spr678): undefined
- privileged reg779 (spr679): undefined
- privileged reg780 (spr680): undefined
- privileged reg781 (spr681): undefined
- privileged reg782 (spr682): undefined
- privileged reg783 (spr683): undefined
- privileged reg784 (spr684): undefined
- privileged reg785 (spr685): undefined
- privileged reg786 (spr686): undefined
- privileged reg787 (spr687): undefined
- privileged reg788 (spr688): undefined
- privileged reg789 (spr689): undefined
- privileged reg790 (spr690): undefined
- privileged reg791 (spr691): undefined
- privileged reg792 (spr692): undefined
- privileged reg793 (spr693): undefined
- privileged reg794 (spr694): undefined
- privileged reg795 (spr695): undefined
- privileged reg796 (spr696): undefined
- privileged reg797 (spr697): undefined
- privileged reg798 (spr698): undefined
- privileged reg799 (spr699): undefined
- privileged reg800 (spr700): undefined
- privileged reg801 (spr701): undefined
- privileged reg802 (spr702): undefined
- privileged reg803 (spr703): undefined
- privileged reg804 (spr704): undefined
- privileged reg805 (spr705): undefined
- privileged reg806 (spr706): undefined
- privileged reg807 (spr707): undefined
- privileged reg808 (spr708): undefined
- privileged reg809 (spr709): undefined
- privileged reg810 (spr710): undefined
- privileged reg811 (spr711): undefined
- privileged reg812 (spr712): undefined
- privileged reg813 (spr713): undefined
- privileged reg814 (spr714): undefined
- privileged reg815 (spr715): undefined
- privileged reg816 (spr716): undefined
- privileged reg817 (spr717): undefined
- privileged reg818 (spr718): undefined
- privileged reg819 (spr719): undefined
- privileged reg820 (spr720): undefined
- privileged reg821 (spr721): undefined
- privileged reg822 (spr722): undefined
- privileged reg823 (spr723): undefined
- privileged reg824 (spr724): undefined
- privileged reg825 (spr725): undefined
- privileged reg826 (spr726): undefined
- privileged reg827 (spr727): undefined
- privileged reg828 (spr728): undefined
- privileged reg829 (spr729): undefined
- privileged reg830 (spr730): undefined
- privileged reg831 (spr731): undefined
- privileged reg832 (spr732): undefined
- privileged reg833 (spr733): undefined
- privileged reg834 (spr734): undefined
- privileged reg835 (spr735): undefined
- privileged reg836 (spr736): undefined
- privileged reg837 (spr737): undefined
- privileged reg838 (spr738): undefined
- privileged reg839 (spr739): undefined
- privileged reg840 (spr740): undefined
- privileged reg841 (spr741): undefined
- privileged reg842 (spr742): undefined
- privileged reg843 (spr743): undefined
- privileged reg844 (spr744): undefined
- privileged reg845 (spr745): undefined
- privileged reg846 (spr746): undefined
- privileged reg847 (spr747): undefined
- privileged reg848 (spr748): undefined
- privileged reg849 (spr749): undefined
- privileged reg850 (spr750): undefined
- privileged reg851 (spr751): undefined
- privileged reg852 (spr752): undefined
- privileged reg853 (spr753): undefined
- privileged reg854 (spr754): undefined
- privileged reg855 (spr755): undefined
- privileged reg856 (spr756): undefined
- privileged reg857 (spr757): undefined
- privileged reg858 (spr758): undefined
- privileged reg859 (spr759): undefined
- privileged reg860 (spr760): undefined
- privileged reg861 (spr761): undefined
- privileged reg862 (spr762): undefined
- privileged reg863 (spr763): undefined
- privileged reg864 (spr764): undefined
- privileged reg865 (spr765): undefined
- privileged reg866 (spr766): undefined
- privileged reg867 (spr767): undefined
- privileged reg868 (spr768): undefined
- privileged reg869 (spr769): undefined
- privileged reg870 (spr770): undefined
- privileged reg871 (spr771): undefined
- privileged reg872 (spr772): undefined
- privileged reg873 (spr773): undefined
- privileged reg874 (spr774): undefined
- privileged reg875 (spr775): undefined
- privileged reg876 (spr776): undefined
- privileged reg877 (spr777): undefined
- privileged reg878 (spr778): undefined
- privileged reg879 (spr779): undefined
- privileged reg880 (spr780): undefined
- privileged reg881 (spr781): undefined
- privileged reg882 (spr782): undefined
- privileged reg883 (spr783): undefined
- privileged reg884 (spr784): undefined
- privileged reg885 (spr785): undefined
- privileged reg886 (spr786): undefined
- privileged reg887 (spr787): undefined
- privileged reg888 (spr788): undefined
- privileged reg889 (spr789): undefined
- privileged reg890 (spr790): undefined
- privileged reg891 (spr791): undefined
- privileged reg892 (spr792): undefined
- privileged reg893 (spr793): undefined
- privileged reg894 (spr794): undefined
- privileged reg895 (spr795): undefined
- privileged reg896 (spr796): undefined
- privileged reg897 (spr797): undefined
- privileged reg898 (spr798): undefined
- privileged reg899 (spr799): undefined
- privileged reg900 (spr800): undefined
- privileged reg901 (spr801): undefined
- privileged reg902 (spr802): undefined
- privileged reg903 (spr803): undefined
- privileged reg904 (spr804): undefined
- privileged reg905 (spr805): undefined
- privileged reg906 (spr806): undefined
- privileged reg907 (spr807): undefined
- privileged reg908 (spr808): undefined
- privileged reg909 (spr809): undefined
- privileged reg910 (spr810): undefined
- privileged reg911 (spr811): undefined
- privileged reg912 (spr812): undefined
- privileged reg913 (spr813): undefined
- privileged reg914 (spr814): undefined
- privileged reg915 (spr815): undefined
- privileged reg916 (spr816): undefined
- privileged reg917 (spr817): undefined
- privileged reg918 (spr818): undefined
- privileged reg919 (spr819): undefined
- privileged reg920 (spr820): undefined
- privileged reg921 (spr821): undefined
- privileged reg922 (spr822): undefined
- privileged reg923 (spr823): undefined
- privileged reg924 (spr824): undefined
- privileged reg925 (spr825): undefined
- privileged reg926 (spr826): undefined
- privileged reg927 (spr827): undefined
- privileged reg928 (spr828): undefined
- privileged reg929 (spr829): undefined
- privileged reg930 (spr830): undefined
- privileged reg931 (spr831): undefined
- privileged reg932 (spr832): undefined
- privileged reg933 (spr833): undefined
- privileged reg934 (spr834): undefined
- privileged reg935 (spr835): undefined
- privileged reg936 (spr836): undefined
- privileged reg937 (spr837): undefined
- privileged reg938 (spr838): undefined
- privileged reg939 (spr839): undefined
- privileged reg940 (spr840): undefined
- privileged reg941 (spr841): undefined
- privileged reg942 (spr842): undefined
- privileged reg943 (spr843): undefined
- privileged reg944 (spr844): undefined
- privileged reg945 (spr845): undefined
- privileged reg946 (spr846): undefined
- privileged reg947 (spr847): undefined
- privileged reg948 (spr848): undefined
- privileged reg949 (spr849): undefined
- privileged reg950 (spr850): undefined
- privileged reg951 (spr851): undefined
- privileged reg952 (spr852): undefined
- privileged reg953 (spr853): undefined
- privileged reg954 (spr854): undefined
- privileged reg955 (spr855): undefined
- privileged reg956 (spr856): undefined
- privileged reg957 (spr857): undefined
- privileged reg958 (spr858): undefined
- privileged reg959 (spr859): undefined
- privileged reg960 (spr860): undefined
- privileged reg961 (spr861): undefined
- privileged reg962 (spr862): undefined
- privileged reg963 (spr863): undefined
- privileged reg964 (spr864): undefined
- privileged reg965 (spr865): undefined
- privileged reg966 (spr866): undefined
- privileged reg967 (spr867): undefined
- privileged reg968 (spr868): undefined
- privileged reg969 (spr869): undefined
- privileged reg970 (spr870): undefined
- privileged reg971 (spr871): undefined
- privileged reg972 (spr872): undefined
- privileged reg973 (spr873): undefined
- privileged reg974 (spr874): undefined
- privileged reg975 (spr875): undefined
- privileged reg976 (spr876): undefined
- privileged reg977 (spr877): undefined
- privileged reg978 (spr878): undefined
- privileged reg979 (spr879): undefined
- privileged reg980 (spr880): undefined
- privileged reg981 (spr881): undefined
- privileged reg982 (spr882): undefined
- privileged reg983 (spr883): undefined
- privileged reg984 (spr884): undefined
- privileged reg985 (spr885): undefined
- privileged reg986 (spr886): undefined
- privileged reg987 (spr887): undefined
- privileged reg988 (spr888): undefined
- privileged reg989 (spr889): undefined
- privileged reg990 (spr890): undefined
- privileged reg991 (spr891): undefined
- privileged reg992 (spr892): undefined
- privileged reg993 (spr893): undefined
- privileged reg994 (spr894): undefined
- privileged reg995 (spr895): undefined
- privileged reg996 (spr896): undefined
- privileged reg997 (spr897): undefined
- privileged reg998 (spr898): undefined
- privileged reg999 (spr899): undefined
- vector reg1124 (vr0): undefined
- vector reg1125 (vr1): undefined
- vector reg1126 (vr2): undefined
- vector reg1127 (vr3): undefined
- vector reg1128 (vr4): undefined
- vector reg1129 (vr5): undefined
- vector reg1130 (vr6): undefined
- vector reg1131 (vr7): undefined
- vector reg1132 (vr8): undefined
- vector reg1133 (vr9): undefined
- vector reg1134 (vr10): undefined
- vector reg1135 (vr11): undefined
- vector reg1136 (vr12): undefined
- vector reg1137 (vr13): undefined
- vector reg1138 (vr14): undefined
- vector reg1139 (vr15): undefined
- vector reg1140 (vr16): undefined
- vector reg1141 (vr17): undefined
- vector reg1142 (vr18): undefined
- vector reg1143 (vr19): undefined
- vector reg1144 (vr20): undefined
- vector reg1145 (vr21): undefined
- vector reg1146 (vr22): undefined
- vector reg1147 (vr23): undefined
- vector reg1148 (vr24): undefined
- vector reg1149 (vr25): undefined
- vector reg1150 (vr26): undefined
- vector reg1151 (vr27): undefined
- vector reg1152 (vr28): undefined
- vector reg1153 (vr29): undefined
- vector reg1154 (vr30): undefined
- vector reg1155 (vr31): undefined
-EOF
-
-# EM_PPC64 (function bar 0x00000000100005b0)
-# Note. Only in .debug_frame, not in .eh_frame.
-# Same as testfileppc32 but without -m32.
-testfiles testfileppc64
-testrun_compare ${abs_builddir}/addrcfi -e testfileppc64 0x00000000100005b0 <<\EOF
-dwarf_cfi_addrframe (.eh_frame): no matching address range
-.debug_frame has 0x100005b0 => [0x100005b0, 0x100005d0):
- return address in reg65
- CFA location expression: bregx(1)
- integer reg0 (r0): undefined
- integer reg1 (r1): location expression: call_frame_cfa stack_value
- integer reg2 (r2): same_value
- integer reg3 (r3): undefined
- integer reg4 (r4): undefined
- integer reg5 (r5): undefined
- integer reg6 (r6): undefined
- integer reg7 (r7): undefined
- integer reg8 (r8): undefined
- integer reg9 (r9): undefined
- integer reg10 (r10): undefined
- integer reg11 (r11): undefined
- integer reg12 (r12): undefined
- integer reg13 (r13): same_value
- integer reg14 (r14): same_value
- integer reg15 (r15): same_value
- integer reg16 (r16): same_value
- integer reg17 (r17): same_value
- integer reg18 (r18): same_value
- integer reg19 (r19): same_value
- integer reg20 (r20): same_value
- integer reg21 (r21): same_value
- integer reg22 (r22): same_value
- integer reg23 (r23): same_value
- integer reg24 (r24): same_value
- integer reg25 (r25): same_value
- integer reg26 (r26): same_value
- integer reg27 (r27): same_value
- integer reg28 (r28): same_value
- integer reg29 (r29): same_value
- integer reg30 (r30): same_value
- integer reg31 (r31): same_value
- FPU reg32 (f0): undefined
- FPU reg33 (f1): undefined
- FPU reg34 (f2): undefined
- FPU reg35 (f3): undefined
- FPU reg36 (f4): undefined
- FPU reg37 (f5): undefined
- FPU reg38 (f6): undefined
- FPU reg39 (f7): undefined
- FPU reg40 (f8): undefined
- FPU reg41 (f9): undefined
- FPU reg42 (f10): undefined
- FPU reg43 (f11): undefined
- FPU reg44 (f12): undefined
- FPU reg45 (f13): undefined
- FPU reg46 (f14): undefined
- FPU reg47 (f15): undefined
- FPU reg48 (f16): undefined
- FPU reg49 (f17): undefined
- FPU reg50 (f18): undefined
- FPU reg51 (f19): undefined
- FPU reg52 (f20): undefined
- FPU reg53 (f21): undefined
- FPU reg54 (f22): undefined
- FPU reg55 (f23): undefined
- FPU reg56 (f24): undefined
- FPU reg57 (f25): undefined
- FPU reg58 (f26): undefined
- FPU reg59 (f27): undefined
- FPU reg60 (f28): undefined
- FPU reg61 (f29): undefined
- FPU reg62 (f30): undefined
- FPU reg63 (f31): undefined
- integer reg64 (cr): undefined
- FPU reg65 (fpscr): same_value
- integer reg66 (msr): undefined
- vector reg67 (vscr): undefined
- privileged reg70 (sr0): undefined
- privileged reg71 (sr1): undefined
- privileged reg72 (sr2): undefined
- privileged reg73 (sr3): undefined
- privileged reg74 (sr4): undefined
- privileged reg75 (sr5): undefined
- privileged reg76 (sr6): undefined
- privileged reg77 (sr7): undefined
- privileged reg78 (sr8): undefined
- privileged reg79 (sr9): undefined
- privileged reg80 (sr10): undefined
- privileged reg81 (sr11): undefined
- privileged reg82 (sr12): undefined
- privileged reg83 (sr13): undefined
- privileged reg84 (sr14): undefined
- privileged reg85 (sr15): undefined
- privileged reg100 (spr0): undefined
- privileged reg101 (xer): undefined
- privileged reg102 (spr2): undefined
- privileged reg103 (spr3): undefined
- privileged reg104 (spr4): undefined
- privileged reg105 (spr5): undefined
- privileged reg106 (spr6): undefined
- privileged reg107 (spr7): undefined
- privileged reg108 (lr): undefined
- privileged reg109 (ctr): undefined
- privileged reg110 (spr10): undefined
- privileged reg111 (spr11): undefined
- privileged reg112 (spr12): undefined
- privileged reg113 (spr13): undefined
- privileged reg114 (spr14): undefined
- privileged reg115 (spr15): undefined
- privileged reg116 (spr16): undefined
- privileged reg117 (spr17): undefined
- privileged reg118 (dsisr): undefined
- privileged reg119 (dar): undefined
- privileged reg120 (spr20): undefined
- privileged reg121 (spr21): undefined
- privileged reg122 (dec): undefined
- privileged reg123 (spr23): undefined
- privileged reg124 (spr24): undefined
- privileged reg125 (spr25): undefined
- privileged reg126 (spr26): undefined
- privileged reg127 (spr27): undefined
- privileged reg128 (spr28): undefined
- privileged reg129 (spr29): undefined
- privileged reg130 (spr30): undefined
- privileged reg131 (spr31): undefined
- privileged reg132 (spr32): undefined
- privileged reg133 (spr33): undefined
- privileged reg134 (spr34): undefined
- privileged reg135 (spr35): undefined
- privileged reg136 (spr36): undefined
- privileged reg137 (spr37): undefined
- privileged reg138 (spr38): undefined
- privileged reg139 (spr39): undefined
- privileged reg140 (spr40): undefined
- privileged reg141 (spr41): undefined
- privileged reg142 (spr42): undefined
- privileged reg143 (spr43): undefined
- privileged reg144 (spr44): undefined
- privileged reg145 (spr45): undefined
- privileged reg146 (spr46): undefined
- privileged reg147 (spr47): undefined
- privileged reg148 (spr48): undefined
- privileged reg149 (spr49): undefined
- privileged reg150 (spr50): undefined
- privileged reg151 (spr51): undefined
- privileged reg152 (spr52): undefined
- privileged reg153 (spr53): undefined
- privileged reg154 (spr54): undefined
- privileged reg155 (spr55): undefined
- privileged reg156 (spr56): undefined
- privileged reg157 (spr57): undefined
- privileged reg158 (spr58): undefined
- privileged reg159 (spr59): undefined
- privileged reg160 (spr60): undefined
- privileged reg161 (spr61): undefined
- privileged reg162 (spr62): undefined
- privileged reg163 (spr63): undefined
- privileged reg164 (spr64): undefined
- privileged reg165 (spr65): undefined
- privileged reg166 (spr66): undefined
- privileged reg167 (spr67): undefined
- privileged reg168 (spr68): undefined
- privileged reg169 (spr69): undefined
- privileged reg170 (spr70): undefined
- privileged reg171 (spr71): undefined
- privileged reg172 (spr72): undefined
- privileged reg173 (spr73): undefined
- privileged reg174 (spr74): undefined
- privileged reg175 (spr75): undefined
- privileged reg176 (spr76): undefined
- privileged reg177 (spr77): undefined
- privileged reg178 (spr78): undefined
- privileged reg179 (spr79): undefined
- privileged reg180 (spr80): undefined
- privileged reg181 (spr81): undefined
- privileged reg182 (spr82): undefined
- privileged reg183 (spr83): undefined
- privileged reg184 (spr84): undefined
- privileged reg185 (spr85): undefined
- privileged reg186 (spr86): undefined
- privileged reg187 (spr87): undefined
- privileged reg188 (spr88): undefined
- privileged reg189 (spr89): undefined
- privileged reg190 (spr90): undefined
- privileged reg191 (spr91): undefined
- privileged reg192 (spr92): undefined
- privileged reg193 (spr93): undefined
- privileged reg194 (spr94): undefined
- privileged reg195 (spr95): undefined
- privileged reg196 (spr96): undefined
- privileged reg197 (spr97): undefined
- privileged reg198 (spr98): undefined
- privileged reg199 (spr99): undefined
- privileged reg200 (spr100): undefined
- privileged reg201 (spr101): undefined
- privileged reg202 (spr102): undefined
- privileged reg203 (spr103): undefined
- privileged reg204 (spr104): undefined
- privileged reg205 (spr105): undefined
- privileged reg206 (spr106): undefined
- privileged reg207 (spr107): undefined
- privileged reg208 (spr108): undefined
- privileged reg209 (spr109): undefined
- privileged reg210 (spr110): undefined
- privileged reg211 (spr111): undefined
- privileged reg212 (spr112): undefined
- privileged reg213 (spr113): undefined
- privileged reg214 (spr114): undefined
- privileged reg215 (spr115): undefined
- privileged reg216 (spr116): undefined
- privileged reg217 (spr117): undefined
- privileged reg218 (spr118): undefined
- privileged reg219 (spr119): undefined
- privileged reg220 (spr120): undefined
- privileged reg221 (spr121): undefined
- privileged reg222 (spr122): undefined
- privileged reg223 (spr123): undefined
- privileged reg224 (spr124): undefined
- privileged reg225 (spr125): undefined
- privileged reg226 (spr126): undefined
- privileged reg227 (spr127): undefined
- privileged reg228 (spr128): undefined
- privileged reg229 (spr129): undefined
- privileged reg230 (spr130): undefined
- privileged reg231 (spr131): undefined
- privileged reg232 (spr132): undefined
- privileged reg233 (spr133): undefined
- privileged reg234 (spr134): undefined
- privileged reg235 (spr135): undefined
- privileged reg236 (spr136): undefined
- privileged reg237 (spr137): undefined
- privileged reg238 (spr138): undefined
- privileged reg239 (spr139): undefined
- privileged reg240 (spr140): undefined
- privileged reg241 (spr141): undefined
- privileged reg242 (spr142): undefined
- privileged reg243 (spr143): undefined
- privileged reg244 (spr144): undefined
- privileged reg245 (spr145): undefined
- privileged reg246 (spr146): undefined
- privileged reg247 (spr147): undefined
- privileged reg248 (spr148): undefined
- privileged reg249 (spr149): undefined
- privileged reg250 (spr150): undefined
- privileged reg251 (spr151): undefined
- privileged reg252 (spr152): undefined
- privileged reg253 (spr153): undefined
- privileged reg254 (spr154): undefined
- privileged reg255 (spr155): undefined
- privileged reg256 (spr156): undefined
- privileged reg257 (spr157): undefined
- privileged reg258 (spr158): undefined
- privileged reg259 (spr159): undefined
- privileged reg260 (spr160): undefined
- privileged reg261 (spr161): undefined
- privileged reg262 (spr162): undefined
- privileged reg263 (spr163): undefined
- privileged reg264 (spr164): undefined
- privileged reg265 (spr165): undefined
- privileged reg266 (spr166): undefined
- privileged reg267 (spr167): undefined
- privileged reg268 (spr168): undefined
- privileged reg269 (spr169): undefined
- privileged reg270 (spr170): undefined
- privileged reg271 (spr171): undefined
- privileged reg272 (spr172): undefined
- privileged reg273 (spr173): undefined
- privileged reg274 (spr174): undefined
- privileged reg275 (spr175): undefined
- privileged reg276 (spr176): undefined
- privileged reg277 (spr177): undefined
- privileged reg278 (spr178): undefined
- privileged reg279 (spr179): undefined
- privileged reg280 (spr180): undefined
- privileged reg281 (spr181): undefined
- privileged reg282 (spr182): undefined
- privileged reg283 (spr183): undefined
- privileged reg284 (spr184): undefined
- privileged reg285 (spr185): undefined
- privileged reg286 (spr186): undefined
- privileged reg287 (spr187): undefined
- privileged reg288 (spr188): undefined
- privileged reg289 (spr189): undefined
- privileged reg290 (spr190): undefined
- privileged reg291 (spr191): undefined
- privileged reg292 (spr192): undefined
- privileged reg293 (spr193): undefined
- privileged reg294 (spr194): undefined
- privileged reg295 (spr195): undefined
- privileged reg296 (spr196): undefined
- privileged reg297 (spr197): undefined
- privileged reg298 (spr198): undefined
- privileged reg299 (spr199): undefined
- privileged reg300 (spr200): undefined
- privileged reg301 (spr201): undefined
- privileged reg302 (spr202): undefined
- privileged reg303 (spr203): undefined
- privileged reg304 (spr204): undefined
- privileged reg305 (spr205): undefined
- privileged reg306 (spr206): undefined
- privileged reg307 (spr207): undefined
- privileged reg308 (spr208): undefined
- privileged reg309 (spr209): undefined
- privileged reg310 (spr210): undefined
- privileged reg311 (spr211): undefined
- privileged reg312 (spr212): undefined
- privileged reg313 (spr213): undefined
- privileged reg314 (spr214): undefined
- privileged reg315 (spr215): undefined
- privileged reg316 (spr216): undefined
- privileged reg317 (spr217): undefined
- privileged reg318 (spr218): undefined
- privileged reg319 (spr219): undefined
- privileged reg320 (spr220): undefined
- privileged reg321 (spr221): undefined
- privileged reg322 (spr222): undefined
- privileged reg323 (spr223): undefined
- privileged reg324 (spr224): undefined
- privileged reg325 (spr225): undefined
- privileged reg326 (spr226): undefined
- privileged reg327 (spr227): undefined
- privileged reg328 (spr228): undefined
- privileged reg329 (spr229): undefined
- privileged reg330 (spr230): undefined
- privileged reg331 (spr231): undefined
- privileged reg332 (spr232): undefined
- privileged reg333 (spr233): undefined
- privileged reg334 (spr234): undefined
- privileged reg335 (spr235): undefined
- privileged reg336 (spr236): undefined
- privileged reg337 (spr237): undefined
- privileged reg338 (spr238): undefined
- privileged reg339 (spr239): undefined
- privileged reg340 (spr240): undefined
- privileged reg341 (spr241): undefined
- privileged reg342 (spr242): undefined
- privileged reg343 (spr243): undefined
- privileged reg344 (spr244): undefined
- privileged reg345 (spr245): undefined
- privileged reg346 (spr246): undefined
- privileged reg347 (spr247): undefined
- privileged reg348 (spr248): undefined
- privileged reg349 (spr249): undefined
- privileged reg350 (spr250): undefined
- privileged reg351 (spr251): undefined
- privileged reg352 (spr252): undefined
- privileged reg353 (spr253): undefined
- privileged reg354 (spr254): undefined
- privileged reg355 (spr255): undefined
- vector reg356 (vrsave): undefined
- privileged reg357 (spr257): undefined
- privileged reg358 (spr258): undefined
- privileged reg359 (spr259): undefined
- privileged reg360 (spr260): undefined
- privileged reg361 (spr261): undefined
- privileged reg362 (spr262): undefined
- privileged reg363 (spr263): undefined
- privileged reg364 (spr264): undefined
- privileged reg365 (spr265): undefined
- privileged reg366 (spr266): undefined
- privileged reg367 (spr267): undefined
- privileged reg368 (spr268): undefined
- privileged reg369 (spr269): undefined
- privileged reg370 (spr270): undefined
- privileged reg371 (spr271): undefined
- privileged reg372 (spr272): undefined
- privileged reg373 (spr273): undefined
- privileged reg374 (spr274): undefined
- privileged reg375 (spr275): undefined
- privileged reg376 (spr276): undefined
- privileged reg377 (spr277): undefined
- privileged reg378 (spr278): undefined
- privileged reg379 (spr279): undefined
- privileged reg380 (spr280): undefined
- privileged reg381 (spr281): undefined
- privileged reg382 (spr282): undefined
- privileged reg383 (spr283): undefined
- privileged reg384 (spr284): undefined
- privileged reg385 (spr285): undefined
- privileged reg386 (spr286): undefined
- privileged reg387 (spr287): undefined
- privileged reg388 (spr288): undefined
- privileged reg389 (spr289): undefined
- privileged reg390 (spr290): undefined
- privileged reg391 (spr291): undefined
- privileged reg392 (spr292): undefined
- privileged reg393 (spr293): undefined
- privileged reg394 (spr294): undefined
- privileged reg395 (spr295): undefined
- privileged reg396 (spr296): undefined
- privileged reg397 (spr297): undefined
- privileged reg398 (spr298): undefined
- privileged reg399 (spr299): undefined
- privileged reg400 (spr300): undefined
- privileged reg401 (spr301): undefined
- privileged reg402 (spr302): undefined
- privileged reg403 (spr303): undefined
- privileged reg404 (spr304): undefined
- privileged reg405 (spr305): undefined
- privileged reg406 (spr306): undefined
- privileged reg407 (spr307): undefined
- privileged reg408 (spr308): undefined
- privileged reg409 (spr309): undefined
- privileged reg410 (spr310): undefined
- privileged reg411 (spr311): undefined
- privileged reg412 (spr312): undefined
- privileged reg413 (spr313): undefined
- privileged reg414 (spr314): undefined
- privileged reg415 (spr315): undefined
- privileged reg416 (spr316): undefined
- privileged reg417 (spr317): undefined
- privileged reg418 (spr318): undefined
- privileged reg419 (spr319): undefined
- privileged reg420 (spr320): undefined
- privileged reg421 (spr321): undefined
- privileged reg422 (spr322): undefined
- privileged reg423 (spr323): undefined
- privileged reg424 (spr324): undefined
- privileged reg425 (spr325): undefined
- privileged reg426 (spr326): undefined
- privileged reg427 (spr327): undefined
- privileged reg428 (spr328): undefined
- privileged reg429 (spr329): undefined
- privileged reg430 (spr330): undefined
- privileged reg431 (spr331): undefined
- privileged reg432 (spr332): undefined
- privileged reg433 (spr333): undefined
- privileged reg434 (spr334): undefined
- privileged reg435 (spr335): undefined
- privileged reg436 (spr336): undefined
- privileged reg437 (spr337): undefined
- privileged reg438 (spr338): undefined
- privileged reg439 (spr339): undefined
- privileged reg440 (spr340): undefined
- privileged reg441 (spr341): undefined
- privileged reg442 (spr342): undefined
- privileged reg443 (spr343): undefined
- privileged reg444 (spr344): undefined
- privileged reg445 (spr345): undefined
- privileged reg446 (spr346): undefined
- privileged reg447 (spr347): undefined
- privileged reg448 (spr348): undefined
- privileged reg449 (spr349): undefined
- privileged reg450 (spr350): undefined
- privileged reg451 (spr351): undefined
- privileged reg452 (spr352): undefined
- privileged reg453 (spr353): undefined
- privileged reg454 (spr354): undefined
- privileged reg455 (spr355): undefined
- privileged reg456 (spr356): undefined
- privileged reg457 (spr357): undefined
- privileged reg458 (spr358): undefined
- privileged reg459 (spr359): undefined
- privileged reg460 (spr360): undefined
- privileged reg461 (spr361): undefined
- privileged reg462 (spr362): undefined
- privileged reg463 (spr363): undefined
- privileged reg464 (spr364): undefined
- privileged reg465 (spr365): undefined
- privileged reg466 (spr366): undefined
- privileged reg467 (spr367): undefined
- privileged reg468 (spr368): undefined
- privileged reg469 (spr369): undefined
- privileged reg470 (spr370): undefined
- privileged reg471 (spr371): undefined
- privileged reg472 (spr372): undefined
- privileged reg473 (spr373): undefined
- privileged reg474 (spr374): undefined
- privileged reg475 (spr375): undefined
- privileged reg476 (spr376): undefined
- privileged reg477 (spr377): undefined
- privileged reg478 (spr378): undefined
- privileged reg479 (spr379): undefined
- privileged reg480 (spr380): undefined
- privileged reg481 (spr381): undefined
- privileged reg482 (spr382): undefined
- privileged reg483 (spr383): undefined
- privileged reg484 (spr384): undefined
- privileged reg485 (spr385): undefined
- privileged reg486 (spr386): undefined
- privileged reg487 (spr387): undefined
- privileged reg488 (spr388): undefined
- privileged reg489 (spr389): undefined
- privileged reg490 (spr390): undefined
- privileged reg491 (spr391): undefined
- privileged reg492 (spr392): undefined
- privileged reg493 (spr393): undefined
- privileged reg494 (spr394): undefined
- privileged reg495 (spr395): undefined
- privileged reg496 (spr396): undefined
- privileged reg497 (spr397): undefined
- privileged reg498 (spr398): undefined
- privileged reg499 (spr399): undefined
- privileged reg500 (spr400): undefined
- privileged reg501 (spr401): undefined
- privileged reg502 (spr402): undefined
- privileged reg503 (spr403): undefined
- privileged reg504 (spr404): undefined
- privileged reg505 (spr405): undefined
- privileged reg506 (spr406): undefined
- privileged reg507 (spr407): undefined
- privileged reg508 (spr408): undefined
- privileged reg509 (spr409): undefined
- privileged reg510 (spr410): undefined
- privileged reg511 (spr411): undefined
- privileged reg512 (spr412): undefined
- privileged reg513 (spr413): undefined
- privileged reg514 (spr414): undefined
- privileged reg515 (spr415): undefined
- privileged reg516 (spr416): undefined
- privileged reg517 (spr417): undefined
- privileged reg518 (spr418): undefined
- privileged reg519 (spr419): undefined
- privileged reg520 (spr420): undefined
- privileged reg521 (spr421): undefined
- privileged reg522 (spr422): undefined
- privileged reg523 (spr423): undefined
- privileged reg524 (spr424): undefined
- privileged reg525 (spr425): undefined
- privileged reg526 (spr426): undefined
- privileged reg527 (spr427): undefined
- privileged reg528 (spr428): undefined
- privileged reg529 (spr429): undefined
- privileged reg530 (spr430): undefined
- privileged reg531 (spr431): undefined
- privileged reg532 (spr432): undefined
- privileged reg533 (spr433): undefined
- privileged reg534 (spr434): undefined
- privileged reg535 (spr435): undefined
- privileged reg536 (spr436): undefined
- privileged reg537 (spr437): undefined
- privileged reg538 (spr438): undefined
- privileged reg539 (spr439): undefined
- privileged reg540 (spr440): undefined
- privileged reg541 (spr441): undefined
- privileged reg542 (spr442): undefined
- privileged reg543 (spr443): undefined
- privileged reg544 (spr444): undefined
- privileged reg545 (spr445): undefined
- privileged reg546 (spr446): undefined
- privileged reg547 (spr447): undefined
- privileged reg548 (spr448): undefined
- privileged reg549 (spr449): undefined
- privileged reg550 (spr450): undefined
- privileged reg551 (spr451): undefined
- privileged reg552 (spr452): undefined
- privileged reg553 (spr453): undefined
- privileged reg554 (spr454): undefined
- privileged reg555 (spr455): undefined
- privileged reg556 (spr456): undefined
- privileged reg557 (spr457): undefined
- privileged reg558 (spr458): undefined
- privileged reg559 (spr459): undefined
- privileged reg560 (spr460): undefined
- privileged reg561 (spr461): undefined
- privileged reg562 (spr462): undefined
- privileged reg563 (spr463): undefined
- privileged reg564 (spr464): undefined
- privileged reg565 (spr465): undefined
- privileged reg566 (spr466): undefined
- privileged reg567 (spr467): undefined
- privileged reg568 (spr468): undefined
- privileged reg569 (spr469): undefined
- privileged reg570 (spr470): undefined
- privileged reg571 (spr471): undefined
- privileged reg572 (spr472): undefined
- privileged reg573 (spr473): undefined
- privileged reg574 (spr474): undefined
- privileged reg575 (spr475): undefined
- privileged reg576 (spr476): undefined
- privileged reg577 (spr477): undefined
- privileged reg578 (spr478): undefined
- privileged reg579 (spr479): undefined
- privileged reg580 (spr480): undefined
- privileged reg581 (spr481): undefined
- privileged reg582 (spr482): undefined
- privileged reg583 (spr483): undefined
- privileged reg584 (spr484): undefined
- privileged reg585 (spr485): undefined
- privileged reg586 (spr486): undefined
- privileged reg587 (spr487): undefined
- privileged reg588 (spr488): undefined
- privileged reg589 (spr489): undefined
- privileged reg590 (spr490): undefined
- privileged reg591 (spr491): undefined
- privileged reg592 (spr492): undefined
- privileged reg593 (spr493): undefined
- privileged reg594 (spr494): undefined
- privileged reg595 (spr495): undefined
- privileged reg596 (spr496): undefined
- privileged reg597 (spr497): undefined
- privileged reg598 (spr498): undefined
- privileged reg599 (spr499): undefined
- privileged reg600 (spr500): undefined
- privileged reg601 (spr501): undefined
- privileged reg602 (spr502): undefined
- privileged reg603 (spr503): undefined
- privileged reg604 (spr504): undefined
- privileged reg605 (spr505): undefined
- privileged reg606 (spr506): undefined
- privileged reg607 (spr507): undefined
- privileged reg608 (spr508): undefined
- privileged reg609 (spr509): undefined
- privileged reg610 (spr510): undefined
- privileged reg611 (spr511): undefined
- vector reg612 (spefscr): undefined
- privileged reg613 (spr513): undefined
- privileged reg614 (spr514): undefined
- privileged reg615 (spr515): undefined
- privileged reg616 (spr516): undefined
- privileged reg617 (spr517): undefined
- privileged reg618 (spr518): undefined
- privileged reg619 (spr519): undefined
- privileged reg620 (spr520): undefined
- privileged reg621 (spr521): undefined
- privileged reg622 (spr522): undefined
- privileged reg623 (spr523): undefined
- privileged reg624 (spr524): undefined
- privileged reg625 (spr525): undefined
- privileged reg626 (spr526): undefined
- privileged reg627 (spr527): undefined
- privileged reg628 (spr528): undefined
- privileged reg629 (spr529): undefined
- privileged reg630 (spr530): undefined
- privileged reg631 (spr531): undefined
- privileged reg632 (spr532): undefined
- privileged reg633 (spr533): undefined
- privileged reg634 (spr534): undefined
- privileged reg635 (spr535): undefined
- privileged reg636 (spr536): undefined
- privileged reg637 (spr537): undefined
- privileged reg638 (spr538): undefined
- privileged reg639 (spr539): undefined
- privileged reg640 (spr540): undefined
- privileged reg641 (spr541): undefined
- privileged reg642 (spr542): undefined
- privileged reg643 (spr543): undefined
- privileged reg644 (spr544): undefined
- privileged reg645 (spr545): undefined
- privileged reg646 (spr546): undefined
- privileged reg647 (spr547): undefined
- privileged reg648 (spr548): undefined
- privileged reg649 (spr549): undefined
- privileged reg650 (spr550): undefined
- privileged reg651 (spr551): undefined
- privileged reg652 (spr552): undefined
- privileged reg653 (spr553): undefined
- privileged reg654 (spr554): undefined
- privileged reg655 (spr555): undefined
- privileged reg656 (spr556): undefined
- privileged reg657 (spr557): undefined
- privileged reg658 (spr558): undefined
- privileged reg659 (spr559): undefined
- privileged reg660 (spr560): undefined
- privileged reg661 (spr561): undefined
- privileged reg662 (spr562): undefined
- privileged reg663 (spr563): undefined
- privileged reg664 (spr564): undefined
- privileged reg665 (spr565): undefined
- privileged reg666 (spr566): undefined
- privileged reg667 (spr567): undefined
- privileged reg668 (spr568): undefined
- privileged reg669 (spr569): undefined
- privileged reg670 (spr570): undefined
- privileged reg671 (spr571): undefined
- privileged reg672 (spr572): undefined
- privileged reg673 (spr573): undefined
- privileged reg674 (spr574): undefined
- privileged reg675 (spr575): undefined
- privileged reg676 (spr576): undefined
- privileged reg677 (spr577): undefined
- privileged reg678 (spr578): undefined
- privileged reg679 (spr579): undefined
- privileged reg680 (spr580): undefined
- privileged reg681 (spr581): undefined
- privileged reg682 (spr582): undefined
- privileged reg683 (spr583): undefined
- privileged reg684 (spr584): undefined
- privileged reg685 (spr585): undefined
- privileged reg686 (spr586): undefined
- privileged reg687 (spr587): undefined
- privileged reg688 (spr588): undefined
- privileged reg689 (spr589): undefined
- privileged reg690 (spr590): undefined
- privileged reg691 (spr591): undefined
- privileged reg692 (spr592): undefined
- privileged reg693 (spr593): undefined
- privileged reg694 (spr594): undefined
- privileged reg695 (spr595): undefined
- privileged reg696 (spr596): undefined
- privileged reg697 (spr597): undefined
- privileged reg698 (spr598): undefined
- privileged reg699 (spr599): undefined
- privileged reg700 (spr600): undefined
- privileged reg701 (spr601): undefined
- privileged reg702 (spr602): undefined
- privileged reg703 (spr603): undefined
- privileged reg704 (spr604): undefined
- privileged reg705 (spr605): undefined
- privileged reg706 (spr606): undefined
- privileged reg707 (spr607): undefined
- privileged reg708 (spr608): undefined
- privileged reg709 (spr609): undefined
- privileged reg710 (spr610): undefined
- privileged reg711 (spr611): undefined
- privileged reg712 (spr612): undefined
- privileged reg713 (spr613): undefined
- privileged reg714 (spr614): undefined
- privileged reg715 (spr615): undefined
- privileged reg716 (spr616): undefined
- privileged reg717 (spr617): undefined
- privileged reg718 (spr618): undefined
- privileged reg719 (spr619): undefined
- privileged reg720 (spr620): undefined
- privileged reg721 (spr621): undefined
- privileged reg722 (spr622): undefined
- privileged reg723 (spr623): undefined
- privileged reg724 (spr624): undefined
- privileged reg725 (spr625): undefined
- privileged reg726 (spr626): undefined
- privileged reg727 (spr627): undefined
- privileged reg728 (spr628): undefined
- privileged reg729 (spr629): undefined
- privileged reg730 (spr630): undefined
- privileged reg731 (spr631): undefined
- privileged reg732 (spr632): undefined
- privileged reg733 (spr633): undefined
- privileged reg734 (spr634): undefined
- privileged reg735 (spr635): undefined
- privileged reg736 (spr636): undefined
- privileged reg737 (spr637): undefined
- privileged reg738 (spr638): undefined
- privileged reg739 (spr639): undefined
- privileged reg740 (spr640): undefined
- privileged reg741 (spr641): undefined
- privileged reg742 (spr642): undefined
- privileged reg743 (spr643): undefined
- privileged reg744 (spr644): undefined
- privileged reg745 (spr645): undefined
- privileged reg746 (spr646): undefined
- privileged reg747 (spr647): undefined
- privileged reg748 (spr648): undefined
- privileged reg749 (spr649): undefined
- privileged reg750 (spr650): undefined
- privileged reg751 (spr651): undefined
- privileged reg752 (spr652): undefined
- privileged reg753 (spr653): undefined
- privileged reg754 (spr654): undefined
- privileged reg755 (spr655): undefined
- privileged reg756 (spr656): undefined
- privileged reg757 (spr657): undefined
- privileged reg758 (spr658): undefined
- privileged reg759 (spr659): undefined
- privileged reg760 (spr660): undefined
- privileged reg761 (spr661): undefined
- privileged reg762 (spr662): undefined
- privileged reg763 (spr663): undefined
- privileged reg764 (spr664): undefined
- privileged reg765 (spr665): undefined
- privileged reg766 (spr666): undefined
- privileged reg767 (spr667): undefined
- privileged reg768 (spr668): undefined
- privileged reg769 (spr669): undefined
- privileged reg770 (spr670): undefined
- privileged reg771 (spr671): undefined
- privileged reg772 (spr672): undefined
- privileged reg773 (spr673): undefined
- privileged reg774 (spr674): undefined
- privileged reg775 (spr675): undefined
- privileged reg776 (spr676): undefined
- privileged reg777 (spr677): undefined
- privileged reg778 (spr678): undefined
- privileged reg779 (spr679): undefined
- privileged reg780 (spr680): undefined
- privileged reg781 (spr681): undefined
- privileged reg782 (spr682): undefined
- privileged reg783 (spr683): undefined
- privileged reg784 (spr684): undefined
- privileged reg785 (spr685): undefined
- privileged reg786 (spr686): undefined
- privileged reg787 (spr687): undefined
- privileged reg788 (spr688): undefined
- privileged reg789 (spr689): undefined
- privileged reg790 (spr690): undefined
- privileged reg791 (spr691): undefined
- privileged reg792 (spr692): undefined
- privileged reg793 (spr693): undefined
- privileged reg794 (spr694): undefined
- privileged reg795 (spr695): undefined
- privileged reg796 (spr696): undefined
- privileged reg797 (spr697): undefined
- privileged reg798 (spr698): undefined
- privileged reg799 (spr699): undefined
- privileged reg800 (spr700): undefined
- privileged reg801 (spr701): undefined
- privileged reg802 (spr702): undefined
- privileged reg803 (spr703): undefined
- privileged reg804 (spr704): undefined
- privileged reg805 (spr705): undefined
- privileged reg806 (spr706): undefined
- privileged reg807 (spr707): undefined
- privileged reg808 (spr708): undefined
- privileged reg809 (spr709): undefined
- privileged reg810 (spr710): undefined
- privileged reg811 (spr711): undefined
- privileged reg812 (spr712): undefined
- privileged reg813 (spr713): undefined
- privileged reg814 (spr714): undefined
- privileged reg815 (spr715): undefined
- privileged reg816 (spr716): undefined
- privileged reg817 (spr717): undefined
- privileged reg818 (spr718): undefined
- privileged reg819 (spr719): undefined
- privileged reg820 (spr720): undefined
- privileged reg821 (spr721): undefined
- privileged reg822 (spr722): undefined
- privileged reg823 (spr723): undefined
- privileged reg824 (spr724): undefined
- privileged reg825 (spr725): undefined
- privileged reg826 (spr726): undefined
- privileged reg827 (spr727): undefined
- privileged reg828 (spr728): undefined
- privileged reg829 (spr729): undefined
- privileged reg830 (spr730): undefined
- privileged reg831 (spr731): undefined
- privileged reg832 (spr732): undefined
- privileged reg833 (spr733): undefined
- privileged reg834 (spr734): undefined
- privileged reg835 (spr735): undefined
- privileged reg836 (spr736): undefined
- privileged reg837 (spr737): undefined
- privileged reg838 (spr738): undefined
- privileged reg839 (spr739): undefined
- privileged reg840 (spr740): undefined
- privileged reg841 (spr741): undefined
- privileged reg842 (spr742): undefined
- privileged reg843 (spr743): undefined
- privileged reg844 (spr744): undefined
- privileged reg845 (spr745): undefined
- privileged reg846 (spr746): undefined
- privileged reg847 (spr747): undefined
- privileged reg848 (spr748): undefined
- privileged reg849 (spr749): undefined
- privileged reg850 (spr750): undefined
- privileged reg851 (spr751): undefined
- privileged reg852 (spr752): undefined
- privileged reg853 (spr753): undefined
- privileged reg854 (spr754): undefined
- privileged reg855 (spr755): undefined
- privileged reg856 (spr756): undefined
- privileged reg857 (spr757): undefined
- privileged reg858 (spr758): undefined
- privileged reg859 (spr759): undefined
- privileged reg860 (spr760): undefined
- privileged reg861 (spr761): undefined
- privileged reg862 (spr762): undefined
- privileged reg863 (spr763): undefined
- privileged reg864 (spr764): undefined
- privileged reg865 (spr765): undefined
- privileged reg866 (spr766): undefined
- privileged reg867 (spr767): undefined
- privileged reg868 (spr768): undefined
- privileged reg869 (spr769): undefined
- privileged reg870 (spr770): undefined
- privileged reg871 (spr771): undefined
- privileged reg872 (spr772): undefined
- privileged reg873 (spr773): undefined
- privileged reg874 (spr774): undefined
- privileged reg875 (spr775): undefined
- privileged reg876 (spr776): undefined
- privileged reg877 (spr777): undefined
- privileged reg878 (spr778): undefined
- privileged reg879 (spr779): undefined
- privileged reg880 (spr780): undefined
- privileged reg881 (spr781): undefined
- privileged reg882 (spr782): undefined
- privileged reg883 (spr783): undefined
- privileged reg884 (spr784): undefined
- privileged reg885 (spr785): undefined
- privileged reg886 (spr786): undefined
- privileged reg887 (spr787): undefined
- privileged reg888 (spr788): undefined
- privileged reg889 (spr789): undefined
- privileged reg890 (spr790): undefined
- privileged reg891 (spr791): undefined
- privileged reg892 (spr792): undefined
- privileged reg893 (spr793): undefined
- privileged reg894 (spr794): undefined
- privileged reg895 (spr795): undefined
- privileged reg896 (spr796): undefined
- privileged reg897 (spr797): undefined
- privileged reg898 (spr798): undefined
- privileged reg899 (spr799): undefined
- privileged reg900 (spr800): undefined
- privileged reg901 (spr801): undefined
- privileged reg902 (spr802): undefined
- privileged reg903 (spr803): undefined
- privileged reg904 (spr804): undefined
- privileged reg905 (spr805): undefined
- privileged reg906 (spr806): undefined
- privileged reg907 (spr807): undefined
- privileged reg908 (spr808): undefined
- privileged reg909 (spr809): undefined
- privileged reg910 (spr810): undefined
- privileged reg911 (spr811): undefined
- privileged reg912 (spr812): undefined
- privileged reg913 (spr813): undefined
- privileged reg914 (spr814): undefined
- privileged reg915 (spr815): undefined
- privileged reg916 (spr816): undefined
- privileged reg917 (spr817): undefined
- privileged reg918 (spr818): undefined
- privileged reg919 (spr819): undefined
- privileged reg920 (spr820): undefined
- privileged reg921 (spr821): undefined
- privileged reg922 (spr822): undefined
- privileged reg923 (spr823): undefined
- privileged reg924 (spr824): undefined
- privileged reg925 (spr825): undefined
- privileged reg926 (spr826): undefined
- privileged reg927 (spr827): undefined
- privileged reg928 (spr828): undefined
- privileged reg929 (spr829): undefined
- privileged reg930 (spr830): undefined
- privileged reg931 (spr831): undefined
- privileged reg932 (spr832): undefined
- privileged reg933 (spr833): undefined
- privileged reg934 (spr834): undefined
- privileged reg935 (spr835): undefined
- privileged reg936 (spr836): undefined
- privileged reg937 (spr837): undefined
- privileged reg938 (spr838): undefined
- privileged reg939 (spr839): undefined
- privileged reg940 (spr840): undefined
- privileged reg941 (spr841): undefined
- privileged reg942 (spr842): undefined
- privileged reg943 (spr843): undefined
- privileged reg944 (spr844): undefined
- privileged reg945 (spr845): undefined
- privileged reg946 (spr846): undefined
- privileged reg947 (spr847): undefined
- privileged reg948 (spr848): undefined
- privileged reg949 (spr849): undefined
- privileged reg950 (spr850): undefined
- privileged reg951 (spr851): undefined
- privileged reg952 (spr852): undefined
- privileged reg953 (spr853): undefined
- privileged reg954 (spr854): undefined
- privileged reg955 (spr855): undefined
- privileged reg956 (spr856): undefined
- privileged reg957 (spr857): undefined
- privileged reg958 (spr858): undefined
- privileged reg959 (spr859): undefined
- privileged reg960 (spr860): undefined
- privileged reg961 (spr861): undefined
- privileged reg962 (spr862): undefined
- privileged reg963 (spr863): undefined
- privileged reg964 (spr864): undefined
- privileged reg965 (spr865): undefined
- privileged reg966 (spr866): undefined
- privileged reg967 (spr867): undefined
- privileged reg968 (spr868): undefined
- privileged reg969 (spr869): undefined
- privileged reg970 (spr870): undefined
- privileged reg971 (spr871): undefined
- privileged reg972 (spr872): undefined
- privileged reg973 (spr873): undefined
- privileged reg974 (spr874): undefined
- privileged reg975 (spr875): undefined
- privileged reg976 (spr876): undefined
- privileged reg977 (spr877): undefined
- privileged reg978 (spr878): undefined
- privileged reg979 (spr879): undefined
- privileged reg980 (spr880): undefined
- privileged reg981 (spr881): undefined
- privileged reg982 (spr882): undefined
- privileged reg983 (spr883): undefined
- privileged reg984 (spr884): undefined
- privileged reg985 (spr885): undefined
- privileged reg986 (spr886): undefined
- privileged reg987 (spr887): undefined
- privileged reg988 (spr888): undefined
- privileged reg989 (spr889): undefined
- privileged reg990 (spr890): undefined
- privileged reg991 (spr891): undefined
- privileged reg992 (spr892): undefined
- privileged reg993 (spr893): undefined
- privileged reg994 (spr894): undefined
- privileged reg995 (spr895): undefined
- privileged reg996 (spr896): undefined
- privileged reg997 (spr897): undefined
- privileged reg998 (spr898): undefined
- privileged reg999 (spr899): undefined
- vector reg1124 (vr0): undefined
- vector reg1125 (vr1): undefined
- vector reg1126 (vr2): undefined
- vector reg1127 (vr3): undefined
- vector reg1128 (vr4): undefined
- vector reg1129 (vr5): undefined
- vector reg1130 (vr6): undefined
- vector reg1131 (vr7): undefined
- vector reg1132 (vr8): undefined
- vector reg1133 (vr9): undefined
- vector reg1134 (vr10): undefined
- vector reg1135 (vr11): undefined
- vector reg1136 (vr12): undefined
- vector reg1137 (vr13): undefined
- vector reg1138 (vr14): undefined
- vector reg1139 (vr15): undefined
- vector reg1140 (vr16): undefined
- vector reg1141 (vr17): undefined
- vector reg1142 (vr18): undefined
- vector reg1143 (vr19): undefined
- vector reg1144 (vr20): undefined
- vector reg1145 (vr21): undefined
- vector reg1146 (vr22): undefined
- vector reg1147 (vr23): undefined
- vector reg1148 (vr24): undefined
- vector reg1149 (vr25): undefined
- vector reg1150 (vr26): undefined
- vector reg1151 (vr27): undefined
- vector reg1152 (vr28): undefined
- vector reg1153 (vr29): undefined
- vector reg1154 (vr30): undefined
- vector reg1155 (vr31): undefined
-EOF
-
-# EM_S390 (ELFCLASS32) (function bar 0x4004d8)
-# Note. Only in .eh_frame, there is no .debug_frame.
-# Same as PPC above but with -m31.
-testfiles testfiles390
-testrun_compare ${abs_builddir}/addrcfi -e testfiles390 0x4004d8 <<\EOF
-.eh_frame has 0x4004d8 => [0x4004d8, 0x4004e8):
- return address in reg14
- CFA location expression: bregx(15,96)
- integer reg0 (%r0): undefined
- integer reg1 (%r1): undefined
- integer reg2 (%r2): undefined
- integer reg3 (%r3): undefined
- integer reg4 (%r4): undefined
- integer reg5 (%r5): undefined
- integer reg6 (%r6): same_value
- integer reg7 (%r7): same_value
- integer reg8 (%r8): same_value
- integer reg9 (%r9): same_value
- integer reg10 (%r10): same_value
- integer reg11 (%r11): same_value
- integer reg12 (%r12): same_value
- integer reg13 (%r13): same_value
- integer reg14 (%r14): same_value
- integer reg15 (%r15): same_value
- FPU reg16 (%f0): undefined
- FPU reg17 (%f2): undefined
- FPU reg18 (%f4): undefined
- FPU reg19 (%f6): undefined
- FPU reg20 (%f1): undefined
- FPU reg21 (%f3): undefined
- FPU reg22 (%f5): undefined
- FPU reg23 (%f7): undefined
- FPU reg24 (%f8): same_value
- FPU reg25 (%f10): same_value
- FPU reg26 (%f12): same_value
- FPU reg27 (%f14): same_value
- FPU reg28 (%f9): same_value
- FPU reg29 (%f11): same_value
- FPU reg30 (%f13): same_value
- FPU reg31 (%f15): same_value
- control reg32 (%c0): undefined
- control reg33 (%c1): undefined
- control reg34 (%c2): undefined
- control reg35 (%c3): undefined
- control reg36 (%c4): undefined
- control reg37 (%c5): undefined
- control reg38 (%c6): undefined
- control reg39 (%c7): undefined
- control reg40 (%c8): undefined
- control reg41 (%c9): undefined
- control reg42 (%c10): undefined
- control reg43 (%c11): undefined
- control reg44 (%c12): undefined
- control reg45 (%c13): undefined
- control reg46 (%c14): undefined
- control reg47 (%c15): undefined
- access reg48 (%a0): undefined
- access reg49 (%a1): undefined
- access reg50 (%a2): undefined
- access reg51 (%a3): undefined
- access reg52 (%a4): undefined
- access reg53 (%a5): undefined
- access reg54 (%a6): undefined
- access reg55 (%a7): undefined
- access reg56 (%a8): undefined
- access reg57 (%a9): undefined
- access reg58 (%a10): undefined
- access reg59 (%a11): undefined
- access reg60 (%a12): undefined
- access reg61 (%a13): undefined
- access reg62 (%a14): undefined
- access reg63 (%a15): undefined
- control reg64 (%pswm): undefined
- control reg65 (%pswa): undefined
-handle_cfi no CFI (.debug_frame): no error
-EOF
-
-# EM_S390 (ELFCLASS64) (function bar 0x0000000080000510)
-# Note. Only in .eh_frame, there is no .debug_frame.
-# Same as s390 above but without -m31.
-testfiles testfiles390x
-testrun_compare ${abs_builddir}/addrcfi -e testfiles390x 0x0000000080000510 <<\EOF
-.eh_frame has 0x80000510 => [0x80000510, 0x80000524):
- return address in reg14
- CFA location expression: bregx(15,160)
- integer reg0 (%r0): undefined
- integer reg1 (%r1): undefined
- integer reg2 (%r2): undefined
- integer reg3 (%r3): undefined
- integer reg4 (%r4): undefined
- integer reg5 (%r5): undefined
- integer reg6 (%r6): same_value
- integer reg7 (%r7): same_value
- integer reg8 (%r8): same_value
- integer reg9 (%r9): same_value
- integer reg10 (%r10): same_value
- integer reg11 (%r11): same_value
- integer reg12 (%r12): same_value
- integer reg13 (%r13): same_value
- integer reg14 (%r14): same_value
- integer reg15 (%r15): same_value
- FPU reg16 (%f0): undefined
- FPU reg17 (%f2): undefined
- FPU reg18 (%f4): undefined
- FPU reg19 (%f6): undefined
- FPU reg20 (%f1): undefined
- FPU reg21 (%f3): undefined
- FPU reg22 (%f5): undefined
- FPU reg23 (%f7): undefined
- FPU reg24 (%f8): same_value
- FPU reg25 (%f10): same_value
- FPU reg26 (%f12): same_value
- FPU reg27 (%f14): same_value
- FPU reg28 (%f9): same_value
- FPU reg29 (%f11): same_value
- FPU reg30 (%f13): same_value
- FPU reg31 (%f15): same_value
- control reg32 (%c0): undefined
- control reg33 (%c1): undefined
- control reg34 (%c2): undefined
- control reg35 (%c3): undefined
- control reg36 (%c4): undefined
- control reg37 (%c5): undefined
- control reg38 (%c6): undefined
- control reg39 (%c7): undefined
- control reg40 (%c8): undefined
- control reg41 (%c9): undefined
- control reg42 (%c10): undefined
- control reg43 (%c11): undefined
- control reg44 (%c12): undefined
- control reg45 (%c13): undefined
- control reg46 (%c14): undefined
- control reg47 (%c15): undefined
- access reg48 (%a0): undefined
- access reg49 (%a1): undefined
- access reg50 (%a2): undefined
- access reg51 (%a3): undefined
- access reg52 (%a4): undefined
- access reg53 (%a5): undefined
- access reg54 (%a6): undefined
- access reg55 (%a7): undefined
- access reg56 (%a8): undefined
- access reg57 (%a9): undefined
- access reg58 (%a10): undefined
- access reg59 (%a11): undefined
- access reg60 (%a12): undefined
- access reg61 (%a13): undefined
- access reg62 (%a14): undefined
- access reg63 (%a15): undefined
- control reg64 (%pswm): undefined
- control reg65 (%pswa): undefined
-handle_cfi no CFI (.debug_frame): no error
-EOF
-
-# EM_ARM (function bar 0x00008510)
-# Note. Only in .debug_frame, the .eh_frame is actually empty.
-# Same as s390 and ppc above.
-testfiles testfilearm
-testrun_compare ${abs_builddir}/addrcfi -e testfilearm 0x00008510 <<\EOF
-dwarf_cfi_addrframe (.eh_frame): no matching address range
-.debug_frame has 0x8510 => [0x8510, 0x8524):
- return address in reg14
- CFA location expression: bregx(13)
- integer reg0 (r0): undefined
- integer reg1 (r1): undefined
- integer reg2 (r2): undefined
- integer reg3 (r3): undefined
- integer reg4 (r4): same_value
- integer reg5 (r5): same_value
- integer reg6 (r6): same_value
- integer reg7 (r7): same_value
- integer reg8 (r8): same_value
- integer reg9 (r9): undefined
- integer reg10 (r10): same_value
- integer reg11 (r11): same_value
- integer reg12 (r12): undefined
- integer reg13 (sp): location expression: call_frame_cfa stack_value
- integer reg14 (lr): same_value
- integer reg15 (pc): location expression: regx(14)
- FPA reg16 (f0): undefined
- FPA reg17 (f1): undefined
- FPA reg18 (f2): undefined
- FPA reg19 (f3): undefined
- FPA reg20 (f4): undefined
- FPA reg21 (f5): undefined
- FPA reg22 (f6): undefined
- FPA reg23 (f7): undefined
- FPA reg96 (f0): undefined
- FPA reg97 (f1): undefined
- FPA reg98 (f2): undefined
- FPA reg99 (f3): undefined
- FPA reg100 (f4): undefined
- FPA reg101 (f5): undefined
- FPA reg102 (f6): undefined
- FPA reg103 (f7): undefined
- integer reg128 (spsr): undefined
- VFP reg256 (d0): undefined
- VFP reg257 (d1): undefined
- VFP reg258 (d2): undefined
- VFP reg259 (d3): undefined
- VFP reg260 (d4): undefined
- VFP reg261 (d5): undefined
- VFP reg262 (d6): undefined
- VFP reg263 (d7): undefined
- VFP reg264 (d8): same_value
- VFP reg265 (d9): same_value
- VFP reg266 (d10): same_value
- VFP reg267 (d11): same_value
- VFP reg268 (d12): same_value
- VFP reg269 (d13): same_value
- VFP reg270 (d14): same_value
- VFP reg271 (d15): same_value
- VFP reg272 (d16): undefined
- VFP reg273 (d17): undefined
- VFP reg274 (d18): undefined
- VFP reg275 (d19): undefined
- VFP reg276 (d20): undefined
- VFP reg277 (d21): undefined
- VFP reg278 (d22): undefined
- VFP reg279 (d23): undefined
- VFP reg280 (d24): undefined
- VFP reg281 (d25): undefined
- VFP reg282 (d26): undefined
- VFP reg283 (d27): undefined
- VFP reg284 (d28): undefined
- VFP reg285 (d29): undefined
- VFP reg286 (d30): undefined
- VFP reg287 (d31): undefined
-EOF
-
-# EM_AARCH64 (function bar 0x400550)
-# Same as arm, 390 and ppc above.
-# Note missing coverage in .eh_frame.
-testfiles testfileaarch64
-testrun_compare ${abs_builddir}/addrcfi -e testfileaarch64 0x400550 <<\EOF
-dwarf_cfi_addrframe (.eh_frame): no matching address range
-.debug_frame has 0x400550 => [0x400550, 0x400568):
- return address in reg30
- CFA location expression: bregx(31)
- integer reg0 (x0): undefined
- integer reg1 (x1): undefined
- integer reg2 (x2): undefined
- integer reg3 (x3): undefined
- integer reg4 (x4): undefined
- integer reg5 (x5): undefined
- integer reg6 (x6): undefined
- integer reg7 (x7): undefined
- integer reg8 (x8): undefined
- integer reg9 (x9): undefined
- integer reg10 (x10): undefined
- integer reg11 (x11): undefined
- integer reg12 (x12): undefined
- integer reg13 (x13): undefined
- integer reg14 (x14): undefined
- integer reg15 (x15): undefined
- integer reg16 (x16): undefined
- integer reg17 (x17): undefined
- integer reg18 (x18): undefined
- integer reg19 (x19): same_value
- integer reg20 (x20): same_value
- integer reg21 (x21): same_value
- integer reg22 (x22): same_value
- integer reg23 (x23): same_value
- integer reg24 (x24): same_value
- integer reg25 (x25): same_value
- integer reg26 (x26): same_value
- integer reg27 (x27): same_value
- integer reg28 (x28): same_value
- integer reg29 (x29): same_value
- integer reg30 (x30): same_value
- integer reg31 (sp): undefined
- integer reg33 (elr): undefined
- FP/SIMD reg64 (v0): undefined
- FP/SIMD reg65 (v1): undefined
- FP/SIMD reg66 (v2): undefined
- FP/SIMD reg67 (v3): undefined
- FP/SIMD reg68 (v4): undefined
- FP/SIMD reg69 (v5): undefined
- FP/SIMD reg70 (v6): undefined
- FP/SIMD reg71 (v7): undefined
- FP/SIMD reg72 (v8): same_value
- FP/SIMD reg73 (v9): same_value
- FP/SIMD reg74 (v10): same_value
- FP/SIMD reg75 (v11): same_value
- FP/SIMD reg76 (v12): same_value
- FP/SIMD reg77 (v13): same_value
- FP/SIMD reg78 (v14): same_value
- FP/SIMD reg79 (v15): same_value
- FP/SIMD reg80 (v16): undefined
- FP/SIMD reg81 (v17): undefined
- FP/SIMD reg82 (v18): undefined
- FP/SIMD reg83 (v19): undefined
- FP/SIMD reg84 (v20): undefined
- FP/SIMD reg85 (v21): undefined
- FP/SIMD reg86 (v22): undefined
- FP/SIMD reg87 (v23): undefined
- FP/SIMD reg88 (v24): undefined
- FP/SIMD reg89 (v25): undefined
- FP/SIMD reg90 (v26): undefined
- FP/SIMD reg91 (v27): undefined
- FP/SIMD reg92 (v28): undefined
- FP/SIMD reg93 (v29): undefined
- FP/SIMD reg94 (v30): undefined
- FP/SIMD reg95 (v31): undefined
-EOF
diff --git a/src/tests/run-addrname-test.sh b/src/tests/run-addrname-test.sh
deleted file mode 100755
index f954ee45..00000000
--- a/src/tests/run-addrname-test.sh
+++ /dev/null
@@ -1,360 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007, 2008 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile34 testfile38 testfile41 testfile49
-
-testrun_compare ${abs_top_builddir}/src/addr2line -f -e testfile34 \
- 0x08048074 0x08048075 0x08048076 \
- 0x08049078 0x08048080 0x08049080 <<\EOF
-foo
-??:0
-bar
-??:0
-_etext
-??:0
-data1
-??:0
-??
-??:0
-_end
-??:0
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile38 0x02 0x10a 0x211 0x31a <<\EOF
-t1_global_outer+0x2
-??:0
-t2_global_symbol+0x2
-??:0
-t3_global_after_0+0x1
-??:0
-(.text)+0x31a
-??:0
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile41 0x1 0x104 <<\EOF
-small_global_at_large_global+0x1
-??:0
-small_global_first_at_large_global+0x1
-??:0
-EOF
-
-testfiles testfile12 testfile14
-tempfiles testmaps
-
-cat > testmaps <<EOF
-00400000-00401000 r-xp 00000000 fd:01 4006812 `pwd`/testfile14
-00500000-00501000 rw-p 00000000 fd:01 4006812 `pwd`/testfile14
-01000000-01001000 r-xp 00000000 fd:01 1234567 `pwd`/testfile12
-01100000-01011000 rw-p 00000000 fd:01 1234567 `pwd`/testfile12
-2aaaaaaab000-2aaaaaaad000 rw-p 2aaaaaaab000 00:00 0
-2aaaaaae2000-2aaaaaae3000 rw-p 2aaaaaae2000 00:00 0
-7fff61068000-7fff6107d000 rw-p 7ffffffea000 00:00 0 [stack]
-7fff611fe000-7fff61200000 r-xp 7fff611fe000 00:00 0 [vdso]
-ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps 0x40047c 0x10009db <<\EOF
-caller+0x14
-/home/drepper/local/elfutils-build/20050425/v.c:11
-foo+0xb
-/home/drepper/local/elfutils-build/20030710/u.c:5
-EOF
-
-# .section .text
-# nop #0
-#sizeless_foo:
-# nop #1
-# nop #2
-#sized_bar:
-# nop #3
-# nop #4
-#sizeless_baz:
-# nop #5
-# nop #6
-# .size sized_bar, . - sized_bar
-# nop #7
-# nop #8
-#sizeless_x:
-# nop #9
-# .org 0x100
-# nop #0
-# .globl global_outer
-#global_outer:
-# nop #1
-# nop #2
-# .globl global_in_global
-#global_in_global:
-# nop #3
-# nop #4
-# .size global_in_global, . - global_in_global
-#local_in_global:
-# nop #5
-# nop #6
-# .size local_in_global, . - local_in_global
-# nop #7
-# nop #8
-#.Lsizeless1:
-# nop #9
-# nop #10
-# .size global_outer, . - global_outer
-# nop #11
-# .org 0x200
-# nop #0
-#local_outer:
-# nop #1
-# nop #2
-# .globl global_in_local
-#global_in_local:
-# nop #3
-# nop #4
-# .size global_in_local, . - global_in_local
-#local_in_local:
-# nop #5
-# nop #6
-# .size local_in_local, . - local_in_local
-# nop #7
-# nop #8
-#.Lsizeless2:
-# nop #9
-# nop #10
-# .size local_outer, . - local_outer
-# nop #11
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile49 \
- 0 1 2 3 4 5 6 7 8 9 \
- 0x100 0x101 0x102 0x103 0x104 0x105 \
- 0x106 0x107 0x108 0x109 0x10a 0x10b \
- 0x200 0x201 0x202 0x203 0x204 0x205 \
- 0x206 0x207 0x208 0x209 0x20a 0x20b <<\EOF
-(.text)+0
-??:0
-sizeless_foo
-??:0
-sizeless_foo+0x1
-??:0
-sized_bar
-??:0
-sized_bar+0x1
-??:0
-sized_bar+0x2
-??:0
-sized_bar+0x3
-??:0
-(.text)+0x7
-??:0
-(.text)+0x8
-??:0
-sizeless_x
-??:0
-sizeless_x+0xf7
-??:0
-global_outer
-??:0
-global_outer+0x1
-??:0
-global_in_global
-??:0
-global_in_global+0x1
-??:0
-global_outer+0x4
-??:0
-global_outer+0x5
-??:0
-global_outer+0x6
-??:0
-global_outer+0x7
-??:0
-global_outer+0x8
-??:0
-global_outer+0x9
-??:0
-(.text)+0x10b
-??:0
-(.text)+0x200
-??:0
-local_outer
-??:0
-local_outer+0x1
-??:0
-global_in_local
-??:0
-global_in_local+0x1
-??:0
-local_in_local
-??:0
-local_in_local+0x1
-??:0
-local_outer+0x6
-??:0
-local_outer+0x7
-??:0
-local_outer+0x8
-??:0
-local_outer+0x9
-??:0
-(.text)+0x20b
-??:0
-EOF
-
-# .macro global label size
-#\label: .globl \label
-# .size \label, \size
-# .endm
-# .macro weak label size
-#\label: .weak \label
-# .size \label, \size
-# .endm
-# .macro local label size
-#\label: .size \label, \size
-# .endm
-# .macro offset val
-# .ifne (. - _start) - \val
-# .err
-# .endif
-# .byte \val
-# .endm
-#
-#_start:
-# offset 0
-#
-# local glocal, 1
-# weak gweak, 1
-# global gglobal1, 2
-# global gglobal2, 1
-# global gglobal3, 1
-# offset 1
-# /* Symbols end here. */
-# offset 2
-# /* gglobal1 ends here. */
-# offset 3
-#
-# local g0local, 0
-# weak g0weak, 0
-# global g0global1, 0
-# global g0global2, 0
-# offset 4
-#
-# local wlocal, 1
-# weak wweak1, 2
-# weak wweak2, 1
-# weak wweak3, 1
-# offset 5
-# /* Symbols end here. */
-# offset 6
-# /* wweak1 ends here. */
-# offset 7
-#
-# local w0local, 0
-# weak w0weak1, 0
-# weak w0weak2, 0
-# offset 8
-#
-# local llocal1, 2
-# local llocal2, 1
-# local llocal3, 1
-# offset 9
-# /* Symbols end here. */
-# offset 10
-# /* llocal1 ends here. */
-# offset 11
-#
-# local l0local1, 0
-# local l0local2, 0
-# offset 12
-testfiles testfile64
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile64 1 4 5 8 9 12 <<\EOF
-gglobal2
-??:0
-g0global2
-??:0
-wweak2
-??:0
-w0weak2
-??:0
-llocal2
-??:0
-l0local2
-??:0
-EOF
-
-testfiles testfile65
-testrun_compare ${abs_top_builddir}/src/addr2line -S --core=testfile65 0x7fff94bffa30 <<\EOF
-__vdso_time
-??:0
-EOF
-
-# .section ".text"
-# .globl _start
-# .section ".opd","aw"
-#_start: .quad .L._start,.TOC.@tocbase
-# .previous
-# .type _start, @function
-#.L._start:
-# .byte 0x7d, 0x82, 0x10, 0x08
-# .size _start,.-.L._start
-testfiles testfile66 testfile66.core
-testrun_compare ${abs_top_builddir}/src/addr2line -x -e testfile66 _start 0x2d8 0x2db 0x2dc 0x103d0 0x103d3 0x103d4<<EOF
-_start (.text)
-??:0
-_start (.text)
-??:0
-_start+0x3 (.text)
-??:0
-()+0x2dc
-??:0
-_start (.opd)
-??:0
-_start+0x3 (.opd)
-??:0
-()+0x103d4
-??:0
-EOF
-testrun_compare ${abs_top_builddir}/src/addr2line -x -e testfile66 --core=testfile66.core _start 0x461b02d8 0x461c03d0<<\EOF
-_start (.text)
-??:0
-_start (.text)
-??:0
-_start (.opd)
-??:0
-EOF
-
-testfiles testfile69.core testfile69.so
-testrun_compare ${abs_top_builddir}/src/addr2line --core=./testfile69.core -S 0x7f0bc6a33535 0x7f0bc6a33546 <<\EOF
-libstatic+0x9
-??:0
-libglobal+0x9
-??:0
-EOF
-
-testfiles testfile70.exec testfile70.core
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile70.exec --core=testfile70.core 0x7ff2cfe9b6b5 <<\EOF
-main+0x9
-??:0
-EOF
-testrun_compare ${abs_top_builddir}/src/addr2line -S --core=testfile70.core -e testfile70.exec 0x7ff2cfe9b6b5 <<\EOF
-main+0x9
-??:0
-EOF
-
-testfiles test-core-lib.so test-core.core test-core.exec
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e test-core.exec --core=test-core.core 0x7f67f2aaf619 <<\EOF
-libfunc+0x9
-??:0
-EOF
-
-exit 0
diff --git a/src/tests/run-addrscopes.sh b/src/tests/run-addrscopes.sh
deleted file mode 100755
index 4f5c9d7f..00000000
--- a/src/tests/run-addrscopes.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile22
-
-testrun_compare ${abs_builddir}/addrscopes -e testfile22 0x8048353 <<\EOF
-0x8048353:
- tests/foo.c (0x11): 0x8048348 (tests/foo.c:5) .. 0x804837e (tests/foo.c:16)
- global [ be]
- function (0x2e): 0x8048348 (tests/foo.c:5) .. 0x804835b (tests/foo.c:14)
- local [ 8f]
-EOF
-
-test_cleanup
-
-testfiles testfile24
-testrun_compare ${abs_builddir}/addrscopes -e testfile24 0x804834e <<\EOF
-0x804834e:
- inline-test.c (0x11): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x8048364 (/home/roland/build/stock-elfutils/inline-test.c:16)
- add (0x1d): 0x804834e (/home/roland/build/stock-elfutils/inline-test.c:3) .. 0x8048350 (/home/roland/build/stock-elfutils/inline-test.c:9)
- y [ 9d]
- x [ a2]
- x (abstract)
- y (abstract)
-EOF
-
-exit 0
diff --git a/src/tests/run-aggregate-size.sh b/src/tests/run-aggregate-size.sh
deleted file mode 100755
index 42b0742b..00000000
--- a/src/tests/run-aggregate-size.sh
+++ /dev/null
@@ -1,105 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# char c;
-# int i;
-# long l;
-#
-# void *v;
-#
-# struct s
-# {
-# char *a;
-# int i;
-# } s;
-#
-# char ca[16];
-# int ia[32];
-# void *va[64];
-# struct s sa[8];
-
-# On x86_64 (LP64):
-# gcc -g -c -o testfile-sizes1.o sizes.c
-# clang -g -c -o testfile-sizes2.o sizes.c
-
-# const char c;
-# volatile int i;
-# const volatile long l;
-#
-# void * restrict v;
-#
-# struct s
-# {
-# const char *a;
-# volatile int i;
-# } s;
-#
-# const char ca[16];
-# volatile int ia[32];
-# const volatile void * const volatile restrict va[64];
-# struct s sa[8];
-#
-# typedef const int foo;
-# typedef volatile foo bar;
-# foo f;
-# bar b;
-#
-# gcc -std=c99 -g -c -o testfile-sizes3.o sizes.c
-
-testfiles testfile-sizes1.o testfile-sizes2.o testfile-sizes3.o
-
-testrun_compare ${abs_builddir}/aggregate_size -e testfile-sizes1.o <<\EOF
-c size 1
-i size 4
-l size 8
-v size 8
-s size 16
-ca size 16
-ia size 128
-va size 512
-sa size 128
-EOF
-
-testrun_compare ${abs_builddir}/aggregate_size -e testfile-sizes2.o <<\EOF
-c size 1
-i size 4
-l size 8
-v size 8
-s size 16
-ca size 16
-ia size 128
-va size 512
-sa size 128
-EOF
-
-testrun_compare ${abs_builddir}/aggregate_size -e testfile-sizes3.o <<\EOF
-c size 1
-i size 4
-l size 8
-v size 8
-s size 16
-ca size 16
-ia size 128
-va size 512
-sa size 128
-f size 4
-b size 4
-EOF
-
-exit 0
diff --git a/src/tests/run-alldts.sh b/src/tests/run-alldts.sh
deleted file mode 100755
index 6a9a9ece..00000000
--- a/src/tests/run-alldts.sh
+++ /dev/null
@@ -1,98 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2011 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-tempfiles testfile-alldts
-
-# This will produce "testfile-alldts" file
-testrun ${abs_builddir}/alldts
-
-testrun_compare ${abs_top_builddir}/src/readelf -d testfile-alldts <<\EOF
-
-Dynamic segment contains 66 entries:
- Addr: 0x000001a0 Offset: 0x000078 Link to section: [ 0] ''
- Type Value
- NULL
- NEEDED Shared library: [(null)]
- PLTRELSZ 3735928559 (bytes)
- PLTGOT 0xdeadbeef
- HASH 0xdeadbeef
- STRTAB 0xdeadbeef
- SYMTAB 0xdeadbeef
- RELA 0xdeadbeef
- RELASZ 3735928559 (bytes)
- RELAENT 3735928559 (bytes)
- STRSZ 3735928559 (bytes)
- SYMENT 3735928559 (bytes)
- INIT 0xdeadbeef
- FINI 0xdeadbeef
- SONAME Library soname: [(null)]
- RPATH Library rpath: [(null)]
- SYMBOLIC 0xdeadbeef
- REL 0xdeadbeef
- RELSZ 3735928559 (bytes)
- RELENT 3735928559 (bytes)
- PLTREL ???
- DEBUG
- TEXTREL
- JMPREL 0xdeadbeef
- BIND_NOW
- INIT_ARRAY 0xdeadbeef
- FINI_ARRAY 0xdeadbeef
- INIT_ARRAYSZ 3735928559 (bytes)
- FINI_ARRAYSZ 3735928559 (bytes)
- RUNPATH Library runpath: [(null)]
- FLAGS ORIGIN SYMBOLIC TEXTREL BIND_NOW 0xdeadbee0
- PREINIT_ARRAY 0xdeadbeef
- PREINIT_ARRAY 0xdeadbeef
- PREINIT_ARRAYSZ 0xdeadbeef
- VERSYM 0xdeadbeef
- GNU_PRELINKED 0xdeadbeef
- GNU_CONFLICTSZ 3735928559 (bytes)
- GNU_LIBLISTSZ 3735928559 (bytes)
- CHECKSUM 0xdeadbeef
- PLTPADSZ 3735928559 (bytes)
- MOVEENT 3735928559 (bytes)
- MOVESZ 3735928559 (bytes)
- FEATURE_1 PARINIT CONFEXP 0xdeadbeec
- POSFLAG_1 LAZYLOAD GROUPPERM 0xdeadbeec
- SYMINSZ 3735928559 (bytes)
- SYMINENT 3735928559 (bytes)
- GNU_HASH 0xdeadbeef
- TLSDESC_PLT 0xdeadbeef
- TLSDESC_GOT 0xdeadbeef
- GNU_CONFLICT 0xdeadbeef
- GNU_LIBLIST 0xdeadbeef
- CONFIG 0xdeadbeef
- DEPAUDIT 0xdeadbeef
- AUDIT 0xdeadbeef
- PLTPAD 0xdeadbeef
- MOVETAB 0xdeadbeef
- SYMINFO 0xdeadbeef
- RELACOUNT 3735928559
- RELCOUNT 3735928559
- FLAGS_1 NOW GLOBAL GROUP NODELETE INITFIRST NOOPEN ORIGIN TRANS INTERPOSE NODEFLIB NODUMP CONFALT DISPRELDNE DISPRELPND 0xdeac0000
- VERDEF 0xdeadbeef
- VERDEFNUM 3735928559
- VERNEED 0xdeadbeef
- VERNEEDNUM 3735928559
- AUXILIARY 0xdeadbeef
- FILTER 0xdeadbeef
-EOF
-
-exit 0
diff --git a/src/tests/run-allfcts-multi.sh b/src/tests/run-allfcts-multi.sh
deleted file mode 100755
index 727b76ee..00000000
--- a/src/tests/run-allfcts-multi.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# See run-readelf-dwz-multi.sh
-testfiles libtestfile_multi_shared.so testfile_multi_main testfile_multi.dwz
-testfiles testfile-dwzstr testfile-dwzstr.multi
-
-testrun_compare ${abs_builddir}/allfcts testfile_multi_main libtestfile_multi_shared.so testfile-dwzstr <<\EOF
-/home/mark/src/tests/dwz/main.c:3:main
-/home/mark/src/tests/dwz/shared.c:3:call_foo
-/home/mark/src/tests/main.c:8:main
-EOF
-
-# - test-offset-loop.c
-#
-# #include <stdbool.h>
-# #include <string.h>
-# #include <errno.h>
-# void padding (int x, int y, int z) { }
-# static inline bool is_error (int err) { return err != 0; }
-# static inline int get_errno (void) { return errno; }
-# int main () { return is_error (get_errno ()); }
-#
-# gcc -g -O2 test-offset-loop.c -o test-offset-loop
-# cp test-offset-loop test-offset-loop2
-# dwz test-offset-loop test-offset-loop2 -m test-offset-loop.alt
-
-testfiles test-offset-loop test-offset-loop.alt
-tempfiles allfcts.out
-
-# Use head to capture output because the output could be infinite...
-testrun ${abs_builddir}/allfcts test-offset-loop | head -n 20 > allfcts.out
-testrun_compare cat allfcts.out <<\EOF
-/tmp/test-offset-loop.c:6:get_errno
-/tmp/test-offset-loop.c:5:is_error
-/tmp/test-offset-loop.c:4:padding
-/tmp/test-offset-loop.c:7:main
-EOF
-
-exit 0
diff --git a/src/tests/run-allfcts.sh b/src/tests/run-allfcts.sh
deleted file mode 100755
index 6eaf13c8..00000000
--- a/src/tests/run-allfcts.sh
+++ /dev/null
@@ -1,94 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005, 2013 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile2 testfile8
-
-testrun_compare ${abs_builddir}/allfcts testfile testfile2 testfile8 <<\EOF
-/home/drepper/gnu/new-bu/build/ttt/m.c:5:main
-/home/drepper/gnu/new-bu/build/ttt/b.c:4:bar
-/home/drepper/gnu/new-bu/build/ttt/f.c:3:foo
-/shoggoth/drepper/b.c:4:bar
-/shoggoth/drepper/f.c:3:foo
-/shoggoth/drepper/m.c:5:main
-/home/drepper/gnu/elfutils/build/src/../../src/strip.c:107:main
-/home/drepper/gnu/elfutils/build/src/../../src/strip.c:159:print_version
-/home/drepper/gnu/elfutils/build/src/../../src/strip.c:173:parse_opt
-/home/drepper/gnu/elfutils/build/src/../../src/strip.c:201:more_help
-/home/drepper/gnu/elfutils/build/src/../../src/strip.c:217:process_file
-/usr/include/sys/stat.h:375:stat64
-/home/drepper/gnu/elfutils/build/src/../../src/strip.c:291:crc32_file
-/home/drepper/gnu/elfutils/build/src/../../src/strip.c:313:handle_elf
-EOF
-
-# = nested_funcs.c =
-#
-# static int
-# foo (int x)
-# {
-# int bar (int y)
-# {
-# return x - y;
-# }
-#
-# return bar (x * 2);
-# }
-#
-# int
-# main (int argc, char ** argv)
-# {
-# return foo (argc);
-# }
-#
-# gcc -g -o nested_funcs nested_funcs.c
-
-# = class_func.cxx =
-#
-# namespace foobar
-# {
-# class Foo
-# {
-# public:
-# int bar(int x);
-# };
-#
-# int Foo::bar(int x) { return x - 42; }
-# };
-#
-# int
-# main (int argc, char **argv)
-# {
-# foobar::Foo foo;
-#
-# return foo.bar (42);
-# }
-#
-# clang++ -g -o class_func class_func.cxx
-
-testfiles testfile_nested_funcs testfile_class_func
-
-testrun_compare ${abs_builddir}/allfcts testfile_nested_funcs testfile_class_func <<\EOF
-/home/mark/src/tests/nested/nested_funcs.c:2:foo
-/home/mark/src/tests/nested/nested_funcs.c:4:bar
-/home/mark/src/tests/nested/nested_funcs.c:13:main
-/home/mark/src/tests/nested/class_func.cxx:6:bar
-/home/mark/src/tests/nested/class_func.cxx:13:main
-EOF
-
-exit 0
diff --git a/src/tests/run-allregs.sh b/src/tests/run-allregs.sh
deleted file mode 100755
index 6f3862ec..00000000
--- a/src/tests/run-allregs.sh
+++ /dev/null
@@ -1,2799 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005, 2006, 2007, 2012, 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-regs_test()
-{
- tempfiles good.regs
- cat > good.regs
- testfiles "$@"
- for f; do testrun_compare ${abs_builddir}/allregs -e $f < good.regs; done
- test_cleanup
-}
-
-regs_test testfile11 <<\EOF
-integer registers:
- 0: %eax (eax), signed 32 bits
- 1: %ecx (ecx), signed 32 bits
- 2: %edx (edx), signed 32 bits
- 3: %ebx (ebx), signed 32 bits
- 4: %esp (esp), address 32 bits
- 5: %ebp (ebp), address 32 bits
- 6: %esi (esi), signed 32 bits
- 7: %edi (edi), signed 32 bits
- 8: %eip (eip), address 32 bits
- 9: %eflags (eflags), unsigned 32 bits
- 10: %trapno (trapno), unsigned 32 bits
-FPU-control registers:
- 37: %fctrl (fctrl), unsigned 16 bits
- 38: %fstat (fstat), unsigned 16 bits
- 39: %mxcsr (mxcsr), unsigned 32 bits
-MMX registers:
- 29: %mm0 (mm0), unsigned 64 bits
- 30: %mm1 (mm1), unsigned 64 bits
- 31: %mm2 (mm2), unsigned 64 bits
- 32: %mm3 (mm3), unsigned 64 bits
- 33: %mm4 (mm4), unsigned 64 bits
- 34: %mm5 (mm5), unsigned 64 bits
- 35: %mm6 (mm6), unsigned 64 bits
- 36: %mm7 (mm7), unsigned 64 bits
-SSE registers:
- 21: %xmm0 (xmm0), unsigned 128 bits
- 22: %xmm1 (xmm1), unsigned 128 bits
- 23: %xmm2 (xmm2), unsigned 128 bits
- 24: %xmm3 (xmm3), unsigned 128 bits
- 25: %xmm4 (xmm4), unsigned 128 bits
- 26: %xmm5 (xmm5), unsigned 128 bits
- 27: %xmm6 (xmm6), unsigned 128 bits
- 28: %xmm7 (xmm7), unsigned 128 bits
-segment registers:
- 40: %es (es), unsigned 16 bits
- 41: %cs (cs), unsigned 16 bits
- 42: %ss (ss), unsigned 16 bits
- 43: %ds (ds), unsigned 16 bits
- 44: %fs (fs), unsigned 16 bits
- 45: %gs (gs), unsigned 16 bits
-x87 registers:
- 11: %st0 (st0), float 80 bits
- 12: %st1 (st1), float 80 bits
- 13: %st2 (st2), float 80 bits
- 14: %st3 (st3), float 80 bits
- 15: %st4 (st4), float 80 bits
- 16: %st5 (st5), float 80 bits
- 17: %st6 (st6), float 80 bits
- 18: %st7 (st7), float 80 bits
-EOF
-
-regs_test testfile12 <<\EOF
-integer registers:
- 0: %rax (rax), signed 64 bits
- 1: %rdx (rdx), signed 64 bits
- 2: %rcx (rcx), signed 64 bits
- 3: %rbx (rbx), signed 64 bits
- 4: %rsi (rsi), signed 64 bits
- 5: %rdi (rdi), signed 64 bits
- 6: %rbp (rbp), address 64 bits
- 7: %rsp (rsp), address 64 bits
- 8: %r8 (r8), signed 64 bits
- 9: %r9 (r9), signed 64 bits
- 10: %r10 (r10), signed 64 bits
- 11: %r11 (r11), signed 64 bits
- 12: %r12 (r12), signed 64 bits
- 13: %r13 (r13), signed 64 bits
- 14: %r14 (r14), signed 64 bits
- 15: %r15 (r15), signed 64 bits
- 16: %rip (rip), address 64 bits
- 49: %rflags (rflags), unsigned 64 bits
-MMX registers:
- 41: %mm0 (mm0), unsigned 64 bits
- 42: %mm1 (mm1), unsigned 64 bits
- 43: %mm2 (mm2), unsigned 64 bits
- 44: %mm3 (mm3), unsigned 64 bits
- 45: %mm4 (mm4), unsigned 64 bits
- 46: %mm5 (mm5), unsigned 64 bits
- 47: %mm6 (mm6), unsigned 64 bits
- 48: %mm7 (mm7), unsigned 64 bits
-SSE registers:
- 17: %xmm0 (xmm0), unsigned 128 bits
- 18: %xmm1 (xmm1), unsigned 128 bits
- 19: %xmm2 (xmm2), unsigned 128 bits
- 20: %xmm3 (xmm3), unsigned 128 bits
- 21: %xmm4 (xmm4), unsigned 128 bits
- 22: %xmm5 (xmm5), unsigned 128 bits
- 23: %xmm6 (xmm6), unsigned 128 bits
- 24: %xmm7 (xmm7), unsigned 128 bits
- 25: %xmm8 (xmm8), unsigned 128 bits
- 26: %xmm9 (xmm9), unsigned 128 bits
- 27: %xmm10 (xmm10), unsigned 128 bits
- 28: %xmm11 (xmm11), unsigned 128 bits
- 29: %xmm12 (xmm12), unsigned 128 bits
- 30: %xmm13 (xmm13), unsigned 128 bits
- 31: %xmm14 (xmm14), unsigned 128 bits
- 32: %xmm15 (xmm15), unsigned 128 bits
-control registers:
- 62: %tr (tr), unsigned 64 bits
- 63: %ldtr (ldtr), unsigned 64 bits
- 64: %mxcsr (mxcsr), unsigned 64 bits
- 65: %fcw (fcw), unsigned 16 bits
- 66: %fsw (fsw), unsigned 16 bits
-segment registers:
- 50: %es (es), unsigned 16 bits
- 51: %cs (cs), unsigned 16 bits
- 52: %ss (ss), unsigned 16 bits
- 53: %ds (ds), unsigned 16 bits
- 54: %fs (fs), unsigned 16 bits
- 55: %gs (gs), unsigned 16 bits
- 58: %fs.base (fs.base), address 64 bits
- 59: %gs.base (gs.base), address 64 bits
-x87 registers:
- 33: %st0 (st0), float 80 bits
- 34: %st1 (st1), float 80 bits
- 35: %st2 (st2), float 80 bits
- 36: %st3 (st3), float 80 bits
- 37: %st4 (st4), float 80 bits
- 38: %st5 (st5), float 80 bits
- 39: %st6 (st6), float 80 bits
- 40: %st7 (st7), float 80 bits
-EOF
-
-regs_test testfile2 <<\EOF
-integer registers:
- 0: r0 (r0), signed 32 bits
- 1: r1 (r1), signed 32 bits
- 2: r2 (r2), signed 32 bits
- 3: r3 (r3), signed 32 bits
- 4: r4 (r4), signed 32 bits
- 5: r5 (r5), signed 32 bits
- 6: r6 (r6), signed 32 bits
- 7: r7 (r7), signed 32 bits
- 8: r8 (r8), signed 32 bits
- 9: r9 (r9), signed 32 bits
- 10: r10 (r10), signed 32 bits
- 11: r11 (r11), signed 32 bits
- 12: r12 (r12), signed 32 bits
- 13: r13 (r13), signed 32 bits
- 14: r14 (r14), signed 32 bits
- 15: r15 (r15), signed 32 bits
- 16: r16 (r16), signed 32 bits
- 17: r17 (r17), signed 32 bits
- 18: r18 (r18), signed 32 bits
- 19: r19 (r19), signed 32 bits
- 20: r20 (r20), signed 32 bits
- 21: r21 (r21), signed 32 bits
- 22: r22 (r22), signed 32 bits
- 23: r23 (r23), signed 32 bits
- 24: r24 (r24), signed 32 bits
- 25: r25 (r25), signed 32 bits
- 26: r26 (r26), signed 32 bits
- 27: r27 (r27), signed 32 bits
- 28: r28 (r28), signed 32 bits
- 29: r29 (r29), signed 32 bits
- 30: r30 (r30), signed 32 bits
- 31: r31 (r31), signed 32 bits
- 64: cr (cr), unsigned 32 bits
- 66: msr (msr), unsigned 32 bits
-FPU registers:
- 32: f0 (f0), float 64 bits
- 33: f1 (f1), float 64 bits
- 34: f2 (f2), float 64 bits
- 35: f3 (f3), float 64 bits
- 36: f4 (f4), float 64 bits
- 37: f5 (f5), float 64 bits
- 38: f6 (f6), float 64 bits
- 39: f7 (f7), float 64 bits
- 40: f8 (f8), float 64 bits
- 41: f9 (f9), float 64 bits
- 42: f10 (f10), float 64 bits
- 43: f11 (f11), float 64 bits
- 44: f12 (f12), float 64 bits
- 45: f13 (f13), float 64 bits
- 46: f14 (f14), float 64 bits
- 47: f15 (f15), float 64 bits
- 48: f16 (f16), float 64 bits
- 49: f17 (f17), float 64 bits
- 50: f18 (f18), float 64 bits
- 51: f19 (f19), float 64 bits
- 52: f20 (f20), float 64 bits
- 53: f21 (f21), float 64 bits
- 54: f22 (f22), float 64 bits
- 55: f23 (f23), float 64 bits
- 56: f24 (f24), float 64 bits
- 57: f25 (f25), float 64 bits
- 58: f26 (f26), float 64 bits
- 59: f27 (f27), float 64 bits
- 60: f28 (f28), float 64 bits
- 61: f29 (f29), float 64 bits
- 62: f30 (f30), float 64 bits
- 63: f31 (f31), float 64 bits
- 65: fpscr (fpscr), unsigned 32 bits
-privileged registers:
- 70: sr0 (sr0), unsigned 32 bits
- 71: sr1 (sr1), unsigned 32 bits
- 72: sr2 (sr2), unsigned 32 bits
- 73: sr3 (sr3), unsigned 32 bits
- 74: sr4 (sr4), unsigned 32 bits
- 75: sr5 (sr5), unsigned 32 bits
- 76: sr6 (sr6), unsigned 32 bits
- 77: sr7 (sr7), unsigned 32 bits
- 78: sr8 (sr8), unsigned 32 bits
- 79: sr9 (sr9), unsigned 32 bits
- 80: sr10 (sr10), unsigned 32 bits
- 81: sr11 (sr11), unsigned 32 bits
- 82: sr12 (sr12), unsigned 32 bits
- 83: sr13 (sr13), unsigned 32 bits
- 84: sr14 (sr14), unsigned 32 bits
- 85: sr15 (sr15), unsigned 32 bits
- 100: mq (mq), unsigned 32 bits
- 101: xer (xer), unsigned 32 bits
- 102: spr2 (spr2), unsigned 32 bits
- 103: spr3 (spr3), unsigned 32 bits
- 104: spr4 (spr4), unsigned 32 bits
- 105: spr5 (spr5), unsigned 32 bits
- 106: spr6 (spr6), unsigned 32 bits
- 107: spr7 (spr7), unsigned 32 bits
- 108: lr (lr), unsigned 32 bits
- 109: ctr (ctr), unsigned 32 bits
- 110: spr10 (spr10), unsigned 32 bits
- 111: spr11 (spr11), unsigned 32 bits
- 112: spr12 (spr12), unsigned 32 bits
- 113: spr13 (spr13), unsigned 32 bits
- 114: spr14 (spr14), unsigned 32 bits
- 115: spr15 (spr15), unsigned 32 bits
- 116: spr16 (spr16), unsigned 32 bits
- 117: spr17 (spr17), unsigned 32 bits
- 118: dsisr (dsisr), unsigned 32 bits
- 119: dar (dar), unsigned 32 bits
- 120: spr20 (spr20), unsigned 32 bits
- 121: spr21 (spr21), unsigned 32 bits
- 122: dec (dec), unsigned 32 bits
- 123: spr23 (spr23), unsigned 32 bits
- 124: spr24 (spr24), unsigned 32 bits
- 125: spr25 (spr25), unsigned 32 bits
- 126: spr26 (spr26), unsigned 32 bits
- 127: spr27 (spr27), unsigned 32 bits
- 128: spr28 (spr28), unsigned 32 bits
- 129: spr29 (spr29), unsigned 32 bits
- 130: spr30 (spr30), unsigned 32 bits
- 131: spr31 (spr31), unsigned 32 bits
- 132: spr32 (spr32), unsigned 32 bits
- 133: spr33 (spr33), unsigned 32 bits
- 134: spr34 (spr34), unsigned 32 bits
- 135: spr35 (spr35), unsigned 32 bits
- 136: spr36 (spr36), unsigned 32 bits
- 137: spr37 (spr37), unsigned 32 bits
- 138: spr38 (spr38), unsigned 32 bits
- 139: spr39 (spr39), unsigned 32 bits
- 140: spr40 (spr40), unsigned 32 bits
- 141: spr41 (spr41), unsigned 32 bits
- 142: spr42 (spr42), unsigned 32 bits
- 143: spr43 (spr43), unsigned 32 bits
- 144: spr44 (spr44), unsigned 32 bits
- 145: spr45 (spr45), unsigned 32 bits
- 146: spr46 (spr46), unsigned 32 bits
- 147: spr47 (spr47), unsigned 32 bits
- 148: spr48 (spr48), unsigned 32 bits
- 149: spr49 (spr49), unsigned 32 bits
- 150: spr50 (spr50), unsigned 32 bits
- 151: spr51 (spr51), unsigned 32 bits
- 152: spr52 (spr52), unsigned 32 bits
- 153: spr53 (spr53), unsigned 32 bits
- 154: spr54 (spr54), unsigned 32 bits
- 155: spr55 (spr55), unsigned 32 bits
- 156: spr56 (spr56), unsigned 32 bits
- 157: spr57 (spr57), unsigned 32 bits
- 158: spr58 (spr58), unsigned 32 bits
- 159: spr59 (spr59), unsigned 32 bits
- 160: spr60 (spr60), unsigned 32 bits
- 161: spr61 (spr61), unsigned 32 bits
- 162: spr62 (spr62), unsigned 32 bits
- 163: spr63 (spr63), unsigned 32 bits
- 164: spr64 (spr64), unsigned 32 bits
- 165: spr65 (spr65), unsigned 32 bits
- 166: spr66 (spr66), unsigned 32 bits
- 167: spr67 (spr67), unsigned 32 bits
- 168: spr68 (spr68), unsigned 32 bits
- 169: spr69 (spr69), unsigned 32 bits
- 170: spr70 (spr70), unsigned 32 bits
- 171: spr71 (spr71), unsigned 32 bits
- 172: spr72 (spr72), unsigned 32 bits
- 173: spr73 (spr73), unsigned 32 bits
- 174: spr74 (spr74), unsigned 32 bits
- 175: spr75 (spr75), unsigned 32 bits
- 176: spr76 (spr76), unsigned 32 bits
- 177: spr77 (spr77), unsigned 32 bits
- 178: spr78 (spr78), unsigned 32 bits
- 179: spr79 (spr79), unsigned 32 bits
- 180: spr80 (spr80), unsigned 32 bits
- 181: spr81 (spr81), unsigned 32 bits
- 182: spr82 (spr82), unsigned 32 bits
- 183: spr83 (spr83), unsigned 32 bits
- 184: spr84 (spr84), unsigned 32 bits
- 185: spr85 (spr85), unsigned 32 bits
- 186: spr86 (spr86), unsigned 32 bits
- 187: spr87 (spr87), unsigned 32 bits
- 188: spr88 (spr88), unsigned 32 bits
- 189: spr89 (spr89), unsigned 32 bits
- 190: spr90 (spr90), unsigned 32 bits
- 191: spr91 (spr91), unsigned 32 bits
- 192: spr92 (spr92), unsigned 32 bits
- 193: spr93 (spr93), unsigned 32 bits
- 194: spr94 (spr94), unsigned 32 bits
- 195: spr95 (spr95), unsigned 32 bits
- 196: spr96 (spr96), unsigned 32 bits
- 197: spr97 (spr97), unsigned 32 bits
- 198: spr98 (spr98), unsigned 32 bits
- 199: spr99 (spr99), unsigned 32 bits
- 200: spr100 (spr100), unsigned 32 bits
- 201: spr101 (spr101), unsigned 32 bits
- 202: spr102 (spr102), unsigned 32 bits
- 203: spr103 (spr103), unsigned 32 bits
- 204: spr104 (spr104), unsigned 32 bits
- 205: spr105 (spr105), unsigned 32 bits
- 206: spr106 (spr106), unsigned 32 bits
- 207: spr107 (spr107), unsigned 32 bits
- 208: spr108 (spr108), unsigned 32 bits
- 209: spr109 (spr109), unsigned 32 bits
- 210: spr110 (spr110), unsigned 32 bits
- 211: spr111 (spr111), unsigned 32 bits
- 212: spr112 (spr112), unsigned 32 bits
- 213: spr113 (spr113), unsigned 32 bits
- 214: spr114 (spr114), unsigned 32 bits
- 215: spr115 (spr115), unsigned 32 bits
- 216: spr116 (spr116), unsigned 32 bits
- 217: spr117 (spr117), unsigned 32 bits
- 218: spr118 (spr118), unsigned 32 bits
- 219: spr119 (spr119), unsigned 32 bits
- 220: spr120 (spr120), unsigned 32 bits
- 221: spr121 (spr121), unsigned 32 bits
- 222: spr122 (spr122), unsigned 32 bits
- 223: spr123 (spr123), unsigned 32 bits
- 224: spr124 (spr124), unsigned 32 bits
- 225: spr125 (spr125), unsigned 32 bits
- 226: spr126 (spr126), unsigned 32 bits
- 227: spr127 (spr127), unsigned 32 bits
- 228: spr128 (spr128), unsigned 32 bits
- 229: spr129 (spr129), unsigned 32 bits
- 230: spr130 (spr130), unsigned 32 bits
- 231: spr131 (spr131), unsigned 32 bits
- 232: spr132 (spr132), unsigned 32 bits
- 233: spr133 (spr133), unsigned 32 bits
- 234: spr134 (spr134), unsigned 32 bits
- 235: spr135 (spr135), unsigned 32 bits
- 236: spr136 (spr136), unsigned 32 bits
- 237: spr137 (spr137), unsigned 32 bits
- 238: spr138 (spr138), unsigned 32 bits
- 239: spr139 (spr139), unsigned 32 bits
- 240: spr140 (spr140), unsigned 32 bits
- 241: spr141 (spr141), unsigned 32 bits
- 242: spr142 (spr142), unsigned 32 bits
- 243: spr143 (spr143), unsigned 32 bits
- 244: spr144 (spr144), unsigned 32 bits
- 245: spr145 (spr145), unsigned 32 bits
- 246: spr146 (spr146), unsigned 32 bits
- 247: spr147 (spr147), unsigned 32 bits
- 248: spr148 (spr148), unsigned 32 bits
- 249: spr149 (spr149), unsigned 32 bits
- 250: spr150 (spr150), unsigned 32 bits
- 251: spr151 (spr151), unsigned 32 bits
- 252: spr152 (spr152), unsigned 32 bits
- 253: spr153 (spr153), unsigned 32 bits
- 254: spr154 (spr154), unsigned 32 bits
- 255: spr155 (spr155), unsigned 32 bits
- 256: spr156 (spr156), unsigned 32 bits
- 257: spr157 (spr157), unsigned 32 bits
- 258: spr158 (spr158), unsigned 32 bits
- 259: spr159 (spr159), unsigned 32 bits
- 260: spr160 (spr160), unsigned 32 bits
- 261: spr161 (spr161), unsigned 32 bits
- 262: spr162 (spr162), unsigned 32 bits
- 263: spr163 (spr163), unsigned 32 bits
- 264: spr164 (spr164), unsigned 32 bits
- 265: spr165 (spr165), unsigned 32 bits
- 266: spr166 (spr166), unsigned 32 bits
- 267: spr167 (spr167), unsigned 32 bits
- 268: spr168 (spr168), unsigned 32 bits
- 269: spr169 (spr169), unsigned 32 bits
- 270: spr170 (spr170), unsigned 32 bits
- 271: spr171 (spr171), unsigned 32 bits
- 272: spr172 (spr172), unsigned 32 bits
- 273: spr173 (spr173), unsigned 32 bits
- 274: spr174 (spr174), unsigned 32 bits
- 275: spr175 (spr175), unsigned 32 bits
- 276: spr176 (spr176), unsigned 32 bits
- 277: spr177 (spr177), unsigned 32 bits
- 278: spr178 (spr178), unsigned 32 bits
- 279: spr179 (spr179), unsigned 32 bits
- 280: spr180 (spr180), unsigned 32 bits
- 281: spr181 (spr181), unsigned 32 bits
- 282: spr182 (spr182), unsigned 32 bits
- 283: spr183 (spr183), unsigned 32 bits
- 284: spr184 (spr184), unsigned 32 bits
- 285: spr185 (spr185), unsigned 32 bits
- 286: spr186 (spr186), unsigned 32 bits
- 287: spr187 (spr187), unsigned 32 bits
- 288: spr188 (spr188), unsigned 32 bits
- 289: spr189 (spr189), unsigned 32 bits
- 290: spr190 (spr190), unsigned 32 bits
- 291: spr191 (spr191), unsigned 32 bits
- 292: spr192 (spr192), unsigned 32 bits
- 293: spr193 (spr193), unsigned 32 bits
- 294: spr194 (spr194), unsigned 32 bits
- 295: spr195 (spr195), unsigned 32 bits
- 296: spr196 (spr196), unsigned 32 bits
- 297: spr197 (spr197), unsigned 32 bits
- 298: spr198 (spr198), unsigned 32 bits
- 299: spr199 (spr199), unsigned 32 bits
- 300: spr200 (spr200), unsigned 32 bits
- 301: spr201 (spr201), unsigned 32 bits
- 302: spr202 (spr202), unsigned 32 bits
- 303: spr203 (spr203), unsigned 32 bits
- 304: spr204 (spr204), unsigned 32 bits
- 305: spr205 (spr205), unsigned 32 bits
- 306: spr206 (spr206), unsigned 32 bits
- 307: spr207 (spr207), unsigned 32 bits
- 308: spr208 (spr208), unsigned 32 bits
- 309: spr209 (spr209), unsigned 32 bits
- 310: spr210 (spr210), unsigned 32 bits
- 311: spr211 (spr211), unsigned 32 bits
- 312: spr212 (spr212), unsigned 32 bits
- 313: spr213 (spr213), unsigned 32 bits
- 314: spr214 (spr214), unsigned 32 bits
- 315: spr215 (spr215), unsigned 32 bits
- 316: spr216 (spr216), unsigned 32 bits
- 317: spr217 (spr217), unsigned 32 bits
- 318: spr218 (spr218), unsigned 32 bits
- 319: spr219 (spr219), unsigned 32 bits
- 320: spr220 (spr220), unsigned 32 bits
- 321: spr221 (spr221), unsigned 32 bits
- 322: spr222 (spr222), unsigned 32 bits
- 323: spr223 (spr223), unsigned 32 bits
- 324: spr224 (spr224), unsigned 32 bits
- 325: spr225 (spr225), unsigned 32 bits
- 326: spr226 (spr226), unsigned 32 bits
- 327: spr227 (spr227), unsigned 32 bits
- 328: spr228 (spr228), unsigned 32 bits
- 329: spr229 (spr229), unsigned 32 bits
- 330: spr230 (spr230), unsigned 32 bits
- 331: spr231 (spr231), unsigned 32 bits
- 332: spr232 (spr232), unsigned 32 bits
- 333: spr233 (spr233), unsigned 32 bits
- 334: spr234 (spr234), unsigned 32 bits
- 335: spr235 (spr235), unsigned 32 bits
- 336: spr236 (spr236), unsigned 32 bits
- 337: spr237 (spr237), unsigned 32 bits
- 338: spr238 (spr238), unsigned 32 bits
- 339: spr239 (spr239), unsigned 32 bits
- 340: spr240 (spr240), unsigned 32 bits
- 341: spr241 (spr241), unsigned 32 bits
- 342: spr242 (spr242), unsigned 32 bits
- 343: spr243 (spr243), unsigned 32 bits
- 344: spr244 (spr244), unsigned 32 bits
- 345: spr245 (spr245), unsigned 32 bits
- 346: spr246 (spr246), unsigned 32 bits
- 347: spr247 (spr247), unsigned 32 bits
- 348: spr248 (spr248), unsigned 32 bits
- 349: spr249 (spr249), unsigned 32 bits
- 350: spr250 (spr250), unsigned 32 bits
- 351: spr251 (spr251), unsigned 32 bits
- 352: spr252 (spr252), unsigned 32 bits
- 353: spr253 (spr253), unsigned 32 bits
- 354: spr254 (spr254), unsigned 32 bits
- 355: spr255 (spr255), unsigned 32 bits
- 357: spr257 (spr257), unsigned 32 bits
- 358: spr258 (spr258), unsigned 32 bits
- 359: spr259 (spr259), unsigned 32 bits
- 360: spr260 (spr260), unsigned 32 bits
- 361: spr261 (spr261), unsigned 32 bits
- 362: spr262 (spr262), unsigned 32 bits
- 363: spr263 (spr263), unsigned 32 bits
- 364: spr264 (spr264), unsigned 32 bits
- 365: spr265 (spr265), unsigned 32 bits
- 366: spr266 (spr266), unsigned 32 bits
- 367: spr267 (spr267), unsigned 32 bits
- 368: spr268 (spr268), unsigned 32 bits
- 369: spr269 (spr269), unsigned 32 bits
- 370: spr270 (spr270), unsigned 32 bits
- 371: spr271 (spr271), unsigned 32 bits
- 372: spr272 (spr272), unsigned 32 bits
- 373: spr273 (spr273), unsigned 32 bits
- 374: spr274 (spr274), unsigned 32 bits
- 375: spr275 (spr275), unsigned 32 bits
- 376: spr276 (spr276), unsigned 32 bits
- 377: spr277 (spr277), unsigned 32 bits
- 378: spr278 (spr278), unsigned 32 bits
- 379: spr279 (spr279), unsigned 32 bits
- 380: spr280 (spr280), unsigned 32 bits
- 381: spr281 (spr281), unsigned 32 bits
- 382: spr282 (spr282), unsigned 32 bits
- 383: spr283 (spr283), unsigned 32 bits
- 384: spr284 (spr284), unsigned 32 bits
- 385: spr285 (spr285), unsigned 32 bits
- 386: spr286 (spr286), unsigned 32 bits
- 387: spr287 (spr287), unsigned 32 bits
- 388: spr288 (spr288), unsigned 32 bits
- 389: spr289 (spr289), unsigned 32 bits
- 390: spr290 (spr290), unsigned 32 bits
- 391: spr291 (spr291), unsigned 32 bits
- 392: spr292 (spr292), unsigned 32 bits
- 393: spr293 (spr293), unsigned 32 bits
- 394: spr294 (spr294), unsigned 32 bits
- 395: spr295 (spr295), unsigned 32 bits
- 396: spr296 (spr296), unsigned 32 bits
- 397: spr297 (spr297), unsigned 32 bits
- 398: spr298 (spr298), unsigned 32 bits
- 399: spr299 (spr299), unsigned 32 bits
- 400: spr300 (spr300), unsigned 32 bits
- 401: spr301 (spr301), unsigned 32 bits
- 402: spr302 (spr302), unsigned 32 bits
- 403: spr303 (spr303), unsigned 32 bits
- 404: spr304 (spr304), unsigned 32 bits
- 405: spr305 (spr305), unsigned 32 bits
- 406: spr306 (spr306), unsigned 32 bits
- 407: spr307 (spr307), unsigned 32 bits
- 408: spr308 (spr308), unsigned 32 bits
- 409: spr309 (spr309), unsigned 32 bits
- 410: spr310 (spr310), unsigned 32 bits
- 411: spr311 (spr311), unsigned 32 bits
- 412: spr312 (spr312), unsigned 32 bits
- 413: spr313 (spr313), unsigned 32 bits
- 414: spr314 (spr314), unsigned 32 bits
- 415: spr315 (spr315), unsigned 32 bits
- 416: spr316 (spr316), unsigned 32 bits
- 417: spr317 (spr317), unsigned 32 bits
- 418: spr318 (spr318), unsigned 32 bits
- 419: spr319 (spr319), unsigned 32 bits
- 420: spr320 (spr320), unsigned 32 bits
- 421: spr321 (spr321), unsigned 32 bits
- 422: spr322 (spr322), unsigned 32 bits
- 423: spr323 (spr323), unsigned 32 bits
- 424: spr324 (spr324), unsigned 32 bits
- 425: spr325 (spr325), unsigned 32 bits
- 426: spr326 (spr326), unsigned 32 bits
- 427: spr327 (spr327), unsigned 32 bits
- 428: spr328 (spr328), unsigned 32 bits
- 429: spr329 (spr329), unsigned 32 bits
- 430: spr330 (spr330), unsigned 32 bits
- 431: spr331 (spr331), unsigned 32 bits
- 432: spr332 (spr332), unsigned 32 bits
- 433: spr333 (spr333), unsigned 32 bits
- 434: spr334 (spr334), unsigned 32 bits
- 435: spr335 (spr335), unsigned 32 bits
- 436: spr336 (spr336), unsigned 32 bits
- 437: spr337 (spr337), unsigned 32 bits
- 438: spr338 (spr338), unsigned 32 bits
- 439: spr339 (spr339), unsigned 32 bits
- 440: spr340 (spr340), unsigned 32 bits
- 441: spr341 (spr341), unsigned 32 bits
- 442: spr342 (spr342), unsigned 32 bits
- 443: spr343 (spr343), unsigned 32 bits
- 444: spr344 (spr344), unsigned 32 bits
- 445: spr345 (spr345), unsigned 32 bits
- 446: spr346 (spr346), unsigned 32 bits
- 447: spr347 (spr347), unsigned 32 bits
- 448: spr348 (spr348), unsigned 32 bits
- 449: spr349 (spr349), unsigned 32 bits
- 450: spr350 (spr350), unsigned 32 bits
- 451: spr351 (spr351), unsigned 32 bits
- 452: spr352 (spr352), unsigned 32 bits
- 453: spr353 (spr353), unsigned 32 bits
- 454: spr354 (spr354), unsigned 32 bits
- 455: spr355 (spr355), unsigned 32 bits
- 456: spr356 (spr356), unsigned 32 bits
- 457: spr357 (spr357), unsigned 32 bits
- 458: spr358 (spr358), unsigned 32 bits
- 459: spr359 (spr359), unsigned 32 bits
- 460: spr360 (spr360), unsigned 32 bits
- 461: spr361 (spr361), unsigned 32 bits
- 462: spr362 (spr362), unsigned 32 bits
- 463: spr363 (spr363), unsigned 32 bits
- 464: spr364 (spr364), unsigned 32 bits
- 465: spr365 (spr365), unsigned 32 bits
- 466: spr366 (spr366), unsigned 32 bits
- 467: spr367 (spr367), unsigned 32 bits
- 468: spr368 (spr368), unsigned 32 bits
- 469: spr369 (spr369), unsigned 32 bits
- 470: spr370 (spr370), unsigned 32 bits
- 471: spr371 (spr371), unsigned 32 bits
- 472: spr372 (spr372), unsigned 32 bits
- 473: spr373 (spr373), unsigned 32 bits
- 474: spr374 (spr374), unsigned 32 bits
- 475: spr375 (spr375), unsigned 32 bits
- 476: spr376 (spr376), unsigned 32 bits
- 477: spr377 (spr377), unsigned 32 bits
- 478: spr378 (spr378), unsigned 32 bits
- 479: spr379 (spr379), unsigned 32 bits
- 480: spr380 (spr380), unsigned 32 bits
- 481: spr381 (spr381), unsigned 32 bits
- 482: spr382 (spr382), unsigned 32 bits
- 483: spr383 (spr383), unsigned 32 bits
- 484: spr384 (spr384), unsigned 32 bits
- 485: spr385 (spr385), unsigned 32 bits
- 486: spr386 (spr386), unsigned 32 bits
- 487: spr387 (spr387), unsigned 32 bits
- 488: spr388 (spr388), unsigned 32 bits
- 489: spr389 (spr389), unsigned 32 bits
- 490: spr390 (spr390), unsigned 32 bits
- 491: spr391 (spr391), unsigned 32 bits
- 492: spr392 (spr392), unsigned 32 bits
- 493: spr393 (spr393), unsigned 32 bits
- 494: spr394 (spr394), unsigned 32 bits
- 495: spr395 (spr395), unsigned 32 bits
- 496: spr396 (spr396), unsigned 32 bits
- 497: spr397 (spr397), unsigned 32 bits
- 498: spr398 (spr398), unsigned 32 bits
- 499: spr399 (spr399), unsigned 32 bits
- 500: spr400 (spr400), unsigned 32 bits
- 501: spr401 (spr401), unsigned 32 bits
- 502: spr402 (spr402), unsigned 32 bits
- 503: spr403 (spr403), unsigned 32 bits
- 504: spr404 (spr404), unsigned 32 bits
- 505: spr405 (spr405), unsigned 32 bits
- 506: spr406 (spr406), unsigned 32 bits
- 507: spr407 (spr407), unsigned 32 bits
- 508: spr408 (spr408), unsigned 32 bits
- 509: spr409 (spr409), unsigned 32 bits
- 510: spr410 (spr410), unsigned 32 bits
- 511: spr411 (spr411), unsigned 32 bits
- 512: spr412 (spr412), unsigned 32 bits
- 513: spr413 (spr413), unsigned 32 bits
- 514: spr414 (spr414), unsigned 32 bits
- 515: spr415 (spr415), unsigned 32 bits
- 516: spr416 (spr416), unsigned 32 bits
- 517: spr417 (spr417), unsigned 32 bits
- 518: spr418 (spr418), unsigned 32 bits
- 519: spr419 (spr419), unsigned 32 bits
- 520: spr420 (spr420), unsigned 32 bits
- 521: spr421 (spr421), unsigned 32 bits
- 522: spr422 (spr422), unsigned 32 bits
- 523: spr423 (spr423), unsigned 32 bits
- 524: spr424 (spr424), unsigned 32 bits
- 525: spr425 (spr425), unsigned 32 bits
- 526: spr426 (spr426), unsigned 32 bits
- 527: spr427 (spr427), unsigned 32 bits
- 528: spr428 (spr428), unsigned 32 bits
- 529: spr429 (spr429), unsigned 32 bits
- 530: spr430 (spr430), unsigned 32 bits
- 531: spr431 (spr431), unsigned 32 bits
- 532: spr432 (spr432), unsigned 32 bits
- 533: spr433 (spr433), unsigned 32 bits
- 534: spr434 (spr434), unsigned 32 bits
- 535: spr435 (spr435), unsigned 32 bits
- 536: spr436 (spr436), unsigned 32 bits
- 537: spr437 (spr437), unsigned 32 bits
- 538: spr438 (spr438), unsigned 32 bits
- 539: spr439 (spr439), unsigned 32 bits
- 540: spr440 (spr440), unsigned 32 bits
- 541: spr441 (spr441), unsigned 32 bits
- 542: spr442 (spr442), unsigned 32 bits
- 543: spr443 (spr443), unsigned 32 bits
- 544: spr444 (spr444), unsigned 32 bits
- 545: spr445 (spr445), unsigned 32 bits
- 546: spr446 (spr446), unsigned 32 bits
- 547: spr447 (spr447), unsigned 32 bits
- 548: spr448 (spr448), unsigned 32 bits
- 549: spr449 (spr449), unsigned 32 bits
- 550: spr450 (spr450), unsigned 32 bits
- 551: spr451 (spr451), unsigned 32 bits
- 552: spr452 (spr452), unsigned 32 bits
- 553: spr453 (spr453), unsigned 32 bits
- 554: spr454 (spr454), unsigned 32 bits
- 555: spr455 (spr455), unsigned 32 bits
- 556: spr456 (spr456), unsigned 32 bits
- 557: spr457 (spr457), unsigned 32 bits
- 558: spr458 (spr458), unsigned 32 bits
- 559: spr459 (spr459), unsigned 32 bits
- 560: spr460 (spr460), unsigned 32 bits
- 561: spr461 (spr461), unsigned 32 bits
- 562: spr462 (spr462), unsigned 32 bits
- 563: spr463 (spr463), unsigned 32 bits
- 564: spr464 (spr464), unsigned 32 bits
- 565: spr465 (spr465), unsigned 32 bits
- 566: spr466 (spr466), unsigned 32 bits
- 567: spr467 (spr467), unsigned 32 bits
- 568: spr468 (spr468), unsigned 32 bits
- 569: spr469 (spr469), unsigned 32 bits
- 570: spr470 (spr470), unsigned 32 bits
- 571: spr471 (spr471), unsigned 32 bits
- 572: spr472 (spr472), unsigned 32 bits
- 573: spr473 (spr473), unsigned 32 bits
- 574: spr474 (spr474), unsigned 32 bits
- 575: spr475 (spr475), unsigned 32 bits
- 576: spr476 (spr476), unsigned 32 bits
- 577: spr477 (spr477), unsigned 32 bits
- 578: spr478 (spr478), unsigned 32 bits
- 579: spr479 (spr479), unsigned 32 bits
- 580: spr480 (spr480), unsigned 32 bits
- 581: spr481 (spr481), unsigned 32 bits
- 582: spr482 (spr482), unsigned 32 bits
- 583: spr483 (spr483), unsigned 32 bits
- 584: spr484 (spr484), unsigned 32 bits
- 585: spr485 (spr485), unsigned 32 bits
- 586: spr486 (spr486), unsigned 32 bits
- 587: spr487 (spr487), unsigned 32 bits
- 588: spr488 (spr488), unsigned 32 bits
- 589: spr489 (spr489), unsigned 32 bits
- 590: spr490 (spr490), unsigned 32 bits
- 591: spr491 (spr491), unsigned 32 bits
- 592: spr492 (spr492), unsigned 32 bits
- 593: spr493 (spr493), unsigned 32 bits
- 594: spr494 (spr494), unsigned 32 bits
- 595: spr495 (spr495), unsigned 32 bits
- 596: spr496 (spr496), unsigned 32 bits
- 597: spr497 (spr497), unsigned 32 bits
- 598: spr498 (spr498), unsigned 32 bits
- 599: spr499 (spr499), unsigned 32 bits
- 600: spr500 (spr500), unsigned 32 bits
- 601: spr501 (spr501), unsigned 32 bits
- 602: spr502 (spr502), unsigned 32 bits
- 603: spr503 (spr503), unsigned 32 bits
- 604: spr504 (spr504), unsigned 32 bits
- 605: spr505 (spr505), unsigned 32 bits
- 606: spr506 (spr506), unsigned 32 bits
- 607: spr507 (spr507), unsigned 32 bits
- 608: spr508 (spr508), unsigned 32 bits
- 609: spr509 (spr509), unsigned 32 bits
- 610: spr510 (spr510), unsigned 32 bits
- 611: spr511 (spr511), unsigned 32 bits
- 613: spr513 (spr513), unsigned 32 bits
- 614: spr514 (spr514), unsigned 32 bits
- 615: spr515 (spr515), unsigned 32 bits
- 616: spr516 (spr516), unsigned 32 bits
- 617: spr517 (spr517), unsigned 32 bits
- 618: spr518 (spr518), unsigned 32 bits
- 619: spr519 (spr519), unsigned 32 bits
- 620: spr520 (spr520), unsigned 32 bits
- 621: spr521 (spr521), unsigned 32 bits
- 622: spr522 (spr522), unsigned 32 bits
- 623: spr523 (spr523), unsigned 32 bits
- 624: spr524 (spr524), unsigned 32 bits
- 625: spr525 (spr525), unsigned 32 bits
- 626: spr526 (spr526), unsigned 32 bits
- 627: spr527 (spr527), unsigned 32 bits
- 628: spr528 (spr528), unsigned 32 bits
- 629: spr529 (spr529), unsigned 32 bits
- 630: spr530 (spr530), unsigned 32 bits
- 631: spr531 (spr531), unsigned 32 bits
- 632: spr532 (spr532), unsigned 32 bits
- 633: spr533 (spr533), unsigned 32 bits
- 634: spr534 (spr534), unsigned 32 bits
- 635: spr535 (spr535), unsigned 32 bits
- 636: spr536 (spr536), unsigned 32 bits
- 637: spr537 (spr537), unsigned 32 bits
- 638: spr538 (spr538), unsigned 32 bits
- 639: spr539 (spr539), unsigned 32 bits
- 640: spr540 (spr540), unsigned 32 bits
- 641: spr541 (spr541), unsigned 32 bits
- 642: spr542 (spr542), unsigned 32 bits
- 643: spr543 (spr543), unsigned 32 bits
- 644: spr544 (spr544), unsigned 32 bits
- 645: spr545 (spr545), unsigned 32 bits
- 646: spr546 (spr546), unsigned 32 bits
- 647: spr547 (spr547), unsigned 32 bits
- 648: spr548 (spr548), unsigned 32 bits
- 649: spr549 (spr549), unsigned 32 bits
- 650: spr550 (spr550), unsigned 32 bits
- 651: spr551 (spr551), unsigned 32 bits
- 652: spr552 (spr552), unsigned 32 bits
- 653: spr553 (spr553), unsigned 32 bits
- 654: spr554 (spr554), unsigned 32 bits
- 655: spr555 (spr555), unsigned 32 bits
- 656: spr556 (spr556), unsigned 32 bits
- 657: spr557 (spr557), unsigned 32 bits
- 658: spr558 (spr558), unsigned 32 bits
- 659: spr559 (spr559), unsigned 32 bits
- 660: spr560 (spr560), unsigned 32 bits
- 661: spr561 (spr561), unsigned 32 bits
- 662: spr562 (spr562), unsigned 32 bits
- 663: spr563 (spr563), unsigned 32 bits
- 664: spr564 (spr564), unsigned 32 bits
- 665: spr565 (spr565), unsigned 32 bits
- 666: spr566 (spr566), unsigned 32 bits
- 667: spr567 (spr567), unsigned 32 bits
- 668: spr568 (spr568), unsigned 32 bits
- 669: spr569 (spr569), unsigned 32 bits
- 670: spr570 (spr570), unsigned 32 bits
- 671: spr571 (spr571), unsigned 32 bits
- 672: spr572 (spr572), unsigned 32 bits
- 673: spr573 (spr573), unsigned 32 bits
- 674: spr574 (spr574), unsigned 32 bits
- 675: spr575 (spr575), unsigned 32 bits
- 676: spr576 (spr576), unsigned 32 bits
- 677: spr577 (spr577), unsigned 32 bits
- 678: spr578 (spr578), unsigned 32 bits
- 679: spr579 (spr579), unsigned 32 bits
- 680: spr580 (spr580), unsigned 32 bits
- 681: spr581 (spr581), unsigned 32 bits
- 682: spr582 (spr582), unsigned 32 bits
- 683: spr583 (spr583), unsigned 32 bits
- 684: spr584 (spr584), unsigned 32 bits
- 685: spr585 (spr585), unsigned 32 bits
- 686: spr586 (spr586), unsigned 32 bits
- 687: spr587 (spr587), unsigned 32 bits
- 688: spr588 (spr588), unsigned 32 bits
- 689: spr589 (spr589), unsigned 32 bits
- 690: spr590 (spr590), unsigned 32 bits
- 691: spr591 (spr591), unsigned 32 bits
- 692: spr592 (spr592), unsigned 32 bits
- 693: spr593 (spr593), unsigned 32 bits
- 694: spr594 (spr594), unsigned 32 bits
- 695: spr595 (spr595), unsigned 32 bits
- 696: spr596 (spr596), unsigned 32 bits
- 697: spr597 (spr597), unsigned 32 bits
- 698: spr598 (spr598), unsigned 32 bits
- 699: spr599 (spr599), unsigned 32 bits
- 700: spr600 (spr600), unsigned 32 bits
- 701: spr601 (spr601), unsigned 32 bits
- 702: spr602 (spr602), unsigned 32 bits
- 703: spr603 (spr603), unsigned 32 bits
- 704: spr604 (spr604), unsigned 32 bits
- 705: spr605 (spr605), unsigned 32 bits
- 706: spr606 (spr606), unsigned 32 bits
- 707: spr607 (spr607), unsigned 32 bits
- 708: spr608 (spr608), unsigned 32 bits
- 709: spr609 (spr609), unsigned 32 bits
- 710: spr610 (spr610), unsigned 32 bits
- 711: spr611 (spr611), unsigned 32 bits
- 712: spr612 (spr612), unsigned 32 bits
- 713: spr613 (spr613), unsigned 32 bits
- 714: spr614 (spr614), unsigned 32 bits
- 715: spr615 (spr615), unsigned 32 bits
- 716: spr616 (spr616), unsigned 32 bits
- 717: spr617 (spr617), unsigned 32 bits
- 718: spr618 (spr618), unsigned 32 bits
- 719: spr619 (spr619), unsigned 32 bits
- 720: spr620 (spr620), unsigned 32 bits
- 721: spr621 (spr621), unsigned 32 bits
- 722: spr622 (spr622), unsigned 32 bits
- 723: spr623 (spr623), unsigned 32 bits
- 724: spr624 (spr624), unsigned 32 bits
- 725: spr625 (spr625), unsigned 32 bits
- 726: spr626 (spr626), unsigned 32 bits
- 727: spr627 (spr627), unsigned 32 bits
- 728: spr628 (spr628), unsigned 32 bits
- 729: spr629 (spr629), unsigned 32 bits
- 730: spr630 (spr630), unsigned 32 bits
- 731: spr631 (spr631), unsigned 32 bits
- 732: spr632 (spr632), unsigned 32 bits
- 733: spr633 (spr633), unsigned 32 bits
- 734: spr634 (spr634), unsigned 32 bits
- 735: spr635 (spr635), unsigned 32 bits
- 736: spr636 (spr636), unsigned 32 bits
- 737: spr637 (spr637), unsigned 32 bits
- 738: spr638 (spr638), unsigned 32 bits
- 739: spr639 (spr639), unsigned 32 bits
- 740: spr640 (spr640), unsigned 32 bits
- 741: spr641 (spr641), unsigned 32 bits
- 742: spr642 (spr642), unsigned 32 bits
- 743: spr643 (spr643), unsigned 32 bits
- 744: spr644 (spr644), unsigned 32 bits
- 745: spr645 (spr645), unsigned 32 bits
- 746: spr646 (spr646), unsigned 32 bits
- 747: spr647 (spr647), unsigned 32 bits
- 748: spr648 (spr648), unsigned 32 bits
- 749: spr649 (spr649), unsigned 32 bits
- 750: spr650 (spr650), unsigned 32 bits
- 751: spr651 (spr651), unsigned 32 bits
- 752: spr652 (spr652), unsigned 32 bits
- 753: spr653 (spr653), unsigned 32 bits
- 754: spr654 (spr654), unsigned 32 bits
- 755: spr655 (spr655), unsigned 32 bits
- 756: spr656 (spr656), unsigned 32 bits
- 757: spr657 (spr657), unsigned 32 bits
- 758: spr658 (spr658), unsigned 32 bits
- 759: spr659 (spr659), unsigned 32 bits
- 760: spr660 (spr660), unsigned 32 bits
- 761: spr661 (spr661), unsigned 32 bits
- 762: spr662 (spr662), unsigned 32 bits
- 763: spr663 (spr663), unsigned 32 bits
- 764: spr664 (spr664), unsigned 32 bits
- 765: spr665 (spr665), unsigned 32 bits
- 766: spr666 (spr666), unsigned 32 bits
- 767: spr667 (spr667), unsigned 32 bits
- 768: spr668 (spr668), unsigned 32 bits
- 769: spr669 (spr669), unsigned 32 bits
- 770: spr670 (spr670), unsigned 32 bits
- 771: spr671 (spr671), unsigned 32 bits
- 772: spr672 (spr672), unsigned 32 bits
- 773: spr673 (spr673), unsigned 32 bits
- 774: spr674 (spr674), unsigned 32 bits
- 775: spr675 (spr675), unsigned 32 bits
- 776: spr676 (spr676), unsigned 32 bits
- 777: spr677 (spr677), unsigned 32 bits
- 778: spr678 (spr678), unsigned 32 bits
- 779: spr679 (spr679), unsigned 32 bits
- 780: spr680 (spr680), unsigned 32 bits
- 781: spr681 (spr681), unsigned 32 bits
- 782: spr682 (spr682), unsigned 32 bits
- 783: spr683 (spr683), unsigned 32 bits
- 784: spr684 (spr684), unsigned 32 bits
- 785: spr685 (spr685), unsigned 32 bits
- 786: spr686 (spr686), unsigned 32 bits
- 787: spr687 (spr687), unsigned 32 bits
- 788: spr688 (spr688), unsigned 32 bits
- 789: spr689 (spr689), unsigned 32 bits
- 790: spr690 (spr690), unsigned 32 bits
- 791: spr691 (spr691), unsigned 32 bits
- 792: spr692 (spr692), unsigned 32 bits
- 793: spr693 (spr693), unsigned 32 bits
- 794: spr694 (spr694), unsigned 32 bits
- 795: spr695 (spr695), unsigned 32 bits
- 796: spr696 (spr696), unsigned 32 bits
- 797: spr697 (spr697), unsigned 32 bits
- 798: spr698 (spr698), unsigned 32 bits
- 799: spr699 (spr699), unsigned 32 bits
- 800: spr700 (spr700), unsigned 32 bits
- 801: spr701 (spr701), unsigned 32 bits
- 802: spr702 (spr702), unsigned 32 bits
- 803: spr703 (spr703), unsigned 32 bits
- 804: spr704 (spr704), unsigned 32 bits
- 805: spr705 (spr705), unsigned 32 bits
- 806: spr706 (spr706), unsigned 32 bits
- 807: spr707 (spr707), unsigned 32 bits
- 808: spr708 (spr708), unsigned 32 bits
- 809: spr709 (spr709), unsigned 32 bits
- 810: spr710 (spr710), unsigned 32 bits
- 811: spr711 (spr711), unsigned 32 bits
- 812: spr712 (spr712), unsigned 32 bits
- 813: spr713 (spr713), unsigned 32 bits
- 814: spr714 (spr714), unsigned 32 bits
- 815: spr715 (spr715), unsigned 32 bits
- 816: spr716 (spr716), unsigned 32 bits
- 817: spr717 (spr717), unsigned 32 bits
- 818: spr718 (spr718), unsigned 32 bits
- 819: spr719 (spr719), unsigned 32 bits
- 820: spr720 (spr720), unsigned 32 bits
- 821: spr721 (spr721), unsigned 32 bits
- 822: spr722 (spr722), unsigned 32 bits
- 823: spr723 (spr723), unsigned 32 bits
- 824: spr724 (spr724), unsigned 32 bits
- 825: spr725 (spr725), unsigned 32 bits
- 826: spr726 (spr726), unsigned 32 bits
- 827: spr727 (spr727), unsigned 32 bits
- 828: spr728 (spr728), unsigned 32 bits
- 829: spr729 (spr729), unsigned 32 bits
- 830: spr730 (spr730), unsigned 32 bits
- 831: spr731 (spr731), unsigned 32 bits
- 832: spr732 (spr732), unsigned 32 bits
- 833: spr733 (spr733), unsigned 32 bits
- 834: spr734 (spr734), unsigned 32 bits
- 835: spr735 (spr735), unsigned 32 bits
- 836: spr736 (spr736), unsigned 32 bits
- 837: spr737 (spr737), unsigned 32 bits
- 838: spr738 (spr738), unsigned 32 bits
- 839: spr739 (spr739), unsigned 32 bits
- 840: spr740 (spr740), unsigned 32 bits
- 841: spr741 (spr741), unsigned 32 bits
- 842: spr742 (spr742), unsigned 32 bits
- 843: spr743 (spr743), unsigned 32 bits
- 844: spr744 (spr744), unsigned 32 bits
- 845: spr745 (spr745), unsigned 32 bits
- 846: spr746 (spr746), unsigned 32 bits
- 847: spr747 (spr747), unsigned 32 bits
- 848: spr748 (spr748), unsigned 32 bits
- 849: spr749 (spr749), unsigned 32 bits
- 850: spr750 (spr750), unsigned 32 bits
- 851: spr751 (spr751), unsigned 32 bits
- 852: spr752 (spr752), unsigned 32 bits
- 853: spr753 (spr753), unsigned 32 bits
- 854: spr754 (spr754), unsigned 32 bits
- 855: spr755 (spr755), unsigned 32 bits
- 856: spr756 (spr756), unsigned 32 bits
- 857: spr757 (spr757), unsigned 32 bits
- 858: spr758 (spr758), unsigned 32 bits
- 859: spr759 (spr759), unsigned 32 bits
- 860: spr760 (spr760), unsigned 32 bits
- 861: spr761 (spr761), unsigned 32 bits
- 862: spr762 (spr762), unsigned 32 bits
- 863: spr763 (spr763), unsigned 32 bits
- 864: spr764 (spr764), unsigned 32 bits
- 865: spr765 (spr765), unsigned 32 bits
- 866: spr766 (spr766), unsigned 32 bits
- 867: spr767 (spr767), unsigned 32 bits
- 868: spr768 (spr768), unsigned 32 bits
- 869: spr769 (spr769), unsigned 32 bits
- 870: spr770 (spr770), unsigned 32 bits
- 871: spr771 (spr771), unsigned 32 bits
- 872: spr772 (spr772), unsigned 32 bits
- 873: spr773 (spr773), unsigned 32 bits
- 874: spr774 (spr774), unsigned 32 bits
- 875: spr775 (spr775), unsigned 32 bits
- 876: spr776 (spr776), unsigned 32 bits
- 877: spr777 (spr777), unsigned 32 bits
- 878: spr778 (spr778), unsigned 32 bits
- 879: spr779 (spr779), unsigned 32 bits
- 880: spr780 (spr780), unsigned 32 bits
- 881: spr781 (spr781), unsigned 32 bits
- 882: spr782 (spr782), unsigned 32 bits
- 883: spr783 (spr783), unsigned 32 bits
- 884: spr784 (spr784), unsigned 32 bits
- 885: spr785 (spr785), unsigned 32 bits
- 886: spr786 (spr786), unsigned 32 bits
- 887: spr787 (spr787), unsigned 32 bits
- 888: spr788 (spr788), unsigned 32 bits
- 889: spr789 (spr789), unsigned 32 bits
- 890: spr790 (spr790), unsigned 32 bits
- 891: spr791 (spr791), unsigned 32 bits
- 892: spr792 (spr792), unsigned 32 bits
- 893: spr793 (spr793), unsigned 32 bits
- 894: spr794 (spr794), unsigned 32 bits
- 895: spr795 (spr795), unsigned 32 bits
- 896: spr796 (spr796), unsigned 32 bits
- 897: spr797 (spr797), unsigned 32 bits
- 898: spr798 (spr798), unsigned 32 bits
- 899: spr799 (spr799), unsigned 32 bits
- 900: spr800 (spr800), unsigned 32 bits
- 901: spr801 (spr801), unsigned 32 bits
- 902: spr802 (spr802), unsigned 32 bits
- 903: spr803 (spr803), unsigned 32 bits
- 904: spr804 (spr804), unsigned 32 bits
- 905: spr805 (spr805), unsigned 32 bits
- 906: spr806 (spr806), unsigned 32 bits
- 907: spr807 (spr807), unsigned 32 bits
- 908: spr808 (spr808), unsigned 32 bits
- 909: spr809 (spr809), unsigned 32 bits
- 910: spr810 (spr810), unsigned 32 bits
- 911: spr811 (spr811), unsigned 32 bits
- 912: spr812 (spr812), unsigned 32 bits
- 913: spr813 (spr813), unsigned 32 bits
- 914: spr814 (spr814), unsigned 32 bits
- 915: spr815 (spr815), unsigned 32 bits
- 916: spr816 (spr816), unsigned 32 bits
- 917: spr817 (spr817), unsigned 32 bits
- 918: spr818 (spr818), unsigned 32 bits
- 919: spr819 (spr819), unsigned 32 bits
- 920: spr820 (spr820), unsigned 32 bits
- 921: spr821 (spr821), unsigned 32 bits
- 922: spr822 (spr822), unsigned 32 bits
- 923: spr823 (spr823), unsigned 32 bits
- 924: spr824 (spr824), unsigned 32 bits
- 925: spr825 (spr825), unsigned 32 bits
- 926: spr826 (spr826), unsigned 32 bits
- 927: spr827 (spr827), unsigned 32 bits
- 928: spr828 (spr828), unsigned 32 bits
- 929: spr829 (spr829), unsigned 32 bits
- 930: spr830 (spr830), unsigned 32 bits
- 931: spr831 (spr831), unsigned 32 bits
- 932: spr832 (spr832), unsigned 32 bits
- 933: spr833 (spr833), unsigned 32 bits
- 934: spr834 (spr834), unsigned 32 bits
- 935: spr835 (spr835), unsigned 32 bits
- 936: spr836 (spr836), unsigned 32 bits
- 937: spr837 (spr837), unsigned 32 bits
- 938: spr838 (spr838), unsigned 32 bits
- 939: spr839 (spr839), unsigned 32 bits
- 940: spr840 (spr840), unsigned 32 bits
- 941: spr841 (spr841), unsigned 32 bits
- 942: spr842 (spr842), unsigned 32 bits
- 943: spr843 (spr843), unsigned 32 bits
- 944: spr844 (spr844), unsigned 32 bits
- 945: spr845 (spr845), unsigned 32 bits
- 946: spr846 (spr846), unsigned 32 bits
- 947: spr847 (spr847), unsigned 32 bits
- 948: spr848 (spr848), unsigned 32 bits
- 949: spr849 (spr849), unsigned 32 bits
- 950: spr850 (spr850), unsigned 32 bits
- 951: spr851 (spr851), unsigned 32 bits
- 952: spr852 (spr852), unsigned 32 bits
- 953: spr853 (spr853), unsigned 32 bits
- 954: spr854 (spr854), unsigned 32 bits
- 955: spr855 (spr855), unsigned 32 bits
- 956: spr856 (spr856), unsigned 32 bits
- 957: spr857 (spr857), unsigned 32 bits
- 958: spr858 (spr858), unsigned 32 bits
- 959: spr859 (spr859), unsigned 32 bits
- 960: spr860 (spr860), unsigned 32 bits
- 961: spr861 (spr861), unsigned 32 bits
- 962: spr862 (spr862), unsigned 32 bits
- 963: spr863 (spr863), unsigned 32 bits
- 964: spr864 (spr864), unsigned 32 bits
- 965: spr865 (spr865), unsigned 32 bits
- 966: spr866 (spr866), unsigned 32 bits
- 967: spr867 (spr867), unsigned 32 bits
- 968: spr868 (spr868), unsigned 32 bits
- 969: spr869 (spr869), unsigned 32 bits
- 970: spr870 (spr870), unsigned 32 bits
- 971: spr871 (spr871), unsigned 32 bits
- 972: spr872 (spr872), unsigned 32 bits
- 973: spr873 (spr873), unsigned 32 bits
- 974: spr874 (spr874), unsigned 32 bits
- 975: spr875 (spr875), unsigned 32 bits
- 976: spr876 (spr876), unsigned 32 bits
- 977: spr877 (spr877), unsigned 32 bits
- 978: spr878 (spr878), unsigned 32 bits
- 979: spr879 (spr879), unsigned 32 bits
- 980: spr880 (spr880), unsigned 32 bits
- 981: spr881 (spr881), unsigned 32 bits
- 982: spr882 (spr882), unsigned 32 bits
- 983: spr883 (spr883), unsigned 32 bits
- 984: spr884 (spr884), unsigned 32 bits
- 985: spr885 (spr885), unsigned 32 bits
- 986: spr886 (spr886), unsigned 32 bits
- 987: spr887 (spr887), unsigned 32 bits
- 988: spr888 (spr888), unsigned 32 bits
- 989: spr889 (spr889), unsigned 32 bits
- 990: spr890 (spr890), unsigned 32 bits
- 991: spr891 (spr891), unsigned 32 bits
- 992: spr892 (spr892), unsigned 32 bits
- 993: spr893 (spr893), unsigned 32 bits
- 994: spr894 (spr894), unsigned 32 bits
- 995: spr895 (spr895), unsigned 32 bits
- 996: spr896 (spr896), unsigned 32 bits
- 997: spr897 (spr897), unsigned 32 bits
- 998: spr898 (spr898), unsigned 32 bits
- 999: spr899 (spr899), unsigned 32 bits
-vector registers:
- 67: vscr (vscr), unsigned 32 bits
- 356: vrsave (vrsave), unsigned 32 bits
- 612: spefscr (spefscr), unsigned 32 bits
- 1124: vr0 (vr0), unsigned 128 bits
- 1125: vr1 (vr1), unsigned 128 bits
- 1126: vr2 (vr2), unsigned 128 bits
- 1127: vr3 (vr3), unsigned 128 bits
- 1128: vr4 (vr4), unsigned 128 bits
- 1129: vr5 (vr5), unsigned 128 bits
- 1130: vr6 (vr6), unsigned 128 bits
- 1131: vr7 (vr7), unsigned 128 bits
- 1132: vr8 (vr8), unsigned 128 bits
- 1133: vr9 (vr9), unsigned 128 bits
- 1134: vr10 (vr10), unsigned 128 bits
- 1135: vr11 (vr11), unsigned 128 bits
- 1136: vr12 (vr12), unsigned 128 bits
- 1137: vr13 (vr13), unsigned 128 bits
- 1138: vr14 (vr14), unsigned 128 bits
- 1139: vr15 (vr15), unsigned 128 bits
- 1140: vr16 (vr16), unsigned 128 bits
- 1141: vr17 (vr17), unsigned 128 bits
- 1142: vr18 (vr18), unsigned 128 bits
- 1143: vr19 (vr19), unsigned 128 bits
- 1144: vr20 (vr20), unsigned 128 bits
- 1145: vr21 (vr21), unsigned 128 bits
- 1146: vr22 (vr22), unsigned 128 bits
- 1147: vr23 (vr23), unsigned 128 bits
- 1148: vr24 (vr24), unsigned 128 bits
- 1149: vr25 (vr25), unsigned 128 bits
- 1150: vr26 (vr26), unsigned 128 bits
- 1151: vr27 (vr27), unsigned 128 bits
- 1152: vr28 (vr28), unsigned 128 bits
- 1153: vr29 (vr29), unsigned 128 bits
- 1154: vr30 (vr30), unsigned 128 bits
- 1155: vr31 (vr31), unsigned 128 bits
-EOF
-
-regs_test testfile23 <<\EOF
-integer registers:
- 0: r0 (r0), signed 64 bits
- 1: r1 (r1), signed 64 bits
- 2: r2 (r2), signed 64 bits
- 3: r3 (r3), signed 64 bits
- 4: r4 (r4), signed 64 bits
- 5: r5 (r5), signed 64 bits
- 6: r6 (r6), signed 64 bits
- 7: r7 (r7), signed 64 bits
- 8: r8 (r8), signed 64 bits
- 9: r9 (r9), signed 64 bits
- 10: r10 (r10), signed 64 bits
- 11: r11 (r11), signed 64 bits
- 12: r12 (r12), signed 64 bits
- 13: r13 (r13), signed 64 bits
- 14: r14 (r14), signed 64 bits
- 15: r15 (r15), signed 64 bits
- 16: r16 (r16), signed 64 bits
- 17: r17 (r17), signed 64 bits
- 18: r18 (r18), signed 64 bits
- 19: r19 (r19), signed 64 bits
- 20: r20 (r20), signed 64 bits
- 21: r21 (r21), signed 64 bits
- 22: r22 (r22), signed 64 bits
- 23: r23 (r23), signed 64 bits
- 24: r24 (r24), signed 64 bits
- 25: r25 (r25), signed 64 bits
- 26: r26 (r26), signed 64 bits
- 27: r27 (r27), signed 64 bits
- 28: r28 (r28), signed 64 bits
- 29: r29 (r29), signed 64 bits
- 30: r30 (r30), signed 64 bits
- 31: r31 (r31), signed 64 bits
- 64: cr (cr), unsigned 64 bits
- 66: msr (msr), unsigned 64 bits
-FPU registers:
- 32: f0 (f0), float 64 bits
- 33: f1 (f1), float 64 bits
- 34: f2 (f2), float 64 bits
- 35: f3 (f3), float 64 bits
- 36: f4 (f4), float 64 bits
- 37: f5 (f5), float 64 bits
- 38: f6 (f6), float 64 bits
- 39: f7 (f7), float 64 bits
- 40: f8 (f8), float 64 bits
- 41: f9 (f9), float 64 bits
- 42: f10 (f10), float 64 bits
- 43: f11 (f11), float 64 bits
- 44: f12 (f12), float 64 bits
- 45: f13 (f13), float 64 bits
- 46: f14 (f14), float 64 bits
- 47: f15 (f15), float 64 bits
- 48: f16 (f16), float 64 bits
- 49: f17 (f17), float 64 bits
- 50: f18 (f18), float 64 bits
- 51: f19 (f19), float 64 bits
- 52: f20 (f20), float 64 bits
- 53: f21 (f21), float 64 bits
- 54: f22 (f22), float 64 bits
- 55: f23 (f23), float 64 bits
- 56: f24 (f24), float 64 bits
- 57: f25 (f25), float 64 bits
- 58: f26 (f26), float 64 bits
- 59: f27 (f27), float 64 bits
- 60: f28 (f28), float 64 bits
- 61: f29 (f29), float 64 bits
- 62: f30 (f30), float 64 bits
- 63: f31 (f31), float 64 bits
- 65: fpscr (fpscr), unsigned 64 bits
-privileged registers:
- 70: sr0 (sr0), unsigned 64 bits
- 71: sr1 (sr1), unsigned 64 bits
- 72: sr2 (sr2), unsigned 64 bits
- 73: sr3 (sr3), unsigned 64 bits
- 74: sr4 (sr4), unsigned 64 bits
- 75: sr5 (sr5), unsigned 64 bits
- 76: sr6 (sr6), unsigned 64 bits
- 77: sr7 (sr7), unsigned 64 bits
- 78: sr8 (sr8), unsigned 64 bits
- 79: sr9 (sr9), unsigned 64 bits
- 80: sr10 (sr10), unsigned 64 bits
- 81: sr11 (sr11), unsigned 64 bits
- 82: sr12 (sr12), unsigned 64 bits
- 83: sr13 (sr13), unsigned 64 bits
- 84: sr14 (sr14), unsigned 64 bits
- 85: sr15 (sr15), unsigned 64 bits
- 100: spr0 (spr0), unsigned 64 bits
- 101: xer (xer), unsigned 64 bits
- 102: spr2 (spr2), unsigned 64 bits
- 103: spr3 (spr3), unsigned 64 bits
- 104: spr4 (spr4), unsigned 64 bits
- 105: spr5 (spr5), unsigned 64 bits
- 106: spr6 (spr6), unsigned 64 bits
- 107: spr7 (spr7), unsigned 64 bits
- 108: lr (lr), unsigned 64 bits
- 109: ctr (ctr), unsigned 64 bits
- 110: spr10 (spr10), unsigned 64 bits
- 111: spr11 (spr11), unsigned 64 bits
- 112: spr12 (spr12), unsigned 64 bits
- 113: spr13 (spr13), unsigned 64 bits
- 114: spr14 (spr14), unsigned 64 bits
- 115: spr15 (spr15), unsigned 64 bits
- 116: spr16 (spr16), unsigned 64 bits
- 117: spr17 (spr17), unsigned 64 bits
- 118: dsisr (dsisr), unsigned 64 bits
- 119: dar (dar), unsigned 64 bits
- 120: spr20 (spr20), unsigned 64 bits
- 121: spr21 (spr21), unsigned 64 bits
- 122: dec (dec), unsigned 64 bits
- 123: spr23 (spr23), unsigned 64 bits
- 124: spr24 (spr24), unsigned 64 bits
- 125: spr25 (spr25), unsigned 64 bits
- 126: spr26 (spr26), unsigned 64 bits
- 127: spr27 (spr27), unsigned 64 bits
- 128: spr28 (spr28), unsigned 64 bits
- 129: spr29 (spr29), unsigned 64 bits
- 130: spr30 (spr30), unsigned 64 bits
- 131: spr31 (spr31), unsigned 64 bits
- 132: spr32 (spr32), unsigned 64 bits
- 133: spr33 (spr33), unsigned 64 bits
- 134: spr34 (spr34), unsigned 64 bits
- 135: spr35 (spr35), unsigned 64 bits
- 136: spr36 (spr36), unsigned 64 bits
- 137: spr37 (spr37), unsigned 64 bits
- 138: spr38 (spr38), unsigned 64 bits
- 139: spr39 (spr39), unsigned 64 bits
- 140: spr40 (spr40), unsigned 64 bits
- 141: spr41 (spr41), unsigned 64 bits
- 142: spr42 (spr42), unsigned 64 bits
- 143: spr43 (spr43), unsigned 64 bits
- 144: spr44 (spr44), unsigned 64 bits
- 145: spr45 (spr45), unsigned 64 bits
- 146: spr46 (spr46), unsigned 64 bits
- 147: spr47 (spr47), unsigned 64 bits
- 148: spr48 (spr48), unsigned 64 bits
- 149: spr49 (spr49), unsigned 64 bits
- 150: spr50 (spr50), unsigned 64 bits
- 151: spr51 (spr51), unsigned 64 bits
- 152: spr52 (spr52), unsigned 64 bits
- 153: spr53 (spr53), unsigned 64 bits
- 154: spr54 (spr54), unsigned 64 bits
- 155: spr55 (spr55), unsigned 64 bits
- 156: spr56 (spr56), unsigned 64 bits
- 157: spr57 (spr57), unsigned 64 bits
- 158: spr58 (spr58), unsigned 64 bits
- 159: spr59 (spr59), unsigned 64 bits
- 160: spr60 (spr60), unsigned 64 bits
- 161: spr61 (spr61), unsigned 64 bits
- 162: spr62 (spr62), unsigned 64 bits
- 163: spr63 (spr63), unsigned 64 bits
- 164: spr64 (spr64), unsigned 64 bits
- 165: spr65 (spr65), unsigned 64 bits
- 166: spr66 (spr66), unsigned 64 bits
- 167: spr67 (spr67), unsigned 64 bits
- 168: spr68 (spr68), unsigned 64 bits
- 169: spr69 (spr69), unsigned 64 bits
- 170: spr70 (spr70), unsigned 64 bits
- 171: spr71 (spr71), unsigned 64 bits
- 172: spr72 (spr72), unsigned 64 bits
- 173: spr73 (spr73), unsigned 64 bits
- 174: spr74 (spr74), unsigned 64 bits
- 175: spr75 (spr75), unsigned 64 bits
- 176: spr76 (spr76), unsigned 64 bits
- 177: spr77 (spr77), unsigned 64 bits
- 178: spr78 (spr78), unsigned 64 bits
- 179: spr79 (spr79), unsigned 64 bits
- 180: spr80 (spr80), unsigned 64 bits
- 181: spr81 (spr81), unsigned 64 bits
- 182: spr82 (spr82), unsigned 64 bits
- 183: spr83 (spr83), unsigned 64 bits
- 184: spr84 (spr84), unsigned 64 bits
- 185: spr85 (spr85), unsigned 64 bits
- 186: spr86 (spr86), unsigned 64 bits
- 187: spr87 (spr87), unsigned 64 bits
- 188: spr88 (spr88), unsigned 64 bits
- 189: spr89 (spr89), unsigned 64 bits
- 190: spr90 (spr90), unsigned 64 bits
- 191: spr91 (spr91), unsigned 64 bits
- 192: spr92 (spr92), unsigned 64 bits
- 193: spr93 (spr93), unsigned 64 bits
- 194: spr94 (spr94), unsigned 64 bits
- 195: spr95 (spr95), unsigned 64 bits
- 196: spr96 (spr96), unsigned 64 bits
- 197: spr97 (spr97), unsigned 64 bits
- 198: spr98 (spr98), unsigned 64 bits
- 199: spr99 (spr99), unsigned 64 bits
- 200: spr100 (spr100), unsigned 64 bits
- 201: spr101 (spr101), unsigned 64 bits
- 202: spr102 (spr102), unsigned 64 bits
- 203: spr103 (spr103), unsigned 64 bits
- 204: spr104 (spr104), unsigned 64 bits
- 205: spr105 (spr105), unsigned 64 bits
- 206: spr106 (spr106), unsigned 64 bits
- 207: spr107 (spr107), unsigned 64 bits
- 208: spr108 (spr108), unsigned 64 bits
- 209: spr109 (spr109), unsigned 64 bits
- 210: spr110 (spr110), unsigned 64 bits
- 211: spr111 (spr111), unsigned 64 bits
- 212: spr112 (spr112), unsigned 64 bits
- 213: spr113 (spr113), unsigned 64 bits
- 214: spr114 (spr114), unsigned 64 bits
- 215: spr115 (spr115), unsigned 64 bits
- 216: spr116 (spr116), unsigned 64 bits
- 217: spr117 (spr117), unsigned 64 bits
- 218: spr118 (spr118), unsigned 64 bits
- 219: spr119 (spr119), unsigned 64 bits
- 220: spr120 (spr120), unsigned 64 bits
- 221: spr121 (spr121), unsigned 64 bits
- 222: spr122 (spr122), unsigned 64 bits
- 223: spr123 (spr123), unsigned 64 bits
- 224: spr124 (spr124), unsigned 64 bits
- 225: spr125 (spr125), unsigned 64 bits
- 226: spr126 (spr126), unsigned 64 bits
- 227: spr127 (spr127), unsigned 64 bits
- 228: spr128 (spr128), unsigned 64 bits
- 229: spr129 (spr129), unsigned 64 bits
- 230: spr130 (spr130), unsigned 64 bits
- 231: spr131 (spr131), unsigned 64 bits
- 232: spr132 (spr132), unsigned 64 bits
- 233: spr133 (spr133), unsigned 64 bits
- 234: spr134 (spr134), unsigned 64 bits
- 235: spr135 (spr135), unsigned 64 bits
- 236: spr136 (spr136), unsigned 64 bits
- 237: spr137 (spr137), unsigned 64 bits
- 238: spr138 (spr138), unsigned 64 bits
- 239: spr139 (spr139), unsigned 64 bits
- 240: spr140 (spr140), unsigned 64 bits
- 241: spr141 (spr141), unsigned 64 bits
- 242: spr142 (spr142), unsigned 64 bits
- 243: spr143 (spr143), unsigned 64 bits
- 244: spr144 (spr144), unsigned 64 bits
- 245: spr145 (spr145), unsigned 64 bits
- 246: spr146 (spr146), unsigned 64 bits
- 247: spr147 (spr147), unsigned 64 bits
- 248: spr148 (spr148), unsigned 64 bits
- 249: spr149 (spr149), unsigned 64 bits
- 250: spr150 (spr150), unsigned 64 bits
- 251: spr151 (spr151), unsigned 64 bits
- 252: spr152 (spr152), unsigned 64 bits
- 253: spr153 (spr153), unsigned 64 bits
- 254: spr154 (spr154), unsigned 64 bits
- 255: spr155 (spr155), unsigned 64 bits
- 256: spr156 (spr156), unsigned 64 bits
- 257: spr157 (spr157), unsigned 64 bits
- 258: spr158 (spr158), unsigned 64 bits
- 259: spr159 (spr159), unsigned 64 bits
- 260: spr160 (spr160), unsigned 64 bits
- 261: spr161 (spr161), unsigned 64 bits
- 262: spr162 (spr162), unsigned 64 bits
- 263: spr163 (spr163), unsigned 64 bits
- 264: spr164 (spr164), unsigned 64 bits
- 265: spr165 (spr165), unsigned 64 bits
- 266: spr166 (spr166), unsigned 64 bits
- 267: spr167 (spr167), unsigned 64 bits
- 268: spr168 (spr168), unsigned 64 bits
- 269: spr169 (spr169), unsigned 64 bits
- 270: spr170 (spr170), unsigned 64 bits
- 271: spr171 (spr171), unsigned 64 bits
- 272: spr172 (spr172), unsigned 64 bits
- 273: spr173 (spr173), unsigned 64 bits
- 274: spr174 (spr174), unsigned 64 bits
- 275: spr175 (spr175), unsigned 64 bits
- 276: spr176 (spr176), unsigned 64 bits
- 277: spr177 (spr177), unsigned 64 bits
- 278: spr178 (spr178), unsigned 64 bits
- 279: spr179 (spr179), unsigned 64 bits
- 280: spr180 (spr180), unsigned 64 bits
- 281: spr181 (spr181), unsigned 64 bits
- 282: spr182 (spr182), unsigned 64 bits
- 283: spr183 (spr183), unsigned 64 bits
- 284: spr184 (spr184), unsigned 64 bits
- 285: spr185 (spr185), unsigned 64 bits
- 286: spr186 (spr186), unsigned 64 bits
- 287: spr187 (spr187), unsigned 64 bits
- 288: spr188 (spr188), unsigned 64 bits
- 289: spr189 (spr189), unsigned 64 bits
- 290: spr190 (spr190), unsigned 64 bits
- 291: spr191 (spr191), unsigned 64 bits
- 292: spr192 (spr192), unsigned 64 bits
- 293: spr193 (spr193), unsigned 64 bits
- 294: spr194 (spr194), unsigned 64 bits
- 295: spr195 (spr195), unsigned 64 bits
- 296: spr196 (spr196), unsigned 64 bits
- 297: spr197 (spr197), unsigned 64 bits
- 298: spr198 (spr198), unsigned 64 bits
- 299: spr199 (spr199), unsigned 64 bits
- 300: spr200 (spr200), unsigned 64 bits
- 301: spr201 (spr201), unsigned 64 bits
- 302: spr202 (spr202), unsigned 64 bits
- 303: spr203 (spr203), unsigned 64 bits
- 304: spr204 (spr204), unsigned 64 bits
- 305: spr205 (spr205), unsigned 64 bits
- 306: spr206 (spr206), unsigned 64 bits
- 307: spr207 (spr207), unsigned 64 bits
- 308: spr208 (spr208), unsigned 64 bits
- 309: spr209 (spr209), unsigned 64 bits
- 310: spr210 (spr210), unsigned 64 bits
- 311: spr211 (spr211), unsigned 64 bits
- 312: spr212 (spr212), unsigned 64 bits
- 313: spr213 (spr213), unsigned 64 bits
- 314: spr214 (spr214), unsigned 64 bits
- 315: spr215 (spr215), unsigned 64 bits
- 316: spr216 (spr216), unsigned 64 bits
- 317: spr217 (spr217), unsigned 64 bits
- 318: spr218 (spr218), unsigned 64 bits
- 319: spr219 (spr219), unsigned 64 bits
- 320: spr220 (spr220), unsigned 64 bits
- 321: spr221 (spr221), unsigned 64 bits
- 322: spr222 (spr222), unsigned 64 bits
- 323: spr223 (spr223), unsigned 64 bits
- 324: spr224 (spr224), unsigned 64 bits
- 325: spr225 (spr225), unsigned 64 bits
- 326: spr226 (spr226), unsigned 64 bits
- 327: spr227 (spr227), unsigned 64 bits
- 328: spr228 (spr228), unsigned 64 bits
- 329: spr229 (spr229), unsigned 64 bits
- 330: spr230 (spr230), unsigned 64 bits
- 331: spr231 (spr231), unsigned 64 bits
- 332: spr232 (spr232), unsigned 64 bits
- 333: spr233 (spr233), unsigned 64 bits
- 334: spr234 (spr234), unsigned 64 bits
- 335: spr235 (spr235), unsigned 64 bits
- 336: spr236 (spr236), unsigned 64 bits
- 337: spr237 (spr237), unsigned 64 bits
- 338: spr238 (spr238), unsigned 64 bits
- 339: spr239 (spr239), unsigned 64 bits
- 340: spr240 (spr240), unsigned 64 bits
- 341: spr241 (spr241), unsigned 64 bits
- 342: spr242 (spr242), unsigned 64 bits
- 343: spr243 (spr243), unsigned 64 bits
- 344: spr244 (spr244), unsigned 64 bits
- 345: spr245 (spr245), unsigned 64 bits
- 346: spr246 (spr246), unsigned 64 bits
- 347: spr247 (spr247), unsigned 64 bits
- 348: spr248 (spr248), unsigned 64 bits
- 349: spr249 (spr249), unsigned 64 bits
- 350: spr250 (spr250), unsigned 64 bits
- 351: spr251 (spr251), unsigned 64 bits
- 352: spr252 (spr252), unsigned 64 bits
- 353: spr253 (spr253), unsigned 64 bits
- 354: spr254 (spr254), unsigned 64 bits
- 355: spr255 (spr255), unsigned 64 bits
- 357: spr257 (spr257), unsigned 64 bits
- 358: spr258 (spr258), unsigned 64 bits
- 359: spr259 (spr259), unsigned 64 bits
- 360: spr260 (spr260), unsigned 64 bits
- 361: spr261 (spr261), unsigned 64 bits
- 362: spr262 (spr262), unsigned 64 bits
- 363: spr263 (spr263), unsigned 64 bits
- 364: spr264 (spr264), unsigned 64 bits
- 365: spr265 (spr265), unsigned 64 bits
- 366: spr266 (spr266), unsigned 64 bits
- 367: spr267 (spr267), unsigned 64 bits
- 368: spr268 (spr268), unsigned 64 bits
- 369: spr269 (spr269), unsigned 64 bits
- 370: spr270 (spr270), unsigned 64 bits
- 371: spr271 (spr271), unsigned 64 bits
- 372: spr272 (spr272), unsigned 64 bits
- 373: spr273 (spr273), unsigned 64 bits
- 374: spr274 (spr274), unsigned 64 bits
- 375: spr275 (spr275), unsigned 64 bits
- 376: spr276 (spr276), unsigned 64 bits
- 377: spr277 (spr277), unsigned 64 bits
- 378: spr278 (spr278), unsigned 64 bits
- 379: spr279 (spr279), unsigned 64 bits
- 380: spr280 (spr280), unsigned 64 bits
- 381: spr281 (spr281), unsigned 64 bits
- 382: spr282 (spr282), unsigned 64 bits
- 383: spr283 (spr283), unsigned 64 bits
- 384: spr284 (spr284), unsigned 64 bits
- 385: spr285 (spr285), unsigned 64 bits
- 386: spr286 (spr286), unsigned 64 bits
- 387: spr287 (spr287), unsigned 64 bits
- 388: spr288 (spr288), unsigned 64 bits
- 389: spr289 (spr289), unsigned 64 bits
- 390: spr290 (spr290), unsigned 64 bits
- 391: spr291 (spr291), unsigned 64 bits
- 392: spr292 (spr292), unsigned 64 bits
- 393: spr293 (spr293), unsigned 64 bits
- 394: spr294 (spr294), unsigned 64 bits
- 395: spr295 (spr295), unsigned 64 bits
- 396: spr296 (spr296), unsigned 64 bits
- 397: spr297 (spr297), unsigned 64 bits
- 398: spr298 (spr298), unsigned 64 bits
- 399: spr299 (spr299), unsigned 64 bits
- 400: spr300 (spr300), unsigned 64 bits
- 401: spr301 (spr301), unsigned 64 bits
- 402: spr302 (spr302), unsigned 64 bits
- 403: spr303 (spr303), unsigned 64 bits
- 404: spr304 (spr304), unsigned 64 bits
- 405: spr305 (spr305), unsigned 64 bits
- 406: spr306 (spr306), unsigned 64 bits
- 407: spr307 (spr307), unsigned 64 bits
- 408: spr308 (spr308), unsigned 64 bits
- 409: spr309 (spr309), unsigned 64 bits
- 410: spr310 (spr310), unsigned 64 bits
- 411: spr311 (spr311), unsigned 64 bits
- 412: spr312 (spr312), unsigned 64 bits
- 413: spr313 (spr313), unsigned 64 bits
- 414: spr314 (spr314), unsigned 64 bits
- 415: spr315 (spr315), unsigned 64 bits
- 416: spr316 (spr316), unsigned 64 bits
- 417: spr317 (spr317), unsigned 64 bits
- 418: spr318 (spr318), unsigned 64 bits
- 419: spr319 (spr319), unsigned 64 bits
- 420: spr320 (spr320), unsigned 64 bits
- 421: spr321 (spr321), unsigned 64 bits
- 422: spr322 (spr322), unsigned 64 bits
- 423: spr323 (spr323), unsigned 64 bits
- 424: spr324 (spr324), unsigned 64 bits
- 425: spr325 (spr325), unsigned 64 bits
- 426: spr326 (spr326), unsigned 64 bits
- 427: spr327 (spr327), unsigned 64 bits
- 428: spr328 (spr328), unsigned 64 bits
- 429: spr329 (spr329), unsigned 64 bits
- 430: spr330 (spr330), unsigned 64 bits
- 431: spr331 (spr331), unsigned 64 bits
- 432: spr332 (spr332), unsigned 64 bits
- 433: spr333 (spr333), unsigned 64 bits
- 434: spr334 (spr334), unsigned 64 bits
- 435: spr335 (spr335), unsigned 64 bits
- 436: spr336 (spr336), unsigned 64 bits
- 437: spr337 (spr337), unsigned 64 bits
- 438: spr338 (spr338), unsigned 64 bits
- 439: spr339 (spr339), unsigned 64 bits
- 440: spr340 (spr340), unsigned 64 bits
- 441: spr341 (spr341), unsigned 64 bits
- 442: spr342 (spr342), unsigned 64 bits
- 443: spr343 (spr343), unsigned 64 bits
- 444: spr344 (spr344), unsigned 64 bits
- 445: spr345 (spr345), unsigned 64 bits
- 446: spr346 (spr346), unsigned 64 bits
- 447: spr347 (spr347), unsigned 64 bits
- 448: spr348 (spr348), unsigned 64 bits
- 449: spr349 (spr349), unsigned 64 bits
- 450: spr350 (spr350), unsigned 64 bits
- 451: spr351 (spr351), unsigned 64 bits
- 452: spr352 (spr352), unsigned 64 bits
- 453: spr353 (spr353), unsigned 64 bits
- 454: spr354 (spr354), unsigned 64 bits
- 455: spr355 (spr355), unsigned 64 bits
- 456: spr356 (spr356), unsigned 64 bits
- 457: spr357 (spr357), unsigned 64 bits
- 458: spr358 (spr358), unsigned 64 bits
- 459: spr359 (spr359), unsigned 64 bits
- 460: spr360 (spr360), unsigned 64 bits
- 461: spr361 (spr361), unsigned 64 bits
- 462: spr362 (spr362), unsigned 64 bits
- 463: spr363 (spr363), unsigned 64 bits
- 464: spr364 (spr364), unsigned 64 bits
- 465: spr365 (spr365), unsigned 64 bits
- 466: spr366 (spr366), unsigned 64 bits
- 467: spr367 (spr367), unsigned 64 bits
- 468: spr368 (spr368), unsigned 64 bits
- 469: spr369 (spr369), unsigned 64 bits
- 470: spr370 (spr370), unsigned 64 bits
- 471: spr371 (spr371), unsigned 64 bits
- 472: spr372 (spr372), unsigned 64 bits
- 473: spr373 (spr373), unsigned 64 bits
- 474: spr374 (spr374), unsigned 64 bits
- 475: spr375 (spr375), unsigned 64 bits
- 476: spr376 (spr376), unsigned 64 bits
- 477: spr377 (spr377), unsigned 64 bits
- 478: spr378 (spr378), unsigned 64 bits
- 479: spr379 (spr379), unsigned 64 bits
- 480: spr380 (spr380), unsigned 64 bits
- 481: spr381 (spr381), unsigned 64 bits
- 482: spr382 (spr382), unsigned 64 bits
- 483: spr383 (spr383), unsigned 64 bits
- 484: spr384 (spr384), unsigned 64 bits
- 485: spr385 (spr385), unsigned 64 bits
- 486: spr386 (spr386), unsigned 64 bits
- 487: spr387 (spr387), unsigned 64 bits
- 488: spr388 (spr388), unsigned 64 bits
- 489: spr389 (spr389), unsigned 64 bits
- 490: spr390 (spr390), unsigned 64 bits
- 491: spr391 (spr391), unsigned 64 bits
- 492: spr392 (spr392), unsigned 64 bits
- 493: spr393 (spr393), unsigned 64 bits
- 494: spr394 (spr394), unsigned 64 bits
- 495: spr395 (spr395), unsigned 64 bits
- 496: spr396 (spr396), unsigned 64 bits
- 497: spr397 (spr397), unsigned 64 bits
- 498: spr398 (spr398), unsigned 64 bits
- 499: spr399 (spr399), unsigned 64 bits
- 500: spr400 (spr400), unsigned 64 bits
- 501: spr401 (spr401), unsigned 64 bits
- 502: spr402 (spr402), unsigned 64 bits
- 503: spr403 (spr403), unsigned 64 bits
- 504: spr404 (spr404), unsigned 64 bits
- 505: spr405 (spr405), unsigned 64 bits
- 506: spr406 (spr406), unsigned 64 bits
- 507: spr407 (spr407), unsigned 64 bits
- 508: spr408 (spr408), unsigned 64 bits
- 509: spr409 (spr409), unsigned 64 bits
- 510: spr410 (spr410), unsigned 64 bits
- 511: spr411 (spr411), unsigned 64 bits
- 512: spr412 (spr412), unsigned 64 bits
- 513: spr413 (spr413), unsigned 64 bits
- 514: spr414 (spr414), unsigned 64 bits
- 515: spr415 (spr415), unsigned 64 bits
- 516: spr416 (spr416), unsigned 64 bits
- 517: spr417 (spr417), unsigned 64 bits
- 518: spr418 (spr418), unsigned 64 bits
- 519: spr419 (spr419), unsigned 64 bits
- 520: spr420 (spr420), unsigned 64 bits
- 521: spr421 (spr421), unsigned 64 bits
- 522: spr422 (spr422), unsigned 64 bits
- 523: spr423 (spr423), unsigned 64 bits
- 524: spr424 (spr424), unsigned 64 bits
- 525: spr425 (spr425), unsigned 64 bits
- 526: spr426 (spr426), unsigned 64 bits
- 527: spr427 (spr427), unsigned 64 bits
- 528: spr428 (spr428), unsigned 64 bits
- 529: spr429 (spr429), unsigned 64 bits
- 530: spr430 (spr430), unsigned 64 bits
- 531: spr431 (spr431), unsigned 64 bits
- 532: spr432 (spr432), unsigned 64 bits
- 533: spr433 (spr433), unsigned 64 bits
- 534: spr434 (spr434), unsigned 64 bits
- 535: spr435 (spr435), unsigned 64 bits
- 536: spr436 (spr436), unsigned 64 bits
- 537: spr437 (spr437), unsigned 64 bits
- 538: spr438 (spr438), unsigned 64 bits
- 539: spr439 (spr439), unsigned 64 bits
- 540: spr440 (spr440), unsigned 64 bits
- 541: spr441 (spr441), unsigned 64 bits
- 542: spr442 (spr442), unsigned 64 bits
- 543: spr443 (spr443), unsigned 64 bits
- 544: spr444 (spr444), unsigned 64 bits
- 545: spr445 (spr445), unsigned 64 bits
- 546: spr446 (spr446), unsigned 64 bits
- 547: spr447 (spr447), unsigned 64 bits
- 548: spr448 (spr448), unsigned 64 bits
- 549: spr449 (spr449), unsigned 64 bits
- 550: spr450 (spr450), unsigned 64 bits
- 551: spr451 (spr451), unsigned 64 bits
- 552: spr452 (spr452), unsigned 64 bits
- 553: spr453 (spr453), unsigned 64 bits
- 554: spr454 (spr454), unsigned 64 bits
- 555: spr455 (spr455), unsigned 64 bits
- 556: spr456 (spr456), unsigned 64 bits
- 557: spr457 (spr457), unsigned 64 bits
- 558: spr458 (spr458), unsigned 64 bits
- 559: spr459 (spr459), unsigned 64 bits
- 560: spr460 (spr460), unsigned 64 bits
- 561: spr461 (spr461), unsigned 64 bits
- 562: spr462 (spr462), unsigned 64 bits
- 563: spr463 (spr463), unsigned 64 bits
- 564: spr464 (spr464), unsigned 64 bits
- 565: spr465 (spr465), unsigned 64 bits
- 566: spr466 (spr466), unsigned 64 bits
- 567: spr467 (spr467), unsigned 64 bits
- 568: spr468 (spr468), unsigned 64 bits
- 569: spr469 (spr469), unsigned 64 bits
- 570: spr470 (spr470), unsigned 64 bits
- 571: spr471 (spr471), unsigned 64 bits
- 572: spr472 (spr472), unsigned 64 bits
- 573: spr473 (spr473), unsigned 64 bits
- 574: spr474 (spr474), unsigned 64 bits
- 575: spr475 (spr475), unsigned 64 bits
- 576: spr476 (spr476), unsigned 64 bits
- 577: spr477 (spr477), unsigned 64 bits
- 578: spr478 (spr478), unsigned 64 bits
- 579: spr479 (spr479), unsigned 64 bits
- 580: spr480 (spr480), unsigned 64 bits
- 581: spr481 (spr481), unsigned 64 bits
- 582: spr482 (spr482), unsigned 64 bits
- 583: spr483 (spr483), unsigned 64 bits
- 584: spr484 (spr484), unsigned 64 bits
- 585: spr485 (spr485), unsigned 64 bits
- 586: spr486 (spr486), unsigned 64 bits
- 587: spr487 (spr487), unsigned 64 bits
- 588: spr488 (spr488), unsigned 64 bits
- 589: spr489 (spr489), unsigned 64 bits
- 590: spr490 (spr490), unsigned 64 bits
- 591: spr491 (spr491), unsigned 64 bits
- 592: spr492 (spr492), unsigned 64 bits
- 593: spr493 (spr493), unsigned 64 bits
- 594: spr494 (spr494), unsigned 64 bits
- 595: spr495 (spr495), unsigned 64 bits
- 596: spr496 (spr496), unsigned 64 bits
- 597: spr497 (spr497), unsigned 64 bits
- 598: spr498 (spr498), unsigned 64 bits
- 599: spr499 (spr499), unsigned 64 bits
- 600: spr500 (spr500), unsigned 64 bits
- 601: spr501 (spr501), unsigned 64 bits
- 602: spr502 (spr502), unsigned 64 bits
- 603: spr503 (spr503), unsigned 64 bits
- 604: spr504 (spr504), unsigned 64 bits
- 605: spr505 (spr505), unsigned 64 bits
- 606: spr506 (spr506), unsigned 64 bits
- 607: spr507 (spr507), unsigned 64 bits
- 608: spr508 (spr508), unsigned 64 bits
- 609: spr509 (spr509), unsigned 64 bits
- 610: spr510 (spr510), unsigned 64 bits
- 611: spr511 (spr511), unsigned 64 bits
- 613: spr513 (spr513), unsigned 64 bits
- 614: spr514 (spr514), unsigned 64 bits
- 615: spr515 (spr515), unsigned 64 bits
- 616: spr516 (spr516), unsigned 64 bits
- 617: spr517 (spr517), unsigned 64 bits
- 618: spr518 (spr518), unsigned 64 bits
- 619: spr519 (spr519), unsigned 64 bits
- 620: spr520 (spr520), unsigned 64 bits
- 621: spr521 (spr521), unsigned 64 bits
- 622: spr522 (spr522), unsigned 64 bits
- 623: spr523 (spr523), unsigned 64 bits
- 624: spr524 (spr524), unsigned 64 bits
- 625: spr525 (spr525), unsigned 64 bits
- 626: spr526 (spr526), unsigned 64 bits
- 627: spr527 (spr527), unsigned 64 bits
- 628: spr528 (spr528), unsigned 64 bits
- 629: spr529 (spr529), unsigned 64 bits
- 630: spr530 (spr530), unsigned 64 bits
- 631: spr531 (spr531), unsigned 64 bits
- 632: spr532 (spr532), unsigned 64 bits
- 633: spr533 (spr533), unsigned 64 bits
- 634: spr534 (spr534), unsigned 64 bits
- 635: spr535 (spr535), unsigned 64 bits
- 636: spr536 (spr536), unsigned 64 bits
- 637: spr537 (spr537), unsigned 64 bits
- 638: spr538 (spr538), unsigned 64 bits
- 639: spr539 (spr539), unsigned 64 bits
- 640: spr540 (spr540), unsigned 64 bits
- 641: spr541 (spr541), unsigned 64 bits
- 642: spr542 (spr542), unsigned 64 bits
- 643: spr543 (spr543), unsigned 64 bits
- 644: spr544 (spr544), unsigned 64 bits
- 645: spr545 (spr545), unsigned 64 bits
- 646: spr546 (spr546), unsigned 64 bits
- 647: spr547 (spr547), unsigned 64 bits
- 648: spr548 (spr548), unsigned 64 bits
- 649: spr549 (spr549), unsigned 64 bits
- 650: spr550 (spr550), unsigned 64 bits
- 651: spr551 (spr551), unsigned 64 bits
- 652: spr552 (spr552), unsigned 64 bits
- 653: spr553 (spr553), unsigned 64 bits
- 654: spr554 (spr554), unsigned 64 bits
- 655: spr555 (spr555), unsigned 64 bits
- 656: spr556 (spr556), unsigned 64 bits
- 657: spr557 (spr557), unsigned 64 bits
- 658: spr558 (spr558), unsigned 64 bits
- 659: spr559 (spr559), unsigned 64 bits
- 660: spr560 (spr560), unsigned 64 bits
- 661: spr561 (spr561), unsigned 64 bits
- 662: spr562 (spr562), unsigned 64 bits
- 663: spr563 (spr563), unsigned 64 bits
- 664: spr564 (spr564), unsigned 64 bits
- 665: spr565 (spr565), unsigned 64 bits
- 666: spr566 (spr566), unsigned 64 bits
- 667: spr567 (spr567), unsigned 64 bits
- 668: spr568 (spr568), unsigned 64 bits
- 669: spr569 (spr569), unsigned 64 bits
- 670: spr570 (spr570), unsigned 64 bits
- 671: spr571 (spr571), unsigned 64 bits
- 672: spr572 (spr572), unsigned 64 bits
- 673: spr573 (spr573), unsigned 64 bits
- 674: spr574 (spr574), unsigned 64 bits
- 675: spr575 (spr575), unsigned 64 bits
- 676: spr576 (spr576), unsigned 64 bits
- 677: spr577 (spr577), unsigned 64 bits
- 678: spr578 (spr578), unsigned 64 bits
- 679: spr579 (spr579), unsigned 64 bits
- 680: spr580 (spr580), unsigned 64 bits
- 681: spr581 (spr581), unsigned 64 bits
- 682: spr582 (spr582), unsigned 64 bits
- 683: spr583 (spr583), unsigned 64 bits
- 684: spr584 (spr584), unsigned 64 bits
- 685: spr585 (spr585), unsigned 64 bits
- 686: spr586 (spr586), unsigned 64 bits
- 687: spr587 (spr587), unsigned 64 bits
- 688: spr588 (spr588), unsigned 64 bits
- 689: spr589 (spr589), unsigned 64 bits
- 690: spr590 (spr590), unsigned 64 bits
- 691: spr591 (spr591), unsigned 64 bits
- 692: spr592 (spr592), unsigned 64 bits
- 693: spr593 (spr593), unsigned 64 bits
- 694: spr594 (spr594), unsigned 64 bits
- 695: spr595 (spr595), unsigned 64 bits
- 696: spr596 (spr596), unsigned 64 bits
- 697: spr597 (spr597), unsigned 64 bits
- 698: spr598 (spr598), unsigned 64 bits
- 699: spr599 (spr599), unsigned 64 bits
- 700: spr600 (spr600), unsigned 64 bits
- 701: spr601 (spr601), unsigned 64 bits
- 702: spr602 (spr602), unsigned 64 bits
- 703: spr603 (spr603), unsigned 64 bits
- 704: spr604 (spr604), unsigned 64 bits
- 705: spr605 (spr605), unsigned 64 bits
- 706: spr606 (spr606), unsigned 64 bits
- 707: spr607 (spr607), unsigned 64 bits
- 708: spr608 (spr608), unsigned 64 bits
- 709: spr609 (spr609), unsigned 64 bits
- 710: spr610 (spr610), unsigned 64 bits
- 711: spr611 (spr611), unsigned 64 bits
- 712: spr612 (spr612), unsigned 64 bits
- 713: spr613 (spr613), unsigned 64 bits
- 714: spr614 (spr614), unsigned 64 bits
- 715: spr615 (spr615), unsigned 64 bits
- 716: spr616 (spr616), unsigned 64 bits
- 717: spr617 (spr617), unsigned 64 bits
- 718: spr618 (spr618), unsigned 64 bits
- 719: spr619 (spr619), unsigned 64 bits
- 720: spr620 (spr620), unsigned 64 bits
- 721: spr621 (spr621), unsigned 64 bits
- 722: spr622 (spr622), unsigned 64 bits
- 723: spr623 (spr623), unsigned 64 bits
- 724: spr624 (spr624), unsigned 64 bits
- 725: spr625 (spr625), unsigned 64 bits
- 726: spr626 (spr626), unsigned 64 bits
- 727: spr627 (spr627), unsigned 64 bits
- 728: spr628 (spr628), unsigned 64 bits
- 729: spr629 (spr629), unsigned 64 bits
- 730: spr630 (spr630), unsigned 64 bits
- 731: spr631 (spr631), unsigned 64 bits
- 732: spr632 (spr632), unsigned 64 bits
- 733: spr633 (spr633), unsigned 64 bits
- 734: spr634 (spr634), unsigned 64 bits
- 735: spr635 (spr635), unsigned 64 bits
- 736: spr636 (spr636), unsigned 64 bits
- 737: spr637 (spr637), unsigned 64 bits
- 738: spr638 (spr638), unsigned 64 bits
- 739: spr639 (spr639), unsigned 64 bits
- 740: spr640 (spr640), unsigned 64 bits
- 741: spr641 (spr641), unsigned 64 bits
- 742: spr642 (spr642), unsigned 64 bits
- 743: spr643 (spr643), unsigned 64 bits
- 744: spr644 (spr644), unsigned 64 bits
- 745: spr645 (spr645), unsigned 64 bits
- 746: spr646 (spr646), unsigned 64 bits
- 747: spr647 (spr647), unsigned 64 bits
- 748: spr648 (spr648), unsigned 64 bits
- 749: spr649 (spr649), unsigned 64 bits
- 750: spr650 (spr650), unsigned 64 bits
- 751: spr651 (spr651), unsigned 64 bits
- 752: spr652 (spr652), unsigned 64 bits
- 753: spr653 (spr653), unsigned 64 bits
- 754: spr654 (spr654), unsigned 64 bits
- 755: spr655 (spr655), unsigned 64 bits
- 756: spr656 (spr656), unsigned 64 bits
- 757: spr657 (spr657), unsigned 64 bits
- 758: spr658 (spr658), unsigned 64 bits
- 759: spr659 (spr659), unsigned 64 bits
- 760: spr660 (spr660), unsigned 64 bits
- 761: spr661 (spr661), unsigned 64 bits
- 762: spr662 (spr662), unsigned 64 bits
- 763: spr663 (spr663), unsigned 64 bits
- 764: spr664 (spr664), unsigned 64 bits
- 765: spr665 (spr665), unsigned 64 bits
- 766: spr666 (spr666), unsigned 64 bits
- 767: spr667 (spr667), unsigned 64 bits
- 768: spr668 (spr668), unsigned 64 bits
- 769: spr669 (spr669), unsigned 64 bits
- 770: spr670 (spr670), unsigned 64 bits
- 771: spr671 (spr671), unsigned 64 bits
- 772: spr672 (spr672), unsigned 64 bits
- 773: spr673 (spr673), unsigned 64 bits
- 774: spr674 (spr674), unsigned 64 bits
- 775: spr675 (spr675), unsigned 64 bits
- 776: spr676 (spr676), unsigned 64 bits
- 777: spr677 (spr677), unsigned 64 bits
- 778: spr678 (spr678), unsigned 64 bits
- 779: spr679 (spr679), unsigned 64 bits
- 780: spr680 (spr680), unsigned 64 bits
- 781: spr681 (spr681), unsigned 64 bits
- 782: spr682 (spr682), unsigned 64 bits
- 783: spr683 (spr683), unsigned 64 bits
- 784: spr684 (spr684), unsigned 64 bits
- 785: spr685 (spr685), unsigned 64 bits
- 786: spr686 (spr686), unsigned 64 bits
- 787: spr687 (spr687), unsigned 64 bits
- 788: spr688 (spr688), unsigned 64 bits
- 789: spr689 (spr689), unsigned 64 bits
- 790: spr690 (spr690), unsigned 64 bits
- 791: spr691 (spr691), unsigned 64 bits
- 792: spr692 (spr692), unsigned 64 bits
- 793: spr693 (spr693), unsigned 64 bits
- 794: spr694 (spr694), unsigned 64 bits
- 795: spr695 (spr695), unsigned 64 bits
- 796: spr696 (spr696), unsigned 64 bits
- 797: spr697 (spr697), unsigned 64 bits
- 798: spr698 (spr698), unsigned 64 bits
- 799: spr699 (spr699), unsigned 64 bits
- 800: spr700 (spr700), unsigned 64 bits
- 801: spr701 (spr701), unsigned 64 bits
- 802: spr702 (spr702), unsigned 64 bits
- 803: spr703 (spr703), unsigned 64 bits
- 804: spr704 (spr704), unsigned 64 bits
- 805: spr705 (spr705), unsigned 64 bits
- 806: spr706 (spr706), unsigned 64 bits
- 807: spr707 (spr707), unsigned 64 bits
- 808: spr708 (spr708), unsigned 64 bits
- 809: spr709 (spr709), unsigned 64 bits
- 810: spr710 (spr710), unsigned 64 bits
- 811: spr711 (spr711), unsigned 64 bits
- 812: spr712 (spr712), unsigned 64 bits
- 813: spr713 (spr713), unsigned 64 bits
- 814: spr714 (spr714), unsigned 64 bits
- 815: spr715 (spr715), unsigned 64 bits
- 816: spr716 (spr716), unsigned 64 bits
- 817: spr717 (spr717), unsigned 64 bits
- 818: spr718 (spr718), unsigned 64 bits
- 819: spr719 (spr719), unsigned 64 bits
- 820: spr720 (spr720), unsigned 64 bits
- 821: spr721 (spr721), unsigned 64 bits
- 822: spr722 (spr722), unsigned 64 bits
- 823: spr723 (spr723), unsigned 64 bits
- 824: spr724 (spr724), unsigned 64 bits
- 825: spr725 (spr725), unsigned 64 bits
- 826: spr726 (spr726), unsigned 64 bits
- 827: spr727 (spr727), unsigned 64 bits
- 828: spr728 (spr728), unsigned 64 bits
- 829: spr729 (spr729), unsigned 64 bits
- 830: spr730 (spr730), unsigned 64 bits
- 831: spr731 (spr731), unsigned 64 bits
- 832: spr732 (spr732), unsigned 64 bits
- 833: spr733 (spr733), unsigned 64 bits
- 834: spr734 (spr734), unsigned 64 bits
- 835: spr735 (spr735), unsigned 64 bits
- 836: spr736 (spr736), unsigned 64 bits
- 837: spr737 (spr737), unsigned 64 bits
- 838: spr738 (spr738), unsigned 64 bits
- 839: spr739 (spr739), unsigned 64 bits
- 840: spr740 (spr740), unsigned 64 bits
- 841: spr741 (spr741), unsigned 64 bits
- 842: spr742 (spr742), unsigned 64 bits
- 843: spr743 (spr743), unsigned 64 bits
- 844: spr744 (spr744), unsigned 64 bits
- 845: spr745 (spr745), unsigned 64 bits
- 846: spr746 (spr746), unsigned 64 bits
- 847: spr747 (spr747), unsigned 64 bits
- 848: spr748 (spr748), unsigned 64 bits
- 849: spr749 (spr749), unsigned 64 bits
- 850: spr750 (spr750), unsigned 64 bits
- 851: spr751 (spr751), unsigned 64 bits
- 852: spr752 (spr752), unsigned 64 bits
- 853: spr753 (spr753), unsigned 64 bits
- 854: spr754 (spr754), unsigned 64 bits
- 855: spr755 (spr755), unsigned 64 bits
- 856: spr756 (spr756), unsigned 64 bits
- 857: spr757 (spr757), unsigned 64 bits
- 858: spr758 (spr758), unsigned 64 bits
- 859: spr759 (spr759), unsigned 64 bits
- 860: spr760 (spr760), unsigned 64 bits
- 861: spr761 (spr761), unsigned 64 bits
- 862: spr762 (spr762), unsigned 64 bits
- 863: spr763 (spr763), unsigned 64 bits
- 864: spr764 (spr764), unsigned 64 bits
- 865: spr765 (spr765), unsigned 64 bits
- 866: spr766 (spr766), unsigned 64 bits
- 867: spr767 (spr767), unsigned 64 bits
- 868: spr768 (spr768), unsigned 64 bits
- 869: spr769 (spr769), unsigned 64 bits
- 870: spr770 (spr770), unsigned 64 bits
- 871: spr771 (spr771), unsigned 64 bits
- 872: spr772 (spr772), unsigned 64 bits
- 873: spr773 (spr773), unsigned 64 bits
- 874: spr774 (spr774), unsigned 64 bits
- 875: spr775 (spr775), unsigned 64 bits
- 876: spr776 (spr776), unsigned 64 bits
- 877: spr777 (spr777), unsigned 64 bits
- 878: spr778 (spr778), unsigned 64 bits
- 879: spr779 (spr779), unsigned 64 bits
- 880: spr780 (spr780), unsigned 64 bits
- 881: spr781 (spr781), unsigned 64 bits
- 882: spr782 (spr782), unsigned 64 bits
- 883: spr783 (spr783), unsigned 64 bits
- 884: spr784 (spr784), unsigned 64 bits
- 885: spr785 (spr785), unsigned 64 bits
- 886: spr786 (spr786), unsigned 64 bits
- 887: spr787 (spr787), unsigned 64 bits
- 888: spr788 (spr788), unsigned 64 bits
- 889: spr789 (spr789), unsigned 64 bits
- 890: spr790 (spr790), unsigned 64 bits
- 891: spr791 (spr791), unsigned 64 bits
- 892: spr792 (spr792), unsigned 64 bits
- 893: spr793 (spr793), unsigned 64 bits
- 894: spr794 (spr794), unsigned 64 bits
- 895: spr795 (spr795), unsigned 64 bits
- 896: spr796 (spr796), unsigned 64 bits
- 897: spr797 (spr797), unsigned 64 bits
- 898: spr798 (spr798), unsigned 64 bits
- 899: spr799 (spr799), unsigned 64 bits
- 900: spr800 (spr800), unsigned 64 bits
- 901: spr801 (spr801), unsigned 64 bits
- 902: spr802 (spr802), unsigned 64 bits
- 903: spr803 (spr803), unsigned 64 bits
- 904: spr804 (spr804), unsigned 64 bits
- 905: spr805 (spr805), unsigned 64 bits
- 906: spr806 (spr806), unsigned 64 bits
- 907: spr807 (spr807), unsigned 64 bits
- 908: spr808 (spr808), unsigned 64 bits
- 909: spr809 (spr809), unsigned 64 bits
- 910: spr810 (spr810), unsigned 64 bits
- 911: spr811 (spr811), unsigned 64 bits
- 912: spr812 (spr812), unsigned 64 bits
- 913: spr813 (spr813), unsigned 64 bits
- 914: spr814 (spr814), unsigned 64 bits
- 915: spr815 (spr815), unsigned 64 bits
- 916: spr816 (spr816), unsigned 64 bits
- 917: spr817 (spr817), unsigned 64 bits
- 918: spr818 (spr818), unsigned 64 bits
- 919: spr819 (spr819), unsigned 64 bits
- 920: spr820 (spr820), unsigned 64 bits
- 921: spr821 (spr821), unsigned 64 bits
- 922: spr822 (spr822), unsigned 64 bits
- 923: spr823 (spr823), unsigned 64 bits
- 924: spr824 (spr824), unsigned 64 bits
- 925: spr825 (spr825), unsigned 64 bits
- 926: spr826 (spr826), unsigned 64 bits
- 927: spr827 (spr827), unsigned 64 bits
- 928: spr828 (spr828), unsigned 64 bits
- 929: spr829 (spr829), unsigned 64 bits
- 930: spr830 (spr830), unsigned 64 bits
- 931: spr831 (spr831), unsigned 64 bits
- 932: spr832 (spr832), unsigned 64 bits
- 933: spr833 (spr833), unsigned 64 bits
- 934: spr834 (spr834), unsigned 64 bits
- 935: spr835 (spr835), unsigned 64 bits
- 936: spr836 (spr836), unsigned 64 bits
- 937: spr837 (spr837), unsigned 64 bits
- 938: spr838 (spr838), unsigned 64 bits
- 939: spr839 (spr839), unsigned 64 bits
- 940: spr840 (spr840), unsigned 64 bits
- 941: spr841 (spr841), unsigned 64 bits
- 942: spr842 (spr842), unsigned 64 bits
- 943: spr843 (spr843), unsigned 64 bits
- 944: spr844 (spr844), unsigned 64 bits
- 945: spr845 (spr845), unsigned 64 bits
- 946: spr846 (spr846), unsigned 64 bits
- 947: spr847 (spr847), unsigned 64 bits
- 948: spr848 (spr848), unsigned 64 bits
- 949: spr849 (spr849), unsigned 64 bits
- 950: spr850 (spr850), unsigned 64 bits
- 951: spr851 (spr851), unsigned 64 bits
- 952: spr852 (spr852), unsigned 64 bits
- 953: spr853 (spr853), unsigned 64 bits
- 954: spr854 (spr854), unsigned 64 bits
- 955: spr855 (spr855), unsigned 64 bits
- 956: spr856 (spr856), unsigned 64 bits
- 957: spr857 (spr857), unsigned 64 bits
- 958: spr858 (spr858), unsigned 64 bits
- 959: spr859 (spr859), unsigned 64 bits
- 960: spr860 (spr860), unsigned 64 bits
- 961: spr861 (spr861), unsigned 64 bits
- 962: spr862 (spr862), unsigned 64 bits
- 963: spr863 (spr863), unsigned 64 bits
- 964: spr864 (spr864), unsigned 64 bits
- 965: spr865 (spr865), unsigned 64 bits
- 966: spr866 (spr866), unsigned 64 bits
- 967: spr867 (spr867), unsigned 64 bits
- 968: spr868 (spr868), unsigned 64 bits
- 969: spr869 (spr869), unsigned 64 bits
- 970: spr870 (spr870), unsigned 64 bits
- 971: spr871 (spr871), unsigned 64 bits
- 972: spr872 (spr872), unsigned 64 bits
- 973: spr873 (spr873), unsigned 64 bits
- 974: spr874 (spr874), unsigned 64 bits
- 975: spr875 (spr875), unsigned 64 bits
- 976: spr876 (spr876), unsigned 64 bits
- 977: spr877 (spr877), unsigned 64 bits
- 978: spr878 (spr878), unsigned 64 bits
- 979: spr879 (spr879), unsigned 64 bits
- 980: spr880 (spr880), unsigned 64 bits
- 981: spr881 (spr881), unsigned 64 bits
- 982: spr882 (spr882), unsigned 64 bits
- 983: spr883 (spr883), unsigned 64 bits
- 984: spr884 (spr884), unsigned 64 bits
- 985: spr885 (spr885), unsigned 64 bits
- 986: spr886 (spr886), unsigned 64 bits
- 987: spr887 (spr887), unsigned 64 bits
- 988: spr888 (spr888), unsigned 64 bits
- 989: spr889 (spr889), unsigned 64 bits
- 990: spr890 (spr890), unsigned 64 bits
- 991: spr891 (spr891), unsigned 64 bits
- 992: spr892 (spr892), unsigned 64 bits
- 993: spr893 (spr893), unsigned 64 bits
- 994: spr894 (spr894), unsigned 64 bits
- 995: spr895 (spr895), unsigned 64 bits
- 996: spr896 (spr896), unsigned 64 bits
- 997: spr897 (spr897), unsigned 64 bits
- 998: spr898 (spr898), unsigned 64 bits
- 999: spr899 (spr899), unsigned 64 bits
-vector registers:
- 67: vscr (vscr), unsigned 32 bits
- 356: vrsave (vrsave), unsigned 32 bits
- 612: spefscr (spefscr), unsigned 32 bits
- 1124: vr0 (vr0), unsigned 128 bits
- 1125: vr1 (vr1), unsigned 128 bits
- 1126: vr2 (vr2), unsigned 128 bits
- 1127: vr3 (vr3), unsigned 128 bits
- 1128: vr4 (vr4), unsigned 128 bits
- 1129: vr5 (vr5), unsigned 128 bits
- 1130: vr6 (vr6), unsigned 128 bits
- 1131: vr7 (vr7), unsigned 128 bits
- 1132: vr8 (vr8), unsigned 128 bits
- 1133: vr9 (vr9), unsigned 128 bits
- 1134: vr10 (vr10), unsigned 128 bits
- 1135: vr11 (vr11), unsigned 128 bits
- 1136: vr12 (vr12), unsigned 128 bits
- 1137: vr13 (vr13), unsigned 128 bits
- 1138: vr14 (vr14), unsigned 128 bits
- 1139: vr15 (vr15), unsigned 128 bits
- 1140: vr16 (vr16), unsigned 128 bits
- 1141: vr17 (vr17), unsigned 128 bits
- 1142: vr18 (vr18), unsigned 128 bits
- 1143: vr19 (vr19), unsigned 128 bits
- 1144: vr20 (vr20), unsigned 128 bits
- 1145: vr21 (vr21), unsigned 128 bits
- 1146: vr22 (vr22), unsigned 128 bits
- 1147: vr23 (vr23), unsigned 128 bits
- 1148: vr24 (vr24), unsigned 128 bits
- 1149: vr25 (vr25), unsigned 128 bits
- 1150: vr26 (vr26), unsigned 128 bits
- 1151: vr27 (vr27), unsigned 128 bits
- 1152: vr28 (vr28), unsigned 128 bits
- 1153: vr29 (vr29), unsigned 128 bits
- 1154: vr30 (vr30), unsigned 128 bits
- 1155: vr31 (vr31), unsigned 128 bits
-EOF
-
-regs_test testfile26 <<\EOF
-integer registers:
- 0: %r0 (r0), signed 32 bits
- 1: %r1 (r1), signed 32 bits
- 2: %r2 (r2), signed 32 bits
- 3: %r3 (r3), signed 32 bits
- 4: %r4 (r4), signed 32 bits
- 5: %r5 (r5), signed 32 bits
- 6: %r6 (r6), signed 32 bits
- 7: %r7 (r7), signed 32 bits
- 8: %r8 (r8), signed 32 bits
- 9: %r9 (r9), signed 32 bits
- 10: %r10 (r10), signed 32 bits
- 11: %r11 (r11), signed 32 bits
- 12: %r12 (r12), signed 32 bits
- 13: %r13 (r13), signed 32 bits
- 14: %r14 (r14), signed 32 bits
- 15: %r15 (r15), signed 32 bits
-FPU registers:
- 16: %f0 (f0), float 64 bits
- 17: %f2 (f2), float 64 bits
- 18: %f4 (f4), float 64 bits
- 19: %f6 (f6), float 64 bits
- 20: %f1 (f1), float 64 bits
- 21: %f3 (f3), float 64 bits
- 22: %f5 (f5), float 64 bits
- 23: %f7 (f7), float 64 bits
- 24: %f8 (f8), float 64 bits
- 25: %f10 (f10), float 64 bits
- 26: %f12 (f12), float 64 bits
- 27: %f14 (f14), float 64 bits
- 28: %f9 (f9), float 64 bits
- 29: %f11 (f11), float 64 bits
- 30: %f13 (f13), float 64 bits
- 31: %f15 (f15), float 64 bits
-access registers:
- 48: %a0 (a0), unsigned 32 bits
- 49: %a1 (a1), unsigned 32 bits
- 50: %a2 (a2), unsigned 32 bits
- 51: %a3 (a3), unsigned 32 bits
- 52: %a4 (a4), unsigned 32 bits
- 53: %a5 (a5), unsigned 32 bits
- 54: %a6 (a6), unsigned 32 bits
- 55: %a7 (a7), unsigned 32 bits
- 56: %a8 (a8), unsigned 32 bits
- 57: %a9 (a9), unsigned 32 bits
- 58: %a10 (a10), unsigned 32 bits
- 59: %a11 (a11), unsigned 32 bits
- 60: %a12 (a12), unsigned 32 bits
- 61: %a13 (a13), unsigned 32 bits
- 62: %a14 (a14), unsigned 32 bits
- 63: %a15 (a15), unsigned 32 bits
-control registers:
- 32: %c0 (c0), unsigned 32 bits
- 33: %c1 (c1), unsigned 32 bits
- 34: %c2 (c2), unsigned 32 bits
- 35: %c3 (c3), unsigned 32 bits
- 36: %c4 (c4), unsigned 32 bits
- 37: %c5 (c5), unsigned 32 bits
- 38: %c6 (c6), unsigned 32 bits
- 39: %c7 (c7), unsigned 32 bits
- 40: %c8 (c8), unsigned 32 bits
- 41: %c9 (c9), unsigned 32 bits
- 42: %c10 (c10), unsigned 32 bits
- 43: %c11 (c11), unsigned 32 bits
- 44: %c12 (c12), unsigned 32 bits
- 45: %c13 (c13), unsigned 32 bits
- 46: %c14 (c14), unsigned 32 bits
- 47: %c15 (c15), unsigned 32 bits
- 64: %pswm (pswm), unsigned 32 bits
- 65: %pswa (pswa), address 32 bits
-EOF
-
-regs_test testfile27 <<\EOF
-integer registers:
- 0: %r0 (r0), signed 64 bits
- 1: %r1 (r1), signed 64 bits
- 2: %r2 (r2), signed 64 bits
- 3: %r3 (r3), signed 64 bits
- 4: %r4 (r4), signed 64 bits
- 5: %r5 (r5), signed 64 bits
- 6: %r6 (r6), signed 64 bits
- 7: %r7 (r7), signed 64 bits
- 8: %r8 (r8), signed 64 bits
- 9: %r9 (r9), signed 64 bits
- 10: %r10 (r10), signed 64 bits
- 11: %r11 (r11), signed 64 bits
- 12: %r12 (r12), signed 64 bits
- 13: %r13 (r13), signed 64 bits
- 14: %r14 (r14), signed 64 bits
- 15: %r15 (r15), signed 64 bits
-FPU registers:
- 16: %f0 (f0), float 64 bits
- 17: %f2 (f2), float 64 bits
- 18: %f4 (f4), float 64 bits
- 19: %f6 (f6), float 64 bits
- 20: %f1 (f1), float 64 bits
- 21: %f3 (f3), float 64 bits
- 22: %f5 (f5), float 64 bits
- 23: %f7 (f7), float 64 bits
- 24: %f8 (f8), float 64 bits
- 25: %f10 (f10), float 64 bits
- 26: %f12 (f12), float 64 bits
- 27: %f14 (f14), float 64 bits
- 28: %f9 (f9), float 64 bits
- 29: %f11 (f11), float 64 bits
- 30: %f13 (f13), float 64 bits
- 31: %f15 (f15), float 64 bits
-access registers:
- 48: %a0 (a0), unsigned 32 bits
- 49: %a1 (a1), unsigned 32 bits
- 50: %a2 (a2), unsigned 32 bits
- 51: %a3 (a3), unsigned 32 bits
- 52: %a4 (a4), unsigned 32 bits
- 53: %a5 (a5), unsigned 32 bits
- 54: %a6 (a6), unsigned 32 bits
- 55: %a7 (a7), unsigned 32 bits
- 56: %a8 (a8), unsigned 32 bits
- 57: %a9 (a9), unsigned 32 bits
- 58: %a10 (a10), unsigned 32 bits
- 59: %a11 (a11), unsigned 32 bits
- 60: %a12 (a12), unsigned 32 bits
- 61: %a13 (a13), unsigned 32 bits
- 62: %a14 (a14), unsigned 32 bits
- 63: %a15 (a15), unsigned 32 bits
-control registers:
- 32: %c0 (c0), unsigned 64 bits
- 33: %c1 (c1), unsigned 64 bits
- 34: %c2 (c2), unsigned 64 bits
- 35: %c3 (c3), unsigned 64 bits
- 36: %c4 (c4), unsigned 64 bits
- 37: %c5 (c5), unsigned 64 bits
- 38: %c6 (c6), unsigned 64 bits
- 39: %c7 (c7), unsigned 64 bits
- 40: %c8 (c8), unsigned 64 bits
- 41: %c9 (c9), unsigned 64 bits
- 42: %c10 (c10), unsigned 64 bits
- 43: %c11 (c11), unsigned 64 bits
- 44: %c12 (c12), unsigned 64 bits
- 45: %c13 (c13), unsigned 64 bits
- 46: %c14 (c14), unsigned 64 bits
- 47: %c15 (c15), unsigned 64 bits
- 64: %pswm (pswm), unsigned 64 bits
- 65: %pswa (pswa), address 64 bits
-EOF
-
-regs_test testfile30 <<\EOF
-integer registers:
- 0: %g0 (g0), signed 32 bits
- 1: %g1 (g1), signed 32 bits
- 2: %g2 (g2), signed 32 bits
- 3: %g3 (g3), signed 32 bits
- 4: %g4 (g4), signed 32 bits
- 5: %g5 (g5), signed 32 bits
- 6: %g6 (g6), signed 32 bits
- 7: %g7 (g7), signed 32 bits
- 8: %o0 (o0), signed 32 bits
- 9: %o1 (o1), signed 32 bits
- 10: %o2 (o2), signed 32 bits
- 11: %o3 (o3), signed 32 bits
- 12: %o4 (o4), signed 32 bits
- 13: %o5 (o5), signed 32 bits
- 14: %o6 (o6), address 32 bits
- 15: %o7 (o7), signed 32 bits
- 16: %l0 (l0), signed 32 bits
- 17: %l1 (l1), signed 32 bits
- 18: %l2 (l2), signed 32 bits
- 19: %l3 (l3), signed 32 bits
- 20: %l4 (l4), signed 32 bits
- 21: %l5 (l5), signed 32 bits
- 22: %l6 (l6), signed 32 bits
- 23: %l7 (l7), signed 32 bits
- 24: %i0 (i0), signed 32 bits
- 25: %i1 (i1), signed 32 bits
- 26: %i2 (i2), signed 32 bits
- 27: %i3 (i3), signed 32 bits
- 28: %i4 (i4), signed 32 bits
- 29: %i5 (i5), signed 32 bits
- 30: %i6 (i6), address 32 bits
- 31: %i7 (i7), signed 32 bits
-FPU registers:
- 32: %f0 (f0), float 32 bits
- 33: %f1 (f1), float 32 bits
- 34: %f2 (f2), float 32 bits
- 35: %f3 (f3), float 32 bits
- 36: %f4 (f4), float 32 bits
- 37: %f5 (f5), float 32 bits
- 38: %f6 (f6), float 32 bits
- 39: %f7 (f7), float 32 bits
- 40: %f8 (f8), float 32 bits
- 41: %f9 (f9), float 32 bits
- 42: %f10 (f10), float 32 bits
- 43: %f11 (f11), float 32 bits
- 44: %f12 (f12), float 32 bits
- 45: %f13 (f13), float 32 bits
- 46: %f14 (f14), float 32 bits
- 47: %f15 (f15), float 32 bits
- 48: %f16 (f16), float 32 bits
- 49: %f17 (f17), float 32 bits
- 50: %f18 (f18), float 32 bits
- 51: %f19 (f19), float 32 bits
- 52: %f20 (f20), float 32 bits
- 53: %f21 (f21), float 32 bits
- 54: %f22 (f22), float 32 bits
- 55: %f23 (f23), float 32 bits
- 56: %f24 (f24), float 32 bits
- 57: %f25 (f25), float 32 bits
- 58: %f26 (f26), float 32 bits
- 59: %f27 (f27), float 32 bits
- 60: %f28 (f28), float 32 bits
- 61: %f29 (f29), float 32 bits
- 62: %f30 (f30), float 32 bits
- 63: %f31 (f31), float 32 bits
-control registers:
- 64: %y (y), unsigned 32 bits
- 65: %psr (psr), unsigned 32 bits
- 66: %wim (wim), unsigned 32 bits
- 67: %tbr (tbr), unsigned 32 bits
- 68: %pc (pc), address 32 bits
- 69: %npc (npc), address 32 bits
- 70: %fsr (fsr), unsigned 32 bits
- 71: %csr (csr), unsigned 32 bits
-EOF
-
-regs_test testfile31 <<\EOF
-integer registers:
- 0: %g0 (g0), signed 64 bits
- 1: %g1 (g1), signed 64 bits
- 2: %g2 (g2), signed 64 bits
- 3: %g3 (g3), signed 64 bits
- 4: %g4 (g4), signed 64 bits
- 5: %g5 (g5), signed 64 bits
- 6: %g6 (g6), signed 64 bits
- 7: %g7 (g7), signed 64 bits
- 8: %o0 (o0), signed 64 bits
- 9: %o1 (o1), signed 64 bits
- 10: %o2 (o2), signed 64 bits
- 11: %o3 (o3), signed 64 bits
- 12: %o4 (o4), signed 64 bits
- 13: %o5 (o5), signed 64 bits
- 14: %o6 (o6), address 64 bits
- 15: %o7 (o7), signed 64 bits
- 16: %l0 (l0), signed 64 bits
- 17: %l1 (l1), signed 64 bits
- 18: %l2 (l2), signed 64 bits
- 19: %l3 (l3), signed 64 bits
- 20: %l4 (l4), signed 64 bits
- 21: %l5 (l5), signed 64 bits
- 22: %l6 (l6), signed 64 bits
- 23: %l7 (l7), signed 64 bits
- 24: %i0 (i0), signed 64 bits
- 25: %i1 (i1), signed 64 bits
- 26: %i2 (i2), signed 64 bits
- 27: %i3 (i3), signed 64 bits
- 28: %i4 (i4), signed 64 bits
- 29: %i5 (i5), signed 64 bits
- 30: %i6 (i6), address 64 bits
- 31: %i7 (i7), signed 64 bits
-FPU registers:
- 32: %f0 (f0), float 32 bits
- 33: %f1 (f1), float 32 bits
- 34: %f2 (f2), float 32 bits
- 35: %f3 (f3), float 32 bits
- 36: %f4 (f4), float 32 bits
- 37: %f5 (f5), float 32 bits
- 38: %f6 (f6), float 32 bits
- 39: %f7 (f7), float 32 bits
- 40: %f8 (f8), float 32 bits
- 41: %f9 (f9), float 32 bits
- 42: %f10 (f10), float 32 bits
- 43: %f11 (f11), float 32 bits
- 44: %f12 (f12), float 32 bits
- 45: %f13 (f13), float 32 bits
- 46: %f14 (f14), float 32 bits
- 47: %f15 (f15), float 32 bits
- 48: %f16 (f16), float 32 bits
- 49: %f17 (f17), float 32 bits
- 50: %f18 (f18), float 32 bits
- 51: %f19 (f19), float 32 bits
- 52: %f20 (f20), float 32 bits
- 53: %f21 (f21), float 32 bits
- 54: %f22 (f22), float 32 bits
- 55: %f23 (f23), float 32 bits
- 56: %f24 (f24), float 32 bits
- 57: %f25 (f25), float 32 bits
- 58: %f26 (f26), float 32 bits
- 59: %f27 (f27), float 32 bits
- 60: %f28 (f28), float 32 bits
- 61: %f29 (f29), float 32 bits
- 62: %f30 (f30), float 32 bits
- 63: %f31 (f31), float 32 bits
- 64: %f32 (f32), float 64 bits
- 65: %f34 (f34), float 64 bits
- 66: %f36 (f36), float 64 bits
- 67: %f38 (f38), float 64 bits
- 68: %f40 (f40), float 64 bits
- 69: %f42 (f42), float 64 bits
- 70: %f44 (f44), float 64 bits
- 71: %f46 (f46), float 64 bits
- 72: %f48 (f48), float 64 bits
- 73: %f50 (f50), float 64 bits
- 74: %f52 (f52), float 64 bits
- 75: %f54 (f54), float 64 bits
- 76: %f56 (f56), float 64 bits
- 77: %f58 (f58), float 64 bits
- 78: %f60 (f60), float 64 bits
- 79: %f62 (f62), float 64 bits
-control registers:
- 80: %pc (pc), address 64 bits
- 81: %npc (npc), address 64 bits
- 82: %state (state), unsigned 64 bits
- 83: %fsr (fsr), unsigned 64 bits
- 84: %fprs (fprs), unsigned 64 bits
- 85: %y (y), unsigned 64 bits
-EOF
-
-regs_test testfile10 <<\EOF
-integer registers:
- 0: $v0 (v0), signed 64 bits
- 1: $t0 (t0), signed 64 bits
- 2: $t1 (t1), signed 64 bits
- 3: $t2 (t2), signed 64 bits
- 4: $t3 (t3), signed 64 bits
- 5: $t4 (t4), signed 64 bits
- 6: $t5 (t5), signed 64 bits
- 7: $t6 (t6), signed 64 bits
- 8: $t7 (t7), signed 64 bits
- 9: $s0 (s0), signed 64 bits
- 10: $s1 (s1), signed 64 bits
- 11: $s2 (s2), signed 64 bits
- 12: $s3 (s3), signed 64 bits
- 13: $s4 (s4), signed 64 bits
- 14: $s5 (s5), signed 64 bits
- 15: $s6 (s6), signed 64 bits
- 16: $a0 (a0), signed 64 bits
- 17: $a1 (a1), signed 64 bits
- 18: $a2 (a2), signed 64 bits
- 19: $a3 (a3), signed 64 bits
- 20: $a4 (a4), signed 64 bits
- 21: $a5 (a5), signed 64 bits
- 22: $t8 (t8), signed 64 bits
- 23: $t9 (t9), signed 64 bits
- 24: $t10 (t10), signed 64 bits
- 25: $t11 (t11), signed 64 bits
- 26: $ra (ra), address 64 bits
- 27: $t12 (t12), signed 64 bits
- 28: $at (at), signed 64 bits
- 29: $gp (gp), address 64 bits
- 30: $sp (sp), address 64 bits
- 31: $zero (zero), signed 64 bits
- 64: $pc (pc), address 64 bits
- 66: $unique (unique), address 64 bits
-FPU registers:
- 32: $f0 (f0), float 64 bits
- 33: $f1 (f1), float 64 bits
- 34: $f2 (f2), float 64 bits
- 35: $f3 (f3), float 64 bits
- 36: $f4 (f4), float 64 bits
- 37: $f5 (f5), float 64 bits
- 38: $f6 (f6), float 64 bits
- 39: $f7 (f7), float 64 bits
- 40: $f8 (f8), float 64 bits
- 41: $f9 (f9), float 64 bits
- 42: $f10 (f10), float 64 bits
- 43: $f11 (f11), float 64 bits
- 44: $f12 (f12), float 64 bits
- 45: $f13 (f13), float 64 bits
- 46: $f14 (f14), float 64 bits
- 47: $f15 (f15), float 64 bits
- 48: $f16 (f16), float 64 bits
- 49: $f17 (f17), float 64 bits
- 50: $f18 (f18), float 64 bits
- 51: $f19 (f19), float 64 bits
- 52: $f20 (f20), float 64 bits
- 53: $f21 (f21), float 64 bits
- 54: $f22 (f22), float 64 bits
- 55: $f23 (f23), float 64 bits
- 56: $f24 (f24), float 64 bits
- 57: $f25 (f25), float 64 bits
- 58: $f26 (f26), float 64 bits
- 59: $f27 (f27), float 64 bits
- 60: $f28 (f28), float 64 bits
- 61: $f29 (f29), float 64 bits
- 62: $f30 (f30), float 64 bits
- 63: $fpcr (fpcr), unsigned 64 bits
-EOF
-
-regs_test testfile60 <<\EOF
-integer registers:
- 0: r0 (r0), signed 64 bits
- 1: r1 (r1), signed 64 bits
- 2: r2 (r2), signed 64 bits
- 3: r3 (r3), signed 64 bits
- 4: r4 (r4), signed 64 bits
- 5: r5 (r5), signed 64 bits
- 6: r6 (r6), signed 64 bits
- 7: r7 (r7), signed 64 bits
- 8: r8 (r8), signed 64 bits
- 9: r9 (r9), signed 64 bits
- 10: r10 (r10), signed 64 bits
- 11: r11 (r11), signed 64 bits
- 12: r12 (r12), signed 64 bits
- 13: r13 (r13), signed 64 bits
- 14: r14 (r14), signed 64 bits
- 15: r15 (r15), signed 64 bits
- 16: r16 (r16), signed 64 bits
- 17: r17 (r17), signed 64 bits
- 18: r18 (r18), signed 64 bits
- 19: r19 (r19), signed 64 bits
- 20: r20 (r20), signed 64 bits
- 21: r21 (r21), signed 64 bits
- 22: r22 (r22), signed 64 bits
- 23: r23 (r23), signed 64 bits
- 24: r24 (r24), signed 64 bits
- 25: r25 (r25), signed 64 bits
- 26: r26 (r26), signed 64 bits
- 27: r27 (r27), signed 64 bits
- 28: r28 (r28), signed 64 bits
- 29: r29 (r29), signed 64 bits
- 30: r30 (r30), signed 64 bits
- 31: r31 (r31), signed 64 bits
- 32: r32 (r32), signed 64 bits
- 33: r33 (r33), signed 64 bits
- 34: r34 (r34), signed 64 bits
- 35: r35 (r35), signed 64 bits
- 36: r36 (r36), signed 64 bits
- 37: r37 (r37), signed 64 bits
- 38: r38 (r38), signed 64 bits
- 39: r39 (r39), signed 64 bits
- 40: r40 (r40), signed 64 bits
- 41: r41 (r41), signed 64 bits
- 42: r42 (r42), signed 64 bits
- 43: r43 (r43), signed 64 bits
- 44: r44 (r44), signed 64 bits
- 45: r45 (r45), signed 64 bits
- 46: r46 (r46), signed 64 bits
- 47: r47 (r47), signed 64 bits
- 48: r48 (r48), signed 64 bits
- 49: r49 (r49), signed 64 bits
- 50: r50 (r50), signed 64 bits
- 51: r51 (r51), signed 64 bits
- 52: r52 (r52), signed 64 bits
- 53: tp (tp), address 64 bits
- 54: sp (sp), address 64 bits
- 55: lr (lr), address 64 bits
- 56: sn (sn), unsigned 64 bits
- 57: idn0 (idn0), unsigned 64 bits
- 58: idn1 (idn1), unsigned 64 bits
- 59: udn0 (udn0), unsigned 64 bits
- 60: udn1 (udn1), unsigned 64 bits
- 61: udn2 (udn2), unsigned 64 bits
- 62: udn3 (udn3), unsigned 64 bits
- 63: zero (zero), unsigned 64 bits
- 64: pc (pc), address 64 bits
-EOF
-
-regs_test testfile61 <<\EOF
-integer registers:
- 0: r0 (r0), signed 32 bits
- 1: r1 (r1), signed 32 bits
- 2: r2 (r2), signed 32 bits
- 3: r3 (r3), signed 32 bits
- 4: r4 (r4), signed 32 bits
- 5: r5 (r5), signed 32 bits
- 6: r6 (r6), signed 32 bits
- 7: r7 (r7), signed 32 bits
- 8: r8 (r8), signed 32 bits
- 9: r9 (r9), signed 32 bits
- 10: r10 (r10), signed 32 bits
- 11: r11 (r11), signed 32 bits
- 12: r12 (r12), signed 32 bits
- 13: sp (sp), address 32 bits
- 14: lr (lr), address 32 bits
- 15: pc (pc), address 32 bits
- 128: spsr (spsr), unsigned 32 bits
-FPA registers:
- 16: f0 (f0), float 96 bits
- 17: f1 (f1), float 96 bits
- 18: f2 (f2), float 96 bits
- 19: f3 (f3), float 96 bits
- 20: f4 (f4), float 96 bits
- 21: f5 (f5), float 96 bits
- 22: f6 (f6), float 96 bits
- 23: f7 (f7), float 96 bits
- 96: f0 (f0), float 96 bits
- 97: f1 (f1), float 96 bits
- 98: f2 (f2), float 96 bits
- 99: f3 (f3), float 96 bits
- 100: f4 (f4), float 96 bits
- 101: f5 (f5), float 96 bits
- 102: f6 (f6), float 96 bits
- 103: f7 (f7), float 96 bits
-VFP registers:
- 256: d0 (d0), float 64 bits
- 257: d1 (d1), float 64 bits
- 258: d2 (d2), float 64 bits
- 259: d3 (d3), float 64 bits
- 260: d4 (d4), float 64 bits
- 261: d5 (d5), float 64 bits
- 262: d6 (d6), float 64 bits
- 263: d7 (d7), float 64 bits
- 264: d8 (d8), float 64 bits
- 265: d9 (d9), float 64 bits
- 266: d10 (d10), float 64 bits
- 267: d11 (d11), float 64 bits
- 268: d12 (d12), float 64 bits
- 269: d13 (d13), float 64 bits
- 270: d14 (d14), float 64 bits
- 271: d15 (d15), float 64 bits
- 272: d16 (d16), float 64 bits
- 273: d17 (d17), float 64 bits
- 274: d18 (d18), float 64 bits
- 275: d19 (d19), float 64 bits
- 276: d20 (d20), float 64 bits
- 277: d21 (d21), float 64 bits
- 278: d22 (d22), float 64 bits
- 279: d23 (d23), float 64 bits
- 280: d24 (d24), float 64 bits
- 281: d25 (d25), float 64 bits
- 282: d26 (d26), float 64 bits
- 283: d27 (d27), float 64 bits
- 284: d28 (d28), float 64 bits
- 285: d29 (d29), float 64 bits
- 286: d30 (d30), float 64 bits
- 287: d31 (d31), float 64 bits
-EOF
-
-# See run-readelf-mixed-corenote.sh for instructions to regenerate
-# this core file.
-regs_test testfile_aarch64_core <<\EOF
-integer registers:
- 0: x0 (x0), signed 64 bits
- 1: x1 (x1), signed 64 bits
- 2: x2 (x2), signed 64 bits
- 3: x3 (x3), signed 64 bits
- 4: x4 (x4), signed 64 bits
- 5: x5 (x5), signed 64 bits
- 6: x6 (x6), signed 64 bits
- 7: x7 (x7), signed 64 bits
- 8: x8 (x8), signed 64 bits
- 9: x9 (x9), signed 64 bits
- 10: x10 (x10), signed 64 bits
- 11: x11 (x11), signed 64 bits
- 12: x12 (x12), signed 64 bits
- 13: x13 (x13), signed 64 bits
- 14: x14 (x14), signed 64 bits
- 15: x15 (x15), signed 64 bits
- 16: x16 (x16), signed 64 bits
- 17: x17 (x17), signed 64 bits
- 18: x18 (x18), signed 64 bits
- 19: x19 (x19), signed 64 bits
- 20: x20 (x20), signed 64 bits
- 21: x21 (x21), signed 64 bits
- 22: x22 (x22), signed 64 bits
- 23: x23 (x23), signed 64 bits
- 24: x24 (x24), signed 64 bits
- 25: x25 (x25), signed 64 bits
- 26: x26 (x26), signed 64 bits
- 27: x27 (x27), signed 64 bits
- 28: x28 (x28), signed 64 bits
- 29: x29 (x29), signed 64 bits
- 30: x30 (x30), signed 64 bits
- 31: sp (sp), address 64 bits
- 33: elr (elr), address 64 bits
-FP/SIMD registers:
- 64: v0 (v0), unsigned 128 bits
- 65: v1 (v1), unsigned 128 bits
- 66: v2 (v2), unsigned 128 bits
- 67: v3 (v3), unsigned 128 bits
- 68: v4 (v4), unsigned 128 bits
- 69: v5 (v5), unsigned 128 bits
- 70: v6 (v6), unsigned 128 bits
- 71: v7 (v7), unsigned 128 bits
- 72: v8 (v8), unsigned 128 bits
- 73: v9 (v9), unsigned 128 bits
- 74: v10 (v10), unsigned 128 bits
- 75: v11 (v11), unsigned 128 bits
- 76: v12 (v12), unsigned 128 bits
- 77: v13 (v13), unsigned 128 bits
- 78: v14 (v14), unsigned 128 bits
- 79: v15 (v15), unsigned 128 bits
- 80: v16 (v16), unsigned 128 bits
- 81: v17 (v17), unsigned 128 bits
- 82: v18 (v18), unsigned 128 bits
- 83: v19 (v19), unsigned 128 bits
- 84: v20 (v20), unsigned 128 bits
- 85: v21 (v21), unsigned 128 bits
- 86: v22 (v22), unsigned 128 bits
- 87: v23 (v23), unsigned 128 bits
- 88: v24 (v24), unsigned 128 bits
- 89: v25 (v25), unsigned 128 bits
- 90: v26 (v26), unsigned 128 bits
- 91: v27 (v27), unsigned 128 bits
- 92: v28 (v28), unsigned 128 bits
- 93: v29 (v29), unsigned 128 bits
- 94: v30 (v30), unsigned 128 bits
- 95: v31 (v31), unsigned 128 bits
-EOF
-
-exit 0
diff --git a/src/tests/run-arextract.sh b/src/tests/run-arextract.sh
deleted file mode 100755
index 44f4a525..00000000
--- a/src/tests/run-arextract.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2005, 2006 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-tempfiles arextract.test
-
-archive=${abs_top_builddir}/libelf/libelf.a
-if test -f $archive; then
- # The file is really available (i.e., no shared-only built).
- echo -n "Extracting symbols... $ac_c"
-
- # The files we are looking at.
- for f in ${abs_top_builddir}/libelf/*.o; do
- testrun ${abs_builddir}/arextract $archive `basename $f` arextract.test || exit 1
- cmp $f arextract.test || {
- echo "Extraction of $1 failed"
- exit 1
- }
- done
-
- echo "done"
-fi
-
-exit 0
diff --git a/src/tests/run-arsymtest.sh b/src/tests/run-arsymtest.sh
deleted file mode 100755
index b0fdfcd6..00000000
--- a/src/tests/run-arsymtest.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2006 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-lib=${abs_top_builddir}/libelf/libelf.a
-okfile=arsymtest.ok
-tmpfile=arsymtest.tmp
-testfile=arsymtest.test
-
-tempfiles $okfile $tmpfile $testfile
-
-result=77
-if test -f $lib; then
- # Generate list using `nm' we check against.
- ${NM} -s $lib |
- sed -e '1,/^Arch/d' -e '/^$/,$d' |
- sort > $okfile
-
- # Now run our program using libelf.
- testrun ${abs_builddir}/arsymtest $lib $tmpfile || exit 1
- sort $tmpfile > $testfile
-
- # Compare the outputs.
- if cmp $okfile $testfile; then
- result=0
- else
- result=1
- fi
-fi
-
-exit $result
diff --git a/src/tests/run-backtrace-core-aarch64.sh b/src/tests/run-backtrace-core-aarch64.sh
deleted file mode 100755
index a29a6613..00000000
--- a/src/tests/run-backtrace-core-aarch64.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-# backtrace.aarch64.exe is a -static binary of backtrace-child.
-# backtrace.aarch64.core was generated by running the static backtrace-child
-# with --gencore.
-check_core aarch64
diff --git a/src/tests/run-backtrace-core-i386.sh b/src/tests/run-backtrace-core-i386.sh
deleted file mode 100755
index 7294ec3d..00000000
--- a/src/tests/run-backtrace-core-i386.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-check_core i386
diff --git a/src/tests/run-backtrace-core-ppc.sh b/src/tests/run-backtrace-core-ppc.sh
deleted file mode 100755
index 65c92795..00000000
--- a/src/tests/run-backtrace-core-ppc.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-check_core ppc
diff --git a/src/tests/run-backtrace-core-s390.sh b/src/tests/run-backtrace-core-s390.sh
deleted file mode 100755
index d3b6dc9c..00000000
--- a/src/tests/run-backtrace-core-s390.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-check_core s390
diff --git a/src/tests/run-backtrace-core-s390x.sh b/src/tests/run-backtrace-core-s390x.sh
deleted file mode 100755
index c3e236d4..00000000
--- a/src/tests/run-backtrace-core-s390x.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-check_core s390x
diff --git a/src/tests/run-backtrace-core-x86_64.sh b/src/tests/run-backtrace-core-x86_64.sh
deleted file mode 100755
index d00cd6d6..00000000
--- a/src/tests/run-backtrace-core-x86_64.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-check_core x86_64
diff --git a/src/tests/run-backtrace-data.sh b/src/tests/run-backtrace-data.sh
deleted file mode 100755
index 34a4f01d..00000000
--- a/src/tests/run-backtrace-data.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-# This test really cannot be run under valgrind, it tries to introspect
-# its own maps and registers and will find valgrinds instead.
-unset VALGRIND_CMD
-
-tempfiles data.{bt,err}
-(set +ex; testrun ${abs_builddir}/backtrace-data 1>data.bt 2>data.err; true)
-cat data.{bt,err}
-check_unsupported data.err data
-check_all data.{bt,err} data
diff --git a/src/tests/run-backtrace-demangle.sh b/src/tests/run-backtrace-demangle.sh
deleted file mode 100755
index 6e18e77f..00000000
--- a/src/tests/run-backtrace-demangle.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-if test -n "$ELFUTILS_DISABLE_DEMANGLE"; then
- exit 77
-fi
-
-. $srcdir/backtrace-subr.sh
-
-child=testfile-backtrace-demangle
-testfiles $child{,.core}
-tempfiles $child.{bt,err}
-
-# There can be more than 3 frames, but depending on the system/installed
-# glibc we might not be able to unwind fully till the end.
-# cxxfunc -> f -> main
-# Expect to see the top two and a warning that there are more frames
-# (exit code 1)
-testrun ${abs_top_builddir}/src/stack -n 2 -e $child --core $child.core >$child.bt 2>$child.err || exitcode=$?
-cat $child.{bt,err}
-if test $exitcode != 1 || ! grep "shown max number of frames" $child.err; then
- echo >&2 $2: expected more than 2 frames
- false
-fi
-if ! grep -w f $child.bt; then
- echo >&2 $2: no f
- false
-fi
-if ! grep ' cxxfunc(int)' $child.bt; then
- echo >&2 $2: no cxxfunc
- false
-fi
diff --git a/src/tests/run-backtrace-dwarf.sh b/src/tests/run-backtrace-dwarf.sh
deleted file mode 100755
index 8834048a..00000000
--- a/src/tests/run-backtrace-dwarf.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-# This test really cannot be run under valgrind, it tries to introspect
-# itself through ptrace and will find bits and pieces of valgrind.
-# On top of that valgrind also tries to read all the unwind info and
-# will warn and complain about various opcodes it doesn't understand...
-unset VALGRIND_CMD
-
-tempfiles dwarf.{bt,err}
-(set +ex; testrun ${abs_builddir}/backtrace-dwarf 1>dwarf.bt 2>dwarf.err; true)
-cat dwarf.{bt,err}
-check_native_unsupported dwarf.err dwarf
-check_main dwarf.bt dwarf
diff --git a/src/tests/run-backtrace-native-biarch.sh b/src/tests/run-backtrace-native-biarch.sh
deleted file mode 100755
index 3a407c89..00000000
--- a/src/tests/run-backtrace-native-biarch.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-if test -n "$ELFUTILS_DISABLE_BIARCH"; then
- exit 77
-fi
-
-. $srcdir/backtrace-subr.sh
-
-check_native backtrace-child-biarch
diff --git a/src/tests/run-backtrace-native-core-biarch.sh b/src/tests/run-backtrace-native-core-biarch.sh
deleted file mode 100755
index fbd80256..00000000
--- a/src/tests/run-backtrace-native-core-biarch.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-if test -n "$ELFUTILS_DISABLE_BIARCH"; then
- exit 77
-fi
-
-. $srcdir/backtrace-subr.sh
-
-check_native_core backtrace-child-biarch
diff --git a/src/tests/run-backtrace-native-core.sh b/src/tests/run-backtrace-native-core.sh
deleted file mode 100755
index cb025a56..00000000
--- a/src/tests/run-backtrace-native-core.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-check_native_core backtrace-child
diff --git a/src/tests/run-backtrace-native.sh b/src/tests/run-backtrace-native.sh
deleted file mode 100755
index ddae345d..00000000
--- a/src/tests/run-backtrace-native.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-check_native backtrace-child
diff --git a/src/tests/run-bug1-test.sh b/src/tests/run-bug1-test.sh
deleted file mode 100755
index 1e78a18c..00000000
--- a/src/tests/run-bug1-test.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2006 Red Hat, Inc.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2006.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile28 testfile28.rdwr
-
-testrun ${abs_builddir}/rdwrmmap testfile28
-
-cmp testfile28 testfile28.rdwr
-
-test_cleanup
-
-testfiles testfile29 testfile29.rdwr
-
-testrun ${abs_builddir}/rdwrmmap testfile29
-
-cmp testfile29 testfile29.rdwr
-
-exit 0
diff --git a/src/tests/run-buildid.sh b/src/tests/run-buildid.sh
deleted file mode 100755
index 31cec24d..00000000
--- a/src/tests/run-buildid.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Just some random testfiles, four with, one without build-id,
-# and one without shdrs forcing reading the notes through phdrs.
-# eu-strip --strip-sections -g --output=testfile42_noshdrs testfile42
-# See also run-debugaltlink.sh.
-testfiles testfile42 testfile_multi.dwz testfile-dwzstr.multi \
- test-offset-loop.alt testfile14 testfile42_noshdrs
-
-testrun_compare ${abs_builddir}/buildid testfile42 testfile42_noshdrs \
- testfile_multi.dwz testfile-dwzstr.multi \
- test-offset-loop.alt testfile14 <<\EOF
-testfile42: build ID: d826d96c4d097bdc5c254b1f7344a907e36b0439
-testfile42_noshdrs: build ID: d826d96c4d097bdc5c254b1f7344a907e36b0439
-testfile_multi.dwz: build ID: a0d6c06e0d912d74033b6fe2808753cae8f6f594
-testfile-dwzstr.multi: build ID: 6da22627dae55c1d62cf9122827c665e240a056b
-test-offset-loop.alt: build ID: 066bbf1a7bc5676f5015ee1966a088f23bdb83ae
-testfile14: <no NT_GNU_BUILD_ID note>
-EOF
-
-exit 0
diff --git a/src/tests/run-debugaltlink.sh b/src/tests/run-debugaltlink.sh
deleted file mode 100755
index fa7dd268..00000000
--- a/src/tests/run-debugaltlink.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Just some random testfiles, four with, one without .gnu_debugaltlink
-testfiles testfile42 testfile_multi_main testfile-dwzstr \
- test-offset-loop libtestfile_multi_shared.so
-
-testrun_compare ${abs_builddir}/debugaltlink testfile42 \
- testfile_multi_main testfile-dwzstr \
- test-offset-loop libtestfile_multi_shared.so <<\EOF
-testfile42: <no .gnu_debugaltlink section>
-testfile_multi_main: testfile_multi.dwz, build ID: a0d6c06e0d912d74033b6fe2808753cae8f6f594
-testfile-dwzstr: testfile-dwzstr.multi, build ID: 6da22627dae55c1d62cf9122827c665e240a056b
-test-offset-loop: test-offset-loop.alt, build ID: 066bbf1a7bc5676f5015ee1966a088f23bdb83ae
-libtestfile_multi_shared.so: testfile_multi.dwz, build ID: a0d6c06e0d912d74033b6fe2808753cae8f6f594
-EOF
-
-exit 0
diff --git a/src/tests/run-debuglink.sh b/src/tests/run-debuglink.sh
deleted file mode 100755
index 42a816cb..00000000
--- a/src/tests/run-debuglink.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Just some random testfiles, two with, one without .gnu_debuglink
-testfiles testfile36 testfile52-32.so testfile42
-
-testrun_compare ${abs_builddir}/debuglink testfile36 testfile52-32.so testfile42 <<\EOF
-testfile36: testfile36.debug, crc: 8c5c20a3
-testfile52-32.so: testfile52-32.so.debug, crc: b835a71d
-testfile42: <no gnu_debuglink file>
-EOF
-
-exit 0
diff --git a/src/tests/run-deleted.sh b/src/tests/run-deleted.sh
deleted file mode 100755
index 2b5a9a84..00000000
--- a/src/tests/run-deleted.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/backtrace-subr.sh
-
-tempfiles deleted deleted-lib.so
-cp -p ${abs_builddir}/deleted ${abs_builddir}/deleted-lib.so .
-
-# We don't want to run the deleted process under valgrind then
-# stack will see the valgrind process backtrace.
-OLD_VALGRIND_CMD="$VALGRIND_CMD"
-unset VALGRIND_CMD
-
-pid=$(testrun ${abs_builddir}/deleted)
-sleep 1
-rm -f deleted deleted-lib.so
-tempfiles bt bt.err
-
-set VALGRIND_CMD="$OLD_VALGRIND_CMD"
-# It may have non-zero exit code with:
-# .../elfutils/src/stack: dwfl_thread_getframes tid 26376 at 0x4006c8 in .../elfutils/tests/deleted: no matching address range
-testrun ${abs_top_builddir}/src/stack -p $pid 1>bt 2>bt.err || true
-cat bt bt.err
-kill -9 $pid
-wait
-check_native_unsupported bt.err deleted
-# For PPC64 we need access to the OPD table which we get through the shdrs
-# (see backends/ppc64_init.c) but for the deleted-lib we only have phdrs.
-# So we don't have the name of the function. But since we should find
-# the EH_FRAME through phdrs just fine, we can unwind into main.
-if test "`uname -m`" != "ppc64"; then
- grep -qw libfunc bt
-fi
-grep -qw main bt
diff --git a/src/tests/run-disasm-x86-64.sh b/src/tests/run-disasm-x86-64.sh
deleted file mode 100755
index a6be62bb..00000000
--- a/src/tests/run-disasm-x86-64.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007, 2008 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Run x86-64 test.
-case "`uname -m`" in
- x86_64)
- tempfiles testfile45.o
- testfiles testfile45.S testfile45.expect
- gcc -m64 -c -o testfile45.o testfile45.S
- testrun_compare ${abs_top_builddir}/src/objdump -d testfile45.o < testfile45.expect
- ;;
-esac
diff --git a/src/tests/run-disasm-x86.sh b/src/tests/run-disasm-x86.sh
deleted file mode 100755
index 28a3df74..00000000
--- a/src/tests/run-disasm-x86.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007, 2008 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Run x86 test.
-case "`uname -m`" in
- x86_64 | i?86 )
- tempfiles testfile44.o
- testfiles testfile44.S testfile44.expect
- gcc -m32 -c -o testfile44.o testfile44.S
- testrun_compare ${abs_top_builddir}/src/objdump -d testfile44.o < testfile44.expect
- ;;
-esac
diff --git a/src/tests/run-dwarf-getmacros.sh b/src/tests/run-dwarf-getmacros.sh
deleted file mode 100755
index 0a488fa3..00000000
--- a/src/tests/run-dwarf-getmacros.sh
+++ /dev/null
@@ -1,710 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2009, 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile51
-
-testrun_compare ${abs_builddir}/dwarf-getmacros testfile51 0xb <<\EOF
-file /home/petr/proj/elfutils/pending/elfutils/tests/decom/x.c
- __STDC__ 1
- __STDC_HOSTED__ 1
- __GNUC__ 4
- __GNUC_MINOR__ 3
- __GNUC_PATCHLEVEL__ 2
- __GNUC_RH_RELEASE__ 7
- __SIZE_TYPE__ long unsigned int
- __PTRDIFF_TYPE__ long int
- __WCHAR_TYPE__ int
- __WINT_TYPE__ unsigned int
- __INTMAX_TYPE__ long int
- __UINTMAX_TYPE__ long unsigned int
- __GXX_ABI_VERSION 1002
- __SCHAR_MAX__ 127
- __SHRT_MAX__ 32767
- __INT_MAX__ 2147483647
- __LONG_MAX__ 9223372036854775807L
- __LONG_LONG_MAX__ 9223372036854775807LL
- __WCHAR_MAX__ 2147483647
- __CHAR_BIT__ 8
- __INTMAX_MAX__ 9223372036854775807L
- __FLT_EVAL_METHOD__ 0
- __DEC_EVAL_METHOD__ 2
- __FLT_RADIX__ 2
- __FLT_MANT_DIG__ 24
- __FLT_DIG__ 6
- __FLT_MIN_EXP__ (-125)
- __FLT_MIN_10_EXP__ (-37)
- __FLT_MAX_EXP__ 128
- __FLT_MAX_10_EXP__ 38
- __FLT_MAX__ 3.40282347e+38F
- __FLT_MIN__ 1.17549435e-38F
- __FLT_EPSILON__ 1.19209290e-7F
- __FLT_DENORM_MIN__ 1.40129846e-45F
- __FLT_HAS_DENORM__ 1
- __FLT_HAS_INFINITY__ 1
- __FLT_HAS_QUIET_NAN__ 1
- __DBL_MANT_DIG__ 53
- __DBL_DIG__ 15
- __DBL_MIN_EXP__ (-1021)
- __DBL_MIN_10_EXP__ (-307)
- __DBL_MAX_EXP__ 1024
- __DBL_MAX_10_EXP__ 308
- __DBL_MAX__ 1.7976931348623157e+308
- __DBL_MIN__ 2.2250738585072014e-308
- __DBL_EPSILON__ 2.2204460492503131e-16
- __DBL_DENORM_MIN__ 4.9406564584124654e-324
- __DBL_HAS_DENORM__ 1
- __DBL_HAS_INFINITY__ 1
- __DBL_HAS_QUIET_NAN__ 1
- __LDBL_MANT_DIG__ 64
- __LDBL_DIG__ 18
- __LDBL_MIN_EXP__ (-16381)
- __LDBL_MIN_10_EXP__ (-4931)
- __LDBL_MAX_EXP__ 16384
- __LDBL_MAX_10_EXP__ 4932
- __DECIMAL_DIG__ 21
- __LDBL_MAX__ 1.18973149535723176502e+4932L
- __LDBL_MIN__ 3.36210314311209350626e-4932L
- __LDBL_EPSILON__ 1.08420217248550443401e-19L
- __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
- __LDBL_HAS_DENORM__ 1
- __LDBL_HAS_INFINITY__ 1
- __LDBL_HAS_QUIET_NAN__ 1
- __DEC32_MANT_DIG__ 7
- __DEC32_MIN_EXP__ (-95)
- __DEC32_MAX_EXP__ 96
- __DEC32_MIN__ 1E-95DF
- __DEC32_MAX__ 9.999999E96DF
- __DEC32_EPSILON__ 1E-6DF
- __DEC32_DEN__ 0.000001E-95DF
- __DEC64_MANT_DIG__ 16
- __DEC64_MIN_EXP__ (-383)
- __DEC64_MAX_EXP__ 384
- __DEC64_MIN__ 1E-383DD
- __DEC64_MAX__ 9.999999999999999E384DD
- __DEC64_EPSILON__ 1E-15DD
- __DEC64_DEN__ 0.000000000000001E-383DD
- __DEC128_MANT_DIG__ 34
- __DEC128_MIN_EXP__ (-6143)
- __DEC128_MAX_EXP__ 6144
- __DEC128_MIN__ 1E-6143DL
- __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
- __DEC128_EPSILON__ 1E-33DL
- __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL
- __REGISTER_PREFIX__
- __USER_LABEL_PREFIX__
- __VERSION__ "4.3.2 20081105 (Red Hat 4.3.2-7)"
- __GNUC_GNU_INLINE__ 1
- _LP64 1
- __LP64__ 1
- __NO_INLINE__ 1
- __FINITE_MATH_ONLY__ 0
- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
- __SIZEOF_INT__ 4
- __SIZEOF_LONG__ 8
- __SIZEOF_LONG_LONG__ 8
- __SIZEOF_SHORT__ 2
- __SIZEOF_FLOAT__ 4
- __SIZEOF_DOUBLE__ 8
- __SIZEOF_LONG_DOUBLE__ 16
- __SIZEOF_SIZE_T__ 8
- __SIZEOF_WCHAR_T__ 4
- __SIZEOF_WINT_T__ 4
- __SIZEOF_PTRDIFF_T__ 8
- __SIZEOF_POINTER__ 8
- __amd64 1
- __amd64__ 1
- __x86_64 1
- __x86_64__ 1
- __k8 1
- __k8__ 1
- __MMX__ 1
- __SSE__ 1
- __SSE2__ 1
- __SSE_MATH__ 1
- __SSE2_MATH__ 1
- __gnu_linux__ 1
- __linux 1
- __linux__ 1
- linux 1
- __unix 1
- __unix__ 1
- unix 1
- __ELF__ 1
- __DECIMAL_BID_FORMAT__ 1
- macro1 ble
-/file
-EOF
-
-testrun_compare ${abs_builddir}/dwarf-getmacros testfile51 0x84 <<\EOF
-file /home/petr/proj/elfutils/pending/elfutils/tests/decom/y.c
- __STDC__ 1
- __STDC_HOSTED__ 1
- __GNUC__ 4
- __GNUC_MINOR__ 3
- __GNUC_PATCHLEVEL__ 2
- __GNUC_RH_RELEASE__ 7
- __SIZE_TYPE__ long unsigned int
- __PTRDIFF_TYPE__ long int
- __WCHAR_TYPE__ int
- __WINT_TYPE__ unsigned int
- __INTMAX_TYPE__ long int
- __UINTMAX_TYPE__ long unsigned int
- __GXX_ABI_VERSION 1002
- __SCHAR_MAX__ 127
- __SHRT_MAX__ 32767
- __INT_MAX__ 2147483647
- __LONG_MAX__ 9223372036854775807L
- __LONG_LONG_MAX__ 9223372036854775807LL
- __WCHAR_MAX__ 2147483647
- __CHAR_BIT__ 8
- __INTMAX_MAX__ 9223372036854775807L
- __FLT_EVAL_METHOD__ 0
- __DEC_EVAL_METHOD__ 2
- __FLT_RADIX__ 2
- __FLT_MANT_DIG__ 24
- __FLT_DIG__ 6
- __FLT_MIN_EXP__ (-125)
- __FLT_MIN_10_EXP__ (-37)
- __FLT_MAX_EXP__ 128
- __FLT_MAX_10_EXP__ 38
- __FLT_MAX__ 3.40282347e+38F
- __FLT_MIN__ 1.17549435e-38F
- __FLT_EPSILON__ 1.19209290e-7F
- __FLT_DENORM_MIN__ 1.40129846e-45F
- __FLT_HAS_DENORM__ 1
- __FLT_HAS_INFINITY__ 1
- __FLT_HAS_QUIET_NAN__ 1
- __DBL_MANT_DIG__ 53
- __DBL_DIG__ 15
- __DBL_MIN_EXP__ (-1021)
- __DBL_MIN_10_EXP__ (-307)
- __DBL_MAX_EXP__ 1024
- __DBL_MAX_10_EXP__ 308
- __DBL_MAX__ 1.7976931348623157e+308
- __DBL_MIN__ 2.2250738585072014e-308
- __DBL_EPSILON__ 2.2204460492503131e-16
- __DBL_DENORM_MIN__ 4.9406564584124654e-324
- __DBL_HAS_DENORM__ 1
- __DBL_HAS_INFINITY__ 1
- __DBL_HAS_QUIET_NAN__ 1
- __LDBL_MANT_DIG__ 64
- __LDBL_DIG__ 18
- __LDBL_MIN_EXP__ (-16381)
- __LDBL_MIN_10_EXP__ (-4931)
- __LDBL_MAX_EXP__ 16384
- __LDBL_MAX_10_EXP__ 4932
- __DECIMAL_DIG__ 21
- __LDBL_MAX__ 1.18973149535723176502e+4932L
- __LDBL_MIN__ 3.36210314311209350626e-4932L
- __LDBL_EPSILON__ 1.08420217248550443401e-19L
- __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
- __LDBL_HAS_DENORM__ 1
- __LDBL_HAS_INFINITY__ 1
- __LDBL_HAS_QUIET_NAN__ 1
- __DEC32_MANT_DIG__ 7
- __DEC32_MIN_EXP__ (-95)
- __DEC32_MAX_EXP__ 96
- __DEC32_MIN__ 1E-95DF
- __DEC32_MAX__ 9.999999E96DF
- __DEC32_EPSILON__ 1E-6DF
- __DEC32_DEN__ 0.000001E-95DF
- __DEC64_MANT_DIG__ 16
- __DEC64_MIN_EXP__ (-383)
- __DEC64_MAX_EXP__ 384
- __DEC64_MIN__ 1E-383DD
- __DEC64_MAX__ 9.999999999999999E384DD
- __DEC64_EPSILON__ 1E-15DD
- __DEC64_DEN__ 0.000000000000001E-383DD
- __DEC128_MANT_DIG__ 34
- __DEC128_MIN_EXP__ (-6143)
- __DEC128_MAX_EXP__ 6144
- __DEC128_MIN__ 1E-6143DL
- __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
- __DEC128_EPSILON__ 1E-33DL
- __DEC128_DEN__ 0.000000000000000000000000000000001E-6143DL
- __REGISTER_PREFIX__
- __USER_LABEL_PREFIX__
- __VERSION__ "4.3.2 20081105 (Red Hat 4.3.2-7)"
- __GNUC_GNU_INLINE__ 1
- _LP64 1
- __LP64__ 1
- __NO_INLINE__ 1
- __FINITE_MATH_ONLY__ 0
- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
- __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
- __SIZEOF_INT__ 4
- __SIZEOF_LONG__ 8
- __SIZEOF_LONG_LONG__ 8
- __SIZEOF_SHORT__ 2
- __SIZEOF_FLOAT__ 4
- __SIZEOF_DOUBLE__ 8
- __SIZEOF_LONG_DOUBLE__ 16
- __SIZEOF_SIZE_T__ 8
- __SIZEOF_WCHAR_T__ 4
- __SIZEOF_WINT_T__ 4
- __SIZEOF_PTRDIFF_T__ 8
- __SIZEOF_POINTER__ 8
- __amd64 1
- __amd64__ 1
- __x86_64 1
- __x86_64__ 1
- __k8 1
- __k8__ 1
- __MMX__ 1
- __SSE__ 1
- __SSE2__ 1
- __SSE_MATH__ 1
- __SSE2_MATH__ 1
- __gnu_linux__ 1
- __linux 1
- __linux__ 1
- linux 1
- __unix 1
- __unix__ 1
- unix 1
- __ELF__ 1
- __DECIMAL_BID_FORMAT__ 1
- macro2 ble
-/file
-EOF
-
-testfiles testfile-macros
-
-testrun_compare ${abs_builddir}/dwarf-getmacros testfile-macros 0xb <<\EOF
-__STDC__ 1
-__STDC_HOSTED__ 1
-__GNUC__ 4
-__GNUC_MINOR__ 7
-__GNUC_PATCHLEVEL__ 0
-__VERSION__ "4.7.0 20120507 (Red Hat 4.7.0-5)"
-__GNUC_RH_RELEASE__ 5
-__ATOMIC_RELAXED 0
-__ATOMIC_SEQ_CST 5
-__ATOMIC_ACQUIRE 2
-__ATOMIC_RELEASE 3
-__ATOMIC_ACQ_REL 4
-__ATOMIC_CONSUME 1
-__FINITE_MATH_ONLY__ 0
-_LP64 1
-__LP64__ 1
-__SIZEOF_INT__ 4
-__SIZEOF_LONG__ 8
-__SIZEOF_LONG_LONG__ 8
-__SIZEOF_SHORT__ 2
-__SIZEOF_FLOAT__ 4
-__SIZEOF_DOUBLE__ 8
-__SIZEOF_LONG_DOUBLE__ 16
-__SIZEOF_SIZE_T__ 8
-__CHAR_BIT__ 8
-__BIGGEST_ALIGNMENT__ 16
-__ORDER_LITTLE_ENDIAN__ 1234
-__ORDER_BIG_ENDIAN__ 4321
-__ORDER_PDP_ENDIAN__ 3412
-__BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
-__FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__
-__SIZEOF_POINTER__ 8
-__SIZE_TYPE__ long unsigned int
-__PTRDIFF_TYPE__ long int
-__WCHAR_TYPE__ int
-__WINT_TYPE__ unsigned int
-__INTMAX_TYPE__ long int
-__UINTMAX_TYPE__ long unsigned int
-__CHAR16_TYPE__ short unsigned int
-__CHAR32_TYPE__ unsigned int
-__SIG_ATOMIC_TYPE__ int
-__INT8_TYPE__ signed char
-__INT16_TYPE__ short int
-__INT32_TYPE__ int
-__INT64_TYPE__ long int
-__UINT8_TYPE__ unsigned char
-__UINT16_TYPE__ short unsigned int
-__UINT32_TYPE__ unsigned int
-__UINT64_TYPE__ long unsigned int
-__INT_LEAST8_TYPE__ signed char
-__INT_LEAST16_TYPE__ short int
-__INT_LEAST32_TYPE__ int
-__INT_LEAST64_TYPE__ long int
-__UINT_LEAST8_TYPE__ unsigned char
-__UINT_LEAST16_TYPE__ short unsigned int
-__UINT_LEAST32_TYPE__ unsigned int
-__UINT_LEAST64_TYPE__ long unsigned int
-__INT_FAST8_TYPE__ signed char
-__INT_FAST16_TYPE__ long int
-__INT_FAST32_TYPE__ long int
-__INT_FAST64_TYPE__ long int
-__UINT_FAST8_TYPE__ unsigned char
-__UINT_FAST16_TYPE__ long unsigned int
-__UINT_FAST32_TYPE__ long unsigned int
-__UINT_FAST64_TYPE__ long unsigned int
-__INTPTR_TYPE__ long int
-__UINTPTR_TYPE__ long unsigned int
-__GXX_ABI_VERSION 1002
-__SCHAR_MAX__ 127
-__SHRT_MAX__ 32767
-__INT_MAX__ 2147483647
-__LONG_MAX__ 9223372036854775807L
-__LONG_LONG_MAX__ 9223372036854775807LL
-__WCHAR_MAX__ 2147483647
-__WCHAR_MIN__ (-__WCHAR_MAX__ - 1)
-__WINT_MAX__ 4294967295U
-__WINT_MIN__ 0U
-__PTRDIFF_MAX__ 9223372036854775807L
-__SIZE_MAX__ 18446744073709551615UL
-__INTMAX_MAX__ 9223372036854775807L
-__INTMAX_C(c) c ## L
-__UINTMAX_MAX__ 18446744073709551615UL
-__UINTMAX_C(c) c ## UL
-__SIG_ATOMIC_MAX__ 2147483647
-__SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)
-__INT8_MAX__ 127
-__INT16_MAX__ 32767
-__INT32_MAX__ 2147483647
-__INT64_MAX__ 9223372036854775807L
-__UINT8_MAX__ 255
-__UINT16_MAX__ 65535
-__UINT32_MAX__ 4294967295U
-__UINT64_MAX__ 18446744073709551615UL
-__INT_LEAST8_MAX__ 127
-__INT8_C(c) c
-__INT_LEAST16_MAX__ 32767
-__INT16_C(c) c
-__INT_LEAST32_MAX__ 2147483647
-__INT32_C(c) c
-__INT_LEAST64_MAX__ 9223372036854775807L
-__INT64_C(c) c ## L
-__UINT_LEAST8_MAX__ 255
-__UINT8_C(c) c
-__UINT_LEAST16_MAX__ 65535
-__UINT16_C(c) c
-__UINT_LEAST32_MAX__ 4294967295U
-__UINT32_C(c) c ## U
-__UINT_LEAST64_MAX__ 18446744073709551615UL
-__UINT64_C(c) c ## UL
-__INT_FAST8_MAX__ 127
-__INT_FAST16_MAX__ 9223372036854775807L
-__INT_FAST32_MAX__ 9223372036854775807L
-__INT_FAST64_MAX__ 9223372036854775807L
-__UINT_FAST8_MAX__ 255
-__UINT_FAST16_MAX__ 18446744073709551615UL
-__UINT_FAST32_MAX__ 18446744073709551615UL
-__UINT_FAST64_MAX__ 18446744073709551615UL
-__INTPTR_MAX__ 9223372036854775807L
-__UINTPTR_MAX__ 18446744073709551615UL
-__FLT_EVAL_METHOD__ 0
-__DEC_EVAL_METHOD__ 2
-__FLT_RADIX__ 2
-__FLT_MANT_DIG__ 24
-__FLT_DIG__ 6
-__FLT_MIN_EXP__ (-125)
-__FLT_MIN_10_EXP__ (-37)
-__FLT_MAX_EXP__ 128
-__FLT_MAX_10_EXP__ 38
-__FLT_DECIMAL_DIG__ 9
-__FLT_MAX__ 3.40282346638528859812e+38F
-__FLT_MIN__ 1.17549435082228750797e-38F
-__FLT_EPSILON__ 1.19209289550781250000e-7F
-__FLT_DENORM_MIN__ 1.40129846432481707092e-45F
-__FLT_HAS_DENORM__ 1
-__FLT_HAS_INFINITY__ 1
-__FLT_HAS_QUIET_NAN__ 1
-__DBL_MANT_DIG__ 53
-__DBL_DIG__ 15
-__DBL_MIN_EXP__ (-1021)
-__DBL_MIN_10_EXP__ (-307)
-__DBL_MAX_EXP__ 1024
-__DBL_MAX_10_EXP__ 308
-__DBL_DECIMAL_DIG__ 17
-__DBL_MAX__ ((double)1.79769313486231570815e+308L)
-__DBL_MIN__ ((double)2.22507385850720138309e-308L)
-__DBL_EPSILON__ ((double)2.22044604925031308085e-16L)
-__DBL_DENORM_MIN__ ((double)4.94065645841246544177e-324L)
-__DBL_HAS_DENORM__ 1
-__DBL_HAS_INFINITY__ 1
-__DBL_HAS_QUIET_NAN__ 1
-__LDBL_MANT_DIG__ 64
-__LDBL_DIG__ 18
-__LDBL_MIN_EXP__ (-16381)
-__LDBL_MIN_10_EXP__ (-4931)
-__LDBL_MAX_EXP__ 16384
-__LDBL_MAX_10_EXP__ 4932
-__DECIMAL_DIG__ 21
-__LDBL_MAX__ 1.18973149535723176502e+4932L
-__LDBL_MIN__ 3.36210314311209350626e-4932L
-__LDBL_EPSILON__ 1.08420217248550443401e-19L
-__LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L
-__LDBL_HAS_DENORM__ 1
-__LDBL_HAS_INFINITY__ 1
-__LDBL_HAS_QUIET_NAN__ 1
-__DEC32_MANT_DIG__ 7
-__DEC32_MIN_EXP__ (-94)
-__DEC32_MAX_EXP__ 97
-__DEC32_MIN__ 1E-95DF
-__DEC32_MAX__ 9.999999E96DF
-__DEC32_EPSILON__ 1E-6DF
-__DEC32_SUBNORMAL_MIN__ 0.000001E-95DF
-__DEC64_MANT_DIG__ 16
-__DEC64_MIN_EXP__ (-382)
-__DEC64_MAX_EXP__ 385
-__DEC64_MIN__ 1E-383DD
-__DEC64_MAX__ 9.999999999999999E384DD
-__DEC64_EPSILON__ 1E-15DD
-__DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD
-__DEC128_MANT_DIG__ 34
-__DEC128_MIN_EXP__ (-6142)
-__DEC128_MAX_EXP__ 6145
-__DEC128_MIN__ 1E-6143DL
-__DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
-__DEC128_EPSILON__ 1E-33DL
-__DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL
-__REGISTER_PREFIX__
-__USER_LABEL_PREFIX__
-__GNUC_GNU_INLINE__ 1
-__NO_INLINE__ 1
-__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
-__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
-__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
-__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
-__GCC_ATOMIC_BOOL_LOCK_FREE 2
-__GCC_ATOMIC_CHAR_LOCK_FREE 2
-__GCC_ATOMIC_CHAR16_T_LOCK_FREE 2
-__GCC_ATOMIC_CHAR32_T_LOCK_FREE 2
-__GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
-__GCC_ATOMIC_SHORT_LOCK_FREE 2
-__GCC_ATOMIC_INT_LOCK_FREE 2
-__GCC_ATOMIC_LONG_LOCK_FREE 2
-__GCC_ATOMIC_LLONG_LOCK_FREE 2
-__GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
-__GCC_ATOMIC_POINTER_LOCK_FREE 2
-__GCC_HAVE_DWARF2_CFI_ASM 1
-__PRAGMA_REDEFINE_EXTNAME 1
-__SIZEOF_INT128__ 16
-__SIZEOF_WCHAR_T__ 4
-__SIZEOF_WINT_T__ 4
-__SIZEOF_PTRDIFF_T__ 8
-__amd64 1
-__amd64__ 1
-__x86_64 1
-__x86_64__ 1
-__k8 1
-__k8__ 1
-__MMX__ 1
-__SSE__ 1
-__SSE2__ 1
-__SSE_MATH__ 1
-__SSE2_MATH__ 1
-__gnu_linux__ 1
-__linux 1
-__linux__ 1
-linux 1
-__unix 1
-__unix__ 1
-unix 1
-__ELF__ 1
-__DECIMAL_BID_FORMAT__ 1
-file /home/mark/src/tests/macro.c
- file /usr/include/string.h
- _STRING_H 1
- file /usr/include/features.h
- include 0x5d8
- _FEATURES_H 1
- __KERNEL_STRICT_NAMES
- __USE_ANSI 1
- __GNUC_PREREQ(maj,min) ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
- _BSD_SOURCE 1
- _SVID_SOURCE 1
- _POSIX_SOURCE 1
- _POSIX_C_SOURCE 200809L
- __USE_POSIX_IMPLICITLY 1
- __USE_POSIX 1
- __USE_POSIX2 1
- __USE_POSIX199309 1
- __USE_POSIX199506 1
- __USE_XOPEN2K 1
- __USE_ISOC95 1
- __USE_ISOC99 1
- __USE_XOPEN2K8 1
- _ATFILE_SOURCE 1
- __USE_MISC 1
- __USE_BSD 1
- __USE_SVID 1
- __USE_ATFILE 1
- __USE_FORTIFY_LEVEL 0
- /include
- file /usr/include/stdc-predef.h
- include 0x733
- _STDC_PREDEF_H 1
- __STDC_IEC_559__ 1
- __STDC_IEC_559_COMPLEX__ 1
- __STDC_ISO_10646__ 201103L
- __STDC_NO_THREADS__ 1
- /include
- /file
- include 0x755
- __GNU_LIBRARY__ 6
- __GLIBC__ 2
- __GLIBC_MINOR__ 15
- __GLIBC_PREREQ(maj,min) ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
- __GLIBC_HAVE_LONG_LONG 1
- /include
- file /usr/include/sys/cdefs.h
- include 0x783
- _SYS_CDEFS_H 1
- __LEAF , __leaf__
- __LEAF_ATTR __attribute__ ((__leaf__))
- __THROW __attribute__ ((__nothrow__ __LEAF))
- __THROWNL __attribute__ ((__nothrow__))
- __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct
- __P(args) args
- __PMT(args) args
- __CONCAT(x,y) x ## y
- __STRING(x) #x
- __ptr_t void *
- __long_double_t long double
- __BEGIN_DECLS
- __END_DECLS
- __BEGIN_NAMESPACE_STD
- __END_NAMESPACE_STD
- __USING_NAMESPACE_STD(name)
- __BEGIN_NAMESPACE_C99
- __END_NAMESPACE_C99
- __USING_NAMESPACE_C99(name)
- __bounded
- __unbounded
- __ptrvalue
- __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
- __bos0(ptr) __builtin_object_size (ptr, 0)
- __fortify_function __extern_always_inline __attribute_artificial__
- __warndecl(name,msg) extern void name (void) __attribute__((__warning__ (msg)))
- __warnattr(msg) __attribute__((__warning__ (msg)))
- __errordecl(name,msg) extern void name (void) __attribute__((__error__ (msg)))
- __flexarr []
- __REDIRECT(name,proto,alias) name proto __asm__ (__ASMNAME (#alias))
- __REDIRECT_NTH(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) __THROW
- __REDIRECT_NTHNL(name,proto,alias) name proto __asm__ (__ASMNAME (#alias)) __THROWNL
- __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
- __ASMNAME2(prefix,cname) __STRING (prefix) cname
- __attribute_malloc__ __attribute__ ((__malloc__))
- __attribute_pure__ __attribute__ ((__pure__))
- __attribute_const__ __attribute__ ((__const__))
- __attribute_used__ __attribute__ ((__used__))
- __attribute_noinline__ __attribute__ ((__noinline__))
- __attribute_deprecated__ __attribute__ ((__deprecated__))
- __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
- __attribute_format_strfmon__(a,b) __attribute__ ((__format__ (__strfmon__, a, b)))
- __nonnull(params) __attribute__ ((__nonnull__ params))
- __attribute_warn_unused_result__ __attribute__ ((__warn_unused_result__))
- __wur
- __always_inline __inline __attribute__ ((__always_inline__))
- __attribute_artificial__ __attribute__ ((__artificial__))
- __extern_inline extern __inline
- __extern_always_inline extern __always_inline
- __va_arg_pack() __builtin_va_arg_pack ()
- __va_arg_pack_len() __builtin_va_arg_pack_len ()
- __restrict_arr __restrict
- __glibc_unlikely(cond) __builtin_expect((cond), 0)
- /include
- file /usr/include/bits/wordsize.h
- include 0x8fa
- __WORDSIZE 64
- __WORDSIZE_TIME64_COMPAT32 1
- __SYSCALL_WORDSIZE 64
- /include
- /file
- include 0x910
- __LDBL_REDIR1(name,proto,alias) name proto
- __LDBL_REDIR(name,proto) name proto
- __LDBL_REDIR1_NTH(name,proto,alias) name proto __THROW
- __LDBL_REDIR_NTH(name,proto) name proto __THROW
- __LDBL_REDIR_DECL(name)
- __REDIRECT_LDBL(name,proto,alias) __REDIRECT (name, proto, alias)
- __REDIRECT_NTH_LDBL(name,proto,alias) __REDIRECT_NTH (name, proto, alias)
- /include
- /file
- file /usr/include/gnu/stubs.h
- file /usr/include/gnu/stubs-64.h
- include 0x945
- __stub_bdflush
- __stub_chflags
- __stub_fattach
- __stub_fchflags
- __stub_fdetach
- __stub_getmsg
- __stub_gtty
- __stub_lchmod
- __stub_putmsg
- __stub_revoke
- __stub_setlogin
- __stub_sigreturn
- __stub_sstk
- __stub_stty
- /include
- /file
- /file
- /file
- include 0x99d
- __need_size_t
- __need_NULL
- /include
- file /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/stddef.h
- include 0x9ad
- __size_t__
- __SIZE_T__
- _SIZE_T
- _SYS_SIZE_T_H
- _T_SIZE_
- _T_SIZE
- __SIZE_T
- _SIZE_T_
- _BSD_SIZE_T_
- _SIZE_T_DEFINED_
- _SIZE_T_DEFINED
- _BSD_SIZE_T_DEFINED_
- _SIZE_T_DECLARED
- ___int_size_t_h
- _GCC_SIZE_T
- _SIZET_
- __size_t
- NULL ((void *)0)
- /include
- /file
- file /usr/include/xlocale.h
- _XLOCALE_H 1
- /file
- /file
- HELLO "world"
-/file
-EOF
-
-testfiles testfile-macros-0xff
-testrun_compare ${abs_builddir}/dwarf-getmacros testfile-macros-0xff 0xb <<\EOF
-invalid opcode
-EOF
-testrun_compare ${abs_builddir}/dwarf-getmacros testfile-macros-0xff 0xb '' <<\EOF
-opcode 255 with 0 arguments
-file /home/petr/proj/elfutils/master/elfutils/x.c
- FOO 0
-/file
-EOF
-
-exit 0
diff --git a/src/tests/run-dwarf-getstring.sh b/src/tests/run-dwarf-getstring.sh
deleted file mode 100755
index f18f6282..00000000
--- a/src/tests/run-dwarf-getstring.sh
+++ /dev/null
@@ -1,125 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2011 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile11
-
-testrun_compare ${abs_builddir}/dwarf-getstring testfile11 <<\EOF
-_ZNSbIwSt11char_traitsIwESaIwEE13_S_copy_charsEPwS3_S3_
-itimerspec
-_G_int32_t
-_IO_last_state
-antiquities
-_ZNSbIwSt11char_traitsIwESaIwEEpLEw
-insert
-_ZNSbIwSt11char_traitsIwESaIwEE12_M_leak_hardEv
-__lockkind
-_ZNKSbIwSt11char_traitsIwESaIwEE8capacityEv
-_ZNSs7_M_leakEv
-_M_ref_count
-_ZNSt11char_traitsIwE6assignEPwjw
-_ZNKSs13find_first_ofEPKcj
-._14
-._15
-._16
-._17
-_ZNKSs16find_last_not_ofEPKcj
-_G_iconv_t
-_ZN10__gnu_test9gnu_obj_2IlEaSERKS1_
-_ZN11random_dataaSERKS_
-_ZNSt11char_traitsIcE7not_eofERKi
-__class_type_info
-tm_sec
-_ZNKSbIwSt11char_traitsIwESaIwEE5c_strEv
-__rlim64_t
-seek
-pthread_mutex_t
-_ZNSs5eraseEN9__gnu_cxx17__normal_iteratorIPcSsEE
-_ZNSsaSEc
-__not_va_list__
-_ZNKSs12find_last_ofEPKcj
-_ZNSs7replaceEN9__gnu_cxx17__normal_iteratorIPcSsEES2_S2_S2_
-__gconv_info
-_ZNSt11__ios_flags12_S_showpointE
-output_iterator_tag
-gnu_obj_2<long int>
-_ZNSs6insertEjRKSsjj
-_ZN13__type_traitsIbEaSERKS0_
-_ZNKSbIwSt11char_traitsIwESaIwEE4copyEPwjj
-_ZNSs9_M_mutateEjjj
-__ios_flags
-short unsigned int
-_ZNKSs4findEPKcj
-compare
-_ZNSbIwSt11char_traitsIwESaIwEE4_Rep7_M_grabERKS1_S5_
-tm_yday
-unsigned char
-__stacksize
-__gconv_init_fct
-_IO_FILE
-__counter
-._26
-._27
-bidirectional_iterator_tag
-._29
-it_value
-const_iterator
-_ZNSt11__ios_flags6_S_outE
-_M_set_leaked
-_Is_integer<unsigned int>
-__value
-timeval
-_IO_jump_t
-_ZN11sched_paramaSERKS_
-__normal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::allocator<char> > >
-_ZNSs4_Rep7_M_grabERKSaIcES2_
-_wide_vtable
-__codecvt_destr
-_STL_mutex_lock
-_ZNSt24__default_alloc_templateILb1ELi0EE17_S_freelist_indexEj
-_ZNSbIwSt11char_traitsIwESaIwEE7replaceEjjjw
-_ZN17__gconv_step_dataaSERKS_
-__w_stopval
-__int64_t
-__type_traits<double>
-~_Lock
-_ZNKSbIwSt11char_traitsIwESaIwEE5beginEv
-ptrdiff_t
-test
-_Integral
-cookie_seek_function_t
-__vmi_class_type_info
-_ZNSs7replaceEjjjc
-__int32_t
-register_t
-~_STL_auto_lock
-_ZNKSbIwSt11char_traitsIwESaIwEE16find_last_not_ofEPKwjj
-__arg
-_ZNSs7replaceEjjPKcj
-_ZNSbIwSt11char_traitsIwESaIwEE7replaceEjjRKS2_jj
-_ZNKSbIwSt11char_traitsIwESaIwEE12find_last_ofEPKwjj
-_ZN11_Is_integerImEaSERKS0_
-__default_alloc_template
-_S_hex
-__statep
-_ZNSt11char_traitsIwE2ltERKwS2_
-_M_p
-_ZNKSs4sizeEv
-EOF
-
-exit 0
diff --git a/src/tests/run-dwfl-addr-sect.sh b/src/tests/run-dwfl-addr-sect.sh
deleted file mode 100755
index 80da0081..00000000
--- a/src/tests/run-dwfl-addr-sect.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007-2009 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile43 testfile50
-
-testrun_compare ${abs_builddir}/dwfl-addr-sect -e testfile43 0x64 0x8 0x98 <<\EOF
-address 0x64 => module "" section 4 + 0
-address 0x8 => module "" section 1 + 0x8
-address 0x98 => module "" section 7 + 0
-EOF
-
-testrun_compare ${abs_builddir}/dwfl-addr-sect -e testfile50 0x1 <<\EOF
-address 0x1 => module "" section 1 + 0x1
-EOF
-
-exit 0
diff --git a/src/tests/run-dwfl-bug-offline-rel.sh b/src/tests/run-dwfl-bug-offline-rel.sh
deleted file mode 100755
index fa476c4b..00000000
--- a/src/tests/run-dwfl-bug-offline-rel.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile36 testfile36.debug
-
-testrun_compare ${abs_builddir}/dwflmodtest -e testfile36 <<\EOF
-module: 00000000..00002308 testfile36 (null)
-module: 00000000 DWARF 0 (no error)
-module: 00000000..00002308 testfile36 testfile36.debug
-EOF
-
-exit 0
diff --git a/src/tests/run-dwfl-report-elf-align.sh b/src/tests/run-dwfl-report-elf-align.sh
deleted file mode 100755
index 38497532..00000000
--- a/src/tests/run-dwfl-report-elf-align.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile-dwfl-report-elf-align-shlib.so
-
-# /proc/PID/maps when the process was running:
-# 7f3560c92000-7f3560c93000 r-xp 00000000 fd:02 25037063 testfile-dwfl-report-elf-align-shlib.so
-# 7f3560c93000-7f3560e92000 ---p 00001000 fd:02 25037063 testfile-dwfl-report-elf-align-shlib.so
-# 7f3560e92000-7f3560e93000 rw-p 00000000 fd:02 25037063 testfile-dwfl-report-elf-align-shlib.so
-# testfile-dwfl-report-elf-align-shlib.so:
-# Program Headers:
-# Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
-# LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x00065c 0x00065c R E 0x200000
-# LOAD 0x000660 0x0000000000200660 0x0000000000200660 0x0001f0 0x000200 RW 0x200000
-# Symbol table '.dynsym' contains 12 entries:
-# Num: Value Size Type Bind Vis Ndx Name
-# 8: 000000000000057c 11 FUNC GLOBAL DEFAULT 11 shlib
-# GDB output showing proper relocation:
-# #1 0x00007f3560c92585 in shlib () from ./testfile-dwfl-report-elf-align-shlib.so
-#
-# 0x7f3560c92000 is VMA address of first byte of testfile-dwfl-report-elf-align-shlib.so.
-# 0x7f3560c92585 = 0x7f3560c92000 + 0x585
-# where 0x585 is any address inside the shlib function: 0x57c .. 0x57c + 11 -1
-
-testrun ${abs_builddir}/dwfl-report-elf-align ./testfile-dwfl-report-elf-align-shlib.so \
- 0x7f3560c92000 0x7f3560c92585 shlib
-
-exit 0
diff --git a/src/tests/run-dwfllines.sh b/src/tests/run-dwfllines.sh
deleted file mode 100755
index b384de09..00000000
--- a/src/tests/run-dwfllines.sh
+++ /dev/null
@@ -1,88 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile2
-
-testrun_compare ${abs_builddir}/dwfllines -e testfile <<\EOF
-mod: CU: [b] m.c
-0 0x804842c /home/drepper/gnu/new-bu/build/ttt/m.c:5:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-1 0x8048432 /home/drepper/gnu/new-bu/build/ttt/m.c:6:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-2 0x804844d /home/drepper/gnu/new-bu/build/ttt/m.c:7:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-3 0x8048458 /home/drepper/gnu/new-bu/build/ttt/m.c:8:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-4 0x804845a /home/drepper/gnu/new-bu/build/ttt/m.c:8:0
- time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-mod: CU: [ca] b.c
-0 0x804845c /home/drepper/gnu/new-bu/build/ttt/b.c:4:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-1 0x804845f /home/drepper/gnu/new-bu/build/ttt/b.c:5:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-2 0x8048464 /home/drepper/gnu/new-bu/build/ttt/b.c:6:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-3 0x8048466 /home/drepper/gnu/new-bu/build/ttt/b.c:6:0
- time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-mod: CU: [15fc] f.c
-0 0x8048468 /home/drepper/gnu/new-bu/build/ttt/f.c:3:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-1 0x804846b /home/drepper/gnu/new-bu/build/ttt/f.c:4:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-2 0x8048470 /home/drepper/gnu/new-bu/build/ttt/f.c:5:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-3 0x8048472 /home/drepper/gnu/new-bu/build/ttt/f.c:5:0
- time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-EOF
-
-testrun_compare ${abs_builddir}/dwfllines -e testfile2 <<\EOF
-mod: CU: [b] b.c
-0 0x10000470 /shoggoth/drepper/b.c:4:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-1 0x1000047c /shoggoth/drepper/b.c:5:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-2 0x10000480 /shoggoth/drepper/b.c:6:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-3 0x10000490 /shoggoth/drepper/b.c:6:0
- time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-mod: CU: [97d] f.c
-0 0x10000490 /shoggoth/drepper/f.c:3:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-1 0x1000049c /shoggoth/drepper/f.c:4:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-2 0x100004a0 /shoggoth/drepper/f.c:5:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-3 0x100004b0 /shoggoth/drepper/f.c:5:0
- time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-mod: CU: [9e4] m.c
-0 0x100004b0 /shoggoth/drepper/m.c:5:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-1 0x100004cc /shoggoth/drepper/m.c:6:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-2 0x100004e8 /shoggoth/drepper/m.c:7:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-3 0x100004f4 /shoggoth/drepper/m.c:8:0
- time: 0, len: 0, idx: 0, b: 1, e: 0, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-4 0x10000514 /shoggoth/drepper/m.c:8:0
- time: 0, len: 0, idx: 0, b: 1, e: 1, pe: 0, eb: 0, block: 0, isa: 0, disc: 0
-EOF
-
-testrun_on_self_quiet ${abs_builddir}/dwfllines -e
-
-exit 0
diff --git a/src/tests/run-dwflsyms.sh b/src/tests/run-dwflsyms.sh
deleted file mode 100755
index 9726bcf1..00000000
--- a/src/tests/run-dwflsyms.sh
+++ /dev/null
@@ -1,826 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Tests dwfl_module_{addrsym,getsym,relocate_address}
-# See run-readelf-s.sh for how to generate test binaries.
-# In addition, *_pl files were created from their base file
-# with prelink -N, and *_plr with prelink -r 0x4200000000.
-
-testfiles testfilebaztab
-testfiles testfilebazdbg testfilebazdbg.debug
-testfiles testfilebazdbg_pl
-testfiles testfilebazdbg_plr
-testfiles testfilebazdyn
-testfiles testfilebazmdb
-testfiles testfilebazmin
-testfiles testfilebazmin_pl
-testfiles testfilebazmin_plr
-testfiles testfilebasmin
-testfiles testfilebaxmin
-
-tempfiles testfile.dynsym.in testfile.symtab.in testfile.minsym.in dwflsyms.out
-tempfiles testfile.symtab_pl.in testfile.minsym_pl.in
-
-cat > testfile.symtab.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x238
- 2: SECTION LOCAL (0) 0x254
- 3: SECTION LOCAL (0) 0x274
- 4: SECTION LOCAL (0) 0x298
- 5: SECTION LOCAL (0) 0x2d8
- 6: SECTION LOCAL (0) 0x428
- 7: SECTION LOCAL (0) 0x4f2
- 8: SECTION LOCAL (0) 0x510
- 9: SECTION LOCAL (0) 0x530
- 10: SECTION LOCAL (0) 0x638
- 11: SECTION LOCAL (0) 0x680
- 12: SECTION LOCAL (0) 0x6a0
- 13: SECTION LOCAL (0) 0x6e0
- 14: SECTION LOCAL (0) 0x8f4
- 15: SECTION LOCAL (0) 0x900
- 16: SECTION LOCAL (0) 0x904
- 17: SECTION LOCAL (0) 0x948
- 18: SECTION LOCAL (0) 0x200dd0
- 19: SECTION LOCAL (0) 0x200dd8
- 20: SECTION LOCAL (0) 0x200de0
- 21: SECTION LOCAL (0) 0x200de8
- 22: SECTION LOCAL (0) 0x200df0
- 23: SECTION LOCAL (0) 0x200fc0
- 24: SECTION LOCAL (0) 0x201000
- 25: SECTION LOCAL (0) 0x201030
- 26: SECTION LOCAL (0) 0x20103c
- 27: SECTION LOCAL (0) 0
- 28: SECTION LOCAL (0) 0
- 29: SECTION LOCAL (0) 0
- 30: SECTION LOCAL (0) 0
- 31: SECTION LOCAL (0) 0
- 32: SECTION LOCAL (0) 0
- 33: FILE LOCAL crtstuff.c (0) 0
- 34: OBJECT LOCAL __JCR_LIST__ (0) 0x200de0
- 35: FUNC LOCAL deregister_tm_clones (0) 0x710, rel: 0x710 (.text)
- 36: FUNC LOCAL register_tm_clones (0) 0x740, rel: 0x740 (.text)
- 37: FUNC LOCAL __do_global_dtors_aux (0) 0x780, rel: 0x780 (.text)
- 38: OBJECT LOCAL completed.6137 (1) 0x20103c
- 39: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x200dd8
- 40: FUNC LOCAL frame_dummy (0) 0x7c0, rel: 0x7c0 (.text)
- 41: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x200dd0
- 42: FILE LOCAL foo.c (0) 0
- 43: FILE LOCAL bar.c (0) 0
- 44: OBJECT LOCAL b1 (4) 0x201034
- 45: FUNC LOCAL foo (20) 0x814, rel: 0x814 (.text)
- 46: FILE LOCAL crtstuff.c (0) 0
- 47: OBJECT LOCAL __FRAME_END__ (0) 0xa58
- 48: OBJECT LOCAL __JCR_END__ (0) 0x200de0
- 49: FILE LOCAL (0) 0
- 50: NOTYPE LOCAL __init_array_end (0) 0x200dd8
- 51: OBJECT LOCAL _DYNAMIC (0) 0x200df0
- 52: NOTYPE LOCAL __init_array_start (0) 0x200dd0
- 53: OBJECT LOCAL _GLOBAL_OFFSET_TABLE_ (0) 0x201000
- 54: FUNC GLOBAL __libc_csu_fini (2) 0x8f0, rel: 0x8f0 (.text)
- 55: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 56: NOTYPE WEAK data_start (0) 0x201030
- 57: NOTYPE GLOBAL _edata (0) 0x20103c
- 58: FUNC GLOBAL bar (44) 0x828, rel: 0x828 (.text)
- 59: FUNC GLOBAL _fini (0) 0x8f4, rel: 0x8f4 (.fini)
- 60: FUNC GLOBAL __libc_start_main@@GLIBC_2.2.5 (0) 0
- 61: NOTYPE GLOBAL __data_start (0) 0x201030
- 62: NOTYPE WEAK __gmon_start__ (0) 0
- 63: OBJECT GLOBAL __dso_handle (0) 0x200de8
- 64: OBJECT GLOBAL _IO_stdin_used (4) 0x900
- 65: OBJECT GLOBAL b2 (4) 0x201038
- 66: FUNC GLOBAL __libc_csu_init (137) 0x860, rel: 0x860 (.text)
- 67: NOTYPE GLOBAL _end (0) 0x201040
- 68: FUNC GLOBAL _start (0) 0x6e0, rel: 0x6e0 (.text)
- 69: NOTYPE GLOBAL __bss_start (0) 0x20103c
- 70: FUNC GLOBAL main (35) 0x7f0, rel: 0x7f0 (.text)
- 71: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 72: OBJECT GLOBAL __TMC_END__ (0) 0x201040
- 73: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 74: FUNC WEAK __cxa_finalize@@GLIBC_2.2.5 (0) 0
- 75: FUNC GLOBAL _init (0) 0x680, rel: 0x680 (.init)
-EOF
-
-cat > testfile.symtab_pl.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x3000000238
- 2: SECTION LOCAL (0) 0x3000000254
- 3: SECTION LOCAL (0) 0x3000000274
- 4: SECTION LOCAL (0) 0x3000000298
- 5: SECTION LOCAL (0) 0x30000002d8
- 6: SECTION LOCAL (0) 0x3000000428
- 7: SECTION LOCAL (0) 0x30000004f2
- 8: SECTION LOCAL (0) 0x3000000510
- 9: SECTION LOCAL (0) 0x3000000530
- 10: SECTION LOCAL (0) 0x3000000638
- 11: SECTION LOCAL (0) 0x3000000680
- 12: SECTION LOCAL (0) 0x30000006a0
- 13: SECTION LOCAL (0) 0x30000006e0
- 14: SECTION LOCAL (0) 0x30000008f4
- 15: SECTION LOCAL (0) 0x3000000900
- 16: SECTION LOCAL (0) 0x3000000904
- 17: SECTION LOCAL (0) 0x3000000948
- 18: SECTION LOCAL (0) 0x3000200dd0
- 19: SECTION LOCAL (0) 0x3000200dd8
- 20: SECTION LOCAL (0) 0x3000200de0
- 21: SECTION LOCAL (0) 0x3000200de8
- 22: SECTION LOCAL (0) 0x3000200df0
- 23: SECTION LOCAL (0) 0x3000200fc0
- 24: SECTION LOCAL (0) 0x3000201000
- 25: SECTION LOCAL (0) 0x3000201030
- 26: SECTION LOCAL (0) 0x300020103c
- 27: SECTION LOCAL (0) 0
- 28: SECTION LOCAL (0) 0
- 29: SECTION LOCAL (0) 0
- 30: SECTION LOCAL (0) 0
- 31: SECTION LOCAL (0) 0
- 32: SECTION LOCAL (0) 0
- 33: FILE LOCAL crtstuff.c (0) 0
- 34: OBJECT LOCAL __JCR_LIST__ (0) 0x3000200de0
- 35: FUNC LOCAL deregister_tm_clones (0) 0x3000000710, rel: 0x710 (.text)
- 36: FUNC LOCAL register_tm_clones (0) 0x3000000740, rel: 0x740 (.text)
- 37: FUNC LOCAL __do_global_dtors_aux (0) 0x3000000780, rel: 0x780 (.text)
- 38: OBJECT LOCAL completed.6137 (1) 0x300020103c
- 39: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x3000200dd8
- 40: FUNC LOCAL frame_dummy (0) 0x30000007c0, rel: 0x7c0 (.text)
- 41: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x3000200dd0
- 42: FILE LOCAL foo.c (0) 0
- 43: FILE LOCAL bar.c (0) 0
- 44: OBJECT LOCAL b1 (4) 0x3000201034
- 45: FUNC LOCAL foo (20) 0x3000000814, rel: 0x814 (.text)
- 46: FILE LOCAL crtstuff.c (0) 0
- 47: OBJECT LOCAL __FRAME_END__ (0) 0x3000000a58
- 48: OBJECT LOCAL __JCR_END__ (0) 0x3000200de0
- 49: FILE LOCAL (0) 0
- 50: NOTYPE LOCAL __init_array_end (0) 0x3000200dd8
- 51: OBJECT LOCAL _DYNAMIC (0) 0x3000200df0
- 52: NOTYPE LOCAL __init_array_start (0) 0x3000200dd0
- 53: OBJECT LOCAL _GLOBAL_OFFSET_TABLE_ (0) 0x3000201000
- 54: FUNC GLOBAL __libc_csu_fini (2) 0x30000008f0, rel: 0x8f0 (.text)
- 55: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 56: NOTYPE WEAK data_start (0) 0x3000201030
- 57: NOTYPE GLOBAL _edata (0) 0x300020103c
- 58: FUNC GLOBAL bar (44) 0x3000000828, rel: 0x828 (.text)
- 59: FUNC GLOBAL _fini (0) 0x30000008f4, rel: 0x8f4 (.fini)
- 60: FUNC GLOBAL __libc_start_main@@GLIBC_2.2.5 (0) 0
- 61: NOTYPE GLOBAL __data_start (0) 0x3000201030
- 62: NOTYPE WEAK __gmon_start__ (0) 0
- 63: OBJECT GLOBAL __dso_handle (0) 0x3000200de8
- 64: OBJECT GLOBAL _IO_stdin_used (4) 0x3000000900
- 65: OBJECT GLOBAL b2 (4) 0x3000201038
- 66: FUNC GLOBAL __libc_csu_init (137) 0x3000000860, rel: 0x860 (.text)
- 67: NOTYPE GLOBAL _end (0) 0x3000201040
- 68: FUNC GLOBAL _start (0) 0x30000006e0, rel: 0x6e0 (.text)
- 69: NOTYPE GLOBAL __bss_start (0) 0x300020103c
- 70: FUNC GLOBAL main (35) 0x30000007f0, rel: 0x7f0 (.text)
- 71: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 72: OBJECT GLOBAL __TMC_END__ (0) 0x3000201040
- 73: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 74: FUNC WEAK __cxa_finalize@@GLIBC_2.2.5 (0) 0
- 75: FUNC GLOBAL _init (0) 0x3000000680, rel: 0x680 (.init)
-EOF
-
-cat > testfile.dynsym.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x238
- 2: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 3: FUNC GLOBAL __libc_start_main (0) 0
- 4: NOTYPE WEAK __gmon_start__ (0) 0
- 5: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 6: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 7: FUNC WEAK __cxa_finalize (0) 0
- 8: NOTYPE GLOBAL _edata (0) 0x20103c
- 9: NOTYPE GLOBAL _end (0) 0x201040
- 10: FUNC GLOBAL __libc_csu_init (137) 0x860, rel: 0x860 (.text)
- 11: NOTYPE GLOBAL __bss_start (0) 0x20103c
- 12: FUNC GLOBAL main (35) 0x7f0, rel: 0x7f0 (.text)
- 13: FUNC GLOBAL __libc_csu_fini (2) 0x8f0, rel: 0x8f0 (.text)
-EOF
-
-cat > testfile.minsym.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x238
- 2: FUNC LOCAL deregister_tm_clones (0) 0x710, rel: 0x710 (.text)
- 3: FUNC LOCAL register_tm_clones (0) 0x740, rel: 0x740 (.text)
- 4: FUNC LOCAL __do_global_dtors_aux (0) 0x780, rel: 0x780 (.text)
- 5: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x200dd8
- 6: FUNC LOCAL frame_dummy (0) 0x7c0, rel: 0x7c0 (.text)
- 7: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x200dd0
- 8: FUNC LOCAL foo (20) 0x814, rel: 0x814 (.text)
- 9: NOTYPE LOCAL __init_array_end (0) 0x200dd8
- 10: NOTYPE LOCAL __init_array_start (0) 0x200dd0
- 11: SECTION LOCAL (0) 0x238
- 12: SECTION LOCAL (0) 0x254
- 13: SECTION LOCAL (0) 0x274
- 14: SECTION LOCAL (0) 0x298
- 15: SECTION LOCAL (0) 0x2d8
- 16: SECTION LOCAL (0) 0x428
- 17: SECTION LOCAL (0) 0x4f2
- 18: SECTION LOCAL (0) 0x510
- 19: SECTION LOCAL (0) 0x530
- 20: SECTION LOCAL (0) 0x638
- 21: SECTION LOCAL (0) 0x680
- 22: SECTION LOCAL (0) 0x6a0
- 23: SECTION LOCAL (0) 0x6e0
- 24: SECTION LOCAL (0) 0x8f4
- 25: SECTION LOCAL (0) 0x900
- 26: SECTION LOCAL (0) 0x904
- 27: SECTION LOCAL (0) 0x948
- 28: SECTION LOCAL (0) 0x200dd0
- 29: SECTION LOCAL (0) 0x200dd8
- 30: SECTION LOCAL (0) 0x200de0
- 31: SECTION LOCAL (0) 0x200de8
- 32: SECTION LOCAL (0) 0x200df0
- 33: SECTION LOCAL (0) 0x200fc0
- 34: SECTION LOCAL (0) 0x201000
- 35: SECTION LOCAL (0) 0x201030
- 36: SECTION LOCAL (0) 0x20103c
- 37: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 38: FUNC GLOBAL __libc_start_main (0) 0
- 39: NOTYPE WEAK __gmon_start__ (0) 0
- 40: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 41: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 42: FUNC WEAK __cxa_finalize (0) 0
- 43: NOTYPE GLOBAL _edata (0) 0x20103c
- 44: NOTYPE GLOBAL _end (0) 0x201040
- 45: FUNC GLOBAL __libc_csu_init (137) 0x860, rel: 0x860 (.text)
- 46: NOTYPE GLOBAL __bss_start (0) 0x20103c
- 47: FUNC GLOBAL main (35) 0x7f0, rel: 0x7f0 (.text)
- 48: FUNC GLOBAL __libc_csu_fini (2) 0x8f0, rel: 0x8f0 (.text)
- 49: FUNC GLOBAL bar (44) 0x828, rel: 0x828 (.text)
- 50: FUNC GLOBAL _fini (0) 0x8f4, rel: 0x8f4 (.fini)
- 51: FUNC GLOBAL _start (0) 0x6e0, rel: 0x6e0 (.text)
- 52: FUNC GLOBAL _init (0) 0x680, rel: 0x680 (.init)
-EOF
-
-cat > testfile.minsym_pl.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x3000000238
- 2: FUNC LOCAL deregister_tm_clones (0) 0x3000000710, rel: 0x710 (.text)
- 3: FUNC LOCAL register_tm_clones (0) 0x3000000740, rel: 0x740 (.text)
- 4: FUNC LOCAL __do_global_dtors_aux (0) 0x3000000780, rel: 0x780 (.text)
- 5: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x3000200dd8
- 6: FUNC LOCAL frame_dummy (0) 0x30000007c0, rel: 0x7c0 (.text)
- 7: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x3000200dd0
- 8: FUNC LOCAL foo (20) 0x3000000814, rel: 0x814 (.text)
- 9: NOTYPE LOCAL __init_array_end (0) 0x3000200dd8
- 10: NOTYPE LOCAL __init_array_start (0) 0x3000200dd0
- 11: SECTION LOCAL (0) 0x3000000238
- 12: SECTION LOCAL (0) 0x3000000254
- 13: SECTION LOCAL (0) 0x3000000274
- 14: SECTION LOCAL (0) 0x3000000298
- 15: SECTION LOCAL (0) 0x30000002d8
- 16: SECTION LOCAL (0) 0x3000000428
- 17: SECTION LOCAL (0) 0x30000004f2
- 18: SECTION LOCAL (0) 0x3000000510
- 19: SECTION LOCAL (0) 0x3000000530
- 20: SECTION LOCAL (0) 0x3000000638
- 21: SECTION LOCAL (0) 0x3000000680
- 22: SECTION LOCAL (0) 0x30000006a0
- 23: SECTION LOCAL (0) 0x30000006e0
- 24: SECTION LOCAL (0) 0x30000008f4
- 25: SECTION LOCAL (0) 0x3000000900
- 26: SECTION LOCAL (0) 0x3000000904
- 27: SECTION LOCAL (0) 0x3000000948
- 28: SECTION LOCAL (0) 0x3000200dd0
- 29: SECTION LOCAL (0) 0x3000200dd8
- 30: SECTION LOCAL (0) 0x3000200de0
- 31: SECTION LOCAL (0) 0x3000200de8
- 32: SECTION LOCAL (0) 0x3000200df0
- 33: SECTION LOCAL (0) 0x3000200fc0
- 34: SECTION LOCAL (0) 0x3000201000
- 35: SECTION LOCAL (0) 0x3000201030
- 36: SECTION LOCAL (0) 0x300020103c
- 37: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 38: FUNC GLOBAL __libc_start_main (0) 0
- 39: NOTYPE WEAK __gmon_start__ (0) 0
- 40: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 41: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 42: FUNC WEAK __cxa_finalize (0) 0
- 43: NOTYPE GLOBAL _edata (0) 0x300020103c
- 44: NOTYPE GLOBAL _end (0) 0x3000201040
- 45: FUNC GLOBAL __libc_csu_init (137) 0x3000000860, rel: 0x860 (.text)
- 46: NOTYPE GLOBAL __bss_start (0) 0x300020103c
- 47: FUNC GLOBAL main (35) 0x30000007f0, rel: 0x7f0 (.text)
- 48: FUNC GLOBAL __libc_csu_fini (2) 0x30000008f0, rel: 0x8f0 (.text)
- 49: FUNC GLOBAL bar (44) 0x3000000828, rel: 0x828 (.text)
- 50: FUNC GLOBAL _fini (0) 0x30000008f4, rel: 0x8f4 (.fini)
- 51: FUNC GLOBAL _start (0) 0x30000006e0, rel: 0x6e0 (.text)
- 52: FUNC GLOBAL _init (0) 0x3000000680, rel: 0x680 (.init)
-EOF
-
-cat testfile.symtab.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebaztab
-
-cat testfile.symtab.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazdbg
-
-cat testfile.symtab_pl.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazdbg_pl
-
-sed s/0x3000/0x4200/g testfile.symtab_pl.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazdbg_plr
-
-cat testfile.dynsym.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazdyn
-
-cat testfile.symtab.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazmdb
-
-cat testfile.minsym.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazmin
-
-cat testfile.minsym_pl.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazmin_pl
-
-sed s/0x3000/0x4200/g testfile.minsym_pl.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazmin_plr
-
-testrun_compare ${abs_builddir}/dwflsyms -e testfilebasmin <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: FUNC LOCAL foo (18) 0x400168, rel: 0x400168 (.text)
- 2: SECTION LOCAL (0) 0x400120
- 3: SECTION LOCAL (0) 0x400144
- 4: SECTION LOCAL (0) 0x4001c0
- 5: SECTION LOCAL (0) 0x600258
- 6: FUNC GLOBAL _start (21) 0x4001a8, rel: 0x4001a8 (.text)
- 7: FUNC GLOBAL main (33) 0x400144, rel: 0x400144 (.text)
- 8: FUNC GLOBAL bar (44) 0x40017a, rel: 0x40017a (.text)
-EOF
-
-testrun_compare ${abs_builddir}/dwflsyms -e testfilebaxmin <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: FUNC LOCAL deregister_tm_clones (0) 0x400430, rel: 0x400430 (.text)
- 2: FUNC LOCAL register_tm_clones (0) 0x400460, rel: 0x400460 (.text)
- 3: FUNC LOCAL __do_global_dtors_aux (0) 0x4004a0, rel: 0x4004a0 (.text)
- 4: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x600e18
- 5: FUNC LOCAL frame_dummy (0) 0x4004c0, rel: 0x4004c0 (.text)
- 6: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x600e10
- 7: FUNC LOCAL foo (20) 0x4004f0, rel: 0x4004f0 (.text)
- 8: NOTYPE LOCAL __init_array_end (0) 0x600e18
- 9: NOTYPE LOCAL __init_array_start (0) 0x600e10
- 10: SECTION LOCAL (0) 0x400238
- 11: SECTION LOCAL (0) 0x400254
- 12: SECTION LOCAL (0) 0x400274
- 13: SECTION LOCAL (0) 0x400298
- 14: SECTION LOCAL (0) 0x4002b8
- 15: SECTION LOCAL (0) 0x400300
- 16: SECTION LOCAL (0) 0x400338
- 17: SECTION LOCAL (0) 0x400340
- 18: SECTION LOCAL (0) 0x400360
- 19: SECTION LOCAL (0) 0x400378
- 20: SECTION LOCAL (0) 0x4003a8
- 21: SECTION LOCAL (0) 0x4003d0
- 22: SECTION LOCAL (0) 0x400400
- 23: SECTION LOCAL (0) 0x4005c4
- 24: SECTION LOCAL (0) 0x4005d0
- 25: SECTION LOCAL (0) 0x4005e0
- 26: SECTION LOCAL (0) 0x400628
- 27: SECTION LOCAL (0) 0x600e10
- 28: SECTION LOCAL (0) 0x600e18
- 29: SECTION LOCAL (0) 0x600e20
- 30: SECTION LOCAL (0) 0x600e28
- 31: SECTION LOCAL (0) 0x600ff8
- 32: SECTION LOCAL (0) 0x601000
- 33: SECTION LOCAL (0) 0x601028
- 34: SECTION LOCAL (0) 0x601034
- 35: FUNC GLOBAL __libc_start_main (0) 0
- 36: NOTYPE WEAK __gmon_start__ (0) 0
- 37: FUNC GLOBAL __libc_csu_fini (2) 0x4005c0, rel: 0x4005c0 (.text)
- 38: FUNC GLOBAL bar (40) 0x400504, rel: 0x400504 (.text)
- 39: FUNC GLOBAL _fini (0) 0x4005c4, rel: 0x4005c4 (.fini)
- 40: FUNC GLOBAL __libc_csu_init (101) 0x400550, rel: 0x400550 (.text)
- 41: FUNC GLOBAL _start (0) 0x400400, rel: 0x400400 (.text)
- 42: FUNC GLOBAL main (35) 0x40052c, rel: 0x40052c (.text)
- 43: FUNC GLOBAL _init (0) 0x4003a8, rel: 0x4003a8 (.init)
-EOF
-
-testfiles testfile66
-testrun_compare ${abs_builddir}/dwflsyms -e testfile66 <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x190
- 2: SECTION LOCAL (0) 0x1a4
- 3: SECTION LOCAL (0) 0x1c8
- 4: SECTION LOCAL (0) 0x1f8
- 5: SECTION LOCAL (0) 0x288
- 6: SECTION LOCAL (0) 0x2a8
- 7: SECTION LOCAL (0) 0x2d8
- 8: SECTION LOCAL (0) 0x102e0
- 9: SECTION LOCAL (0) 0x103d0
- 10: SECTION LOCAL (0) 0x103e8
- 11: SECTION LOCAL (0) 0x103e8
- 12: OBJECT LOCAL _DYNAMIC (0) 0x102e0
- 13: FUNC GLOBAL _start (4) 0x103d0, rel: 0x103d0 (.opd) [0x2d8, rel: 0 (.text)]
- 14: NOTYPE GLOBAL __bss_start (0) 0x103f0
- 15: NOTYPE GLOBAL _edata (0) 0x103f0
- 16: NOTYPE GLOBAL _end (0) 0x103f0
-EOF
-
-testfiles testfile66.core
-testrun_compare ${abs_builddir}/dwflsyms -e testfile66 --core=testfile66.core <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0xfffb1af0410
- 2: NOTYPE GLOBAL __kernel_datapage_offset (0) 0xfffb1af05dc
- 3: OBJECT GLOBAL LINUX_2.6.15 (0) 0
- 4: NOTYPE GLOBAL __kernel_clock_getres (64) 0xfffb1af052c
- 5: NOTYPE GLOBAL __kernel_get_tbfreq (24) 0xfffb1af0620
- 6: NOTYPE GLOBAL __kernel_gettimeofday (84) 0xfffb1af0440
- 7: NOTYPE GLOBAL __kernel_sync_dicache (20) 0xfffb1af06c4
- 8: NOTYPE GLOBAL __kernel_sync_dicache_p5 (20) 0xfffb1af06c4
- 9: NOTYPE GLOBAL __kernel_sigtramp_rt64 (12) 0xfffb1af0418
- 10: NOTYPE GLOBAL __kernel_clock_gettime (152) 0xfffb1af0494
- 11: NOTYPE GLOBAL __kernel_get_syscall_map (44) 0xfffb1af05f4
-ld64.so.1: Callback returned failure
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x461b0190
- 2: SECTION LOCAL (0) 0x461b01a4
- 3: SECTION LOCAL (0) 0x461b01c8
- 4: SECTION LOCAL (0) 0x461b01f8
- 5: SECTION LOCAL (0) 0x461b0288
- 6: SECTION LOCAL (0) 0x461b02a8
- 7: SECTION LOCAL (0) 0x461b02d8
- 8: SECTION LOCAL (0) 0x461c02e0
- 9: SECTION LOCAL (0) 0x461c03d0
- 10: SECTION LOCAL (0) 0x461c03e8
- 11: SECTION LOCAL (0) 0x461c03e8
- 12: OBJECT LOCAL _DYNAMIC (0) 0x102e0
- 13: FUNC GLOBAL _start (4) 0x461c03d0, rel: 0x103d0 (.opd) [0x461b02d8, rel: 0 (.text)]
- 14: NOTYPE GLOBAL __bss_start (0) 0x103f0
- 15: NOTYPE GLOBAL _edata (0) 0x103f0
- 16: NOTYPE GLOBAL _end (0) 0x103f0
-EOF
-
-# Test the already present dot-prefixed names do not get duplicated.
-testfiles hello_ppc64.ko
-testrun_compare ${abs_builddir}/dwflsyms -e hello_ppc64.ko <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0
- 2: SECTION LOCAL (0) 0x94
- 3: SECTION LOCAL (0) 0xba
- 4: SECTION LOCAL (0) 0xd0
- 5: SECTION LOCAL (0) 0x13a
- 6: SECTION LOCAL (0) 0x13a
- 7: SECTION LOCAL (0) 0x150
- 8: SECTION LOCAL (0) 0x170
- 9: SECTION LOCAL (0) 0x188
- 10: SECTION LOCAL (0) 0x410
- 11: SECTION LOCAL (0) 0x434
- 12: SECTION LOCAL (0) 0x438
- 13: SECTION LOCAL (0) 0x438
- 14: SECTION LOCAL (0) 0
- 15: SECTION LOCAL (0) 0
- 16: SECTION LOCAL (0) 0
- 17: SECTION LOCAL (0) 0
- 18: SECTION LOCAL (0) 0
- 19: SECTION LOCAL (0) 0
- 20: SECTION LOCAL (0) 0
- 21: SECTION LOCAL (0) 0
- 22: SECTION LOCAL (0) 0
- 23: SECTION LOCAL (0) 0
- 24: FILE LOCAL init.c (0) 0
- 25: FILE LOCAL exit.c (0) 0
- 26: FILE LOCAL hello.mod.c (0) 0
- 27: OBJECT LOCAL __mod_srcversion23 (35) 0xd0
- 28: OBJECT LOCAL __module_depends (9) 0xf8
- 29: OBJECT LOCAL __mod_vermagic5 (50) 0x108
- 30: OBJECT GLOBAL __this_module (648) 0x188
- 31: FUNC GLOBAL .cleanup_module (72) 0x4c, rel: 0x4c (.text)
- 32: FUNC GLOBAL cleanup_module (24) 0x160, rel: 0x10 (.opd)
- 33: NOTYPE GLOBAL .printk (0) 0
- 34: FUNC GLOBAL init_module (24) 0x150, rel: 0 (.opd)
- 35: NOTYPE GLOBAL ._mcount (0) 0
- 36: FUNC GLOBAL .init_module (76) 0, rel: 0 (.text)
- 37: NOTYPE GLOBAL _mcount (0) 0
-EOF
-
-# Same test files as above, but now generated on ppc64.
-# ppc64 uses function descriptors to make things more "interesting".
-
-testfiles testfilebaztabppc64
-testfiles testfilebazdbgppc64 testfilebazdbgppc64.debug
-testfiles testfilebazdbgppc64_pl
-testfiles testfilebazdbgppc64_plr
-testfiles testfilebazdynppc64
-testfiles testfilebazmdbppc64
-testfiles testfilebazminppc64
-testfiles testfilebazminppc64_pl
-testfiles testfilebazminppc64_plr
-
-cat > testfile.symtab.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x238
- 2: SECTION LOCAL (0) 0x24c
- 3: SECTION LOCAL (0) 0x26c
- 4: SECTION LOCAL (0) 0x290
- 5: SECTION LOCAL (0) 0x2c0
- 6: SECTION LOCAL (0) 0x3e0
- 7: SECTION LOCAL (0) 0x488
- 8: SECTION LOCAL (0) 0x4a0
- 9: SECTION LOCAL (0) 0x4c0
- 10: SECTION LOCAL (0) 0x820
- 11: SECTION LOCAL (0) 0x850
- 12: SECTION LOCAL (0) 0x8a0
- 13: SECTION LOCAL (0) 0xd30
- 14: SECTION LOCAL (0) 0xd4c
- 15: SECTION LOCAL (0) 0xd50
- 16: SECTION LOCAL (0) 0xd70
- 17: SECTION LOCAL (0) 0x1fde0
- 18: SECTION LOCAL (0) 0x1fde8
- 19: SECTION LOCAL (0) 0x1fdf0
- 20: SECTION LOCAL (0) 0x1fdf8
- 21: SECTION LOCAL (0) 0x1fe20
- 22: SECTION LOCAL (0) 0x20000
- 23: SECTION LOCAL (0) 0x20010
- 24: SECTION LOCAL (0) 0x200d8
- 25: SECTION LOCAL (0) 0x20110
- 26: SECTION LOCAL (0) 0x20158
- 27: SECTION LOCAL (0) 0
- 28: SECTION LOCAL (0) 0
- 29: SECTION LOCAL (0) 0
- 30: SECTION LOCAL (0) 0
- 31: SECTION LOCAL (0) 0
- 32: SECTION LOCAL (0) 0
- 33: SECTION LOCAL (0) 0
- 34: FILE LOCAL crtstuff.c (0) 0
- 35: OBJECT LOCAL __JCR_LIST__ (0) 0x1fdf0
- 36: FUNC LOCAL deregister_tm_clones (0) 0x20040, rel: 0x20040 (.opd) [0x910, rel: 0x70 (.text)]
- 37: FUNC LOCAL register_tm_clones (0) 0x20050, rel: 0x20050 (.opd) [0x980, rel: 0xe0 (.text)]
- 38: FUNC LOCAL __do_global_dtors_aux (0) 0x20060, rel: 0x20060 (.opd) [0x9f0, rel: 0x150 (.text)]
- 39: OBJECT LOCAL completed.7711 (1) 0x20158
- 40: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x1fde8
- 41: FUNC LOCAL frame_dummy (0) 0x20070, rel: 0x20070 (.opd) [0xa50, rel: 0x1b0 (.text)]
- 42: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x1fde0
- 43: FILE LOCAL foo.c (0) 0
- 44: FILE LOCAL bar.c (0) 0
- 45: OBJECT LOCAL b1 (4) 0x20004
- 46: FUNC LOCAL foo (76) 0x20090, rel: 0x20090 (.opd) [0xb34, rel: 0x294 (.text)]
- 47: FILE LOCAL crtstuff.c (0) 0
- 48: OBJECT LOCAL __FRAME_END__ (0) 0xe18
- 49: OBJECT LOCAL __JCR_END__ (0) 0x1fdf0
- 50: FILE LOCAL (0) 0
- 51: NOTYPE LOCAL __glink_PLTresolve (0) 0xce8
- 52: NOTYPE LOCAL 00000011.plt_call.__libc_start_main@@GLIBC_2.3 (0) 0x8a0
- 53: NOTYPE LOCAL 00000011.plt_call.__cxa_finalize@@GLIBC_2.3 (0) 0x8b4
- 54: NOTYPE LOCAL __init_array_end (0) 0x1fde8
- 55: OBJECT LOCAL _DYNAMIC (0) 0x1fe20
- 56: NOTYPE LOCAL __init_array_start (0) 0x1fde0
- 57: FUNC GLOBAL __libc_csu_fini (16) 0x200c0, rel: 0x200c0 (.opd) [0xcd0, rel: 0x430 (.text)]
- 58: FUNC GLOBAL __libc_start_main@@GLIBC_2.3 (0) 0
- 59: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 60: NOTYPE WEAK data_start (0) 0x20000
- 61: NOTYPE GLOBAL _edata (0) 0x20110
- 62: FUNC GLOBAL bar (116) 0x200a0, rel: 0x200a0 (.opd) [0xb80, rel: 0x2e0 (.text)]
- 63: FUNC GLOBAL _fini (0) 0x20030, rel: 0x20030 (.opd) [0xd30, rel: 0 (.fini)]
- 64: NOTYPE GLOBAL __data_start (0) 0x20000
- 65: NOTYPE WEAK __gmon_start__ (0) 0
- 66: OBJECT GLOBAL __dso_handle (0) 0x1fe18
- 67: OBJECT GLOBAL _IO_stdin_used (4) 0xd4c
- 68: OBJECT GLOBAL b2 (4) 0x20008
- 69: FUNC WEAK __cxa_finalize@@GLIBC_2.3 (0) 0
- 70: FUNC GLOBAL __libc_csu_init (204) 0x200b0, rel: 0x200b0 (.opd) [0xc00, rel: 0x360 (.text)]
- 71: NOTYPE GLOBAL _end (0) 0x20160
- 72: FUNC GLOBAL _start (60) 0x20010, rel: 0x20010 (.opd) [0x8c8, rel: 0x28 (.text)]
- 73: NOTYPE GLOBAL __bss_start (0) 0x20110
- 74: FUNC GLOBAL main (128) 0x20080, rel: 0x20080 (.opd) [0xab4, rel: 0x214 (.text)]
- 75: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 76: OBJECT GLOBAL __TMC_END__ (0) 0x20010
- 77: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 78: FUNC GLOBAL _init (0) 0x20020, rel: 0x20020 (.opd) [0x850, rel: 0 (.init)]
-EOF
-
-cat > testfile.symtab_pl.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x8001000238
- 2: SECTION LOCAL (0) 0x800100024c
- 3: SECTION LOCAL (0) 0x800100026c
- 4: SECTION LOCAL (0) 0x8001000290
- 5: SECTION LOCAL (0) 0x80010002c0
- 6: SECTION LOCAL (0) 0x80010003e0
- 7: SECTION LOCAL (0) 0x8001000488
- 8: SECTION LOCAL (0) 0x80010004a0
- 9: SECTION LOCAL (0) 0x80010004c0
- 10: SECTION LOCAL (0) 0x8001000820
- 11: SECTION LOCAL (0) 0x8001000850
- 12: SECTION LOCAL (0) 0x80010008a0
- 13: SECTION LOCAL (0) 0x8001000d30
- 14: SECTION LOCAL (0) 0x8001000d4c
- 15: SECTION LOCAL (0) 0x8001000d50
- 16: SECTION LOCAL (0) 0x8001000d70
- 17: SECTION LOCAL (0) 0x800101fde0
- 18: SECTION LOCAL (0) 0x800101fde8
- 19: SECTION LOCAL (0) 0x800101fdf0
- 20: SECTION LOCAL (0) 0x800101fdf8
- 21: SECTION LOCAL (0) 0x800101fe20
- 22: SECTION LOCAL (0) 0x8001020000
- 23: SECTION LOCAL (0) 0x8001020010
- 24: SECTION LOCAL (0) 0x80010200d8
- 25: SECTION LOCAL (0) 0x8001020110
- 26: SECTION LOCAL (0) 0x8001020158
- 27: SECTION LOCAL (0) 0
- 28: SECTION LOCAL (0) 0
- 29: SECTION LOCAL (0) 0
- 30: SECTION LOCAL (0) 0
- 31: SECTION LOCAL (0) 0
- 32: SECTION LOCAL (0) 0
- 33: SECTION LOCAL (0) 0
- 34: FILE LOCAL crtstuff.c (0) 0
- 35: OBJECT LOCAL __JCR_LIST__ (0) 0x800101fdf0
- 36: FUNC LOCAL deregister_tm_clones (0) 0x8001020040, rel: 0x20040 (.opd) [0x8001000910, rel: 0x70 (.text)]
- 37: FUNC LOCAL register_tm_clones (0) 0x8001020050, rel: 0x20050 (.opd) [0x8001000980, rel: 0xe0 (.text)]
- 38: FUNC LOCAL __do_global_dtors_aux (0) 0x8001020060, rel: 0x20060 (.opd) [0x80010009f0, rel: 0x150 (.text)]
- 39: OBJECT LOCAL completed.7711 (1) 0x8001020158
- 40: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x800101fde8
- 41: FUNC LOCAL frame_dummy (0) 0x8001020070, rel: 0x20070 (.opd) [0x8001000a50, rel: 0x1b0 (.text)]
- 42: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x800101fde0
- 43: FILE LOCAL foo.c (0) 0
- 44: FILE LOCAL bar.c (0) 0
- 45: OBJECT LOCAL b1 (4) 0x8001020004
- 46: FUNC LOCAL foo (76) 0x8001020090, rel: 0x20090 (.opd) [0x8001000b34, rel: 0x294 (.text)]
- 47: FILE LOCAL crtstuff.c (0) 0
- 48: OBJECT LOCAL __FRAME_END__ (0) 0x8001000e18
- 49: OBJECT LOCAL __JCR_END__ (0) 0x800101fdf0
- 50: FILE LOCAL (0) 0
- 51: NOTYPE LOCAL __glink_PLTresolve (0) 0x8001000ce8
- 52: NOTYPE LOCAL 00000011.plt_call.__libc_start_main@@GLIBC_2.3 (0) 0x80010008a0
- 53: NOTYPE LOCAL 00000011.plt_call.__cxa_finalize@@GLIBC_2.3 (0) 0x80010008b4
- 54: NOTYPE LOCAL __init_array_end (0) 0x800101fde8
- 55: OBJECT LOCAL _DYNAMIC (0) 0x800101fe20
- 56: NOTYPE LOCAL __init_array_start (0) 0x800101fde0
- 57: FUNC GLOBAL __libc_csu_fini (16) 0x80010200c0, rel: 0x200c0 (.opd) [0x8001000cd0, rel: 0x430 (.text)]
- 58: FUNC GLOBAL __libc_start_main@@GLIBC_2.3 (0) 0
- 59: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 60: NOTYPE WEAK data_start (0) 0x8001020000
- 61: NOTYPE GLOBAL _edata (0) 0x8001020110
- 62: FUNC GLOBAL bar (116) 0x80010200a0, rel: 0x200a0 (.opd) [0x8001000b80, rel: 0x2e0 (.text)]
- 63: FUNC GLOBAL _fini (0) 0x8001020030, rel: 0x20030 (.opd) [0x8001000d30, rel: 0 (.fini)]
- 64: NOTYPE GLOBAL __data_start (0) 0x8001020000
- 65: NOTYPE WEAK __gmon_start__ (0) 0
- 66: OBJECT GLOBAL __dso_handle (0) 0x800101fe18
- 67: OBJECT GLOBAL _IO_stdin_used (4) 0x8001000d4c
- 68: OBJECT GLOBAL b2 (4) 0x8001020008
- 69: FUNC WEAK __cxa_finalize@@GLIBC_2.3 (0) 0
- 70: FUNC GLOBAL __libc_csu_init (204) 0x80010200b0, rel: 0x200b0 (.opd) [0x8001000c00, rel: 0x360 (.text)]
- 71: NOTYPE GLOBAL _end (0) 0x8001020160
- 72: FUNC GLOBAL _start (60) 0x8001020010, rel: 0x20010 (.opd) [0x80010008c8, rel: 0x28 (.text)]
- 73: NOTYPE GLOBAL __bss_start (0) 0x8001020110
- 74: FUNC GLOBAL main (128) 0x8001020080, rel: 0x20080 (.opd) [0x8001000ab4, rel: 0x214 (.text)]
- 75: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 76: OBJECT GLOBAL __TMC_END__ (0) 0x8001020010
- 77: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 78: FUNC GLOBAL _init (0) 0x8001020020, rel: 0x20020 (.opd) [0x8001000850, rel: 0 (.init)]
-EOF
-
-cat > testfile.dynsym.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x238
- 2: SECTION LOCAL (0) 0x1fdf0
- 3: FUNC GLOBAL __libc_start_main (0) 0
- 4: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 5: NOTYPE WEAK __gmon_start__ (0) 0
- 6: FUNC WEAK __cxa_finalize (0) 0
- 7: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 8: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 9: NOTYPE GLOBAL _edata (0) 0x20110
- 10: NOTYPE GLOBAL _end (0) 0x20160
- 11: NOTYPE GLOBAL __bss_start (0) 0x20110
-EOF
-
-cat > testfile.minsym.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x238
- 2: SECTION LOCAL (0) 0x1fdf0
- 3: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x1fde8
- 4: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x1fde0
- 5: NOTYPE LOCAL __glink_PLTresolve (0) 0xce8
- 6: NOTYPE LOCAL 00000011.plt_call.__libc_start_main@@GLIBC_2.3 (0) 0x8a0
- 7: NOTYPE LOCAL 00000011.plt_call.__cxa_finalize@@GLIBC_2.3 (0) 0x8b4
- 8: NOTYPE LOCAL __init_array_end (0) 0x1fde8
- 9: NOTYPE LOCAL __init_array_start (0) 0x1fde0
- 10: SECTION LOCAL (0) 0x238
- 11: SECTION LOCAL (0) 0x24c
- 12: SECTION LOCAL (0) 0x26c
- 13: SECTION LOCAL (0) 0x290
- 14: SECTION LOCAL (0) 0x2c0
- 15: SECTION LOCAL (0) 0x3e0
- 16: SECTION LOCAL (0) 0x488
- 17: SECTION LOCAL (0) 0x4a0
- 18: SECTION LOCAL (0) 0x4c0
- 19: SECTION LOCAL (0) 0x820
- 20: SECTION LOCAL (0) 0x850
- 21: SECTION LOCAL (0) 0x8a0
- 22: SECTION LOCAL (0) 0xd30
- 23: SECTION LOCAL (0) 0xd4c
- 24: SECTION LOCAL (0) 0xd50
- 25: SECTION LOCAL (0) 0xd70
- 26: SECTION LOCAL (0) 0x1fde0
- 27: SECTION LOCAL (0) 0x1fde8
- 28: SECTION LOCAL (0) 0x1fdf0
- 29: SECTION LOCAL (0) 0x1fdf8
- 30: SECTION LOCAL (0) 0x1fe20
- 31: SECTION LOCAL (0) 0x20000
- 32: SECTION LOCAL (0) 0x20010
- 33: SECTION LOCAL (0) 0x200d8
- 34: SECTION LOCAL (0) 0x20110
- 35: SECTION LOCAL (0) 0x20158
- 36: FUNC GLOBAL __libc_start_main (0) 0
- 37: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 38: NOTYPE WEAK __gmon_start__ (0) 0
- 39: FUNC WEAK __cxa_finalize (0) 0
- 40: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 41: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 42: NOTYPE GLOBAL _edata (0) 0x20110
- 43: NOTYPE GLOBAL _end (0) 0x20160
- 44: NOTYPE GLOBAL __bss_start (0) 0x20110
-EOF
-
-cat > testfile.minsym_pl.in <<\EOF
- 0: NOTYPE LOCAL (0) 0
- 1: SECTION LOCAL (0) 0x8001000238
- 2: SECTION LOCAL (0) 0x800101fdf0
- 3: OBJECT LOCAL __do_global_dtors_aux_fini_array_entry (0) 0x800101fde8
- 4: OBJECT LOCAL __frame_dummy_init_array_entry (0) 0x800101fde0
- 5: NOTYPE LOCAL __glink_PLTresolve (0) 0x8001000ce8
- 6: NOTYPE LOCAL 00000011.plt_call.__libc_start_main@@GLIBC_2.3 (0) 0x80010008a0
- 7: NOTYPE LOCAL 00000011.plt_call.__cxa_finalize@@GLIBC_2.3 (0) 0x80010008b4
- 8: NOTYPE LOCAL __init_array_end (0) 0x800101fde8
- 9: NOTYPE LOCAL __init_array_start (0) 0x800101fde0
- 10: SECTION LOCAL (0) 0x8001000238
- 11: SECTION LOCAL (0) 0x800100024c
- 12: SECTION LOCAL (0) 0x800100026c
- 13: SECTION LOCAL (0) 0x8001000290
- 14: SECTION LOCAL (0) 0x80010002c0
- 15: SECTION LOCAL (0) 0x80010003e0
- 16: SECTION LOCAL (0) 0x8001000488
- 17: SECTION LOCAL (0) 0x80010004a0
- 18: SECTION LOCAL (0) 0x80010004c0
- 19: SECTION LOCAL (0) 0x8001000820
- 20: SECTION LOCAL (0) 0x8001000850
- 21: SECTION LOCAL (0) 0x80010008a0
- 22: SECTION LOCAL (0) 0x8001000d30
- 23: SECTION LOCAL (0) 0x8001000d4c
- 24: SECTION LOCAL (0) 0x8001000d50
- 25: SECTION LOCAL (0) 0x8001000d70
- 26: SECTION LOCAL (0) 0x800101fde0
- 27: SECTION LOCAL (0) 0x800101fde8
- 28: SECTION LOCAL (0) 0x800101fdf0
- 29: SECTION LOCAL (0) 0x800101fdf8
- 30: SECTION LOCAL (0) 0x800101fe20
- 31: SECTION LOCAL (0) 0x8001020000
- 32: SECTION LOCAL (0) 0x8001020010
- 33: SECTION LOCAL (0) 0x80010200d8
- 34: SECTION LOCAL (0) 0x8001020110
- 35: SECTION LOCAL (0) 0x8001020158
- 36: FUNC GLOBAL __libc_start_main (0) 0
- 37: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0
- 38: NOTYPE WEAK __gmon_start__ (0) 0
- 39: FUNC WEAK __cxa_finalize (0) 0
- 40: NOTYPE WEAK _Jv_RegisterClasses (0) 0
- 41: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0
- 42: NOTYPE GLOBAL _edata (0) 0x8001020110
- 43: NOTYPE GLOBAL _end (0) 0x8001020160
- 44: NOTYPE GLOBAL __bss_start (0) 0x8001020110
-EOF
-
-cat testfile.symtab.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebaztabppc64
-
-cat testfile.symtab.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazdbgppc64
-
-cat testfile.symtab_pl.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazdbgppc64_pl
-
-sed s/0x8001/0x4200/g testfile.symtab_pl.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazdbgppc64_plr
-
-cat testfile.dynsym.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazdynppc64
-
-cat testfile.symtab.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazmdbppc64
-
-cat testfile.minsym.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazminppc64
-
-cat testfile.minsym_pl.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazminppc64_pl
-
-sed s/0x8001/0x4200/g testfile.minsym_pl.in \
- | testrun_compare ${abs_builddir}/dwflsyms -e testfilebazminppc64_plr
-
-exit 0
diff --git a/src/tests/run-early-offscn.sh b/src/tests/run-early-offscn.sh
deleted file mode 100755
index 3757bcfc..00000000
--- a/src/tests/run-early-offscn.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2008 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile
-
-testrun ${abs_builddir}/early-offscn testfile 0x500
-
-exit 0
diff --git a/src/tests/run-ecp-test.sh b/src/tests/run-ecp-test.sh
deleted file mode 100755
index d5e376a1..00000000
--- a/src/tests/run-ecp-test.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2002, 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Jakub Jelinek <jakub@redhat.com>, 2002.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile10
-tempfiles testfile10.tmp
-
-testrun ${abs_builddir}/ecp testfile10 testfile10.tmp
-
-cmp testfile10 testfile10.tmp
-
-exit 0
diff --git a/src/tests/run-ecp-test2.sh b/src/tests/run-ecp-test2.sh
deleted file mode 100755
index 864e0a58..00000000
--- a/src/tests/run-ecp-test2.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2002, 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Jakub Jelinek <jakub@redhat.com>, 2002.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile2
-tempfiles testfile2.tmp
-
-testrun ${abs_builddir}/ecp testfile2 testfile2.tmp
-
-exit 0
diff --git a/src/tests/run-elf_cntl_gelf_getshdr.sh b/src/tests/run-elf_cntl_gelf_getshdr.sh
deleted file mode 100755
index 94b477c7..00000000
--- a/src/tests/run-elf_cntl_gelf_getshdr.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-tempfiles test_shdr.out
-
-# However we open the elf file, the shdrs should be the same.
-testrun ${abs_builddir}/test-elf_cntl_gelf_getshdr READ ${abs_builddir}/test-elf_cntl_gelf_getshdr \
- > test_shdr.out
-
-testrun_compare ${abs_builddir}/test-elf_cntl_gelf_getshdr MMAP ${abs_builddir}/test-elf_cntl_gelf_getshdr \
- < test_shdr.out
-
-testrun_compare ${abs_builddir}/test-elf_cntl_gelf_getshdr FDREAD ${abs_builddir}/test-elf_cntl_gelf_getshdr \
- < test_shdr.out
diff --git a/src/tests/run-elflint-self.sh b/src/tests/run-elflint-self.sh
deleted file mode 100755
index 013109db..00000000
--- a/src/tests/run-elflint-self.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005, 2007 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testrun_on_self ${abs_top_builddir}/src/elflint --quiet --gnu-ld
diff --git a/src/tests/run-elflint-test.sh b/src/tests/run-elflint-test.sh
deleted file mode 100755
index 68615b96..00000000
--- a/src/tests/run-elflint-test.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005, 2007, 2008 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile18
-
-testrun_compare ${abs_top_builddir}/src/elflint --gnu-ld testfile18 <<\EOF
-section [ 8] '.rela.dyn': relocation 1: copy relocation against symbol of type FUNC
-EOF
-
-testfiles testfile32
-testrun ${abs_top_builddir}/src/elflint -q testfile32
-
-testfiles testfile33
-testrun ${abs_top_builddir}/src/elflint -q testfile33
-
-testfiles testfile42
-testrun ${abs_top_builddir}/src/elflint -q --gnu-ld testfile42
-
-testfiles testfile46
-testrun ${abs_top_builddir}/src/elflint -q testfile46
-
-# see also run-readelf-d.sh
-testfiles testlib_dynseg.so
-testrun ${abs_top_builddir}/src/elflint -q --gnu-ld testlib_dynseg.so
-
-exit 0
diff --git a/src/tests/run-find-prologues.sh b/src/tests/run-find-prologues.sh
deleted file mode 100755
index 160f07d2..00000000
--- a/src/tests/run-find-prologues.sh
+++ /dev/null
@@ -1,85 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile11 testfile22 testfile24 \
- testfile25 testfile3 testfile4 testfile5 testfile6
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile <<\EOF
-main 0x000000000804842c 0x0000000008048432
-bar 0x000000000804845c 0x000000000804845f
-foo 0x0000000008048468 0x000000000804846b
-EOF
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile11 <<\EOF
-main 0x00000000080489b8 0x00000000080489cd
-gnu_obj_2 0x0000000008048c9e 0x0000000008048ca4
-gnu_obj_3 0x0000000008048cd8 0x0000000008048cde
-gnu_obj_2 0x0000000008048cf4 0x0000000008048cfa
-~invalid_argument 0x0000000008048d2e 0x0000000008048d34
-gnu_obj_1 0x0000000008048d62 0x0000000008048d65
-gnu_obj_1 0x0000000008048d8a 0x0000000008048d8d
-~invalid_argument 0x0000000008048db2 0x0000000008048db8
-EOF
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile22 <<\EOF
-function 0x0000000008048348 0x000000000804834e
-main 0x000000000804835b 0x0000000008048377
-EOF
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile24 <<\EOF
-incr 0x0000000008048348 0x000000000804834e
-main 0x0000000008048354 0x0000000008048360
-EOF
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile25 <<\EOF
-incr 0x0000000008048348 0x000000000804834c
-EOF
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile3 <<\EOF
-main 0x000000000804842c 0x0000000008048433
-bar 0x0000000008048458 0x000000000804845b
-foo 0x0000000008048464 0x0000000008048467
-EOF
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile4 <<\EOF
-get 0x00000000080493fc 0x0000000008049402
-main 0x0000000008049498 0x000000000804949e
-a 0x000000000804d85c 0x000000000804d85c
-__tfPCc 0x000000000804d86c 0x000000000804d872
-__tfCc 0x000000000804d8a4 0x000000000804d8a4
-EOF
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile5 <<\EOF
-bar 0x000000000804842c 0x000000000804842f
-foo 0x0000000008048438 0x000000000804843b
-main 0x0000000008048444 0x000000000804844a
-EOF
-
-testrun_compare ${abs_builddir}/find-prologues -e testfile6 <<\EOF
-main 0x00000000080489b8 0x00000000080489cd
-gnu_obj_2 0x0000000008048c9e 0x0000000008048ca4
-gnu_obj_3 0x0000000008048cd8 0x0000000008048cde
-gnu_obj_2 0x0000000008048cf4 0x0000000008048cfa
-~invalid_argument 0x0000000008048d2e 0x0000000008048d34
-gnu_obj_1 0x0000000008048d62 0x0000000008048d65
-gnu_obj_1 0x0000000008048d8a 0x0000000008048d8d
-~invalid_argument 0x0000000008048db2 0x0000000008048db8
-EOF
-
-exit 0
diff --git a/src/tests/run-funcretval.sh b/src/tests/run-funcretval.sh
deleted file mode 100755
index 779bd473..00000000
--- a/src/tests/run-funcretval.sh
+++ /dev/null
@@ -1,153 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# The following files were obtaining by compiling funcretval_test.c
-# from this directory as follows:
-#
-# gcc -g funcretval_test.c -o funcretval_test_<YOURARCH>
-#
-# Pass -DFLOAT128 if the given arch supports __float128.
-
-testfiles funcretval_test_aarch64
-
-# funcretval_test_aarch64 was built with additional flag:
-# -DAARCH64_BUG_1032854
-# hence no fun_vec_double_8.
-testrun_compare ${abs_top_builddir}/tests/funcretval \
- -e funcretval_test_aarch64 <<\EOF
-() fun_char: return value location: {0x50, 0}
-() fun_short: return value location: {0x50, 0}
-() fun_int: return value location: {0x50, 0}
-() fun_ptr: return value location: {0x50, 0}
-() fun_iptr: return value location: {0x50, 0}
-() fun_long: return value location: {0x50, 0}
-() fun_int128: return value location: {0x50, 0} {0x93, 0x8} {0x51, 0} {0x93, 0x8}
-() fun_large_struct1: return value location: {0x70, 0}
-() fun_large_struct2: return value location: {0x70, 0}
-() fun_float: return value location: {0x90, 0x40}
-() fun_float_complex: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4}
-() fun_double: return value location: {0x90, 0x40}
-() fun_double_complex: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_long_double: return value location: {0x90, 0x40}
-() fun_long_double_complex: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_vec_char_8: return value location: {0x90, 0x40}
-() fun_vec_short_8: return value location: {0x90, 0x40}
-() fun_vec_int_8: return value location: {0x90, 0x40}
-() fun_vec_long_8: return value location: {0x90, 0x40}
-() fun_vec_float_8: return value location: {0x90, 0x40}
-() fun_vec_char_16: return value location: {0x90, 0x40}
-() fun_vec_short_16: return value location: {0x90, 0x40}
-() fun_vec_int_16: return value location: {0x90, 0x40}
-() fun_vec_long_16: return value location: {0x90, 0x40}
-() fun_vec_int128_16: return value location: {0x90, 0x40}
-() fun_vec_float_16: return value location: {0x90, 0x40}
-() fun_vec_double_16: return value location: {0x90, 0x40}
-() fun_hfa1_float: return value location: {0x90, 0x40}
-() fun_hfa1_double: return value location: {0x90, 0x40}
-() fun_hfa1_long_double: return value location: {0x90, 0x40}
-() fun_hfa1_float_a: return value location: {0x90, 0x40}
-() fun_hfa1_double_a: return value location: {0x90, 0x40}
-() fun_hfa1_long_double_a: return value location: {0x90, 0x40}
-() fun_hfa2_float: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4}
-() fun_hfa2_double: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_hfa2_long_double: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hfa2_float_a: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4}
-() fun_hfa2_double_a: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_hfa2_long_double_a: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hfa3_float: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4} {0x90, 0x42} {0x93, 0x4}
-() fun_hfa3_double: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_hfa3_long_double: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hfa3_float_a: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4} {0x90, 0x42} {0x93, 0x4}
-() fun_hfa3_double_a: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_hfa3_long_double_a: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hfa4_float: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4} {0x90, 0x42} {0x93, 0x4} {0x90, 0x43} {0x93, 0x4}
-() fun_hfa4_double: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8} {0x90, 0x43} {0x93, 0x8}
-() fun_hfa4_long_double: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_hfa4_float_a: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4} {0x90, 0x42} {0x93, 0x4} {0x90, 0x43} {0x93, 0x4}
-() fun_hfa4_double_a: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8} {0x90, 0x43} {0x93, 0x8}
-() fun_hfa4_long_double_a: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_nfa5_float: return value location: {0x70, 0}
-() fun_nfa5_double: return value location: {0x70, 0}
-() fun_nfa5_long_double: return value location: {0x70, 0}
-() fun_nfa5_float_a: return value location: {0x70, 0}
-() fun_nfa5_double_a: return value location: {0x70, 0}
-() fun_nfa5_long_double_a: return value location: {0x70, 0}
-() fun_hva1_vec_char_8: return value location: {0x90, 0x40}
-() fun_hva1_vec_short_8: return value location: {0x90, 0x40}
-() fun_hva1_vec_int_8: return value location: {0x90, 0x40}
-() fun_hva1_vec_long_8: return value location: {0x90, 0x40}
-() fun_hva1_vec_float_8: return value location: {0x90, 0x40}
-() fun_hva1_vec_double_8: return value location: {0x90, 0x40}
-() fun_hva1_vec_char_16_t: return value location: {0x90, 0x40}
-() fun_hva1_vec_short_16_t: return value location: {0x90, 0x40}
-() fun_hva1_vec_int_16_t: return value location: {0x90, 0x40}
-() fun_hva1_vec_long_16_t: return value location: {0x90, 0x40}
-() fun_hva1_vec_int128_16_t: return value location: {0x90, 0x40}
-() fun_hva1_vec_float_16_t: return value location: {0x90, 0x40}
-() fun_hva1_vec_double_16_t: return value location: {0x90, 0x40}
-() fun_hva2_vec_char_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_hva2_vec_short_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_hva2_vec_int_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_hva2_vec_long_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_hva2_vec_float_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_hva2_vec_double_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() fun_hva2_vec_char_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hva2_vec_short_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hva2_vec_int_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hva2_vec_long_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hva2_vec_int128_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hva2_vec_float_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hva2_vec_double_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10}
-() fun_hva3_vec_char_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_hva3_vec_short_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_hva3_vec_int_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_hva3_vec_long_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_hva3_vec_float_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_hva3_vec_double_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_hva3_vec_char_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hva3_vec_short_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hva3_vec_int_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hva3_vec_long_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hva3_vec_int128_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hva3_vec_float_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hva3_vec_double_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_hva4_vec_char_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8} {0x90, 0x43} {0x93, 0x8}
-() fun_hva4_vec_short_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8} {0x90, 0x43} {0x93, 0x8}
-() fun_hva4_vec_int_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8} {0x90, 0x43} {0x93, 0x8}
-() fun_hva4_vec_long_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8} {0x90, 0x43} {0x93, 0x8}
-() fun_hva4_vec_float_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8} {0x90, 0x43} {0x93, 0x8}
-() fun_hva4_vec_double_8: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8} {0x90, 0x43} {0x93, 0x8}
-() fun_hva4_vec_char_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_hva4_vec_short_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_hva4_vec_int_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_hva4_vec_long_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_hva4_vec_int128_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_hva4_vec_float_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_hva4_vec_double_16_t: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10} {0x90, 0x43} {0x93, 0x10}
-() fun_mixed_hfa3_cff: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4} {0x90, 0x42} {0x93, 0x4}
-() fun_mixed_hfa3_cdd: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_mixed_hfa3_cldld: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_mixed_hfa3_fcf: return value location: {0x90, 0x40} {0x93, 0x4} {0x90, 0x41} {0x93, 0x4} {0x90, 0x42} {0x93, 0x4}
-() fun_mixed_hfa3_dcd: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8} {0x90, 0x42} {0x93, 0x8}
-() fun_mixed_hfa3_ldcld: return value location: {0x90, 0x40} {0x93, 0x10} {0x90, 0x41} {0x93, 0x10} {0x90, 0x42} {0x93, 0x10}
-() fun_mixed_hfa2_fltsht_t: return value location: {0x90, 0x40} {0x93, 0x8} {0x90, 0x41} {0x93, 0x8}
-() main: return value location: {0x50, 0}
-EOF
-
-exit 0
diff --git a/src/tests/run-funcscopes.sh b/src/tests/run-funcscopes.sh
deleted file mode 100755
index d236f5c3..00000000
--- a/src/tests/run-funcscopes.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile25
-
-testrun_compare ${abs_builddir}/funcscopes -e testfile25 incr <<\EOF
-testfile25: 0x8048000 .. 0x8049528
- inline-test.c (0x11): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x804834f (/home/roland/build/stock-elfutils/inline-test.c:9)
- incr (0x2e): 0x8048348 (/home/roland/build/stock-elfutils/inline-test.c:7) .. 0x804834f (/home/roland/build/stock-elfutils/inline-test.c:9)
- x [ 66]
-EOF
-
-exit 0
diff --git a/src/tests/run-get-aranges.sh b/src/tests/run-get-aranges.sh
deleted file mode 100755
index 62cae5f8..00000000
--- a/src/tests/run-get-aranges.sh
+++ /dev/null
@@ -1,68 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile2
-
-testrun_compare ${abs_builddir}/get-aranges testfile testfile2 <<\EOF
-0x804842b: not in range
-CU name: "m.c"
-CU name: "m.c"
-CU name: "m.c"
-0x804845a: not in range
-0x804845b: not in range
-CU name: "b.c"
-CU name: "b.c"
-CU name: "b.c"
-0x8048466: not in range
-0x8048467: not in range
-CU name: "f.c"
-CU name: "f.c"
-CU name: "f.c"
-0x8048472: not in range
- [ 0] start: 0x804842c, length: 46, cu: 11
-CU name: "m.c"
- [ 1] start: 0x804845c, length: 10, cu: 202
-CU name: "b.c"
- [ 2] start: 0x8048468, length: 10, cu: 5628
-CU name: "f.c"
-0x804842b: not in range
-0x804842c: not in range
-0x804843c: not in range
-0x8048459: not in range
-0x804845a: not in range
-0x804845b: not in range
-0x804845c: not in range
-0x8048460: not in range
-0x8048465: not in range
-0x8048466: not in range
-0x8048467: not in range
-0x8048468: not in range
-0x8048470: not in range
-0x8048471: not in range
-0x8048472: not in range
- [ 0] start: 0x10000470, length: 32, cu: 11
-CU name: "b.c"
- [ 1] start: 0x10000490, length: 32, cu: 2429
-CU name: "f.c"
- [ 2] start: 0x100004b0, length: 100, cu: 2532
-CU name: "m.c"
-EOF
-
-exit 0
diff --git a/src/tests/run-get-files.sh b/src/tests/run-get-files.sh
deleted file mode 100755
index a2f2373b..00000000
--- a/src/tests/run-get-files.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2004, 2005, 2007 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile2
-
-testrun_compare ${abs_builddir}/get-files testfile testfile2 <<\EOF
-cuhl = 11, o = 0, asz = 4, osz = 4, ncu = 191
- dirs[0] = "/home/drepper/gnu/new-bu/build/ttt"
- file[0] = "???"
- file[1] = "/home/drepper/gnu/new-bu/build/ttt/m.c"
-cuhl = 11, o = 114, asz = 4, osz = 4, ncu = 5617
- dirs[0] = "/home/drepper/gnu/new-bu/build/ttt"
- file[0] = "???"
- file[1] = "/home/drepper/gnu/new-bu/build/ttt/b.c"
- file[2] = "/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stddef.h"
- file[3] = "/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/stdarg.h"
- file[4] = "/usr/include/bits/types.h"
- file[5] = "/usr/include/bits/sched.h"
- file[6] = "/usr/include/bits/pthreadtypes.h"
- file[7] = "/usr/include/stdio.h"
- file[8] = "/usr/include/libio.h"
- file[9] = "/usr/include/wchar.h"
- file[10] = "/usr/include/_G_config.h"
- file[11] = "/usr/include/gconv.h"
-cuhl = 11, o = 412, asz = 4, osz = 4, ncu = 5752
- dirs[0] = "/home/drepper/gnu/new-bu/build/ttt"
- file[0] = "???"
- file[1] = "/home/drepper/gnu/new-bu/build/ttt/f.c"
-cuhl = 11, o = 0, asz = 4, osz = 4, ncu = 2418
- dirs[0] = "/shoggoth/drepper"
- file[0] = "???"
- file[1] = "/shoggoth/drepper/b.c"
- file[2] = "/home/geoffk/objs/laurel-000912-branch/lib/gcc-lib/powerpc-unknown-linux-gnu/2.96-laurel-000912/include/stddef.h"
- file[3] = "/home/geoffk/objs/laurel-000912-branch/lib/gcc-lib/powerpc-unknown-linux-gnu/2.96-laurel-000912/include/stdarg.h"
- file[4] = "/shoggoth/drepper/<built-in>"
- file[5] = "/usr/include/bits/types.h"
- file[6] = "/usr/include/stdio.h"
- file[7] = "/usr/include/libio.h"
- file[8] = "/usr/include/_G_config.h"
-cuhl = 11, o = 213, asz = 4, osz = 4, ncu = 2521
- dirs[0] = "/shoggoth/drepper"
- file[0] = "???"
- file[1] = "/shoggoth/drepper/f.c"
-cuhl = 11, o = 267, asz = 4, osz = 4, ncu = 2680
- dirs[0] = "/shoggoth/drepper"
- file[0] = "???"
- file[1] = "/shoggoth/drepper/m.c"
-EOF
-
-exit 0
diff --git a/src/tests/run-get-lines.sh b/src/tests/run-get-lines.sh
deleted file mode 100755
index fb48c77d..00000000
--- a/src/tests/run-get-lines.sh
+++ /dev/null
@@ -1,91 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2004, 2005, 2013 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile2 testfilenolines
-
-testrun_compare ${abs_builddir}/get-lines testfile testfile2 <<\EOF
-cuhl = 11, o = 0, asz = 4, osz = 4, ncu = 191
- 5 lines
-804842c: /home/drepper/gnu/new-bu/build/ttt/m.c:5:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-8048432: /home/drepper/gnu/new-bu/build/ttt/m.c:6:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-804844d: /home/drepper/gnu/new-bu/build/ttt/m.c:7:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-8048458: /home/drepper/gnu/new-bu/build/ttt/m.c:8:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-804845a: /home/drepper/gnu/new-bu/build/ttt/m.c:8:0: is_stmt:yes, end_seq:yes, bb:no, prologue:no, epilogue:no
-cuhl = 11, o = 114, asz = 4, osz = 4, ncu = 5617
- 4 lines
-804845c: /home/drepper/gnu/new-bu/build/ttt/b.c:4:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-804845f: /home/drepper/gnu/new-bu/build/ttt/b.c:5:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-8048464: /home/drepper/gnu/new-bu/build/ttt/b.c:6:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-8048466: /home/drepper/gnu/new-bu/build/ttt/b.c:6:0: is_stmt:yes, end_seq:yes, bb:no, prologue:no, epilogue:no
-cuhl = 11, o = 412, asz = 4, osz = 4, ncu = 5752
- 4 lines
-8048468: /home/drepper/gnu/new-bu/build/ttt/f.c:3:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-804846b: /home/drepper/gnu/new-bu/build/ttt/f.c:4:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-8048470: /home/drepper/gnu/new-bu/build/ttt/f.c:5:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-8048472: /home/drepper/gnu/new-bu/build/ttt/f.c:5:0: is_stmt:yes, end_seq:yes, bb:no, prologue:no, epilogue:no
-cuhl = 11, o = 0, asz = 4, osz = 4, ncu = 2418
- 4 lines
-10000470: /shoggoth/drepper/b.c:4:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-1000047c: /shoggoth/drepper/b.c:5:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-10000480: /shoggoth/drepper/b.c:6:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-10000490: /shoggoth/drepper/b.c:6:0: is_stmt:yes, end_seq:yes, bb:no, prologue:no, epilogue:no
-cuhl = 11, o = 213, asz = 4, osz = 4, ncu = 2521
- 4 lines
-10000490: /shoggoth/drepper/f.c:3:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-1000049c: /shoggoth/drepper/f.c:4:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-100004a0: /shoggoth/drepper/f.c:5:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-100004b0: /shoggoth/drepper/f.c:5:0: is_stmt:yes, end_seq:yes, bb:no, prologue:no, epilogue:no
-cuhl = 11, o = 267, asz = 4, osz = 4, ncu = 2680
- 5 lines
-100004b0: /shoggoth/drepper/m.c:5:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-100004cc: /shoggoth/drepper/m.c:6:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-100004e8: /shoggoth/drepper/m.c:7:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-100004f4: /shoggoth/drepper/m.c:8:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-10000514: /shoggoth/drepper/m.c:8:0: is_stmt:yes, end_seq:yes, bb:no, prologue:no, epilogue:no
-EOF
-
-# - lines.c
-# int ft;
-#
-# int
-# main (int argc, char **argv)
-# {
-# return ft - 42;
-# }
-#
-# - nolines.c
-# int ft = 42;
-#
-# gcc -g -c lines.c
-# gcc -g -c nolines.c
-# gcc -g -o testfilenolines lines.o nolines.o
-
-testrun_compare ${abs_builddir}/get-lines testfilenolines <<\EOF
-cuhl = 11, o = 0, asz = 8, osz = 4, ncu = 169
- 4 lines
-400474: /home/mark/src/tests/lines.c:5:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-40047f: /home/mark/src/tests/lines.c:6:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-400488: /home/mark/src/tests/lines.c:7:0: is_stmt:yes, end_seq:no, bb:no, prologue:no, epilogue:no
-40048a: /home/mark/src/tests/lines.c:7:0: is_stmt:yes, end_seq:yes, bb:no, prologue:no, epilogue:no
-cuhl = 11, o = 125, asz = 8, osz = 4, ncu = 243
- 0 lines
-EOF
-
-exit 0
diff --git a/src/tests/run-get-pubnames.sh b/src/tests/run-get-pubnames.sh
deleted file mode 100755
index 912793e4..00000000
--- a/src/tests/run-get-pubnames.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2003, 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile2
-
-testrun_compare ${abs_builddir}/get-pubnames testfile testfile2 <<\EOF
- [ 0] "main", die: 104, cu: 11
-CU name: "m.c"
-object name: "main"
- [ 1] "a", die: 174, cu: 11
-CU name: "m.c"
-object name: "a"
- [ 2] "bar", die: 295, cu: 202
-CU name: "b.c"
-object name: "bar"
- [ 3] "foo", die: 5721, cu: 5628
-CU name: "f.c"
-object name: "foo"
- [ 0] "bar", die: 72, cu: 11
-CU name: "b.c"
-object name: "bar"
- [ 1] "foo", die: 2490, cu: 2429
-CU name: "f.c"
-object name: "foo"
- [ 2] "main", die: 2593, cu: 2532
-CU name: "m.c"
-object name: "main"
- [ 3] "a", die: 2663, cu: 2532
-CU name: "m.c"
-object name: "a"
-EOF
-
-exit 0
diff --git a/src/tests/run-line2addr.sh b/src/tests/run-line2addr.sh
deleted file mode 100755
index 3b6c4457..00000000
--- a/src/tests/run-line2addr.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile2 testfile8 testfile14 testfile23
-
-testrun_compare ${abs_builddir}/line2addr -e testfile f.c:4 testfile f.c:8 <<\EOF
-f.c:4 -> 0x804846b (/home/drepper/gnu/new-bu/build/ttt/f.c:4)
-EOF
-
-testrun_compare ${abs_builddir}/line2addr -e testfile2 m.c:6 b.c:1 <<\EOF
-m.c:6 -> 0x100004cc (/shoggoth/drepper/m.c:6)
-b.c:1 -> 0x10000470 (/shoggoth/drepper/b.c:4)
-EOF
-
-testrun_compare ${abs_builddir}/line2addr -e testfile8 strip.c:953 strip.c:365 <<\EOF
-strip.c:953 -> (.text)+0x169f (/home/drepper/gnu/elfutils/build/src/../../src/strip.c:953)
-strip.c:953 -> (.text)+0x16aa (/home/drepper/gnu/elfutils/build/src/../../src/strip.c:953)
-strip.c:365 -> (.text)+0x278b (/home/drepper/gnu/elfutils/build/src/../../src/strip.c:365)
-strip.c:365 -> (.text)+0x2797 (/home/drepper/gnu/elfutils/build/src/../../src/strip.c:365)
-EOF
-
-testrun_compare ${abs_builddir}/line2addr -e testfile14 v.c:6 <<\EOF
-v.c:6 -> 0x400468 (/home/drepper/local/elfutils-build/20050425/v.c:6)
-v.c:6 -> 0x400487 (/home/drepper/local/elfutils-build/20050425/v.c:6)
-EOF
-
-testrun_compare ${abs_builddir}/line2addr -e testfile23 foo.c:2 foo.c:6 <<\EOF
-foo.c:2 -> (.init.text)+0xc (/home/roland/stock-elfutils-build/foo.c:2)
-foo.c:6 -> (.text)+0xc (/home/roland/stock-elfutils-build/foo.c:6)
-EOF
-
-exit 0
diff --git a/src/tests/run-linkmap-cut.sh b/src/tests/run-linkmap-cut.sh
deleted file mode 100755
index de2bc7cc..00000000
--- a/src/tests/run-linkmap-cut.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /bin/bash
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# The core file has patched:
-# * _r_debug.r_map.l_next.l_next (vma 0x3fdf621718, offset 0x7718) = NULL,
-# therefore all libraries after the main executable and vDSO are removed.
-# * NT_FILE absolute filenames are relativized to: ./////basename
-
-testfiles linkmap-cut-lib.so linkmap-cut linkmap-cut.core
-tempfiles bt
-# It may have non-zero exit code with:
-# .../elfutils/src/stack: dwfl_thread_getframes tid 3130 at 0x3fdf821d64 in /usr/lib64/libc-2.18.so: no matching address range
-testrun ${abs_top_builddir}/src/stack --core=linkmap-cut.core -e linkmap-cut -m >bt || true
-cat bt
-grep -q '^#0 0x00007f08bc24d681 libfunc - .////////////////////////////////////linkmap-cut-lib\.so$' bt
-grep -q '^#1 0x00000000004006b4 main - linkmap-cut$' bt
diff --git a/src/tests/run-low_high_pc.sh b/src/tests/run-low_high_pc.sh
deleted file mode 100755
index ab5f2c37..00000000
--- a/src/tests/run-low_high_pc.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# int
-# main (int argc, char **argv)
-# {
-# return 0;
-# }
-# gcc -g -o main main.c
-testfiles testfile_low_high_pc
-
-testrun ${abs_builddir}/low_high_pc -e ./testfile_low_high_pc
-testrun ${abs_builddir}/low_high_pc -e ${abs_builddir}/low_high_pc
-testrun ${abs_builddir}/low_high_pc -e ${abs_top_builddir}/src/strip
-testrun ${abs_builddir}/low_high_pc -e ${abs_top_builddir}/src/strip.o
-testrun ${abs_builddir}/low_high_pc -e ${abs_top_builddir}/libelf/libelf.so
-
-exit 0
diff --git a/src/tests/run-macro-test.sh b/src/tests/run-macro-test.sh
deleted file mode 100755
index 79b0d881..00000000
--- a/src/tests/run-macro-test.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# #include <string.h>
-#
-# #define HELLO "world"
-#
-# int
-# main(int argc, char ** argv)
-# {
-# return strlen (HELLO);
-# }
-#
-# gcc -gdwarf-4 -g3 -o testfile-macros macro.c
-# gcc -gstrict-dwarf -gdwarf-4 -g3 -o testfile-macinfo macro.c
-
-testfiles testfile-macinfo testfile-macros
-tempfiles readelf.macros.out
-
-status=0
-
-testrun ${abs_top_builddir}/src/readelf --debug-dump=info testfile-macinfo \
- | grep macro_info > readelf.macros.out ||
- { echo "*** failure readelf --debug-dump=info testfile-macinfo"; status=1; }
-testrun_compare cat readelf.macros.out <<\EOF
- macro_info (sec_offset) 0
-EOF
-
-testrun ${abs_top_builddir}/src/readelf --debug-dump=info testfile-macros \
- | grep GNU_macros > readelf.macros.out ||
- { echo "*** failure readelf --debug-dump=info testfile-macros"; status=1; }
-testrun_compare cat readelf.macros.out <<\EOF
- GNU_macros (sec_offset) 0
-EOF
-
-exit $status
diff --git a/src/tests/run-native-test.sh b/src/tests/run-native-test.sh
deleted file mode 100755
index d19007f2..00000000
--- a/src/tests/run-native-test.sh
+++ /dev/null
@@ -1,88 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005, 2006, 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-. $srcdir/test-subr.sh
-
-# This tests all the miscellaneous components of backend support
-# against whatever this build is running on. A platform will fail
-# this test if it is missing parts of the backend implementation.
-#
-# As new backend code is added to satisfy the test, be sure to update
-# the fixed test cases (run-allregs.sh et al) to test that backend
-# in all builds.
-
-tempfiles native.c native
-echo 'main () { while (1) pause (); }' > native.c
-
-native=0
-kill_native()
-{
- test $native -eq 0 || {
- kill -9 $native 2> /dev/null || :
- wait $native 2> /dev/null || :
- }
- native=0
-}
-
-native_cleanup()
-{
- kill_native
- test_cleanup
-}
-
-native_exit()
-{
- native_cleanup
- exit_cleanup
-}
-
-trap native_cleanup 1 2 15
-trap native_exit 0
-
-for cc in "$HOSTCC" "$HOST_CC" cc gcc "$CC"; do
- test "x$cc" != x || continue
- $cc -o native -g native.c > /dev/null 2>&1 &&
- # Some shell versions don't do this right without the braces.
- { ./native > /dev/null 2>&1 & native=$! ; } &&
- sleep 1 && kill -0 $native 2> /dev/null &&
- break ||
- native=0
-done
-
-native_test()
-{
- # Try the build against itself, i.e. $config_host.
- testrun "$@" -e $1 > /dev/null
-
- # Try the build against a presumed native process, running this sh.
- # For tests requiring debug information, this may not test anything.
- testrun "$@" -p $$ > /dev/null
-
- # Try the build against the trivial native program we just built with -g.
- test $native -eq 0 || testrun "$@" -p $native > /dev/null
-}
-
-native_test ${abs_builddir}/allregs
-native_test ${abs_builddir}/funcretval
-
-# We do this explicitly rather than letting the trap 0 cover it,
-# because as of version 3.1 bash prints the "Killed" report for
-# $native when we do the kill inside the exit handler.
-native_cleanup
-
-exit 0
diff --git a/src/tests/run-nm-self.sh b/src/tests/run-nm-self.sh
deleted file mode 100755
index 6a31afcf..00000000
--- a/src/tests/run-nm-self.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012, 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Test different command line combinations on the nm binary itself.
-# Test on nm ET_REL, ET_EXEC and ET_DYN files.
-ET_REL=${abs_top_builddir}/src/nm.o
-ET_EXEC=${abs_top_builddir}/src/nm
-ET_DYN=${abs_top_builddir}/libelf/libelf.so
-for what_arg in --debug-syms --defined-only --dynamic --extern-only; do
- for format_arg in --format=bsd --format=sysv --format=posix; do
- for out_arg in --numeric-sort --no-sort --reverse-sort; do
- for self_file in $ET_REL $ET_EXEC $ET_DYN; do
- # --dynamic doesn't make sense for ET_REL.
- if ! test "$what_arg" = "--dynamic" -a "$self_file" = "$ET_REL"; then
- testrun ${abs_top_builddir}/src/nm $what_arg $format_arg $out_arg $self_file > /dev/null
- fi
- done
- done
- done
-done
diff --git a/src/tests/run-prelink-addr-test.sh b/src/tests/run-prelink-addr-test.sh
deleted file mode 100755
index 3398c0d1..00000000
--- a/src/tests/run-prelink-addr-test.sh
+++ /dev/null
@@ -1,252 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2011-2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-
-# testfile52.c:
-# #include <stdlib.h>
-# int foo() { exit(0); }
-#
-# gcc -m32 -g -shared testfile52-32.c -o testfile52-32.so
-# eu-strip -f testfile52-32.so.debug testfile52-32.so
-# cp testfile52-32.so testfile52-32.prelink.so
-# prelink -N testfile52-32.prelink.so
-# cp testfile52-32.so testfile52-32.noshdrs.so
-# prelink -r 0x42000000 testfile52-32.noshdrs.so
-# eu-strip --remove-comment --strip-sections testfile52-32.noshdrs.so
-
-testfiles testfile52-32.so testfile52-32.so.debug
-testfiles testfile52-32.prelink.so testfile52-32.noshdrs.so
-tempfiles testmaps52-32 testfile52-32.noshdrs.so.debug
-ln -snf testfile52-32.so.debug testfile52-32.noshdrs.so.debug
-
-cat > testmaps52-32 <<EOF
-00111000-00112000 r-xp 00000000 fd:01 1 `pwd`/testfile52-32.so
-00112000-00113000 rw-p 00000000 fd:01 1 `pwd`/testfile52-32.so
-41000000-41001000 r-xp 00000000 fd:01 2 `pwd`/testfile52-32.prelink.so
-41001000-41002000 rw-p 00000000 fd:01 2 `pwd`/testfile52-32.prelink.so
-42000000-42001000 r-xp 00000000 fd:01 3 `pwd`/testfile52-32.noshdrs.so
-42001000-42002000 rw-p 00000000 fd:01 3 `pwd`/testfile52-32.noshdrs.so
-EOF
-
-# Prior to commit 1743d7f, libdwfl would fail on the second address,
-# because it didn't notice that prelink added a 0x20-byte offset from
-# what the .debug file reports.
-testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps52-32 \
- 0x11140c 0x4100042d 0x4200040e <<\EOF
-foo
-/home/jistone/src/elfutils/tests/testfile52-32.c:2
-foo+0x1
-/home/jistone/src/elfutils/tests/testfile52-32.c:2
-foo+0x2
-/home/jistone/src/elfutils/tests/testfile52-32.c:2
-EOF
-
-# Repeat testfile52 for -m64. The particular REL>RELA issue doesn't exist, but
-# we'll make sure the rest works anyway.
-testfiles testfile52-64.so testfile52-64.so.debug
-testfiles testfile52-64.prelink.so testfile52-64.noshdrs.so
-tempfiles testmaps52-64 testfile52-64.noshdrs.so.debug
-ln -snf testfile52-64.so.debug testfile52-64.noshdrs.so.debug
-
-cat > testmaps52-64 <<EOF
-1000000000-1000001000 r-xp 00000000 fd:11 1 `pwd`/testfile52-64.so
-1000001000-1000200000 ---p 00001000 fd:11 1 `pwd`/testfile52-64.so
-1000200000-1000201000 rw-p 00000000 fd:11 1 `pwd`/testfile52-64.so
-3000000000-3000001000 r-xp 00000000 fd:11 2 `pwd`/testfile52-64.prelink.so
-3000001000-3000200000 ---p 00001000 fd:11 2 `pwd`/testfile52-64.prelink.so
-3000200000-3000201000 rw-p 00000000 fd:11 2 `pwd`/testfile52-64.prelink.so
-3800000000-3800001000 r-xp 00000000 fd:11 3 `pwd`/testfile52-64.noshdrs.so
-3800001000-3800200000 ---p 00001000 fd:11 3 `pwd`/testfile52-64.noshdrs.so
-3800200000-3800201000 rw-p 00000000 fd:11 3 `pwd`/testfile52-64.noshdrs.so
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps52-64 \
- 0x100000056c 0x300000056d 0x380000056e <<\EOF
-foo
-/home/jistone/src/elfutils/tests/testfile52-64.c:2
-foo+0x1
-/home/jistone/src/elfutils/tests/testfile52-64.c:2
-foo+0x2
-/home/jistone/src/elfutils/tests/testfile52-64.c:2
-EOF
-
-
-# testfile53.c:
-# char foo[0x1000];
-# int main() { return 0; }
-#
-# gcc -m32 -g testfile53-32.c -o testfile53-32
-# eu-strip -f testfile53-32.debug testfile53-32
-# cp testfile53-32 testfile53-32.prelink
-# prelink -N testfile53-32.prelink
-testfiles testfile53-32 testfile53-32.debug testfile53-32.prelink
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile53-32 0x8048394 0x8048395 <<\EOF
-main
-/home/jistone/src/elfutils/tests/testfile53-32.c:2
-main+0x1
-/home/jistone/src/elfutils/tests/testfile53-32.c:2
-EOF
-
-# prelink shuffled some of the sections, but .text is in the same place.
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile53-32.prelink 0x8048396 0x8048397 <<\EOF
-main+0x2
-/home/jistone/src/elfutils/tests/testfile53-32.c:2
-main+0x3
-/home/jistone/src/elfutils/tests/testfile53-32.c:2
-EOF
-
-# Repeat testfile53 in 64-bit, except use foo[0x800] to achieve the same
-# prelink section shuffling.
-testfiles testfile53-64 testfile53-64.debug testfile53-64.prelink
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile53-64 0x400474 0x400475 <<\EOF
-main
-/home/jistone/src/elfutils/tests/testfile53-64.c:2
-main+0x1
-/home/jistone/src/elfutils/tests/testfile53-64.c:2
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile53-64.prelink 0x400476 0x400477 <<\EOF
-main+0x2
-/home/jistone/src/elfutils/tests/testfile53-64.c:2
-main+0x3
-/home/jistone/src/elfutils/tests/testfile53-64.c:2
-EOF
-
-
-# testfile54.c:
-# extern void * stdin;
-# static void * pstdin = &stdin;
-# void * const foo = &pstdin;
-#
-# gcc -m32 -g -shared -nostartfiles testfile54-32.c -o testfile54-32.so
-# eu-strip -f testfile54-32.so.debug testfile54-32.so
-# cp testfile54-32.so testfile54-32.prelink.so
-# prelink -N testfile54-32.prelink.so
-# cp testfile54-32.so testfile54-32.noshdrs.so
-# prelink -r 0x42000000 testfile54-32.noshdrs.so
-# eu-strip --remove-comment --strip-sections testfile54-32.noshdrs.so
-testfiles testfile54-32.so testfile54-32.so.debug
-testfiles testfile54-32.prelink.so testfile54-32.noshdrs.so
-tempfiles testmaps54-32
-
-# Note we have no testfile54-32.noshdrs.so.debug link here, so
-# this is testing finding the symbols in .dynsym via PT_DYNAMIC.
-
-cat > testmaps54-32 <<EOF
-00111000-00112000 r--p 00000000 fd:01 1 `pwd`/testfile54-32.so
-00112000-00113000 rw-p 00000000 fd:01 1 `pwd`/testfile54-32.so
-41000000-41001000 r--p 00000000 fd:01 2 `pwd`/testfile54-32.prelink.so
-41001000-41002000 rw-p 00000000 fd:01 2 `pwd`/testfile54-32.prelink.so
-42000000-42001000 r--p 00000000 fd:01 3 `pwd`/testfile54-32.noshdrs.so
-42001000-42002000 rw-p 00000000 fd:01 3 `pwd`/testfile54-32.noshdrs.so
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps54-32 \
- 0x1111fc 0x1122a4 0x410001fd 0x410012a5 0x420001fe <<\EOF
-foo
-??:0
-pstdin
-??:0
-foo+0x1
-??:0
-pstdin+0x1
-??:0
-foo+0x2
-??:0
-EOF
-
-# Repeat testfile64 in 64-bit
-testfiles testfile54-64.so testfile54-64.so.debug
-testfiles testfile54-64.prelink.so testfile54-64.noshdrs.so
-tempfiles testmaps54-64
-
-# Note we have no testfile54-64.noshdrs.so.debug link here, so
-# this is testing finding the symbols in .dynsym via PT_DYNAMIC.
-
-cat > testmaps54-64 <<EOF
-1000000000-1000001000 r--p 00000000 fd:11 1 `pwd`/testfile54-64.so
-1000001000-1000200000 ---p 00001000 fd:11 1 `pwd`/testfile54-64.so
-1000200000-1000201000 rw-p 00000000 fd:11 1 `pwd`/testfile54-64.so
-3000000000-3000001000 r--p 00000000 fd:11 2 `pwd`/testfile54-64.prelink.so
-3000001000-3000200000 ---p 00001000 fd:11 2 `pwd`/testfile54-64.prelink.so
-3000200000-3000201000 rw-p 00000000 fd:11 2 `pwd`/testfile54-64.prelink.so
-3800000000-3800001000 r--p 00000000 fd:11 3 `pwd`/testfile54-64.noshdrs.so
-3800001000-3800200000 ---p 00001000 fd:11 3 `pwd`/testfile54-64.noshdrs.so
-3800200000-3800201000 rw-p 00000000 fd:11 3 `pwd`/testfile54-64.noshdrs.so
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps54-64 \
- 0x10000002f8 0x1000200448 0x30000002f9 0x3000200449 0x38000002fa <<\EOF
-foo
-??:0
-pstdin
-??:0
-foo+0x1
-??:0
-pstdin+0x1
-??:0
-foo+0x2
-??:0
-EOF
-
-
-# testfile55.c:
-# extern void *stdin;
-# int main() { return !stdin; }
-#
-# gcc -m32 -g testfile55-32.c -o testfile55-32
-# eu-strip -f testfile55-32.debug testfile55-32
-# cp testfile55-32 testfile55-32.prelink
-# prelink -N testfile55-32.prelink
-testfiles testfile55-32 testfile55-32.debug testfile55-32.prelink
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile55-32 0x80483b4 0x80483b5 <<\EOF
-main
-/home/jistone/src/elfutils/tests/testfile55-32.c:2
-main+0x1
-/home/jistone/src/elfutils/tests/testfile55-32.c:2
-EOF
-
-# prelink splits .bss into .dynbss+.bss, so the start of .bss changes, but the
-# total size remains the same, and .text doesn't move at all.
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile55-32.prelink 0x80483b6 0x80483b7 <<\EOF
-main+0x2
-/home/jistone/src/elfutils/tests/testfile55-32.c:2
-main+0x3
-/home/jistone/src/elfutils/tests/testfile55-32.c:2
-EOF
-
-# Repeat testfile55 in 64-bit
-testfiles testfile55-64 testfile55-64.debug testfile55-64.prelink
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile55-64 0x4004b4 0x4004b5 <<\EOF
-main
-/home/jistone/src/elfutils/tests/testfile55-64.c:2
-main+0x1
-/home/jistone/src/elfutils/tests/testfile55-64.c:2
-EOF
-
-testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile55-64.prelink 0x4004b6 0x4004b7 <<\EOF
-main+0x2
-/home/jistone/src/elfutils/tests/testfile55-64.c:2
-main+0x3
-/home/jistone/src/elfutils/tests/testfile55-64.c:2
-EOF
diff --git a/src/tests/run-ranlib-test.sh b/src/tests/run-ranlib-test.sh
deleted file mode 100755
index 0b34cbbb..00000000
--- a/src/tests/run-ranlib-test.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-tempfiles ranlib-test.a ranlib-test.a-copy
-
-cat > ranlib-test.a <<"EOF"
-!<arch>
-foo/ 1124128960 500 500 100664 4 `
-foo
-bar/ 1124128965 500 500 100664 4 `
-bar
-EOF
-
-cp ranlib-test.a ranlib-test.a-copy
-
-testrun ${abs_top_builddir}/src/ranlib ranlib-test.a
-
-# The ranlib call should not have changed anything.
-cmp ranlib-test.a ranlib-test.a-copy
-
-exit 0
diff --git a/src/tests/run-ranlib-test2.sh b/src/tests/run-ranlib-test2.sh
deleted file mode 100755
index dbc57ecb..00000000
--- a/src/tests/run-ranlib-test2.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-original=${original:-testfile19}
-indexed=${indexed:-testfile19.index}
-
-testfiles $original $indexed
-
-testrun ${abs_top_builddir}/src/ranlib $original
-
-if test -z "$noindex"; then
- # The date in the index is different. The reference file has it blanked
- # out, we do the same here.
- echo " " |
- dd of=$original seek=24 bs=1 count=12 conv=notrunc 2>/dev/null
-fi
-
-cmp $original $indexed
-
-exit 0
diff --git a/src/tests/run-ranlib-test3.sh b/src/tests/run-ranlib-test3.sh
deleted file mode 100755
index 1fc21cdd..00000000
--- a/src/tests/run-ranlib-test3.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-original=testfile20
-indexed=testfile20.index
-. $srcdir/run-ranlib-test2.sh
diff --git a/src/tests/run-ranlib-test4.sh b/src/tests/run-ranlib-test4.sh
deleted file mode 100755
index 8070415b..00000000
--- a/src/tests/run-ranlib-test4.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-original=testfile21
-indexed=testfile21.index
-noindex=1
-. $srcdir/run-ranlib-test2.sh
diff --git a/src/tests/run-readelf-A.sh b/src/tests/run-readelf-A.sh
deleted file mode 100755
index 6ca9be89..00000000
--- a/src/tests/run-readelf-A.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# See run-addrcfi.sh for testfilearm.
-
-# = testfileppc32attrs.s =
-# .gnu_attribute 8,1
-# .gnu_attribute 12,1
-#
-# gcc -m32 -c testfileppc32attrs.s
-
-testfiles testfilearm testfileppc32attrs.o
-
-testrun_compare ${abs_top_builddir}/src/readelf -A testfilearm <<\EOF
-
-Object attributes section [27] '.ARM.attributes' of 53 bytes at offset 0x718:
- Owner Size
- aeabi 52
- File: 42
- CPU_name: 7-A
- CPU_arch: v7
- CPU_arch_profile: Application
- ARM_ISA_use: Yes
- THUMB_ISA_use: Thumb-2
- VFP_arch: VFPv3-D16
- ABI_PCS_wchar_t: 4
- ABI_FP_rounding: Needed
- ABI_FP_denormal: Needed
- ABI_FP_exceptions: Needed
- ABI_FP_number_model: IEEE 754
- ABI_align8_needed: Yes
- ABI_align8_preserved: Yes, except leaf SP
- ABI_enum_size: int
- ABI_HardFP_use: SP and DP
- ABI_VFP_args: VFP registers
- CPU_unaligned_access: v6
-EOF
-
-testrun_compare ${abs_top_builddir}/src/readelf -A testfileppc32attrs.o <<\EOF
-
-Object attributes section [ 4] '.gnu.attributes' of 18 bytes at offset 0x34:
- Owner Size
- gnu 17
- File: 9
- GNU_Power_ABI_Vector: Generic
- GNU_Power_ABI_Struct_Return: r3/r4
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-aranges.sh b/src/tests/run-readelf-aranges.sh
deleted file mode 100755
index 3fc3c546..00000000
--- a/src/tests/run-readelf-aranges.sh
+++ /dev/null
@@ -1,161 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Tests readelf --debug-dump=aranges and --debug-dump=decodedaranges
-#
-# - foobarbaz.h
-#
-# int bar ();
-# int baz (int i);
-#
-# - bar.c
-#
-# #include "foobarbaz.h"
-#
-# static int bi;
-#
-# static int
-# barbaz (int i)
-# {
-# return i * 2 - 1;
-# }
-#
-# __attribute__ ((constructor)) void
-# nobar ()
-# {
-# bi = 1;
-# }
-#
-# int
-# bar ()
-# {
-# bi++;
-# return barbaz (bi);
-# }
-#
-# - foo.c
-#
-# include "foobarbaz.h"
-#
-# static int fi = 0;
-#
-# static int
-# foo (int i, int j)
-# {
-# if (i > j)
-# return i - j + fi;
-# else
-# return (2 * j) - i + fi;
-# }
-#
-# int
-# main (int argc, char **argv)
-# {
-# int a = bar ();
-# int b = baz (a + argc);
-# int r = foo (a, b) - 1;
-#
-# return r - 48;
-# }
-#
-# - baz.c
-# include "foobarbaz.h"
-#
-# static int bj;
-#
-# static int
-# bazbaz (int j)
-# {
-# return bj * j - bar ();
-# }
-#
-# __attribute__ ((constructor)) void
-# nobaz ()
-# {
-# bj = 1;
-# }
-#
-# int
-# baz (int i)
-# {
-# if (i < 0)
-# return bazbaz (i);
-# else
-# {
-# while (i-- > 0)
-# bj += bar ();
-# }
-# return bazbaz (i);
-# }
-#
-# gcc -g -O2 -m32 -c baz.c
-# gcc -g -O2 -m32 -c bar.c
-# gcc -g -O2 -m32 -c foo.c
-# gcc -g -O2 -m32 -o testfilefoobarbaz foo.o bar.o baz.o
-
-testfiles testfilefoobarbaz
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=aranges testfilefoobarbaz <<EOF
-
-DWARF section [27] '.debug_aranges' at offset 0x1044:
-
-Table at offset 0:
-
- Length: 28
- DWARF version: 2
- CU offset: 0
- Address size: 4
- Segment size: 0
-
- 0x080482f0 <main>..0x08048323 <main+0x33>
-
-Table at offset 32:
-
- Length: 36
- DWARF version: 2
- CU offset: 136
- Address size: 4
- Segment size: 0
-
- 0x08048440 <bar>..0x08048451 <bar+0x11>
- 0x08048330 <nobar>..0x0804833a <nobar+0xa>
-
-Table at offset 72:
-
- Length: 36
- DWARF version: 2
- CU offset: 1d1
- Address size: 4
- Segment size: 0
-
- 0x08048460 <baz>..0x080484bb <baz+0x5b>
- 0x08048340 <nobaz>..0x0804834a <nobaz+0xa>
-EOF
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=decodedaranges testfilefoobarbaz <<\EOF
-
-DWARF section [27] '.debug_aranges' at offset 0x1044 contains 5 entries:
- [0] start: 0x080482f0, length: 52, CU DIE offset: 11
- [1] start: 0x08048330, length: 11, CU DIE offset: 321
- [2] start: 0x08048340, length: 11, CU DIE offset: 476
- [3] start: 0x08048440, length: 18, CU DIE offset: 321
- [4] start: 0x08048460, length: 92, CU DIE offset: 476
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-d.sh b/src/tests/run-readelf-d.sh
deleted file mode 100755
index d0b6ed24..00000000
--- a/src/tests/run-readelf-d.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# #include <stdio.h>
-#
-# __thread int i;
-#
-# void print_i ()
-# {
-# printf("%d\n", i);
-# }
-#
-# gcc -fPIC -shared -o testlib_dynseg.so testlib_dynseg.c
-# With ld --version
-# GNU gold (GNU Binutils 2.22.52.20120402) 1.11
-
-testfiles testlib_dynseg.so
-
-testrun_compare ${abs_top_builddir}/src/readelf -d testlib_dynseg.so <<\EOF
-
-Dynamic segment contains 28 entries:
- Addr: 0x00000000000017e0 Offset: 0x0007e0 Link to section: [ 3] '.dynstr'
- Type Value
- PLTGOT 0x00000000000019c8
- PLTRELSZ 72 (bytes)
- JMPREL 0x0000000000000568
- PLTREL RELA
- RELA 0x00000000000004d8
- RELASZ 144 (bytes)
- RELAENT 24 (bytes)
- RELACOUNT 1
- SYMTAB 0x0000000000000228
- SYMENT 24 (bytes)
- STRTAB 0x0000000000000360
- STRSZ 190 (bytes)
- GNU_HASH 0x0000000000000420
- NEEDED Shared library: [libc.so.6]
- NEEDED Shared library: [ld-linux-x86-64.so.2]
- INIT 0x00000000000005b0
- FINI 0x0000000000000748
- VERSYM 0x0000000000000460
- VERDEF 0x000000000000047c
- VERDEFNUM 1
- VERNEED 0x0000000000000498
- VERNEEDNUM 2
- NULL
- NULL
- NULL
- NULL
- NULL
- NULL
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-dwz-multi.sh b/src/tests/run-readelf-dwz-multi.sh
deleted file mode 100755
index 27e0f38c..00000000
--- a/src/tests/run-readelf-dwz-multi.sh
+++ /dev/null
@@ -1,332 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012, 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# common.h
-#
-# #include <stdio.h>
-#
-# struct foobar
-# {
-# int foo;
-# struct foobar *bar;
-# };
-#
-# extern int call_foo(struct foobar *foobar_struct_ptr);
-
-# main.c
-#
-# #include "common.h"
-#
-# int main(int argc, char ** argv)
-# {
-# struct foobar b;
-# b.foo = 42;
-# b.bar = &b;
-#
-# return call_foo(b.bar);
-# }
-
-# shared.c
-#
-# #include "common.h"
-#
-# int call_foo(struct foobar *fb)
-# {
-# return fb->bar->foo - 42;
-# }
-
-# gcc -fPIC -g -c -Wall shared.c
-# gcc -shared -o libtestfile_multi_shared.so shared.o
-# gcc -g -o testfile_multi_main -L. -ltestfile_multi_shared main.c -Wl,-rpath,.
-# dwz -m testfile_multi.dwz testfile_multi_main libtestfile_multi_shared.so
-
-# main.c
-#
-# struct foobarbaz
-# {
-# int counter;
-# char *bookstore;
-# };
-#
-# int
-# main (int argc, char **argv)
-# {
-# struct foobarbaz fbb;
-# return 0;
-# }
-
-# gcc -g -o testfile-dwzstr main.c
-# cp testfile-dwzstr testfile-dwzstr.alt
-# dwz -m testfile-dwzstr.multi testfile-dwzstr testfile-dwzstr.alt
-
-testfiles libtestfile_multi_shared.so testfile_multi_main testfile_multi.dwz
-testfiles testfile-dwzstr testfile-dwzstr.multi
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=info testfile_multi_main <<\EOF
-
-DWARF section [28] '.debug_info' at offset 0x1078:
- [Offset]
- Compilation unit at offset 0:
- Version: 4, Abbreviation section offset: 0, Address size: 8, Offset size: 4
- [ b] compile_unit
- producer (strp) "GNU C 4.7.0 20120507 (Red Hat 4.7.0-5) -mtune=generic -march=x86-64 -g"
- language (data1) C89 (1)
- name (strp) "main.c"
- comp_dir (GNU_strp_alt) "/home/mark/src/tests/dwz"
- low_pc (addr) 0x00000000004006ac <main>
- high_pc (udata) 44 (0x00000000004006d8)
- stmt_list (sec_offset) 0
- [ 26] imported_unit
- import (GNU_ref_alt) [ b]
- [ 2b] pointer_type
- byte_size (data1) 8
- type (GNU_ref_alt) [ 53]
- [ 31] subprogram
- external (flag_present)
- name (strp) "main"
- decl_file (data1) 1
- decl_line (data1) 3
- prototyped (flag_present)
- type (GNU_ref_alt) [ 3e]
- low_pc (addr) 0x00000000004006ac <main>
- high_pc (udata) 44 (0x00000000004006d8)
- frame_base (exprloc)
- [ 0] call_frame_cfa
- GNU_all_tail_call_sites (flag_present)
- sibling (ref_udata) [ 6e]
- [ 48] formal_parameter
- name (strp) "argc"
- decl_file (data1) 1
- decl_line (data1) 3
- type (GNU_ref_alt) [ 3e]
- location (exprloc)
- [ 0] fbreg -36
- [ 56] formal_parameter
- name (strp) "argv"
- decl_file (data1) 1
- decl_line (data1) 3
- type (ref_udata) [ 6e]
- location (exprloc)
- [ 0] fbreg -48
- [ 61] variable
- name (string) "b"
- decl_file (data1) 1
- decl_line (data1) 5
- type (GNU_ref_alt) [ 5a]
- location (exprloc)
- [ 0] fbreg -32
- [ 6e] pointer_type
- byte_size (data1) 8
- type (ref_udata) [ 2b]
-EOF
-
-# Same as above, but find alt debug file in a .dwz subdir.
-mkdir .dwz
-mv testfile_multi.dwz .dwz
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=info testfile_multi_main <<\EOF
-
-DWARF section [28] '.debug_info' at offset 0x1078:
- [Offset]
- Compilation unit at offset 0:
- Version: 4, Abbreviation section offset: 0, Address size: 8, Offset size: 4
- [ b] compile_unit
- producer (strp) "GNU C 4.7.0 20120507 (Red Hat 4.7.0-5) -mtune=generic -march=x86-64 -g"
- language (data1) C89 (1)
- name (strp) "main.c"
- comp_dir (GNU_strp_alt) "/home/mark/src/tests/dwz"
- low_pc (addr) 0x00000000004006ac <main>
- high_pc (udata) 44 (0x00000000004006d8)
- stmt_list (sec_offset) 0
- [ 26] imported_unit
- import (GNU_ref_alt) [ b]
- [ 2b] pointer_type
- byte_size (data1) 8
- type (GNU_ref_alt) [ 53]
- [ 31] subprogram
- external (flag_present)
- name (strp) "main"
- decl_file (data1) 1
- decl_line (data1) 3
- prototyped (flag_present)
- type (GNU_ref_alt) [ 3e]
- low_pc (addr) 0x00000000004006ac <main>
- high_pc (udata) 44 (0x00000000004006d8)
- frame_base (exprloc)
- [ 0] call_frame_cfa
- GNU_all_tail_call_sites (flag_present)
- sibling (ref_udata) [ 6e]
- [ 48] formal_parameter
- name (strp) "argc"
- decl_file (data1) 1
- decl_line (data1) 3
- type (GNU_ref_alt) [ 3e]
- location (exprloc)
- [ 0] fbreg -36
- [ 56] formal_parameter
- name (strp) "argv"
- decl_file (data1) 1
- decl_line (data1) 3
- type (ref_udata) [ 6e]
- location (exprloc)
- [ 0] fbreg -48
- [ 61] variable
- name (string) "b"
- decl_file (data1) 1
- decl_line (data1) 5
- type (GNU_ref_alt) [ 5a]
- location (exprloc)
- [ 0] fbreg -32
- [ 6e] pointer_type
- byte_size (data1) 8
- type (ref_udata) [ 2b]
-EOF
-mv .dwz/testfile_multi.dwz .
-rmdir .dwz
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=info libtestfile_multi_shared.so <<\EOF
-
-DWARF section [25] '.debug_info' at offset 0x106c:
- [Offset]
- Compilation unit at offset 0:
- Version: 4, Abbreviation section offset: 0, Address size: 8, Offset size: 4
- [ b] compile_unit
- producer (strp) "GNU C 4.7.0 20120507 (Red Hat 4.7.0-5) -fpreprocessed -mtune=generic -march=x86-64 -g -fPIC"
- language (data1) C89 (1)
- name (strp) "shared.c"
- comp_dir (GNU_strp_alt) "/home/mark/src/tests/dwz"
- low_pc (addr) +0x0000000000000670 <call_foo>
- high_pc (udata) 23 (+0x0000000000000687)
- stmt_list (sec_offset) 0
- [ 26] imported_unit
- import (GNU_ref_alt) [ b]
- [ 2b] subprogram
- external (flag_present)
- name (strp) "call_foo"
- decl_file (data1) 1
- decl_line (data1) 3
- prototyped (flag_present)
- type (GNU_ref_alt) [ 3e]
- low_pc (addr) +0x0000000000000670 <call_foo>
- high_pc (udata) 23 (+0x0000000000000687)
- frame_base (exprloc)
- [ 0] call_frame_cfa
- GNU_all_call_sites (flag_present)
- [ 41] formal_parameter
- name (string) "fb"
- decl_file (data1) 1
- decl_line (data1) 3
- type (GNU_ref_alt) [ 76]
- location (exprloc)
- [ 0] fbreg -24
-EOF
-
-# Same as above, but find alt debug file in a .dwz subdir.
-mkdir .dwz
-mv testfile_multi.dwz .dwz
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=info libtestfile_multi_shared.so <<\EOF
-
-DWARF section [25] '.debug_info' at offset 0x106c:
- [Offset]
- Compilation unit at offset 0:
- Version: 4, Abbreviation section offset: 0, Address size: 8, Offset size: 4
- [ b] compile_unit
- producer (strp) "GNU C 4.7.0 20120507 (Red Hat 4.7.0-5) -fpreprocessed -mtune=generic -march=x86-64 -g -fPIC"
- language (data1) C89 (1)
- name (strp) "shared.c"
- comp_dir (GNU_strp_alt) "/home/mark/src/tests/dwz"
- low_pc (addr) +0x0000000000000670 <call_foo>
- high_pc (udata) 23 (+0x0000000000000687)
- stmt_list (sec_offset) 0
- [ 26] imported_unit
- import (GNU_ref_alt) [ b]
- [ 2b] subprogram
- external (flag_present)
- name (strp) "call_foo"
- decl_file (data1) 1
- decl_line (data1) 3
- prototyped (flag_present)
- type (GNU_ref_alt) [ 3e]
- low_pc (addr) +0x0000000000000670 <call_foo>
- high_pc (udata) 23 (+0x0000000000000687)
- frame_base (exprloc)
- [ 0] call_frame_cfa
- GNU_all_call_sites (flag_present)
- [ 41] formal_parameter
- name (string) "fb"
- decl_file (data1) 1
- decl_line (data1) 3
- type (GNU_ref_alt) [ 76]
- location (exprloc)
- [ 0] fbreg -24
-EOF
-mv .dwz/testfile_multi.dwz .
-rmdir .dwz
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=info testfile-dwzstr <<\EOF
-
-DWARF section [28] '.debug_info' at offset 0x1088:
- [Offset]
- Compilation unit at offset 0:
- Version: 4, Abbreviation section offset: 0, Address size: 8, Offset size: 4
- [ b] compile_unit
- producer (GNU_strp_alt) "GNU C 4.7.2 20121109 (Red Hat 4.7.2-8) -mtune=generic -march=x86-64 -g"
- language (data1) C89 (1)
- name (GNU_strp_alt) "main.c"
- comp_dir (GNU_strp_alt) "/home/mark/src/tests"
- low_pc (addr) 0x00000000004004ec <main>
- high_pc (udata) 18 (0x00000000004004fe)
- stmt_list (sec_offset) 0
- [ 26] imported_unit
- import (GNU_ref_alt) [ b]
- [ 2b] subprogram
- external (flag_present)
- name (GNU_strp_alt) "main"
- decl_file (data1) 1
- decl_line (data1) 8
- prototyped (flag_present)
- type (GNU_ref_alt) [ 30]
- low_pc (addr) 0x00000000004004ec <main>
- high_pc (udata) 18 (0x00000000004004fe)
- frame_base (exprloc)
- [ 0] call_frame_cfa
- GNU_all_call_sites (flag_present)
- [ 41] formal_parameter
- name (GNU_strp_alt) "argc"
- decl_file (data1) 1
- decl_line (data1) 8
- type (GNU_ref_alt) [ 30]
- location (exprloc)
- [ 0] fbreg -36
- [ 4f] formal_parameter
- name (GNU_strp_alt) "argv"
- decl_file (data1) 1
- decl_line (data1) 8
- type (GNU_ref_alt) [ 41]
- location (exprloc)
- [ 0] fbreg -48
- [ 5d] variable
- name (string) "fbb"
- decl_file (data1) 1
- decl_line (data1) 10
- type (GNU_ref_alt) [ 14]
- location (exprloc)
- [ 0] fbreg -32
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-gdb_index.sh b/src/tests/run-readelf-gdb_index.sh
deleted file mode 100755
index fcbc3c57..00000000
--- a/src/tests/run-readelf-gdb_index.sh
+++ /dev/null
@@ -1,130 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# common.h
-# struct foo
-# {
-# const char *bar;
-# };
-#
-# extern char *global;
-# int say (struct foo *prefix);
-
-# hello.c
-# #include "common.h"
-#
-# static char *hello = "Hello";
-#
-# int
-# main (int argc, char **argv)
-# {
-# struct foo baz;
-# global = hello;
-# baz.bar = global;
-# return say(&baz);
-# }
-
-# world.c
-# #include "common.h"
-#
-# char *global;
-#
-# static int hello (const char *bar)
-# {
-# return bar == global;
-# }
-#
-# int
-# say (struct foo *prefix)
-# {
-# return hello (prefix->bar);
-# }
-
-# gcc -g -fdebug-types-section -c hello.c
-# gcc -g -fdebug-types-section -c world.c
-# gcc -g -fdebug-types-section -o testfilegdbindex7 hello.o world.o
-# gdb testfilegdbindex7
-# (gdb) save gdb-index .
-# objcopy --add-section .gdb_index=testfilegdbindex7.gdb-index --set-section-flags .gdb_index=readonly testfilegdbindex7 testfilegdbindex7
-
-testfiles testfilegdbindex5 testfilegdbindex7
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=gdb_index testfilegdbindex5 <<\EOF
-
-GDB section [33] '.gdb_index' at offset 0xe76 contains 8383 bytes :
- Version: 5
- CU offset: 0x18
- TU offset: 0x38
- address offset: 0x50
- symbol offset: 0x78
- constant offset: 0x2078
-
- CU list at offset 0x18 contains 2 entries:
- [ 0] start: 00000000, length: 184
- [ 1] start: 0x0000b8, length: 204
-
- TU list at offset 0x38 contains 1 entries:
- [ 0] CU offset: 0, type offset: 29, signature: 0x87e03f92cc37cdf0
-
- Address list at offset 0x50 contains 2 entries:
- [ 0] 0x000000000040049c <main>..0x00000000004004d1 <main+0x35>, CU index: 0
- [ 1] 0x00000000004004d4 <hello>..0x000000000040050b <say+0x1c>, CU index: 1
-
- Symbol table at offset 0x50 contains 1024 slots:
- [ 123] symbol: global, CUs: 1
- [ 489] symbol: main, CUs: 0
- [ 518] symbol: char, CUs: 0
- [ 661] symbol: foo, CUs: 0T
- [ 741] symbol: hello, CUs: 0, 1
- [ 746] symbol: say, CUs: 1
- [ 754] symbol: int, CUs: 0
-EOF
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=gdb_index testfilegdbindex7 <<\EOF
-
-GDB section [33] '.gdb_index' at offset 0xe76 contains 8399 bytes :
- Version: 7
- CU offset: 0x18
- TU offset: 0x38
- address offset: 0x50
- symbol offset: 0x78
- constant offset: 0x2078
-
- CU list at offset 0x18 contains 2 entries:
- [ 0] start: 00000000, length: 184
- [ 1] start: 0x0000b8, length: 204
-
- TU list at offset 0x38 contains 1 entries:
- [ 0] CU offset: 0, type offset: 29, signature: 0x87e03f92cc37cdf0
-
- Address list at offset 0x50 contains 2 entries:
- [ 0] 0x000000000040049c <main>..0x00000000004004d1 <main+0x35>, CU index: 0
- [ 1] 0x00000000004004d4 <hello>..0x000000000040050b <say+0x1c>, CU index: 1
-
- Symbol table at offset 0x50 contains 1024 slots:
- [ 123] symbol: global, CUs: 1 (var:G)
- [ 489] symbol: main, CUs: 0 (func:G)
- [ 518] symbol: char, CUs: 0 (type:S)
- [ 661] symbol: foo, CUs: 0T (type:S)
- [ 741] symbol: hello, CUs: 0 (var:S), 1 (func:S)
- [ 746] symbol: say, CUs: 1 (func:G)
- [ 754] symbol: int, CUs: 0 (type:S)
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-line.sh b/src/tests/run-readelf-line.sh
deleted file mode 100755
index 32bcf9d5..00000000
--- a/src/tests/run-readelf-line.sh
+++ /dev/null
@@ -1,259 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Tests readelf --debug-dump=line and --debug-dump=decodedline
-# See run-readelf-aranges for testfiles.
-
-testfiles testfilefoobarbaz
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=line testfilefoobarbaz <<EOF
-
-DWARF section [30] '.debug_line' at offset 0x15f6:
-
-Table at offset 0:
-
- Length: 83
- DWARF version: 2
- Prologue length: 43
- Minimum instruction length: 1
- Maximum operations per instruction: 1
- Initial value if 'is_stmt': 1
- Line base: -5
- Line range: 14
- Opcode base: 13
-
-Opcodes:
- [ 1] 0 arguments
- [ 2] 1 argument
- [ 3] 1 argument
- [ 4] 1 argument
- [ 5] 1 argument
- [ 6] 0 arguments
- [ 7] 0 arguments
- [ 8] 0 arguments
- [ 9] 1 argument
- [10] 0 arguments
- [11] 0 arguments
- [12] 1 argument
-
-Directory table:
-
-File name table:
- Entry Dir Time Size Name
- 1 0 0 0 foo.c
- 2 0 0 0 foobarbaz.h
-
-Line number statements:
- [ 35] extended opcode 2: set address to 0x80482f0 <main>
- [ 3c] advance line by constant 15 to 16
- [ 3e] copy
- [ 3f] special opcode 159: address+10 = 0x80482fa <main+0xa>, line+1 = 17
- [ 40] special opcode 117: address+7 = 0x8048301 <main+0x11>, line+1 = 18
- [ 41] advance line by constant -9 to 9
- [ 43] special opcode 200: address+13 = 0x804830e <main+0x1e>, line+0 = 9
- [ 44] special opcode 48: address+2 = 0x8048310 <main+0x20>, line+2 = 11
- [ 45] special opcode 58: address+3 = 0x8048313 <main+0x23>, line-2 = 9
- [ 46] special opcode 48: address+2 = 0x8048315 <main+0x25>, line+2 = 11
- [ 47] special opcode 44: address+2 = 0x8048317 <main+0x27>, line-2 = 9
- [ 48] advance line by constant 13 to 22
- [ 4a] special opcode 46: address+2 = 0x8048319 <main+0x29>, line+0 = 22
- [ 4b] advance line by constant -13 to 9
- [ 4d] special opcode 60: address+3 = 0x804831c <main+0x2c>, line+0 = 9
- [ 4e] advance line by constant 12 to 21
- [ 50] special opcode 60: address+3 = 0x804831f <main+0x2f>, line+0 = 21
- [ 51] special opcode 61: address+3 = 0x8048322 <main+0x32>, line+1 = 22
- [ 52] advance address by 2 to 0x8048324
- [ 54] extended opcode 1: end of sequence
-
-Table at offset 87:
-
- Length: 72
- DWARF version: 2
- Prologue length: 28
- Minimum instruction length: 1
- Maximum operations per instruction: 1
- Initial value if 'is_stmt': 1
- Line base: -5
- Line range: 14
- Opcode base: 13
-
-Opcodes:
- [ 1] 0 arguments
- [ 2] 1 argument
- [ 3] 1 argument
- [ 4] 1 argument
- [ 5] 1 argument
- [ 6] 0 arguments
- [ 7] 0 arguments
- [ 8] 0 arguments
- [ 9] 1 argument
- [10] 0 arguments
- [11] 0 arguments
- [12] 1 argument
-
-Directory table:
-
-File name table:
- Entry Dir Time Size Name
- 1 0 0 0 bar.c
-
-Line number statements:
- [ 7d] extended opcode 2: set address to 0x8048330 <nobar>
- [ 84] advance line by constant 12 to 13
- [ 86] copy
- [ 87] special opcode 19: address+0 = 0x8048330 <nobar>, line+1 = 14
- [ 88] advance address by 11 to 0x804833b
- [ 8a] extended opcode 1: end of sequence
- [ 8d] extended opcode 2: set address to 0x8048440 <bar>
- [ 94] advance line by constant 18 to 19
- [ 96] copy
- [ 97] special opcode 19: address+0 = 0x8048440 <bar>, line+1 = 20
- [ 98] advance line by constant -12 to 8
- [ 9a] special opcode 200: address+13 = 0x804844d <bar+0xd>, line+0 = 8
- [ 9b] advance line by constant 14 to 22
- [ 9d] special opcode 74: address+4 = 0x8048451 <bar+0x11>, line+0 = 22
- [ 9e] advance address by 1 to 0x8048452
- [ a0] extended opcode 1: end of sequence
-
-Table at offset 163:
-
- Length: 106
- DWARF version: 2
- Prologue length: 43
- Minimum instruction length: 1
- Maximum operations per instruction: 1
- Initial value if 'is_stmt': 1
- Line base: -5
- Line range: 14
- Opcode base: 13
-
-Opcodes:
- [ 1] 0 arguments
- [ 2] 1 argument
- [ 3] 1 argument
- [ 4] 1 argument
- [ 5] 1 argument
- [ 6] 0 arguments
- [ 7] 0 arguments
- [ 8] 0 arguments
- [ 9] 1 argument
- [10] 0 arguments
- [11] 0 arguments
- [12] 1 argument
-
-Directory table:
-
-File name table:
- Entry Dir Time Size Name
- 1 0 0 0 baz.c
- 2 0 0 0 foobarbaz.h
-
-Line number statements:
- [ d8] extended opcode 2: set address to 0x8048340 <nobaz>
- [ df] advance line by constant 12 to 13
- [ e1] copy
- [ e2] special opcode 19: address+0 = 0x8048340 <nobaz>, line+1 = 14
- [ e3] advance address by 11 to 0x804834b
- [ e5] extended opcode 1: end of sequence
- [ e8] extended opcode 2: set address to 0x8048460 <baz>
- [ ef] advance line by constant 18 to 19
- [ f1] copy
- [ f2] special opcode 74: address+4 = 0x8048464 <baz+0x4>, line+0 = 19
- [ f3] special opcode 75: address+4 = 0x8048468 <baz+0x8>, line+1 = 20
- [ f4] extended opcode 4: set discriminator to 1
- [ f8] special opcode 78: address+4 = 0x804846c <baz+0xc>, line+4 = 24
- [ f9] special opcode 187: address+12 = 0x8048478 <baz+0x18>, line+1 = 25
- [ fa] special opcode 87: address+5 = 0x804847d <baz+0x1d>, line-1 = 24
- [ fb] special opcode 61: address+3 = 0x8048480 <baz+0x20>, line+1 = 25
- [ fc] special opcode 101: address+6 = 0x8048486 <baz+0x26>, line-1 = 24
- [ fd] special opcode 61: address+3 = 0x8048489 <baz+0x29>, line+1 = 25
- [ fe] special opcode 87: address+5 = 0x804848e <baz+0x2e>, line-1 = 24
- [ ff] advance line by constant -16 to 8
- [ 101] special opcode 46: address+2 = 0x8048490 <baz+0x30>, line+0 = 8
- [ 102] advance line by constant 20 to 28
- [ 104] special opcode 186: address+12 = 0x804849c <baz+0x3c>, line+0 = 28
- [ 105] advance line by constant -20 to 8
- [ 107] special opcode 88: address+5 = 0x80484a1 <baz+0x41>, line+0 = 8
- [ 108] advance line by constant 13 to 21
- [ 10a] advance address by constant 17 to 0x80484b2 <baz+0x52>
- [ 10b] special opcode 32: address+1 = 0x80484b3 <baz+0x53>, line+0 = 21
- [ 10c] advance address by 9 to 0x80484bc
- [ 10e] extended opcode 1: end of sequence
-EOF
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=decodedline testfilefoobarbaz <<\EOF
-
-DWARF section [30] '.debug_line' at offset 0x15f6:
-
- CU [b] foo.c
- line:col SBPE* disc isa op address (Statement Block Prologue Epilogue *End)
- /home/mark/src/tests/foobarbaz/foo.c (mtime: 0, length: 0)
- 16:0 S 0 0 0 0x080482f0 <main>
- 17:0 S 0 0 0 0x080482fa <main+0xa>
- 18:0 S 0 0 0 0x08048301 <main+0x11>
- 9:0 S 0 0 0 0x0804830e <main+0x1e>
- 11:0 S 0 0 0 0x08048310 <main+0x20>
- 9:0 S 0 0 0 0x08048313 <main+0x23>
- 11:0 S 0 0 0 0x08048315 <main+0x25>
- 9:0 S 0 0 0 0x08048317 <main+0x27>
- 22:0 S 0 0 0 0x08048319 <main+0x29>
- 9:0 S 0 0 0 0x0804831c <main+0x2c>
- 21:0 S 0 0 0 0x0804831f <main+0x2f>
- 22:0 S 0 0 0 0x08048322 <main+0x32>
- 22:0 S * 0 0 0 0x08048323 <main+0x33>
-
- CU [141] bar.c
- line:col SBPE* disc isa op address (Statement Block Prologue Epilogue *End)
- /home/mark/src/tests/foobarbaz/bar.c (mtime: 0, length: 0)
- 13:0 S 0 0 0 0x08048330 <nobar>
- 14:0 S 0 0 0 0x08048330 <nobar>
- 14:0 S * 0 0 0 0x0804833a <nobar+0xa>
-
- 19:0 S 0 0 0 0x08048440 <bar>
- 20:0 S 0 0 0 0x08048440 <bar>
- 8:0 S 0 0 0 0x0804844d <bar+0xd>
- 22:0 S 0 0 0 0x08048451 <bar+0x11>
- 22:0 S * 0 0 0 0x08048451 <bar+0x11>
-
- CU [1dc] baz.c
- line:col SBPE* disc isa op address (Statement Block Prologue Epilogue *End)
- /home/mark/src/tests/foobarbaz/baz.c (mtime: 0, length: 0)
- 13:0 S 0 0 0 0x08048340 <nobaz>
- 14:0 S 0 0 0 0x08048340 <nobaz>
- 14:0 S * 0 0 0 0x0804834a <nobaz+0xa>
-
- 19:0 S 0 0 0 0x08048460 <baz>
- 19:0 S 0 0 0 0x08048464 <baz+0x4>
- 20:0 S 0 0 0 0x08048468 <baz+0x8>
- 24:0 S 1 0 0 0x0804846c <baz+0xc>
- 25:0 S 0 0 0 0x08048478 <baz+0x18>
- 24:0 S 0 0 0 0x0804847d <baz+0x1d>
- 25:0 S 0 0 0 0x08048480 <baz+0x20>
- 24:0 S 0 0 0 0x08048486 <baz+0x26>
- 25:0 S 0 0 0 0x08048489 <baz+0x29>
- 24:0 S 0 0 0 0x0804848e <baz+0x2e>
- 8:0 S 0 0 0 0x08048490 <baz+0x30>
- 28:0 S 0 0 0 0x0804849c <baz+0x3c>
- 8:0 S 0 0 0 0x080484a1 <baz+0x41>
- 21:0 S 0 0 0 0x080484b3 <baz+0x53>
- 21:0 S * 0 0 0 0x080484bb <baz+0x5b>
-
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-loc.sh b/src/tests/run-readelf-loc.sh
deleted file mode 100755
index 98870fcf..00000000
--- a/src/tests/run-readelf-loc.sh
+++ /dev/null
@@ -1,109 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# - hello.c
-# int say (const char *prefix);
-#
-# static char *
-# subject (char *word, int count)
-# {
-# return count > 0 ? word : (word + count);
-# }
-#
-# int
-# main (int argc, char **argv)
-# {
-# return say (subject (argv[0], argc));
-# }
-#
-# - world.c
-# static int
-# sad (char c)
-# {
-# return c > 0 ? c : c + 1;
-# }
-#
-# static int
-# happy (const char *w)
-# {
-# return sad (w[1]);
-# }
-#
-# int
-# say (const char *prefix)
-# {
-# const char *world = "World";
-# return prefix ? sad (prefix[0]) : happy (world);
-# }
-#
-# gcc -g -O2 -c hello.c
-# gcc -g -O2 -c world.c
-# gcc -g -o testfileloc hello.o world.o
-
-testfiles testfileloc
-
-# Process values as offsets from base addresses and resolve to symbols.
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=loc --debug-dump=ranges \
- testfileloc<<\EOF
-
-DWARF section [33] '.debug_loc' at offset 0xd2a:
- [ 0] 0x0000000000400480 <main>..0x000000000040048d <main+0xd> [ 0] reg5
- [ 23] 0x0000000000400485 <main+0x5>..0x000000000040048d <main+0xd> [ 0] reg5
- [ 46] 0x00000000004004b2 <say+0x12>..0x00000000004004ba <say+0x1a> [ 0] breg5 0
-
-DWARF section [34] '.debug_ranges' at offset 0xd94:
- [ 0] 0x0000000000400480 <main>..0x0000000000400482 <main+0x2>
- 0x0000000000400485 <main+0x5>..0x000000000040048d <main+0xd>
- [ 30] 0x00000000004004ad <say+0xd>..0x00000000004004af <say+0xf>
- 0x00000000004004b2 <say+0x12>..0x00000000004004ba <say+0x1a>
-EOF
-
-# Don't resolve addresses to symbols.
-testrun_compare ${abs_top_builddir}/src/readelf -N --debug-dump=loc --debug-dump=ranges \
- testfileloc<<\EOF
-
-DWARF section [33] '.debug_loc' at offset 0xd2a:
- [ 0] 0x0000000000400480..0x000000000040048d [ 0] reg5
- [ 23] 0x0000000000400485..0x000000000040048d [ 0] reg5
- [ 46] 0x00000000004004b2..0x00000000004004ba [ 0] breg5 0
-
-DWARF section [34] '.debug_ranges' at offset 0xd94:
- [ 0] 0x0000000000400480..0x0000000000400482
- 0x0000000000400485..0x000000000040048d
- [ 30] 0x00000000004004ad..0x00000000004004af
- 0x00000000004004b2..0x00000000004004ba
-EOF
-
-# Produce "raw" unprocessed content.
-testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=loc --debug-dump=ranges \
- testfileloc<<\EOF
-
-DWARF section [33] '.debug_loc' at offset 0xd2a:
- [ 0] 000000000000000000..0x000000000000000d [ 0] reg5
- [ 23] 0x0000000000000005..0x000000000000000d [ 0] reg5
- [ 46] 0x0000000000000012..0x000000000000001a [ 0] breg5 0
-
-DWARF section [34] '.debug_ranges' at offset 0xd94:
- [ 0] 000000000000000000..0x0000000000000002
- 0x0000000000000005..0x000000000000000d
- [ 30] 0x000000000000000d..0x000000000000000f
- 0x0000000000000012..0x000000000000001a
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-macro.sh b/src/tests/run-readelf-macro.sh
deleted file mode 100755
index 86932033..00000000
--- a/src/tests/run-readelf-macro.sh
+++ /dev/null
@@ -1,345 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# common.h
-# #define ONE 1
-# #define TWO 2
-# #define THREE 3
-#
-# #define WORLD "World"
-#
-# int say (const char *prefix);
-#
-# #define A 'a'
-# #define B b
-# #define C "C"
-#
-# #ifdef THREE
-# #undef THREE
-# #define THREE(ARG1,ARG2,ARG3) ARG3
-# #endif
-
-# hello.c
-# #include "common.h"
-#
-# int
-# main (int argc, char **argv)
-# {
-# return say (WORLD);
-# }
-
-# world.c
-# #include "common.h"
-#
-# int
-# say (const char *prefix)
-# {
-# return prefix ? ONE : TWO;
-# }
-
-# gcc -g3 -c hello.c
-# gcc -g3 -c world.c
-# gcc -g3 -o testfilemacro hello.o world.o
-
-testfiles testfilemacro
-
-testrun_compare ${abs_top_builddir}/src/readelf --debug-dump=macro testfilemacro <<\EOF
-
-DWARF section [32] '.debug_macro' at offset 0x2480:
-
- Offset: 0x0
- Version: 4
- Flag: 0x2
- Offset length: 4
- .debug_line offset: 0x0
-
- #include offset 0x1a
- start_file 0, [1] /home/mark/src/tests/hello.c
- start_file 1, [2] /home/mark/src/tests/common.h
- #include offset 0x582
- end_file
- end_file
-
- Offset: 0x1a
- Version: 4
- Flag: 0x0
- Offset length: 4
-
- #define __STDC__ 1, line 1 (indirect)
- #define __STDC_HOSTED__ 1, line 1 (indirect)
- #define __GNUC__ 4, line 1 (indirect)
- #define __GNUC_MINOR__ 7, line 1 (indirect)
- #define __GNUC_PATCHLEVEL__ 1, line 1 (indirect)
- #define __VERSION__ "4.7.1 20120629 (Red Hat 4.7.1-1)", line 1 (indirect)
- #define __GNUC_RH_RELEASE__ 1, line 1 (indirect)
- #define __ATOMIC_RELAXED 0, line 1 (indirect)
- #define __ATOMIC_SEQ_CST 5, line 1 (indirect)
- #define __ATOMIC_ACQUIRE 2, line 1 (indirect)
- #define __ATOMIC_RELEASE 3, line 1 (indirect)
- #define __ATOMIC_ACQ_REL 4, line 1 (indirect)
- #define __ATOMIC_CONSUME 1, line 1 (indirect)
- #define __FINITE_MATH_ONLY__ 0, line 1 (indirect)
- #define _LP64 1, line 1 (indirect)
- #define __LP64__ 1, line 1 (indirect)
- #define __SIZEOF_INT__ 4, line 1 (indirect)
- #define __SIZEOF_LONG__ 8, line 1 (indirect)
- #define __SIZEOF_LONG_LONG__ 8, line 1 (indirect)
- #define __SIZEOF_SHORT__ 2, line 1 (indirect)
- #define __SIZEOF_FLOAT__ 4, line 1 (indirect)
- #define __SIZEOF_DOUBLE__ 8, line 1 (indirect)
- #define __SIZEOF_LONG_DOUBLE__ 16, line 1 (indirect)
- #define __SIZEOF_SIZE_T__ 8, line 1 (indirect)
- #define __CHAR_BIT__ 8, line 1 (indirect)
- #define __BIGGEST_ALIGNMENT__ 16, line 1 (indirect)
- #define __ORDER_LITTLE_ENDIAN__ 1234, line 1 (indirect)
- #define __ORDER_BIG_ENDIAN__ 4321, line 1 (indirect)
- #define __ORDER_PDP_ENDIAN__ 3412, line 1 (indirect)
- #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__, line 1 (indirect)
- #define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__, line 1 (indirect)
- #define __SIZEOF_POINTER__ 8, line 1 (indirect)
- #define __SIZE_TYPE__ long unsigned int, line 1 (indirect)
- #define __PTRDIFF_TYPE__ long int, line 1 (indirect)
- #define __WCHAR_TYPE__ int, line 1 (indirect)
- #define __WINT_TYPE__ unsigned int, line 1 (indirect)
- #define __INTMAX_TYPE__ long int, line 1 (indirect)
- #define __UINTMAX_TYPE__ long unsigned int, line 1 (indirect)
- #define __CHAR16_TYPE__ short unsigned int, line 1 (indirect)
- #define __CHAR32_TYPE__ unsigned int, line 1 (indirect)
- #define __SIG_ATOMIC_TYPE__ int, line 1 (indirect)
- #define __INT8_TYPE__ signed char, line 1 (indirect)
- #define __INT16_TYPE__ short int, line 1 (indirect)
- #define __INT32_TYPE__ int, line 1 (indirect)
- #define __INT64_TYPE__ long int, line 1 (indirect)
- #define __UINT8_TYPE__ unsigned char, line 1 (indirect)
- #define __UINT16_TYPE__ short unsigned int, line 1 (indirect)
- #define __UINT32_TYPE__ unsigned int, line 1 (indirect)
- #define __UINT64_TYPE__ long unsigned int, line 1 (indirect)
- #define __INT_LEAST8_TYPE__ signed char, line 1 (indirect)
- #define __INT_LEAST16_TYPE__ short int, line 1 (indirect)
- #define __INT_LEAST32_TYPE__ int, line 1 (indirect)
- #define __INT_LEAST64_TYPE__ long int, line 1 (indirect)
- #define __UINT_LEAST8_TYPE__ unsigned char, line 1 (indirect)
- #define __UINT_LEAST16_TYPE__ short unsigned int, line 1 (indirect)
- #define __UINT_LEAST32_TYPE__ unsigned int, line 1 (indirect)
- #define __UINT_LEAST64_TYPE__ long unsigned int, line 1 (indirect)
- #define __INT_FAST8_TYPE__ signed char, line 1 (indirect)
- #define __INT_FAST16_TYPE__ long int, line 1 (indirect)
- #define __INT_FAST32_TYPE__ long int, line 1 (indirect)
- #define __INT_FAST64_TYPE__ long int, line 1 (indirect)
- #define __UINT_FAST8_TYPE__ unsigned char, line 1 (indirect)
- #define __UINT_FAST16_TYPE__ long unsigned int, line 1 (indirect)
- #define __UINT_FAST32_TYPE__ long unsigned int, line 1 (indirect)
- #define __UINT_FAST64_TYPE__ long unsigned int, line 1 (indirect)
- #define __INTPTR_TYPE__ long int, line 1 (indirect)
- #define __UINTPTR_TYPE__ long unsigned int, line 1 (indirect)
- #define __GXX_ABI_VERSION 1002, line 1 (indirect)
- #define __SCHAR_MAX__ 127, line 1 (indirect)
- #define __SHRT_MAX__ 32767, line 1 (indirect)
- #define __INT_MAX__ 2147483647, line 1 (indirect)
- #define __LONG_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __LONG_LONG_MAX__ 9223372036854775807LL, line 1 (indirect)
- #define __WCHAR_MAX__ 2147483647, line 1 (indirect)
- #define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1), line 1 (indirect)
- #define __WINT_MAX__ 4294967295U, line 1 (indirect)
- #define __WINT_MIN__ 0U, line 1 (indirect)
- #define __PTRDIFF_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __SIZE_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __INTMAX_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __INTMAX_C(c) c ## L, line 1 (indirect)
- #define __UINTMAX_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __UINTMAX_C(c) c ## UL, line 1 (indirect)
- #define __SIG_ATOMIC_MAX__ 2147483647, line 1 (indirect)
- #define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1), line 1 (indirect)
- #define __INT8_MAX__ 127, line 1 (indirect)
- #define __INT16_MAX__ 32767, line 1 (indirect)
- #define __INT32_MAX__ 2147483647, line 1 (indirect)
- #define __INT64_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __UINT8_MAX__ 255, line 1 (indirect)
- #define __UINT16_MAX__ 65535, line 1 (indirect)
- #define __UINT32_MAX__ 4294967295U, line 1 (indirect)
- #define __UINT64_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __INT_LEAST8_MAX__ 127, line 1 (indirect)
- #define __INT8_C(c) c, line 1 (indirect)
- #define __INT_LEAST16_MAX__ 32767, line 1 (indirect)
- #define __INT16_C(c) c, line 1 (indirect)
- #define __INT_LEAST32_MAX__ 2147483647, line 1 (indirect)
- #define __INT32_C(c) c, line 1 (indirect)
- #define __INT_LEAST64_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __INT64_C(c) c ## L, line 1 (indirect)
- #define __UINT_LEAST8_MAX__ 255, line 1 (indirect)
- #define __UINT8_C(c) c, line 1 (indirect)
- #define __UINT_LEAST16_MAX__ 65535, line 1 (indirect)
- #define __UINT16_C(c) c, line 1 (indirect)
- #define __UINT_LEAST32_MAX__ 4294967295U, line 1 (indirect)
- #define __UINT32_C(c) c ## U, line 1 (indirect)
- #define __UINT_LEAST64_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __UINT64_C(c) c ## UL, line 1 (indirect)
- #define __INT_FAST8_MAX__ 127, line 1 (indirect)
- #define __INT_FAST16_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __INT_FAST32_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __INT_FAST64_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __UINT_FAST8_MAX__ 255, line 1 (indirect)
- #define __UINT_FAST16_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __UINT_FAST32_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __UINT_FAST64_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __INTPTR_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __UINTPTR_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __FLT_EVAL_METHOD__ 0, line 1 (indirect)
- #define __DEC_EVAL_METHOD__ 2, line 1 (indirect)
- #define __FLT_RADIX__ 2, line 1 (indirect)
- #define __FLT_MANT_DIG__ 24, line 1 (indirect)
- #define __FLT_DIG__ 6, line 1 (indirect)
- #define __FLT_MIN_EXP__ (-125), line 1 (indirect)
- #define __FLT_MIN_10_EXP__ (-37), line 1 (indirect)
- #define __FLT_MAX_EXP__ 128, line 1 (indirect)
- #define __FLT_MAX_10_EXP__ 38, line 1 (indirect)
- #define __FLT_DECIMAL_DIG__ 9, line 1 (indirect)
- #define __FLT_MAX__ 3.40282346638528859812e+38F, line 1 (indirect)
- #define __FLT_MIN__ 1.17549435082228750797e-38F, line 1 (indirect)
- #define __FLT_EPSILON__ 1.19209289550781250000e-7F, line 1 (indirect)
- #define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F, line 1 (indirect)
- #define __FLT_HAS_DENORM__ 1, line 1 (indirect)
- #define __FLT_HAS_INFINITY__ 1, line 1 (indirect)
- #define __FLT_HAS_QUIET_NAN__ 1, line 1 (indirect)
- #define __DBL_MANT_DIG__ 53, line 1 (indirect)
- #define __DBL_DIG__ 15, line 1 (indirect)
- #define __DBL_MIN_EXP__ (-1021), line 1 (indirect)
- #define __DBL_MIN_10_EXP__ (-307), line 1 (indirect)
- #define __DBL_MAX_EXP__ 1024, line 1 (indirect)
- #define __DBL_MAX_10_EXP__ 308, line 1 (indirect)
- #define __DBL_DECIMAL_DIG__ 17, line 1 (indirect)
- #define __DBL_MAX__ ((double)1.79769313486231570815e+308L), line 1 (indirect)
- #define __DBL_MIN__ ((double)2.22507385850720138309e-308L), line 1 (indirect)
- #define __DBL_EPSILON__ ((double)2.22044604925031308085e-16L), line 1 (indirect)
- #define __DBL_DENORM_MIN__ ((double)4.94065645841246544177e-324L), line 1 (indirect)
- #define __DBL_HAS_DENORM__ 1, line 1 (indirect)
- #define __DBL_HAS_INFINITY__ 1, line 1 (indirect)
- #define __DBL_HAS_QUIET_NAN__ 1, line 1 (indirect)
- #define __LDBL_MANT_DIG__ 64, line 1 (indirect)
- #define __LDBL_DIG__ 18, line 1 (indirect)
- #define __LDBL_MIN_EXP__ (-16381), line 1 (indirect)
- #define __LDBL_MIN_10_EXP__ (-4931), line 1 (indirect)
- #define __LDBL_MAX_EXP__ 16384, line 1 (indirect)
- #define __LDBL_MAX_10_EXP__ 4932, line 1 (indirect)
- #define __DECIMAL_DIG__ 21, line 1 (indirect)
- #define __LDBL_MAX__ 1.18973149535723176502e+4932L, line 1 (indirect)
- #define __LDBL_MIN__ 3.36210314311209350626e-4932L, line 1 (indirect)
- #define __LDBL_EPSILON__ 1.08420217248550443401e-19L, line 1 (indirect)
- #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L, line 1 (indirect)
- #define __LDBL_HAS_DENORM__ 1, line 1 (indirect)
- #define __LDBL_HAS_INFINITY__ 1, line 1 (indirect)
- #define __LDBL_HAS_QUIET_NAN__ 1, line 1 (indirect)
- #define __DEC32_MANT_DIG__ 7, line 1 (indirect)
- #define __DEC32_MIN_EXP__ (-94), line 1 (indirect)
- #define __DEC32_MAX_EXP__ 97, line 1 (indirect)
- #define __DEC32_MIN__ 1E-95DF, line 1 (indirect)
- #define __DEC32_MAX__ 9.999999E96DF, line 1 (indirect)
- #define __DEC32_EPSILON__ 1E-6DF, line 1 (indirect)
- #define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF, line 1 (indirect)
- #define __DEC64_MANT_DIG__ 16, line 1 (indirect)
- #define __DEC64_MIN_EXP__ (-382), line 1 (indirect)
- #define __DEC64_MAX_EXP__ 385, line 1 (indirect)
- #define __DEC64_MIN__ 1E-383DD, line 1 (indirect)
- #define __DEC64_MAX__ 9.999999999999999E384DD, line 1 (indirect)
- #define __DEC64_EPSILON__ 1E-15DD, line 1 (indirect)
- #define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD, line 1 (indirect)
- #define __DEC128_MANT_DIG__ 34, line 1 (indirect)
- #define __DEC128_MIN_EXP__ (-6142), line 1 (indirect)
- #define __DEC128_MAX_EXP__ 6145, line 1 (indirect)
- #define __DEC128_MIN__ 1E-6143DL, line 1 (indirect)
- #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL, line 1 (indirect)
- #define __DEC128_EPSILON__ 1E-33DL, line 1 (indirect)
- #define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL, line 1 (indirect)
- #define __REGISTER_PREFIX__ , line 1 (indirect)
- #define __USER_LABEL_PREFIX__ , line 1 (indirect)
- #define __GNUC_GNU_INLINE__ 1, line 1 (indirect)
- #define __NO_INLINE__ 1, line 1 (indirect)
- #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1, line 1 (indirect)
- #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1, line 1 (indirect)
- #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1, line 1 (indirect)
- #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1, line 1 (indirect)
- #define __GCC_ATOMIC_BOOL_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_CHAR_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_SHORT_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_INT_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_LONG_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_LLONG_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1, line 1 (indirect)
- #define __GCC_ATOMIC_POINTER_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_HAVE_DWARF2_CFI_ASM 1, line 1 (indirect)
- #define __PRAGMA_REDEFINE_EXTNAME 1, line 1 (indirect)
- #define __SIZEOF_INT128__ 16, line 1 (indirect)
- #define __SIZEOF_WCHAR_T__ 4, line 1 (indirect)
- #define __SIZEOF_WINT_T__ 4, line 1 (indirect)
- #define __SIZEOF_PTRDIFF_T__ 8, line 1 (indirect)
- #define __amd64 1, line 1 (indirect)
- #define __amd64__ 1, line 1 (indirect)
- #define __x86_64 1, line 1 (indirect)
- #define __x86_64__ 1, line 1 (indirect)
- #define __k8 1, line 1 (indirect)
- #define __k8__ 1, line 1 (indirect)
- #define __MMX__ 1, line 1 (indirect)
- #define __SSE__ 1, line 1 (indirect)
- #define __SSE2__ 1, line 1 (indirect)
- #define __SSE_MATH__ 1, line 1 (indirect)
- #define __SSE2_MATH__ 1, line 1 (indirect)
- #define __gnu_linux__ 1, line 1 (indirect)
- #define __linux 1, line 1 (indirect)
- #define __linux__ 1, line 1 (indirect)
- #define linux 1, line 1 (indirect)
- #define __unix 1, line 1 (indirect)
- #define __unix__ 1, line 1 (indirect)
- #define unix 1, line 1 (indirect)
- #define __ELF__ 1, line 1 (indirect)
- #define __DECIMAL_BID_FORMAT__ 1, line 1 (indirect)
-
- Offset: 0x582
- Version: 4
- Flag: 0x0
- Offset length: 4
-
- #define ONE 1, line 1 (indirect)
- #define TWO 2, line 2 (indirect)
- #define THREE 3, line 3 (indirect)
- #define WORLD "World", line 5 (indirect)
- #define A 'a', line 9 (indirect)
- #define B b, line 10
- #define C "C", line 11 (indirect)
- #undef THREE, line 14 (indirect)
- #define THREE(ARG1,ARG2,ARG3) ARG3, line 15 (indirect)
-
- Offset: 0x5bc
- Version: 4
- Flag: 0x2
- Offset length: 4
- .debug_line offset: 0x47
-
- #include offset 0x1a
- start_file 0, [1] /home/mark/src/tests/world.c
- start_file 1, [2] /home/mark/src/tests/common.h
- #include offset 0x582
- end_file
- end_file
-
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-mixed-corenote.sh b/src/tests/run-readelf-mixed-corenote.sh
deleted file mode 100755
index 01e4594d..00000000
--- a/src/tests/run-readelf-mixed-corenote.sh
+++ /dev/null
@@ -1,493 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012, 2013, 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile63
-
-testrun_compare ${abs_top_builddir}/src/readelf -n testfile63 <<\EOF
-
-Note segment of 892 bytes at offset 0x274:
- Owner Data size Type
- CORE 148 PRSTATUS
- info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11
- sigpend: <>
- sighold: <>
- pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063
- utime: 0.000000, stime: 0.010000, cutime: 0.000000, cstime: 0.000000
- orig_r0: -1, fpvalid: 1
- r0: 1 r1: -1091672508 r2: -1091672500
- r3: 0 r4: 0 r5: 0
- r6: 33728 r7: 0 r8: 0
- r9: 0 r10: -1225703496 r11: -1091672844
- r12: 0 sp: 0xbeee64f4 lr: 0xb6dc3f48
- pc: 0x00008500 spsr: 0x60000010
- CORE 124 PRPSINFO
- state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00400500
- uid: 0, gid: 0, pid: 11087, ppid: 11063, pgrp: 11087, sid: 11063
- fname: a.out, psargs: ./a.out
- CORE 144 AUXV
- HWCAP: 0xe8d7 <swp half thumb fast-mult vfp edsp>
- PAGESZ: 4096
- CLKTCK: 100
- PHDR: 0x8034
- PHENT: 32
- PHNUM: 8
- BASE: 0xb6eee000
- FLAGS: 0
- ENTRY: 0x83c0
- UID: 0
- EUID: 0
- GID: 0
- EGID: 0
- SECURE: 0
- RANDOM: 0xbeee674e
- EXECFN: 0xbeee6ff4
- PLATFORM: 0xbeee675e
- NULL
- CORE 116 FPREGSET
- f0: 0x000000000000000000000000 f1: 0x000000000000000000000000
- f2: 0x000000000000000000000000 f3: 0x000000000000000000000000
- f4: 0x000000000000000000000000 f5: 0x000000000000000000000000
- f6: 0x000000000000000000000000 f7: 0x000000000000000000000000
- LINUX 260 ARM_VFP
- fpscr: 0x00000000
- d0: 0x0000000000000000 d1: 0x0000000000000000
- d2: 0x0000000000000000 d3: 0x0000000000000000
- d4: 0x0000000000000000 d5: 0x0000000000000000
- d6: 0x0000000000000000 d7: 0x0000000000000000
- d8: 0x0000000000000000 d9: 0x0000000000000000
- d10: 0x0000000000000000 d11: 0x0000000000000000
- d12: 0x0000000000000000 d13: 0x0000000000000000
- d14: 0x0000000000000000 d15: 0x0000000000000000
- d16: 0x0000000000000000 d17: 0x0000000000000000
- d18: 0x0000000000000000 d19: 0x0000000000000000
- d20: 0x0000000000000000 d21: 0x0000000000000000
- d22: 0x0000000000000000 d23: 0x0000000000000000
- d24: 0x0000000000000000 d25: 0x0000000000000000
- d26: 0x0000000000000000 d27: 0x0000000000000000
- d28: 0x0000000000000000 d29: 0x0000000000000000
- d30: 0x0000000000000000 d31: 0x0000000000000000
-EOF
-
-testfiles testfile67
-testrun_compare ${abs_top_builddir}/src/readelf -n testfile67 <<\EOF
-
-Note segment of 1044 bytes at offset 0xe8:
- Owner Data size Type
- CORE 336 PRSTATUS
- info.si_signo: 4, info.si_code: 0, info.si_errno: 0, cursig: 4
- sigpend: <>
- sighold: <>
- pid: 805, ppid: 804, pgrp: 804, sid: 699
- utime: 0.000042, stime: 0.000103, cutime: 0.000000, cstime: 0.000000
- orig_r2: 2571552016, fpvalid: 1
- pswm: 0x0705c00180000000 pswa: 0x00000000800000d6
- r0: 4393751543808 r1: 4398002544388
- r2: 11 r3: 2571578208
- r4: 2571702016 r5: 4398003235624
- r6: 2571580768 r7: 2571702016
- r8: 2571578208 r9: 2571552016
- r10: 2571552016 r11: 0
- r12: 4398003499008 r13: 2148274656
- r14: 0 r15: 4398040761216
- a0: 0x000003ff a1: 0xfd54a6f0 a2: 0x00000000 a3: 0x00000000
- a4: 0x00000000 a5: 0x00000000 a6: 0x00000000 a7: 0x00000000
- a8: 0x00000000 a9: 0x00000000 a10: 0x00000000 a11: 0x00000000
- a12: 0x00000000 a13: 0x00000000 a14: 0x00000000 a15: 0x00000000
- CORE 136 PRPSINFO
- state: 0, sname: R, zomb: 0, nice: 0, flag: 0x0000000000400400
- uid: 0, gid: 0, pid: 805, ppid: 804, pgrp: 804, sid: 699
- fname: 1, psargs: ./1
- CORE 304 AUXV
- SYSINFO_EHDR: 0
- HWCAP: 0x37f
- PAGESZ: 4096
- CLKTCK: 100
- PHDR: 0x80000040
- PHENT: 56
- PHNUM: 2
- BASE: 0
- FLAGS: 0
- ENTRY: 0x800000d4
- UID: 0
- EUID: 0
- GID: 0
- EGID: 0
- SECURE: 0
- RANDOM: 0x3ffffa8463c
- EXECFN: 0x3ffffa85ff4
- PLATFORM: 0x3ffffa8464c
- NULL
- CORE 136 FPREGSET
- fpc: 0x00000000
- f0: 0x0000000000000040 f1: 0x4b00000000000000
- f2: 0x0000000000000041 f3: 0x3ad50b5555555600
- f4: 0x0000000000000000 f5: 0x0000000000000000
- f6: 0x0000000000000000 f7: 0x0000000000000000
- f8: 0x0000000000000000 f9: 0x0000000000000000
- f10: 0x0000000000000000 f11: 0x0000000000000000
- f12: 0x0000000000000000 f13: 0x0000000000000000
- f14: 0x0000000000000000 f15: 0x0000000000000000
- LINUX 8 S390_LAST_BREAK
- last_break: 0x000003fffd75ccbe
- LINUX 4 S390_SYSTEM_CALL
- system_call: 0
-EOF
-
-testfiles testfile68
-testrun_compare ${abs_top_builddir}/src/readelf -n testfile68 <<\EOF
-
-Note segment of 852 bytes at offset 0x94:
- Owner Data size Type
- CORE 224 PRSTATUS
- info.si_signo: 4, info.si_code: 0, info.si_errno: 0, cursig: 4
- sigpend: <>
- sighold: <>
- pid: 839, ppid: 838, pgrp: 838, sid: 699
- utime: 0.000043, stime: 0.000102, cutime: 0.000000, cstime: 0.000000
- orig_r2: -1723388288, fpvalid: 1
- pswm: 0x070dc000 pswa: 0x8040009a
- r0: 0 r1: -43966716 r2: 11 r3: -1723238816
- r4: -1723265280 r5: -43275480 r6: -1723245280 r7: -1723265280
- r8: -1723238816 r9: -1723388288 r10: -1723388288 r11: 0
- r12: -43012096 r13: -2146692640 r14: 0 r15: 2139883440
- a0: 0x000003ff a1: 0xfd54a6f0 a2: 0x00000000 a3: 0x00000000
- a4: 0x00000000 a5: 0x00000000 a6: 0x00000000 a7: 0x00000000
- a8: 0x00000000 a9: 0x00000000 a10: 0x00000000 a11: 0x00000000
- a12: 0x00000000 a13: 0x00000000 a14: 0x00000000 a15: 0x00000000
- CORE 124 PRPSINFO
- state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00400400
- uid: 0, gid: 0, pid: 839, ppid: 838, pgrp: 838, sid: 699
- fname: 2, psargs: ./2
- CORE 152 AUXV
- SYSINFO_EHDR: 0
- HWCAP: 0x37f
- PAGESZ: 4096
- CLKTCK: 100
- PHDR: 0x400034
- PHENT: 32
- PHNUM: 2
- BASE: 0
- FLAGS: 0
- ENTRY: 0x400098
- UID: 0
- EUID: 0
- GID: 0
- EGID: 0
- SECURE: 0
- RANDOM: 0x7f8c090c
- EXECFN: 0x7f8c1ff4
- PLATFORM: 0x7f8c091c
- NULL
- CORE 136 FPREGSET
- fpc: 0x00000000
- f0: 0x0000000000000040 f1: 0x4b00000000000000
- f2: 0x0000000000000041 f3: 0x3ad50b5555555600
- f4: 0x0000000000000000 f5: 0x0000000000000000
- f6: 0x0000000000000000 f7: 0x0000000000000000
- f8: 0x0000000000000000 f9: 0x0000000000000000
- f10: 0x0000000000000000 f11: 0x0000000000000000
- f12: 0x0000000000000000 f13: 0x0000000000000000
- f14: 0x0000000000000000 f15: 0x0000000000000000
- LINUX 8 S390_LAST_BREAK
- last_break: 0xfd75ccbe
- LINUX 4 S390_SYSTEM_CALL
- system_call: 0
- LINUX 64 S390_HIGH_GPRS
- high_r0: 0x000003ff, high_r1: 0x000003ff, high_r2: 0x00000000
- high_r3: 0x00000000, high_r4: 0x00000000, high_r5: 0x000003ff
- high_r6: 0x00000000, high_r7: 0x00000000, high_r8: 0x00000000
- high_r9: 0x00000000, high_r10: 0x00000000, high_r11: 0x00000000
- high_r12: 0x000003ff, high_r13: 0x00000000, high_r14: 0x00000000
- high_r15: 0x00000000
-EOF
-
-# To reproduce this core dump, do this on x86_64 machine with Linux
-# 3.7 or later:
-# $ gcc -x c <(echo 'int main () { return *(int *)0x12345678; }')
-# $ ./a.out
-testfiles testfile71
-testrun_compare ${abs_top_builddir}/src/readelf -n testfile71 <<\EOF
-
-Note segment of 1476 bytes at offset 0x430:
- Owner Data size Type
- CORE 336 PRSTATUS
- info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11
- sigpend: <>
- sighold: <>
- pid: 9664, ppid: 2868, pgrp: 9664, sid: 2868
- utime: 0.000000, stime: 0.004000, cutime: 0.000000, cstime: 0.000000
- orig_rax: -1, fpvalid: 0
- r15: 0 r14: 0
- r13: 140734971656848 r12: 4195328
- rbp: 0x00007fff69fe39b0 rbx: 0
- r11: 266286012928 r10: 140734971656256
- r9: 0 r8: 266289790592
- rax: 305419896 rcx: 4195584
- rdx: 140734971656872 rsi: 140734971656856
- rdi: 1 rip: 0x00000000004004f9
- rflags: 0x0000000000010246 rsp: 0x00007fff69fe39b0
- fs.base: 0x00007fa1c8933740 gs.base: 0x0000000000000000
- cs: 0x0033 ss: 0x002b ds: 0x0000 es: 0x0000 fs: 0x0000 gs: 0x0000
- CORE 136 PRPSINFO
- state: 0, sname: R, zomb: 0, nice: 0, flag: 0x0000000000000200
- uid: 1000, gid: 1000, pid: 9664, ppid: 2868, pgrp: 9664, sid: 2868
- fname: a.out, psargs: ./a.out
- CORE 128 SIGINFO
- si_signo: 11, si_errno: 0, si_code: 1
- fault address: 0x12345678
- CORE 304 AUXV
- SYSINFO_EHDR: 0x7fff69ffe000
- HWCAP: 0xafebfbff <fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe>
- PAGESZ: 4096
- CLKTCK: 100
- PHDR: 0x400040
- PHENT: 56
- PHNUM: 9
- BASE: 0
- FLAGS: 0
- ENTRY: 0x400400
- UID: 1000
- EUID: 1000
- GID: 1000
- EGID: 1000
- SECURE: 0
- RANDOM: 0x7fff69fe3d19
- EXECFN: 0x7fff69fe4ff0
- PLATFORM: 0x7fff69fe3d29
- NULL
- CORE 469 FILE
- 10 files:
- 00400000-00401000 00000000 4096 /home/petr/a.out
- 00600000-00601000 00000000 4096 /home/petr/a.out
- 00601000-00602000 00001000 4096 /home/petr/a.out
- 3dffa00000-3dffa21000 00000000 135168 /usr/lib64/ld-2.17.so
- 3dffc20000-3dffc21000 00020000 4096 /usr/lib64/ld-2.17.so
- 3dffc21000-3dffc22000 00021000 4096 /usr/lib64/ld-2.17.so
- 3dffe00000-3dfffb6000 00000000 1794048 /usr/lib64/libc-2.17.so
- 3dfffb6000-3e001b6000 001b6000 2097152 /usr/lib64/libc-2.17.so
- 3e001b6000-3e001ba000 001b6000 16384 /usr/lib64/libc-2.17.so
- 3e001ba000-3e001bc000 001ba000 8192 /usr/lib64/libc-2.17.so
-EOF
-
-# To reproduce this core dump, do this on an aarch64 machine:
-# $ gcc -x c <(echo 'int main () { return *(int *)0x12345678; }')
-# $ ./a.out
-testfiles testfile_aarch64_core
-testrun_compare ${abs_top_builddir}/src/readelf -n testfile_aarch64_core <<\EOF
-
-Note segment of 2512 bytes at offset 0x270:
- Owner Data size Type
- CORE 392 PRSTATUS
- info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11
- sigpend: <>
- sighold: <>
- pid: 16547, ppid: 3822, pgrp: 16547, sid: 3822
- utime: 0.010000, stime: 0.000000, cutime: 0.000000, cstime: 0.000000
- pc: 0x0000000000400548, pstate: 0x0000000060000000, fpvalid: 1
- x0: 305419896 x1: 548685596648
- x2: 548685596664 x3: 4195648
- x4: 0 x5: 548536191688
- x6: 0 x7: -6341196323062964528
- x8: 135 x9: 4294967295
- x10: 4195026 x11: 184256
- x12: 144 x13: 15
- x14: 548536635328 x15: 0
- x16: 548534815304 x17: 4262024
- x18: 548685596000 x19: 0
- x20: 0 x21: 4195296
- x22: 0 x23: 0
- x24: 0 x25: 0
- x26: 0 x27: 0
- x28: 0 x29: 548685596320
- x30: 548534815544 sp: 0x0000007fc035c6a0
- CORE 136 PRPSINFO
- state: 0, sname: R, zomb: 0, nice: 0, flag: 0x0000000000400400
- uid: 0, gid: 0, pid: 16547, ppid: 3822, pgrp: 16547, sid: 3822
- fname: a.out, psargs: ./a.out
- CORE 128 SIGINFO
- si_signo: 11, si_errno: 0, si_code: 1
- fault address: 0x12345678
- CORE 304 AUXV
- SYSINFO_EHDR: 0x7fb7500000
- HWCAP: 0x3
- PAGESZ: 65536
- CLKTCK: 100
- PHDR: 0x400040
- PHENT: 56
- PHNUM: 7
- BASE: 0x7fb7520000
- FLAGS: 0
- ENTRY: 0x4003e0
- UID: 0
- EUID: 0
- GID: 0
- EGID: 0
- SECURE: 0
- RANDOM: 0x7fc035c9e8
- EXECFN: 0x7fc035fff0
- PLATFORM: 0x7fc035c9f8
- NULL
- CORE 306 FILE
- 6 files:
- 00400000-00410000 00000000 65536 /root/elfutils/build/a.out
- 00410000-00420000 00000000 65536 /root/elfutils/build/a.out
- 7fb7370000-7fb74d0000 00000000 1441792 /usr/lib64/libc-2.17.so
- 7fb74d0000-7fb74f0000 00150000 131072 /usr/lib64/libc-2.17.so
- 7fb7520000-7fb7540000 00000000 131072 /usr/lib64/ld-2.17.so
- 7fb7540000-7fb7550000 00010000 65536 /usr/lib64/ld-2.17.so
- CORE 528 FPREGSET
- fpsr: 0x00000000, fpcr: 0x00000000
- v0: 0x00000000000af54b000000000000fe02
- v1: 0x00000000000000000000000000000000
- v2: 0x00000000000000000000000000000000
- v3: 0x00000000000000000000000000000000
- v4: 0x00000000000000000000000000000000
- v5: 0x00000000000000000000000000000000
- v6: 0x00000000000000000000000000000000
- v7: 0x00000000000000000000000000000000
- v8: 0x00000000000000000000000000000000
- v9: 0x00000000000000000000000000000000
- v10: 0x00000000000000000000000000000000
- v11: 0x00000000000000000000000000000000
- v12: 0x00000000000000000000000000000000
- v13: 0x00000000000000000000000000000000
- v14: 0x00000000000000000000000000000000
- v15: 0x00000000000000000000000000000000
- v16: 0x00000000000000000000000000000000
- v17: 0x00000000000000000000000000000000
- v18: 0x00000000000000000000000000000000
- v19: 0x00000000000000000000000000000000
- v20: 0x00000000000000000000000000000000
- v21: 0x00000000000000000000000000000000
- v22: 0x00000000000000000000000000000000
- v23: 0x00000000000000000000000000000000
- v24: 0x00000000000000000000000000000000
- v25: 0x00000000000000000000000000000000
- v26: 0x00000000000000000000000000000000
- v27: 0x00000000000000000000000000000000
- v28: 0x00000000000000000000000000000000
- v29: 0x00000000000000000000000000000000
- v30: 0x00000000000000000000000000000000
- v31: 0x00000000000000000000000000000000
- LINUX 8 ARM_TLS
- tls: 0x0000007fb73606f0
- LINUX 264 ARM_HW_BREAK
- dbg_info: 0x00000610
- DBGBVR0_EL1: 0x0000000000000000, DBGBCR0_EL1: 0x00000000
- DBGBVR1_EL1: 0x0000000000000000, DBGBCR1_EL1: 0x00000000
- DBGBVR2_EL1: 0x0000000000000000, DBGBCR2_EL1: 0x00000000
- DBGBVR3_EL1: 0x0000000000000000, DBGBCR3_EL1: 0x00000000
- DBGBVR4_EL1: 0x0000000000000000, DBGBCR4_EL1: 0x00000000
- DBGBVR5_EL1: 0x0000000000000000, DBGBCR5_EL1: 0x00000000
- DBGBVR6_EL1: 0x0000000000000000, DBGBCR6_EL1: 0x00000000
- DBGBVR7_EL1: 0x0000000000000000, DBGBCR7_EL1: 0x00000000
- DBGBVR8_EL1: 0x0000000000000000, DBGBCR8_EL1: 0x00000000
- DBGBVR9_EL1: 0x0000000000000000, DBGBCR9_EL1: 0x00000000
- DBGBVR10_EL1: 0x0000000000000000, DBGBCR10_EL1: 0x00000000
- DBGBVR11_EL1: 0x0000000000000000, DBGBCR11_EL1: 0x00000000
- DBGBVR12_EL1: 0x0000000000000000, DBGBCR12_EL1: 0x00000000
- DBGBVR13_EL1: 0x0000000000000000, DBGBCR13_EL1: 0x00000000
- DBGBVR14_EL1: 0x0000000000000000, DBGBCR14_EL1: 0x00000000
- DBGBVR15_EL1: 0x0000000000000000, DBGBCR15_EL1: 0x00000000
- LINUX 264 ARM_HW_WATCH
- dbg_info: 0x00000610
- DBGWVR0_EL1: 0x0000000000000000, DBGWCR0_EL1: 0x00000000
- DBGWVR1_EL1: 0x0000000000000000, DBGWCR1_EL1: 0x00000000
- DBGWVR2_EL1: 0x0000000000000000, DBGWCR2_EL1: 0x00000000
- DBGWVR3_EL1: 0x0000000000000000, DBGWCR3_EL1: 0x00000000
- DBGWVR4_EL1: 0x0000000000000000, DBGWCR4_EL1: 0x00000000
- DBGWVR5_EL1: 0x0000000000000000, DBGWCR5_EL1: 0x00000000
- DBGWVR6_EL1: 0x0000000000000000, DBGWCR6_EL1: 0x00000000
- DBGWVR7_EL1: 0x0000000000000000, DBGWCR7_EL1: 0x00000000
- DBGWVR8_EL1: 0x0000000000000000, DBGWCR8_EL1: 0x00000000
- DBGWVR9_EL1: 0x0000000000000000, DBGWCR9_EL1: 0x00000000
- DBGWVR10_EL1: 0x0000000000000000, DBGWCR10_EL1: 0x00000000
- DBGWVR11_EL1: 0x0000000000000000, DBGWCR11_EL1: 0x00000000
- DBGWVR12_EL1: 0x0000000000000000, DBGWCR12_EL1: 0x00000000
- DBGWVR13_EL1: 0x0000000000000000, DBGWCR13_EL1: 0x00000000
- DBGWVR14_EL1: 0x0000000000000000, DBGWCR14_EL1: 0x00000000
- DBGWVR15_EL1: 0x0000000000000000, DBGWCR15_EL1: 0x00000000
-EOF
-
-# To reproduce this core dump, do this on an i686 machine:
-# $ gcc -x c <(echo 'int main () { return *(int *)0x12345678; }')
-# $ ./a.out
-testfiles testfile_i686_core
-testrun_compare ${abs_top_builddir}/src/readelf -n testfile_i686_core <<\EOF
-
-Note segment of 1000 bytes at offset 0x214:
- Owner Data size Type
- CORE 144 PRSTATUS
- info.si_signo: 11, info.si_code: 0, info.si_errno: 0, cursig: 11
- sigpend: <>
- sighold: <>
- pid: 27395, ppid: 1130, pgrp: 27395, sid: 1130
- utime: 0.000000, stime: 0.001000, cutime: 0.000000, cstime: 0.000000
- orig_eax: -1, fpvalid: 0
- ebx: 1334976512 ecx: -1239415396 edx: -1079283900
- esi: 0 edi: 0 ebp: 0xbfab6f18
- eax: 305419896 eip: 0x08048408 eflags: 0x00010246
- esp: 0xbfab6f18
- ds: 0x007b es: 0x007b fs: 0x0000 gs: 0x0033 cs: 0x0073 ss: 0x007b
- CORE 124 PRPSINFO
- state: 0, sname: R, zomb: 0, nice: 0, flag: 0x00000200
- uid: 1000, gid: 1000, pid: 27395, ppid: 1130, pgrp: 27395, sid: 1130
- fname: a.out, psargs: ./a.out
- CORE 128 SIGINFO
- si_signo: 11, si_errno: 0, si_code: 1
- fault address: 0x12345678
- CORE 160 AUXV
- SYSINFO: 0xb77fc414
- SYSINFO_EHDR: 0xb77fc000
- HWCAP: 0x780abfd <fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2>
- PAGESZ: 4096
- CLKTCK: 100
- PHDR: 0x8048034
- PHENT: 32
- PHNUM: 9
- BASE: 0
- FLAGS: 0
- ENTRY: 0x80482f0
- UID: 1000
- EUID: 1000
- GID: 1000
- EGID: 1000
- SECURE: 0
- RANDOM: 0xbfab70eb
- EXECFN: 0xbfab7ff4
- PLATFORM: 0xbfab70fb
- NULL
- CORE 275 FILE
- 9 files:
- 08048000-08049000 00000000 4096 /tmp/a.out
- 08049000-0804a000 00000000 4096 /tmp/a.out
- 0804a000-0804b000 00001000 4096 /tmp/a.out
- 4f744000-4f763000 00000000 126976 /usr/lib/ld-2.18.so
- 4f764000-4f765000 0001f000 4096 /usr/lib/ld-2.18.so
- 4f765000-4f766000 00020000 4096 /usr/lib/ld-2.18.so
- 4f768000-4f920000 00000000 1802240 /usr/lib/libc-2.18.so
- 4f920000-4f922000 001b8000 8192 /usr/lib/libc-2.18.so
- 4f922000-4f923000 001ba000 4096 /usr/lib/libc-2.18.so
- LINUX 48 386_TLS
- index: 6, base: 0xb77da700, limit: 0x000fffff, flags: 0x00000051
- index: 7, base: 0x00000000, limit: 0x00000000, flags: 0x00000028
- index: 8, base: 0x00000000, limit: 0x00000000, flags: 0x00000028
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-s.sh b/src/tests/run-readelf-s.sh
deleted file mode 100755
index 59407d14..00000000
--- a/src/tests/run-readelf-s.sh
+++ /dev/null
@@ -1,378 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Tests readelf -s and readelf --elf-section -s
-# See also run-dwflsyms.sh
-#
-# - bar.c
-#
-# static int b1 = 1;
-# int b2 = 1;
-#
-# static int
-# foo (int a)
-# {
-# return a + b2;
-# }
-#
-# int bar (int b)
-# {
-# return b - foo (b - b1);
-# }
-#
-# - foo.c
-#
-# extern int bar (int b);
-# extern int b2;
-#
-# int
-# main (int argc, char ** argv)
-# {
-# return bar (argc + b2);
-# }
-#
-# gcc -pie -g -c foo.c
-# gcc -pie -g -c bar.c
-# gcc -pie -g -o baz foo.o bar.o
-#
-# - testfilebaztab (dynsym + symtab)
-# cp baz testfilebaztab
-#
-# - testfilebazdbg (dynsym + .debug file)
-# eu-strip --remove-comment -f testfilebazdbg.debug baz
-# cp baz testfilebazdbg
-#
-#- testfilebazdyn (dynsym only)
-# objcopy --remove-section=.gnu_debuglink baz testfilebazdyn
-#
-# - testfilebazmdb (dynsym + gnu_debugdata + .debug)
-# This is how rpmbuild does it:
-# nm -D baz --format=posix --defined-only | awk '{ print $1 }' | sort > dynsyms
-# nm baz.debug --format=posix --defined-only | awk '{ if ($2 == "T" || $2 == "t") print $1 }' | sort > funcsyms
-# comm -13 dynsyms funcsyms > keep_symbols
-# objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=keep_symbols baz.debug mini_debuginfo
-# rm -f mini_debuginfo.xz
-# xz mini_debuginfo
-# objcopy --add-section .gnu_debugdata=mini_debuginfo.xz baz
-# cp baz testfilebazmdb
-#
-# - testfilebazmin (dynsym + gnu_debugdata)
-# objcopy --remove-section=.gnu_debuglink baz testfilebazmin
-#
-#
-# Special auxiliary only, can happen with static binaries.
-# - start.c
-#
-# extern int main (int argc, char ** argv);
-# void _start (void) { for (;;) main (1, 0); }
-#
-# gcc -g -c start.c
-# gcc -static -nostdlib -o bas foo.o bar.o start.o
-#
-# eu-strip --remove-comment -f bas.debug bas
-# nm bas.debug --format=posix --defined-only | awk '{ if ($2 == "T" || $2 == "t") print $1 }' | sort > funcsyms
-# objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=funcsyms bas.debug mini_debuginfo
-# rm -f mini_debuginfo.xz
-# xz mini_debuginfo
-# objcopy --add-section .gnu_debugdata=mini_debuginfo.xz bas
-# rm bas.debug
-# mv bas testfilebasmin
-#
-#
-# Make sure that find_aux_sym doesn't corrupt relocations, avoiding a kernel
-# heuristic that forces ET_EXEC->ET_DYN. NB: ld.gold doesn't seem to produce
-# the mismatched load addrs between the main file and the mini_debuginfo, so
-# this is forcing ld.bfd.
-#
-# gcc -g -o bax foo.c bar.c -fuse-ld=bfd
-# eu-strip --remove-comment -f bax.debug bax
-# nm -D bax --format=posix --defined-only | awk '{ print $1 }' | sort > dynsyms
-# nm bax.debug --format=posix --defined-only | awk '{ if ($2 == "T" || $2 == "t") print $1 }' | sort > funcsyms
-# comm -13 dynsyms funcsyms > keep_symbols
-# objcopy -S --remove-section .gdb_index --remove-section .comment --keep-symbols=keep_symbols bax.debug mini_debuginfo
-# rm -f mini_debuginfo.xz
-# xz mini_debuginfo
-# objcopy --add-section .gnu_debugdata=mini_debuginfo.xz bax
-# objcopy --remove-section=.gnu_debuglink bax testfilebaxmin
-
-
-testfiles testfilebaztab
-testfiles testfilebazdbg testfilebazdbg.debug
-testfiles testfilebazdyn
-testfiles testfilebazmdb
-testfiles testfilebazmin
-testfiles testfilebasmin
-testfiles testfilebaxmin
-
-tempfiles testfile.dynsym.in testfile.symtab.in testfile.minsym.in
-
-cat > testfile.dynsym.in <<\EOF
-
-Symbol table [ 5] '.dynsym' contains 14 entries:
- 2 local symbols String table: [ 6] '.dynstr'
- Num: Value Size Type Bind Vis Ndx Name
- 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
- 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1
- 2: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF _ITM_deregisterTMCloneTable
- 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UNDEF __libc_start_main@GLIBC_2.2.5 (2)
- 4: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF __gmon_start__
- 5: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF _Jv_RegisterClasses
- 6: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF _ITM_registerTMCloneTable
- 7: 0000000000000000 0 FUNC WEAK DEFAULT UNDEF __cxa_finalize@GLIBC_2.2.5 (2)
- 8: 000000000020103c 0 NOTYPE GLOBAL DEFAULT 25 _edata
- 9: 0000000000201040 0 NOTYPE GLOBAL DEFAULT 26 _end
- 10: 0000000000000860 137 FUNC GLOBAL DEFAULT 13 __libc_csu_init
- 11: 000000000020103c 0 NOTYPE GLOBAL DEFAULT 26 __bss_start
- 12: 00000000000007f0 35 FUNC GLOBAL DEFAULT 13 main
- 13: 00000000000008f0 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini
-EOF
-
-cat > testfile.symtab.in <<\EOF
-
-Symbol table [34] '.symtab' contains 76 entries:
- 54 local symbols String table: [35] '.strtab'
- Num: Value Size Type Bind Vis Ndx Name
- 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
- 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1
- 2: 0000000000000254 0 SECTION LOCAL DEFAULT 2
- 3: 0000000000000274 0 SECTION LOCAL DEFAULT 3
- 4: 0000000000000298 0 SECTION LOCAL DEFAULT 4
- 5: 00000000000002d8 0 SECTION LOCAL DEFAULT 5
- 6: 0000000000000428 0 SECTION LOCAL DEFAULT 6
- 7: 00000000000004f2 0 SECTION LOCAL DEFAULT 7
- 8: 0000000000000510 0 SECTION LOCAL DEFAULT 8
- 9: 0000000000000530 0 SECTION LOCAL DEFAULT 9
- 10: 0000000000000638 0 SECTION LOCAL DEFAULT 10
- 11: 0000000000000680 0 SECTION LOCAL DEFAULT 11
- 12: 00000000000006a0 0 SECTION LOCAL DEFAULT 12
- 13: 00000000000006e0 0 SECTION LOCAL DEFAULT 13
- 14: 00000000000008f4 0 SECTION LOCAL DEFAULT 14
- 15: 0000000000000900 0 SECTION LOCAL DEFAULT 15
- 16: 0000000000000904 0 SECTION LOCAL DEFAULT 16
- 17: 0000000000000948 0 SECTION LOCAL DEFAULT 17
- 18: 0000000000200dd0 0 SECTION LOCAL DEFAULT 18
- 19: 0000000000200dd8 0 SECTION LOCAL DEFAULT 19
- 20: 0000000000200de0 0 SECTION LOCAL DEFAULT 20
- 21: 0000000000200de8 0 SECTION LOCAL DEFAULT 21
- 22: 0000000000200df0 0 SECTION LOCAL DEFAULT 22
- 23: 0000000000200fc0 0 SECTION LOCAL DEFAULT 23
- 24: 0000000000201000 0 SECTION LOCAL DEFAULT 24
- 25: 0000000000201030 0 SECTION LOCAL DEFAULT 25
- 26: 000000000020103c 0 SECTION LOCAL DEFAULT 26
- 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27
- 28: 0000000000000000 0 SECTION LOCAL DEFAULT 28
- 29: 0000000000000000 0 SECTION LOCAL DEFAULT 29
- 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30
- 31: 0000000000000000 0 SECTION LOCAL DEFAULT 31
- 32: 0000000000000000 0 SECTION LOCAL DEFAULT 32
- 33: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
- 34: 0000000000200de0 0 OBJECT LOCAL DEFAULT 20 __JCR_LIST__
- 35: 0000000000000710 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones
- 36: 0000000000000740 0 FUNC LOCAL DEFAULT 13 register_tm_clones
- 37: 0000000000000780 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux
- 38: 000000000020103c 1 OBJECT LOCAL DEFAULT 26 completed.6137
- 39: 0000000000200dd8 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry
- 40: 00000000000007c0 0 FUNC LOCAL DEFAULT 13 frame_dummy
- 41: 0000000000200dd0 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry
- 42: 0000000000000000 0 FILE LOCAL DEFAULT ABS foo.c
- 43: 0000000000000000 0 FILE LOCAL DEFAULT ABS bar.c
- 44: 0000000000201034 4 OBJECT LOCAL DEFAULT 25 b1
- 45: 0000000000000814 20 FUNC LOCAL DEFAULT 13 foo
- 46: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
- 47: 0000000000000a58 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__
- 48: 0000000000200de0 0 OBJECT LOCAL DEFAULT 20 __JCR_END__
- 49: 0000000000000000 0 FILE LOCAL DEFAULT ABS
- 50: 0000000000200dd8 0 NOTYPE LOCAL DEFAULT 18 __init_array_end
- 51: 0000000000200df0 0 OBJECT LOCAL DEFAULT 22 _DYNAMIC
- 52: 0000000000200dd0 0 NOTYPE LOCAL DEFAULT 18 __init_array_start
- 53: 0000000000201000 0 OBJECT LOCAL DEFAULT 24 _GLOBAL_OFFSET_TABLE_
- 54: 00000000000008f0 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini
- 55: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF _ITM_deregisterTMCloneTable
- 56: 0000000000201030 0 NOTYPE WEAK DEFAULT 25 data_start
- 57: 000000000020103c 0 NOTYPE GLOBAL DEFAULT 25 _edata
- 58: 0000000000000828 44 FUNC GLOBAL DEFAULT 13 bar
- 59: 00000000000008f4 0 FUNC GLOBAL DEFAULT 14 _fini
- 60: 0000000000000000 0 FUNC GLOBAL DEFAULT UNDEF __libc_start_main@@GLIBC_2.2.5
- 61: 0000000000201030 0 NOTYPE GLOBAL DEFAULT 25 __data_start
- 62: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF __gmon_start__
- 63: 0000000000200de8 0 OBJECT GLOBAL HIDDEN 21 __dso_handle
- 64: 0000000000000900 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used
- 65: 0000000000201038 4 OBJECT GLOBAL DEFAULT 25 b2
- 66: 0000000000000860 137 FUNC GLOBAL DEFAULT 13 __libc_csu_init
- 67: 0000000000201040 0 NOTYPE GLOBAL DEFAULT 26 _end
- 68: 00000000000006e0 0 FUNC GLOBAL DEFAULT 13 _start
- 69: 000000000020103c 0 NOTYPE GLOBAL DEFAULT 26 __bss_start
- 70: 00000000000007f0 35 FUNC GLOBAL DEFAULT 13 main
- 71: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF _Jv_RegisterClasses
- 72: 0000000000201040 0 OBJECT GLOBAL HIDDEN 25 __TMC_END__
- 73: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF _ITM_registerTMCloneTable
- 74: 0000000000000000 0 FUNC WEAK DEFAULT UNDEF __cxa_finalize@@GLIBC_2.2.5
- 75: 0000000000000680 0 FUNC GLOBAL DEFAULT 11 _init
-EOF
-
-cat > testfile.minsym.in <<\EOF
-
-Symbol table [28] '.symtab' contains 40 entries:
- 36 local symbols String table: [29] '.strtab'
- Num: Value Size Type Bind Vis Ndx Name
- 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
- 1: 0000000000000710 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones
- 2: 0000000000000740 0 FUNC LOCAL DEFAULT 13 register_tm_clones
- 3: 0000000000000780 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux
- 4: 0000000000200dd8 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry
- 5: 00000000000007c0 0 FUNC LOCAL DEFAULT 13 frame_dummy
- 6: 0000000000200dd0 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry
- 7: 0000000000000814 20 FUNC LOCAL DEFAULT 13 foo
- 8: 0000000000200dd8 0 NOTYPE LOCAL DEFAULT 18 __init_array_end
- 9: 0000000000200dd0 0 NOTYPE LOCAL DEFAULT 18 __init_array_start
- 10: 0000000000000238 0 SECTION LOCAL DEFAULT 1
- 11: 0000000000000254 0 SECTION LOCAL DEFAULT 2
- 12: 0000000000000274 0 SECTION LOCAL DEFAULT 3
- 13: 0000000000000298 0 SECTION LOCAL DEFAULT 4
- 14: 00000000000002d8 0 SECTION LOCAL DEFAULT 5
- 15: 0000000000000428 0 SECTION LOCAL DEFAULT 6
- 16: 00000000000004f2 0 SECTION LOCAL DEFAULT 7
- 17: 0000000000000510 0 SECTION LOCAL DEFAULT 8
- 18: 0000000000000530 0 SECTION LOCAL DEFAULT 9
- 19: 0000000000000638 0 SECTION LOCAL DEFAULT 10
- 20: 0000000000000680 0 SECTION LOCAL DEFAULT 11
- 21: 00000000000006a0 0 SECTION LOCAL DEFAULT 12
- 22: 00000000000006e0 0 SECTION LOCAL DEFAULT 13
- 23: 00000000000008f4 0 SECTION LOCAL DEFAULT 14
- 24: 0000000000000900 0 SECTION LOCAL DEFAULT 15
- 25: 0000000000000904 0 SECTION LOCAL DEFAULT 16
- 26: 0000000000000948 0 SECTION LOCAL DEFAULT 17
- 27: 0000000000200dd0 0 SECTION LOCAL DEFAULT 18
- 28: 0000000000200dd8 0 SECTION LOCAL DEFAULT 19
- 29: 0000000000200de0 0 SECTION LOCAL DEFAULT 20
- 30: 0000000000200de8 0 SECTION LOCAL DEFAULT 21
- 31: 0000000000200df0 0 SECTION LOCAL DEFAULT 22
- 32: 0000000000200fc0 0 SECTION LOCAL DEFAULT 23
- 33: 0000000000201000 0 SECTION LOCAL DEFAULT 24
- 34: 0000000000201030 0 SECTION LOCAL DEFAULT 25
- 35: 000000000020103c 0 SECTION LOCAL DEFAULT 26
- 36: 0000000000000828 44 FUNC GLOBAL DEFAULT 13 bar
- 37: 00000000000008f4 0 FUNC GLOBAL DEFAULT 14 _fini
- 38: 00000000000006e0 0 FUNC GLOBAL DEFAULT 13 _start
- 39: 0000000000000680 0 FUNC GLOBAL DEFAULT 11 _init
-EOF
-
-cat testfile.dynsym.in testfile.symtab.in \
- | testrun_compare ${abs_top_builddir}/src/readelf -s testfilebaztab
-
-cat testfile.dynsym.in \
- | testrun_compare ${abs_top_builddir}/src/readelf -s testfilebazdbg
-
-cat testfile.symtab.in \
- | testrun_compare ${abs_top_builddir}/src/readelf -s testfilebazdbg.debug
-
-cat testfile.dynsym.in \
- | testrun_compare ${abs_top_builddir}/src/readelf -s testfilebazdyn
-
-cat testfile.dynsym.in \
- | testrun_compare ${abs_top_builddir}/src/readelf -s testfilebazmdb
-
-cat testfile.minsym.in \
- | testrun_compare ${abs_top_builddir}/src/readelf --elf-section -s testfilebazmdb
-
-cat testfile.dynsym.in \
- | testrun_compare ${abs_top_builddir}/src/readelf -s testfilebazmin
-
-cat testfile.minsym.in \
- | testrun_compare ${abs_top_builddir}/src/readelf --elf-section -s testfilebazmin
-
-testrun_compare ${abs_top_builddir}/src/readelf -s testfilebasmin <<EOF
-EOF
-
-testrun_compare ${abs_top_builddir}/src/readelf --elf-section -s testfilebasmin <<\EOF
-
-Symbol table [ 6] '.symtab' contains 9 entries:
- 6 local symbols String table: [ 7] '.strtab'
- Num: Value Size Type Bind Vis Ndx Name
- 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
- 1: 0000000000400168 18 FUNC LOCAL DEFAULT 2 foo
- 2: 0000000000400120 0 SECTION LOCAL DEFAULT 1
- 3: 0000000000400144 0 SECTION LOCAL DEFAULT 2
- 4: 00000000004001c0 0 SECTION LOCAL DEFAULT 3
- 5: 0000000000600258 0 SECTION LOCAL DEFAULT 4
- 6: 00000000004001a8 21 FUNC GLOBAL DEFAULT 2 _start
- 7: 0000000000400144 33 FUNC GLOBAL DEFAULT 2 main
- 8: 000000000040017a 44 FUNC GLOBAL DEFAULT 2 bar
-EOF
-
-testrun_compare ${abs_top_builddir}/src/readelf -s testfilebaxmin <<EOF
-
-Symbol table [ 5] '.dynsym' contains 3 entries:
- 1 local symbol String table: [ 6] '.dynstr'
- Num: Value Size Type Bind Vis Ndx Name
- 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
- 1: 0000000000000000 0 FUNC GLOBAL DEFAULT UNDEF __libc_start_main@GLIBC_2.2.5 (2)
- 2: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF __gmon_start__
-EOF
-
-testrun_compare ${abs_top_builddir}/src/readelf --elf-section -s testfilebaxmin <<\EOF
-
-Symbol table [27] '.symtab' contains 42 entries:
- 35 local symbols String table: [28] '.strtab'
- Num: Value Size Type Bind Vis Ndx Name
- 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
- 1: 0000000000400430 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones
- 2: 0000000000400460 0 FUNC LOCAL DEFAULT 13 register_tm_clones
- 3: 00000000004004a0 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux
- 4: 0000000000600e18 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry
- 5: 00000000004004c0 0 FUNC LOCAL DEFAULT 13 frame_dummy
- 6: 0000000000600e10 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry
- 7: 00000000004004f0 20 FUNC LOCAL DEFAULT 13 foo
- 8: 0000000000600e18 0 NOTYPE LOCAL DEFAULT 18 __init_array_end
- 9: 0000000000600e10 0 NOTYPE LOCAL DEFAULT 18 __init_array_start
- 10: 0000000000400238 0 SECTION LOCAL DEFAULT 1
- 11: 0000000000400254 0 SECTION LOCAL DEFAULT 2
- 12: 0000000000400274 0 SECTION LOCAL DEFAULT 3
- 13: 0000000000400298 0 SECTION LOCAL DEFAULT 4
- 14: 00000000004002b8 0 SECTION LOCAL DEFAULT 5
- 15: 0000000000400300 0 SECTION LOCAL DEFAULT 6
- 16: 0000000000400338 0 SECTION LOCAL DEFAULT 7
- 17: 0000000000400340 0 SECTION LOCAL DEFAULT 8
- 18: 0000000000400360 0 SECTION LOCAL DEFAULT 9
- 19: 0000000000400378 0 SECTION LOCAL DEFAULT 10
- 20: 00000000004003a8 0 SECTION LOCAL DEFAULT 11
- 21: 00000000004003d0 0 SECTION LOCAL DEFAULT 12
- 22: 0000000000400400 0 SECTION LOCAL DEFAULT 13
- 23: 00000000004005c4 0 SECTION LOCAL DEFAULT 14
- 24: 00000000004005d0 0 SECTION LOCAL DEFAULT 15
- 25: 00000000004005e0 0 SECTION LOCAL DEFAULT 16
- 26: 0000000000400628 0 SECTION LOCAL DEFAULT 17
- 27: 0000000000600e10 0 SECTION LOCAL DEFAULT 18
- 28: 0000000000600e18 0 SECTION LOCAL DEFAULT 19
- 29: 0000000000600e20 0 SECTION LOCAL DEFAULT 20
- 30: 0000000000600e28 0 SECTION LOCAL DEFAULT 21
- 31: 0000000000600ff8 0 SECTION LOCAL DEFAULT 22
- 32: 0000000000601000 0 SECTION LOCAL DEFAULT 23
- 33: 0000000000601028 0 SECTION LOCAL DEFAULT 24
- 34: 0000000000601034 0 SECTION LOCAL DEFAULT 25
- 35: 00000000004005c0 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini
- 36: 0000000000400504 40 FUNC GLOBAL DEFAULT 13 bar
- 37: 00000000004005c4 0 FUNC GLOBAL DEFAULT 14 _fini
- 38: 0000000000400550 101 FUNC GLOBAL DEFAULT 13 __libc_csu_init
- 39: 0000000000400400 0 FUNC GLOBAL DEFAULT 13 _start
- 40: 000000000040052c 35 FUNC GLOBAL DEFAULT 13 main
- 41: 00000000004003a8 0 FUNC GLOBAL DEFAULT 11 _init
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-self.sh b/src/tests/run-readelf-self.sh
deleted file mode 100755
index 7ffb3577..00000000
--- a/src/tests/run-readelf-self.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Just makes sure readelf doesn't crash
-testrun_on_self_quiet ${abs_top_builddir}/src/readelf -a -w
diff --git a/src/tests/run-readelf-test1.sh b/src/tests/run-readelf-test1.sh
deleted file mode 100755
index 4725049d..00000000
--- a/src/tests/run-readelf-test1.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-original=${original:-testfile11}
-stripped=${stripped:-testfile7}
-debugout=${debugfile:+-f testfile.debug.temp -F $debugfile}
-
-testfiles testfile3
-
-tempfiles testfile.temp
-
-testrun ${abs_top_builddir}/src/readelf -r testfile3 > testfile.temp
-
-diff -u - testfile.temp <<EOF
-
-Relocation section [ 8] '.rel.got' for section [19] '.got' at offset 0x294 contains 1 entry:
- Offset Type Value Name
- 0x08049544 386_GLOB_DAT 0000000000 __gmon_start__
-
-Relocation section [ 9] '.rel.plt' for section [11] '.plt' at offset 0x29c contains 4 entries:
- Offset Type Value Name
- 0x08049534 386_JMP_SLOT 0x080482e4 __register_frame_info
- 0x08049538 386_JMP_SLOT 0x080482f4 __deregister_frame_info
- 0x0804953c 386_JMP_SLOT 0x08048304 __libc_start_main
- 0x08049540 386_JMP_SLOT 0x08048314 __cxa_finalize
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-test2.sh b/src/tests/run-readelf-test2.sh
deleted file mode 100755
index 90306247..00000000
--- a/src/tests/run-readelf-test2.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile28
-
-testrun_compare ${abs_top_builddir}/src/readelf -x .strtab testfile28 <<\EOF
-
-Hex dump of section [6] '.strtab', 1 bytes at offset 0x290:
- 0x00000000 00 .
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-test3.sh b/src/tests/run-readelf-test3.sh
deleted file mode 100755
index cc0a191d..00000000
--- a/src/tests/run-readelf-test3.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile40.debug
-
-testrun_compare ${abs_top_builddir}/src/readelf -n testfile40.debug <<\EOF
-
-Note section [ 6] '.note' of 60 bytes at offset 0x120:
- Owner Data size Type
- GNU 20 GNU_BUILD_ID
- Build ID: 34072edcd87ef6728f4b4a7956167b2fcfc3f1d3
- Linux 4 <unknown>: 0
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-test4.sh b/src/tests/run-readelf-test4.sh
deleted file mode 100755
index ca0526a0..00000000
--- a/src/tests/run-readelf-test4.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile19.index
-
-testrun_compare ${abs_top_builddir}/src/readelf -c testfile19.index <<\EOF
-
-Index of archive 'testfile19.index' has 4 entries:
-Archive member 'u1.o' contains:
- a
-Archive member 'u2.o' contains:
- aa
-Archive member 'u3.o' contains:
- a
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-twofiles.sh b/src/tests/run-readelf-twofiles.sh
deleted file mode 100755
index 46eec7b5..00000000
--- a/src/tests/run-readelf-twofiles.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2011 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile14
-
-testrun >/dev/null ${abs_top_builddir}/src/readelf -w testfile14 testfile14
-
-exit 0
diff --git a/src/tests/run-readelf-vmcoreinfo.sh b/src/tests/run-readelf-vmcoreinfo.sh
deleted file mode 100755
index b1732fc6..00000000
--- a/src/tests/run-readelf-vmcoreinfo.sh
+++ /dev/null
@@ -1,114 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile62
-
-testrun_compare ${abs_top_builddir}/src/readelf -n testfile62 <<\EOF
-
-Note segment of 2104 bytes at offset 0x158:
- Owner Data size Type
- CORE 336 PRSTATUS
- info.si_signo: 0, info.si_code: 0, info.si_errno: 0, cursig: 0
- sigpend: <>
- sighold: <>
- pid: 3519, ppid: 0, pgrp: 0, sid: 0
- utime: 0.000000, stime: 0.000000, cutime: 0.000000, cstime: 0.000000
- orig_rax: -1, fpvalid: 0
- r15: 662 r14: 4
- r13: -2119649152 r12: 0
- rbp: 0xffff880067e39e48 rbx: 99
- r11: -131940469531936 r10: -2124150080
- r9: -131940469531936 r8: 0
- rax: 16 rcx: 7813
- rdx: 0 rsi: 0
- rdi: 99 rip: 0xffffffff812ba86f
- rflags: 0x0000000000010096 rsp: 0xffff880067e39e48
- fs.base: 0x00007f95a7b09720 gs.base: 0x0000000000000000
- cs: 0x0010 ss: 0x0018 ds: 0x0000 es: 0x0000 fs: 0x0000 gs: 0x0000
- CORE 336 PRSTATUS
- info.si_signo: 0, info.si_code: 0, info.si_errno: 0, cursig: 0
- sigpend: <>
- sighold: <>
- pid: 0, ppid: 0, pgrp: 0, sid: 0
- utime: 0.000000, stime: 0.000000, cutime: 0.000000, cstime: 0.000000
- orig_rax: -1, fpvalid: 0
- r15: 0 r14: 0
- r13: 1348173392195389970 r12: 1
- rbp: 0xffff88007a829e48 rbx: 16
- r11: -131940468065880 r10: 435505529489
- r9: 158960 r8: 0
- rax: 16 rcx: 1
- rdx: 0 rsi: 3
- rdi: -131939339960320 rip: 0xffffffff810118bb
- rflags: 0x0000000000000046 rsp: 0xffff88007a829e38
- fs.base: 0x0000000000000000 gs.base: 0x0000000000000000
- cs: 0x0010 ss: 0x0018 ds: 0x0000 es: 0x0000 fs: 0x0000 gs: 0x0000
- VMCOREINFO 1366 <unknown>: 0
- OSRELEASE=2.6.35.11-83.fc14.x86_64
- PAGESIZE=4096
- SYMBOL(init_uts_ns)=ffffffff81a4c5b0
- SYMBOL(node_online_map)=ffffffff81b840b0
- SYMBOL(swapper_pg_dir)=ffffffff81a42000
- SYMBOL(_stext)=ffffffff81000190
- SYMBOL(vmlist)=ffffffff81db07e8
- SYMBOL(mem_section)=ffffffff81dbab00
- LENGTH(mem_section)=4096
- SIZE(mem_section)=32
- OFFSET(mem_section.section_mem_map)=0
- SIZE(page)=56
- SIZE(pglist_data)=81664
- SIZE(zone)=1792
- SIZE(free_area)=88
- SIZE(list_head)=16
- SIZE(nodemask_t)=64
- OFFSET(page.flags)=0
- OFFSET(page._count)=8
- OFFSET(page.mapping)=24
- OFFSET(page.lru)=40
- OFFSET(pglist_data.node_zones)=0
- OFFSET(pglist_data.nr_zones)=81472
- OFFSET(pglist_data.node_start_pfn)=81496
- OFFSET(pglist_data.node_spanned_pages)=81512
- OFFSET(pglist_data.node_id)=81520
- OFFSET(zone.free_area)=112
- OFFSET(zone.vm_stat)=1328
- OFFSET(zone.spanned_pages)=1704
- OFFSET(free_area.free_list)=0
- OFFSET(list_head.next)=0
- OFFSET(list_head.prev)=8
- OFFSET(vm_struct.addr)=8
- LENGTH(zone.free_area)=11
- SYMBOL(log_buf)=ffffffff81a532a8
- SYMBOL(log_end)=ffffffff81d0bc50
- SYMBOL(log_buf_len)=ffffffff81a532a4
- SYMBOL(logged_chars)=ffffffff81d0bd70
- LENGTH(free_area.free_list)=5
- NUMBER(NR_FREE_PAGES)=0
- NUMBER(PG_lru)=5
- NUMBER(PG_private)=11
- NUMBER(PG_swapcache)=16
- SYMBOL(phys_base)=ffffffff81a4a010
- SYMBOL(init_level4_pgt)=ffffffff81a42000
- SYMBOL(node_data)=ffffffff81b80df0
- LENGTH(node_data)=512
- CRASHTIME=1348173392
-
-EOF
-
-exit 0
diff --git a/src/tests/run-readelf-zdebug.sh b/src/tests/run-readelf-zdebug.sh
deleted file mode 100755
index 37cf7eaa..00000000
--- a/src/tests/run-readelf-zdebug.sh
+++ /dev/null
@@ -1,539 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# - testfile-zdebug.c
-# #define UINT64_MAX 18446744073709551615UL
-#
-# int
-# main (int argc, char **argv)
-# {
-# unsigned long a = UINT64_MAX - 8;
-# unsigned long b = 42 + argc;
-#
-# if ( a + b < b )
-# argc = a + argc;
-# else
-# b--;
-#
-# return a - b;
-# }
-#
-# gcc -g3 -O3 -fuse-ld=gold -Xlinker --compress-debug-sections=none \
-# -fno-asynchronous-unwind-tables -o testfile-debug testfile-zdebug.c
-# gcc -g3 -O3 -fuse-ld=gold -Xlinker --compress-debug-sections=zlib \
-# -fno-asynchronous-unwind-tables -o testfile-zdebug testfile-zdebug.c
-
-testfiles testfile-debug testfile-zdebug
-tempfiles readelf.out
-tempfiles loc.out aranges.out ranges.out macro.out line.out frame.out
-
-cat > loc.out << \EOF
-
-DWARF section [30] '.debug_loc' at offset 0xa17:
- [ 0] 0x00000000004003c0..0x00000000004003c3 [ 0] reg5
- 0x00000000004003c3..0x00000000004003d6 [ 0] breg5 -42
- [ 2] stack_value
- 0x00000000004003d6..0x00000000004003d9 [ 0] GNU_entry_value:
- [ 0] reg5
- [ 3] stack_value
-EOF
-
-cat loc.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=loc testfile-debug
-
-cat loc.out | sed -e "s/.debug_loc' at offset 0xa17/.zdebug_loc' at offset 0x1a27/" | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=loc testfile-zdebug
-
-cat > aranges.out << \EOF
-
-DWARF section [31] '.debug_aranges' at offset 0xa65:
-
-Table at offset 0:
-
- Length: 44
- DWARF version: 2
- CU offset: 0
- Address size: 8
- Segment size: 0
-
- 0x00000000004003c0..0x0000000000000019
-EOF
-
-cat aranges.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=aranges testfile-debug
-
-cat aranges.out | sed -e "s/.debug_aranges' at offset 0xa65/.zdebug_aranges' at offset 0x1a5f/" | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=aranges testfile-zdebug
-
-cat > ranges.out << \EOF
-
-DWARF section [32] '.debug_ranges' at offset 0xa95:
- [ 0] 0x00000000004003c0..0x00000000004003d9
-EOF
-
-cat ranges.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=ranges testfile-debug
-
-cat ranges.out | sed -e "s/.debug_ranges' at offset 0xa95/.zdebug_ranges' at offset 0x1a87/" | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=ranges testfile-zdebug
-
-cat > macro.out << \EOF
-
-DWARF section [33] '.debug_macro' at offset 0xab5:
-
- Offset: 0x0
- Version: 4
- Flag: 0x2
- Offset length: 4
- .debug_line offset: 0x0
-
- #include offset 0x17
- start_file 0, [1] /tmp/testfile-zdebug.c
- #define UINT64_MAX 18446744073709551615UL, line 1 (indirect)
- end_file
-
- Offset: 0x17
- Version: 4
- Flag: 0x0
- Offset length: 4
-
- #define __STDC__ 1, line 1 (indirect)
- #define __STDC_HOSTED__ 1, line 1 (indirect)
- #define __GNUC__ 4, line 1 (indirect)
- #define __GNUC_MINOR__ 8, line 1 (indirect)
- #define __GNUC_PATCHLEVEL__ 2, line 1 (indirect)
- #define __VERSION__ "4.8.2 20140120 (Red Hat 4.8.2-15)", line 1 (indirect)
- #define __GNUC_RH_RELEASE__ 15, line 1 (indirect)
- #define __ATOMIC_RELAXED 0, line 1 (indirect)
- #define __ATOMIC_SEQ_CST 5, line 1 (indirect)
- #define __ATOMIC_ACQUIRE 2, line 1 (indirect)
- #define __ATOMIC_RELEASE 3, line 1 (indirect)
- #define __ATOMIC_ACQ_REL 4, line 1 (indirect)
- #define __ATOMIC_CONSUME 1, line 1 (indirect)
- #define __OPTIMIZE__ 1, line 1 (indirect)
- #define __FINITE_MATH_ONLY__ 0, line 1 (indirect)
- #define _LP64 1, line 1 (indirect)
- #define __LP64__ 1, line 1 (indirect)
- #define __SIZEOF_INT__ 4, line 1 (indirect)
- #define __SIZEOF_LONG__ 8, line 1 (indirect)
- #define __SIZEOF_LONG_LONG__ 8, line 1 (indirect)
- #define __SIZEOF_SHORT__ 2, line 1 (indirect)
- #define __SIZEOF_FLOAT__ 4, line 1 (indirect)
- #define __SIZEOF_DOUBLE__ 8, line 1 (indirect)
- #define __SIZEOF_LONG_DOUBLE__ 16, line 1 (indirect)
- #define __SIZEOF_SIZE_T__ 8, line 1 (indirect)
- #define __CHAR_BIT__ 8, line 1 (indirect)
- #define __BIGGEST_ALIGNMENT__ 16, line 1 (indirect)
- #define __ORDER_LITTLE_ENDIAN__ 1234, line 1 (indirect)
- #define __ORDER_BIG_ENDIAN__ 4321, line 1 (indirect)
- #define __ORDER_PDP_ENDIAN__ 3412, line 1 (indirect)
- #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__, line 1 (indirect)
- #define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__, line 1 (indirect)
- #define __SIZEOF_POINTER__ 8, line 1 (indirect)
- #define __SIZE_TYPE__ long unsigned int, line 1 (indirect)
- #define __PTRDIFF_TYPE__ long int, line 1 (indirect)
- #define __WCHAR_TYPE__ int, line 1 (indirect)
- #define __WINT_TYPE__ unsigned int, line 1 (indirect)
- #define __INTMAX_TYPE__ long int, line 1 (indirect)
- #define __UINTMAX_TYPE__ long unsigned int, line 1 (indirect)
- #define __CHAR16_TYPE__ short unsigned int, line 1 (indirect)
- #define __CHAR32_TYPE__ unsigned int, line 1 (indirect)
- #define __SIG_ATOMIC_TYPE__ int, line 1 (indirect)
- #define __INT8_TYPE__ signed char, line 1 (indirect)
- #define __INT16_TYPE__ short int, line 1 (indirect)
- #define __INT32_TYPE__ int, line 1 (indirect)
- #define __INT64_TYPE__ long int, line 1 (indirect)
- #define __UINT8_TYPE__ unsigned char, line 1 (indirect)
- #define __UINT16_TYPE__ short unsigned int, line 1 (indirect)
- #define __UINT32_TYPE__ unsigned int, line 1 (indirect)
- #define __UINT64_TYPE__ long unsigned int, line 1 (indirect)
- #define __INT_LEAST8_TYPE__ signed char, line 1 (indirect)
- #define __INT_LEAST16_TYPE__ short int, line 1 (indirect)
- #define __INT_LEAST32_TYPE__ int, line 1 (indirect)
- #define __INT_LEAST64_TYPE__ long int, line 1 (indirect)
- #define __UINT_LEAST8_TYPE__ unsigned char, line 1 (indirect)
- #define __UINT_LEAST16_TYPE__ short unsigned int, line 1 (indirect)
- #define __UINT_LEAST32_TYPE__ unsigned int, line 1 (indirect)
- #define __UINT_LEAST64_TYPE__ long unsigned int, line 1 (indirect)
- #define __INT_FAST8_TYPE__ signed char, line 1 (indirect)
- #define __INT_FAST16_TYPE__ long int, line 1 (indirect)
- #define __INT_FAST32_TYPE__ long int, line 1 (indirect)
- #define __INT_FAST64_TYPE__ long int, line 1 (indirect)
- #define __UINT_FAST8_TYPE__ unsigned char, line 1 (indirect)
- #define __UINT_FAST16_TYPE__ long unsigned int, line 1 (indirect)
- #define __UINT_FAST32_TYPE__ long unsigned int, line 1 (indirect)
- #define __UINT_FAST64_TYPE__ long unsigned int, line 1 (indirect)
- #define __INTPTR_TYPE__ long int, line 1 (indirect)
- #define __UINTPTR_TYPE__ long unsigned int, line 1 (indirect)
- #define __GXX_ABI_VERSION 1002, line 1 (indirect)
- #define __SCHAR_MAX__ 127, line 1 (indirect)
- #define __SHRT_MAX__ 32767, line 1 (indirect)
- #define __INT_MAX__ 2147483647, line 1 (indirect)
- #define __LONG_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __LONG_LONG_MAX__ 9223372036854775807LL, line 1 (indirect)
- #define __WCHAR_MAX__ 2147483647, line 1 (indirect)
- #define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1), line 1 (indirect)
- #define __WINT_MAX__ 4294967295U, line 1 (indirect)
- #define __WINT_MIN__ 0U, line 1 (indirect)
- #define __PTRDIFF_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __SIZE_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __INTMAX_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __INTMAX_C(c) c ## L, line 1 (indirect)
- #define __UINTMAX_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __UINTMAX_C(c) c ## UL, line 1 (indirect)
- #define __SIG_ATOMIC_MAX__ 2147483647, line 1 (indirect)
- #define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1), line 1 (indirect)
- #define __INT8_MAX__ 127, line 1 (indirect)
- #define __INT16_MAX__ 32767, line 1 (indirect)
- #define __INT32_MAX__ 2147483647, line 1 (indirect)
- #define __INT64_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __UINT8_MAX__ 255, line 1 (indirect)
- #define __UINT16_MAX__ 65535, line 1 (indirect)
- #define __UINT32_MAX__ 4294967295U, line 1 (indirect)
- #define __UINT64_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __INT_LEAST8_MAX__ 127, line 1 (indirect)
- #define __INT8_C(c) c, line 1 (indirect)
- #define __INT_LEAST16_MAX__ 32767, line 1 (indirect)
- #define __INT16_C(c) c, line 1 (indirect)
- #define __INT_LEAST32_MAX__ 2147483647, line 1 (indirect)
- #define __INT32_C(c) c, line 1 (indirect)
- #define __INT_LEAST64_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __INT64_C(c) c ## L, line 1 (indirect)
- #define __UINT_LEAST8_MAX__ 255, line 1 (indirect)
- #define __UINT8_C(c) c, line 1 (indirect)
- #define __UINT_LEAST16_MAX__ 65535, line 1 (indirect)
- #define __UINT16_C(c) c, line 1 (indirect)
- #define __UINT_LEAST32_MAX__ 4294967295U, line 1 (indirect)
- #define __UINT32_C(c) c ## U, line 1 (indirect)
- #define __UINT_LEAST64_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __UINT64_C(c) c ## UL, line 1 (indirect)
- #define __INT_FAST8_MAX__ 127, line 1 (indirect)
- #define __INT_FAST16_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __INT_FAST32_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __INT_FAST64_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __UINT_FAST8_MAX__ 255, line 1 (indirect)
- #define __UINT_FAST16_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __UINT_FAST32_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __UINT_FAST64_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __INTPTR_MAX__ 9223372036854775807L, line 1 (indirect)
- #define __UINTPTR_MAX__ 18446744073709551615UL, line 1 (indirect)
- #define __FLT_EVAL_METHOD__ 0, line 1 (indirect)
- #define __DEC_EVAL_METHOD__ 2, line 1 (indirect)
- #define __FLT_RADIX__ 2, line 1 (indirect)
- #define __FLT_MANT_DIG__ 24, line 1 (indirect)
- #define __FLT_DIG__ 6, line 1 (indirect)
- #define __FLT_MIN_EXP__ (-125), line 1 (indirect)
- #define __FLT_MIN_10_EXP__ (-37), line 1 (indirect)
- #define __FLT_MAX_EXP__ 128, line 1 (indirect)
- #define __FLT_MAX_10_EXP__ 38, line 1 (indirect)
- #define __FLT_DECIMAL_DIG__ 9, line 1 (indirect)
- #define __FLT_MAX__ 3.40282346638528859812e+38F, line 1 (indirect)
- #define __FLT_MIN__ 1.17549435082228750797e-38F, line 1 (indirect)
- #define __FLT_EPSILON__ 1.19209289550781250000e-7F, line 1 (indirect)
- #define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F, line 1 (indirect)
- #define __FLT_HAS_DENORM__ 1, line 1 (indirect)
- #define __FLT_HAS_INFINITY__ 1, line 1 (indirect)
- #define __FLT_HAS_QUIET_NAN__ 1, line 1 (indirect)
- #define __DBL_MANT_DIG__ 53, line 1 (indirect)
- #define __DBL_DIG__ 15, line 1 (indirect)
- #define __DBL_MIN_EXP__ (-1021), line 1 (indirect)
- #define __DBL_MIN_10_EXP__ (-307), line 1 (indirect)
- #define __DBL_MAX_EXP__ 1024, line 1 (indirect)
- #define __DBL_MAX_10_EXP__ 308, line 1 (indirect)
- #define __DBL_DECIMAL_DIG__ 17, line 1 (indirect)
- #define __DBL_MAX__ ((double)1.79769313486231570815e+308L), line 1 (indirect)
- #define __DBL_MIN__ ((double)2.22507385850720138309e-308L), line 1 (indirect)
- #define __DBL_EPSILON__ ((double)2.22044604925031308085e-16L), line 1 (indirect)
- #define __DBL_DENORM_MIN__ ((double)4.94065645841246544177e-324L), line 1 (indirect)
- #define __DBL_HAS_DENORM__ 1, line 1 (indirect)
- #define __DBL_HAS_INFINITY__ 1, line 1 (indirect)
- #define __DBL_HAS_QUIET_NAN__ 1, line 1 (indirect)
- #define __LDBL_MANT_DIG__ 64, line 1 (indirect)
- #define __LDBL_DIG__ 18, line 1 (indirect)
- #define __LDBL_MIN_EXP__ (-16381), line 1 (indirect)
- #define __LDBL_MIN_10_EXP__ (-4931), line 1 (indirect)
- #define __LDBL_MAX_EXP__ 16384, line 1 (indirect)
- #define __LDBL_MAX_10_EXP__ 4932, line 1 (indirect)
- #define __DECIMAL_DIG__ 21, line 1 (indirect)
- #define __LDBL_MAX__ 1.18973149535723176502e+4932L, line 1 (indirect)
- #define __LDBL_MIN__ 3.36210314311209350626e-4932L, line 1 (indirect)
- #define __LDBL_EPSILON__ 1.08420217248550443401e-19L, line 1 (indirect)
- #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L, line 1 (indirect)
- #define __LDBL_HAS_DENORM__ 1, line 1 (indirect)
- #define __LDBL_HAS_INFINITY__ 1, line 1 (indirect)
- #define __LDBL_HAS_QUIET_NAN__ 1, line 1 (indirect)
- #define __DEC32_MANT_DIG__ 7, line 1 (indirect)
- #define __DEC32_MIN_EXP__ (-94), line 1 (indirect)
- #define __DEC32_MAX_EXP__ 97, line 1 (indirect)
- #define __DEC32_MIN__ 1E-95DF, line 1 (indirect)
- #define __DEC32_MAX__ 9.999999E96DF, line 1 (indirect)
- #define __DEC32_EPSILON__ 1E-6DF, line 1 (indirect)
- #define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF, line 1 (indirect)
- #define __DEC64_MANT_DIG__ 16, line 1 (indirect)
- #define __DEC64_MIN_EXP__ (-382), line 1 (indirect)
- #define __DEC64_MAX_EXP__ 385, line 1 (indirect)
- #define __DEC64_MIN__ 1E-383DD, line 1 (indirect)
- #define __DEC64_MAX__ 9.999999999999999E384DD, line 1 (indirect)
- #define __DEC64_EPSILON__ 1E-15DD, line 1 (indirect)
- #define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD, line 1 (indirect)
- #define __DEC128_MANT_DIG__ 34, line 1 (indirect)
- #define __DEC128_MIN_EXP__ (-6142), line 1 (indirect)
- #define __DEC128_MAX_EXP__ 6145, line 1 (indirect)
- #define __DEC128_MIN__ 1E-6143DL, line 1 (indirect)
- #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL, line 1 (indirect)
- #define __DEC128_EPSILON__ 1E-33DL, line 1 (indirect)
- #define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL, line 1 (indirect)
- #define __REGISTER_PREFIX__ , line 1 (indirect)
- #define __USER_LABEL_PREFIX__ , line 1 (indirect)
- #define __GNUC_GNU_INLINE__ 1, line 1 (indirect)
- #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1, line 1 (indirect)
- #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1, line 1 (indirect)
- #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1, line 1 (indirect)
- #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1, line 1 (indirect)
- #define __GCC_ATOMIC_BOOL_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_CHAR_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_SHORT_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_INT_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_LONG_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_LLONG_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1, line 1 (indirect)
- #define __GCC_ATOMIC_POINTER_LOCK_FREE 2, line 1 (indirect)
- #define __GCC_HAVE_DWARF2_CFI_ASM 1, line 1 (indirect)
- #define __PRAGMA_REDEFINE_EXTNAME 1, line 1 (indirect)
- #define __SIZEOF_INT128__ 16, line 1 (indirect)
- #define __SIZEOF_WCHAR_T__ 4, line 1 (indirect)
- #define __SIZEOF_WINT_T__ 4, line 1 (indirect)
- #define __SIZEOF_PTRDIFF_T__ 8, line 1 (indirect)
- #define __amd64 1, line 1 (indirect)
- #define __amd64__ 1, line 1 (indirect)
- #define __x86_64 1, line 1 (indirect)
- #define __x86_64__ 1, line 1 (indirect)
- #define __ATOMIC_HLE_ACQUIRE 65536, line 1 (indirect)
- #define __ATOMIC_HLE_RELEASE 131072, line 1 (indirect)
- #define __k8 1, line 1 (indirect)
- #define __k8__ 1, line 1 (indirect)
- #define __code_model_small__ 1, line 1 (indirect)
- #define __MMX__ 1, line 1 (indirect)
- #define __SSE__ 1, line 1 (indirect)
- #define __SSE2__ 1, line 1 (indirect)
- #define __FXSR__ 1, line 1 (indirect)
- #define __SSE_MATH__ 1, line 1 (indirect)
- #define __SSE2_MATH__ 1, line 1 (indirect)
- #define __gnu_linux__ 1, line 1 (indirect)
- #define __linux 1, line 1 (indirect)
- #define __linux__ 1, line 1 (indirect)
- #define linux 1, line 1 (indirect)
- #define __unix 1, line 1 (indirect)
- #define __unix__ 1, line 1 (indirect)
- #define unix 1, line 1 (indirect)
- #define __ELF__ 1, line 1 (indirect)
- #define __DECIMAL_BID_FORMAT__ 1, line 1 (indirect)
-
-EOF
-
-cat macro.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=macro testfile-debug
-
-cat macro.out | sed -e "s/.debug_macro' at offset 0xab5/.zdebug_macro' at offset 0x1aa7/" | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=macro testfile-zdebug
-
-cat > line.out << \EOF
-
-DWARF section [34] '.debug_line' at offset 0x104c:
-
-Table at offset 0:
-
- Length: 70
- DWARF version: 2
- Prologue length: 40
- Minimum instruction length: 1
- Maximum operations per instruction: 1
- Initial value if 'is_stmt': 1
- Line base: -5
- Line range: 14
- Opcode base: 13
-
-Opcodes:
- [ 1] 0 arguments
- [ 2] 1 argument
- [ 3] 1 argument
- [ 4] 1 argument
- [ 5] 1 argument
- [ 6] 0 arguments
- [ 7] 0 arguments
- [ 8] 0 arguments
- [ 9] 1 argument
- [10] 0 arguments
- [11] 0 arguments
- [12] 1 argument
-
-Directory table:
-
-File name table:
- Entry Dir Time Size Name
- 1 0 0 0 testfile-zdebug.c
-
-Line number statements:
- [ 32] extended opcode 2: set address to 0x4003c0
- [ 3d] special opcode 22: address+0 = 0x4003c0, line+4 = 5
- [ 3e] special opcode 20: address+0 = 0x4003c0, line+2 = 7
- [ 3f] special opcode 104: address+6 = 0x4003c6, line+2 = 9
- [ 40] special opcode 77: address+4 = 0x4003ca, line+3 = 12
- [ 41] special opcode 62: address+3 = 0x4003cd, line+2 = 14
- [ 42] special opcode 86: address+5 = 0x4003d2, line-2 = 12
- [ 43] special opcode 76: address+4 = 0x4003d6, line+2 = 14
- [ 44] special opcode 47: address+2 = 0x4003d8, line+1 = 15
- [ 45] advance address by 1 to 0x4003d9
- [ 47] extended opcode 1: end of sequence
-EOF
-
-cat line.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=line testfile-debug
-
-cat line.out | sed -e "s/.debug_line' at offset 0x104c/.zdebug_line' at offset 0x1d53/" | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=line testfile-zdebug
-
-
-cat > frame.out << \EOF
-
-Call frame information section [16] '.eh_frame' at offset 0x5b8:
-
- [ 0] CIE length=20
- CIE_id: 0
- version: 1
- augmentation: "zR"
- code_alignment_factor: 1
- data_alignment_factor: -8
- return_address_register: 16
- Augmentation data: 0x1b (FDE address encoding: sdata4 pcrel)
-
- Program:
- def_cfa r7 (rsp) at offset 8
- offset r16 (rip) at cfa-8
- nop
- nop
-
- [ 18] FDE length=20 cie=[ 0]
- CIE_pointer: 28
- initial_location: 0x00000000ffffff08 (offset: 0x4e0)
- address_range: 0x2 (end offset: 0x4e2)
-
- Program:
- nop
- nop
- nop
- nop
- nop
- nop
- nop
-
- [ 30] FDE length=44 cie=[ 0]
- CIE_pointer: 52
- initial_location: 0x00000000ffffff00 (offset: 0x4f0)
- address_range: 0x89 (end offset: 0x579)
-
- Program:
- advance_loc 17 to 0x501
- offset r12 (r12) at cfa-40
- offset r6 (rbp) at cfa-48
- advance_loc 31 to 0x520
- def_cfa_offset 64
- offset r3 (rbx) at cfa-56
- offset r15 (r15) at cfa-16
- offset r14 (r14) at cfa-24
- offset r13 (r13) at cfa-32
- advance_loc1 88 to 0x578
- def_cfa_offset 8
- nop
- nop
- nop
- nop
- nop
- nop
- nop
- nop
- nop
- nop
- nop
-
- [ 60] FDE length=36 cie=[ 0]
- CIE_pointer: 100
- initial_location: 0x00000000fffffd80 (offset: 0x3a0)
- address_range: 0x20 (end offset: 0x3c0)
-
- Program:
- def_cfa_offset 16
- advance_loc 6 to 0x3a6
- def_cfa_offset 24
- advance_loc 10 to 0x3b0
- def_cfa_expression 11
- [ 0] breg7 8
- [ 2] breg16 0
- [ 4] lit15
- [ 5] and
- [ 6] lit11
- [ 7] ge
- [ 8] lit3
- [ 9] shl
- [ 10] plus
- nop
- nop
- nop
- nop
-
- [ 88] Zero terminator
-
-Call frame search table section [17] '.eh_frame_hdr':
- version: 1
- eh_frame_ptr_enc: 0x1b (sdata4 pcrel)
- fde_count_enc: 0x3 (udata4)
- table_enc: 0x3b (sdata4 datarel)
- eh_frame_ptr: 0xffffffffffffff70 (offset: 0x5b8)
- fde_count: 3
- Table:
- 0xfffffd5c (offset: 0x3a0) -> 0xffffffd4 fde=[ 60]
- 0xfffffe9c (offset: 0x4e0) -> 0xffffff8c fde=[ 18]
- 0xfffffeac (offset: 0x4f0) -> 0xffffffa4 fde=[ 30]
-
-DWARF section [36] '.debug_frame' at offset 0x29b8:
-
- [ 0] CIE length=20
- CIE_id: 18446744073709551615
- version: 1
- augmentation: ""
- code_alignment_factor: 1
- data_alignment_factor: -8
- return_address_register: 16
-
- Program:
- def_cfa r7 (rsp) at offset 8
- offset r16 (rip) at cfa-8
- nop
- nop
- nop
- nop
- nop
- nop
-
- [ 18] FDE length=20 cie=[ 0]
- CIE_pointer: 0
- initial_location: 0x00000000004003c0
- address_range: 0x19
-
- Program:
-EOF
-
-cat frame.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=frame testfile-debug
-
-cat frame.out | sed -e "s/.debug_frame' at offset 0x29b8/.zdebug_frame' at offset 0x2728/" | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=frame testfile-zdebug
-
-
diff --git a/src/tests/run-rerequest_tag.sh b/src/tests/run-rerequest_tag.sh
deleted file mode 100755
index f4372847..00000000
--- a/src/tests/run-rerequest_tag.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2011 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile56 testfile57
-
-testrun ${abs_builddir}/rerequest_tag testfile56
-testrun ${abs_builddir}/rerequest_tag testfile57
-
-exit 0
diff --git a/src/tests/run-show-abbrev.sh b/src/tests/run-show-abbrev.sh
deleted file mode 100755
index 40d0e362..00000000
--- a/src/tests/run-show-abbrev.sh
+++ /dev/null
@@ -1,352 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile testfile2
-
-testrun_compare ${abs_builddir}/show-abbrev testfile testfile2 <<\EOF
-abbrev[0]: code = 1, tag = 17, children = 1
-abbrev[0]: attr[0]: code = 16, form = 6, offset = 0
-abbrev[0]: attr[1]: code = 18, form = 1, offset = 2
-abbrev[0]: attr[2]: code = 17, form = 1, offset = 4
-abbrev[0]: attr[3]: code = 3, form = 8, offset = 6
-abbrev[0]: attr[4]: code = 27, form = 8, offset = 8
-abbrev[0]: attr[5]: code = 37, form = 8, offset = 10
-abbrev[0]: attr[6]: code = 19, form = 11, offset = 12
-abbrev[19]: code = 2, tag = 46, children = 1
-abbrev[19]: attr[0]: code = 1, form = 19, offset = 19
-abbrev[19]: attr[1]: code = 63, form = 12, offset = 21
-abbrev[19]: attr[2]: code = 3, form = 8, offset = 23
-abbrev[19]: attr[3]: code = 58, form = 11, offset = 25
-abbrev[19]: attr[4]: code = 59, form = 11, offset = 27
-abbrev[19]: attr[5]: code = 39, form = 12, offset = 29
-abbrev[19]: attr[6]: code = 73, form = 19, offset = 31
-abbrev[19]: attr[7]: code = 17, form = 1, offset = 33
-abbrev[19]: attr[8]: code = 18, form = 1, offset = 35
-abbrev[19]: attr[9]: code = 64, form = 10, offset = 37
-abbrev[44]: code = 3, tag = 46, children = 1
-abbrev[44]: attr[0]: code = 1, form = 19, offset = 44
-abbrev[44]: attr[1]: code = 63, form = 12, offset = 46
-abbrev[44]: attr[2]: code = 3, form = 8, offset = 48
-abbrev[44]: attr[3]: code = 58, form = 11, offset = 50
-abbrev[44]: attr[4]: code = 59, form = 11, offset = 52
-abbrev[44]: attr[5]: code = 73, form = 19, offset = 54
-abbrev[44]: attr[6]: code = 60, form = 12, offset = 56
-abbrev[63]: code = 4, tag = 24, children = 0
-abbrev[68]: code = 5, tag = 46, children = 1
-abbrev[68]: attr[0]: code = 63, form = 12, offset = 68
-abbrev[68]: attr[1]: code = 3, form = 8, offset = 70
-abbrev[68]: attr[2]: code = 58, form = 11, offset = 72
-abbrev[68]: attr[3]: code = 59, form = 11, offset = 74
-abbrev[68]: attr[4]: code = 73, form = 19, offset = 76
-abbrev[68]: attr[5]: code = 60, form = 12, offset = 78
-abbrev[85]: code = 6, tag = 36, children = 0
-abbrev[85]: attr[0]: code = 3, form = 8, offset = 85
-abbrev[85]: attr[1]: code = 11, form = 11, offset = 87
-abbrev[85]: attr[2]: code = 62, form = 11, offset = 89
-abbrev[96]: code = 7, tag = 52, children = 0
-abbrev[96]: attr[0]: code = 3, form = 8, offset = 96
-abbrev[96]: attr[1]: code = 58, form = 11, offset = 98
-abbrev[96]: attr[2]: code = 59, form = 11, offset = 100
-abbrev[96]: attr[3]: code = 73, form = 19, offset = 102
-abbrev[96]: attr[4]: code = 63, form = 12, offset = 104
-abbrev[96]: attr[5]: code = 2, form = 10, offset = 106
-abbrev[0]: code = 1, tag = 17, children = 1
-abbrev[0]: attr[0]: code = 16, form = 6, offset = 114
-abbrev[0]: attr[1]: code = 18, form = 1, offset = 116
-abbrev[0]: attr[2]: code = 17, form = 1, offset = 118
-abbrev[0]: attr[3]: code = 3, form = 8, offset = 120
-abbrev[0]: attr[4]: code = 27, form = 8, offset = 122
-abbrev[0]: attr[5]: code = 37, form = 8, offset = 124
-abbrev[0]: attr[6]: code = 19, form = 11, offset = 126
-abbrev[19]: code = 2, tag = 46, children = 0
-abbrev[19]: attr[0]: code = 63, form = 12, offset = 133
-abbrev[19]: attr[1]: code = 3, form = 8, offset = 135
-abbrev[19]: attr[2]: code = 58, form = 11, offset = 137
-abbrev[19]: attr[3]: code = 59, form = 11, offset = 139
-abbrev[19]: attr[4]: code = 39, form = 12, offset = 141
-abbrev[19]: attr[5]: code = 73, form = 19, offset = 143
-abbrev[19]: attr[6]: code = 17, form = 1, offset = 145
-abbrev[19]: attr[7]: code = 18, form = 1, offset = 147
-abbrev[19]: attr[8]: code = 64, form = 10, offset = 149
-abbrev[42]: code = 3, tag = 36, children = 0
-abbrev[42]: attr[0]: code = 3, form = 8, offset = 156
-abbrev[42]: attr[1]: code = 11, form = 11, offset = 158
-abbrev[42]: attr[2]: code = 62, form = 11, offset = 160
-abbrev[53]: code = 4, tag = 22, children = 0
-abbrev[53]: attr[0]: code = 3, form = 8, offset = 167
-abbrev[53]: attr[1]: code = 58, form = 11, offset = 169
-abbrev[53]: attr[2]: code = 59, form = 11, offset = 171
-abbrev[53]: attr[3]: code = 73, form = 19, offset = 173
-abbrev[66]: code = 5, tag = 15, children = 0
-abbrev[66]: attr[0]: code = 11, form = 11, offset = 180
-abbrev[73]: code = 6, tag = 15, children = 0
-abbrev[73]: attr[0]: code = 11, form = 11, offset = 187
-abbrev[73]: attr[1]: code = 73, form = 19, offset = 189
-abbrev[82]: code = 7, tag = 19, children = 1
-abbrev[82]: attr[0]: code = 1, form = 19, offset = 196
-abbrev[82]: attr[1]: code = 11, form = 11, offset = 198
-abbrev[82]: attr[2]: code = 58, form = 11, offset = 200
-abbrev[82]: attr[3]: code = 59, form = 11, offset = 202
-abbrev[95]: code = 8, tag = 13, children = 0
-abbrev[95]: attr[0]: code = 3, form = 8, offset = 209
-abbrev[95]: attr[1]: code = 58, form = 11, offset = 211
-abbrev[95]: attr[2]: code = 59, form = 11, offset = 213
-abbrev[95]: attr[3]: code = 73, form = 19, offset = 215
-abbrev[95]: attr[4]: code = 56, form = 10, offset = 217
-abbrev[110]: code = 9, tag = 1, children = 1
-abbrev[110]: attr[0]: code = 1, form = 19, offset = 224
-abbrev[110]: attr[1]: code = 73, form = 19, offset = 226
-abbrev[119]: code = 10, tag = 33, children = 0
-abbrev[119]: attr[0]: code = 73, form = 19, offset = 233
-abbrev[119]: attr[1]: code = 47, form = 11, offset = 235
-abbrev[128]: code = 11, tag = 19, children = 1
-abbrev[128]: attr[0]: code = 1, form = 19, offset = 242
-abbrev[128]: attr[1]: code = 3, form = 8, offset = 244
-abbrev[128]: attr[2]: code = 11, form = 11, offset = 246
-abbrev[128]: attr[3]: code = 58, form = 11, offset = 248
-abbrev[128]: attr[4]: code = 59, form = 11, offset = 250
-abbrev[143]: code = 12, tag = 19, children = 0
-abbrev[143]: attr[0]: code = 3, form = 8, offset = 257
-abbrev[143]: attr[1]: code = 60, form = 12, offset = 259
-abbrev[152]: code = 13, tag = 13, children = 0
-abbrev[152]: attr[0]: code = 3, form = 8, offset = 266
-abbrev[152]: attr[1]: code = 58, form = 11, offset = 268
-abbrev[152]: attr[2]: code = 59, form = 5, offset = 270
-abbrev[152]: attr[3]: code = 73, form = 19, offset = 272
-abbrev[152]: attr[4]: code = 56, form = 10, offset = 274
-abbrev[167]: code = 14, tag = 22, children = 0
-abbrev[167]: attr[0]: code = 3, form = 8, offset = 281
-abbrev[167]: attr[1]: code = 58, form = 11, offset = 283
-abbrev[167]: attr[2]: code = 59, form = 5, offset = 285
-abbrev[167]: attr[3]: code = 73, form = 19, offset = 287
-abbrev[180]: code = 15, tag = 23, children = 1
-abbrev[180]: attr[0]: code = 1, form = 19, offset = 294
-abbrev[180]: attr[1]: code = 11, form = 11, offset = 296
-abbrev[180]: attr[2]: code = 58, form = 11, offset = 298
-abbrev[180]: attr[3]: code = 59, form = 11, offset = 300
-abbrev[193]: code = 16, tag = 13, children = 0
-abbrev[193]: attr[0]: code = 3, form = 8, offset = 307
-abbrev[193]: attr[1]: code = 58, form = 11, offset = 309
-abbrev[193]: attr[2]: code = 59, form = 11, offset = 311
-abbrev[193]: attr[3]: code = 73, form = 19, offset = 313
-abbrev[206]: code = 17, tag = 4, children = 1
-abbrev[206]: attr[0]: code = 1, form = 19, offset = 320
-abbrev[206]: attr[1]: code = 11, form = 11, offset = 322
-abbrev[206]: attr[2]: code = 58, form = 11, offset = 324
-abbrev[206]: attr[3]: code = 59, form = 11, offset = 326
-abbrev[219]: code = 18, tag = 40, children = 0
-abbrev[219]: attr[0]: code = 3, form = 8, offset = 333
-abbrev[219]: attr[1]: code = 28, form = 11, offset = 335
-abbrev[228]: code = 19, tag = 38, children = 0
-abbrev[228]: attr[0]: code = 73, form = 19, offset = 342
-abbrev[235]: code = 20, tag = 21, children = 1
-abbrev[235]: attr[0]: code = 1, form = 19, offset = 349
-abbrev[235]: attr[1]: code = 39, form = 12, offset = 351
-abbrev[235]: attr[2]: code = 73, form = 19, offset = 353
-abbrev[246]: code = 21, tag = 5, children = 0
-abbrev[246]: attr[0]: code = 73, form = 19, offset = 360
-abbrev[253]: code = 22, tag = 21, children = 1
-abbrev[253]: attr[0]: code = 1, form = 19, offset = 367
-abbrev[253]: attr[1]: code = 39, form = 12, offset = 369
-abbrev[262]: code = 23, tag = 33, children = 0
-abbrev[262]: attr[0]: code = 73, form = 19, offset = 376
-abbrev[262]: attr[1]: code = 47, form = 6, offset = 378
-abbrev[271]: code = 24, tag = 22, children = 0
-abbrev[271]: attr[0]: code = 3, form = 8, offset = 385
-abbrev[271]: attr[1]: code = 58, form = 11, offset = 387
-abbrev[271]: attr[2]: code = 59, form = 11, offset = 389
-abbrev[282]: code = 25, tag = 4, children = 1
-abbrev[282]: attr[0]: code = 1, form = 19, offset = 396
-abbrev[282]: attr[1]: code = 3, form = 8, offset = 398
-abbrev[282]: attr[2]: code = 11, form = 11, offset = 400
-abbrev[282]: attr[3]: code = 58, form = 11, offset = 402
-abbrev[282]: attr[4]: code = 59, form = 11, offset = 404
-abbrev[0]: code = 1, tag = 17, children = 1
-abbrev[0]: attr[0]: code = 16, form = 6, offset = 412
-abbrev[0]: attr[1]: code = 18, form = 1, offset = 414
-abbrev[0]: attr[2]: code = 17, form = 1, offset = 416
-abbrev[0]: attr[3]: code = 3, form = 8, offset = 418
-abbrev[0]: attr[4]: code = 27, form = 8, offset = 420
-abbrev[0]: attr[5]: code = 37, form = 8, offset = 422
-abbrev[0]: attr[6]: code = 19, form = 11, offset = 424
-abbrev[19]: code = 2, tag = 46, children = 0
-abbrev[19]: attr[0]: code = 63, form = 12, offset = 431
-abbrev[19]: attr[1]: code = 3, form = 8, offset = 433
-abbrev[19]: attr[2]: code = 58, form = 11, offset = 435
-abbrev[19]: attr[3]: code = 59, form = 11, offset = 437
-abbrev[19]: attr[4]: code = 39, form = 12, offset = 439
-abbrev[19]: attr[5]: code = 73, form = 19, offset = 441
-abbrev[19]: attr[6]: code = 17, form = 1, offset = 443
-abbrev[19]: attr[7]: code = 18, form = 1, offset = 445
-abbrev[19]: attr[8]: code = 64, form = 10, offset = 447
-abbrev[42]: code = 3, tag = 36, children = 0
-abbrev[42]: attr[0]: code = 3, form = 8, offset = 454
-abbrev[42]: attr[1]: code = 11, form = 11, offset = 456
-abbrev[42]: attr[2]: code = 62, form = 11, offset = 458
-abbrev[0]: code = 1, tag = 17, children = 1
-abbrev[0]: attr[0]: code = 16, form = 6, offset = 0
-abbrev[0]: attr[1]: code = 18, form = 1, offset = 2
-abbrev[0]: attr[2]: code = 17, form = 1, offset = 4
-abbrev[0]: attr[3]: code = 3, form = 8, offset = 6
-abbrev[0]: attr[4]: code = 27, form = 8, offset = 8
-abbrev[0]: attr[5]: code = 37, form = 8, offset = 10
-abbrev[0]: attr[6]: code = 19, form = 11, offset = 12
-abbrev[19]: code = 2, tag = 46, children = 0
-abbrev[19]: attr[0]: code = 63, form = 12, offset = 19
-abbrev[19]: attr[1]: code = 3, form = 8, offset = 21
-abbrev[19]: attr[2]: code = 58, form = 11, offset = 23
-abbrev[19]: attr[3]: code = 59, form = 11, offset = 25
-abbrev[19]: attr[4]: code = 39, form = 12, offset = 27
-abbrev[19]: attr[5]: code = 73, form = 19, offset = 29
-abbrev[19]: attr[6]: code = 17, form = 1, offset = 31
-abbrev[19]: attr[7]: code = 18, form = 1, offset = 33
-abbrev[19]: attr[8]: code = 64, form = 10, offset = 35
-abbrev[42]: code = 3, tag = 36, children = 0
-abbrev[42]: attr[0]: code = 3, form = 8, offset = 42
-abbrev[42]: attr[1]: code = 11, form = 11, offset = 44
-abbrev[42]: attr[2]: code = 62, form = 11, offset = 46
-abbrev[53]: code = 4, tag = 22, children = 0
-abbrev[53]: attr[0]: code = 3, form = 8, offset = 53
-abbrev[53]: attr[1]: code = 58, form = 11, offset = 55
-abbrev[53]: attr[2]: code = 59, form = 11, offset = 57
-abbrev[53]: attr[3]: code = 73, form = 19, offset = 59
-abbrev[66]: code = 5, tag = 1, children = 1
-abbrev[66]: attr[0]: code = 1, form = 19, offset = 66
-abbrev[66]: attr[1]: code = 3, form = 8, offset = 68
-abbrev[66]: attr[2]: code = 73, form = 19, offset = 70
-abbrev[77]: code = 6, tag = 33, children = 0
-abbrev[77]: attr[0]: code = 73, form = 19, offset = 77
-abbrev[77]: attr[1]: code = 47, form = 11, offset = 79
-abbrev[86]: code = 7, tag = 19, children = 1
-abbrev[86]: attr[0]: code = 1, form = 19, offset = 86
-abbrev[86]: attr[1]: code = 3, form = 8, offset = 88
-abbrev[86]: attr[2]: code = 11, form = 11, offset = 90
-abbrev[86]: attr[3]: code = 58, form = 11, offset = 92
-abbrev[86]: attr[4]: code = 59, form = 11, offset = 94
-abbrev[101]: code = 8, tag = 13, children = 0
-abbrev[101]: attr[0]: code = 3, form = 8, offset = 101
-abbrev[101]: attr[1]: code = 58, form = 11, offset = 103
-abbrev[101]: attr[2]: code = 59, form = 11, offset = 105
-abbrev[101]: attr[3]: code = 73, form = 19, offset = 107
-abbrev[101]: attr[4]: code = 56, form = 10, offset = 109
-abbrev[116]: code = 9, tag = 15, children = 0
-abbrev[116]: attr[0]: code = 11, form = 11, offset = 116
-abbrev[123]: code = 10, tag = 15, children = 0
-abbrev[123]: attr[0]: code = 11, form = 11, offset = 123
-abbrev[123]: attr[1]: code = 73, form = 19, offset = 125
-abbrev[132]: code = 11, tag = 19, children = 1
-abbrev[132]: attr[0]: code = 1, form = 19, offset = 132
-abbrev[132]: attr[1]: code = 11, form = 11, offset = 134
-abbrev[132]: attr[2]: code = 58, form = 11, offset = 136
-abbrev[132]: attr[3]: code = 59, form = 11, offset = 138
-abbrev[145]: code = 12, tag = 1, children = 1
-abbrev[145]: attr[0]: code = 1, form = 19, offset = 145
-abbrev[145]: attr[1]: code = 73, form = 19, offset = 147
-abbrev[154]: code = 13, tag = 22, children = 0
-abbrev[154]: attr[0]: code = 3, form = 8, offset = 154
-abbrev[154]: attr[1]: code = 58, form = 11, offset = 156
-abbrev[154]: attr[2]: code = 59, form = 5, offset = 158
-abbrev[154]: attr[3]: code = 73, form = 19, offset = 160
-abbrev[167]: code = 14, tag = 19, children = 0
-abbrev[167]: attr[0]: code = 3, form = 8, offset = 167
-abbrev[167]: attr[1]: code = 60, form = 12, offset = 169
-abbrev[176]: code = 15, tag = 22, children = 0
-abbrev[176]: attr[0]: code = 3, form = 8, offset = 176
-abbrev[176]: attr[1]: code = 58, form = 11, offset = 178
-abbrev[176]: attr[2]: code = 59, form = 11, offset = 180
-abbrev[187]: code = 16, tag = 21, children = 1
-abbrev[187]: attr[0]: code = 1, form = 19, offset = 187
-abbrev[187]: attr[1]: code = 39, form = 12, offset = 189
-abbrev[187]: attr[2]: code = 73, form = 19, offset = 191
-abbrev[198]: code = 17, tag = 5, children = 0
-abbrev[198]: attr[0]: code = 73, form = 19, offset = 198
-abbrev[205]: code = 18, tag = 38, children = 0
-abbrev[205]: attr[0]: code = 73, form = 19, offset = 205
-abbrev[0]: code = 1, tag = 17, children = 1
-abbrev[0]: attr[0]: code = 16, form = 6, offset = 213
-abbrev[0]: attr[1]: code = 18, form = 1, offset = 215
-abbrev[0]: attr[2]: code = 17, form = 1, offset = 217
-abbrev[0]: attr[3]: code = 3, form = 8, offset = 219
-abbrev[0]: attr[4]: code = 27, form = 8, offset = 221
-abbrev[0]: attr[5]: code = 37, form = 8, offset = 223
-abbrev[0]: attr[6]: code = 19, form = 11, offset = 225
-abbrev[19]: code = 2, tag = 46, children = 0
-abbrev[19]: attr[0]: code = 63, form = 12, offset = 232
-abbrev[19]: attr[1]: code = 3, form = 8, offset = 234
-abbrev[19]: attr[2]: code = 58, form = 11, offset = 236
-abbrev[19]: attr[3]: code = 59, form = 11, offset = 238
-abbrev[19]: attr[4]: code = 39, form = 12, offset = 240
-abbrev[19]: attr[5]: code = 73, form = 19, offset = 242
-abbrev[19]: attr[6]: code = 17, form = 1, offset = 244
-abbrev[19]: attr[7]: code = 18, form = 1, offset = 246
-abbrev[19]: attr[8]: code = 64, form = 10, offset = 248
-abbrev[42]: code = 3, tag = 36, children = 0
-abbrev[42]: attr[0]: code = 3, form = 8, offset = 255
-abbrev[42]: attr[1]: code = 11, form = 11, offset = 257
-abbrev[42]: attr[2]: code = 62, form = 11, offset = 259
-abbrev[0]: code = 1, tag = 17, children = 1
-abbrev[0]: attr[0]: code = 16, form = 6, offset = 267
-abbrev[0]: attr[1]: code = 18, form = 1, offset = 269
-abbrev[0]: attr[2]: code = 17, form = 1, offset = 271
-abbrev[0]: attr[3]: code = 3, form = 8, offset = 273
-abbrev[0]: attr[4]: code = 27, form = 8, offset = 275
-abbrev[0]: attr[5]: code = 37, form = 8, offset = 277
-abbrev[0]: attr[6]: code = 19, form = 11, offset = 279
-abbrev[19]: code = 2, tag = 46, children = 1
-abbrev[19]: attr[0]: code = 1, form = 19, offset = 286
-abbrev[19]: attr[1]: code = 63, form = 12, offset = 288
-abbrev[19]: attr[2]: code = 3, form = 8, offset = 290
-abbrev[19]: attr[3]: code = 58, form = 11, offset = 292
-abbrev[19]: attr[4]: code = 59, form = 11, offset = 294
-abbrev[19]: attr[5]: code = 39, form = 12, offset = 296
-abbrev[19]: attr[6]: code = 73, form = 19, offset = 298
-abbrev[19]: attr[7]: code = 17, form = 1, offset = 300
-abbrev[19]: attr[8]: code = 18, form = 1, offset = 302
-abbrev[19]: attr[9]: code = 64, form = 10, offset = 304
-abbrev[44]: code = 3, tag = 46, children = 1
-abbrev[44]: attr[0]: code = 1, form = 19, offset = 311
-abbrev[44]: attr[1]: code = 63, form = 12, offset = 313
-abbrev[44]: attr[2]: code = 3, form = 8, offset = 315
-abbrev[44]: attr[3]: code = 58, form = 11, offset = 317
-abbrev[44]: attr[4]: code = 59, form = 11, offset = 319
-abbrev[44]: attr[5]: code = 73, form = 19, offset = 321
-abbrev[44]: attr[6]: code = 60, form = 12, offset = 323
-abbrev[63]: code = 4, tag = 24, children = 0
-abbrev[68]: code = 5, tag = 46, children = 1
-abbrev[68]: attr[0]: code = 63, form = 12, offset = 335
-abbrev[68]: attr[1]: code = 3, form = 8, offset = 337
-abbrev[68]: attr[2]: code = 58, form = 11, offset = 339
-abbrev[68]: attr[3]: code = 59, form = 11, offset = 341
-abbrev[68]: attr[4]: code = 73, form = 19, offset = 343
-abbrev[68]: attr[5]: code = 60, form = 12, offset = 345
-abbrev[85]: code = 6, tag = 36, children = 0
-abbrev[85]: attr[0]: code = 3, form = 8, offset = 352
-abbrev[85]: attr[1]: code = 11, form = 11, offset = 354
-abbrev[85]: attr[2]: code = 62, form = 11, offset = 356
-abbrev[96]: code = 7, tag = 52, children = 0
-abbrev[96]: attr[0]: code = 3, form = 8, offset = 363
-abbrev[96]: attr[1]: code = 58, form = 11, offset = 365
-abbrev[96]: attr[2]: code = 59, form = 11, offset = 367
-abbrev[96]: attr[3]: code = 73, form = 19, offset = 369
-abbrev[96]: attr[4]: code = 63, form = 12, offset = 371
-abbrev[96]: attr[5]: code = 2, form = 10, offset = 373
-EOF
-
-exit 0
diff --git a/src/tests/run-show-die-info.sh b/src/tests/run-show-die-info.sh
deleted file mode 100755
index f92ee488..00000000
--- a/src/tests/run-show-die-info.sh
+++ /dev/null
@@ -1,985 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile5 testfile2
-
-testrun_compare ${abs_builddir}/show-die-info testfile5 testfile2 <<\EOF
-file: testfile5
-New CU: off = 0, hsize = 11, ab = 0, as = 4, os = 4
- DW_TAG_compile_unit
- Name : b.c
- Offset : 11
- CU offset : 11
- Attrs : name stmt_list low_pc high_pc language comp_dir producer
- low PC : 0x804842c
- high PC : 0x8048436
- language : 1
- directory : /home/drepper/gnu/new-bu/build/ttt
- producer : GNU C 2.96 20000731 (Red Hat Linux 7.0)
- DW_TAG_subprogram
- Name : bar
- Offset : 104
- CU offset : 104
- Attrs : name low_pc high_pc prototyped decl_file decl_line external frame_base type
- low PC : 0x804842c
- high PC : 0x8048436
- DW_TAG_base_type
- Name : int
- Offset : 127
- CU offset : 127
- Attrs : name byte_size encoding
- byte size : 4
-New CU: off = 135, hsize = 11, ab = 54, as = 4, os = 4
- DW_TAG_compile_unit
- Name : f.c
- Offset : 146
- CU offset : 11
- Attrs : name stmt_list low_pc high_pc language comp_dir producer
- low PC : 0x8048438
- high PC : 0x8048442
- language : 1
- directory : /home/drepper/gnu/new-bu/build/ttt
- producer : GNU C 2.96 20000731 (Red Hat Linux 7.0)
- DW_TAG_subprogram
- Name : foo
- Offset : 239
- CU offset : 104
- Attrs : name low_pc high_pc prototyped decl_file decl_line external frame_base type
- low PC : 0x8048438
- high PC : 0x8048442
- DW_TAG_base_type
- Name : int
- Offset : 262
- CU offset : 127
- Attrs : name byte_size encoding
- byte size : 4
-New CU: off = 270, hsize = 11, ab = 108, as = 4, os = 4
- DW_TAG_compile_unit
- Name : m.c
- Offset : 281
- CU offset : 11
- Attrs : name stmt_list low_pc high_pc language comp_dir producer
- low PC : 0x8048444
- high PC : 0x8048472
- language : 1
- directory : /home/drepper/gnu/new-bu/build/ttt
- producer : GNU C 2.96 20000731 (Red Hat Linux 7.0)
- DW_TAG_subprogram
- Name : main
- Offset : 374
- CU offset : 104
- Attrs : sibling name low_pc high_pc prototyped decl_file decl_line external frame_base type
- low PC : 0x8048444
- high PC : 0x8048472
- DW_TAG_subprogram
- Name : bar
- Offset : 402
- CU offset : 132
- Attrs : sibling name decl_file decl_line declaration external type
- DW_TAG_unspecified_parameters
- Name : * NO NAME *
- Offset : 419
- CU offset : 149
- Attrs :
- DW_TAG_subprogram
- Name : foo
- Offset : 421
- CU offset : 151
- Attrs : name decl_file decl_line declaration external type
- DW_TAG_unspecified_parameters
- Name : * NO NAME *
- Offset : 434
- CU offset : 164
- Attrs :
- DW_TAG_base_type
- Name : int
- Offset : 437
- CU offset : 167
- Attrs : name byte_size encoding
- byte size : 4
- DW_TAG_variable
- Name : a
- Offset : 444
- CU offset : 174
- Attrs : location name decl_file decl_line external type
-file: testfile2
-New CU: off = 0, hsize = 11, ab = 0, as = 4, os = 4
- DW_TAG_compile_unit
- Name : b.c
- Offset : 11
- CU offset : 11
- Attrs : name stmt_list low_pc high_pc language comp_dir producer
- low PC : 0x10000470
- high PC : 0x10000490
- language : 1
- directory : /shoggoth/drepper
- producer : GNU C 2.96-laurel-000912
- DW_TAG_subprogram
- Name : bar
- Offset : 72
- CU offset : 72
- Attrs : name low_pc high_pc prototyped decl_file decl_line external frame_base type
- low PC : 0x10000470
- high PC : 0x10000490
- DW_TAG_base_type
- Name : int
- Offset : 95
- CU offset : 95
- Attrs : name byte_size encoding
- byte size : 4
- DW_TAG_typedef
- Name : size_t
- Offset : 102
- CU offset : 102
- Attrs : name decl_file decl_line type
- DW_TAG_base_type
- Name : unsigned int
- Offset : 116
- CU offset : 116
- Attrs : name byte_size encoding
- byte size : 4
- DW_TAG_typedef
- Name : __gnuc_va_list
- Offset : 132
- CU offset : 132
- Attrs : name decl_file decl_line type
- DW_TAG_array_type
- Name : __builtin_va_list
- Offset : 154
- CU offset : 154
- Attrs : sibling name type
- DW_TAG_subrange_type
- Name : * NO NAME *
- Offset : 181
- CU offset : 181
- Attrs : upper_bound type
- DW_TAG_base_type
- Name : unsigned int
- Offset : 188
- CU offset : 188
- Attrs : name byte_size encoding
- byte size : 4
- DW_TAG_structure_type
- Name : __va_list_tag
- Offset : 204
- CU offset : 204
- Attrs : sibling name byte_size decl_file decl_line
- byte size : 12
- DW_TAG_member
- Name : gpr
- Offset : 226
- CU offset : 226
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : fpr
- Offset : 240
- CU offset : 240
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : overflow_arg_area
- Offset : 254
- CU offset : 254
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : reg_save_area
- Offset : 282
- CU offset : 282
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_base_type
- Name : unsigned char
- Offset : 307
- CU offset : 307
- Attrs : name byte_size encoding
- byte size : 1
- DW_TAG_pointer_type
- Name : * NO NAME *
- Offset : 324
- CU offset : 324
- Attrs : byte_size
- byte size : 4
- DW_TAG_typedef
- Name : __u_char
- Offset : 326
- CU offset : 326
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __u_short
- Offset : 342
- CU offset : 342
- Attrs : name decl_file decl_line type
- DW_TAG_base_type
- Name : short unsigned int
- Offset : 359
- CU offset : 359
- Attrs : name byte_size encoding
- byte size : 2
- DW_TAG_typedef
- Name : __u_int
- Offset : 381
- CU offset : 381
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __u_long
- Offset : 396
- CU offset : 396
- Attrs : name decl_file decl_line type
- DW_TAG_base_type
- Name : long unsigned int
- Offset : 412
- CU offset : 412
- Attrs : name byte_size encoding
- byte size : 4
- DW_TAG_typedef
- Name : __u_quad_t
- Offset : 433
- CU offset : 433
- Attrs : name decl_file decl_line type
- DW_TAG_base_type
- Name : long long unsigned int
- Offset : 451
- CU offset : 451
- Attrs : name byte_size encoding
- byte size : 8
- DW_TAG_typedef
- Name : __quad_t
- Offset : 477
- CU offset : 477
- Attrs : name decl_file decl_line type
- DW_TAG_base_type
- Name : long long int
- Offset : 493
- CU offset : 493
- Attrs : name byte_size encoding
- byte size : 8
- DW_TAG_typedef
- Name : __int8_t
- Offset : 510
- CU offset : 510
- Attrs : name decl_file decl_line type
- DW_TAG_base_type
- Name : signed char
- Offset : 526
- CU offset : 526
- Attrs : name byte_size encoding
- byte size : 1
- DW_TAG_typedef
- Name : __uint8_t
- Offset : 541
- CU offset : 541
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __int16_t
- Offset : 558
- CU offset : 558
- Attrs : name decl_file decl_line type
- DW_TAG_base_type
- Name : short int
- Offset : 575
- CU offset : 575
- Attrs : name byte_size encoding
- byte size : 2
- DW_TAG_typedef
- Name : __uint16_t
- Offset : 588
- CU offset : 588
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __int32_t
- Offset : 606
- CU offset : 606
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __uint32_t
- Offset : 623
- CU offset : 623
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __int64_t
- Offset : 641
- CU offset : 641
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __uint64_t
- Offset : 658
- CU offset : 658
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __qaddr_t
- Offset : 676
- CU offset : 676
- Attrs : name decl_file decl_line type
- DW_TAG_pointer_type
- Name : * NO NAME *
- Offset : 693
- CU offset : 693
- Attrs : byte_size type
- byte size : 4
- DW_TAG_typedef
- Name : __dev_t
- Offset : 699
- CU offset : 699
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __uid_t
- Offset : 714
- CU offset : 714
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __gid_t
- Offset : 729
- CU offset : 729
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __ino_t
- Offset : 744
- CU offset : 744
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __mode_t
- Offset : 759
- CU offset : 759
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __nlink_t
- Offset : 775
- CU offset : 775
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __off_t
- Offset : 792
- CU offset : 792
- Attrs : name decl_file decl_line type
- DW_TAG_base_type
- Name : long int
- Offset : 807
- CU offset : 807
- Attrs : name byte_size encoding
- byte size : 4
- DW_TAG_typedef
- Name : __loff_t
- Offset : 819
- CU offset : 819
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __pid_t
- Offset : 835
- CU offset : 835
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __ssize_t
- Offset : 850
- CU offset : 850
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __rlim_t
- Offset : 867
- CU offset : 867
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __rlim64_t
- Offset : 883
- CU offset : 883
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __id_t
- Offset : 901
- CU offset : 901
- Attrs : name decl_file decl_line type
- DW_TAG_structure_type
- Name : * NO NAME *
- Offset : 915
- CU offset : 915
- Attrs : sibling byte_size decl_file decl_line
- byte size : 8
- DW_TAG_member
- Name : __val
- Offset : 923
- CU offset : 923
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_array_type
- Name : * NO NAME *
- Offset : 940
- CU offset : 940
- Attrs : sibling type
- DW_TAG_subrange_type
- Name : * NO NAME *
- Offset : 949
- CU offset : 949
- Attrs : upper_bound type
- DW_TAG_typedef
- Name : __fsid_t
- Offset : 956
- CU offset : 956
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __daddr_t
- Offset : 972
- CU offset : 972
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __caddr_t
- Offset : 989
- CU offset : 989
- Attrs : name decl_file decl_line type
- DW_TAG_pointer_type
- Name : * NO NAME *
- Offset : 1006
- CU offset : 1006
- Attrs : byte_size type
- byte size : 4
- DW_TAG_base_type
- Name : char
- Offset : 1012
- CU offset : 1012
- Attrs : name byte_size encoding
- byte size : 1
- DW_TAG_typedef
- Name : __time_t
- Offset : 1020
- CU offset : 1020
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __swblk_t
- Offset : 1036
- CU offset : 1036
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __clock_t
- Offset : 1053
- CU offset : 1053
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __fd_mask
- Offset : 1070
- CU offset : 1070
- Attrs : name decl_file decl_line type
- DW_TAG_structure_type
- Name : * NO NAME *
- Offset : 1087
- CU offset : 1087
- Attrs : sibling byte_size decl_file decl_line
- byte size : 128
- DW_TAG_member
- Name : __fds_bits
- Offset : 1095
- CU offset : 1095
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_array_type
- Name : * NO NAME *
- Offset : 1117
- CU offset : 1117
- Attrs : sibling type
- DW_TAG_subrange_type
- Name : * NO NAME *
- Offset : 1126
- CU offset : 1126
- Attrs : upper_bound type
- DW_TAG_typedef
- Name : __fd_set
- Offset : 1133
- CU offset : 1133
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __key_t
- Offset : 1149
- CU offset : 1149
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __ipc_pid_t
- Offset : 1164
- CU offset : 1164
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __blkcnt_t
- Offset : 1183
- CU offset : 1183
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __blkcnt64_t
- Offset : 1201
- CU offset : 1201
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __fsblkcnt_t
- Offset : 1221
- CU offset : 1221
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __fsblkcnt64_t
- Offset : 1241
- CU offset : 1241
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __fsfilcnt_t
- Offset : 1263
- CU offset : 1263
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __fsfilcnt64_t
- Offset : 1283
- CU offset : 1283
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __ino64_t
- Offset : 1305
- CU offset : 1305
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __off64_t
- Offset : 1322
- CU offset : 1322
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __t_scalar_t
- Offset : 1339
- CU offset : 1339
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __t_uscalar_t
- Offset : 1359
- CU offset : 1359
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : __intptr_t
- Offset : 1380
- CU offset : 1380
- Attrs : name decl_file decl_line type
- DW_TAG_structure_type
- Name : _IO_FILE
- Offset : 1398
- CU offset : 1398
- Attrs : sibling name byte_size decl_file decl_line
- byte size : 152
- DW_TAG_member
- Name : _flags
- Offset : 1415
- CU offset : 1415
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_read_ptr
- Offset : 1432
- CU offset : 1432
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_read_end
- Offset : 1455
- CU offset : 1455
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_read_base
- Offset : 1478
- CU offset : 1478
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_write_base
- Offset : 1502
- CU offset : 1502
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_write_ptr
- Offset : 1527
- CU offset : 1527
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_write_end
- Offset : 1551
- CU offset : 1551
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_buf_base
- Offset : 1575
- CU offset : 1575
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_buf_end
- Offset : 1598
- CU offset : 1598
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_save_base
- Offset : 1620
- CU offset : 1620
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_backup_base
- Offset : 1644
- CU offset : 1644
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _IO_save_end
- Offset : 1670
- CU offset : 1670
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _markers
- Offset : 1693
- CU offset : 1693
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _chain
- Offset : 1712
- CU offset : 1712
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _fileno
- Offset : 1729
- CU offset : 1729
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _blksize
- Offset : 1747
- CU offset : 1747
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _old_offset
- Offset : 1766
- CU offset : 1766
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _cur_column
- Offset : 1788
- CU offset : 1788
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _vtable_offset
- Offset : 1810
- CU offset : 1810
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _shortbuf
- Offset : 1835
- CU offset : 1835
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _lock
- Offset : 1855
- CU offset : 1855
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _offset
- Offset : 1871
- CU offset : 1871
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _unused2
- Offset : 1889
- CU offset : 1889
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_structure_type
- Name : _IO_marker
- Offset : 1909
- CU offset : 1909
- Attrs : sibling name byte_size decl_file decl_line
- byte size : 12
- DW_TAG_member
- Name : _next
- Offset : 1928
- CU offset : 1928
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _sbuf
- Offset : 1944
- CU offset : 1944
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_member
- Name : _pos
- Offset : 1960
- CU offset : 1960
- Attrs : name data_member_location decl_file decl_line type
- DW_TAG_pointer_type
- Name : * NO NAME *
- Offset : 1976
- CU offset : 1976
- Attrs : byte_size type
- byte size : 4
- DW_TAG_pointer_type
- Name : * NO NAME *
- Offset : 1982
- CU offset : 1982
- Attrs : byte_size type
- byte size : 4
- DW_TAG_array_type
- Name : * NO NAME *
- Offset : 1988
- CU offset : 1988
- Attrs : sibling type
- DW_TAG_subrange_type
- Name : * NO NAME *
- Offset : 1997
- CU offset : 1997
- Attrs : upper_bound type
- DW_TAG_pointer_type
- Name : * NO NAME *
- Offset : 2004
- CU offset : 2004
- Attrs : byte_size
- byte size : 4
- DW_TAG_array_type
- Name : * NO NAME *
- Offset : 2006
- CU offset : 2006
- Attrs : sibling type
- DW_TAG_subrange_type
- Name : * NO NAME *
- Offset : 2015
- CU offset : 2015
- Attrs : upper_bound type
- DW_TAG_typedef
- Name : FILE
- Offset : 2022
- CU offset : 2022
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : wchar_t
- Offset : 2034
- CU offset : 2034
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : wint_t
- Offset : 2050
- CU offset : 2050
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : _G_int16_t
- Offset : 2065
- CU offset : 2065
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : _G_int32_t
- Offset : 2083
- CU offset : 2083
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : _G_uint16_t
- Offset : 2101
- CU offset : 2101
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : _G_uint32_t
- Offset : 2120
- CU offset : 2120
- Attrs : name decl_file decl_line type
- DW_TAG_structure_type
- Name : _IO_jump_t
- Offset : 2139
- CU offset : 2139
- Attrs : name declaration
- DW_TAG_typedef
- Name : _IO_lock_t
- Offset : 2152
- CU offset : 2152
- Attrs : name decl_file decl_line
- DW_TAG_typedef
- Name : _IO_FILE
- Offset : 2166
- CU offset : 2166
- Attrs : name decl_file decl_line type
- DW_TAG_structure_type
- Name : _IO_FILE_plus
- Offset : 2182
- CU offset : 2182
- Attrs : name declaration
- DW_TAG_typedef
- Name : __io_read_fn
- Offset : 2198
- CU offset : 2198
- Attrs : name decl_file decl_line type
- DW_TAG_subroutine_type
- Name : * NO NAME *
- Offset : 2219
- CU offset : 2219
- Attrs : sibling prototyped type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2229
- CU offset : 2229
- Attrs : type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2234
- CU offset : 2234
- Attrs : type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2239
- CU offset : 2239
- Attrs : type
- DW_TAG_typedef
- Name : __io_write_fn
- Offset : 2245
- CU offset : 2245
- Attrs : name decl_file decl_line type
- DW_TAG_subroutine_type
- Name : * NO NAME *
- Offset : 2267
- CU offset : 2267
- Attrs : sibling prototyped type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2277
- CU offset : 2277
- Attrs : type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2282
- CU offset : 2282
- Attrs : type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2287
- CU offset : 2287
- Attrs : type
- DW_TAG_pointer_type
- Name : * NO NAME *
- Offset : 2293
- CU offset : 2293
- Attrs : byte_size type
- byte size : 4
- DW_TAG_const_type
- Name : * NO NAME *
- Offset : 2299
- CU offset : 2299
- Attrs : type
- DW_TAG_typedef
- Name : __io_seek_fn
- Offset : 2304
- CU offset : 2304
- Attrs : name decl_file decl_line type
- DW_TAG_subroutine_type
- Name : * NO NAME *
- Offset : 2325
- CU offset : 2325
- Attrs : sibling prototyped type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2335
- CU offset : 2335
- Attrs : type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2340
- CU offset : 2340
- Attrs : type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2345
- CU offset : 2345
- Attrs : type
- DW_TAG_typedef
- Name : __io_close_fn
- Offset : 2351
- CU offset : 2351
- Attrs : name decl_file decl_line type
- DW_TAG_subroutine_type
- Name : * NO NAME *
- Offset : 2373
- CU offset : 2373
- Attrs : sibling prototyped type
- DW_TAG_formal_parameter
- Name : * NO NAME *
- Offset : 2383
- CU offset : 2383
- Attrs : type
- DW_TAG_typedef
- Name : fpos_t
- Offset : 2389
- CU offset : 2389
- Attrs : name decl_file decl_line type
- DW_TAG_typedef
- Name : off_t
- Offset : 2403
- CU offset : 2403
- Attrs : name decl_file decl_line type
-New CU: off = 2418, hsize = 11, ab = 213, as = 4, os = 4
- DW_TAG_compile_unit
- Name : f.c
- Offset : 2429
- CU offset : 11
- Attrs : name stmt_list low_pc high_pc language comp_dir producer
- low PC : 0x10000490
- high PC : 0x100004b0
- language : 1
- directory : /shoggoth/drepper
- producer : GNU C 2.96-laurel-000912
- DW_TAG_subprogram
- Name : foo
- Offset : 2490
- CU offset : 72
- Attrs : name low_pc high_pc prototyped decl_file decl_line external frame_base type
- low PC : 0x10000490
- high PC : 0x100004b0
- DW_TAG_base_type
- Name : int
- Offset : 2513
- CU offset : 95
- Attrs : name byte_size encoding
- byte size : 4
-New CU: off = 2521, hsize = 11, ab = 267, as = 4, os = 4
- DW_TAG_compile_unit
- Name : m.c
- Offset : 2532
- CU offset : 11
- Attrs : name stmt_list low_pc high_pc language comp_dir producer
- low PC : 0x100004b0
- high PC : 0x10000514
- language : 1
- directory : /shoggoth/drepper
- producer : GNU C 2.96-laurel-000912
- DW_TAG_subprogram
- Name : main
- Offset : 2593
- CU offset : 72
- Attrs : sibling name low_pc high_pc prototyped decl_file decl_line external frame_base type
- low PC : 0x100004b0
- high PC : 0x10000514
- DW_TAG_subprogram
- Name : bar
- Offset : 2621
- CU offset : 100
- Attrs : sibling name decl_file decl_line declaration external type
- DW_TAG_unspecified_parameters
- Name : * NO NAME *
- Offset : 2638
- CU offset : 117
- Attrs :
- DW_TAG_subprogram
- Name : foo
- Offset : 2640
- CU offset : 119
- Attrs : name decl_file decl_line declaration external type
- DW_TAG_unspecified_parameters
- Name : * NO NAME *
- Offset : 2653
- CU offset : 132
- Attrs :
- DW_TAG_base_type
- Name : int
- Offset : 2656
- CU offset : 135
- Attrs : name byte_size encoding
- byte size : 4
- DW_TAG_variable
- Name : a
- Offset : 2663
- CU offset : 142
- Attrs : location name decl_file decl_line external type
-EOF
-
-exit 0
diff --git a/src/tests/run-stack-d-test.sh b/src/tests/run-stack-d-test.sh
deleted file mode 100755
index 040c2fa9..00000000
--- a/src/tests/run-stack-d-test.sh
+++ /dev/null
@@ -1,112 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# // g++ dwarfinlines.cpp -g -o testfiledwarfinlines -O2
-# int
-# fubar (int x)
-# {
-# __asm__ ( "nop" ::: );
-# return 42 / x - 2;
-# }
-#
-# void foobar (int z1, int z2)
-# {
-# __asm__ ( "nop" ::: );
-# int x = z1 + z2;
-# while (z1 + x + 1 != 42)
-# x = fubar (z1 + z2 + x);
-# }
-#
-# void bar (int z)
-# {
-# int a, b;
-# a = b = z / 2;
-# foobar(a, b);
-# }
-#
-# void foo (int x)
-# {
-# if (x > 0)
-# bar(x - 2);
-# }
-#
-# void fu (int y)
-# {
-# __asm__ ( "nop" ::: );
-# foo (y + 1);
-# }
-#
-# int
-# main (int argc, char **argv)
-# {
-# fu (argc);
-# }
-testfiles testfiledwarfinlines testfiledwarfinlines.core
-
-# Depending on whether we are running make check or make installcheck
-# the actual binary name under test might be different. It is used in
-# the error message, which we also try to match.
-if test "$elfutils_testrun" = "installed"; then
-STACKCMD=${bindir}/`program_transform stack`
-else
-STACKCMD=${abs_top_builddir}/src/stack
-fi
-
-# Without -d the top function comes out as fu.
-testrun_compare ${abs_top_builddir}/src/stack -n 2 -e testfiledwarfinlines --core testfiledwarfinlines.core<<EOF
-PID 13654 - core
-TID 13654:
-#0 0x00000000004006c8 fu(int)
-#1 0x00000000004004c5 main
-$STACKCMD: tid 13654: shown max number of frames (2, use -n 0 for unlimited)
-EOF
-
-# But when asking for source we see it is actually on line 6.
-# (Which is in function fubar, not fu).
-testrun_compare ${abs_top_builddir}/src/stack -n 2 -s -e testfiledwarfinlines --core testfiledwarfinlines.core<<EOF
-PID 13654 - core
-TID 13654:
-#0 0x00000000004006c8 fu(int)
- /home/mark/src/tests/dwarfinlines.cpp:6
-#1 0x00000000004004c5 main
- /home/mark/src/tests/dwarfinlines.cpp:39
-$STACKCMD: tid 13654: shown max number of frames (2, use -n 0 for unlimited)
-EOF
-
-# So with --debugname we get the function correct as fubar.
-testrun_compare ${abs_top_builddir}/src/stack -n 2 -d -e testfiledwarfinlines --core testfiledwarfinlines.core<<EOF
-PID 13654 - core
-TID 13654:
-#0 0x00000000004006c8 fubar
-#1 0x00000000004004c5 main
-$STACKCMD: tid 13654: shown max number of frames (2, use -n 0 for unlimited)
-EOF
-
-# Which now matches the source line (again 6 of course).
-testrun_compare ${abs_top_builddir}/src/stack -n 2 -s -d -e testfiledwarfinlines --core testfiledwarfinlines.core<<EOF
-PID 13654 - core
-TID 13654:
-#0 0x00000000004006c8 fubar
- /home/mark/src/tests/dwarfinlines.cpp:6
-#1 0x00000000004004c5 main
- /home/mark/src/tests/dwarfinlines.cpp:39
-$STACKCMD: tid 13654: shown max number of frames (2, use -n 0 for unlimited)
-EOF
-
-exit 0
diff --git a/src/tests/run-stack-i-test.sh b/src/tests/run-stack-i-test.sh
deleted file mode 100755
index 2d09ec0d..00000000
--- a/src/tests/run-stack-i-test.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# See run-stack-d-test.sh for dwarfinlines.cpp source.
-testfiles testfiledwarfinlines testfiledwarfinlines.core
-
-# Depending on whether we are running make check or make installcheck
-# the actual binary name under test might be different. It is used in
-# the error message, which we also try to match.
-if test "$elfutils_testrun" = "installed"; then
-STACKCMD=${bindir}/`program_transform stack`
-else
-STACKCMD=${abs_top_builddir}/src/stack
-fi
-
-# Compare with run-stack-d-test.sh to see the output without --inlines.
-# Only two call frames are visible (there is a jump from main to fu or
-# fubar).
-
-# With --inlines we get all inlined calls. Note they share the same
-# address.
-testrun_compare ${abs_top_builddir}/src/stack -n 6 -i -e testfiledwarfinlines --core testfiledwarfinlines.core<<EOF
-PID 13654 - core
-TID 13654:
-#0 0x00000000004006c8 fubar
-#1 0x00000000004006c8 foobar
-#2 0x00000000004006c8 bar
-#3 0x00000000004006c8 foo
-#4 0x00000000004006c8 fu(int)
-#5 0x00000000004004c5 main
-$STACKCMD: tid 13654: shown max number of frames (6, use -n 0 for unlimited)
-EOF
-
-# With --source we can also see where in the source the inlined frames
-# where originally called from.
-testrun_compare ${abs_top_builddir}/src/stack -n 6 -s -i -e testfiledwarfinlines --core testfiledwarfinlines.core<<EOF
-PID 13654 - core
-TID 13654:
-#0 0x00000000004006c8 fubar
- /home/mark/src/tests/dwarfinlines.cpp:6
-#1 0x00000000004006c8 foobar
- /home/mark/src/tests/dwarfinlines.cpp:14
-#2 0x00000000004006c8 bar
- /home/mark/src/tests/dwarfinlines.cpp:21
-#3 0x00000000004006c8 foo
- /home/mark/src/tests/dwarfinlines.cpp:27
-#4 0x00000000004006c8 fu(int)
- /home/mark/src/tests/dwarfinlines.cpp:33
-#5 0x00000000004004c5 main
- /home/mark/src/tests/dwarfinlines.cpp:39
-$STACKCMD: tid 13654: shown max number of frames (6, use -n 0 for unlimited)
-EOF
-
-exit 0
diff --git a/src/tests/run-strings-test.sh b/src/tests/run-strings-test.sh
deleted file mode 100755
index 33f2d641..00000000
--- a/src/tests/run-strings-test.sh
+++ /dev/null
@@ -1,470 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005, 2006, 2008 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 2005.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-files="testfile `seq 2 9 | while read n; do echo testfile$n; done`"
-testfiles $files
-
-testrun_compare ${abs_top_builddir}/src/strings -tx -f $files <<\EOF
-testfile: f4 /lib/ld-linux.so.2
-testfile: 1c9 __gmon_start__
-testfile: 1d8 libc.so.6
-testfile: 1e2 __cxa_finalize
-testfile: 1f1 __deregister_frame_info
-testfile: 209 _IO_stdin_used
-testfile: 218 __libc_start_main
-testfile: 22a __register_frame_info
-testfile: 240 GLIBC_2.1.3
-testfile: 24c GLIBC_2.0
-testfile: 338 PTRh
-testfile: 345 QVh,
-testfile2: 114 /lib/ld.so.1
-testfile2: 1f1 __gmon_start__
-testfile2: 200 __deregister_frame_info
-testfile2: 218 __register_frame_info
-testfile2: 22e libc.so.6
-testfile2: 238 __cxa_finalize
-testfile2: 247 _IO_stdin_used
-testfile2: 256 __libc_start_main
-testfile2: 268 GLIBC_2.1.3
-testfile2: 274 GLIBC_2.0
-testfile2: 488 }a[xN
-testfile2: 4a8 }a[xN
-testfile2: 50c }a[xN
-testfile2: 540 }?Kx
-testfile3: f4 /lib/ld-linux.so.2
-testfile3: 1c9 __gmon_start__
-testfile3: 1d8 libc.so.6
-testfile3: 1e2 __cxa_finalize
-testfile3: 1f1 __deregister_frame_info
-testfile3: 209 _IO_stdin_used
-testfile3: 218 __libc_start_main
-testfile3: 22a __register_frame_info
-testfile3: 240 GLIBC_2.1.3
-testfile3: 24c GLIBC_2.0
-testfile3: 338 PTRh
-testfile3: 345 QVh,
-testfile4: f4 /lib/ld-linux.so.2
-testfile4: 8e1 __gmon_start__
-testfile4: 8f0 __terminate_func
-testfile4: 901 stderr
-testfile4: 908 __tf9type_info
-testfile4: 917 __tf16__user_type_info
-testfile4: 92e __tf19__pointer_type_info
-testfile4: 948 __tf16__attr_type_info
-testfile4: 95f __tf16__func_type_info
-testfile4: 976 __vt_9type_info
-testfile4: 986 __vt_19__pointer_type_info
-testfile4: 9a1 __vt_16__attr_type_info
-testfile4: 9b9 __vt_16__func_type_info
-testfile4: 9d1 __vt_16__ptmf_type_info
-testfile4: 9e9 __vt_16__ptmd_type_info
-testfile4: a01 __vt_17__array_type_info
-testfile4: a1a __tiv
-testfile4: a20 __vt_19__builtin_type_info
-testfile4: a3b __tix
-testfile4: a41 __til
-testfile4: a47 __tii
-testfile4: a4d __tis
-testfile4: a53 __tib
-testfile4: a59 __tic
-testfile4: a5f __tiw
-testfile4: a65 __tir
-testfile4: a6b __tid
-testfile4: a71 __tif
-testfile4: a77 __tiUi
-testfile4: a7e __tiUl
-testfile4: a85 __tiUx
-testfile4: a8c __tiUs
-testfile4: a93 __tiUc
-testfile4: a9a __tiSc
-testfile4: aa1 __ti19__pointer_type_info
-testfile4: abb __ti9type_info
-testfile4: aca __ti16__attr_type_info
-testfile4: ae1 __ti19__builtin_type_info
-testfile4: afb __ti16__func_type_info
-testfile4: b12 __ti16__ptmf_type_info
-testfile4: b29 __ti16__ptmd_type_info
-testfile4: b40 __ti17__array_type_info
-testfile4: b58 __cplus_type_matcher
-testfile4: b6d __vt_13bad_exception
-testfile4: b82 __vt_9exception
-testfile4: b92 _._13bad_exception
-testfile4: ba5 __vt_8bad_cast
-testfile4: bb4 _._8bad_cast
-testfile4: bc1 __vt_10bad_typeid
-testfile4: bd3 _._10bad_typeid
-testfile4: be3 __ti9exception
-testfile4: bf2 __ti13bad_exception
-testfile4: c06 __vt_16__user_type_info
-testfile4: c1e __vt_17__class_type_info
-testfile4: c37 __vt_14__si_type_info
-testfile4: c4d __ti8bad_cast
-testfile4: c5b __ti10bad_typeid
-testfile4: c6c __ti16__user_type_info
-testfile4: c83 __ti14__si_type_info
-testfile4: c98 __ti17__class_type_info
-testfile4: cb0 libc.so.6
-testfile4: cba __register_frame
-testfile4: ccb pthread_create
-testfile4: cda pthread_getspecific
-testfile4: cee pthread_key_delete
-testfile4: d01 __cxa_finalize
-testfile4: d10 malloc
-testfile4: d17 __frame_state_for
-testfile4: d29 abort
-testfile4: d2f __register_frame_table
-testfile4: d46 fprintf
-testfile4: d4e pthread_once
-testfile4: d5b __deregister_frame_info
-testfile4: d73 pthread_key_create
-testfile4: d86 memset
-testfile4: d8d strcmp
-testfile4: d94 pthread_mutex_unlock
-testfile4: da9 __deregister_frame
-testfile4: dbc pthread_mutex_lock
-testfile4: dcf _IO_stdin_used
-testfile4: dde __libc_start_main
-testfile4: df0 strlen
-testfile4: df7 __register_frame_info_table
-testfile4: e13 __register_frame_info
-testfile4: e29 pthread_setspecific
-testfile4: e3d free
-testfile4: e42 GLIBC_2.1.3
-testfile4: e4e GLIBC_2.0
-testfile4: 1308 PTRh<
-testfile4: 194b [^_]
-testfile4: 19bf [^_]
-testfile4: 1dd9 wT9L>
-testfile4: 1f3b [^_]
-testfile4: 1fae [^_]
-testfile4: 21c1 BZQRP
-testfile4: 237f [^_]
-testfile4: 2431 JWRV
-testfile4: 2454 [^_]
-testfile4: 2506 JWRV
-testfile4: 2529 [^_]
-testfile4: 2b6c [^_]
-testfile4: 2b9d ZYPV
-testfile4: 2c28 [^_]
-testfile4: 2c4d ZYPV
-testfile4: 2ce2 [^_]
-testfile4: 2dfb X^_]
-testfile4: 2fc8 [^_]
-testfile4: 307d tq;F
-testfile4: 315a [^_]
-testfile4: 31a5 :zt 1
-testfile4: 3238 [^_]
-testfile4: 32f8 AXY_VR
-testfile4: 334a [^_]
-testfile4: 37ab [^_]
-testfile4: 38b8 sU;E
-testfile4: 38f2 QRPV
-testfile4: 3926 [^_]
-testfile4: 3bfe QRWP
-testfile4: 3e65 [^_]
-testfile4: 4136 [^_]
-testfile4: 472d [^_]
-testfile4: 47a5 0[^_]
-testfile4: 48ab [^_]
-testfile4: 4ab1 _ZPV
-testfile4: 4b53 _ZPV
-testfile4: 4bd3 _ZPV
-testfile4: 4e05 PQWj
-testfile4: 4f75 [^_]
-testfile4: 4f9b u$;E u
-testfile4: 4feb [^_]
-testfile4: 5080 [^_]
-testfile4: 50a8 }$9u
-testfile4: 5149 [^_]
-testfile4: 51b0 [^_]
-testfile4: 539b [^_]
-testfile4: 53b5 E 9E
-testfile4: 540d x!)E
-testfile4: 5598 U$ B
-testfile4: 571c [^_]
-testfile4: 5819 [^_]
-testfile4: 5922 [^_]
-testfile4: 59c2 [^_]
-testfile4: 5a62 [^_]
-testfile4: 5b02 [^_]
-testfile4: 5ba2 [^_]
-testfile4: 5c42 [^_]
-testfile4: 5ce2 [^_]
-testfile4: 6112 [^_]
-testfile4: 62bb [^_]
-testfile4: 639b [^_]
-testfile4: 6436 [^_]
-testfile4: 6468 val is zero
-testfile4: 6480 Internal Compiler Bug: No runtime type matcher.
-testfile4: 64dc 19__pointer_type_info
-testfile4: 64f2 16__attr_type_info
-testfile4: 6505 19__builtin_type_info
-testfile4: 651b 16__func_type_info
-testfile4: 652e 16__ptmf_type_info
-testfile4: 6541 16__ptmd_type_info
-testfile4: 6554 17__array_type_info
-testfile4: 6568 9exception
-testfile4: 6573 13bad_exception
-testfile4: 6583 9type_info
-testfile4: 658e 8bad_cast
-testfile4: 6598 10bad_typeid
-testfile4: 65a5 16__user_type_info
-testfile4: 65b8 14__si_type_info
-testfile4: 65c9 17__class_type_info
-testfile4: 6fc1 H. $
-testfile5: f4 /lib/ld-linux.so.2
-testfile5: 1c9 __gmon_start__
-testfile5: 1d8 libc.so.6
-testfile5: 1e2 __cxa_finalize
-testfile5: 1f1 __deregister_frame_info
-testfile5: 209 _IO_stdin_used
-testfile5: 218 __libc_start_main
-testfile5: 22a __register_frame_info
-testfile5: 240 GLIBC_2.1.3
-testfile5: 24c GLIBC_2.0
-testfile5: 338 PTRh
-testfile5: 345 QVhD
-testfile6: 114 /lib/ld-linux.so.2
-testfile6: 3d9 libstdc++.so.5
-testfile6: 3e8 _ZTVSt16invalid_argument
-testfile6: 401 _ZNSaIcEC1Ev
-testfile6: 40e _ZTSSt16invalid_argument
-testfile6: 427 _ZTVN10__cxxabiv120__si_class_type_infoE
-testfile6: 450 _ZNSsD1Ev
-testfile6: 45a _ZdlPv
-testfile6: 461 __cxa_end_catch
-testfile6: 471 __gxx_personality_v0
-testfile6: 486 _ZTISt9exception
-testfile6: 497 _ZNSaIcED1Ev
-testfile6: 4a4 _ZTISt11logic_error
-testfile6: 4b8 _ZNSt16invalid_argumentD1Ev
-testfile6: 4d4 _ZTVN10__cxxabiv117__class_type_infoE
-testfile6: 4fa __cxa_throw
-testfile6: 506 _ZNSt16invalid_argumentC1ERKSs
-testfile6: 525 _ZNSsC1EPKcRKSaIcE
-testfile6: 538 _ZNSt11logic_errorD2Ev
-testfile6: 54f _ZTVN10__cxxabiv121__vmi_class_type_infoE
-testfile6: 579 _ZNSt16invalid_argumentD0Ev
-testfile6: 595 __cxa_begin_catch
-testfile6: 5a7 __cxa_allocate_exception
-testfile6: 5c0 _ZNKSt11logic_error4whatEv
-testfile6: 5db _Jv_RegisterClasses
-testfile6: 5ef _ZTISt16invalid_argument
-testfile6: 608 __gmon_start__
-testfile6: 617 libm.so.6
-testfile6: 621 _IO_stdin_used
-testfile6: 630 libgcc_s.so.1
-testfile6: 63e _Unwind_Resume
-testfile6: 64d libc.so.6
-testfile6: 657 __libc_start_main
-testfile6: 669 GCC_3.0
-testfile6: 671 GLIBC_2.0
-testfile6: 67b GLIBCPP_3.2
-testfile6: 687 CXXABI_1.2
-testfile6: 908 PTRh
-testfile6: e48 gdb.1
-testfile6: ec8 N10__gnu_test9gnu_obj_1E
-testfile6: ee1 N10__gnu_test9gnu_obj_2IiEE
-testfile6: efd N10__gnu_test9gnu_obj_2IlEE
-testfile6: f19 St16invalid_argument
-testfile7: 114 /lib/ld-linux.so.2
-testfile7: 3d9 libstdc++.so.5
-testfile7: 3e8 _ZTVSt16invalid_argument
-testfile7: 401 _ZNSaIcEC1Ev
-testfile7: 40e _ZTSSt16invalid_argument
-testfile7: 427 _ZTVN10__cxxabiv120__si_class_type_infoE
-testfile7: 450 _ZNSsD1Ev
-testfile7: 45a _ZdlPv
-testfile7: 461 __cxa_end_catch
-testfile7: 471 __gxx_personality_v0
-testfile7: 486 _ZTISt9exception
-testfile7: 497 _ZNSaIcED1Ev
-testfile7: 4a4 _ZTISt11logic_error
-testfile7: 4b8 _ZNSt16invalid_argumentD1Ev
-testfile7: 4d4 _ZTVN10__cxxabiv117__class_type_infoE
-testfile7: 4fa __cxa_throw
-testfile7: 506 _ZNSt16invalid_argumentC1ERKSs
-testfile7: 525 _ZNSsC1EPKcRKSaIcE
-testfile7: 538 _ZNSt11logic_errorD2Ev
-testfile7: 54f _ZTVN10__cxxabiv121__vmi_class_type_infoE
-testfile7: 579 _ZNSt16invalid_argumentD0Ev
-testfile7: 595 __cxa_begin_catch
-testfile7: 5a7 __cxa_allocate_exception
-testfile7: 5c0 _ZNKSt11logic_error4whatEv
-testfile7: 5db _Jv_RegisterClasses
-testfile7: 5ef _ZTISt16invalid_argument
-testfile7: 608 __gmon_start__
-testfile7: 617 libm.so.6
-testfile7: 621 _IO_stdin_used
-testfile7: 630 libgcc_s.so.1
-testfile7: 63e _Unwind_Resume
-testfile7: 64d libc.so.6
-testfile7: 657 __libc_start_main
-testfile7: 669 GCC_3.0
-testfile7: 671 GLIBC_2.0
-testfile7: 67b GLIBCPP_3.2
-testfile7: 687 CXXABI_1.2
-testfile7: 908 PTRh
-testfile7: e48 gdb.1
-testfile7: ec8 N10__gnu_test9gnu_obj_1E
-testfile7: ee1 N10__gnu_test9gnu_obj_2IiEE
-testfile7: efd N10__gnu_test9gnu_obj_2IlEE
-testfile7: f19 St16invalid_argument
-testfile8: 79 XZh;
-testfile8: 87 YXh<
-testfile8: 14f SQh[
-testfile8: 259 t5Wj
-testfile8: 502 WRVQ
-testfile8: 1fe7 ZYPj
-testfile8: 2115 u'Pj
-testfile8: 7bba FILE
-testfile8: 7bbf preserve-dates
-testfile8: 7bce remove-comment
-testfile8: 7bdd Remove .comment section
-testfile8: 7bf6 ${prefix}/share
-testfile8: 7c06 elfutils
-testfile8: 7c0f a.out
-testfile8: 7c15 0.58
-testfile8: 7c1a strip (Red Hat %s) %s
-testfile8: 7c31 2002
-testfile8: 7c36 Ulrich Drepper
-testfile8: 7c45 Written by %s.
-testfile8: 7c55 cannot stat input file "%s"
-testfile8: 7c71 %s: INTERNAL ERROR: %s
-testfile8: 7c88 while opening "%s"
-testfile8: 7c9b handle_elf
-testfile8: 7ca6 ../../src/strip.c
-testfile8: 7cb8 shdr_info[cnt].group_idx != 0
-testfile8: 7cd6 illformed file `%s'
-testfile8: 7cea elf_ndxscn (scn) == cnt
-testfile8: 7d02 .shstrtab
-testfile8: 7d0c while writing `%s': %s
-testfile8: 7d23 ((sym->st_info) & 0xf) == 3
-testfile8: 7d3f shndxdata != ((void *)0)
-testfile8: 7d58 scn != ((void *)0)
-testfile8: 7d6b .gnu_debuglink
-testfile8: 7d7a .comment
-testfile8: 7d83 cannot open `%s'
-testfile8: 7da0 Place stripped output into FILE
-testfile8: 7dc0 Extract the removed sections into FILE
-testfile8: 7e00 Copy modified/access timestamps to the output
-testfile8: 7e40 Only one input file allowed together with '-o' and '-f'
-testfile8: 7e80 Copyright (C) %s Red Hat, Inc.
-testfile8: 7e9f This is free software; see the source for copying conditions. There is NO
-testfile8: 7eea warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-testfile8: 7f40 Report bugs to <drepper@redhat.com>.
-testfile8: 7f80 %s: File format not recognized
-testfile8: 7fa0 cannot set access and modification date of "%s"
-testfile8: 7fe0 cannot create new file `%s': %s
-testfile8: 8000 error while finishing `%s': %s
-testfile8: 8020 shdr_info[shdr_info[cnt].shdr.sh_link].version_idx == 0
-testfile8: 8060 shdr_info[shdr_info[cnt].shdr.sh_link].symtab_idx == 0
-testfile8: 80a0 %s: error while creating ELF header: %s
-testfile8: 80e0 %s: error while reading the file: %s
-testfile8: 8120 sec < 0xff00 || shndxdata != ((void *)0)
-testfile8: 8160 (versiondata->d_size / sizeof (GElf_Versym)) >= shdr_info[cnt].data->d_size / elsize
-testfile8: 81c0 shdr_info[cnt].shdr.sh_type == 11
-testfile8: 8200 (versiondata->d_size / sizeof (Elf32_Word)) >= shdr_info[cnt].data->d_size / elsize
-testfile8: 8260 shdr_info[cnt].shdr.sh_type == 18
-testfile8: 82a0 shdr_info[cnt].data != ((void *)0)
-testfile8: 82e0 elf_ndxscn (shdr_info[cnt].newscn) == idx
-testfile8: 8320 while create section header section: %s
-testfile8: 8360 cannot allocate section data: %s
-testfile8: 83a0 elf_ndxscn (shdr_info[cnt].newscn) == shdr_info[cnt].idx
-testfile8: 83e0 while generating output file: %s
-testfile8: 8420 while preparing output for `%s'
-testfile8: 8440 shdr_info[cnt].shdr.sh_type == 2
-testfile8: 8480 shdr_info[idx].data != ((void *)0)
-testfile8: 84c0 cannot determine number of sections: %s
-testfile8: 8500 cannot get section header string table index
-testfile8: 85c0 Discard symbols from object files.
-testfile8: 85e3 [FILE...]
-testfile9: 79 XZh;
-testfile9: 87 YXh<
-testfile9: 14f SQh[
-testfile9: 259 t5Wj
-testfile9: 502 WRVQ
-testfile9: 1fe7 ZYPj
-testfile9: 2115 u'Pj
-testfile9: 3414 FILE
-testfile9: 3419 preserve-dates
-testfile9: 3428 remove-comment
-testfile9: 3437 Remove .comment section
-testfile9: 3450 ${prefix}/share
-testfile9: 3460 elfutils
-testfile9: 3469 a.out
-testfile9: 346f 0.58
-testfile9: 3474 strip (Red Hat %s) %s
-testfile9: 348b 2002
-testfile9: 3490 Ulrich Drepper
-testfile9: 349f Written by %s.
-testfile9: 34af cannot stat input file "%s"
-testfile9: 34cb %s: INTERNAL ERROR: %s
-testfile9: 34e2 while opening "%s"
-testfile9: 34f5 handle_elf
-testfile9: 3500 ../../src/strip.c
-testfile9: 3512 shdr_info[cnt].group_idx != 0
-testfile9: 3530 illformed file `%s'
-testfile9: 3544 elf_ndxscn (scn) == cnt
-testfile9: 355c .shstrtab
-testfile9: 3566 while writing `%s': %s
-testfile9: 357d ((sym->st_info) & 0xf) == 3
-testfile9: 3599 shndxdata != ((void *)0)
-testfile9: 35b2 scn != ((void *)0)
-testfile9: 35c5 .gnu_debuglink
-testfile9: 35d4 .comment
-testfile9: 35dd cannot open `%s'
-testfile9: 3600 Place stripped output into FILE
-testfile9: 3620 Extract the removed sections into FILE
-testfile9: 3660 Copy modified/access timestamps to the output
-testfile9: 36a0 Only one input file allowed together with '-o' and '-f'
-testfile9: 36e0 Copyright (C) %s Red Hat, Inc.
-testfile9: 36ff This is free software; see the source for copying conditions. There is NO
-testfile9: 374a warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-testfile9: 37a0 Report bugs to <drepper@redhat.com>.
-testfile9: 37e0 %s: File format not recognized
-testfile9: 3800 cannot set access and modification date of "%s"
-testfile9: 3840 cannot create new file `%s': %s
-testfile9: 3860 error while finishing `%s': %s
-testfile9: 3880 shdr_info[shdr_info[cnt].shdr.sh_link].version_idx == 0
-testfile9: 38c0 shdr_info[shdr_info[cnt].shdr.sh_link].symtab_idx == 0
-testfile9: 3900 %s: error while creating ELF header: %s
-testfile9: 3940 %s: error while reading the file: %s
-testfile9: 3980 sec < 0xff00 || shndxdata != ((void *)0)
-testfile9: 39c0 (versiondata->d_size / sizeof (GElf_Versym)) >= shdr_info[cnt].data->d_size / elsize
-testfile9: 3a20 shdr_info[cnt].shdr.sh_type == 11
-testfile9: 3a60 (versiondata->d_size / sizeof (Elf32_Word)) >= shdr_info[cnt].data->d_size / elsize
-testfile9: 3ac0 shdr_info[cnt].shdr.sh_type == 18
-testfile9: 3b00 shdr_info[cnt].data != ((void *)0)
-testfile9: 3b40 elf_ndxscn (shdr_info[cnt].newscn) == idx
-testfile9: 3b80 while create section header section: %s
-testfile9: 3bc0 cannot allocate section data: %s
-testfile9: 3c00 elf_ndxscn (shdr_info[cnt].newscn) == shdr_info[cnt].idx
-testfile9: 3c40 while generating output file: %s
-testfile9: 3c80 while preparing output for `%s'
-testfile9: 3ca0 shdr_info[cnt].shdr.sh_type == 2
-testfile9: 3ce0 shdr_info[idx].data != ((void *)0)
-testfile9: 3d20 cannot determine number of sections: %s
-testfile9: 3d60 cannot get section header string table index
-testfile9: 3e20 Discard symbols from object files.
-testfile9: 3e43 [FILE...]
-EOF
-
-exit 0
diff --git a/src/tests/run-strip-groups.sh b/src/tests/run-strip-groups.sh
deleted file mode 100755
index 1c836a4a..00000000
--- a/src/tests/run-strip-groups.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2011 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-# g++ -gdwarf-4 -c testfile58.cxx
-# class ct
-# {
-# private:
-# int i;
-#
-# public:
-# void foo ()
-# {
-# i = 1;
-# }
-#
-# int bar ()
-# {
-# return i;
-# }
-# };
-#
-# int baz ()
-# {
-# class ct c;
-# c.foo ();
-# return c.bar ();
-# }
-
-. $srcdir/test-subr.sh
-
-infile=testfile58
-outfile=$infile.stripped
-dbgfile=$infile.debug
-
-testfiles $infile
-tempfiles $outfile $dbgfile
-
-testrun ${abs_top_builddir}/src/strip -o $outfile -f $dbgfile $infile
-testrun ${abs_top_builddir}/src/elflint -q $infile
-testrun ${abs_top_builddir}/src/elflint -q $outfile
-testrun ${abs_top_builddir}/src/elflint -q -d $dbgfile
diff --git a/src/tests/run-strip-reloc.sh b/src/tests/run-strip-reloc.sh
deleted file mode 100755
index a3245fd8..00000000
--- a/src/tests/run-strip-reloc.sh
+++ /dev/null
@@ -1,110 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2011, 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles hello_i386.ko hello_x86_64.ko hello_ppc64.ko hello_s390.ko \
- hello_aarch64.ko
-
-tempfiles readelf.out readelf.out1 readelf.out2
-tempfiles out.stripped1 out.debug1 out.stripped2 out.debug2
-
-status=0
-runtest() {
- infile=$1
- is_ET_REL=$2
- outfile1=out.stripped1
- debugfile1=out.debug1
- outfile2=out.stripped2
- debugfile2=out.debug2
-
- testrun ${abs_top_builddir}/src/strip -o $outfile1 -f $debugfile1 $infile ||
- { echo "*** failure strip $infile"; status=1; }
-
- testrun ${abs_top_builddir}/src/strip --reloc-debug-sections -o $outfile2 \
- -f $debugfile2 $infile ||
- { echo "*** failure strip --reloc-debug-sections $infile"; status=1; }
-
- # shouldn't make any difference for stripped files.
- testrun ${abs_top_builddir}/src/readelf -a $outfile1 > readelf.out ||
- { echo "*** failure readelf -a outfile1 $infile"; status=1; }
-
- testrun_compare ${abs_top_builddir}/src/readelf -a $outfile2 < readelf.out ||
- { echo "*** failure compare stripped files $infile"; status=1; }
-
- # debug files however should be smaller, when ET_REL.
- SIZE1=$(stat -c%s $debugfile1)
- SIZE2=$(stat -c%s $debugfile2)
- test \( \( $is_ET_REL -eq 1 \) -a \( $SIZE1 -gt $SIZE2 \) \) \
- -o \( \( $is_ET_REL -eq 0 \) -a \( $SIZE1 -eq $SIZE2 \) \) ||
- { echo "*** failure --reloc-debug-sections not smaller $infile"; status=1; }
-
- # Strip of DWARF section lines, offset will not match.
- # Everything else should match.
- testrun ${abs_top_builddir}/src/readelf -w $debugfile1 \
- | grep -v ^DWARF\ section > readelf.out1 ||
- { echo "*** failure readelf -w debugfile1 $infile"; status=1; }
-
- testrun ${abs_top_builddir}/src/readelf -w $debugfile2 \
- | grep -v ^DWARF\ section > readelf.out2 ||
- { echo "*** failure readelf -w debugfile2 $infile"; status=1; }
-
- testrun_compare cat readelf.out1 < readelf.out2 ||
- { echo "*** failure readelf -w compare $infile"; status=1; }
-}
-
-# Most simple hello world kernel module for various architectures.
-# ::::::::::::::
-# Makefile
-# ::::::::::::::
-# obj-m := hello.o
-# hello-y := init.o exit.o
-#
-# all:
-# make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
-# ::::::::::::::
-# init.c
-# ::::::::::::::
-# #include <linux/kernel.h>
-# #include <linux/module.h>
-#
-# int init_module(void)
-# {
-# printk(KERN_INFO "Hello, world!\n");
-# return 0;
-# }
-# ::::::::::::::
-# exit.c
-# ::::::::::::::
-# #include <linux/kernel.h>
-# #include <linux/module.h>
-#
-# void cleanup_module()
-# {
-# printk(KERN_INFO "Goodbye, World!\n");
-# }
-runtest hello_i386.ko 1
-runtest hello_x86_64.ko 1
-runtest hello_ppc64.ko 1
-runtest hello_s390.ko 1
-runtest hello_aarch64.ko 1
-
-# self test, shouldn't impact non-ET_REL files at all.
-runtest ${abs_top_builddir}/src/strip 0
-runtest ${abs_top_builddir}/src/strip.o 1
-
-exit $status
diff --git a/src/tests/run-strip-test.sh b/src/tests/run-strip-test.sh
deleted file mode 100755
index c558e90b..00000000
--- a/src/tests/run-strip-test.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2003, 2005, 2007, 2008 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-original=${original:-testfile11}
-stripped=${stripped:-testfile7}
-debugout=${debugfile:+-f testfile.debug.temp -F $debugfile}
-
-testfiles $original
-test x$stripped = xtestfile.temp || testfiles $stripped $debugfile
-
-tempfiles testfile.temp testfile.debug.temp testfile.unstrip
-
-testrun ${abs_top_builddir}/src/strip -o testfile.temp $debugout $original
-
-status=0
-
-cmp $stripped testfile.temp || status=$?
-
-# Check elflint and the expected result.
-testrun ${abs_top_builddir}/src/elflint -q testfile.temp || status=$?
-
-test -z "$debugfile" || {
-cmp $debugfile testfile.debug.temp || status=$?
-
-# Check elflint and the expected result.
-testrun ${abs_top_builddir}/src/elflint -q -d testfile.debug.temp || status=$?
-
-# Now test unstrip recombining those files.
-testrun ${abs_top_builddir}/src/unstrip -o testfile.unstrip testfile.temp testfile.debug.temp
-
-# Check that it came back whole.
-testrun ${abs_top_builddir}/src/elfcmp --hash-inexact $original testfile.unstrip
-}
-
-tempfiles testfile.sections
-testrun ${abs_top_builddir}/src/readelf -S testfile.temp > testfile.sections || status=$?
-fgrep ' .debug_' testfile.sections && status=1
-
-exit $status
diff --git a/src/tests/run-strip-test2.sh b/src/tests/run-strip-test2.sh
deleted file mode 100755
index 92171966..00000000
--- a/src/tests/run-strip-test2.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-original=testfile8
-stripped=testfile9
-. $srcdir/run-strip-test.sh
diff --git a/src/tests/run-strip-test3.sh b/src/tests/run-strip-test3.sh
deleted file mode 100755
index fb37a769..00000000
--- a/src/tests/run-strip-test3.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /bin/sh
-# Copyright (C) 1999, 2000, 2002, 2003, 2005 Red Hat, Inc.
-# This file is part of elfutils.
-# Written by Ulrich Drepper <drepper@redhat.com>, 1999.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-original=testfile12
-stripped=testfile13
-. $srcdir/run-strip-test.sh
diff --git a/src/tests/run-strip-test4.sh b/src/tests/run-strip-test4.sh
deleted file mode 100755
index 64924a92..00000000
--- a/src/tests/run-strip-test4.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-original=testfile11
-stripped=testfile37
-debugfile=testfile37.debug
-
-. $srcdir/run-strip-test.sh
diff --git a/src/tests/run-strip-test5.sh b/src/tests/run-strip-test5.sh
deleted file mode 100755
index 9fa9ebef..00000000
--- a/src/tests/run-strip-test5.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-original=testfile8
-stripped=testfile16
-debugfile=testfile16.debug
-
-. $srcdir/run-strip-test.sh
diff --git a/src/tests/run-strip-test6.sh b/src/tests/run-strip-test6.sh
deleted file mode 100755
index c59bf5e4..00000000
--- a/src/tests/run-strip-test6.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-original=testfile12
-stripped=testfile35
-debugfile=testfile35.debug
-
-. $srcdir/run-strip-test.sh
diff --git a/src/tests/run-strip-test7.sh b/src/tests/run-strip-test7.sh
deleted file mode 100755
index c65cd050..00000000
--- a/src/tests/run-strip-test7.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-original=testfile39
-stripped=testfile40
-debugfile=testfile40.debug
-
-. $srcdir/run-strip-test.sh
diff --git a/src/tests/run-strip-test8.sh b/src/tests/run-strip-test8.sh
deleted file mode 100755
index fb9fa087..00000000
--- a/src/tests/run-strip-test8.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-original=testfile47
-stripped=testfile48
-debugfile=testfile48.debug
-
-. $srcdir/run-strip-test.sh
diff --git a/src/tests/run-test-archive64.sh b/src/tests/run-test-archive64.sh
deleted file mode 100755
index 43df16e4..00000000
--- a/src/tests/run-test-archive64.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# The test archive was produced on an s390x machine using the
-# following command sequence:
-# echo 'int aaa(void){}' | gcc -x c /dev/stdin -c -o aaa.o
-# echo 'int bbb(void){} int bbb2(void){}' | gcc -x c /dev/stdin -c -o bbb.o
-# echo 'int ccc(void){} int ccc2(void){} int ccc3(void){}' \
-# | gcc -x c /dev/stdin -c -o ccc.o
-# ar cru testarchive64.a aaa.o bbb.o ccc.o
-testfiles testarchive64.a
-
-testrun_compare ${abs_top_builddir}/src/readelf -c testarchive64.a <<\EOF
-
-Index of archive 'testarchive64.a' has 7 entries:
-Archive member 'aaa.o' contains:
- aaa
-Archive member 'bbb.o' contains:
- bbb
- bbb2
-Archive member 'ccc.o' contains:
- ccc
- ccc2
- ccc3
-EOF
-
-exit 0
diff --git a/src/tests/run-test-flag-nobits.sh b/src/tests/run-test-flag-nobits.sh
deleted file mode 100755
index 9bedf174..00000000
--- a/src/tests/run-test-flag-nobits.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2010 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-testfiles testfile
-
-testrun ${abs_builddir}/test-flag-nobits testfile
diff --git a/src/tests/run-typeiter.sh b/src/tests/run-typeiter.sh
deleted file mode 100755
index 605ee2a2..00000000
--- a/src/tests/run-typeiter.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# struct s1
-# {
-# char c;
-# short s;
-# int i;
-# long l;
-# float f;
-# double d;
-# };
-#
-# s1 S1;
-#
-# int func (s1 *p)
-# {
-# return p->i;
-# }
-#
-# int main()
-# {
-# return func (&S1);
-# }
-#
-# g++ -gdwarf-4 -g -fdebug-types-section
-
-testfiles testfile59
-
-testrun_compare ${abs_builddir}/typeiter testfile59 <<\EOF
-ok
-EOF
-
-testrun_compare ${abs_builddir}/typeiter2 testfile59 <<\EOF
-ok
-EOF
-
-exit 0
diff --git a/src/tests/run-unstrip-M.sh b/src/tests/run-unstrip-M.sh
deleted file mode 100755
index 614a8aa5..00000000
--- a/src/tests/run-unstrip-M.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# Linux /proc/PID/maps file with some non-file entries (and fake exe/lib names).
-tempfiles testmaps
-cat > testmaps <<EOF
-00400000-024aa000 r-xp 00000000 08:02 159659 /opt/TestBins/bin/arwijn
-026aa000-026b2000 rwxp 020aa000 08:02 159659 /opt/TestBins/bin/arwijn
-026b2000-026bf000 rwxp 00000000 00:00 0
-0335a000-03e6f000 rwxp 00000000 00:00 0 [heap]
-2b7b38282000-2b7b38302000 rwxs 00000000 00:06 493872 socket:[493872]
-2b7b38302000-2b7b38312000 rwxs 00000000 00:06 493872 socket:[493872]
-2b7b38312000-2b7b38b12000 r-xs 00000000 00:06 493872 socket:[493872]
-2b7b38b12000-2b7b38b22000 rwxs 00000000 00:06 493872 socket:[493872]
-2b7b38b22000-2b7b39322000 rwxs 00000000 00:06 493872 socket:[493872]
-2b7b4439f000-2b7b45ea1000 rwxp 00000000 00:00 0
-7f31e7d9f000-7f31e7f29000 r-xp 00000000 fd:00 917531 /lib64/libc-1.13.so
-7f31e7f29000-7f31e8128000 ---p 0018a000 fd:00 917531 /lib64/libc-1.13.so
-7f31e8128000-7f31e812c000 r--p 00189000 fd:00 917531 /lib64/libc-1.13.so
-7f31e812c000-7f31e812d000 rw-p 0018d000 fd:00 917531 /lib64/libc-1.13.so
-7f31e812d000-7f31e8132000 rw-p 00000000 00:00 0
-7f31ea3f9000-7f31ea3fc000 rw-s 00000000 00:09 3744 anon_inode:kvm-vcpu
-7f31ea3fc000-7f31ea3ff000 rw-s 00000000 00:09 3744 anon_inode:kvm-vcpu
-7f31ea400000-7f31ea402000 rw-p 00000000 00:00 0
-7fff26cf7000-7fff26d0c000 rwxp 00000000 00:00 0 [stack]
-7fff26dff000-7fff26e00000 r-xp 00000000 00:00 0 [vdso]
-ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
-EOF
-
-testrun_compare ${abs_top_builddir}/src/unstrip -n -M testmaps <<\EOF
-0x400000+0x22b2000 - - - /opt/TestBins/bin/arwijn
-0x7f31e7d9f000+0x38e000 - - - /lib64/libc-1.13.so
-EOF
-
-exit 0
diff --git a/src/tests/run-unstrip-n.sh b/src/tests/run-unstrip-n.sh
deleted file mode 100755
index 37cbd607..00000000
--- a/src/tests/run-unstrip-n.sh
+++ /dev/null
@@ -1,76 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# https://bugzilla.redhat.com/show_bug.cgi?id=805447
-# eu-unstrip emits garbage for librt.so.1
-#
-# #include <stdio.h>
-# #include <sys/mman.h>
-#
-# int main(int argc, char **argv)
-# {
-# // Yes, this crashes... That is the point.
-# return shm_open(argv[1], 0, 0);
-# }
-#
-# gcc -m32 -o rt_crash -lrt rt_crash.c
-
-testfiles testcore-rtlib testcore-rtlib-ppc
-
-testrun_compare ${abs_top_builddir}/src/unstrip -n --core=testcore-rtlib <<\EOF
-0x8048000+0x2000 f1c600bc36cb91bf01f9a63a634ecb79aa4c3199@0x8048178 . - [exe]
-0xf75e9000+0x1a000 29a103420abe341e92072fb14274e250e4072148@0xf75e9164 - - libpthread.so.0
-0xf7603000+0x1b0000 0b9bf374699e141e5dfc14757ff42b8c2373b4de@0xf7603184 - - libc.so.6
-0xf77b3000+0x9000 c6c5b5e35ab9589d4762ac85b4bd56b1b2720e37@0xf77b3164 - - librt.so.1
-0xf77d6000+0x1000 676560b1b765cde9c2e53f134f4ee354ea894747@0xf77d6210 . - linux-gate.so.1
-0xf77d7000+0x21000 6d2cb32650054f1c176d01d48713a4a5e5e84c1a@0xf77d7124 - - ld-linux.so.2
-EOF
-
-testrun_compare ${abs_top_builddir}/src/unstrip -n --core=testcore-rtlib-ppc <<\EOF
-0x100000+0x10000 708b900b05176964512a6b0fe90c2a0c9d73d726@0x100334 . - linux-vdso32.so.1
-0xfd50000+0x30000 3f7d21508470322d2f47acddc20ab10516edba99@0xfd50164 . - librt.so.1
-0xfdb0000+0x40000 f6ee91d4c629bc7dacc10534cb30056914e7e0b5@0xfdb0164 - - libpthread.so.0
-0xfdf0000+0x1c0000 edf3dd232e09d01b90683889bd16b9406c52d4de@0xfdf0184 - - libc.so.6
-0xffb0000+0x50000 edec437a85026a1cf8cda94003706202733130c1@0xffb0124 - - ld.so.1
-0x10000000+0x20000 979b7a26747cc09bd84a42b311b5288c704baea5@0x10000174 . - [exe]
-EOF
-
-# FAIL was 0x7f67f2caf000 for test-core-lib.so .
-# /lib64/libc.so.6 and /lib64/ld-linux-x86-64.so.2 from link map
-# do not have ELF header stored in the core file.
-# ELF headers in the core file:
-# Offset VirtAddr
-# 0x014000 0x00007f67f2caf000 ./test-core-lib.so
-# 0x03a000 0x00007fff1596c000 linux-vdso.so.1
-testfiles test-core.core test-core.exec
-rm -f test-core-lib.so
-outfile=test-core.out
-testrun_out $outfile ${abs_top_builddir}/src/unstrip -n -e test-core.exec --core=test-core.core
-outfile2=test-core.out2
-remove_files="$remove_files $outfile2"
-grep -v libc.so.6 $outfile | sort >$outfile2
-diff -u $outfile2 - <<EOF
-0x400000+0x202038 - test-core.exec - test-core.exec
-0x7f67f2aaf000+0x202000 - . - /home/jkratoch/redhat/elfutils-libregr/test-core-lib.so
-0x7fff1596c000+0x1000 a9cf37f53897b5468ee018655760be61b8633d3c@0x7fff1596c340 . - linux-vdso.so.1
-EOF
-
-test_cleanup
-
-exit 0
diff --git a/src/tests/run-unstrip-test.sh b/src/tests/run-unstrip-test.sh
deleted file mode 100755
index dc7d3a42..00000000
--- a/src/tests/run-unstrip-test.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2007-2010 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-original=${original:-testfile12}
-stripped=${stripped:-testfile17}
-debugfile=${debugfile:-${stripped}.debug}
-
-testfiles $original $stripped $debugfile
-tempfiles testfile.unstrip testfile.inplace
-
-# These are old reference output from run-test-strip6.sh, when
-# strip left the .debug file with unchanged sh_size in
-# stripped sections that shrank in the stripped file. strip
-# no longer does that, but unstrip must still handle it.
-
-testrun ${abs_top_builddir}/src/unstrip -o testfile.unstrip $stripped $debugfile
-
-testrun ${abs_top_builddir}/src/elfcmp --hash-inexact $original testfile.unstrip
-
-# Also test modifying the file in place.
-
-rm -f testfile.inplace
-cp $debugfile testfile.inplace
-chmod 644 testfile.inplace
-testrun ${abs_top_builddir}/src/unstrip $stripped testfile.inplace
-
-testrun ${abs_top_builddir}/src/elfcmp --hash-inexact $original testfile.inplace
diff --git a/src/tests/run-unstrip-test2.sh b/src/tests/run-unstrip-test2.sh
deleted file mode 100755
index 44074c19..00000000
--- a/src/tests/run-unstrip-test2.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-original=testfile11
-stripped=testfile15
-debugfile=testfile15.debug
-
-. $srcdir/run-unstrip-test.sh
diff --git a/src/tests/run-varlocs.sh b/src/tests/run-varlocs.sh
deleted file mode 100755
index 9c4b313e..00000000
--- a/src/tests/run-varlocs.sh
+++ /dev/null
@@ -1,128 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2013 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-. $srcdir/test-subr.sh
-
-# See the source files testfile_const_type.c testfile_implicit_value.c
-# testfile_entry_value.c testfile_parameter_ref.c testfile_implicit_pointer.c
-# how to regenerate the test files (needs GCC 4.8+).
-
-testfiles testfile_const_type testfile_implicit_value testfile_entry_value
-testfiles testfile_parameter_ref testfile_implicit_pointer
-
-testrun_compare ${abs_top_builddir}/tests/varlocs -e testfile_const_type <<\EOF
-module 'testfile_const_type'
-[b] CU 'const_type.c'@0
- [33] function 'f1'@80483f0
- frame_base: {call_frame_cfa {bregx(4,4)}}
- [4b] parameter 'd'
- [80483f0,804841b) {fbreg(0)}
- [57] variable 'w'
- [80483f0,804841b) {fbreg(0), GNU_deref_type(8){long long int,signed,64@[25]}, GNU_const_type{long long int,signed,64@[25]}(8)[0000806745230100], div, GNU_convert{long long unsigned int,unsigned,64@[2c]}, stack_value}
- [7d] function 'main'@80482f0
- frame_base: {call_frame_cfa {bregx(4,4)}}
-EOF
-
-testrun_compare ${abs_top_builddir}/tests/varlocs -e testfile_implicit_value <<\EOF
-module 'testfile_implicit_value'
-[b] CU 'implicit_value.c'@0
- [25] function 'foo'@80483f0
- frame_base: {call_frame_cfa {bregx(4,4)}}
- [3e] variable 'a'
- [80483f0,80483f6) {implicit_value(8){0200000000000000}, piece(8), implicit_value(8){1500000000000000}, piece(8)}
- [86] function 'main'@80482f0
- frame_base: {call_frame_cfa {bregx(4,4)}}
-EOF
-
-testrun_compare ${abs_top_builddir}/tests/varlocs -e testfile_entry_value <<\EOF
-module 'testfile_entry_value'
-[b] CU 'entry_value.c'@0
- [29] function 'foo'@400500
- frame_base: {call_frame_cfa {bregx(7,8)}}
- [4a] parameter 'x'
- [400500,400504) {reg5}
- [55] parameter 'y'
- [400500,400504) {reg4}
- [68] function 'bar'@400510
- frame_base: {call_frame_cfa {bregx(7,8)}}
- [89] parameter 'x'
- [400510,40051c) {reg5}
- [40051c,40052b) {reg6}
- [40052b,400531) {GNU_entry_value(1) {reg5}, stack_value}
- [96] parameter 'y'
- [400510,40051c) {reg4}
- [40051c,40052a) {reg3}
- [40052a,400531) {GNU_entry_value(1) {reg4}, stack_value}
- [a3] variable 'z'
- [400524,400528) {reg0}
- [400528,400529) {reg12}
- [400529,40052e) {breg0(0), breg12(0), plus, stack_value}
- [40052e,400531) {reg0}
- [e9] function 'main'@400400
- frame_base: {call_frame_cfa {bregx(7,8)}}
- [10a] parameter 'argc'
- [400400,400406) {reg5}
- [400406,40040a) {breg5(-1), stack_value}
- [40040a,40040b) {GNU_entry_value(1) {reg5}, stack_value}
- [119] parameter 'argv'
- [400400,400403) {reg4}
- [400403,40040b) {GNU_entry_value(1) {reg4}, stack_value}
-EOF
-
-testrun_compare ${abs_top_builddir}/tests/varlocs -e testfile_parameter_ref <<\EOF
-module 'testfile_parameter_ref'
-[b] CU 'parameter_ref.c'@0
- [77] function 'foo'@400510
- frame_base: {call_frame_cfa {bregx(7,8)}}
- [92] parameter 'x'
- [400510,400523) {reg5}
- [99] parameter 'y'
- [400510,400523) {GNU_parameter_ref[42], stack_value}
- [a5] variable 'a'
- [400510,400523) {breg5(0), lit1, shl, stack_value}
- [b0] variable 'b'
- [400510,400523) {GNU_parameter_ref[42], lit1, shl, stack_value}
- [be] variable 'c'
- <constant value>
- [c4] parameter 'z'
- <constant value>
- [cb] function 'main'@400400
- frame_base: {call_frame_cfa {bregx(7,8)}}
- [ec] parameter 'x'
- [400400,400408) {reg5}
- [400408,400421) {reg3}
- [400421,400423) {GNU_entry_value(1) {reg5}, stack_value}
- [f9] parameter 'argv'
- [400400,400408) {reg4}
- [400408,400423) {GNU_entry_value(1) {reg4}, stack_value}
-EOF
-
-testrun_compare ${abs_top_builddir}/tests/varlocs -e testfile_implicit_pointer <<\EOF
-module 'testfile_implicit_pointer'
-[b] CU 'implicit_pointer.c'@0
- [29] function 'foo'@400500
- frame_base: {call_frame_cfa {bregx(7,8)}}
- [4a] parameter 'i'
- [400500,400503) {reg5}
- [55] variable 'p'
- [400500,400503) {GNU_implicit_pointer([4a],0) {reg5}}
- [73] function 'main'@400400
- frame_base: {call_frame_cfa {bregx(7,8)}}
-EOF
-
-
-exit 0
diff --git a/src/tests/saridx.c b/src/tests/saridx.c
deleted file mode 100644
index 8a450d82..00000000
--- a/src/tests/saridx.c
+++ /dev/null
@@ -1,257 +0,0 @@
-/* Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <error.h>
-#include <fcntl.h>
-#include <gelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <time.h>
-#include <unistd.h>
-
-
-static const char *machines[] =
-{
-#define MACHINE(name) [name] = #name
- MACHINE (EM_NONE),
- MACHINE (EM_M32),
- MACHINE (EM_SPARC),
- MACHINE (EM_386),
- MACHINE (EM_68K),
- MACHINE (EM_88K),
- MACHINE (EM_860),
- MACHINE (EM_MIPS),
- MACHINE (EM_MIPS_RS3_LE),
- MACHINE (EM_PARISC),
- MACHINE (EM_VPP500),
- MACHINE (EM_SPARC32PLUS),
- MACHINE (EM_960),
- MACHINE (EM_PPC),
- MACHINE (EM_PPC64),
- MACHINE (EM_V800),
- MACHINE (EM_FR20),
- MACHINE (EM_RH32),
- MACHINE (EM_RCE),
- MACHINE (EM_ARM),
- MACHINE (EM_FAKE_ALPHA),
- MACHINE (EM_SH),
- MACHINE (EM_SPARCV9),
- MACHINE (EM_TRICORE),
- MACHINE (EM_ARC),
- MACHINE (EM_H8_300),
- MACHINE (EM_H8_300H),
- MACHINE (EM_H8S),
- MACHINE (EM_H8_500),
- MACHINE (EM_IA_64),
- MACHINE (EM_MIPS_X),
- MACHINE (EM_COLDFIRE),
- MACHINE (EM_68HC12),
- MACHINE (EM_MMA),
- MACHINE (EM_PCP),
- MACHINE (EM_NCPU),
- MACHINE (EM_NDR1),
- MACHINE (EM_STARCORE),
- MACHINE (EM_ME16),
- MACHINE (EM_ST100),
- MACHINE (EM_TINYJ),
- MACHINE (EM_FX66),
- MACHINE (EM_ST9PLUS),
- MACHINE (EM_ST7),
- MACHINE (EM_68HC16),
- MACHINE (EM_68HC11),
- MACHINE (EM_68HC08),
- MACHINE (EM_68HC05),
- MACHINE (EM_SVX),
- MACHINE (EM_ST19),
- MACHINE (EM_VAX)
-};
-
-
-int
-main (int argc, char *argv[])
-{
- int fd;
- Elf *elf;
- Elf_Cmd cmd;
- size_t n;
- int arg = 1;
- int verbose = 0;
-
- /* Recognize optional verbosity flag. */
- if (arg < argc && strcmp (argv[arg], "-v") == 0)
- {
- verbose = 1;
- ++arg;
- }
-
- /* Any more arguments available. */
- if (arg >= argc)
- error (EXIT_FAILURE, 0, "No input file given");
-
- /* Open the input file. */
- fd = open (argv[arg], O_RDONLY);
- if (fd == -1)
- {
- perror ("cannot open input file");
- exit (1);
- }
-
- /* Set the ELF version we are using here. */
- if (elf_version (EV_CURRENT) == EV_NONE)
- {
- puts ("ELF library too old");
- exit (1);
- }
-
- /* Start reading the file. */
- cmd = ELF_C_READ;
- elf = elf_begin (fd, cmd, NULL);
- if (elf == NULL)
- {
- printf ("elf_begin: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* If it is no archive punt. */
- if (elf_kind (elf) != ELF_K_AR)
- {
- printf ("%s is not an archive\n", argv[1]);
- exit (1);
- }
-
- if (verbose)
- {
- /* The verbose variant. We print a lot of information. */
- Elf *subelf;
- char buf[100];
- time_t t;
-
- /* Get the elements of the archive one after the other. */
- while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
- {
- /* The the header for this element. */
- Elf_Arhdr *arhdr = elf_getarhdr (subelf);
-
- if (arhdr == NULL)
- {
- printf ("cannot get arhdr: %s\n", elf_errmsg (-1));
- break;
- }
-
- switch (elf_kind (subelf))
- {
- case ELF_K_ELF:
- fputs ("ELF file:\n", stdout);
- break;
-
- case ELF_K_AR:
- fputs ("archive:\n", stdout);
- break;
-
- default:
- fputs ("unknown file:\n", stdout);
- break;
- }
-
- /* Print general information. */
- t = arhdr->ar_date;
- strftime (buf, sizeof buf, "%Y-%m-%dT%H:%M:%S%z", gmtime (&t));
- printf (" name : \"%s\"\n"
- " time : %s\n"
- " uid : %ld\n"
- " gid : %ld\n"
- " mode : %o\n"
- " size : %ld\n"
- " rawname : \"%s\"\n",
- arhdr->ar_name,
- buf,
- (long int) arhdr->ar_uid,
- (long int) arhdr->ar_gid,
- arhdr->ar_mode,
- (long int) arhdr->ar_size,
- arhdr->ar_rawname);
-
- /* For ELF files we can provide some more information. */
- if (elf_kind (subelf) == ELF_K_ELF)
- {
- GElf_Ehdr ehdr;
-
- /* Get the ELF header. */
- if (gelf_getehdr (subelf, &ehdr) == NULL)
- printf (" *** cannot get ELF header: %s\n", elf_errmsg (-1));
- else
- {
- printf (" binary class : %s\n",
- ehdr.e_ident[EI_CLASS] == ELFCLASS32
- ? "ELFCLASS32" : "ELFCLASS64");
- printf (" data encoding: %s\n",
- ehdr.e_ident[EI_DATA] == ELFDATA2LSB
- ? "ELFDATA2LSB" : "ELFDATA2MSB");
- printf (" binary type : %s\n",
- ehdr.e_type == ET_REL
- ? "relocatable"
- : (ehdr.e_type == ET_EXEC
- ? "executable"
- : (ehdr.e_type == ET_DYN
- ? "dynamic"
- : "core file")));
- printf (" machine : %s\n",
- (ehdr.e_machine >= (sizeof (machines)
- / sizeof (machines[0]))
- || machines[ehdr.e_machine] == NULL)
- ? "???"
- : machines[ehdr.e_machine]);
- }
- }
-
- /* Get next archive element. */
- cmd = elf_next (subelf);
- if (elf_end (subelf) != 0)
- printf ("error while freeing sub-ELF descriptor: %s\n",
- elf_errmsg (-1));
- }
- }
- else
- {
- /* The simple version. Only print a bit of information. */
- Elf_Arsym *arsym = elf_getarsym (elf, &n);
-
- if (n == 0)
- printf ("no symbol table in archive: %s\n", elf_errmsg (-1));
- else
- {
- --n;
-
- while (n-- > 0)
- printf ("name = \"%s\", offset = %ld, hash = %lx\n",
- arsym[n].as_name, (long int) arsym[n].as_off,
- arsym[n].as_hash);
- }
- }
-
- /* Free the ELF handle. */
- if (elf_end (elf) != 0)
- printf ("error while freeing ELF descriptor: %s\n", elf_errmsg (-1));
-
- /* Close the underlying file. */
- close (fd);
-
- return 0;
-}
diff --git a/src/tests/scnnames.c b/src/tests/scnnames.c
deleted file mode 100644
index 7f268258..00000000
--- a/src/tests/scnnames.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/* Copyright (C) 1998, 1999, 2000, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <errno.h>
-#include <fcntl.h>
-#include <gelf.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-int
-main (int argc, char *argv[])
-{
- Elf *elf;
- int fd;
- GElf_Ehdr ehdr;
- size_t strndx;
- Elf_Scn *scn;
-
- if (argc < 2)
- {
- puts ("missing parameter");
- exit (1);
- }
-
- fd = open (argv[1], O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open \"%s\": %s\n", argv[1], strerror (errno));
- exit (1);
- }
-
- elf_version (EV_CURRENT);
-
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("cannot open ELF file: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- if (elf_kind (elf) != ELF_K_ELF)
- {
- printf ("\"%s\" is not an ELF file\n", argv[1]);
- exit (1);
- }
-
- if (gelf_getehdr (elf, &ehdr) == NULL)
- {
- printf ("cannot get the ELF header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- strndx = ehdr.e_shstrndx;
-
- scn = NULL;
- while ((scn = elf_nextscn (elf, scn)) != NULL)
- {
- char *name = NULL;
- GElf_Shdr shdr;
-
- if (gelf_getshdr (scn, &shdr) != NULL)
- name = elf_strptr (elf, strndx, (size_t) shdr.sh_name);
-
- printf ("section: `%s'\n", name);
- }
-
- if (elf_end (elf) != 0)
- {
- printf ("error while freeing ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- return 0;
-}
diff --git a/src/tests/sectiondump.c b/src/tests/sectiondump.c
deleted file mode 100644
index f8659549..00000000
--- a/src/tests/sectiondump.c
+++ /dev/null
@@ -1,182 +0,0 @@
-/* Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <errno.h>
-#include <error.h>
-#include <fcntl.h>
-#include <gelf.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-
-/* Prototypes for local functions. */
-static int handle_section (Elf *elf, Elf_Scn *scn);
-static void print_bytes (Elf_Data *data);
-static void print_symtab (Elf *elf, Elf_Data *data);
-
-
-int
-main (int argc, char *argv[])
-{
- Elf *elf;
- int fd;
- int cnt;
-
- if (argc <= 1)
- exit (1);
-
- /* Open the test file. This is given as the first parameter to the
- program. */
- fd = open (argv[1], O_RDONLY);
- if (fd == -1)
- error (EXIT_FAILURE, errno, "cannot open input file `%s'", argv[1]);
-
- /* Set the library versio we expect. */
- elf_version (EV_CURRENT);
-
- /* Create the ELF descriptor. */
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- error (EXIT_FAILURE, 0, "cannot create ELF descriptor: %s",
- elf_errmsg (0));
-
- /* Now proces all the sections mentioned in the rest of the command line. */
- for (cnt = 2; cnt < argc; ++cnt)
- if (handle_section (elf, elf_getscn (elf, atoi (argv[cnt]))) != 0)
- /* When we encounter an error stop immediately. */
- error (EXIT_FAILURE, 0, "while processing section %d: %s", cnt,
- elf_errmsg (0));
-
- /* Close the descriptor. */
- if (elf_end (elf) != 0)
- error (EXIT_FAILURE, 0, "failure while closing ELF descriptor: %s",
- elf_errmsg (0));
-
- return 0;
-}
-
-
-static int
-handle_section (Elf *elf, Elf_Scn *scn)
-{
- GElf_Ehdr *ehdr;
- GElf_Ehdr ehdr_mem;
- GElf_Shdr *shdr;
- GElf_Shdr shdr_mem;
- Elf_Data *data;
-
- /* First get the ELF and section header. */
- ehdr = gelf_getehdr (elf, &ehdr_mem);
- shdr = gelf_getshdr (scn, &shdr_mem);
- if (ehdr == NULL || shdr == NULL)
- return 1;
-
- /* Print the information from the ELF section header. */
- printf ("name = %s\n"
- "type = %" PRId32 "\n"
- "flags = %" PRIx64 "\n"
- "addr = %" PRIx64 "\n"
- "offset = %" PRIx64 "\n"
- "size = %" PRId64 "\n"
- "link = %" PRId32 "\n"
- "info = %" PRIx32 "\n"
- "addralign = %" PRIx64 "\n"
- "entsize = %" PRId64 "\n",
- elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
- shdr->sh_type,
- shdr->sh_flags,
- shdr->sh_addr,
- shdr->sh_offset,
- shdr->sh_size,
- shdr->sh_link,
- shdr->sh_info,
- shdr->sh_addralign,
- shdr->sh_entsize);
-
- /* Get the section data now. */
- data = elf_getdata (scn, NULL);
- if (data == NULL)
- return 1;
-
- /* Now proces the different section types accordingly. */
- switch (shdr->sh_type)
- {
- case SHT_SYMTAB:
- print_symtab (elf, data);
- break;
-
- case SHT_PROGBITS:
- default:
- print_bytes (data);
- break;
- }
-
- /* Separate form the next section. */
- puts ("");
-
- /* All done correctly. */
- return 0;
-}
-
-
-static void
-print_bytes (Elf_Data *data)
-{
- size_t size = data->d_size;
- off_t offset = data->d_off;
- unsigned char *buf = (unsigned char *) data->d_buf;
- size_t cnt;
-
- for (cnt = 0; cnt < size; cnt += 16)
- {
- size_t inner;
-
- printf ("%*Zx: ", sizeof (size_t) == 4 ? 8 : 16, (size_t) offset + cnt);
-
- for (inner = 0; inner < 16 && cnt + inner < size; ++inner)
- printf (" %02hhx", buf[cnt + inner]);
-
- puts ("");
- }
-}
-
-
-static void
-print_symtab (Elf *elf, Elf_Data *data)
-{
- int class = gelf_getclass (elf);
- size_t nsym = data->d_size / (class == ELFCLASS32
- ? sizeof (Elf32_Sym) : sizeof (Elf64_Sym));
- size_t cnt;
-
- for (cnt = 0; cnt < nsym; ++cnt)
- {
- GElf_Sym sym_mem;
- GElf_Sym *sym = gelf_getsym (data, cnt, &sym_mem);
-
- printf ("%5Zu: %*" PRIx64 " %6" PRIx64 " %4d\n",
- cnt,
- class == ELFCLASS32 ? 8 : 16,
- sym->st_value,
- sym->st_size,
- GELF_ST_TYPE (sym->st_info));
- }
-}
diff --git a/src/tests/show-abbrev.c b/src/tests/show-abbrev.c
deleted file mode 100644
index b0af0297..00000000
--- a/src/tests/show-abbrev.c
+++ /dev/null
@@ -1,131 +0,0 @@
-/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <fcntl.h>
-#include <inttypes.h>
-#include ELFUTILS_HEADER(dw)
-#include <stdio.h>
-#include <unistd.h>
-
-
-int
-main (int argc, char *argv[])
-{
- int cnt;
-
- for (cnt = 1; cnt < argc; ++cnt)
- {
- int fd = open (argv[cnt], O_RDONLY);
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg == NULL)
- {
- printf ("%s not usable: %s\n", argv[cnt], dwarf_errmsg (-1));
- close (fd);
- continue;
- }
-
- Dwarf_Off cuoff = 0;
- Dwarf_Off old_cuoff = 0;
- size_t hsize;
- while (dwarf_nextcu (dbg, cuoff, &cuoff, &hsize, NULL, NULL, NULL) == 0)
- {
- /* Get the DIE for the CU. */
- Dwarf_Die die;
- if (dwarf_offdie (dbg, old_cuoff + hsize, &die) == NULL)
- /* Something went wrong. */
- break;
-
- Dwarf_Off offset = 0;
-
- while (1)
- {
- size_t length;
- Dwarf_Abbrev *abbrev = dwarf_getabbrev (&die, offset, &length);
- if (abbrev == NULL || abbrev == DWARF_END_ABBREV)
- /* End of the list. */
- break;
-
- unsigned tag = dwarf_getabbrevtag (abbrev);
- if (tag == 0)
- {
- printf ("dwarf_getabbrevtag at offset %llu returned error: %s\n",
- (unsigned long long int) offset,
- dwarf_errmsg (-1));
- break;
- }
-
- unsigned code = dwarf_getabbrevcode (abbrev);
- if (code == 0)
- {
- printf ("dwarf_getabbrevcode at offset %llu returned error: %s\n",
- (unsigned long long int) offset,
- dwarf_errmsg (-1));
- break;
- }
-
- int children = dwarf_abbrevhaschildren (abbrev);
- if (children < 0)
- {
- printf ("dwarf_abbrevhaschildren at offset %llu returned error: %s\n",
- (unsigned long long int) offset,
- dwarf_errmsg (-1));
- break;
- }
-
- printf ("abbrev[%llu]: code = %u, tag = %u, children = %d\n",
- (unsigned long long int) offset, code, tag, children);
-
- size_t attrcnt;
- if (dwarf_getattrcnt (abbrev, &attrcnt) != 0)
- {
- printf ("dwarf_getattrcnt at offset %llu returned error: %s\n",
- (unsigned long long int) offset,
- dwarf_errmsg (-1));
- break;
- }
-
- unsigned int attr_num;
- unsigned int attr_form;
- Dwarf_Off aboffset;
- size_t j;
- for (j = 0; j < attrcnt; ++j)
- if (dwarf_getabbrevattr (abbrev, j, &attr_num, &attr_form,
- &aboffset))
- printf ("dwarf_getabbrevattr for abbrev[%llu] and index %zu failed\n",
- (unsigned long long int) offset, j);
- else
- printf ("abbrev[%llu]: attr[%zu]: code = %u, form = %u, offset = %" PRIu64 "\n",
- (unsigned long long int) offset, j, attr_num,
- attr_form, (uint64_t) aboffset);
-
- offset += length;
- }
-
- old_cuoff = cuoff;
- }
-
- if (dwarf_end (dbg) != 0)
- printf ("dwarf_end failed for %s: %s\n", argv[cnt],
- dwarf_errmsg (-1));
-
- close (fd);
- }
-
- return 0;
-}
diff --git a/src/tests/show-die-info.c b/src/tests/show-die-info.c
deleted file mode 100644
index 0c298acd..00000000
--- a/src/tests/show-die-info.c
+++ /dev/null
@@ -1,358 +0,0 @@
-/* Copyright (C) 1998-2002, 2004, 2006, 2012 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <dwarf.h>
-#include <inttypes.h>
-#include <libelf.h>
-#include ELFUTILS_HEADER(dw)
-#include <fcntl.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-
-#include "../libdw/known-dwarf.h"
-
-static const char *
-dwarf_tag_string (unsigned int tag)
-{
- switch (tag)
- {
-#define ONE_KNOWN_DW_TAG(NAME, CODE) case CODE: return #NAME;
- ALL_KNOWN_DW_TAG
-#undef ONE_KNOWN_DW_TAG
- default:
- return NULL;
- }
-}
-
-static const char *
-dwarf_attr_string (unsigned int attrnum)
-{
- switch (attrnum)
- {
-#define ONE_KNOWN_DW_AT(NAME, CODE) case CODE: return #NAME;
- ALL_KNOWN_DW_AT
-#undef ONE_KNOWN_DW_AT
- default:
- return NULL;
- }
-}
-
-
-void
-handle (Dwarf *dbg, Dwarf_Die *die, int n)
-{
- Dwarf_Die child;
- unsigned int tag;
- const char *str;
- char buf[30];
- const char *name;
- Dwarf_Off off;
- Dwarf_Off cuoff;
- size_t cnt;
- Dwarf_Addr addr;
- int i;
-
- tag = dwarf_tag (die);
- if (tag != DW_TAG_invalid)
- {
- str = dwarf_tag_string (tag);
- if (str == NULL)
- {
- snprintf (buf, sizeof buf, "%#x", tag);
- str = buf;
- }
- }
- else
- str = "* NO TAG *";
-
- name = dwarf_diename (die);
- if (name == 0)
- name = "* NO NAME *";
-
- off = dwarf_dieoffset (die);
- cuoff = dwarf_cuoffset (die);
-
- printf ("%*sDW_TAG_%s\n", n * 5, "", str);
- printf ("%*s Name : %s\n", n * 5, "", name);
- printf ("%*s Offset : %lld\n", n * 5, "", (long long int) off);
- printf ("%*s CU offset : %lld\n", n * 5, "", (long long int) cuoff);
-
- printf ("%*s Attrs :", n * 5, "");
- for (cnt = 0; cnt < 0xffff; ++cnt)
- if (dwarf_hasattr (die, cnt))
- printf (" %s", dwarf_attr_string (cnt));
- puts ("");
-
- if (dwarf_hasattr (die, DW_AT_low_pc) && dwarf_lowpc (die, &addr) == 0)
- {
- Dwarf_Attribute attr;
- Dwarf_Addr addr2;
- printf ("%*s low PC : %#llx\n",
- n * 5, "", (unsigned long long int) addr);
-
- if (dwarf_attr (die, DW_AT_low_pc, &attr) == NULL
- || dwarf_formaddr (&attr, &addr2) != 0
- || addr != addr2)
- puts ("************* DW_AT_low_pc verify failed ************");
- else if (! dwarf_hasform (&attr, DW_FORM_addr))
- puts ("************* DW_AT_low_pc form failed ************");
- else if (dwarf_whatform (&attr) != DW_FORM_addr)
- puts ("************* DW_AT_low_pc form (2) failed ************");
- else if (dwarf_whatattr (&attr) != DW_AT_low_pc)
- puts ("************* DW_AT_low_pc attr failed ************");
- }
- if (dwarf_hasattr (die, DW_AT_high_pc) && dwarf_highpc (die, &addr) == 0)
- {
- Dwarf_Attribute attr;
- Dwarf_Addr addr2;
- printf ("%*s high PC : %#llx\n",
- n * 5, "", (unsigned long long int) addr);
- if (dwarf_attr (die, DW_AT_high_pc, &attr) == NULL
- || dwarf_formaddr (&attr, &addr2) != 0
- || addr != addr2)
- puts ("************* DW_AT_high_pc verify failed ************");
- else if (! dwarf_hasform (&attr, DW_FORM_addr))
- puts ("************* DW_AT_high_pc form failed ************");
- else if (dwarf_whatform (&attr) != DW_FORM_addr)
- puts ("************* DW_AT_high_pc form (2) failed ************");
- else if (dwarf_whatattr (&attr) != DW_AT_high_pc)
- puts ("************* DW_AT_high_pc attr failed ************");
- }
-
- if (dwarf_hasattr (die, DW_AT_byte_size) && (i = dwarf_bytesize (die)) != -1)
- {
- Dwarf_Attribute attr;
- Dwarf_Word u2;
- unsigned int u;
- printf ("%*s byte size : %d\n", n * 5, "", i);
- if (dwarf_attr (die, DW_AT_byte_size, &attr) == NULL
- || dwarf_formudata (&attr, &u2) != 0
- || i != (int) u2)
- puts ("************* DW_AT_byte_size verify failed ************");
- else if (! dwarf_hasform (&attr, DW_FORM_data1)
- && ! dwarf_hasform (&attr, DW_FORM_data2)
- && ! dwarf_hasform (&attr, DW_FORM_data4)
- && ! dwarf_hasform (&attr, DW_FORM_data8)
- && ! dwarf_hasform (&attr, DW_FORM_sdata)
- && ! dwarf_hasform (&attr, DW_FORM_udata))
- puts ("************* DW_AT_byte_size form failed ************");
- else if ((u = dwarf_whatform (&attr)) == 0
- || (u != DW_FORM_data1
- && u != DW_FORM_data2
- && u != DW_FORM_data4
- && u != DW_FORM_data8
- && u != DW_FORM_sdata
- && u != DW_FORM_udata))
- puts ("************* DW_AT_byte_size form (2) failed ************");
- else if (dwarf_whatattr (&attr) != DW_AT_byte_size)
- puts ("************* DW_AT_byte_size attr failed ************");
- }
- if (dwarf_hasattr (die, DW_AT_bit_size) && (i = dwarf_bitsize (die)) != -1)
- {
- Dwarf_Attribute attr;
- Dwarf_Word u2;
- unsigned int u;
- printf ("%*s bit size : %d\n", n * 5, "", i);
- if (dwarf_attr (die, DW_AT_bit_size, &attr) == NULL
- || dwarf_formudata (&attr, &u2) != 0
- || i != (int) u2)
- puts ("************* DW_AT_bit_size test failed ************");
- else if (! dwarf_hasform (&attr, DW_FORM_data1)
- && ! dwarf_hasform (&attr, DW_FORM_data2)
- && ! dwarf_hasform (&attr, DW_FORM_data4)
- && ! dwarf_hasform (&attr, DW_FORM_data8)
- && ! dwarf_hasform (&attr, DW_FORM_sdata)
- && ! dwarf_hasform (&attr, DW_FORM_udata))
- puts ("************* DW_AT_bit_size form failed ************");
- else if ((u = dwarf_whatform (&attr)) == 0
- || (u != DW_FORM_data1
- && u != DW_FORM_data2
- && u != DW_FORM_data4
- && u != DW_FORM_data8
- && u != DW_FORM_sdata
- && u != DW_FORM_udata))
- puts ("************* DW_AT_bit_size form (2) failed ************");
- else if (dwarf_whatattr (&attr) != DW_AT_bit_size)
- puts ("************* DW_AT_bit_size attr failed ************");
- }
- if (dwarf_hasattr (die, DW_AT_bit_offset)
- && (i = dwarf_bitoffset (die)) != -1)
- {
- Dwarf_Attribute attr;
- Dwarf_Word u2;
- unsigned int u;
- printf ("%*s bit offset: %d\n", n * 5, "", i);
- if (dwarf_attr (die, DW_AT_bit_offset, &attr) == NULL
- || dwarf_formudata (&attr, &u2) != 0
- || i != (int) u2)
- puts ("************* DW_AT_bit_offset test failed ************");
- else if (! dwarf_hasform (&attr, DW_FORM_data1)
- && ! dwarf_hasform (&attr, DW_FORM_data2)
- && ! dwarf_hasform (&attr, DW_FORM_data4)
- && ! dwarf_hasform (&attr, DW_FORM_data8)
- && ! dwarf_hasform (&attr, DW_FORM_sdata)
- && ! dwarf_hasform (&attr, DW_FORM_udata))
- puts ("************* DW_AT_bit_offset form failed ************");
- else if ((u = dwarf_whatform (&attr)) == 0
- || (u != DW_FORM_data1
- && u != DW_FORM_data2
- && u != DW_FORM_data4
- && u != DW_FORM_data8
- && u != DW_FORM_sdata
- && u != DW_FORM_udata))
- puts ("************* DW_AT_bit_offset form (2) failed ************");
- else if (dwarf_whatattr (&attr) != DW_AT_bit_offset)
- puts ("************* DW_AT_bit_offset attr failed ************");
- }
-
- if (dwarf_hasattr (die, DW_AT_language) && (i = dwarf_srclang (die)) != -1)
- {
- Dwarf_Attribute attr;
- Dwarf_Word u2;
- unsigned int u;
- printf ("%*s language : %d\n", n * 5, "", i);
- if (dwarf_attr (die, DW_AT_language, &attr) == NULL
- || dwarf_formudata (&attr, &u2) != 0
- || i != (int) u2)
- puts ("************* DW_AT_language test failed ************");
- else if (! dwarf_hasform (&attr, DW_FORM_data1)
- && ! dwarf_hasform (&attr, DW_FORM_data2)
- && ! dwarf_hasform (&attr, DW_FORM_data4)
- && ! dwarf_hasform (&attr, DW_FORM_data8)
- && ! dwarf_hasform (&attr, DW_FORM_sdata)
- && ! dwarf_hasform (&attr, DW_FORM_udata))
- puts ("************* DW_AT_language form failed ************");
- else if ((u = dwarf_whatform (&attr)) == 0
- || (u != DW_FORM_data1
- && u != DW_FORM_data2
- && u != DW_FORM_data4
- && u != DW_FORM_data8
- && u != DW_FORM_sdata
- && u != DW_FORM_udata))
- puts ("************* DW_AT_language form (2) failed ************");
- else if (dwarf_whatattr (&attr) != DW_AT_language)
- puts ("************* DW_AT_language attr failed ************");
- }
-
- if (dwarf_hasattr (die, DW_AT_ordering)
- && (i = dwarf_arrayorder (die)) != -1)
- {
- Dwarf_Attribute attr;
- Dwarf_Word u2;
- unsigned int u;
- printf ("%*s ordering : %d\n", n * 5, "", i);
- if (dwarf_attr (die, DW_AT_ordering, &attr) == NULL
- || dwarf_formudata (&attr, &u2) != 0
- || i != (int) u2)
- puts ("************* DW_AT_ordering test failed ************");
- else if (! dwarf_hasform (&attr, DW_FORM_data1)
- && ! dwarf_hasform (&attr, DW_FORM_data2)
- && ! dwarf_hasform (&attr, DW_FORM_data4)
- && ! dwarf_hasform (&attr, DW_FORM_data8)
- && ! dwarf_hasform (&attr, DW_FORM_sdata)
- && ! dwarf_hasform (&attr, DW_FORM_udata))
- puts ("************* DW_AT_ordering failed ************");
- else if ((u = dwarf_whatform (&attr)) == 0
- || (u != DW_FORM_data1
- && u != DW_FORM_data2
- && u != DW_FORM_data4
- && u != DW_FORM_data8
- && u != DW_FORM_sdata
- && u != DW_FORM_udata))
- puts ("************* DW_AT_ordering form (2) failed ************");
- else if (dwarf_whatattr (&attr) != DW_AT_ordering)
- puts ("************* DW_AT_ordering attr failed ************");
- }
-
- if (dwarf_hasattr (die, DW_AT_comp_dir))
- {
- Dwarf_Attribute attr;
- if (dwarf_attr (die, DW_AT_comp_dir, &attr) == NULL
- || (name = dwarf_formstring (&attr)) == NULL)
- puts ("************* DW_AT_comp_dir attr failed ************");
- else
- printf ("%*s directory : %s\n", n * 5, "", name);
- }
-
- if (dwarf_hasattr (die, DW_AT_producer))
- {
- Dwarf_Attribute attr;
- if (dwarf_attr (die, DW_AT_producer, &attr) == NULL
- || (name = dwarf_formstring (&attr)) == NULL)
- puts ("************* DW_AT_comp_dir attr failed ************");
- else
- printf ("%*s producer : %s\n", n * 5, "", name);
- }
-
- if (dwarf_haschildren (die) != 0 && dwarf_child (die, &child) == 0)
- handle (dbg, &child, n + 1);
- if (dwarf_siblingof (die, die) == 0)
- handle (dbg, die, n);
-}
-
-
-int
-main (int argc, char *argv[])
-{
- int cnt;
-
- for (cnt = 1; cnt < argc; ++cnt)
- {
- int fd = open (argv[cnt], O_RDONLY);
- Dwarf *dbg;
-
- printf ("file: %s\n", basename (argv[cnt]));
-
- dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg == NULL)
- {
- printf ("%s not usable\n", argv[cnt]);
- close (fd);
- continue;
- }
-
- Dwarf_Off off = 0;
- Dwarf_Off old_off = 0;
- size_t hsize;
- Dwarf_Off abbrev;
- uint8_t addresssize;
- uint8_t offsetsize;
- while (dwarf_nextcu (dbg, off, &off, &hsize, &abbrev, &addresssize,
- &offsetsize) == 0)
- {
- printf ("New CU: off = %llu, hsize = %zu, ab = %llu, as = %" PRIu8
- ", os = %" PRIu8 "\n",
- (unsigned long long int) old_off, hsize,
- (unsigned long long int) abbrev, addresssize,
- offsetsize);
-
- Dwarf_Die die;
- if (dwarf_offdie (dbg, old_off + hsize, &die) != NULL)
- handle (dbg, &die, 1);
-
- old_off = off;
- }
-
- dwarf_end (dbg);
- close (fd);
- }
-
- return 0;
-}
diff --git a/src/tests/showptable.c b/src/tests/showptable.c
deleted file mode 100644
index a794b0e8..00000000
--- a/src/tests/showptable.c
+++ /dev/null
@@ -1,139 +0,0 @@
-/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 1998.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-
-#include <errno.h>
-#include <fcntl.h>
-#include <gelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-int
-main (int argc, char *argv[])
-{
- Elf *elf;
- int fd;
- GElf_Ehdr ehdr;
- int cnt;
-
- if (argc < 2)
- {
- puts ("missing parameter");
- exit (1);
- }
-
- fd = open (argv[1], O_RDONLY);
- if (fd == -1)
- {
- printf ("cannot open \"%s\": %s\n", argv[1], strerror (errno));
- exit (1);
- }
-
- elf_version (EV_CURRENT);
-
- elf = elf_begin (fd, ELF_C_READ, NULL);
- if (elf == NULL)
- {
- printf ("cannot open ELF file: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- if (elf_kind (elf) != ELF_K_ELF)
- {
- printf ("\"%s\" is not an ELF file\n", argv[1]);
- exit (1);
- }
-
- if (gelf_getehdr (elf, &ehdr) == NULL)
- {
- printf ("cannot get the ELF header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- printf ("idx type %*s %*s %*s %*s %*s align flags\n",
- gelf_getclass (elf) == ELFCLASS32 ? 9 : 17, "offset",
- gelf_getclass (elf) == ELFCLASS32 ? 10 : 18, "vaddr",
- gelf_getclass (elf) == ELFCLASS32 ? 10 : 18, "paddr",
- gelf_getclass (elf) == ELFCLASS32 ? 9 : 12, "filesz",
- gelf_getclass (elf) == ELFCLASS32 ? 9 : 12, "memsz");
-
- for (cnt = 0; cnt < ehdr.e_phnum; ++cnt)
- {
- static const char *typenames[] =
- {
- [PT_NULL] = "NULL",
- [PT_LOAD] = "LOAD",
- [PT_DYNAMIC] = "DYNAMIC",
- [PT_INTERP] = "INTERP",
- [PT_NOTE] = "NOTE",
- [PT_SHLIB] = "SHLIB",
- [PT_PHDR] = "PHDR"
- };
- GElf_Phdr mem;
- GElf_Phdr *phdr = gelf_getphdr (elf, cnt, &mem);
- char buf[19];
- const char *p_type = typenames[phdr->p_type];
-
- /* If we don't know the name of the type we use the number value. */
- if (phdr->p_type >= PT_NUM)
- {
- snprintf (buf, sizeof (buf), "%x", phdr->p_type);
- p_type = buf;
- }
-
- printf ("%3d %-7s %#0*llx %#0*llx %#0*llx %#0*llx %#0*llx %#6llx ",
- cnt, p_type,
- gelf_getclass (elf) == ELFCLASS32 ? 9 : 17,
- (unsigned long long int) phdr->p_offset,
- gelf_getclass (elf) == ELFCLASS32 ? 10 : 18,
- (unsigned long long int) phdr->p_vaddr,
- gelf_getclass (elf) == ELFCLASS32 ? 10 : 18,
- (unsigned long long int) phdr->p_paddr,
- gelf_getclass (elf) == ELFCLASS32 ? 9 : 12,
- (unsigned long long int) phdr->p_filesz,
- gelf_getclass (elf) == ELFCLASS32 ? 9 : 12,
- (unsigned long long int) phdr->p_memsz,
- (unsigned long long int) phdr->p_align);
-
- putc_unlocked ((phdr->p_flags & PF_X) ? 'X' : ' ', stdout);
- putc_unlocked ((phdr->p_flags & PF_W) ? 'W' : ' ', stdout);
- putc_unlocked ((phdr->p_flags & PF_R) ? 'R' : ' ', stdout);
-
- putc_unlocked ('\n', stdout);
-
- if (phdr->p_type == PT_INTERP)
- {
- /* We can show the user the name of the interpreter. */
- size_t maxsize;
- char *filedata = elf_rawfile (elf, &maxsize);
-
- if (filedata != NULL && phdr->p_offset < maxsize)
- printf ("\t[Requesting program interpreter: %s]\n",
- filedata + phdr->p_offset);
- }
- }
-
- if (elf_end (elf) != 0)
- {
- printf ("error while freeing ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- return 0;
-}
diff --git a/src/tests/test-core-lib.so.bz2 b/src/tests/test-core-lib.so.bz2
deleted file mode 100755
index bb2da888..00000000
--- a/src/tests/test-core-lib.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/test-core.core.bz2 b/src/tests/test-core.core.bz2
deleted file mode 100644
index 4d4346b9..00000000
--- a/src/tests/test-core.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/test-core.exec.bz2 b/src/tests/test-core.exec.bz2
deleted file mode 100755
index 49ce5519..00000000
--- a/src/tests/test-core.exec.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/test-elf_cntl_gelf_getshdr.c b/src/tests/test-elf_cntl_gelf_getshdr.c
deleted file mode 100644
index b561b53c..00000000
--- a/src/tests/test-elf_cntl_gelf_getshdr.c
+++ /dev/null
@@ -1,103 +0,0 @@
-/* Copyright (C) 2012 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <errno.h>
-#include <string.h>
-#include <fcntl.h>
-#include <gelf.h>
-#include <libelf.h>
-#include <stdbool.h>
-#include <inttypes.h>
-
-int
-main (int argc, char *argv[])
-{
- if (argc != 3)
- {
- fprintf (stderr, "Needs two arguments.\n");
- fprintf (stderr, "First needs to be 'READ', 'MMAP' or 'FDREAD'\n");
- fprintf (stderr, "Second is the ELF file to read.\n");
- exit (2); /* user error */
- }
-
- bool do_mmap = false;
- bool close_fd = false;
- if (strcmp (argv[1], "READ") == 0)
- {
- do_mmap = false;
- close_fd = false;
- }
- else if (strcmp (argv[1], "MMAP") == 0)
- {
- do_mmap = true;
- close_fd = false;
- }
- else if (strcmp (argv[1], "FDREAD") == 0)
- {
- do_mmap = false;
- close_fd = true;
- }
- else
- {
- fprintf (stderr, "First arg needs to be 'READ', 'MMAP' or 'FDREAD'\n");
- exit (2); /* user error */
- }
-
- elf_version (EV_CURRENT);
-
- int fd = open (argv[2], O_RDONLY);
- if (fd < 0)
- {
- fprintf (stderr, "Cannot open input file %s: %s\n", argv[2],
- strerror (errno));
- exit (2);
- }
-
- Elf *elf = elf_begin (fd, do_mmap ? ELF_C_READ_MMAP : ELF_C_READ, NULL);
- if (elf == NULL)
- {
- fprintf (stderr, "elf_begin failed for %s: %s\n", argv[2],
- elf_errmsg (-1));
- exit (2);
- }
-
- if (! do_mmap && close_fd)
- {
- if (elf_cntl (elf, ELF_C_FDREAD) < 0)
- {
- fprintf (stderr, "elf_cntl failed for %s: %s\n", argv[2],
- elf_errmsg (-1));
- exit (1);
- }
- close (fd);
- }
-
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (elf, scn)) != NULL)
- {
- GElf_Shdr shdr_mem;
- GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
- printf ("Section at offset %#0" PRIx64 "\n", shdr->sh_offset);
- }
-
- elf_end (elf);
- exit (0);
-}
diff --git a/src/tests/test-flag-nobits.c b/src/tests/test-flag-nobits.c
deleted file mode 100644
index e58d8c3d..00000000
--- a/src/tests/test-flag-nobits.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright (C) 2010 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <fcntl.h>
-#include <stdlib.h>
-#include <gelf.h>
-
-int
-main (int argc, char **argv)
-{
- if (argc != 2)
- abort ();
-
- elf_version (EV_CURRENT);
-
- int fd = open64 (argv[1], O_RDONLY);
- Elf *stripped = elf_begin (fd, ELF_C_READ, NULL);
-
- Elf_Scn *scn = NULL;
- while ((scn = elf_nextscn (stripped, scn)) != NULL)
- elf_flagdata (elf_getdata (scn, NULL), ELF_C_SET, ELF_F_DIRTY);
-}
diff --git a/src/tests/test-nlist.c b/src/tests/test-nlist.c
deleted file mode 100644
index 679c911b..00000000
--- a/src/tests/test-nlist.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* Copyright (C) 2000, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <nlist.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-
-int var = 1;
-
-int bss;
-
-
-int
-foo (int a)
-{
- return a;
-}
-
-int
-main (int argc, char *argv[] __attribute__ ((unused)))
-{
- struct nlist nl[6] =
- {
- [0] = { .n_name = "var" },
- [1] = { .n_name = "bss" },
- [2] = { .n_name = "main" },
- [3] = { .n_name = "foo" },
- [4] = { .n_name = "not-there" },
- [5] = { .n_name = NULL },
- };
- int cnt;
- int result = 0;
-
- if (nlist (".libs/test-nlist", nl) != 0
- && nlist ("./test-nlist", nl) != 0)
- {
- puts ("nlist failed");
- exit (1);
- }
-
- for (cnt = 0; nl[cnt].n_name != NULL; ++cnt)
- {
- if (argc > 1)
- /* For debugging. */
- printf ("nl[%d].n_name = \"%s\"\n"
- "nl[%d].n_value = %ld\n"
- "nl[%d].n_scnum = %d\n"
- "nl[%d].n_type = %u\n"
- "nl[%d].n_sclass = %d\n"
- "nl[%d].n_numaux = %d\n\n",
- cnt, nl[cnt].n_name,
- cnt, nl[cnt].n_value,
- cnt, nl[cnt].n_scnum,
- cnt, nl[cnt].n_type,
- cnt, nl[cnt].n_sclass,
- cnt, nl[cnt].n_numaux);
-
- if ((cnt != 4 && nl[cnt].n_value == 0 && nl[cnt].n_scnum == 0
- && nl[cnt].n_type == 0 && nl[cnt].n_sclass == 0
- && nl[cnt].n_numaux == 0)
- || (cnt == 4 && (nl[cnt].n_value != 0 || nl[cnt].n_scnum != 0
- || nl[cnt].n_type != 0 || nl[cnt].n_sclass != 0
- || nl[cnt].n_numaux != 0)))
- result = 1;
- }
-
- return foo (result);
-}
diff --git a/src/tests/test-offset-loop.alt.bz2 b/src/tests/test-offset-loop.alt.bz2
deleted file mode 100644
index c1906b6d..00000000
--- a/src/tests/test-offset-loop.alt.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/test-offset-loop.bz2 b/src/tests/test-offset-loop.bz2
deleted file mode 100755
index 62185c0a..00000000
--- a/src/tests/test-offset-loop.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/test-subr.sh b/src/tests/test-subr.sh
deleted file mode 100644
index 5e796b4d..00000000
--- a/src/tests/test-subr.sh
+++ /dev/null
@@ -1,154 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005-2014 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-# This file is sourced by ". $srcdir/test-subr.sh" at the start of
-# each test script. It defines some functions they use and sets up
-# canonical sh state for test runs.
-
-set -e
-
-# Each test runs in its own directory to make sure they can run in parallel.
-test_dir="test-$$"
-mkdir -p "$test_dir"
-cd "$test_dir"
-
-#LC_ALL=C
-#export LC_ALL
-
-remove_files=
-
-# Tests that trap EXIT (0) themselves should call this explicitly.
-exit_cleanup()
-{
- rm -f $remove_files; cd ..; rmdir $test_dir
-}
-trap exit_cleanup 0
-
-tempfiles()
-{
- remove_files="$remove_files $*"
-}
-
-testfiles()
-{
- for file; do
- bunzip2 -c ${abs_srcdir}/${file}.bz2 > ${file} 2>/dev/null || exit 77
- remove_files="$remove_files $file"
- done
-}
-
-testrun_out()
-{
- outfile="$1"
- shift
- remove_files="$remove_files $outfile"
- testrun "$@" > $outfile 2>&1 || :
-}
-
-testrun_compare()
-{
- outfile="${1##*/}.out"
- testrun_out $outfile "$@"
- diff -u $outfile -
- # diff's exit status will kill the script.
-}
-
-test_cleanup()
-{
- rm -f $remove_files
- remove_files=
-}
-
-# See test-wrapper.sh, which sets the environment for this.
-testrun()
-{
- ${elfutils_testrun}_testrun "$@"
-}
-
-built_testrun()
-{
- LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"\
- $VALGRIND_CMD "$@"
-}
-
-installed_testrun()
-{
- program="$1"
- shift
- case "$program" in
- ${abs_builddir}/*)
- if [ "x$elfutils_tests_rpath" != xno ]; then
- echo >&2 installcheck not possible with --enable-tests-rpath
- exit 77
- fi
- ;;
- ${abs_top_builddir}/src/*)
- program=${bindir}/`program_transform ${program##*/}`
- ;;
- esac
- if [ "${libdir}" != /usr/lib ] && [ "${libdir}" != /usr/lib64 ]; then
- LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils\
-${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" \
- $VALGRIND_CMD $program ${1+"$@"}
- else
- $VALGRIND_CMD $program ${1+"$@"}
- fi
-}
-
-program_transform()
-{
- echo "$*" | sed "${program_transform_name}"
-}
-
-self_test_files=`echo ${abs_top_builddir}/src/addr2line \
-${abs_top_builddir}/src/elfcmp ${abs_top_builddir}/src/elflint \
-${abs_top_builddir}/src/nm ${abs_top_builddir}/src/objdump \
-${abs_top_builddir}/src/readelf \
-${abs_top_builddir}/src/size.o ${abs_top_builddir}/src/strip.o \
-${abs_top_builddir}/libelf/libelf.so \
-${abs_top_builddir}/libdw/libdw.so \
-${abs_top_builddir}/backends/libebl_i386.so \
-${abs_top_builddir}/backends/libebl_x86_64.so`
-
-# Provide a command to run on all self-test files with testrun.
-testrun_on_self()
-{
- exit_status=0
-
- for file in $self_test_files; do
- testrun $* $file \
- || { echo "*** failure in $* $file"; exit_status=1; }
- done
-
- # Only exit if something failed
- if test $exit_status != 0; then exit $exit_status; fi
-}
-
-# Same as above, but redirects stdout to /dev/null
-testrun_on_self_quiet()
-{
- exit_status=0
-
- for file in $self_test_files; do
- testrun $* $file > /dev/null \
- || { echo "*** failure in $* $file"; exit_status=1; }
- done
-
- # Only exit if something failed
- if test $exit_status != 0; then exit $exit_status; fi
-}
diff --git a/src/tests/test-wrapper.sh b/src/tests/test-wrapper.sh
deleted file mode 100755
index 09b4d49f..00000000
--- a/src/tests/test-wrapper.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#! /bin/sh
-# Copyright (C) 2005-2012 Red Hat, Inc.
-# This file is part of elfutils.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# elfutils is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-
-# We don't compile in an rpath because we want "make installcheck" to
-# use the installed libraries. So for local test runs we need to point
-# the library path at this build.
-
-# This wrapper script is called by the makefile, in one of two ways:
-# $(srcdir)/test-wrapper.sh ../libelf:... run-test.sh ...
-# or:
-# $(srcdir)/test-wrapper.sh installed s,^,eu-, run-test.sh ...
-
-if [ "$1" = installed ]; then
- shift
- elfutils_tests_rpath=$1
- shift
- program_transform_name="$1"
- shift
- elfutils_testrun=installed
-else
- built_library_path="$1"
- shift
- elfutils_testrun=built
-fi
-
-old_path="${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
-
-case "$1" in
-*.sh)
- export built_library_path program_transform_name elfutils_testrun
- export elfutils_tests_rpath
- ;;
-*)
- if [ $elfutils_testrun = built ]; then
- LD_LIBRARY_PATH="$built_library_path$old_path"
- elif [ $elfutils_tests_rpath = yes ]; then
- echo >&2 installcheck not possible with --enable-tests-rpath
- exit 77
- elif [ "x$libdir" != x/usr/lib ] && [ "x$libdir" != x/usr/lib64 ]; then
- LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils$old_path"
- fi
- export LD_LIBRARY_PATH
- ;;
-esac
-
-if [ "x$VALGRIND_CMD" != "x" ]; then
- export VALGRIND_CMD
-fi
-
-exec "$@"
diff --git a/src/tests/testarchive64.a.bz2 b/src/tests/testarchive64.a.bz2
deleted file mode 100644
index 4b546033..00000000
--- a/src/tests/testarchive64.a.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testcore-rtlib-ppc.bz2 b/src/tests/testcore-rtlib-ppc.bz2
deleted file mode 100644
index a3cec603..00000000
--- a/src/tests/testcore-rtlib-ppc.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testcore-rtlib.bz2 b/src/tests/testcore-rtlib.bz2
deleted file mode 100644
index 1dc0f1a3..00000000
--- a/src/tests/testcore-rtlib.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-backtrace-demangle.bz2 b/src/tests/testfile-backtrace-demangle.bz2
deleted file mode 100755
index f0294df1..00000000
--- a/src/tests/testfile-backtrace-demangle.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-backtrace-demangle.cc b/src/tests/testfile-backtrace-demangle.cc
deleted file mode 100644
index 27fff685..00000000
--- a/src/tests/testfile-backtrace-demangle.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Test program for C++ demangled unwinding.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
-#define NOINLINE_NOCLONE __attribute__ ((noinline, noclone))
-#else
-#define NOINLINE_NOCLONE __attribute__ ((noinline))
-#endif
-
-void NOINLINE_NOCLONE
-cxxfunc (int i)
-{
- *(volatile int *)0=0;
- // Avoid tail call optimization.
- asm volatile ("");
-}
-
-extern "C"
-{
- void NOINLINE_NOCLONE
- f (void)
- {
- cxxfunc(1);
- // Avoid tail call optimization.
- asm volatile ("");
- }
-}
-
-int
-main()
-{
- f();
-}
diff --git a/src/tests/testfile-backtrace-demangle.core.bz2 b/src/tests/testfile-backtrace-demangle.core.bz2
deleted file mode 100644
index 263c3049..00000000
--- a/src/tests/testfile-backtrace-demangle.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-debug.bz2 b/src/tests/testfile-debug.bz2
deleted file mode 100755
index 88e59de7..00000000
--- a/src/tests/testfile-debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-dwfl-report-elf-align-shlib.so.bz2 b/src/tests/testfile-dwfl-report-elf-align-shlib.so.bz2
deleted file mode 100755
index 1f35df98..00000000
--- a/src/tests/testfile-dwfl-report-elf-align-shlib.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-dwzstr.bz2 b/src/tests/testfile-dwzstr.bz2
deleted file mode 100755
index 8d2d326e..00000000
--- a/src/tests/testfile-dwzstr.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-dwzstr.multi.bz2 b/src/tests/testfile-dwzstr.multi.bz2
deleted file mode 100644
index 5e84991d..00000000
--- a/src/tests/testfile-dwzstr.multi.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-inlines.bz2 b/src/tests/testfile-inlines.bz2
deleted file mode 100755
index 6a0c7c57..00000000
--- a/src/tests/testfile-inlines.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-lex-inlines.bz2 b/src/tests/testfile-lex-inlines.bz2
deleted file mode 100755
index 716e7927..00000000
--- a/src/tests/testfile-lex-inlines.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-macinfo.bz2 b/src/tests/testfile-macinfo.bz2
deleted file mode 100755
index e6cc5f1c..00000000
--- a/src/tests/testfile-macinfo.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-macros-0xff.bz2 b/src/tests/testfile-macros-0xff.bz2
deleted file mode 100755
index a19662a3..00000000
--- a/src/tests/testfile-macros-0xff.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-macros.bz2 b/src/tests/testfile-macros.bz2
deleted file mode 100755
index d74df94c..00000000
--- a/src/tests/testfile-macros.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-sizes1.o.bz2 b/src/tests/testfile-sizes1.o.bz2
deleted file mode 100644
index 479ecb20..00000000
--- a/src/tests/testfile-sizes1.o.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-sizes2.o.bz2 b/src/tests/testfile-sizes2.o.bz2
deleted file mode 100644
index 7bd7b47f..00000000
--- a/src/tests/testfile-sizes2.o.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-sizes3.o.bz2 b/src/tests/testfile-sizes3.o.bz2
deleted file mode 100644
index 7fa6a8a5..00000000
--- a/src/tests/testfile-sizes3.o.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile-zdebug.bz2 b/src/tests/testfile-zdebug.bz2
deleted file mode 100755
index 784041ce..00000000
--- a/src/tests/testfile-zdebug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile.bz2 b/src/tests/testfile.bz2
deleted file mode 100644
index bde9b126..00000000
--- a/src/tests/testfile.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile10.bz2 b/src/tests/testfile10.bz2
deleted file mode 100644
index e9dd5046..00000000
--- a/src/tests/testfile10.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile11.bz2 b/src/tests/testfile11.bz2
deleted file mode 100644
index d094b848..00000000
--- a/src/tests/testfile11.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile12.bz2 b/src/tests/testfile12.bz2
deleted file mode 100644
index 8bb5ad33..00000000
--- a/src/tests/testfile12.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile13.bz2 b/src/tests/testfile13.bz2
deleted file mode 100644
index 3b0bcb93..00000000
--- a/src/tests/testfile13.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile14.bz2 b/src/tests/testfile14.bz2
deleted file mode 100644
index ac7c69e1..00000000
--- a/src/tests/testfile14.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile15.bz2 b/src/tests/testfile15.bz2
deleted file mode 100644
index e75f4575..00000000
--- a/src/tests/testfile15.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile15.debug.bz2 b/src/tests/testfile15.debug.bz2
deleted file mode 100644
index 5c869001..00000000
--- a/src/tests/testfile15.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile16.bz2 b/src/tests/testfile16.bz2
deleted file mode 100644
index 4d7160c0..00000000
--- a/src/tests/testfile16.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile16.debug.bz2 b/src/tests/testfile16.debug.bz2
deleted file mode 100644
index f02a9723..00000000
--- a/src/tests/testfile16.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile17.bz2 b/src/tests/testfile17.bz2
deleted file mode 100644
index 5a123204..00000000
--- a/src/tests/testfile17.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile17.debug.bz2 b/src/tests/testfile17.debug.bz2
deleted file mode 100644
index 86a76ab7..00000000
--- a/src/tests/testfile17.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile18.bz2 b/src/tests/testfile18.bz2
deleted file mode 100644
index 8b5326cc..00000000
--- a/src/tests/testfile18.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile19.bz2 b/src/tests/testfile19.bz2
deleted file mode 100644
index f3e6512e..00000000
--- a/src/tests/testfile19.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile19.index.bz2 b/src/tests/testfile19.index.bz2
deleted file mode 100644
index c0a0a7ac..00000000
--- a/src/tests/testfile19.index.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile2.bz2 b/src/tests/testfile2.bz2
deleted file mode 100644
index 0771311b..00000000
--- a/src/tests/testfile2.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile20.bz2 b/src/tests/testfile20.bz2
deleted file mode 100644
index a379f6bf..00000000
--- a/src/tests/testfile20.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile20.index.bz2 b/src/tests/testfile20.index.bz2
deleted file mode 100644
index 08dedaf4..00000000
--- a/src/tests/testfile20.index.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile21.bz2 b/src/tests/testfile21.bz2
deleted file mode 100644
index bab7e6d1..00000000
--- a/src/tests/testfile21.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile21.index.bz2 b/src/tests/testfile21.index.bz2
deleted file mode 100644
index 5192219b..00000000
--- a/src/tests/testfile21.index.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile22.bz2 b/src/tests/testfile22.bz2
deleted file mode 100644
index 8c262709..00000000
--- a/src/tests/testfile22.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile23.bz2 b/src/tests/testfile23.bz2
deleted file mode 100644
index cf0ce559..00000000
--- a/src/tests/testfile23.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile24.bz2 b/src/tests/testfile24.bz2
deleted file mode 100644
index 2320acb3..00000000
--- a/src/tests/testfile24.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile25.bz2 b/src/tests/testfile25.bz2
deleted file mode 100644
index 51e04213..00000000
--- a/src/tests/testfile25.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile26.bz2 b/src/tests/testfile26.bz2
deleted file mode 100644
index 1f86285c..00000000
--- a/src/tests/testfile26.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile27.bz2 b/src/tests/testfile27.bz2
deleted file mode 100644
index 9d06cd93..00000000
--- a/src/tests/testfile27.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile28.bz2 b/src/tests/testfile28.bz2
deleted file mode 100644
index ca0dff3d..00000000
--- a/src/tests/testfile28.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile28.rdwr.bz2 b/src/tests/testfile28.rdwr.bz2
deleted file mode 100644
index 4c658484..00000000
--- a/src/tests/testfile28.rdwr.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile29.bz2 b/src/tests/testfile29.bz2
deleted file mode 100644
index b46451bf..00000000
--- a/src/tests/testfile29.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile29.rdwr.bz2 b/src/tests/testfile29.rdwr.bz2
deleted file mode 100644
index 42eadc70..00000000
--- a/src/tests/testfile29.rdwr.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile3.bz2 b/src/tests/testfile3.bz2
deleted file mode 100644
index 30a456c7..00000000
--- a/src/tests/testfile3.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile30.bz2 b/src/tests/testfile30.bz2
deleted file mode 100644
index 9ee93c00..00000000
--- a/src/tests/testfile30.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile31.bz2 b/src/tests/testfile31.bz2
deleted file mode 100644
index 73451d22..00000000
--- a/src/tests/testfile31.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile32.bz2 b/src/tests/testfile32.bz2
deleted file mode 100644
index 7e3c73e6..00000000
--- a/src/tests/testfile32.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile33.bz2 b/src/tests/testfile33.bz2
deleted file mode 100644
index f3dbc73c..00000000
--- a/src/tests/testfile33.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile34.bz2 b/src/tests/testfile34.bz2
deleted file mode 100644
index a417fcb5..00000000
--- a/src/tests/testfile34.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile35.bz2 b/src/tests/testfile35.bz2
deleted file mode 100644
index b5913015..00000000
--- a/src/tests/testfile35.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile35.debug.bz2 b/src/tests/testfile35.debug.bz2
deleted file mode 100644
index f1918627..00000000
--- a/src/tests/testfile35.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile36.bz2 b/src/tests/testfile36.bz2
deleted file mode 100644
index e912a197..00000000
--- a/src/tests/testfile36.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile36.debug.bz2 b/src/tests/testfile36.debug.bz2
deleted file mode 100644
index 76aca42e..00000000
--- a/src/tests/testfile36.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile37.bz2 b/src/tests/testfile37.bz2
deleted file mode 100644
index 254ce324..00000000
--- a/src/tests/testfile37.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile37.debug.bz2 b/src/tests/testfile37.debug.bz2
deleted file mode 100644
index 74e46a87..00000000
--- a/src/tests/testfile37.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile38.bz2 b/src/tests/testfile38.bz2
deleted file mode 100644
index 42adb774..00000000
--- a/src/tests/testfile38.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile39.bz2 b/src/tests/testfile39.bz2
deleted file mode 100644
index 42d0fbce..00000000
--- a/src/tests/testfile39.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile4.bz2 b/src/tests/testfile4.bz2
deleted file mode 100644
index 25b25dfc..00000000
--- a/src/tests/testfile4.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile40.bz2 b/src/tests/testfile40.bz2
deleted file mode 100644
index ad41985c..00000000
--- a/src/tests/testfile40.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile40.debug.bz2 b/src/tests/testfile40.debug.bz2
deleted file mode 100644
index 2eec4d7a..00000000
--- a/src/tests/testfile40.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile41.bz2 b/src/tests/testfile41.bz2
deleted file mode 100644
index f9bf5a48..00000000
--- a/src/tests/testfile41.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile42.bz2 b/src/tests/testfile42.bz2
deleted file mode 100644
index 2530aba2..00000000
--- a/src/tests/testfile42.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile42_noshdrs.bz2 b/src/tests/testfile42_noshdrs.bz2
deleted file mode 100644
index e50f7500..00000000
--- a/src/tests/testfile42_noshdrs.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile43.bz2 b/src/tests/testfile43.bz2
deleted file mode 100644
index c99db24a..00000000
--- a/src/tests/testfile43.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile44.S.bz2 b/src/tests/testfile44.S.bz2
deleted file mode 100644
index 4e874340..00000000
--- a/src/tests/testfile44.S.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile44.expect.bz2 b/src/tests/testfile44.expect.bz2
deleted file mode 100644
index b3937b9c..00000000
--- a/src/tests/testfile44.expect.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile45.S.bz2 b/src/tests/testfile45.S.bz2
deleted file mode 100644
index 00e819e0..00000000
--- a/src/tests/testfile45.S.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile45.expect.bz2 b/src/tests/testfile45.expect.bz2
deleted file mode 100644
index b8b33e9b..00000000
--- a/src/tests/testfile45.expect.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile46.bz2 b/src/tests/testfile46.bz2
deleted file mode 100644
index db83b278..00000000
--- a/src/tests/testfile46.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile47.bz2 b/src/tests/testfile47.bz2
deleted file mode 100644
index 334bd6c4..00000000
--- a/src/tests/testfile47.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile48.bz2 b/src/tests/testfile48.bz2
deleted file mode 100644
index da0d9dab..00000000
--- a/src/tests/testfile48.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile48.debug.bz2 b/src/tests/testfile48.debug.bz2
deleted file mode 100644
index 7b84c4ca..00000000
--- a/src/tests/testfile48.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile49.bz2 b/src/tests/testfile49.bz2
deleted file mode 100644
index 8741a6b3..00000000
--- a/src/tests/testfile49.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile5.bz2 b/src/tests/testfile5.bz2
deleted file mode 100644
index 247313e0..00000000
--- a/src/tests/testfile5.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile50.bz2 b/src/tests/testfile50.bz2
deleted file mode 100644
index fce43321..00000000
--- a/src/tests/testfile50.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile51.bz2 b/src/tests/testfile51.bz2
deleted file mode 100755
index 5ff45c61..00000000
--- a/src/tests/testfile51.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile52-32.noshdrs.so.bz2 b/src/tests/testfile52-32.noshdrs.so.bz2
deleted file mode 100755
index 01d27424..00000000
--- a/src/tests/testfile52-32.noshdrs.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile52-32.prelink.so.bz2 b/src/tests/testfile52-32.prelink.so.bz2
deleted file mode 100755
index ccb9ae32..00000000
--- a/src/tests/testfile52-32.prelink.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile52-32.so.bz2 b/src/tests/testfile52-32.so.bz2
deleted file mode 100755
index 2a5b56ea..00000000
--- a/src/tests/testfile52-32.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile52-32.so.debug.bz2 b/src/tests/testfile52-32.so.debug.bz2
deleted file mode 100755
index 818b36d5..00000000
--- a/src/tests/testfile52-32.so.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile52-64.noshdrs.so.bz2 b/src/tests/testfile52-64.noshdrs.so.bz2
deleted file mode 100755
index 5ca310f0..00000000
--- a/src/tests/testfile52-64.noshdrs.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile52-64.prelink.so.bz2 b/src/tests/testfile52-64.prelink.so.bz2
deleted file mode 100755
index 8cb8f482..00000000
--- a/src/tests/testfile52-64.prelink.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile52-64.so.bz2 b/src/tests/testfile52-64.so.bz2
deleted file mode 100755
index 8009f07c..00000000
--- a/src/tests/testfile52-64.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile52-64.so.debug.bz2 b/src/tests/testfile52-64.so.debug.bz2
deleted file mode 100755
index 4397788f..00000000
--- a/src/tests/testfile52-64.so.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile53-32.bz2 b/src/tests/testfile53-32.bz2
deleted file mode 100755
index 7bf48d9f..00000000
--- a/src/tests/testfile53-32.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile53-32.debug.bz2 b/src/tests/testfile53-32.debug.bz2
deleted file mode 100755
index 79ea566d..00000000
--- a/src/tests/testfile53-32.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile53-32.prelink.bz2 b/src/tests/testfile53-32.prelink.bz2
deleted file mode 100755
index 8e05abf0..00000000
--- a/src/tests/testfile53-32.prelink.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile53-64.bz2 b/src/tests/testfile53-64.bz2
deleted file mode 100755
index 235a7631..00000000
--- a/src/tests/testfile53-64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile53-64.debug.bz2 b/src/tests/testfile53-64.debug.bz2
deleted file mode 100755
index 675c6eaf..00000000
--- a/src/tests/testfile53-64.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile53-64.prelink.bz2 b/src/tests/testfile53-64.prelink.bz2
deleted file mode 100755
index 853aba78..00000000
--- a/src/tests/testfile53-64.prelink.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile54-32.noshdrs.so.bz2 b/src/tests/testfile54-32.noshdrs.so.bz2
deleted file mode 100755
index 846bc91e..00000000
--- a/src/tests/testfile54-32.noshdrs.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile54-32.prelink.so.bz2 b/src/tests/testfile54-32.prelink.so.bz2
deleted file mode 100755
index 85c8526c..00000000
--- a/src/tests/testfile54-32.prelink.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile54-32.so.bz2 b/src/tests/testfile54-32.so.bz2
deleted file mode 100755
index 4bc4fa37..00000000
--- a/src/tests/testfile54-32.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile54-32.so.debug.bz2 b/src/tests/testfile54-32.so.debug.bz2
deleted file mode 100755
index 79dd614d..00000000
--- a/src/tests/testfile54-32.so.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile54-64.noshdrs.so.bz2 b/src/tests/testfile54-64.noshdrs.so.bz2
deleted file mode 100755
index 3da726a6..00000000
--- a/src/tests/testfile54-64.noshdrs.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile54-64.prelink.so.bz2 b/src/tests/testfile54-64.prelink.so.bz2
deleted file mode 100755
index e296a1d9..00000000
--- a/src/tests/testfile54-64.prelink.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile54-64.so.bz2 b/src/tests/testfile54-64.so.bz2
deleted file mode 100755
index 6072bf19..00000000
--- a/src/tests/testfile54-64.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile54-64.so.debug.bz2 b/src/tests/testfile54-64.so.debug.bz2
deleted file mode 100755
index 6b45390e..00000000
--- a/src/tests/testfile54-64.so.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile55-32.bz2 b/src/tests/testfile55-32.bz2
deleted file mode 100755
index d4cc9860..00000000
--- a/src/tests/testfile55-32.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile55-32.debug.bz2 b/src/tests/testfile55-32.debug.bz2
deleted file mode 100755
index c5aa3f63..00000000
--- a/src/tests/testfile55-32.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile55-32.prelink.bz2 b/src/tests/testfile55-32.prelink.bz2
deleted file mode 100755
index 4fc171af..00000000
--- a/src/tests/testfile55-32.prelink.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile55-64.bz2 b/src/tests/testfile55-64.bz2
deleted file mode 100755
index 27341fa0..00000000
--- a/src/tests/testfile55-64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile55-64.debug.bz2 b/src/tests/testfile55-64.debug.bz2
deleted file mode 100755
index d975c70a..00000000
--- a/src/tests/testfile55-64.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile55-64.prelink.bz2 b/src/tests/testfile55-64.prelink.bz2
deleted file mode 100755
index a4338fe0..00000000
--- a/src/tests/testfile55-64.prelink.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile56.bz2 b/src/tests/testfile56.bz2
deleted file mode 100644
index 0e2257cf..00000000
--- a/src/tests/testfile56.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile57.bz2 b/src/tests/testfile57.bz2
deleted file mode 100644
index 59dbde10..00000000
--- a/src/tests/testfile57.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile58.bz2 b/src/tests/testfile58.bz2
deleted file mode 100644
index 839efd92..00000000
--- a/src/tests/testfile58.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile59.bz2 b/src/tests/testfile59.bz2
deleted file mode 100755
index bcee648c..00000000
--- a/src/tests/testfile59.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile6.bz2 b/src/tests/testfile6.bz2
deleted file mode 100644
index fd376b27..00000000
--- a/src/tests/testfile6.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile60.bz2 b/src/tests/testfile60.bz2
deleted file mode 100755
index 6a0cd7bc..00000000
--- a/src/tests/testfile60.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile61.bz2 b/src/tests/testfile61.bz2
deleted file mode 100644
index d139389e..00000000
--- a/src/tests/testfile61.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile62.bz2 b/src/tests/testfile62.bz2
deleted file mode 100644
index 8a42cf66..00000000
--- a/src/tests/testfile62.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile63.bz2 b/src/tests/testfile63.bz2
deleted file mode 100644
index 4be87cd4..00000000
--- a/src/tests/testfile63.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile64.bz2 b/src/tests/testfile64.bz2
deleted file mode 100644
index 674bd539..00000000
--- a/src/tests/testfile64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile65.bz2 b/src/tests/testfile65.bz2
deleted file mode 100644
index 5e925f87..00000000
--- a/src/tests/testfile65.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile66.bz2 b/src/tests/testfile66.bz2
deleted file mode 100755
index 4797590e..00000000
--- a/src/tests/testfile66.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile66.core.bz2 b/src/tests/testfile66.core.bz2
deleted file mode 100644
index 12e2d444..00000000
--- a/src/tests/testfile66.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile67.bz2 b/src/tests/testfile67.bz2
deleted file mode 100644
index bb64745d..00000000
--- a/src/tests/testfile67.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile68.bz2 b/src/tests/testfile68.bz2
deleted file mode 100644
index 3fe67921..00000000
--- a/src/tests/testfile68.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile69.core.bz2 b/src/tests/testfile69.core.bz2
deleted file mode 100644
index 99553182..00000000
--- a/src/tests/testfile69.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile69.so.bz2 b/src/tests/testfile69.so.bz2
deleted file mode 100755
index fdddab98..00000000
--- a/src/tests/testfile69.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile7.bz2 b/src/tests/testfile7.bz2
deleted file mode 100644
index 73452bbb..00000000
--- a/src/tests/testfile7.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile70.core.bz2 b/src/tests/testfile70.core.bz2
deleted file mode 100644
index 6c47c6d4..00000000
--- a/src/tests/testfile70.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile70.exec.bz2 b/src/tests/testfile70.exec.bz2
deleted file mode 100644
index f1b969af..00000000
--- a/src/tests/testfile70.exec.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile71.bz2 b/src/tests/testfile71.bz2
deleted file mode 100644
index ce5b08fe..00000000
--- a/src/tests/testfile71.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile8.bz2 b/src/tests/testfile8.bz2
deleted file mode 100644
index 1ff4994c..00000000
--- a/src/tests/testfile8.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile9.bz2 b/src/tests/testfile9.bz2
deleted file mode 100644
index 40454bce..00000000
--- a/src/tests/testfile9.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_aarch64_core.bz2 b/src/tests/testfile_aarch64_core.bz2
deleted file mode 100644
index 9d562688..00000000
--- a/src/tests/testfile_aarch64_core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_class_func.bz2 b/src/tests/testfile_class_func.bz2
deleted file mode 100755
index e40dcf26..00000000
--- a/src/tests/testfile_class_func.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_const_type.bz2 b/src/tests/testfile_const_type.bz2
deleted file mode 100755
index fea4a9cb..00000000
--- a/src/tests/testfile_const_type.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_const_type.c b/src/tests/testfile_const_type.c
deleted file mode 100644
index 259007d0..00000000
--- a/src/tests/testfile_const_type.c
+++ /dev/null
@@ -1,14 +0,0 @@
-// gcc -m32 -g -O2 -o const_type const_type.c
-
-__attribute__((noinline, noclone)) int
-f1 (long long d)
-{
- long long w = d / 0x1234567800000LL;
- return w;
-}
-
-int
-main ()
-{
- return f1 (4LL) - f1 (4LL);
-}
diff --git a/src/tests/testfile_entry_value.bz2 b/src/tests/testfile_entry_value.bz2
deleted file mode 100755
index fde86c61..00000000
--- a/src/tests/testfile_entry_value.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_entry_value.c b/src/tests/testfile_entry_value.c
deleted file mode 100644
index d2f232b2..00000000
--- a/src/tests/testfile_entry_value.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// gcc -g -O2 -o entry_value entry_value.c
-int __attribute__((noinline, noclone)) foo (int x, int y)
-{
- return x + y;
-}
-
-int __attribute__((noinline, noclone)) bar (int x, int y)
-{
- int z;
- z = foo (x, y);
- z += foo (y, x);
- return z;
-}
-
-int
-main (int argc, char **argv)
-{
- return bar (argc + 1, argc - 1);
-}
diff --git a/src/tests/testfile_i686_core.bz2 b/src/tests/testfile_i686_core.bz2
deleted file mode 100644
index 8412776e..00000000
--- a/src/tests/testfile_i686_core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_implicit_pointer.bz2 b/src/tests/testfile_implicit_pointer.bz2
deleted file mode 100755
index 72f6a694..00000000
--- a/src/tests/testfile_implicit_pointer.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_implicit_pointer.c b/src/tests/testfile_implicit_pointer.c
deleted file mode 100644
index d7e28a0e..00000000
--- a/src/tests/testfile_implicit_pointer.c
+++ /dev/null
@@ -1,12 +0,0 @@
-// gcc -g -O2 -o implicit_pointer implicit_pointer.c
-
-static __attribute__((noinline, noclone)) int foo (int i)
-{
- int *p = &i;
- return *p;
-}
-
-int main (void)
-{
- return foo (23) - 23;
-}
diff --git a/src/tests/testfile_implicit_value.bz2 b/src/tests/testfile_implicit_value.bz2
deleted file mode 100755
index c365a99d..00000000
--- a/src/tests/testfile_implicit_value.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_implicit_value.c b/src/tests/testfile_implicit_value.c
deleted file mode 100644
index 8885bbf3..00000000
--- a/src/tests/testfile_implicit_value.c
+++ /dev/null
@@ -1,12 +0,0 @@
-// gcc -m32 -g -O2 -o implicit_value implicit_value.c
-
-static __attribute__((noinline, noclone)) int foo ()
-{
- unsigned long long a[] = { 2, 21 };
- return a[0] * a[1];
-}
-
-int main (void)
-{
- return foo () - 42;
-}
diff --git a/src/tests/testfile_low_high_pc.bz2 b/src/tests/testfile_low_high_pc.bz2
deleted file mode 100755
index f20814aa..00000000
--- a/src/tests/testfile_low_high_pc.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_multi.dwz.bz2 b/src/tests/testfile_multi.dwz.bz2
deleted file mode 100644
index 1f52fb69..00000000
--- a/src/tests/testfile_multi.dwz.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_multi_main.bz2 b/src/tests/testfile_multi_main.bz2
deleted file mode 100755
index bc6ca5fd..00000000
--- a/src/tests/testfile_multi_main.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_nested_funcs.bz2 b/src/tests/testfile_nested_funcs.bz2
deleted file mode 100755
index d36b603e..00000000
--- a/src/tests/testfile_nested_funcs.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_parameter_ref.bz2 b/src/tests/testfile_parameter_ref.bz2
deleted file mode 100755
index 8ff900de..00000000
--- a/src/tests/testfile_parameter_ref.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfile_parameter_ref.c b/src/tests/testfile_parameter_ref.c
deleted file mode 100644
index 7fe985f3..00000000
--- a/src/tests/testfile_parameter_ref.c
+++ /dev/null
@@ -1,20 +0,0 @@
-// gcc -g -O2 -o parameter_ref parameter_ref.c
-
-volatile int vv;
-
-/* Don't inline, but do allow clone to create specialized versions. */
-static __attribute__((noinline)) int
-foo (int x, int y, int z)
-{
- int a = x * 2;
- int b = y * 2;
- int c = z * 2;
- vv++;
- return x + z;
-}
-
-int
-main (int x, char **argv)
-{
- return foo (x, 2, 3) + foo (x, 4, 3) + foo (x + 6, x, 3) + x;
-}
diff --git a/src/tests/testfileaarch64.bz2 b/src/tests/testfileaarch64.bz2
deleted file mode 100755
index 72e5ef0d..00000000
--- a/src/tests/testfileaarch64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilearm.bz2 b/src/tests/testfilearm.bz2
deleted file mode 100755
index d6cd090e..00000000
--- a/src/tests/testfilearm.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebasmin.bz2 b/src/tests/testfilebasmin.bz2
deleted file mode 100755
index 38439720..00000000
--- a/src/tests/testfilebasmin.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebaxmin.bz2 b/src/tests/testfilebaxmin.bz2
deleted file mode 100755
index c450cc82..00000000
--- a/src/tests/testfilebaxmin.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdbg.bz2 b/src/tests/testfilebazdbg.bz2
deleted file mode 100755
index 8e586361..00000000
--- a/src/tests/testfilebazdbg.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdbg.debug.bz2 b/src/tests/testfilebazdbg.debug.bz2
deleted file mode 100755
index 3b011763..00000000
--- a/src/tests/testfilebazdbg.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdbg_pl.bz2 b/src/tests/testfilebazdbg_pl.bz2
deleted file mode 100755
index 9e06a806..00000000
--- a/src/tests/testfilebazdbg_pl.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdbg_plr.bz2 b/src/tests/testfilebazdbg_plr.bz2
deleted file mode 100755
index 1bc43dd2..00000000
--- a/src/tests/testfilebazdbg_plr.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdbgppc64.bz2 b/src/tests/testfilebazdbgppc64.bz2
deleted file mode 100755
index 17e77d6d..00000000
--- a/src/tests/testfilebazdbgppc64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdbgppc64.debug.bz2 b/src/tests/testfilebazdbgppc64.debug.bz2
deleted file mode 100755
index 8faa17af..00000000
--- a/src/tests/testfilebazdbgppc64.debug.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdbgppc64_pl.bz2 b/src/tests/testfilebazdbgppc64_pl.bz2
deleted file mode 100755
index 9f372fb9..00000000
--- a/src/tests/testfilebazdbgppc64_pl.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdbgppc64_plr.bz2 b/src/tests/testfilebazdbgppc64_plr.bz2
deleted file mode 100755
index 70f8e005..00000000
--- a/src/tests/testfilebazdbgppc64_plr.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdyn.bz2 b/src/tests/testfilebazdyn.bz2
deleted file mode 100755
index bb623bb0..00000000
--- a/src/tests/testfilebazdyn.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazdynppc64.bz2 b/src/tests/testfilebazdynppc64.bz2
deleted file mode 100755
index 2e01699e..00000000
--- a/src/tests/testfilebazdynppc64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazmdb.bz2 b/src/tests/testfilebazmdb.bz2
deleted file mode 100755
index 561eca11..00000000
--- a/src/tests/testfilebazmdb.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazmdbppc64.bz2 b/src/tests/testfilebazmdbppc64.bz2
deleted file mode 100755
index 16c2dd0a..00000000
--- a/src/tests/testfilebazmdbppc64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazmin.bz2 b/src/tests/testfilebazmin.bz2
deleted file mode 100755
index 12bcc6b5..00000000
--- a/src/tests/testfilebazmin.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazmin_pl.bz2 b/src/tests/testfilebazmin_pl.bz2
deleted file mode 100755
index 73cef4ae..00000000
--- a/src/tests/testfilebazmin_pl.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazmin_plr.bz2 b/src/tests/testfilebazmin_plr.bz2
deleted file mode 100755
index e4fcf85d..00000000
--- a/src/tests/testfilebazmin_plr.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazminppc64.bz2 b/src/tests/testfilebazminppc64.bz2
deleted file mode 100755
index 364d84c4..00000000
--- a/src/tests/testfilebazminppc64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazminppc64_pl.bz2 b/src/tests/testfilebazminppc64_pl.bz2
deleted file mode 100755
index 66863403..00000000
--- a/src/tests/testfilebazminppc64_pl.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebazminppc64_plr.bz2 b/src/tests/testfilebazminppc64_plr.bz2
deleted file mode 100755
index 46102853..00000000
--- a/src/tests/testfilebazminppc64_plr.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebaztab.bz2 b/src/tests/testfilebaztab.bz2
deleted file mode 100755
index a99b7394..00000000
--- a/src/tests/testfilebaztab.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilebaztabppc64.bz2 b/src/tests/testfilebaztabppc64.bz2
deleted file mode 100755
index 03afb8c9..00000000
--- a/src/tests/testfilebaztabppc64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfiledwarfinlines.bz2 b/src/tests/testfiledwarfinlines.bz2
deleted file mode 100755
index db14f816..00000000
--- a/src/tests/testfiledwarfinlines.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfiledwarfinlines.core.bz2 b/src/tests/testfiledwarfinlines.core.bz2
deleted file mode 100644
index 2299e1e7..00000000
--- a/src/tests/testfiledwarfinlines.core.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilefoobarbaz.bz2 b/src/tests/testfilefoobarbaz.bz2
deleted file mode 100755
index 0e721ffe..00000000
--- a/src/tests/testfilefoobarbaz.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilegdbindex5.bz2 b/src/tests/testfilegdbindex5.bz2
deleted file mode 100755
index 45ee945a..00000000
--- a/src/tests/testfilegdbindex5.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilegdbindex7.bz2 b/src/tests/testfilegdbindex7.bz2
deleted file mode 100755
index 2a7c6c2c..00000000
--- a/src/tests/testfilegdbindex7.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfileloc.bz2 b/src/tests/testfileloc.bz2
deleted file mode 100755
index a436965b..00000000
--- a/src/tests/testfileloc.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilemacro.bz2 b/src/tests/testfilemacro.bz2
deleted file mode 100755
index 7db51ff5..00000000
--- a/src/tests/testfilemacro.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfilenolines.bz2 b/src/tests/testfilenolines.bz2
deleted file mode 100755
index 23cd7223..00000000
--- a/src/tests/testfilenolines.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfileppc32.bz2 b/src/tests/testfileppc32.bz2
deleted file mode 100755
index f57763a1..00000000
--- a/src/tests/testfileppc32.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfileppc32attrs.o.bz2 b/src/tests/testfileppc32attrs.o.bz2
deleted file mode 100644
index c8d80a99..00000000
--- a/src/tests/testfileppc32attrs.o.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfileppc64.bz2 b/src/tests/testfileppc64.bz2
deleted file mode 100755
index 870046b1..00000000
--- a/src/tests/testfileppc64.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfiles390.bz2 b/src/tests/testfiles390.bz2
deleted file mode 100755
index 14ebf6c7..00000000
--- a/src/tests/testfiles390.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testfiles390x.bz2 b/src/tests/testfiles390x.bz2
deleted file mode 100755
index eb63ed8d..00000000
--- a/src/tests/testfiles390x.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/testlib_dynseg.so.bz2 b/src/tests/testlib_dynseg.so.bz2
deleted file mode 100755
index 94296a4c..00000000
--- a/src/tests/testlib_dynseg.so.bz2
+++ /dev/null
Binary files differ
diff --git a/src/tests/typeiter.c b/src/tests/typeiter.c
deleted file mode 100644
index dff45260..00000000
--- a/src/tests/typeiter.c
+++ /dev/null
@@ -1,90 +0,0 @@
-/* Copyright (C) 2012 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include ELFUTILS_HEADER(dw)
-#include <stdio.h>
-#include <unistd.h>
-#include <dwarf.h>
-
-int
-main (int argc, char *argv[])
-{
- for (int i = 1; i < argc; ++i)
- {
- int fd = open (argv[i], O_RDONLY);
-
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg != NULL)
- {
- Dwarf_Off off = 0;
- size_t cuhl;
- Dwarf_Off noff;
-
- while (dwarf_nextcu (dbg, off, &noff, &cuhl, NULL, NULL, NULL) == 0)
- {
- Dwarf_Die die_mem;
- Dwarf_Die *die = dwarf_offdie (dbg, off + cuhl, &die_mem);
-
- Dwarf_Die iter_mem;
- Dwarf_Die *iter = &iter_mem;
- dwarf_child (die, &iter_mem);
-
- while (1)
- {
- if (dwarf_tag (iter) == DW_TAG_variable)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Die form_mem;
- dwarf_formref_die (dwarf_attr (iter, DW_AT_type,
- &attr_mem),
- &form_mem);
- }
-
- if (dwarf_siblingof (iter, &iter_mem) != 0)
- break;
- }
-
- off = noff;
- }
-
- off = 0;
- uint64_t type_sig;
-
- while (dwarf_next_unit (dbg, off, &noff, &cuhl, NULL, NULL, NULL,
- NULL, &type_sig, NULL) == 0)
- {
- Dwarf_Die die_mem;
- Dwarf_Die *die = dwarf_offdie_types (dbg, off + cuhl, &die_mem);
-
- if (die == NULL)
- printf ("fail\n");
- else
- printf ("ok\n");
-
- off = noff;
- }
-
- dwarf_end (dbg);
- }
-
- close (fd);
- }
-}
diff --git a/src/tests/typeiter2.c b/src/tests/typeiter2.c
deleted file mode 100644
index 6ddfa388..00000000
--- a/src/tests/typeiter2.c
+++ /dev/null
@@ -1,89 +0,0 @@
-/* Copyright (C) 2012, 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <fcntl.h>
-#include ELFUTILS_HEADER(dw)
-#include <stdio.h>
-#include <unistd.h>
-#include <dwarf.h>
-
-int
-main (int argc, char *argv[])
-{
- for (int i = 1; i < argc; ++i)
- {
- int fd = open (argv[i], O_RDONLY);
-
- Dwarf *dbg = dwarf_begin (fd, DWARF_C_READ);
- if (dbg != NULL)
- {
- Dwarf_Off off = 0;
- size_t cuhl;
- Dwarf_Off noff;
- uint64_t type_sig;
-
- while (dwarf_next_unit (dbg, off, &noff, &cuhl, NULL, NULL, NULL,
- NULL, &type_sig, NULL) == 0)
- {
- Dwarf_Die die_mem;
- dwarf_offdie_types (dbg, off + cuhl, &die_mem);
- off = noff;
- }
-
- off = 0;
-
- while (dwarf_nextcu (dbg, off, &noff, &cuhl, NULL, NULL, NULL) == 0)
- {
- Dwarf_Die die_mem;
- Dwarf_Die *die = dwarf_offdie (dbg, off + cuhl, &die_mem);
-
- Dwarf_Die iter_mem;
- Dwarf_Die *iter = &iter_mem;
- dwarf_child (die, &iter_mem);
-
- while (1)
- {
- if (dwarf_tag (iter) == DW_TAG_variable)
- {
- Dwarf_Attribute attr_mem;
- Dwarf_Die form_mem, *form;
- form = dwarf_formref_die (dwarf_attr (iter, DW_AT_type,
- &attr_mem),
- &form_mem);
-
- if (form == NULL)
- printf ("fail\n");
- else
- printf ("ok\n");
- }
-
- if (dwarf_siblingof (iter, &iter_mem) != 0)
- break;
- }
-
- off = noff;
- }
-
- dwarf_end (dbg);
- }
-
- close (fd);
- }
-}
diff --git a/src/tests/update1.c b/src/tests/update1.c
deleted file mode 100644
index f4c14753..00000000
--- a/src/tests/update1.c
+++ /dev/null
@@ -1,127 +0,0 @@
-/* Test program for elf_update function.
- Copyright (C) 2000, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <fcntl.h>
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-
-int
-main (int argc, char *argv[] __attribute__ ((unused)))
-{
- const char *fname = "xxx_update1";
- int fd;
- Elf *elf;
- Elf32_Ehdr *ehdr;
- int i;
-
- fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
- if (fd == -1)
- {
- printf ("cannot open `%s': %s\n", fname, strerror (errno));
- exit (1);
- }
-
- elf_version (EV_CURRENT);
-
- elf = elf_begin (fd, ELF_C_WRITE, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Create an ELF header. */
- ehdr = elf32_newehdr (elf);
- if (ehdr == NULL)
- {
- printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Print the ELF header values. */
- if (argc > 1)
- {
- for (i = 0; i < EI_NIDENT; ++i)
- printf (" %02x", ehdr->e_ident[i]);
- printf ("\
-\ntype = %hu\nmachine = %hu\nversion = %u\nentry = %u\nphoff = %u\n"
- "shoff = %u\nflags = %u\nehsize = %hu\nphentsize = %hu\n"
- "phnum = %hu\nshentsize = %hu\nshnum = %hu\nshstrndx = %hu\n",
- ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
- ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
- ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
- ehdr->e_shnum, ehdr->e_shstrndx);
- }
-
- ehdr->e_ident[0] = 42;
- ehdr->e_ident[4] = 1;
- ehdr->e_ident[5] = 1;
- ehdr->e_ident[6] = 2;
- ehdr->e_ident[9] = 2;
- ehdr->e_version = 1;
- ehdr->e_ehsize = 1;
-
- /* Write out the file. */
- if (elf_update (elf, ELF_C_WRITE) < 0)
- {
- printf ("failure in elf_update: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Create an ELF header. */
- ehdr = elf32_newehdr (elf);
- if (ehdr == NULL)
- {
- printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Print the ELF header values. */
- if (argc > 1)
- {
- for (i = 0; i < EI_NIDENT; ++i)
- printf (" %02x", ehdr->e_ident[i]);
- printf ("\
-\ntype = %hu\nmachine = %hu\nversion = %u\nentry = %u\nphoff = %u\n"
- "shoff = %u\nflags = %u\nehsize = %hu\nphentsize = %hu\n"
- "phnum = %hu\nshentsize = %hu\nshnum = %hu\nshstrndx = %hu\n",
- ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
- ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
- ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
- ehdr->e_shnum, ehdr->e_shstrndx);
- }
-
- if (elf_end (elf) != 0)
- {
- printf ("failure in elf_end: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- unlink (fname);
-
- return 0;
-}
diff --git a/src/tests/update2.c b/src/tests/update2.c
deleted file mode 100644
index 5805163d..00000000
--- a/src/tests/update2.c
+++ /dev/null
@@ -1,150 +0,0 @@
-/* Test program for elf_update function.
- Copyright (C) 2000, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <fcntl.h>
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-
-int
-main (int argc, char *argv[] __attribute__ ((unused)))
-{
- const char *fname = "xxx_update2";
- int fd;
- Elf *elf;
- Elf32_Ehdr *ehdr;
- Elf32_Phdr *phdr;
- int i;
-
- fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
- if (fd == -1)
- {
- printf ("cannot open `%s': %s\n", fname, strerror (errno));
- exit (1);
- }
-
- elf_version (EV_CURRENT);
-
- elf = elf_begin (fd, ELF_C_WRITE, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Create an ELF header. */
- ehdr = elf32_newehdr (elf);
- if (ehdr == NULL)
- {
- printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Print the ELF header values. */
- if (argc > 1)
- {
- for (i = 0; i < EI_NIDENT; ++i)
- printf (" %02x", ehdr->e_ident[i]);
- printf ("\
-\ntype = %hu\nmachine = %hu\nversion = %u\nentry = %u\nphoff = %u\n"
- "shoff = %u\nflags = %u\nehsize = %hu\nphentsize = %hu\n"
- "phnum = %hu\nshentsize = %hu\nshnum = %hu\nshstrndx = %hu\n",
- ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
- ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
- ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
- ehdr->e_shnum, ehdr->e_shstrndx);
- }
-
- ehdr->e_ident[0] = 42;
- ehdr->e_ident[4] = 1;
- ehdr->e_ident[5] = 1;
- ehdr->e_ident[6] = 2;
- ehdr->e_type = ET_EXEC;
- ehdr->e_version = 1;
- ehdr->e_ehsize = 1;
- elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY);
-
- /* Create the program header. */
- phdr = elf32_newphdr (elf, 1);
- if (phdr == NULL)
- {
- printf ("cannot create program header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- phdr[0].p_type = PT_PHDR;
- elf_flagphdr (elf, ELF_C_SET, ELF_F_DIRTY);
-
- /* Let the library compute the internal structure information. */
- if (elf_update (elf, ELF_C_NULL) < 0)
- {
- printf ("failure in elf_update(NULL): %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- ehdr = elf32_getehdr (elf);
-
- phdr[0].p_offset = ehdr->e_phoff;
- phdr[0].p_offset = ehdr->e_phoff;
- phdr[0].p_vaddr = ehdr->e_phoff;
- phdr[0].p_paddr = ehdr->e_phoff;
- phdr[0].p_flags = PF_R | PF_X;
- phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
- phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
- phdr[0].p_align = sizeof (Elf32_Word);
-
- /* Write out the file. */
- if (elf_update (elf, ELF_C_WRITE) < 0)
- {
- printf ("failure in elf_update(WRITE): %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Print the ELF header values. */
- if (argc > 1)
- {
- for (i = 0; i < EI_NIDENT; ++i)
- printf (" %02x", ehdr->e_ident[i]);
- printf ("\
-\ntype = %hu\nmachine = %hu\nversion = %u\nentry = %u\nphoff = %u\n"
- "shoff = %u\nflags = %u\nehsize = %hu\nphentsize = %hu\n"
- "phnum = %hu\nshentsize = %hu\nshnum = %hu\nshstrndx = %hu\n",
- ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
- ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
- ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
- ehdr->e_shnum, ehdr->e_shstrndx);
- }
-
- if (elf_end (elf) != 0)
- {
- printf ("failure in elf_end: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- unlink (fname);
-
- return 0;
-}
diff --git a/src/tests/update3.c b/src/tests/update3.c
deleted file mode 100644
index d760687a..00000000
--- a/src/tests/update3.c
+++ /dev/null
@@ -1,205 +0,0 @@
-/* Test program for elf_update function.
- Copyright (C) 2000, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <fcntl.h>
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include ELFUTILS_HEADER(ebl)
-
-
-int
-main (int argc, char *argv[] __attribute__ ((unused)))
-{
- const char *fname = "xxx_update3";
- int fd;
- Elf *elf;
- Elf32_Ehdr *ehdr;
- Elf32_Phdr *phdr;
- Elf_Scn *scn;
- Elf32_Shdr *shdr;
- Elf_Data *data;
- struct Ebl_Strtab *shst;
- struct Ebl_Strent *shstrtabse;
- int i;
-
- fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
- if (fd == -1)
- {
- printf ("cannot open `%s': %s\n", fname, strerror (errno));
- exit (1);
- }
-
- elf_version (EV_CURRENT);
-
- elf_fill (0x42);
-
- elf = elf_begin (fd, ELF_C_WRITE, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Create an ELF header. */
- ehdr = elf32_newehdr (elf);
- if (ehdr == NULL)
- {
- printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Print the ELF header values. */
- if (argc > 1)
- {
- for (i = 0; i < EI_NIDENT; ++i)
- printf (" %02x", ehdr->e_ident[i]);
- printf ("\
-\ntype = %hu\nmachine = %hu\nversion = %u\nentry = %u\nphoff = %u\n"
- "shoff = %u\nflags = %u\nehsize = %hu\nphentsize = %hu\n"
- "phnum = %hu\nshentsize = %hu\nshnum = %hu\nshstrndx = %hu\n",
- ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
- ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
- ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
- ehdr->e_shnum, ehdr->e_shstrndx);
- }
-
- ehdr->e_ident[0] = 42;
- ehdr->e_ident[4] = 1;
- ehdr->e_ident[5] = 1;
- ehdr->e_ident[6] = 2;
- ehdr->e_type = ET_EXEC;
- ehdr->e_version = 1;
- ehdr->e_ehsize = 1;
- elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY);
-
- /* Create the program header. */
- phdr = elf32_newphdr (elf, 1);
- if (phdr == NULL)
- {
- printf ("cannot create program header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- phdr[0].p_type = PT_PHDR;
- elf_flagphdr (elf, ELF_C_SET, ELF_F_DIRTY);
-
- shst = ebl_strtabinit (true);
-
- scn = elf_newscn (elf);
- if (scn == NULL)
- {
- printf ("cannot create SHSTRTAB section: %s\n", elf_errmsg (-1));
- exit (1);
- }
- shdr = elf32_getshdr (scn);
- if (shdr == NULL)
- {
- printf ("cannot get header for SHSTRTAB section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- shstrtabse = ebl_strtabadd (shst, ".shstrtab", 0);
-
- shdr->sh_type = SHT_STRTAB;
- shdr->sh_flags = 0;
- shdr->sh_addr = 0;
- shdr->sh_link = SHN_UNDEF;
- shdr->sh_info = SHN_UNDEF;
- shdr->sh_addralign = 1;
- shdr->sh_entsize = 0;
-
- /* We have to store the section index in the ELF header. */
- ehdr->e_shstrndx = elf_ndxscn (scn);
-
- data = elf_newdata (scn);
- if (data == NULL)
- {
- printf ("cannot create data SHSTRTAB section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* No more sections, finalize the section header string table. */
- ebl_strtabfinalize (shst, data);
-
- shdr->sh_name = ebl_strtaboffset (shstrtabse);
-
- /* Let the library compute the internal structure information. */
- if (elf_update (elf, ELF_C_NULL) < 0)
- {
- printf ("failure in elf_update(NULL): %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- ehdr = elf32_getehdr (elf);
-
- phdr[0].p_offset = ehdr->e_phoff;
- phdr[0].p_offset = ehdr->e_phoff;
- phdr[0].p_vaddr = ehdr->e_phoff;
- phdr[0].p_paddr = ehdr->e_phoff;
- phdr[0].p_flags = PF_R | PF_X;
- phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
- phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
- phdr[0].p_align = sizeof (Elf32_Word);
-
- /* Write out the file. */
- if (elf_update (elf, ELF_C_WRITE) < 0)
- {
- printf ("failure in elf_update(WRITE): %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* We don't need the string table anymore. */
- ebl_strtabfree (shst);
-
- /* And the data allocated in the .shstrtab section. */
- free (data->d_buf);
-
- /* Print the ELF header values. */
- if (argc > 1)
- {
- for (i = 0; i < EI_NIDENT; ++i)
- printf (" %02x", ehdr->e_ident[i]);
- printf ("\
-\ntype = %hu\nmachine = %hu\nversion = %u\nentry = %u\nphoff = %u\n"
- "shoff = %u\nflags = %u\nehsize = %hu\nphentsize = %hu\n"
- "phnum = %hu\nshentsize = %hu\nshnum = %hu\nshstrndx = %hu\n",
- ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
- ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
- ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
- ehdr->e_shnum, ehdr->e_shstrndx);
- }
-
- if (elf_end (elf) != 0)
- {
- printf ("failure in elf_end: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- unlink (fname);
-
- return 0;
-}
diff --git a/src/tests/update4.c b/src/tests/update4.c
deleted file mode 100644
index 85de6c35..00000000
--- a/src/tests/update4.c
+++ /dev/null
@@ -1,357 +0,0 @@
-/* Test program for elf_update function.
- Copyright (C) 2000, 2001, 2002, 2005 Red Hat, Inc.
- This file is part of elfutils.
- Written by Ulrich Drepper <drepper@redhat.com>, 2000.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include <errno.h>
-#include <fcntl.h>
-#include <libelf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include ELFUTILS_HEADER(ebl)
-
-
-int
-main (int argc, char *argv[] __attribute__ ((unused)))
-{
- const char fname[] = "xxx_update4";
- int fd;
- Elf *elf;
- Elf32_Ehdr *ehdr;
- Elf32_Phdr *phdr;
- Elf_Scn *scn;
- Elf32_Shdr *shdr;
- Elf_Data *data;
- struct Ebl_Strtab *shst;
- struct Ebl_Strent *firstse;
- struct Ebl_Strent *secondse;
- struct Ebl_Strent *thirdse;
- struct Ebl_Strent *fourthse;
- struct Ebl_Strent *shstrtabse;
- int i;
-
- fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0666);
- if (fd == -1)
- {
- printf ("cannot open `%s': %s\n", fname, strerror (errno));
- exit (1);
- }
-
- elf_version (EV_CURRENT);
-
- elf_fill (0x42);
-
- elf = elf_begin (fd, ELF_C_WRITE, NULL);
- if (elf == NULL)
- {
- printf ("cannot create ELF descriptor: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Create an ELF header. */
- ehdr = elf32_newehdr (elf);
- if (ehdr == NULL)
- {
- printf ("cannot create ELF header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* Print the ELF header values. */
- if (argc > 1)
- {
- for (i = 0; i < EI_NIDENT; ++i)
- printf (" %02x", ehdr->e_ident[i]);
- printf ("\
-\ntype = %hu\nmachine = %hu\nversion = %u\nentry = %u\nphoff = %u\n"
- "shoff = %u\nflags = %u\nehsize = %hu\nphentsize = %hu\n"
- "phnum = %hu\nshentsize = %hu\nshnum = %hu\nshstrndx = %hu\n",
- ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
- ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
- ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
- ehdr->e_shnum, ehdr->e_shstrndx);
- }
-
- ehdr->e_ident[0] = 42;
- ehdr->e_ident[4] = 1;
- ehdr->e_ident[5] = 1;
- ehdr->e_ident[6] = 2;
- ehdr->e_type = ET_EXEC;
- ehdr->e_version = 1;
- ehdr->e_ehsize = 1;
- elf_flagehdr (elf, ELF_C_SET, ELF_F_DIRTY);
-
- /* Create the program header. */
- phdr = elf32_newphdr (elf, 1);
- if (phdr == NULL)
- {
- printf ("cannot create program header: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- phdr[0].p_type = PT_PHDR;
- elf_flagphdr (elf, ELF_C_SET, ELF_F_DIRTY);
-
- shst = ebl_strtabinit (true);
-
- scn = elf_newscn (elf);
- if (scn == NULL)
- {
- printf ("cannot create first section: %s\n", elf_errmsg (-1));
- exit (1);
- }
- shdr = elf32_getshdr (scn);
- if (shdr == NULL)
- {
- printf ("cannot get header for first section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- firstse = ebl_strtabadd (shst, ".first", 0);
-
- shdr->sh_type = SHT_PROGBITS;
- shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR;
- shdr->sh_addr = 0;
- shdr->sh_link = 0;
- shdr->sh_info = 0;
- shdr->sh_entsize = 1;
-
- data = elf_newdata (scn);
- if (data == NULL)
- {
- printf ("cannot create data first section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- data->d_buf = "hello";
- data->d_type = ELF_T_BYTE;
- data->d_version = EV_CURRENT;
- data->d_size = 5;
- data->d_align = 16;
-
-
- scn = elf_newscn (elf);
- if (scn == NULL)
- {
- printf ("cannot create second section: %s\n", elf_errmsg (-1));
- exit (1);
- }
- shdr = elf32_getshdr (scn);
- if (shdr == NULL)
- {
- printf ("cannot get header for second section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- secondse = ebl_strtabadd (shst, ".second", 0);
-
- shdr->sh_type = SHT_PROGBITS;
- shdr->sh_flags = SHF_ALLOC | SHF_WRITE;
- shdr->sh_addr = 0;
- shdr->sh_link = 0;
- shdr->sh_info = 0;
- shdr->sh_entsize = 1;
-
- data = elf_newdata (scn);
- if (data == NULL)
- {
- printf ("cannot create data second section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- data->d_buf = "world";
- data->d_type = ELF_T_BYTE;
- data->d_version = EV_CURRENT;
- data->d_size = 5;
- data->d_align = 16;
-
-
- scn = elf_newscn (elf);
- if (scn == NULL)
- {
- printf ("cannot create third section: %s\n", elf_errmsg (-1));
- exit (1);
- }
- shdr = elf32_getshdr (scn);
- if (shdr == NULL)
- {
- printf ("cannot get header for third section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- thirdse = ebl_strtabadd (shst, ".third", 0);
-
- shdr->sh_type = SHT_PROGBITS;
- shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR;
- shdr->sh_addr = 0;
- shdr->sh_link = 0;
- shdr->sh_info = 0;
- shdr->sh_entsize = 1;
-
- data = elf_newdata (scn);
- if (data == NULL)
- {
- printf ("cannot create data third section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- data->d_buf = "!!!!!";
- data->d_type = ELF_T_BYTE;
- data->d_version = EV_CURRENT;
- data->d_size = 5;
- data->d_align = 16;
-
-
- scn = elf_newscn (elf);
- if (scn == NULL)
- {
- printf ("cannot create fourth section: %s\n", elf_errmsg (-1));
- exit (1);
- }
- shdr = elf32_getshdr (scn);
- if (shdr == NULL)
- {
- printf ("cannot get header for fourth section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- fourthse = ebl_strtabadd (shst, ".fourth", 0);
-
- shdr->sh_type = SHT_NOBITS;
- shdr->sh_flags = SHF_ALLOC | SHF_EXECINSTR;
- shdr->sh_addr = 0;
- shdr->sh_link = 0;
- shdr->sh_info = 0;
- shdr->sh_entsize = 1;
- shdr->sh_size = 100;
-
- data = elf_newdata (scn);
- if (data == NULL)
- {
- printf ("cannot create data fourth section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- data->d_buf = NULL;
- data->d_type = ELF_T_BYTE;
- data->d_version = EV_CURRENT;
- data->d_size = 100;
- data->d_align = 16;
-
-
- scn = elf_newscn (elf);
- if (scn == NULL)
- {
- printf ("cannot create SHSTRTAB section: %s\n", elf_errmsg (-1));
- exit (1);
- }
- shdr = elf32_getshdr (scn);
- if (shdr == NULL)
- {
- printf ("cannot get header for SHSTRTAB section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- shstrtabse = ebl_strtabadd (shst, ".shstrtab", 0);
-
- shdr->sh_type = SHT_STRTAB;
- shdr->sh_flags = 0;
- shdr->sh_addr = 0;
- shdr->sh_link = SHN_UNDEF;
- shdr->sh_info = SHN_UNDEF;
- shdr->sh_entsize = 1;
-
- /* We have to store the section index in the ELF header. */
- ehdr->e_shstrndx = elf_ndxscn (scn);
-
- data = elf_newdata (scn);
- if (data == NULL)
- {
- printf ("cannot create data SHSTRTAB section: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* No more sections, finalize the section header string table. */
- ebl_strtabfinalize (shst, data);
-
- elf32_getshdr (elf_getscn (elf, 1))->sh_name = ebl_strtaboffset (firstse);
- elf32_getshdr (elf_getscn (elf, 2))->sh_name = ebl_strtaboffset (secondse);
- elf32_getshdr (elf_getscn (elf, 3))->sh_name = ebl_strtaboffset (thirdse);
- elf32_getshdr (elf_getscn (elf, 4))->sh_name = ebl_strtaboffset (fourthse);
- shdr->sh_name = ebl_strtaboffset (shstrtabse);
-
- /* Let the library compute the internal structure information. */
- if (elf_update (elf, ELF_C_NULL) < 0)
- {
- printf ("failure in elf_update(NULL): %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- ehdr = elf32_getehdr (elf);
-
- phdr[0].p_offset = ehdr->e_phoff;
- phdr[0].p_offset = ehdr->e_phoff;
- phdr[0].p_vaddr = ehdr->e_phoff;
- phdr[0].p_paddr = ehdr->e_phoff;
- phdr[0].p_flags = PF_R | PF_X;
- phdr[0].p_filesz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
- phdr[0].p_memsz = ehdr->e_phnum * elf32_fsize (ELF_T_PHDR, 1, EV_CURRENT);
- phdr[0].p_align = sizeof (Elf32_Word);
-
- /* Write out the file. */
- if (elf_update (elf, ELF_C_WRITE) < 0)
- {
- printf ("failure in elf_update(WRITE): %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- /* We don't need the string table anymore. */
- ebl_strtabfree (shst);
-
- /* And the data allocated in the .shstrtab section. */
- free (data->d_buf);
-
- /* Print the ELF header values. */
- if (argc > 1)
- {
- for (i = 0; i < EI_NIDENT; ++i)
- printf (" %02x", ehdr->e_ident[i]);
- printf ("\
-\ntype = %hu\nmachine = %hu\nversion = %u\nentry = %u\nphoff = %u\n"
- "shoff = %u\nflags = %u\nehsize = %hu\nphentsize = %hu\n"
- "phnum = %hu\nshentsize = %hu\nshnum = %hu\nshstrndx = %hu\n",
- ehdr->e_type, ehdr->e_machine, ehdr->e_version, ehdr->e_entry,
- ehdr->e_phoff, ehdr->e_shoff, ehdr->e_flags, ehdr->e_ehsize,
- ehdr->e_phentsize, ehdr->e_phnum, ehdr->e_shentsize,
- ehdr->e_shnum, ehdr->e_shstrndx);
- }
-
- if (elf_end (elf) != 0)
- {
- printf ("failure in elf_end: %s\n", elf_errmsg (-1));
- exit (1);
- }
-
- unlink (fname);
-
- return 0;
-}
diff --git a/src/tests/varlocs.c b/src/tests/varlocs.c
deleted file mode 100644
index 04f17ff2..00000000
--- a/src/tests/varlocs.c
+++ /dev/null
@@ -1,826 +0,0 @@
-/* Test program for dwarf location functions.
- Copyright (C) 2013 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <argp.h>
-#include <inttypes.h>
-#include <errno.h>
-#include ELFUTILS_HEADER(dw)
-#include ELFUTILS_HEADER(dwfl)
-#include <dwarf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <error.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-#include "../libdw/known-dwarf.h"
-
-// The Dwarf, Dwarf_CFIs and address bias of
-// cfi table to adjust DWARF addresses against.
-// Needed for DW_OP_call_frame_cfa.
-static Dwarf *dw;
-Dwarf_CFI *cfi_debug;
-Dwarf_CFI *cfi_eh;
-Dwarf_Addr cfi_eh_bias;
-
-// Whether the current function has a DW_AT_frame_base defined.
-// Needed for DW_OP_fbreg.
-bool has_frame_base;
-
-static void
-print_die (Dwarf_Die *die, const char *what, int indent)
-{
- Dwarf_Addr entrypc;
- const char *name = dwarf_diename (die) ?: "<unknown>";
- if (dwarf_entrypc (die, &entrypc) == 0)
- printf ("%*s[%" PRIx64 "] %s '%s'@%" PRIx64 "\n", indent * 2, "",
- dwarf_dieoffset (die), what, name, entrypc);
- else
- printf ("%*s[%" PRIx64 "] %s '%s'\n", indent * 2, "",
- dwarf_dieoffset (die), what, name);
-}
-
-static const char *
-dwarf_encoding_string (unsigned int code)
-{
- static const char *const known[] =
- {
-#define ONE_KNOWN_DW_ATE(NAME, CODE) [CODE] = #NAME,
- ALL_KNOWN_DW_ATE
-#undef ONE_KNOWN_DW_ATE
- };
-
- if (likely (code < sizeof (known) / sizeof (known[0])))
- return known[code];
-
- return NULL;
-}
-
-/* BASE must be a base type DIE referenced by a typed DWARF expression op. */
-static void
-print_base_type (Dwarf_Die *base)
-{
- assert (dwarf_tag (base) == DW_TAG_base_type);
-
- Dwarf_Attribute encoding;
- Dwarf_Word enctype;
- if (dwarf_attr (base, DW_AT_encoding, &encoding) == NULL
- || dwarf_formudata (&encoding, &enctype) != 0)
- error (EXIT_FAILURE, 0, "base type without encoding");
-
- Dwarf_Attribute bsize;
- Dwarf_Word bits;
- if (dwarf_attr (base, DW_AT_byte_size, &bsize) != NULL
- && dwarf_formudata (&bsize, &bits) == 0)
- bits *= 8;
- else if (dwarf_attr (base, DW_AT_bit_size, &bsize) == NULL
- || dwarf_formudata (&bsize, &bits) != 0)
- error (EXIT_FAILURE, 0, "base type without byte or bit size");
-
- printf ("{%s,%s,%" PRIu64 "@[%" PRIx64 "]}",
- dwarf_diename (base),
- dwarf_encoding_string (enctype),
- bits,
- dwarf_dieoffset (base));
-}
-
-static const char *
-dwarf_opcode_string (unsigned int code)
-{
- static const char *const known[] =
- {
-#define ONE_KNOWN_DW_OP_DESC(NAME, CODE, DESC) ONE_KNOWN_DW_OP (NAME, CODE)
-#define ONE_KNOWN_DW_OP(NAME, CODE) [CODE] = #NAME,
- ALL_KNOWN_DW_OP
-#undef ONE_KNOWN_DW_OP
-#undef ONE_KNOWN_DW_OP_DESC
- };
-
- if (likely (code < sizeof (known) / sizeof (known[0])))
- return known[code];
-
- return NULL;
-}
-
-// Forward reference for print_expr_block.
-static void print_expr (Dwarf_Attribute *, Dwarf_Op *, Dwarf_Addr);
-
-static void
-print_expr_block (Dwarf_Attribute *attr, Dwarf_Op *exprs, int len,
- Dwarf_Addr addr)
-{
- printf ("{");
- for (int i = 0; i < len; i++)
- {
- print_expr (attr, &exprs[i], addr);
- printf ("%s", (i + 1 < len ? ", " : ""));
- }
- printf ("}");
-}
-
-static void
-print_expr_block_addrs (Dwarf_Attribute *attr,
- Dwarf_Addr begin, Dwarf_Addr end,
- Dwarf_Op *exprs, int len)
-{
- printf (" [%" PRIx64 ",%" PRIx64 ") ", begin, end);
- print_expr_block (attr, exprs, len, begin);
- printf ("\n");
-}
-
-static void
-print_expr (Dwarf_Attribute *attr, Dwarf_Op *expr, Dwarf_Addr addr)
-{
- uint8_t atom = expr->atom;
- const char *opname = dwarf_opcode_string (atom);
- assert (opname != NULL);
-
- switch (atom)
- {
- case DW_OP_deref:
- case DW_OP_dup:
- case DW_OP_drop:
- case DW_OP_over:
- case DW_OP_swap:
- case DW_OP_rot:
- case DW_OP_xderef:
- case DW_OP_abs:
- case DW_OP_and:
- case DW_OP_div:
- case DW_OP_minus:
- case DW_OP_mod:
- case DW_OP_mul:
- case DW_OP_neg:
- case DW_OP_not:
- case DW_OP_or:
- case DW_OP_plus:
- case DW_OP_shl:
- case DW_OP_shr:
- case DW_OP_shra:
- case DW_OP_xor:
- case DW_OP_eq:
- case DW_OP_ge:
- case DW_OP_gt:
- case DW_OP_le:
- case DW_OP_lt:
- case DW_OP_ne:
- case DW_OP_lit0 ... DW_OP_lit31:
- case DW_OP_reg0 ... DW_OP_reg31:
- case DW_OP_nop:
- case DW_OP_stack_value:
- /* No arguments. */
- printf ("%s", opname);
- break;
-
- case DW_OP_form_tls_address:
- /* No arguments. Special. Pops an address and pushes the
- corresponding address in the current thread local
- storage. Uses the thread local storage block of the defining
- module (executable, shared library). */
- printf ("%s", opname);
- break;
-
- case DW_OP_GNU_push_tls_address:
- /* No arguments. Special. Not the same as DW_OP_form_tls_address.
- Pops an offset into the current thread local strorage and
- pushes back the actual address. */
- printf ("%s", opname);
- break;
-
- case DW_OP_call_frame_cfa:
- /* No arguments. Special. Pushes Call Frame Address as computed
- by CFI data (dwarf_cfi_addrframe will fetch that info (either from
- the .eh_frame or .debug_frame CFI) and dwarf_frame_cfa translatesr
- the CFI instructions into a plain DWARF expression.
- Never used in CFI itself. */
-
- if (attr == NULL)
- error (EXIT_FAILURE, 0, "%s used in CFI", opname);
-
- printf ("%s ", opname);
- if (cfi_eh == NULL && cfi_debug == NULL)
- error (EXIT_FAILURE, 0, "DW_OP_call_frame_cfa used but no cfi found.");
-
- Dwarf_Frame *frame;
- if (dwarf_cfi_addrframe (cfi_eh, addr + cfi_eh_bias, &frame) != 0
- && dwarf_cfi_addrframe (cfi_debug, addr, &frame) != 0)
- error (EXIT_FAILURE, 0, "dwarf_cfi_addrframe 0x%" PRIx64 ": %s",
- addr, dwarf_errmsg (-1));
-
- Dwarf_Op *cfa_ops;
- size_t cfa_nops;
- if (dwarf_frame_cfa (frame, &cfa_ops, &cfa_nops) != 0)
- error (EXIT_FAILURE, 0, "dwarf_frame_cfa 0x%" PRIx64 ": %s",
- addr, dwarf_errmsg (-1));
- if (cfa_nops < 1)
- error (EXIT_FAILURE, 0, "dwarf_frame_cfa no ops");
- print_expr_block (NULL, cfa_ops, cfa_nops, 0);
- free (frame);
- break;
-
- case DW_OP_push_object_address:
- /* No arguments. Special. Pushes object address explicitly.
- Normally only done implicitly by DW_AT_data_member_location.
- Never used in CFI. */
- if (attr == NULL)
- error (EXIT_FAILURE, 0, "%s used in CFI", opname);
- printf ("%s", opname);
- break;
-
- case DW_OP_addr:
- /* 1 address argument. */
- printf ("%s(0x%" PRIx64 ")", opname, (Dwarf_Addr) expr->number);
- break;
-
- case DW_OP_const1u:
- case DW_OP_const2u:
- case DW_OP_const4u:
- case DW_OP_const8u:
- case DW_OP_constu:
- case DW_OP_pick:
- case DW_OP_plus_uconst:
- case DW_OP_regx:
- case DW_OP_piece:
- case DW_OP_deref_size:
- case DW_OP_xderef_size:
- /* 1 numeric unsigned argument. */
- printf ("%s(%" PRIu64 ")", opname, expr->number);
- break;
-
- case DW_OP_call2:
- case DW_OP_call4:
- case DW_OP_call_ref:
- /* 1 DIE offset argument for more ops in location attribute of DIE.
- Never used in CFI. */
- {
- if (attr == NULL)
- error (EXIT_FAILURE, 0, "%s used in CFI", opname);
-
- Dwarf_Attribute call_attr;
- if (dwarf_getlocation_attr (attr, expr, &call_attr) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_attr for %s error %s",
- opname, dwarf_errmsg (-1));
-
- Dwarf_Die call_die;
- if (dwarf_getlocation_die (attr, expr, &call_die) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_die for %s error %s",
- opname, dwarf_errmsg (-1));
-
- Dwarf_Op *call_ops;
- size_t call_len;
- if (dwarf_getlocation (&call_attr, &call_ops, &call_len) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation for entry: %s",
- dwarf_errmsg (-1));
-
- printf ("%s([%" PRIx64 "]) ", opname, dwarf_dieoffset (&call_die));
- print_expr_block (&call_attr, call_ops, call_len, addr);
- }
- break;
-
- case DW_OP_const1s:
- case DW_OP_const2s:
- case DW_OP_const4s:
- case DW_OP_const8s:
- case DW_OP_consts:
- case DW_OP_skip:
- case DW_OP_bra:
- case DW_OP_breg0 ... DW_OP_breg31:
- /* 1 numeric signed argument. */
- printf ("%s(%" PRId64 ")", opname, (Dwarf_Sword) expr->number);
- break;
-
- case DW_OP_fbreg:
- /* 1 numeric signed argument. Offset from frame base. */
- if (attr == NULL)
- error (EXIT_FAILURE, 0, "%s used in CFI", opname);
-
- if (! has_frame_base)
- error (EXIT_FAILURE, 0, "DW_OP_fbreg used without a frame base");
-
- printf ("%s(%" PRId64 ")", opname, (Dwarf_Sword) expr->number);
- break;
-
- case DW_OP_bregx:
- /* 2 arguments, unsigned register number, signed offset. */
- printf ("%s(%" PRIu64 ",%" PRId64 ")", opname,
- expr->number, (Dwarf_Sword) expr->number2);
- break;
-
- case DW_OP_bit_piece:
- /* 2 arguments, unsigned size, unsigned offset. */
- printf ("%s(%" PRIu64 ",%" PRIu64 ")", opname,
- expr->number, expr->number2);
- break;
-
- case DW_OP_implicit_value:
- /* Special, unsigned size plus block. */
- {
- Dwarf_Attribute const_attr;
- Dwarf_Block block;
- if (dwarf_getlocation_attr (attr, expr, &const_attr) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_attr: %s",
- dwarf_errmsg (-1));
-
- if (dwarf_formblock (&const_attr, &block) != 0)
- error (EXIT_FAILURE, 0, "dwarf_formblock: %s",
- dwarf_errmsg (-1));
-
- /* This is the "old" way. Check they result in the same. */
- Dwarf_Block block_impl;
- if (dwarf_getlocation_implicit_value (attr, expr, &block_impl) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_implicit_value: %s",
- dwarf_errmsg (-1));
-
- assert (expr->number == block.length);
- assert (block.length == block_impl.length);
- printf ("%s(%" PRIu64 "){", opname, block.length);
- for (size_t i = 0; i < block.length; i++)
- {
- printf ("%02x", block.data[i]);
- assert (block.data[i] == block_impl.data[i]);
- }
- printf("}");
- }
- break;
-
- case DW_OP_GNU_implicit_pointer:
- /* Special, DIE offset, signed offset. Referenced DIE has a
- location or const_value attribute. */
- {
- if (attr == NULL)
- error (EXIT_FAILURE, 0, "%s used in CFI", opname);
-
- Dwarf_Attribute attrval;
- if (dwarf_getlocation_implicit_pointer (attr, expr, &attrval) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_implicit_pointer: %s",
- dwarf_errmsg (-1));
-
- // Sanity check, results should be the same.
- Dwarf_Attribute attrval2;
- if (dwarf_getlocation_attr (attr, expr, &attrval2) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_attr: %s",
- dwarf_errmsg (-1));
-
- assert (dwarf_whatattr (&attrval) == dwarf_whatattr (&attrval2));
- assert (dwarf_whatform (&attrval) == dwarf_whatform (&attrval2));
- // In theory two different valp pointers could point to the same
- // value. But here we really expect them to be the equal.
- assert (attrval.valp == attrval2.valp);
-
- Dwarf_Die impl_die;
- if (dwarf_getlocation_die (attr, expr, &impl_die) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_due: %s",
- dwarf_errmsg (-1));
-
- printf ("%s([%" PRIx64 "],%" PRId64 ") ", opname,
- dwarf_dieoffset (&impl_die), expr->number2);
-
- if (dwarf_whatattr (&attrval) == DW_AT_const_value)
- printf ("<constant value>"); // Lookup type...
- else
- {
- // Lookup the location description at the current address.
- Dwarf_Op *exprval;
- size_t exprval_len;
- int locs = dwarf_getlocation_addr (&attrval, addr,
- &exprval, &exprval_len, 1);
- if (locs == 0)
- printf ("<no location>"); // This means "optimized out".
- else if (locs == 1)
- print_expr_block (&attrval, exprval, exprval_len, addr);
- else
- error (EXIT_FAILURE, 0,
- "dwarf_getlocation_addr attrval at addr 0x%" PRIx64
- ", locs (%d): %s", addr, locs, dwarf_errmsg (-1));
- }
- }
- break;
-
- case DW_OP_GNU_entry_value:
- /* Special, unsigned size plus expression block. All registers
- inside the block should be interpreted as they had on
- entering the function. dwarf_getlocation_attr will return an
- attribute containing the block as locexpr which can be
- retrieved with dwarf_getlocation. */
- {
- Dwarf_Attribute entry_attr;
- if (dwarf_getlocation_attr (attr, expr, &entry_attr) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_attr: %s",
- dwarf_errmsg (-1));
-
- Dwarf_Op *entry_ops;
- size_t entry_len;
- if (dwarf_getlocation (&entry_attr, &entry_ops, &entry_len) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation for entry: %s",
- dwarf_errmsg (-1));
-
- printf ("%s(%zd) ", opname, entry_len);
- print_expr_block (attr, entry_ops, entry_len, addr);
- }
- break;
-
- case DW_OP_GNU_parameter_ref:
- /* Special, unsigned CU relative DIE offset pointing to a
- DW_TAG_formal_parameter. The value that parameter had at the
- call site of the current function will be put on the DWARF
- stack. The value can be retrieved by finding the
- DW_TAG_GNU_call_site_parameter which has as
- DW_AT_abstract_origin the same formal parameter DIE. */
- {
- Dwarf_Die param;
- if (dwarf_getlocation_die (attr, expr, &param) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_die: %s",
- dwarf_errmsg (-1));
- // XXX actually lookup DW_TAG_GNU_call_site_parameter
- printf ("%s[%" PRIx64 "]", opname, dwarf_dieoffset (&param));
- assert (expr->number == dwarf_cuoffset (&param));
- assert (dwarf_tag (&param) == DW_TAG_formal_parameter);
- }
- break;
-
- case DW_OP_GNU_convert:
- case DW_OP_GNU_reinterpret:
- /* Special, unsigned CU relative DIE offset pointing to a
- DW_TAG_base_type. Pops a value, converts or reinterprets the
- value to the given type. When the argument is zero the value
- becomes untyped again. */
- {
- Dwarf_Die type;
- Dwarf_Off off = expr->number;
- if (off != 0)
- {
- if (dwarf_getlocation_die (attr, expr, &type) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_die: %s",
- dwarf_errmsg (-1));
- off = dwarf_dieoffset (&type);
- assert (expr->number == dwarf_cuoffset (&type));
- printf ("%s", opname);
- print_base_type (&type);
- }
- else
- printf ("%s[%" PRIu64 "]", opname, off);
-
- }
- break;
-
- case DW_OP_GNU_regval_type:
- /* Special, unsigned register number plus unsigned CU relative
- DIE offset pointing to a DW_TAG_base_type. */
- {
- Dwarf_Die type;
- if (dwarf_getlocation_die (attr, expr, &type) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_die: %s",
- dwarf_errmsg (-1));
- assert (expr->number2 == dwarf_cuoffset (&type));
- // XXX check size against base_type size?
- printf ("%s(reg%" PRIu64 ")", opname, expr->number);
- print_base_type (&type);
- }
- break;
-
- case DW_OP_GNU_deref_type:
- /* Special, unsigned size plus unsigned CU relative DIE offset
- pointing to a DW_TAG_base_type. */
- {
- Dwarf_Die type;
- if (dwarf_getlocation_die (attr, expr, &type) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_die: %s",
- dwarf_errmsg (-1));
- assert (expr->number2 == dwarf_cuoffset (&type));
- // XXX check size against base_type size?
- printf ("%s(%" PRIu64 ")", opname, expr->number);
- print_base_type (&type);
- }
- break;
-
- case DW_OP_GNU_const_type:
- /* Special, unsigned CU relative DIE offset pointing to a
- DW_TAG_base_type, an unsigned size length plus a block with
- the constant value. */
- {
- Dwarf_Die type;
- if (dwarf_getlocation_die (attr, expr, &type) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_die: %s",
- dwarf_errmsg (-1));
- assert (expr->number == dwarf_cuoffset (&type));
-
- Dwarf_Attribute const_attr;
- if (dwarf_getlocation_attr (attr, expr, &const_attr) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocation_attr for type: %s",
- dwarf_errmsg (-1));
-
- Dwarf_Block block;
- if (dwarf_formblock (&const_attr, &block) != 0)
- error (EXIT_FAILURE, 0, "dwarf_formblock for type: %s",
- dwarf_errmsg (-1));
-
- printf ("%s", opname);
- print_base_type (&type);
- printf ("(%" PRIu64 ")[", block.length);
- for (size_t i = 0; i < block.length; i++)
- printf ("%02x", block.data[i]);
- printf("]");
- }
- break;
-
- default:
- error (EXIT_FAILURE, 0, "unhandled opcode: DW_OP_%s (0x%x)",
- opname, atom);
- }
-}
-
-/* Get all variables and print their value expressions. */
-static void
-print_varlocs (Dwarf_Die *funcdie)
-{
- // Display frame base for function if it exists.
- // Should be used for DW_OP_fbreg.
- has_frame_base = dwarf_hasattr (funcdie, DW_AT_frame_base);
- if (has_frame_base)
- {
- Dwarf_Attribute fb_attr;
- if (dwarf_attr (funcdie, DW_AT_frame_base, &fb_attr) == NULL)
- error (EXIT_FAILURE, 0, "dwarf_attr fb: %s", dwarf_errmsg (-1));
-
- Dwarf_Op *fb_expr;
- size_t fb_exprlen;
- if (dwarf_getlocation (&fb_attr, &fb_expr, &fb_exprlen) == 0)
- {
- // Covers all of function.
- Dwarf_Addr entrypc;
- if (dwarf_entrypc (funcdie, &entrypc) != 0)
- error (EXIT_FAILURE, 0, "dwarf_entrypc: %s", dwarf_errmsg (-1));
-
- printf (" frame_base: ");
- if (entrypc == 0)
- printf ("XXX zero address"); // XXX bad DWARF?
- else
- print_expr_block (&fb_attr, fb_expr, fb_exprlen, entrypc);
- printf ("\n");
- }
- else
- {
- Dwarf_Addr base, start, end;
- ptrdiff_t off = 0;
- printf (" frame_base:\n");
- while ((off = dwarf_getlocations (&fb_attr, off, &base,
- &start, &end,
- &fb_expr, &fb_exprlen)) > 0)
- {
- printf (" (%" PRIx64 ",%" PRIx64 ") ", start, end);
- print_expr_block (&fb_attr, fb_expr, fb_exprlen, start);
- printf ("\n");
- }
-
- if (off < 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocations fb: %s",
- dwarf_errmsg (-1));
- }
- }
- else if (dwarf_tag (funcdie) == DW_TAG_inlined_subroutine)
- {
- // See whether the subprogram we are inlined into has a frame
- // base we should use.
- Dwarf_Die *scopes;
- int n = dwarf_getscopes_die (funcdie, &scopes);
- if (n <= 0)
- error (EXIT_FAILURE, 0, "dwarf_getscopes_die: %s", dwarf_errmsg (-1));
-
- while (n-- > 0)
- if (dwarf_tag (&scopes[n]) == DW_TAG_subprogram
- && dwarf_hasattr (&scopes[n], DW_AT_frame_base))
- {
- has_frame_base = true;
- break;
- }
- free (scopes);
- }
-
- if (! dwarf_haschildren (funcdie))
- return;
-
- Dwarf_Die child;
- int res = dwarf_child (funcdie, &child);
- if (res < 0)
- error (EXIT_FAILURE, 0, "dwarf_child: %s", dwarf_errmsg (-1));
-
- /* We thought there was a child, but the child list was actually
- empty. This isn't technically an error in the DWARF, but it is
- certainly non-optimimal. */
- if (res == 1)
- return;
-
- do
- {
- int tag = dwarf_tag (&child);
- if (tag == DW_TAG_variable || tag == DW_TAG_formal_parameter)
- {
- const char *what = tag == DW_TAG_variable ? "variable" : "parameter";
- print_die (&child, what, 2);
-
- if (dwarf_hasattr (&child, DW_AT_location))
- {
- Dwarf_Attribute attr;
- if (dwarf_attr (&child, DW_AT_location, &attr) == NULL)
- error (EXIT_FAILURE, 0, "dwarf_attr: %s", dwarf_errmsg (-1));
-
- Dwarf_Op *expr;
- size_t exprlen;
- if (dwarf_getlocation (&attr, &expr, &exprlen) == 0)
- {
- // Covers all ranges of the function.
- // Evaluate the expression block for each range.
- ptrdiff_t offset = 0;
- Dwarf_Addr base, begin, end;
- do
- {
- offset = dwarf_ranges (funcdie, offset, &base,
- &begin, &end);
- if (offset < 0)
- error (EXIT_FAILURE, 0, "dwarf_ranges: %s",
- dwarf_errmsg (-1));
-
- if (offset > 0)
- {
- if (exprlen == 0)
- printf (" (%"
- PRIx64 ",%" PRIx64
- ") <empty expression>\n", begin, end);
- else
- print_expr_block_addrs (&attr, begin, end,
- expr, exprlen);
- }
- }
- while (offset > 0);
-
- if (offset < 0)
- error (EXIT_FAILURE, 0, "dwarf_ranges: %s",
- dwarf_errmsg (-1));
- }
- else
- {
- Dwarf_Addr base, begin, end;
- ptrdiff_t offset = 0;
- while ((offset = dwarf_getlocations (&attr, offset,
- &base, &begin, &end,
- &expr, &exprlen)) > 0)
- if (begin >= end)
- printf (" (%" PRIx64 ",%" PRIx64
- ") <empty range>\n", begin, end); // XXX report?
- else
- {
- print_expr_block_addrs (&attr, begin, end,
- expr, exprlen);
-
- // Extra sanity check for dwarf_getlocation_addr
- // Must at least find one range for begin and end-1.
- Dwarf_Op *expraddr;
- size_t expraddr_len;
- int locs = dwarf_getlocation_addr (&attr, begin,
- &expraddr,
- &expraddr_len, 1);
- assert (locs == 1);
- locs = dwarf_getlocation_addr (&attr, end - 1,
- &expraddr,
- &expraddr_len, 1);
- assert (locs == 1);
- }
-
- if (offset < 0)
- error (EXIT_FAILURE, 0, "dwarf_getlocations: %s",
- dwarf_errmsg (-1));
- }
- }
- else if (dwarf_hasattr (&child, DW_AT_const_value))
- {
- printf (" <constant value>\n"); // Lookup type and print.
- }
- else
- {
- printf (" <no value>\n");
- }
- }
- }
- while (dwarf_siblingof (&child, &child) == 0);
-}
-
-static int
-handle_instance (Dwarf_Die *funcdie, void *arg __attribute__ ((unused)))
-{
- print_die (funcdie, "inlined function", 1);
- print_varlocs (funcdie);
-
- return DWARF_CB_OK;
-}
-
-static int
-handle_function (Dwarf_Die *funcdie, void *arg __attribute__((unused)))
-{
- if (dwarf_func_inline (funcdie) > 0)
- {
- // abstract inline definition, find all inlined instances.
-
- // Note this is convenient for listing all instances together
- // so you can easily compare the location expressions describing
- // the variables and parameters, but it isn't very efficient
- // since it will walk the DIE tree multiple times.
- if (dwarf_func_inline_instances (funcdie, &handle_instance, NULL) != 0)
- error (EXIT_FAILURE, 0, "dwarf_func_inline_instances: %s",
- dwarf_errmsg (-1));
- }
- else
- {
- // Contains actual code, not just a declaration?
- Dwarf_Addr entrypc;
- if (dwarf_entrypc (funcdie, &entrypc) == 0)
- {
- print_die (funcdie, "function", 1);
- print_varlocs (funcdie);
- }
- }
-
- return DWARF_CB_OK;
-}
-
-int
-main (int argc, char *argv[])
-{
- int remaining;
- Dwfl *dwfl;
- (void) argp_parse (dwfl_standard_argp (), argc, argv, 0, &remaining,
- &dwfl);
- assert (dwfl != NULL);
-
- Dwarf_Die *cu = NULL;
- Dwarf_Addr dwbias;
- while ((cu = dwfl_nextcu (dwfl, cu, &dwbias)) != NULL)
- {
- /* Only walk actual compile units (not partial units) that
- contain code. */
- Dwarf_Addr cubase;
- if (dwarf_tag (cu) == DW_TAG_compile_unit
- && dwarf_lowpc (cu, &cubase) == 0)
- {
- Dwfl_Module *mod = dwfl_cumodule (cu);
- Dwarf_Addr modbias;
- dw = dwfl_module_getdwarf (mod, &modbias);
- assert (dwbias == modbias);
-
- const char *mainfile;
- const char *modname = dwfl_module_info (mod, NULL,
- NULL, NULL,
- NULL, NULL,
- &mainfile,
- NULL);
- if (modname == NULL)
- error (EXIT_FAILURE, 0, "dwfl_module_info: %s", dwarf_errmsg (-1));
-
- const char *name = (modname[0] != '\0'
- ? modname
- : basename (mainfile));
- printf ("module '%s'\n", name);
- print_die (cu, "CU", 0);
-
- Dwarf_Addr elfbias;
- Elf *elf = dwfl_module_getelf (mod, &elfbias);
-
- // CFI. We need both since sometimes neither is complete.
- cfi_debug = dwarf_getcfi (dw); // No bias needed, same file.
- cfi_eh = dwarf_getcfi_elf (elf);
- cfi_eh_bias = dwbias - elfbias;
-
- // Get the actual CU DIE and walk all functions inside it.
- Dwarf_Die cudie;
- uint8_t offsize;
- uint8_t addrsize;
- if (dwarf_diecu (cu, &cudie, &addrsize, &offsize) == NULL)
- error (EXIT_FAILURE, 0, "dwarf_diecu %s", dwarf_errmsg (-1));
-
- if (dwarf_getfuncs (cu, handle_function, NULL, 0) != 0)
- error (EXIT_FAILURE, 0, "dwarf_getfuncs %s",
- dwarf_errmsg (-1));
- }
- }
-
- dwfl_end (dwfl);
- return 0;
-}
diff --git a/src/tests/vdsosyms.c b/src/tests/vdsosyms.c
deleted file mode 100644
index c1f8d89f..00000000
--- a/src/tests/vdsosyms.c
+++ /dev/null
@@ -1,109 +0,0 @@
-/* Test program for getting symbol table from vdso module.
- Copyright (C) 2014 Red Hat, Inc.
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include <config.h>
-#include <assert.h>
-#include <errno.h>
-#include <error.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <string.h>
-#include <sys/types.h>
-#include <unistd.h>
-#include ELFUTILS_HEADER(dwfl)
-
-#ifndef __linux__
-int
-main (int argc __attribute__ ((unused)), char **argv)
-{
- printf ("Getting the vdso is unsupported.\n");
- return 77;
-}
-#else /* __linux__ */
-static int vdso_syms = 0;
-
-static int
-module_callback (Dwfl_Module *mod, void **userdata __attribute__((unused)),
- const char *name, Dwarf_Addr start __attribute__((unused)),
- void *arg __attribute__((unused)))
-{
- /* We can only recognize the vdso by inspecting the "magic name". */
- printf ("module name: %s\n", name);
- if (strncmp ("[vdso: ", name, 7) == 0)
- {
- vdso_syms = dwfl_module_getsymtab (mod);
- printf ("vdso syms: %d\n", vdso_syms);
- if (vdso_syms < 0)
- error (2, 0, "dwfl_module_getsymtab: %s", dwfl_errmsg (-1));
-
- for (int i = 0; i < vdso_syms; i++)
- {
- GElf_Sym sym;
- GElf_Addr addr;
- const char *sname = dwfl_module_getsym_info (mod, i, &sym, &addr,
- NULL, NULL, NULL);
- assert (sname != NULL);
- printf ("%d: '%s' %" PRIx64 " (%" PRIx64 ")\n",
- i, sname, sym.st_value, addr);
- }
- }
-
- return DWARF_CB_OK;
-}
-
-int
-main (int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)))
-{
- static char *debuginfo_path;
- static const Dwfl_Callbacks proc_callbacks =
- {
- .find_debuginfo = dwfl_standard_find_debuginfo,
- .debuginfo_path = &debuginfo_path,
-
- .find_elf = dwfl_linux_proc_find_elf,
- };
- Dwfl *dwfl = dwfl_begin (&proc_callbacks);
- if (dwfl == NULL)
- error (2, 0, "dwfl_begin: %s", dwfl_errmsg (-1));
-
- /* Take our parent as "arbitrary" process to inspect. */
- pid_t pid = getppid();
-
- int result = dwfl_linux_proc_report (dwfl, pid);
- if (result < 0)
- error (2, 0, "dwfl_linux_proc_report: %s", dwfl_errmsg (-1));
- else if (result > 0)
- error (2, result, "dwfl_linux_proc_report");
-
- /* Also explicitly attach for older kernels (cannot read vdso otherwise). */
- result = dwfl_linux_proc_attach (dwfl, pid, false);
- if (result < 0)
- error (2, 0, "dwfl_linux_proc_attach: %s", dwfl_errmsg (-1));
- else if (result > 0)
- error (2, result, "dwfl_linux_proc_attach");
-
- if (dwfl_report_end (dwfl, NULL, NULL) != 0)
- error (2, 0, "dwfl_report_end: %s", dwfl_errmsg (-1));
-
- if (dwfl_getmodules (dwfl, module_callback, NULL, 0) != 0)
- error (1, 0, "dwfl_getmodules: %s", dwfl_errmsg (-1));
-
- /* No symbols is ok, then we haven't seen the vdso at all on this arch. */
- return vdso_syms >= 0 ? 0 : -1;
-}
-
-#endif /* ! __linux__ */
diff --git a/src/src/unaligned.h b/src/unaligned.h
index 29166530..29166530 100644
--- a/src/src/unaligned.h
+++ b/src/unaligned.h
diff --git a/src/src/unstrip.c b/src/unstrip.c
index 989ac5ff..989ac5ff 100644
--- a/src/src/unstrip.c
+++ b/src/unstrip.c
diff --git a/src/version.h b/src/version.h
deleted file mode 100644
index 7139c450..00000000
--- a/src/version.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Version information about elfutils development libraries.
- Copyright (C) 2008 Red Hat, Inc.
-
- This file is part of elfutils.
-
- This file is free software; you can redistribute it and/or modify
- it under the terms of either
-
- * the GNU Lesser General Public License as published by the Free
- Software Foundation; either version 3 of the License, or (at
- your option) any later version
-
- or
-
- * the GNU General Public License as published by the Free
- Software Foundation; either version 2 of the License, or (at
- your option) any later version
-
- or both in parallel, as here.
-
- elfutils is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received copies of the GNU General Public License and
- the GNU Lesser General Public License along with this program. If
- not, see <http://www.gnu.org/licenses/>. */
-
-#ifndef _ELFUTILS_VERSION_H
-#define _ELFUTILS_VERSION_H 1
-
-#define _ELFUTILS_VERSION 161
-
-#define _ELFUTILS_PREREQ(major, minor) \
- (_ELFUTILS_VERSION >= ((major) * 1000 + (minor)))
-
-#endif /* elfutils/version.h */
diff --git a/src/src/versionhash.c b/src/versionhash.c
index cc4d2833..cc4d2833 100644
--- a/src/src/versionhash.c
+++ b/src/versionhash.c
diff --git a/src/src/versionhash.h b/src/versionhash.h
index 4434e055..4434e055 100644
--- a/src/src/versionhash.h
+++ b/src/versionhash.h
diff --git a/src/src/xelf.h b/src/xelf.h
index f292327d..f292327d 100644
--- a/src/src/xelf.h
+++ b/src/xelf.h