mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
Added support to LD to select the architecture of an ARM COFF output file
based on the architecture of the first input file.
This commit is contained in:
@ -1970,7 +1970,8 @@ coff_set_flags (abfd, magicp, flagsp)
|
||||
#ifdef ARMMAGIC
|
||||
case bfd_arch_arm:
|
||||
* magicp = ARMMAGIC;
|
||||
if (coff_data (abfd)->flags & F_APCS_26)
|
||||
* flagsp = 0;
|
||||
if (APCS_SET (abfd) && APCS_FLAG (abfd))
|
||||
* flagsp = F_APCS26;
|
||||
switch (bfd_get_mach (abfd))
|
||||
{
|
||||
|
Reference in New Issue
Block a user