Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions ld/writex86.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@

#define ABS_TEXT_MAX 64

#define offsetof(struc, mem) ((int) &((struc *) 0)->mem)
#ifndef offsetof
#define offsetof(struc, mem) ((size_t) &((struc *) 0)->mem)
#endif
#define memsizeof(struc, mem) sizeof(((struc *) 0)->mem)

PRIVATE bool_t bits32; /* nonzero for 32-bit executable */
Expand Down Expand Up @@ -194,10 +196,9 @@ bool_pt argxsym;
}
else
{
tempoffset = ld_roundup(symptr->value, 4, bin_off_t);
/* temp kludge quad alignment for 386 */
symptr->value = comsz[seg = symptr->flags & SEGM_MASK];
comsz[seg] += tempoffset;
tempoffset = symptr->value;
symptr->value = ld_roundup(comsz[seg = symptr->flags & SEGM_MASK],tempoffset,bin_off_t);
comsz[seg] = symptr->value+tempoffset;
if (!(symptr->flags & SA_MASK))
symptr->flags |= C_MASK;
}
Expand Down
6 changes: 3 additions & 3 deletions libc/misc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ clean:
rm -f *.o libc.a

$(LIBC)(strtol.o): strtol.c
$(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) $*.c
$(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) -o strtol.o $*.c
$(AR) $(ARFLAGS) $@ $*.o

$(LIBC)(strtod.o): strtod.c
$(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) $*.c
$(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) -o strtod.o $*.c
$(AR) $(ARFLAGS) $@ $*.o

$(LIBC)(crypt.o): crypt.c
$(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) $*.c
$(CC) -c -ansi $(ARCH) $(CCFLAGS) $(DEFS) -o crypt.o $*.c
$(AR) $(ARFLAGS) $@ $*.o