sauron_le_noir
Newbie
Karma: +0/-0
Offline
Posts: 4
471.42 points View InventorySend Money to sauron_le_noir
|
 |
« Reply #1 on: August 31, 2009, 12:21:45 AM » |
|
Ok i'm very newbie or i have drink to much alcool. I forgot to link edit the program.
What are the switch that i must use to link edit correctly a program for a psp currently i use psp-ld main.o -o main.elf. How must you declare the .text section so psp-fiximport can handle correctly your program. after link edit i've got this error
[f731@port39 helloworld]$ psp-fixup-imports -v main.elf Loading main.elf, outputting to main.elf Magic 464C457F, Class 01, Data 01, Idver 01 Type 0002, Machine 0008, Version 00000001, Entry 08900018 Phoff 00000034, Shoff 0000124C, Flags 10A20001, Ehsize 00000034 Phentsize 0020, Phnum 0001 Shentsize 0028, Shnum 0000000F, Shstrndx 000C
Section 0: Name 00000000, Type 00000000, Flags 00000000, Addr 00000000 Offset 00000000, Size 00000000, Link 00000000, Info 00000000 Addralign 00000000, Entsize 00000000 pData (nil)
Section 1: .reginfo Name 0000001B, Type 70000006, Flags 00000000, Addr 08900000 Offset 000011AC, Size 00000018, Link 00000000, Info 00000000 Addralign 00000004, Entsize 00000001 pData 0x8af031c
Section 2: .text Name 00000024, Type 00000001, Flags 00000006, Addr 08900018 Offset 00001018, Size 00000028, Link 00000000, Info 00000000 Addralign 00000004, Entsize 00000000 pData 0x8af0188
Section 3: .lib.ent Name 0000002A, Type 00000001, Flags 00000003, Addr 08900040 Offset 00001040, Size 00000010, Link 00000000, Info 00000000 Addralign 00000004, Entsize 00000000 pData 0x8af01b0
Section 4: .lib.ent.btm Name 00000033, Type 00000001, Flags 00000003, Addr 08900050 Offset 00001050, Size 00000004, Link 00000000, Info 00000000 Addralign 00000004, Entsize 00000000 pData 0x8af01c0
Section 5: .lib.stub Name 00000040, Type 00000001, Flags 00000003, Addr 08900054 Offset 00001054, Size 00000000, Link 00000000, Info 00000000 Addralign 00000001, Entsize 00000000 pData 0x8af01c4
Section 6: .lib.stub.btm Name 0000004A, Type 00000001, Flags 00000003, Addr 08900054 Offset 00001054, Size 00000004, Link 00000000, Info 00000000 Addralign 00000004, Entsize 00000000 pData 0x8af01c4
Section 7: .rodata.sceModuleInfo Name 00000058, Type 00000001, Flags 00000002, Addr 08900058 Offset 00001058, Size 00000034, Link 00000000, Info 00000000 Addralign 00000004, Entsize 00000000 pData 0x8af01c8
Section 8: .rodata Name 0000006E, Type 00000001, Flags 00000002, Addr 0890008C Offset 0000108C, Size 00000014, Link 00000000, Info 00000000 Addralign 00000004, Entsize 00000000 pData 0x8af01fc
Section 9: .data Name 00000076, Type 00000001, Flags 00000003, Addr 089001A0 Offset 000011A0, Size 0000000C, Link 00000000, Info 00000000 Addralign 00000004, Entsize 00000000 pData 0x8af0310
Section 10: .sbss Name 0000007C, Type 00000008, Flags 10000003, Addr 089001AC Offset 000011C4, Size 00000000, Link 00000000, Info 00000000 Addralign 00000001, Entsize 00000000 pData 0x8af0334
Section 11: .bss Name 00000082, Type 00000008, Flags 00000003, Addr 089001AC Offset 000011AC, Size 00000000, Link 00000000, Info 00000000 Addralign 00000001, Entsize 00000000 pData 0x8af031c
Section 12: .shstrtab Name 00000011, Type 00000003, Flags 00000000, Addr 00000000 Offset 000011C4, Size 00000087, Link 00000000, Info 00000000 Addralign 00000001, Entsize 00000000 pData 0x8af0334
Section 13: .symtab Name 00000001, Type 00000002, Flags 00000000, Addr 00000000 Offset 000014A4, Size 00000200, Link 0000000E, Info 00000015 Addralign 00000004, Entsize 00000010 pData 0x8af0614
Section 14: .strtab Name 00000009, Type 00000003, Flags 00000000, Addr 00000000 Offset 000016A4, Size 000000B0, Link 00000000, Info 00000000 Addralign 00000001, Entsize 00000000 pData 0x8af0814 ELF Load Base address 08900018 Error, no stub text section found
|