aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2012-11-21 19:56:38 +0000
committerRoland McGrath <roland@gnu.org>2012-11-21 19:56:38 +0000
commit4724d37ec271a50c31dbebb13c424881b057e8d5 (patch)
tree577dda280446fa7911f51b0d6cfed564fb408c0c /ld/ld.h
parente0799d78b16861d304aef64ada6949a19ded2aca (diff)
downloadgdb-4724d37ec271a50c31dbebb13c424881b057e8d5.zip
gdb-4724d37ec271a50c31dbebb13c424881b057e8d5.tar.gz
gdb-4724d37ec271a50c31dbebb13c424881b057e8d5.tar.bz2
ld/
* ld.h (ld_config_type): New flag member separate_code. * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set it based on $SEPARATE_CODE. * ldlang.c (ldlang_override_segment_assignment): If it's set, then always return TRUE when SEC_CODE differs between the sections.
Diffstat (limited to 'ld/ld.h')
-rw-r--r--ld/ld.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/ld.h b/ld/ld.h
index d527885..4acb721 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -82,7 +82,7 @@ typedef struct name_list {
name_list;
typedef enum {sort_none, sort_ascending, sort_descending} sort_order;
-
+
/* A wildcard specification. */
typedef enum {
@@ -274,6 +274,9 @@ typedef struct {
numbers everywhere. */
bfd_boolean sane_expr;
+ /* If set, code and non-code sections should never be in one segment. */
+ bfd_boolean separate_code;
+
/* The rpath separation character. Usually ':'. */
char rpath_separator;