diff options
author | Tom de Vries <tdevries@suse.de> | 2019-07-24 17:16:01 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2019-07-24 17:16:01 +0200 |
commit | 4625b4d081eb0a243c6c7370f9a12c97bf6bcf65 (patch) | |
tree | d36661738ceb3aa24f07900b712d9b9364167a2b /gdb/python/py-objfile.c | |
parent | 9596751830b82b3ceaf8e6bb0c333181dfc96257 (diff) | |
download | gdb-4625b4d081eb0a243c6c7370f9a12c97bf6bcf65.zip gdb-4625b4d081eb0a243c6c7370f9a12c97bf6bcf65.tar.gz gdb-4625b4d081eb0a243c6c7370f9a12c97bf6bcf65.tar.bz2 |
[gdb/testsuite] Fix infoline-reloc-main-from-zero.exp compilation
When running gdb.base/infoline-reloc-main-from-zero.exp, I see:
...
Running gdb/testsuite/gdb.base/infoline-reloc-main-from-zero.exp ...
gdb compile failed, ld: infoline-reloc-main-from-zero: \
not enough room for program headers, try linking with -N
ld: final link failed: bad value
collect2: error: ld returned 1 exit status
UNTESTED: gdb.base/infoline-reloc-main-from-zero.exp: infoline-reloc-main-from-zero.exp
UNTESTED: gdb.base/infoline-reloc-main-from-zero.exp: failed to compile
...
Fix this by following the suggestion:
...
-set opts {debug "additional_flags=-nostdlib -emain -Wl,-Ttext=0x00"}
+set opts {debug "additional_flags=-nostdlib -emain -Wl,-Ttext=0x00 -Wl,-N"}
...
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2019-07-24 Tom de Vries <tdevries@suse.de>
PR testsuite/24612
* gdb.base/infoline-reloc-main-from-zero.exp: Add -Wl,-N to
additional_flags.
Diffstat (limited to 'gdb/python/py-objfile.c')
0 files changed, 0 insertions, 0 deletions