Subversion Repositories Kolibri OS

Rev

Rev 5197 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5197 Rev 6324
Line 1... Line 1...
1
/* BFD library support routines for architectures.
1
/* BFD library support routines for architectures.
2
   Copyright 1990-2013 Free Software Foundation, Inc.
2
   Copyright (C) 1990-2015 Free Software Foundation, Inc.
3
   Hacked by John Gilmore and Steve Chamberlain of Cygnus Support.
3
   Hacked by John Gilmore and Steve Chamberlain of Cygnus Support.
Line 4... Line 4...
4
 
4
 
Line 5... Line 5...
5
   This file is part of BFD, the Binary File Descriptor library.
5
   This file is part of BFD, the Binary File Descriptor library.
Line 119... Line 119...
119
.#define bfd_mach_i960_xa        5
119
.#define bfd_mach_i960_xa        5
120
.#define bfd_mach_i960_ca        6
120
.#define bfd_mach_i960_ca        6
121
.#define bfd_mach_i960_jx	 7
121
.#define bfd_mach_i960_jx	 7
122
.#define bfd_mach_i960_hx        8
122
.#define bfd_mach_i960_hx        8
123
.
123
.
124
.  bfd_arch_or32,      {* OpenRISC 32 *}
124
.  bfd_arch_or1k,      {* OpenRISC 1000 *}
-
 
125
.#define bfd_mach_or1k           1
-
 
126
.#define bfd_mach_or1knd         2
125
.
127
.
126
.  bfd_arch_sparc,     {* SPARC *}
128
.  bfd_arch_sparc,     {* SPARC *}
127
.#define bfd_mach_sparc			1
129
.#define bfd_mach_sparc			1
128
.{* The difference between v8plus and v9 is that v9 is a true 64 bit env.  *}
130
.{* The difference between v8plus and v9 is that v9 is a true 64 bit env.  *}
129
.#define bfd_mach_sparc_sparclet	2
131
.#define bfd_mach_sparc_sparclet	2
Line 175... Line 177...
175
.#define bfd_mach_mips_loongson_3a      3003
177
.#define bfd_mach_mips_loongson_3a      3003
176
.#define bfd_mach_mips_sb1              12310201 {* octal 'SB', 01 *}
178
.#define bfd_mach_mips_sb1              12310201 {* octal 'SB', 01 *}
177
.#define bfd_mach_mips_octeon		6501
179
.#define bfd_mach_mips_octeon		6501
178
.#define bfd_mach_mips_octeonp		6601
180
.#define bfd_mach_mips_octeonp		6601
179
.#define bfd_mach_mips_octeon2		6502
181
.#define bfd_mach_mips_octeon2		6502
-
 
182
.#define bfd_mach_mips_octeon3          6503
180
.#define bfd_mach_mips_xlr              887682   {* decimal 'XLR'  *}
183
.#define bfd_mach_mips_xlr              887682   {* decimal 'XLR'  *}
181
.#define bfd_mach_mipsisa32             32
184
.#define bfd_mach_mipsisa32             32
182
.#define bfd_mach_mipsisa32r2           33
185
.#define bfd_mach_mipsisa32r2           33
-
 
186
.#define bfd_mach_mipsisa32r3           34
-
 
187
.#define bfd_mach_mipsisa32r5           36
-
 
188
.#define bfd_mach_mipsisa32r6           37
183
.#define bfd_mach_mipsisa64             64
189
.#define bfd_mach_mipsisa64             64
184
.#define bfd_mach_mipsisa64r2           65
190
.#define bfd_mach_mipsisa64r2           65
-
 
191
.#define bfd_mach_mipsisa64r3           66
-
 
192
.#define bfd_mach_mipsisa64r5           68
-
 
193
.#define bfd_mach_mipsisa64r6           69
185
.#define bfd_mach_mips_micromips        96
194
.#define bfd_mach_mips_micromips        96
186
.  bfd_arch_i386,      {* Intel 386 *}
195
.  bfd_arch_i386,      {* Intel 386 *}
187
.#define bfd_mach_i386_intel_syntax	(1 << 0)
196
.#define bfd_mach_i386_intel_syntax	(1 << 0)
188
.#define bfd_mach_i386_i8086		(1 << 1)
197
.#define bfd_mach_i386_i8086		(1 << 1)
189
.#define bfd_mach_i386_i386		(1 << 2)
198
.#define bfd_mach_i386_i386		(1 << 2)
Line 200... Line 209...
200
.#define bfd_mach_k1om_intel_syntax	(bfd_mach_k1om | bfd_mach_i386_intel_syntax)
209
.#define bfd_mach_k1om_intel_syntax	(bfd_mach_k1om | bfd_mach_i386_intel_syntax)
201
.#define bfd_mach_i386_nacl		(1 << 7)
210
.#define bfd_mach_i386_nacl		(1 << 7)
202
.#define bfd_mach_i386_i386_nacl	(bfd_mach_i386_i386 | bfd_mach_i386_nacl)
211
.#define bfd_mach_i386_i386_nacl	(bfd_mach_i386_i386 | bfd_mach_i386_nacl)
203
.#define bfd_mach_x86_64_nacl		(bfd_mach_x86_64 | bfd_mach_i386_nacl)
212
.#define bfd_mach_x86_64_nacl		(bfd_mach_x86_64 | bfd_mach_i386_nacl)
204
.#define bfd_mach_x64_32_nacl		(bfd_mach_x64_32 | bfd_mach_i386_nacl)
213
.#define bfd_mach_x64_32_nacl		(bfd_mach_x64_32 | bfd_mach_i386_nacl)
-
 
214
.  bfd_arch_iamcu,   {* Intel MCU *}
-
 
215
.#define bfd_mach_iamcu			(1 << 8)
-
 
216
.#define bfd_mach_i386_iamcu		(bfd_mach_i386_i386 | bfd_mach_iamcu)
-
 
217
.#define bfd_mach_i386_iamcu_intel_syntax (bfd_mach_i386_iamcu | bfd_mach_i386_intel_syntax)
205
.  bfd_arch_we32k,     {* AT&T WE32xxx *}
218
.  bfd_arch_we32k,     {* AT&T WE32xxx *}
206
.  bfd_arch_tahoe,     {* CCI/Harris Tahoe *}
219
.  bfd_arch_tahoe,     {* CCI/Harris Tahoe *}
207
.  bfd_arch_i860,      {* Intel 860 *}
220
.  bfd_arch_i860,      {* Intel 860 *}
208
.  bfd_arch_i370,      {* IBM 360/370 Mainframes *}
221
.  bfd_arch_i370,      {* IBM 360/370 Mainframes *}
209
.  bfd_arch_romp,      {* IBM ROMP PC/RT *}
222
.  bfd_arch_romp,      {* IBM ROMP PC/RT *}
Line 314... Line 327...
314
.#define bfd_mach_arm_5TE	9
327
.#define bfd_mach_arm_5TE	9
315
.#define bfd_mach_arm_XScale	10
328
.#define bfd_mach_arm_XScale	10
316
.#define bfd_mach_arm_ep9312	11
329
.#define bfd_mach_arm_ep9312	11
317
.#define bfd_mach_arm_iWMMXt	12
330
.#define bfd_mach_arm_iWMMXt	12
318
.#define bfd_mach_arm_iWMMXt2	13
331
.#define bfd_mach_arm_iWMMXt2	13
-
 
332
.  bfd_arch_nds32,     {* Andes NDS32 *}
-
 
333
.#define bfd_mach_n1            1
-
 
334
.#define bfd_mach_n1h           2
-
 
335
.#define bfd_mach_n1h_v2        3
-
 
336
.#define bfd_mach_n1h_v3        4
-
 
337
.#define bfd_mach_n1h_v3m       5
319
.  bfd_arch_ns32k,     {* National Semiconductors ns32000 *}
338
.  bfd_arch_ns32k,     {* National Semiconductors ns32000 *}
320
.  bfd_arch_w65,       {* WDC 65816 *}
339
.  bfd_arch_w65,       {* WDC 65816 *}
321
.  bfd_arch_tic30,     {* Texas Instruments TMS320C30 *}
340
.  bfd_arch_tic30,     {* Texas Instruments TMS320C30 *}
322
.  bfd_arch_tic4x,     {* Texas Instruments TMS320C3X/4X *}
341
.  bfd_arch_tic4x,     {* Texas Instruments TMS320C3X/4X *}
323
.#define bfd_mach_tic3x         30
342
.#define bfd_mach_tic3x         30
Line 332... Line 351...
332
.#define bfd_mach_v850e1        '1'
351
.#define bfd_mach_v850e1        '1'
333
.#define bfd_mach_v850e2        0x4532
352
.#define bfd_mach_v850e2        0x4532
334
.#define bfd_mach_v850e2v3      0x45325633
353
.#define bfd_mach_v850e2v3      0x45325633
335
.#define bfd_mach_v850e3v5      0x45335635 {* ('E'|'3'|'V'|'5') *}
354
.#define bfd_mach_v850e3v5      0x45335635 {* ('E'|'3'|'V'|'5') *}
336
.  bfd_arch_arc,       {* ARC Cores *}
355
.  bfd_arch_arc,       {* ARC Cores *}
337
.#define bfd_mach_arc_5         5
356
.#define bfd_mach_arc_a4        0
338
.#define bfd_mach_arc_6         6
357
.#define bfd_mach_arc_a5        1
339
.#define bfd_mach_arc_7         7
358
.#define bfd_mach_arc_arc600    2
-
 
359
.#define bfd_mach_arc_arc601    4
-
 
360
.#define bfd_mach_arc_arc700    3
340
.#define bfd_mach_arc_8         8
361
.#define bfd_mach_arc_arcv2     5
341
. bfd_arch_m32c,     {* Renesas M16C/M32C.  *}
362
. bfd_arch_m32c,     {* Renesas M16C/M32C.  *}
342
.#define bfd_mach_m16c        0x75
363
.#define bfd_mach_m16c        0x75
343
.#define bfd_mach_m32c        0x78
364
.#define bfd_mach_m32c        0x78
344
.  bfd_arch_m32r,      {* Renesas M32R (formerly Mitsubishi M32R/D) *}
365
.  bfd_arch_m32r,      {* Renesas M32R (formerly Mitsubishi M32R/D) *}
345
.#define bfd_mach_m32r		1 {* For backwards compatibility.  *}
366
.#define bfd_mach_m32r		1 {* For backwards compatibility.  *}
Line 361... Line 382...
361
.#define bfd_mach_frvtomcat	499	{* fr500 prototype *}
382
.#define bfd_mach_frvtomcat	499	{* fr500 prototype *}
362
.#define bfd_mach_fr500		500
383
.#define bfd_mach_fr500		500
363
.#define bfd_mach_fr550		550
384
.#define bfd_mach_fr550		550
364
.  bfd_arch_moxie,       {* The moxie processor *}
385
.  bfd_arch_moxie,       {* The moxie processor *}
365
.#define bfd_mach_moxie		1
386
.#define bfd_mach_moxie		1
-
 
387
.  bfd_arch_ft32,       {* The ft32 processor *}
-
 
388
.#define bfd_mach_ft32		1
366
.  bfd_arch_mcore,
389
.  bfd_arch_mcore,
367
.  bfd_arch_mep,
390
.  bfd_arch_mep,
368
.#define bfd_mach_mep		1
391
.#define bfd_mach_mep		1
369
.#define bfd_mach_mep_h1	0x6831
392
.#define bfd_mach_mep_h1	0x6831
370
.#define bfd_mach_mep_c5	0x6335
393
.#define bfd_mach_mep_c5	0x6335
Line 396... Line 419...
396
.#define bfd_mach_avr35		35
419
.#define bfd_mach_avr35		35
397
.#define bfd_mach_avr4		4
420
.#define bfd_mach_avr4		4
398
.#define bfd_mach_avr5		5
421
.#define bfd_mach_avr5		5
399
.#define bfd_mach_avr51		51
422
.#define bfd_mach_avr51		51
400
.#define bfd_mach_avr6		6
423
.#define bfd_mach_avr6		6
-
 
424
.#define bfd_mach_avrtiny   100
401
.#define bfd_mach_avrxmega1 101
425
.#define bfd_mach_avrxmega1 101
402
.#define bfd_mach_avrxmega2 102
426
.#define bfd_mach_avrxmega2 102
403
.#define bfd_mach_avrxmega3 103
427
.#define bfd_mach_avrxmega3 103
404
.#define bfd_mach_avrxmega4 104
428
.#define bfd_mach_avrxmega4 104
405
.#define bfd_mach_avrxmega5 105
429
.#define bfd_mach_avrxmega5 105
Line 425... Line 449...
425
.#define bfd_mach_s390_31       31
449
.#define bfd_mach_s390_31       31
426
.#define bfd_mach_s390_64       64
450
.#define bfd_mach_s390_64       64
427
.  bfd_arch_score,     {* Sunplus score *}
451
.  bfd_arch_score,     {* Sunplus score *}
428
.#define bfd_mach_score3         3
452
.#define bfd_mach_score3         3
429
.#define bfd_mach_score7         7
453
.#define bfd_mach_score7         7
430
.  bfd_arch_openrisc,  {* OpenRISC *}
-
 
431
.  bfd_arch_mmix,      {* Donald Knuth's educational processor.  *}
454
.  bfd_arch_mmix,      {* Donald Knuth's educational processor.  *}
432
.  bfd_arch_xstormy16,
455
.  bfd_arch_xstormy16,
433
.#define bfd_mach_xstormy16	1
456
.#define bfd_mach_xstormy16	1
434
.  bfd_arch_msp430,    {* Texas Instruments MSP430 architecture.  *}
457
.  bfd_arch_msp430,    {* Texas Instruments MSP430 architecture.  *}
435
.#define bfd_mach_msp11          11
458
.#define bfd_mach_msp11          11
Line 478... Line 501...
478
.#define bfd_mach_tilegx    1
501
.#define bfd_mach_tilegx    1
479
.#define bfd_mach_tilegx32  2
502
.#define bfd_mach_tilegx32  2
480
.  bfd_arch_aarch64,   {* AArch64  *}
503
.  bfd_arch_aarch64,   {* AArch64  *}
481
.#define bfd_mach_aarch64 0
504
.#define bfd_mach_aarch64 0
482
.#define bfd_mach_aarch64_ilp32	32
505
.#define bfd_mach_aarch64_ilp32	32
483
.  bfd_arch_nios2,
506
.  bfd_arch_nios2,	{* Nios II *}
484
.#define bfd_mach_nios2	0
507
.#define bfd_mach_nios2	0
-
 
508
.#define bfd_mach_nios2r1	1
-
 
509
.#define bfd_mach_nios2r2	2
-
 
510
.  bfd_arch_visium,	{* Visium *}
-
 
511
.#define bfd_mach_visium	1
485
.  bfd_arch_last
512
.  bfd_arch_last
486
.  };
513
.  };
487
*/
514
*/
Line 488... Line 515...
488
 
