GAS: Allow automatically assigned entries in the file table to be reassigned if the...
authorNick Clifton <nickc@redhat.com>
Mon, 27 Apr 2020 10:35:25 +0000 (11:35 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 27 Apr 2020 10:35:25 +0000 (11:35 +0100)
commit714e6c969ff1ce0fdb0cd3703d41ef2fef424535
tree993fe5d1a3ddcbb402591428cc30542028b4ee56
parent25e29062d2c5f1488963ec9997e01886122354f6
GAS: Allow automatically assigned entries in the file table to be reassigned if the source file specifically requests to use the assigned slot.

PR 25878
* dwarf2dbg.c (struct file_entry): Add auto_assigned field.
(assign_file_to_slot): New function.  Fills in an entry in the
files table.
(allocate_filenum): Use new function.
(allocate_filename_to_slot): Use new function.  If the specified
slot entry is already in use, but was chosen automatically then
reassign the automatic entry.
gas/ChangeLog
gas/dwarf2dbg.c