Commit a0ce9ab7 authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

* unexec.c:

* m/ia64.h:
* m/hp800.h: Remove dead code.
parent cf37ed4f
......@@ -45,19 +45,35 @@ SYSTEM_MALLOC Use the system library's malloc.
** Replace, the definition is trivial: SWITCH_ENUM_CAST
** Temporarily put defines from removed files here, check if these macros need to be documented or removed because they are not used anymore. **
** Defines from src/m/*.h and src/s/*.h. Some of these might not be used in the code anymore, so they can be removed. The HAVE_* definitions are probably handled by autoconf, so it might be possible to just remove them from src/[sm]/*.h.
ADDR_CORRECT
ADJUST_TEXT_SCNHDR_SIZE
ADJUST_EXEC_HEADER
AIX
AMPERSAND_FULL_NAME
A_TEXT_OFFSET
A_TEXT_SEEK
BAUD_CONVERT
BCOPY_DOWNWARD_SAFE
BCOPY_UPWARD_SAFE
BITS_PER_EMACS_INT
BITS_PER_LONG
BROKEN_DATAGRAM_SOCKETS
BROKEN_FIONREAD
BROKEN_GET_CURRENT_DIR_NAME
BROKEN_NON_BLOCKING_CONNECT
BROKEN_PTY_READ_AFTER_EAGAIN
BROKEN_SA_RESTART
BROKEN_SIGAIO
BROKEN_SIGIO
BROKEN_SIGPOLL
BROKEN_SIGPTY
BROKEN_TIOCGETC
BROKEN_TIOCGWINSZ
BROKEN_XLISTFONTSWITHINFO
BSD4_2
BSD4_3
BSD4_4
BSD_PGRPS
BSD_SYSTEM
BSTRING
......@@ -69,81 +85,193 @@ CRT0_DUMMIES
C_DEBUG_SWITCH
C_SWITCH_MACHINE
C_SWITCH_SYSTEM
C_SWITCH_SYSTEM_TEMACS
C_SWITCH_X_SYSTEM
DATA_END
DATA_SECTION_ALIGNMENT
DATA_SEG_BITS
DATA_START
DEBUG
DBL_MIN_REPLACEMENT
DECLARE_GETPWUID_WITH_UID_T
DEFAULT_ENTRY_ADDRESS
DEFAULT_SOUND_DEVICE
DEVICE_SEP
DIRECTORY_SEP
DONT_REOPEN_PTY
DOT_GLOBAL_START
DUMMIES
ELF
EXEC_PAGESIZE
DOUG_LEA_MALLOC
DebPrint
EMACSDEBUG
EMACS_CONFIGURATION
EMACS_CONFIG_OPTIONS
EMACS_INT
EMACS_UINT
END_FILES_1
EXEC_SUFFIXES
EXPLICIT_SIGN_EXTEND
FILE_SYSTEM_CASE
FIRST_PTY_LETTER
FLOAT_CHECK_DOMAIN
FORCE_ALLOCA_H
FSCALE
Fread
GAP_USE_BCOPY
GC_LISP_OBJECT_ALIGNMENT
GC_MARK_SECONDARY_STACK
GC_MARK_STACK
GC_SETJMP_WORKS
GETPGRP_NO_ARG
GMALLOC_INHIBIT_VALLOC
GNU_LIBRARY_PENDING_OUTPUT_COUNT
GNU_LINUX
GNU_MALLOC
HAVE_AIX_SMT_EXP
HAVE_ALLOCA
HAVE_AVAILABILITYMACROS_H
HAVE_BCMP
HAVE_BCOPY
HAVE_CBRT
HAVE_CLOSEDIR
HAVE_CONFIG_H
HAVE_CRTIN
HAVE_CRTN
HAVE_DUP2
HAVE_EUIDACCESS
HAVE_FACES
HAVE_FMOD
HAVE_FPATHCONF
HAVE_FREXP
HAVE_FSYNC
HAVE_FTIME
HAVE_GETCWD
HAVE_GETDOMAINNAME
HAVE_GETHOSTNAME
HAVE_GETLOADAVG
HAVE_GETPAGESIZE
HAVE_GETPT
HAVE_GETTIMEOFDAY
HAVE_GETWD
HAVE_H_ERRNO
HAVE_INDEX
HAVE_INET_SOCKETS
HAVE_LIBDNET
HAVE_LIBINTL
HAVE_LIBRESOLV
HAVE_INVERSE_HYPERBOLIC
HAVE_LIB64_DIR
HAVE_LIBKSTAT
HAVE_LIBNCURSES
HAVE_LIBPTHREADS
HAVE_LIBXMU
HAVE_LIMITS_H
HAVE_LINUX_VERSION_H
HAVE_LOGB
HAVE_LONG_FILE_NAMES
HAVE_LRAND48
HAVE_MENUS
HAVE_MKDIR
HAVE_MKTIME
HAVE_MOUSE
HAVE_PERROR
HAVE_PSTAT_GETDYNAMIC
HAVE_PTYS
HAVE_PWD_H
HAVE_RANDOM
HAVE_RENAME
HAVE_RES_INIT
HAVE_RINDEX
HAVE_RINT
HAVE_RMDIR
HAVE_SELECT
HAVE_SETLOCALE
HAVE_SETPGID
HAVE_SETRLIMIT
HAVE_SETSID
HAVE_SHUTDOWN
HAVE_SOCKETS
HAVE_SOUND
HAVE_STDLIB_H
HAVE_STRERROR
HAVE_STRFTIME
HAVE_STRING_H
HAVE_STRUCT_UTIMBUF
HAVE_SYSINFO
HAVE_SYSVIPC
HAVE_SYSV_SIGPAUSE
HAVE_SYS_WAIT_H
HAVE_SYS_SELECT_H
HAVE_SYS_SYSTEMINFO_H
HAVE_SYS_TIMEB_H
HAVE_SYS_TIME_H
HAVE_TCATTR
HAVE_TERMIO
HAVE_TERMIOS
HAVE_TERMIOS_H
HAVE_TEXT_START
HAVE_TIMEVAL
HAVE_TM_ZONE
HAVE_TZSET
HAVE_UNION_WAIT
HAVE_UNISTD_H
HAVE_UTIMES
HAVE_UTIME_H
HAVE_VOLATILE
HAVE_WAIT_HEADER
HAVE_X11R6
HAVE_XSCREENNUMBEROFSCREEN
HAVE_X_WINDOWS
HAVE_WINDOW_SYSTEM
HAVE_WORKING_VFORK
HAVE_XRMSETDATABASE
HPUX
HPUX11
HPUX_NET
IBMR2AIX
INHIBIT_X11R6_XIM
INTEL386
INTERNAL_TERMINAL
INTERRUPT_INPUT
IRIS
IRIS_4D
IS_ANY_SEP
IS_DIRECTORY_SEP
KERNEL_FILE
LDAV_SYMBOL
LD_SWITCH_MACHINE
LD_SWITCH_MACHINE_TEMACS
LD_SWITCH_SITE
LD_SWITCH_SYSTEM
LD_SWITCH_SYSTEM_1
LD_SWITCH_SYSTEM_TEMACS
LD_SWITCH_SYSTEM_tmp
LD_SWITCH_X_DEFAULT
LIBS_CARBON
LIBS_DEBUG
LIBS_IMAGE
LIBS_MACHINE
LIBS_SYSTEM
LIBS_TERMCAP
LIBX11_SYSTEM
LIBXMU
LIB_GCC
LIB_MATH
LIB_MOTIF
LIB_STANDARD
LIB_X11_LIB
LIB_STANDARD_LIBSRC
LINKER
LINK_CRTL_SHARE
LINUX
LINUX_SBRK_BUG
LINUX_SIGNALS_VIA_CHARACTERS_DOES_WORK
LISP_FLOAT_TYPE
LNOFLSH
LOAD_AVE_CVT
LOAD_AVE_TYPE
MACH
LOCALTIME_CACHE
MAIL_USE_FLOCK
MKDIR_PROTOTYPE
MOTIF
MAIL_USE_LOCKF
MAIL_USE_POP
MAIL_USE_SYSTEM_LOCK
MAXPATHLEN
MAX_PRINT_CHARS
MIN_PTY_KERNEL_VERSION
MODE_LINE_BINARY_TEXT
MULTI_KBOARD
MUST_UNDEF__STDC__
NARROWPROTO
NEED_BSDTTY
NEED_ERRNO
NEED_LIBW
NEED_PTEM_H
NEED_SIOCTL
NEED_UNISTD_H
......@@ -151,101 +279,248 @@ NLIST_STRUCT
NOMULTIPLEJOBS
NONSYSTEM_DIR_LIBRARY
NOT_C_CODE
NOT_USING_MOTIF
NO_ABORT
NO_ARG_ARRAY
NO_EDITRES
NO_FILIO_H
NO_HYPHENS_IN_FILENAMES
NO_MATHERR
NO_REMAP
NO_SHARED_LIBS
NO_SIOCTL_H
NO_SOCK_SIGIO
NO_TERMIO
NO_UNION_TYPE
NSIG
NSIG_MINIMUM
OBJECTS_MACHINE
NULL
NULL_DEVICE
N_BADMAG
N_BSSADDR
N_PAGSIZ
N_SYMOFF
N_TRELOFF
N_TXTOFF
ORDINARY_LINK
O_NDELAY
OTHER_FILES
O_APPEND
O_BINARY
O_CREAT
O_EXCL
O_RDONLY
O_RDWR
O_TEXT
O_TRUNC
O_WRONLY
PAGESIZE
PENDING_OUTPUT_COUNT
PERROR
PNTR_COMPARISON_TYPE
POSIX
POSIX_SIGNALS
PREFER_VSUSP
PREFER_VSUSP
PTY_ITERATION
PTY_NAME_SPRINTF
PTY_OPEN
PTY_TTY_NAME_SPRINTF
PURESIZE
READ
REL_ALLOC
PURE_SEG_BITS
RUN_TIME_REMAP
SA_RESTART
SECTION_ALIGNMENT
SEEK
SEGMENT_MASK
SEGSIZ
SEPCHAR
SETPGRP_RELEASES_CTTY
SETUP_SLAVE_PTY
SIGMASKTYPE
SHARABLE_LIB_BUG
SHMKEY
SIGALRM
SIGCHLD
SIGHUP
SIGKILL
SIGNALS_VIA_CHARACTERS
SIGN_EXTEND_CHAR
SIGPIPE
SIGQUIT
SIGTRAP
SIGTYPE
SOCKLEN_TYPE
SOLARIS2
SOLARIS2_4
SPECIAL_EMACS_INT
START_FILES
SVR4
SYSTEM_MALLOC
START_FILES_1
STDC_HEADERS
SYMS_SYSTEM
SYSTEM_PURESIZE_EXTRA
SYSTEM_TYPE
SYSV_PTYS
SYSV_STREAMS
SYSV_SYSTEM_DIR
S_IEXEC
S_IFDIR
S_IFLNK
S_IFMT
S_IREAD
S_IWRITE
Srandom
TAB3
TABDLY
TERMCAP
TERM
TERMCAP_NAME
TERMINFO
TEXT_END
TEXT_START
THIS_IS_CONFIGURE
THIS_IS_MAKEFILE
TIME_WITH_SYS_TIME
TIOCSIGSEND
TM_IN_SYS_TIME
ULIMIT_BREAK_VALUE
UNEXEC
UNIX98_PTYS
USE_CRT_DLL
USE_MAC_IMAGE_IO
USE_MMAP_FOR_BUFFERS
USE_TOOLKIT_SCROLL_BARS
USG
USG5
USG5_4
USG_JOBCTRL
USG_SHARED_LIBRARIES
USG_SUBTTY_WORKS
VALBITS
VIRT_ADDR_VARIES
WCOREDUMP
VMS
WAITTYPE
WAIT_USE_INT
WORDS_BIG_ENDIAN
WRETCODE
X11R5_INHIBIT_I18N
XINT
XOS_NEEDS_TIME_H
XPNTR
XSET
XUINT
X_DEFAULT_FONT
_ABIN32
_MIPS_SZLONG
_POSIX_SOURCE
_AIX
_ARCH_PPC64
_CALLBACK_
_FILE_OFFSET_BITS
_GNUC_
_LP64
_MALLOC_INTERNAL
_NAIVE_DOS_REGS
_VARARGS_
_WINSOCKAPI_
_WINSOCK_H
__ELF__
__FreeBSD__
__FreeBSD_version
__GNUC__
__LITTLE_ENDIAN
__NetBSD__
__OpenBSD__
__STDC__
__arch64__
__cplusplus
__hpux
__ia64__
__linux__
__mc68000__
__mips__
_longjmp
_setjmp
_start
abort
access
alloca
data_start
bcmp
bcopy
brk
bzero
calloc
chdir
chmod
chown
close
const
creat
ctime
drem
dup
dup2
edata
emacs
entry
etext
fatal
fchmod
getpgrp
hp9000s800
execlp
execvp
fcloseall
fdopen
fgetchar
fileno
flushall
fopen
fputchar
free
fsync
ftruncate
fwrite
getdefdir
getdisk
getenv
getpid
getuid
getw
gmtime
i386
index
jmp_buf
longjmp
m68000
init_process
isatty
kill
link
linux
localtime
logb
lseek
m68k
magic
mc68000
malloc
mips
prep
sel
mkdir
mktemp
open
pclose
pipe
popen
putw
random
read
realloc
rename
rindex
rmdir
sbrk
select
sigmask
signal
sigsetmask
sleep
spawnve
srandom
static
strdup
strerror
stricmp
strnicmp
strupr
subprocesses
sun
text_start
sys_nerr
system
temacs
tzname
tzset
umask
unix
unlink
utimbuf
utime
vfork
wait
write
xfree
# arch-tag: bc80061a-1168-4911-9766-46aaf2640250
2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
* unexec.c:
* s/vms.h:
* s/usg5-4-2.h:
* s/sol2-5.h:
......
......@@ -127,17 +127,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* no underscore please */
#define LDAV_SYMBOL "avenrun"
#if 0 /* Supposedly no longer true. */
/* In hpux, for unknown reasons, S_IFLNK is defined even though
symbolic links do not exist.
Make sure our conditionals based on S_IFLNK are not confused.
Here we assume that stat.h is included before config.h
so that we can override it here. */
#undef S_IFLNK
#endif
/* On USG systems these have different names. */
#define index strchr
......
......@@ -65,13 +65,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
/* Define CANNOT_DUMP on machines where unexec does not work.
Then the function dump-emacs will not be defined
and temacs will do (load "loadup") automatically unless told otherwise. */
#if 0
#define CANNOT_DUMP
#endif
/* Define VIRT_ADDR_VARIES if the virtual addresses of
pure and impure space as loaded can vary, and even their
relative order cannot be relied on.
......
......@@ -503,10 +503,6 @@ make_hdr (new, a_out, data_start, bss_start, entry_address, a_name, new_name)
f_thdr.s_size = f_ohdr.tsize;
f_thdr.s_scnptr = sizeof (f_hdr) + sizeof (f_ohdr);
f_thdr.s_scnptr += (f_hdr.f_nscns) * (sizeof (f_thdr));
#ifdef ADJUST_TEXT_SCNHDR_SIZE
/* On some machines, `text size' includes all headers. */
f_thdr.s_size -= f_thdr.s_scnptr;
#endif /* ADJUST_TEST_SCNHDR_SIZE */
lnnoptr = f_thdr.s_lnnoptr;
#ifdef SECTION_ALIGNMENT
/* Some systems require special alignment
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment