Skip to content

Commit

Permalink
Remove unused symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 16, 2019
1 parent 0ed9bdf commit e0f0ab9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -419,7 +419,7 @@ $(srcdir)/enc/jis/props.h: enc/jis/props.kwd

.$(ASMEXT).@OBJEXT@:
@$(ECHO) assembling $<
$(Q) $(CC) $(ASFLAGS) -o $@ -c $<
$(Q) $(CC) $(ASFLAGS) -DSYMBOL_PREFIX=$(SYMBOL_PREFIX) -o $@ -c $<

.c.$(ASMEXT):
@$(ECHO) translating $<
Expand Down
10 changes: 5 additions & 5 deletions coroutine/amd64/Context.S
Expand Up @@ -5,14 +5,14 @@
## Copyright, 2018, by Samuel Williams. All rights reserved.
##

#define TOKEN_PASTE(x,y) x##y
#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)

.text

# For older linkers
.globl _coroutine_transfer
_coroutine_transfer:
.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer)
PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):

.globl coroutine_transfer
coroutine_transfer:
# Save caller state
pushq %rbp
pushq %rbx
Expand Down
11 changes: 5 additions & 6 deletions coroutine/x86/Context.S
Expand Up @@ -5,14 +5,13 @@
## Copyright, 2018, by Samuel Williams. All rights reserved.
##

.text
#define TOKEN_PASTE(x,y) x##y
#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)

.globl coroutine_transfer
coroutine_transfer:
.text

# For older linkers
.globl _coroutine_transfer
_coroutine_transfer:
.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer)
PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):

# Save caller registers
pushl %ebp
Expand Down

0 comments on commit e0f0ab9

Please sign in to comment.