summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/elfedit/modules/common/ehdr.msg
blob: 16ca8dcdf0718df83bcf098563b63fab8c3f3cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

@ _START_

# Message file for elfedit 'ehdr' module

@ MSG_ID_ELFEDIT_EHDR


# Debug messages
@ MSG_DEBUG_E_S_OK	"ehdr.%s: value unchanged: %s\n"
@ MSG_DEBUG_E_S_CHG	"ehdr.%s: change from %s to %s\n"
@ MSG_DEBUG_E_D_OK	"ehdr.%s: value unchanged: %d\n"
@ MSG_DEBUG_E_D_CHG	"ehdr.%s: change from %d to %d\n"
@ MSG_DEBUG_E_LLX_OK	"ehdr.%s: value unchanged: %#llx\n"
@ MSG_DEBUG_E_LLX_CHG	"ehdr.%s: change from %#llx to %#llx\n"
@ MSG_DEBUG_EI_S_S_OK	"ehdr.e_ident[%s]: value unchanged: %s\n";
@ MSG_DEBUG_EI_S_S_CHG	"ehdr.e_ident[%s]: change from %s to %s\n"
@ MSG_DEBUG_EI_D_X_OK	"ehdr.e_ident[%d]: value unchanged: %#x\n"
@ MSG_DEBUG_EI_D_X_CHG	"ehdr.e_ident[%d]: change from %#x to %#x\n"
@ MSG_DEBUG_SHDR0_D_OK	"shdr[0].%s: value unchanged: %d\n"
@ MSG_DEBUG_SHDR0_D_CHG	"shdr[0].%s: change from %d to %d\n"
@ MSG_DEBUG_NOTSTRTAB	"ehdr.%s: ELF warning: section is not a \
			 string table: %d\n"


# Module description

@ MSG_MOD_DESC		"ELF Header"


# 1-line description strings

@ MSG_DESC_DUMP			"Dump ELF Header"
@ MSG_DESC_E_IDENT		"ELF Identification"
@ MSG_DESC_E_TYPE		"Object File Type"
@ MSG_DESC_E_MACHINE		"Machine Architecture"
@ MSG_DESC_E_VERSION		"Object File Version"
@ MSG_DESC_E_ENTRY		"Starting Virtual Address"
@ MSG_DESC_E_PHOFF		"Program Header Table File Offset"
@ MSG_DESC_E_SHOFF		"Section Header Table File Offset"
@ MSG_DESC_E_FLAGS		"Processor-Specific Flags"
@ MSG_DESC_E_EHSIZE		"ELF Header's Size"
@ MSG_DESC_E_PHENTSIZE		"Program Header Table Entry Size"
@ MSG_DESC_E_PHNUM		"Number Program Header Entries"
@ MSG_DESC_E_SHENTSIZE		"Section Header Table Entry Size"
@ MSG_DESC_E_SHNUM		"Number Section Header Entries"
@ MSG_DESC_E_SHSTRNDX		"Section Name String Table Index"

@ MSG_DESC_EI_MAG0		"File Identification Byte #1"
@ MSG_DESC_EI_MAG1		"File Identification Byte #2"
@ MSG_DESC_EI_MAG2		"File Identification Byte #3"
@ MSG_DESC_EI_MAG3		"File Identification Byte #4"
@ MSG_DESC_EI_CLASS		"File Class (System Word Size)"
@ MSG_DESC_EI_DATA		"Data Encoding (Byte Order)"
@ MSG_DESC_EI_VERSION		"File Version"
@ MSG_DESC_EI_OSABI		"Operating System / ABI Identification"
@ MSG_DESC_EI_ABIVERSION	"ABI version"

# Command option description strings

@ MSG_OPTDESC_SHNDX	"\
   Interpret the sec argument as a section index rather than\n\
   as a section name. section can be one of the well known SHN_\n\
   symbolic constants, or any integer.\n"

