Commit 3c51961e0e9e0e20415825af8e9babc2f086ebe0

Authored by bellard
1 parent d014c98c

update


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@120 c046a42c-6fe2-441c-8c8c-71466251a162
Changelog
  1 +version 0.2:
  2 +
  3 + - PowerPC disassembly and ELF symbols output (Rusty Russel)
  4 + - flock support (Rusty Russel)
  5 + - ugetrlimit support (Rusty Russel)
  6 + - fstat64 fix (Rusty Russel)
  7 + - initial Alpha port (Falk Hueffner)
  8 + - initial IA64 port (Matt Wilson)
  9 + - initial Sparc and Sparc64 port (David S. Miller)
  10 +
1 11 version 0.1.6:
2 12  
3 13 - automatic library search system. QEMU can now work with unpatched
... ...
  1 +- fix gcc 2.96 compile bug
1 2 - fix thread locks
2 3 - optimize translated cache chaining (DLL PLT-like system)
3   -- fix thread stack liberation (use kernel 2.5.xxx CLONE_CHILD_CLEARTID)
  4 +- fix thread stack freeing (use kernel 2.5.x CLONE_CHILD_CLEARTID)
4 5 - fix x86 stack allocation
5 6 - fix iret/lret restarting
6 7 - more syscalls (in particular all 64 bit ones, IPCs, fix 64 bit
7 8 issues, fix 16 bit uid issues)
8 9 - finish signal handing (fp87 state, more siginfo conversions)
9   -- verify thread support (clone() and various locks)
10   -- make it self runnable (handle self modifying code, relocate stack
11   - and dyn loader)
12 10 - fix FPU exceptions (in particular: gen_op_fpush not before mem load)
  11 +- handle self-modifying code (track mmap and mark all pages containing
  12 + translated code as readonly. use a custom signal handler to flush
  13 + parts of the translation cache if write access to a readonly page
  14 + containing translated code).
  15 +- use gcc to compile to static code
