diff options
author | Nick Clifton <nickc@redhat.com> | 2006-08-02 16:25:14 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-08-02 16:25:14 +0000 |
commit | 9d7cbccda0d0b223261e33efb609a7a43401ec5e (patch) | |
tree | 89c15bea23a6a33149b4057f5f7add8d6910cdb6 /gas/config/tc-i386.c | |
parent | c973bc5cd4b6024ab430a41cae5b75c2c54fd55e (diff) | |
download | gdb-9d7cbccda0d0b223261e33efb609a7a43401ec5e.zip gdb-9d7cbccda0d0b223261e33efb609a7a43401ec5e.tar.gz gdb-9d7cbccda0d0b223261e33efb609a7a43401ec5e.tar.bz2 |
PR binutils/2983
* bfd/elf64-x86-64.c: Add FreeBSD support.
(elf64_x86_64_fbsd_post_process_headers): New function.
* bfd/targets.c (_bfd_target_vector): Add bfd_elf64_x86_64_freebsd_vec.
* bfd/config.bfd (x64_64-*-freebsd*): Add bfd_elf64_x86_64_freebsd_vec to the targ_selvecs.
* bfd/configure.in: Add entry for bfd_elf64_x86_64_freebsd_vec.
* bfd/configure: Regenerate.
* gas/config/tc-i386.c (md_parse_option): Treat any target starting with elf64_x86_64 as a viable target for the -64 switch.
(i386_target_format): For 64-bit ELF flavoured output use ELF_TARGET_FORMAT64.
* gas/config/tc-i386.h (ELF_TARGET_FORMAT64): Define.
* ld/emulparams/elf_x86_64_fbsd.sh (OUTPUT_FORMAT): Define as elf64-x86-64-freebsd.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 1060510..f85aed3 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5819,7 +5819,7 @@ md_parse_option (int c, char *arg) list = bfd_target_list (); for (l = list; *l != NULL; l++) - if (strcmp (*l, "elf64-x86-64") == 0) + if (strncmp (*l, "elf64-x86-64", 12) == 0) { default_arch = "x86_64"; break; @@ -5975,7 +5975,7 @@ i386_target_format () object_64bit = 1; use_rela_relocations = 1; } - return flag_code == CODE_64BIT ? "elf64-x86-64" : ELF_TARGET_FORMAT; + return flag_code == CODE_64BIT ? ELF_TARGET_FORMAT64 : ELF_TARGET_FORMAT; } #endif default: |