search for: assignoffset

Displaying 4 results from an estimated 4 matches for "assignoffset".

Did you mean: assignoffsets
2013 Sep 17
5
[LLVMdev] [lld] Handling non SHF_ALLOC sections.
...nd DefinedAtom.cpp makes assumptions about the permissions of an Atom based on their type, so it's hard to use an existing type. The next problem is in the ELF writer. It currently cannot handle AtomSections that are not in a segment as file offsets and addresses are never set. This means that assignOffsets is not called, and that the atoms within are never added to the _atomToAddressMap. However, we can't just add them to that map with their virtual address, as they don't have a virtual address. We need to use the symbol value, which is the offset into the section. My current hack to fix thi...
2013 Sep 17
0
[LLVMdev] [lld] Handling non SHF_ALLOC sections.
...ences automatically when the definedatom is removed. I think Nick also mentioned about a similiar way a while back. > The next problem is in the ELF writer. It currently cannot handle > AtomSections that are not in a segment as file offsets and addresses are > never set. This means that assignOffsets is not called, and that the atoms > within are never added to the _atomToAddressMap. However, we can't just add > them to that map with their virtual address, as they don't have a virtual > address. We need to use the symbol value, which is the offset into the > section. My cur...
2013 Sep 17
0
[LLVMdev] [lld] Handling non SHF_ALLOC sections.
...mptions > about the permissions of an Atom based on their type, so it's hard to use > an existing type. > > The next problem is in the ELF writer. It currently cannot handle > AtomSections that are not in a segment as file offsets and addresses are > never set. This means that assignOffsets is not called, and that the atoms > within are never added to the _atomToAddressMap. However, we can't just add > them to that map with their virtual address, as they don't have a virtual > address. We need to use the symbol value, which is the offset into the > section. My cur...
2013 Sep 17
1
[LLVMdev] [lld] Handling non SHF_ALLOC sections.
...e it by byte ranges and pull some out. You would actually need to parse the DWARF and rewrite it. > > > The next problem is in the ELF writer. It currently cannot handle >> AtomSections that are not in a segment as file offsets and addresses are >> never set. This means that assignOffsets is not called, and that the atoms >> within are never added to the _atomToAddressMap. However, we can't just >> add >> them to that map with their virtual address, as they don't have a virtual >> address. We need to use the symbol value, which is the offset into the...