Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191458
b: refs/heads/master
c: 9e56529
h: refs/heads/master
v: v3
  • Loading branch information
Roland McGrath authored and H. Peter Anvin committed May 14, 2010
1 parent e4b84d7 commit 69192e2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5967ed87ade85a421ef814296c3c7f182b08c225
refs/heads/master: 9e565292270a2d55524be38835104c564ac8f795
5 changes: 3 additions & 2 deletions trunk/arch/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ sp-$(CONFIG_X86_64) := rsp
cfi := $(call as-instr,.cfi_startproc\n.cfi_rel_offset $(sp-y)$(comma)0\n.cfi_endproc,-DCONFIG_AS_CFI=1)
# is .cfi_signal_frame supported too?
cfi-sigframe := $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1)
KBUILD_AFLAGS += $(cfi) $(cfi-sigframe)
KBUILD_CFLAGS += $(cfi) $(cfi-sigframe)
cfi-sections := $(call as-instr,.cfi_sections .debug_frame,-DCONFIG_AS_CFI_SECTIONS=1)
KBUILD_AFLAGS += $(cfi) $(cfi-sigframe) $(cfi-sections)
KBUILD_CFLAGS += $(cfi) $(cfi-sigframe) $(cfi-sections)

LDFLAGS := -m elf_$(UTS_MACHINE)

Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/x86/include/asm/dwarf2.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@
#define CFI_SIGNAL_FRAME
#endif

#if defined(CONFIG_AS_CFI_SECTIONS) && defined(__ASSEMBLY__)
/*
* Emit CFI data in .debug_frame sections, not .eh_frame sections.
* The latter we currently just discard since we don't do DWARF
* unwinding at runtime. So only the offline DWARF information is
* useful to anyone. Note we should not use this directive if this
* file is used in the vDSO assembly, or if vmlinux.lds.S gets
* changed so it doesn't discard .eh_frame.
*/
.cfi_sections .debug_frame
#endif

#else

/*
Expand Down

0 comments on commit 69192e2

Please sign in to comment.