mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-29 21:13:52 +08:00
Initial revision
This commit is contained in:
parent
c67056970a
commit
01bc4918d7
1
ld/config/coff-a29k.mt
Normal file
1
ld/config/coff-a29k.mt
Normal file
@ -0,0 +1 @@
|
||||
TDEFINES = -DDEFAULT_EMULATION=GLD29K_EMULATION_NAME
|
2
ld/config/decstation.mh
Executable file
2
ld/config/decstation.mh
Executable file
@ -0,0 +1,2 @@
|
||||
HDEFINES=-DHOST_SYS=DEC3100_SYS
|
||||
YACC=yacc -vd
|
9
ld/config/dgux.mh
Normal file
9
ld/config/dgux.mh
Normal file
@ -0,0 +1,9 @@
|
||||
HDEFINES = -DHOST_SYS=DGUX_SYS -D__using_DGUX
|
||||
|
||||
CC = gcc -Wall -ansi
|
||||
YACC=yacc -tvd
|
||||
|
||||
HOSTING_CRT0=/lib/crt0.o -X
|
||||
HOSTING_LIBS=/usr/sde/m88kbcs/lib/libc.a
|
||||
HOSTING_EMU=LDEMULATION=gldm88kbcs; export LDEMULATION
|
||||
|
1
ld/config/m88k-bcs.mt
Normal file
1
ld/config/m88k-bcs.mt
Normal file
@ -0,0 +1 @@
|
||||
TDEFINES = -DDEFAULT_EMULATION=GLDM88KBCS_EMULATION_NAME
|
7
ld/config/rtbsd.mh
Normal file
7
ld/config/rtbsd.mh
Normal file
@ -0,0 +1,7 @@
|
||||
# The IBM RT/PC has only been supported as a host in a cross-development
|
||||
# environment. If you don't have gcc, I was able to get 'hc -Hnocpp -ma'
|
||||
# to compile most of the modules, but didn't try running anything.
|
||||
YACC = yacc -d
|
||||
HDEFINES = -DHOST_SYS=RTBSD_SYS -DNO_VARARGS
|
||||
LDFLAGS =
|
||||
CC=gcc # hc/pcc just can't cut it
|
8
ld/config/sparc-ll.mh
Normal file
8
ld/config/sparc-ll.mh
Normal file
@ -0,0 +1,8 @@
|
||||
HDEFINES=-DHOST_SYS=SUN4_SYS -DHOST_64_BIT="long long"
|
||||
YACC=yacc -tvd
|
||||
CC=/usr/latest/bin/gcc -Wall -ansi
|
||||
#stuff for self hosting
|
||||
HOSTING_CRT0=/lib/crt0.o
|
||||
HOSTING_LIBS=/limbo/latest/=sun4/lib/gcc/sparc/1.93/gnulib -lc
|
||||
HOSTING_EMU=LDEMULATION=gld; export LDEMULATION
|
||||
|
8
ld/config/sparc.mh
Executable file
8
ld/config/sparc.mh
Executable file
@ -0,0 +1,8 @@
|
||||
HDEFINES=-DHOST_SYS=SUN4_SYS
|
||||
YACC=yacc -tvd
|
||||
#CC=gcc -Wall -ansi
|
||||
#stuff for self hosting
|
||||
HOSTING_CRT0=/lib/crt0.o
|
||||
HOSTING_LIBS=/limbo/latest/=sun4/lib/gcc/sparc/1.93/gnulib -lc
|
||||
HOSTING_EMU=LDEMULATION=gld; export LDEMULATION
|
||||
|
9
ld/config/sun3.mh
Normal file
9
ld/config/sun3.mh
Normal file
@ -0,0 +1,9 @@
|
||||
CDEFINES=-DHOST_SYS=SUN3_SYS
|
||||
#CC=gcc -ansi -Wall
|
||||
CC=cc
|
||||
YACC=yacc -d
|
||||
|
||||
|
||||
HOSTING_CRT0=/usr/lib/crt0.o /usr/lib/Fcrt1.o -L/usr/lib/fsoft.o
|
||||
HOSTING_LIBS=-lc
|
||||
HOSTING_EMU=LDEMULATION=gld68k; export LDEMULATION
|
1
ld/config/sun4.mt
Normal file
1
ld/config/sun4.mt
Normal file
@ -0,0 +1 @@
|
||||
TDEFINES = -DDEFAULT_EMULATION=GLD_EMULATION_NAME
|
30
ld/ldgld.sc
Executable file
30
ld/ldgld.sc
Executable file
@ -0,0 +1,30 @@
|
||||
OUTPUT_ARCH(sparc)
|
||||
OUTPUT_FORMAT("a.out-sunos-big")
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
__DYNAMIC = 0;
|
||||
SECTIONS
|
||||
{
|
||||
.text 0x2020 BLOCK(0x2000):
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS ;
|
||||
*(.text);
|
||||
_etext = ALIGN( 0x2000);
|
||||
}
|
||||
.data ALIGN(0x2000) :
|
||||
{
|
||||
*(.data);
|
||||
CONSTRUCTORS;
|
||||
_edata = .;
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
_end = .;
|
||||
__end = .;
|
||||
}
|
||||
}
|
||||
|
||||
|
28
ld/ldgld68k.sc
Executable file
28
ld/ldgld68k.sc
Executable file
@ -0,0 +1,28 @@
|
||||
OUTPUT_FORMAT("a.out-sunos-big")
|
||||
OUTPUT_ARCH(m68k)
|
||||
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
__DYNAMIC = 0;
|
||||
SECTIONS
|
||||
{
|
||||
.text 0x2020 BLOCK(0x2000):
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
*(.text)
|
||||
_etext = ALIGN( 0x2000);
|
||||
}
|
||||
.data ALIGN(0x20000) :
|
||||
{
|
||||
*(.data)
|
||||
_edata = .;
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
_end = .;
|
||||
}
|
||||
}
|
||||
|
21
ld/ldgld68kUr.sc
Executable file
21
ld/ldgld68kUr.sc
Executable file
@ -0,0 +1,21 @@
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
SECTIONS
|
||||
{
|
||||
.text 0:
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
*(.text)
|
||||
}
|
||||
.data SIZEOF(.text) + ADDR(.text) :
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
||||
|
22
ld/ldgld68kr.sc
Executable file
22
ld/ldgld68kr.sc
Executable file
@ -0,0 +1,22 @@
|
||||
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
SECTIONS
|
||||
{
|
||||
.text 0:
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
*(.text)
|
||||
}
|
||||
.data SIZEOF(.text) + ADDR(.text) :
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
||||
|
23
ld/ldgld960.sc
Executable file
23
ld/ldgld960.sc
Executable file
@ -0,0 +1,23 @@
|
||||
SECTIONS
|
||||
{
|
||||
.text :
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
*(.text)
|
||||
_etext = .;
|
||||
}
|
||||
|
||||
.data SIZEOF(.text) + ADDR(.text):
|
||||
{
|
||||
|
||||
*(.data)
|
||||
_edata = .;
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
_bss_start = .;
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
_end = . ;
|
||||
}
|
||||
}
|
24
ld/ldgldUr.sc
Executable file
24
ld/ldgldUr.sc
Executable file
@ -0,0 +1,24 @@
|
||||
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
SECTIONS
|
||||
{
|
||||
.text 0:
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
*(.text)
|
||||
}
|
||||
.data SIZEOF(.text) + ADDR(.text) :
|
||||
{
|
||||
*(.data)
|
||||
CONSTRUCTORS
|
||||
___end_list__ = . ;
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
||||
|
38
ld/ldglda29k.sc
Executable file
38
ld/ldglda29k.sc
Executable file
@ -0,0 +1,38 @@
|
||||
OUTPUT_FORMAT("coff-a29k-big")
|
||||
INPUT(/lab3/u3/sym1/tools/usr/lib/segments.o) /* Has .rstack/.mstack */
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/lib)
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/usr/lib)
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/usr/local/lib)
|
||||
MEMORY {
|
||||
text : ORIGIN = 0x1000000, LENGTH = 0x1000000
|
||||
talias : ORIGIN = 0x2000000, LENGTH = 0x1000000
|
||||
data : ORIGIN = 0x3000000, LENGTH = 0x1000000
|
||||
mstack : ORIGIN = 0x4000000, LENGTH = 0x1000000
|
||||
rstack : ORIGIN = 0x5000000, LENGTH = 0x1000000
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
.text : {
|
||||
*(.text)
|
||||
__etext = .;
|
||||
*(.lit)
|
||||
*(.shdata)
|
||||
} > text
|
||||
.shbss SIZEOF(.text) + ADDR(.text) : {
|
||||
*(.shbss)
|
||||
}
|
||||
.talias : { } > talias
|
||||
.data : {
|
||||
*(.data)
|
||||
__edata = .;
|
||||
} > data
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
__end = ALIGN(0x8);
|
||||
}
|
||||
.mstack : { } > mstack
|
||||
.rstack : { } > rstack
|
||||
}
|
||||
|
32
ld/ldglda29kUr.sc
Executable file
32
ld/ldglda29kUr.sc
Executable file
@ -0,0 +1,32 @@
|
||||
OUTPUT_FORMAT("coff-a29k-big")
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/lib)
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/usr/lib)
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/usr/local/lib)
|
||||
MEMORY {
|
||||
text : ORIGIN = 0x1000000, LENGTH = 0x1000000
|
||||
talias : ORIGIN = 0x2000000, LENGTH = 0x1000000
|
||||
data : ORIGIN = 0x3000000, LENGTH = 0x1000000
|
||||
mstack : ORIGIN = 0x4000000, LENGTH = 0x1000000
|
||||
rstack : ORIGIN = 0x5000000, LENGTH = 0x1000000
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
.text 0 : {
|
||||
*(.text)
|
||||
__etext = .;
|
||||
*(.lit)
|
||||
*(.shdata)
|
||||
} > text
|
||||
.shbss SIZEOF(.text) + ADDR(.text) : {
|
||||
*(.shbss)
|
||||
}
|
||||
.data SIZEOF(.shbss) + ADDR(.shbss): {
|
||||
*(.data)
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
||||
|
32
ld/ldglda29kr.sc
Executable file
32
ld/ldglda29kr.sc
Executable file
@ -0,0 +1,32 @@
|
||||
OUTPUT_FORMAT("coff-a29k-big")
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/lib)
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/usr/lib)
|
||||
SEARCH_DIR(/lab3/u3/sym1/tools/usr/local/lib)
|
||||
MEMORY {
|
||||
text : ORIGIN = 0x1000000, LENGTH = 0x1000000
|
||||
talias : ORIGIN = 0x2000000, LENGTH = 0x1000000
|
||||
data : ORIGIN = 0x3000000, LENGTH = 0x1000000
|
||||
mstack : ORIGIN = 0x4000000, LENGTH = 0x1000000
|
||||
rstack : ORIGIN = 0x5000000, LENGTH = 0x1000000
|
||||
}
|
||||
SECTIONS
|
||||
{
|
||||
.text 0 : {
|
||||
*(.text)
|
||||
__etext = .;
|
||||
*(.lit)
|
||||
*(.shdata)
|
||||
} > text
|
||||
.shbss SIZEOF(.text) + ADDR(.text) : {
|
||||
*(.shbss)
|
||||
}
|
||||
.data SIZEOF(.shbss) + ADDR(.shbss): {
|
||||
*(.data)
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
||||
|
40
ld/ldgldm88kbcs.sc
Executable file
40
ld/ldgldm88kbcs.sc
Executable file
@ -0,0 +1,40 @@
|
||||
TARGET(m88kbcs)
|
||||
OUTPUT_FORMAT(m88kbcs)
|
||||
OUTPUT_ARCH(m88k)
|
||||
ENTRY(__start)
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
SECTIONS
|
||||
{
|
||||
.text 0x10000 + SIZEOF_HEADERS :
|
||||
{
|
||||
__.text.start = .;
|
||||
__.init.start = .;
|
||||
LONG(0xf400c001)
|
||||
__.init.end = .;
|
||||
*(.text)
|
||||
__.tdesc_start = .;
|
||||
*(.tdesc)
|
||||
__.text_end = .;
|
||||
__.initp.start = .;
|
||||
__.initp.end =.;
|
||||
|
||||
_etext =.;
|
||||
}
|
||||
.data SIZEOF(.text) + ADDR(.text) + 0x400000:
|
||||
{
|
||||
*(.data)
|
||||
_edata = .;
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
_end = .;
|
||||
___end = .;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
31
ld/ldgldm88kbcsUr.sc
Executable file
31
ld/ldgldm88kbcsUr.sc
Executable file
@ -0,0 +1,31 @@
|
||||
SCRIPT
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
SECTIONS
|
||||
{
|
||||
.text 0:
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
*(.text)
|
||||
}
|
||||
.data SIZEOF(.text) + ADDR(.text) :
|
||||
{
|
||||
*(.data)
|
||||
___DTOR_LIST__ = . ;
|
||||
LONG((___CTOR_LIST__ - .) / 4 -2)
|
||||
*(___DTOR_LIST__)
|
||||
LONG(0)
|
||||
___CTOR_LIST__ = . ;
|
||||
LONG((___end_list__ - .) / 4 -2)
|
||||
*(___CTOR_LIST__)
|
||||
LONG(0)
|
||||
___end_list__ = . ;
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
||||
ENDSCRIPT
|
20
ld/ldgldm88kbcsr.sc
Executable file
20
ld/ldgldm88kbcsr.sc
Executable file
@ -0,0 +1,20 @@
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
SECTIONS
|
||||
{
|
||||
.text 0:
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
*(.text)
|
||||
}
|
||||
.data SIZEOF(.text) + ADDR(.text) :
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
20
ld/ldgldr.sc
Executable file
20
ld/ldgldr.sc
Executable file
@ -0,0 +1,20 @@
|
||||
SEARCH_DIR(/lib)
|
||||
SEARCH_DIR(/usr/lib)
|
||||
SEARCH_DIR(/usr/local/lib)
|
||||
SECTIONS
|
||||
{
|
||||
.text 0:
|
||||
{
|
||||
CREATE_OBJECT_SYMBOLS
|
||||
*(.text)
|
||||
}
|
||||
.data SIZEOF(.text) + ADDR(.text) :
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
21
ld/ldlnk960.sc
Executable file
21
ld/ldlnk960.sc
Executable file
@ -0,0 +1,21 @@
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.text :
|
||||
{
|
||||
*(.text)
|
||||
}
|
||||
_etext = . ;
|
||||
.data SIZEOF(.text) + ADDR(.text):
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
_edata = .;
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
_bss_start = . ;
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
_end = . ;
|
||||
}
|
17
ld/ldlnk960r.sc
Executable file
17
ld/ldlnk960r.sc
Executable file
@ -0,0 +1,17 @@
|
||||
SECTIONS
|
||||
{
|
||||
.text 0:
|
||||
{
|
||||
*(.text)
|
||||
}
|
||||
.data SIZEOF(.text) + ADDR(.text):
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
.bss SIZEOF(.data) + ADDR(.data) :
|
||||
{
|
||||
*(.bss)
|
||||
[COMMON]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user