commit | 1900793bab0f8febb2566293ea932708d89b82e7 | [log] [tgz] |
---|---|---|
author | Lulu Cai <cailulu@loongson.cn> | Wed Oct 11 10:20:45 2023 +0800 |
committer | liuzhensong <liuzhensong@loongson.cn> | Fri Feb 23 11:11:04 2024 +0800 |
tree | 460ded419c55284942d5140212c25ffb6816394d | |
parent | 5937f5172a34503ddf7f637621dc07abcbbc2a30 [diff] |
as: fixed internal error when immediate value of relocation overflow. The as and ld use _bfd_error_handler to output error messages when checking relocation alignment and relocation overflow. However, the abfd value passed by as to the function is NULL, resulting in an internal error. The ld passes a non-null value to the function, so it can output an error message normally. (cherry picked from commit f87cf663af71e5d78c8d647fa48562102f3b0615)