]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
uefisign: handle empty sections
authorEric van Gyzen <vangyzen@FreeBSD.org>
Tue, 6 Apr 2021 14:42:20 +0000 (09:42 -0500)
committerEric van Gyzen <vangyzen@FreeBSD.org>
Wed, 7 Apr 2021 16:23:11 +0000 (11:23 -0500)
commit12db51d20823a5e3b9e5f8a2ea73156fe1cbfc28
tree13548f35fdd646c0b969b1d5e14d5c0578d8a8c3
parent066a576c5f1beac1c42370135f6eddf026561430
uefisign: handle empty sections

loader.efi has an empty set_Xfic section.  Handle it correctly.

```
Sections:
Idx Name          Size      VMA               LMA               File off  Algn
[...]
3 set_Xcom      00000168  00000000000d4000  00000000000d4000  000d0e00  2**2
      CONTENTS, ALLOC, LOAD, DATA
4 set_Xfic      00000000  00000000000d4168  00000000000d4168  00000000  2**2
      ALLOC, LOAD, DATA
5 .sdata        00000448  00000000000d5000  00000000000d5000  000d1000  2**2
      CONTENTS, ALLOC, LOAD, DATA
[...]
```

Reviewed by: trasz, dab
Reported by: andy.y.liu@dell.com
Tested by: andy.y.liu@dell.com
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D29606
usr.sbin/uefisign/pe.c