diff options
author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2009-12-02 16:27:15 +0000 |
---|---|---|
committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2009-12-02 16:27:15 +0000 |
commit | a45500ae379230cefa3b76d4b5c902d7c8e858ca (patch) | |
tree | 05181c492e4eb8e531412c1ed1bd5e38d56ffcba /gold/incremental-dump.cc | |
parent | 325e6408a8d7bc42a5997c34615c91cac1e0a6b0 (diff) | |
download | gdb-a45500ae379230cefa3b76d4b5c902d7c8e858ca.zip gdb-a45500ae379230cefa3b76d4b5c902d7c8e858ca.tar.gz gdb-a45500ae379230cefa3b76d4b5c902d7c8e858ca.tar.bz2 |
2009-12-02 Rafael Avila de Espindola <espindola@google.com>
* incremental-dump.cc (main): Check that the offeset of a script is 0.
* incremental.cc (Incremental_inputs::sized_create_inputs_section_data):
Write 0 for the data_offset of scripts.
Diffstat (limited to 'gold/incremental-dump.cc')
-rw-r--r-- | gold/incremental-dump.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/incremental-dump.cc b/gold/incremental-dump.cc index daaee8a..9e750cb 100644 --- a/gold/incremental-dump.cc +++ b/gold/incremental-dump.cc @@ -166,6 +166,12 @@ main(int argc, char** argv) break; case INCREMENTAL_INPUT_SCRIPT: printf("Linker script\n"); + if (input->data_offset != 0) + { + fprintf(stderr,"%s: %s: %u is a script but offset is not zero", + argv[0], filename, i); + return 1; + } break; case INCREMENTAL_INPUT_INVALID: default: |