Merge .plt into .text

ld writes .plt immediately after .text
which corrupts the alignment of .reloc

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2023-06-19 14:38:54 +01:00 committed by Nigel Croxon
parent 262c1f4604
commit 0bb329b0bf
8 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,7 @@ SECTIONS
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
*(.plt)
. = ALIGN(16);
}
_etext = .;

View File

@ -9,6 +9,7 @@ SECTIONS
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
*(.plt)
. = ALIGN(16);
}
_etext = .;

View File

@ -17,6 +17,7 @@ SECTIONS
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
*(.plt)
. = ALIGN(16);
}
_etext = .;

View File

@ -17,6 +17,7 @@ SECTIONS
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
*(.plt)
. = ALIGN(16);
}
_etext = .;

View File

@ -9,6 +9,7 @@ SECTIONS
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
*(.plt)
. = ALIGN(16);
}
_etext = .;

View File

@ -9,6 +9,7 @@ SECTIONS
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
*(.plt)
. = ALIGN(16);
}
_etext = .;

View File

@ -11,6 +11,7 @@ SECTIONS {
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
*(.plt)
. = ALIGN(16);
}
_etext = .;

View File

@ -19,6 +19,7 @@ SECTIONS
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
*(.plt)
. = ALIGN(16);
}
_etext = .;