... ...
s390.ld 0 → 100644
  1 +OUTPUT_FORMAT("elf32-s390", "elf32-s390",
  2 + "elf32-s390")
  3 +OUTPUT_ARCH(s390:31-bit)
  4 +ENTRY(_start)
  5 +SEARCH_DIR("/usr/s390-redhat-linux/lib"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib");
  6 +/* Do we need any of these for elf?
  7 + __DYNAMIC = 0; */
  8 +SECTIONS
  9 +{
  10 + /* Read-only sections, merged into text segment: */
  11 + . = 0x60000000 + SIZEOF_HEADERS;
  12 + .interp : { *(.interp) }
  13 + .hash : { *(.hash) }
  14 + .dynsym : { *(.dynsym) }
  15 + .dynstr : { *(.dynstr) }
  16 + .gnu.version : { *(.gnu.version) }
  17 + .gnu.version_d : { *(.gnu.version_d) }
  18 + .gnu.version_r : { *(.gnu.version_r) }
  19 + .rel.dyn :
  20 + {
  21 + *(.rel.init)
  22 + *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
  23 + *(.rel.fini)
  24 + *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
  25 + *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
  26 + *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
  27 + *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
  28 + *(.rel.ctors)
  29 + *(.rel.dtors)
  30 + *(.rel.got)
  31 + *(.rel.sdata .rel.sdata.* .rel.gnu.linkonce.s.*)
  32 + *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*)
  33 + *(.rel.sdata2 .rel.sdata2.* .rel.gnu.linkonce.s2.*)
  34 + *(.rel.sbss2 .rel.sbss2.* .rel.gnu.linkonce.sb2.*)
  35 + *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
  36 + }
  37 + .rela.dyn :
  38 + {
  39 + *(.rela.init)
  40 + *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
  41 + *(.rela.fini)
  42 + *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
  43 + *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
  44 + *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
  45 + *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
  46 + *(.rela.ctors)
  47 + *(.rela.dtors)
  48 + *(.rela.got)
  49 + *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*)
  50 + *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*)
  51 + *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*)
  52 + *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*)
  53 + *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
  54 + }
  55 + .rel.plt : { *(.rel.plt) }
  56 + .rela.plt : { *(.rela.plt) }
  57 + .init :
  58 + {
  59 + KEEP (*(.init))
  60 + } =0x07070707
  61 + .plt : { *(.plt) }
  62 + .text :
  63 + {
  64 + *(.text .stub .text.* .gnu.linkonce.t.*)
  65 + /* .gnu.warning sections are handled specially by elf32.em. */
  66 + *(.gnu.warning)
  67 + } =0x07070707
  68 + .fini :
  69 + {
  70 + KEEP (*(.fini))
  71 + } =0x07070707
  72 + PROVIDE (__etext = .);
  73 + PROVIDE (_etext = .);
  74 + PROVIDE (etext = .);
  75 + .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
  76 + .rodata1 : { *(.rodata1) }
  77 + .sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) }
  78 + .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) }
  79 + .eh_frame_hdr : { *(.eh_frame_hdr) }
  80 + /* Adjust the address for the data segment. We want to adjust up to
  81 + the same address within the page on the next page up. */
  82 + . = ALIGN(0x1000) + (. & (0x1000 - 1));
  83 + /* Ensure the __preinit_array_start label is properly aligned. We
  84 + could instead move the label definition inside the section, but
  85 + the linker would then create the section even if it turns out to
  86 + be empty, which isn't pretty. */
  87 + . = ALIGN(32 / 8);
  88 + PROVIDE (__preinit_array_start = .);
  89 + .preinit_array : { *(.preinit_array) }
  90 + PROVIDE (__preinit_array_end = .);
  91 + PROVIDE (__init_array_start = .);
  92 + .init_array : { *(.init_array) }
  93 + PROVIDE (__init_array_end = .);
  94 + PROVIDE (__fini_array_start = .);
  95 + .fini_array : { *(.fini_array) }
  96 + PROVIDE (__fini_array_end = .);
  97 + .data :
  98 + {
  99 + *(.data .data.* .gnu.linkonce.d.*)
  100 + SORT(CONSTRUCTORS)
  101 + }
  102 + .data1 : { *(.data1) }
  103 + .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  104 + .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  105 + .eh_frame : { KEEP (*(.eh_frame)) }
  106 + .gcc_except_table : { *(.gcc_except_table) }
  107 + .dynamic : { *(.dynamic) }
  108 + .ctors :
  109 + {
  110 + /* gcc uses crtbegin.o to find the start of
  111 + the constructors, so we make sure it is
  112 + first. Because this is a wildcard, it
  113 + doesn't matter if the user does not
  114 + actually link against crtbegin.o; the
  115 + linker won't look for a file to match a
  116 + wildcard. The wildcard also means that it
  117 + doesn't matter which directory crtbegin.o
  118 + is in. */
  119 + KEEP (*crtbegin.o(.ctors))
  120 + /* We don't want to include the .ctor section from
  121 + from the crtend.o file until after the sorted ctors.
  122 + The .ctor section from the crtend file contains the
  123 + end of ctors marker and it must be last */
  124 + KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors))
  125 + KEEP (*(SORT(.ctors.*)))
  126 + KEEP (*(.ctors))
  127 + }
  128 + .dtors :
  129 + {
  130 + KEEP (*crtbegin.o(.dtors))
  131 + KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors))
  132 + KEEP (*(SORT(.dtors.*)))
  133 + KEEP (*(.dtors))
  134 + }
  135 + .jcr : { KEEP (*(.jcr)) }
  136 + .got : { *(.got.plt) *(.got) }
  137 + /* We want the small data sections together, so single-instruction offsets
  138 + can access them all, and initialized data all before uninitialized, so
  139 + we can shorten the on-disk segment size. */
  140 + .sdata :
  141 + {
  142 + *(.sdata .sdata.* .gnu.linkonce.s.*)
  143 + }
  144 + _edata = .;
  145 + PROVIDE (edata = .);
  146 + __bss_start = .;
  147 + .sbss :
  148 + {
  149 + PROVIDE (__sbss_start = .);
  150 + PROVIDE (___sbss_start = .);
  151 + *(.dynsbss)
  152 + *(.sbss .sbss.* .gnu.linkonce.sb.*)
  153 + *(.scommon)
  154 + PROVIDE (__sbss_end = .);
  155 + PROVIDE (___sbss_end = .);
  156 + }
  157 + .bss :
  158 + {
  159 + *(.dynbss)
  160 + *(.bss .bss.* .gnu.linkonce.b.*)
  161 + *(COMMON)
  162 + /* Align here to ensure that the .bss section occupies space up to
  163 + _end. Align after .bss to ensure correct alignment even if the
  164 + .bss section disappears because there are no input sections. */
  165 + . = ALIGN(32 / 8);
  166 + }
  167 + . = ALIGN(32 / 8);
  168 + _end = .;
  169 + PROVIDE (end = .);
  170 + /* Stabs debugging sections. */
  171 + .stab 0 : { *(.stab) }
  172 + .stabstr 0 : { *(.stabstr) }
  173 + .stab.excl 0 : { *(.stab.excl) }
  174 + .stab.exclstr 0 : { *(.stab.exclstr) }
  175 + .stab.index 0 : { *(.stab.index) }
  176 + .stab.indexstr 0 : { *(.stab.indexstr) }
  177 + .comment 0 : { *(.comment) }
  178 + /* DWARF debug sections.
  179 + Symbols in the DWARF debugging sections are relative to the beginning
  180 + of the section so we begin them at 0. */
  181 + /* DWARF 1 */
  182 + .debug 0 : { *(.debug) }
  183 + .line 0 : { *(.line) }
  184 + /* GNU DWARF 1 extensions */
  185 + .debug_srcinfo 0 : { *(.debug_srcinfo) }
  186 + .debug_sfnames 0 : { *(.debug_sfnames) }
  187 + /* DWARF 1.1 and DWARF 2 */
  188 + .debug_aranges 0 : { *(.debug_aranges) }
  189 + .debug_pubnames 0 : { *(.debug_pubnames) }
  190 + /* DWARF 2 */
  191 + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
  192 + .debug_abbrev 0 : { *(.debug_abbrev) }
  193 + .debug_line 0 : { *(.debug_line) }
  194 + .debug_frame 0 : { *(.debug_frame) }
  195 + .debug_str 0 : { *(.debug_str) }
  196 + .debug_loc 0 : { *(.debug_loc) }
  197 + .debug_macinfo 0 : { *(.debug_macinfo) }
  198 + /* SGI/MIPS DWARF 2 extensions */
  199 + .debug_weaknames 0 : { *(.debug_weaknames) }
  200 + .debug_funcnames 0 : { *(.debug_funcnames) }
  201 + .debug_typenames 0 : { *(.debug_typenames) }
  202 + .debug_varnames 0 : { *(.debug_varnames) }
  203 +}
  204 +
... ...
tests/.cvsignore
... ... @@ -3,16 +3,10 @@
3 3 hello
4 4 sha1.test.c
5 5 sha1.c
6   - op.c
7 6 test-i386
8 7 sha1
9 8 testclone
10   - interp.h
11   - interploop.c
12 9 .gdb_history
13   - cachegrind.out
14   - interp.c
15   - interp
16 10 testthread
17 11 test-i386.s
18 12 test-i386.ref
... ...
tests/Makefile
... ... @@ -32,7 +32,7 @@ test_path: test_path.c
32 32 # i386 emulation test (test various opcodes) */
33 33 test-i386: test-i386.c test-i386-code16.S \
34 34 test-i386.h test-i386-shift.h test-i386-muldiv.h
35   - $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ test-i386.c test-i386-code16.S -lm
  35 + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ test-i386.c test-i386-code16.S -lm
36 36  
37 37 test: test-i386
38 38 ifeq ($(ARCH),i386)
... ...