@ MSG_OPTDESC_SHTYP	"\
   Interpret the sec argument as a section type rather than\n\
   as a section name. section can be one of the well known SHT_\n\
   symbolic constants, or any integer.\n"

# Command argument description strings

@ MSG_ARGDESC_E_IDENT_NDX	"\
   Index of element of e_ident[] array. This can be\n\
   an integer value, or any of the EI_ symbolic constants\n\
   defined in /usr/include/sys/elf.h.\n"

@ MSG_ARGDESC_E_IDENT_VALUE	"\
   New value for element of e_ident[] array. This can be\n\
   an integer value, or any symbolic constants defined in\n\
   /usr/include/sys/elf.h that apply to the selected item.\n"

@ MSG_ARGDESC_E_TYPE_VALUE	"\
   New value for type of the ELF object. This can be\n\
   an integer value, or any of the ET_ symbolic constants\n\
   defined in /usr/include/sys/elf.h.\n"

@ MSG_ARGDESC_E_MACHINE_VALUE	"\
   New value for architecture of the ELF object. This can be\n\
   an integer value, or any of the EM_ symbolic constants\n\
   defined in /usr/include/sys/elf.h.\n"

@ MSG_ARGDESC_E_VERSION_VALUE	"\
   New value for version of the ELF object. This can be\n\
   an integer value, or any of the EV_ symbolic constants\n\
   defined in /usr/include/sys/elf.h.\n"

@ MSG_ARGDESC_E_ENTRY_VALUE	"\
   New value for virtual address to which the system first transfers control.\n"

@ MSG_ARGDESC_E_PHOFF_VALUE	"\
   New value for program header table's file offset.\n"

@ MSG_ARGDESC_E_SHOFF_VALUE	"\
   New value for section header table's file offset.\n"

@ MSG_ARGDESC_E_FLAGS_VALUE	"\
   New value for processor-specific flags. This can be an integer\n\
   value, or any of the EF_ symbolic constants defined in the\n\
   system header files\n"

@ MSG_ARGDESC_E_EHSIZE_VALUE	"\
   New value for size of ELF header, in bytes.\n"

@ MSG_ARGDESC_E_PHENTSIZE_VALUE	"\
   New value for size of one entry in the file's program header table,\n\
   in bytes.\n"

@ MSG_ARGDESC_E_PHNUM_VALUE	"\
   New value for number of entries in the program header table.\n"

@ MSG_ARGDESC_E_SHENTSIZE_VALUE	"\
   New value for size of one entry in the file's section header table,\n\
   in bytes.\n"

@ MSG_ARGDESC_E_SHNUM_VALUE	"\
   New value for number of entries in the section header table.\n"

@ MSG_ARGDESC_E_SHSTRNDX_SEC	"\
   String table section containing section name strings.\n\
   By default, this argument is interpreted as the name\n\
   of the desired section. The section index of the first\n\
   section with the specified name is used.\n\
   \n\
   If -shndx is set, then sec is a section index, and is\n\
   interpreted as an integer, or one of the well known SHN_\n\
   symbolic constant names.\n\
   \n\
   If -shtyp is set, then sec is a section type, and is\n\
   interpreted as an integer, or one of the well known SHT_\n\
   symbolic constant names. The section index of the first\n\
   section with the specified type is used.\n"

@ MSG_ARGDESC_EI_MAG0_VALUE	"\
   New value for first byte of file magic number.\n"

@ MSG_ARGDESC_EI_MAG1_VALUE	"\
   New value for second byte of file magic number.\n"

@ MSG_ARGDESC_EI_MAG2_VALUE	"\
   New value for third byte of file magic number.\n"

@ MSG_ARGDESC_EI_MAG3_VALUE	"\
   New value for fourth byte of file magic number.\n"

@ MSG_ARGDESC_EI_CLASS_VALUE	"\
   New value for file's class. This can be an integer value, or any of\n\
   the ELFCLASS symbolic constants defined in /usr/include/sys/elf.h.\n"

