give embedded modules a helping hand by backing up and restoring their global variables when they are loaded and unloaded

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@56092 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2007-02-22 02:36:00 +00:00
parent a6cbe5d651
commit 1bec2f5bfa
5 changed files with 143 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
#!/bin/sh
cat << EOF
SECTIONS {
.text : { *(.text) }
.data : { __${1}_data_start = . ; *(.data) __${1}_data_end = . ;}
.rodata : { *(.rodata*) }
.bss : { __${1}_bss_start = . ; *(.bss) __${1}_bss_end = . ;}
.debug_abbrev : { *(.debug_abbrev) }
.debug_info : { *(.debug_info) }
.debug_line : { *(.debug_line) }
.debug_macinfo : { *(.debug_macinfo) }
.dtors : { *(.dtors) }
.ctors : { *(.ctors) }
.data.rel.local : { *(.data.rel.local) }
.data.rel.ro.local : { *(.data.rel.ro.local) }
.debug_frame : { *(.debug_frame) }
.eh_frame : { *(.eh_frame) }
.debug_loc : { *(.debug_loc) }
.debug_pubname : { *(.debug_pubname) }
.debug_aranges : { *(.debug_aranges) }
.debug_ranges : { *(.debug_ranges) }
.debug_str : { *(.debug_str) }
.comment : { *(.comment) }
.note.GNU-stack : { *(.note.GNU-stack) }
}
EOF