mirror of
https://github.com/dreamlayers/netbsd-mopd.git
synced 2026-04-20 09:16:21 +00:00
Application of mopd-2.5.3-elf.patch:
* Sun Nov 17 2002 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 2.5.3-15 - modified Makefiles to improve portability: specify "-lelf" last for the linker, define LIBELF in the top-level Makefile to permit overriding (elf) * Sun Nov 11 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 2.5.3-13 - a bug affecting multisegment ELF files again, sigh... (elf) * Sun Nov 11 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl> - 64-bit ELF support (elf) * Sun Nov 11 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl> - pass the entry point address as is as it's more flexible; print ELF file information; bug fixes (elf) * Sat Nov 10 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl> - reject dynamically linked executables; calculate a physical entry point address from the virtual one; bug fixes (elf) * Fri Nov 9 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl> - map ELF segments by their physical addresses to facilitate systems which boot with their memory mapping different from the final one; sort phdrs by ascending addresses; bug fixes (elf) * Thu Nov 8 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl> - took the header block count of MOP images into account (elf) - addedd handling of MOP images with a null block count or size specified in the header (elf) * Sun Oct 28 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl> - fixed a stupid bug causing multisegment ELF files not to be sent properly (elf) * Fri Oct 26 2001 Maciej W. Rozycki <macro@ds2.pg.gda.pl> - added ELF support (elf) Downloaded from: ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3-elf.patch.gz .patch SHA256 = f63818152cd74e551068ea7856e0cc872ddd2f78485cda08a77b3d81a1aa845c Patch history copied from: ftp://ftp.linux-mips.org/pub/linux/mips/people/macro/mopd/mopd-2.5.3-15.spec
This commit is contained in:
committed by
Boris Gjenero
parent
3b606eb2af
commit
8920dbffcd
@@ -1,13 +1,14 @@
|
||||
PROGS = mopd
|
||||
OBJS = mopd.o process.o
|
||||
LIBS = ../common/libcommon.a
|
||||
LIBELF = -lelf
|
||||
|
||||
CPPFLAGS = -I..
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
mopd: $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o mopd $(OBJS) $(LIBS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o mopd $(OBJS) $(LIBS) $(LIBELF)
|
||||
|
||||
../common/libcommon.a:
|
||||
cd ../common && $(MAKE) libcommon.a
|
||||
|
||||
@@ -266,14 +266,11 @@ mopStartLoad(dst, src, dl_rpr, trans)
|
||||
GetFileInfo(dllist[slot].ldfd,
|
||||
&dllist[slot].loadaddr,
|
||||
&dllist[slot].xferaddr,
|
||||
&dllist[slot].aout,
|
||||
&dllist[slot].a_text, &dllist[slot].a_text_fill,
|
||||
&dllist[slot].a_data, &dllist[slot].a_data_fill,
|
||||
&dllist[slot].a_bss, &dllist[slot].a_bss_fill);
|
||||
&dllist[slot].ftype,
|
||||
&dllist[slot].seg);
|
||||
|
||||
dllist[slot].nloadaddr = dllist[slot].loadaddr;
|
||||
dllist[slot].lseek = lseek(dllist[slot].ldfd,0L,SEEK_CUR);
|
||||
dllist[slot].a_lseek = 0;
|
||||
dllist[slot].addr = 0;
|
||||
|
||||
dllist[slot].count = 0;
|
||||
if (dllist[slot].dl_bsz >= MAX_ETH_PAYLOAD)
|
||||
@@ -375,8 +372,6 @@ mopNextLoad(dst, src, new_count, trans)
|
||||
return;
|
||||
}
|
||||
|
||||
dllist[slot].lseek = lseek(dllist[slot].ldfd,0L,SEEK_CUR);
|
||||
|
||||
if (dllist[slot].dl_bsz >= MAX_ETH_PAYLOAD)
|
||||
dllist[slot].dl_bsz = MAX_ETH_PAYLOAD;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user