@ MSG_ARGDESC_EI_DATA_VALUE	"\
   New value for file's data encoding. This can be an integer\n\
   value, or any ELFDATA symbolic constants defined in\n\
   /usr/include/sys/elf.h.\n"

# Note: EI_VERSION uses the same string as E_VERSION, above

@ MSG_ARGDESC_EI_OSABI_VALUE	"\
   New value for ABI identification of the ELF object. This can be\n\
   an integer value, or any of the ELFOSABI_ symbolic constants\n\
   defined in /usr/include/sys/elf.h.\n"

@ MSG_ARGDESC_EI_ABIVERSION_VALUE	"\
   New value for version of the ABI to which the object is targeted.\n"


# Help strings

@ MSG_HELP_DUMP	"   \
   The ehdr:dump command is used to display the contents of\n\
   the ELF header using the same style used by the elfdump program.\n"

@ MSG_HELP_E_IDENT	"   \
   Examine or modify ELF Identification information for the\n\
   object. This information is found in the e_ident array in\n\
   the ELF header.\n\
   \n\
   If ehdr:e_ident is called without any argument, all values\n\
   the value in e_ident are shown. If called with the index\n\
   argument, the selected element of e_ident is shown. If also\n\
   called with the value argument, the selected e_ident element\n\
   is updated with the new value.\n"


@ MSG_HELP_E_TYPE	"   \
   Examine or modify the object file type. This information is\n\
   found in the e_type field of the ELF header.\n\
   \n\
   If ehdr:e_type is called without an argument, the value of\n\
   e_type is shown. If called with the value argument, the\n\
   e_type field is updated with the new value.\n\
   \n\
   Note: Changing the type code of an object does not change the\n\
   other contents of the file, and is unlikely to produce a usable\n\
   ELF object.\n"


@ MSG_HELP_E_MACHINE	"   \
   Examine or modify the required architecture of the object.\n\
   This information is found in the e_machine field of the\n\
   ELF header.\n\
   \n\
   If ehdr:e_machine is called without an argument, the value of\n\
   e_machine is shown. If called with the value argument, the\n\
   e_machine field is updated with the new value.\n\
   \n\
   Note: Changing the architecture code of an object does not change the\n\
   other contents of the file, and is unlikely to produce a usable\n\
   ELF object.\n"


@ MSG_HELP_E_VERSION	"   \
   Examine or modify the object file version. This information\n\
   is found in the e_version field of the ELF header.\n\
   \n\
   If ehdr:e_version is called without an argument, the value of\n\
   e_version is shown. If called with the value argument, the\n\
   e_version field is updated with the new value.\n\
   \n\
   Note: The e_ident[EI_VERSION] element of the ELF header\n\
   identification array also contains a version value. These\n\
   two fields should be set to the same value. Use the\n\
   ehdr:ei_version command to change that element.\n"


@ MSG_HELP_E_ENTRY	"   \
   Examine or modify the virtual address to which the system\n\
   first transfers control, thus starting the process. This\n\
   information is found in the e_entry field of the ELF header.\n\
   If the file has no associated entry point, this member\n\
   holds zero.\n\
   \n\
   If ehdr:e_entry is called without an argument, the value of\n\
   e_entry is shown. If called with the value argument, the\n\
   e_entry field is updated with the new value.\n\
   \n\
   Note: The entry point of an object is highly system\n\
   dependent. Changing it is likely to produce an object that\n\
   does not run properly.\n"


@ MSG_HELP_E_PHOFF	"   \
   Examine or modify the program header table's file offset.\n\
   This information is found in the e_phoff field of the\n\
   ELF header. If the file has no program header table, this\n\
   member holds zero.\n\
   \n\
   If ehdr:e_phoff is called without an argument, the value of\n\
   e_phoff is shown. If called with the value argument, the\n\
   e_phoff field is updated with the new value.\n\
   \n\
   Note: Changing the e_phoff field of an object does not change\n\
   the actual layout of the file or move the program header table.\n\
   As such, changing this value is likely to produce an unusable\n\
   ELF object.\n"


@ MSG_HELP_E_SHOFF	"   \
   Examine or modify the section header table's file offset.\n\
   This information is found in the e_shoff field of the\n\
   ELF header. If the file has no section header table, this\n\
   member holds zero.\n\
   \n\
   If ehdr:e_shoff is called without an argument, the value of\n\
   e_shoff is shown. If called with the value argument, the\n\
   e_shoff field is updated with the new value.\n\
   \n\
   Note: Changing the e_shoff field of an object does not change\n\
   the actual layout of the file or move the section header table.\n\
   As such, changing this value is likely to produce an unusable\n\
   ELF object.\n"


@ MSG_HELP_E_FLAGS	"   \
   Examine or modify the processor specific flags associated\n\
   with the file. This information is found in the e_flags\n\
   field of the ELF header.\n\
   \n\
   If ehdr:e_flags is called without an argument, the value of\n\
   e_flags is shown. If called with one or more flag_value\n\
   arguments, the the following steps are taken:\n\
   \n   \
   o\tAll the flag_value arguments are OR'd together.\n\
   \n   \
   o\tIf the -cmp option has been specified, the new value\n\
   \tis complemented.\n\
   \n   \
   o\tThe e_flags field of the ELF header is updated with\n\
   \tthe new value. If -and is specified, the new value is\n\
   \tAND'd against the existing value. If -or is specified,\n\
   \tthe new value is OR'd against the existing value. If\n\
   \tneither -and or -or are specified, the new value replaces\n\
   \tthe existing value.\n\
   \n\
   Note: Changing the e_flags field of an object does not change\n\
   the code contained in the file. Setting a flag that implies\n\
   an ability the existing code cannot support will produce an\n\
   unusable ELF object.\n"


@ MSG_HELP_E_EHSIZE	"   \
   Examine or modify the size of the ELF header. This information\n\
   is found in the e_ehsize field of the ELF header.\n\
   \n\
   If ehdr:e_ehsize is called without an argument, the value of\n\
   e_ehsize is shown. If called with the value argument, the\n\
   e_ehsize field is updated with the new value.\n\
   \n\
   Note: Changing the e_ehsize field of the ELF header does not\n\
   change the size of the actual ELF header data structure. Setting\n\
   it to a different value is likely to produce an unusable ELF object.\n"


@ MSG_HELP_E_PHENTSIZE	"   \
   Examine or modify the size of one entry in the file's program\n\
   header table. This information is found in the e_phentsize\n\
   field of the ELF header.\n\
   \n\
   If ehdr:e_phentsize is called without an argument, the value of\n\
   e_phentsize is shown. If called with the value argument, the\n\
   e_phentsize field is updated with the new value.\n\
   \n\
   Note: Changing the e_phentsize field of the ELF header does\n\
   not change the size of the actual program header array elements.\n\
   Setting it to a different value is likely to produce an unusable\n\
   ELF object.\n"


@ MSG_HELP_E_PHNUM	"   \
   Examine or modify the number of entries in the program header\n\
   table. This information is found in the e_phnum field of the\n\
   ELF header, or in the sh_link field of the first section header\n\
   in the case of extended program indexes.\n\
   \n\
   If the number of program headers is greater than or equal\n\
   to PN_XNUM (0xffff), e_phnum has the value PN_XNUM, and the\n\
   actual number of program header table entries is contained\n\
   in the sh_info field of the section header at index 0.\n\
   \n\
   If ehdr:e_phnum is called without an argument, the number\n\
   of program headers is shown. If called with the value argument,\n\
   the number is updated with the new value.\n\
   \n\
   Note: Changing e_phnum and/or the sh_link field of the first\n\
   section header  does not change the size of the actual program\n\
   header array in the file.\n"


