Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 1 | include "llvm/Option/OptParser.td" |
| 2 | |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 3 | multiclass Eq<string name, string help> { |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 4 | def NAME : Separate<["--", "-"], name>; |
| 5 | def NAME #_eq : Joined<["--", "-"], name #"=">, |
| 6 | Alias<!cast<Separate>(NAME)>, |
| 7 | HelpText<help>; |
Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | def help : Flag<["-", "--"], "help">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 11 | |
James Henderson | 66a9d0f | 2019-04-18 09:13:30 +0000 | [diff] [blame^] | 12 | def allow_broken_links |
| 13 | : Flag<["-", "--"], "allow-broken-links">, |
| 14 | HelpText<"Allow llvm-objcopy to remove sections even if it would leave " |
| 15 | "invalid section references. The appropriate sh_link fields" |
| 16 | "will be set to zero.">; |
| 17 | |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 18 | defm binary_architecture |
| 19 | : Eq<"binary-architecture", "Used when transforming an architecture-less " |
| 20 | "format (such as binary) to another format">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 21 | def B : JoinedOrSeparate<["-"], "B">, Alias<binary_architecture>; |
| 22 | |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 23 | defm target : Eq<"target", "Format of the input and output file">, |
Jordan Rupprecht | bb4588e | 2018-10-12 00:36:01 +0000 | [diff] [blame] | 24 | Values<"binary">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 25 | def F : JoinedOrSeparate<["-"], "F">, Alias<target>; |
| 26 | |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 27 | defm input_target : Eq<"input-target", "Format of the input file">, |
Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 28 | Values<"binary">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 29 | def I : JoinedOrSeparate<["-"], "I">, Alias<input_target>; |
| 30 | |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 31 | defm output_target : Eq<"output-target", "Format of the output file">, |
Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 32 | Values<"binary">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 33 | def O : JoinedOrSeparate<["-"], "O">, Alias<output_target>; |
| 34 | |
Puyan Lotfi | 99124cc | 2018-09-07 08:10:22 +0000 | [diff] [blame] | 35 | def compress_debug_sections : Flag<["--", "-"], "compress-debug-sections">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 36 | def compress_debug_sections_eq |
| 37 | : Joined<["--", "-"], "compress-debug-sections=">, |
| 38 | MetaVarName<"[ zlib | zlib-gnu ]">, |
| 39 | HelpText<"Compress DWARF debug sections using specified style. Supported " |
| 40 | "styles: 'zlib-gnu' and 'zlib'">; |
Puyan Lotfi | af04864 | 2018-10-01 10:29:41 +0000 | [diff] [blame] | 41 | def decompress_debug_sections : Flag<["-", "--"], "decompress-debug-sections">, |
| 42 | HelpText<"Decompress DWARF debug sections.">; |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 43 | defm split_dwo |
| 44 | : Eq<"split-dwo", "Equivalent to extract-dwo on the input file to " |
| 45 | "<dwo-file>, then strip-dwo on the input file">, |
| 46 | MetaVarName<"dwo-file">; |
Jordan Rupprecht | d1767dc | 2018-08-16 18:29:40 +0000 | [diff] [blame] | 47 | |
Jordan Rupprecht | fc780bb | 2018-11-01 17:36:37 +0000 | [diff] [blame] | 48 | def enable_deterministic_archives |
| 49 | : Flag<["-", "--"], "enable-deterministic-archives">, |
| 50 | HelpText<"Enable deterministic mode when copying archives (use zero for " |
| 51 | "UIDs, GIDs, and timestamps).">; |
| 52 | def D : Flag<["-"], "D">, |
| 53 | Alias<enable_deterministic_archives>, |
| 54 | HelpText<"Alias for --enable-deterministic-archives">; |
| 55 | |
| 56 | def disable_deterministic_archives |
| 57 | : Flag<["-", "--"], "disable-deterministic-archives">, |
| 58 | HelpText<"Disable deterministic mode when copying archives (use real " |
| 59 | "values for UIDs, GIDs, and timestamps).">; |
| 60 | def U : Flag<["-"], "U">, |
| 61 | Alias<disable_deterministic_archives>, |
| 62 | HelpText<"Alias for --disable-deterministic-archives">; |
| 63 | |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 64 | def preserve_dates : Flag<["-", "--"], "preserve-dates">, |
Jordan Rupprecht | d1767dc | 2018-08-16 18:29:40 +0000 | [diff] [blame] | 65 | HelpText<"Preserve access and modification timestamps">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 66 | def p : Flag<["-"], "p">, Alias<preserve_dates>; |
Jordan Rupprecht | d1767dc | 2018-08-16 18:29:40 +0000 | [diff] [blame] | 67 | |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 68 | defm add_gnu_debuglink |
| 69 | : Eq<"add-gnu-debuglink", "Add a .gnu_debuglink for <debug-file>">, |
| 70 | MetaVarName<"debug-file">; |
Jordan Rupprecht | d1767dc | 2018-08-16 18:29:40 +0000 | [diff] [blame] | 71 | |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 72 | defm remove_section : Eq<"remove-section", "Remove <section>">, |
| 73 | MetaVarName<"section">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 74 | def R : JoinedOrSeparate<["-"], "R">, Alias<remove_section>; |
| 75 | |
Jordan Rupprecht | d67c1e1 | 2018-08-01 16:23:22 +0000 | [diff] [blame] | 76 | defm rename_section |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 77 | : Eq<"rename-section", |
| 78 | "Renames a section from old to new, optionally with specified flags. " |
| 79 | "Flags supported for GNU compatibility: alloc, load, noload, " |
| 80 | "readonly, debug, code, data, rom, share, contents, merge, strings.">, |
| 81 | MetaVarName<"old=new[,flag1,...]">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 82 | defm redefine_symbol |
| 83 | : Eq<"redefine-sym", "Change the name of a symbol old to new">, |
| 84 | MetaVarName<"old=new">; |
Eugene Leviant | 340cb87 | 2019-02-08 10:33:16 +0000 | [diff] [blame] | 85 | defm redefine_symbols |
| 86 | : Eq<"redefine-syms", |
| 87 | "Reads a list of symbol pairs from <filename> and runs as if " |
| 88 | "--redefine-sym=<old>=<new> is set for each one. <filename> " |
| 89 | "contains two symbols per line separated with whitespace and may " |
| 90 | "contain comments beginning with '#'. Leading and trailing " |
| 91 | "whitespace is stripped from each line. May be repeated to read " |
| 92 | "symbols from many files.">, |
| 93 | MetaVarName<"filename">; |
| 94 | |
Jordan Rupprecht | c5bae78 | 2018-11-13 19:32:27 +0000 | [diff] [blame] | 95 | defm keep_section : Eq<"keep-section", "Keep <section>">, |
| 96 | MetaVarName<"section">; |
Jake Ehrlich | 85985ed | 2018-12-06 02:03:53 +0000 | [diff] [blame] | 97 | defm only_section : Eq<"only-section", "Remove all but <section>">, |
| 98 | MetaVarName<"section">; |
| 99 | def j : JoinedOrSeparate<["-"], "j">, Alias<only_section>; |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 100 | defm add_section |
| 101 | : Eq<"add-section", |
| 102 | "Make a section named <section> with the contents of <file>.">, |
| 103 | MetaVarName<"section=file">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 104 | |
Jordan Rupprecht | c892741 | 2019-01-29 15:05:38 +0000 | [diff] [blame] | 105 | defm set_section_flags |
| 106 | : Eq<"set-section-flags", |
| 107 | "Set section flags for a given section. Flags supported for GNU " |
| 108 | "compatibility: alloc, load, noload, readonly, debug, code, data, " |
| 109 | "rom, share, contents, merge, strings.">, |
| 110 | MetaVarName<"section=flag1[,flag2,...]">; |
| 111 | |
James Henderson | b5de5e2 | 2019-03-14 11:47:41 +0000 | [diff] [blame] | 112 | def strip_all : Flag<["-", "--"], "strip-all">, |
| 113 | HelpText<"Remove non-allocated sections outside segments. " |
| 114 | ".gnu.warning* sections are not removed">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 115 | def S : Flag<["-"], "S">, Alias<strip_all>; |
Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 116 | def strip_all_gnu : Flag<["-", "--"], "strip-all-gnu">, |
Jordan Rupprecht | 30d1b19 | 2018-11-01 17:48:46 +0000 | [diff] [blame] | 117 | HelpText<"Compatible with GNU objcopy's --strip-all">; |
Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 118 | def strip_debug : Flag<["-", "--"], "strip-debug">, |
Alexander Shaposhnikov | b3bfd3b | 2018-04-24 21:44:13 +0000 | [diff] [blame] | 119 | HelpText<"Remove all debug information">; |
Douglas Yung | 914e838 | 2019-01-25 09:57:20 +0000 | [diff] [blame] | 120 | def g : Flag<["-"], "g">, Alias<strip_debug>, |
| 121 | HelpText<"Alias for --strip-debug">; |
Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 122 | def strip_dwo : Flag<["-", "--"], "strip-dwo">, |
| 123 | HelpText<"Remove all DWARF .dwo sections from file">; |
James Henderson | b5de5e2 | 2019-03-14 11:47:41 +0000 | [diff] [blame] | 124 | def strip_sections |
| 125 | : Flag<["-", "--"], "strip-sections">, |
| 126 | HelpText<"Remove all section headers and all sections not in segments">; |
| 127 | def strip_non_alloc |
| 128 | : Flag<["-", "--"], "strip-non-alloc">, |
| 129 | HelpText<"Remove all non-allocated sections outside segments">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 130 | def strip_unneeded : Flag<["-", "--"], "strip-unneeded">, |
| 131 | HelpText<"Remove all symbols not needed by relocations">; |
James Henderson | b5de5e2 | 2019-03-14 11:47:41 +0000 | [diff] [blame] | 132 | defm strip_unneeded_symbol |
Eugene Leviant | 2db1062 | 2019-02-13 07:34:54 +0000 | [diff] [blame] | 133 | : Eq<"strip-unneeded-symbol", |
| 134 | "Remove symbol <symbol> if it is not needed by relocations">, |
| 135 | MetaVarName<"symbol">; |
| 136 | defm strip_unneeded_symbols |
| 137 | : Eq<"strip-unneeded-symbols", |
| 138 | "Reads a list of symbols from <filename> and removes them " |
| 139 | "if they are not needed by relocations">, |
| 140 | MetaVarName<"filename">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 141 | |
| 142 | def extract_dwo |
| 143 | : Flag<["-", "--"], "extract-dwo">, |
| 144 | HelpText< |
| 145 | "Remove all sections that are not DWARF .dwo sections from file">; |
| 146 | |
| 147 | def localize_hidden |
| 148 | : Flag<["-", "--"], "localize-hidden">, |
| 149 | HelpText< |
| 150 | "Mark all symbols that have hidden or internal visibility as local">; |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 151 | defm localize_symbol : Eq<"localize-symbol", "Mark <symbol> as local">, |
| 152 | MetaVarName<"symbol">; |
Eugene Leviant | e08fe35 | 2019-02-08 14:37:54 +0000 | [diff] [blame] | 153 | defm localize_symbols |
| 154 | : Eq<"localize-symbols", |
| 155 | "Reads a list of symbols from <filename> and marks them local.">, |
| 156 | MetaVarName<"filename">; |
| 157 | |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 158 | def L : JoinedOrSeparate<["-"], "L">, Alias<localize_symbol>; |
Jordan Rupprecht | be8ebcc | 2018-08-17 22:34:48 +0000 | [diff] [blame] | 159 | |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 160 | defm globalize_symbol : Eq<"globalize-symbol", "Mark <symbol> as global">, |
| 161 | MetaVarName<"symbol">; |
Eugene Leviant | e08fe35 | 2019-02-08 14:37:54 +0000 | [diff] [blame] | 162 | |
| 163 | defm globalize_symbols |
| 164 | : Eq<"globalize-symbols", |
| 165 | "Reads a list of symbols from <filename> and marks them global.">, |
| 166 | MetaVarName<"filename">; |
| 167 | |
Jordan Rupprecht | be8ebcc | 2018-08-17 22:34:48 +0000 | [diff] [blame] | 168 | defm keep_global_symbol |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 169 | : Eq<"keep-global-symbol", |
| 170 | "Convert all symbols except <symbol> to local. May be repeated to " |
| 171 | "convert all except a set of symbols to local.">, |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 172 | MetaVarName<"symbol">; |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 173 | def G : JoinedOrSeparate<["-"], "G">, Alias<keep_global_symbol>; |
Jordan Rupprecht | be8ebcc | 2018-08-17 22:34:48 +0000 | [diff] [blame] | 174 | |
| 175 | defm keep_global_symbols |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 176 | : Eq<"keep-global-symbols", |
| 177 | "Reads a list of symbols from <filename> and runs as if " |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 178 | "--keep-global-symbol=<symbol> is set for each one. <filename> " |
| 179 | "contains one symbol per line and may contain comments beginning with " |
| 180 | "'#'. Leading and trailing whitespace is stripped from each line. May " |
| 181 | "be repeated to read symbols from many files.">, |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 182 | MetaVarName<"filename">; |
Jordan Rupprecht | be8ebcc | 2018-08-17 22:34:48 +0000 | [diff] [blame] | 183 | |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 184 | defm weaken_symbol : Eq<"weaken-symbol", "Mark <symbol> as weak">, |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 185 | MetaVarName<"symbol">; |
Eugene Leviant | e08fe35 | 2019-02-08 14:37:54 +0000 | [diff] [blame] | 186 | defm weaken_symbols |
| 187 | : Eq<"weaken-symbols", |
| 188 | "Reads a list of symbols from <filename> and marks them weak.">, |
| 189 | MetaVarName<"filename">; |
| 190 | |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 191 | def W : JoinedOrSeparate<["-"], "W">, Alias<weaken_symbol>; |
Paul Semel | 2c0510f | 2018-05-02 20:14:49 +0000 | [diff] [blame] | 192 | def weaken : Flag<["-", "--"], "weaken">, |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 193 | HelpText<"Mark all global symbols as weak">; |
Jordan Rupprecht | d0f7bcf | 2019-01-30 14:58:13 +0000 | [diff] [blame] | 194 | |
| 195 | def discard_locals : Flag<["-", "--"], "discard-locals">, |
| 196 | HelpText<"Remove compiler-generated local symbols, (e.g. " |
| 197 | "symbols starting with .L)">; |
| 198 | def X : Flag<["-"], "X">, Alias<discard_locals>; |
| 199 | |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 200 | def discard_all |
| 201 | : Flag<["-", "--"], "discard-all">, |
| 202 | HelpText<"Remove all local symbols except file and section symbols">; |
| 203 | def x : Flag<["-"], "x">, Alias<discard_all>; |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 204 | defm strip_symbol : Eq<"strip-symbol", "Remove symbol <symbol>">, |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 205 | MetaVarName<"symbol">; |
Eugene Leviant | e08fe35 | 2019-02-08 14:37:54 +0000 | [diff] [blame] | 206 | defm strip_symbols |
| 207 | : Eq<"strip-symbols", |
| 208 | "Reads a list of symbols from <filename> and removes them.">, |
| 209 | MetaVarName<"filename">; |
| 210 | |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 211 | def N : JoinedOrSeparate<["-"], "N">, Alias<strip_symbol>; |
Fangrui Song | ab205a3 | 2018-11-01 17:20:40 +0000 | [diff] [blame] | 212 | defm keep_symbol : Eq<"keep-symbol", "Do not remove symbol <symbol>">, |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 213 | MetaVarName<"symbol">; |
| 214 | def K : JoinedOrSeparate<["-"], "K">, Alias<keep_symbol>; |
Jordan Rupprecht | 12ed01d | 2019-03-14 21:51:42 +0000 | [diff] [blame] | 215 | |
Yi Kong | f2baddb | 2019-04-01 18:12:43 +0000 | [diff] [blame] | 216 | defm keep_symbols |
| 217 | : Eq<"keep-symbols", |
| 218 | "Reads a list of symbols from <filename> and runs as if " |
| 219 | "--keep-symbol=<symbol> is set for each one. <filename> " |
| 220 | "contains one symbol per line and may contain comments beginning with " |
| 221 | "'#'. Leading and trailing whitespace is stripped from each line. May " |
| 222 | "be repeated to read symbols from many files.">, |
| 223 | MetaVarName<"filename">; |
| 224 | |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 225 | def only_keep_debug |
| 226 | : Flag<["-", "--"], "only-keep-debug">, |
Jordan Rupprecht | 12ed01d | 2019-03-14 21:51:42 +0000 | [diff] [blame] | 227 | HelpText<"Clear sections that would not be stripped by --strip-debug. " |
| 228 | "Currently only implemented for COFF.">; |
| 229 | |
Paul Semel | cf51c80 | 2018-05-26 08:10:37 +0000 | [diff] [blame] | 230 | def keep_file_symbols : Flag<["-", "--"], "keep-file-symbols">, |
Jordan Rupprecht | 56c0ee0 | 2018-11-01 21:38:14 +0000 | [diff] [blame] | 231 | HelpText<"Do not remove file symbols">; |
| 232 | defm dump_section |
| 233 | : Eq<"dump-section", |
| 234 | "Dump contents of section named <section> into file <file>">, |
| 235 | MetaVarName<"section=file">; |
| 236 | defm prefix_symbols |
| 237 | : Eq<"prefix-symbols", "Add <prefix> to the start of every symbol name">, |
| 238 | MetaVarName<"prefix">; |
| 239 | |
| 240 | def version : Flag<["-", "--"], "version">, |
| 241 | HelpText<"Print the version and exit.">; |
Martin Storsjo | e9af715 | 2018-11-28 06:51:50 +0000 | [diff] [blame] | 242 | def V : Flag<["-"], "V">, Alias<version>; |
Jake Ehrlich | 8ad7779 | 2018-12-03 19:49:23 +0000 | [diff] [blame] | 243 | defm build_id_link_dir |
| 244 | : Eq<"build-id-link-dir", "Set directory for --build-id-link-input and " |
| 245 | "--build-id-link-output to <dir>">, |
| 246 | MetaVarName<"dir">; |
| 247 | defm build_id_link_input |
| 248 | : Eq<"build-id-link-input", "Hard-link the input to <dir>/xx/xxx<suffix> " |
| 249 | "name derived from hex build ID">, |
| 250 | MetaVarName<"suffix">; |
| 251 | defm build_id_link_output |
| 252 | : Eq<"build-id-link-output", "Hard-link the output to <dir>/xx/xxx<suffix> " |
| 253 | "name derived from hex build ID">, |
| 254 | MetaVarName<"suffix">; |
Eugene Leviant | f324f6d | 2019-02-06 11:00:07 +0000 | [diff] [blame] | 255 | |
| 256 | def regex |
| 257 | : Flag<["-", "--"], "regex">, |
| 258 | HelpText<"Permit regular expressions in name comparison">; |
Eugene Leviant | 51c1f64 | 2019-02-25 14:12:41 +0000 | [diff] [blame] | 259 | |
Eugene Leviant | 53350d0 | 2019-02-26 09:24:22 +0000 | [diff] [blame] | 260 | defm set_start : Eq<"set-start", "Set the start address to <addr>. Overrides " |
| 261 | "any previous --change-start or --adjust-start values.">, |
| 262 | MetaVarName<"addr">; |
| 263 | defm change_start : Eq<"change-start", "Add <incr> to the start address. Can be " |
| 264 | "specified multiple times, all values will be applied " |
| 265 | "cumulatively.">, |
| 266 | MetaVarName<"incr">; |
| 267 | def adjust_start : JoinedOrSeparate<["-", "--"], "adjust-start">, |
| 268 | Alias<change_start>; |
| 269 | |
Eugene Leviant | 51c1f64 | 2019-02-25 14:12:41 +0000 | [diff] [blame] | 270 | defm add_symbol |
| 271 | : Eq<"add-symbol", "Add new symbol <name> to .symtab. Accepted flags: " |
| 272 | "global, local, weak, default, hidden, file, section, object, " |
| 273 | "function, indirect-function. Accepted but ignored for " |
| 274 | "compatibility: debug, constructor, warning, indirect, synthetic, " |
| 275 | "unique-object, before.">, |
| 276 | MetaVarName<"name=[section:]value[,flags]">; |