515
 
Line 545... Line 572...
545
extern const bfd_arch_info_type bfd_h8300_arch;
572
extern const bfd_arch_info_type bfd_h8300_arch;
546
extern const bfd_arch_info_type bfd_h8500_arch;
573
extern const bfd_arch_info_type bfd_h8500_arch;
547
extern const bfd_arch_info_type bfd_hppa_arch;
574
extern const bfd_arch_info_type bfd_hppa_arch;
548
extern const bfd_arch_info_type bfd_i370_arch;
575
extern const bfd_arch_info_type bfd_i370_arch;
549
extern const bfd_arch_info_type bfd_i386_arch;
576
extern const bfd_arch_info_type bfd_i386_arch;
-
 
577
extern const bfd_arch_info_type bfd_iamcu_arch;
550
extern const bfd_arch_info_type bfd_i860_arch;
578
extern const bfd_arch_info_type bfd_i860_arch;
551
extern const bfd_arch_info_type bfd_i960_arch;
579
extern const bfd_arch_info_type bfd_i960_arch;
552
extern const bfd_arch_info_type bfd_ia64_arch;
580
extern const bfd_arch_info_type bfd_ia64_arch;
553
extern const bfd_arch_info_type bfd_ip2k_arch;
581
extern const bfd_arch_info_type bfd_ip2k_arch;
554
extern const bfd_arch_info_type bfd_iq2000_arch;
582
extern const bfd_arch_info_type bfd_iq2000_arch;
Line 570... Line 598...
570
extern const bfd_arch_info_type bfd_microblaze_arch;
598
extern const bfd_arch_info_type bfd_microblaze_arch;
571
extern const bfd_arch_info_type bfd_mmix_arch;
599
extern const bfd_arch_info_type bfd_mmix_arch;
572
extern const bfd_arch_info_type bfd_mn10200_arch;
600
extern const bfd_arch_info_type bfd_mn10200_arch;
573
extern const bfd_arch_info_type bfd_mn10300_arch;
601
extern const bfd_arch_info_type bfd_mn10300_arch;
574
extern const bfd_arch_info_type bfd_moxie_arch;
602
extern const bfd_arch_info_type bfd_moxie_arch;
-
 