@ MSG_HELP_E_SHENTSIZE	"   \
   Examine or modify the size of one entry in the file's section\n\
   header table. This information is found in the e_shentsize\n\
   field of the ELF header.\n\
   \n\
   If ehdr:e_shentsize is called without an argument, the value of\n\
   e_shentsize is shown. If called with the value argument, the\n\
   e_shentsize field is updated with the new value.\n\
   \n\
   Note: Changing the e_shentsize field of the ELF header does\n\
   not change the size of the actual section header array elements.\n\
   Setting it to a different value is likely to produce an unusable\n\
   ELF object.\n"


@ MSG_HELP_E_SHNUM	"   \
   Examine or modify the number of entries in the section header\n\
   table. This information is found in the e_shnum field of the\n\
   ELF header, or in the sh_size field of the first section header\n\
   in the case of extended section indexes.\n\
   \n\
   If the number of sections is greater than or equal to\n\
   SHN_LORESERVE (0xff00), e_shnum has the value zero, and\n\
   the actual number of section header table entries is\n\
   contained in the sh_size field of the section header\n\
   at index 0.\n\
   \n\
   If ehdr:e_shnum is called without an argument, the number of\n\
   sections is shown. If called with the value argument, the\n\
   number of sections is updated with the new value.\n\
   \n\
   Note: Changing e_shnum and/or the sh_size field of the first\n\
   section header does not change the size of the actual section\n\
   header array in the file.\n"


@ MSG_HELP_E_SHSTRNDX	"   \
   Examine or modify the section table index of the entry that is\n\
   associated with the section name string table. This information\n\
   is found in the e_shstrndx field of the ELF header, or in the\n\
   sh_link field of the first section header in the case of\n\
   extended section indexes. If the file has no section name\n\
   string table, this member holds the value SHN_UNDEF.\n\
   \n\
   If the section name string table section index is greater\n\
   than or equal to SHN_LORESERVE (0xff00), e_shstrndx has the\n\
   value SHN_XINDEX (0xffff) and   the actual index of the section\n\
   name string table section is contained in the sh_link field of\n\
   the section header at index 0.\n\
   \n\
   If ehdr:e_shstrndx is called without an argument, the index of\n\
   the section name string table is shown. If called with the value\n\
   argument, the ELF header is updated with the new value.\n\
   \n\
   Note: The e_shstrndx field of the ELF header must reference\n\
   a string table section. Otherwise, diagnostic tools will be\n\
   confused by the resulting object.\n"


@ MSG_HELP_EI_MAG0	"   \
   Examine or modify the first byte of the object's \"magic number\".\n\
   The magic number is the first 4 bytes of the object file, and is\n\
   used to identify it as being an ELF object. This information\n\
   is found in the e_ident[EI_MAG0] field of the ELF header.\n\
   \n\
   If ehdr:ei_mag0 is called without an argument, the value of\n\
   e_ident[EI_MAG0] is shown. If called with the value argument,\n\
   the e_ident[EI_MAG0] field is updated with the new value.\n\
   \n\
   Note: Changing the e_ident[EI_MAG0] field of the ELF header\n\
   to a value other than 0x7f will cause the system to fail to\n\
   identify it as an ELF object.\n"


@ MSG_HELP_EI_MAG1	"   \
   Examine or modify the second byte of the object's \"magic number\".\n\
   The magic number is the first 4 bytes of the object file, and is\n\
   used to identify it as being an ELF object. This information\n\
   is found in the e_ident[EI_MAG1] field of the ELF header.\n\
   \n\
   If ehdr:ei_mag1 is called without an argument, the value of\n\
   e_ident[EI_MAG1] is shown. If called with the value argument,\n\
   the e_ident[EI_MAG1] field is updated with the new value.\n\
   \n\
   Note: Changing the e_ident[EI_MAG1] field of the ELF header\n\
   to a value other than 0x45 ('E') will cause the system to\n\
   fail to identify it as an ELF object.\n"


