aboutsummaryrefslogtreecommitdiffstats
path: root/src/unexalpha.c
diff options
context:
space:
mode:
authorDan Nicolaescu <[email protected]>2008-07-16 08:06:18 +0000
committerDan Nicolaescu <[email protected]>2008-07-16 08:06:18 +0000
commit132d04752a194336e0ea965245294af64f27226f (patch)
tree1431f9f0381484382c74033ac993f2bfa5fa8c33 /src/unexalpha.c
parent316460cf4825107087fed9a93694d3520b90d91f (diff)
* systty.h: Remove code for Aix on 386, unsupported platform.
* s/ms-w32.h: Remove boilerplate comments. (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused. * s/gnu-linux.h (TERM): Remove support. (HAVE_SYSVIPC): Remove, unused. (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used for this system. * process.c: Remove support for IRIS, unused. Remove support for TERM, not relevant anymore. * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only used with the definition. * s/aix4-2.h (static): Do not undef. * m/ibmrs6000.h: Remove code depending on USG5_4, this file is only used on Aix. (HAVE_SYSVIPC): Remove, unused. * m/hp800.h (CANNOT_DUMP): Do not undef. * m/alpha.h: Fix comment. * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused. (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not used by this configuration. * emacs.c: Remove code depending on USG_SHARED_LIBRARIES. * unexec.c: Remove code depending on HPUX and USG_SHARED_LIBRARIES, not used with this file. Remove code depending on IRIS, unused. Remove if 0-ed code.
Diffstat (limited to 'src/unexalpha.c')
-rw-r--r--src/unexalpha.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/unexalpha.c b/src/unexalpha.c
index 5f711b6e48..604a70b8e2 100644
--- a/src/unexalpha.c
+++ b/src/unexalpha.c
@@ -134,13 +134,6 @@ struct headers {
struct scnhdr section[_MIPS_NSCNS_MAX];
};
-
-
-/* Define name of label for entry point for the dumped executable. */
-
-#ifndef DEFAULT_ENTRY_ADDRESS
-#define DEFAULT_ENTRY_ADDRESS __start
-#endif
void
unexec (new_name, a_name, data_start, bss_start, entry_address)
@@ -271,8 +264,8 @@ unexec (new_name, a_name, data_start, bss_start, entry_address)
nhdr.aout.bsize = 0;
if (entry_address == 0)
{
- extern DEFAULT_ENTRY_ADDRESS ();
- nhdr.aout.entry = (unsigned long)DEFAULT_ENTRY_ADDRESS;
+ extern __start ();
+ nhdr.aout.entry = (unsigned long)__start;
}
else
nhdr.aout.entry = entry_address;