diff options
author | Daniel Xu <dxu@dxuuu.xyz> | 2020-07-03 20:59:53 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-07-11 16:08:28 -0600 |
commit | 0ed35c9ae0434dcda2d5d3e3f0be77fa1f323283 (patch) | |
tree | 09201e2d9fbc53f00bfc056ba356c1eac3258ae8 /gdb/mdebugread.c | |
parent | 0a278aa7552de49be4816409a793c2403f6e87be (diff) | |
download | binutils-0ed35c9ae0434dcda2d5d3e3f0be77fa1f323283.zip binutils-0ed35c9ae0434dcda2d5d3e3f0be77fa1f323283.tar.gz binutils-0ed35c9ae0434dcda2d5d3e3f0be77fa1f323283.tar.bz2 |
rust: Fix rust modules test
I noticed that the modules test was failing. Some choice use of `nm`
revealed `TWENTY_THREE` was not in the final binary. Fix by taking a
pointer to the global, forcing the linker to keep the symbol in.
gdb/testsuite/ChangeLog
2020-07-11 Daniel Xu <dxu@dxuuu.xyz>
PR rust/26121
* gdb.rust/modules.rs: Prevent linker from discarding test
symbol.
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Diffstat (limited to 'gdb/mdebugread.c')
0 files changed, 0 insertions, 0 deletions