Lines Matching +full:build +full:- +full:args
3 # Use of this source code is governed by a BSD-style license that can be
18 Computes the new build-id from old build-id and file_path.
20 Args:
21 old_build_id: Original build-id in bytearray.
25 New build id with the same length as |old_build_id|.
29 m.update(os.path.basename(file_path).encode('utf-8'))
43 the .note.gnu.build-id section so that the build-id remains
47 - `objcopy` does not modify build-id when partitioning the
49 - The new build-id is calculated as hash of original build-id
52 Args:
60 # We do not overwrite build-id on main partition to allow the expected
61 # partition build ids to be synthesized given a libchrome.so binary,
64 [objcopy, '--extract-main-partition', input_elf, output_elf])
68 build_id_section = '.note.gnu.build-id'
75 # Dump out build-id section.
78 '--extract-partition',
80 '--dump-section',
96 # `build-id` rewrite is only required on Android platform,
98 # Android platform uses little-endian.
99 # <: little-endian
103 prefix = note_content[:-descsz]
104 build_id = note_content[-descsz:]
109 # Update the build-id section.
112 '--update-section',
122 '--partition',
126 '--objcopy',
128 help='Path to llvm-objcopy binary',
131 '--unstripped-output',
136 '--stripped-output',
140 parser.add_argument('--split-dwarf', action='store_true')
142 args = parser.parse_args()
144 _ExtractPartition(args.objcopy, args.input, args.unstripped_output,
145 args.partition)
147 args.objcopy,
148 '--strip-all',
149 args.unstripped_output,
150 args.stripped_output,
155 if args.split_dwarf:
156 dest = args.unstripped_output + '.dwp'
161 relpath = os.path.relpath(args.input + '.dwp', os.path.dirname(dest))