[committed] Apply multifile_force_{ptr_size,endian} ASAP

Tom de Vries tdevries@suse.de
Mon Mar 29 08:14:21 GMT 2021


Hi,

Rather than waiting for multi_ptr_size/multi_endian to be set in
write_multifile, apply multifile_force_{ptr_size,endian} ASAP, in
dwz_files_1.  This is a preparation for running write_multifile
in parallel.

Committed to trunk.

Thanks,
- Tom

Apply multifile_force_{ptr_size,endian} ASAP

2021-03-29  Tom de Vries  <tdevries@suse.de>

	* dwz.c (dwz_files_1): Apply multifile_force_ptr_size and
	multifile_force_endian.

---
 dwz.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dwz.c b/dwz.c
index 9adc9df..3ad9c9e 100644
--- a/dwz.c
+++ b/dwz.c
@@ -16502,6 +16502,11 @@ dwz_files_1 (int nr_files, char *files[], bool hardlink,
 
   if (multifile)
     {
+      if (multifile_force_ptr_size)
+	multi_ptr_size = multifile_force_ptr_size;
+      if (multifile_force_endian)
+	multi_endian = multifile_force_endian;
+
       multi_info_fd = make_temp_file ("dwz.debug_info");
       multi_abbrev_fd = make_temp_file ("dwz.debug_abbrev");
       multi_line_fd = make_temp_file ("dwz.debug_line");


More information about the Dwz mailing list