diff options
author | Nick Clifton <nickc@redhat.com> | 2024-12-20 11:00:15 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-12-20 11:00:15 +0000 |
commit | 14848fc2b22e6e718abadcfbcc0491688df19a8e (patch) | |
tree | a79c6d9f099c0e787e7eca309411d6d9750827ad | |
parent | 45b4f0499cbea2ed0efb2e1e2719617a3734a9ab (diff) | |
download | gdb-14848fc2b22e6e718abadcfbcc0491688df19a8e.zip gdb-14848fc2b22e6e718abadcfbcc0491688df19a8e.tar.gz gdb-14848fc2b22e6e718abadcfbcc0491688df19a8e.tar.bz2 |
Fix examples of the use of the linker script TYPE keyword
-rw-r--r-- | ld/ld.texi | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5970,19 +5970,19 @@ special requirements of the section type are met. Note - the TYPE only is used if some or all of the contents of the section do not have an implicit type of their own. So for example: @smallexample - .foo . TYPE = SHT_PROGBITS @{ *(.bar) @} + .foo . (TYPE = SHT_PROGBITS) : @{ *(.bar) @} @end smallexample will set the type of section @samp{.foo} to the type of the section @samp{.bar} in the input files, which may not be the SHT_PROGBITS type. Whereas: @smallexample - .foo . TYPE = SHT_PROGBITS @{ BYTE(1) @} + .foo . (TYPE = SHT_PROGBITS) : @{ BYTE(1) @} @end smallexample will set the type of @samp{.foo} to SHT_PROGBBITS. If it is necessary to override the type of incoming sections and force the output section type then an extra piece of untyped data will be needed: @smallexample - .foo . TYPE = SHT_PROGBITS @{ BYTE(1); *(.bar) @} + .foo . (TYPE = SHT_PROGBITS) : @{ BYTE(1); *(.bar) @} @end smallexample @item READONLY ( TYPE = @var{type} ) |