+2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
+
+       * testsuite/ld-ctf/array.d: Only check that the data object
+       section is nonempty: do not check its exact size.
+       * testsuite/ld-ctf/diag-parlabel.d: Likewise.
+       * testsuite/ld-ctf/slice.d: Likewise.
+       * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
+       func info section too.
+       * testsuite/ld-ctf/function.d: Likewise, for the func info section.
+
 2021-03-22  Martin Liska  <mliska@suse.cz>
 
        * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
 
     Magic number: 0xdff2
     Version: 4 \(CTF_VERSION_3\)
 #...
-    Data object section:       .* \(0x8 bytes\)
+    Data object section:       .* \(0x[1-9a-f][0-9a-f]* bytes\)
     Type section:      .* \(0x5c bytes\)
     String section:    .*
 
 
     Magic number: 0xdff2
     Version: 4 \(CTF_VERSION_3\)
 #...
-    Data object section:       .* \(0xc bytes\)
-    Function info section:     .* \(0x44 bytes\)
+    Data object section:       .* \(0x[1-9a-f][0-9a-f]* bytes\)
+    Function info section:     .* \(0x[1-9a-f][0-9a-f]* bytes\)
     Object index section:      .* \(0xc bytes\)
     Type section:      .* \(0xf4 bytes\)
     String section:    .*
 #...
     Parent name: \.ctf
     Compilation unit name: .*/data-func-1\.c
-    Data object section:       .* \(0xfa4 bytes\)
+    Data object section:       .* \(0x[1-9a-f][0-9a-f]* bytes\)
     Type section:      .* \(0xc bytes\)
     String section:    .*
 
 
     Version: 4 \(CTF_VERSION_3\)
 #...
     Compilation unit name: .*A.c
-    Data object section:       0x0 -- 0x3 \(0x4 bytes\)
-    Type section:      0x4 -- 0x33 \(0x30 bytes\)
+    Data object section:       .* \(0x[1-9a-f][0-9a-f]* bytes\)
+    Type section:      .* \(0x30 bytes\)
     String section:    .*
 
   Labels:
 
     Version: 4 \(CTF_VERSION_3\)
 #...
     Compilation unit name: .*function.c
-    Function info section:     .* \(0x4 bytes\)
+    Function info section:     .* \(0x[1-9a-f][0-9a-f]* bytes\)
     Type section:      .* \(0x90 bytes\)
     String section:    .*
 #...
 
 #...
     Compilation unit name: .*slice.c
 #...
-    Data object section:       .* \(0x4 bytes\)
+    Data object section:       .* \(0x[1-9a-f][0-9a-f]* bytes\)
     Type section:      .* \(0xd0 bytes\)
     String section:    .*
 #...