@ MSG_HELP_EI_MAG2	"   \
   Examine or modify the third byte of the object's \"magic number\".\n\
   The magic number is the first 4 bytes of the object file, and is\n\
   used to identify it as being an ELF object. This information\n\
   is found in the e_ident[EI_MAG2] field of the ELF header.\n\
   \n\
   If ehdr:ei_mag2 is called without an argument, the value of\n\
   e_ident[EI_MAG2] is shown. If called with the value argument,\n\
   the e_ident[EI_MAG2] field is updated with the new value.\n\
   \n\
   Note: Changing the e_ident[EI_MAG2] field of the ELF header\n\
   to a value other than 0x4c ('L') will cause the system to\n\
   fail to identify it as an ELF object.\n"


@ MSG_HELP_EI_MAG3	"   \
   Examine or modify the fourth byte of the object's \"magic number\".\n\
   The magic number is the first 4 bytes of the object file, and is\n\
   used to identify it as being an ELF object. This information\n\
   is found in the e_ident[EI_MAG3] field of the ELF header.\n\
   \n\
   If ehdr:ei_mag3 is called without an argument, the value of\n\
   e_ident[EI_MAG3] is shown. If called with the value argument,\n\
   e_ident[EI_MAG3] field is updated with the new value.\n\
   \n\
   Note: Changing the e_ident[EI_MAG3] field of the ELF header\n\
   to a value other than 0x46 ('F') will cause the system to\n\
   fail to identify it as an ELF object.\n"


@ MSG_HELP_EI_CLASS	"   \
   Examine or modify the file's class (system word size). This\n\
   information is found in the e_ident[EI_CLASS] field of the\n\
   ELF header.\n\
   \n\
   If ehdr:ei_class is called without an argument, the value of\n\
   e_ident[EI_CLASS] is shown. If called with the value argument,\n\
   the e_ident[EI_CLASS] field is updated with the new value.\n\
   \n\
   Note: Changing the e_ident[EI_CLASS] field of the ELF header\n\
   does not alter the contents of the file, and is therefore\n\
   likely to render the file unusable.\n"

@ MSG_HELP_EI_DATA	"   \
   Examine or modify the file's data encoding (byte order). This\n\
   information is found in the e_ident[EI_DATA] field of the\n\
   ELF header.\n\
   \n\
   If ehdr:ei_data is called without an argument, the value of\n\
   e_ident[EI_DATA] is shown. If called with the value argument,\n\
   the e_ident[EI_DATA] field is updated with the new value.\n\
   \n\
   Note: Changing the e_ident[EI_DATA] field of the ELF header\n\
   does not alter the contents of the file or the byte order\n\
   of the data, and is therefore likely to render the file unusable.\n"


@ MSG_HELP_EI_VERSION	"   \
   Examine or modify the object file version. This information\n\
   is found in the e_ident[EI_VERSION] field of the ELF header.\n\
   \n\
   If ehdr:ei_version is called without an argument, the value\n\
   of e_ident[EI_VERSION]  is shown. If called with the value\n\
   argument, the e_ident[EI_VERSION] field is updated with the\n\
   new value.\n\
   \n\
   Note: The e_version element of the ELF header also contains\n\
   a version value. These two fields should be set to the same\n\
   value. Use the ehdr:e_version command to change that element.\n"


@ MSG_HELP_EI_OSABI	"   \
   Examine or modify the operating system / ABI identification for\n\
   the object. This information is kept in the e_ident[EI_OSABI]\n\
   field of the ELF header.\n\
   \n\
   If ehdr:ei_osabi is called without arguments, current value of\n\
   e_ident[EI_OSABI] is shown. If called with the value argument,\n\
   the e_ident[EI_OSABI] field is updated with the new value.\n\
   \n\
   Note: Changing the e_ident[EI_OSABI] field of the ELF header\n\
   does not alter the contents of the file, or cause the actual\n\
   ABI to be altered. Setting an incompatible ABI value is likely\n\
   to cause the object to become unusable.\n"


@ MSG_HELP_EI_ABIVERSION	"   \
   Examine or modify the ABI version for the object. This\n\
   information is kept in the e_ident[EI_ABIVERSION] field of\n\
   the ELF header.\n\
   \n\
   If ehdr:ei_abiversion is called without arguments, the current\n\
   value of e_ident[EI_ABIVERSION] is shown. If called with the\n\
   value argument, the e_ident[EI_ABIVERSION] field is updated with\n\
   the new value.\n\
   \n\
   Note: The meaning of the e_ident[EI_ABIVERSION] field of\n\
   the ELF header depends on the value of e_ident[EI_OSABI]\n\
   (See ehdr:ei_osabi).\n"


@ _END_



# Strings

@ MSG_STR_EMPTY		""
@ MSG_STR_NL		"\n"
@ MSG_STR_VALUE		"value"
@ MSG_STR_EIDENT_HDR	"e_ident:\n"
@ MSG_STR_INDEX		"index"
@ MSG_STR_SEC		"sec"
@ MSG_STR_TYPE		"type"
@ MSG_STR_VERSION	"version"
@ MSG_STR_OFFSET	"offset"
@ MSG_STR_FLAGVALUE	"flag_value"
@ MSG_STR_MINUS_SHNDX	"-shndx"
@ MSG_STR_MINUS_SHTYP	"-shtyp"
@ MSG_STR_SH_INFO	"sh_info"
@ MSG_STR_SH_LINK	"sh_link"
@ MSG_STR_SH_SIZE	"sh_size"


# Format strings
@ MSG_FMT_BKTSTR	"[%s]"
@ MSG_FMT_BKTINT	"[%d]"
@ MSG_FMT_STRNL		"%s\n"
@ MSG_FMT_DECNUMNL	"%d\n"
@ MSG_FMT_HEXNUM	"%#x"
@ MSG_FMT_HEXNUMNL	"%#x\n"
@ MSG_FMT_HEXNUM_QCHR	"%#x ('%c')"
@ MSG_FMT_EI_ELT	"    %-18s%s\n"




# The following strings represent reserved words, files, pathnames and symbols.
# Reference to this strings is via the MSG_ORIG() macro, and thus no message
# translation is required.


# Module name

@ MSG_MOD_NAME		"ehdr"


# Command names

@ MSG_CMD_DUMP		"dump"

@ MSG_CMD_E_IDENT	"e_ident"
@ MSG_CMD_E_TYPE	"e_type"
@ MSG_CMD_E_MACHINE	"e_machine"
@ MSG_CMD_E_VERSION	"e_version"
@ MSG_CMD_E_ENTRY	"e_entry"
@ MSG_CMD_E_PHOFF	"e_phoff"
@ MSG_CMD_E_SHOFF	"e_shoff"
@ MSG_CMD_E_FLAGS	"e_flags"
@ MSG_CMD_E_EHSIZE	"e_ehsize"
@ MSG_CMD_E_PHENTSIZE	"e_phentsize"
@ MSG_CMD_E_PHNUM	"e_phnum"
@ MSG_CMD_E_SHENTSIZE	"e_shentsize"
@ MSG_CMD_E_SHNUM	"e_shnum"
@ MSG_CMD_E_SHSTRNDX	"e_shstrndx"

@ MSG_CMD_EI_MAG0	"ei_mag0"
@ MSG_CMD_EI_MAG1	"ei_mag1"
@ MSG_CMD_EI_MAG2	"ei_mag2"
@ MSG_CMD_EI_MAG3	"ei_mag3"
@ MSG_CMD_EI_CLASS	"ei_class"
@ MSG_CMD_EI_DATA	"ei_data"
@ MSG_CMD_EI_VERSION	"ei_version"
@ MSG_CMD_EI_OSABI	"ei_osabi"
@ MSG_CMD_EI_ABIVERSION	"ei_abiversion"