瀏覽代碼

Make sure we remove -fomit-frame-pointer from the ldso build. It's
inclusion will cause the loader to crash when jumping to the application.

The reason is due to the START macro having a "leave" instruction included
to fixup the stack before starting the app.

David McCullough 20 年之前
父節點
當前提交
f6997e6b87
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      ldso/ldso/Makefile

+ 3 - 0
ldso/ldso/Makefile

@@ -68,6 +68,9 @@ ifeq ($(strip $(FORCE_SHAREABLE_TEXT_SEGMENTS)),y)
 XXFLAGS+=-DFORCE_SHAREABLE_TEXT_SEGMENTS
 endif
 
+#This stuff will not work with -fomit-frame-pointer
+XXFLAGS := $(XXFLAGS:-fomit-frame-pointer=)
+
 all: lib
 
 lib:: _dl_progname.h $(OBJS) $(DLINK_OBJS)