1999-05-03 07:29:11 +00:00
|
|
|
|
$!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$! This file configures the bfd library for use with openVMS.
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$!
|
|
|
|
|
$! We do not use the configure script, since we do not have /bin/sh
|
|
|
|
|
$! to execute it.
|
|
|
|
|
$!
|
|
|
|
|
$! Written by Klaus K"ampf (kkaempf@rmi.de)
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$! Rewritten by Tristan Gingold (gingold@adacore.com)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$!
|
2016-01-01 11:25:12 +00:00
|
|
|
|
$! Copyright (C) 2012-2016 Free Software Foundation, Inc.
|
2012-12-17 16:56:12 +00:00
|
|
|
|
$!
|
|
|
|
|
$! This file is free software; you can redistribute it and/or modify
|
|
|
|
|
$! it under the terms of the GNU General Public License as published by
|
|
|
|
|
$! the Free Software Foundation; either version 3 of the License, or
|
|
|
|
|
$! (at your option) any later version.
|
2015-08-12 11:32:43 +00:00
|
|
|
|
$!
|
2012-12-17 16:56:12 +00:00
|
|
|
|
$! This program is distributed in the hope that it will be useful,
|
|
|
|
|
$! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
$! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
$! GNU General Public License for more details.
|
2015-08-12 11:32:43 +00:00
|
|
|
|
$!
|
2012-12-17 16:56:12 +00:00
|
|
|
|
$! You should have received a copy of the GNU General Public License
|
|
|
|
|
$! along with this program; see the file COPYING3. If not see
|
|
|
|
|
$! <http://www.gnu.org/licenses/>.
|
|
|
|
|
$!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$ arch=F$GETSYI("ARCH_NAME")
|
|
|
|
|
$ arch=F$EDIT(arch,"LOWERCASE")
|
|
|
|
|
$if arch .eqs. "alpha" then target = "alpha"
|
|
|
|
|
$if arch .eqs. "ia64" then target = "ia64"
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$if (arch .eqs. "alpha") .or. (arch .eqs. "ia64")
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$then
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$!
|
|
|
|
|
$ write sys$output "Configuring BFD for ''target' target"
|
|
|
|
|
$!
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$!
|
|
|
|
|
$! copy bfd-in2.h to bfd.h, replacing @ macros
|
|
|
|
|
$!
|
|
|
|
|
$ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
|
|
|
|
|
[]bfd-in2.h /output=[]bfd.h
|
|
|
|
|
$DECK
|
|
|
|
|
!
|
|
|
|
|
! Copy file, changing lines with macros (@@)
|
|
|
|
|
!
|
|
|
|
|
!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
set (success,off);
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
|
|
file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
|
|
|
|
|
rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
|
|
|
|
|
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@wordsize@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('64');
|
|
|
|
|
ENDIF;
|
2008-11-14 09:57:35 +00:00
|
|
|
|
match_pos := SEARCH_QUIETLY('@bfd_default_target_size@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('64');
|
|
|
|
|
ENDIF;
|
1999-05-03 07:29:11 +00:00
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_64BIT_LONG@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('0');
|
|
|
|
|
ENDIF;
|
2008-11-14 09:57:35 +00:00
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_LONG_LONG@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
2011-03-31 14:15:31 +00:00
|
|
|
|
COPY_TEXT('1');
|
2008-11-14 09:57:35 +00:00
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_64BIT_LONG_LONG@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
2011-03-31 14:15:31 +00:00
|
|
|
|
COPY_TEXT('1');
|
2008-11-14 09:57:35 +00:00
|
|
|
|
ENDIF;
|
1999-05-03 07:29:11 +00:00
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_64_BIT_DEFINED@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
2013-07-09 07:03:53 +00:00
|
|
|
|
COPY_TEXT('1');
|
1999-05-03 07:29:11 +00:00
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_64_BIT@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
2013-07-09 07:03:53 +00:00
|
|
|
|
COPY_TEXT('__int64');
|
1999-05-03 07:29:11 +00:00
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_U_64_BIT@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
2013-07-09 07:03:53 +00:00
|
|
|
|
COPY_TEXT('unsigned __int64');
|
1999-05-03 07:29:11 +00:00
|
|
|
|
ENDIF;
|
2008-11-14 09:57:35 +00:00
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOSTPTR_T@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
2013-07-09 07:03:53 +00:00
|
|
|
|
COPY_TEXT('unsigned __int64');
|
2008-11-14 09:57:35 +00:00
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@bfd_file_ptr@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('bfd_signed_vma');
|
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('unsigned @bfd_file_ptr@ ufile_ptr', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('bfd_vma ufile_ptr');
|
|
|
|
|
ENDIF;
|
2009-09-01 13:10:45 +00:00
|
|
|
|
match_pos := SEARCH_QUIETLY('@supports_plugins@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('0');
|
|
|
|
|
ENDIF;
|
1999-05-03 07:29:11 +00:00
|
|
|
|
WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
|
|
|
|
|
QUIT
|
|
|
|
|
$ EOD
|
|
|
|
|
$
|
|
|
|
|
$else
|
|
|
|
|
$
|
|
|
|
|
$ write sys$output "Configuring for Vax target"
|
|
|
|
|
$ target = "vax"
|
|
|
|
|
$!
|
|
|
|
|
$! copy bfd-in2.h to bfd.h, replacing @ macros
|
|
|
|
|
$!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$ write sys$output "Generated `bfd.h' from `bfd-in2.h'."
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
|
|
|
|
|
[]bfd-in2.h /output=[]bfd.h
|
|
|
|
|
$DECK
|
|
|
|
|
!
|
|
|
|
|
! Copy file, changing lines with macros (@@)
|
|
|
|
|
!
|
|
|
|
|
!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
set (success,off);
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
|
|
file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
|
|
|
|
|
rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
|
|
|
|
|
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@wordsize@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('32');
|
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_64BIT_LONG@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('0');
|
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_64_BIT_DEFINED@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('__DECC');
|
|
|
|
|
SPLIT_LINE;
|
|
|
|
|
COPY_TEXT('#include <ints.h>');
|
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_64_BIT@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('int64');
|
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@BFD_HOST_U_64_BIT@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('uint64');
|
|
|
|
|
ENDIF;
|
|
|
|
|
WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
|
|
|
|
|
QUIT
|
|
|
|
|
$ EOD
|
|
|
|
|
$endif
|
|
|
|
|
$
|
|
|
|
|
$!
|
2008-11-14 09:57:35 +00:00
|
|
|
|
$! create bfdver.h
|
|
|
|
|
$!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$ write sys$output "Generate `bfdver.h' from 'version.h' and `configure.in'."
|
2008-11-14 09:57:35 +00:00
|
|
|
|
$ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
|
|
|
|
|
[]version.h /output=[]bfdver.h
|
|
|
|
|
$DECK
|
|
|
|
|
!
|
|
|
|
|
! Copy file, changing lines with macros (@@)
|
|
|
|
|
!
|
|
|
|
|
!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
set (success,off);
|
2008-11-14 09:57:35 +00:00
|
|
|
|
vfile := CREATE_BUFFER("vfile", "configure.in");
|
|
|
|
|
rang := CREATE_RANGE(BEGINNING_OF(vfile), END_OF(vfile));
|
2013-07-09 07:03:53 +00:00
|
|
|
|
match_pos := SEARCH_QUIETLY('AC_INIT([bfd], [', FORWARD, EXACT, rang);
|
2008-11-14 09:57:35 +00:00
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
2013-07-09 07:03:53 +00:00
|
|
|
|
vers := CURRENT_LINE-"])";
|
2008-11-14 09:57:35 +00:00
|
|
|
|
ELSE;
|
|
|
|
|
vers := "unknown";
|
|
|
|
|
ENDIF;
|
|
|
|
|
versnum := vers - "." - ".";
|
|
|
|
|
|
|
|
|
|
file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
|
|
|
|
|
rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
|
|
|
|
|
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@bfd_version@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT(versnum);
|
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@bfd_version_string@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('"');
|
|
|
|
|
COPY_TEXT(vers);
|
|
|
|
|
COPY_TEXT('"');
|
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@bfd_version_package@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('"(GNU Binutils) "');
|
|
|
|
|
ENDIF;
|
|
|
|
|
match_pos := SEARCH_QUIETLY('@report_bugs_to@', FORWARD, EXACT, rang);
|
|
|
|
|
IF match_pos <> 0 THEN;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('"<http://www.sourceware.org/bugzilla/>"');
|
|
|
|
|
ENDIF;
|
|
|
|
|
WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
|
|
|
|
|
QUIT
|
|
|
|
|
$ EOD
|
|
|
|
|
$!
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$!
|
2011-03-31 11:08:41 +00:00
|
|
|
|
$! create bfd_stdint.h
|
|
|
|
|
$!
|
|
|
|
|
$ write sys$output "Generate `bfd_stdint.h'"
|
|
|
|
|
$ create []bfd_stdint.h
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
$!
|
|
|
|
|
$!
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$! create targmatch.h
|
|
|
|
|
$!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$ write sys$output "Generate `targmatch.h'"
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$ open/write tfile []targmatch.h
|
|
|
|
|
$ write tfile "{ """ + target + "-*-*vms*""" + ","
|
|
|
|
|
$ write tfile "#if defined (SELECT_VECS)"
|
|
|
|
|
$ write tfile "SELECT_VECS"
|
|
|
|
|
$ write tfile "#else"
|
|
|
|
|
$ write tfile "UNSUPPORTED_TARGET"
|
|
|
|
|
$ write tfile "#endif"
|
|
|
|
|
$ write tfile "},"
|
|
|
|
|
$ close tfile
|
|
|
|
|
$!
|
|
|
|
|
$!
|
|
|
|
|
$! create config.h
|
|
|
|
|
$!
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$ write sys$output "Generate `config.h'"
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$ create []config.h
|
|
|
|
|
/* config.h-vms. Generated by hand by Klaus K<>mpf, kkaempf@didymus.rmi.de. */
|
|
|
|
|
/* config.in. Generated automatically from configure.in by autoheader. */
|
|
|
|
|
/* Whether malloc must be declared even if <stdlib.h> is included. */
|
|
|
|
|
/* #undef NEED_DECLARATION_MALLOC */
|
|
|
|
|
/* Whether free must be declared even if <stdlib.h> is included. */
|
|
|
|
|
/* #undef NEED_DECLARATION_FREE */
|
|
|
|
|
/* Define if you have a working `mmap' system call. */
|
|
|
|
|
/* #define HAVE_MMAP 1 */
|
|
|
|
|
/* Do we need to use the b modifier when opening binary files? */
|
|
|
|
|
/* #undef USE_BINARY_FOPEN */
|
|
|
|
|
/* Name of host specific header file to include in trad-core.c. */
|
|
|
|
|
/* #undef TRAD_HEADER */
|
|
|
|
|
/* Define only if <sys/procfs.h> is available *and* it defines prstatus_t. */
|
|
|
|
|
/* #undef HAVE_SYS_PROCFS_H */
|
|
|
|
|
/* Do we really want to use mmap if it's available? */
|
|
|
|
|
/* #undef USE_MMAP */
|
|
|
|
|
/* Define if you have the fcntl function. */
|
|
|
|
|
#define HAVE_FCNTL 1
|
|
|
|
|
/* Define if you have the getpagesize function. */
|
|
|
|
|
#define HAVE_GETPAGESIZE 1
|
|
|
|
|
/* Define if you have the madvise function. */
|
|
|
|
|
#define HAVE_MADVISE 1
|
|
|
|
|
/* Define if you have the mprotect function. */
|
|
|
|
|
#define HAVE_MPROTECT 1
|
|
|
|
|
/* Define if you have the <fcntl.h> header file. */
|
|
|
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
|
/* Define if you have the <stddef.h> header file. */
|
|
|
|
|
#define HAVE_STDDEF_H 1
|
|
|
|
|
/* Define if you have the <stdlib.h> header file. */
|
|
|
|
|
#define HAVE_STDLIB_H 1
|
|
|
|
|
/* Define if you have the <string.h> header file. */
|
|
|
|
|
#define HAVE_STRING_H 1
|
|
|
|
|
/* Define if you have the <strings.h> header file. */
|
|
|
|
|
#define HAVE_STRINGS_H 1
|
|
|
|
|
/* Define if you have the <sys/file.h> header file. */
|
|
|
|
|
#define HAVE_SYS_FILE_H 1
|
|
|
|
|
/* Define if you have the <time.h> header file. */
|
|
|
|
|
#define HAVE_TIME_H 1
|
|
|
|
|
/* Define if you have the <unistd.h> header file. */
|
|
|
|
|
#define HAVE_UNISTD_H 1
|
2008-11-14 09:57:35 +00:00
|
|
|
|
/* Disable NLS */
|
|
|
|
|
#undef ENABLE_NLS
|
2013-07-09 07:03:53 +00:00
|
|
|
|
/* Name of package */
|
|
|
|
|
#define PACKAGE "bfd"
|
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
|
|
|
#define PACKAGE_BUGREPORT ""
|
|
|
|
|
/* Define to the full name of this package. */
|
|
|
|
|
#define PACKAGE_NAME "bfd"
|
|
|
|
|
/* Define to the full name and version of this package. */
|
|
|
|
|
#define PACKAGE_STRING "bfd"
|
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
|
|
|
#define PACKAGE_TARNAME "bfd"
|
|
|
|
|
/* Define to the home page for this package. */
|
|
|
|
|
#define PACKAGE_URL ""
|
|
|
|
|
/* Define to the version of this package. */
|
|
|
|
|
#define PACKAGE_VERSION "(package version)"
|
1999-05-03 07:29:11 +00:00
|
|
|
|
$!
|
2009-09-30 13:12:50 +00:00
|
|
|
|
$ write sys$output "Copy sysdep.h"
|
|
|
|
|
$ copy [.hosts]alphavms.h sysdep.h
|
|
|
|
|
$
|
2009-09-01 13:10:45 +00:00
|
|
|
|
$ write sys$output "Generate build.com"
|
|
|
|
|
$!
|
|
|
|
|
$ if ARCH.eqs."alpha"
|
|
|
|
|
$ then
|
|
|
|
|
$ create build.com
|
|
|
|
|
$DECK
|
bfd target vector rationalisation
This renames the bfd targets to <cpu>_<format>_<other>_<endian>_vec.
So for example, bfd_elf32_ntradlittlemips_vec becomes
mips_elf32_ntrad_le_vec and hp300bsd_vec becomes m68k_aout_hp300bsd_vec.
bfd/
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-ns32k.c,
* aout-sparcle.c, * aout0.c, * aoutx.h, * armnetbsd.c, * bout.c,
* cf-i386lynx.c, * cf-sparclynx.c, * cisco-core.c, * coff-alpha.c,
* coff-apollo.c, * coff-arm.c, * coff-aux.c, * coff-go32.c,
* coff-h8300.c, * coff-h8500.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mips.c,
* coff-rs6000.c, * coff-sh.c, * coff-sparc.c, * coff-stgo32.c,
* coff-svm68k.c, * coff-tic80.c, * coff-u68k.c, * coff-w65.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * config.bfd, * configure.com, * configure.in,
* demo64.c, * elf-m10200.c, * elf-m10300.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c,
* elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
* elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
* elf32-fr30.c, * elf32-frv.c, * elf32-gen.c, * elf32-h8300.c,
* elf32-hppa.c, * elf32-i370.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
* elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
* elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c, * elf32-mep.c,
* elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
* elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-nios2.c,
* elf32-or1k.c, * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-sh-symbian.c,
* elf32-sh.c, * elf32-sh64.c, * elf32-sparc.c, * elf32-spu.c,
* elf32-tic6x.c, * elf32-tilegx.c, * elf32-tilepro.c, * elf32-v850.c,
* elf32-vax.c, * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
* elf32-xtensa.c, * elf64-alpha.c, * elf64-gen.c, * elf64-hppa.c,
* elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, * elf64-ppc.c,
* elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c, * elf64-tilegx.c,
* elf64-x86-64.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* epoc-pe-arm.c, * epoc-pei-arm.c, * hp300bsd.c, * hp300hpux.c,
* hppabsd-core.c, * hpux-core.c, * i386aout.c, * i386bsd.c,
* i386dynix.c, * i386freebsd.c, * i386linux.c, * i386lynx.c,
* i386mach3.c, * i386msdos.c, * i386netbsd.c, * i386os9k.c,
* irix-core.c, * m68k4knetbsd.c, * m68klinux.c, * m68knetbsd.c,
* m88kmach3.c, * m88kopenbsd.c, * mach-o-i386.c, * mach-o-x86-64.c,
* makefile.vms, * mipsbsd.c, * mmo.c, * netbsd-core.c, * newsos3.c,
* nlm32-alpha.c, * nlm32-i386.c, * nlm32-ppc.c, * nlm32-sparc.c,
* ns32knetbsd.c, * osf-core.c, * pc532-mach.c, * pe-arm-wince.c,
* pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-mips.c, * pe-ppc.c,
* pe-sh.c, * pe-x86_64.c, * pei-arm-wince.c, * pei-arm.c,
* pei-i386.c, * pei-ia64.c, * pei-mcore.c, * pei-mips.c, * pei-ppc.c,
* pei-sh.c, * pei-x86_64.c, * ppcboot.c, * ptrace-core.c, * riscix.c,
* sco5-core.c, * som.c, * sparclinux.c, * sparclynx.c,
* sparcnetbsd.c, * sunos.c, * targets.c, * trad-core.c,
* vax1knetbsd.c, * vaxbsd.c, * vaxnetbsd.c, * versados.c,
* vms-alpha.c, * vms-lib.c: Rename bfd targets to
<cpu>_<format>_<other>_<endian>_vec. Adjust associated MY macros
on aout targets.
* configure: Regenerate.
binutils/
* emul_aix.c: Update bfd target vector naming.
* testsuite/binutils-all/objcopy.exp: Likewise.
ld/
* emultempl/metagelf.em: Update bfd target vector naming.
* emultempl/nios2elf.em: Likewise.
* emultempl/spuelf.em: Likewise.
* emultempl/tic6xdsbt.em: Likewise.
2014-05-02 10:39:40 +00:00
|
|
|
|
$ DEFS="""SELECT_VECS=&alpha_vms_vec"","+-
|
2009-09-01 13:10:45 +00:00
|
|
|
|
"""SELECT_ARCHITECTURES=&bfd_alpha_arch"""
|
|
|
|
|
$ FILES="cpu-alpha,vms,vms-hdr,vms-gsd,vms-tir,vms-misc,"
|
|
|
|
|
$EOD
|
|
|
|
|
$ endif
|
|
|
|
|
$ if ARCH.eqs."ia64"
|
|
|
|
|
$ then
|
|
|
|
|
$ create build.com
|
|
|
|
|
$DECK
|
bfd target vector rationalisation
This renames the bfd targets to <cpu>_<format>_<other>_<endian>_vec.
So for example, bfd_elf32_ntradlittlemips_vec becomes
mips_elf32_ntrad_le_vec and hp300bsd_vec becomes m68k_aout_hp300bsd_vec.
bfd/
* aix386-core.c, * aout-adobe.c, * aout-arm.c, * aout-ns32k.c,
* aout-sparcle.c, * aout0.c, * aoutx.h, * armnetbsd.c, * bout.c,
* cf-i386lynx.c, * cf-sparclynx.c, * cisco-core.c, * coff-alpha.c,
* coff-apollo.c, * coff-arm.c, * coff-aux.c, * coff-go32.c,
* coff-h8300.c, * coff-h8500.c, * coff-i386.c, * coff-i860.c,
* coff-i960.c, * coff-m68k.c, * coff-m88k.c, * coff-mips.c,
* coff-rs6000.c, * coff-sh.c, * coff-sparc.c, * coff-stgo32.c,
* coff-svm68k.c, * coff-tic80.c, * coff-u68k.c, * coff-w65.c,
* coff-we32k.c, * coff-x86_64.c, * coff-z80.c, * coff-z8k.c,
* coff64-rs6000.c, * config.bfd, * configure.com, * configure.in,
* demo64.c, * elf-m10200.c, * elf-m10300.c, * elf32-am33lin.c,
* elf32-arc.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c,
* elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
* elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
* elf32-fr30.c, * elf32-frv.c, * elf32-gen.c, * elf32-h8300.c,
* elf32-hppa.c, * elf32-i370.c, * elf32-i386.c, * elf32-i860.c,
* elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
* elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
* elf32-m68k.c, * elf32-m88k.c, * elf32-mcore.c, * elf32-mep.c,
* elf32-metag.c, * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
* elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-nios2.c,
* elf32-or1k.c, * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c,
* elf32-rx.c, * elf32-s390.c, * elf32-score.c, * elf32-sh-symbian.c,
* elf32-sh.c, * elf32-sh64.c, * elf32-sparc.c, * elf32-spu.c,
* elf32-tic6x.c, * elf32-tilegx.c, * elf32-tilepro.c, * elf32-v850.c,
* elf32-vax.c, * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
* elf32-xtensa.c, * elf64-alpha.c, * elf64-gen.c, * elf64-hppa.c,
* elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, * elf64-ppc.c,
* elf64-s390.c, * elf64-sh64.c, * elf64-sparc.c, * elf64-tilegx.c,
* elf64-x86-64.c, * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
* epoc-pe-arm.c, * epoc-pei-arm.c, * hp300bsd.c, * hp300hpux.c,
* hppabsd-core.c, * hpux-core.c, * i386aout.c, * i386bsd.c,
* i386dynix.c, * i386freebsd.c, * i386linux.c, * i386lynx.c,
* i386mach3.c, * i386msdos.c, * i386netbsd.c, * i386os9k.c,
* irix-core.c, * m68k4knetbsd.c, * m68klinux.c, * m68knetbsd.c,
* m88kmach3.c, * m88kopenbsd.c, * mach-o-i386.c, * mach-o-x86-64.c,
* makefile.vms, * mipsbsd.c, * mmo.c, * netbsd-core.c, * newsos3.c,
* nlm32-alpha.c, * nlm32-i386.c, * nlm32-ppc.c, * nlm32-sparc.c,
* ns32knetbsd.c, * osf-core.c, * pc532-mach.c, * pe-arm-wince.c,
* pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-mips.c, * pe-ppc.c,
* pe-sh.c, * pe-x86_64.c, * pei-arm-wince.c, * pei-arm.c,
* pei-i386.c, * pei-ia64.c, * pei-mcore.c, * pei-mips.c, * pei-ppc.c,
* pei-sh.c, * pei-x86_64.c, * ppcboot.c, * ptrace-core.c, * riscix.c,
* sco5-core.c, * som.c, * sparclinux.c, * sparclynx.c,
* sparcnetbsd.c, * sunos.c, * targets.c, * trad-core.c,
* vax1knetbsd.c, * vaxbsd.c, * vaxnetbsd.c, * versados.c,
* vms-alpha.c, * vms-lib.c: Rename bfd targets to
<cpu>_<format>_<other>_<endian>_vec. Adjust associated MY macros
on aout targets.
* configure: Regenerate.
binutils/
* emul_aix.c: Update bfd target vector naming.
* testsuite/binutils-all/objcopy.exp: Likewise.
ld/
* emultempl/metagelf.em: Update bfd target vector naming.
* emultempl/nios2elf.em: Likewise.
* emultempl/spuelf.em: Likewise.
* emultempl/tic6xdsbt.em: Likewise.
2014-05-02 10:39:40 +00:00
|
|
|
|
$ DEFS="""SELECT_VECS=&ia64_elf64_vms_vec"","+-
|
2009-09-01 13:10:45 +00:00
|
|
|
|
"""SELECT_ARCHITECTURES=&bfd_ia64_arch"""
|
|
|
|
|
$ FILES="cpu-ia64,elf64-ia64,elf-strtab,corefile,stabs,merge,elf-eh-frame,"+-
|
|
|
|
|
"elflink,elf-attrs,dwarf1,elf64,"
|
|
|
|
|
$EOD
|
|
|
|
|
$ create substxx.tpu
|
|
|
|
|
$DECK
|
|
|
|
|
set (success,off);
|
|
|
|
|
file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
|
|
|
|
|
found_range := CREATE_RANGE(BEGINNING_OF(file), BEGINNING_OF(file));
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
2009-09-01 13:10:45 +00:00
|
|
|
|
LOOP
|
|
|
|
|
rang := CREATE_RANGE (END_OF(found_range),END_OF(file));
|
|
|
|
|
match_pos := SEARCH_QUIETLY('NN', FORWARD, EXACT, rang);
|
|
|
|
|
EXITIF match_pos = 0;
|
|
|
|
|
POSITION(BEGINNING_OF(match_pos));
|
|
|
|
|
ERASE(match_pos);
|
|
|
|
|
COPY_TEXT('64');
|
|
|
|
|
ENDLOOP;
|
|
|
|
|
WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
|
|
|
|
|
QUIT
|
|
|
|
|
$ EOD
|
|
|
|
|
$ write sys$output "Generate elf64-target.h from elfxx-target.h"
|
|
|
|
|
$ edit/tpu/nojournal/nosection/nodisplay/command=substxx.tpu -
|
|
|
|
|
[]elfXX-target.h /output=[]elf64-target.h
|
|
|
|
|
$ del substxx.tpu;*
|
|
|
|
|
$ endif
|
|
|
|
|
$ append sys$input build.com
|
|
|
|
|
$DECK
|
|
|
|
|
$ DEFS=DEFS + ",""unlink=remove"",""DEBUGDIR=""""GNU$DEBUGDIR:"""""""
|
|
|
|
|
$ OPT="/noopt/debug"
|
|
|
|
|
$ CFLAGS="/name=(as_is,shortened)" + -
|
|
|
|
|
"/include=([],""../"",""../include"")" + -
|
|
|
|
|
"/define=(" + DEFS + ")" + OPT
|
|
|
|
|
$ FILES=FILES + "archive,archive64,archures,bfd,bfdio,binary,cache,coffgen,"+-
|
|
|
|
|
"compress,corefile,dwarf2,elf,format,hash,ihex,init,libbfd,linker,"+-
|
|
|
|
|
"opncls,reloc,section,simple,srec,stab-syms,syms,targets,tekhex,verilog"
|
|
|
|
|
$ write sys$output "CFLAGS=",CFLAGS
|
|
|
|
|
$ cflags_libbfd="/warning=(disable=missingreturn)"
|
|
|
|
|
$ cflags_nil=""
|
|
|
|
|
$ NUM = 0
|
|
|
|
|
$ OBJS=""
|
|
|
|
|
$ LOOP:
|
|
|
|
|
$ F = F$ELEMENT(NUM,",",FILES)
|
|
|
|
|
$ IF F.EQS."," THEN GOTO END
|
|
|
|
|
$ eflags_name="cflags_''f'"
|
|
|
|
|
$ name_len=f$length(eflags_name)
|
|
|
|
|
$ dash_pos=f$locate("-",eflags_name)
|
|
|
|
|
$ if dash_pos.ne.name_len
|
|
|
|
|
$ then
|
|
|
|
|
$ eflags_name['dash_pos,1]:="_"
|
|
|
|
|
$ dash_pos=f$locate("-",eflags_name)
|
|
|
|
|
$ if dash_pos.ne.name_len then eflags_name['dash_pos,1]:="_"
|
|
|
|
|
$ endif
|
|
|
|
|
$ if f$type('eflags_name).eqs."" then eflags_name="cflags_nil"
|
|
|
|
|
$ eflags='eflags_name
|
|
|
|
|
$ write sys$output "Compiling ", F, ".c", eflags
|
|
|
|
|
$ cc 'CFLAGS 'eflags 'F.c
|
|
|
|
|
$ IF OBJS.NES."" THEN OBJS=OBJS + ","
|
|
|
|
|
$ OBJS=OBJS + F + ".obj"
|
|
|
|
|
$ NUM = NUM + 1
|
|
|
|
|
$ GOTO LOOP
|
|
|
|
|
$ END:
|
|
|
|
|
$ purge
|
|
|
|
|
$ lib/create libbfd 'OBJS
|
|
|
|
|
$EOD
|