aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-07-10 23:35:18 +0930
committerAlan Modra <amodra@gmail.com>2019-07-13 09:57:50 +0930
commit7b2438015ca87297b2796c662182f796bb5358c2 (patch)
tree41b7c77993f76651b6094c7bee583a874cad4069 /ld/ldlang.h
parent0c951c25c6c7cfbf0f399d34277f73b0fdfc18cd (diff)
downloadgdb-7b2438015ca87297b2796c662182f796bb5358c2.zip
gdb-7b2438015ca87297b2796c662182f796bb5358c2.tar.gz
gdb-7b2438015ca87297b2796c662182f796bb5358c2.tar.bz2
PR24786, wrong LMA if first section in overlay is empty
This stops the first overlay section being ignored when empty, losing its LMA assignment PR 24786 * ldlang.h (enum section_type): Add first_overlay_section. * ldlang.c (lang_add_section): Adjust switch statement. (map_input_to_output_sections): Likewise. (lang_size_sections_1): Always set last_os for first overlay section. (lang_leave_overlay): Set sectype to first_overlay_section.
Diffstat (limited to 'ld/ldlang.h')
-rw-r--r--ld/ldlang.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h
index 24edc0b..4e96a20 100644
--- a/ld/ldlang.h
+++ b/ld/ldlang.h
@@ -116,6 +116,7 @@ typedef struct lang_output_statement_struct
enum section_type
{
normal_section,
+ first_overlay_section,
overlay_section,
noload_section,
noalloc_section