Home | History | Annotate | Download | only in LD
      1 DIAG(err_cannot_open_input,
      2      DiagnosticEngine::Error,
      3      "can not open input file `%0': %1",
      4      "can not open input file `%0' : %1")
      5 DIAG(err_cannot_open_output_file,
      6      DiagnosticEngine::Fatal,
      7      "cannot open output file `%0': %1",
      8      "cannot open output file `%0': %1")
      9 DIAG(warn_cannot_open_search_dir,
     10      DiagnosticEngine::Warning,
     11      "can not open search directory `-L%0'",
     12      "can not open search directory `-L%0'")
     13 DIAG(err_no_inputs, DiagnosticEngine::Error, "no inputs", "no inputs")
     14 DIAG(err_empty_input,
     15      DiagnosticEngine::Error,
     16      "Empty input file `%0' : %1",
     17      "Empty input file `%0' : %1")
     18 DIAG(warn_unrecognized_input_file,
     19      DiagnosticEngine::Warning,
     20      "cannot recognize the format of file `%0'.\n  object format or given "
     21      "target machine (%1) is incompatible.",
     22      "cannot recognize the format of file `%0'.\n  object format or given "
     23      "target machine (%1) is incompatible.")
     24 DIAG(err_cannot_find_namespec,
     25      DiagnosticEngine::Fatal,
     26      "cannot recognize namespec -l%0",
     27      "cannot recognize namespec -l%0")
     28 DIAG(err_cannot_identify_option,
     29      DiagnosticEngine::Fatal,
     30      "unknown command line argument `%0' at %1",
     31      "unknown command line argument `%0' at %1")
     32 DIAG(err_mixed_shared_static_objects,
     33      DiagnosticEngine::Error,
     34      "cannot link shared objects with -static option.\nShared object `%0': %1",
     35      "cannot link shared objects with -static option.\nShared object `%0': %1")
     36 DIAG(unrecognized_output_file,
     37      DiagnosticEngine::Unreachable,
     38      "unsupported output file format: `%0'",
     39      "unsupported output file format: `%0'")
     40 DIAG(unrecognized_output_sectoin,
     41      DiagnosticEngine::Unreachable,
     42      "Unable to emit section `%0'\nPlease report to `%1'",
     43      "Unable to emit section `%0'\nPlease report to `%1'")
     44 DIAG(duplicated_wrap,
     45      DiagnosticEngine::Warning,
     46      "wrapped symbol `%0' had been claimed",
     47      "wrapped symbol `%0' had been claimed")
     48 DIAG(rewrap,
     49      DiagnosticEngine::Warning,
     50      "There are duplicated --wrap `%0' on the command line\nsymbol `%1' had "
     51      "been claimed",
     52      "There are duplicated --wrap `%0' on the command line]\nsymbol `%1' had "
     53      "been claimed.")
     54 DIAG(err_cannot_read_symbol,
     55      DiagnosticEngine::Fatal,
     56      "can not read symbol[%0] in file %1",
     57      "can not read symbol[%0] in file %1")
     58 DIAG(err_cannot_read_section,
     59      DiagnosticEngine::Fatal,
     60      "can not read section `%0'.",
     61      "can not read section `%0'.")
     62 DIAG(err_cannot_read_target_section,
     63      DiagnosticEngine::Fatal,
     64      "can not read target-dependent section `%0'.",
     65      "can not read target-dependent section `%0'.")
     66 DIAG(err_cannot_read_relocated_section,
     67      DiagnosticEngine::Fatal,
     68      "can not read the section being relocated in file %0.\ninvalid sh_info: "
     69      "%1\nrelocation section: %2",
     70      "can not read the section being relocated in file %0.\ninvalid sh_info: "
     71      "%1\nrelocation section: %2")
     72 DIAG(err_unsupported_section,
     73      DiagnosticEngine::Fatal,
     74      "unsupported section `%0' (type %1)",
     75      "unsupported section `%0' (type %1)")
     76 DIAG(unreachable_invalid_section_idx,
     77      DiagnosticEngine::Unreachable,
     78      "section[%0] is invalid in file %1",
     79      "section[%0] is invalid in file %1")
     80 DIAG(err_unsupported_whole_archive,
     81      DiagnosticEngine::Error,
     82      "Target does not support --whole-archive",
     83      "Target does not support --whole-archive")
     84 DIAG(err_unsupported_as_needed,
     85      DiagnosticEngine::Error,
     86      "Target does not support --as-needed",
     87      "Target does not support --as-needed")
     88 DIAG(err_unsupported_add_needed,
     89      DiagnosticEngine::Error,
     90      "Target doest not support --add-needed",
     91      "Target does not support --add-needed")
     92 DIAG(err_unsupported_Bdynamic,
     93      DiagnosticEngine::Error,
     94      "Target does not support --Bdynamic",
     95      "Target does not support --Bdynamic")
     96 DIAG(err_enable_as_needed_on_static_system,
     97      DiagnosticEngine::Warning,
     98      "can not enable --as-needed on the target which does not support shared "
     99      "objects",
    100      "can not enable --as-needed on the target which does not support shared "
    101      "objects")
    102 DIAG(err_mix_static_as_needed,
    103      DiagnosticEngine::Warning,
    104      "cannot mix --static with --as-needed",
    105      "cannot mix --static with --as-needed")
    106 DIAG(err_cannot_change_file_size,
    107      DiagnosticEngine::Error,
    108      "cannot truncate file `%0' to size %1",
    109      "cannot truncate ffile `%0' to size %1")
    110 DIAG(err_cannot_open_file,
    111      DiagnosticEngine::Error,
    112      "cannot open file `%0': %1.",
    113      "cannot open file `%0': %1.")
    114 DIAG(err_cannot_close_file,
    115      DiagnosticEngine::Error,
    116      "cannot close file `%0': %1.",
    117      "cannot close file `%0': %1.")
    118 DIAG(err_cannot_read_file,
    119      DiagnosticEngine::Error,
    120      "cannot read file %0 from offset %1 to length %2.",
    121      "cannot read file %0 from offset %1 to length %2.")
    122 DIAG(err_cannot_read_small_file,
    123      DiagnosticEngine::Fatal,
    124      "file %0 is too small to read.\n  file size is %1.\n  read from %2.",
    125      "file %0 is too small to read.\n  file size is %1.\n  read from %2.")
    126 DIAG(err_cannot_mmap_file,
    127      DiagnosticEngine::Error,
    128      "cannot open memory mapped file %0 from offset %1 to length %2.",
    129      "cannot open memoory mpped file %0 from offset %1 to length %2.")
    130 DIAG(err_cannot_munmap_file,
    131      DiagnosticEngine::Error,
    132      "cannot remove the mapped memory of file %0.",
    133      "cannot remove the mapped memory of file %0.")
    134 DIAG(err_cannot_write_file,
    135      DiagnosticEngine::Error,
    136      "cannot write file %0 from offset %1 to length %2.",
    137      "cannot write file %0 from offset %1 to length %2.")
    138 DIAG(warn_illegal_input_section,
    139      DiagnosticEngine::Warning,
    140      "section `%0' should not appear in input file `%1': %2",
    141      "section `%0' should not appear in input file `%1': %2")
    142 DIAG(err_cannot_trace_file,
    143      DiagnosticEngine::Unreachable,
    144      "cannot identify the type (%0) of input file `%1'.\n  %2",
    145      "cannot identify the type (%0) of input file `%1'.\n  %2")
    146 DIAG(err_out_of_range_region,
    147      DiagnosticEngine::Unreachable,
    148      "requested memory region [%0, %1] is out of range.",
    149      "requested memory region [%0, %1] is out of range.")
    150 DIAG(debug_eh_unsupport,
    151      DiagnosticEngine::Debug,
    152      "unsupported .eh_frame section in input: %0",
    153      "unsupported .eh_frame section in input: %0")
    154 DIAG(note_eh_cie,
    155      DiagnosticEngine::Note,
    156      "CIE length: %0, aug_string: %1, fde_encodeing: %2",
    157      "CIE length: %0, aug_string: %1, fde_encodeing: %2")
    158 DIAG(note_eh_fde,
    159      DiagnosticEngine::Note,
    160      "FDE length: %0, offset of PC Begin: %1",
    161      "FDE length: %0, offset of PC Begin: %1")
    162 DIAG(fatal_cannot_init_target,
    163      DiagnosticEngine::Fatal,
    164      "Cannot initialize mcld::Target for given triple '%0'.\n(Detail: %1)",
    165      "Cannot initialize mcld::Target for given triple '%0'.\n(Detail: %1)")
    166 DIAG(fatal_cannot_init_lineinfo,
    167      DiagnosticEngine::Fatal,
    168      "Cannot initialize mcld::DiagnosticLineInfo for given triple '%0'",
    169      "Cannot initialize mcld::DiagnosticLineInfo for given triple '%0'")
    170 DIAG(fatal_cannot_init_backend,
    171      DiagnosticEngine::Fatal,
    172      "Cannot initialize mcld::TargetLDBackend for given triple '%0'.",
    173      "Cannot initialize mcld::TargetLDBackend for given triple '%0'.")
    174 DIAG(fatal_forbid_nest_group,
    175      DiagnosticEngine::Fatal,
    176      "not matched --start-group and --end-group",
    177      "not matched --start-group and --end-group")
    178 DIAG(fatal_unwritable_output,
    179      DiagnosticEngine::Fatal,
    180      "unable to write output file %0",
    181      "unable to write output file %0")
    182 DIAG(warn_unsupported_option,
    183      DiagnosticEngine::Warning,
    184      "%0: unsupported option",
    185      "%0: unsupported option")
    186 DIAG(warn_shared_textrel,
    187      DiagnosticEngine::Warning,
    188      "Add DT_TEXTREL in a shared object!",
    189      "Add DT_TEXTREL in a shared object.")
    190 DIAG(fatal_illegal_codegen_type,
    191      DiagnosticEngine::Fatal,
    192      "illegal output format of output %0",
    193      "illegal output format of output %0")
    194 DIAG(err_nmagic_not_static,
    195      DiagnosticEngine::Error,
    196      "cannot mix -nmagic option with -shared",
    197      "cannot mix -nmagic option with -shared")
    198 DIAG(err_omagic_not_static,
    199      DiagnosticEngine::Error,
    200      "cannot mix -omagic option with -shared",
    201      "cannot mix -omagic option with -shared")
    202 DIAG(err_invalid_emulation,
    203      DiagnosticEngine::Error,
    204      "Invalid target emulation: `%0'.",
    205      "Invalid target emulation: `%0'.")
    206 DIAG(err_cannot_find_scriptfile,
    207      DiagnosticEngine::Fatal,
    208      "cannot open %0 file %1",
    209      "cannot open %0 file %1")
    210 DIAG(err_unsupported_archive,
    211      DiagnosticEngine::Error,
    212      "Unsupported archive type.",
    213      "Unsupported archive type.")
    214 DIAG(unexpected_frag_type,
    215      DiagnosticEngine::Unreachable,
    216      "Unexpected fragment type `%0' when constructing FG",
    217      "Unexpected fragment type `%0' when constructing FG")
    218 DIAG(debug_print_gc_sections,
    219      DiagnosticEngine::Debug,
    220      "removing unused section from '%0' in file '%1'",
    221      "removing unused section from '%0' in file '%1'")
    222 DIAG(eh_missing_text_section,
    223      DiagnosticEngine::Fatal,
    224      "missing text section for '%0' in file '%1'",
    225      "missing text section for '%0' in file '%1'")
    226