603
extern const bfd_arch_info_type bfd_ft32_arch;
575
extern const bfd_arch_info_type bfd_msp430_arch;
604
extern const bfd_arch_info_type bfd_msp430_arch;
576
extern const bfd_arch_info_type bfd_mt_arch;
605
extern const bfd_arch_info_type bfd_mt_arch;
-
 
606
extern const bfd_arch_info_type bfd_nds32_arch;
577
extern const bfd_arch_info_type bfd_nios2_arch;
607
extern const bfd_arch_info_type bfd_nios2_arch;
578
extern const bfd_arch_info_type bfd_ns32k_arch;
608
extern const bfd_arch_info_type bfd_ns32k_arch;
579
extern const bfd_arch_info_type bfd_openrisc_arch;
-
 
580
extern const bfd_arch_info_type bfd_or32_arch;
609
extern const bfd_arch_info_type bfd_or1k_arch;
581
extern const bfd_arch_info_type bfd_pdp11_arch;
610
extern const bfd_arch_info_type bfd_pdp11_arch;
582
extern const bfd_arch_info_type bfd_pj_arch;
611
extern const bfd_arch_info_type bfd_pj_arch;
583
extern const bfd_arch_info_type bfd_plugin_arch;
612
extern const bfd_arch_info_type bfd_plugin_arch;
584
extern const bfd_arch_info_type bfd_powerpc_archs[];
613
extern const bfd_arch_info_type bfd_powerpc_archs[];
585
#define bfd_powerpc_arch bfd_powerpc_archs[0]
614
#define bfd_powerpc_arch bfd_powerpc_archs[0]
Line 599... Line 628...
599
extern const bfd_arch_info_type bfd_tilegx_arch;
628
extern const bfd_arch_info_type bfd_tilegx_arch;
600
extern const bfd_arch_info_type bfd_tilepro_arch;
629
extern const bfd_arch_info_type bfd_tilepro_arch;
601
extern const bfd_arch_info_type bfd_v850_arch;
630
extern const bfd_arch_info_type bfd_v850_arch;
602
extern const bfd_arch_info_type bfd_v850_rh850_arch;
631
extern const bfd_arch_info_type bfd_v850_rh850_arch;
603
extern const bfd_arch_info_type bfd_vax_arch;
632
extern const bfd_arch_info_type bfd_vax_arch;
-
 
