search for: shf_exclud

Displaying 20 results from an estimated 25 matches for "shf_exclud".

Did you mean: shf_exclude
2018 Jan 13
2
Linker Option support for ELF
> Given how ELF works I would expect an unknown section to simply end up > in the output, but we can use SHF_EXCLUDE to avoid that. Yes, gold currently treats unknown section types pretty much the same as PROGBITS sections. The SHF_ALLOCATE and SHF_EXCLUDE flags would control where and whether the section goes into the output file. Another thing that we need to work out is the link order. The link order is bas...
2018 Jan 10
0
Linker Option support for ELF
...mains unanswered is the encoding. Do we go forward with the abuse of the ELF notes or do is there enough confidence that adding a new section type shouldn’t break compatibility with older linkers? Given how ELF works I would expect an unknown section to simply end up in the output, but we can use SHF_EXCLUDE to avoid that. So +1 for a new section type. Cheers, Rafael
2018 Jan 13
0
Linker Option support for ELF
On Fri, Jan 12, 2018 at 5:56 PM, Cary Coutant via llvm-dev < llvm-dev at lists.llvm.org> wrote: > > Given how ELF works I would expect an unknown section to simply end up > > in the output, but we can use SHF_EXCLUDE to avoid that. > > Yes, gold currently treats unknown section types pretty much the same > as PROGBITS sections. The SHF_ALLOCATE and SHF_EXCLUDE flags would > control where and whether the section goes into the output file. > > Another thing that we need to work out is the link...
2018 Jan 19
1
Linker Option support for ELF
...llvm-dev < llvm-dev at lists.llvm.org> wrote: > On Fri, Jan 12, 2018 at 5:56 PM, Cary Coutant via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> > Given how ELF works I would expect an unknown section to simply end up >> > in the output, but we can use SHF_EXCLUDE to avoid that. >> >> Yes, gold currently treats unknown section types pretty much the same >> as PROGBITS sections. The SHF_ALLOCATE and SHF_EXCLUDE flags would >> control where and whether the section goes into the output file. >> >> Another thing that we need...
2018 Jan 10
3
Linker Option support for ELF
> On Jan 9, 2018, at 2:32 AM, James Henderson <jh7370.2008 at my.bristol.ac.uk> wrote: > > By my understanding, the proposal is that the user input looks something like: > > #pragma linker_directive("lib", "m") > > which is passed essentially as is to the linker, i.e. the directive payload is a pair of strings, the first being "lib", the
2019 Mar 14
11
RFC: ELF Autolinking
...re, would tie source code to the vagaries of particular linkers. I don't see much value in supporting other linker operations so I suggest that the binary representation be a mergable string section (SHF_MERGE, SHF_STRINGS), called .autolink, with custom type SHT_LLVM_AUTOLINK (0x6fff4c04), and SHF_EXCLUDE set (to avoid the contents appearing in the output). The compiler can form this section by concatenating the arguments of the "comment lib" pragmas in the order they are encountered. Partial (-r, -Ur) links can be handled by concatenating .autolink sections with the normal mergeable stri...
2013 Jul 25
3
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
...hand written assembly code. >> >> *Changes Needed :-* >> >> The change that I am trying to propose is the compiler emits a section, >> called (*.safe_sections) *that contains section indices on what sections >> are safe. >> >> The section would have a SHF_EXCLUDE flag, to prevent other linkers from >> consuming this section and making it to the output file. >> >> Data structure for this :- >> >> .safe_sections >> <total size> >> <section index> <boolean flag -- safe/unsafe> >> ... >> ....
2013 Jul 25
0
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
...xamples of unsafe sections are, hand written assembly code. > > *Changes Needed :-* > > The change that I am trying to propose is the compiler emits a section, > called (*.safe_sections) *that contains section indices on what sections > are safe. > > The section would have a SHF_EXCLUDE flag, to prevent other linkers from > consuming this section and making it to the output file. > > Data structure for this :- > > .safe_sections > <total size> > <section index> <boolean flag -- safe/unsafe> > ... > ... > > > *Advantages > *...
2013 Jul 25
4
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
..., code generated by compilers. Examples of unsafe sections are, hand written assembly code. _*Changes Needed :-*_ The change that I am trying to propose is the compiler emits a section, called (*.safe_sections) *that contains section indices on what sections are safe. The section would have a SHF_EXCLUDE flag, to prevent other linkers from consuming this section and making it to the output file. Data structure for this :- .safe_sections <total size> <section index> <boolean flag -- safe/unsafe> ... ... *_Advantages_ *There are advantages that the atoms within a safe section...
2013 Jul 25
0
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
...nges Needed :-* >>> >>> >>> The change that I am trying to propose is the compiler emits a section, >>> called (*.safe_sections) *that contains section indices on what sections >>> >>> are safe. >>> >>> The section would have a SHF_EXCLUDE flag, to prevent other linkers from >>> consuming this section and making it to the output file. >>> >>> Data structure for this :- >>> >>> .safe_sections >>> <total size> >>> <section index> <boolean flag -- safe/unsafe...
2013 Jul 25
2
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
...>>>> >>>> The change that I am trying to propose is the compiler emits a section, >>>> called (*.safe_sections) *that contains section indices on what sections >>>> >>>> are safe. >>>> >>>> The section would have a SHF_EXCLUDE flag, to prevent other linkers from >>>> consuming this section and making it to the output file. >>>> >>>> Data structure for this :- >>>> >>>> .safe_sections >>>> <total size> >>>> <section index> &lt...
2019 Aug 06
2
[lld] section attributes lld can use to safely drop a section from obj files
Hello llvm\lld, The autlolink feature in swift appends a section to the obj files (.swift1_autolink_entries) that is later need to determine what t link against in the final linked binary. I am trying to get rid of these section in the final linked binary at link time. I understand this could be done with (llvm-objcopy --remove-section=.swift1_autolink_entries) but would like have the linker
2013 Jul 25
2
[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
...ange that I am trying to propose is the compiler emits a section, >>>>> called (*.safe_sections) *that contains section indices on what >>>>> sections >>>>> >>>>> are safe. >>>>> >>>>> The section would have a SHF_EXCLUDE flag, to prevent other linkers >>>>> from >>>>> consuming this section and making it to the output file. >>>>> >>>>> Data structure for this :- >>>>> >>>>> .safe_sections >>>>> <total size&g...
2019 Mar 14
3
RFC: ELF Autolinking
...code to the vagaries of particular linkers. I > don't see much value in supporting other linker operations so I suggest > that the binary representation be a mergable string section (SHF_MERGE, > SHF_STRINGS), called .autolink, with custom type SHT_LLVM_AUTOLINK > (0x6fff4c04), and SHF_EXCLUDE set (to avoid the contents appearing in the > output). The compiler can form this section by concatenating the arguments > of the "comment lib" pragmas in the order they are encountered. Partial > (-r, -Ur) links can be handled by concatenating .autolink sections with the > n...
2019 Mar 14
3
RFC: ELF Autolinking
...aries of particular linkers. I >> don't see much value in supporting other linker operations so I suggest >> that the binary representation be a mergable string section (SHF_MERGE, >> SHF_STRINGS), called .autolink, with custom type SHT_LLVM_AUTOLINK >> (0x6fff4c04), and SHF_EXCLUDE set (to avoid the contents appearing in the >> output). The compiler can form this section by concatenating the arguments >> of the "comment lib" pragmas in the order they are encountered. Partial >> (-r, -Ur) links can be handled by concatenating .autolink sections wit...
2019 Mar 14
2
RFC: ELF Autolinking
...aries of particular linkers. I >> don't see much value in supporting other linker operations so I suggest >> that the binary representation be a mergable string section (SHF_MERGE, >> SHF_STRINGS), called .autolink, with custom type SHT_LLVM_AUTOLINK >> (0x6fff4c04), and SHF_EXCLUDE set (to avoid the contents appearing in the >> output). The compiler can form this section by concatenating the arguments >> of the "comment lib" pragmas in the order they are encountered. Partial >> (-r, -Ur) links can be handled by concatenating .autolink sections wit...
2019 Mar 19
2
RFC: ELF Autolinking
...gt;>>> don't see much value in supporting other linker operations so I suggest >>>> that the binary representation be a mergable string section (SHF_MERGE, >>>> SHF_STRINGS), called .autolink, with custom type SHT_LLVM_AUTOLINK >>>> (0x6fff4c04), and SHF_EXCLUDE set (to avoid the contents appearing in the >>>> output). The compiler can form this section by concatenating the arguments >>>> of the "comment lib" pragmas in the order they are encountered. Partial >>>> (-r, -Ur) links can be handled by concatenatin...
2019 Mar 21
3
RFC: ELF Autolinking
...t see much value in supporting other linker operations so I suggest >>>>>> that the binary representation be a mergable string section (SHF_MERGE, >>>>>> SHF_STRINGS), called .autolink, with custom type SHT_LLVM_AUTOLINK >>>>>> (0x6fff4c04), and SHF_EXCLUDE set (to avoid the contents appearing in the >>>>>> output). The compiler can form this section by concatenating the arguments >>>>>> of the "comment lib" pragmas in the order they are encountered. Partial >>>>>> (-r, -Ur) links can be...
2019 Mar 14
2
RFC: ELF Autolinking
...lar linkers. I >>> don't see much value in supporting other linker operations so I suggest >>> that the binary representation be a mergable string section (SHF_MERGE, >>> SHF_STRINGS), called .autolink, with custom type SHT_LLVM_AUTOLINK >>> (0x6fff4c04), and SHF_EXCLUDE set (to avoid the contents appearing in the >>> output). The compiler can form this section by concatenating the arguments >>> of the "comment lib" pragmas in the order they are encountered. Partial >>> (-r, -Ur) links can be handled by concatenating .autolink...
2019 Mar 25
3
RFC: ELF Autolinking
...orting other linker operations so I >>>>>>>> suggest that the binary representation be a mergable string section >>>>>>>> (SHF_MERGE, SHF_STRINGS), called .autolink, with custom type >>>>>>>> SHT_LLVM_AUTOLINK (0x6fff4c04), and SHF_EXCLUDE set (to avoid the contents >>>>>>>> appearing in the output). The compiler can form this section by >>>>>>>> concatenating the arguments of the "comment lib" pragmas in the order they >>>>>>>> are encountered. Partia...