- User Since
- May 11 2014, 5:40 AM (279 w, 1 d)
Jun 16 2015
Jun 5 2015
May 20 2015
Apr 15 2015
A relocation to nothing has a symbol index which points to the local undef symbol, the first symbol in the symbol table entry. We could keep that symbol as the sentinel symbol and make the null reference point to that.
Apr 9 2015
Apr 8 2015
I do plan to clean those up in future. It's currently a very rudimentary solution.
You could have a helper class that contains common code that the MIPS executable / dynamic writer can.contain? No?? This was how it used to be right?
Apr 7 2015
Apr 1 2015
Thanks for the explanation. LGTM.
Mar 25 2015
Mar 22 2015
Can you make changes to native reader and writer too?
Mar 18 2015
Mar 14 2015
Yes protected need to be added to this as it's missing.
Mar 9 2015
Mar 4 2015
At least on Gnu/ELF what I have seen is the order in the output is how symbols/files were resolved. No?? Do you have a test that fails on Gnu flavor and ELF that doesn't match real gnu behavior?
Mar 3 2015
Other than the above mentioned comments code LGTM
Mar 2 2015
Feb 28 2015
in my opinion this is a shared attribute for all atoms that belong to a section. Can we store this information for the atom in the context? The other way is to add a Reference to store the size. If the idea is to add all format specific attributes in the Atom I am fine but we need to discuss on llvmdev before adding those features.
Feb 26 2015
Can you add one test?
Feb 22 2015
With hexagon the relocation encoding depends on the instruction. So when the relocation need to be applied the encoding mask has to be figured out from the instruction how it encodes the immediate bits.
Feb 21 2015
We need lld to be tightly integrated with LLVM targets, these are the reasons I have in mind :
Feb 17 2015
Feb 13 2015
Please don't move architecture specific code to common code.
Feb 11 2015
Find should not check the result in the function. I like the approach that Simon suggested.
Feb 8 2015
Feb 6 2015
Ok. LGTM with those changes that you are done with.
Feb 1 2015
All linker scripts with -T are concatenated. I am not totally certain on what gnu tries to solve here.
Jan 30 2015
Again, This pass is needed by ELF to adopt atom order file like macho at which time ELF will use it.
Thanks for the info.
You cannot move the array order pass outside the elf writer. You might have a linker script or an atom order file that selects aroms from .init_array and move it to to the ,text section after all the .text. The layout pass needs to make sure atoms are sorted by link order and leave everything else to the ELF writer.
Jan 28 2015
Calling ARM code from thumb needs a veneer right ?
Jan 27 2015
Section groups(grouping multiple sections as part of a group) cannot be handled without ingroup references for garbage collection and correctness.
Jan 26 2015
This is mainly relevant when you turn on garbage collection as Nick pointed out. You can refer to an atom in a section but to keep the section to be consistent w.r.t ELF you have to keep all the remaining atoms together.
Jan 24 2015
Jan 22 2015
Could we keep the headers for each of the Target linking contexts inside each target itself.
Dec 14 2014
We are trying to duplicate getfilemagic in the driver which is actually part of the registry. The linker script should not be parsed in the driver immediately. The whole reason why the linker script is being parsed in the driver is we don't have a way to handle a script when the linker script is specified just like any other input file or library in the parser or registry. It should be parsed late whenever we figure out that the file is a linker script. We should parse more input files by using a lazy parsing method using file locator.
It's best for the linker script to be handled through the registry.
Dec 9 2014
$ ld.gold --help|grep ctors
--ctors-in-init-array Use DT_INIT_ARRAY for all constructors (default) --no-ctors-in-init-array Handle constructors as directed by compiler.
What's the right behaviour for static linking ?
Oct 27 2014
Oct 22 2014
Oct 2 2014
Oct 1 2014
Remove it from soneeded instead.
Sep 24 2014
Sep 8 2014
Aug 5 2014
The best way to do this is using a ELF reference that sets a dynamic export tag. We should not be adding a export dynamic to an atom as that's not a property.
Jun 6 2014
Iis this because of associated sections ? That you cannot get the section size ?
You have to still get native reader/writer to emit this in native format.
Jun 2 2014
Did you measure the memory increase for linking large applications like clang for example ?
May 29 2014
May 22 2014