Advertisement
Guest User

Untitled

a guest
Oct 27th, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. GNU ld (GNU Binutils) 2.43.1
  2. Supported emulations:
  3. elf_i386
  4. elf_iamcu
  5. opened script file arch/i386/linker.ld
  6. using external linker script: arch/i386/linker.ld
  7. ==================================================
  8. /* the bootloader will look at this image and start execution at the symbol
  9. designated at the entry point */
  10. ENTRY(_start)
  11.  
  12. /* tell where the various sections of the object files will be put in the final
  13. kernel image */
  14. SECTIONS
  15. {
  16. /* begin putting sections at 1 MiB, a conventional place for kernels to be
  17. loaded at by the bootloader */
  18. . = 1M;
  19.  
  20. /* first put the multiboot header as it is required to be put very early
  21. early in the image or the bootloader won't recognize the file format.
  22. next we'll put the .text section. */
  23. .text BLOCK(4K) : ALIGN(4K)
  24. {
  25. *(.multiboot)
  26. *(.text)
  27. }
  28.  
  29. /* read-only data */
  30. .rodata BLOCK(4K) : ALIGN(4K)
  31. {
  32. *(.rodata)
  33. }
  34.  
  35. /* read-write data (initialized) */
  36. .data BLOCK(4K) : ALIGN(4K)
  37. {
  38. *(.data)
  39. }
  40.  
  41. /* read-write data (uninitialized) and stack */
  42. .bss BLOCK(4k) : ALIGN(4K)
  43. {
  44. *(COMMON)
  45. *(.bss)
  46. }
  47.  
  48. /* the compiler may produce other sections, put them in the proper place in
  49. this file, if you'd like to include them in the final kernel */
  50. }
  51. ==================================================
  52. /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/bin/ld: mode elf_i386
  53. attempt to open arch/i386/crti.o succeeded
  54. arch/i386/crti.o
  55. attempt to open arch/i386/crtbegin.o succeeded
  56. arch/i386/crtbegin.o
  57. attempt to open arch/i386/boot.o succeeded
  58. arch/i386/boot.o
  59. attempt to open arch/i386/tty.o succeeded
  60. arch/i386/tty.o
  61. attempt to open kernel/kernel.o failed
  62. /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/bin/ld: cannot find kernel/kernel.o: No such file or directory
  63. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libk.so failed
  64. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libk.a failed
  65. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/lib/libk.so failed
  66. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/../../../../i686-elf/lib/libk.a failed
  67. attempt to open /home/hbag/hilbos/sysroot/usr/lib/libk.so failed
  68. attempt to open /home/hbag/hilbos/sysroot/usr/lib/libk.a succeeded
  69. /home/hbag/hilbos/sysroot/usr/lib/libk.a
  70. (/home/hbag/hilbos/sysroot/usr/lib/libk.a)strlen.libk.o
  71. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.so failed
  72. attempt to open /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.a succeeded
  73. /home/hbag/opt/cross/lib/gcc/i686-elf/14.2.0/libgcc.a
  74. attempt to open arch/i386/crtend.o succeeded
  75. arch/i386/crtend.o
  76. attempt to open arch/i386/crtn.o succeeded
  77. arch/i386/crtn.o
  78. collect2: error: ld returned 1 exit status
  79. make: *** [Makefile:56: myos.kernel] Error 1
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement