summaryrefslogtreecommitdiff
path: root/src/=unexsgi.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-19 04:56:06 +0000
committerJim Blandy <jimb@redhat.com>1993-05-19 04:56:06 +0000
commit3beb4ae0e090814d803f92db66ef0d856d1cc8c8 (patch)
treea3a1962344e8e6cb12bff4e3a74800e51e8eca91 /src/=unexsgi.c
parent895ea5f63027ee022ab5d22daede330c8f8c1318 (diff)
downloademacs-3beb4ae0e090814d803f92db66ef0d856d1cc8c8.tar.gz
Changes for Silicon Graphics Iris 5D.
* unexelfsgi.c: New file; like unexelf.c, but tolerates program segments above BSS. * m/iris5d.h: New file. * s/irix5-0.h: New file. * process.c [__sgi] (allocate_pty): Give up immediately if pty is inaccessible.
Diffstat (limited to 'src/=unexsgi.c')
-rw-r--r--src/=unexsgi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/=unexsgi.c b/src/=unexsgi.c
index b37e09da2f9..67fc20ccf95 100644
--- a/src/=unexsgi.c
+++ b/src/=unexsgi.c
@@ -630,8 +630,11 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
if ((OLD_SECTION_H (old_bss_index)).sh_addralign > alignment)
alignment = OLD_SECTION_H (old_bss_index).sh_addralign;
+ /* Supposedly this condition is okay for the SGI. */
+#if 0
if (NEW_PROGRAM_H(n).p_vaddr + NEW_PROGRAM_H(n).p_filesz > old_bss_addr)
fatal ("Program segment above .bss in %s\n", old_name, 0);
+#endif
if (NEW_PROGRAM_H(n).p_type == PT_LOAD
&& (round_up ((NEW_PROGRAM_H (n)).p_vaddr
@@ -646,7 +649,7 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
NEW_PROGRAM_H(n).p_filesz += new_data2_size;
NEW_PROGRAM_H(n).p_memsz = NEW_PROGRAM_H(n).p_filesz;
-#if 0 /* Maybe allow section after data2 - does this ever happen? */
+#if 1 /* Maybe allow section after data2 - does this ever happen? */
for (n = new_file_h->e_phnum - 1; n >= 0; n--)
{
if (NEW_PROGRAM_H(n).p_vaddr