633
extern const bfd_arch_info_type bfd_visium_arch;
604
extern const bfd_arch_info_type bfd_w65_arch;
634
extern const bfd_arch_info_type bfd_w65_arch;
605
extern const bfd_arch_info_type bfd_we32k_arch;
635
extern const bfd_arch_info_type bfd_we32k_arch;
606
extern const bfd_arch_info_type bfd_xstormy16_arch;
636
extern const bfd_arch_info_type bfd_xstormy16_arch;
607
extern const bfd_arch_info_type bfd_xtensa_arch;
637
extern const bfd_arch_info_type bfd_xtensa_arch;
608
extern const bfd_arch_info_type bfd_xc16x_arch;
638
extern const bfd_arch_info_type bfd_xc16x_arch;
Line 634... Line 664...
634
    &bfd_h8300_arch,
664
    &bfd_h8300_arch,
635
    &bfd_h8500_arch,
665
    &bfd_h8500_arch,
636
    &bfd_hppa_arch,
666
    &bfd_hppa_arch,
637
    &bfd_i370_arch,
667
    &bfd_i370_arch,
638
    &bfd_i386_arch,
668
    &bfd_i386_arch,
-
 
669
    &bfd_iamcu_arch,
639
    &bfd_i860_arch,
670
    &bfd_i860_arch,
