Changeset 1e00216 in mainline
- Timestamp:
- 2011-02-02T20:35:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 86d7bfa
- Parents:
- c5f0bff
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/_link.ld.in
rc5f0bff r1e00216 49 49 } 50 50 51 #ifdef CONFIG_LINE_DEBUG 52 .comment 0 : { *(.comment); } 53 .debug_abbrev 0 : { *(.debug_abbrev); } 54 .debug_aranges 0 : { *(.debug_aranges); } 55 .debug_info 0 : { *(.debug_info); } 56 .debug_line 0 : { *(.debug_line); } 57 .debug_loc 0 : { *(.debug_loc); } 58 .debug_pubnames 0 : { *(.debug_pubnames); } 59 .debug_pubtypes 0 : { *(.debug_pubtypes); } 60 .debug_ranges 0 : { *(.debug_ranges); } 61 .debug_str 0 : { *(.debug_str); } 62 #endif 63 51 64 /DISCARD/ : { 52 *(.note.GNU-stack); 53 *(.comment); 65 *(*); 54 66 } 55 67 -
kernel/generic/src/lib/elf.c
rc5f0bff r1e00216 157 157 case PT_NULL: 158 158 case PT_PHDR: 159 case PT_NOTE: 159 160 break; 160 161 case PT_LOAD: … … 173 174 break; 174 175 case PT_SHLIB: 175 case PT_NOTE:176 176 case PT_LOPROC: 177 177 case PT_HIPROC: -
uspace/Makefile.common
rc5f0bff r1e00216 135 135 endif 136 136 137 ifeq ($(CONFIG_LINE_DEBUG),y) 138 GCC_CFLAGS += -g 139 ICC_CFLAGS += -g 140 SUNCC_CFLAGS += -g 141 CLANG_CFLAGS += -g 142 endif 143 137 144 ## Setup platform configuration 138 145 # -
uspace/lib/c/arch/amd64/_link.ld.in
rc5f0bff r1e00216 5 5 text PT_LOAD FLAGS(5); 6 6 data PT_LOAD FLAGS(6); 7 debug PT_NOTE; 7 8 } 8 9 … … 13 14 *(.init); 14 15 } :text 16 15 17 .text : { 16 18 *(.text); 17 19 *(.rodata*); 18 20 } :text 19 21 20 22 . = . + 0x1000; 21 23 22 24 .data : { 23 25 *(.data); 24 26 } :data 27 25 28 .tdata : { 26 29 _tdata_start = .; … … 31 34 _tbss_end = .; 32 35 } :data 36 33 37 _tls_alignment = ALIGNOF(.tdata); 38 34 39 .bss : { 35 40 *(COMMON); 36 41 *(.bss); 37 42 } :data 38 43 39 44 . = ALIGN(0x1000); 40 45 _heap = .; 46 47 #ifdef CONFIG_LINE_DEBUG 48 .comment 0 : { *(.comment); } :debug 49 .debug_abbrev 0 : { *(.debug_abbrev); } :debug 50 .debug_aranges 0 : { *(.debug_aranges); } :debug 51 .debug_info 0 : { *(.debug_info); } :debug 52 .debug_line 0 : { *(.debug_line); } :debug 53 .debug_loc 0 : { *(.debug_loc); } :debug 54 .debug_pubnames 0 : { *(.debug_pubnames); } :debug 55 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug 56 .debug_ranges 0 : { *(.debug_ranges); } :debug 57 .debug_str 0 : { *(.debug_str); } :debug 58 #endif 41 59 42 60 /DISCARD/ : { -
uspace/lib/c/arch/ia32/_link.ld.in
rc5f0bff r1e00216 5 5 text PT_LOAD FLAGS(5); 6 6 data PT_LOAD FLAGS(6); 7 debug PT_NOTE; 7 8 } 8 9 … … 43 44 44 45 . = ALIGN(0x1000); 46 _heap = .; 45 47 46 _heap = .; 48 #ifdef CONFIG_LINE_DEBUG 49 .comment 0 : { *(.comment); } :debug 50 .debug_abbrev 0 : { *(.debug_abbrev); } :debug 51 .debug_aranges 0 : { *(.debug_aranges); } :debug 52 .debug_info 0 : { *(.debug_info); } :debug 53 .debug_line 0 : { *(.debug_line); } :debug 54 .debug_loc 0 : { *(.debug_loc); } :debug 55 .debug_pubnames 0 : { *(.debug_pubnames); } :debug 56 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug 57 .debug_ranges 0 : { *(.debug_ranges); } :debug 58 .debug_str 0 : { *(.debug_str); } :debug 59 #endif 47 60 48 61 /DISCARD/ : { -
uspace/srv/loader/arch/amd64/_link.ld.in
rc5f0bff r1e00216 1 /* 2 * The difference from _link.ld.in for regular statically-linked apps 3 * is the base address and the special interp section. 4 */ 5 1 6 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 2 7 ENTRY(__entry) … … 6 11 text PT_LOAD FLAGS(5); 7 12 data PT_LOAD FLAGS(6); 13 debug PT_NOTE; 8 14 } 9 15 … … 11 17 .interp : { 12 18 *(.interp); 13 } : 14 15 /* . = 0x0000700000001000; */19 } :interp 20 21 /* . = 0x0000700000001000; */ 16 22 . = 0x70001000; 17 23 … … 19 25 *(.init); 20 26 } :text 27 21 28 .text : { 22 29 *(.text); … … 27 34 *(.data); 28 35 } :data 36 29 37 .tdata : { 30 38 _tdata_start = .; … … 32 40 _tdata_end = .; 33 41 } :data 42 34 43 .tbss : { 35 44 _tbss_start = .; … … 37 46 _tbss_end = .; 38 47 } :data 48 39 49 _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss)); 50 40 51 .bss : { 41 52 *(COMMON); 42 53 *(.bss); 43 54 } :data 44 55 45 56 . = ALIGN(0x1000); 46 57 _heap = .; 58 59 #ifdef CONFIG_LINE_DEBUG 60 .comment 0 : { *(.comment); } :debug 61 .debug_abbrev 0 : { *(.debug_abbrev); } :debug 62 .debug_aranges 0 : { *(.debug_aranges); } :debug 63 .debug_info 0 : { *(.debug_info); } :debug 64 .debug_line 0 : { *(.debug_line); } :debug 65 .debug_loc 0 : { *(.debug_loc); } :debug 66 .debug_pubnames 0 : { *(.debug_pubnames); } :debug 67 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug 68 .debug_ranges 0 : { *(.debug_ranges); } :debug 69 .debug_str 0 : { *(.debug_str); } :debug 70 #endif 47 71 48 72 /DISCARD/ : { 49 73 *(*); 50 74 } 51 52 75 } -
uspace/srv/loader/arch/ia32/_link.ld.in
rc5f0bff r1e00216 3 3 * is the base address and the special interp section. 4 4 */ 5 5 6 STARTUP(LIBC_PREFIX/arch/UARCH/src/entry.o) 6 7 ENTRY(__entry) … … 10 11 text PT_LOAD FILEHDR PHDRS FLAGS(5); 11 12 data PT_LOAD FLAGS(6); 13 debug PT_NOTE; 12 14 } 13 15 … … 53 55 54 56 . = ALIGN(0x1000); 57 _heap = .; 55 58 56 _heap = .; 59 #ifdef CONFIG_LINE_DEBUG 60 .comment 0 : { *(.comment); } :debug 61 .debug_abbrev 0 : { *(.debug_abbrev); } :debug 62 .debug_aranges 0 : { *(.debug_aranges); } :debug 63 .debug_info 0 : { *(.debug_info); } :debug 64 .debug_line 0 : { *(.debug_line); } :debug 65 .debug_loc 0 : { *(.debug_loc); } :debug 66 .debug_pubnames 0 : { *(.debug_pubnames); } :debug 67 .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug 68 .debug_ranges 0 : { *(.debug_ranges); } :debug 69 .debug_str 0 : { *(.debug_str); } :debug 70 #endif 57 71 58 72 /DISCARD/ : { -
uspace/srv/loader/elf_load.c
rc5f0bff r1e00216 300 300 case PT_NULL: 301 301 case PT_PHDR: 302 case PT_NOTE: 302 303 break; 303 304 case PT_LOAD: … … 310 311 case PT_DYNAMIC: 311 312 case PT_SHLIB: 312 case PT_NOTE:313 313 case PT_LOPROC: 314 314 case PT_HIPROC:
Note:
See TracChangeset
for help on using the changeset viewer.