diff options
author | Alan Modra <amodra@gmail.com> | 2010-12-20 13:00:14 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-12-20 13:00:14 +0000 |
commit | 5c3049d2ef5d591dadd42bd074f4866616ef8231 (patch) | |
tree | a8644a05274ecba59667fba45c3725987b59e6c2 /ld/ldlang.c | |
parent | e759c116027e96bb72562d69ae49a86d6f271a3a (diff) | |
download | gdb-5c3049d2ef5d591dadd42bd074f4866616ef8231.zip gdb-5c3049d2ef5d591dadd42bd074f4866616ef8231.tar.gz gdb-5c3049d2ef5d591dadd42bd074f4866616ef8231.tar.bz2 |
* ld.texinfo (Expression Section): Describe treatment of numbers
and absolute symbols.
* ldemul.c (after_open_default): Look up __ld_compatibility.
* ldexp.c (fold_name): Convert absolute symbols to numbers when
inside output section definitions, or when __ld_compatibility >= 221.
(exp_fold_tree_1): Convert numbers to absolute when not in output
section definition and __ld_compatibility < 221. Don't always
convert values outside an output section definition to absolute.
* ldexp.h (uses_defined): Comment.
* ldlang.c (ld_compatibility): New variable.
* ldlang.h (ld_compatibility): Declare.
* emultempl/aix.em, * emultempl/armcoff.em, * emultempl/beos.em,
* emultempl/elf32.em, * emultempl/genelf.em, * emultempl/lnk960.em,
* emultempl/m68kcoff.em, * emultempl/mmo.em, * emultempl/pe.em,
* emultempl/pep.em, * emultempl/sunos.em, * emultempl/z80.em: Call
after_open_default from after_open function.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 6f4e200..097c390 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -109,6 +109,7 @@ bfd_boolean delete_output_file_on_failure = FALSE; struct lang_phdr *lang_phdr_list; struct lang_nocrossrefs *nocrossref_list; bfd_boolean missing_file = FALSE; +int ld_compatibility; /* Functions that traverse the linker script and might evaluate DEFINED() need to increment this. */ |