Re: -ffunction-sections and -fdata-sections documentation

2017-10-16 Thread Sebastian Huber
On 16/10/17 12:31, David Brown wrote: On 13/10/17 09:06, Sebastian Huber wrote: Hello, I would like to update the documentation of these compiler flags and have some questions. The -ffunction-sections and -fdata-sections documentation is currently: Do these options affect the code generati

Re: -ffunction-sections and -fdata-sections documentation

2017-10-16 Thread David Brown
On 13/10/17 09:06, Sebastian Huber wrote: > Hello, > > I would like to update the documentation of these compiler flags and > have some questions. The -ffunction-sections and -fdata-sections > documentation is currently: > > Do these options affect the code generation? > -fdata-sections certa

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread Jim Wilson
On 10/13/2017 12:06 AM, Sebastian Huber wrote: The end-of-life of Solaris 2.6 was 2006. Is it worth to mention this here? The reference to Solaris 2.6 is no longer useful. Just mention ELF here. This "AIX may have these optimizations in the future." is there since at least 1996. What is the

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread Jeff Law
On 10/13/2017 12:45 PM, Sebastian Huber wrote: > > > - Am 13. Okt 2017 um 20:39 schrieb David Edelsohn dje@gmail.com: > >> On Fri, Oct 13, 2017 at 2:34 PM, Sebastian Huber >> wrote: >> > Do these options affect the code generation? They can affect code generation. By placing

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread David Edelsohn
>> It places each function and each datum into a separate section, which >> can be placed or removed independently. It is not combining data or >> altering the order of structures. It allows the linker to position >> functions and data items as individual components instead of a single >> object

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread Sebastian Huber
- Am 13. Okt 2017 um 20:39 schrieb David Edelsohn dje@gmail.com: > On Fri, Oct 13, 2017 at 2:34 PM, Sebastian Huber > wrote: > Do these options affect the code generation? >>> They can affect code generation. By placing each object into its own >>> section it's no longer viable

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread David Edelsohn
On Fri, Oct 13, 2017 at 2:34 PM, Sebastian Huber wrote: >>> Do these options affect the code generation? >> They can affect code generation. By placing each object into its own >> section it's no longer viable to use one object to refer to another >> because the relative addresses are unknown u

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread Sebastian Huber
- Am 13. Okt 2017 um 16:11 schrieb Jeff Law l...@redhat.com: > On 10/13/2017 01:06 AM, Sebastian Huber wrote: >> Hello, >> >> I would like to update the documentation of these compiler flags and >> have some questions.  The -ffunction-sections and -fdata-sections >> documentation is currently

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread Sebastian Huber
- Am 13. Okt 2017 um 16:02 schrieb David Edelsohn dje@gmail.com: > On Fri, Oct 13, 2017 at 3:06 AM, Sebastian Huber > wrote: >> Hello, >> >> I would like to update the documentation of these compiler flags and have >> some questions. The -ffunction-sections and -fdata-sections documentat

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread Hi-Angel
On 13 October 2017 at 17:02, David Edelsohn wrote: > On Fri, Oct 13, 2017 at 3:06 AM, Sebastian Huber > wrote: >> Hello, >> >> I would like to update the documentation of these compiler flags and have >> some questions. The -ffunction-sections and -fdata-sections documentation >> is currently: >

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread Jeff Law
On 10/13/2017 01:06 AM, Sebastian Huber wrote: > Hello, > > I would like to update the documentation of these compiler flags and > have some questions.  The -ffunction-sections and -fdata-sections > documentation is currently: > > "Place each function or data item into its own section in the outp

Re: -ffunction-sections and -fdata-sections documentation

2017-10-13 Thread David Edelsohn
On Fri, Oct 13, 2017 at 3:06 AM, Sebastian Huber wrote: > Hello, > > I would like to update the documentation of these compiler flags and have > some questions. The -ffunction-sections and -fdata-sections documentation > is currently: > > "Place each function or data item into its own section in