Some fixes to ashow, and also install it
This commit is contained in:
parent
0b32f6d32f
commit
0633c900a8
2 changed files with 8 additions and 3 deletions
|
@ -165,12 +165,18 @@ showname(namep)
|
||||||
case S_ABS:
|
case S_ABS:
|
||||||
printf("\tabsolute\n");
|
printf("\tabsolute\n");
|
||||||
break;
|
break;
|
||||||
|
case S_CRS:
|
||||||
|
printf("\tcross reference\n");
|
||||||
default:
|
default:
|
||||||
printf("\tin section %d\n", (namep->on_type & S_TYP) - S_MIN);
|
printf("\tin section %d\n", (namep->on_type & S_TYP) - S_MIN);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (namep->on_type & S_EXT) printf("\texternal\n");
|
if (namep->on_type & S_EXT) printf("\texternal\n");
|
||||||
switch (namep->on_type & S_ETC) {
|
if (namep->on_type & S_STB) {
|
||||||
|
printf("\tstab 0x%x\n", namep->on_type >> 8);
|
||||||
|
printf("\tdesc 0x%x\n", namep->on_desc);
|
||||||
|
}
|
||||||
|
else switch (namep->on_type & S_ETC) {
|
||||||
case S_SCT:
|
case S_SCT:
|
||||||
printf("\tsection name\n"); break;
|
printf("\tsection name\n"); break;
|
||||||
case S_LIN:
|
case S_LIN:
|
||||||
|
|
|
@ -10,7 +10,7 @@ INCLUDES = -I$(TARGET_HOME)/h
|
||||||
CFLAGS = $(INCLUDES) $(COPTIONS)
|
CFLAGS = $(INCLUDES) $(COPTIONS)
|
||||||
LINTFLAGS = $(INCLUDES) $(LINTOPTIONS)
|
LINTFLAGS = $(INCLUDES) $(LINTOPTIONS)
|
||||||
|
|
||||||
ALL = anm asize astrip
|
ALL = anm asize astrip ashow
|
||||||
LIBS = $(TARGET_HOME)/modules/lib/libobject.$(LIBSUF)
|
LIBS = $(TARGET_HOME)/modules/lib/libobject.$(LIBSUF)
|
||||||
LINTLIBS = $(UTIL_HOME)/modules/lib/$(LINTPREF)object.$(LINTSUF)
|
LINTLIBS = $(UTIL_HOME)/modules/lib/$(LINTPREF)object.$(LINTSUF)
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ asize: $(SRC_DIR)/asize.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o asize $(SRC_DIR)/asize.c $(LIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) -o asize $(SRC_DIR)/asize.c $(LIBS)
|
||||||
astrip: $(SRC_DIR)/astrip.c
|
astrip: $(SRC_DIR)/astrip.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o astrip $(SRC_DIR)/astrip.c $(LIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) -o astrip $(SRC_DIR)/astrip.c $(LIBS)
|
||||||
#not installed:
|
|
||||||
ashow: $(SRC_DIR)/ashow.c
|
ashow: $(SRC_DIR)/ashow.c
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o ashow $(SRC_DIR)/ashow.c $(LIBS)
|
$(CC) $(CFLAGS) $(LDFLAGS) -o ashow $(SRC_DIR)/ashow.c $(LIBS)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue