search for: r_sym

Displaying 11 results from an estimated 11 matches for "r_sym".

2015 Feb 05
5
[LLVMdev] [lld] Representation of lld::Reference with a fake target
Hi, I need an advice on implementation of a very specific kind of relocations used by MIPS N64 ABI. As usual the main problem is how to pass target specific data over Native/YAML conversion barrier. In this ABI relocation record r_info field in fact consists of five subfields: * r_sym - symbol index * r_ssym - special symbol * r_type3 - third relocation type * r_type2 - second relocation type * r_type - first relocation type Up to three these relocations applied one by one. The first relocation uses an addendum from the relocation record. Each subsequent relocation takes as...
2015 Feb 06
4
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...very specific kind of relocations >> used by MIPS N64 ABI. As usual the main problem is how to pass target >> specific >> data over Native/YAML conversion barrier. >> >> In this ABI relocation record r_info field in fact consists of five >> subfields: >> * r_sym - symbol index >> * r_ssym - special symbol >> * r_type3 - third relocation type >> * r_type2 - second relocation type >> * r_type - first relocation type >> >> Up to three these relocations applied one by one. The first relocation >> uses >> an a...
2012 Jun 07
1
[LLVMdev] How to implement new ELF 64 bit relocation (N64)
...lf64_Xword r_info; /* Symbol index and type of relocation */ } Elf64_Rel; typedef struct { Elf64_Addr r_offset; Elf64_Xword r_info; Elf64_Sxword r_addend; } Elf64_Rela; Whereas N64 has the following format: typedef struct { Elf64_Addr r_offset; /* Address of reference */ Elf64_Word r_sym; /* Symbol index */ Elf64_Byte r_ssym; /* Special symbol */ Elf64_Byte r_type3; /* Relocation type */ Elf64_Byte r_type2; /* Relocation type */ Elf64_Byte r_type; /* Relocation type */ } Elf64_Rel; typedef struct { Elf64_Addr r_offset; /* Address of reference */ Elf64_Word r...
2015 Feb 07
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...dvice on implementation of a very specific kind of relocations > used by MIPS N64 ABI. As usual the main problem is how to pass target > specific > data over Native/YAML conversion barrier. > > In this ABI relocation record r_info field in fact consists of five > subfields: > * r_sym - symbol index > * r_ssym - special symbol > * r_type3 - third relocation type > * r_type2 - second relocation type > * r_type - first relocation type > > Up to three these relocations applied one by one. The first relocation > uses > an addendum from the relocation reco...
2015 Feb 07
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...PS N64 ABI. As usual the main problem is how to pass target > >>> specific > >>> data over Native/YAML conversion barrier. > >>> > >>> In this ABI relocation record r_info field in fact consists of five > >>> subfields: > >>> * r_sym - symbol index > >>> * r_ssym - special symbol > >>> * r_type3 - third relocation type > >>> * r_type2 - second relocation type > >>> * r_type - first relocation type > >>> > >>> Up to three these relocations applied one by...
2015 Feb 09
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...ery specific kind of relocations >>> used by MIPS N64 ABI. As usual the main problem is how to pass target specific >>> data over Native/YAML conversion barrier. >>> >>> In this ABI relocation record r_info field in fact consists of five subfields: >>> * r_sym - symbol index >>> * r_ssym - special symbol >>> * r_type3 - third relocation type >>> * r_type2 - second relocation type >>> * r_type - first relocation type >>> >>> Up to three these relocations applied one by one. The first relocation use...
2015 Feb 07
4
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...arget > >> >>> specific > >> >>> data over Native/YAML conversion barrier. > >> >>> > >> >>> In this ABI relocation record r_info field in fact consists of five > >> >>> subfields: > >> >>> * r_sym - symbol index > >> >>> * r_ssym - special symbol > >> >>> * r_type3 - third relocation type > >> >>> * r_type2 - second relocation type > >> >>> * r_type - first relocation type > >> >>> > >> &gt...
2015 Feb 07
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...>>> specific >> >> >>> data over Native/YAML conversion barrier. >> >> >>> >> >> >>> In this ABI relocation record r_info field in fact consists of five >> >> >>> subfields: >> >> >>> * r_sym - symbol index >> >> >>> * r_ssym - special symbol >> >> >>> * r_type3 - third relocation type >> >> >>> * r_type2 - second relocation type >> >> >>> * r_type - first relocation type >> >> >>&g...
2015 Feb 09
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...by MIPS N64 ABI. As usual the main problem is how to pass target >> specific >>>>> data over Native/YAML conversion barrier. >>>>> >>>>> In this ABI relocation record r_info field in fact consists of five >> subfields: >>>>> * r_sym - symbol index >>>>> * r_ssym - special symbol >>>>> * r_type3 - third relocation type >>>>> * r_type2 - second relocation type >>>>> * r_type - first relocation type >>>>> >>>>> Up to three these relocati...
2016 Feb 08
3
[LLD] Is there any reason to add _GLOBAL_OFFSET_TABLE_ to .dynsym?
When LLD builds a shared library for x86_64 it puts _GLOBAL_OFFSET_TABLE_ to the both .symtab and .dynsym and defines it as a GLOBAL symbol. If later this shared library participates in executable file linking and GNU BFD linked is used for that, this linker shows an error: /usr/bin/ld: a.out: hidden symbol `_GLOBAL_OFFSET_TABLE_' in /usr/lib/x86_64-linux-gnu/crt1.o is referenced by DSO Gold
2015 Feb 07
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...gt; data over Native/YAML conversion barrier. >>>> >> >>> >>>> >> >>> In this ABI relocation record r_info field in fact consists of >>>> five >>>> >> >>> subfields: >>>> >> >>> * r_sym - symbol index >>>> >> >>> * r_ssym - special symbol >>>> >> >>> * r_type3 - third relocation type >>>> >> >>> * r_type2 - second relocation type >>>> >> >>> * r_type - first relocation t...