640
    &bfd_i960_arch,
671
    &bfd_i960_arch,
641
    &bfd_ia64_arch,
672
    &bfd_ia64_arch,
642
    &bfd_ip2k_arch,
673
    &bfd_ip2k_arch,
643
    &bfd_iq2000_arch,
674
    &bfd_iq2000_arch,
Line 659... Line 690...
659
    &bfd_mips_arch,
690
    &bfd_mips_arch,
660
    &bfd_mmix_arch,
691
    &bfd_mmix_arch,
661
    &bfd_mn10200_arch,
692
    &bfd_mn10200_arch,
662
    &bfd_mn10300_arch,
693
    &bfd_mn10300_arch,
663
    &bfd_moxie_arch,
694
    &bfd_moxie_arch,
-
 
695
    &bfd_ft32_arch,
664
    &bfd_msp430_arch,
696
    &bfd_msp430_arch,
665
    &bfd_mt_arch,
697
    &bfd_mt_arch,
-
 
698
    &bfd_nds32_arch,
666
    &bfd_nios2_arch,
699
    &bfd_nios2_arch,
667
    &bfd_ns32k_arch,
700
    &bfd_ns32k_arch,
668
    &bfd_openrisc_arch,
-
 
669
    &bfd_or32_arch,
701
    &bfd_or1k_arch,
670
    &bfd_pdp11_arch,
702
    &bfd_pdp11_arch,
671
    &bfd_powerpc_arch,
703
    &bfd_powerpc_arch,
672
    &bfd_rs6000_arch,
704
    &bfd_rs6000_arch,
673
    &bfd_rl78_arch,
705
    &bfd_rl78_arch,
674
    &bfd_rx_arch,
706
    &bfd_rx_arch,
Line 685... Line 717...
685
    &bfd_tilegx_arch,
717
    &bfd_tilegx_arch,
686
    &bfd_tilepro_arch,
718
    &bfd_tilepro_arch,
687
    &bfd_v850_arch,
719
    &bfd_v850_arch,
688
    &bfd_v850_rh850_arch,
720
    &bfd_v850_rh850_arch,
689
    &bfd_vax_arch,
721
    &bfd_vax_arch,
-
 
722
    &bfd_visium_arch,
690
    &bfd_w65_arch,
723
    &bfd_w65_arch,
691
    &bfd_we32k_arch,
724
    &bfd_we32k_arch,
692
    &bfd_xstormy16_arch,
725
    &bfd_xstormy16_arch,
693
    &bfd_xtensa_arch,
726
    &bfd_xtensa_arch,
694
    &bfd_xc16x_arch,
727
    &bfd_xc16x_arch,