Implement proper "startup-with-shell" support on gdbserver
[deliverable/binutils-gdb.git] / ld / emulparams / i386lynx.sh
index d5fa0a763c706b0819f0c18bc554cedb355130c0..12bc7daa6a35a5a1ef31ac33d3ae5280be016426 100644 (file)
@@ -1,9 +1,21 @@
-SCRIPT_NAME=i386coff
-OUTPUT_FORMAT="coff-i386-lynx"
-# This is what their /lib/init1.o seems to want.
+SCRIPT_NAME=elf
+OUTPUT_FORMAT="elf32-i386"
+CHECK_RELOCS_AFTER_OPEN_INPUT=yes
+NO_RELA_RELOCS=yes
 ENTRY=_main
-# following are dubious
-PAGE_SIZE=0x1000
-TEXT_START_ADDR=0
-NONPAGED_TEXT_START_ADDR=0x1000
+TEXT_BASE=0x0
+DYN_TEXT_BASE=0x00400000
+TEXT_START_ADDR="(DEFINED(_DYNAMIC) ? ${DYN_TEXT_BASE} : ${TEXT_BASE})"
+case ${LD_FLAG} in
+    n|N)       TEXT_START_ADDR=0x1000 ;;
+esac
+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 ARCH=i386
+MACHINE=
+NOP=0x9090
+TEMPLATE_NAME=elf32
+GENERATE_SHLIB_SCRIPT=yes
+ELF_INTERPRETER_NAME=\"/usr/lib/ld.so.1\"
+
+# Leave room of SIZEOF_HEADERS before text.
+EMBEDDED=
This page took 0.023857 seconds and 4 git commands to generate.