On Wed, 11 Sep 2013, Hendrik Leppkes wrote:

> From: Loren Merritt <[email protected]>
>
> Now RET checks whether it immediately follows a branch, so the programmer 
> dosen't have to keep track of that condition.
> REP_RET is still needed manually when it's a branch target, but that's much 
> rarer.

> The implementation involves lots of spurious labels, but that's ok because we 
> strip them.

That's true of x264's buildsystem, but not libav yet. So import that patch too:

---
 configure   | 3 +++
 library.mak | 1 +
 2 files changed, 4 insertions(+)

diff --git a/configure b/configure
index e6f8b52..fce4d25 100755
--- a/configure
+++ b/configure
@@ -1973,6 +1973,7 @@ nm_default="nm -g"
 objformat="elf"
 pkg_config_default=pkg-config
 ranlib="ranlib"
+strip="strip"
 yasmexe="yasm"
 
 nogas=":"
@@ -2231,6 +2232,7 @@ cc_default="${cross_prefix}${cc_default}"
 nm_default="${cross_prefix}${nm_default}"
 pkg_config_default="${cross_prefix}${pkg_config_default}"
 ranlib="${cross_prefix}${ranlib}"
+strip="${cross_prefix}${strip}"
 
 sysinclude_default="${sysroot}/usr/include"
 
@@ -4140,6 +4142,7 @@ AR=$ar
 ARFLAGS=$arflags
 AR_O=$ar_o
 RANLIB=$ranlib
+STRIP=$strip
 LN_S=$ln_s
 CPPFLAGS=$CPPFLAGS
 CFLAGS=$CFLAGS
diff --git a/library.mak b/library.mak
index 88d33dc..58f6360 100644
--- a/library.mak
+++ b/library.mak
@@ -25,6 +25,7 @@ $(SUBDIR)%-test.i: $(SUBDIR)%.c
 $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
        $(DEPYASM) $(YASMFLAGS) -I $(<D)/ -M -o $@ $< > $(@:.o=.d)
        $(YASM) $(YASMFLAGS) -I $(<D)/ -o $@ $<
+       -@ $(if $(STRIP), $(STRIP) -wN '..@*' $@)
 
 LIBOBJS := $(OBJS) $(SUBDIR)%.h.o $(TESTOBJS)
 $(LIBOBJS) $(LIBOBJS:.o=.i):   CPPFLAGS += -DHAVE_AV_CONFIG_H
-- 
1.8.3.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to