summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-11-17 20:27:10 +0000
committerRui Ueyama <ruiu@google.com>2016-11-17 20:27:10 +0000
commitedf75e799233d9de94bd7012cc2d90cf7d40d77a (patch)
tree5d0c91d983e4e3b1166a4d1c601703b50bf9e1a0 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parente4521c35230e15939dec2133fc8fa89270958dde (diff)
downloadbcm5719-llvm-edf75e799233d9de94bd7012cc2d90cf7d40d77a.tar.gz
bcm5719-llvm-edf75e799233d9de94bd7012cc2d90cf7d40d77a.zip
Allow SIZEOF() command on nonexistent section.
Linker script doesn't create a section if it has no content. So the following script doesn't create .norelocs section if it doesn't have any .rel* sections. .norelocs : { *(.rel*) } Later, if you assert that the size of .norelocs is 0, LLD printed out an error message, because it didn't allow calling SIZEOF() on nonexistent sections. This patch allows SIZEOF() on nonexistent sections, so that you can do something like this. ASSERT(SIZEOF(.norelocs), "shouldn't contain .rel sections!") Note that this behavior is compatible with GNU. Differential Revision: https://reviews.llvm.org/D26810 llvm-svn: 287257
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud