search for: atanasyan

Displaying 20 results from an estimated 129 matches for "atanasyan".

2015 Apr 03
2
[LLVMdev] [lld][RFC] TargetLayout class removing
...'m wondering if we even need TargetLayout. > > DefaultLayout is the only derived class of Layout. TargetLayout is the only > derived class of DefaultLayout. It looks like we can merge Layout, > DefaultLayout and TargetLayout into one. > > On Fri, Apr 3, 2015 at 12:36 PM, Simon Atanasyan <simon at atanasyan.com> > wrote: >> >> Hi Rui, Shankar, >> >> Do we really need empty TargetLayout class? No we have the following >> hierarchy: >> >> Layout <- DefaultLayout<> <- TargetLayout<> <- xxxTargetLayout<> >...
2014 Apr 02
4
[LLVMdev] [yaml2obj] ELF relocation support
Hi, On Wed, Apr 2, 2014 at 1:03 AM, Michael Spencer <bigcheesegs at gmail.com> wrote: > On Mon, Mar 31, 2014 at 10:54 AM, Simon Atanasyan <simon at atanasyan.com> wrote: >> As far as I understand now it is impossible to generate ELF object >> file with relocation sections using yaml2obj tool. I plan to support >> ELF relocations in the yaml2obj. Does anybody work on it already or >> plan to start this ta...
2018 Nov 03
2
mips builders on LLVM buildbot?
...el_l_sanders at apple.com> wrote: > > Hi Galina, > > I'm sad that they appear to have been abandoned but no objections from me as I'm not the admin for any of these anymore. A couple of them were taken over by a colleague when I left but he too has left MIPS since then. Simon Atanasyan might be able to find the owners if there still are any. > > > On Nov 2, 2018, at 13:29, Galina Kistanova via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > > > Hello everyone, > > > > There are few abandoned mips builders on LLVM buildbot: > > > &g...
2014 Nov 11
6
[LLVMdev] [lld][ELF] How to transfer st_other field value from input to output file
...one at offset zero that sets the encoding for the whole function. So determining the thumbness requires scanning the References. But it turns out in practice the scan is rarely done because the result can be cached by whatever algorithm needs that info. -Nick On Nov 11, 2014, at 6:50 AM, Simon Atanasyan <simon at atanasyan.com> wrote: > I was too optimistic. It is possible to use the contentTypes field for > handling STO_MICROMIPS and I have a working solution but the solution > is really ugly. This approach has at least two the following > shortcomings: > > 1. A MIPS ELF...
2016 Nov 29
2
[LLD] Writing thunks before the corresponding section
...for MIPS thunks. I will try to implement this idea. On Thu, Sep 8, 2016 at 1:44 AM, Rui Ueyama <ruiu at google.com> wrote: > This seems to be a reasonable optimization, and I don't have any particular > concern about implementing it. > > On Wed, Sep 7, 2016 at 6:58 AM, Simon Atanasyan <simon at atanasyan.com> wrote: >> >> Hi, >> >> MIPS LA25 thunk is used to call PIC function from non-PIC code. >> Usually it contains three instructions: >> >> lui $25, %hi(func) >> addiu $25, $25, %lo(func) >> j func >> >&...
2015 Apr 20
2
[LLVMdev] [lld] Linker cannot handle sections with non-unique names
...couldn't add because of yaml2obj support. I > am adding that support to yaml2obj and obj2yaml and push this patch later. > I don't like the idea of adding binary files to the test repo as we need to > keep cleaning up later. > > > > > On Apr 20, 2015, at 03:34, Simon Atanasyan <simon at atanasyan.com> wrote: > > > >> On Mon, Apr 20, 2015 at 1:44 AM, Shankar Easwaran <shankarke at gmail.com> > wrote: > >> Attached patch fixes the issue. > > > > Thanks for the quick fix. The patch LGTM if you add a test case. > > Unf...
2016 Nov 30
0
[LLD] Writing thunks before the corresponding section
...ind you is that there is a place in Writer.cpp where we assume all synthetic sections were appended to end of Sections list. Look for `llvm::reverse`. If you add synthetic section thunks right before/after non-synthetic sections, you also want to change that. On Tue, Nov 29, 2016 at 1:18 PM, Simon Atanasyan <simon at atanasyan.com> wrote: > Hi, > > Sorry for delay with reply. > > It looks like now thunks can be implemented as a synthetic sections. > In that case we give flexible solution and will be able to put thunks > before/after related sections, using different alignme...
2014 Jul 28
2
[LLVMdev] [RFC] Install yaml2obj and obj2yaml utilities together with other LLVM tools
...g these tools (besides possibly bloating packages, which should > probably be evaluated). Personally I don't think these tools are very useful > outside of their testing role so I wouldn't bother installing them. > > -- Sean Silva > > On Sun, Jul 27, 2014 at 8:57 AM, Simon Atanasyan <simon at atanasyan.com> > wrote: >> >> Now the yaml2obj and obj2yaml utilities used in LLVM and LLD projects >> tests only and not installed by the "make install" command. I think >> they might be also useful in third-party projects like MCLinker. I >&...
2014 Nov 11
6
[LLVMdev] [lld][ELF] How to transfer st_other field value from input to output file
...ets the encoding for the whole function. So determining the thumbness requires scanning the References. But it turns out in practice the scan is rarely done because the result can be cached by whatever algorithm needs that info. > > -Nick > > > On Nov 11, 2014, at 6:50 AM, Simon Atanasyan <simon at atanasyan.com> wrote: > > I was too optimistic. It is possible to use the contentTypes field for > > handling STO_MICROMIPS and I have a working solution but the solution > > is really ugly. This approach has at least two the following > > shortcomings: >...
2014 Sep 17
3
[LLVMdev] fail to compile latest llvm?
On Wed, Sep 17, 2014 at 10:14 PM, Simon Atanasyan <simon at atanasyan.com> wrote: > Hi, > > Probably you get the error because you try to build LLVM in the source > code directory. Create a separate folder, cd to this folder and run > the configure script. > > $ mkdir llvm-bld > $ cd llvm-bld > $ ../<llvm src&g...
2015 Feb 09
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...M, Shankar Easwaram <shankarke at gmail.com><mailto:shankarke at gmail.com> wrote: ARM has a concept of Group relocations, which applies relocations considering them as one set may be we should consider extending apply relocation. What do you think? > On Feb 8, 2015, at 04:50, Simon Atanasyan <simon at atanasyan.com><mailto:simon at atanasyan.com> wrote: > > Nick, > > Right now I try to implement exactly the same approach. I split a > relocation record on up to three separate relocations. But there are > two problems on this way. > > The first one is...
2015 Apr 20
4
[LLVMdev] [lld] Linker cannot handle sections with non-unique names
...Mon, Apr 20, 2015 at 1:44 AM, Shankar Easwaran <shankarke at gmail.com> wrote: > Attached patch fixes the issue. Thanks for the quick fix. The patch LGTM if you add a test case. Unfortunately yaml2obj does not support duplicated section names but we can use a binary input file. -- Simon Atanasyan
2015 Apr 03
3
[LLVMdev] [lld][RFC] TargetLayout class removing
Hi Rui, Shankar, Do we really need empty TargetLayout class? No we have the following hierarchy: Layout <- DefaultLayout<> <- TargetLayout<> <- xxxTargetLayout<> I suggest to remove TargetLayout and rename DefaultLayout to TargetLayout. Thoughts? -- Simon Atanasyan
2015 Feb 09
2
[LLVMdev] [lld] Representation of lld::Reference with a fake target
...shankarke at gmail.com> wrote: >> >> ARM has a concept of Group relocations, which applies relocations >> considering them as one set may be we should consider extending apply >> relocation. What do you think? >> >> >>> On Feb 8, 2015, at 04:50, Simon Atanasyan <simon at atanasyan.com> >> <simon at atanasyan.com> wrote: >>> Nick, >>> >>> Right now I try to implement exactly the same approach. I split a >>> relocation record on up to three separate relocations. But there are >>> two problems on...
2015 Nov 21
2
[lld] R_MIPS_HI16 / R_MIPS_LO16 calculation
On Sat, Nov 21, 2015 at 10:08 AM, Rui Ueyama <ruiu at google.com> wrote: > On Fri, Nov 20, 2015 at 11:02 PM, Simon Atanasyan <simon at atanasyan.com> > wrote: >> >> On Sat, Nov 21, 2015 at 9:28 AM, Rui Ueyama <ruiu at google.com> wrote: >> > On Fri, Nov 20, 2015 at 10:13 PM, Simon Atanasyan <simon at atanasyan.com> >> > wrote: >> >> >> >> In case...
2014 Nov 06
2
[LLVMdev] [lld][ELF] How to transfer st_other field value from input to output file
...t codeaurora.org> wrote: > One way to do that is to add new visibility / contentTypes (whatever is > relevant) added for each of the values st_other picks ? > > What are the other values st_other can take on MIPS ? > > Shankar Easwaran > > > On 11/6/2014 8:50 AM, Simon Atanasyan wrote: >> >> Hi, >> >> On MIPS st_other field in the ELF symbols table might contain some >> additional MIPS-specific flags besides visibility ones. These flags >> should be copied to the output linked file. If YAML => Native >> conversion is switched of...
2016 Sep 29
2
[lld][ELF] Addends adjustment for relocatable object
...inks a relocatable object to get DSO or executable file. On Wed, Sep 28, 2016 at 11:41 PM, Rui Ueyama <ruiu at google.com> wrote: > Why this is MIPS-specific issue? Do you mean MIPS is the only architecture > that uses both REL and RELA? > > On Tue, Sep 27, 2016 at 1:32 PM, Simon Atanasyan <simon at atanasyan.com> > wrote: >> >> You are right. LLD does not have this problem. Initially I bumped into >> the MIPS specific bug related to GP relative relocations calculation. >> I tried to make reproduction script as general as possible and >> mistake...
2015 Nov 21
2
[lld] R_MIPS_HI16 / R_MIPS_LO16 calculation
On Sat, Nov 21, 2015 at 9:28 AM, Rui Ueyama <ruiu at google.com> wrote: > On Fri, Nov 20, 2015 at 10:13 PM, Simon Atanasyan <simon at atanasyan.com> > wrote: >> >> In case of MIPS O32 ABI we have to find a matching R_MIPS_LO16 >> relocation to calculate R_MIPS_HI16 one because R_MIPS_HI16 uses >> combined addend (AHI << 16) + (short)ALO where AHI is original >> R_MIPS_HI16 ad...
2016 Sep 27
2
[lld][ELF] Addends adjustment for relocatable object
...s an offset of 4 so the > addends don't need updating. In ld the section symbols both have the > same offset of 0 so the addends need updating. So I think the two > approaches are equivalent. > > Have I misunderstood? > > Peter > > On 27 September 2016 at 08:28, Simon Atanasyan via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> Hi, >> >> Now in case of relocatable object generation LLD merges and copies >> REL/RELA sections as is and does not touch any addends. But it is >> incorrect. If we have a relocation which targets a sectio...
2015 Mar 19
2
[LLVMdev] Final added to parser<bool>
...I think we should remove the "final" attribute on those classes and fix the clang warning issue in some better way than changing the API. If mclinker had been part of the llvm project tools tree that would not have been allowed even. ________________________________________ From: Simon Atanasyan [simon at atanasyan.com] Sent: Wednesday, March 18, 2015 9:35 PM To: Reed Kotler Cc: David Blaikie; Simon Atanasyan; Rich Fuhler; llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Final added to parser<bool> Hi Reed, The FalseParser has a rather strange design. It's purpose to parse options...