mirror of
https://github.com/golang/go
synced 2024-11-25 07:27:57 -07:00
fix build:
install runtime lib in correct location. fix one bad type definition in defs.h. clear out $GOROOT/lib in clean.bash. TBR=r OCL=26691 CL=26691
This commit is contained in:
parent
80f4ab47ee
commit
85e014a27e
@ -4,6 +4,7 @@
|
|||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
rm -f $GOROOT/pkg/*.[6a]
|
rm -f $GOROOT/pkg/*.[6a]
|
||||||
|
rm -f $GOROOT/lib/*.[6a]
|
||||||
for i in lib9 libbio libmach_amd64 libregexp cmd runtime lib
|
for i in lib9 libbio libmach_amd64 libregexp cmd runtime lib
|
||||||
do
|
do
|
||||||
cd $i
|
cd $i
|
||||||
|
@ -26,6 +26,7 @@ OFILES=\
|
|||||||
mfixalloc.$O\
|
mfixalloc.$O\
|
||||||
mgc0.$O\
|
mgc0.$O\
|
||||||
mheap.$O\
|
mheap.$O\
|
||||||
|
mheapmap64.$O\
|
||||||
msize.$O\
|
msize.$O\
|
||||||
print.$O\
|
print.$O\
|
||||||
proc.$O\
|
proc.$O\
|
||||||
@ -49,7 +50,7 @@ HFILES=\
|
|||||||
$(GOOS)/$(GOARCH)/defs.h\
|
$(GOOS)/$(GOARCH)/defs.h\
|
||||||
|
|
||||||
install: $(LIB) runtime.acid
|
install: $(LIB) runtime.acid
|
||||||
cp $(LIB) $(GOROOT)/lib_$(GOARCH)_$(GOOS).a
|
cp $(LIB) $(GOROOT)/lib/lib_$(GOARCH)_$(GOOS).a
|
||||||
cp runtime.acid $(GOROOT)/acid/runtime.acid
|
cp runtime.acid $(GOROOT)/acid/runtime.acid
|
||||||
|
|
||||||
$(LIB): $(OFILES)
|
$(LIB): $(OFILES)
|
||||||
|
@ -80,9 +80,9 @@ typedef struct MachPort MachPort;
|
|||||||
struct MachPort {
|
struct MachPort {
|
||||||
uint32 name;
|
uint32 name;
|
||||||
uint32 pad1;
|
uint32 pad1;
|
||||||
uint32 pad2;
|
uint16 pad2;
|
||||||
uint32 disposition;
|
uint8 disposition;
|
||||||
uint32 type;
|
uint8 type;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct StackT StackT;
|
typedef struct StackT StackT;
|
||||||
|
@ -55,7 +55,7 @@ sighandler(int32 sig, Siginfo *info, void *context)
|
|||||||
r = &mc->ss;
|
r = &mc->ss;
|
||||||
|
|
||||||
printf("Faulting address: %p\n", info->si_addr);
|
printf("Faulting address: %p\n", info->si_addr);
|
||||||
printf("PC=%X\n", r->rip);
|
printf("pc: %X\n", r->rip);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
if(gotraceback()){
|
if(gotraceback()){
|
||||||
|
Loading…
Reference in New Issue
Block a user