readme

来自「基于4个mips核的noc设计」· 代码 · 共 190 行

TXT
190
字号
These are the GNU binutils.  These are utilities of use when dealingwith object files.The linker (ld) is in a separate directory, which should be ../ld.Linker-specific notes are in ../ld/README.As of version 2.5, the assembler (as) is also included in this package, in../gas.  Assembler-specific notes can be found in ../gas/README.Recent changes are in ./NEWS, ../ld/NEWS, and ../gas/NEWS.Unpacking and Installation -- quick overview============================================When you unpack the binutils-2.9.tar.gz file, you'll get a directorycalled something like `binutils-2.9', which contains various files anddirectories.  Most of the files in the top directory are forinformation and for configuration.  The actual source code is insubdirectories.To build binutils, you can just do:	cd binutils-2.9	./configure [options]	make	make install # copies the programs files into /usr/local/bin		     # by default.This will configure and build all the libraries as well as theassembler, the binutils, and the linker.If you have GNU make, we recommend building in a different directory:	mkdir objdir	cd objdir	../binutils-2.9/configure [options]	make	make installThis relies on the VPATH feature of GNU make.By default, the binutils will be configured to support the system onwhich they are built.  When doing cross development, use the --targetconfigure option to specify a different target.The --enable-targets option adds support for more binary file formatsbesides the default.  List them as the argument to --enable-targets,separated by commas.  For example:	./configure --enable-targets=sun3,rs6000-aix,decstationThe name 'all' compiles in support for all valid BFD targets (this wasthe default in releases before 2.3):	./configure --enable-targets=allYou can also specify the --enable-shared option when you runconfigure.  This will build the BFD and opcodes libraries as sharedlibraries.  You can use arguments with the --enable-shared option toindicate that only certain libraries should be built shared; forexample, --enable-shared=bfd.  The only potential shared libraries ina binutils release are bfd and opcodes.The binutils will be linked against the shared libraries.  The buildstep will attempt to place the correct library in the runtime searchpath for the binaries.  However, in some cases, after you install thebinaries, you may have to set an environment variable, normallyLD_LIBRARY_PATH, so that the system can find the installed libbfdshared library.To build under openVMS/AXP, see the file makefile.vms in the top leveldirectory.If you don't have ar====================If your system does not already have an ar program, the normalbinutils build process will not work.  In this case, run configure asusual.  Before running make, run this script:#!/bin/shMAKE_PROG="${MAKE-make}"MAKE="${MAKE_PROG} AR=true LINK=true"export MAKE${MAKE} $* all-libiberty${MAKE} $* all-intl${MAKE} $* all-bfdcd binutilsMAKE="${MAKE_PROG}"export MAKE${MAKE} $* ar_DEPENDENCIES= ar_LDADD='../bfd/*.o `cat ../libiberty/required-list ../libiberty/needed-list | sed -e "s,\([^ ][^ ]*\),../libiberty/\1,g"` `if test -f ../intl/gettext.o; then echo '../intl/*.o'; fi`' arThis script will build an ar program in binutils/ar.  Move binutils/arinto a directory on your PATH.  After doing this, you can run make asusual to build the complete binutils distribution.  You do not needthe ranlib program in order to build the distribution.Porting=======Binutils-2.9 supports many different architectures, but thereare many more not supported, including some that were supportedby earlier versions.  We are hoping for volunteers toimprove this situation.The major effort in porting binutils to a new host and/or targetarchitecture involves the BFD library.  There is some documentationin ../bfd/doc.  The file ../gdb/doc/gdbint.texinfo (distributedwith gdb-4.x) may also be of help.Reporting bugs==============Send bug reports and patches to bug-binutils@gnu.org.  Always mentionthe version number you are running; this is printed by running any ofthe binutils with the --version option.  We appreciate reports aboutbugs, but we do not promise to fix them.VMS===This section was written by Klaus K"ampf <kkaempf@rmi.de>.  Itdescribes how to build and install the binutils on openVMS (Alpha andVax).  (The BFD library only supports reading Vax object files.)Compiling the release:To compile the gnu binary utilities and the gnu assembler, you'llneed DEC C or GNU C for openVMS/Alpha. You'll need *both* compilerson openVMS/Vax.Compiling with either DEC C or GNU C works on openVMS/Alpha only. Someof the opcodes and binutils files trap a bug in the DEC C optimizer,so these files must be compiled with /noopt.Compiling on openVMS/Vax is a bit complicated, as the bfd library trapsa bug in GNU C and the gnu assembler a bug in (my version of) DEC C.I never tried compiling with VAX C.You further need GNU Make Version 3.76 or later. This is availableat ftp.progis.de or any GNU archive site. The makefiles assume thatgmake starts gnu make as a foreign command.If you're compiling with DEC C or VAX C, you must run  $ @setupbefore starting gnu-make. This isn't needed with GNU C.On the Alpha you can choose the compiler by editing the toplevelmakefile.vms. Either select CC=cc (for DEC C) or CC=gcc (for GNU C)Installing the releaseProvided that your directory setup conforms to the GNU on openVMSstandard, you already have a concealed deviced named 'GNU_ROOT'.In this case, a simple $ gmake installsuffices to copy all programs and libraries to the proper directories.Define the programs as foreign commands by adding these lines to yourlogin.com:  $ gas :== $GNU_ROOT:[bin]as.exe  $ size :== $GNU_ROOT:[bin]size.exe  $ nm :== $GNU_ROOT:[bin]nm.exe  $ objdump :== $GNU_ROOT:[bin]objdump.exe  $ strings :== $GNU_ROOT:[bin]strings.exeIf you have a different directory setup, copy the binary utilities([.binutils]size.exe, [.binutils]nm.exe, [.binutils]objdump.exe,and [.binutils]strings.exe) and the gnu assembler and preprocessor([.gas]as.exe and [.gas]gasp.exe]) to a directory of your choiceand define all programs as foreign commands.If you're satiesfied with the compilation, you may want to removeunneeded objects and libraries:  $ gmake cleanIf you have any problems or questions about the binutils on VMS, feelfree to mail me at kkaempf@rmi.de.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?