Don't emit vendor attribute section if there is no attribute to emit.
authorJim Wilson <jimw@sifive.com>
Wed, 16 Jan 2019 21:37:35 +0000 (13:37 -0800)
committerJim Wilson <jimw@sifive.com>
Wed, 16 Jan 2019 21:37:35 +0000 (13:37 -0800)
commita4bf3d0720b1093dd148b7a728f92ce690a8a034
treef49a3a49ed0bae1cbdba2605a5805a8d0967474a
parent7d7a7d7ccf6047cc5b480064e9eb9489542c0dd7
Don't emit vendor attribute section if there is no attribute to emit.

2019-01-16  Kito Cheng  <kito@andestech.com>
bfd/
* elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
for OBJ_ATTR_PROC.
gas/
* testsuite/gas/riscv/attribute-empty.d: New.
bfd/ChangeLog
bfd/elf-attrs.c
gas/ChangeLog
gas/testsuite/gas/riscv/attribute-empty.d [new file with mode: 0644]
This page took 0.024967 seconds and 4 git commands to generate.